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">The triggers look like this: <xforms:group ref="instance('asset')/response">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 |
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
-- 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 |
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 |
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 |
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 |
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. -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 |
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 |
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 |
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 |
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: --
-- 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 |
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 |
In reply to this post by David McIntyre
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 |
Administrator
|
> Dave McIntyre wrote:
If a node has a value calculated with @calculate, its "read-only"
>> >> 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? 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 |
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 |
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 |
Free forum by Nabble | Edit this page |