You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by bu...@apache.org on 2004/08/28 16:28:08 UTC

DO NOT REPLY [Bug 30916] New: - wish to get property by name

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=30916>.
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=30916

wish to get property by name

           Summary: wish to get property by name
           Product: Velocity
           Version: 1.4
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Source
        AssignedTo: velocity-dev@jakarta.apache.org
        ReportedBy: yozh@mx1.ru


Hello, I have a wish. Could you please give an ability to get object property by
name. Something like:

#macro(textInput $name)
<input type="text" name="$name" value="$!form.bean.$name"/>
#end

($form.bean is JavaBean that has property $name).

Now I have to write macro with one more parameter for passing value.

It's not allowed now, right?

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org