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

Reply via email to