Pepijn,
If you use a submission with replace="none" or replace="instance", then
the page will not reload, and the state of your xforms:switch'es will be
kept. Now if you use replace="all" (the default), which in fact loads a
new page from the server, then the state is lost, and as you say there
is no other than manually trying to restore the state of those switches.
If you are submitting data and immediately returning to the same page, I
would advise against using replace="all". The BizDoc example, and our
new upcoming Forms example illustrate for example how you can save
documents and produce resulting status messages without reloading the
page. This is the beauty of XForms and Ajax :-)
-Erik
Pepijn Noltes wrote:
> Hi,
>
> I'm using xforms:switch to show/hide some content for the user.
>
> But if I submit this form to process it server-side, it will come back
> with the xforms:switch state resetted (as aspected).
> Is there any simple way (without the need to create a xml instance for
> show/hide administration) to remember the xforms:switch selected cases ?
>
>
> Thanks,
> Pepijn
--
You receive this message as a subscriber of the
[hidden email] mailing list.
To unsubscribe: mailto:
[hidden email]
For general help: mailto:
[hidden email]?subject=help
ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws