Using 3.5 M1
I have in file access.xhtml --------------------- <f:instance xmlns:f="http://www.w3.org/2002/xforms"> <config> <collection/> <paswoord/> <read-only/> <template>overview</template> <message/> </config> </f:instance> I have in the page flow ----------------------- <page id="access" path-info="/spil-edit/access" view="access.xhtml"> <action when="/config/paswoord = 'zzz'"> <result page="search"/> </action> <action when="/config/paswoord != 'zzz'"> <result page="access2" transform="oxf:xupdate"> <xu:transformations xmlns:xu="http://www.xmldb.org/xupdate"> <xu:update select="/config/collection"> <xu:value-of select="document('input:instance')/config/collection"/> </xu:update> <xu:update select="/config/paswoord"/> <xu:update select="/config/read-only"> <xu:value-of select="document('input:instance')/config/read-only"/> </xu:update> <xu:update select="/config/template"> <xu:value-of select="document('input:instance')/config/template"/> </xu:update> <xu:update select="/config/message"/> </xu:transformations> </result> </action> </page> ---------------------------------------------------------- I have in file access2.xhtml <f:instance xmlns:f="http://www.w3.org/2002/xforms"> <config> <collection/> <paswoord/> <read-only/> <template>overview</template> <message/> </config> </f:instance> ------------------------------------------------------------ a) Everything works except for the updating part, all fields of access2 are empty. I must be missing something trivial, but I don't see it. b) When I change 'access2' to 'access' (opening the same page again) <action when="/config/paswoord != 'zzz'"> <result page="access2 ----> access" transform="oxf:xupdate"> I get a Firefox error (too much redirection). Isn't it possible to go back to the same page using this mechanism? Thanks for the help. Paul -- 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 |
Paul,
A) the access2.xhtml doesn't copy in the XML you have created, replace <config>... with <xi:include href="input:instance"/> this should copy in the XML you have created. If there are occasions where no XML will be provided for the page, then add a @default-submission to you <page> definition pointing to a file containing the <config>... B) It isn't possible to go back to the same page, because it will constantly redirect as the conditions are still true, causing a never ending loop! Don't put the @page attribute on there and it should work fine Hope this helps 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: [hidden email] [mailto:[hidden email]] >Sent: 04 November 2006 13:57 >To: [hidden email] >Subject: [ops-users] problem using PFC for passing instance parameters > >Using 3.5 M1 > >I have in file access.xhtml >--------------------- > <f:instance xmlns:f="http://www.w3.org/2002/xforms"> > <config> > <collection/> > <paswoord/> > <read-only/> > <template>overview</template> > <message/> > </config> > </f:instance> > >I have in the page flow >----------------------- ><page id="access" path-info="/spil-edit/access" view="access.xhtml"> > <action when="/config/paswoord = 'zzz'"> > <result page="search"/> > </action> > <action when="/config/paswoord != 'zzz'"> > <result page="access2" transform="oxf:xupdate"> > <xu:transformations >xmlns:xu="http://www.xmldb.org/xupdate"> > <xu:update select="/config/collection"> > <xu:value-of >select="document('input:instance')/config/collection"/> > </xu:update> > <xu:update select="/config/paswoord"/> > <xu:update select="/config/read-only"> > <xu:value-of >select="document('input:instance')/config/read-only"/> > </xu:update> > <xu:update select="/config/template"> > <xu:value-of >select="document('input:instance')/config/template"/> > </xu:update> > <xu:update select="/config/message"/> > </xu:transformations> > </result> > </action> > </page> >---------------------------------------------------------- >I have in file access2.xhtml > > <f:instance xmlns:f="http://www.w3.org/2002/xforms"> > <config> > <collection/> > <paswoord/> > <read-only/> > <template>overview</template> > <message/> > </config> > </f:instance> > >------------------------------------------------------------ >a) Everything works except for the updating part, all fields >of access2 are empty. >I must be missing something trivial, but I don't see it. > >b) When I change 'access2' to 'access' (opening the same page >again) <action when="/config/paswoord != 'zzz'"> > <result page="access2 ----> access" >transform="oxf:xupdate"> I get a Firefox error (too much redirection). >Isn't it possible to go back to the same page using this mechanism? > > >Thanks for the help. > > >Paul > > > -- 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 |