Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7830773
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T11:24:16+00:00 2026-06-02T11:24:16+00:00

I am trying to put up 2 primeFaces panelGrid boxes, one for an existing

  • 0

I am trying to put up 2 primeFaces panelGrid boxes, one for an existing user and one for a new user. I noticed that it stopped hitting my break points and I couldn’t figure out what happened. I started to cut things out of the source code until it started to work again.

I found a most strange thing which completely puzzles me and I would appreciate any hints someone can give me. The backing bean has mostly getters and setters and just the very beginnings of logic to check the login (essentially nothing at this stage). The xhtml file looks like:

<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui">
<h:head>
    <title>Shalom Elias</title>
</h:head>
<h:body>
<h:form id="form">
    Shalom
    <h:panelGroup id="login" rendered="#{backing.renderPage(1)}">
        <p:panelGrid id="knownUser" columns="2">
            <f:facet name="header">
                Registered User
            </f:facet>

            <h:outputLabel for="zehut1" value="ID" />
            <p:inputText value="#{backing.buyer.tudatZehut1}" label="ID" id="zehut1" />

            <h:outputLabel for="pass1" value="Password" />
            <p:password value="#{backing.buyer.passWrd1}" label="Password" id="pass1" />

            <f:facet name="footer">
                <p:commandButton type="submit" value="Login" actionListener="#{backing.checkLogin}" />
            </f:facet>
        </p:panelGrid>
        <p:spacer height="2" />

        <p:panelGrid id="newUser" columns="4">
            <f:facet name="header">
                New User
            </f:facet>

            <p:inputText value="12345" />
        </p:panelGrid>
    </h:panelGroup>
    <h:panelGroup id="buyer" rendered="false">
        yet again
    </h:panelGroup>
</h:form>
</h:body>
</html>

The breakpoint is in panelGrid knownUser in the footer section, in the commandButton. I chopped out all the original code and left one inputText box for the newUser panelGrid. Here is the kicker: if I put value=”12345″ for the initial value and press the command button, it will indeed hit the break point. However if I put value=”” or value pointing to a backing bean value which is currently blank, it will NOT hit the break point.

Since the purpose is for an existing user to log in, it isn’t acceptable to force him to fill in information which isn’t relevant to him. More important, why should it make any difference anyhow, if there is information in the panel grid which isn’t connected to the command button I am pressing? I am assuming it is legal to have 2 panel grids showing at the same time? In any case, I would appreciate any suggestions as to what could be wrong.

Thanks,
Ilan

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T11:24:22+00:00Added an answer on June 2, 2026 at 11:24 am

    The reason might be that validation or conversion fails. Then your listener will not be reached. Put a h:messages tag somewhere on your page to see if that is the case. The tag will display conversion and validation errors.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I trying to put together an Android app that will take a picture and
I am trying to put a filter on my C# openFileDialog that excludes certain
I'm trying to put together a simple RSS widget (for my wordpress blog) that
I'm trying to put together a presentation for my local .NET user group on
Trying to put a function call that returns an int into a call for
I am trying to put a list inside of a <div> so that I
I'm trying to put some json images into a UIScrollView and i'm hitting a
I'm trying to put in an edittext the phone number that was selected by
I'm trying to put euro symbol in a Java string that is passed to
Im trying to put arraylists into an arraylist. Adding data to the new arrays,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.