File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Loose data in my editable datatable (JSF2) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Loose data in my editable datatable (JSF2)" Watch "Loose data in my editable datatable (JSF2)" New topic
Author

Loose data in my editable datatable (JSF2)

Benjamin Dittwald
Greenhorn

Joined: Mar 05, 2009
Posts: 8
Hi there,

I'm starting to code a little cookbook. Therefor i've created a page to add some menusteps, a menustep should describe how to cook the menu step by step.
I have a datatable containing a list of MenuSteps. The user can click a commandLink to add/delete a new step. The Bean adds or removes a MenuStep of the list and rerender the datatable with ajax. That works great, except I lost all the data given to the two inputText fields for the steps. They are all blank after I add or delete a row of my datatable.

I hope someone can help me.
Below you can see my code. Let me know if you need more input!

Best regards,
Benjamin

Here is my XHTML (it's a part of a template):


Here is my ManagedBean:


Here is my Entity:
Benjamin Dittwald
Greenhorn

Joined: Mar 05, 2009
Posts: 8
Solved it.



disabled="true" for the ajax commands.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Loose data in my editable datatable (JSF2)
 
Similar Threads
DataTable datas are not actual
JSF : commandButton in dynamically loaded <ui:include> page doesn't work
commandLink not working in datatable+jsf2.0
Displaying 2D array using data tables
JSF form problems