struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sanjeewa Saman" <sanjee...@mubasher.net>
Subject RE: Restric the values in S:TextFields.
Date Wed, 27 Feb 2008 07:12:46 GMT
Yes Chris , that can be done using JS , But I thought that there should be a
way in struts2 to that.
May be some one have an idea of doing it.If so pls give ur idea to us.

Tnx sanjeewa
 

-----Original Message-----
From: Chris Pratt [mailto:thechrispratt@gmail.com] 
Sent: Wednesday, February 27, 2008 12:29 PM
To: Struts Users Mailing List
Subject: Re: Restric the values in S:TextFields.

On Tue, Feb 26, 2008 at 10:49 PM, Sanjeewa Saman <sanjeewas@mubasher.net>
wrote:
> Hi all ,
>  Can some body please tell me a way to restrict the data that we can
eneter
>  to a textfield in struts2.
>
>  What I wanted to do is , for the s:textfield , I need to enter only
values
>  these values {1-10 , +,-,.} .
>

The only way I know would be to use JavaScript in an onkeyup handler
that would check the entered value.
  (*Chris*)

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



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


Mime
View raw message