How to maintain/save row values when generating a new row?

You're using a h:outputLink instead of a h:commandLink The h:outputLink doesn't submit the form at all, it fires a plain GET request. The a4j:support won't work properly inside a h:outputLink Replace it by a h:commandLink.

You're using a instead of a . The doesn't submit the form at all, it fires a plain GET request. The won't work properly inside a .

Replace it by a : Then, you need to ensure that you preserve the data model for subsequent request in case that your bean is request scoped. There are several ways to achieve this: Set either Tomahawk datatable's preserveDataModel to true: Or save the bean state in the view scope. Add the following tag somewhere in the page: or since you're also using RichFaces/Ajax4jsf.

When I use first solution it gives an exception: java.io. NotSerializableException, so I made the bean implements serilizable, the error gone, but when I tried it, nothing new, still old row text fileds reset – Msaleh Sep 10 '11 at 14:04 second solution also doesn't work, problem still there. – Msaleh Sep 10 '11 at 14:06 Yes, the bean must implement serializable.

Try the . I'm by the way not sure how that works in combination with . Perhaps the is the only which would work.At least, the point is that you need to preserve the same datamodel/bean in subsequent requests.

The JSF 2. X solution would by the way be to put the bean in view scope. – BalusC Sep 10 '11 at 14:07 third solution gives me an exception too: Attribute 'name' for view scope bean must be literal – Msaleh Sep 10 '11 at 14:07 According to the RF 3.3. X documentation the attribute name should be beanName and it should accept EL.

What RF/A4J version are you using? The exception basically tells that it should actually be a literal like . Give it a try, apparently you're using an older version.

– BalusC Sep 10 '11 at 14:12.

I just used the a4j command link and everything worked fine.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions