Problem with xforms:load returning oxf:/ URL

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

Problem with xforms:load returning oxf:/ URL

Jack Cox
I have an interesting behavior going on with the xforms:load action.

The Orbeon engine seems to be telling the browser to load a new page with a
URL that begins with the 'oxf:' protocol.  And, as would be expected, the
browser has no idea what do do with that protocol.
 

Below is the sample of a trigger doing an xforms:load:

<xforms:trigger appearance="minimal">
  <xforms:label>Done</xforms:label>
  <xforms:action ev:event="DOMActivate">
    <xforms:load
resource="/"
show="replace" />
  </xforms:action>
</xforms:trigger>

The page-flow.xml file is pretty straight-forward, shown below:

<page id="welcome" path-info="/" view="empty.xhtml"
      default-submission="/model/parameters.xml">
  <action>
    <result page="first-page" />
  </action>
</page>
<page id="login" path-info="/login/login" view="login/login.xhtml" />
<page id="first-page" path-info="/first-page" view="view.xhtml"
      default-submission="/model/parameters.xml"/>
<page id="app-edit" path-info="/app-edit" view="app-edit-view.xhtml"
      default-submission="/model/parameters.xml" >
<setvalue ref="/parameters/action" parameter="action" />
<setvalue ref="/parameters/application-id" parameter="application-id" />
</page>

Thanks,

Jack

---------------------
Jack Cox
CapTech Ventures, Inc.
1118 W. Main St.
Richmond, VA 23220
804-545-8765




--
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
Reply | Threaded
Open this post in threaded view
|

Re: Problem with xforms:load returning oxf:/ URL

Erik Bruchez
Administrator
Jax, do you happen to use XInclude in your page?

If so, try using the xxi:omit-xml-base="true" on your xi:include, with
xmlns:xxi="http://orbeon.org/oxf/xml/xinclude".

-Erik

Jack Cox wrote:

> I have an interesting behavior going on with the xforms:load action.
>
> The Orbeon engine seems to be telling the browser to load a new page with a
> URL that begins with the 'oxf:' protocol.  And, as would be expected, the
> browser has no idea what do do with that protocol.
>  
>
> Below is the sample of a trigger doing an xforms:load:
>
> <xforms:trigger appearance="minimal">
>   <xforms:label>Done</xforms:label>
>   <xforms:action ev:event="DOMActivate">
>     <xforms:load
> resource="/"
> show="replace" />
>   </xforms:action>
> </xforms:trigger>
>
> The page-flow.xml file is pretty straight-forward, shown below:
>
> <page id="welcome" path-info="/" view="empty.xhtml"
>       default-submission="/model/parameters.xml">
>   <action>
>     <result page="first-page" />
>   </action>
> </page>
> <page id="login" path-info="/login/login" view="login/login.xhtml" />
> <page id="first-page" path-info="/first-page" view="view.xhtml"
>       default-submission="/model/parameters.xml"/>
> <page id="app-edit" path-info="/app-edit" view="app-edit-view.xhtml"
>       default-submission="/model/parameters.xml" >
> <setvalue ref="/parameters/action" parameter="action" />
> <setvalue ref="/parameters/application-id" parameter="application-id" />
> </page>
>
> Thanks,
>
> Jack
>
> ---------------------
> Jack Cox
> CapTech Ventures, Inc.
> 1118 W. Main St.
> Richmond, VA 23220
> 804-545-8765
>
>
>

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Problem with xforms:load returning oxf:/ URL

Jack Cox
Erik,

Yes, several actually.  I'm using XInclude because the xsl:copy-to doesn't
seem to do nested includes.

Jack



On 6/25/07 10:54 AM, "Erik Bruchez" <[hidden email]> wrote:

> Jax, do you happen to use XInclude in your page?
>
> If so, try using the xxi:omit-xml-base="true" on your xi:include, with
> xmlns:xxi="http://orbeon.org/oxf/xml/xinclude".
>
> -Erik
>
> Jack Cox wrote:
>> I have an interesting behavior going on with the xforms:load action.
>>
>> The Orbeon engine seems to be telling the browser to load a new page with a
>> URL that begins with the 'oxf:' protocol.  And, as would be expected, the
>> browser has no idea what do do with that protocol.
>>  
>>
>> Below is the sample of a trigger doing an xforms:load:
>>
>> <xforms:trigger appearance="minimal">
>>   <xforms:label>Done</xforms:label>
>>   <xforms:action ev:event="DOMActivate">
>>     <xforms:load
>> resource="/"
>> show="replace" />
>>   </xforms:action>
>> </xforms:trigger>
>>
>> The page-flow.xml file is pretty straight-forward, shown below:
>>
>> <page id="welcome" path-info="/" view="empty.xhtml"
>>       default-submission="/model/parameters.xml">
>>   <action>
>>     <result page="first-page" />
>>   </action>
>> </page>
>> <page id="login" path-info="/login/login" view="login/login.xhtml" />
>> <page id="first-page" path-info="/first-page" view="view.xhtml"
>>       default-submission="/model/parameters.xml"/>
>> <page id="app-edit" path-info="/app-edit" view="app-edit-view.xhtml"
>>       default-submission="/model/parameters.xml" >
>> <setvalue ref="/parameters/action" parameter="action" />
>> <setvalue ref="/parameters/application-id" parameter="application-id" />
>> </page>
>>
>> Thanks,
>>
>> Jack
>>
>> ---------------------
>> Jack Cox
>> CapTech Ventures, Inc.
>> 1118 W. Main St.
>> Richmond, VA 23220
>> 804-545-8765
>>
>>
>>
>
---------------------
Jack Cox
CapTech Ventures, Inc.
1118 W. Main St.
Richmond, VA 23220
804-545-8765




--
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
Reply | Threaded
Open this post in threaded view
|

Re: Problem with xforms:load returning oxf:/ URL

Alessandro Vernet
Administrator
Jack,

On 6/25/07, Jack Cox <[hidden email]> wrote:
> Yes, several actually.  I'm using XInclude because the xsl:copy-to doesn't
> seem to do nested includes.

Did using xxi:omit-xml-base="true" as Erik suggested solve the problem for you?

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Problem with xforms:load returning oxf:/ URL

Jack Cox
Alex & Erik,

Sorry I didn't get back earlier, I wasn't able to get around to testing the
fix this this morning.

Yes, it did resolve the problem.  The loads no longer prefix the link with
oxf:/

Thanks for all your assistance.

Jack



On 6/26/07 3:29 AM, "Alessandro Vernet" <[hidden email]> wrote:

> Jack,
>
> On 6/25/07, Jack Cox <[hidden email]> wrote:
>> Yes, several actually.  I'm using XInclude because the xsl:copy-to doesn't
>> seem to do nested includes.
>
> Did using xxi:omit-xml-base="true" as Erik suggested solve the problem for
> you?
>
> Alex
---------------------
Jack Cox
CapTech Ventures, Inc.
1118 W. Main St.
Richmond, VA 23220
804-545-8765




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