Orbeon Bug

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

Orbeon Bug

Jim Logan-3
Please help! I need to get this working for a deadline!

Today I made a couple of conditional buttons and tickled a bug in Orbeon that generates invalid HTML, which greys out the button that should be active.  The invalid HTML is as follows:
<button id="xforms-element-62" class="xforms-control xforms-trigger xforms-readonly" type="button" disabled>Browse Assets</button>
The instance looks like this:
<xforms:instance id="asset">
    <asset action="add" xmlns="">
        <login/>
        <container/>
        <comments/>
        <file filename="" mediatype="" size=""/>
        <response>TEST</response>
    </asset>
</xforms:instance>
The triggers look like this:
<xforms:group ref="instance('asset')/response">
    <xforms:trigger ref=[hidden email]>
        <xforms:label>Edit Asset</xforms:label>
        <xforms:send ev:event="DOMActivate" submission="edit-asset" />
    </xforms:trigger>
    <xforms:trigger ref=[hidden email]>
        <xforms:label>Browse Assets</xforms:label>
        <xforms:send ev:event="DOMActivate" submission="" />
    </xforms:trigger>
</xforms:group>
How do I work around this? I've been looking for another way to express when the buttons are visible, but I've run out of ideas.

Thanks,
-Jim



--
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: Orbeon Bug

Jim Logan-3
Jim Logan wrote:
Please help! I need to get this working for a deadline!
I found an equivalent expression that works around the bug, so there's no more urgency to this.

Changing
[hidden email]
into
ref=".[ ../@action = 'update' ]"
works better, and is more concise.

-Jim

Today I made a couple of conditional buttons and tickled a bug in Orbeon that generates invalid HTML, which greys out the button that should be active.  The invalid HTML is as follows:
<button id="xforms-element-62" class="xforms-control xforms-trigger xforms-readonly" type="button" disabled>Browse Assets</button>
The instance looks like this:
<xforms:instance id="asset">
    <asset action="add" xmlns="">
        <login/>
        <container/>
        <comments/>
        <file filename="" mediatype="" size=""/>
        <response>TEST</response>
    </asset>
</xforms:instance>
The triggers look like this:
<xforms:group ref="instance('asset')/response">
    <xforms:trigger ref=[hidden email]>
        <xforms:label>Edit Asset</xforms:label>
        <xforms:send ev:event="DOMActivate" submission="edit-asset" />
    </xforms:trigger>
    <xforms:trigger ref=[hidden email]>
        <xforms:label>Browse Assets</xforms:label>
        <xforms:send ev:event="DOMActivate" submission="" />
    </xforms:trigger>
</xforms:group>
How do I work around this? I've been looking for another way to express when the buttons are visible, but I've run out of ideas.

Thanks,
-Jim




--
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: Orbeon Bug

Erik Bruchez
Administrator
In reply to this post by Jim Logan-3
> Today I made a couple of conditional buttons and tickled a bug in  
> Orbeon that generates invalid HTML, which greys out the button that  
> should be active.  The invalid HTML is as follows:
> <button id="xforms-element-62" class="xforms-control xforms-trigger  
> xforms-readonly" type="button" disabled>Browse Assets</button>

That is not well-formed *XML*, of course, but that is perfectly valid  
HTML.

Anyway, what seems to be happening is that the button is marked as  
read-only. Do you have an xforms:bind assigning the readonly MIP to  
the @action attribute? If not, then THAT would be a bug.

-Erik

>
> The instance looks like this:
> <xforms:instance id="asset">
>     <asset action="add" xmlns="">
>         <login/>
>         <container/>
>         <comments/>
>         <file filename="" mediatype="" size=""/>
>         <response>TEST</response>
>     </asset>
> </xforms:instance>
> The triggers look like this:
> <xforms:group ref="instance('asset')/response">
>     <xforms:trigger ref="instance('asset')/@action[ . = 'update' ]">
>         <xforms:label>Edit Asset</xforms:label>
>         <xforms:send ev:event="DOMActivate" submission="edit-asset" />
>     </xforms:trigger>
>     <xforms:trigger ref="instance('asset')/@action[ . = 'add' ]">
>         <xforms:label>Browse Assets</xforms:label>
>         <xforms:send ev:event="DOMActivate" submission="" />
>     </xforms:trigger>
> </xforms:group>
> How do I work around this? I've been looking for another way to  
> express when the buttons are visible, but I've run out of ideas.
>
> Thanks,
> -Jim
--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Orbeon Bug

Jim Logan-3
Erik Bruchez wrote:
>> Today I made a couple of conditional buttons and tickled a bug in
>> Orbeon that generates invalid HTML, which greys out the button that
>> should be active.  The invalid HTML is as follows:
>> <button id="xforms-element-62" class="xforms-control xforms-trigger
>> xforms-readonly" type="button" disabled>Browse Assets</button>
>
> That is not well-formed *XML*, of course, but that is perfectly valid
> HTML.
Oops, you're right. Sorry.

Is it incorrect for XHTML since that's supposed to be valid XML?
>
> Anyway, what seems to be happening is that the button is marked as
> read-only. Do you have an xforms:bind assigning the readonly MIP to
> the @action attribute? If not, then THAT would be a bug.
>
What's a MIP? I do have several binds, but I don't think I have any that
make it read-only. Expressing the XPath differently made it work
properly, so I would think one or the other way of expressing it has a bug.

Thanks,
-Jim



--
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: Re: Orbeon Bug

Erik Bruchez
Administrator
>> That is not well-formed *XML*, of course, but that is perfectly  
>> valid HTML.
> Oops, you're right. Sorry.
>
> Is it incorrect for XHTML since that's supposed to be valid XML?

That's right. By default Orbeon Forms sends HTML to the browser though.

>> Anyway, what seems to be happening is that the button is marked as  
>> read-only. Do you have an xforms:bind assigning the readonly MIP to  
>> the @action attribute? If not, then THAT would be a bug.
>>
> What's a MIP? I do have several binds, but I don't think I have any  
> that make it read-only. Expressing the XPath differently made it  
> work properly, so I would think one or the other way of expressing  
> it has a bug.

MIP = Model Item Properties. It's a fancy XForms term for the  
properties assigned by xforms:bind, including relevance, read-only,  
required, validity, and type.

-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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Orbeon Bug

Jim Logan-3
Erik Bruchez wrote:

>>> Anyway, what seems to be happening is that the button is marked as
>>> read-only. Do you have an xforms:bind assigning the readonly MIP to
>>> the @action attribute? If not, then THAT would be a bug.
>>>
>> What's a MIP? I do have several binds, but I don't think I have any
>> that make it read-only. Expressing the XPath differently made it work
>> properly, so I would think one or the other way of expressing it has
>> a bug.
>
> MIP = Model Item Properties. It's a fancy XForms term for the
> properties assigned by xforms:bind, including relevance, read-only,
> required, validity, and type.
I definitely do not have a bind assigning the readonly property to the
@action attribute.

-Jim



--
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: Re: Re: Re: Orbeon Bug

Erik Bruchez
Administrator
> I definitely do not have a bind assigning the readonly property to  
> the @action attribute.

It can be the @action attribute or any of its ancestors. What about  
that?

-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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: Re: Orbeon Bug

Jim Logan-3
Erik Bruchez wrote:
>> I definitely do not have a bind assigning the readonly property to
>> the @action attribute.
>
> It can be the @action attribute or any of its ancestors. What about that?
Nothing is readonly...



--
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: Re: Re: Re: Re: Re: Orbeon Bug

Erik Bruchez
Administrator
>> It can be the @action attribute or any of its ancestors. What about  
>> that?
> Nothing is readonly...

Surprising. An example showing this issue would help.

-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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: Re: Re: Orbeon Bug

David McIntyre
In reply to this post by Jim Logan-3
Just because this one has caught me out very recently - setting a @calculate on a node also makes it readonly, by default.

Dave Mc

Jim Logan wrote:
Erik Bruchez wrote:
I definitely do not have a bind assigning the readonly property to the @action attribute.

It can be the @action attribute or any of its ancestors. What about that?
Nothing is readonly...


--
Orion Signature
Dave McIntyre
Software Developer
2nd Floor, Orion House, cnr Enfield & Mary St, Mt Eden, PO Box 8273, Auckland, New Zealand
M.+64 21 212 8087 P.+64 9 638 0600 F.+64 9 638 0699
S.<a href="callto:dave.mcintyre">dave.mcintyre E.[hidden email] W.www.orionhealth.com




This e-mail and any attachments are intended only for the person to whom it is addressed and may contain privileged, proprietary, or other data protected from disclosure under applicable law. If you are not the addressee or the person responsible for delivering this to the addressee you are hereby notified that reading, copying or distributing this transmission is prohibited. If you have received this e-mail in error, please telephone us immediately and remove all copies of it from your system. Thank you for your co-operation.


--
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: Re: Re: Re: Re: Re: Re: Orbeon Bug

Jim Logan-3
In reply to this post by Erik Bruchez
Erik Bruchez wrote:
>>> It can be the @action attribute or any of its ancestors. What about
>>> that?
>> Nothing is readonly...
>
> Surprising. An example showing this issue would help.
I will plan to give you an example after my Wednesday deadline.

-Jim


--
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: Re: Re: Re: Re: Re: Re: Orbeon Bug

Jim Logan-3
In reply to this post by David McIntyre
Dave McIntyre wrote:
Just because this one has caught me out very recently - setting a @calculate on a node also makes it readonly, by default.
I think this is the problem. I was using the value of an @calculate to determine which button should be un-hidden. I still am, but the two equivalent expressions give me different results: one makes the un-hidden button show up disabled, and one makes the un-hidden button show up normally, which is the one I want.

Which behavior is correct, according to the XForms spec?

-Jim



--
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: Re: Re: Re: Re: Re: Re: Re: Orbeon Bug

Erik Bruchez
Administrator
> Dave McIntyre wrote:

>>
>> Just because this one has caught me out very recently - setting a  
>> @calculate on a node also makes it readonly, by default.
> I think this is the problem. I was using the value of an @calculate  
> to determine which button should be un-hidden. I still am, but the  
> two equivalent expressions give me different results: one makes the  
> un-hidden button show up disabled, and one makes the un-hidden  
> button show up normally, which is the one I want.
>
> Which behavior is correct, according to the XForms spec?
If a node has a value calculated with @calculate, its "read-only"  
property is automatically set to "true()". You can override this to  
read-write using @readonly="false()".

Now if there are cases where it happens and cases where it doesn't,  
something funny is going on.

-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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

how to call new class files in to xhtml jsp

Surendran M-2
In reply to this post by Erik Bruchez
Dear guys,

I am a tester experimenting in xhtml

I have defined a class in jsp but how to call those classes in xhtml
I put those class files in webinf but not able to use those files even if
and used a import function in  the jsp page itself called them in jsp
(modified guess number xhtml

Regards
surendran



--
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: how to call new class files in to xhtml jsp

Erik Bruchez
Administrator
For JSP advice, I recommend you post questions in a JSP-related forum.

Also, you may want to provide detailed information and examples so  
that people can help.

-Erik

On Aug 16, 2008, at 4:48 AM, Surendran M wrote:

> Dear guys,
>
> I am a tester experimenting in xhtml
>
> I have defined a class in jsp but how to call those classes in xhtml
> I put those class files in webinf but not able to use those files  
> even if
> and used a import function in  the jsp page itself called them in jsp
> (modified guess number xhtml
>
> Regards
> surendran
--
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
OW2 mailing lists service home page: http://www.ow2.org/wws