Problem xforms:select1 appereance="xxforms:autocomplete"

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

Problem xforms:select1 appereance="xxforms:autocomplete"

Marcus-2
Hi,
is it normal, that with this combination only the "xforms:value"s are displayed and not the "xform:label"s???
 
My select1 is:
--------------------
<xforms:select1 ref="xxforms:instance('term-suggestion-query')//term1" selection="open" incremental="true"
="xxforms:autocomplete" class="search-field">
    <xforms:itemset nodeset="xxforms:instance('search-instance')//li">
        <xforms:label>
           <xforms:output ref="term/."/><xforms:output ref="hits/."/>
        </xforms:label>
        <xforms:value>
            <xforms:output ref="term/."/>
        </xforms:value>
    </xforms:itemset>
    <!-- Run the 'suggest' submission as text being typed -->
    <xforms:action ev:event="xforms-value-changed">
        <xforms:setvalue ref="xxforms:instance('search01-instance')//term01" value="xxforms:instance('term-suggestion-query')//term1"/>
        <xforms:send submission="update-term-suggestion"/>
        <xforms:recalculate/>
    </xforms:action>
</xforms:select1>
 
The instance i'm getting back is:
-----------------------------------------------
<exist:result exist:hits="1" exist:start="1" exist:count="1" xmlns:exist="http://exist.sourceforge.net/NS/exist">
    <terms>
        <ul class="LSRes">
            <li class="LSRow"><term>test</term><hits>(6x)</hits><position>1</position><rank>1</rank></li>
            <li class="LSRow"><term>testlink</term><hits>(11x)</hits><position>13</position><rank>2</rank></li>
            <li class="LSRow"><term>test3</term><hits>(2x)</hits><position>9</position><rank>3</rank></li>
            <li class="LSRow"><term>test4</term><hits>(3x)</hits><position>10</position><rank>3</rank></li>
            <li class="LSRow"><term>test01a</term><hits>(1x)</hits><position>3</position><rank>4</rank></li>
        </ul>
    </terms>
</exist:result>
 
So, my problem is, that i want to display also the number of hits besides the term, but not the output of xforms:label is displayed, but the output of xforms:value :-(
Is that a bug???
 
Please let me know, if there is any answer or a bugfix!?
Thanks, Marcus


--
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: Problem xforms:select1 appereance="xxforms:autocomplete"

Erik Bruchez
Administrator
Marcus,

The autocomplete control only works with values: it completely ignores
labels at the moment.

For sure values have to be displayed, because what you can enter in the
field is a value, not a label, so yo want autocompletion to happen
against values. It would be nice, for the values in the itemset, to
display labels as well, but this is not implemented at the moment.

We have deferred changes to the autocomplete control because we wanted
to migrate to the YUI library implementation from our current legacy
JavaScript code for this control.

-Erik

Marcus wrote:

> Hi,
> is it normal, that with this combination only the "xforms:value"s are
> displayed and not the "xform:label"s???
>  
> My select1 is:
> --------------------
> <xforms:select1 ref="xxforms:instance('term-suggestion-query')//term1"
> selection="open" incremental="true"
> ="xxforms:autocomplete" class="search-field">
>     <xforms:itemset nodeset="xxforms:instance('search-instance')//li">
>         <xforms:label>
>            <xforms:output ref="term/."/><xforms:output ref="hits/."/>
>         </xforms:label>
>         <xforms:value>
>             <xforms:output ref="term/."/>
>         </xforms:value>
>     </xforms:itemset>
>     <!-- Run the 'suggest' submission as text being typed -->
>     <xforms:action ev:event="xforms-value-changed">
>         <xforms:setvalue
> ref="xxforms:instance('search01-instance')//term01"
> value="xxforms:instance('term-suggestion-query')//term1"/>
>         <xforms:send submission="update-term-suggestion"/>
>         <xforms:recalculate/>
>     </xforms:action>
> </xforms:select1>
>  
> The instance i'm getting back is:
> -----------------------------------------------
> <exist:result exist:hits="1" exist:start="1" exist:count="1"
> xmlns:exist="http://exist.sourceforge.net/NS/exist">
>     <terms>
>         <ul class="LSRes">
>             <li
> class="LSRow"><term>test</term><hits>(6x)</hits><position>1</position><rank>1</rank></li>
>             <li
> class="LSRow"><term>testlink</term><hits>(11x)</hits><position>13</position><rank>2</rank></li>
>             <li
> class="LSRow"><term>test3</term><hits>(2x)</hits><position>9</position><rank>3</rank></li>
>             <li
> class="LSRow"><term>test4</term><hits>(3x)</hits><position>10</position><rank>3</rank></li>
>             <li
> class="LSRow"><term>test01a</term><hits>(1x)</hits><position>3</position><rank>4</rank></li>
>         </ul>
>     </terms>
> </exist:result>
>  
> So, my problem is, that i want to display also the number of hits
> besides the term, but not the output of xforms:label is displayed, but
> the output of xforms:value :-(
> Is that a bug???
>  
> Please let me know, if there is any answer or a bugfix!?
> Thanks, Marcus
>

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

Re: Problem xforms:select1 appereance="xxforms:autocomplete"

Marcus-2
Hi,
so is there a possibility to do a workaround to display the labels as well -
i.e. in brakets? Or will there be a change soon?
If there is no way, no problem, i can live with that, but it would have been
nice :-)

Regards, Marcus


----- Original Message -----
From: "Erik Bruchez" <[hidden email]>
To: <[hidden email]>
Sent: Monday, July 02, 2007 9:57 PM
Subject: Re: [ops-users] Problem xforms:select1
appereance="xxforms:autocomplete"


> Marcus,
>
> The autocomplete control only works with values: it completely ignores
> labels at the moment.
>
> For sure values have to be displayed, because what you can enter in the
> field is a value, not a label, so yo want autocompletion to happen
> against values. It would be nice, for the values in the itemset, to
> display labels as well, but this is not implemented at the moment.
>
> We have deferred changes to the autocomplete control because we wanted
> to migrate to the YUI library implementation from our current legacy
> JavaScript code for this control.
>
> -Erik
>
> Marcus wrote:
>> Hi,
>> is it normal, that with this combination only the "xforms:value"s are
>> displayed and not the "xform:label"s???
>>
>> My select1 is:
>> --------------------
>> <xforms:select1 ref="xxforms:instance('term-suggestion-query')//term1"
>> selection="open" incremental="true"
>> ="xxforms:autocomplete" class="search-field">
>>     <xforms:itemset nodeset="xxforms:instance('search-instance')//li">
>>         <xforms:label>
>>            <xforms:output ref="term/."/><xforms:output ref="hits/."/>
>>         </xforms:label>
>>         <xforms:value>
>>             <xforms:output ref="term/."/>
>>         </xforms:value>
>>     </xforms:itemset>
>>     <!-- Run the 'suggest' submission as text being typed -->
>>     <xforms:action ev:event="xforms-value-changed">
>>         <xforms:setvalue
>> ref="xxforms:instance('search01-instance')//term01"
>> value="xxforms:instance('term-suggestion-query')//term1"/>
>>         <xforms:send submission="update-term-suggestion"/>
>>         <xforms:recalculate/>
>>     </xforms:action>
>> </xforms:select1>
>>
>> The instance i'm getting back is:
>> -----------------------------------------------
>> <exist:result exist:hits="1" exist:start="1" exist:count="1"
>> xmlns:exist="http://exist.sourceforge.net/NS/exist">
>>     <terms>
>>         <ul class="LSRes">
>>             <li
>> class="LSRow"><term>test</term><hits>(6x)</hits><position>1</position><rank>1</rank></li>
>>             <li
>> class="LSRow"><term>testlink</term><hits>(11x)</hits><position>13</position><rank>2</rank></li>
>>             <li
>> class="LSRow"><term>test3</term><hits>(2x)</hits><position>9</position><rank>3</rank></li>
>>             <li
>> class="LSRow"><term>test4</term><hits>(3x)</hits><position>10</position><rank>3</rank></li>
>>             <li
>> class="LSRow"><term>test01a</term><hits>(1x)</hits><position>3</position><rank>4</rank></li>
>>         </ul>
>>     </terms>
>> </exist:result>
>>
>> So, my problem is, that i want to display also the number of hits
>> besides the term, but not the output of xforms:label is displayed, but
>> the output of xforms:value :-(
>> Is that a bug???
>>
>> Please let me know, if there is any answer or a bugfix!?
>> Thanks, Marcus
>>
>
>
> --
> 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
> 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: Problem xforms:select1 appereance="xxforms:autocomplete"

Erik Bruchez
Administrator
If you put brackets, those will be in the value as well. So no, for now
I don't think there is a workaround.

-Erik

Marcus wrote:

> Hi,
> so is there a possibility to do a workaround to display the labels as
> well - i.e. in brakets? Or will there be a change soon?
> If there is no way, no problem, i can live with that, but it would have
> been nice :-)
>
> Regards, Marcus
>
>
> ----- Original Message ----- From: "Erik Bruchez" <[hidden email]>
> To: <[hidden email]>
> Sent: Monday, July 02, 2007 9:57 PM
> Subject: Re: [ops-users] Problem xforms:select1
> appereance="xxforms:autocomplete"
>
>
>> Marcus,
>>
>> The autocomplete control only works with values: it completely ignores
>> labels at the moment.
>>
>> For sure values have to be displayed, because what you can enter in the
>> field is a value, not a label, so yo want autocompletion to happen
>> against values. It would be nice, for the values in the itemset, to
>> display labels as well, but this is not implemented at the moment.
>>
>> We have deferred changes to the autocomplete control because we wanted
>> to migrate to the YUI library implementation from our current legacy
>> JavaScript code for this control.
>>
>> -Erik
>>
>> Marcus wrote:
>>> Hi,
>>> is it normal, that with this combination only the "xforms:value"s are
>>> displayed and not the "xform:label"s???
>>>
>>> My select1 is:
>>> --------------------
>>> <xforms:select1 ref="xxforms:instance('term-suggestion-query')//term1"
>>> selection="open" incremental="true"
>>> ="xxforms:autocomplete" class="search-field">
>>>     <xforms:itemset nodeset="xxforms:instance('search-instance')//li">
>>>         <xforms:label>
>>>            <xforms:output ref="term/."/><xforms:output ref="hits/."/>
>>>         </xforms:label>
>>>         <xforms:value>
>>>             <xforms:output ref="term/."/>
>>>         </xforms:value>
>>>     </xforms:itemset>
>>>     <!-- Run the 'suggest' submission as text being typed -->
>>>     <xforms:action ev:event="xforms-value-changed">
>>>         <xforms:setvalue
>>> ref="xxforms:instance('search01-instance')//term01"
>>> value="xxforms:instance('term-suggestion-query')//term1"/>
>>>         <xforms:send submission="update-term-suggestion"/>
>>>         <xforms:recalculate/>
>>>     </xforms:action>
>>> </xforms:select1>
>>>
>>> The instance i'm getting back is:
>>> -----------------------------------------------
>>> <exist:result exist:hits="1" exist:start="1" exist:count="1"
>>> xmlns:exist="http://exist.sourceforge.net/NS/exist">
>>>     <terms>
>>>         <ul class="LSRes">
>>>             <li
>>> class="LSRow"><term>test</term><hits>(6x)</hits><position>1</position><rank>1</rank></li>
>>>
>>>             <li
>>> class="LSRow"><term>testlink</term><hits>(11x)</hits><position>13</position><rank>2</rank></li>
>>>
>>>             <li
>>> class="LSRow"><term>test3</term><hits>(2x)</hits><position>9</position><rank>3</rank></li>
>>>
>>>             <li
>>> class="LSRow"><term>test4</term><hits>(3x)</hits><position>10</position><rank>3</rank></li>
>>>
>>>             <li
>>> class="LSRow"><term>test01a</term><hits>(1x)</hits><position>3</position><rank>4</rank></li>
>>>
>>>         </ul>
>>>     </terms>
>>> </exist:result>
>>>
>>> So, my problem is, that i want to display also the number of hits
>>> besides the term, but not the output of xforms:label is displayed, but
>>> the output of xforms:value :-(
>>> Is that a bug???
>>>
>>> Please let me know, if there is any answer or a bugfix!?
>>> Thanks, Marcus
>>>
>>
>>
>> --
>> 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
>> ObjectWeb mailing lists service home page: http://www.objectweb.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws