Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Another reason that a commandbutton isn't been invoked is that the <code>rendered</code> attribute of the button or one of its parents evaluated <code>false</code> during apply request values phase of the form submit.</p> <p>You have actually none, but those <code>&lt;c:if&gt;</code> tags does similar thing, only during view build time instead of view render time. The view params are not applied during building the view, but only thereafter. That's exactly why <code>#{userDetailBean.view}</code> is always empty. </p> <p>I have never used such a construct with <code>&lt;c:if&gt;</code>, but I've had similar views like this where this all just works with a <code>@ViewScoped</code> bean where the rendering property is been applied on a fullworthy JSF component instead of <code>&lt;c:if&gt;</code>.</p> <p>As first step, get rid of <code>&lt;c:if&gt;</code>s and move their tests into <code>rendered</code> attribute of the <code>&lt;h:form&gt;</code>s they are wrapping:</p> <pre><code>&lt;h:form rendered="#{empty userDetailBean.view}"&gt; ... &lt;/h:form&gt; &lt;h:form rendered="#{not empty userDetailBean.view}"&gt; ... &lt;/h:form&gt; </code></pre> <p>If in vain (I guess that this will fail because you aren't using ajax and the viewparams are not preserved) and the bean is indeed <code>@RequestScoped</code>, then you need to mark it <code>@ViewScoped</code> to preserve the rendering conditions.</p> <h3>Related questions:</h3> <ul> <li><a href="https://stackoverflow.com/questions/2118656/hcommandlink-is-not-being-invoked">JSF <code>h:commandLink</code> is not being invoked</a></li> </ul> <hr> <p>Unrelated to the problem, I'd rather use <code>&lt;h:panelGroup /&gt;</code> instead of <code>&lt;h:inputHidden /&gt;</code> to "fill" the empty cells of the table. They are cheaper to encode and decode and also ends in better HTML.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload