[ops-users]access to instance

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

[ops-users]access to instance

Marc.Benimeli
Hi,

I play with the OPS beta 3.

1/ How can I have access to instance model without XForms ?

In OPS 2.8 I used <xsl:value-of select=doc(input:instance)/.../...>
What is the best way to do that whith OPS 3.0 ?

2/ Can I have dynamic label in XForms(from instance) ?
        <xforms:input ref="test">
                <xforms:label><xsl:value-of select=....></xforms:label>
        </xforms:input>

EX :      
<xforms:model xmlns:xforms="http://www.w3.org/2002/xforms">
        <xforms:instance id="modele">
                <form>
                        <group name="a">
                                <field name="field_aa">
                                        value="azert1"
                                </field>
                                <field name="field_ab">
                                        value="azerty2"
                                </field>
                                ...
                        </group>
                        <group name="b">
                                <field name="field_ba">
                                        value="azert3"
                                </field>
                                ...
                        </group>
                        ....
                        <group name="z">
                        ...
                        </group>
                </form>
        </xforms:instance>
</xforms:model>

<xforms:repeat nodeset="group" id="Groupe">
                                                        ????? Access to
"name" attribute as "fixedtext"
        <xforms:repeat nodeset="field" id="Champ">
                <xforms:input ref="value">
                                                        ????? Access to
"name" attribute as label
                </xforms:input>
        </xforms:repeat>
</xforms:repeat>

3/ When I just move from one xforms:input to another(many times) within
the browser(Ajax action) I get the following error :

Unexpected response received from server -> java.lang.OutOfMemoryError:
Java heap space





--
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: [ops-users]access to instance

Erik Bruchez
Administrator
Marc BENIMELI wrote:
 > Hi,
 >
 > I play with the OPS beta 3.

Thanks!

 > 1/ How can I have access to instance model without XForms ?
 >
 > In OPS 2.8 I used <xsl:value-of select=doc(input:instance)/.../...>
 > What is the best way to do that whith OPS 3.0 ?

Do you mean accessing a submitted XForms _instance_ from an XSLT page
view? What do you mean by "without XForms"? You probably need to
provide more information.

 > 2/ Can I have dynamic label in XForms(from instance) ?
 > <xforms:input ref="test">
 > <xforms:label><xsl:value-of select=....></xforms:label>
 > </xforms:input>

The <xforms:label> element supports a @ref attribute. Use that
attribute to refer to the instance node containing the label to
display.

 > 3/ When I just move from one xforms:input to another(many times) within
 > the browser(Ajax action) I get the following error :
 >
 > Unexpected response received from server -> java.lang.OutOfMemoryError:
 > Java heap space

How big is your Java heap? Make sure that you are not using the
default size of 64MB. Also, it is good practice to limit the number of
threads entering OPS. You can configure this with Tomcat: check this
FAQ entry:

   http://www.orbeon.com/ops/doc/home-faq#app-server-hangs

-Erik



--
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: [ops-users]access to instance

Marc.Benimeli
In reply to this post by Marc.Benimeli
Erik,

In a xforms:repeat I want to display an attribute without binding any "xforms:control".
   Ex :
                <group name="a">
                        <field name="field_aa">
                                value="azert1"
                        </field>
                        <field name="field_ab">
                                value="azerty2"
                        </field>
                        ...
                </group>

Here it's the attribute "name" of the node "group"
 
Thanks,

marc

-----Message d'origine-----
De : Erik Bruchez [mailto:[hidden email]] De la part de Erik Bruchez
Envoyé : mercredi 5 octobre 2005 15:51
À : [hidden email]
Objet : Re: [ops-users]access to instance

Marc BENIMELI wrote:
 > Hi,
 >
 > I play with the OPS beta 3.

Thanks!

 > 1/ How can I have access to instance model without XForms ?
 >
 > In OPS 2.8 I used <xsl:value-of select=doc(input:instance)/.../...>
 > What is the best way to do that whith OPS 3.0 ?

Do you mean accessing a submitted XForms _instance_ from an XSLT page view? What do you mean by "without XForms"? You probably need to provide more information.

 > 2/ Can I have dynamic label in XForms(from instance) ?
 > <xforms:input ref="test">
 > <xforms:label><xsl:value-of select=....></xforms:label>
 > </xforms:input>

The <xforms:label> element supports a @ref attribute. Use that attribute to refer to the instance node containing the label to display.

 > 3/ When I just move from one xforms:input to another(many times) within  > the browser(Ajax action) I get the following error :
 >
 > Unexpected response received from server -> java.lang.OutOfMemoryError:
 > Java heap space

How big is your Java heap? Make sure that you are not using the default size of 64MB. Also, it is good practice to limit the number of threads entering OPS. You can configure this with Tomcat: check this FAQ entry:

   http://www.orbeon.com/ops/doc/home-faq#app-server-hangs

-Erik




--
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: [ops-users]access to instance

Erik Bruchez
Administrator
Well, you have to use an XForms control, namely xforms:output! Do
something like:

<xforms:output ref="group/@name"/>

Of course adjust the XPath expression depending on the current context
where you are using xforms:output.

That should do it.

-Erik

Marc BENIMELI wrote:
 > Erik,
 >
 > In a xforms:repeat I want to display an attribute without binding any
"xforms:control".
 >    Ex :
 > <group name="a">
 > <field name="field_aa">
 > value="azert1"
 > </field>
 > <field name="field_ab">
 > value="azerty2"
 > </field>
 > ...
 > </group>
 >
 > Here it's the attribute "name" of the node "group"
 >
 > Thanks,
 >
 > marc
 >
 > -----Message d'origine-----
 > De : Erik Bruchez [mailto:[hidden email]] De la part de Erik Bruchez
 > Envoy? : mercredi 5 octobre 2005 15:51
 > ? : [hidden email]
 > Objet : Re: [ops-users]access to instance
 >
 > Marc BENIMELI wrote:
 >  > Hi,
 >  >
 >  > I play with the OPS beta 3.
 >
 > Thanks!
 >
 >  > 1/ How can I have access to instance model without XForms ?
 >  >
 >  > In OPS 2.8 I used <xsl:value-of select=doc(input:instance)/.../...>
 >  > What is the best way to do that whith OPS 3.0 ?
 >
 > Do you mean accessing a submitted XForms _instance_ from an XSLT page
view? What do you mean by "without XForms"? You probably need to provide
more information.
 >
 >  > 2/ Can I have dynamic label in XForms(from instance) ?
 >  > <xforms:input ref="test">
 >  > <xforms:label><xsl:value-of select=....></xforms:label>
 >  > </xforms:input>
 >
 > The <xforms:label> element supports a @ref attribute. Use that
attribute to refer to the instance node containing the label to display.
 >
 >  > 3/ When I just move from one xforms:input to another(many times)
within  > the browser(Ajax action) I get the following error :
 >  >
 >  > Unexpected response received from server ->
java.lang.OutOfMemoryError:
 >  > Java heap space
 >
 > How big is your Java heap? Make sure that you are not using the
default size of 64MB. Also, it is good practice to limit the number of
threads entering OPS. You can configure this with Tomcat: check this FAQ
entry:
 >
 >    http://www.orbeon.com/ops/doc/home-faq#app-server-hangs
 >
 > -Erik




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