struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sathish Kumar T.K." <sathi...@quinnox.com>
Subject Re: How to disable a Text Box
Date Thu, 05 Feb 2004 05:24:36 GMT
Hm, use a hidden field along with the disabled text box.
Now u can take the value from the hidden field.

Something like...
<html:hidden property="start_date_hidden" value="<%=start_date%>"/>

Sathish Kumar T.K.

----- Original Message -----
From: "Ramachandran" <ramachandran@summitworks.com>
To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
Sent: Thursday, February 05, 2004 11:00 AM
Subject: How to disable a Text Box


> Hi All,
>
>              I am having an text box.At the right side of text box there
is
> link called 'Date Component'.If select the date from that component it
will
> display in taht text box. What i have to do means, i don't allow the user
to
> enter any thing inside that text box.
>
>             So i gave disabled property. But i was not able to get the
> request from another page. And also value of date is not entering into
> database. It is entered as null.
>
>             So what i have to do. Is there any possibilty in javascript.
If
> any knows, mail me regarding this.
>
> <html:text property="start_date" size="20"value="<%=start_date%>"/>
> <A id=anchor1
>
onclick="cal1.select(document.forms[0].start_date,'anchor1','dd/MMM/yyyy');
> return false;"href="#"name=anchor1><img src="images/calendar.gif"
> border="0" width='30' height='20'>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org


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


Mime
View raw message