wood burning stoves
The moose likes JSF and the fly likes Ajax4JSf  ar4:poll resets the h:form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Ajax4JSf  ar4:poll resets the h:form" Watch "Ajax4JSf  ar4:poll resets the h:form" New topic

Ajax4JSf ar4:poll resets the h:form

Remko Strating
Ranch Hand

Joined: Dec 28, 2006
Posts: 893
I'm using the a4j:poll command in the h:form which has to update a hutputText which displays the progress of a long process on the server.

This works fine and updates the hutputText which I have set as a id which has to be reRendered.

Only by rendering of the hutputText other fields are reset to the values which the backing bean has before any changes are made on the h:form

I have solved this by also re rendering the other fields of the h:form within the poll component, which is rather a strange solution

My question is:

Is this normal behaviour of the a4j:poll component or is there a better solution for this?

Remko (My website)
SCJP 1.5, SCWCD 1.4, SCDJWS 1.4, SCBCD 1.5, ITIL(Manager), Prince2(Practitioner), Reading/ gaining experience for SCEA,
I agree. Here's the link: http://aspose.com/file-tools
subject: Ajax4JSf ar4:poll resets the h:form
It's not a secret anymore!