I'm trying to run an OPS 3.0 application. I've set it up in an exploded
WAR file according to instructions Eric provided some time back (see attached; I've followed these all except for last instruction concerning the <context> pointer from Tomcat's "server.xml" file). So, in Tomcat, I have the folder structure webapps/tooleval/WEB-INF and the attached zip file is located in "WEB-INF". I get the initial page of the application, but none of the buttons work. I'm assuming there is a pathing or namespace issue causing the problem, but so far I've been unable to spot the problem. If anyone else can, please point it out to me. Thanks, Don resources.zip (60K) Download Attachment |
Administrator
|
On 4/4/06, Smith, Donald <[hidden email]> wrote:
> I get the initial page of the application, but none of the buttons work. > I'm assuming there is a pathing or namespace issue causing the problem, > but so far I've been unable to spot the problem. If anyone else can, > please point it out to me. Hi Don, On which page should I go to reproduce this problem? I ran your resources went to /toolEvaluation and clicked on the first button. There I get a "page not found", and this is because in resources\ToolEvalApp\view.xhtml there is a submission to /toolEval, which is not defined in the page flow. Alex -- Blog (XML, Web apps, Open Source): 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
In reply to this post by Smith, Donald
Thanks Alex,
Well, you found the basic problem. In your case, clicking on any button on the initial page gets you a "page not found" message. I don't even get that. . . I corrected the submission action in resources\ToolEvalApp\view.xhtml as follows: <xforms:submission id="main-submission" method="post" action="/toolEvaluation"/> This now matches the "path-info" value for the initial page of the application. Unfortunately, I still get nothing when I run the application and click on any of the four buttons. Any other ideas? (Also, my attempt to view the content of the form using <p style="margin-top: 2em"> <xforms:group> <xforms:label>XForms instance</xforms:label> <xforms:output ref="instance('formatted')" mediatype="text/html"/> </xforms:group> </p> Doesn't work either.) Don -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Alessandro Vernet Sent: Tuesday, April 04, 2006 8:31 PM To: [hidden email] Subject: Re: [ops-users] Initial page running, but nothing else On 4/4/06, Smith, Donald <[hidden email]> wrote: > I get the initial page of the application, but none of the buttons work. > I'm assuming there is a pathing or namespace issue causing the > problem, but so far I've been unable to spot the problem. If anyone > else can, please point it out to me. Hi Don, On which page should I go to reproduce this problem? I ran your resources went to /toolEvaluation and clicked on the first button. There I get a "page not found", and this is because in resources\ToolEvalApp\view.xhtml there is a submission to /toolEval, which is not defined in the page flow. Alex -- Blog (XML, Web apps, Open Source): 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 |
Donald,
>-----Original Message----- >From: Smith, Donald [mailto:[hidden email]] >Sent: 05 April 2006 14:48 >To: [hidden email] >Subject: RE: [ops-users] Initial page running, but nothing else > >Thanks Alex, > >Well, you found the basic problem. In your case, clicking on any button >on the initial page gets you a "page not found" message. I don't even >get that. . . > >I corrected the submission action in resources\ToolEvalApp\view.xhtml as >follows: > > <xforms:submission id="main-submission" method="post" >action="/toolEvaluation"/> > ref="instance('instanceid')" to send the data Also you need a replace attribute can be all/none/instance If its instance you need an instance="instanceid" attribute to tell it what to change. >This now matches the "path-info" value for the initial page of the >application. Unfortunately, I still get nothing when I run the >application and click on any of the four buttons. > >Any other ideas? > >(Also, my attempt to view the content of the form using > ><p style="margin-top: 2em"> > <xforms:group> > <xforms:label>XForms instance</xforms:label> > <xforms:output ref="instance('formatted')" mediatype="text/html"/> > </xforms:group> ></p> > <xforms:bind nodeset="instance('formatted')" calculate="saxon:serialize(xxforms:call-xpl('oxf:/config/theme/format.xpl',' data',instance('instanceid'),'data')/*,'html')"/> In your xforms:model? Should work with that! >Doesn't work either.) > >Don > Ryan Puddephatt Software Engineer TFX Group - IT UK 1 Michaelson Square Livingston West Lothian Scotand EH54 7DP * [hidden email] ( 01506 407 110 7 01506 407 108 -- 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 Smith, Donald
Ryan,
>You don't have a ref attribute in here, it should be ref="instance('instanceid')" to send the data It appears the both "ref" and "replace" are optional: "3.2.3. Migrating to the OPS 3.0 XForms Engine The xforms:submission element now requires an id attribute to be useful (by being referred from the submission attribute of xforms:submit or xforms:send). Attributes action and method are also mandatory." And in any case, I'm not sure "replace" is yet supported. There is this known limitation of 3.0: "3. Changes in Verion 3.0.0 3.1. Known Limitations of OPS 3.0 XForms upload controls only work within forms that are submitted with a reference to a submission element with replace="all". The value of XForms upload controls is ignored when forms are submitted with replace="instance" or replace="none"." I assume this limitation is the case and that the following implementation note is provisional (but I'm not sure): "3.2. XForms 3.2.1. New Features XForms submission. The XForms engine supports submitting forms as application/xml with HTTP POST and application/x- www-form-urlencoded with HTTP GET (including to external applications). Support for replace="instance", replace="all", and replace="none" is included." >Do you have the <xforms:bind nodeset="instance('formatted')" calculate="saxon:serialize(xxforms:call-xpl('oxf:/config/theme/format.xp l',' data',instance('instanceid'),'data')/*,'html')"/> >In your xforms:model? Ah, thanks. That one I had missed. However, I'm now getting this error as a result of the "bind" statement: "The length of sequence of input names (1) must be equal to the length of the sequence of input nodes (0)." Seems I have one too many arguments, but not sure which one. Don -- 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 |
Don,
>-----Original Message----- >From: Smith, Donald [mailto:[hidden email]] >Sent: 05 April 2006 16:28 >To: [hidden email] >Subject: RE: [ops-users] Initial page running, but nothing else > >Ryan, > >>You don't have a ref attribute in here, it should be >ref="instance('instanceid')" to send the data > >It appears the both "ref" and "replace" are optional: > > "3.2.3. Migrating to the OPS 3.0 XForms Engine > > The xforms:submission element now requires an id attribute to be >useful (by being referred from the submission attribute of >xforms:submit or xforms:send). Attributes action and method are also >mandatory." > >And in any case, I'm not sure "replace" is yet supported. There is this >known limitation of 3.0: > > "3. Changes in Verion 3.0.0 > 3.1. Known Limitations of OPS 3.0 > > XForms upload controls only work within forms that are submitted >with a reference to a submission element with replace="all". The value >of XForms upload controls is ignored when forms are submitted with >replace="instance" or replace="none"." > >I assume this limitation is the case and that the following >implementation note is provisional (but I'm not sure): > > "3.2. XForms > 3.2.1. New Features > > XForms submission. The XForms engine supports submitting forms >as application/xml with HTTP POST and application/x- >www-form-urlencoded with HTTP GET (including to external applications). >Support for replace="instance", replace="all", and >replace="none" is included." > > without any problem in 3.0.1. >>Do you have the > ><xforms:bind nodeset="instance('formatted')" >calculate="saxon:serialize(xxforms:call-xpl('oxf:/config/theme/format.xp >l',' >data',instance('instanceid'),'data')/*,'html')"/> > >>In your xforms:model? > >Ah, thanks. That one I had missed. However, I'm now getting this error >as a result of the "bind" statement: > >"The length of sequence of input names (1) must be equal to the length >of the sequence of input nodes (0)." > instance('instanceid')! Basically the function is specifying that the parameter before (data) is the input to be linked up to! And this should be the input, is this correctly set up to your instance id? >Seems I have one too many arguments, but not sure which one. > >Don > Ryan Puddephatt Software Engineer TFX Group - IT UK 1 Michaelson Square Livingston West Lothian Scotand EH54 7DP * [hidden email] ( 01506 407 110 7 01506 407 108 -- 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 Smith, Donald
Ryan,
>Hmm, I've had this one before.....It is something to do with the instance('instanceid')! Basically the function is >specifying that the parameter before (data) is the input to be linked up to! And this should be the input, is this >correctly set up to your instance id? I tried different things in the "instance()" function and the "data" argument that follows, just to see what would happen. The initial page runs again, but it doesn't properly display the content of the form. Here's my model: <xforms:model id="main-model"> <xforms:instance id="formatted"> <formated-instance xmlns=""> <span> </span> </formated-instance> </xforms:instance> <xforms:instance id="main"> <instance xmlns=""> <action/> </instance> </xforms:instance> <xforms:bind nodeset="instance('formatted')" calculate="saxon:serialize(xxforms:call-xpl('oxf:/config/theme/format.xp l','data', instance('main'),'data')/*,'html')"/> <xforms:submission id="main-submission" method="post" action="/toolEvaluation"/> </xforms:model> Don -- 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 |
Try removing saxon:serialize and putting that in an xforms:output
<xforms:bind nodeset="instance('formatted')" calculate="xxforms:call-xpl('oxf:/config/theme/format.xpl','data', instance('main'),'data')"/> <xforms:output value="saxon:serialize(instance('formatted'),'html')" mediatype="text/html"/> That should do it Ryan Puddephatt Software Engineer TFX Group - IT UK 1 Michaelson Square Livingston West Lothian Scotand EH54 7DP * [hidden email] ( 01506 407 110 7 01506 407 108 >-----Original Message----- >From: Smith, Donald [mailto:[hidden email]] >Sent: 05 April 2006 16:46 >To: [hidden email] >Subject: RE: [ops-users] Initial page running, but nothing else > >Ryan, > >>Hmm, I've had this one before.....It is something to do with the >instance('instanceid')! Basically the function is >>specifying that the parameter before (data) is the input to be linked >up to! And this should be the input, is this >>correctly set up to your instance id? > >I tried different things in the "instance()" function and the "data" >argument that follows, just to see what would happen. The initial page >runs again, but it doesn't properly display the content of the form. > >Here's my model: > ><xforms:model id="main-model"> > <xforms:instance id="formatted"> > <formated-instance xmlns=""> > <span> > </span> > </formated-instance> > </xforms:instance> > <xforms:instance id="main"> > <instance xmlns=""> > <action/> > </instance> > </xforms:instance> > <xforms:bind nodeset="instance('formatted')" >calculate="saxon:serialize(xxforms:call-xpl('oxf:/config/theme/format.xp >l','data', instance('main'),'data')/*,'html')"/> > <xforms:submission id="main-submission" method="post" >action="/toolEvaluation"/> ></xforms:model> > >Don > -- 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 Ryan Puddephatt
On 4/5/06, Ryan Puddephatt <[hidden email]> wrote:
> Sounds like it might only be partially supported then, I use all three > without any problem in 3.0.1. Ryan/Don, The restriction only applies to the XForms upload control. Other controls work just fine with replace="instance". Alex -- Blog (XML, Web apps, Open Source): 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |