Mysterious Disappearing Label on Select1

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

Mysterious Disappearing Label on Select1

Henrik Pettersen
All,

I have a problem where the label of the xforms control 'Select1' disappears after an asynchronous submission.

Here is how you reproduce (you may find the code attached to this email) :
------------------------------------------------------------------------------------------------------------
1. Load attached example and visit [...]/test/home
2. Note the label 'test expression' and the red traffic light signal
3. Add any character to the input box
4. Note how the label 'test expression' disappears, and the traffic light signal changes to red.
5. The label should not be disappearing

I am using TAG_OPS_3_5_M1_200610051248 on Tomcat 5.5 in Firefox 1.5.

Is this a bug, or am I doing something wrong? Has anyone else seen this issue?

Thanks!

Sincerely,
Henrik Pettersen
Advanced Computation Laboratory
Cancer Research UK





--
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

test.zip (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Fwd: Mysterious Disappearing Label on Select1

Henrik Pettersen
All,

my apologies for the repost, but I am still stuck with this problem. Has anyone else had any problems with disappearing labels for select1 controls when doing asynchronous updates?

I have attached a reproducible example, but here is my view again (below). Sorry about the long example, but I have not been able to narrow down what makes the label disappear.

I've now also tried this in a more recent version of OPS, from 2 weeks ago.

<xhtml:html xmlns=""
           xmlns:xhtml="http://www.w3.org/1999/xhtml "
           xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
           xmlns:f="http://orbeon.org/oxf/xml/formatting "
           xmlns:aspic="http://www.cruk.com/aspic/editor/v1"
           xmlns:xforms="http://www.w3.org/2002/xforms "
           xmlns:xi="http://www.w3.org/2001/XInclude"
           xmlns:ev="http://www.w3.org/2001/xml-events "
           xmlns:xs="http://www.w3.org/2001/XMLSchema"
           xmlns:xxforms="http://orbeon.org/oxf/xml/xforms "
           xmlns:xxf="http://orbeon.org/oxf/xml/xforms"
           xmlns:exf="http://www.exforms.org/exf/1-0 "
           xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
           xsl:version="2.0">
     <xhtml:head>
         <xhtml:meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
         <xhtml:title>Testing Disappearing Label</xhtml:title>
         <xforms:model>

             <xforms:instance id="test-expression">
                <aspic:input>
                    <aspic:knowledgebaseid>1</aspic:knowledgebaseid>
                    <aspic:expression>a</aspic:expression>
                    <aspic:result aspic:parseable="true"/>
                    <aspic:next>
                        <aspic:term>A new Parameter (',')</aspic:term>
                        <aspic:term>Open Parameter List ('(')</aspic:term>
                        <aspic:term>Close Parameter List (')')</aspic:term>
                        <aspic:hint>Incomplete Expression. </aspic:hint>
                    </aspic:next>
                </aspic:input>
             </xforms:instance>

            <xforms:instance id="knowledgebase">
                <aspic:knowledgebase>
                    <aspic:predictive>
                        <aspic:name>d</aspic:name>
                        <aspic:name>a</aspic:name>
                        <aspic:name>c</aspic:name>
                        <aspic:name>neg_b</aspic:name>
                        <aspic:name>b</aspic:name>
                    </aspic:predictive>
                </aspic:knowledgebase>
            </xforms:instance>

             <xforms:instance id="resources-instance">
                <aspic:resources aspic:fact="false">
                    <aspic:testexpression>Test Expression</aspic:testexpression>
                </aspic:resources>
             </xforms:instance>

            <xforms:submission id="test-expression-submission"
                               ref="instance('test-expression')"
                               method="post"
                               action="/test/nextinstance"
                               replace="instance"/>
         </xforms:model>
     </xhtml:head>

    <xhtml:body>
        <xhtml:div id="expression-details">

            <!-- The offending XForms control -->
            <xforms:select1 ref="instance('test-expression')/aspic:expression" selection="open" incremental="true" appearance="xxforms:autocomplete" class="input">
                <xforms:itemset nodeset="instance('knowledgebase')/aspic:predictive/aspic:name">
                    <xforms:label ref="."/>
                    <xforms:value ref="."/>
                </xforms:itemset>

                <!-- This label mysteriously disappears -->
                <xforms:label ref="instance('resources-instance')/aspic:testexpression"/>

                <xforms:action ev:event="xforms-value-changed">
                    <xforms:setvalue ref="instance('test-expression')/aspic:term" value="instance('test-expression')/aspic:expression"/>
                    <xforms:send submission="test-expression-submission"/>
                </xforms:action>
            </xforms:select1>

            <!-- If the expression is not "@parseable", show a red light and display a hint -->
            <xforms:group ref="instance('test-expression')/aspic:result[@aspic:parseable='false']">
                <xforms:trigger appearance="xxforms:image">
                    <xxforms:img src="/styling/img/trafficlight_red.png"/>
                    <xforms:label>&#160;</xforms:label>
                    <xforms:help>
                        <xforms:output ref="instance('test-expression')/aspic:next/aspic:hint"/>
                    </xforms:help>
                </xforms:trigger>
            </xforms:group>

            <!-- If the expression is "@parseable", show a green light and no hint -->
            <xforms:group ref="instance('test-expression')/aspic:result[@aspic:parseable='true']">
                <xforms:trigger appearance="xxforms:image">
                    <xxforms:img src="/styling/img/trafficlight_green.png"/>
                    <xforms:label>&#160;</xforms:label>
                </xforms:trigger>
            </xforms:group>
        </xhtml:div>

        <!-- If the expression is "@parseable", show the answer -->
        <xhtml:div id="expression-details">
            <xforms:group
                         ref="instance('test-expression')/aspic:result[@aspic:parseable='true']">
                <xhtml:strong>
                    <xforms:output ref="instance('test-expression')/aspic:result"/>
                </xhtml:strong>
            </xforms:group>
        </xhtml:div>
    </xhtml:body>
</xhtml:html>


Thank you all!

Sincerely,
Henrik Pettersen
Advanced Computational Laboratory
Cancer Research UK


---------- Forwarded message ----------
From: Henrik Pettersen <[hidden email]>
Date: Oct 23, 2006 12:36 PM
Subject: Mysterious Disappearing Label on Select1
To: [hidden email]


All,

I have a problem where the label of the xforms control 'Select1' disappears after an asynchronous submission.

Here is how you reproduce (you may find the code attached to this email) :
------------------------------------------------------------------------------------------------------------
1. Load attached example and visit [...]/test/home
2. Note the label 'test expression' and the red traffic light signal
3. Add any character to the input box
4. Note how the label 'test expression' disappears, and the traffic light signal changes to red.
5. The label should not be disappearing

I am using TAG_OPS_3_5_M1_200610051248 on Tomcat 5.5 in Firefox 1.5.

Is this a bug, or am I doing something wrong? Has anyone else seen this issue?

Thanks!

Sincerely,
Henrik Pettersen
Advanced Computation Laboratory
Cancer Research UK






--
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

test.zip (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Fwd: Mysterious Disappearing Label on Select1

Alessandro  Vernet
Administrator
Hi Henrik,

Sorry for the delay. I manged to reproduced this. Here is the corresponding bug:

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

The bug is now fixed. I hope that this will work for you.

Alex


On 11/9/06, Henrik Pettersen <[hidden email]> wrote:

> All,
>
> my apologies for the repost, but I am still stuck with this problem. Has
> anyone else had any problems with disappearing labels for select1 controls
> when doing asynchronous updates?
>
> I have attached a reproducible example, but here is my view again (below).
> Sorry about the long example, but I have not been able to narrow down what
> makes the label disappear.
>
> I've now also tried this in a more recent version of OPS, from 2 weeks ago.
>
> <xhtml:html xmlns=""
>            xmlns:xhtml="http://www.w3.org/1999/xhtml "
>            xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>            xmlns:f="http://orbeon.org/oxf/xml/formatting "
>
> xmlns:aspic="http://www.cruk.com/aspic/editor/v1"
>            xmlns:xforms="http://www.w3.org/2002/xforms "
>            xmlns:xi="http://www.w3.org/2001/XInclude"
>            xmlns:ev="http://www.w3.org/2001/xml-events "
>            xmlns:xs="http://www.w3.org/2001/XMLSchema"
>            xmlns:xxforms="http://orbeon.org/oxf/xml/xforms
> "
>            xmlns:xxf="http://orbeon.org/oxf/xml/xforms"
>            xmlns:exf="http://www.exforms.org/exf/1-0 "
>            xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
>            xsl:version="2.0">
>      <xhtml:head>
>          <xhtml:meta http-equiv="Content-Type" content="text/html;
> charset=UTF-8" />
>          <xhtml:title>Testing Disappearing Label</xhtml:title>
>          <xforms:model>
>
>              <xforms:instance id="test-expression">
>                 <aspic:input>
>
> <aspic:knowledgebaseid>1</aspic:knowledgebaseid>
>                     <aspic:expression>a</aspic:expression>
>                     <aspic:result aspic:parseable="true"/>
>                     <aspic:next>
>                         <aspic:term>A new Parameter (',')</aspic:term>
>                         <aspic:term>Open Parameter List ('(')</aspic:term>
>                          <aspic:term>Close Parameter List (')')</aspic:term>
>                         <aspic:hint>Incomplete Expression. </aspic:hint>
>                     </aspic:next>
>                  </aspic:input>
>              </xforms:instance>
>
>             <xforms:instance id="knowledgebase">
>                 <aspic:knowledgebase>
>                     <aspic:predictive>
>                         <aspic:name>d</aspic:name>
>                         <aspic:name>a</aspic:name>
>                         <aspic:name>c</aspic:name>
>                         <aspic:name>neg_b</aspic:name>
>                         <aspic:name>b</aspic:name>
>                     </aspic:predictive>
>                 </aspic:knowledgebase>
>             </xforms:instance>
>
>              <xforms:instance id="resources-instance">
>                 <aspic:resources aspic:fact="false">
>                     <aspic:testexpression>Test
> Expression</aspic:testexpression>
>                 </aspic:resources>
>              </xforms:instance>
>
>             <xforms:submission id="test-expression-submission"
>
> ref="instance('test-expression')"
>                                method="post"
>                                 action="/test/nextinstance"
>                                replace="instance"/>
>          </xforms:model>
>      </xhtml:head>
>
>     <xhtml:body>
>         <xhtml:div id="expression-details">
>
>             <!-- The offending XForms control -->
>             <xforms:select1
> ref="instance('test-expression')/aspic:expression"
> selection="open" incremental="true"
> appearance="xxforms:autocomplete" class="input">
>                 <xforms:itemset
> nodeset="instance('knowledgebase')/aspic:predictive/aspic:name">
>                     <xforms:label ref="."/>
>                     <xforms:value ref="."/>
>                 </xforms:itemset>
>
>                 <!-- This label mysteriously disappears -->
>                  <xforms:label
> ref="instance('resources-instance')/aspic:testexpression"/>
>
>                 <xforms:action
> ev:event="xforms-value-changed">
>                     <xforms:setvalue
> ref="instance('test-expression')/aspic:term"
> value="instance('test-expression')/aspic:expression"/>
>                     <xforms:send
> submission="test-expression-submission"/>
>                 </xforms:action>
>             </xforms:select1>
>
>             <!-- If the expression is not "@parseable", show a red light and
> display a hint -->
>             <xforms:group
> ref="instance('test-expression')/aspic:result[@aspic:parseable='false']">
>                 <xforms:trigger appearance="xxforms:image">
>                     <xxforms:img
> src="/styling/img/trafficlight_red.png"/>
>                     <xforms:label>&#160;</xforms:label>
>                     <xforms:help>
>                         <xforms:output
> ref="instance('test-expression')/aspic:next/aspic:hint"/>
>                     </xforms:help>
>                 </xforms:trigger>
>             </xforms:group>
>
>             <!-- If the expression is "@parseable", show a green light and
> no hint -->
>             <xforms:group
> ref="instance('test-expression')/aspic:result[@aspic:parseable='true']">
>                 <xforms:trigger appearance="xxforms:image">
>                     <xxforms:img
> src="/styling/img/trafficlight_green.png"/>
>                     <xforms:label>&#160;</xforms:label>
>                 </xforms:trigger>
>             </xforms:group>
>         </xhtml:div>
>
>         <!-- If the expression is "@parseable", show the answer -->
>         <xhtml:div id="expression-details">
>             <xforms:group
>
> ref="instance('test-expression')/aspic:result[@aspic:parseable='true']">
>                 <xhtml:strong>
>                     <xforms:output
> ref="instance('test-expression')/aspic:result"/>
>                 </xhtml:strong>
>             </xforms:group>
>         </xhtml:div>
>     </xhtml:body>
> </xhtml:html>
>
>
> Thank you all!
>
> Sincerely,
> Henrik Pettersen
> Advanced Computational Laboratory
> Cancer Research UK
>
>
> ---------- Forwarded message ----------
> From: Henrik Pettersen <[hidden email]>
>  Date: Oct 23, 2006 12:36 PM
> Subject: Mysterious Disappearing Label on Select1
> To: [hidden email]
>
>
> All,
>
> I have a problem where the label of the xforms control 'Select1' disappears
> after an asynchronous submission.
>
> Here is how you reproduce (you may find the code attached to this email) :
> ------------------------------------------------------------------------------------------------------------
> 1. Load attached example and visit [...]/test/home
> 2. Note the label 'test expression' and the red traffic light signal
> 3. Add any character to the input box
> 4. Note how the label 'test expression' disappears, and the traffic light
> signal changes to red.
> 5. The label should not be disappearing
>
> I am using TAG_OPS_3_5_M1_200610051248 on Tomcat 5.5 in Firefox 1.5.
>
> Is this a bug, or am I doing something wrong? Has anyone else seen this
> issue?
>
> Thanks!
>
> Sincerely,
> Henrik Pettersen
>  Advanced Computation Laboratory
> Cancer Research UK
>
>
>
>
>
>
> --
> 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