Referencing controls in a repeat

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

Referencing controls in a repeat

mjgraham
Hi,

I have an instance:

<xforms:instance id="config">
  <form>
    <param>
      <name/>
      <value/>
      <label/>
      <description/>
    </param>
  </form>
</xforms:instance>

where there can be multiple param elements. Now I want to use repeat to
display the controls:

<xforms:repeat nodeset="instance('config')/param">
  <xforms:input ref="value">
    <xforms:label><xforms:output ref="label"/></xforms:label>
    <xforms:help><xforms:output ref="description"/></xforms:help>
  </xforms:input>
</xforms:repeat>

However, when I actually try this, I get a NPE with stack trace:

oxf:/ops/pfc/xforms-epilogue.xpl 106 71 reading processor output
(name='document', ref='xformed-data')  <p:output name="document"
ref="xformed-data"/>
oxf:/config/epilogue.xpl 41 58 reading processor output
(name='xformed-data', id='xformed-data')  <p:output
name="xformed-data" id="xformed-data"/>
oxf:/config/epilogue-servlet.xpl 30 48 reading processor output
(name='xformed-data')  <p:param type="input" name="xformed-data"/>
oxf:/config/epilogue.xpl 59 46 executing processor
(name='{http://www.orbeon.com/oxf/processors}pipeline')  <p:processor
name="oxf:pipeline">...</p:process


Is what I am trying actually possible? If so, what am I doing wrong?

    Cheers,

    Matthew



--
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: Referencing controls in a repeat

Erik Bruchez
Administrator
Matthew,

 > I have an instance:
 >
 > <xforms:instance id="config">
 >  <form>
 >    <param>
 >      <name/>
 >      <value/>
 >      <label/>
 >      <description/>
 >    </param>
 >  </form>
 > </xforms:instance>
 >
 > where there can be multiple param elements. Now I want to use repeat to
 > display the controls:
 >
 > <xforms:repeat nodeset="instance('config')/param">
 >  <xforms:input ref="value">
 >    <xforms:label><xforms:output ref="label"/></xforms:label>
 >    <xforms:help><xforms:output ref="description"/></xforms:help>
 >  </xforms:input>
 > </xforms:repeat>
 >
 > However, when I actually try this, I get a NPE with stack trace:

BTW I do not get an NPE with the latest code, just blank labels and
helps.

 > Is what I am trying actually possible? If so, what am I doing wrong?

The @ref on xforms:input change the context, so do this instead:

   <xforms:input ref="value">
     <xforms:label><xforms:output ref="../label"/></xforms:label>
     <xforms:help><xforms:output ref="../description"/></xforms:help>
   </xforms:input>

-Erik

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

Re: Referencing controls in a repeat

mjgraham
Hi,

I upgraded the version of OPS to 3.5M1 and am now hitting another
problem before I can see whether this one is resolved. I have a front
page which has an instance:

            <xf:instance id="main">
                <form>
                    <logged-in>true</logged-in>
                    <app-id>login</app-id>
                    ...
            <xf:submission id="cutout" ref="instance('main')"
method="post" action="/nesssi/app/cutout"/>
            <xf:submission id="hyperatlas" ref="instance('main')"
method="post" action="/nesssi/app/hyperatlas"/>
                   ...

and the controls for this are:
     
                               <xf:group ref="instance('main')">
                                    <xf:submit submission="cutout"
appearance="xxf:link">
                                        <xf:label>Cutout Service</xf:label>
                                        <xf:action ev:event="DOMActivate">
                                            <xf:setvalue
ref="/form/app-id">cutout</xf:setvalue>
                                        </xf:action>
                                    </xf:submit>
                                  ...

Finally my page-flow is:

   <page path-info="/nesssi/apps/(.+)" matcher="oxf:perl5-matcher"
model="model.xpl" view="apps.xpl"/>

Now with the version of OPS I was running previously (3.0.1), this
worked fine: the link would set the value of app-id to what it should be
and model.xpl would be called. However, with 3.5M1, the setvalue is not
happening and model.xpl is not getting called at all.

Any ideas?

    Cheers,

    Matthew

Erik Bruchez wrote:

> Matthew,
>
> > I have an instance:
> >
> > <xforms:instance id="config">
> >  <form>
> >    <param>
> >      <name/>
> >      <value/>
> >      <label/>
> >      <description/>
> >    </param>
> >  </form>
> > </xforms:instance>
> >
> > where there can be multiple param elements. Now I want to use repeat to
> > display the controls:
> >
> > <xforms:repeat nodeset="instance('config')/param">
> >  <xforms:input ref="value">
> >    <xforms:label><xforms:output ref="label"/></xforms:label>
> >    <xforms:help><xforms:output ref="description"/></xforms:help>
> >  </xforms:input>
> > </xforms:repeat>
> >
> > However, when I actually try this, I get a NPE with stack trace:
>
> BTW I do not get an NPE with the latest code, just blank labels and
> helps.
>
> > Is what I am trying actually possible? If so, what am I doing wrong?
>
> The @ref on xforms:input change the context, so do this instead:
>
>   <xforms:input ref="value">
>     <xforms:label><xforms:output ref="../label"/></xforms:label>
>     <xforms:help><xforms:output ref="../description"/></xforms:help>
>   </xforms:input>
>
> -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
>  



--
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: Referencing controls in a repeat

Erik Bruchez
Administrator
Matthew,

Can you quickly write a single XHTML file that can show this in the sandbox?

Thanks,

-Erik

Matthew Graham wrote:

> Hi,
>
> I upgraded the version of OPS to 3.5M1 and am now hitting another
> problem before I can see whether this one is resolved. I have a front
> page which has an instance:
>
>            <xf:instance id="main">
>                <form>
>                    <logged-in>true</logged-in>
>                    <app-id>login</app-id>
>                    ...
>            <xf:submission id="cutout" ref="instance('main')"
> method="post" action="/nesssi/app/cutout"/>
>            <xf:submission id="hyperatlas" ref="instance('main')"
> method="post" action="/nesssi/app/hyperatlas"/>
>                   ...
>
> and the controls for this are:
>                                    <xf:group ref="instance('main')">
>                                    <xf:submit submission="cutout"
> appearance="xxf:link">
>                                        <xf:label>Cutout Service</xf:label>
>                                        <xf:action ev:event="DOMActivate">
>                                            <xf:setvalue
> ref="/form/app-id">cutout</xf:setvalue>
>                                        </xf:action>
>                                    </xf:submit>
>                                  ...
>
> Finally my page-flow is:
>
>   <page path-info="/nesssi/apps/(.+)" matcher="oxf:perl5-matcher"
> model="model.xpl" view="apps.xpl"/>
>
> Now with the version of OPS I was running previously (3.0.1), this
> worked fine: the link would set the value of app-id to what it should be
> and model.xpl would be called. However, with 3.5M1, the setvalue is not
> happening and model.xpl is not getting called at all.
>
> Any ideas?
>
>    Cheers,
>
>    Matthew
>
> Erik Bruchez wrote:
>> Matthew,
>>
>> > I have an instance:
>> >
>> > <xforms:instance id="config">
>> >  <form>
>> >    <param>
>> >      <name/>
>> >      <value/>
>> >      <label/>
>> >      <description/>
>> >    </param>
>> >  </form>
>> > </xforms:instance>
>> >
>> > where there can be multiple param elements. Now I want to use repeat to
>> > display the controls:
>> >
>> > <xforms:repeat nodeset="instance('config')/param">
>> >  <xforms:input ref="value">
>> >    <xforms:label><xforms:output ref="label"/></xforms:label>
>> >    <xforms:help><xforms:output ref="description"/></xforms:help>
>> >  </xforms:input>
>> > </xforms:repeat>
>> >
>> > However, when I actually try this, I get a NPE with stack trace:
>>
>> BTW I do not get an NPE with the latest code, just blank labels and
>> helps.
>>
>> > Is what I am trying actually possible? If so, what am I doing wrong?
>>
>> The @ref on xforms:input change the context, so do this instead:
>>
>>   <xforms:input ref="value">
>>     <xforms:label><xforms:output ref="../label"/></xforms:label>
>>     <xforms:help><xforms:output ref="../description"/></xforms:help>
>>   </xforms:input>
>>
>> -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
>>  
>
>
>
> ------------------------------------------------------------------------
>
>
> --
> 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

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

Re: Referencing controls in a repeat

mjgraham
Hi Erik,

I've included a simple XHTML file that shows this together with its
page-flow.xml and model.xpl.

    Cheers,

    Matthew

Erik Bruchez wrote:

> Matthew,
>
> Can you quickly write a single XHTML file that can show this in the
> sandbox?
>
> Thanks,
>
> -Erik
>
> Matthew Graham wrote:
>> Hi,
>>
>> I upgraded the version of OPS to 3.5M1 and am now hitting another
>> problem before I can see whether this one is resolved. I have a front
>> page which has an instance:
>>
>>            <xf:instance id="main">
>>                <form>
>>                    <logged-in>true</logged-in>
>>                    <app-id>login</app-id>
>>                    ...
>>            <xf:submission id="cutout" ref="instance('main')"
>> method="post" action="/nesssi/app/cutout"/>
>>            <xf:submission id="hyperatlas" ref="instance('main')"
>> method="post" action="/nesssi/app/hyperatlas"/>
>>                   ...
>>
>> and the controls for this are:
>>                                    <xf:group ref="instance('main')">
>>                                    <xf:submit submission="cutout"
>> appearance="xxf:link">
>>                                        <xf:label>Cutout
>> Service</xf:label>
>>                                        <xf:action
>> ev:event="DOMActivate">
>>                                            <xf:setvalue
>> ref="/form/app-id">cutout</xf:setvalue>
>>                                        </xf:action>
>>                                    </xf:submit>
>>                                  ...
>>
>> Finally my page-flow is:
>>
>>   <page path-info="/nesssi/apps/(.+)" matcher="oxf:perl5-matcher"
>> model="model.xpl" view="apps.xpl"/>
>>
>> Now with the version of OPS I was running previously (3.0.1), this
>> worked fine: the link would set the value of app-id to what it should
>> be and model.xpl would be called. However, with 3.5M1, the setvalue
>> is not happening and model.xpl is not getting called at all.
>>
>> Any ideas?
>>
>>    Cheers,
>>
>>    Matthew
>>
>> Erik Bruchez wrote:
>>> Matthew,
>>>
>>> > I have an instance:
>>> >
>>> > <xforms:instance id="config">
>>> >  <form>
>>> >    <param>
>>> >      <name/>
>>> >      <value/>
>>> >      <label/>
>>> >      <description/>
>>> >    </param>
>>> >  </form>
>>> > </xforms:instance>
>>> >
>>> > where there can be multiple param elements. Now I want to use
>>> repeat to
>>> > display the controls:
>>> >
>>> > <xforms:repeat nodeset="instance('config')/param">
>>> >  <xforms:input ref="value">
>>> >    <xforms:label><xforms:output ref="label"/></xforms:label>
>>> >    <xforms:help><xforms:output ref="description"/></xforms:help>
>>> >  </xforms:input>
>>> > </xforms:repeat>
>>> >
>>> > However, when I actually try this, I get a NPE with stack trace:
>>>
>>> BTW I do not get an NPE with the latest code, just blank labels and
>>> helps.
>>>
>>> > Is what I am trying actually possible? If so, what am I doing wrong?
>>>
>>> The @ref on xforms:input change the context, so do this instead:
>>>
>>>   <xforms:input ref="value">
>>>     <xforms:label><xforms:output ref="../label"/></xforms:label>
>>>     <xforms:help><xforms:output ref="../description"/></xforms:help>
>>>   </xforms:input>
>>>
>>> -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
>>>  
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>> --
>> 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
>
>
> ------------------------------------------------------------------------
>
>
> --
> 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
>  

<!--
    Copyright (C) 2004 Orbeon, Inc.
 
    This program is free software; you can redistribute it and/or modify it under the terms of the
    GNU Lesser General Public License as published by the Free Software Foundation; either version
    2.1 of the License, or (at your option) any later version.
 
    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
    without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    See the GNU Lesser General Public License for more details.
 
    The full text of the license is available at http://www.gnu.org/copyleft/lesser.html
-->
<config xmlns="http://www.orbeon.com/oxf/controller"
        xmlns:xu="http://www.xmldb.org/xupdate"
        xmlns:oxf="http://www.orbeon.com/oxf/processors">

    <!-- Cromlech portal -->
    <page id="test" path-info="/nesssi/test" view="test4.xhtml"/>

    <page path-info="/nesssi/portlet/(.+)" matcher="oxf:perl5-matcher" model="model.xpl" view="portlets.xpl"/>

    <epilogue url="/config/epilogue.xpl"/>

</config>

show-portlet true login test ApplicationPortlet
<xsl:import href="oxf:/oxf/xslt/utils/copy.xsl"/> show-portlet show-source


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

test4.xhtml (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Referencing controls in a repeat

Erik Bruchez
Administrator
Matthew,

I don't reproduce this. I created a simple view (attached, use
view="view.xhtml" instead of your current view="portlets.xpl") and I do
get the correct values back.

-Erik

Matthew Graham wrote:

> Hi Erik,
>
> I've included a simple XHTML file that shows this together with its
> page-flow.xml and model.xpl.
>
>    Cheers,
>
>    Matthew
>
> Erik Bruchez wrote:
>> Matthew,
>>
>> Can you quickly write a single XHTML file that can show this in the
>> sandbox?
>>
>> Thanks,
>>
>> -Erik
>>
>> Matthew Graham wrote:
>>> Hi,
>>>
>>> I upgraded the version of OPS to 3.5M1 and am now hitting another
>>> problem before I can see whether this one is resolved. I have a front
>>> page which has an instance:
>>>
>>>            <xf:instance id="main">
>>>                <form>
>>>                    <logged-in>true</logged-in>
>>>                    <app-id>login</app-id>
>>>                    ...
>>>            <xf:submission id="cutout" ref="instance('main')"
>>> method="post" action="/nesssi/app/cutout"/>
>>>            <xf:submission id="hyperatlas" ref="instance('main')"
>>> method="post" action="/nesssi/app/hyperatlas"/>
>>>                   ...
>>>
>>> and the controls for this are:
>>>                                    <xf:group ref="instance('main')">
>>>                                    <xf:submit submission="cutout"
>>> appearance="xxf:link">
>>>                                        <xf:label>Cutout
>>> Service</xf:label>
>>>                                        <xf:action
>>> ev:event="DOMActivate">
>>>                                            <xf:setvalue
>>> ref="/form/app-id">cutout</xf:setvalue>
>>>                                        </xf:action>
>>>                                    </xf:submit>
>>>                                  ...
>>>
>>> Finally my page-flow is:
>>>
>>>   <page path-info="/nesssi/apps/(.+)" matcher="oxf:perl5-matcher"
>>> model="model.xpl" view="apps.xpl"/>
>>>
>>> Now with the version of OPS I was running previously (3.0.1), this
>>> worked fine: the link would set the value of app-id to what it should
>>> be and model.xpl would be called. However, with 3.5M1, the setvalue
>>> is not happening and model.xpl is not getting called at all.
>>>
>>> Any ideas?
>>>
>>>    Cheers,
>>>
>>>    Matthew
>>>
>>> Erik Bruchez wrote:
>>>> Matthew,
>>>>
>>>> > I have an instance:
>>>> >
>>>> > <xforms:instance id="config">
>>>> >  <form>
>>>> >    <param>
>>>> >      <name/>
>>>> >      <value/>
>>>> >      <label/>
>>>> >      <description/>
>>>> >    </param>
>>>> >  </form>
>>>> > </xforms:instance>
>>>> >
>>>> > where there can be multiple param elements. Now I want to use
>>>> repeat to
>>>> > display the controls:
>>>> >
>>>> > <xforms:repeat nodeset="instance('config')/param">
>>>> >  <xforms:input ref="value">
>>>> >    <xforms:label><xforms:output ref="label"/></xforms:label>
>>>> >    <xforms:help><xforms:output ref="description"/></xforms:help>
>>>> >  </xforms:input>
>>>> > </xforms:repeat>
>>>> >
>>>> > However, when I actually try this, I get a NPE with stack trace:
>>>>
>>>> BTW I do not get an NPE with the latest code, just blank labels and
>>>> helps.
>>>>
>>>> > Is what I am trying actually possible? If so, what am I doing wrong?
>>>>
>>>> The @ref on xforms:input change the context, so do this instead:
>>>>
>>>>   <xforms:input ref="value">
>>>>     <xforms:label><xforms:output ref="../label"/></xforms:label>
>>>>     <xforms:help><xforms:output ref="../description"/></xforms:help>
>>>>   </xforms:input>
>>>>
>>>> -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
>>>>  
>>>
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>>
>>> --
>>> 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
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>> --
>> 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
>>  
>
>
> ------------------------------------------------------------------------
>
> <!--
>     Copyright (C) 2004 Orbeon, Inc.
>  
>     This program is free software; you can redistribute it and/or modify it under the terms of the
>     GNU Lesser General Public License as published by the Free Software Foundation; either version
>     2.1 of the License, or (at your option) any later version.
>  
>     This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
>     without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>     See the GNU Lesser General Public License for more details.
>  
>     The full text of the license is available at http://www.gnu.org/copyleft/lesser.html
> -->
> <config xmlns="http://www.orbeon.com/oxf/controller"
>         xmlns:xu="http://www.xmldb.org/xupdate"
>         xmlns:oxf="http://www.orbeon.com/oxf/processors">
>
>     <!-- Cromlech portal -->
>     <page id="test" path-info="/nesssi/test" view="test4.xhtml"/>
>
>     <page path-info="/nesssi/portlet/(.+)" matcher="oxf:perl5-matcher" model="model.xpl" view="portlets.xpl"/>
>
>     <epilogue url="/config/epilogue.xpl"/>
>
> </config>
>
>
> ------------------------------------------------------------------------
>
> show-portlet true login test ApplicationPortlet
>
> show-portlet show-source
>
>
> ------------------------------------------------------------------------
>
>
> --
> 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

--
Orbeon - XForms Everywhere:
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

view.xhtml (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Referencing controls in a repeat

mjgraham
Hi,

I upgraded to the latest nightly build and it all works fine now: the
problem is definitely there with the first 3.5M1 build though.

    Cheers,

    Matthew

Erik Bruchez wrote:

> Matthew,
>
> I don't reproduce this. I created a simple view (attached, use
> view="view.xhtml" instead of your current view="portlets.xpl") and I
> do get the correct values back.
>
> -Erik
>
> Matthew Graham wrote:
>> Hi Erik,
>>
>> I've included a simple XHTML file that shows this together with its
>> page-flow.xml and model.xpl.
>>
>>    Cheers,
>>
>>    Matthew
>>
>> Erik Bruchez wrote:
>>> Matthew,
>>>
>>> Can you quickly write a single XHTML file that can show this in the
>>> sandbox?
>>>
>>> Thanks,
>>>
>>> -Erik
>>>
>>> Matthew Graham wrote:
>>>> Hi,
>>>>
>>>> I upgraded the version of OPS to 3.5M1 and am now hitting another
>>>> problem before I can see whether this one is resolved. I have a
>>>> front page which has an instance:
>>>>
>>>>            <xf:instance id="main">
>>>>                <form>
>>>>                    <logged-in>true</logged-in>
>>>>                    <app-id>login</app-id>
>>>>                    ...
>>>>            <xf:submission id="cutout" ref="instance('main')"
>>>> method="post" action="/nesssi/app/cutout"/>
>>>>            <xf:submission id="hyperatlas" ref="instance('main')"
>>>> method="post" action="/nesssi/app/hyperatlas"/>
>>>>                   ...
>>>>
>>>> and the controls for this are:
>>>>                                    <xf:group ref="instance('main')">
>>>>                                    <xf:submit submission="cutout"
>>>> appearance="xxf:link">
>>>>                                        <xf:label>Cutout
>>>> Service</xf:label>
>>>>                                        <xf:action
>>>> ev:event="DOMActivate">
>>>>                                            <xf:setvalue
>>>> ref="/form/app-id">cutout</xf:setvalue>
>>>>                                        </xf:action>
>>>>                                    </xf:submit>
>>>>                                  ...
>>>>
>>>> Finally my page-flow is:
>>>>
>>>>   <page path-info="/nesssi/apps/(.+)" matcher="oxf:perl5-matcher"
>>>> model="model.xpl" view="apps.xpl"/>
>>>>
>>>> Now with the version of OPS I was running previously (3.0.1), this
>>>> worked fine: the link would set the value of app-id to what it
>>>> should be and model.xpl would be called. However, with 3.5M1, the
>>>> setvalue is not happening and model.xpl is not getting called at all.
>>>>
>>>> Any ideas?
>>>>
>>>>    Cheers,
>>>>
>>>>    Matthew
>>>>
>>>> Erik Bruchez wrote:
>>>>> Matthew,
>>>>>
>>>>> > I have an instance:
>>>>> >
>>>>> > <xforms:instance id="config">
>>>>> >  <form>
>>>>> >    <param>
>>>>> >      <name/>
>>>>> >      <value/>
>>>>> >      <label/>
>>>>> >      <description/>
>>>>> >    </param>
>>>>> >  </form>
>>>>> > </xforms:instance>
>>>>> >
>>>>> > where there can be multiple param elements. Now I want to use
>>>>> repeat to
>>>>> > display the controls:
>>>>> >
>>>>> > <xforms:repeat nodeset="instance('config')/param">
>>>>> >  <xforms:input ref="value">
>>>>> >    <xforms:label><xforms:output ref="label"/></xforms:label>
>>>>> >    <xforms:help><xforms:output ref="description"/></xforms:help>
>>>>> >  </xforms:input>
>>>>> > </xforms:repeat>
>>>>> >
>>>>> > However, when I actually try this, I get a NPE with stack trace:
>>>>>
>>>>> BTW I do not get an NPE with the latest code, just blank labels and
>>>>> helps.
>>>>>
>>>>> > Is what I am trying actually possible? If so, what am I doing
>>>>> wrong?
>>>>>
>>>>> The @ref on xforms:input change the context, so do this instead:
>>>>>
>>>>>   <xforms:input ref="value">
>>>>>     <xforms:label><xforms:output ref="../label"/></xforms:label>
>>>>>     <xforms:help><xforms:output ref="../description"/></xforms:help>
>>>>>   </xforms:input>
>>>>>
>>>>> -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
>>>>>  
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------
>>>>
>>>>
>>>>
>>>> --
>>>> 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
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>>
>>>
>>> --
>>> 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
>>>  
>>
>>
>> ------------------------------------------------------------------------
>>
>> <!--
>>     Copyright (C) 2004 Orbeon, Inc.
>>       This program is free software; you can redistribute it and/or
>> modify it under the terms of the
>>     GNU Lesser General Public License as published by the Free
>> Software Foundation; either version
>>     2.1 of the License, or (at your option) any later version.
>>       This program is distributed in the hope that it will be useful,
>> but WITHOUT ANY WARRANTY;
>>     without even the implied warranty of MERCHANTABILITY or FITNESS
>> FOR A PARTICULAR PURPOSE.
>>     See the GNU Lesser General Public License for more details.
>>       The full text of the license is available at
>> http://www.gnu.org/copyleft/lesser.html
>> -->
>> <config xmlns="http://www.orbeon.com/oxf/controller"
>>         xmlns:xu="http://www.xmldb.org/xupdate"
>>         xmlns:oxf="http://www.orbeon.com/oxf/processors">
>>
>>     <!-- Cromlech portal -->
>>     <page id="test" path-info="/nesssi/test" view="test4.xhtml"/>
>>
>>     <page path-info="/nesssi/portlet/(.+)"
>> matcher="oxf:perl5-matcher" model="model.xpl" view="portlets.xpl"/>
>>
>>     <epilogue url="/config/epilogue.xpl"/>
>>
>> </config>
>>
>>
>> ------------------------------------------------------------------------
>>
>> show-portlet true login test ApplicationPortlet
>>
>> show-portlet show-source
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>> --
>> 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
>
>
> ------------------------------------------------------------------------
>
>
> --
> 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
>  



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