Re: [Wicket-user] crtypted url cannot work for current 2.0 snap shot
hi, i think it should work since I had patched it as the same way in yesterday. i also mentioned it in another email. ps, I checked the Page object , and find the NPE bug about version manager is still there. Message: 4 Date: Fri, 13 Apr 2007 18:09:08 -0700 From: Eelco Hillenius [EMAIL PROTECTED] Subject: Re: [Wicket-user] crtypted url cannot work for current 2.0 snap shot To: [EMAIL PROTECTED] Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1; format=flowed Sorry about Tooy Li, I agree you did give us quite a few hints. We're just very busy, and it's hard to find time to get all the things done we need. Anyway, I applied a slightly modified version of the patch you proposed. Can you check it out please and acknowledge it works? It really helps to get concrete fix suggestions, preferably patches. :) Eelco On 4/13/07, tooy li(Gmail) [EMAIL PROTECTED] wrote: hi, I think i have paste the enough message! actually, i pasted the message again and again. 1. version -- current snap shot for 2.0 2. exception please check [http://www.mail-archive.com/[EMAIL PROTECTED]/msg25968.html] 180953 [btpool0-4] ERROR wicket.RequestCycle - [Ljava.lang.String; java.lang.ClassCastException: [Ljava.lang.String; 3. sence: open a ajax modal . use a customed error page. I also know it's VOLUNTEER WITH $0 project, but i have to take some pressure from the end client. since most of people in this planet use struts or ww, you have to do better to erase these noise to testify your choise is right. recently, i have to an some question such as, why we havn't 2.0 release version now ? why the crypted url cannot work for a month time ? if i don't resovle these problem asap, they will doubt the wicket framework can work well again. I have make a lot's of question in these mail list , most of them can get usefull reply, so , i 'm very very appreciate it. sorry, I don't want to make any annoy, but i expected the bug fix too long. and thx for your work. Message: 4 Date: Fri, 13 Apr 2007 18:01:38 +0200 From: Martijn Dashorst [EMAIL PROTECTED] Subject: Re: [Wicket-user] crtypted url cannot work for current 2.0 snap shot. To: [EMAIL PROTECTED] Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1; format=flowed If you don't provide a better message, then how can we solve your problem? What is the exception? Do you use head of trunk, or some other version? If you want us to help you, help us do that by providing the correct information. We have stated that we would fix bugs in 2.0, for as long we don't have backported all features. But only on a case by case basis, and this is not an offer without a time limit: you are expected to migrate to our new, constructor change-less version. Remember: this is a volunteer effort, and we work our collective asses of to make Wicket the best framework $0 can buy. But we can only do what time permits us to do. Any time devoted to trunk makes 1.3 delayed. Martijn On 4/13/07, tooy li(Gmail) [EMAIL PROTECTED] wrote: and the customed error page also cannot work well. when i open a modal window by ajax link, it will generate some error. I has complained it for a long time, but nobody care it. :( . 2.0 is really dead now. at wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy$DecodedUrlRequest.getParameter(CryptedUrlWebRequestCodingStrategy.java:458) at wicket.protocol.http.request.AbstractWebRequestCodingStrategy.decode(AbstractWebRequestCodingStrategy.java:102) at wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy.decode(CryptedUrlWebRequestCodingStrategy.java:107) - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/wicket-user -- Learn Wicket at ApacheCon Europe: http://apachecon.com Join the wicket community at irc.freenode.net: ##wicket Wicket 1.2.5 will keep your server alive. Download Wicket now! http://wicketframework.org -- Message: 5 Date: Fri, 13 Apr 2007 09:14:13 -0700 From: Alexei Sokolov [EMAIL PROTECTED] Subject: Re: [Wicket-user] ajax / javascript widgets in wicket To: [EMAIL PROTECTED] Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=iso-8859-1 That solution will replace ul element and all of its children, which is not what I want. I need something like one-time-use javascript behavior, which can be attached to a component
[Wicket-user] crtypted url cannot work for current 2.0 snap shot.
and the customed error page also cannot work well. when i open a modal window by ajax link, it will generate some error. I has complained it for a long time, but nobody care it. :( . 2.0 is really dead now. at wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy$DecodedUrlRequest.getParameter(CryptedUrlWebRequestCodingStrategy.java:458) at wicket.protocol.http.request.AbstractWebRequestCodingStrategy.decode(AbstractWebRequestCodingStrategy.java:102) at wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy.decode(CryptedUrlWebRequestCodingStrategy.java:107) - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] TopToolbar in datatable dispeared when ajax modal window closed
hi i used a defaultdatatable to show the data list , and add some ajax link in it to open some modal window to show detail. the toptoolbar will dispeared when these modal window closed, it's only happen in firefox, work well in IE 6. so ,is there any one can help me ? the below is my code. ps. the crypted url and customed error page cannot work in the current 2.0 snapshot when i used modal window. it' seem that the current 2.0 is very not stable for some ajax behavior. no body care it again? table.addTopToolbar(new IToolbarFactory() { public AbstractToolbar newToolbar(WebMarkupContainer parent, String id, DataTable dataTable) { FilterToolbar tt = new FilterToolbar(parent, id, instance, dataProvider); tt.setOutputMarkupId(true); return tt; } }); table.setOutputMarkupId(true); setWindowClosedCallback(new ModalWindow.WindowClosedCallback() { public void onClose(AjaxRequestTarget target) { target.addComponent(table); } }); - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] ajax modal window don't work at the CryptedUrl in the current snapshot
Y, it's only happen when i use a ajax link to open a modal window. how is this related to modal window ?! On 4/3/07, tooy li(Gmail) [EMAIL PROTECTED] wrote: hi, when i try the crypted url in the current snap shot , get the below error. 180953 [btpool0-4] ERROR wicket.RequestCycle - [Ljava.lang.String; java.lang.ClassCastException: [Ljava.lang.String; at wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy$DecodedUrlRequest.getParameter(CryptedUrlWebRequestCodingStrategy.java:458) at wicket.protocol.http.request.AbstractWebRequestCodingStrategy.decode(AbstractWebRequestCodingStrategy.java:102) at wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy.decode(CryptedUrlWebRequestCodingStrategy.java:107) at wicket.Request.getRequestParameters(Request.java:144) at wicket.RequestCycle.step(RequestCycle.java:1003) at wicket.RequestCycle.steps(RequestCycle.java:1096) at wicket.RequestCycle.request(RequestCycle.java:470) at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:244) at wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:122) I set the crypted url in application like this // protected IRequestCycleProcessor newRequestCycleProcessor() { // return new WebRequestCycleProcessor() { // protected IRequestCodingStrategy newRequestCodingStrategy() { //return new CryptedUrlWebRequestCodingStrategy( // new WebRequestCodingStrategy()); // } // }; // } is it i don't set eh crypted url right? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] ajax refresh don't wok in the current snapshot for 2.0
hi, I think i don't need ajax refresh it now, thx. can you post the stacktrace? On 4/3/07, tooy li(Gmail) [EMAIL PROTECTED] wrote: hi, I find it cannot work for a repeat viewer and it work well in the previouse version the below is my code WebMarkupContainer listContainer = new WebMarkupContainer(form, listContainer); RepeatingView listView = new RepeatingView(listContainer, dataList); then open a jax modal window to modify the data , and get the below error in the ajax debug windows. INFO: Response parsed. Now invoking steps... INFO: Response processed successfully. INFO: Invoking post-call handler(s)... INFO: INFO: Initiating Ajax GET request on /?wicket:interface=:5:modal_add::IBehaviorListenerwicket:behaviorId=1random=0.2533879178267413 INFO: Invoking pre-call handler(s)... ERROR: Received Ajax response with code: 500 INFO: Invoking post-call handler(s)... INFO: Invoking failure handler(s)... - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] ajax modal window don't work at the CryptedUrl in the current snapshot
hi, when i try the crypted url in the current snap shot , get the below error. 180953 [btpool0-4] ERROR wicket.RequestCycle - [Ljava.lang.String; java.lang.ClassCastException: [Ljava.lang.String; at wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy$DecodedUrlRequest.getParameter(CryptedUrlWebRequestCodingStrategy.java:458) at wicket.protocol.http.request.AbstractWebRequestCodingStrategy.decode(AbstractWebRequestCodingStrategy.java:102) at wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy.decode(CryptedUrlWebRequestCodingStrategy.java:107) at wicket.Request.getRequestParameters(Request.java:144) at wicket.RequestCycle.step(RequestCycle.java:1003) at wicket.RequestCycle.steps(RequestCycle.java:1096) at wicket.RequestCycle.request(RequestCycle.java:470) at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:244) at wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:122) I set the crypted url in application like this // protected IRequestCycleProcessor newRequestCycleProcessor() { // return new WebRequestCycleProcessor() { // protected IRequestCodingStrategy newRequestCodingStrategy() { //return new CryptedUrlWebRequestCodingStrategy( // new WebRequestCodingStrategy()); // } // }; // } is it i don't set eh crypted url right? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] ajax refresh don't wok in the current snapshot for 2.0
hi, I find it cannot work for a repeat viewer and it work well in the previouse version the below is my code WebMarkupContainer listContainer = new WebMarkupContainer(form, listContainer); RepeatingView listView = new RepeatingView(listContainer, dataList); then open a jax modal window to modify the data , and get the below error in the ajax debug windows. INFO: Response parsed. Now invoking steps... INFO: Response processed successfully. INFO: Invoking post-call handler(s)... INFO: INFO: Initiating Ajax GET request on /?wicket:interface=:5:modal_add::IBehaviorListenerwicket:behaviorId=1random=0.2533879178267413 INFO: Invoking pre-call handler(s)... ERROR: Received Ajax response with code: 500 INFO: Invoking post-call handler(s)... INFO: Invoking failure handler(s)... - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Multiple Modal Windows (sunraider)
no,it's still here today, :P i believe martijn already fixed this a few days ago -igor On 4/2/07, Stefan Lindner [EMAIL PROTECTED] wrote: I think this is a general IE problem. The ModalWindow maintainers have taken care of this only for one level (modal window opended on a normal window). In this case all dropdowns are hidden befere the model window opens and re-displayed afterwards. This was an error message 2 or 3 weeks before but the wickt gurus only stated crazy what people are doing with wicket :-) If work around this problem by hiding the dropdowns and re-displying them by myself. I use some code like private ListBoolean visibilityBeforeHide; private ListComponenthideThemBefore; if (visibilityBeforeHide == null) visibilityBeforeHide = new ArrayListBoolean(); else visibilityBeforeHide.clear(); for (Component c : hideThemBefore) { visibilityBeforeHide.add(c.isVisible()); c.setVisible(false); target.addComponent(c); } modalWindow.setWindowClosedCallback(new ModalWindow.WindowClosedCallback() { private static final long serialVersionUID = 1L; public void onClose(AjaxRequestTarget target) { int i = 0; for (Component c : hideThemBefore) { c.setVisible(visibilityBeforeHide.get(i).booleanValue()); target.addComponent(c); i++; } // You must add the parent panel (the panel that opende the popup window) to the target // The components will not be re-displayed otherwise. target.addComponent(parent panel); } modalWindow.show(target); I am having a strange problem in IE 6.0 with modal windows. The use case follows: I have one modal window with drop downs and I have another modal window called from first modal window, when the second modal window opens I can see the drop downs from the first modal window in the second. I have tried setting the cookie name, but no change. The same works on IE 7.0 and Mozilla 2.0. I am unable to figure out the issue. Has someone encountered the same issue, please help me. Thanks, Sajeev - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Get versionManager null error after upgrading the wicket to the current snapshot.
I complained the ajax modal window cannot show every time when i click the ajax link ,after the updgading ,it can work well. but i get a new problem, I used a modal winwo to input something, when i open the modal window first, it's ok, but when i open it again , it will generate the bellow error. i searched the form ,and find someone also happen the same error. final DefaultDataTable table = new DefaultDataTable(listContainer, dataList, columns, dataProvider, 15); table.setOutputMarkupId(true); final ModalWindow modal1 = new ModalWindow(this, modal_add); modal1.setPageMapName(modal_add-1); modal1.setPageCreator(new ModalWindow.PageCreator() { public Page createPage() { return new EditFilterWordPage(getPage(), ); } }); modal1.setWindowClosedCallback(new ModalWindow.WindowClosedCallback() { public void onClose(final AjaxRequestTarget target) { target.addComponent(table); } }); modal1.setCloseButtonCallback(new ModalWindow.CloseButtonCallback() { public boolean onCloseButtonClicked(final AjaxRequestTarget target) { target.addComponent(table); return true; } }); new AjaxLink(this, createRecord) { public void onClick(AjaxRequestTarget target) { modal1.show(target); } }; the second open generate the below errror wicket.WicketRuntimeException: Error attaching this container for rendering: [MarkupContainer [Component id = dataList, page = com.sharera.adms.system.web.ListKeywordFilterPage, path = 3:listContainer:dataList.BaseDefaultDataTable, isVisible = true, isVersioned = true]] at wicket.MarkupContainer.attachChildren(MarkupContainer.java:389) at wicket.Component.attach(Component.java:2801) at wicket.ajax.AjaxRequestTarget.respondComponents(AjaxRequestTarget.java:428) at wicket.ajax.AjaxRequestTarget.respond(AjaxRequestTarget.java:330) at wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:114) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:958) at wicket.RequestCycle.step(RequestCycle.java:1025) at wicket.RequestCycle.steps(RequestCycle.java:1096) at wicket.RequestCycle.request(RequestCycle.java:470) at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:244) at wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:122) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1045) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:358) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:231) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:629) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:453) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141) at org.mortbay.jetty.Server.handle(Server.java:303) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:452) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:721) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:509) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:349) at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:217) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475) Caused by: java.lang.NullPointerException at wicket.Page.componentStateChanging(Page.java:327) at wicket.Component.addStateChange(Component.java:2573) at wicket.MarkupContainer.removeAll(MarkupContainer.java:523) at wicket.markup.repeater.RefreshingView.populate(RefreshingView.java:122) at wicket.markup.repeater.RefreshingView.onAttach(RefreshingView.java:93) at wicket.Component.attach(Component.java:2790) at wicket.MarkupContainer.attachChildren(MarkupContainer.java:378) ... 24 more - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] ajax modal window dont' show some time
hi, I find it' s don't pop the ajax modal window when user click the ajaxlink object, some time user have to make twice double click can show it. user has complained it, so what can i do for it? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] how to unselect a dropdownlist ?
when a dropdown list is first show, it has a please select option to prompt user to select one, when user select and save the record, and edit it again, the drop down list will only show the data, so user cannot unselect some one. so I have to add a into the list. Can i get a better solution? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] the modal window cannot work in ie fro wicket 2.0 snapshot
line:1011; Wicket.ajax.call is null or not a object. Message: 2 Date: Sat, 24 Mar 2007 18:47:45 -0700 From: Igor Vaynberg [EMAIL PROTECTED] Subject: Re: [Wicket-user] the modal window cannot work in ie fro wicket 2.0 snapshot To: wicket-user@lists.sourceforge.net Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=iso-8859-1 whats the error? -igor On 3/24/07, lihanrong [EMAIL PROTECTED] wrote: I had mentioned it a week before, but it is still not fixed now. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- next part -- An HTML attachment was scrubbed... -- Message: 3 Date: Sat, 24 Mar 2007 18:48:02 -0700 From: Igor Vaynberg [EMAIL PROTECTED] Subject: Re: [Wicket-user] the modal window cannot work in ie fro wicket 2.0 snapshot To: wicket-user@lists.sourceforge.net Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=iso-8859-1 and have you opened a jira issue? -igor On 3/24/07, Igor Vaynberg [EMAIL PROTECTED] wrote: whats the error? -igor On 3/24/07, lihanrong [EMAIL PROTECTED] wrote: I had mentioned it a week before, but it is still not fixed now. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net 's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- next part -- An HTML attachment was scrubbed... -- Message: 4 Date: Sun, 25 Mar 2007 09:15:13 + (UTC) From: Kent Tong [EMAIL PROTECTED] Subject: [Wicket-user] locale filtering To: wicket-user@lists.sourceforge.net Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii Hi, If a given web app only supports say English (default) and French but the browser prefers German the most, then the getLocale() on the request will return German and that will be stored into the wicket session. The result is that all built-in components will output messages in German, while the messages output by the app itself will be in English. A solution is that Wicket should note that German is not a supported locale and thus will store English into the session. Currently it seems that the only way to do it is to override WebApplication.newWebRequest() to return a subclass of ServletWebRequest that performs this kind of locale filtering. Is there any better way? Thanks. -- Message: 5 Date: Sun, 25 Mar 2007 11:28:39 +0200 From: Juergen Donnerstag [EMAIL PROTECTED] Subject: Re: [Wicket-user] locale filtering To: wicket-user@lists.sourceforge.net Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1; format=flowed I'm not aware of any better way. It sounds reasonable simple to me. Juergen On 3/25/07, Kent Tong [EMAIL PROTECTED] wrote: Hi, If a given web app only supports say English (default) and French but the browser prefers German the most, then the getLocale() on the request will return German and that will be stored into the wicket session. The result is that all built-in components will output messages in German, while the messages output by the app itself will be in English. A solution is that Wicket should note that German is not a supported locale and thus will store English into the session. Currently it seems that the only way to do it is to override WebApplication.newWebRequest() to return a subclass of ServletWebRequest that performs this kind of locale filtering. Is there any better way? Thanks. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --
Re: [Wicket-user] the modal window cannot work in ie for wicket 2.0 snapshot
hi, it cannot work in IE 6 only , I had tried many pc to prove it . Since mostly of client people use IE, I have to support it. I ' m worry about the upgrade from my version to the reccently the snapshot. I hope dev team can release alpha or beta version in the month before you change back to the old constructor. our client don't want to know i use non-release version or back to 1.4 platform. it's very urging. Message: 8 Date: Sun, 25 Mar 2007 10:22:30 -0400 From: Nathan Hamblen [EMAIL PROTECTED] Subject: Re: [Wicket-user] the modal window cannot work in ie fro wicket 2.0 snapshot To: wicket-user@lists.sourceforge.net Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1; format=flowed Modal windows just started not working for me in 1.3.0 snapshots, maybe around the time the close method stopped being static. The models of components inside them aren't being detached; I'm using a Panel as content. I can do more research if need be, but it seems to be broken pretty unsubtly and because of some recent checkin. Nathan Igor Vaynberg wrote: and have you opened a jira issue? -igor On 3/24/07, *Igor Vaynberg* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: whats the error? -igor -- Message: 9 Date: Sun, 25 Mar 2007 23:21:39 +0800 From: lihanrong [EMAIL PROTECTED] Subject: [Wicket-user] Nobody can fix the ajax modal window bug in 2.0 snapshot? To: wicket-user@lists.sourceforge.net Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=iso-8859-1 I had try it again and again at last serveral week, it cannot work well in ie. anybody can try the ajax modal window in example to get the ajax call error. I need use the datagrid view , so i have to upgrade the app to the current snapshot, the grid view in example can work for current snapshot. but I find some api had changed , and it' seem no one care about the the 2.0 snap now, dev team will change the constructor to back again :( . i guess the 2.0 will not be released in a short time. -- - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV -- ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user End of Wicket-user Digest, Vol 10, Issue 217 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket-user Digest, Vol 10, Issue 213
sorry, I cannot do it. it's a complicate table within some checkbox and input textfield. Message: 7 Date: Sat, 24 Mar 2007 01:06:24 +0100 From: Matej Knopp [EMAIL PROTECTED] Subject: Re: [Wicket-user] sos, ajax refresh chaos To: wicket-user@lists.sourceforge.net Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1; format=flowed can you provide a quickstart example that demonstrates this problem? -Matej On 3/24/07, tooy li(Gmail) [EMAIL PROTECTED] wrote: last time ,I mentioned the table cannot be update after the ajax modal window closed. now it can work when i set the outputmarkid to true, but,... it's strange. it will add the content of table at the top of original table ps. the ajax don't refresh the main window every one, is there any one have the same experience? table tr it generate the update datatable content here after close the modal window /tr /table span wicket:id=listContainer table tr wicket:id=dataList here is my data table. /tr /table /span - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV -- ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user End of Wicket-user Digest, Vol 10, Issue 213 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] sos, ajax refresh chaos
last time ,I mentioned the table cannot be update after the ajax modal window closed. now it can work when i set the outputmarkid to true, but,... it's strange. it will add the content of table at the top of original table ps. the ajax don't refresh the main window every one, is there any one have the same experience? table tr it generate the update datatable content here after close the modal window /tr /table span wicket:id=listContainer table tr wicket:id=dataList here is my data table. /tr /table /span - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] How to catch the error in custome error page?
I want to create a custom page to catch all error , log these into db and only show some clear infomation into user. i know set something in the application, but how can i catch these error in my page? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] how do refresh the repeatview after close ajax modal window?
hi, I know i should add the parent to ajax request target, but it cannot work. look the below code, please check my might fault WebMarkupContainer listContainer = new WebMarkupContainer(form, listContainer); RepeatingView listView = new RepeatingView(listContainer, dataList); setWindowClosedCallback(new ModalWindow.WindowClosedCallback() { public void onClose(AjaxRequestTarget target) { target.addComponent(listContainer); } }); Message: 1 Date: Thu, 15 Mar 2007 19:04:13 +0100 From: Matej Knopp [EMAIL PROTECTED] Subject: Re: [Wicket-user] how do refresh the repeatview after close ajax modal window? To: wicket-user@lists.sourceforge.net Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1; format=flowed To refresh a repeater, you have to add it's parent (e.g. webmarkupcontainer) to ajax request target. Repeater itself has no markup. -Matej On 3/15/07, tooy li(Gmail) [EMAIL PROTECTED] wrote: for the defaultdatatable ,i only need add a parent container of datatable into the target of ajax modal window. But for the repeat view ,it cannot work !!. I also want to when the gridview can work well in 2.0 version I used 2.0 version snapshot thx. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user ** - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] how to config the wicket 2.0 application to accessable by domain name directorly?
hi, pardon for my poort english first. I need deploy the application into web site which can be acess by domain name. for example , www.toy.com is refer to my app. but i cannot know how to config it in 2. 0 since it use filter instead of servlet. it seems that i have to set the filterPath to something, so i only can access my app by www.toy.com/myapp . - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Cannot work well after upgrading to the snapshot of 10 mar
1. the ajax modal window cannot work at IE 6, and fine at firefox. it will generate a script error. Wicket.Ajax.Call is null or not a Object. I try the ajax example of the example application, it's same eorror. 2. Crypted URL cannot work , add the below code into application, and generate a class cast . // protected IRequestCycleProcessor newRequestCycleProcessor() { // return new WebRequestCycleProcessor() { // protected IRequestCodingStrategy newRequestCodingStrategy() { //return new CryptedUrlWebRequestCodingStrategy( // new WebRequestCodingStrategy()); // } // }; // } the below is error stack 221219 [btpool0-4] ERROR wicket.RequestCycle - [Ljava.lang.String; java.lang.ClassCastException: [Ljava.lang.String; at wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy$DecodedUrlRequest.getParameter(CryptedUrlWebRequestCodingStrategy.java:458) at wicket.protocol.http.request.AbstractWebRequestCodingStrategy.decode(AbstractWebRequestCodingStrategy.java:102) - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] how to config the wicket 2.0 application toaccessable by domain name directorly?
thx, i know container context config, but i 'm so stupid that i don't know param-namefilterPath/param-name can be empty . it cannot work when i try /* ,* . thx a lot, it work well now.:-) Message: 2 Date: Fri, 16 Mar 2007 15:38:47 +0100 From: Korbinian Bachl [EMAIL PROTECTED] Subject: Re: [Wicket-user] how to config the wicket 2.0 application toaccessable by domain name directorly? To: wicket-user@lists.sourceforge.net Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=iso-8859-1 The key here is not wicket - its the webcontainer you use. If you use Tomcat then there is a special ROOT configure directive (or Path - sorry here, but havent had to do with it for long time) wich can be found in the Tomcat-Docs (similar is jetty - just look for context root or context path) if you use a real appserver e.g: SJAS you really want to go over the EAR or WAR way and define the Context-Path to be / in the container-web.xml (SJAS: sun-web.xml) e.g: context-root//context-root in the web.xml itself you only need to map it to /* (dont forget the *) e.g: filter-nameNAME/filter-name filter-classwicket.protocol.http.WicketFilter/filter-class init-param param-nameapplicationClassName/param-name param-valueYOURAPPCLASS/param-value /init-param init-param param-namefilterPath/param-name param-value/ filter-mapping filter-nameNAME/filter-name url-pattern/*/url-pattern /filter-mapping so you then can configure it the way you want: domain.com/context_name/filterpath ^container ^web.xml Regards, Korbinian -Urspr?ngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von tooy li(Gmail) Gesendet: Freitag, 16. M?rz 2007 14:50 An: wicket-user@lists.sourceforge.net Betreff: [Wicket-user] how to config the wicket 2.0 application toaccessable by domain name directorly? hi, pardon for my poort english first. I need deploy the application into web site which can be acess by domain name. for example , www.toy.com is refer to my app. but i cannot know how to config it in 2. 0 since it use filter instead of servlet. it seems that i have to set the filterPath to something, so i only can access my app by www.toy.com/myapp . -- --- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforge CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] clone object error when open a new window.
When i try to open a link by new window ,it' happen. I have tried the sample library, it get the same error. Is there one can tell me something? I wanto know how to catch the error information in a customed error page. thx 2007-03-15 23:35:00,640 ERROR wicket.markup.html.WebPage - Page [Page class = com.toywork.MyTaskList, id = 12] couldn't be cloned to move to another pagemap java.lang.ClassCastException: cannot assign instance of com.toywork.UserManagerService$$EnhancerByCGLIB$$ecaf938d to field com.toywork.base.BasePage.userService of type com.toywork.UserManagerService in instance of com.toywork.MyTaskList at java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(ObjectStreamClass.java:2004) at java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java:1184) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1914) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348) at wicket.util.lang.Objects.cloneObject(Objects.java:505) - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] how do refresh the repeatview after close ajax modal window?
for the defaultdatatable ,i only need add a parent container of datatable into the target of ajax modal window. But for the repeat view ,it cannot work !!. I also want to when the gridview can work well in 2.0 version I used 2.0 version snapshot thx. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] pop window error
when i used a pop window or select open a new window for current link, some error happens it' seems I have to serializable PropertyDescProxy ? ERROR wicket.markup.html.WebPage - Page [Page class = com.toyshop.web.PayPage, id = 4] couldn't be cloned to move to another pagemap java.lang.ClassCastException: cannot assign instance of $Proxy10 to field com.toyshop.FormBuilder$PropertyDescProxy.desc of type com.toyshop.domain.PropertyDesc in instance of com.toyshop.FormBuilder$PropertyDescProxy at java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(ObjectStreamClass.java:2004) at java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java:1184) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1914) 蒙 09:35:39 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] how to set the readonly data in wicket form
When i set the html element to readonly or disabled , the wicket form cannot get the value of these specficed field. and I have control these fields accord to the different user. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] how to integretes freemarker in wicket 2.0
ps, when can we get the wicket 2.0 beta? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] I want to know how to output a string in viewer.
I use freemarker to generate something, so i wanto put the generated html string into html viewer. so i think i need write a markcontainer to implement it, is there anyone can give me some advice or code? - Original Message - From: [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Tuesday, March 06, 2007 2:26 AM Subject: Wicket-user Digest, Vol 10, Issue 28 Send Wicket-user mailing list submissions to wicket-user@lists.sourceforge.net To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/wicket-user or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than Re: Contents of Wicket-user digest... Today's Topics: 1. Re: Fwd: removeComponent? (Jason Roelofs) 2. Re: Field validation + FeedbackIndicator + Ajax (Igor Vaynberg) 3. Re: Fwd: removeComponent? (Igor Vaynberg) -- Message: 1 Date: Mon, 5 Mar 2007 13:14:53 -0500 From: Jason Roelofs [EMAIL PROTECTED] Subject: Re: [Wicket-user] Fwd: removeComponent? To: wicket-user@lists.sourceforge.net Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=iso-8859-1 Crap, Gmail keybindings screwed me up. Posting the rest... Well, I am using a detachable model. Here's basically what I've got (using Databinder, HibernateListModel implements IDetachable): IModel rules = new HibernateListModel(...); add(new PropertyListView(rules, rules) { void populateItem(final ListItem item) { item.add(new AjaxFallbackLink(delete) { void onClick(target) { // what do I do here? I hibernate.delete(obj), and addComponent, but doesn't work } } } }); Is there a different version of ListView I should be using? Jason On 3/5/07, Jason Roelofs [EMAIL PROTECTED] wrote: Well, I am using a detachable model. Here's basically what I've got (using Databinder, HibernateListModel implements IDetachable): IModel rules = new HibernateListModel(...); add(new PropertyListView(rules, rules) { }); On 3/5/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: Make sure that you populate your list in the onAttach instead of the constructor. Most of the time, that was my error. Or, make sure your model is updated at the redraw -- Forwarded message -- From: Jason Roelofs [EMAIL PROTECTED] Date: Mar 5, 2007 11:25 AM Subject: [Wicket-user] removeComponent? To: wicket-user@lists.sourceforge.net How do I tell Wicket to clear out an object who's underlying implementation (db record, in this case) was just deleted? Current flow: - Delete link clicked, sends Ajax request - onClick deletes the object from DB, tells to redraw entire list of objects - my now deleted object still gets rendered - Click on Delete link again, throws error because of course, the guy doesn't actually exist Is there some caching going on that I can clear? Thanks Jason - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net 's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- next part -- An HTML attachment was scrubbed... -- Message: 2 Date: Mon, 5 Mar 2007 10:22:49 -0800 From: Igor Vaynberg [EMAIL PROTECTED] Subject: Re: [Wicket-user] Field validation + FeedbackIndicator + Ajax To: wicket-user@lists.sourceforge.net Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=iso-8859-1 where is the link to the page? or are you not able to create it at all? wiki is open to anyone to edit as long as you create a login. -igor On 3/5/07, Manuel Alejandro de Brito Fontes [EMAIL PROTECTED] wrote: Hi, I'm trying to post in the wiki but in the middle of the process I try to save and appears a message telling me that I don't have
[Wicket-user] Is there anyone can compare echo2 and wicket 2?
I find echo2 have more components and more ajax support. and also support html layout. so what's the advantage of wicket ? or some one can tell me the disadvantage of echo? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] how to use GridView in wicket 2.0 snapshot?
hi, it's always complains that Markup with path 'check' not found in fragment: roleList table tr wicket:id=roleList td align=center wicket:id=cols input type=checkbox wicket:id=check / span wicket:id=role/span/td /tr /tableGridViewString gridView = new GridViewString(roles, roleList, dataProvider) { protected void populateItem(ItemString item) { new CheckString(item, check, item.getModel()); new Label(item, role, (String) item.getModelObject()); } @Override protected void populateEmptyItem(Item arg0) { // TODO Auto-generated method stub } }; I write these code follow the example of 1.2 version. and I also find the gridview is disappear in the current one snapshot of wicket 2.0. Is there anyone can help me ? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] how to create a link without markup id?
i know i do this, but i still want to know whether you can give me a better way? I feel verbose in some place for the mark id. for example , since I just add a link to default table , I also have to create a html to describe this. for example, wicket don't allow override some method of link , i have to write some html template for display a word in link, it's too verbose. Message: 1 Date: Wed, 10 Jan 2007 18:00:26 -0800 From: Igor Vaynberg [EMAIL PROTECTED] Subject: Re: [Wicket-user] how to create a link without markup id? To: wicket-user@lists.sourceforge.net Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=iso-8859-1 filelink is just a few lines of code, create your own class that retrieves the file lazily -igor - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] hi , is there any example for implements a system menu?
or how to create a outlook style system menu ? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] how to create a link without markup id?
I need show a downloadlink when a record has a attachment info. since the reocrd may have not attachment, the downloadlink must be create by condition. how can i do it ? I also feel puzzle for how to do generate a system menu or some dymic link . since the componet have to bind with some id. Need i add a webmarkcontainer to hold the id of downloadlink to do this ? it's too verbose. or it's another question, could I decide bind the compoent into the id by condition? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] how to create a link without markup id?
hi, you didn't give the answer. when you create a download link , you have to put a file that cannot be null into the constructor. now I have to create a fake file into downloadlink ,then hidden it when the condition is not ok. it's very verbose!!!. Message: 6 Date: Wed, 10 Jan 2007 16:51:46 +0100 From: Martijn Dashorst [EMAIL PROTECTED] Subject: Re: [Wicket-user] how to create a link without markup id? To: wicket-user@lists.sourceforge.net Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1; format=flowed add(new LInk(link) {}.setVisible(someCondition)); Martijn On 1/10/07, tooy li(Gmail) [EMAIL PROTECTED] wrote: I need show a downloadlink when a record has a attachment info. since the reocrd may have not attachment, the downloadlink must be create by condition. how can i do it ? I also feel puzzle for how to do generate a system menu or some dymic link . since the componet have to bind with some id. Need i add a webmarkcontainer to hold the id of downloadlink to do this ? it's too verbose. or it's another question, could I decide bind the compoent into the id by condition? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now! http://wicketframework.org -- Message: 7 Date: Wed, 10 Jan 2007 16:54:06 +0100 From: Erik van Oosten [EMAIL PROTECTED] Subject: Re: [Wicket-user] how to create a link without markup id? To: wicket-user@lists.sourceforge.net Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=UTF-8; format=flowed To answer a part of your question: You can 'hide' elements on a condition like this: add(new SomeComponent() { public boolean isVisible() { return your_condition; } }); Regards, Erik. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] question about ajax update ListView
I allow user add some row in the form, so I nested a ListView in the form with a addrow button. when user click the addrow button, i insert a new object into the listviewer , and put the container of list viewer to ajaxtarget to update. since the form is a mulitpart, so i get a error when i use ajaxSubmitButton. after i change to ajaxLink, i find the list viewer cannot hold the info before type. I also use setReuseItems(true) in listview, it cannot work. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] IChoiceRenderer error , somthing about generic
I got a cast error , when i use customer IChoiceRender class ColumnRender implements IChoiceRendererColumnInfo { public Object getDisplayValue(ColumnInfo object) { return object.getFormattedName(); } public String getIdValue(ColumnInfo object, int index) { return object.getId(); } } new DropDownChoiceColumnInfo(form, columnId, columnMangerService.selectAllColumnInfo(), new ColumnRender()); I can make sure it's the right type in the data list. and the dropdownlist is show well, but it make a cast error when i save. in the getIdValue method, render only get a string object with the hashcode of ColumnInfo object. I think the error is related generics. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] IChoiceRenderer error , somthing about
Hi,johan y, your right, the column id is string object, render is always get a string object in this case. I first use expression for default Render, and get the same error. show you the complete stacktrace WicketMessage: Exception in rendering component: [MarkupContainer [Component id = columnId, page = com.sharera.adms.column.web.EditAdPositionPage, path = 2:adPositionForm:columnId.DropDownChoice, isVisible = true, isVersioned = false]]Root cause:java.lang.ClassCastException: java.lang.String at com.xxx.column.web.EditAdPositionPage$ColumnRender.getIdValue(EditAdPositionPage.java:221) at wicket.markup.html.form.AbstractSingleSelectChoice.getModelValue(AbstractSingleSelectChoice.java:149) at wicket.markup.html.form.FormComponent.getValue(FormComponent.java:393) at wicket.markup.html.form.AbstractChoice.onComponentTagBody(AbstractChoice.java:333) at wicket.Component.renderComponent(Component.java:1965) at wicket.MarkupContainer.onRender(MarkupContainer.java:910) at wicket.Component.render(Component.java:1721) at wicket.MarkupContainer.renderNext(MarkupContainer.java:1329) at wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:96 5) at wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:899) at wicket.markup.html.form.Form.onComponentTagBody(Form.java:862) at wicket.Component.renderComponent(Component.java:1965) at wicket.MarkupContainer.onRender(MarkupContainer.java:910) at wicket.markup.html.form.Form.onRender(Form.java:937) at wicket.Component.render(Component.java:1721) at wicket.MarkupContainer.renderNext(MarkupContainer.java:1329) at wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:965) at wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:899) at wicket.Component.renderComponent(Component.java:1965) at wicket.MarkupContainer.onRender(MarkupContainer.java:910) at wicket.Component.render(Component.java:1721) at wicket.markup.resolver.MarkupInheritanceResolver.resolve(MarkupInheritanceResolver.java:60) at wicket.MarkupContainer.renderNext(MarkupContainer.java:1354) at wicket.MarkupContainer.render ComponentTagBody(MarkupContainer.java:965) at wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:899) at wicket.Component.renderComponent(Component.java:1965) at wicket.MarkupContainer.onRender(MarkupContainer.java:910) at wicket.Component.render(Component.java:1721) at wicket.markup.resolver.MarkupInheritanceResolver.resolve(MarkupInheritanceResolver.java:60) at wicket.MarkupContainer.renderNext(MarkupContainer.java:1354) at wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:965) at wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:899) at wicket.Component.renderComponent(Component.java:1965) at wicket.MarkupContainer.onRender(MarkupContainer.java:910) at wicket.Component.render(Component.java:1721) at wicket.MarkupContainer.renderNext(MarkupContainer.java:1329) at wicket.MarkupContainer.renderAll(MarkupContainer.java:927) at wicket.Page.onRender(Page.java:1046) at wicket.Co mponent.render(Component.java:1721) at wicket.Component.render(Component.java:1675) at wicket.Page.renderPage(Page.java:1169) at wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:171) at wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:61) at wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:53) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:65) at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:944) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:973) at wicket.RequestCycle.step(RequestCycle.java:1054) at wicket.RequestCycle.steps(RequestCycle.java:1125) at wicket.RequestCycle.request(RequestCycle.java:470) at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:232) at wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:122 ) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1045) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:358) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:231) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:629) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:453) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141) at org.mortbay.jetty.Server.handle(Server.java:303) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:452) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:735) at
[Wicket-user] AjaxFormComponentUpdatingBehavior lost the form data
hi , I just use a behavior in multipart form, and it cannot hold the data of form when it triger. adType.add(new AjaxFormComponentUpdatingBehavior(ClientEvent.CHANGE) { protected void onUpdate(final AjaxRequestTarget target) { String value = (String) adType.getModelObject(); if (StringUtils.isBlank(value)) { return; } additionContainer.setVisible(flag); target.addComponent(form); } when it trigger , the data before typing will lost. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Strange problem, very puzzle for spring in wicket 2.0
igor I will send you project late, which mail box i should take? my spring is the latest version. On 1/7/07, tooy li(Gmail) [EMAIL PROTECTED] wrote: Hi,igor I make sure there is only one class named this. I also change the name of class to find something, but get nothing. it's very strange. I put a bean named 'SystemManagerService' in spring context . and i also can work well to find it. It's only happen when i create the page by page class in wicket. I read something about java generics. some time jvm can make castexception or cannot identiefied the class when you don't use generic right. but I think it's not the situation. yes, in fact i patched a bug related to this in spring 2.0, and it was put into 2.0.1. but that had to do with method lookup not bean lookup. i dont really know what to tell you because i do not see how something like this could happen. if you give me a stripped down version of code that can reproduce the exception i can take a closer look. -igor - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Strange problem, very puzzle for spring in wicket 2.0
I use spring to find some dao service in system. it can work well. but in some situation, some strange things happen. MyPage @SpringBean(id=systemservice) SystemManagerService systemservice; so, when i new one MyPage object, or create it in ut environment, i can get the right bean. but when i use the class of MyPage to create the object. error happens. for example setResponsePage(MyPage.class); to get the below error org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'SystemManagerService' must be of type [xx.SystemManagerService], but was actually of type [xx.SystemManagerService] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:308) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:644) at wicket.spring.SpringBeanLocator.lookupSpringBean(SpringBeanLocator.java:229) at wicket.spring.SpringBeanLocator.locateProxyTarget(SpringBeanLocator.java:126)for setResponsePage(new MyPage); , it's ok.I trace the code , and find the spring return a proxy in this situation but when i use class method in ut context, it's okpublic void testListDictKindPage() { WicketTester test = WicketTestHelper.createSpringContextWicketTester(); test.startPage(MyPage .class); test.assertRenderedPage(MyPage.class); }and, I also use the class method in the other page, all of them are ok. so, I'm puzzle.SystemManagerService object don't use generic, its some properties use it. is there anyone can help me? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Strange problem, very puzzle for spring in wicket 2.0
Hi,igor I make sure there is only one class named this. I also change the name of class to find something, but get nothing. it's very strange. I put a bean named 'SystemManagerService' in spring context . and i also can work well to find it. It's only happen when i create the page by page class in wicket. I read something about java generics. some time jvm can make castexception or cannot identiefied the class when you don't use generic right. but I think it's not the situation. Message: 2 Date: Sun, 7 Jan 2007 06:40:34 -0800 From: Igor Vaynberg [EMAIL PROTECTED] Subject: Re: [Wicket-user] Strange problem, very puzzle for spring in wicket 2.0 To: wicket-user@lists.sourceforge.net Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=iso-8859-1 i dont get it, do you have two different SystemManagerService objects? this doesnt make sense org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'SystemManagerService' must be of type [xx.SystemManagerService], but was actually of type [xx.SystemManagerService] -igor On 1/7/07, tooy li(Gmail) [EMAIL PROTECTED] wrote: I use spring to find some dao service in system. it can work well. but in some situation, some strange things happen. MyPage @SpringBean(id=systemservice) SystemManagerService systemservice; so, when i new one MyPage object, or create it in ut environment, i can get the right bean. but when i use the class of MyPage to create the object. error happens. for example setResponsePage(MyPage.class); to get the below error org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'SystemManagerService' must be of type [xx.SystemManagerService], but was actually of type [xx.SystemManagerService] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean( AbstractBeanFactory.java:308) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean( AbstractBeanFactory.java:160) at org.springframework.context.support.AbstractApplicationContext.getBean( AbstractApplicationContext.java:644) at wicket.spring.SpringBeanLocator.lookupSpringBean(SpringBeanLocator.java:229) at wicket.spring.SpringBeanLocator.locateProxyTarget( SpringBeanLocator.java:126)for setResponsePage(new MyPage); , it's ok.Itrace the code , and find the spring return a proxy in this situation but when i use class method in ut context, it's okpublic void testListDictKindPage() { WicketTester test = WicketTestHelper.createSpringContextWicketTester(); test.startPage(MyPage .class); test.assertRenderedPage(MyPage.class); }and, I also use the class method in the other page, all of them are ok. so, I'm puzzle.SystemManagerService object don't use generic, its some properties use it. is there anyone can help me? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- next part -- An HTML attachment was scrubbed... URL: http://sourceforge.net/mailarchive/forum.php?forum=wicket-user/attachments/20070107/e8e8d425/attachment.html -- Message: 3 Date: Sun, 7 Jan 2007 06:46:22 -0800 From: Igor Vaynberg [EMAIL PROTECTED] Subject: Re: [Wicket-user] Wicket2 and Wicket 1.2.x To: wicket-user@lists.sourceforge.net Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=iso-8859-1 On 1/7/07, Korbinian Bachl [EMAIL PROTECTED] wrote: I like 2.0 and use it on my own, but also faced more than 1 time trouble with it - this is ok if its a hobby like it is for me but may be a problem when you develop something real... i know of quiet a few people, including myself, that are developing something real with 2.0. you have to remember the stateless stuff is not the main focus of wicket, and so most of our users will never use it. -igor Regards - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- next part -- An HTML attachment was scrubbed... URL: http://sourceforge.net/mailarchive/forum.php?forum
[Wicket-user] how can get the value of a property in a CompondProperyModel?
I'm working for write a form validator, so i want to know the value of the other property according by name or nested name. eg get(boy.cat). could I do it? I know i can get the model object, and use BeanUtil to do it. but i think it should a agile way. thx.- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] cannot run the annoation unit test in 2.0
hi,all I try the annoation unit test to the page, but I find it cannot work with injection. below is my code ColumnInfo example = new ColumnInfo(); MockControl daoCtrl = MockControl .createControl(ColumnManagerServiceI.class); ColumnManagerServiceI dao = (ColumnManagerServiceI) daoCtrl.getMock(); daoCtrl.expectAndReturn(dao.selectCount(example), 20); daoCtrl.replay(); AnnotApplicationContextMock appctx = new AnnotApplicationContextMock(); appctx.putBean(ColumnMangerService, dao); WicketTester test = new WicketTester(); test.startPage(new ListColumnInfoPage(new DummyHomePage(), test)); test.assertRenderedPage(ListColumnInfoPage.class); daoCtrl.verify(); there is a SpringBean in the ListColumnInfoPage, it can work well in the true environment. is some people can help me ? i just think it's should to injection the mockContext in some place, so i try to add the my appliction into the construtor of WicketTester , it throw a error about cannot find the applicationcontext of spring. i think i only can insert the the object into the page before test it :( - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Spring annotation ut can work now.
I try the code depends on the wiki's spring post, but it cannot inject the springbean well. I trace the source code of AnnotApplicationContextMock and wickeTester , and find it cannot really register a Injector into the componentInstantiationListeners of component class . I think i can add this one in the wicketTeser's DummyWebApplication, it' work well. below is my code. it had spent me more than 4 hours, i'm so stupid. Is there anyone can give some adivce how to use the AnnotApplicationContextMock correctly? public static WicketTester createWicketTester(Class pageClass) { AnnotApplicationContextMock appctx = new AnnotApplicationContextMock(); ApplicationContext context = CoreServiceLocator.getInstance().getAppContext(); Field[] fields = pageClass.getDeclaredFields(); for (int i = 0; i fields.length; i++) { SpringBean bean = fields[i].getAnnotation(SpringBean.class); appctx.putBean(bean.id(), context.getBean(bean.id())); } DummyWebApplication application = new DummyWebApplication(); application.addComponentInstantiationListener(new ComponentInjector()); return new WicketTester(application); } - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] cannot run the annoation unit test in 2.0
hi, there is not any add method in the WicketTester.and you also cannot add the SpringComponentInjector directly, since it cannot find any true application context in this environment. I think someone should update the related wiki. Message: 2 Date: Fri, 5 Jan 2007 10:04:51 -0800 From: Igor Vaynberg [EMAIL PROTECTED] Subject: Re: [Wicket-user] cannot run the annoation unit test in 2.0 To: wicket-user@lists.sourceforge.net Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=iso-8859-1 try this WicketTester test = new WicketTester(); test.add(new SpringComponentInjector()); -igor - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user