All,
I have come across several use cases where I wish to perform a GET submission, without sending any instance data: <xforms:submission id="knowledgebase-nav-submission" method="get" action="/knowledgebase"/> There are several reasons for this: 1. I wish to use the Orbeon Forms rendering of XForms Controls to GET these links (UI widgets, instance checking, logging, etc.) 2. A GET submission generates (in my opinion) nasty URLs, as it contains URLEncoded XML for the instance submitted 3. I might want to use URL-rewriting to get proper URLs for my pages that require form inputs, e.g. http://somewebsite.com/myapplication/user/12349683 (get user with ID "12349683") I believe the XForms specification calls for allways having an instance when you are performing the submission (omitting the attribute causes a default instance to be submitted), so I'm not sure if this is on their radar. So how can this be achieved? Should this even be possible? Can I overcome my issues in other ways? Orbeon Community, what do you think? How would you like the 'get' submission to behave? Also, has anyone of you implemented URL-rewriting of the kind I am proposing (i.e. http://mysite/myapp/entity/entity-id)? I'ld be interested in hearing about your experiences. My 2 cents. Sincerely, Henrik Pettersen Advanced Computation Laboratory Cancer Research UK -- 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 |
Henrick,
I tend to create a dummy instance <xforms:instance id="dummy-instance"> <instance/> </xforms:instance> This gets around this problem 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: Henrik Pettersen [mailto:[hidden email]] >Sent: 27 November 2006 15:33 >To: [hidden email] >Subject: [ops-users] xforms:submission with GET > >All, > >I have come across several use cases where I wish to perform a >GET submission, without sending any instance data: > ><xforms:submission id="knowledgebase-nav-submission" > method="get" > action="/knowledgebase"/> > >There are several reasons for this: >1. I wish to use the Orbeon Forms rendering of XForms Controls >to GET these links (UI widgets, instance checking, logging, >etc.) 2. A GET submission generates (in my opinion) nasty >URLs, as it contains URLEncoded XML for the instance submitted >3. I might want to use URL-rewriting to get proper URLs for my >pages that require form inputs, e.g. >http://somewebsite.com/myapplication/user/12349683 (get user with ID >"12349683") > >I believe the XForms specification calls for allways having an >instance when you are performing the submission (omitting the >attribute causes a default instance to be submitted), so I'm >not sure if this is on their radar. > >So how can this be achieved? Should this even be possible? Can >I overcome my issues in other ways? Orbeon Community, what do >you think? >How would you like the 'get' submission to behave? > >Also, has anyone of you implemented URL-rewriting of the kind >I am proposing (i.e. http://mysite/myapp/entity/entity-id)? >I'ld be interested in hearing about your experiences. > >My 2 cents. > >Sincerely, >Henrik Pettersen >Advanced Computation Laboratory >Cancer Research UK > > -- 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 |
Ryan,
that's a good workaround that will work. Thanks! Some issues to consider still: 1. Is this is a hack around the XForms spec? Or the Orbeon Forms implementation of the spec? If the former, should the XForms Working Group consider this scenario? 2. You get a question mark at the end of the URL, even though there are no URL parameters. My 2 cents. Henrik On 11/27/06, Ryan Puddephatt <[hidden email]> wrote: > Henrick, > I tend to create a dummy instance > > <xforms:instance id="dummy-instance"> > <instance/> > </xforms:instance> > > This gets around this problem > > 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: Henrik Pettersen [mailto:[hidden email]] > >Sent: 27 November 2006 15:33 > >To: [hidden email] > >Subject: [ops-users] xforms:submission with GET > > > >All, > > > >I have come across several use cases where I wish to perform a > >GET submission, without sending any instance data: > > > ><xforms:submission id="knowledgebase-nav-submission" > > method="get" > > action="/knowledgebase"/> > > > >There are several reasons for this: > >1. I wish to use the Orbeon Forms rendering of XForms Controls > >to GET these links (UI widgets, instance checking, logging, > >etc.) 2. A GET submission generates (in my opinion) nasty > >URLs, as it contains URLEncoded XML for the instance submitted > >3. I might want to use URL-rewriting to get proper URLs for my > >pages that require form inputs, e.g. > >http://somewebsite.com/myapplication/user/12349683 (get user with ID > >"12349683") > > > >I believe the XForms specification calls for allways having an > >instance when you are performing the submission (omitting the > >attribute causes a default instance to be submitted), so I'm > >not sure if this is on their radar. > > > >So how can this be achieved? Should this even be possible? Can > >I overcome my issues in other ways? Orbeon Community, what do > >you think? > >How would you like the 'get' submission to behave? > > > >Also, has anyone of you implemented URL-rewriting of the kind > >I am proposing (i.e. http://mysite/myapp/entity/entity-id)? > >I'ld be interested in hearing about your experiences. > > > >My 2 cents. > > > >Sincerely, > >Henrik Pettersen > >Advanced Computation Laboratory > >Cancer Research UK > > > > > > > > > > -- > 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 > > > -- 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 |
Administrator
|
In reply to this post by Henrik Pettersen
Henrik,
> I have come across several use cases where I wish to perform a GET > submission, without sending any instance data: > > <xforms:submission id="knowledgebase-nav-submission" > method="get" > action="/knowledgebase"/> > > There are several reasons for this: > 1. I wish to use the Orbeon Forms rendering of XForms Controls to GET > these links (UI widgets, instance checking, logging, etc.) > 2. A GET submission generates (in my opinion) nasty URLs, as it > contains URLEncoded XML for the instance submitted > 3. I might want to use URL-rewriting to get proper URLs for my pages > that require form inputs, e.g. > http://somewebsite.com/myapplication/user/12349683 (get user with ID > "12349683") > > I believe the XForms specification calls for allways having an > instance when you are performing the submission (omitting the > attribute causes a default instance to be submitted), so I'm not > sure if this is on their radar. > > So how can this be achieved? Should this even be possible? Can I > overcome my issues in other ways? Orbeon Community, what do you > think? How would you like the 'get' submission to behave? > > Also, has anyone of you implemented URL-rewriting of the kind I am > proposing (i.e. http://mysite/myapp/entity/entity-id)? I'ld be > interested in hearing about your experiences. I have some good news for you: XForms 1.1 calls for a @serialize attribute: <xforms:submission serialize="false" ...> This is implemented in Orbeon Forms since a week or two. -Erik -- Orbeon Forms - XForms Everywhere http://www.orbeon.com/blog/ -- 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 |
Administrator
|
In reply to this post by Henrik Pettersen
Henrik,
> that's a good workaround that will work. Thanks! > > Some issues to consider still: > 1. Is this is a hack around the XForms spec? Or the Orbeon Forms > implementation of the spec? If the former, should the XForms Working > Group consider this scenario? It's a hack, but compatible with the spec. As mentioned in my other response, the WG has now addressed this scenario with the @serialize attribute. > 2. You get a question mark at the end of the URL, even though there > are no URL parameters. I believe this bug was fixed recently. If not, please let us know. -Erik -- Orbeon Forms - XForms Everywhere http://www.orbeon.com/blog/ -- 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 Erik Bruchez
Fantastic! Allways one step ahead ;-)
Henrik On 11/27/06, Erik Bruchez <[hidden email]> wrote:
Henrik, -- 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 |