I have a situation where I am using a single instance document, but my XForms
UI uses multiple tabs (similar to the examples in the Chiba distribution) to
manipulate the data in that instance.
The quandry I've now hit is because I do revalidation to ensure that required
fields are filled in before leaving the first tab....but now I need to do the
same on a different tab as well.
Doing a revalidate as part of the trigger that switches the view to a new tab
won't work in this case. If I'm on the first tab, then it's guaranteed that
fields on the later tab are not yet filled in, which means the revalidate
will fail, and thus the trigger won't allow switching to the other tab.
I'm trying to figure out a way to get around this...so that basically I limit
a revalidate to only the fields on the tab that is currently visible.
I was thinking that I could possibly use a 2nd model, that points to the same
instance, but has the validation rules for the 2nd tab only. Is this a
kosher thing to do with XForms, that is, have two models that point to the
same instance? What about in Chiba? Will it allow me to do something like
this (even if it's not a part of the official XForms spec)? Note that both
models would have to point to the identical instance of the instance (eg. I
don't want two copies of the instance data!) for this to work.
Any other ideas on how to get around this quandry?
Thanks for any/all advice on this one!
Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|