You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by tony kerz <to...@sbcglobal.net> on 2006/03/12 12:13:21 UTC

tomahawk inputSuggest[Ajax]

is there any way to restrict values to only those on suggestion list?
(versus something user typed in that isn't on suggestion list).
kind of like selectOneMenu?



Re: tomahawk inputSuggest[Ajax]

Posted by Gerald Müllan <bi...@gmail.com>.
ok..clear now :)

Sorry, but not implemented yet. Seems to be little javaScript coding
on every onblur() event. What can be done is some validation logic
with the inputAjax component. But don`t know if it is possible to
"reach" the results on server in any way (cause it is server side
validation)!?

Another possibility may be the tableSuggest stuff; you type in a city
and choose a row along with other results (like zip, state). This
other values can be put into disabled fields.
With using the new disabledOnClientSide attribute at the input fields,
the values can now also be sent to server and bound to the model.

So, only one value can be changed afterwards; But don`t know if this
is a meaningful solution for this problem.

regards,

Gerald

On 3/13/06, Mike Kienenberger <mk...@gmail.com> wrote:
> Seems pretty obvious.
>
> For example, consider an inputSuggest that contained US States.
> You only want to match existing states like Alaska and not allow the
> user to type in "Antarctica".
>
>
> On 3/12/06, Gerald Müllan <bi...@gmail.com> wrote:
> > Hi,
> >
> > can you give a short use case?
> >
> > I don`t understand what you exactly mean about this.
> >
> > regards,
> >
> > Gerald
> >
> > On 3/12/06, tony kerz <to...@sbcglobal.net> wrote:
> > > is there any way to restrict values to only those on suggestion list?
> > > (versus something user typed in that isn't on suggestion list).
> > > kind of like selectOneMenu?
> > >
> > >
> > >
> >
> >
> > --
> > Gerald Muellan
> > Schelleingasse 2/11
> > 1040 Vienna, Austria
> > 0043 699 11772506
> > Bierbrauen@gmail.com
> >
>


--
Gerald Muellan
Schelleingasse 2/11
1040 Vienna, Austria
0043 699 11772506
Bierbrauen@gmail.com

Re: tomahawk inputSuggest[Ajax]

Posted by Mike Kienenberger <mk...@gmail.com>.
Seems pretty obvious.

For example, consider an inputSuggest that contained US States.
You only want to match existing states like Alaska and not allow the
user to type in "Antarctica".


On 3/12/06, Gerald Müllan <bi...@gmail.com> wrote:
> Hi,
>
> can you give a short use case?
>
> I don`t understand what you exactly mean about this.
>
> regards,
>
> Gerald
>
> On 3/12/06, tony kerz <to...@sbcglobal.net> wrote:
> > is there any way to restrict values to only those on suggestion list?
> > (versus something user typed in that isn't on suggestion list).
> > kind of like selectOneMenu?
> >
> >
> >
>
>
> --
> Gerald Muellan
> Schelleingasse 2/11
> 1040 Vienna, Austria
> 0043 699 11772506
> Bierbrauen@gmail.com
>

Re: tomahawk inputSuggest[Ajax]

Posted by Gerald Müllan <bi...@gmail.com>.
Hi,

can you give a short use case?

I don`t understand what you exactly mean about this.

regards,

Gerald

On 3/12/06, tony kerz <to...@sbcglobal.net> wrote:
> is there any way to restrict values to only those on suggestion list?
> (versus something user typed in that isn't on suggestion list).
> kind of like selectOneMenu?
>
>
>


--
Gerald Muellan
Schelleingasse 2/11
1040 Vienna, Austria
0043 699 11772506
Bierbrauen@gmail.com