Using @model on xforms:action

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

Using @model on xforms:action

Ryan Puddephatt
All,
    Is it possible to do the following
 
<xforms:action model="duration-model">
  <xforms:setvalue ref="/instance/value" value="xxforms:evaluate(/instance/lookups/value)"/>
</xforms:action>
 
Where /instance is refering to the default instance in the duration-model
 
I've tried but it doesn't seem to work, yet it looks like it should work in the xforms spec
 
Ryan

Ryan Puddephatt
Software Engineer
 

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.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: Using @model on xforms:action

Erik Bruchez
Administrator
Ryan,

>     Is it possible to do the following
>  
> <xforms:action model="duration-model">
>   <xforms:setvalue ref="/instance/value"
> value="xxforms:evaluate(/instance/lookups/value)"/>
> </xforms:action>
>  
> Where /instance is refering to the default instance in the duration-model
>  
> I've tried but it doesn't seem to work, yet it looks like it should work
> in the xforms spec
I don't think the spec says you can use the @model attribute on
xforms:action. I see only the "Common" and "Events" attributes allowed
there.

-Erik

--
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: Using @model on xforms:action

Ryan Puddephatt
Ok my bad, would this be a good idea seeing as you can specify a @if on the
action which could look at a different model?

Something for the xforms group?

Ryan

Ryan Puddephatt
Software Engineer

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP

e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108

 

>-----Original Message-----
>From: Erik Bruchez [mailto:[hidden email]] On Behalf Of
>Erik Bruchez
>Sent: 11 December 2006 22:46
>To: [hidden email]
>Subject: Re: [ops-users] Using @model on xforms:action
>
>Ryan,
>
>>     Is it possible to do the following
>>  
>> <xforms:action model="duration-model">
>>   <xforms:setvalue ref="/instance/value"
>> value="xxforms:evaluate(/instance/lookups/value)"/>
>> </xforms:action>
>>  
>> Where /instance is refering to the default instance in the
>> duration-model
>>  
>> I've tried but it doesn't seem to work, yet it looks like it should
>> work in the xforms spec
>
>I don't think the spec says you can use the @model attribute
>on xforms:action. I see only the "Common" and "Events"
>attributes allowed there.
>
>-Erik
>
>--
>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: Using @model on xforms:action

Erik Bruchez
Administrator
Unless I am mistaken, @model can only be used on controls and actions
that have single-node or node-set binding, which is not the case of
xforms:action. So this would be something new in XForms.

Still, I get your point and I will forward this message to the XForms
Working Group.

-Erik

Ryan Puddephatt wrote:

> Ok my bad, would this be a good idea seeing as you can specify a @if on the
> action which could look at a different model?
>
> Something for the xforms group?
>
> Ryan
>
> Ryan Puddephatt
> Software Engineer
>
> Teleflex Group - IT UK
> 1 Michaelson Square
> Livingston
> West Lothian
> Scotland
> EH54 7DP
>
> e> [hidden email]
> t> +44(0)1506 407 110
> f> +44(0)1506 407 108
>
>  
>
>> -----Original Message-----
>> From: Erik Bruchez [mailto:[hidden email]] On Behalf Of
>> Erik Bruchez
>> Sent: 11 December 2006 22:46
>> To: [hidden email]
>> Subject: Re: [ops-users] Using @model on xforms:action
>>
>> Ryan,
>>
>>>     Is it possible to do the following
>>>  
>>> <xforms:action model="duration-model">
>>>   <xforms:setvalue ref="/instance/value"
>>> value="xxforms:evaluate(/instance/lookups/value)"/>
>>> </xforms:action>
>>>  
>>> Where /instance is refering to the default instance in the
>>> duration-model
>>>  
>>> I've tried but it doesn't seem to work, yet it looks like it should
>>> work in the xforms spec
>> I don't think the spec says you can use the @model attribute
>> on xforms:action. I see only the "Common" and "Events"
>> attributes allowed there.
>>
>> -Erik
>>
>> --
>> 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

--
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: Using @model on xforms:action

Ryan Puddephatt
Thanks Erik

Ryan Puddephatt
Software Engineer

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP

e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108

 

>-----Original Message-----
>From: Erik Bruchez [mailto:[hidden email]] On Behalf Of
>Erik Bruchez
>Sent: 12 December 2006 00:04
>To: [hidden email]
>Subject: Re: [ops-users] Using @model on xforms:action
>
>Unless I am mistaken, @model can only be used on controls and
>actions that have single-node or node-set binding, which is
>not the case of xforms:action. So this would be something new
>in XForms.
>
>Still, I get your point and I will forward this message to the
>XForms Working Group.
>
>-Erik
>
>Ryan Puddephatt wrote:
>> Ok my bad, would this be a good idea seeing as you can specify a @if
>> on the action which could look at a different model?
>>
>> Something for the xforms group?
>>
>> Ryan
>>
>> Ryan Puddephatt
>> Software Engineer
>>
>> Teleflex Group - IT UK
>> 1 Michaelson Square
>> Livingston
>> West Lothian
>> Scotland
>> EH54 7DP
>>
>> e> [hidden email]
>> t> +44(0)1506 407 110
>> f> +44(0)1506 407 108
>>
>>  
>>
>>> -----Original Message-----
>>> From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik
>>> Bruchez
>>> Sent: 11 December 2006 22:46
>>> To: [hidden email]
>>> Subject: Re: [ops-users] Using @model on xforms:action
>>>
>>> Ryan,
>>>
>>>>     Is it possible to do the following
>>>>  
>>>> <xforms:action model="duration-model">
>>>>   <xforms:setvalue ref="/instance/value"
>>>> value="xxforms:evaluate(/instance/lookups/value)"/>
>>>> </xforms:action>
>>>>  
>>>> Where /instance is refering to the default instance in the
>>>> duration-model
>>>>  
>>>> I've tried but it doesn't seem to work, yet it looks like
>it should
>>>> work in the xforms spec
>>> I don't think the spec says you can use the @model attribute on
>>> xforms:action. I see only the "Common" and "Events"
>>> attributes allowed there.
>>>
>>> -Erik
>>>
>>> --
>>> 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
>
>
>--
>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