On Feb 25, 2009, at 9:27 PM, amiel montecillo wrote:
> Hi List,
>
> This maybe a very simple question but is escaping me.
>
> How do I embed a hyperlink in one of my error messages ?
>
> The situation is that, when a validation fails (e.g. required field
> not supplied by user), an error message is displayed like:
>
> Invalid username/password. Register now! <- I'd like this to be a
> hyperlink to one of my pages in a wonder application.
>
> The error message is generated in my java class.
Why not put it in the page?
<webobject name="HasBadLoginMessageConditional">
<webobject name="BadLoginMessageString">
<webobject name="RegisterNowHyperLink">
</webobject name="HasBadLoginMessageConditional">
Otherwise, you will need to add a direct action, use WOContext to
generate a direct action URL, and form the link in code.
Chuck
-- Chuck Hill Senior Consultant / VP DevelopmentPractical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects
This archive was generated by hypermail 2.0.0 : Thu Feb 26 2009 - 10:45:10 EST