[ https://issues.apache.org/struts/browse/STR-449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joe Germuska updated STR-449: ----------------------------- Comment: was deleted > Need a label form bean for the html set. > ---------------------------------------- > > Key: STR-449 > URL: https://issues.apache.org/struts/browse/STR-449 > Project: Struts 1 > Issue Type: Improvement > Components: Unknown > Affects Versions: 1.0.1 Final > Environment: Operating System: other > Platform: All > Reporter: Brill Pappin > Assigned To: Struts Developers > Priority: Minor > Fix For: 1.1 Family > > > 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?). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/struts/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira