Thanks Simon -- a managed bean approach worked.  I found your posting
here and that helped explain the reason for the problem (and also the
solution):
 
http://www.nabble.com/-Trinidad--setActionListener-and-resource-bundle-t
4224032.html
 

________________________________

From: Simon Lessard [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 14, 2007 1:55 PM
To: MyFaces Discussion
Subject: Re: [Trinidad] EL not processed for label attribute for
server-side validation


Hello Todd,

Have you tried using a standard managed bean instead of f:loadBundle by
any chance? I'm trying to figure if that can be the source of the
problem.


Regards,

~ Simon

p.s. If that message is sent twice to the list please send me a private
email telling me so. I got some DNS problems today saying that mails are
not delivered every now and then, but I'm paranoid and always dislike to
spam mailing lists with double posts. 


On 8/14/07, Todd Engle <[EMAIL PROTECTED]> wrote: 


        Trinidad releases 1.01 and 1.02 allow client-side validation to
be
        disabled and server-side only validation to occur.  However, for
        server-side validation of required fields, an EL expression in
the label
        atrribute is not processed, and the generated error message will
not 
        contain the label text.  If the label attribute contains static
text
        (e.g. label="Date:"), the label is included in the error
message.
        
        Example:
        
           <f:loadBundle basename="ResourceBundle" var="labels" /> 
        
           <tr:inputText label="#{labels.date}"
value="#{bean.dateField}"
        required="true" />
        
        When an empty (but required) field is submitted, the generated
error
        message is: " - Value Required" 
        
        If the label attribute contains "Date:", the generated message
is:
        "Date: - Value Required"
        
        Can Trinidad be configured to process EL expressions for
server-side
        validation?
        


Reply via email to