You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Christopher Corde <cc...@yahoo.com> on 2005/12/28 23:37:44 UTC

Effectively Disabling a TextField Input

Hey,

  I have a textfield that looks as follows:

<span class="style8" jwcid="account@TextField"
value="ognl:dataBean.account" size="40"/>

  Basically, I want to disable it and force the user
to select an account from a popup search. This will
place the correct value into the textfield and update
the object. This works fine when the field is enabled,
but not when I disable it. Does anyone know how I can
disable the entry so that users cannot enter free-form
entries into it?

Thanks,
Chris


		
__________________________________________ 
Yahoo! DSL – Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Effectively Disabling a TextField Input

Posted by Markus Eberle <ma...@tngtech.com>.
But why do i (the user) have to use your "picker" if i know what i want to 
select? In either case you have to validate the user input on the server side 
again, so let the user select or edit the input field as he likes.

Cheers,
    Markus

On Thursday 29 December 2005 06:59, Christopher Corde wrote:
> i tried to use an Input to begin with but the
> Javascript assignment didnt work since it is not a
> form field. There are way too many values to be in a
> form field. Users need to narrow down the search of
> accounts and then select one.
>
> The readonly tag worked. I appreciate the help.
>
> --- Gunna Satria <gu...@yahoo.com> wrote:
> > Maybe it is because the touch of art :))
> >
> > Jesse Kuhnert <jk...@gmail.com> wrote:  If it is
> > a field that is never ok for users to actually input
> > into why even
> > make it a text field? Why not a combo-box or
> > something more appropriate
> > sounding?
> >
> > On 12/28/05, Gunna Satria wrote:
> > > Hi,
> > > add informal binding to your textfield either you
> >
> > use :
> > > > value="ognl:dataBean.account" size="40"
> >
> > readonly="true"/>
> >
> > > or
> > >
> > > > value="ognl:dataBean.account" size="40"
> >
> > onKeyUp="javascript:this.value=''
> >
> > > "/>
> > >
> > > or you use both :p
> > >
> > > regards,
> > >
> > > Gunna
> > >
> > >
> > >
> > > Markus Eberle wrote:
> > > Hi,
> > >
> > > On Wednesday 28 December 2005 23:37, Christopher
> >
> > Corde wrote:
> > > > Hey,
> > > >
> > > > I have a textfield that looks as follows:
> > > > > value="ognl:dataBean.account" size="40"/>
> > > >
> > > > Basically, I want to disable it and force the
> >
> > user
> >
> > > > to select an account from a popup search. This
> >
> > will
> >
> > > > place the correct value into the textfield and
> >
> > update
> >
> > > > the object. This works fine when the field is
> >
> > enabled,
> >
> > > > but not when I disable it. Does anyone know how
> >
> > I can
> >
> > > > disable the entry so that users cannot enter
> >
> > free-form
> >
> > > > entries into it?
> > >
> > > when disabling a text field using tapestry, the
> >
> > returning value is not
> >
> > > evaluated (afaik).
> > > In order to perform your task, you should use
> >
> > javascript to disable the
> >
> > > text
> > > field on page-load and do the
> >
> > popup-search/fill-in.
> >
> > > Cheers,
> > > Markus
> > > --
> > > Markus Eberle
> > > TNG Technology Consulting
> > > markus.eberle@tngtech.com
> > > http://www.tngtech.com
>
> ---------------------------------------------------------------------
>
> > > To unsubscribe, e-mail:
> >
> > tapestry-user-unsubscribe@jakarta.apache.org
> >
> > > For additional commands, e-mail:
> >
> > tapestry-user-help@jakarta.apache.org
> >
> > > ---------------------------------
> > > Yahoo! DSL Something to write home about. Just
> >
> > $16.99/mo. or less
> >
> >
> >
> >
> >
> > ---------------------------------
> > Yahoo! Shopping
> >  Find Great Deals on Holiday Gifts at Yahoo!
> > Shopping
>
> __________________________________
> Yahoo! for Good - Make a difference this year.
> http://brand.yahoo.com/cybergivingweek2005/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org

-- 
Markus Eberle
TNG Technology Consulting
markus.eberle@tngtech.com
http://www.tngtech.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Effectively Disabling a TextField Input

Posted by Christopher Corde <cc...@yahoo.com>.
i tried to use an Input to begin with but the
Javascript assignment didnt work since it is not a
form field. There are way too many values to be in a
form field. Users need to narrow down the search of
accounts and then select one.

The readonly tag worked. I appreciate the help.

--- Gunna Satria <gu...@yahoo.com> wrote:

> Maybe it is because the touch of art :))
> 
> Jesse Kuhnert <jk...@gmail.com> wrote:  If it is
> a field that is never ok for users to actually input
> into why even
> make it a text field? Why not a combo-box or
> something more appropriate
> sounding?
> 
> On 12/28/05, Gunna Satria wrote:
> >
> > Hi,
> > add informal binding to your textfield either you
> use :
> > > value="ognl:dataBean.account" size="40"
> readonly="true"/>
> > or
> > > value="ognl:dataBean.account" size="40"
> onKeyUp="javascript:this.value=''
> > "/>
> >
> > or you use both :p
> >
> > regards,
> >
> > Gunna
> >
> >
> >
> > Markus Eberle wrote:
> > Hi,
> >
> > On Wednesday 28 December 2005 23:37, Christopher
> Corde wrote:
> > > Hey,
> > >
> > > I have a textfield that looks as follows:
> > >
> > > > value="ognl:dataBean.account" size="40"/>
> > >
> > > Basically, I want to disable it and force the
> user
> > > to select an account from a popup search. This
> will
> > > place the correct value into the textfield and
> update
> > > the object. This works fine when the field is
> enabled,
> > > but not when I disable it. Does anyone know how
> I can
> > > disable the entry so that users cannot enter
> free-form
> > > entries into it?
> >
> > when disabling a text field using tapestry, the
> returning value is not
> > evaluated (afaik).
> > In order to perform your task, you should use
> javascript to disable the
> > text
> > field on page-load and do the
> popup-search/fill-in.
> >
> > Cheers,
> > Markus
> > --
> > Markus Eberle
> > TNG Technology Consulting
> > markus.eberle@tngtech.com
> > http://www.tngtech.com
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> tapestry-user-help@jakarta.apache.org
> >
> >
> >
> >
> >
> >
> > ---------------------------------
> > Yahoo! DSL Something to write home about. Just
> $16.99/mo. or less
> >
> 
> 
> 
> 		
> ---------------------------------
> Yahoo! Shopping
>  Find Great Deals on Holiday Gifts at Yahoo!
> Shopping 



	
		
__________________________________ 
Yahoo! for Good - Make a difference this year. 
http://brand.yahoo.com/cybergivingweek2005/

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Effectively Disabling a TextField Input

Posted by Gunna Satria <gu...@yahoo.com>.
Maybe it is because the touch of art :))

Jesse Kuhnert <jk...@gmail.com> wrote:  If it is a field that is never ok for users to actually input into why even
make it a text field? Why not a combo-box or something more appropriate
sounding?

On 12/28/05, Gunna Satria wrote:
>
> Hi,
> add informal binding to your textfield either you use :
> > value="ognl:dataBean.account" size="40" readonly="true"/>
> or
> > value="ognl:dataBean.account" size="40" onKeyUp="javascript:this.value=''
> "/>
>
> or you use both :p
>
> regards,
>
> Gunna
>
>
>
> Markus Eberle wrote:
> Hi,
>
> On Wednesday 28 December 2005 23:37, Christopher Corde wrote:
> > Hey,
> >
> > I have a textfield that looks as follows:
> >
> > > value="ognl:dataBean.account" size="40"/>
> >
> > Basically, I want to disable it and force the user
> > to select an account from a popup search. This will
> > place the correct value into the textfield and update
> > the object. This works fine when the field is enabled,
> > but not when I disable it. Does anyone know how I can
> > disable the entry so that users cannot enter free-form
> > entries into it?
>
> when disabling a text field using tapestry, the returning value is not
> evaluated (afaik).
> In order to perform your task, you should use javascript to disable the
> text
> field on page-load and do the popup-search/fill-in.
>
> Cheers,
> Markus
> --
> Markus Eberle
> TNG Technology Consulting
> markus.eberle@tngtech.com
> http://www.tngtech.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
>
>
>
>
> ---------------------------------
> Yahoo! DSL Something to write home about. Just $16.99/mo. or less
>



		
---------------------------------
Yahoo! Shopping
 Find Great Deals on Holiday Gifts at Yahoo! Shopping 

Re: Effectively Disabling a TextField Input

Posted by Jesse Kuhnert <jk...@gmail.com>.
If it is a field that is never ok for users to actually input into why even
make it a text field? Why not a combo-box or something more appropriate
sounding?

On 12/28/05, Gunna Satria <gu...@yahoo.com> wrote:
>
>   Hi,
>   add informal binding to your textfield either you use :
>   <span class="style8" jwcid="account@TextField"
> value="ognl:dataBean.account" size="40" readonly="true"/>
>   or
>   <span class="style8" jwcid=account@TextField
> value="ognl:dataBean.account" size="40" onKeyUp="javascript:this.value=''
> "/>
>
>   or you use both :p
>
>   regards,
>
>   Gunna
>
>
>
> Markus Eberle <ma...@tngtech.com> wrote:
>   Hi,
>
> On Wednesday 28 December 2005 23:37, Christopher Corde wrote:
> > Hey,
> >
> > I have a textfield that looks as follows:
> >
> > > value="ognl:dataBean.account" size="40"/>
> >
> > Basically, I want to disable it and force the user
> > to select an account from a popup search. This will
> > place the correct value into the textfield and update
> > the object. This works fine when the field is enabled,
> > but not when I disable it. Does anyone know how I can
> > disable the entry so that users cannot enter free-form
> > entries into it?
>
> when disabling a text field using tapestry, the returning value is not
> evaluated (afaik).
> In order to perform your task, you should use javascript to disable the
> text
> field on page-load and do the popup-search/fill-in.
>
> Cheers,
> Markus
> --
> Markus Eberle
> TNG Technology Consulting
> markus.eberle@tngtech.com
> http://www.tngtech.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
>
>
>
>
> ---------------------------------
> Yahoo! DSL Something to write home about. Just $16.99/mo. or less
>

Re: Effectively Disabling a TextField Input

Posted by Gunna Satria <gu...@yahoo.com>.
  Hi,
  add informal binding to your textfield either you use :
  <span class="style8" jwcid="account@TextField"
 value="ognl:dataBean.account" size="40" readonly="true"/>
  or
  <span class="style8" jwcid=account@TextField
 value="ognl:dataBean.account" size="40" onKeyUp="javascript:this.value=''"/>
   
  or you use both :p
   
  regards,
   
  Gunna



Markus Eberle <ma...@tngtech.com> wrote:
  Hi,

On Wednesday 28 December 2005 23:37, Christopher Corde wrote:
> Hey,
>
> I have a textfield that looks as follows:
>
> > value="ognl:dataBean.account" size="40"/>
>
> Basically, I want to disable it and force the user
> to select an account from a popup search. This will
> place the correct value into the textfield and update
> the object. This works fine when the field is enabled,
> but not when I disable it. Does anyone know how I can
> disable the entry so that users cannot enter free-form
> entries into it?

when disabling a text field using tapestry, the returning value is not 
evaluated (afaik).
In order to perform your task, you should use javascript to disable the text 
field on page-load and do the popup-search/fill-in.

Cheers,
Markus
-- 
Markus Eberle
TNG Technology Consulting
markus.eberle@tngtech.com
http://www.tngtech.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org

  



		
---------------------------------
 Yahoo! DSL Something to write home about. Just $16.99/mo. or less

Re: Effectively Disabling a TextField Input

Posted by Markus Eberle <ma...@tngtech.com>.
Hi,

On Wednesday 28 December 2005 23:37, Christopher Corde wrote:
> Hey,
>
>   I have a textfield that looks as follows:
>
> <span class="style8" jwcid="account@TextField"
> value="ognl:dataBean.account" size="40"/>
>
>   Basically, I want to disable it and force the user
> to select an account from a popup search. This will
> place the correct value into the textfield and update
> the object. This works fine when the field is enabled,
> but not when I disable it. Does anyone know how I can
> disable the entry so that users cannot enter free-form
> entries into it?

when disabling a text field using tapestry, the returning value is not 
evaluated (afaik).
In order to perform your task, you should use javascript to disable the text 
field on page-load and do the popup-search/fill-in.

Cheers,
    Markus
-- 
Markus Eberle
TNG Technology Consulting
markus.eberle@tngtech.com
http://www.tngtech.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org