Is it implemented? one can include xhtml tags in labels within, for example, triggers, but including it within an itemset throws an error.
<xforms:select1 ref="instance('inst_respuestas')/respuesta[@id=instance('inst_cuestionario')/pregunta[index('bucleDePreguntas')]/@id]" id="bucleDeRespuestasExplicadas" appearance="full"> <xforms:label></xforms:label> <!-- incluimos las respuestas posibles para el enunciado --> <xforms:itemset id="valor2" nodeset="instance('inst_cuestionario')/pregunta[index('bucleDePreguntas')]/respuesta"> <!-- Texto de la respuesta y explicación --> OFFENDING LINE <xforms:label><xforms:output value="concat('<xhtml:em>',.,'</xhtml:em>')" mediatype="text/html"/></xforms:label> <xforms:value ref="@valor"/> </xforms:itemset> </xforms:select1> This throws same error: <xforms:select1 ref="instance('inst_respuestas')/respuesta[@id=instance('inst_cuestionario')/pregunta[index('bucleDePreguntas')]/@id]" id="bucleDeRespuestasExplicadas" appearance="full"> <xforms:label></xforms:label> <!-- incluimos las respuestas posibles para el enunciado --> <xforms:itemset id="valor2" nodeset="instance('inst_cuestionario')/pregunta[index('bucleDePreguntas')]/respuesta"> <!-- Texto de la respuesta y explicación --> OFFENDING LINE <xforms:label><xforms:output value="concat('<xhtml:em>',.,'</xhtml:em>')" mediatype="text/html"/></xforms:label> <xforms:value ref="@valor"/> </xforms:itemset> </xforms:select1><xhtml:em>{.}</xhtml:em></xforms:label> <xforms:value ref="@valor"/> </xforms:itemset> </xforms:select1> any advice will be wellcomed. If it is not implemented but anyones has a workaround I will be happy! rich -- 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 |
Richard,
> Is it implemented? one can include xhtml tags in labels within, for example, triggers, but including it within an itemset throws an error. If you just want to modify the style of the label, you could change the css rules by adding your own css. You will have to add a rule for label elements inside the .xforms-select1-appearance-full class: .xforms-select1-appearance-full label { // your custom definitions.... } HTH florian -- 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 richhl
Rich,
This is not implemented at the moment. -Erik On Oct 28, 2008, at 3:56 AM, Richard C. Hidalgo Lorite wrote: > Is it implemented? one can include xhtml tags in labels within, for > example, triggers, but including it within an itemset throws an error. > > <xforms:select1 > ref="instance('inst_respuestas')/ > respuesta[@id=instance('inst_cuestionario')/ > pregunta[index('bucleDePreguntas')]/@id]" > id="bucleDeRespuestasExplicadas" appearance="full"> > <xforms:label></xforms:label> > <!-- incluimos las respuestas posibles para el > enunciado --> > <xforms:itemset id="valor2" > nodeset="instance('inst_cuestionario')/ > pregunta[index('bucleDePreguntas')]/respuesta"> > <!-- Texto de la respuesta y explicación --> > OFFENDING LINE <xforms:label><xforms:output > value="concat('<xhtml:em>',.,'</xhtml:em>')" mediatype="text/ > html"/></xforms:label> > <xforms:value ref="@valor"/> > </xforms:itemset> > </xforms:select1> > > This throws same error: > > <xforms:select1 > ref="instance('inst_respuestas')/ > respuesta[@id=instance('inst_cuestionario')/ > pregunta[index('bucleDePreguntas')]/@id]" > id="bucleDeRespuestasExplicadas" appearance="full"> > <xforms:label></xforms:label> > <!-- incluimos las respuestas posibles para el > enunciado --> > <xforms:itemset id="valor2" > nodeset="instance('inst_cuestionario')/ > pregunta[index('bucleDePreguntas')]/respuesta"> > <!-- Texto de la respuesta y explicación --> > OFFENDING LINE <xforms:label><xforms:output > value="concat('<xhtml:em>',.,'</xhtml:em>')" mediatype="text/ > html"/></xforms:label> > <xforms:value ref="@valor"/> > </xforms:itemset> > </xforms:select1><xhtml:em>{.}</ > xhtml:em></xforms:label> > <xforms:value ref="@valor"/> > </xforms:itemset> > </xforms:select1> > > > any advice will be wellcomed. If it is not implemented but anyones > has a workaround I will be happy! > > rich > > -- > 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 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 richhl
Hello,
I have identified 2 minor problems, while using 3.7beta and I have one RFE ( which existed in 3.5, but not anymore in 3.7): P1: when selecting a date from calendar, a JS error appears (saying B has no properties, hasClass()); [IE 7 complains on "id" is null or not an object] after some debugging, I found that the problem appears in ORBEON.widgets.YUICalendar.blur fn, where inputField.focus() is called. At the moment of closing the calendar, inputField is null, causing JS error. Locally, I used something like if (!inputField){inputField=ORBEON.util.Dom.getChildElementByIndex(target, 0)}; inputField.focus(); which solves the problem, although I'm not sure that is the best approach. The problem can be reproduced with the aforementioned version of FF, IE 7.0 and url http://www.orbeon.com/ops/xforms-controls/. P2: The second problem appears when page is reloaded (CTRL+R or refresh button) - use the same FF and url - access the page by entering URL in the address bar - refresh the page (if the error does not appear after first time [usually does] - try more) JS error appears: Component returned failure code: 0x80470002 (NS_BASE_STREAM_CLOSED) [nsIScriptableInputStream.available] Google results point to some problems when loading YUI libs. Q1: Is there any tool with Orbeon project used for compressing JS files? RFE: Version 3.5 had a very nice feature (I'm not sure whether it was intentionally created or not), making Orbeon forms unique, for reseting radio buttons (unchecking) when navigation key down is pressed (although, it was working in FF). However, this has been gone in 3.7. I compared the old and new versions of xforms.js files but it looks to me that this has been handled on server side. I tried to add explicit handler for key up event and this button, following the similar principals for click event, but nothing worked. Is it possible to add this feature in 3.7 final? Regards, Nikola -- 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
|
Thanks for investigating these!
> P1: when selecting a date from calendar, a JS error appears (saying > B has no properties, hasClass()); > [IE 7 complains on "id" is null or not an object] > after some debugging, I found that the problem appears in > ORBEON.widgets.YUICalendar.blur fn, where inputField.focus() is > called. > At the moment of closing the calendar, inputField is null, > causing JS error. > > Locally, I used something like > if (!inputField) > {inputField=ORBEON.util.Dom.getChildElementByIndex(target, 0)}; > inputField.focus(); > which solves the problem, although I'm not sure that is the best > approach. > > The problem can be reproduced with the aforementioned version of > FF, IE 7.0 and url http://www.orbeon.com/ops/xforms-controls/. it just now. > P2: The second problem appears when page is reloaded (CTRL+R or > refresh button) - use the same FF and url > - access the page by entering URL in the address bar > - refresh the page (if the error does not appear after first time > [usually does] - try more) > > JS error appears: Component returned failure code: 0x80470002 > (NS_BASE_STREAM_CLOSED) [nsIScriptableInputStream.available] > > Google results point to some problems when loading YUI libs. done already, can you try with a nightly? > Q1: Is there any tool with Orbeon project used for compressing JS > files? Yes, we use the YUI compressor. The JAR is available with the sources (yuicompressor-2.3.5.jar). > RFE: Version 3.5 had a very nice feature (I'm not sure whether it > was intentionally created or not), making Orbeon forms unique, for > reseting radio buttons (unchecking) when navigation key down is > pressed (although, it was working in FF). > However, this has been gone in 3.7. I compared the old and > new versions of xforms.js files but it looks to me that this has > been handled on server side. > I tried to add explicit handler for key up event and this > button, following the similar principals for click event, but > nothing worked. > > Is it possible to add this feature in 3.7 final? exactly? Which key would you press? -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 |
See below
Erik Bruchez wrote: > Thanks for investigating these! > >> P1: when selecting a date from calendar, a JS error appears (saying B >> has no properties, hasClass()); >> [IE 7 complains on "id" is null or not an object] >> after some debugging, I found that the problem appears in >> ORBEON.widgets.YUICalendar.blur fn, where inputField.focus() is called. >> At the moment of closing the calendar, inputField is null, >> causing JS error. >> >> Locally, I used something like >> if >> (!inputField){inputField=ORBEON.util.Dom.getChildElementByIndex(target, >> 0)}; >> inputField.focus(); >> which solves the problem, although I'm not sure that is the best >> approach. >> >> The problem can be reproduced with the aforementioned version of >> FF, IE 7.0 and url http://www.orbeon.com/ops/xforms-controls/. > > Do you see this with a recent nightly build? I can't seem to reproduce > it just now. 3.7.0beta1.200808261006 and latest night build 3.7.0beta1.200810310119): When following months are selected, the displayed date is month forward ie. when selecting 2 February, 2 March is displayed. The same happens for April, June, September and November. The version 3.7.0beta1.200808261006 displays dates correctly. > >> P2: The second problem appears when page is reloaded (CTRL+R or >> refresh button) - use the same FF and url >> - access the page by entering URL in the address bar >> - refresh the page (if the error does not appear after first time >> [usually does] - try more) >> >> JS error appears: Component returned failure code: 0x80470002 >> (NS_BASE_STREAM_CLOSED) [nsIScriptableInputStream.available] >> >> Google results point to some problems when loading YUI libs. > > I have seen something similar but not exactly the same. Again, if not > done already, can you try with a nightly? > >> Q1: Is there any tool with Orbeon project used for compressing JS files? > > Yes, we use the YUI compressor. The JAR is available with the sources > (yuicompressor-2.3.5.jar). > >> RFE: Version 3.5 had a very nice feature (I'm not sure whether it was >> intentionally created or not), making Orbeon forms unique, for >> reseting radio buttons (unchecking) when navigation key down is >> pressed (although, it was working in FF). >> However, this has been gone in 3.7. I compared the old and new >> versions of xforms.js files but it looks to me that this has been >> handled on server side. >> I tried to add explicit handler for key up event and this >> button, following the similar principals for click event, but >> nothing worked. >> >> Is it possible to add this feature in 3.7 final? > > I am not sure we have ever implemented this ;-) How did it work > exactly? Which key would you press? button was deselected, sending proper events and the model was updated properly. In FF 2.x any navigation key worked, in IE 6, keys down and right, while in IE 7, the radio button was deselected but the model was not updated. I tried to debug the whole thing and it seems that it is not done on JS level, but on the server side. The interesting point is, that if I try to set empty value for a radio button, on keydown event, in v3.7 ajax response does not contain the list of radio controls that need to be updated, while in 3.5 the list contained the radio control ids with empty value. > > -Erik > > -- > Orbeon Forms - Web Forms for the Enterprise Done the Right Way > http://www.orbeon.com/ > -- *P/ Please consider the environment before deciding to print this e-mail/* -- 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 |