Re: Change Name

2011-09-28 Thread Taha Hafeez
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  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
> }
>
> 
> 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-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>



-- 
Regards

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

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



Change Name

2011-09-28 Thread csckid
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
}


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-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org