Hello,

I've a selectBooleanCheckbox with a nested command tag with a
renderedPartially attribute. The selectBooleanCheckbox has a 
valueChangeListener. The valueChangeListener should be called and
then some part of the page reloaded when the checkbox is clicked. This 
works in general but the lifecycle sequence is not correct. The 
valueChangeListener is called first and then the value is written back 
to the model. It should be vice versa.

JSP:

<tc:panel id='panel'>
...
    <tc:selectBooleanCheckbox id="checkbox"
      valueChangeListener="#{controller.valueChangeListener}"
      value="#{controller.checkbox}">
    <f:facet name="change">
      <tc:command>
        <tc:attribute name="renderedPartially"
          value="panel"/>
      </tc:command>
    </f:facet>
    </tc:selectBooleanCheckbox>
...

Java:

  public void valueChangeListener(ValueChangeEvent e) {
    LOG.debug("valueChangeListener: " + e.getNewValue());
  }

  public void setCheckbox(Boolean checkbox) {
    LOG.debug("setCheckbox: " + checkbox);
  }

LOG:

...
controller - valueChangeListener: true
controller - setCheckbox: true
...


Regards
Helmut

Reply via email to