webtier@glassfish.java.net

Check box is not re-rendered after bean execution

From: <forums_at_java.net>
Date: Thu, 20 Oct 2011 03:33:51 -0500 (CDT)

Hi,

I hope I am in the right place to ask this question.

I have a button which I want to use for selecting all checkboxes in my
datatable.
Jsf:
    <webuijsf:button
actionExpression="#{user$recentreports.selectAllButton_action}"
text="#{msg.report_select_all}"/>
   
    <webuijsf:checkbox binding="#{user$recentreports.selectCB}"
valueChangeListenerExpression="#{user$recentreports.selectSingleCBEvent}"
id="selectCB" toolTip="#{msg.report_select}"/>
java:
    public void selectAllButton_action(){
    System.out.println("select all button is clicked");// OK
    System.out.println("selectCB.getValue()" + selectCB.getValue());
//outputs: selectCB.getValue()null
    selectCB.setSelected(Boolean.TRUE);
    System.out.println("selectCB.getValue()" + selectCB.getValue());
//outputs: selectCB.getValue()true|
    }
selectSingleCBEvent is collecting the row numbers of this checkbox to delete
them afterwards. I want to select all checkboxes and delete the corresponding
reports. When I click on the button, selectedCB's selected attribute turns to
true, but in my form I can not see the change. I tried adding
    FacesContext.getCurrentInstance( ).renderResponse( );
but still not working. Does anyone have any opinion about this case? Thanks
in advance.
 


--
[Message sent by forum member 'lamostreta']
View Post: http://forums.java.net/node/855088