I am currently using struts' built in validation functionality but need to
extend it somewhat. Currently I have the following error tag:

<html:text property="username" maxlength="45" styleId="username"/>
<html:errors property="username" />

When there is an error, some html is rendered which tells the user that the
username is incorrect. The html rendered is something like this.

<div class="error">
The username is incorrect.
</div>

I would like to be able to add an id="user_error" to the rendered div tag.
Then I can reference each and any validation error that is displayed. I am
testing with Selenium and this is why each error must be referenced
separately.

I don't want to add a separate div around the html:error tag as then that
div will show up whether there is an error or not.

Thanks,

Steve Inkpen
-- 
View this message in context: 
http://www.nabble.com/Wanted%3A-Custom-id%3D%22something%22-parameter-in-rendered-html%3Aerror-tp25823171p25823171.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to