bind attribute on <xforms:load> not supported

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

bind attribute on <xforms:load> not supported

Adrian Baker-2
I put a bind onto a <xforms:load> action and received a "Missing
'resource' or 'ref' attribute on xforms:load element." exception.

It seems OPS doesn't yet support specifying a bind instead of a ref on a
the load action.

Adding support for this is a pretty small change in XFormsActionInterpreter:

    final String ref = actionElement.attributeValue("ref");
 >   final String bind = actionElement.attributeValue("bind");
   
    ...
   
 >   if ((ref != null || bind != null) && resource != null) {
        // "If both are present, the action has no effect."
        // NOP
 >   } else if (ref != null || bind != null) {
        ...

Adrian



--
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: bind attribute on <xforms:load> not supported

Alessandro  Vernet
Administrator
Adrian,

You are right. This does not work. I created a bug:

http://forge.objectweb.org/tracker/index.php?func=detail&aid=305157&group_id=168&atid=350207

Alex

On 5/3/06, Adrian Baker <[hidden email]> wrote:

> I put a bind onto a <xforms:load> action and received a "Missing
> 'resource' or 'ref' attribute on xforms:load element." exception.
>
> It seems OPS doesn't yet support specifying a bind instead of a ref on a
> the load action.
>
> Adding support for this is a pretty small change in XFormsActionInterpreter:
>
>     final String ref = actionElement.attributeValue("ref");
>  >   final String bind = actionElement.attributeValue("bind");
>
>     ...
>
>  >   if ((ref != null || bind != null) && resource != null) {
>         // "If both are present, the action has no effect."
>         // NOP
>  >   } else if (ref != null || bind != null) {
>         ...
>
> Adrian
>
>
>
>
> --
> 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
>
>
>

--
Blog (XML, Web apps, Open Source):
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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: bind attribute on <xforms:load> not supported

Adrian Baker-2
Just realised this is still outstanding - the fix is literally 2 seconds...

Alessandro Vernet wrote:
Adrian,

You are right. This does not work. I created a bug:

http://forge.objectweb.org/tracker/index.php?func=detail&aid=305157&group_id=168&atid=350207

Alex

On 5/3/06, Adrian Baker [hidden email] wrote:
I put a bind onto a <xforms:load> action and received a "Missing
'resource' or 'ref' attribute on xforms:load element." exception.

It seems OPS doesn't yet support specifying a bind instead of a ref on a
the load action.

Adding support for this is a pretty small change in XFormsActionInterpreter:

    final String ref = actionElement.attributeValue("ref");
 >   final String bind = actionElement.attributeValue("bind");

    ...

 >   if ((ref != null || bind != null) && resource != null) {
        // "If both are present, the action has no effect."
        // NOP
 >   } else if (ref != null || bind != null) {
        ...

Adrian




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws





--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/


-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] 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: bind attribute on <xforms:load> not supported

Erik Bruchez
Administrator
You are faster than I am ;-)

I have committed a fix. Let us know if this works for you.

-Erik

Adrian Baker wrote:

> Just realised this is still outstanding - the fix is literally 2 seconds...
>
> Alessandro Vernet wrote:
>> Adrian,
>>
>> You are right. This does not work. I created a bug:
>>
>> http://forge.objectweb.org/tracker/index.php?func=detail&aid=305157&group_id=168&atid=350207 
>>
>>
>> Alex
>>
>> On 5/3/06, Adrian Baker <[hidden email]> wrote:
>>> I put a bind onto a <xforms:load> action and received a "Missing
>>> 'resource' or 'ref' attribute on xforms:load element." exception.
>>>
>>> It seems OPS doesn't yet support specifying a bind instead of a ref on a
>>> the load action.
>>>
>>> Adding support for this is a pretty small change in
>>> XFormsActionInterpreter:
>>>
>>>     final String ref = actionElement.attributeValue("ref");
>>>  >   final String bind = actionElement.attributeValue("bind");
>>>
>>>     ...
>>>
>>>  >   if ((ref != null || bind != null) && resource != null) {
>>>         // "If both are present, the action has no effect."
>>>         // NOP
>>>  >   } else if (ref != null || bind != null) {
>>>         ...
>>>
>>> Adrian
>>>
>>>
>>>
>>>
>>> --
>>> 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
>>>
>>>
>>>
>>
>>
>> --
>> Blog (XML, Web apps, Open Source):
>> 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
>>  
>
>
> ------------------------------------------------------------------------
>
>
> --
> 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