About 60 seconds after posting this I figured it out. Doh!

If anyone else is having this problem in the future, make sure to check the
errors.properties bundle. It has very similar messages. 

Bill


Billip wrote:
> 
> Hello all,
> 
> I am new to AppFuse but have some experience with the underlying
> technologies it's using. Everything I've done so far is going well, but
> I'm stuck on one problem and I've been working on it for hours. It's so
> simple seeming: I am modifying the User object to remove the email address
> and making username be the email address. It should be noted I've kept the
> attribute called "username" internally throughout the application. I've
> completed all of the work and all of the tests pass... but now I'm suck on
> a simple display issue.
> 
> I've modified the User-validation.xml as follows:
> 
>     <field name="user.username">
>         <field-validator type="requiredstring">
>             <message key="errors.required"/>
>         </field-validator>
>         <field-validator type="email">
>             <message key="errors.email"/>
>         </field-validator>
>     </field>
> 
> I've essentially just added the "email" field validator. The validation
> works as expected, but the error message looks like this on the screen:
> 
> " is an invalid email address."
> 
> Essentially it seems it's not writing out the value of username (ie: the
> email address) to the page. If I remove any input from the field on the
> page I get a more appropriate error message (triggered by the "required"
> block):
> 
> "Email is a required field."
> 
> Does anyone have any tips on where to look? I'm going in circles at this
> point.
> 
> Thanks!
> 
> Bill
> 

-- 
View this message in context: 
http://www.nabble.com/Problem-with-validation-message-display-tp18898668s2369p18898717.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


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

Reply via email to