This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes Check box is not re-rendered after bean execution Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Check box is not re-rendered after bean execution" Watch "Check box is not re-rendered after bean execution" New topic
Author

Check box is not re-rendered after bean execution

Deniz Atak
Ranch Hand

Joined: Jun 29, 2011
Posts: 30
Hi,

I have a button which I want to use for selecting all checkboxes in my datatable.

Jsf:


java:



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.
Marcos Silvestri
Ranch Hand

Joined: Dec 06, 2009
Posts: 62

Does you component <webuijsf:checkbox/> contain an attribute called "render" or "reRender"?

Those attributes are usually called for a "refresh" of the visual components on the browser, rendering their state after being execution.

Regards!


DJ aspirant, Engineering undergraduate, Tokusatsus addicted, fond of English language and Asia's, Buddhist, blogger, etc. I'll need to insert all these attributes in a Java class and manage to create methods for handling my overwhelming life
Deniz Atak
Ranch Hand

Joined: Jun 29, 2011
Posts: 30
Hi Marcos, first, thanks for answering You are one of the brave ones to answer this question!
yes, there is a "render" attribute. I tried render="true" but still it is not working..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Check box is not re-rendered after bean execution
 
Similar Threads
Anchor tag to submit a form
Array of checkboxes
Check to see if a button is clicked once or twice
Struts 2.1.6: Checkbox does not post unchecked values
processing Checkboxes in MVC