asking help

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

asking help

RachidEHTP
Hi

 I have some problems in these points :

1- how can we use the value of the attribute "action" of the xml submission if we have a page in which we use a matcher :

 Exple :

page-flow :

  <page id="sous"
                path-info="/souscription/saisie-critere-transfert/([0-9]+)"
                matcher="oxf:perl5-matcher"
                view="oxf:/pages/page1.xsl">
              <param ref="/form/id-produit"/>
</page>

 and in an another page, i use Xml submission which must have as action the "sous" page.

2- It's possible to use in xml submission the id of the page instead of the path-info ?

3 - in the page1.xsl  ,  if we want to use an xml submission for the same page, we can use "action ='.'  " , but that not work for me.

4- is there a method to share all tne instance b/w  pages without usint Xupdate, especeally in the case of the long instances.

  Thanks a lot








--
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: asking help

Alessandro Vernet
Administrator
Rachid,

On Mon, Apr 14, 2008 at 3:26 PM, ZENOUAKI rachid
<[hidden email]> wrote:

> 1- how can we use the value of the attribute "action" of the xml submission
> if we have a page in which we use a matcher :
>
>  Exple :
>
> page-flow :
>
>   <page id="sous"
>                 path-info="/souscription/saisie-critere-transfert/([0-9]+)"
>                 matcher="oxf:perl5-matcher"
>                 view="oxf:/pages/page1.xsl">
>                <param ref="/form/id-produit"/>
> </page>
When you have a <param> in general you will have a default-submission
attribute on <page> that points to an "empty instance", which is then
"filled by" the <param>.

> 2- It's possible to use in xml submission the id of the page instead of the
> path-info ?

You mean, in an XForms submission? No, it is not. You have to use a path there.

> 3 - in the page1.xsl  ,  if we want to use an xml submission for the same
> page, we can use "action ='.'  " , but that not work for me.

If the current page is http://gaga/foo and you have action="." the
submission will be done to http://gaga/, not http://gaga/foo. So you
would have to write action="foo" in this case. But I rarely see
submission done to the same page, because in general instead of having
to reload the same page with some data changed in it, you'd better
just "update" the page that is already loaded, and if you need some
information from the server to do that, you would get with an
submission replace="instance".

> 4- is there a method to share all tne instance b/w  pages without usint
> Xupdate, especeally in the case of the long instances.

You could imagine storing those instances in the session, but that can
cause all kind of problems (typically when users open multiple browser
windows pointing to your site). So it might be better off passing this
information from page to page.

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


--
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