>> IMHO, I think it is a better idea to 'wrap' whatever text 
>> a user wants to use, however they want to generate it.
>> 
>> Ex:
>> <html:label property="firstName">First Name: </html:label>
>> -or-
>> <html:label property="firstName"><bean:message
>> property='firstName'/></html:label>

>It's reasonable to allow the user to specify a lookup key or use 
>the tag's body text.
>David

I think the compromise of using a key or the body text of the message
is a great idea.  

For that there are two things to consider
1)Displaying the messages from the resource bundle and,
2)Provide error handling for the labels

The first can be handled by extending the MessageTag fairly easily.
The second can be handled by extending the BaseHandlerTag (provided
we use the enhancment to allow error handling there, which I'm a 
big fan of =) 

This could be accomplished by having MessageTag extend BaseHandler instead
of BodyTagSupport, which would have to be done carefully, but is in
no way difficult.

Jonathan


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

Reply via email to