ailto:ja...@mcruncher.com]
> Sent: Tuesday, August 14, 2012 4:12 AM
> To: users@wicket.apache.org
> Subject: Re: Is there a way to search component by its wicket ID ?
>
> Because the id is unique only within the markup container of a component.
> It need not be unique in a pa
n shuffling panels on a page.
~ Thank you,
Paul Bors
-Original Message-
From: James Eliyezar [mailto:ja...@mcruncher.com]
Sent: Tuesday, August 14, 2012 4:12 AM
To: users@wicket.apache.org
Subject: Re: Is there a way to search component by its wicket ID ?
Because the id is unique only within the
Hi there,
I'm not really sure if searching a component by its ID is a good idea - It
kinda' breaks modularity and goes against the OO approach.
I have never searched a component by its ID but assuming you need the full
path (hierarchy) to it, such component will be hard to use in any other
conte
Because the id is unique only within the markup container of a component.
It need not be unique in a page. This is by design.
For more details refer:
https://cwiki.apache.org/WICKET/component-hierarchy.html
On Tue, Aug 14, 2012 at 3:42 PM, arkadyz111 wrote:
> But why we have to write "userForm"
But why we have to write "userForm" ? What is an idea behind of this ?
Why get("username") is not enough ?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Is-there-a-way-to-search-component-by-its-wicket-ID-tp4651175p4651217.html
Sent from the Users forum mailing li
You can definitely search by wicket id but you may have to specify the
hierarchy as well.
Something like this,
TextField usernameField = (TextField) get("userForm:username");
>
to get the text field component with the wicket id "username" inside the
form whose wicket id is "userForm".
Hope this
In my unit test code I use:
com.googlecode.londonwicket
wicket-component-expressions
0.2.0
test
org.apache.wicket
wicket
Or see:
http://code.google.com/p/londonwicket/source/browse/repo/com/googlecode/lond
onwicket/wicket-component-exp