You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by csckid <te...@gmail.com> on 2011/09/29 05:34:02 UTC

Change Name

If I make a form using beaneditform , how do I change the name of the field
of the form. e.g
class Truck{
    private int id;
    private int truckNumberVO;
    //getters and setters
}

<t:beaneditform submitlabel="Create" object="truck" />
I want the field/label name of truckNumberVO to be shown as "Truck Number"

--
View this message in context: http://tapestry.1045711.n5.nabble.com/Change-Name-tp4851582p4851582.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Change Name

Posted by Taha Hafeez <ta...@gmail.com>.
Hi

Won't it be more useful if you first visit the documentation and then
if you don't find it there you ask it in the mailing list. It will
save you some time !!

http://tapestry.apache.org/beaneditform-guide.html

"
Default Label
Tapestry will attempt to provide a reasonable default label for each
field, based on the property name being emitted. The property name is
capitalized, and spaces are added before case changes, thus property
"name" becomes label "Name" and property "streetAddress" becomes label
"Street Address".

BeanEditForm also searches for a label for the field in the containing
component's message catalog. The message key is the property name
suffixed with "-label". If such a label is found, it takes precedence.
"



On Thu, Sep 29, 2011 at 9:04 AM, csckid <te...@gmail.com> wrote:
> If I make a form using beaneditform , how do I change the name of the field
> of the form. e.g
> class Truck{
>    private int id;
>    private int truckNumberVO;
>    //getters and setters
> }
>
> <t:beaneditform submitlabel="Create" object="truck" />
> I want the field/label name of truckNumberVO to be shown as "Truck Number"
>
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/Change-Name-tp4851582p4851582.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>



-- 
Regards

Taha Hafeez Siddiqi (tawus)
http://tawus.wordpress.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org