newton.dave wrote:
> 
> spongebue wrote:
>> Basically, I have an s:select list with a list of activities, which gets
>> its
>> content from the database, delivered via struts.  I also have a
>> s:textfield
>> with the number of hours each activity takes up.  What I'd like is for
>> the
>> text field to no longer be editable once an activity is chosen, and be
>> filled with the number of hours that the activity takes up.  If making
>> the
>> text uneditable doesn't do it already, it'd also be nice to have it
>> grayed
>> out or something so it doesn't get mistaken for a bug by the end user. 
>> Assuming I get things taken care of on the backend, could someone tell me
>> how to do this on the frontend?  I would probably be able to do it with
>> HTML
>> and Javascript, no problem, but I'm working with the big boys now and am
>> stuck with the struts tags, which I have little experience with.  I know
>> how
>> Struts works and all, but I'm horrible with the tag library.
> 
> Why wouldn't you do that with JavaScript? The S2 custom form tags (the 
> non-Dojo ones) don't implement any particular behavior--JavaScript is 
> the canonical way to implement client-side functonality.
> 
> Dave
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 
> 

Thanks, Dave.  I played around, and got MOST of what I want going.  However,
I'd like to be able to hide the label (I decided to hide the field
altogether, rather than disable editing).  This was no problem with the text
field, but the label does not get an id assigned by struts, so I can't
really call it in the JS.  Any way to have Struts add an id to the label or
any other way I could hide it?

Thanks again!
-- 
View this message in context: 
http://www.nabble.com/Struts-Tag-Library---Can-I-have-a-dropbox-option-disable-a-text-field--tp23437093p23456204.html
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to