logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: Itemset alternative (not working): msg#00023

Subject: Re: Itemset alternative (not working)
nks.  I had considered preprocessing, and figured it would
be neccessary for at least the instance document (since the node
metadata *is * in seperate documents).  However, I was hoping I wouldn't
have to preprocess the XForms document itself and would be able to pull the 
dynamic parts I need from the instance document alone.  Even so, I'm not
sure why the solution I went with is causing the select/select1 form inputs
to be rendered uncoupled from the instance values on the nodes they are
bound to.  Now I think about it, I believe the problem is that 
*two* evaluation passes are probably needed by the XForms processor to
1) roll out the xf:repeat nodes and their containing
xf:item nodes 2) setting the appropriate 'selected' attributes.  So, it looks
like preprocessing the XForms document is inevitable until itemset is
implemented.  

Chimezie Ogbuji

Zach Roberts wrote:

> That is a pretty unique way to solve this problem, and I am glad you 
> posted it because I think it is a common problem.  There is one 
> alternative you may consider.  Since chiba allows for separate instance 
> and XForm documents, and I believe each of them can be a URI that it 
> will resolve for you, you could pre-process both the instance and the 
> XForm documents through some separate code (using a mod_python -- since 
> you are from fourthought of course, a cocoon pipeline, a servlet filter, 
> or whatever you want) which updates the appropriate lists of options 
> dynamically  (database query, a separate XML DOM include, random number 
> generator, web service call, whatever).  That would be a really easy way 
> to initially to accomplish it, but may lead to some interesting 
> debugging because of the increased number of parts.  Just a thought.  If 
> I am totally off target, feel free to let me know.




-------------------------------------------------------
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 ...
<Prev in Thread] Current Thread [Next in Thread>