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/
|