combining the YUI date picker and autocomplete functionality

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

combining the YUI date picker and autocomplete functionality

Philip.Cantin
Is there currently a way in Orbeon to have the date picker and the xxforms:autocomplete functionality all in the same text field? I know that the date picker requires an <xf:input> field, but I was wondering if there was a way around this.

Thanks in advance for any suggestions!


---Philip
Reply | Threaded
Open this post in threaded view
|

Re: combining the YUI date picker and autocomplete functionality

Erik Bruchez
Administrator
I don't think this is possible at the moment. Can you describe your  
use case?

-Erik

On Apr 24, 2009, at 12:00 PM, Philip.Cantin wrote:

>
> Is there currently a way in Orbeon to have the date picker and the
> xxforms:autocomplete functionality all in the same text field? I  
> know that
> the date picker requires an <xf:input> field, but I was wondering if  
> there
> was a way around this.
>
> Thanks in advance for any suggestions!
>
>
> ---Philip
> --
> View this message in context: http://www.nabble.com/combining-the-YUI-date-picker-and-autocomplete-functionality-tp23222921p23222921.html
> Sent from the ObjectWeb OPS - Users mailing list archive at  
> Nabble.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
--
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: combining the YUI date picker and autocomplete functionality

Philip.Cantin
Erik,

Thanks a bunch for your quick reply! In Orbeon (I'm currently using 3.7.0beta1.200808260135), I'd like to be able to use the autocomplete functionality of select1 combo boxes like the following:

<xf:select1 ref="." selection="open" appearance="xxforms:autocomplete" incremental="true">
   <xf:item>
      <xf:label>Label1</xf:label>
      <xf:value>Value1</xf:value>
   </xf:item>
   <xf:item>
   <xf:label>Label2</xf:label>
   <xf:value>Value2</xf:value>
   </xf:item>
</xf:select1>

while simultaneously displaying a YUI date picker either as part of the combo box (which, of course, will look like a text field because of the "xxforms:autocomplete" value of the 'appearance' attribute), or right next to the combo box.

In short, the user should be able to either click the YUI date picker and have that value appear in the text field, or type in certain other values in the same text field which will display the autocomplete drop-down list.

I figured having the date picker as part of the combo box was out of the question since Orbeon only allows <xf:input> elements to provide the YUI date picker, and not <xf:select1> elements. So I tried a workaround, associated with this post from yesterday:

http://www.nabble.com/appearance%3D%22minimal%22-does-not-seem-to-work-for-xf%3Ainput-td23202502.html

My idea was to have TWO separate input fields: one for the autocomplete text field, and one for the date picker, but have the <xf:input> tag corresponding to the date picker contain a value of "minimal" for the 'appearance' attribute, and have both input fields reference the same nodeset.

But it appears Orbeon does not support this attribute with <xf:input>, and I read in the Orbeon Wiki that this is one of the things to be supported in the future (http://wiki.orbeon.com/forms/projects/xforms-date-widget-without-input-field).


Is there any other workaround I can use to provide this type of functionality?


---Philip



Erik Bruchez wrote
I don't think this is possible at the moment. Can you describe your  
use case?

-Erik

On Apr 24, 2009, at 12:00 PM, Philip.Cantin wrote:

>
> Is there currently a way in Orbeon to have the date picker and the
> xxforms:autocomplete functionality all in the same text field? I  
> know that
> the date picker requires an <xf:input> field, but I was wondering if  
> there
> was a way around this.
>
> Thanks in advance for any suggestions!
>
>
> ---Philip
> --
> View this message in context: http://www.nabble.com/combining-the-YUI-date-picker-and-autocomplete-functionality-tp23222921p23222921.html
> Sent from the ObjectWeb OPS - Users mailing list archive at  
> Nabble.com.
>
>
> --
> You receive this message as a subscriber of the ops-users@ow2.org  
> mailing list.
> To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
> For general help: mailto:sympa@ow2.org?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 ops-users@ow2.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
For general help: mailto:sympa@ow2.org?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: combining the YUI date picker and autocomplete functionality

Erik Bruchez
Administrator
With recent builds, you could do with two controls:

* Autocomplete xforms:select1
* xforms:input bound to a date type, with appearance="minimal" (this  
is what requires a recent build)
* Upon value change in the xforms:input, set the value into the  
xforms:select1

-Erik

On Apr 24, 2009, at 1:10 PM, Philip.Cantin wrote:

>
> Erik,
>
> Thanks a bunch for your quick reply! In Orbeon (I'm currently using
> 3.7.0beta1.200808260135), I'd like to be able to use the autocomplete
> functionality of select1 combo boxes like the following:
>
> <xf:select1 ref="." selection="open" appearance="xxforms:autocomplete"
> incremental="true">
>   <xf:item>
>      <xf:label>Label1</xf:label>
>      <xf:value>Value1</xf:value>
>   </xf:item>
>   <xf:item>
>   <xf:label>Label2</xf:label>
>   <xf:value>Value2</xf:value>
>   </xf:item>
> </xf:select1>
>
> while simultaneously displaying a YUI date picker either as part of  
> the
> combo box (which, of course, will look like a text field because of  
> the
> "xxforms:autocomplete" value of the 'appearance' attribute), or  
> right next
> to the combo box.
>
> In short, the user should be able to either click the YUI date  
> picker and
> have that value appear in the text field, or type in certain other  
> values in
> the same text field which will display the autocomplete drop-down  
> list.
>
> I figured having the date picker as part of the combo box was out of  
> the
> question since Orbeon only allows <xf:input> elements to provide the  
> YUI
> date picker, and not <xf:select1> elements. So I tried a workaround,
> associated with this post from yesterday:
>
> http://www.nabble.com/appearance%3D%22minimal%22-does-not-seem-to-work-for-xf%3Ainput-td23202502.html
>
> My idea was to have TWO separate input fields: one for the  
> autocomplete text
> field, and one for the date picker, but have the <xf:input> tag
> corresponding to the date picker contain a value of "minimal" for the
> 'appearance' attribute, and have both input fields reference the same
> nodeset.
>
> But it appears Orbeon does not support this attribute with  
> <xf:input>, and I
> read in the Orbeon Wiki that this is one of the things to be  
> supported in
> the future
> (http://wiki.orbeon.com/forms/projects/xforms-date-widget-without-input-field 
> ).
>
>
> Is there any other workaround I can use to provide this type of
> functionality?
>
>
> ---Philip
>
>
>
>
> Erik Bruchez wrote:
>>
>> I don't think this is possible at the moment. Can you describe your
>> use case?
>>
>> -Erik
>>
>> On Apr 24, 2009, at 12:00 PM, Philip.Cantin wrote:
>>
>>>
>>> Is there currently a way in Orbeon to have the date picker and the
>>> xxforms:autocomplete functionality all in the same text field? I
>>> know that
>>> the date picker requires an <xf:input> field, but I was wondering if
>>> there
>>> was a way around this.
>>>
>>> Thanks in advance for any suggestions!
>>>
>>>
>>> ---Philip
>>> --
>>> View this message in context:
>>> http://www.nabble.com/combining-the-YUI-date-picker-and-autocomplete-functionality-tp23222921p23222921.html
>>> Sent from the ObjectWeb OPS - Users mailing list archive at
>>> Nabble.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
>>
>> --
>> 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
>>
>>
>
> --
> View this message in context: http://www.nabble.com/combining-the-YUI-date-picker-and-autocomplete-functionality-tp23222921p23224029.html
> Sent from the ObjectWeb OPS - Users mailing list archive at  
> Nabble.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
--
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