default-submission

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

default-submission

Mats Eklund-2
Hi,

I am using default-submission for a "GETable" page to extract parameters from
the URL/path which then are used to configure the model and the view for the
page. Now, I'd like to handle user actions on that same page using the approach
described in the orbeon documentation, i.e. with action/result elements and
conditions evaluated over the posted-back xml submissions. It seems however
that the default-submission defined for the page overrides the posted-back xml
instance.

Is this approach supposed to work, or I am supposed to use either the
default-submission OR the external xml submission for a page?

Thanks,
Mats


--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: default-submission

Hank Ratzesberger

> Hi,
>
> I am using default-submission for a "GETable" page to extract parameters from
> the URL/path which then are used to configure the model and the view for the
> page. Now, I'd like to handle user actions on that same page using the approach
> described in the orbeon documentation, i.e. with action/result elements and
> conditions evaluated over the posted-back xml submissions. It seems however
> that the default-submission defined for the page overrides the posted-back xml
> instance.
>
> Is this approach supposed to work, or I am supposed to use either the
> default-submission OR the external xml submission for a page?
I can't answer your either/or question.  The page flow controller can
handle many aspects of http, however, XForms has a load element

http://www.w3.org/TR/xforms11/#action-load

also, the attribute replace="all" on submission that will make
the browser load a new page.  With replace="none" you can post
your xml data to any url as long as it returns xml (e.g. a webservice).
So, the posted data can be handled by a separate XPL pipeline in
the background.

--Hank

Institute for Crustal Studies




--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: default-submission

Mats Eklund-2
In reply to this post by Mats Eklund-2
Thanks Hans,

I think I understand your point. Persistance of data into database I am indeed submitting to an independent url, and the response replaces only the data instance. What I am trying to achieve is a centralized definition of the page flow/transitions as described in the docs. However, I don't see whether this is supposed to work in combination with the default-submission approach. Question remains open.

Mats

--- On Sun, 6/14/09, Hank Ratzesberger <[hidden email]> wrote:

From: Hank Ratzesberger <[hidden email]>
Subject: [ops-users] Re: default-submission
To: [hidden email]
Date: Sunday, June 14, 2009, 11:08 PM


> Hi,
>
> I am using default-submission for a "GETable" page to extract parameters from
> the URL/path which then are used to configure the model and the view for the
> page. Now, I'd like to handle user actions on that same page using the approach
> described in the orbeon documentation, i.e. with action/result elements and
> conditions evaluated over the posted-back xml submissions. It seems however
> that the default-submission defined for the page overrides the posted-back xml
> instance.
>
> Is this approach supposed to work, or I am supposed to use either the
> default-submission OR the external xml submission for a page?

I can't answer your either/or question.  The page flow controller can
handle many aspects of http, however, XForms has a load element

http://www.w3.org/TR/xforms11/#action-load

also, the attribute replace="all" on submission that will make
the browser load a new page.  With replace="none" you can post
your xml data to any url as long as it returns xml (e.g. a webservice).
So, the posted data can be handled by a separate XPL pipeline in
the background.

--Hank

Institute for Crustal Studies



-----Inline Attachment Follows-----


--
You receive this message as a subscriber of the ops-users@... mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: default-submission

Alessandro Vernet
Administrator
Mats,

mats.eklund wrote
I think I understand your point. Persistance of data into database I am indeed submitting to an independent url, and the response replaces only the data instance. What I am trying to achieve is a centralized definition of the page flow/transitions as described in the docs. However, I don't see whether this is supposed to work in combination with the default-submission approach. Question remains open.
It is supposed to work, in the sense that the default submission document is only used if no document is posted to the page, which is what you would like to have. Or am I misunderstanding your comment?

Alex
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: default-submission

Mats Eklund-2
In reply to this post by Mats Eklund-2
Thanks! That is the behavior I had expected, and it makes a lot of sense. I will need to troubleshoot a bit more to find out why it doesn't seem to work in my case...

Mats

--- On Fri, 6/19/09, Alessandro Vernet <[hidden email]> wrote:

From: Alessandro Vernet <[hidden email]>
Subject: [ops-users] Re: Re: default-submission
To: [hidden email]
Date: Friday, June 19, 2009, 3:47 AM


Mats,


mats.eklund wrote:
>
> I think I understand your point. Persistance of data into database I am
> indeed submitting to an independent url, and the response replaces only
> the data instance. What I am trying to achieve is a centralized definition
> of the page flow/transitions as described in the docs. However, I don't
> see whether this is supposed to work in combination with the
> default-submission approach. Question remains open.
>

It is supposed to work, in the sense that the default submission document is
only used if no document is posted to the page, which is what you would like
to have. Or am I misunderstanding your comment?

Alex

-----
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet
--
View this message in context: http://www.nabble.com/default-submission-tp24022473p24104312.html
Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.com.


-----Inline Attachment Follows-----


--
You receive this message as a subscriber of the ops-users@... mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: default-submission

Mats Eklund-2
Still having problem with this!!! It works with Opera, but not with Firefox nor Firefox RESTTest plugin!

I am POSTing an xml document to a page that is configured with an xslt-view and no model. In the xslt stylesheet I am attempting to read the posted xml document via the doc('input:instance'), but it only gives me a null document!

Any clue?
Mats


From: Mats Eklund <[hidden email]>
To: [hidden email]
Sent: Saturday, June 20, 2009 9:18:03 AM
Subject: [ops-users] Re: Re: Re: default-submission

Thanks! That is the behavior I had expected, and it makes a lot of sense. I will need to troubleshoot a bit more to find out why it doesn't seem to work in my case...

Mats

--- On Fri, 6/19/09, Alessandro Vernet <[hidden email]> wrote:

From: Alessandro Vernet <[hidden email]>
Subject: [ops-users] Re: Re: default-submission
To: [hidden email]
Date: Friday, June 19, 2009, 3:47 AM


Mats,


mats.eklund wrote:
>
> I think I understand your point. Persistance of data into database I am
> indeed submitting to an independent url, and the response replaces only
> the data instance. What I am trying to achieve is a centralized definition
> of the page flow/transitions as described in the docs. However, I don't
> see whether this is supposed to work in combination with the
> default-submission approach. Question remains open.
>

It is supposed to work, in the sense that the default submission document is
only used if no document is posted to the page, which is what you would like
to have. Or am I misunderstanding your comment?

Alex

-----
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet
--
View this message in context: http://www.nabble.com/default-submission-tp24022473p24104312.html
Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.com.


-----Inline Attachment Follows-----


--
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
OW2 mailing lists service home page: http://www.ow2.org/wws


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: default-submission

Alessandro Vernet
Administrator
Mats,

Mats Eklund-2 wrote
Still having problem with this!!! It works with Opera, but not with Firefox nor Firefox RESTTest plugin!

I am POSTing an xml document to a page that is configured with an xslt-view and no model. In the xslt stylesheet I am attempting to read the posted xml document via the doc('input:instance'), but it only gives me a null document!
Can you share with us a simple/minimal example that shows what you are talking about?

Alex