using external source file in place of inline instance

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

using external source file in place of inline instance

ilango_g
Hi
If I had a folder called 'testapp' under the 'apps' folder in Tomcat, a view.xhtml, page-flow.xml, a data.xml file, etc. and in my xhtml how can I reference the data.xml in the 'src' attribute. I know it should be something like src="...."
If my data.xml file is right under testapp, then how can I reference this file in src. My attempts at trying to access this file from the src attribute are failing.

Any suggestions are appreciated.

thanks
ilango
Reply | Threaded
Open this post in threaded view
|

Re: using external source file in place of inline instance

fl.schmitt(ops-users)
hi ilango_g,

> If I had a folder called 'testapp' under the 'apps' folder in Tomcat, a
> view.xhtml, page-flow.xml, a data.xml file, etc. and in my xhtml how can I
> reference the data.xml in the 'src' attribute. I know it should be something
> like src="...."

In the xforms controls example, external instances are loaded like this:

<xforms:instance id="instance"
src="oxf:/apps/xforms-controls/main-xforms-instance.xml"/>
<xforms:instance id="resources-instance"
src="oxf:/apps/xforms-controls/resources.xml"/>

> If my data.xml file is right under testapp, then how can I reference this
> file in src. My attempts at trying to access this file from the src
> attribute are failing.

Does this work?:

<xforms:instance id="data-instance" src="oxf:/apps/testapp/data.xml"/>


HTH
florian


--
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: using external source file in place of inline instance

ilango_g
Actually, the oxf thing you suggested works. Thanks




--- On Tue, 6/17/08, Florian Schmitt <[hidden email]> wrote:

> From: Florian Schmitt <[hidden email]>
> Subject: [ops-users] Re:  using external source file in place of inline instance
> To: [hidden email]
> Date: Tuesday, June 17, 2008, 10:54 PM
> hi ilango_g,
>
> > If I had a folder called 'testapp' under the
> 'apps' folder in Tomcat, a
> > view.xhtml, page-flow.xml, a data.xml file, etc. and
> in my xhtml how can I
> > reference the data.xml in the 'src' attribute.
> I know it should be something
> > like src="...."
>
> In the xforms controls example, external instances are
> loaded like this:
>
> <xforms:instance id="instance"
> src="oxf:/apps/xforms-controls/main-xforms-instance.xml"/>
> <xforms:instance id="resources-instance"
> src="oxf:/apps/xforms-controls/resources.xml"/>
>
> > If my data.xml file is right under testapp, then how
> can I reference this
> > file in src. My attempts at trying to access this file
> from the src
> > attribute are failing.
>
> Does this work?:
>
> <xforms:instance id="data-instance"
> src="oxf:/apps/testapp/data.xml"/>
>
>
> HTH
> florian--
> 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

     


--
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: using external source file in place of inline instance

fl.schmitt(ops-users)
In reply to this post by ilango_g
hi ilango_g,

> If I had a folder called 'testapp' under the 'apps' folder in Tomcat, a
> view.xhtml, page-flow.xml, a data.xml file, etc. and in my xhtml how can I
> reference the data.xml in the 'src' attribute. I know it should be something
> like src="...."

In the xforms controls example, external instances are loaded like this:

<xforms:instance id="instance"
src="oxf:/apps/xforms-controls/main-xforms-instance.xml"/>
<xforms:instance id="resources-instance"
src="oxf:/apps/xforms-controls/resources.xml"/>

> If my data.xml file is right under testapp, then how can I reference this
> file in src. My attempts at trying to access this file from the src
> attribute are failing.

Does this work?:

<xforms:instance id="data-instance" src="oxf:/apps/testapp/data.xml"/>


HTH
florian


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