Hi,

    You can use this way :)     

    JAVA:

    @Inject
    private Messages _messages;
 
   public Messages getMessages()
    {
        return _messages;
    }

HTML:

        <form t:type="beaneditform" object="registration"
>             submitLabel="Gravar">
>
>             <t:parameter name="firstName">
>                 <label t:type="Label" for="firstName"/>
>                 <input t:type="TextField" t:id="firstName"
>                     t:value="registration.firstName"
> size="${messages:registration.field.size}"/>
>                     (Informe o nome)
>             </t:parameter>
>
>         </form>

PROPERTIES file:
registration.field.size=40

John


Marcelo lotif wrote:
> 
> this is easy, but when you have a dozen fields to set, this becomes a
> little
> verbose...
> isn't a way to set it via .properties file?
> 
> Em 25/07/07, Marcus <[EMAIL PROTECTED]> escreveu:
>>
>> Olá Marcelo,
>>
>>
>>         <form t:type="beaneditform" object="registration"
>>             submitLabel="Gravar">
>>
>>             <t:parameter name="firstName">
>>                 <label t:type="Label" for="firstName"/>
>>                 <input t:type="TextField" t:id="firstName"
>>                     t:value="registration.firstName" size="40"/>
>>                     (Informe o nome)
>>             </t:parameter>
>>
>>         </form>
>>
>>
>> Marcus
>>
> 
> 
> 
> -- 
> Atenciosamente,
> Marcelo Lotif
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-T5--Set-the-text-field-size-in-BeanEditForm-tf4144626.html#a11825431
Sent from the Tapestry - User mailing list archive at Nabble.com.


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

Reply via email to