Re: [Wicket-user] Fragment: optionally replace the tag
BTW, for what purpose the Fragment constructor with the MarkupStream parameter exists? Tom On Mon, 09 Apr 2007 20:14:36 +0200, Martijn Dashorst [EMAIL PROTECTED] wrote: This is very nasty code: creating a page upfront and not having it be part of the request cycle. Constructing a page can be very costly in terms of memory usage and performance (models pulling data). I highly recommend pulling this example from confluence, as it is unnecessary (use panels instead) and is as dangerous as adding new Page()'s to a PageLink (also not recommended). Martijn On 4/9/07, Thomas Singer [EMAIL PROTECTED] wrote: I meant, when I don't use the wicket:fragment-tags (like in the example at http://cwiki.apache.org/confluence/display/WICKET/Fragment#Fragment-Fragmentsfromotherpages ). Tom Igor Vaynberg schrieb: fragment doesnt own wicket:fragment, only whatever is inside the wicket:fragment tags -igor On 4/8/07, *Thomas Singer* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Currently, when using the Fragment component, only the content between the opening and closing tag seems to be replaced. What about optionally replacing the tag, too? Tom - 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 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ - 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] IAjaxIndicatorAware and AbstractDefaultAjaxBehavior's findIndicatorId() feature request
Thank you for your reply, Igor! How a RFE can be added? igor.vaynberg wrote: i think that can work, please add an rfe. we do have global js hooks that you can use to create a global indicator. -igor On 4/6/07, Alex Objelean [EMAIL PROTECTED] wrote: In wicket 1.2.5, is not possible (at least I didn't manage to find a way) to add AjaxIndicator image to a page for all Ajax requests made by its child components. Currently, the AbstractDefaultAjaxBehavior has a findIndicatorId() method which is responsible to find the component id which should be Ajax indicator. [code] private String findIndicatorId() { if (getComponent() instanceof IAjaxIndicatorAware) { return ((IAjaxIndicatorAware)getComponent()).getAjaxIndicatorMarkupId(); } if (this instanceof IAjaxIndicatorAware) { return ((IAjaxIndicatorAware)this).getAjaxIndicatorMarkupId(); } return null; } [code] Wouldn't it be better if instead of checking only if : - the getComponent is instance of the IAjaxIndicatorAware interface, the check would be made up in hierarchy to find the first parent which implements the IAjaxIndicatorAware interface? Thus, if my page implements the IAjaxIndicatorAware interface, it will indicate any ajax requests of its components... exact what I need right now. What do you think about it? Thank you! -- View this message in context: http://www.nabble.com/IAjaxIndicatorAware-and-AbstractDefaultAjaxBehavior%27s-findIndicatorId%28%29-feature-request-tf3535594.html#a9868905 Sent from the Wicket - User mailing list archive at Nabble.com. - 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 -- View this message in context: http://www.nabble.com/IAjaxIndicatorAware-and-AbstractDefaultAjaxBehavior%27s-findIndicatorId%28%29-feature-request-tf3535594.html#a9916707 Sent from the Wicket - User mailing list archive at Nabble.com. - 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] IAjaxIndicatorAware and AbstractDefaultAjaxBehavior's findIndicatorId() feature request
https://issues.apache.org/jira/browse/WICKET On 4/10/07, Alex Objelean [EMAIL PROTECTED] wrote: Thank you for your reply, Igor! How a RFE can be added? igor.vaynberg wrote: i think that can work, please add an rfe. we do have global js hooks that you can use to create a global indicator. -igor On 4/6/07, Alex Objelean [EMAIL PROTECTED] wrote: In wicket 1.2.5, is not possible (at least I didn't manage to find a way) to add AjaxIndicator image to a page for all Ajax requests made by its child components. Currently, the AbstractDefaultAjaxBehavior has a findIndicatorId() method which is responsible to find the component id which should be Ajax indicator. [code] private String findIndicatorId() { if (getComponent() instanceof IAjaxIndicatorAware) { return ((IAjaxIndicatorAware)getComponent()).getAjaxIndicatorMarkupId(); } if (this instanceof IAjaxIndicatorAware) { return ((IAjaxIndicatorAware)this).getAjaxIndicatorMarkupId(); } return null; } [code] Wouldn't it be better if instead of checking only if : - the getComponent is instance of the IAjaxIndicatorAware interface, the check would be made up in hierarchy to find the first parent which implements the IAjaxIndicatorAware interface? Thus, if my page implements the IAjaxIndicatorAware interface, it will indicate any ajax requests of its components... exact what I need right now. What do you think about it? Thank you! -- View this message in context: http://www.nabble.com/IAjaxIndicatorAware-and-AbstractDefaultAjaxBehavior%27s-findIndicatorId%28%29-feature-request-tf3535594.html#a9868905 Sent from the Wicket - User mailing list archive at Nabble.com. - 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 -- View this message in context: http://www.nabble.com/IAjaxIndicatorAware-and-AbstractDefaultAjaxBehavior%27s-findIndicatorId%28%29-feature-request-tf3535594.html#a9916707 Sent from the Wicket - User mailing list archive at Nabble.com. - 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 -- 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 - 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] something strange aboutFormComponent.getInputAsArray()
Thanks for replying so soon. ^^ I'm using wicket-1.2.3. I used to use getInput to get userInput of Textfield, but this time I had to transform input to another format, so I wanted to override getInput(). However, I saw the comments in the wicket source codes, which said anyone who want to override this method should overwrite getInputAsArray() instead. So I did that, and the bug happened. I think this may be a strange problem and hard to reproduce, so I use another way for avoiding this bug to achieve my goal. Thanks for help again. :) JFC Hsieh - Original Message - From: Eelco Hillenius [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Thursday, April 05, 2007 8:26 AM Subject: Re: [Wicket-user] something strange aboutFormComponent.getInputAsArray() Which version are you using? And why wouldn't you be using models and components rather then getInputAsArray, which is basically a framework function? Eelco On 4/2/07, JFC [EMAIL PROTECTED] wrote: Sorry to bother, but I found a strange thing, I don't know if I misunderstand the usage of getInputAsArray(). Here is my case: HTML code: !-- -- tr td class=td-field01 Imsnbsp;Ports /td td class=tb-bgcolor input type=text wicket:id=gbeTMSImsPortmap value=abc /td /tr JAVA Code: public String[] getInputAsArray()//This, Usually is size==1. Only when multiple choices. { String[] ans = super.getInputAsArray(); if(ans != null) { String temp = ans[0]; ans[0] = String.valueOf(codingUtil.encodeToInteger(temp)); //ans[0] = String.valueOf(codingUtil.encodeToInteger(ans[0])); } return ans; } -- When I input 4-5 in the html form, I got 0 from super.getInputAsArray() But if I change JAVA codes to public String[] getInputAsArray()//This, Usually is size==1. Only when multiple choices. { String[] ans = super.getInputAsArray(); if(ans != null) { //ans[0] = String.valueOf(codingUtil.encodeToInteger(ans[0])); } return ans; } I could got the correct value 4-5. I tried it twice. Could anybody help me about this? Thanks a lot !! by: JFC - 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 - 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] Using Wicket to develop WAP sites
Thank you to all those who contributed. I think may be I will end up with WML components if I do work on it. For now, for the quick prototype/demo, I will be using wurfl and wall (http://wurfl.sourceforge.net/java/wall.php and http://wurfl.sourceforge.net/java/tutorial.php) Will be monitoring http://cwiki.apache.org/confluence/display/WICKET/Mobile+Devices for more information. Also found this useful http://www.passani.it/gap/ Thank you again for all the information. Will use Wicket on a more 'standard' web application for now. Ashish Iulian Costan wrote: hey Ashish, i did some research in this field long time back; unfortunately i failed and i gave up at one point but at least i can share my experience. here are few key points as far as i can see them: - first of all you'll deal with 3 versions of markup: WML1.0, XHTML-MP, HTML - figure out what are your target devices from the very beginning, if the site needs to work on all mobile devices out there then good luck buddy. - you need a very well designed site design, designer needs to keep in mind that same content will be rendered in 3 formats, for devices with very very very different capabilities. - the component hierarchy in all 3 markups has to match, but in WML1.0 will display only 10% of all components so there will be a isVisible vs. isNotVisible playing game. well, you can implement your own rendering/resolving strategies to achieve that. - some wicket components are very rich in terms of markup/javascript/css, you have to implement your own WML components where it is needed, as i said it is very important to have a simple and WML/HTML friendly web design. - and last one, even everything is perfect and works fine there is mobile device browsers war. if you can make site to look good in IE/FF/Opera; you'll find out that mobile's browsers are real nightmare; they are so many types with very different capabilities and behaviors; tables are not supported by this specific version, even they say it is, text is not wrapped properly, all kind of resolutions issues ad so on. if you have time and resources to do it it will be great asset for wicket community and open source community in general. i can say that i couldnt find a good and reliable WML/HTML framework out there. except WURLF that is jsp based and is quite acceptable (but who uses jsp/taglibraries/scriplets these days) and a give it a try and not supported anymore renderkit from myface jsf framework, there is nothing, really nothing. /iulian On 4/5/07, *Ashish Shrestha* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi All, I am currently looking at Wicket and going over the examples. I am interested in developing mobile friendly websites. Any one has any experience they can share or point me to place where I can get more information. I would like to serve different 'versions' of the page based on the capabilities of the mobile phone browser. In the demo, the HTML file is named same as the Java class. Can I have different 'version' of HTML file based on the mobile capability? Would this be similar to internationalisation? How does one do internationalisation with Wicket? I am planning to use http://wurfl.sourceforge.net/ http://wurfl.sourceforge.net/ to find the capability of the mobile browser. Thank you for any hints, suggestions or pointers. Ashish - 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 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto: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 - 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] 2 issues with RefreshingView : ERROR - RequestCycle - Index: 0 and submit button present too many times
Hi I'm currently working on a RefreshingView and I got the 2 followings issues : - I've added an ActionPanel like the one in the Wicket Example and when onClick is fired I got the following error : ERROR - RequestCycle - Index: 0 java.lang.IndexOutOfBoundsException: Index: 0 at java.util.Collections$EmptyList.get(Collections.java:2970) at wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:88) at wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:89) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:962) at wicket.RequestCycle.step(RequestCycle.java:1035) at wicket.RequestCycle.steps(RequestCycle.java:1114) at wicket.RequestCycle.request(RequestCycle.java:474) at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:248) at wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:122) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:619) The ActionPanel is define as following : private class ActionPanel extends Panel { public ActionPanel(String id, IModel model) { super(id, model); add(new AjaxLink(+) { @Override public void onClick(AjaxRequestTarget arg0) { System.out.println(increment); } }); } } - the other issue is, I think, easier, but I didn't find how to solve it. In fact, my panel containing the RefreshingView is itself in a form. When the form is submitted and something put on the feedback panel, then the submit button is rendered twice... The button is in fact shown as many times as the form has been submitted. How can I stop that ? I'm using wicket 1.3. Regarding the code, I don't know which part of it would most help you, so I put a few samples but feel free to ask more. Thanks in advance ZedroS - 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] Multi page inheritance
I'm get confused of to use wicket:child / and wicket:extend / element to write a multi-level page inheritance. Let's say that the have the following hierarchy: Page A ^ | Page B ^ | Page C The page A will be: html head body Some stuff here wicket:child wicket:child/ /body /html The page C html head body wicket:extend Some details /wicket:extend /body /html But how to write the Page B markup ?? Thanks, Paolo - 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] ClassCastException when using SignInSession
I've been using wicket 1.2.5 for a while with a sign in page based upon the wicket-examples signin (with cookies) example. I've now moved to 1.3 as I didn't want to cache some markup pages. I'm using the latest wicket file from here http://wicketstuff.org/maven/repository/org/apache/wicket/wicket/1.3.0-incubating-SNAPSHOT/ (dates 10th April) and i've changed most classes without problem to work with 1.3. The problem I'm having is with the SignInSession and getting a ClassCastException when trying to get the SignInSession in the init method: code from the init method below getSecuritySettings().setAuthorizationStrategy(new IAuthorizationStrategy() { public boolean isActionAuthorized(Component component, Action action) { return true; } public boolean isInstantiationAuthorized(Class componentClass) { if (AuthenticatedWebPage.class.isAssignableFrom(componentClass)) { // Is user signed in? if (((SignInSession)Session.get()).isSignedIn()) { // okay to proceed return true; } // Force sign in throw new RestartResponseAtInterceptPageException(SignIn.class); } return true; } }); The line above is highlighted that causes the error. I've implemented, taking in the new parameter public Session newSession(Request request, Response response) { return new SignInSession(ThePencilRoomApplication.this, request); } Sign in session is just a copy from the example project extending WebSession. But I always seem to get the error below: WicketMessage: Can't instantiate page using constructor public uk.co.rageconsulting.thepencilroom.web.page.Home(wicket.PageParameters) and argument Root cause: java.lang.ClassCastException: wicket.protocol.http.WebSession at uk.co.rageconsulting.thepencilroom.web.page.Home.init(Home.java:47) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:153) at wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:65) at wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:256) at wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:275) at wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:204) at wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:89) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:962) at wicket.RequestCycle.step(RequestCycle.java:1035) at wicket.RequestCycle.steps(RequestCycle.java:1114) at wicket.RequestCycle.request(RequestCycle.java:474) at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:248) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:126) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at
Re: [Wicket-user] 2 issues with RefreshingView : ERROR - RequestCycle - Index: 0 and submit button present too many times
try an id that is an alpha string rather then + -igor On 4/10/07, ZedroS Schwart [EMAIL PROTECTED] wrote: Hi I'm currently working on a RefreshingView and I got the 2 followings issues : - I've added an ActionPanel like the one in the Wicket Example and when onClick is fired I got the following error : ERROR - RequestCycle - Index: 0 java.lang.IndexOutOfBoundsException: Index: 0 at java.util.Collections$EmptyList.get(Collections.java:2970) at wicket.request.target.component.listener.BehaviorRequestTarget.processEvents (BehaviorRequestTarget.java:88) at wicket.request.AbstractRequestCycleProcessor.processEvents( AbstractRequestCycleProcessor.java:89) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java :962) at wicket.RequestCycle.step(RequestCycle.java:1035) at wicket.RequestCycle.steps(RequestCycle.java:1114) at wicket.RequestCycle.request(RequestCycle.java:474) at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:248) at wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java :122) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke( StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke( StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke( ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke( StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service( CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process( Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection (Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket( PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt( LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.java:684) at java.lang.Thread.run(Thread.java:619) The ActionPanel is define as following : private class ActionPanel extends Panel { public ActionPanel(String id, IModel model) { super(id, model); add(new AjaxLink(+) { @Override public void onClick(AjaxRequestTarget arg0) { System.out.println(increment); } }); } } - the other issue is, I think, easier, but I didn't find how to solve it. In fact, my panel containing the RefreshingView is itself in a form. When the form is submitted and something put on the feedback panel, then the submit button is rendered twice... The button is in fact shown as many times as the form has been submitted. How can I stop that ? I'm using wicket 1.3. Regarding the code, I don't know which part of it would most help you, so I put a few samples but feel free to ask more. Thanks in advance ZedroS - 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] ClassCastException when using SignInSession
does your signinsession extend websession? -igor On 4/10/07, Andrew Moore [EMAIL PROTECTED] wrote: I've been using wicket 1.2.5 for a while with a sign in page based upon the wicket-examples signin (with cookies) example. I've now moved to 1.3 as I didn't want to cache some markup pages. I'm using the latest wicket file from here http://wicketstuff.org/maven/repository/org/apache/wicket/wicket/1.3.0-incubating-SNAPSHOT/ (dates 10th April) and i've changed most classes without problem to work with 1.3. The problem I'm having is with the SignInSession and getting a ClassCastException when trying to get the SignInSession in the init method: code from the init method below getSecuritySettings().setAuthorizationStrategy(new IAuthorizationStrategy() { public boolean isActionAuthorized(Component component, Action action) { return true; } public boolean isInstantiationAuthorized(Class componentClass) { if ( AuthenticatedWebPage.class.isAssignableFrom(componentClass)) { // Is user signed in? if (((SignInSession)Session.get()).isSignedIn()) { // okay to proceed return true; } // Force sign in throw new RestartResponseAtInterceptPageException(SignIn.class); } return true; } }); The line above is highlighted that causes the error. I've implemented, taking in the new parameter public Session newSession(Request request, Response response) { return new SignInSession(ThePencilRoomApplication.this, request); } Sign in session is just a copy from the example project extending WebSession. But I always seem to get the error below: WicketMessage: Can't instantiate page using constructor public uk.co.rageconsulting.thepencilroom.web.page.Home(wicket.PageParameters) and argument Root cause: java.lang.ClassCastException: wicket.protocol.http.WebSession at uk.co.rageconsulting.thepencilroom.web.page.Home.init(Home.java:47) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:153) at wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:65) at wicket.request.target.component.BookmarkablePageRequestTarget.newPage( BookmarkablePageRequestTarget.java:256) at wicket.request.target.component.BookmarkablePageRequestTarget.getPage( BookmarkablePageRequestTarget.java:275) at wicket.request.target.component.BookmarkablePageRequestTarget.processEvents (BookmarkablePageRequestTarget.java:204) at wicket.request.AbstractRequestCycleProcessor.processEvents( AbstractRequestCycleProcessor.java:89) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:962) at wicket.RequestCycle.step(RequestCycle.java:1035) at wicket.RequestCycle.steps(RequestCycle.java:1114) at wicket.RequestCycle.request(RequestCycle.java:474) at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:248) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:126) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:173) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal (OpenSessionInViewFilter.java:174) at org.springframework.web.filter.OncePerRequestFilter.doFilter( OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke( StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke( StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :105) at org.apache.catalina.core.StandardEngineValve.invoke( StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java :148) at
Re: [Wicket-user] ClassCastException when using SignInSession
Hi, Yes, sign in session is just a copy from the example project extending WebSession. Cheers Andrew Andrew Moore wrote: I've been using wicket 1.2.5 for a while with a sign in page based upon the wicket-examples signin (with cookies) example. I've now moved to 1.3 as I didn't want to cache some markup pages. I'm using the latest wicket file from here http://wicketstuff.org/maven/repository/org/apache/wicket/wicket/1.3.0-incubating-SNAPSHOT/ (dates 10th April) and i've changed most classes without problem to work with 1.3. The problem I'm having is with the SignInSession and getting a ClassCastException when trying to get the SignInSession in the init method: code from the init method below getSecuritySettings().setAuthorizationStrategy(new IAuthorizationStrategy() { public boolean isActionAuthorized(Component component, Action action) { return true; } public boolean isInstantiationAuthorized(Class componentClass) { if (AuthenticatedWebPage.class.isAssignableFrom(componentClass)) { // Is user signed in? if (((SignInSession)Session.get()).isSignedIn()) { // okay to proceed return true; } // Force sign in throw new RestartResponseAtInterceptPageException(SignIn.class); } return true; } }); The line above is highlighted that causes the error. I've implemented, taking in the new parameter public Session newSession(Request request, Response response) { return new SignInSession(ThePencilRoomApplication.this, request); } Sign in session is just a copy from the example project extending WebSession. But I always seem to get the error below: WicketMessage: Can't instantiate page using constructor public uk.co.rageconsulting.thepencilroom.web.page.Home(wicket.PageParameters) and argument Root cause: java.lang.ClassCastException: wicket.protocol.http.WebSession at uk.co.rageconsulting.thepencilroom.web.page.Home.init(Home.java:47) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:153) at wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:65) at wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:256) at wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:275) at wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:204) at wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:89) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:962) at wicket.RequestCycle.step(RequestCycle.java:1035) at wicket.RequestCycle.steps(RequestCycle.java:1114) at wicket.RequestCycle.request(RequestCycle.java:474) at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:248) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:126) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at
Re: [Wicket-user] ClassCastException when using SignInSession
can we see fragment of this code: at uk.co.rageconsulting.thepencilroom.web.page.Home.init(Home.java:47) -igor On 4/10/07, Andrew Moore [EMAIL PROTECTED] wrote: Hi, Yes, sign in session is just a copy from the example project extending WebSession. Cheers Andrew Andrew Moore wrote: I've been using wicket 1.2.5 for a while with a sign in page based upon the wicket-examples signin (with cookies) example. I've now moved to 1.3 as I didn't want to cache some markup pages. I'm using the latest wicket file from here http://wicketstuff.org/maven/repository/org/apache/wicket/wicket/1.3.0-incubating-SNAPSHOT/ (dates 10th April) and i've changed most classes without problem to work with 1.3. The problem I'm having is with the SignInSession and getting a ClassCastException when trying to get the SignInSession in the init method: code from the init method below getSecuritySettings().setAuthorizationStrategy(new IAuthorizationStrategy() { public boolean isActionAuthorized(Component component, Action action) { return true; } public boolean isInstantiationAuthorized(Class componentClass) { if ( AuthenticatedWebPage.class.isAssignableFrom(componentClass)) { // Is user signed in? if (((SignInSession)Session.get()).isSignedIn()) { // okay to proceed return true; } // Force sign in throw new RestartResponseAtInterceptPageException(SignIn.class); } return true; } }); The line above is highlighted that causes the error. I've implemented, taking in the new parameter public Session newSession(Request request, Response response) { return new SignInSession(ThePencilRoomApplication.this, request); } Sign in session is just a copy from the example project extending WebSession. But I always seem to get the error below: WicketMessage: Can't instantiate page using constructor public uk.co.rageconsulting.thepencilroom.web.page.Home(wicket.PageParameters) and argument Root cause: java.lang.ClassCastException: wicket.protocol.http.WebSession at uk.co.rageconsulting.thepencilroom.web.page.Home.init(Home.java:47) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java :153) at wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:65) at wicket.request.target.component.BookmarkablePageRequestTarget.newPage( BookmarkablePageRequestTarget.java:256) at wicket.request.target.component.BookmarkablePageRequestTarget.getPage( BookmarkablePageRequestTarget.java:275) at wicket.request.target.component.BookmarkablePageRequestTarget.processEvents (BookmarkablePageRequestTarget.java:204) at wicket.request.AbstractRequestCycleProcessor.processEvents( AbstractRequestCycleProcessor.java:89) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:962) at wicket.RequestCycle.step(RequestCycle.java:1035) at wicket.RequestCycle.steps(RequestCycle.java:1114) at wicket.RequestCycle.request(RequestCycle.java:474) at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:248) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:126) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:173) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal (OpenSessionInViewFilter.java:174) at org.springframework.web.filter.OncePerRequestFilter.doFilter( OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke( StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke( StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :105) at
Re: [Wicket-user] Multi page inheritance
PageA.html: htmlbodyh1Page A/h1 wicket:child / /body /html PageB.html: htmlbodywicket:extendh2Page B/h2wicket:child //wicket:extend/body/html PageC.html htmlbodywicket:extendh3Page C/h3/wicket:extend/body/html Martijn On 4/10/07, Paolo Di Tommaso [EMAIL PROTECTED] wrote: I'm get confused of to use wicket:child / and wicket:extend / element to write a multi-level page inheritance. Let's say that the have the following hierarchy: Page A ^ | Page B ^ | Page C The page A will be: html head body Some stuff here wicket:child wicket:child/ /body /html The page C html head body wicket:extend Some details /wicket:extend /body /html But how to write the Page B markup ?? Thanks, Paolo - 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 -- 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 - 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] Multi page inheritance
Maybe there is a possibility to not use wicket:extend/wicket:child, but plain wicket:id-attributes instead? At least that's what I want to achieve to keep my HTML clean. Tom Paolo Di Tommaso schrieb: I'm get confused of to use wicket:child / and wicket:extend / element to write a multi-level page inheritance. Let's say that the have the following hierarchy: Page A ^ | Page B ^ | Page C The page A will be: html head body Some stuff here wicket:child wicket:child/ /body /html The page C html head body wicket:extend Some details /wicket:extend /body /html But how to write the Page B markup ?? Thanks, Paolo - 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] Multi page inheritance
we like our namespaced tags. they are xhtml compliant and get stripped from final output. so that will stay the default. if you want to hack away the please feel free to do so, but i do not think you will get much in the way of support. -igor On 4/10/07, Thomas Singer [EMAIL PROTECTED] wrote: Maybe there is a possibility to not use wicket:extend/wicket:child, but plain wicket:id-attributes instead? At least that's what I want to achieve to keep my HTML clean. Tom Paolo Di Tommaso schrieb: I'm get confused of to use wicket:child / and wicket:extend / element to write a multi-level page inheritance. Let's say that the have the following hierarchy: Page A ^ | Page B ^ | Page C The page A will be: html head body Some stuff here wicket:child wicket:child/ /body /html The page C html head body wicket:extend Some details /wicket:extend /body /html But how to write the Page B markup ?? Thanks, Paolo - 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 - 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] Submit failure
Your browser will tell you? Can you be a little bit more precise describing what you mean? Eelco On 4/9/07, Roman Mandeleil [EMAIL PROTECTED] wrote: Hi , What is the right way to identify that a submit was failed ( e.g. there is no connection to the server ) ? Best regards Mandeleil Roman -- View this message in context: http://www.nabble.com/Submit-failure-tf3551190.html#a9914206 Sent from the Wicket - User mailing list archive at Nabble.com. - 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] Multi page inheritance
The wicket website states at the end of the first paragraph ... written with plain Java and HTML. IIRC, the wicket:... tags do not belong to plain HTML. BTW, is there a DTD available for the namespace definitions in the html tag of the XHTML files, so IDEA does not highlight it in red? -- Tom On Tue, 10 Apr 2007 18:27:18 +0200, Igor Vaynberg [EMAIL PROTECTED] wrote: we like our namespaced tags. they are xhtml compliant and get stripped from final output. so that will stay the default. if you want to hack away the please feel free to do so, but i do not think you will get much in the way of support. -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
Re: [Wicket-user] Multi page inheritance
Hi Thomas, Tuesday, April 10, 2007, 6:01:37 PM, you wrote: The wicket website states at the end of the first paragraph ... written with plain Java and HTML. IIRC, the wicket:... tags do not belong to plain HTML. Are you missing the fact that if you switch to Deployment mode or explicitly call IMarkupSettings.setStripWicketTags(true)[1] then you won't get those tags in your output? They're there for ease of debugging in development mode, but they're not required (in the output). /Gwyn [1] http://wicket.sourceforge.net/apidocs/wicket/settings/IMarkupSettings.html#setStripWicketTags(boolean) On Tue, 10 Apr 2007 18:27:18 +0200, Igor Vaynberg [EMAIL PROTECTED] wrote: we like our namespaced tags. they are xhtml compliant and get stripped from final output. so that will stay the default. if you want to hack away the please feel free to do so, but i do not think you will get much in the way of support. -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
Re: [Wicket-user] Submit failure
I mean that can be a situation: where the user is in web page and the server goes down I want to identify that there is http request failure and show some message to the user, is there any option in wicket for that or I should add bunch of javascript code. Thanks in advance Roman Eelco Hillenius wrote: Your browser will tell you? Can you be a little bit more precise describing what you mean? Eelco On 4/9/07, Roman Mandeleil [EMAIL PROTECTED] wrote: Hi , What is the right way to identify that a submit was failed ( e.g. there is no connection to the server ) ? Best regards Mandeleil Roman -- View this message in context: http://www.nabble.com/Submit-failure-tf3551190.html#a9914206 Sent from the Wicket - User mailing list archive at Nabble.com. - 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 -- View this message in context: http://www.nabble.com/Submit-failure-tf3551190.html#a9926327 Sent from the Wicket - User mailing list archive at Nabble.com. - 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] Submit failure
i dont even think there is an option with javascript unless you use ajax -igor On 4/10/07, Roman Mandeleil [EMAIL PROTECTED] wrote: I mean that can be a situation: where the user is in web page and the server goes down I want to identify that there is http request failure and show some message to the user, is there any option in wicket for that or I should add bunch of javascript code. Thanks in advance Roman Eelco Hillenius wrote: Your browser will tell you? Can you be a little bit more precise describing what you mean? Eelco On 4/9/07, Roman Mandeleil [EMAIL PROTECTED] wrote: Hi , What is the right way to identify that a submit was failed ( e.g. there is no connection to the server ) ? Best regards Mandeleil Roman -- View this message in context: http://www.nabble.com/Submit-failure-tf3551190.html#a9914206 Sent from the Wicket - User mailing list archive at Nabble.com. - 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 -- View this message in context: http://www.nabble.com/Submit-failure-tf3551190.html#a9926327 Sent from the Wicket - User mailing list archive at Nabble.com. - 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] Submit failure
Yes but wicket is using ajax igor.vaynberg wrote: i dont even think there is an option with javascript unless you use ajax -igor On 4/10/07, Roman Mandeleil [EMAIL PROTECTED] wrote: I mean that can be a situation: where the user is in web page and the server goes down I want to identify that there is http request failure and show some message to the user, is there any option in wicket for that or I should add bunch of javascript code. Thanks in advance Roman Eelco Hillenius wrote: Your browser will tell you? Can you be a little bit more precise describing what you mean? Eelco On 4/9/07, Roman Mandeleil [EMAIL PROTECTED] wrote: Hi , What is the right way to identify that a submit was failed ( e.g. there is no connection to the server ) ? Best regards Mandeleil Roman -- View this message in context: http://www.nabble.com/Submit-failure-tf3551190.html#a9914206 Sent from the Wicket - User mailing list archive at Nabble.com. - 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 -- View this message in context: http://www.nabble.com/Submit-failure-tf3551190.html#a9926327 Sent from the Wicket - User mailing list archive at Nabble.com. - 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 -- View this message in context: http://www.nabble.com/Submit-failure-tf3551190.html#a9927542 Sent from the Wicket - User mailing list archive at Nabble.com. - 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] Submit failure
then you have a global javascript failure hook you can implement. search the wiki and the list for details. -igor On 4/10/07, Roman Mandeleil [EMAIL PROTECTED] wrote: Yes but wicket is using ajax igor.vaynberg wrote: i dont even think there is an option with javascript unless you use ajax -igor On 4/10/07, Roman Mandeleil [EMAIL PROTECTED] wrote: I mean that can be a situation: where the user is in web page and the server goes down I want to identify that there is http request failure and show some message to the user, is there any option in wicket for that or I should add bunch of javascript code. Thanks in advance Roman Eelco Hillenius wrote: Your browser will tell you? Can you be a little bit more precise describing what you mean? Eelco On 4/9/07, Roman Mandeleil [EMAIL PROTECTED] wrote: Hi , What is the right way to identify that a submit was failed ( e.g. there is no connection to the server ) ? Best regards Mandeleil Roman -- View this message in context: http://www.nabble.com/Submit-failure-tf3551190.html#a9914206 Sent from the Wicket - User mailing list archive at Nabble.com. - 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 -- View this message in context: http://www.nabble.com/Submit-failure-tf3551190.html#a9926327 Sent from the Wicket - User mailing list archive at Nabble.com. - 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 -- View this message in context: http://www.nabble.com/Submit-failure-tf3551190.html#a9927542 Sent from the Wicket - User mailing list archive at Nabble.com. - 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] Submit failure
http://www.google.com/search?ie=UTF-8oe=UTF-8domains=cwiki.apache.orgsitesearch=cwiki.apache.orgq=global+javascript+failure+hookbtnG=Google+SearchI I have tried, there is no results, can you be more specific. Roman igor.vaynberg wrote: then you have a global javascript failure hook you can implement. search the wiki and the list for details. -igor On 4/10/07, Roman Mandeleil [EMAIL PROTECTED] wrote: Yes but wicket is using ajax igor.vaynberg wrote: i dont even think there is an option with javascript unless you use ajax -igor On 4/10/07, Roman Mandeleil [EMAIL PROTECTED] wrote: I mean that can be a situation: where the user is in web page and the server goes down I want to identify that there is http request failure and show some message to the user, is there any option in wicket for that or I should add bunch of javascript code. Thanks in advance Roman Eelco Hillenius wrote: Your browser will tell you? Can you be a little bit more precise describing what you mean? Eelco On 4/9/07, Roman Mandeleil [EMAIL PROTECTED] wrote: Hi , What is the right way to identify that a submit was failed ( e.g. there is no connection to the server ) ? Best regards Mandeleil Roman -- View this message in context: http://www.nabble.com/Submit-failure-tf3551190.html#a9914206 Sent from the Wicket - User mailing list archive at Nabble.com. - 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 -- View this message in context: http://www.nabble.com/Submit-failure-tf3551190.html#a9926327 Sent from the Wicket - User mailing list archive at Nabble.com. - 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 -- View this message in context: http://www.nabble.com/Submit-failure-tf3551190.html#a9927542 Sent from the Wicket - User mailing list archive at Nabble.com. - 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
Re: [Wicket-user] Multi page inheritance
No, I want my template html files to be as much as possible be valid html, no additional tags which might cause troubles when using a GUI-based HTML editor. One extra attribute (wicket:id) is acceptable. If necessary, these can be added later easily when getting pages from the designer. Tom On Tue, 10 Apr 2007 20:42:44 +0200, Gwyn Evans [EMAIL PROTECTED] wrote: Hi Thomas, Tuesday, April 10, 2007, 6:01:37 PM, you wrote: The wicket website states at the end of the first paragraph ... written with plain Java and HTML. IIRC, the wicket:... tags do not belong to plain HTML. Are you missing the fact that if you switch to Deployment mode or explicitly call IMarkupSettings.setStripWicketTags(true)[1] then you won't get those tags in your output? They're there for ease of debugging in development mode, but they're not required (in the output). /Gwyn [1] http://wicket.sourceforge.net/apidocs/wicket/settings/IMarkupSettings.html#setStripWicketTags(boolean) On Tue, 10 Apr 2007 18:27:18 +0200, Igor Vaynberg [EMAIL PROTECTED] wrote: we like our namespaced tags. they are xhtml compliant and get stripped from final output. so that will stay the default. if you want to hack away the please feel free to do so, but i do not think you will get much in the way of support. -igor -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ - 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] 2 issues with RefreshingView : ERROR - RequestCycle - Index: 0 and submit button present too many times
Hi igor Thanks a lot, it did solve my first issue. Regarding the other one, the one about the submit button being shown as many times as it has been clicked, what could I do for it ? FYI, this button is added in a global form containing as well the RefreshingView (which itself has its own form, even if I wonder now if it's relevant). Thanks in advance ZedroS On 4/10/07, Igor Vaynberg [EMAIL PROTECTED] wrote: try an id that is an alpha string rather then + -igor On 4/10/07, ZedroS Schwart [EMAIL PROTECTED] wrote: Hi I'm currently working on a RefreshingView and I got the 2 followings issues : - I've added an ActionPanel like the one in the Wicket Example and when onClick is fired I got the following error : ERROR - RequestCycle - Index: 0 java.lang.IndexOutOfBoundsException: Index: 0 at java.util.Collections$EmptyList.get(Collections.java:2970) at wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:88) at wicket.request.AbstractRequestCycleProcessor.processEvents (AbstractRequestCycleProcessor.java:89) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:962) at wicket.RequestCycle.step(RequestCycle.java:1035) at wicket.RequestCycle.steps (RequestCycle.java:1114) at wicket.RequestCycle.request(RequestCycle.java:474) at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:248) at wicket.protocol.http.WicketFilter.doFilter (WicketFilter.java:122) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java :173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection (Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java :80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:619) The ActionPanel is define as following : private class ActionPanel extends Panel { public ActionPanel(String id, IModel model) { super(id, model); add(new AjaxLink(+) { @Override public void onClick(AjaxRequestTarget arg0) { System.out.println(increment); } }); } } - the other issue is, I think, easier, but I didn't find how to solve it. In fact, my panel containing the RefreshingView is itself in a form. When the form is submitted and something put on the feedback panel, then the submit button is rendered twice... The button is in fact shown as many times as the form has been submitted. How can I stop that ? I'm using wicket 1.3. Regarding the code, I don't know which part of it would most help you, so I put a few samples but feel free to ask more. Thanks in advance ZedroS - 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
Re: [Wicket-user] Submit failure
http://www.nabble.com/forum/Search.jtp?query=global+javascriptlocal=yforum=13976daterange=0startdate=enddate= -igor On 4/10/07, Roman Mandeleil [EMAIL PROTECTED] wrote: http://www.google.com/search?ie=UTF-8oe=UTF-8domains=cwiki.apache.orgsitesearch=cwiki.apache.orgq=global+javascript+failure+hookbtnG=Google+SearchI I have tried, there is no results, can you be more specific. Roman igor.vaynberg wrote: then you have a global javascript failure hook you can implement. search the wiki and the list for details. -igor On 4/10/07, Roman Mandeleil [EMAIL PROTECTED] wrote: Yes but wicket is using ajax igor.vaynberg wrote: i dont even think there is an option with javascript unless you use ajax -igor On 4/10/07, Roman Mandeleil [EMAIL PROTECTED] wrote: I mean that can be a situation: where the user is in web page and the server goes down I want to identify that there is http request failure and show some message to the user, is there any option in wicket for that or I should add bunch of javascript code. Thanks in advance Roman Eelco Hillenius wrote: Your browser will tell you? Can you be a little bit more precise describing what you mean? Eelco On 4/9/07, Roman Mandeleil [EMAIL PROTECTED] wrote: Hi , What is the right way to identify that a submit was failed ( e.g. there is no connection to the server ) ? Best regards Mandeleil Roman -- View this message in context: http://www.nabble.com/Submit-failure-tf3551190.html#a9914206 Sent from the Wicket - User mailing list archive at Nabble.com. - 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 -- View this message in context: http://www.nabble.com/Submit-failure-tf3551190.html#a9926327 Sent from the Wicket - User mailing list archive at Nabble.com. - 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 -- View this message in context: http://www.nabble.com/Submit-failure-tf3551190.html#a9927542 Sent from the Wicket - User mailing list archive at Nabble.com. - 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
Re: [Wicket-user] Multi page inheritance
yes it states that, and to a very large degree (more then any other framework) we follow it. but what drives this framework are the facts that we set realistic goals and come up with practical solutions. we are not purists. the most practical solution for us is to have these special tags for markup that is very wicket-specific. these tags act as barriers/markers, they are not components that you attach to a page. -igor On 4/10/07, Thomas Singer [EMAIL PROTECTED] wrote: The wicket website states at the end of the first paragraph ... written with plain Java and HTML. IIRC, the wicket:... tags do not belong to plain HTML. BTW, is there a DTD available for the namespace definitions in the html tag of the XHTML files, so IDEA does not highlight it in red? -- Tom On Tue, 10 Apr 2007 18:27:18 +0200, Igor Vaynberg [EMAIL PROTECTED] wrote: we like our namespaced tags. they are xhtml compliant and get stripped from final output. so that will stay the default. if you want to hack away the please feel free to do so, but i do not think you will get much in the way of support. -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 - 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] 2 issues with RefreshingView : ERROR - RequestCycle - Index: 0 and submit button present too many times
that you would have to create a quickstart to reproduce. i cant even start thinking of what weirdness would cause this. -igor On 4/10/07, ZedroS Schwart [EMAIL PROTECTED] wrote: Hi igor Thanks a lot, it did solve my first issue. Regarding the other one, the one about the submit button being shown as many times as it has been clicked, what could I do for it ? FYI, this button is added in a global form containing as well the RefreshingView (which itself has its own form, even if I wonder now if it's relevant). Thanks in advance ZedroS On 4/10/07, Igor Vaynberg [EMAIL PROTECTED] wrote: try an id that is an alpha string rather then + -igor On 4/10/07, ZedroS Schwart [EMAIL PROTECTED] wrote: Hi I'm currently working on a RefreshingView and I got the 2 followings issues : - I've added an ActionPanel like the one in the Wicket Example and when onClick is fired I got the following error : ERROR - RequestCycle - Index: 0 java.lang.IndexOutOfBoundsException: Index: 0 at java.util.Collections$EmptyList.get(Collections.java:2970) at wicket.request.target.component.listener.BehaviorRequestTarget.processEvents (BehaviorRequestTarget.java:88) at wicket.request.AbstractRequestCycleProcessor.processEvents (AbstractRequestCycleProcessor.java:89) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:962) at wicket.RequestCycle.step(RequestCycle.java:1035) at wicket.RequestCycle.steps (RequestCycle.java:1114) at wicket.RequestCycle.request(RequestCycle.java:474) at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:248) at wicket.protocol.http.WicketFilter.doFilter (WicketFilter.java:122) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java :173) at org.apache.catalina.core.StandardWrapperValve.invoke( StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke( StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :105) at org.apache.catalina.core.StandardEngineValve.invoke( StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java :148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java :869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection (Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket( PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt( LeaderFollowerWorkerThread.java :80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.java:684) at java.lang.Thread.run(Thread.java:619) The ActionPanel is define as following : private class ActionPanel extends Panel { public ActionPanel(String id, IModel model) { super(id, model); add(new AjaxLink(+) { @Override public void onClick(AjaxRequestTarget arg0) { System.out.println(increment); } }); } } - the other issue is, I think, easier, but I didn't find how to solve it. In fact, my panel containing the RefreshingView is itself in a form. When the form is submitted and something put on the feedback panel, then the submit button is rendered twice... The button is in fact shown as many times as the form has been submitted. How can I stop that ? I'm using wicket 1.3. Regarding the code, I don't know which part of it would most help you, so I put a few samples but feel free to ask more. Thanks in advance ZedroS - 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
[Wicket-user] Problem with TinyMCE on a panel
Hi all, I've been trying to get TinyMCE to display on a panel and haven't been having much luck. I've seen it work if it's not on a panel, but my guess is when the panel is loaded and the contents of the panel are patched up in the DOM, the patches that TinyMCE made are lost. I talked to Igor about this one night on IRC and he suggested using a behavior, overriding iHeaderResponse.renderOnDomReadyJavascript() to call tinyMCE.init. That all seems like it should work, but alas, it does not. If it weren't for plugging at this off and on for two weeks, I'd keep chugging, but I'm afraid I don't know enough to debug this. So if you choose to accept it, the mission is to download http:// tetsuko.autoscraper.com/files/testTCE.tgz and see if anything looks out of place. It's a large file only because it's got TinyMCE preloaded... there's only about 140 lines of code there. Any thoughts, information, RTFM, etc are gratefully accepted. Thanks! Brian - 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] 2 issues with RefreshingView : ERROR - RequestCycle - Index: 0 and submit button present too many times
I agree that the current modelisation is quite complex. Quickly, it's the following : my page has a form, let's call it form Form1. This form in fact inherits an Ajax form. This Ajax form add the Ajax submit button, an AjaxIndicator image and define the feedbackpanel. In Form1, I add two textfields with theirs borders and then a panel. This panel, called Panel1, contains a form and, added to this form, the RefreshingView. On the RefreshingView populateItem(...) I add two Labels and then the ActionPanel containing my 2 links. BTW, when the page renders for the first time, the row containing my ajax submit button is black. That's really weird since nowhere I've asked for it to be black... The added ajax submit buttons are added on a line above, one next to the other(s). Does it help you ? I'm going to dig deeper to see if I can do a quickstart for you to reproduce it (or to narrow my issue my removing non necessary stuff). Thanks again igor ZedroS - 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] Roadmap for wicket 2.0 users
Dear wicket developers, can you provide us wicket 2.0 users with a timeline for wicket 1.4? I remember that the discussion about constructor change, generics, models, and other things ended up wit 1. Backport everything from wicket 2.0 to wicket 1.3 (except generics = Java5) 2. Add generics to 1.3 and call it 1.4 Going to wicket 1.3 and dropping all generic support is no option for us. So we are still using wicket 2.0. The possible target for us ist wicket 1.4 and it would be nice to know when the starting shot for 1.4 will happen and when the home stretch for 1.4 will be passed. Stefan Lindner - 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] 2 issues with RefreshingView : ERROR - RequestCycle - Index: 0 and submit button present too many times
not really, its a complex hierarchy and if i was going to debug it i would have to recreate it myself. -igor On 4/10/07, ZedroS Schwart [EMAIL PROTECTED] wrote: I agree that the current modelisation is quite complex. Quickly, it's the following : my page has a form, let's call it form Form1. This form in fact inherits an Ajax form. This Ajax form add the Ajax submit button, an AjaxIndicator image and define the feedbackpanel. In Form1, I add two textfields with theirs borders and then a panel. This panel, called Panel1, contains a form and, added to this form, the RefreshingView. On the RefreshingView populateItem(...) I add two Labels and then the ActionPanel containing my 2 links. BTW, when the page renders for the first time, the row containing my ajax submit button is black. That's really weird since nowhere I've asked for it to be black... The added ajax submit buttons are added on a line above, one next to the other(s). Does it help you ? I'm going to dig deeper to see if I can do a quickstart for you to reproduce it (or to narrow my issue my removing non necessary stuff). Thanks again igor ZedroS - 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] Roadmap for wicket 2.0 users
On 4/10/07, Stefan Lindner [EMAIL PROTECTED] wrote: can you provide us wicket 2.0 users with a timeline for wicket 1.4? I Can't give any dates. We are busy with finalizing 1.3, if you want to track the progress, subscribe to the dev list at apache. Finalizing means two things: - graduate from the incubator to a top level project - backporting all trunk features (except jdk 1.5 stuff) and getting the release stable I think this will take a couple of weeks to stabilize, the graduation part is done in a separate effort (independent of the actual stability of the Wicket api and code base). When we have backported the necessary changes from trunk to 1.3 and we are satisfied with the resulting API, we'll issue a beta release. This will be a timeline of weeks. After that it is a matter of people using 1.3-beta and fixing bugs until some form of stability is achieved and the release is deemed good enough. Then release candidates will be cut, and finally the official 1.3 When the first bug fix release has been put out (1.3.1) and it doesn't die immediately (within a week or so) I imagine we will start on 1.4, 2.0 or 3.0 (whatever the version is for that release) and backport the JDK 1.5 stuff from trunk. If that has been done, my guess is that we will issue a 1.4-alpha release. From there on any dates/timelines will be different. Martijn -- 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 - 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] HEADS-UP Some renaming in Wicket Stuff
Due to the package renaming that occured in Apache Wicket (from wicket to org.apache.wicket), many projects in wicket-stuff (in branch 1.3) do not compile anymore. In order to get some benefit out of this somewhat chaotic change, it would be the right moment to do some renaming for the various WicketStuff projects. This is what happened to WicketStuff Dojo for instance: * packages renamed to org.wicketstuff.dojo * Maven artifacts renamed to group name org.wicketstuff and artifact name dojo like the Java package NOTE: Location in the SVN repo remains the same Your comments welcome, -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - 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] Roadmap for wicket 2.0 users
Can't give any dates. We are busy with finalizing 1.3, if you want to track the progress, subscribe to the dev list at apache. Finalizing means two things: - graduate from the incubator to a top level project - backporting all trunk features (except jdk 1.5 stuff) and getting the release stable Backporting can be tracked here: http://cwiki.apache.org/confluence/display/WICKET/Backporting+features+from+trunk Eelco - 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] Creating Entire Forms in Java Code Only?
After 40+ hours of more research, I did indeed find my style of coding - and it clicks. Page-based, component-based, object-oriented web interfaces driven by Java code with automatic html rendering. http://click.sourceforge.net/ Phil On 4/8/07, Eelco Hillenius [EMAIL PROTECTED] wrote: It sounds like Echo is more your style of coding. See http://www.nextapp.com/ Eelco - 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] Creating Entire Forms in Java Code Only?
After 40+ hours of more research, I did indeed find my style of coding - and it clicks. Page-based, component-based, object-oriented web interfaces driven by Java code with automatic html rendering. http://click.sourceforge.net/ Phil On 4/8/07, Eelco Hillenius [EMAIL PROTECTED] wrote: It sounds like Echo is more your style of coding. See http://www.nextapp.com/ Labeling it 'object oriented' imo is wrong: objects are stateful by definition. I wouldn't label Click OO, as it doesn't support automatic state management (which is one of the central concepts of Wicket). Anyway, cool that you found a framework you're happy with. What I like about Click is that it provides what looks like a clean programming model, and is more about Java programming than XML configuration. What I don't like about it is that it gives you the promise of OO coding, but stops half way. But well... I bet the people from Click would call that pragmatic :) It sure *does* look a lot better than most of the alternatives out there. Eelco Eelco - 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] Creating Entire Forms in Java Code Only?
After 40+ hours of more research, I did indeed find my style of coding - and it clicks. Page-based, ... Another thing I don't agree with is that page-orientation is something to aim for[1]. I believe a mixed model is more powerful[2]. There's a lot more that can be said about the different frameworks, but I think it can be summed up by saying that Click is primarily pragmatic and focussed on simplicity, whereas Wicket is focussed on providing a true OO programming model with clean separation of markup and logic. Imo, there's something to say for both. [1] http://www.nabble.com/Click-Rules%21%21%21-tf3555269.html [2] http://chillenious.wordpress.com/2006/07/16/on-page-navigation/ - 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