logo       

Re: Another Chiba 0.9.2 bug using xform:select: msg#00006

Subject: Re: Another Chiba 0.9.2 bug using xform:select
hi andrzej,

thanks again for the bug report. i'm happy to tell that this is a xslt
stylesheet issue instead of a processing core bug. in other words:
you'll get this bug too using binds.

however, there is a simple patch which you should apply to
'html-form-controls.xsl':

1. locate the named template 'build-checkboxes' (line 289).
2. move '<input type="hidden" name="{$name}" value=""/>' (line 303)
between the end of the xsl:choose (line 305) block and the (line 306)
xsl:apply-templates direction.

the reason for this is that some browsers do not return any parameter
for a deselected checkbox instead of returning an empty parameter. so we
added a hidden parameter to keep track of checkboxes' state, but
unfortunately we only went half the way and cared only deselected
checkboxes to stay deselected ...

the patch is included in the next version.

regards, uli.

Andrzej Jan Taramina wrote:

Joern/Uli:

I have discovered another bug in Chiba 0.9.2.

If you have a select that uses a ref into your instance document, and you are using triggers to flip between different switch cases, then once an option is selected, it is never deselected.

In fact, if you deselect the item checkbox, click on a different tab, then click back to the tab with the checkbox, it will be selected again.

Oooops!

If you have a quick fix, can you tell me where to patch the code? I can't wait til 0.9.3 for a fix unfortunately, and depending how much 0.9.3 changed from 0.9.2 may not be able to upgrade quick enough even when the new release does come out.

I've attached test cases for you (as usual). vcard.xml and vcard.xsl. These will work with the ChibaServlet.....you don't need Chicoon to replicatethis bug. Just copy these two files into the chiba-0.9.2/forms and chiba- 0.0.2/WEB-INF/xslt respectively and give it a try.
Thanks!

Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com



------------------------------------------------------------------------

The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any other MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.

   ---- File information -----------
     File:  vcard.xml
     Date:  1 Nov 2003, 22:11
     Size:  16667 bytes.
     Type:  Unknown


------------------------------------------------------------------------

The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any other MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.

   ---- File information -----------
     File:  vcard.xsl
     Date:  1 Nov 2003, 22:03
     Size:  8182 bytes.
     Type:  Unknown


--
Ulrich Nicolas Lissé






-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/


<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