Wicket 1.5 adding a resource used from css?
Hi I've been wondering how I can add a resource used from the css (I cant seem to remember how to do it).. This is what I have : public class WicketApplication extends WebApplication { /** * Constructor */ public WicketApplication() { } @Override protected void init() { super.init(); addComponentInstantiationListener(new GuiceComponentInjector(this, getGuiceInjector())); getSharedResources().add( border-radius.htc, new PackageResourceReference(WallboardParentPage.class, border-radius.htc).getResource()); } CSS: .title { width:98%; margin:5px auto; padding:5px; border: 1px solid #d7d7d7; background-color: #f0f0f0; -moz-border-radius: 11px; -webkit-border-radius: 11px; border-radius: 11px; behavior: url(border-radius.htc); } } And when I goto this url, I can see the htc: http://localhost:8080/wicket/resource/com.netdesign.wallboard.WallboardParentPage/border-radius.htc And here there are some of the log messages: 09:06:21.999 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - call filter wicket.WicketWarp 09:06:22.014 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] WARN o.a.wicket.util.lang.WicketObjects - Could not resolve class: border-radius.htc 09:06:22.014 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] ERROR o.a.w.request.cycle.RequestCycle - Unable to execute request. No suitable RequestHandler found. URL=wicket/bookmarkable/border-radius.htc 09:06:22.014 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - call servlet default 09:06:22.030 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - RESOURCE=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/wicket/bookmarkable/border-radius.htc.gz 09:06:22.030 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - RESOURCE=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/wicket/bookmarkable/border-radius.htc 09:06:22.030 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - RESOURCE=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/wicket/bookmarkable/border-radius.htc 09:06:22.030 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - resource=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/wicket/bookmarkable/border-radius.htc 09:06:22.030 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - RESPONSE /wicket/bookmarkable/border-radius.htc 404 09:07:05.165 [22752...@qtp-11403277-2 - /wicket/resource/com.netdesign.wallboard.WallboardParentPage/border-radius.htc] DEBUG org.mortbay.log - REQUEST /wicket/resource/com.netdesign.wallboard.WallboardParentPage/border-radius.htc on org.mortbay.jetty.httpconnect...@c1fea5 09:07:05.165 [22752...@qtp-11403277-2 - /wicket/resource/com.netdesign.wallboard.WallboardParentPage/border-radius.htc] DEBUG org.mortbay.log - Got Session ID mle2763mc74f from cookie 09:07:05.165 [22752...@qtp-11403277-2 - /wicket/resource/com.netdesign.wallboard.WallboardParentPage/border-radius.htc] DEBUG org.mortbay.log - sessionmanager=org.mortbay.jetty.servlet.hashsessionmana...@bfbdb0 09:07:05.165 [22752...@qtp-11403277-2 - /wicket/resource/com.netdesign.wallboard.WallboardParentPage/border-radius.htc] DEBUG org.mortbay.log - session=org.mortbay.jetty.servlet.HashSessionManager$Session:mle2763mc...@23571417 09:07:05.165 [22752...@qtp-11403277-2 - /wicket/resource/com.netdesign.wallboard.WallboardParentPage/border-radius.htc] DEBUG org.mortbay.log - servlet=default 09:07:05.165 [22752...@qtp-11403277-2 - /wicket/resource/com.netdesign.wallboard.WallboardParentPage/border-radius.htc] DEBUG org.mortbay.log - chain=wicket.WicketWarp-default 09:07:05.165 [22752...@qtp-11403277-2 - /wicket/resource/com.netdesign.wallboard.WallboardParentPage/border-radius.htc] DEBUG org.mortbay.log - servlet holder=default 09:07:05.165 [22752...@qtp-11403277-2 - /wicket/resource/com.netdesign.wallboard.WallboardParentPage/border-radius.htc] DEBUG org.mortbay.log - call filter wicket.WicketWarp 09:07:05.165 [22752...@qtp-11403277-2 - /wicket/resource/com.netdesign.wallboard.WallboardParentPage/border-radius.htc] DEBUG o.a.w.u.r.l.ResourceStreamLocator - Attempting to locate resource 'com/netdesign/wallboard/border-radius.htc' on path [folders = [], webapppaths: []]
submit form with popup window
Hi, everyone, I found out the submit link doesn't support popupwindowsettings. i need a blank popup window with loading messages like Please wait after clicking submit link. onsubmit(){ //read the value in the input field //show popup window //execute setResponsePage... } Please advise me. thanks/ -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/submit-form-with-popup-window-tp2538547p2538547.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
Re: Wicket 1.5 adding a resource used from css?
I am not sure right now what is wrong with this case but you can also mount the resource with ResourceMapper at any path you want. File a bug for this failing case. On Tue, Sep 14, 2010 at 9:10 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi I've been wondering how I can add a resource used from the css (I cant seem to remember how to do it).. This is what I have : public class WicketApplication extends WebApplication { /** * Constructor */ public WicketApplication() { } @Override protected void init() { super.init(); addComponentInstantiationListener(new GuiceComponentInjector(this, getGuiceInjector())); getSharedResources().add( border-radius.htc, new PackageResourceReference(WallboardParentPage.class, border-radius.htc).getResource()); } CSS: .title { width:98%; margin:5px auto; padding:5px; border: 1px solid #d7d7d7; background-color: #f0f0f0; -moz-border-radius: 11px; -webkit-border-radius: 11px; border-radius: 11px; behavior: url(border-radius.htc); } } And when I goto this url, I can see the htc: http://localhost:8080/wicket/resource/com.netdesign.wallboard.WallboardParentPage/border-radius.htc And here there are some of the log messages: 09:06:21.999 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - call filter wicket.WicketWarp 09:06:22.014 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] WARN o.a.wicket.util.lang.WicketObjects - Could not resolve class: border-radius.htc 09:06:22.014 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] ERROR o.a.w.request.cycle.RequestCycle - Unable to execute request. No suitable RequestHandler found. URL=wicket/bookmarkable/border-radius.htc 09:06:22.014 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - call servlet default 09:06:22.030 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - RESOURCE=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/wicket/bookmarkable/border-radius.htc.gz 09:06:22.030 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - RESOURCE=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/wicket/bookmarkable/border-radius.htc 09:06:22.030 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - RESOURCE=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/wicket/bookmarkable/border-radius.htc 09:06:22.030 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - resource=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/wicket/bookmarkable/border-radius.htc 09:06:22.030 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - RESPONSE /wicket/bookmarkable/border-radius.htc 404 09:07:05.165 [22752...@qtp-11403277-2 - /wicket/resource/com.netdesign.wallboard.WallboardParentPage/border-radius.htc] DEBUG org.mortbay.log - REQUEST /wicket/resource/com.netdesign.wallboard.WallboardParentPage/border-radius.htc on org.mortbay.jetty.httpconnect...@c1fea5 09:07:05.165 [22752...@qtp-11403277-2 - /wicket/resource/com.netdesign.wallboard.WallboardParentPage/border-radius.htc] DEBUG org.mortbay.log - Got Session ID mle2763mc74f from cookie 09:07:05.165 [22752...@qtp-11403277-2 - /wicket/resource/com.netdesign.wallboard.WallboardParentPage/border-radius.htc] DEBUG org.mortbay.log - sessionmanager=org.mortbay.jetty.servlet.hashsessionmana...@bfbdb0 09:07:05.165 [22752...@qtp-11403277-2 - /wicket/resource/com.netdesign.wallboard.WallboardParentPage/border-radius.htc] DEBUG org.mortbay.log - session=org.mortbay.jetty.servlet.HashSessionManager$Session:mle2763mc...@23571417 09:07:05.165 [22752...@qtp-11403277-2 - /wicket/resource/com.netdesign.wallboard.WallboardParentPage/border-radius.htc] DEBUG org.mortbay.log - servlet=default 09:07:05.165 [22752...@qtp-11403277-2 - /wicket/resource/com.netdesign.wallboard.WallboardParentPage/border-radius.htc] DEBUG org.mortbay.log - chain=wicket.WicketWarp-default 09:07:05.165 [22752...@qtp-11403277-2 - /wicket/resource/com.netdesign.wallboard.WallboardParentPage/border-radius.htc] DEBUG org.mortbay.log - servlet holder=default 09:07:05.165 [22752...@qtp-11403277-2 - /wicket/resource/com.netdesign.wallboard.WallboardParentPage/border-radius.htc] DEBUG org.mortbay.log - call filter
Re: submit form with popup window
You could use a veil on your page to show some server side activity is taking place. See [1] or search the list for busy indicator. Ernesto 1-https://cwiki.apache.org/WICKET/generic-busy-indicator-for-both-ajax-and-non-ajax-submits.html On Tue, Sep 14, 2010 at 9:26 AM, wicketnan trustm...@hotmail.com wrote: Hi, everyone, I found out the submit link doesn't support popupwindowsettings. i need a blank popup window with loading messages like Please wait after clicking submit link. onsubmit(){ //read the value in the input field //show popup window //execute setResponsePage... } Please advise me. thanks/ -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/submit-form-with-popup-window-tp2538547p2538547.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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: submit form with popup window
continued from above: it's more like to show a busy indicator in a pop up window, instead of on the page itself. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/submit-form-with-popup-window-tp2538547p2538568.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
Re: Wicket 1.5 adding a resource used from css?
How do I do it with resourcemapper..? Im wondering if I am giving the wrong path for the resource somehow? 2010/9/14 Martin Grigorov mgrigo...@apache.org: I am not sure right now what is wrong with this case but you can also mount the resource with ResourceMapper at any path you want. File a bug for this failing case. On Tue, Sep 14, 2010 at 9:10 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi I've been wondering how I can add a resource used from the css (I cant seem to remember how to do it).. This is what I have : public class WicketApplication extends WebApplication { /** * Constructor */ public WicketApplication() { } �...@override protected void init() { super.init(); addComponentInstantiationListener(new GuiceComponentInjector(this, getGuiceInjector())); getSharedResources().add( border-radius.htc, new PackageResourceReference(WallboardParentPage.class, border-radius.htc).getResource()); } CSS: .title { width:98%; margin:5px auto; padding:5px; border: 1px solid #d7d7d7; background-color: #f0f0f0; -moz-border-radius: 11px; -webkit-border-radius: 11px; border-radius: 11px; behavior: url(border-radius.htc); } } And when I goto this url, I can see the htc: http://localhost:8080/wicket/resource/com.netdesign.wallboard.WallboardParentPage/border-radius.htc And here there are some of the log messages: 09:06:21.999 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - call filter wicket.WicketWarp 09:06:22.014 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] WARN o.a.wicket.util.lang.WicketObjects - Could not resolve class: border-radius.htc 09:06:22.014 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] ERROR o.a.w.request.cycle.RequestCycle - Unable to execute request. No suitable RequestHandler found. URL=wicket/bookmarkable/border-radius.htc 09:06:22.014 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - call servlet default 09:06:22.030 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - RESOURCE=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/wicket/bookmarkable/border-radius.htc.gz 09:06:22.030 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - RESOURCE=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/wicket/bookmarkable/border-radius.htc 09:06:22.030 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - RESOURCE=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/wicket/bookmarkable/border-radius.htc 09:06:22.030 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - resource=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/wicket/bookmarkable/border-radius.htc 09:06:22.030 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - RESPONSE /wicket/bookmarkable/border-radius.htc 404 09:07:05.165 [22752...@qtp-11403277-2 - /wicket/resource/com.netdesign.wallboard.WallboardParentPage/border-radius.htc] DEBUG org.mortbay.log - REQUEST /wicket/resource/com.netdesign.wallboard.WallboardParentPage/border-radius.htc on org.mortbay.jetty.httpconnect...@c1fea5 09:07:05.165 [22752...@qtp-11403277-2 - /wicket/resource/com.netdesign.wallboard.WallboardParentPage/border-radius.htc] DEBUG org.mortbay.log - Got Session ID mle2763mc74f from cookie 09:07:05.165 [22752...@qtp-11403277-2 - /wicket/resource/com.netdesign.wallboard.WallboardParentPage/border-radius.htc] DEBUG org.mortbay.log - sessionmanager=org.mortbay.jetty.servlet.hashsessionmana...@bfbdb0 09:07:05.165 [22752...@qtp-11403277-2 - /wicket/resource/com.netdesign.wallboard.WallboardParentPage/border-radius.htc] DEBUG org.mortbay.log - session=org.mortbay.jetty.servlet.HashSessionManager$Session:mle2763mc...@23571417 09:07:05.165 [22752...@qtp-11403277-2 - /wicket/resource/com.netdesign.wallboard.WallboardParentPage/border-radius.htc] DEBUG org.mortbay.log - servlet=default 09:07:05.165 [22752...@qtp-11403277-2 - /wicket/resource/com.netdesign.wallboard.WallboardParentPage/border-radius.htc] DEBUG org.mortbay.log - chain=wicket.WicketWarp-default 09:07:05.165 [22752...@qtp-11403277-2 - /wicket/resource/com.netdesign.wallboard.WallboardParentPage/border-radius.htc] DEBUG org.mortbay.log - servlet holder=default
Re: Wicket 1.5 adding a resource used from css?
I had to tell you that ResourceMapper is available only in 1.5-m2.1 (currently voted) The usage is quite simple: MyApp#init() { super.init(); getRootRequestMapperAsCompound().add(new ResourceMapper(mount/path, resourceReference)); } On Tue, Sep 14, 2010 at 9:52 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: How do I do it with resourcemapper..? Im wondering if I am giving the wrong path for the resource somehow? 2010/9/14 Martin Grigorov mgrigo...@apache.org: I am not sure right now what is wrong with this case but you can also mount the resource with ResourceMapper at any path you want. File a bug for this failing case. On Tue, Sep 14, 2010 at 9:10 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi I've been wondering how I can add a resource used from the css (I cant seem to remember how to do it).. This is what I have : public class WicketApplication extends WebApplication { /** * Constructor */ public WicketApplication() { } @Override protected void init() { super.init(); addComponentInstantiationListener(new GuiceComponentInjector(this, getGuiceInjector())); getSharedResources().add( border-radius.htc, new PackageResourceReference(WallboardParentPage.class, border-radius.htc).getResource()); } CSS: .title { width:98%; margin:5px auto; padding:5px; border: 1px solid #d7d7d7; background-color: #f0f0f0; -moz-border-radius: 11px; -webkit-border-radius: 11px; border-radius: 11px; behavior: url(border-radius.htc); } } And when I goto this url, I can see the htc: http://localhost:8080/wicket/resource/com.netdesign.wallboard.WallboardParentPage/border-radius.htc And here there are some of the log messages: 09:06:21.999 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - call filter wicket.WicketWarp 09:06:22.014 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] WARN o.a.wicket.util.lang.WicketObjects - Could not resolve class: border-radius.htc 09:06:22.014 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] ERROR o.a.w.request.cycle.RequestCycle - Unable to execute request. No suitable RequestHandler found. URL=wicket/bookmarkable/border-radius.htc 09:06:22.014 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - call servlet default 09:06:22.030 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - RESOURCE=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/wicket/bookmarkable/border-radius.htc.gz 09:06:22.030 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - RESOURCE=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/wicket/bookmarkable/border-radius.htc 09:06:22.030 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - RESOURCE=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/wicket/bookmarkable/border-radius.htc 09:06:22.030 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - resource=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/wicket/bookmarkable/border-radius.htc 09:06:22.030 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - RESPONSE /wicket/bookmarkable/border-radius.htc 404 09:07:05.165 [22752...@qtp-11403277-2 - /wicket/resource/com.netdesign.wallboard.WallboardParentPage/border-radius.htc] DEBUG org.mortbay.log - REQUEST /wicket/resource/com.netdesign.wallboard.WallboardParentPage/border-radius.htc on org.mortbay.jetty.httpconnect...@c1fea5 09:07:05.165 [22752...@qtp-11403277-2 - /wicket/resource/com.netdesign.wallboard.WallboardParentPage/border-radius.htc] DEBUG org.mortbay.log - Got Session ID mle2763mc74f from cookie 09:07:05.165 [22752...@qtp-11403277-2 - /wicket/resource/com.netdesign.wallboard.WallboardParentPage/border-radius.htc] DEBUG org.mortbay.log - sessionmanager=org.mortbay.jetty.servlet.hashsessionmana...@bfbdb0 09:07:05.165 [22752...@qtp-11403277-2 - /wicket/resource/com.netdesign.wallboard.WallboardParentPage/border-radius.htc] DEBUG org.mortbay.log - session=org.mortbay.jetty.servlet.HashSessionManager$Session:mle2763mc...@23571417 09:07:05.165 [22752...@qtp-11403277-2 -
Re: Wicket 1.5 adding a resource used from css?
Yeah it is simple, doing this: @Override protected void init() { super.init(); addComponentInstantiationListener(new GuiceComponentInjector(this, getGuiceInjector())); ResourceMapper htcResourceMapper = new ResourceMapper(/resources/, new PackageResourceReference(WallboardParentPage.class, border-radius.htc)); getRootRequestMapperAsCompound().add(htcResourceMapper); } And when I hit this url: http://localhost:8080/resources/border-radius.htc or http://localhost:8080/wicket/resources/border-radius.htc I get a 404, and this comes in the log: 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] DEBUG org.mortbay.log - call filter wicket.WicketWarp 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] ERROR o.a.w.request.cycle.RequestCycle - Unable to execute request. No suitable RequestHandler found. URL=resources/border-radius.htc 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] DEBUG org.mortbay.log - call servlet default 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] DEBUG org.mortbay.log - RESOURCE=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/resources/border-radius.htc.gz 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] DEBUG org.mortbay.log - RESOURCE=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/resources/border-radius.htc 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] DEBUG org.mortbay.log - RESOURCE=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/resources/border-radius.htc 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] DEBUG org.mortbay.log - resource=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/resources/border-radius.htc 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] DEBUG org.mortbay.log - RESPONSE /resources/border-radius.htc 404 10:18:48.626 [25516...@qtp-11596093-0] DEBUG org.mortbay.log - EOF 2010/9/14 Martin Grigorov mgrigo...@apache.org: I had to tell you that ResourceMapper is available only in 1.5-m2.1 (currently voted) The usage is quite simple: MyApp#init() { super.init(); getRootRequestMapperAsCompound().add(new ResourceMapper(mount/path, resourceReference)); } On Tue, Sep 14, 2010 at 9:52 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: How do I do it with resourcemapper..? Im wondering if I am giving the wrong path for the resource somehow? 2010/9/14 Martin Grigorov mgrigo...@apache.org: I am not sure right now what is wrong with this case but you can also mount the resource with ResourceMapper at any path you want. File a bug for this failing case. On Tue, Sep 14, 2010 at 9:10 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi I've been wondering how I can add a resource used from the css (I cant seem to remember how to do it).. This is what I have : public class WicketApplication extends WebApplication { /** * Constructor */ public WicketApplication() { } �...@override protected void init() { super.init(); addComponentInstantiationListener(new GuiceComponentInjector(this, getGuiceInjector())); getSharedResources().add( border-radius.htc, new PackageResourceReference(WallboardParentPage.class, border-radius.htc).getResource()); } CSS: .title { width:98%; margin:5px auto; padding:5px; border: 1px solid #d7d7d7; background-color: #f0f0f0; -moz-border-radius: 11px; -webkit-border-radius: 11px; border-radius: 11px; behavior: url(border-radius.htc); } } And when I goto this url, I can see the htc: http://localhost:8080/wicket/resource/com.netdesign.wallboard.WallboardParentPage/border-radius.htc And here there are some of the log messages: 09:06:21.999 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - call filter wicket.WicketWarp 09:06:22.014 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] WARN o.a.wicket.util.lang.WicketObjects - Could not resolve class: border-radius.htc 09:06:22.014 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] ERROR o.a.w.request.cycle.RequestCycle - Unable to execute request. No suitable RequestHandler found.
RE: DropDownChoice - performing extra validation before model changed
I am trying to open up a message box inside the IValidator's validate method but I need an AjaxRequestTarget to open the MessageBox. Is there anyway to get an AjaxRequestTarget in the validate method? Regards, Chris - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: submit form with popup window
May I ask why do you need the popup? Can you describe your use case? Ernesto On Tue, Sep 14, 2010 at 9:43 AM, wicketnan trustm...@hotmail.com wrote: continued from above: it's more like to show a busy indicator in a pop up window, instead of on the page itself. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/submit-form-with-popup-window-tp2538547p2538568.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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DropDownChoice - performing extra validation before model changed
AjaxRequestTarget .get() will return it your are in a middle of an AJAX request. Ernesto On Tue, Sep 14, 2010 at 10:24 AM, Chris Colman chr...@stepaheadsoftware.com wrote: I am trying to open up a message box inside the IValidator's validate method but I need an AjaxRequestTarget to open the MessageBox. Is there anyway to get an AjaxRequestTarget in the validate method? Regards, Chris - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: submit form with popup window
Thanks, i am trying the one you suggested. i know it sounds weird, the user need to click the submit click to download the excel, a pop up widow with loading messages should show before the excel file is ready (taking some time). i could manage to implement this using PopupSettings with general link, but it fails to submit the form. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/submit-form-with-popup-window-tp2538547p2538633.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
Unscheduled onClick
public final class NewsListPanel extends Panel { @SpringBean NewsService service; private ListNews NewsList; private PageableListView PAListView; public PageableListView getPAListView() { return PAListView; } public NewsListPanel(String id, ListNews NewsList) { super(id); this.NewsList = NewsList; PAListView = new PageableListView(NewsList, NewsList, 5) { @Override protected void populateItem(ListItem item) { News news = (News) item.getModelObject(); item.add(new ActionLink(Delete, news) { @Override public void onClick() { service.deleteNews(news); setResponsePage(new NewsPage()); } }); item.add(new Label(Time, DateUtils.timeFormatted(news.getTimestamp(; item.add(new Label(Title, news.getTitle())); item.add(new Label(Content, news.getContent()).setEscapeModelStrings(false)); } }; add(PAListView); } private class ActionLink extends Link { News news; public ActionLink(String id, News news) { super(id); this.news = news; } @Override public void onClick() { throw new UnsupportedOperationException(Not supported yet.); } } } In this code, when there is an onClick processing, everything is going well. But when NewsPage(this panel is here) is generated, suddenly Unscheduled onClick has appeared with News object which never existed. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Unscheduled-onClick-tp2538634p2538634.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
RE: DropDownChoice - performing extra validation before model changed
Cool, thanks Ernesto. -Original Message- From: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Sent: Tuesday, 14 September 2010 6:28 PM To: users@wicket.apache.org Subject: Re: DropDownChoice - performing extra validation before model changed AjaxRequestTarget .get() will return it your are in a middle of an AJAX request. Ernesto On Tue, Sep 14, 2010 at 10:24 AM, Chris Colman chr...@stepaheadsoftware.com wrote: I am trying to open up a message box inside the IValidator's validate method but I need an AjaxRequestTarget to open the MessageBox. Is there anyway to get an AjaxRequestTarget in the validate method? Regards, Chris - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: submit form with popup window
You could do this as follows: -add a veil that blocks the page (so that user cannot do something else while file is generated) -add a panel (div) on too of the veil. This panel could have an AjaxTimer that checks the server every few seconds to see if excel has been already generated (or display some progress info if not). -once the file is generated update the (div) panel with a link for downloading the file. Ernesto On Tue, Sep 14, 2010 at 10:36 AM, wicketnan trustm...@hotmail.com wrote: Thanks, i am trying the one you suggested. i know it sounds weird, the user need to click the submit click to download the excel, a pop up widow with loading messages should show before the excel file is ready (taking some time). i could manage to implement this using PopupSettings with general link, but it fails to submit the form. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/submit-form-with-popup-window-tp2538547p2538633.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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: submit form with popup window
Replace replace on too=on top on previous e-mail. On Tue, Sep 14, 2010 at 10:48 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: You could do this as follows: -add a veil that blocks the page (so that user cannot do something else while file is generated) -add a panel (div) on too of the veil. This panel could have an AjaxTimer that checks the server every few seconds to see if excel has been already generated (or display some progress info if not). -once the file is generated update the (div) panel with a link for downloading the file. Ernesto On Tue, Sep 14, 2010 at 10:36 AM, wicketnan trustm...@hotmail.com wrote: Thanks, i am trying the one you suggested. i know it sounds weird, the user need to click the submit click to download the excel, a pop up widow with loading messages should show before the excel file is ready (taking some time). i could manage to implement this using PopupSettings with general link, but it fails to submit the form. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/submit-form-with-popup-window-tp2538547p2538633.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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Resize an opened ModalWindow programmatically?
Hi, I'd like to know if it's somehow possible to resize a ModalWindow programmatically? The reason is that the page rendered in the ModalWindow first displays an initial panel of size X and when clicking on a button the entire panel is replaced for a new panel of size Y. Y is much larger than X so I would like to programmatically resize the ModalWindow to size Y. Any ideas? /Johan -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Resize-an-opened-ModalWindow-programmatically-tp2538660p2538660.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
Re: Wicket 1.5 adding a resource used from css?
On Tue, Sep 14, 2010 at 10:22 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Yeah it is simple, doing this: @Override protected void init() { super.init(); addComponentInstantiationListener(new GuiceComponentInjector(this, getGuiceInjector())); ResourceMapper htcResourceMapper = new ResourceMapper(/resources/, new PackageResourceReference(WallboardParentPage.class, border-radius.htc)); getRootRequestMapperAsCompound().add(htcResourceMapper); } And when I hit this url: http://localhost:8080/resources/border-radius.htc or I think the url should be http://localhost:8080/resources/ This is what you gave as mountPath See ResourceMapperTest http://localhost:8080/wicket/resources/border-radius.htc I get a 404, and this comes in the log: 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] DEBUG org.mortbay.log - call filter wicket.WicketWarp 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] ERROR o.a.w.request.cycle.RequestCycle - Unable to execute request. No suitable RequestHandler found. URL=resources/border-radius.htc 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] DEBUG org.mortbay.log - call servlet default 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] DEBUG org.mortbay.log - RESOURCE=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/resources/border-radius.htc.gz 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] DEBUG org.mortbay.log - RESOURCE=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/resources/border-radius.htc 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] DEBUG org.mortbay.log - RESOURCE=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/resources/border-radius.htc 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] DEBUG org.mortbay.log - resource=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/resources/border-radius.htc 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] DEBUG org.mortbay.log - RESPONSE /resources/border-radius.htc 404 10:18:48.626 [25516...@qtp-11596093-0] DEBUG org.mortbay.log - EOF 2010/9/14 Martin Grigorov mgrigo...@apache.org: I had to tell you that ResourceMapper is available only in 1.5-m2.1 (currently voted) The usage is quite simple: MyApp#init() { super.init(); getRootRequestMapperAsCompound().add(new ResourceMapper(mount/path, resourceReference)); } On Tue, Sep 14, 2010 at 9:52 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: How do I do it with resourcemapper..? Im wondering if I am giving the wrong path for the resource somehow? 2010/9/14 Martin Grigorov mgrigo...@apache.org: I am not sure right now what is wrong with this case but you can also mount the resource with ResourceMapper at any path you want. File a bug for this failing case. On Tue, Sep 14, 2010 at 9:10 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi I've been wondering how I can add a resource used from the css (I cant seem to remember how to do it).. This is what I have : public class WicketApplication extends WebApplication { /** * Constructor */ public WicketApplication() { } @Override protected void init() { super.init(); addComponentInstantiationListener(new GuiceComponentInjector(this, getGuiceInjector())); getSharedResources().add( border-radius.htc, new PackageResourceReference(WallboardParentPage.class, border-radius.htc).getResource()); } CSS: .title { width:98%; margin:5px auto; padding:5px; border: 1px solid #d7d7d7; background-color: #f0f0f0; -moz-border-radius: 11px; -webkit-border-radius: 11px; border-radius: 11px; behavior: url(border-radius.htc); } } And when I goto this url, I can see the htc: http://localhost:8080/wicket/resource/com.netdesign.wallboard.WallboardParentPage/border-radius.htc And here there are some of the log messages: 09:06:21.999 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - call filter wicket.WicketWarp 09:06:22.014 [26109...@qtp-11403277-3 -
Re: Wicket 1.5 adding a resource used from css?
Ok fixing it so it should work by doing this: CSS: behavior: url(../../resource/border-radius.htc); Java @Override protected void init() { super.init(); addComponentInstantiationListener(new GuiceComponentInjector(this, getGuiceInjector())); ResourceMapper htcResourceMapper = new ResourceMapper( /resource/border-radius.htc, new PackageResourceReference( WallboardParentPage.class, border-radius.htc)); getRootRequestMapperAsCompound().add(htcResourceMapper); } Gives strangeness in the log (and does work when hit directly from browser, but not when referenced from css): 11:42:25.837 [19386...@qtp-9605638-2 - /wicket/bookmarkable/com.netdesign.wallboard.HomePage?0] DEBUG org.mortbay.log - RESPONSE /wicket/bookmarkable/com.netdesign.wallboard.HomePage 200 11:42:25.837 [19386...@qtp-9605638-2 - /wicket/resource/com.netdesign.wallboard.WallboardParentPage/standardDisplay-ts1284457193055.css] DEBUG org.mortbay.log - REQUEST /wicket/resource/com.netdesign.wallboard.WallboardParentPage/standardDisplay-ts1284457193055.css on org.mortbay.jetty.httpconnect...@c5da6 11:42:25.837 [11403...@qtp-9605638-0 - /wicket/resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ts1284358747180.js] DEBUG org.mortbay.log - REQUEST /wicket/resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ts1284358747180.js on org.mortbay.jetty.httpconnect...@17535b6 11:42:25.837 [19386...@qtp-9605638-2 - /wicket/resource/com.netdesign.wallboard.WallboardParentPage/standardDisplay-ts1284457193055.css] DEBUG org.mortbay.log - Got Session ID oqnifrnitgf3 from cookie 11:42:25.837 [11403...@qtp-9605638-0 - /wicket/resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ts1284358747180.js] DEBUG org.mortbay.log - Got Session ID oqnifrnitgf3 from cookie 11:42:25.837 [19386...@qtp-9605638-2 - /wicket/resource/com.netdesign.wallboard.WallboardParentPage/standardDisplay-ts1284457193055.css] DEBUG org.mortbay.log - sessionmanager=org.mortbay.jetty.servlet.hashsessionmana...@2a340e 11:42:25.837 [11403...@qtp-9605638-0 - /wicket/resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ts1284358747180.js] DEBUG org.mortbay.log - sessionmanager=org.mortbay.jetty.servlet.hashsessionmana...@2a340e 11:42:25.837 [11403...@qtp-9605638-0 - /wicket/resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ts1284358747180.js] DEBUG org.mortbay.log - session=org.mortbay.jetty.servlet.HashSessionManager$Session:oqnifrnit...@15666395 11:42:25.837 [19386...@qtp-9605638-2 - /wicket/resource/com.netdesign.wallboard.WallboardParentPage/standardDisplay-ts1284457193055.css] DEBUG org.mortbay.log - session=org.mortbay.jetty.servlet.HashSessionManager$Session:oqnifrnit...@15666395 11:42:25.837 [11403...@qtp-9605638-0 - /wicket/resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ts1284358747180.js] DEBUG org.mortbay.log - servlet=default 11:42:25.837 [19386...@qtp-9605638-2 - /wicket/resource/com.netdesign.wallboard.WallboardParentPage/standardDisplay-ts1284457193055.css] DEBUG org.mortbay.log - servlet=default 11:42:25.837 [11403...@qtp-9605638-0 - /wicket/resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ts1284358747180.js] DEBUG org.mortbay.log - chain=wicket.WicketWarp-default 11:42:25.837 [19386...@qtp-9605638-2 - /wicket/resource/com.netdesign.wallboard.WallboardParentPage/standardDisplay-ts1284457193055.css] DEBUG org.mortbay.log - chain=wicket.WicketWarp-default 11:42:25.837 [11403...@qtp-9605638-0 - /wicket/resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ts1284358747180.js] DEBUG org.mortbay.log - servlet holder=default 11:42:25.837 [19386...@qtp-9605638-2 - /wicket/resource/com.netdesign.wallboard.WallboardParentPage/standardDisplay-ts1284457193055.css] DEBUG org.mortbay.log - servlet holder=default 11:42:25.837 [11403...@qtp-9605638-0 - /wicket/resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ts1284358747180.js] DEBUG org.mortbay.log - call filter wicket.WicketWarp 11:42:25.837 [11403...@qtp-9605638-0 - /wicket/resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ts1284358747180.js] DEBUG o.a.w.u.r.l.ResourceStreamLocator - Attempting to locate resource 'org/apache/wicket/markup/html/wicket-event.js' on path [folders = [], webapppaths: []] 11:42:25.837 [11403...@qtp-9605638-0 - /wicket/resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ts1284358747180.js] DEBUG o.a.w.u.r.l.ResourceStreamLocator - Attempting to locate resource 'org/apache/wicket/markup/html/wicket-event.js' using classloader sun.misc.launcher$appclassloa...@11b86e7 11:42:25.837 [19386...@qtp-9605638-2 -
Re: Wicket 1.5 adding a resource used from css?
Am 14.09.2010 um 11:11 schrieb Martin Grigorov: On Tue, Sep 14, 2010 at 10:22 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Yeah it is simple, doing this: @Override protected void init() { super.init(); addComponentInstantiationListener(new GuiceComponentInjector(this, getGuiceInjector())); ResourceMapper htcResourceMapper = new ResourceMapper(/resources/, new PackageResourceReference(WallboardParentPage.class, border-radius.htc)); getRootRequestMapperAsCompound().add(htcResourceMapper); } And when I hit this url: http://localhost:8080/resources/border-radius.htc or I think the url should be http://localhost:8080/resources/ This is what you gave as mountPath See ResourceMapperTest http://localhost:8080/wicket/resources/border-radius.htc I get a 404, and this comes in the log: 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] DEBUG org.mortbay.log - call filter wicket.WicketWarp 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] ERROR o.a.w.request.cycle.RequestCycle - Unable to execute request. No suitable RequestHandler found. URL=resources/border-radius.htc 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] DEBUG org.mortbay.log - call servlet default 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] DEBUG org.mortbay.log - RESOURCE=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/resources/border-radius.htc.gz 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] DEBUG org.mortbay.log - RESOURCE=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/resources/border-radius.htc 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] DEBUG org.mortbay.log - RESOURCE=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/resources/border-radius.htc 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] DEBUG org.mortbay.log - resource=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/resources/border-radius.htc 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] DEBUG org.mortbay.log - RESPONSE /resources/border-radius.htc 404 10:18:48.626 [25516...@qtp-11596093-0] DEBUG org.mortbay.log - EOF 2010/9/14 Martin Grigorov mgrigo...@apache.org: I had to tell you that ResourceMapper is available only in 1.5-m2.1 (currently voted) The usage is quite simple: MyApp#init() { super.init(); getRootRequestMapperAsCompound().add(new ResourceMapper(mount/path, resourceReference)); } On Tue, Sep 14, 2010 at 9:52 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: How do I do it with resourcemapper..? Im wondering if I am giving the wrong path for the resource somehow? 2010/9/14 Martin Grigorov mgrigo...@apache.org: I am not sure right now what is wrong with this case but you can also mount the resource with ResourceMapper at any path you want. File a bug for this failing case. On Tue, Sep 14, 2010 at 9:10 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi I've been wondering how I can add a resource used from the css (I cant seem to remember how to do it).. This is what I have : public class WicketApplication extends WebApplication { /** * Constructor */ public WicketApplication() { } @Override protected void init() { super.init(); addComponentInstantiationListener(new GuiceComponentInjector(this, getGuiceInjector())); getSharedResources().add( border-radius.htc, new PackageResourceReference(WallboardParentPage.class, border-radius.htc).getResource()); } CSS: .title { width:98%; margin:5px auto; padding:5px; border: 1px solid #d7d7d7; background-color: #f0f0f0; -moz-border-radius: 11px; -webkit-border-radius: 11px; border-radius: 11px; behavior: url(border-radius.htc); } } And when I goto this url, I can see the htc: http://localhost:8080/wicket/resource/com.netdesign.wallboard.WallboardParentPage/border-radius.htc And here there are some of the log messages: 09:06:21.999 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - call filter wicket.WicketWarp 09:06:22.014 [26109...@qtp-11403277-3 - /wicket/bookmarkable/border-radius.htc] WARN o.a.wicket.util.lang.WicketObjects - Could
Re: Wicket 1.5 adding a resource used from css?
-- I would not recommend tailing slashes for resources names. -- The mount path is not a prefix to the resource but a full path, you probably want this instead: getRootRequestMapperAsCompound().add(new ResourceMapper(/resources/border-radius.htc, new PackageResourceReference(WallpagerParentPage.class, border-radius.htc))) -- If 'border-radius.htc' is included from a stylesheet in the same package where WallpagerParentPage.class is located it's sufficient to put border-radius.htc in the same package and refer it like this from CSS: stylesheet inside WallpaperParentPage.class package: . behavior:url(border-radius.htc) . In this case you don't even need to mount the resource at all. -- You should avoid to use '..' for url's inside CSS ... it probably will not work! Am 14.09.2010 um 11:49 schrieb Peter Ertl: Am 14.09.2010 um 11:11 schrieb Martin Grigorov: On Tue, Sep 14, 2010 at 10:22 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Yeah it is simple, doing this: @Override protected void init() { super.init(); addComponentInstantiationListener(new GuiceComponentInjector(this, getGuiceInjector())); ResourceMapper htcResourceMapper = new ResourceMapper(/resources/, new PackageResourceReference(WallboardParentPage.class, border-radius.htc)); getRootRequestMapperAsCompound().add(htcResourceMapper); } And when I hit this url: http://localhost:8080/resources/border-radius.htc or I think the url should be http://localhost:8080/resources/ This is what you gave as mountPath See ResourceMapperTest http://localhost:8080/wicket/resources/border-radius.htc I get a 404, and this comes in the log: 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] DEBUG org.mortbay.log - call filter wicket.WicketWarp 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] ERROR o.a.w.request.cycle.RequestCycle - Unable to execute request. No suitable RequestHandler found. URL=resources/border-radius.htc 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] DEBUG org.mortbay.log - call servlet default 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] DEBUG org.mortbay.log - RESOURCE=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/resources/border-radius.htc.gz 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] DEBUG org.mortbay.log - RESOURCE=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/resources/border-radius.htc 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] DEBUG org.mortbay.log - RESOURCE=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/resources/border-radius.htc 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] DEBUG org.mortbay.log - resource=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/resources/border-radius.htc 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] DEBUG org.mortbay.log - RESPONSE /resources/border-radius.htc 404 10:18:48.626 [25516...@qtp-11596093-0] DEBUG org.mortbay.log - EOF 2010/9/14 Martin Grigorov mgrigo...@apache.org: I had to tell you that ResourceMapper is available only in 1.5-m2.1 (currently voted) The usage is quite simple: MyApp#init() { super.init(); getRootRequestMapperAsCompound().add(new ResourceMapper(mount/path, resourceReference)); } On Tue, Sep 14, 2010 at 9:52 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: How do I do it with resourcemapper..? Im wondering if I am giving the wrong path for the resource somehow? 2010/9/14 Martin Grigorov mgrigo...@apache.org: I am not sure right now what is wrong with this case but you can also mount the resource with ResourceMapper at any path you want. File a bug for this failing case. On Tue, Sep 14, 2010 at 9:10 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi I've been wondering how I can add a resource used from the css (I cant seem to remember how to do it).. This is what I have : public class WicketApplication extends WebApplication { /** * Constructor */ public WicketApplication() { } @Override protected void init() { super.init(); addComponentInstantiationListener(new GuiceComponentInjector(this, getGuiceInjector())); getSharedResources().add( border-radius.htc, new
Re: Wicket 1.5 adding a resource used from css?
Yeah this was my starting point. But it did not work heres the log msg: 12:06:08.309 [13389...@qtp-9605638-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - call filter wicket.WicketWarp 12:06:08.309 [13389...@qtp-9605638-3 - /wicket/bookmarkable/border-radius.htc] WARN o.a.wicket.util.lang.WicketObjects - Could not resolve class: border-radius.htc 12:06:08.309 [13389...@qtp-9605638-3 - /wicket/bookmarkable/border-radius.htc] ERROR o.a.w.request.cycle.RequestCycle - Unable to execute request. No suitable RequestHandler found. URL=wicket/bookmarkable/border-radius.htc 12:06:08.309 [13389...@qtp-9605638-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - call servlet default 12:06:08.324 [13389...@qtp-9605638-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - RESOURCE=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/wicket/bookmarkable/border-radius.htc.gz 12:06:08.324 [13389...@qtp-9605638-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - RESOURCE=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/wicket/bookmarkable/border-radius.htc 12:06:08.324 [13389...@qtp-9605638-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - RESOURCE=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/wicket/bookmarkable/border-radius.htc 12:06:08.324 [13389...@qtp-9605638-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - resource=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/wicket/bookmarkable/border-radius.htc 12:06:08.324 [13389...@qtp-9605638-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - RESPONSE /wicket/bookmarkable/border-radius.htc 404 I guess I should create a quickstart as Martin mentioned and file a bug? 2010/9/14 Peter Ertl pe...@gmx.org: -- I would not recommend tailing slashes for resources names. -- The mount path is not a prefix to the resource but a full path, you probably want this instead: getRootRequestMapperAsCompound().add(new ResourceMapper(/resources/border-radius.htc, new PackageResourceReference(WallpagerParentPage.class, border-radius.htc))) -- If 'border-radius.htc' is included from a stylesheet in the same package where WallpagerParentPage.class is located it's sufficient to put border-radius.htc in the same package and refer it like this from CSS: stylesheet inside WallpaperParentPage.class package: . behavior:url(border-radius.htc) . In this case you don't even need to mount the resource at all. -- You should avoid to use '..' for url's inside CSS ... it probably will not work! Am 14.09.2010 um 11:49 schrieb Peter Ertl: Am 14.09.2010 um 11:11 schrieb Martin Grigorov: On Tue, Sep 14, 2010 at 10:22 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Yeah it is simple, doing this: @Override protected void init() { super.init(); addComponentInstantiationListener(new GuiceComponentInjector(this, getGuiceInjector())); ResourceMapper htcResourceMapper = new ResourceMapper(/resources/, new PackageResourceReference(WallboardParentPage.class, border-radius.htc)); getRootRequestMapperAsCompound().add(htcResourceMapper); } And when I hit this url: http://localhost:8080/resources/border-radius.htc or I think the url should be http://localhost:8080/resources/ This is what you gave as mountPath See ResourceMapperTest http://localhost:8080/wicket/resources/border-radius.htc I get a 404, and this comes in the log: 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] DEBUG org.mortbay.log - call filter wicket.WicketWarp 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] ERROR o.a.w.request.cycle.RequestCycle - Unable to execute request. No suitable RequestHandler found. URL=resources/border-radius.htc 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] DEBUG org.mortbay.log - call servlet default 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] DEBUG org.mortbay.log - RESOURCE=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/resources/border-radius.htc.gz 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] DEBUG org.mortbay.log - RESOURCE=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/resources/border-radius.htc 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] DEBUG org.mortbay.log -
Validating a DropDownChoice when not in a form
Is it possible to force a validate of a DropDownChoice when it's not in a form but just normal page/panel? If so what method(s) do we call? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
API Docs for 1.4.10 and 1.4.11
Hi guys .. Am I missing something of API Docs are not updated ? Kind regards Armando -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/API-Docs-for-1-4-10-and-1-4-11-tp2538753p2538753.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
Re: Wicket 1.5 adding a resource used from css?
Did you put 'border-radius.htc' in the same package where this CSS is located? How your refer to the CSS from your page? Do you use wicket:link or response.renderCSSReference(...) ? Can you paste your code to some pastebin and post the link here? Am 14.09.2010 um 09:10 schrieb nino martinez wael: .title { width:98%; margin:5px auto; padding:5px; border: 1px solid #d7d7d7; background-color: #f0f0f0; -moz-border-radius: 11px; -webkit-border-radius: 11px; border-radius: 11px; behavior: url(border-radius.htc); } } - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket 1.5 adding a resource used from css?
here : https://issues.apache.org/jira/browse/WICKET-3046 2010/9/14 nino martinez wael nino.martinez.w...@gmail.com: Yeah this was my starting point. But it did not work heres the log msg: 12:06:08.309 [13389...@qtp-9605638-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - call filter wicket.WicketWarp 12:06:08.309 [13389...@qtp-9605638-3 - /wicket/bookmarkable/border-radius.htc] WARN o.a.wicket.util.lang.WicketObjects - Could not resolve class: border-radius.htc 12:06:08.309 [13389...@qtp-9605638-3 - /wicket/bookmarkable/border-radius.htc] ERROR o.a.w.request.cycle.RequestCycle - Unable to execute request. No suitable RequestHandler found. URL=wicket/bookmarkable/border-radius.htc 12:06:08.309 [13389...@qtp-9605638-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - call servlet default 12:06:08.324 [13389...@qtp-9605638-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - RESOURCE=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/wicket/bookmarkable/border-radius.htc.gz 12:06:08.324 [13389...@qtp-9605638-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - RESOURCE=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/wicket/bookmarkable/border-radius.htc 12:06:08.324 [13389...@qtp-9605638-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - RESOURCE=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/wicket/bookmarkable/border-radius.htc 12:06:08.324 [13389...@qtp-9605638-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - resource=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/wicket/bookmarkable/border-radius.htc 12:06:08.324 [13389...@qtp-9605638-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - RESPONSE /wicket/bookmarkable/border-radius.htc 404 I guess I should create a quickstart as Martin mentioned and file a bug? 2010/9/14 Peter Ertl pe...@gmx.org: -- I would not recommend tailing slashes for resources names. -- The mount path is not a prefix to the resource but a full path, you probably want this instead: getRootRequestMapperAsCompound().add(new ResourceMapper(/resources/border-radius.htc, new PackageResourceReference(WallpagerParentPage.class, border-radius.htc))) -- If 'border-radius.htc' is included from a stylesheet in the same package where WallpagerParentPage.class is located it's sufficient to put border-radius.htc in the same package and refer it like this from CSS: stylesheet inside WallpaperParentPage.class package: . behavior:url(border-radius.htc) . In this case you don't even need to mount the resource at all. -- You should avoid to use '..' for url's inside CSS ... it probably will not work! Am 14.09.2010 um 11:49 schrieb Peter Ertl: Am 14.09.2010 um 11:11 schrieb Martin Grigorov: On Tue, Sep 14, 2010 at 10:22 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Yeah it is simple, doing this: @Override protected void init() { super.init(); addComponentInstantiationListener(new GuiceComponentInjector(this, getGuiceInjector())); ResourceMapper htcResourceMapper = new ResourceMapper(/resources/, new PackageResourceReference(WallboardParentPage.class, border-radius.htc)); getRootRequestMapperAsCompound().add(htcResourceMapper); } And when I hit this url: http://localhost:8080/resources/border-radius.htc or I think the url should be http://localhost:8080/resources/ This is what you gave as mountPath See ResourceMapperTest http://localhost:8080/wicket/resources/border-radius.htc I get a 404, and this comes in the log: 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] DEBUG org.mortbay.log - call filter wicket.WicketWarp 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] ERROR o.a.w.request.cycle.RequestCycle - Unable to execute request. No suitable RequestHandler found. URL=resources/border-radius.htc 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] DEBUG org.mortbay.log - call servlet default 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] DEBUG org.mortbay.log - RESOURCE=file:/D:/nino/develop/netdesign/projects/internalcomponents/Applications/WallBoard/trunk/wallboard-web/src/main/webapp/resources/border-radius.htc.gz 10:16:47.362 [25516...@qtp-11596093-0 - /resources/border-radius.htc] DEBUG org.mortbay.log -
Re: API Docs for 1.4.10 and 1.4.11
Armando, Do you mean online API Docs? Why not install the sources and use your IDE to read the associated JavaDoc? As a bonus you will have the source code at hand and you will be able to see how things are really implemented;-) Kind regards, Ernesto On Tue, Sep 14, 2010 at 12:12 PM, armandoxxx armando@dropchop.com wrote: Hi guys .. Am I missing something of API Docs are not updated ? Kind regards Armando -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/API-Docs-for-1-4-10-and-1-4-11-tp2538753p2538753.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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket 1.5 adding a resource used from css?
Yes put the border-radius.htc in the same package and used the response.renderCSSReference(...)... 2010/9/14 Peter Ertl pe...@gmx.org: Did you put 'border-radius.htc' in the same package where this CSS is located? How your refer to the CSS from your page? Do you use wicket:link or response.renderCSSReference(...) ? Can you paste your code to some pastebin and post the link here? Am 14.09.2010 um 09:10 schrieb nino martinez wael: .title { width:98%; margin:5px auto; padding:5px; border: 1px solid #d7d7d7; background-color: #f0f0f0; -moz-border-radius: 11px; -webkit-border-radius: 11px; border-radius: 11px; behavior: url(border-radius.htc); } } - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: JavaOne in San Francisco
JavaOne starts on Sunday. Will any other Wicket fans be attending? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/JavaOne-in-San-Francisco-tp1876070p2538954.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
Re: Resize an opened ModalWindow programmatically?
My knowledge are weak here, but you're always able todo dom manipulation. So whatever you want are possible. (disclaimer) A one second google search brought this: http://www.css-resources.com/Change-Div-Size-Color-and-Location-with-the-W3C-DOM.htm 2010/9/14 Johan Haleby johan.hal...@gmail.com: Hi, I'd like to know if it's somehow possible to resize a ModalWindow programmatically? The reason is that the page rendered in the ModalWindow first displays an initial panel of size X and when clicking on a button the entire panel is replaced for a new panel of size Y. Y is much larger than X so I would like to programmatically resize the ModalWindow to size Y. Any ideas? /Johan -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Resize-an-opened-ModalWindow-programmatically-tp2538660p2538660.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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
How to update components using Ajax when ModalWindow closes?
Hi, When a user clicks on an Image a ModalWindow pops up where users can upload and change this picture. When the user has uploaded a new picture and click OK in the ModalWindow I want it to close down and update the previous Image with the new image. How ever I cannot get the Image to update using Ajax (if I reload the page the I can see the new image). The image is wrapped in a markupcontainer which has output markup id set to true. I try to replace the image using markupcontainer.replace(new Image(..)) and I add the markupcontainer to the target but nothing happens. This is the same target that I use to close the modal window. What am I doing wrong? /Johan -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-update-components-using-Ajax-when-ModalWindow-closes-tp2539048p2539048.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
Re: How to update components using Ajax when ModalWindow closes?
Theres a special noncaching image for this NonCachingImage 2010/9/14 Johan Haleby johan.hal...@gmail.com: Hi, When a user clicks on an Image a ModalWindow pops up where users can upload and change this picture. When the user has uploaded a new picture and click OK in the ModalWindow I want it to close down and update the previous Image with the new image. How ever I cannot get the Image to update using Ajax (if I reload the page the I can see the new image). The image is wrapped in a markupcontainer which has output markup id set to true. I try to replace the image using markupcontainer.replace(new Image(..)) and I add the markupcontainer to the target but nothing happens. This is the same target that I use to close the modal window. What am I doing wrong? /Johan -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-update-components-using-Ajax-when-ModalWindow-closes-tp2539048p2539048.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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Validating a DropDownChoice when not in a form
validate() :) -igor On Tue, Sep 14, 2010 at 3:12 AM, Chris Colman chr...@stepaheadsoftware.com wrote: Is it possible to force a validate of a DropDownChoice when it's not in a form but just normal page/panel? If so what method(s) do we call? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AutoCompleteTextField and long result list in WebKit browsers
Am 06.08.10 15:56, schrieb Martin Grigorov: Try with newer Wicket. It could be fixed already. On Fri, Aug 6, 2010 at 3:33 PM, Thomas Gierthomas.g...@qleo.de wrote: Hi, I have problems with long result lists for an AutoCompleteTextField in WebKit-based browsers. We're using wicket 1.4.0. If the bottom of a result is outside the browser's viewport and you scroll down so that now the text field itself is outside the view port, a selected list entry is not copied over to the text field when selecting with the mouse. Keyboard selection does work though. Any ideas? Cheers Thomas Gier - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org Hi, sorry for not answering sooner but I've been on holidays for some weeks. I checked with the current wicket release 1.4.11 today and unfortunately the problem persists. Does anybody have an idea how to fix this? Tia Thomas Gier - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Internalization - Exceptions
Hello again, I followed the steps but still its throws an exception. It seems it looks for property inside the Form. The exception it throws is like this. Page [Page class = com.i18n.I18nPage, id = 0, version = 0]: # PathSizeTypeModel Object 1 frmProperty 1.9Korg.apache.wicket.markup.html.form.Form 2 frmProperty:lblProperty 1.9K org.apache.wicket.markup.html.basic.Label Hello Test When you look in to the exception, the model Hello Test is retrieved but it still look inside the form for the getter method. Any ideas on how to overcome would be of great help and kindly explain the reasons for the exception. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Internalization-Exceptions-tp2536565p2539145.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
Configuration file of flash object not found
Hi, I would like to integrate a flash object in my web application. If the flash object does not require a configuration file, it works fine with the given example at http://cwiki.apache.org/WICKET/object-container-adding-flash-to-a-wicket-application.html. However, it does not work, if the flash object is based on an XML configuration file. In my case, the flash objects requires some information from the config.xml file which must be placed within the same folder as the flash object is placed. But I always get the following error: “Error loading asset - please check config.xml all assets exist on the expected path Error #2032” Playing around with the firebug, I found out that the flash object always looks for the config.xml file in the root folder of the web application!?!? Therefore I searched the Forum for another solution. I found an interesting posting at http://apache-wicket.1842946.n4.nabble.com/Embedding-advanced-flash-object-td1875047.html. From this posting I used the following code, but I got the same error message: static final ResourceReference WHITEWHEEL = new ResourceReference( TastefulSearchPanel.class, WineWheel.swf ); static final ResourceReference CONFIGWHITE = new ResourceReference( TastefulSearchPanel.class, config.xml ); String swfURL = RequestUtils.toAbsolutePath( urlFor( WHITEWHEEL ).toString() ); WebMarkupContainer flashParam = new WebMarkupContainer(flashParamTag); WebMarkupContainer flashSrc = new WebMarkupContainer(flashSrcTag); WebMarkupContainer flashEmbed = new WebMarkupContainer(flashEmbedTag); IModel flashConfig = new AbstractReadOnlyModelString(){ @Override public String getObject() { return RequestUtils.toAbsolutePath(RequestCycle.get().urlFor(CONFIGWHITE).toString()); } }; IModel flashFile = new AbstractReadOnlyModelString(){ @Override public String getObject() { return RequestUtils.toAbsolutePath(RequestCycle.get().urlFor(WHITEWHEEL).toString()); } }; flashParam.add(new AttributeModifier(value, flashConfig)); flashSrc.add(new AttributeModifier(value, flashFile)); flashEmbed.add(new AttributeModifier(flashvars, flashConfig)); flashEmbed.add(new AttributeModifier(src, flashFile)); add(flashParam); add(flashSrc); add(flashEmbed); ** In the mark-up I use the following code: ** Do you have any solution on my problem? The weird thing is, that it works on a regular web server, when I deploy the html markup that is generated by wicket (of course, after modifying the paths that were also generated by wicket). As I said, the problem is that it always tries to access the config.xml file from the root of my web app at http://localhost:8080/w7/config.xml. Thanks for your help. Rainer -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Configuration-file-of-flash-object-not-found-tp2539291p2539291.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
Re: Wicket AjaxButton multiple responses
Igor, I responded in another topic and I'm closing this one. Basically, simple HTML streaming into IFrame just works for me. The topic about 'live' html streaming is here (for anyone interested): http://apache-wicket.1842946.n4.nabble.com/Live-streaming-on-Link-click-td2533475.html#a2533475 http://apache-wicket.1842946.n4.nabble.com/Live-streaming-on-Link-click-td2533475.html#a2533475 Thanks, Dmitry -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-AjaxButton-multiple-responses-tp2525096p2539294.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
Safe URL for a dynamic resource
Hi, I'm trying to display a PDF file inside an IFRAME. To do that, I need a url to place on the IFRAME's src attribute. My idea is to create a shared resource and mount a url to it so I can reference it easily. Since the PDF file is generated on-the-fly, I can also pass a parameter through this url to determine the file's contents. However, I'm concerned about how safe it would be to do this. To add the shared resource I have to produce a single WebResource object. This would be fine if the call to getResourceStream would also pass along the parameters that have been set, but the parameters are retrieved though a call to getParameters. That means that the setParameters method must be called by Wicket sometime before the call to getResourceStream is made. My question is: How can I be sure that multiple simultaneous requests won't have concurrency problems in this scenario? Could there be a better way to do this? Thanks in advance, Denis Souza
Re: Safe URL for a dynamic resource
you can read the parameters off the url yourself, requestcycle.getrequest()... -igor On Tue, Sep 14, 2010 at 10:08 AM, Denis Souza denis.so...@gmail.com wrote: Hi, I'm trying to display a PDF file inside an IFRAME. To do that, I need a url to place on the IFRAME's src attribute. My idea is to create a shared resource and mount a url to it so I can reference it easily. Since the PDF file is generated on-the-fly, I can also pass a parameter through this url to determine the file's contents. However, I'm concerned about how safe it would be to do this. To add the shared resource I have to produce a single WebResource object. This would be fine if the call to getResourceStream would also pass along the parameters that have been set, but the parameters are retrieved though a call to getParameters. That means that the setParameters method must be called by Wicket sometime before the call to getResourceStream is made. My question is: How can I be sure that multiple simultaneous requests won't have concurrency problems in this scenario? Could there be a better way to do this? Thanks in advance, Denis Souza - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Validating a DropDownChoice when not in a form
validate() :) I've been trying that but for some reason it's not triggering the FormComponent's validator. I must have some broken logic in there somewhere. -igor On Tue, Sep 14, 2010 at 3:12 AM, Chris Colman chr...@stepaheadsoftware.com wrote: Is it possible to force a validate of a DropDownChoice when it's not in a form but just normal page/panel? If so what method(s) do we call? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Safe URL for a dynamic resource
Thanks, that worked! I had though of something like that but the WebResource does not give you access to a request cycle. I had forgotten that I can just call RequestCycle.get(). Also I noticed the strangest thing while implementing it. Let's say I have the following query string: ?order=1234autoPrint=false Whenever I get the PageParameters from the request cycle and try to retrieve a parameter (say, order) it gives me the memory reference for the string instead of the string itself. For example it gives me [Ljava.lang.String;@1b4d41e instead of 1234. The same thing happens if I call requestCycle.getRequest().getParameterMap().get(order) But if I call requestCycle.getRequest().getParameter(order) it works fine. It's not really a big problem because I can just call the method that works, but, out of curiosity, any idea why this happens? Denis Souza -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: terça-feira, 14 de setembro de 2010 14:22 To: users@wicket.apache.org Subject: Re: Safe URL for a dynamic resource you can read the parameters off the url yourself, requestcycle.getrequest()... -igor On Tue, Sep 14, 2010 at 10:08 AM, Denis Souza denis.so...@gmail.com wrote: Hi, I'm trying to display a PDF file inside an IFRAME. To do that, I need a url to place on the IFRAME's src attribute. My idea is to create a shared resource and mount a url to it so I can reference it easily. Since the PDF file is generated on-the-fly, I can also pass a parameter through this url to determine the file's contents. However, I'm concerned about how safe it would be to do this. To add the shared resource I have to produce a single WebResource object. This would be fine if the call to getResourceStream would also pass along the parameters that have been set, but the parameters are retrieved though a call to getParameters. That means that the setParameters method must be called by Wicket sometime before the call to getResourceStream is made. My question is: How can I be sure that multiple simultaneous requests won't have concurrency problems in this scenario? Could there be a better way to do this? Thanks in advance, Denis Souza - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Safe URL for a dynamic resource
Thanks, that worked! I had though of something like that but the WebResource does not give you access to a request cycle. I had forgotten that I can just call RequestCycle.get(). Also I noticed the strangest thing while implementing it. Let's say I have the following query string: ?order=1234autoPrint=false Whenever I get the PageParameters from the request cycle and try to retrieve a parameter (say, order) it gives me the memory reference for the string instead of the string itself. For example it gives me [Ljava.lang.String;@1b4d41e instead of 1234. The same thing happens if I call requestCycle.getRequest().getParameterMap().get(order) But if I call requestCycle.getRequest().getParameter(order) it works fine. It's not really a big problem because I can just call the method that works, but, out of curiosity, any idea why this happens? Denis Souza -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: terça-feira, 14 de setembro de 2010 14:22 To: users@wicket.apache.org Subject: Re: Safe URL for a dynamic resource you can read the parameters off the url yourself, requestcycle.getrequest()... -igor On Tue, Sep 14, 2010 at 10:08 AM, Denis Souza denis.so...@gmail.com wrote: Hi, I'm trying to display a PDF file inside an IFRAME. To do that, I need a url to place on the IFRAME's src attribute. My idea is to create a shared resource and mount a url to it so I can reference it easily. Since the PDF file is generated on-the-fly, I can also pass a parameter through this url to determine the file's contents. However, I'm concerned about how safe it would be to do this. To add the shared resource I have to produce a single WebResource object. This would be fine if the call to getResourceStream would also pass along the parameters that have been set, but the parameters are retrieved though a call to getParameters. That means that the setParameters method must be called by Wicket sometime before the call to getResourceStream is made. My question is: How can I be sure that multiple simultaneous requests won't have concurrency problems in this scenario? Could there be a better way to do this? Thanks in advance, Denis Souza - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Validating a DropDownChoice when not in a form
Here's the code I use to set up the DropDownChoice and its validator: Inside the panel contructor: studentList = new DropDownChoice(studentList, new PropertyModel(orderManipulator.getDispatch(), student), students); IValidatorDropDownChoice validator = new IValidatorDropDownChoice() { public void validate(IValidatableDropDownChoice validatable) { if ( validatable.getValue() == null ) { logger.trace(Drop down value null); studentSet = false; } else { logger.trace(Drop down value NOT null); studentSet = true; } } }; studentList.add(validator); add(studentList); attachUpdateBehavior(studentList); Later on when the user clicks a button the a panel validation method calls studentList.validate(); but I never see the trace messages appear. I am trying to detect whether the user has chosen an option in the Drop down rather than just left it as Choose one. Currently I have no choices available in the drop down the validator should always show the message Drop down value null - theoretically according to my understanding. -Original Message- From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: Wednesday, 15 September 2010 3:39 AM To: users@wicket.apache.org Subject: RE: Validating a DropDownChoice when not in a form validate() :) I've been trying that but for some reason it's not triggering the FormComponent's validator. I must have some broken logic in there somewhere. -igor On Tue, Sep 14, 2010 at 3:12 AM, Chris Colman chr...@stepaheadsoftware.com wrote: Is it possible to force a validate of a DropDownChoice when it's not in a form but just normal page/panel? If so what method(s) do we call? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Configuration file of flash object not found
Hi, I would like to integrate a flash object in my web application. If the flash object does not require a configuration file, it works fine with the given example at http://cwiki.apache.org/WICKET/object-container-adding-flash-to-a-wicket -application.html http://cwiki.apache.org/WICKET/object-container-adding-flash-to-a-wicke t-application.html . However, it does not work, if the flash object is based on an XML configuration file. In my case, the flash objects requires some information from the config.xml file which must be placed within the same folder as the flash object is placed. But I always get the following error: Error loading asset - please check config.xml all assets exist on the expected path Error #2032 Playing around with the firebug, I found out that the flash object always looks for the config.xml file in the root folder of the web application!?!? Therefore I searched the Forum for another solution. I found an interesting posting at http://apache-wicket.1842946.n4.nabble.com/Embedding-advanced-flash-obje ct-td1875047.html. From this posting I used the following code, but I got the same error message: static final ResourceReference WHITEWHEEL = new ResourceReference( TastefulSearchPanel.class, WineWheel.swf ); static final ResourceReference CONFIGWHITE = new ResourceReference( TastefulSearchPanel.class, config.xml ); String swfURL = RequestUtils.toAbsolutePath( urlFor( WHITEWHEEL ).toString() ); WebMarkupContainer flashParam = new WebMarkupContainer(flashParamTag); WebMarkupContainer flashSrc = new WebMarkupContainer(flashSrcTag); WebMarkupContainer flashEmbed = new WebMarkupContainer(flashEmbedTag); IModel flashConfig = new AbstractReadOnlyModelString(){ @Override public String getObject() { return RequestUtils.toAbsolutePath(RequestCycle.get().urlFor(CONFIGWHITE).toStr ing()); } }; IModel flashFile = new AbstractReadOnlyModelString(){ @Override public String getObject() { return RequestUtils.toAbsolutePath(RequestCycle.get().urlFor(WHITEWHEEL).toStri ng()); } }; flashParam.add(new AttributeModifier(value, flashConfig)); flashSrc.add(new AttributeModifier(value, flashFile)); flashEmbed.add(new AttributeModifier(flashvars, flashConfig)); flashEmbed.add(new AttributeModifier(src, flashFile)); add(flashParam); add(flashSrc); add(flashEmbed); ** In the mark-up I use the following code: object classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354 width=700 height=700 id=WineWheel param wicket:id=flashParamTag name=FlashVars value=someVar=someValue / param wicket:id=flashSrcTag name=SRC value=WineWheel.swf / param name=quality value=high /param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / embed wicket:id=flashEmbedTag flashvars=someVar=someValue src=WineWheel.swf menu=false pluginspage= http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=S hockwaveFlash width=700 height=700 name=WineWheel /embed /object ** Do you have any solution on my problem? The weird thing is, that it works on a regular web server, when I deploy the html markup that is generated by wicket (of course, after modifying the paths that were also generated by wicket). As I said, the problem is that it always tries to access the config.xml file from the root of my web app at http://localhost:8080/w7/config.xml. Thanks for your help. Rainer
Re: Wicket Internalization - Exceptions
Post your code. On Tue, Sep 14, 2010 at 10:27 AM, v...@wav@gmail.com vela@gmail.comwrote: Hello again, I followed the steps but still its throws an exception. It seems it looks for property inside the Form. The exception it throws is like this. Page [Page class = com.i18n.I18nPage, id = 0, version = 0]: # PathSizeTypeModel Object 1 frmProperty 1.9Korg.apache.wicket.markup.html.form.Form 2 frmProperty:lblProperty 1.9K org.apache.wicket.markup.html.basic.Label Hello Test When you look in to the exception, the model Hello Test is retrieved but it still look inside the form for the getter method. Any ideas on how to overcome would be of great help and kindly explain the reasons for the exception. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Internalization-Exceptions-tp2536565p2539145.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 -- Jeremy Thomerson http://www.wickettraining.com
Re: wicket-auth-roles and additional roles
Brian, I don't understand what you are trying to say ? From your first sentence : I use Spring Security for everything I do in Wicket. = I take it that you like Spring Security ? Your last sentence : You really need to use a lot of features in Spring Security before it will save you time in the end. = You think spring-security is overkill in most cases ? Just curious whether you prefer Spring Security, Shiro or ... in combination with Wicket ? Brian Topping wrote: FWIW, I use Spring Security for everything I do in Wicket. I was the original author of the Shiro-to-Wicket code on Wicket Stuff (somehow the attributions got lost in there), and if you don't need all the adaptors for stuff like LDAP (maybe Shiro has that by now), it's really worth looking at. There's most of what you need for Spring Security in the Brix security example as well. The first time I secured a Wicket app, I went through great pains to use someone else's framework. But the fact is Wicket's security was designed by geniuses, so it's a snap to work with. You really need to use a lot of features in Spring Security before it will save you time in the end. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-auth-roles-and-additional-roles-tp2538164p2539437.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
Re: How to determine previous value in select after user change
On Fri, Aug 27, 2010 at 8:18 PM, Steve Mactaggart st...@whitesquaresoft.com wrote: That would work I guess, but I don't think it makes sense to build that logic into the dropdown, this is a function for the model, so I guess if there are no existing ways to do it i'll have to look at writing a ChangeTrackedModel or the like to wrap existing models in to manage the change. Something like this might work for you: http://pastebin.com/katiSsGq http://pastebin.com/katiSsGqThat's just a quick-and-dirty approach - there are likely optimizations that can be made to that code. What I really want to be able to do is in the ajax event determine if I want to allow the user to continue with the change, present them with a dialog or just cancel the change. Seems like you may want a validator instead. And I wan to be able to just attach this logic to existing components without having to extend classes all over the shop. Again, probably a validator, although the IModel solution is also reusable. -- Jeremy Thomerson http://www.wickettraining.com
Re: Safe URL for a dynamic resource
use getstring() -igor On Tue, Sep 14, 2010 at 11:17 AM, Denis Souza denis.so...@gmail.com wrote: Thanks, that worked! I had though of something like that but the WebResource does not give you access to a request cycle. I had forgotten that I can just call RequestCycle.get(). Also I noticed the strangest thing while implementing it. Let's say I have the following query string: ?order=1234autoPrint=false Whenever I get the PageParameters from the request cycle and try to retrieve a parameter (say, order) it gives me the memory reference for the string instead of the string itself. For example it gives me [Ljava.lang.String;@1b4d41e instead of 1234. The same thing happens if I call requestCycle.getRequest().getParameterMap().get(order) But if I call requestCycle.getRequest().getParameter(order) it works fine. It's not really a big problem because I can just call the method that works, but, out of curiosity, any idea why this happens? Denis Souza -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: terça-feira, 14 de setembro de 2010 14:22 To: users@wicket.apache.org Subject: Re: Safe URL for a dynamic resource you can read the parameters off the url yourself, requestcycle.getrequest()... -igor On Tue, Sep 14, 2010 at 10:08 AM, Denis Souza denis.so...@gmail.com wrote: Hi, I'm trying to display a PDF file inside an IFRAME. To do that, I need a url to place on the IFRAME's src attribute. My idea is to create a shared resource and mount a url to it so I can reference it easily. Since the PDF file is generated on-the-fly, I can also pass a parameter through this url to determine the file's contents. However, I'm concerned about how safe it would be to do this. To add the shared resource I have to produce a single WebResource object. This would be fine if the call to getResourceStream would also pass along the parameters that have been set, but the parameters are retrieved though a call to getParameters. That means that the setParameters method must be called by Wicket sometime before the call to getResourceStream is made. My question is: How can I be sure that multiple simultaneous requests won't have concurrency problems in this scenario? Could there be a better way to do this? Thanks in advance, Denis Souza - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Validating a DropDownChoice when not in a form
validators do not usually handle null values, that is handled by component's set/getrequired() property. if you want your validator to handle nulls let it implement INullAcceptingValidator -igor On Tue, Sep 14, 2010 at 11:22 AM, Chris Colman chr...@stepaheadsoftware.com wrote: Here's the code I use to set up the DropDownChoice and its validator: Inside the panel contructor: studentList = new DropDownChoice(studentList, new PropertyModel(orderManipulator.getDispatch(), student), students); IValidatorDropDownChoice validator = new IValidatorDropDownChoice() { public void validate(IValidatableDropDownChoice validatable) { if ( validatable.getValue() == null ) { logger.trace(Drop down value null); studentSet = false; } else { logger.trace(Drop down value NOT null); studentSet = true; } } }; studentList.add(validator); add(studentList); attachUpdateBehavior(studentList); Later on when the user clicks a button the a panel validation method calls studentList.validate(); but I never see the trace messages appear. I am trying to detect whether the user has chosen an option in the Drop down rather than just left it as Choose one. Currently I have no choices available in the drop down the validator should always show the message Drop down value null - theoretically according to my understanding. -Original Message- From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: Wednesday, 15 September 2010 3:39 AM To: users@wicket.apache.org Subject: RE: Validating a DropDownChoice when not in a form validate() :) I've been trying that but for some reason it's not triggering the FormComponent's validator. I must have some broken logic in there somewhere. -igor On Tue, Sep 14, 2010 at 3:12 AM, Chris Colman chr...@stepaheadsoftware.com wrote: Is it possible to force a validate of a DropDownChoice when it's not in a form but just normal page/panel? If so what method(s) do we call? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Validating a DropDownChoice when not in a form
I've switched over to INullAcceptingValidator but it's still not triggering the validate method for some reason: I'm now also explicitly setting setRequired(false); New code: studentList = new DropDownChoice(studentList, new PropertyModel(orderManipulator.getDispatch(), student), students); studentList.setRequired(false); INullAcceptingValidatorDropDownChoice validator = new INullAcceptingValidatorDropDownChoice() { public void validate(IValidatableDropDownChoice validatable) { if ( validatable.getValue() == null ) { logger.trace(Drop down value null); studentSet = false; } else { logger.trace(Drop down value NOT null); studentSet = true; } } }; studentList.add(validator); add(studentList); attachUpdateBehavior(studentList); -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Wednesday, 15 September 2010 4:46 AM To: users@wicket.apache.org Subject: Re: Validating a DropDownChoice when not in a form validators do not usually handle null values, that is handled by component's set/getrequired() property. if you want your validator to handle nulls let it implement INullAcceptingValidator -igor On Tue, Sep 14, 2010 at 11:22 AM, Chris Colman chr...@stepaheadsoftware.com wrote: Here's the code I use to set up the DropDownChoice and its validator: Inside the panel contructor: studentList = new DropDownChoice(studentList, new PropertyModel(orderManipulator.getDispatch(), student), students); IValidatorDropDownChoice validator = new IValidatorDropDownChoice() { public void validate(IValidatableDropDownChoice validatable) { if ( validatable.getValue() == null ) { logger.trace(Drop down value null); studentSet = false; } else { logger.trace(Drop down value NOT null); studentSet = true; } } }; studentList.add(validator); add(studentList); attachUpdateBehavior(studentList); Later on when the user clicks a button the a panel validation method calls studentList.validate(); but I never see the trace messages appear. I am trying to detect whether the user has chosen an option in the Drop down rather than just left it as Choose one. Currently I have no choices available in the drop down the validator should always show the message Drop down value null - theoretically according to my understanding. -Original Message- From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: Wednesday, 15 September 2010 3:39 AM To: users@wicket.apache.org Subject: RE: Validating a DropDownChoice when not in a form validate() :) I've been trying that but for some reason it's not triggering the FormComponent's validator. I must have some broken logic in there somewhere. -igor On Tue, Sep 14, 2010 at 3:12 AM, Chris Colman chr...@stepaheadsoftware.com wrote: Is it possible to force a validate of a DropDownChoice when it's not in a form but just normal page/panel? If so what method(s) do we call? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Validating a DropDownChoice when not in a form
weird, set a breakpoint and see where it is failing. -igor On Tue, Sep 14, 2010 at 12:23 PM, Chris Colman chr...@stepaheadsoftware.com wrote: I've switched over to INullAcceptingValidator but it's still not triggering the validate method for some reason: I'm now also explicitly setting setRequired(false); New code: studentList = new DropDownChoice(studentList, new PropertyModel(orderManipulator.getDispatch(), student), students); studentList.setRequired(false); INullAcceptingValidatorDropDownChoice validator = new INullAcceptingValidatorDropDownChoice() { public void validate(IValidatableDropDownChoice validatable) { if ( validatable.getValue() == null ) { logger.trace(Drop down value null); studentSet = false; } else { logger.trace(Drop down value NOT null); studentSet = true; } } }; studentList.add(validator); add(studentList); attachUpdateBehavior(studentList); -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Wednesday, 15 September 2010 4:46 AM To: users@wicket.apache.org Subject: Re: Validating a DropDownChoice when not in a form validators do not usually handle null values, that is handled by component's set/getrequired() property. if you want your validator to handle nulls let it implement INullAcceptingValidator -igor On Tue, Sep 14, 2010 at 11:22 AM, Chris Colman chr...@stepaheadsoftware.com wrote: Here's the code I use to set up the DropDownChoice and its validator: Inside the panel contructor: studentList = new DropDownChoice(studentList, new PropertyModel(orderManipulator.getDispatch(), student), students); IValidatorDropDownChoice validator = new IValidatorDropDownChoice() { public void validate(IValidatableDropDownChoice validatable) { if ( validatable.getValue() == null ) { logger.trace(Drop down value null); studentSet = false; } else { logger.trace(Drop down value NOT null); studentSet = true; } } }; studentList.add(validator); add(studentList); attachUpdateBehavior(studentList); Later on when the user clicks a button the a panel validation method calls studentList.validate(); but I never see the trace messages appear. I am trying to detect whether the user has chosen an option in the Drop down rather than just left it as Choose one. Currently I have no choices available in the drop down the validator should always show the message Drop down value null - theoretically according to my understanding. -Original Message- From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: Wednesday, 15 September 2010 3:39 AM To: users@wicket.apache.org Subject: RE: Validating a DropDownChoice when not in a form validate() :) I've been trying that but for some reason it's not triggering the FormComponent's validator. I must have some broken logic in there somewhere. -igor On Tue, Sep 14, 2010 at 3:12 AM, Chris Colman chr...@stepaheadsoftware.com wrote: Is it possible to force a validate of a DropDownChoice when it's not in a form but just normal page/panel? If so what method(s) do we call? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional
Prevent guest session from expiring
Hello, A lot of times the users visit my web site without logging in. Currently, their session expire after a certain timeout. How can I prevent guest session from expiring? Also, where do I specify the page where the logged-in users get redirected when their sessions expire? Thanks
Re: Prevent guest session from expiring
On Tue, Sep 14, 2010 at 5:32 PM, Alec Swan alecs...@gmail.com wrote: Hello, A lot of times the users visit my web site without logging in. Currently, their session expire after a certain timeout. How can I prevent guest session from expiring? session timeout is configured by your container Also, where do I specify the page where the logged-in users get redirected when their sessions expire? getApplicationSettings().setPageExpiredErrorPage(pageExpiredErrorPage) will change where they go if they click a link on a page that has been expired -- Jeremy Thomerson http://www.wickettraining.com
Re: Prevent guest session from expiring
a noop ajax poller on your base page will prevent sessions of open windows from expiring. -igor On Tue, Sep 14, 2010 at 3:32 PM, Alec Swan alecs...@gmail.com wrote: Hello, A lot of times the users visit my web site without logging in. Currently, their session expire after a certain timeout. How can I prevent guest session from expiring? Also, where do I specify the page where the logged-in users get redirected when their sessions expire? Thanks - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Trouble with ProxyPass and Wicket
Greetings, I have a quick question about running Wicket behind mod_proxy_ajp (ProxyPass). I have read the wiki page about front-ending wicket with a Proxy and it mentions the use of a contextpath parameter to control the generation of links and such. It doesn't explicitly mention redirects though - think a protected page that is redirected to a sign in page. However, it seems that this parameter has no discernable effect. Is the contextpath parameter supported in 1.4.9? Ultimately I would like to be able to decouple the name of the .war file from the actual exposed URL so that I don't have to rebuild the app if we need to change the URL it is hosted under. Here is a short sequence of urls that I get when I try to load a protected page http://www.webapp.com/client/protectedpage 302 - http://www.webapp.com/web-app-client/signin Interestingly, if I point directly to the sign in page all is well which leads me to believe it is the redirect sent by Wicket that is exposing the webapp container name. Below are the relevant configuration files: .war file is called web-app-client.war and explodes as web-app-client http.conf ProxyPreserveHost on ProxyPass /client ajp://localhost:8009/web-app-client/ retry=0 ProxyPassReverse /client ajp://localhost:8009/web-app-client/ ProxyPassReverseCookiePath /web-app-client /client web.xml filter filter-namewicket.web-app-client/filter-name filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class init-param param-nameapplicationClassName/param-name param-valuecom.magpieti.habitchanger.web.client.WebClientApplication/param-value /init-param init-param param-namecontextpath/param-name param-value/client/param-value /init-param /filter Thanks, Adam
Re: Trouble with ProxyPass and Wicket
it is most likely the servlet container. wicket passes in a relative url to the servlet container's response#sendredirect, and it is the servlet container's job to rewrite that relative url to an absolute one - because all redirects must be absolute. sounds like your proxy is not rewriting those redirect urls. -igor On Tue, Sep 14, 2010 at 6:46 PM, Adam Bender a...@magpieti.com wrote: Greetings, I have a quick question about running Wicket behind mod_proxy_ajp (ProxyPass). I have read the wiki page about front-ending wicket with a Proxy and it mentions the use of a contextpath parameter to control the generation of links and such. It doesn't explicitly mention redirects though - think a protected page that is redirected to a sign in page. However, it seems that this parameter has no discernable effect. Is the contextpath parameter supported in 1.4.9? Ultimately I would like to be able to decouple the name of the .war file from the actual exposed URL so that I don't have to rebuild the app if we need to change the URL it is hosted under. Here is a short sequence of urls that I get when I try to load a protected page http://www.webapp.com/client/protectedpage 302 - http://www.webapp.com/web-app-client/signin Interestingly, if I point directly to the sign in page all is well which leads me to believe it is the redirect sent by Wicket that is exposing the webapp container name. Below are the relevant configuration files: .war file is called web-app-client.war and explodes as web-app-client http.conf ProxyPreserveHost on ProxyPass /client ajp://localhost:8009/web-app-client/ retry=0 ProxyPassReverse /client ajp://localhost:8009/web-app-client/ ProxyPassReverseCookiePath /web-app-client /client web.xml filter filter-namewicket.web-app-client/filter-name filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class init-param param-nameapplicationClassName/param-name param-valuecom.magpieti.habitchanger.web.client.WebClientApplication/param-value /init-param init-param param-namecontextpath/param-name param-value/client/param-value /init-param /filter Thanks, Adam - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Prevent guest session from expiring
Jeremy, getApplicationSettings().setPageExpiredErrorPage(pageExpiredErrorPage) is what I was looking for. I don't think I can use session timeout in web.xml because I want sessions of logged-in users to expire and guest sessions - not to expire. Thoughts? On Tue, Sep 14, 2010 at 5:06 PM, Jeremy Thomerson jer...@wickettraining.com wrote: On Tue, Sep 14, 2010 at 5:32 PM, Alec Swan alecs...@gmail.com wrote: Hello, A lot of times the users visit my web site without logging in. Currently, their session expire after a certain timeout. How can I prevent guest session from expiring? session timeout is configured by your container Also, where do I specify the page where the logged-in users get redirected when their sessions expire? getApplicationSettings().setPageExpiredErrorPage(pageExpiredErrorPage) will change where they go if they click a link on a page that has been expired -- Jeremy Thomerson http://www.wickettraining.com
Re: Prevent guest session from expiring
Isn't there a way to instruct Wicket not to create a session if the user is not logged in? On Tue, Sep 14, 2010 at 5:21 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: a noop ajax poller on your base page will prevent sessions of open windows from expiring. -igor On Tue, Sep 14, 2010 at 3:32 PM, Alec Swan alecs...@gmail.com wrote: Hello, A lot of times the users visit my web site without logging in. Currently, their session expire after a certain timeout. How can I prevent guest session from expiring? Also, where do I specify the page where the logged-in users get redirected when their sessions expire? Thanks - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Prevent guest session from expiring
On Tue, Sep 14, 2010 at 10:51 PM, Alec Swan alecs...@gmail.com wrote: Isn't there a way to instruct Wicket not to create a session if the user is not logged in? a session will always be created. it won't be bound (and therefore stored) if you have all stateless pages - which isn't an easy task -- Jeremy Thomerson http://www.wickettraining.com
Re: Trouble with ProxyPass and Wicket
Hi! Yeah, try something like this: RewriteEngine On RewriteCond %{SERVER_NAME} !^www\.mydomain\.com RewriteRule /(.*) http://www.mydomain.com/$1 [redirect=301L] * *Martin 2010/9/15 Igor Vaynberg igor.vaynb...@gmail.com: it is most likely the servlet container. wicket passes in a relative url to the servlet container's response#sendredirect, and it is the servlet container's job to rewrite that relative url to an absolute one - because all redirects must be absolute. sounds like your proxy is not rewriting those redirect urls. -igor On Tue, Sep 14, 2010 at 6:46 PM, Adam Bender a...@magpieti.com wrote: Greetings, I have a quick question about running Wicket behind mod_proxy_ajp (ProxyPass). I have read the wiki page about front-ending wicket with a Proxy and it mentions the use of a contextpath parameter to control the generation of links and such. It doesn't explicitly mention redirects though - think a protected page that is redirected to a sign in page. However, it seems that this parameter has no discernable effect. Is the contextpath parameter supported in 1.4.9? Ultimately I would like to be able to decouple the name of the .war file from the actual exposed URL so that I don't have to rebuild the app if we need to change the URL it is hosted under. Here is a short sequence of urls that I get when I try to load a protected page http://www.webapp.com/client/protectedpage 302 - http://www.webapp.com/web-app-client/signin Interestingly, if I point directly to the sign in page all is well which leads me to believe it is the redirect sent by Wicket that is exposing the webapp container name. Below are the relevant configuration files: .war file is called web-app-client.war and explodes as web-app-client http.conf ProxyPreserveHost on ProxyPass /client ajp://localhost:8009/web-app-client/ retry=0 ProxyPassReverse /client ajp://localhost:8009/web-app-client/ ProxyPassReverseCookiePath /web-app-client /client web.xml filter filter-namewicket.web-app-client/filter-name filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class init-param param-nameapplicationClassName/param-name param-valuecom.magpieti.habitchanger.web.client.WebClientApplication/param-value /init-param init-param param-namecontextpath/param-name param-value/client/param-value /init-param /filter Thanks, Adam - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Prevent guest session from expiring
You can set session timeout per-session: ((ServletWebRequest) request).getHttpServletRequest().getSession().setMaxInactiveInterval(seconds); ** Martin 2010/9/15 Jeremy Thomerson jer...@wickettraining.com: On Tue, Sep 14, 2010 at 10:51 PM, Alec Swan alecs...@gmail.com wrote: Isn't there a way to instruct Wicket not to create a session if the user is not logged in? a session will always be created. it won't be bound (and therefore stored) if you have all stateless pages - which isn't an easy task -- Jeremy Thomerson http://www.wickettraining.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Opening a modal form from another modal form causes are you sure?
From a panel on a page I open modal form A. If I close this form via its OK button it closes without issue. However if I open modal form A then click add item on that form it opens up yet another modal form (stacked form?) so the user can edit the item. They click on form B's OK buttom and everything is fine ... until the first form, Form A is closed again via its OK button. This time Form A closes with the message: Are you sure you want to navigate away from this page? Reloading this page will cause the modal window to disappear. Press OK to continue, or Cancel to stay on the current page. And then displays this error message/stack: WicketMessage: Submit Button ok (path=body:modalWindow:content:form:ok) is not visible Root cause: org.apache.wicket.WicketRuntimeException: Submit Button ok (path=body:modalWindow:content:form:ok) is not visible at org.apache.wicket.markup.html.form.Form$2.component(Form.java:622) at org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:899 ) at org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:914 ) at org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:914 ) at org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:914 ) at org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:914 ) at org.apache.wicket.markup.html.form.Form.findSubmittingButton(Form.java:6 04) at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:899) at org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmi tBehavior.java:135) at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java: 177) at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDef aultAjaxBehavior.java:300) at org.apache.wicket.request.target.component.listener.BehaviorRequestTarge t.processEvents(BehaviorRequestTarget.java:119) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(Ab stractRequestCycleProcessor.java:92) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java :1250) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1436) at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:484 ) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java: 317) at com.sas.av.ui.wicket.templates.original.PagebloomFilter.doFilter(Pageblo omFilter.java:95) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:206) at com.sas.framework.expojo.servlet.ExpojoServletFilter.doFilter(ExpojoServ letFilter.java:201) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:206) at com.sas.util.web.StaticResponseHeaderFilter.doFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :102) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568 ) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:2 86) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:84 5) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process( Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) All my modal windows use a single instance of ModalWindow that is instantiated in the base page and reused for all modal windows - hopefully that is ok. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Opening a modal form from another modal form causes are you sure?
On Tue, Sep 14, 2010 at 10:41 PM, Chris Colman chr...@stepaheadsoftware.com wrote: From a panel on a page I open modal form A. If I close this form via its OK button it closes without issue. However if I open modal form A then click add item on that form it opens up yet another modal form (stacked form?) so the user can edit the item. They click on form B's OK buttom and everything is fine ... until the first form, Form A is closed again via its OK button. This time Form A closes with the message: Are you sure you want to navigate away from this page? Reloading this page will cause the modal window to disappear. Press OK to continue, or Cancel to stay on the current page. And then displays this error message/stack: WicketMessage: Submit Button ok (path=body:modalWindow:content:form:ok) is not visible Root cause: org.apache.wicket.WicketRuntimeException: Submit Button ok (path=body:modalWindow:content:form:ok) is not visible at org.apache.wicket.markup.html.form.Form$2.component(Form.java:622) at org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:899 ) at org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:914 ) at org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:914 ) at org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:914 ) at org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:914 ) at org.apache.wicket.markup.html.form.Form.findSubmittingButton(Form.java:6 04) at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:899) at org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmi tBehavior.java:135) at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java: 177) at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDef aultAjaxBehavior.java:300) at org.apache.wicket.request.target.component.listener.BehaviorRequestTarge t.processEvents(BehaviorRequestTarget.java:119) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(Ab stractRequestCycleProcessor.java:92) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java :1250) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1436) at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:484 ) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java: 317) at com.sas.av.ui.wicket.templates.original.PagebloomFilter.doFilter(Pageblo omFilter.java:95) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:206) at com.sas.framework.expojo.servlet.ExpojoServletFilter.doFilter(ExpojoServ letFilter.java:201) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:206) at com.sas.util.web.StaticResponseHeaderFilter.doFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :102) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568 ) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:2 86) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:84 5) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process( Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) All my modal windows use a single instance of ModalWindow that is instantiated in the base page and reused for all modal windows - hopefully that is ok. no, thats the problem. when modal B shows it removes the panel that was inside modal A out of component hieararchy. so when you click submit on modal A after modal B has been opened that button is no longer in the component hierarchy and thus the error. -igor - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org