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 2006/02/04 09:01:45 UTC

DO NOT REPLY [Bug 38504] New: - Add valueProperty attribute

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: paul4christ79@yahoo.com


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: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org