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

http://issues.apache.org/bugzilla/show_bug.cgi?id=38504

           Summary: Add valueProperty attribute
           Product: Struts
           Version: 1.2.8
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Taglibs
        AssignedTo: dev@struts.apache.org
        ReportedBy: [EMAIL PROTECTED]


The existing "value" property takes a literal and makes it the property value,
but sometimes the value needs to actually come from another property within the
form. For instance, some developers treat the form as containing both input and
output data (where output data is any piece of information not captured by the
user but to assist in the UI or form processing), and the default input value
may need to come from an output property.

Instead of having to use EL to do value="${formName.property2}" and thereby
exposing the underlying form name in JSP, I propose adding a new attribute
called "valueProperty":

<html:hidden property="id" valueProperty="entity.id"/>

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to