what i was thinking is to add an void init() method to component that gets called after its been added to its parent component. that way you can create the hierarchy in that method instead of the constructor.
this can also help with dependency injection because we can initialize the component before it initializes itself.
i dont really know if this is a place we want to take wicket because it would make it a bit more managed.
what do others think?
-Igor
On 12/7/05, Ingram Chen <[EMAIL PROTECTED]> wrote:
I tried 0.3.1 and found that new restriction is a really BIG restriction.
I have lots of panel which contains form:
class MyPage extends WebPage {
public MyPage() {
add(new MyPanel("aPanelContainForm"));
}
}
class MyPanel extends Panel {
public MyPanel(String id) {
Form form = new Form("form");
add(form);
TextField field = new TextField(...);
form.add(field);
field.add(new FXValidationAjaxHandler("onblur"));
}
}
Although I can control adding FXValidationAjaxHandler after the FormComponent
added into component hierarchy. However, Page is still not available for FXValidationAjaxHandler because MyPanel is not added into Page yet !
no idea how to fix this.....On 12/7/05, Marco van de Haar < [EMAIL PROTECTED]> wrote:We have released 0.31 of the contrib-dojo package (well.... ok, Martijn
did). In this release our FXFeedbackIndicator works when built in a jar.
(yes... it was a lousy filename-case error). It also has the fixes
previously released in the SNAPSHOT release.
so, feel free to check it out at
site: http://wicket-stuff.sourceforge.net/wicket-contrib-dojo/index.html
download:
http://sourceforge.net/project/showfiles.php?group_id=134391&package_id=164293
Marco & Ruud
p.s. Juergen, this should also fix the bug in our examples package. So
you could use the War file in the new release for the online demo.
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
--
Ingram Chen
Java [EMAIL PROTECTED]
Institue of BioMedical Sciences Academia Sinica Taiwan
blog: http://www.javaworld.com.tw/roller/page/ingramchen