Re: [Wicket-user] Cound not render InternalErrorPage
wicket-contribute-dojo no longer work. wicket contrib dojo 0.31 does not work with wicket HEAD. However, you could check out contrib-dojo from CVS and this should work with wicket head. The only error should be in a class named FeedContainer.java, which is an expirimental Ajax RSS class of little importance. We will release a new version of contrib-dojo soon, which will work with wicket 1.2. Marco Oh my god. Latest HEAD breaks so many codes ! and wicket-contribute-dojo no longer work After doing hard refactoring and removing some stuff, I finally get my codes work. And yes, InternalErrorPage's problem is fixed. But I found another critical bug -- all of non-ASCII charactors on page becomes ??? Strangely, there is no such error for bookmarkable-page. It seems that somewhere does wrong encoding internally. note: My page's content type is UTF-8, and non-ASCII charactors are Chinese. On 1/8/06, *Juergen Donnerstag* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Would you please try it with the latest CVS HEAD. This is an area (url strategy) where we made quite some changes.Thanks Juergen On 1/8/06, Ingram Chen [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi all, I try a simple Page that always produces Exception: public class TestError extends WebPage { public TestError() { throw new NullPointerException(); } } Then I add a link to TestError: public class FooPage extends MyBaseWebPage { public FooPage() { add(new PageLink(testpage, TestError.class )); } } Ideally, click link testpage should redirect to InternalErrorPage, But I only got a HTTP Status 500. Wicket responses that it can't do redirect because it already redirected, and : wicket.WicketRuntimeException: Already redirecting to '/myContext/myApp?path=9bid=23453204'. Cannot redirect more than once at wicket.protocol.http.BufferedWebResponse.redirect (BufferedWebResponse.java:88) at wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:192) at wicket.request.target.PageRequestTarget.respond (PageRequestTarget.java :64) If I change to BookmarkablePageLink: add(new BookmarkablePageLink(testpage, TestError.class)); then InternalErrorPage rendered correctly. Do I miss something ? Thanks in advance. Note: my version of Wicket is CVS HEAD in mid December, not latest HEAD. -- Ingram Chen Java [EMAIL PROTECTED] Institue of BioMedical Sciences Academia Sinica Taiwan blog: http://www.javaworld.com.tw/roller/page/ingramchen --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865opclick http://ads.osdn.com/?ad_idv37alloc_id%16865opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram Chen Java [EMAIL PROTECTED] Institue of BioMedical Sciences Academia Sinica Taiwan blog: http://www.javaworld.com.tw/roller/page/ingramchen --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] onRender: proposal for signature change
can't we keep both?doRender(){ doRender(findMarkupStream());}and move everything of the current do render to that one with the param.johanOn 1/9/06, Martijn Dashorst [EMAIL PROTECTED] wrote: I'm +1. But I'm fully into Ajax development mode currently ;-)MartijnOn 1/8/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: Currently onRender does not take and not respond any parameter protected abstract void onRender(); I'd like to change it to protected abstract void onRender(MarkupStream markupStream); Reason: currently we do findMarkupStream at least twice. Once inside Component.renderComponent() and due to a recent improvement which allows to re-render previously invisible component within render() as well. Due to the latter the markup stream is known when we call onRender(). And, IMO more important, I did never really like that I have to call findMarkupStream inside onRender(). For me it is the important parameter for onRender and should be passed via a parameter. That is far more obvious than to call findMarkupStream. However the change breaks the publiv API and most likely some user developed components. The question is, shall we make that change? I think we should. We did change the API already for 1.2 and this change just adds to it. Juergen --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems?Stop!Download the new AJAX search engine that makes searching your log files as easy as surfing theweb.DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user--Living a wicket life...Martijn Dashorst - http://www.jroller.com/page/dashorstWicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1--- This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?Stop!Download the new AJAX search engine that makessearching your log files as easy as surfing theweb.DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865opclick___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] onRender: proposal for signature change
Yes, thats good and we make onRender (not doRender) deprecated. Thus every user will have time to change his code. Juergen On 1/9/06, Johan Compagner [EMAIL PROTECTED] wrote: can't we keep both? doRender() { doRender(findMarkupStream()); } and move everything of the current do render to that one with the param. johan On 1/9/06, Martijn Dashorst [EMAIL PROTECTED] wrote: I'm +1. But I'm fully into Ajax development mode currently ;-) Martijn On 1/8/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: Currently onRender does not take and not respond any parameter protected abstract void onRender(); I'd like to change it to protected abstract void onRender(MarkupStream markupStream); Reason: currently we do findMarkupStream at least twice. Once inside Component.renderComponent() and due to a recent improvement which allows to re-render previously invisible component within render() as well. Due to the latter the markup stream is known when we call onRender(). And, IMO more important, I did never really like that I have to call findMarkupStream inside onRender(). For me it is the important parameter for onRender and should be passed via a parameter. That is far more obvious than to call findMarkupStream. However the change breaks the publiv API and most likely some user developed components. The question is, shall we make that change? I think we should. We did change the API already for 1.2 and this change just adds to it. Juergen --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Cound not render InternalErrorPage
Thanks a lot ! I will try it again when it released.On 1/9/06, Marco van de Haar [EMAIL PROTECTED] wrote:wicket-contribute-dojo no longer work. wicket contrib dojo 0.31 does not work with wicket HEAD. However, youcould check out contrib-dojo from CVS and this should work with wickethead.The only error should be in a class named FeedContainer.java, which isan expirimental Ajax RSS class of little importance. We will release a new version of contrib-dojo soon, which will work with wicket 1.2.Marco Oh my god. Latest HEAD breaks so many codes ! and wicket-contribute-dojo no longer work After doing hard refactoring and removing some stuff, I finally get my codes work. And yes, InternalErrorPage's problem is fixed. But I found another critical bug -- all of non-ASCII charactors on page becomes ??? Strangely, there is no such error for bookmarkable-page. It seems that somewhere does wrong encoding internally. note: My page's content type is UTF-8, and non-ASCII charactors are Chinese. On 1/8/06, *Juergen Donnerstag* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Would you please try it with the latest CVS HEAD. This is an area (url strategy) where we made quite some changes.Thanks Juergen On 1/8/06, Ingram Chen [EMAIL PROTECTED] mailto: [EMAIL PROTECTED] wrote: Hi all, I try a simple Page that always produces Exception: public class TestError extends WebPage { public TestError() { throw new NullPointerException(); } } Then I add a link to TestError: public class FooPage extends MyBaseWebPage { public FooPage() { add(new PageLink(testpage, TestError.class )); } } Ideally, click link testpage should redirect to InternalErrorPage, But I only got a HTTP Status 500. Wicket responses that it can't do redirect because it already redirected, and : wicket.WicketRuntimeException: Already redirecting to '/myContext/myApp?path=9bid=23453204'. Cannot redirect more than once at wicket.protocol.http.BufferedWebResponse.redirect (BufferedWebResponse.java:88) at wicket.protocol.http.WebRequestCycle.redirectTo (WebRequestCycle.java:192) at wicket.request.target.PageRequestTarget.respond (PageRequestTarget.java :64) If I change to BookmarkablePageLink: add(new BookmarkablePageLink(testpage, TestError.class)); then InternalErrorPage rendered correctly. Do I miss something ? Thanks in advance. Note: my version of Wicket is CVS HEAD in mid December, not latest HEAD. -- Ingram Chen Java [EMAIL PROTECTED] Institue of BioMedical Sciences Academia Sinica Taiwan blog: http://www.javaworld.com.tw/roller/page/ingramchen --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems?Stop!Download the new AJAX search engine that makes searching your log files as easy as surfing theweb.DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865opclick http://ads.osdn.com/?ad_idv37alloc_id%16865opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto: Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram Chen Java [EMAIL PROTECTED] Institue of BioMedical Sciences Academia Sinica Taiwan blog: http://www.javaworld.com.tw/roller/page/ingramchen ---This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?Stop!Download the new AJAX search engine that makes searching your log files as easy as surfing theweb.DOWNLOAD SPLUNK!http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen
[Wicket-user] Wiki status
Hi, The wiki's temporarily down as the hosting server's undergoing an unplanned outage - See the status for lothos.34sp.com at http://status.34sp.com/ for updates. /Gwyn --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Upgrading when 1.2 is released
When Wicket 1.2 is released, how much work is likely to be required to upgrade a project written for Wicket 1.1? /Frank Silbermann --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Upgrading when 1.2 is released
Please see http://www.wicket-wiki.org.uk/wiki/index.php/Migrate-1.2 Juergen On 1/9/06, Frank Silbermann [EMAIL PROTECTED] wrote: When Wicket 1.2 is released, how much work is likely to be required to upgrade a project written for Wicket 1.1? /Frank Silbermann --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] 10000 download mark passed...
I missed it by 12... The counter stands on 10012 downloads from the core projects.Thank you all for downloading!Martijn-- Living a wicket life...Martijn Dashorst - http://www.jroller.com/page/dashorstWicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1
[Wicket-user] How is it possible for ImageMap to reference a BufferedDynamicImage?
According to Wicket's documentation, ImageMap's SRC property can only reference static resources. If this is the case, what would be an effective means of supporting BufferedDynamicImageResource in ImageMap? Any suggestions? _ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] I submited a new bug in wicket-1.2-20060108
wicket-1.2-20060108 Page renders when checkAccess returns false http://sourceforge.net/tracker/index.php?func=detailaid=1400643group_id=119783atid=684975 -- play tetris http://pepone.on-rez.com/tetris --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] nice-url problems wicket-1.2-20060108
wicket-1.2-20060108 Bookmarkable link with arguments is broken when i mount page for use niceurls this is url with out mount the page and works fine http://localhost:8080/oz-cms/app;jsessionid=4rpu70hfvjckf?bookmarkablePage=oz.web.html.cms.CmsViewPagenodePath=%2FsiteName=site-00panel=FileList Nice url with CmsViewPage mounted at /cmsview.html http://localhost:8080/oz-cms/app/cmsview.html/nodePath///siteName/site-00/panel/FileList Exception raised when click this link I think this can be a problem with the parameters that are corrupted in same way java.lang.NullPointerException at oz.web.html.cms.CmsView.init(Unknown Source) at oz.web.html.cms.CmsViewPage.init(Unknown Source) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:308) at java.lang.Class.newInstance(Class.java:261) at wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:55) at wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:88) at wicket.request.target.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:270) at wicket.request.target.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:284) at wicket.request.target.BookmarkablePageRequestTarget.checkAccess(BookmarkablePageRequestTarget.java:123) at wicket.RequestCycle.step(RequestCycle.java:970) at wicket.RequestCycle.steps(RequestCycle.java:1057) at wicket.RequestCycle.request(RequestCycle.java:534) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:199) at javax.servlet.http.HttpServlet.service(HttpServlet.java:596) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633) at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) at org.mortbay.http.HttpServer.service(HttpServer.java:909) at org.mortbay.http.HttpConnection.service(HttpConnection.java:816) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) -- play tetris http://pepone.on-rez.com/tetris --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] I submited a new bug in wicket-1.2-20060108
Thanks for running the latest release! We sure can use the help in testing the new modifications on Wicket. Keep the reports coming! I just only hope you won't be able to find too many of them :-) Martijn On 1/9/06, pepone pepone [EMAIL PROTECTED] wrote: wicket-1.2-20060108 Page renders when checkAccess returns false http://sourceforge.net/tracker/index.php?func=detailaid=1400643group_id=119783atid=684975 -- play tetris http://pepone.on-rez.com/tetris --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] dinamic markup
I want Store Wicket (1.2) Markup templates in my application database can you give any advice for do it? thanks in advantage -- play tetris http://pepone.on-rez.com/tetris --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Upgrading when 1.2 is released
I did it today (assuming the current SNAPSHOT being close to a final) and it took me 2 hours. Quite a lot of things changed, but nothing too difficult. I even found some new hooks that I was missing before ;). Finally I was able to get rid of my private patches to the previous release. Thanks to the Wicket guys - 1.2 is great. Sven Meier Frank Silbermann wrote: When Wicket 1.2 is released, how much work is likely to be required to upgrade a project written for Wicket 1.1? /Frank Silbermann --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Upgrading when 1.2 is released
We currently deem the snapshot releases alpha at best, maybe beta if that means anything... I always find it hard to distinguish between those two... Anyways, it is not production ready, as there is still much experimenting and testing to do in order to find out what works and what not... What we mean by that is that we will move 1.2 stuff around without considering (too much) previous releases. So any feature that was introduced in the 1.2 timeframe can be altered, moved around etc. We bring out those snapshots, to make it easier for others to test the Wicket framework. Even though some of the committers (most?) are actively using Wicket in their daily jobs, that is just scratching the surface of the whole usage of Wicket. So we need your experiences to be able to improve our product, especially with new features. We /really/ appreciate the time you take to use the snapshots and to upgrade to them, but please be aware that we reserve the right to change the new features between such releases. Work is under way to make an upgrade document for those that have 1.1 applications out there and wish to move to 1.2 when we release it. See the provided link earlier in this thread to see it. Martijn On 1/9/06, Sven Meier [EMAIL PROTECTED] wrote: I did it today (assuming the current SNAPSHOT being close to a final) and it took me 2 hours. Quite a lot of things changed, but nothing too difficult. I even found some new hooks that I was missing before ;). Finally I was able to get rid of my private patches to the previous release. Thanks to the Wicket guys - 1.2 is great. Sven Meier Frank Silbermann wrote: When Wicket 1.2 is released, how much work is likely to be required to upgrade a project written for Wicket 1.1? /Frank Silbermann --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Upgrading when 1.2 is released
Sven, could you look over the wiki article and maybe tell us if something was missing from what you had to do when moving from 1.1 to 1.2thanks,-IgorOn 1/9/06, Sven Meier [EMAIL PROTECTED] wrote:I did it today (assuming the current SNAPSHOT being close to a final) and it took me 2 hours.Quite a lot of things changed, but nothing too difficult.I even found some new hooks that I was missing before ;). Finally I wasable to get rid of my private patches to the previous release. Thanks to the Wicket guys - 1.2 is great.Sven MeierFrank Silbermann wrote:When Wicket 1.2 is released, how much work is likely to be required toupgrade a project written for Wicket 1.1?/Frank Silbermann---This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?Stop!Download the new AJAX search engine that makes searching your log files as easy as surfing theweb.DOWNLOAD SPLUNK!http://ads.osdn.com/?ad_idv37alloc_id865op=click ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user---This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems?Stop!Download the new AJAX search engine that makessearching your log files as easy as surfing theweb.DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem with the basics?
you are using user indirectly as the model for form components. that means when the components get serialized into session they will need to serialize their model (the user object) but you did not declare it as serializable. so try private class User implements Serializable.that should solve the problem.-IgorOn 1/9/06, Crash_neo [EMAIL PROTECTED] wrote:I'm having trouble with a very simple file. For the record this works on wicket 1.1I am now using wicket head.If you run the attached files on HEAD you get this Error:java.lang.RuntimeException: Internal error cloning objectwicket.Session.setAttribute (Session.java:838)wicket.Session.update(Session.java:892)wicket.protocol.http.WebSession.update(WebSession.java:282)wicket.RequestCycle.cleanUp(RequestCycle.java:797)wicket.RequestCycle.steps (RequestCycle.java:1067)wicket.RequestCycle.request(RequestCycle.java:534)wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:199)javax.servlet.http.HttpServlet.service(HttpServlet.java :689)javax.servlet.http.HttpServlet.service(HttpServlet.java:802)on a tomcat 5.5.9 webserverIf you remove the FORM it works fine.It breaks online 833: new ObjectOutputStream(out).writeObject(value); Is this an error occurred by the 1.1 - 1.2 migration, thus am I doing something wrong?Or is it really an error?Cheers Thijs UserId: Message goes here username: Message goes here UserId: UserName: import wicket.markup.html.WebPage;import wicket.markup.html.basic.Label;import wicket.markup.html.form.Form;import wicket.markup.html.form.TextField;import wicket.model.PropertyModel;public class Index2 extends WebPage{ public Index2(){ User user = new User(); add(new Label(userId, new PropertyModel(user, userId))); add(new Label(userName, new PropertyModel(user, userName))); add(new UserForm(userInputForm, user)); } private final class UserForm extends Form { public UserForm(String id, User user) { super(id); add(new TextField(userIdInput, new PropertyModel(user, userId))); add(new TextField(userNameInput, new PropertyModel(user, userName))); } protected void onSubmit(){} } private class User{ int userId = 200; String userName = Thijs; public User(){} public int getUserId() { return userId; } public void setUserId(int userId) { this.userId = userId; } public String getUserName() { return userName; } public void setUserName(String userName) { this.userName = userName; } }}
Re: [Wicket-user] Problem with the basics?
There has been some work on session management, so I guess this may be considered to be a bug. Could you please file a bug report? Thanks, Martijn On 1/9/06, Crash_neo [EMAIL PROTECTED] wrote: I'm having trouble with a very simple file. For the record this works on wicket 1.1 I am now using wicket head. If you run the attached files on HEAD you get this Error: java.lang.RuntimeException: Internal error cloning object wicket.Session.setAttribute(Session.java:838) wicket.Session.update(Session.java:892) wicket.protocol.http.WebSession.update(WebSession.java:282) wicket.RequestCycle.cleanUp(RequestCycle.java:797) wicket.RequestCycle.steps(RequestCycle.java:1067) wicket.RequestCycle.request(RequestCycle.java:534) wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:199) javax.servlet.http.HttpServlet.service(HttpServlet.java:689) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) on a tomcat 5.5.9 webserver If you remove the FORM it works fine. It breaks on line 833:new ObjectOutputStream(out).writeObject(value); Is this an error occurred by the 1.1 - 1.2 migration, thus am I doing something wrong? Or is it really an error? Cheers Thijs UserId: Message goes here username: Message goes here UserId: UserName: import wicket.markup.html.WebPage; import wicket.markup.html.basic.Label; import wicket.markup.html.form.Form; import wicket.markup.html.form.TextField; import wicket.model.PropertyModel; public class Index2 extends WebPage{ public Index2(){ User user = new User(); add(new Label(userId, new PropertyModel(user, userId))); add(new Label(userName, new PropertyModel(user, userName))); add(new UserForm(userInputForm, user)); } private final class UserForm extends Form { public UserForm(String id, User user) { super(id); add(new TextField(userIdInput, new PropertyModel(user, userId))); add(new TextField(userNameInput, new PropertyModel(user, userName))); } protected void onSubmit(){} } private class User{ int userId = 200; String userName = Thijs; public User(){} public int getUserId() { return userId; } public void setUserId(int userId) { this.userId = userId; } public String getUserName() { return userName; } public void setUserName(String userName) { this.userName = userName; } } } -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem with the basics?
OK, Igor spotted the thing that is not working... When it still doesn't work with the Serializable, could you /then/ file a bug report? Martijn On 1/9/06, Martijn Dashorst [EMAIL PROTECTED] wrote: There has been some work on session management, so I guess this may be considered to be a bug. Could you please file a bug report? Thanks, Martijn On 1/9/06, Crash_neo [EMAIL PROTECTED] wrote: I'm having trouble with a very simple file. For the record this works on wicket 1.1 I am now using wicket head. If you run the attached files on HEAD you get this Error: java.lang.RuntimeException: Internal error cloning object wicket.Session.setAttribute(Session.java:838) wicket.Session.update(Session.java:892) wicket.protocol.http.WebSession.update(WebSession.java:282) wicket.RequestCycle.cleanUp(RequestCycle.java:797) wicket.RequestCycle.steps(RequestCycle.java:1067) wicket.RequestCycle.request(RequestCycle.java:534) wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:199) javax.servlet.http.HttpServlet.service(HttpServlet.java:689) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) on a tomcat 5.5.9 webserver If you remove the FORM it works fine. It breaks on line 833:new ObjectOutputStream(out).writeObject(value); Is this an error occurred by the 1.1 - 1.2 migration, thus am I doing something wrong? Or is it really an error? Cheers Thijs UserId: Message goes here username: Message goes here UserId: UserName: import wicket.markup.html.WebPage; import wicket.markup.html.basic.Label; import wicket.markup.html.form.Form; import wicket.markup.html.form.TextField; import wicket.model.PropertyModel; public class Index2 extends WebPage{ public Index2(){ User user = new User(); add(new Label(userId, new PropertyModel(user, userId))); add(new Label(userName, new PropertyModel(user, userName))); add(new UserForm(userInputForm, user)); } private final class UserForm extends Form { public UserForm(String id, User user) { super(id); add(new TextField(userIdInput, new PropertyModel(user, userId))); add(new TextField(userNameInput, new PropertyModel(user, userName))); } protected void onSubmit(){} } private class User{ int userId = 200; String userName = Thijs; public User(){} public int getUserId() { return userId; } public void setUserId(int userId) { this.userId = userId; } public String getUserName() { return userName; } public void setUserName(String userName) { this.userName = userName; } } } -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem with the basics?
Argh.. stupid. Yes this did the trick Thnx Thijs Igor Vaynberg wrote: you are using user indirectly as the model for form components. that means when the components get serialized into session they will need to serialize their model (the user object) but you did not declare it as serializable. so try private class User implements Serializable. that should solve the problem. -Igor On 1/9/06, *Crash_neo* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I'm having trouble with a very simple file. For the record this works on wicket 1.1 I am now using wicket head. If you run the attached files on HEAD you get this Error: java.lang.RuntimeException: Internal error cloning object wicket.Session.setAttribute (Session.java:838) wicket.Session.update(Session.java:892) wicket.protocol.http.WebSession.update(WebSession.java:282) wicket.RequestCycle.cleanUp(RequestCycle.java:797) wicket.RequestCycle.steps (RequestCycle.java:1067) wicket.RequestCycle.request(RequestCycle.java:534) wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:199) javax.servlet.http.HttpServlet.service(HttpServlet.java :689) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) on a tomcat 5.5.9 webserver If you remove the FORM it works fine. It breaks on line 833:new ObjectOutputStream(out).writeObject(value); Is this an error occurred by the 1.1 - 1.2 migration, thus am I doing something wrong? Or is it really an error? Cheers Thijs UserId: Message goes here username: Message goes here UserId: UserName: import wicket.markup.html.WebPage; import wicket.markup.html.basic.Label; import wicket.markup.html.form.Form; import wicket.markup.html.form.TextField; import wicket.model.PropertyModel; public class Index2 extends WebPage{ public Index2(){ User user = new User(); add(new Label(userId, new PropertyModel(user, userId))); add(new Label(userName, new PropertyModel(user, userName))); add(new UserForm(userInputForm, user)); } private final class UserForm extends Form { public UserForm(String id, User user) { super(id); add(new TextField(userIdInput, new PropertyModel(user, userId))); add(new TextField(userNameInput, new PropertyModel(user, userName))); } protected void onSubmit(){} } private class User{ int userId = 200; String userName = Thijs; public User(){} public int getUserId() { return userId; } public void setUserId(int userId) { this.userId = userId; } public String getUserName() { return userName; } public void setUserName(String userName) { this.userName = userName; } } } --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] I submited a new bug in wicket-1.2-20060108
What do you expect it should do?Just an empty page? Or an internal error page? If you look at the signin examples you see that we set a response page:redirectToInterceptPage(newPage(SignIn2.class)); So if you don't set any response page but do return false.What should the framework do?johanOn 1/9/06, pepone pepone [EMAIL PROTECTED] wrote:wicket-1.2-20060108Page renders when checkAccess returns false http://sourceforge.net/tracker/index.php?func=detailaid=1400643group_id=119783atid=684975 --play tetris http://pepone.on-rez.com/tetris---This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems?Stop!Download the new AJAX search engine that makessearching your log files as easy as surfing theweb.DOWNLOAD SPLUNK!http://ads.osdn.com/?ad_idv37alloc_id865opclick ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] I submited a new bug in wicket-1.2-20060108
maybe redirect to a AuthDenied default page can be a better default On 1/9/06, pepone pepone [EMAIL PROTECTED] wrote: Render a blank page is what wicket-1.0 do On 1/9/06, Johan Compagner [EMAIL PROTECTED] wrote: What do you expect it should do? Just an empty page? Or an internal error page? If you look at the signin examples you see that we set a response page: redirectToInterceptPage(newPage(SignIn2.class)); So if you don't set any response page but do return false. What should the framework do? johan On 1/9/06, pepone pepone [EMAIL PROTECTED] wrote: wicket-1.2-20060108 Page renders when checkAccess returns false http://sourceforge.net/tracker/index.php?func=detailaid=1400643group_id=119783atid=684975 -- play tetris http://pepone.on-rez.com/tetris --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- play tetris http://pepone.on-rez.com/tetris -- play tetris http://pepone.on-rez.com/tetris --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] I submited a new bug in wicket-1.2-20060108
so why isnt this really void?-IgorOn 1/9/06, Johan Compagner [EMAIL PROTECTED] wrote: What do you expect it should do?Just an empty page? Or an internal error page? If you look at the signin examples you see that we set a response page: redirectToInterceptPage(newPage(SignIn2.class)); So if you don't set any response page but do return false.What should the framework do?johanOn 1/9/06, pepone pepone [EMAIL PROTECTED] wrote: wicket-1.2-20060108Page renders when checkAccess returns false http://sourceforge.net/tracker/index.php?func=detailaid=1400643group_id=119783atid=684975 --play tetris http://pepone.on-rez.com/tetris--- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems?Stop!Download the new AJAX search engine that makessearching your log files as easy as surfing theweb.DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865opclick ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] nice-url problems wicket-1.2-20060108
what do you exactly expect in youre constructor?Do you get wrong params?What is wrong exactly?On 1/9/06, pepone pepone [EMAIL PROTECTED] wrote:wicket-1.2-20060108Bookmarkable link with arguments is broken when i mount page for use niceurls this is url with out mount the page and works fine http://localhost:8080/oz-cms/app;jsessionid=4rpu70hfvjckf?bookmarkablePage=oz.web.html.cms.CmsViewPagenodePath=%2FsiteName=site-00panel=FileListNice url with CmsViewPage mounted at /cmsview.html http://localhost:8080/oz-cms/app/cmsview.html/nodePath///siteName/site-00/panel/FileListException raised when click this link I think this can be a problem with the parameters that are corrupted in same wayjava.lang.NullPointerExceptionat oz.web.html.cms.CmsView.init(Unknown Source)at oz.web.html.cms.CmsViewPage .init(Unknown Source)at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)at java.lang.reflect.Constructor.newInstance(Constructor.java:274)at java.lang.Class.newInstance0(Class.java :308)at java.lang.Class.newInstance(Class.java:261)at wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:55)at wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:88) at wicket.request.target.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:270)at wicket.request.target.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:284)at wicket.request.target.BookmarkablePageRequestTarget.checkAccess(BookmarkablePageRequestTarget.java:123)at wicket.RequestCycle.step(RequestCycle.java:970)at wicket.RequestCycle.steps(RequestCycle.java:1057) at wicket.RequestCycle.request(RequestCycle.java:534)at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:199)at javax.servlet.http.HttpServlet.service(HttpServlet.java:596)at javax.servlet.http.HttpServlet.service (HttpServlet.java:689)at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473)at org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:568)at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)at org.mortbay.http.HttpContext.handle (HttpContext.java:1482)at org.mortbay.http.HttpServer.service(HttpServer.java:909)at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java :982)at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java :357)at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)--play tetris http://pepone.on-rez.com/tetris--- This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?Stop!Download the new AJAX search engine that makessearching your log files as easy as surfing theweb.DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865opclick___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] I submited a new bug in wicket-1.2-20060108
void you mean just an empty page renderd?This was the case but with the refactorings checkAccess() is called but currently we don't do really anything with the returned boolean. That is a bit wrong..this is the code: case CHECK_ACCESS: { // manually set step to check access IRequestTarget target = getRequestTarget(); if (target instanceof IAccessCheck) { ((IAccessCheck)target).checkAccess(this); } // check access or earlier (like in a component constructor) // might // have called setRequestTarget. If that is the case, put // that one // on top; otherwise put our resolved target on top IRequestTarget otherTarget = getRequestTarget(); if (otherTarget != target) { // The new target has to be checked again set the // current step back one. currentStep = CHECK_ACCESS - 1; // swap targets requestTargets.pop(); requestTargets.push(target); requestTargets.push(otherTarget); } break;}and i think it should be something like this:case CHECK_ACCESS: { // manually set step to check access IRequestTarget target = getRequestTarget(); boolean access = true; if (target instanceof IAccessCheck) { access = ((IAccessCheck)target).checkAccess(this); } // check access or earlier (like in a component constructor) // might // have called setRequestTarget. If that is the case, put // that one // on top; otherwise put our resolved target on top IRequestTarget otherTarget = getRequestTarget(); if (otherTarget != target) { // The new target has to be checked again set the // current step back one. currentStep = CHECK_ACCESS - 1; // swap targets requestTargets.pop(); requestTargets.push(target); requestTargets.push(otherTarget); } else if(!access) { // We didn't have access but still the targets are the same... // We should redirect to something else... } break; }On 1/9/06, Igor Vaynberg [EMAIL PROTECTED] wrote: so why isnt this really void?-IgorOn 1/9/06, Johan Compagner [EMAIL PROTECTED] wrote: What do you expect it should do?Just an empty page? Or an internal error page? If you look at the signin examples you see that we set a response page: redirectToInterceptPage(newPage(SignIn2.class)); So if you don't set any response page but do return false.What should the framework do?johanOn 1/9/06, pepone pepone [EMAIL PROTECTED] wrote: wicket-1.2-20060108Page renders when checkAccess returns false http://sourceforge.net/tracker/index.php?func=detailaid=1400643group_id=119783atid=684975 --play tetris http://pepone.on-rez.com/tetris--- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems?Stop!Download the new AJAX search engine that makessearching your log files as easy as surfing theweb.DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865opclick ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] I submited a new bug in wicket-1.2-20060108
we could do this for the time being:else if( !access ){ setResponsePage(getApplication().getApplicationSettings().getInternalErrorPage());}Maybe we should have a special page for it?johan On 1/10/06, Johan Compagner [EMAIL PROTECTED] wrote: void you mean just an empty page renderd?This was the case but with the refactorings checkAccess() is called but currently we don't do really anything with the returned boolean. That is a bit wrong..this is the code: case CHECK_ACCESS: { // manually set step to check access IRequestTarget target = getRequestTarget(); if (target instanceof IAccessCheck) { ((IAccessCheck)target).checkAccess(this); } // check access or earlier (like in a component constructor) // might // have called setRequestTarget. If that is the case, put // that one // on top; otherwise put our resolved target on top IRequestTarget otherTarget = getRequestTarget(); if (otherTarget != target) { // The new target has to be checked again set the // current step back one. currentStep = CHECK_ACCESS - 1; // swap targets requestTargets.pop(); requestTargets.push(target); requestTargets.push(otherTarget); } break;}and i think it should be something like this:case CHECK_ACCESS: { // manually set step to check access IRequestTarget target = getRequestTarget(); boolean access = true; if (target instanceof IAccessCheck) { access = ((IAccessCheck)target).checkAccess(this); } // check access or earlier (like in a component constructor) // might // have called setRequestTarget. If that is the case, put // that one // on top; otherwise put our resolved target on top IRequestTarget otherTarget = getRequestTarget(); if (otherTarget != target) { // The new target has to be checked again set the // current step back one. currentStep = CHECK_ACCESS - 1; // swap targets requestTargets.pop(); requestTargets.push(target); requestTargets.push(otherTarget); } else if(!access) { // We didn't have access but still the targets are the same... // We should redirect to something else... } break; }On 1/9/06, Igor Vaynberg [EMAIL PROTECTED] wrote: so why isnt this really void?-IgorOn 1/9/06, Johan Compagner [EMAIL PROTECTED] wrote: What do you expect it should do?Just an empty page? Or an internal error page? If you look at the signin examples you see that we set a response page: redirectToInterceptPage(newPage(SignIn2.class)); So if you don't set any response page but do return false.What should the framework do?johanOn 1/9/06, pepone pepone [EMAIL PROTECTED] wrote: wicket-1.2-20060108Page renders when checkAccess returns false http://sourceforge.net/tracker/index.php?func=detailaid=1400643group_id=119783atid=684975 --play tetris http://pepone.on-rez.com/tetris--- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems?Stop!Download the new AJAX search engine that makessearching your log files as easy as surfing theweb.DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865opclick ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] I submited a new bug in wicket-1.2-20060108
yeah, maybe we should add a NotAuthorizedPage that a user can replace with their own in settings. that way if false is returned we just go there.if not then we should probably make checkAccess void (not return a value) -IgorOn 1/9/06, Johan Compagner [EMAIL PROTECTED] wrote: we could do this for the time being:else if( !access ){ setResponsePage(getApplication().getApplicationSettings().getInternalErrorPage());}Maybe we should have a special page for it? johan On 1/10/06, Johan Compagner [EMAIL PROTECTED] wrote: void you mean just an empty page renderd?This was the case but with the refactorings checkAccess() is called but currently we don't do really anything with the returned boolean. That is a bit wrong..this is the code: case CHECK_ACCESS: { // manually set step to check access IRequestTarget target = getRequestTarget(); if (target instanceof IAccessCheck) { ((IAccessCheck)target).checkAccess(this); } // check access or earlier (like in a component constructor) // might // have called setRequestTarget. If that is the case, put // that one // on top; otherwise put our resolved target on top IRequestTarget otherTarget = getRequestTarget(); if (otherTarget != target) { // The new target has to be checked again set the // current step back one. currentStep = CHECK_ACCESS - 1; // swap targets requestTargets.pop(); requestTargets.push(target); requestTargets.push(otherTarget); } break;}and i think it should be something like this:case CHECK_ACCESS: { // manually set step to check access IRequestTarget target = getRequestTarget(); boolean access = true; if (target instanceof IAccessCheck) { access = ((IAccessCheck)target).checkAccess(this); } // check access or earlier (like in a component constructor) // might // have called setRequestTarget. If that is the case, put // that one // on top; otherwise put our resolved target on top IRequestTarget otherTarget = getRequestTarget(); if (otherTarget != target) { // The new target has to be checked again set the // current step back one. currentStep = CHECK_ACCESS - 1; // swap targets requestTargets.pop(); requestTargets.push(target); requestTargets.push(otherTarget); } else if(!access) { // We didn't have access but still the targets are the same... // We should redirect to something else... } break; }On 1/9/06, Igor Vaynberg [EMAIL PROTECTED] wrote: so why isnt this really void?-IgorOn 1/9/06, Johan Compagner [EMAIL PROTECTED] wrote: What do you expect it should do?Just an empty page? Or an internal error page? If you look at the signin examples you see that we set a response page: redirectToInterceptPage(newPage(SignIn2.class)); So if you don't set any response page but do return false.What should the framework do?johanOn 1/9/06, pepone pepone [EMAIL PROTECTED] wrote: wicket-1.2-20060108Page renders when checkAccess returns false http://sourceforge.net/tracker/index.php?func=detailaid=1400643group_id=119783atid=684975 --play tetris http://pepone.on-rez.com/tetris--- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems?Stop!Download the new AJAX search engine that makessearching your log files as easy as surfing theweb.DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865opclick ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] nice-url problems wicket-1.2-20060108
I get the exception show in previous message page is not render if i unmount page it render fine i can try to debug my page constructor if you want to view what is exactly the problem when page use nice url On 1/10/06, Johan Compagner [EMAIL PROTECTED] wrote: what do you exactly expect in youre constructor? Do you get wrong params? What is wrong exactly? On 1/9/06, pepone pepone [EMAIL PROTECTED] wrote: wicket-1.2-20060108 Bookmarkable link with arguments is broken when i mount page for use niceurls this is url with out mount the page and works fine http://localhost:8080/oz-cms/app;jsessionid=4rpu70hfvjckf?bookmarkablePage=oz.web.html.cms.CmsViewPagenodePath=%2FsiteName=site-00panel=FileList Nice url with CmsViewPage mounted at /cmsview.html http://localhost:8080/oz-cms/app/cmsview.html/nodePath///siteName/site-00/panel/FileList Exception raised when click this link I think this can be a problem with the parameters that are corrupted in same way java.lang.NullPointerException at oz.web.html.cms.CmsView.init(Unknown Source) at oz.web.html.cms.CmsViewPage .init(Unknown Source) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java :308) at java.lang.Class.newInstance(Class.java:261) at wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:55) at wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:88) at wicket.request.target.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:270) at wicket.request.target.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:284) at wicket.request.target.BookmarkablePageRequestTarget.checkAccess(BookmarkablePageRequestTarget.java:123) at wicket.RequestCycle.step(RequestCycle.java:970) at wicket.RequestCycle.steps(RequestCycle.java:1057) at wicket.RequestCycle.request(RequestCycle.java:534) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:199) at javax.servlet.http.HttpServlet.service(HttpServlet.java:596) at javax.servlet.http.HttpServlet.service (HttpServlet.java:689) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473) at org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:568) at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633) at org.mortbay.http.HttpContext.handle (HttpContext.java:1482) at org.mortbay.http.HttpServer.service(HttpServer.java:909) at org.mortbay.http.HttpConnection.service(HttpConnection.java:816) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java :982) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java :357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) -- play tetris http://pepone.on-rez.com/tetris --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- play tetris http://pepone.on-rez.com/tetris --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] dinamic markup
I need my component can choose a diferent template at run time depending of a RequestParameter is posible to handle this in wicket-1.2? then On 1/9/06, Igor Vaynberg [EMAIL PROTECTED] wrote: you would need to implement IResourceStreamLocator that can pull the markup from the database and set it with getResourceSettings().setResourceStreamLocator(...) you might want to write your locator as a wrapper that can delegate to the default locator in case it cannot locate markup. that way all other lookups will work as usual. getResourceSettings().setResourceStreamLocator(new MyLocator(getResourceSettings().getResourceStreamLocator()); -Igor On 1/9/06, pepone pepone [EMAIL PROTECTED] wrote: I want Store Wicket (1.2) Markup templates in my application database can you give any advice for do it? thanks in advantage -- play tetris http://pepone.on-rez.com/tetris --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- play tetris http://pepone.on-rez.com/tetris --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] nice-url problems wicket-1.2-20060108
I change my page to view what is exactly the problems and observe that when i use nice url parameters are not accesible or are empty when try to access it in my page constructor On 1/10/06, pepone pepone [EMAIL PROTECTED] wrote: I get the exception show in previous message page is not render if i unmount page it render fine i can try to debug my page constructor if you want to view what is exactly the problem when page use nice url On 1/10/06, Johan Compagner [EMAIL PROTECTED] wrote: what do you exactly expect in youre constructor? Do you get wrong params? What is wrong exactly? On 1/9/06, pepone pepone [EMAIL PROTECTED] wrote: wicket-1.2-20060108 Bookmarkable link with arguments is broken when i mount page for use niceurls this is url with out mount the page and works fine http://localhost:8080/oz-cms/app;jsessionid=4rpu70hfvjckf?bookmarkablePage=oz.web.html.cms.CmsViewPagenodePath=%2FsiteName=site-00panel=FileList Nice url with CmsViewPage mounted at /cmsview.html http://localhost:8080/oz-cms/app/cmsview.html/nodePath///siteName/site-00/panel/FileList Exception raised when click this link I think this can be a problem with the parameters that are corrupted in same way java.lang.NullPointerException at oz.web.html.cms.CmsView.init(Unknown Source) at oz.web.html.cms.CmsViewPage .init(Unknown Source) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java :308) at java.lang.Class.newInstance(Class.java:261) at wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:55) at wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:88) at wicket.request.target.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:270) at wicket.request.target.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:284) at wicket.request.target.BookmarkablePageRequestTarget.checkAccess(BookmarkablePageRequestTarget.java:123) at wicket.RequestCycle.step(RequestCycle.java:970) at wicket.RequestCycle.steps(RequestCycle.java:1057) at wicket.RequestCycle.request(RequestCycle.java:534) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:199) at javax.servlet.http.HttpServlet.service(HttpServlet.java:596) at javax.servlet.http.HttpServlet.service (HttpServlet.java:689) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473) at org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:568) at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633) at org.mortbay.http.HttpContext.handle (HttpContext.java:1482) at org.mortbay.http.HttpServer.service(HttpServer.java:909) at org.mortbay.http.HttpConnection.service(HttpConnection.java:816) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java :982) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java :357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) -- play tetris http://pepone.on-rez.com/tetris --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- play tetris http://pepone.on-rez.com/tetris -- play tetris http://pepone.on-rez.com/tetris --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net
Re: [Wicket-user] I submited a new bug in wicket-1.2-20060108
May that is how we should change it. Instead of return a boolean a Page. If null than go on, else goto the page provided. Juergen On 1/9/06, Johan Compagner [EMAIL PROTECTED] wrote: What do you expect it should do? Just an empty page? Or an internal error page? If you look at the signin examples you see that we set a response page: redirectToInterceptPage(newPage(SignIn2.class)); So if you don't set any response page but do return false. What should the framework do? johan On 1/9/06, pepone pepone [EMAIL PROTECTED] wrote: wicket-1.2-20060108 Page renders when checkAccess returns false http://sourceforge.net/tracker/index.php?func=detailaid=1400643group_id=119783atid=684975 -- play tetris http://pepone.on-rez.com/tetris --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] I submited a new bug in wicket-1.2-20060108
Render a blank page is what wicket-1.0 do On 1/9/06, Johan Compagner [EMAIL PROTECTED] wrote: What do you expect it should do? Just an empty page? Or an internal error page? If you look at the signin examples you see that we set a response page: redirectToInterceptPage(newPage(SignIn2.class)); So if you don't set any response page but do return false. What should the framework do? johan On 1/9/06, pepone pepone [EMAIL PROTECTED] wrote: wicket-1.2-20060108 Page renders when checkAccess returns false http://sourceforge.net/tracker/index.php?func=detailaid=1400643group_id=119783atid=684975 -- play tetris http://pepone.on-rez.com/tetris --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- play tetris http://pepone.on-rez.com/tetris --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] dinamic markup
i dont know how well this is supported, you can probably hack it.afaik this is how it works now:the component asks the markup cache for the markup, the markup cache looks for the IResourceStream, if its not found an IResourceStreamLocator is used. If it is found the cache first calls IResourceStream.getlatsmodified() and only reloads the markup if that is later then the time the stream was loaded.so i guess to achieve what you want you can create an IResourceStreamLocator that returns an IResourceStream that can load the markup from the database. the getlastmodified() will have to return new Date() or something similar to trick the cache into always reloading the stream. this is all speculation and i dont really know if it will work. and even if it does i dont know how performant this would be since the stream would have be parsed every time its loaded.maybe someone else can answer better. -IgorOn 1/9/06, pepone pepone [EMAIL PROTECTED] wrote: I need my component can choose a diferent template at run timedepending of a RequestParameteris posible to handle this in wicket-1.2?thenOn 1/9/06, Igor Vaynberg [EMAIL PROTECTED] wrote: you would need to implement IResourceStreamLocator that can pull the markup from the database and set it with getResourceSettings().setResourceStreamLocator(...) you might want to write your locator as a wrapper that can delegate to the default locator in case it cannot locate markup. that way all other lookups will work as usual. getResourceSettings().setResourceStreamLocator(new MyLocator(getResourceSettings().getResourceStreamLocator()); -Igor On 1/9/06, pepone pepone [EMAIL PROTECTED] wrote: I wantStore Wicket (1.2)Markup templates in my application database can you give any advice for do it? thanks in advantage -- play tetris http://pepone.on-rez.com/tetris--- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems?Stop!Download the new AJAX search engine that makes searching your log files as easy as surfing theweb.DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --play tetris http://pepone.on-rez.com/tetris---This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?Stop!Download the new AJAX search engine that makessearching your log files as easy as surfing theweb.DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865opclick___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] I submited a new bug in wicket-1.2-20060108
im not a big fan of the null = continue idea since its very implicit.-IgorOn 1/9/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:May that is how we should change it. Instead of return a boolean a Page. If null than go on, else goto the page provided.JuergenOn 1/9/06, Johan Compagner [EMAIL PROTECTED] wrote: What do you expect it should do? Just an empty page? Or an internal error page? If you look at the signin examples you see that we set a response page: redirectToInterceptPage(newPage(SignIn2.class));So if you don't set any response page but do return false. What should the framework do? johan On 1/9/06, pepone pepone [EMAIL PROTECTED] wrote: wicket-1.2-20060108 Page renders when checkAccess returns false http://sourceforge.net/tracker/index.php?func=detailaid=1400643group_id=119783atid=684975 -- play tetris http://pepone.on-rez.com/tetris--- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems?Stop!Download the new AJAX search engine that makes searching your log files as easy as surfing theweb.DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user ---This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?Stop!Download the new AJAX search engine that makes searching your log files as easy as surfing theweb.DOWNLOAD SPLUNK!http://ads.osdn.com/?ad_idv37alloc_id865opclick___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] dinamic markup
can this work? create my own markup container and override protected MarkupStream getMarkupStream() { //Restore markupStream from DB return markupStream; } On 1/10/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i dont know how well this is supported, you can probably hack it. afaik this is how it works now: the component asks the markup cache for the markup, the markup cache looks for the IResourceStream, if its not found an IResourceStreamLocator is used. If it is found the cache first calls IResourceStream.getlatsmodified() and only reloads the markup if that is later then the time the stream was loaded. so i guess to achieve what you want you can create an IResourceStreamLocator that returns an IResourceStream that can load the markup from the database. the getlastmodified() will have to return new Date() or something similar to trick the cache into always reloading the stream. this is all speculation and i dont really know if it will work. and even if it does i dont know how performant this would be since the stream would have be parsed every time its loaded. maybe someone else can answer better. -Igor On 1/9/06, pepone pepone [EMAIL PROTECTED] wrote: I need my component can choose a diferent template at run time depending of a RequestParameter is posible to handle this in wicket-1.2? then On 1/9/06, Igor Vaynberg [EMAIL PROTECTED] wrote: you would need to implement IResourceStreamLocator that can pull the markup from the database and set it with getResourceSettings().setResourceStreamLocator(...) you might want to write your locator as a wrapper that can delegate to the default locator in case it cannot locate markup. that way all other lookups will work as usual. getResourceSettings().setResourceStreamLocator(new MyLocator(getResourceSettings().getResourceStreamLocator()); -Igor On 1/9/06, pepone pepone [EMAIL PROTECTED] wrote: I want Store Wicket (1.2) Markup templates in my application database can you give any advice for do it? thanks in advantage -- play tetris http://pepone.on-rez.com/tetris --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- play tetris http://pepone.on-rez.com/tetris --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- play tetris http://pepone.on-rez.com/tetris --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Add panel in wicket:head of another panel fails
Hi, I'm using the XsltTransformerBehavior created by Juergen last week to transform xml to javascript in panelA. If I add panelA to panelB in panelB's wicket:head, I get an exception The markup stream of the component should be known by now, but isn't: for the first component nested inside panelA. This does not happen if I add panelA inside the wicket:panel tags of panelB (I am not adding panelA inside of script tags). The javadoc for HtmlHeaderContainer first says wicket:head regions may contain wicket components, which must be added with addToHeader(). addToHeader doesn't seem to exist anymore, and further down in the javadoc, it says you can simply use add() to add such components. Are we restricted to adding to wicket:head only components which do not hold nested components? Obviously, adding a WebMarkupContainer with an AttributeModifier to a wicket:head works great, but add a label to that WebMarkupContainer and you will get the above exception. If there is such a restriction in place, is there anyway it can be removed? thanks, jim --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user