You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Beat Durrer <bd...@gmail.com> on 2012/03/08 13:45:26 UTC

Page refresh with FormFragments

Hi guys

I'm using a RadioGroup which is linked to 3 FormFragments using the
TriggerFragment mixin.
When you select a radio, one of the 3 FormFragments is shown. To not
loose the selection on Validation errors, I added a
@Persist(PersistenceConstants.FLASH) onto the variable which holds the
radio-value.

Now when you select a radio and submit the form, all values are stored
and the form is loaded again. Everything okay so far.
Now if I select a different radio (so a different Fragment is shown)
and hit F5 to refresh the page, the new radio selection is still
active but the wrong fragment is shown (it's the one from the previous
selection).
When I click anywhere into the form, the correct fragment is shown.

I also noticed that behavior in examples, so I guess it's probably not
entirely my fault. Is it a bug? Can I somehow prevent that confusing
behavior?

Examples (just change the radio selection and hit refresh):
http://lombok.demon.co.uk/tapestry5Demo/test/core/formfragmentdemoone
http://lombok.demon.co.uk/tapestry5Demo/test/core/formfragmentdemotwo


Cheers
Beat

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org