If I reuse the same Page, I want to clear/reset components. In the
SignIn example Page contains form, and form contains username and
password. Seems that the only way to access these fields is to store
their IDs in class fields while constructing, and then use them for
(MarkupContainer) get(formId)

Things are not that easy since get(objId) does not work globally for a
Page, it works in context of a most close parent. So, I need to save
ID of the form on the Page, and then IDs of username and password
fields in the form. If I want to access every subobject, I need to
save IDs of every one of them and their parents. Who said that Wicket
is great because it resembles Swing? I never liked Swing. Maybe I just
cannot cook it...

What I would like to do is either:
* to be able to find component by textual name, like here:
add(new TextField("username", new PropertyModel(properties, "username")));
I want to find by "username". Of course, I have to make sure that
"username" is unique for... for a Page. Page is a good scope.

* to have global or Page scope for IDs

* to have something like JSTL has, that is scopes are enclosed in each
other, so if not found in request, look in session, then look in app,
etc.

But it got to be simpler.

Michael.


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to