Hi guys, i want manage my xforms with xforms:group.
My goal is : show a list of records (id) as <xforms:output>. In second time i want to switch a selected row in edit mode as i see in todo xforms example. In the list instance there are 3 field: mode, input, output. The parameter called mode select the view mode (view or edit), the output is the group of data shows in <xforms:output>, the input is the group of data shows in <xforms:input>. When i load my xhtml page i see both view : output mode and input mode. The follow code is my simple page... any suggest is welcome.. Best reguards Leonardo <xhtml:html xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:f="http://orbeon.org/oxf/xml/formatting" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xxi="http://orbeon.org/oxf/xml/xinclude" xmlns:widget="http://orbeon.org/oxf/xml/widget" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xdt="http://www.w3.org/2005/xpath-datatypes" xmlns:xsl="http://www.w3c.org/1999/XSL/Transform" > <xhtml:head> <xhtml:title>Lista Attivita'</xhtml:title> <xforms:model id="default"> <xforms:instance id="activitiesList"> <activities> <activity id="1" mode="view" input="" output="" /> <activity id="2" mode="view" input="" output="" /> <activity id="3" mode="view" input="" output="" /> <activity id="" mode="edit" input="" output="" /> </activities> </xforms:instance> <xforms:bind nodeset="/activities/activity/@id" type="xs:nonNegativeInteger"/> <xforms:bind nodeset="/activities/activity/@input" relevant="/activities/activity/@mode = 'edit'"/> <xforms:bind nodeset="/activities/activity/@output" relevant="/@mode = 'view'"/> <xforms:bind nodeset="/activities/activity/@save-trigger" relevant="/activities/activity/@mode = 'edit'"/> </xforms:model> <xhtml:style type="text/css"> .input input { width: 150px; } .password { width: 20em; } .textarea { height: 6em; width: 20em; } .list-container { padding: 5px; margin-top: 1em; margin-bottom: 5px; border: solid 1px #f93;} </xhtml:style> </xhtml:head> <xhtml:body> <xhtml:p> <xhtml:table align="center" class="list-container" width="800px"> <xhtml:tr> <xhtml:td width="99%" class="list-container">ID</xhtml:td> <xhtml:td width="1%" class="list-container" ></xhtml:td> </xhtml:tr> <xforms:repeat nodeset="instance('activitiesList')/activity[position()]" id="activities-list-repeat"> <xhtml:tr> <xforms:group ref="@output" id="group-output"> <xhtml:td class="list-container"><xforms:output ref="../@id"/></xhtml:td> </xforms:group> <xforms:group ref="@input" id="group-input"> <xhtml:td class="list-container"> <xforms:input ref="../@id" id="idActivity"> <xforms:label></xforms:label> </xforms:input> </xhtml:td> </xforms:group> </xhtml:tr> </xforms:repeat> </xhtml:table> </xhtml:p> </xhtml:body> </xhtml:html> -- Ing. Leonardo Reale QUIX S.r.l. Strada Statale 413, 160/162 41019 - Soliera (MO) Loc.Appalto - ITALY Tel. 0039 059 565388 Fax. 0039 059 565322 [hidden email] [hidden email] -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Leonardo,
You cannot use xforms:groups within xhtml:table because OPS transforms the group into a xhtml:span, which is invalid. If you want to do this you will have to put the group within the xhtml:td Ryan Ryan Puddephatt Software Engineer Teleflex Group - IT UK 1 Michaelson Square Livingston West Lothian Scotland EH54 7DP e> [hidden email] t> +44(0)1506 407 110 f> +44(0)1506 407 108 >-----Original Message----- >From: Leonardo Reale [mailto:[hidden email]] >Sent: 05 January 2007 14:33 >To: [hidden email] >Subject: [ops-users] xforms:group usage > >Hi guys, i want manage my xforms with xforms:group. > >My goal is : show a list of records (id) as <xforms:output>. >In second time i want to switch a selected row in edit mode >as i see in todo xforms example. In the list instance there >are 3 field: mode, input, output. The parameter called mode >select the view mode (view or edit), the output is the group >of data shows in <xforms:output>, the input is the group of >data shows in <xforms:input>. > >When i load my xhtml page i see both view : output mode and input mode. > >The follow code is my simple page... any suggest is welcome.. > >Best reguards >Leonardo > > ><xhtml:html > xmlns:xforms="http://www.w3.org/2002/xforms" > xmlns:f="http://orbeon.org/oxf/xml/formatting" > xmlns:xs="http://www.w3.org/2001/XMLSchema" > xmlns:xhtml="http://www.w3.org/1999/xhtml" > xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" > xmlns:xi="http://www.w3.org/2001/XInclude" > xmlns:xxi="http://orbeon.org/oxf/xml/xinclude" > xmlns:widget="http://orbeon.org/oxf/xml/widget" > xmlns:ev="http://www.w3.org/2001/xml-events" > xmlns:xdt="http://www.w3.org/2005/xpath-datatypes" > xmlns:xsl="http://www.w3c.org/1999/XSL/Transform" > > > <xhtml:head> > <xhtml:title>Lista Attivita'</xhtml:title> > <xforms:model id="default"> > > <xforms:instance id="activitiesList"> > <activities> > <activity id="1" mode="view" input="" output="" /> > <activity id="2" mode="view" input="" output="" /> > <activity id="3" mode="view" input="" output="" /> > <activity id="" mode="edit" input="" output="" >/> > </activities> > </xforms:instance> > > <xforms:bind nodeset="/activities/activity/@id" >type="xs:nonNegativeInteger"/> > > <xforms:bind nodeset="/activities/activity/@input" >relevant="/activities/activity/@mode = 'edit'"/> > <xforms:bind nodeset="/activities/activity/@output" >relevant="/@mode = 'view'"/> > <xforms:bind nodeset="/activities/activity/@save-trigger" >relevant="/activities/activity/@mode = 'edit'"/> > </xforms:model> > <xhtml:style type="text/css"> > .input input { width: 150px; } > .password { width: 20em; } > .textarea { height: 6em; width: 20em; } > .list-container { padding: 5px; margin-top: 1em; >margin-bottom: 5px; border: solid 1px #f93;} > </xhtml:style> > </xhtml:head> > <xhtml:body> > <xhtml:p> > <xhtml:table align="center" class="list-container" >width="800px"> > <xhtml:tr> > <xhtml:td width="99%" >class="list-container">ID</xhtml:td> > <xhtml:td width="1%" class="list-container" > ></xhtml:td> > </xhtml:tr> > <xforms:repeat >nodeset="instance('activitiesList')/activity[position()]" >id="activities-list-repeat"> > <xhtml:tr> > <xforms:group ref="@output" >id="group-output"> > <xhtml:td class="list-container"><xforms:output >ref="../@id"/></xhtml:td> > </xforms:group> > > <xforms:group ref="@input" id="group-input"> > > <xhtml:td class="list-container"> > <xforms:input ref="../@id" id="idActivity"> > <xforms:label></xforms:label> > </xforms:input> > </xhtml:td> > </xforms:group> > > </xhtml:tr> > </xforms:repeat> > </xhtml:table> > </xhtml:p> > > </xhtml:body> ></xhtml:html> > > > > >-- >Ing. Leonardo Reale > >QUIX S.r.l. > >Strada Statale 413, 160/162 >41019 - Soliera (MO) >Loc.Appalto - ITALY >Tel. 0039 059 565388 >Fax. 0039 059 565322 > >[hidden email] >[hidden email] > > > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Ok, i rewrote my example deleting the xhtml:table but the xforms:groups
seems not work. I'm sure the cause is my code but i don't found my error. This is my simple xhtml page, any help is welcome <xhtml:html xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:f="http://orbeon.org/oxf/xml/formatting" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xxi="http://orbeon.org/oxf/xml/xinclude" xmlns:widget="http://orbeon.org/oxf/xml/widget" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xdt="http://www.w3.org/2005/xpath-datatypes" xmlns:xsl="http://www.w3c.org/1999/XSL/Transform" > <xhtml:head> <xhtml:title>Lista Attivita'</xhtml:title> <xforms:model id="default"> <xforms:instance id="list"> <list> <element id="1" mode="view" input="" output="" /> <element id="2" mode="view" input="" output="" /> <element id="3" mode="view" input="" output="" /> <element id="" mode="edit" input="" output="" /> </list> </xforms:instance> <xforms:bind nodeset="/list/element/@id" type="xs:nonNegativeInteger"/> <xforms:bind nodeset="/list/element/@input" relevant="/list/element/@mode = 'edit'"/> <xforms:bind nodeset="/list/element/@output" relevant="/list/element/@mode = 'view'"/> </xforms:model> <xhtml:style type="text/css"> .input input { width: 150px; } .password { width: 20em; } .textarea { height: 6em; width: 20em; } .list-container { padding: 5px; margin-top: 1em; margin-bottom: 5px; border: solid 1px #f93;} </xhtml:style> </xhtml:head> <xhtml:body> <xhtml:p> <xhtml:div style="padding: 5px"> <xforms:repeat nodeset="instance('list')/element[position()]" id="activities-list-repeat"> <xhtml:div> <xforms:group ref="@output"> <xforms:output ref="../@id"/> </xforms:group> <xforms:group ref="@input"> <xforms:input ref="../@id" id="idActivity"> <xforms:label>Pippo</xforms:label> </xforms:input> </xforms:group> </xhtml:div> </xforms:repeat> </xhtml:div> </xhtml:p> </xhtml:body> </xhtml:html> Ryan Puddephatt ha scritto: > Leonardo, > You cannot use xforms:groups within xhtml:table because OPS > transforms the group into a xhtml:span, which is invalid. If you want to do > this you will have to put the group within the xhtml:td > > Ryan > > Ryan Puddephatt > Software Engineer > > Teleflex Group - IT UK > 1 Michaelson Square > Livingston > West Lothian > Scotland > EH54 7DP > > e> [hidden email] > t> +44(0)1506 407 110 > f> +44(0)1506 407 108 > > > > >> -----Original Message----- >> From: Leonardo Reale [mailto:[hidden email]] >> Sent: 05 January 2007 14:33 >> To: [hidden email] >> Subject: [ops-users] xforms:group usage >> >> Hi guys, i want manage my xforms with xforms:group. >> >> My goal is : show a list of records (id) as <xforms:output>. >> In second time i want to switch a selected row in edit mode >> as i see in todo xforms example. In the list instance there >> are 3 field: mode, input, output. The parameter called mode >> select the view mode (view or edit), the output is the group >> of data shows in <xforms:output>, the input is the group of >> data shows in <xforms:input>. >> >> When i load my xhtml page i see both view : output mode and input mode. >> >> The follow code is my simple page... any suggest is welcome.. >> >> Best reguards >> Leonardo >> >> >> <xhtml:html >> xmlns:xforms="http://www.w3.org/2002/xforms" >> xmlns:f="http://orbeon.org/oxf/xml/formatting" >> xmlns:xs="http://www.w3.org/2001/XMLSchema" >> xmlns:xhtml="http://www.w3.org/1999/xhtml" >> xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" >> xmlns:xi="http://www.w3.org/2001/XInclude" >> xmlns:xxi="http://orbeon.org/oxf/xml/xinclude" >> xmlns:widget="http://orbeon.org/oxf/xml/widget" >> xmlns:ev="http://www.w3.org/2001/xml-events" >> xmlns:xdt="http://www.w3.org/2005/xpath-datatypes" >> xmlns:xsl="http://www.w3c.org/1999/XSL/Transform" >> >> <xhtml:head> >> <xhtml:title>Lista Attivita'</xhtml:title> >> <xforms:model id="default"> >> >> <xforms:instance id="activitiesList"> >> <activities> >> <activity id="1" mode="view" input="" output="" /> >> <activity id="2" mode="view" input="" output="" /> >> <activity id="3" mode="view" input="" output="" /> >> <activity id="" mode="edit" input="" output="" >> /> >> </activities> >> </xforms:instance> >> >> <xforms:bind nodeset="/activities/activity/@id" >> type="xs:nonNegativeInteger"/> >> >> <xforms:bind nodeset="/activities/activity/@input" >> relevant="/activities/activity/@mode = 'edit'"/> >> <xforms:bind nodeset="/activities/activity/@output" >> relevant="/@mode = 'view'"/> >> <xforms:bind nodeset="/activities/activity/@save-trigger" >> relevant="/activities/activity/@mode = 'edit'"/> >> </xforms:model> >> <xhtml:style type="text/css"> >> .input input { width: 150px; } >> .password { width: 20em; } >> .textarea { height: 6em; width: 20em; } >> .list-container { padding: 5px; margin-top: 1em; >> margin-bottom: 5px; border: solid 1px #f93;} >> </xhtml:style> >> </xhtml:head> >> <xhtml:body> >> <xhtml:p> >> <xhtml:table align="center" class="list-container" >> width="800px"> >> <xhtml:tr> >> <xhtml:td width="99%" >> class="list-container">ID</xhtml:td> >> <xhtml:td width="1%" class="list-container" >> >>> </xhtml:td> >>> >> </xhtml:tr> >> <xforms:repeat >> nodeset="instance('activitiesList')/activity[position()]" >> id="activities-list-repeat"> >> <xhtml:tr> >> <xforms:group ref="@output" >> id="group-output"> >> <xhtml:td class="list-container"><xforms:output >> ref="../@id"/></xhtml:td> >> </xforms:group> >> >> <xforms:group ref="@input" id="group-input"> >> >> <xhtml:td class="list-container"> >> <xforms:input ref="../@id" id="idActivity"> >> <xforms:label></xforms:label> >> </xforms:input> >> </xhtml:td> >> </xforms:group> >> >> </xhtml:tr> >> </xforms:repeat> >> </xhtml:table> >> </xhtml:p> >> >> </xhtml:body> >> </xhtml:html> >> >> >> >> >> -- >> Ing. Leonardo Reale >> >> QUIX S.r.l. >> >> Strada Statale 413, 160/162 >> 41019 - Soliera (MO) >> Loc.Appalto - ITALY >> Tel. 0039 059 565388 >> Fax. 0039 059 565322 >> >> [hidden email] >> [hidden email] >> >> >> >> >> > > > > ------------------------------------------------------------------------ > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > -- Ing. Leonardo Reale QUIX S.r.l. Strada Statale 413, 160/162 41019 - Soliera (MO) Loc.Appalto - ITALY Tel. 0039 059 565388 Fax. 0039 059 565322 [hidden email] [hidden email] -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
In reply to this post by Leonardo-6
Hi guys, i find my error in the bind tag.
Thank's a lot... Best reguard Leonardo Leonardo Reale ha scritto: > Hi guys, i want manage my xforms with xforms:group. > > My goal is : show a list of records (id) as <xforms:output>. In > second time i want to switch a selected row in edit mode as i see in > todo xforms example. In the list instance there are 3 field: mode, > input, output. The parameter called mode select the view mode (view or > edit), the output is the group of data shows in <xforms:output>, the > input is the group of data shows in <xforms:input>. > > When i load my xhtml page i see both view : output mode and input mode. > > The follow code is my simple page... any suggest is welcome.. > > Best reguards > Leonardo > > > <xhtml:html > xmlns:xforms="http://www.w3.org/2002/xforms" > xmlns:f="http://orbeon.org/oxf/xml/formatting" > xmlns:xs="http://www.w3.org/2001/XMLSchema" > xmlns:xhtml="http://www.w3.org/1999/xhtml" > xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" > xmlns:xi="http://www.w3.org/2001/XInclude" > xmlns:xxi="http://orbeon.org/oxf/xml/xinclude" > xmlns:widget="http://orbeon.org/oxf/xml/widget" > xmlns:ev="http://www.w3.org/2001/xml-events" > xmlns:xdt="http://www.w3.org/2005/xpath-datatypes" > xmlns:xsl="http://www.w3c.org/1999/XSL/Transform" > > > <xhtml:head> > <xhtml:title>Lista Attivita'</xhtml:title> > <xforms:model id="default"> > > <xforms:instance id="activitiesList"> > <activities> > <activity id="1" mode="view" input="" output="" /> > <activity id="2" mode="view" input="" output="" /> > <activity id="3" mode="view" input="" output="" /> > <activity id="" mode="edit" input="" output="" > /> </activities> > </xforms:instance> > <xforms:bind nodeset="/activities/activity/@id" > type="xs:nonNegativeInteger"/> > <xforms:bind > nodeset="/activities/activity/@input" > relevant="/activities/activity/@mode = 'edit'"/> > <xforms:bind nodeset="/activities/activity/@output" relevant="/@mode = > 'view'"/> > <xforms:bind nodeset="/activities/activity/@save-trigger" > relevant="/activities/activity/@mode = 'edit'"/> > </xforms:model> <xhtml:style type="text/css"> > .input input { width: 150px; } > .password { width: 20em; } > .textarea { height: 6em; width: 20em; } > .list-container { padding: 5px; margin-top: 1em; > margin-bottom: 5px; border: solid 1px #f93;} > </xhtml:style> </xhtml:head> > <xhtml:body> > <xhtml:p> <xhtml:table > align="center" class="list-container" width="800px"> > <xhtml:tr> > <xhtml:td width="99%" > class="list-container">ID</xhtml:td> > <xhtml:td width="1%" class="list-container" > ></xhtml:td> </xhtml:tr> > <xforms:repeat > nodeset="instance('activitiesList')/activity[position()]" > id="activities-list-repeat"> > <xhtml:tr> <xforms:group > ref="@output" id="group-output"> <xhtml:td > class="list-container"><xforms:output ref="../@id"/></xhtml:td> > </xforms:group> > > <xforms:group ref="@input" > id="group-input"> <xhtml:td > class="list-container"> > <xforms:input ref="../@id" id="idActivity"> > <xforms:label></xforms:label> > </xforms:input> > </xhtml:td> > </xforms:group> > </xhtml:tr> > </xforms:repeat> </xhtml:table> > </xhtml:p> > </xhtml:body> > </xhtml:html> > > > > > ------------------------------------------------------------------------ > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > -- Ing. Leonardo Reale QUIX S.r.l. Strada Statale 413, 160/162 41019 - Soliera (MO) Loc.Appalto - ITALY Tel. 0039 059 565388 Fax. 0039 059 565322 [hidden email] [hidden email] -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |