logo       

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

Subject: Re: Itemset alternative (not working)
Zach suggested:

> 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 is basically what I have done for my application, however, it only works 
if the instance data that drives the select items is fixed throughout the 
process.  That is, if the instance data can change (say based on some other 
events in the UI) then this won't work, since the original source is only 
queried at the beginning of an XForms session!

So if you use tabbed forms, per the examples, and some values selected on one 
tab need to change the items displayed on a different tab, this technique 
will not work.

At least not with Chicoon under Cocoon.  Maybe the servlet-only version of 
Chiba is different.
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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
boot-loaders.gr...    php.pear.genera...    debugging.valgr...    kde.redhat.user...    text.xml.xsl.ge...    culture.languag...    hardware.microc...    java.servicemix...    redhat.release....    web.zope.plone....    user-groups.lin...    opendarwin.webk...    video.mjpeg.use...    sysutils.bcfg2....    encryption.gpg....    lx-office.devel...    xfree86.forum/2...    mail.mutt.devel...    acpi.devel/2003...    qnx.openqnx.dev...    network.irc.irs...    freebsd.devel.m...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe