[Chiba-users] Problems to show required symbols into lists
Creators discontinued Chiba & founded betterFORM http://betterform.de
Brought to you by:
chibaxforms,
windauer
From: <rf...@gm...> - 2007-05-24 09:51:44
|
Hi all,=20 I'd like to ask you some advice about several problems I've had so far usin= g "required" parameter.=20 =20 1) In a "repeat" of fields when you put required=3D"true()", no symbol appe= ars when you append a new element.=20 Please have a look at this example extracted and modified from the last chi= baweb version (named testDate.xhtml and renamed as testDateRequired.xhtml) =20 <?xml version=3D"1.0" encoding=3D"UTF-8"?> <!-- $Id: testDate.xhtml,v 1.3 2007/03/22 09:44:10 windauer Exp $ --> <html xmlns=3D"http://www.w3.org/1999/xhtml" xmlns:xf=3D"http://www.w3.org/2002/xforms" xmlns:xs=3D"http://www.w3.org/2001/XMLSchema" xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"> <head> <title>Test form for Date Controls</title> <xf:model> <xf:instance xmlns=3D""> <data> <repeated-date> <item>2004-01-06</item> <item>2003-02-05</item> <item>2002-03-04</item> <item></item> </repeated-date> </data> </xf:instance> =20 <xf:bind id=3D"b-date" nodeset=3D"repeated-date/item[position() != =3D last()]" > <xf:bind id=3D"b-date-entry" nodeset=3D"." type=3D"date" requir= ed=3D"true()" /> </xf:bind> =20 <xf:submission id=3D"s-debug" action=3D"../../resources/jsp/debug-i= nstance.jsp" method=3D"post" replace=3D"all" validate=3D"false"/> </xf:model> </head> <body> <xf:group appearance=3D"full"> <xf:label>Date Tests</xf:label> <xf:group> <xf:label>Repeated Date entries</xf:label> <xf:trigger> <xf:label>Append new entry</xf:label> <xf:action> <xf:insert nodeset=3D"repeated-date/item" at=3D"last()" req= uired=3D"true()" position=3D"before"/> </xf:action> </xf:trigger> <xf:trigger> <xf:label>Delete selected entry</xf:label> <xf:action> <xf:delete nodeset=3D"repeated-date/item" at=3D"index('date= -entries')"/> </xf:action> </xf:trigger> <xf:repeat id=3D"date-entries" bind=3D"b-date" appearance=3D"full"> <xf:input bind=3D"b-date-entry"> <xf:label>Date entry</xf:label> <xf:alert>Must be a date</xf:alert> </xf:input> </xf:repeat> </xf:group> <xf:trigger> <xf:label>Debug</xf:label> <xf:send submission=3D"s-debug"/> </xf:trigger> </xf:group> </body> </html> =20 May be there is some bug reported or related that scapes me. I have looked= for any but without good luck.=20 =20 Thanks in advance, Ruben Perez ______________________ Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informacion clasificada por su emisor como confidencial en el marco de su Sistema de Gestion de Seguridad de la=20 Informacion siendo para uso exclusivo del destinatario, quedando=20 prohibida su divulgacion copia o distribucion a terceros sin la=20 autorizacion expresa del remitente. Si Vd. ha recibido este mensaje=20 erroneamente, se ruega lo notifique al remitente y proceda a su borrado.= =20 Gracias por su colaboracion. ______________________ This message including any attachments may contain confidential=20 information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it. ______________________ |