You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2002/01/31 06:27:04 UTC

DO NOT REPLY [Bug 6142] New: - Need a label form bean for the html set.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6142>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6142

Need a label form bean for the html set.

           Summary: Need a label form bean for the html set.
           Product: Struts
           Version: 1.0.1 Final
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Unknown
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: brill@users.sourceforge.net


Several times I have needed to display data to the user, based on the values 
in a form, but without allowing the user to change the data (e.g. when editing 
a record where the primary key is part of the data being edited).

You could do it in one of two ways: 1) add a conditional property to the 
html:text bean to render the output as a hidden element and the text 2) create 
a label bean (html:label?).

For the moment, I'm setting the text field to disabled, which will have the 
desired effect, but I can only be sure of that in a specific browser.

It is possible that this feature already exists in Struts, but it doesn't seem 
to be documented where I can think to look for it (so if it is, could someone 
drop me a note?).

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>