We are migrating our existing application from UI framework XXX to Wicket and we have a boatload of UI automated tests which depend on the ID attribute of our form inputs to drive the tests. I'm trying to figure out how to get Wicket to use the exact same IDs when it generates the HTML as with our old system. Here's an example of the generated HTML where I have a DropDown within a Form:
<td class="label"> <div><label for="form_selBusinessService">Business Service</label></div> </td> <td class="input"> <select name="selBusinessService" id="form_selBusinessService"> <option selected="selected" value="">Choose One</option> <option value="http://www.test-sdk/sdkl#Fetch_COB">Fetch COB</option> <option value="http://www.test-sdk/sdkl#Status_Visibility">Status Visibility</option> <option value="http://www.test-sdk/sdkl#Claims_Submission">Claims Submission</option> </select> </td> Now the actual ID of the select should be "selBusinessService" and that's the wicket:id of the component in Java but Wicket prepends the component hierarchy, I guess, when auto-generating the id attribute in HTML. Now I can use an AttributeModifier to adjust the value of the ID but the SimpleFormComponentLabel does NOT reflect that change in the for attribute. Is it possible to do this? Can I completely override Wicket's ID handling and just have it use my specified ID? mike -- View this message in context: http://www.nabble.com/Overriding-ID-attributes-tf4105343.html#a11675275 Sent from the Wicket - User mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user