Hi,
I guess it doesn't work because your application is configured to
remove wicket:xyz tags and attributes.
See org.apache.wicket.settings.IMarkupSettings#setStripWicketTags().
Additionally this method works only with component id, not with
component path, i.e. it should work for 'panel' and 'container', but
wont work for 'panel:container'.
On Tue, Mar 13, 2012 at 9:20 PM, northar josef.anders...@gmail.com wrote:
Learning more about wickettests, i would need some help with
getTagByWicketId(String wicketid). I can't get it to return anything else
than null. Stuff like:
tester.clickLink(panel:mycontainer:mylistview:0:link, true);
tester.assertListView(panel:mycontainer:listview, testArray);
and even
getTagById(the name of a id for a div in my panel);
works fine in my tests
but.. when testing stuff like
getTagByWicketId(the name of a wicket:id for a component). i only get
null.
ie tried stuff like
getTagByWicketId(panel);
getTagByWicketId(panel:mycontainer);
getTagByWicketId(mycontainer);
getTagByWicketId(panel:mycontainer:mylistview);
Any hints for me that i missed?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/WicketTester-getTagByWicketId-tp4470042p4470042.html
Sent from the Users forum mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org