Re: How to deal with IE bug/feature 'return form submit' in Wicket?
Hi Jeremy, thanks very much for helping. I went with the first suggestion which seems to work fine. The code is essentially now: = new Form() { add(new AjaxButton() { void onSubmit() { if(!form.isSubmitted()) { onSubmit(); } } void onSubmit() { IRequestTarget iTarget = RequestCycle.get().getRequestTarget(); AjaxRequestTarget target= null; if (iTarget instanceof AjaxRequestTarget) { target = (AjaxRequestTarget) iTarget; } //logic.. } } Looks like I'm going to have to go through all our forms and apply this pattern where we have ajaxbuttons or ajaxlinks. thanks On Wed, Feb 25, 2009 at 7:47 PM, Jeremy Thomerson jer...@wickettraining.com wrote: Actually, thinking a little more - rather than disabling the return key, could you do something like this in JS (pseudo code): form onsubmit=ajaxSubmitButton.submit(); return false; blah blah blah /form Then when the return key was pressed, the form would submit, and if they have JS, it will use the ajaxsubmitbutton and stop the normal form submission? And if they don't have JS, it will just work as a normal form. -- Jeremy Thomerson http://www.wickettraining.com On Wed, Feb 25, 2009 at 12:45 PM, Jeremy Thomerson jer...@wickettraining.com wrote: This probably isn't the best way, but you could possibly move all of your onSubmit code to the form's on submit, including the request target stuff. Just do RequestCycle.get().getRequestTarget() (or there maybe AjaxRequestTarget.get() - I can't remember). That's not a true fix but at least it gets rid of the duplicate code issue. Someone else may have a suggestion on how to do a real fix. -- Jeremy Thomerson http://www.wickettraining.com On Wed, Feb 25, 2009 at 11:57 AM, Wayne Pope waynemailingli...@googlemail.com wrote: Hi, I have a form that has a single text field and an ajax button. In FF when I click on the button or hit return key the onSumit of the ajaxButton is called. In IE when I click on the button the onSubmit of the ajaxButton is called. However In IE (as you may know) if I hit the return key it submits the form and the form's onSubmit method is be called instead of the ajaxButton so the page just refreshes. If I add the onSubmit to the form, in FF if I click on the button , first the onSubmit of the form is called, then the ajaxButton onSubmit, and we end up with double the submits Aside from disabling the return key via javascript - not really an option as its just bad usability for us - any suggestions on how to handle this in a more elegant way? For the moment I've used form.isSubmitted() in the ajaxButton onSubmit, but it means I have to duplicate some of the code between the 2 onSubmits to control ajaxrequestTarget . thanks Wayne www.glasscubes.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to deal with IE bug/feature 'return form submit' in Wicket?
Just looking through some of our forms and this isn;t going to work where we have 2 ajaxbuttons in the same form. I suppose we'll need to separate the forms or something now. On Thu, Feb 26, 2009 at 9:06 AM, Wayne Pope waynemailingli...@googlemail.com wrote: Hi Jeremy, thanks very much for helping. I went with the first suggestion which seems to work fine. The code is essentially now: = new Form() { add(new AjaxButton() { void onSubmit() { if(!form.isSubmitted()) { onSubmit(); } } void onSubmit() { IRequestTarget iTarget = RequestCycle.get().getRequestTarget(); AjaxRequestTarget target= null; if (iTarget instanceof AjaxRequestTarget) { target = (AjaxRequestTarget) iTarget; } //logic.. } } Looks like I'm going to have to go through all our forms and apply this pattern where we have ajaxbuttons or ajaxlinks. thanks On Wed, Feb 25, 2009 at 7:47 PM, Jeremy Thomerson jer...@wickettraining.com wrote: Actually, thinking a little more - rather than disabling the return key, could you do something like this in JS (pseudo code): form onsubmit=ajaxSubmitButton.submit(); return false; blah blah blah /form Then when the return key was pressed, the form would submit, and if they have JS, it will use the ajaxsubmitbutton and stop the normal form submission? And if they don't have JS, it will just work as a normal form. -- Jeremy Thomerson http://www.wickettraining.com On Wed, Feb 25, 2009 at 12:45 PM, Jeremy Thomerson jer...@wickettraining.com wrote: This probably isn't the best way, but you could possibly move all of your onSubmit code to the form's on submit, including the request target stuff. Just do RequestCycle.get().getRequestTarget() (or there maybe AjaxRequestTarget.get() - I can't remember). That's not a true fix but at least it gets rid of the duplicate code issue. Someone else may have a suggestion on how to do a real fix. -- Jeremy Thomerson http://www.wickettraining.com On Wed, Feb 25, 2009 at 11:57 AM, Wayne Pope waynemailingli...@googlemail.com wrote: Hi, I have a form that has a single text field and an ajax button. In FF when I click on the button or hit return key the onSumit of the ajaxButton is called. In IE when I click on the button the onSubmit of the ajaxButton is called. However In IE (as you may know) if I hit the return key it submits the form and the form's onSubmit method is be called instead of the ajaxButton so the page just refreshes. If I add the onSubmit to the form, in FF if I click on the button , first the onSubmit of the form is called, then the ajaxButton onSubmit, and we end up with double the submits Aside from disabling the return key via javascript - not really an option as its just bad usability for us - any suggestions on how to handle this in a more elegant way? For the moment I've used form.isSubmitted() in the ajaxButton onSubmit, but it means I have to duplicate some of the code between the 2 onSubmits to control ajaxrequestTarget . thanks Wayne www.glasscubes.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
How to send serialize/byteArrayOutput stream from wicket page
Hello, How can i send a serialize object using byteArrayOutput stream in wicket page. here is my code: public class BridgeIndex extends WebPage { public BridgeIndex() { final HttpServletResponse response = getWebRequestCycle().getWebResponse().getHttpServletResponse(); ObjectOutputStream out = null; final ByteArrayOutputStream byteObj = new ByteArrayOutputStream(); final BridgeObject bObj = new BridgeObject(); bObj.setPassword(123456); bObj.setUsername(test); try { out = new ObjectOutputStream(byteObj); log.info(Serializing the object...); // serialize the object out.writeObject(bObj); response.setHeader(Cache-Control, no-store); response.setHeader(Pragma, no-cache); response.setContentType(application/octet-stream); final ServletOutputStream outstream = response.getOutputStream(); outstream.write(byteObj.toByteArray()); outstream.flush(); outstream.close(); } catch (MalformedURLException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } } } ...i get this error ERROR - WicketFilter - closing the buffer error java.lang.IllegalStateException: STREAM at org.mortbay.jetty.Response.getWriter(Response.java:586) at org.apache.wicket.protocol.http.WebResponse.write(WebResponse.java:355) at org.apache.wicket.protocol.http.BufferedWebResponse.close(BufferedWebResponse.java:73) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:371) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:295) ...i want to access user object to the separate application..tnx. Thanks a lot. Cheers. -- View this message in context: http://www.nabble.com/How-to-send-serialize-byteArrayOutput-stream-from-wicket-page-tp0804p0804.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Quickstart for jar
Nope, but it is really easy to modify the default quickstart archetype to do your bidding: packagingwar/packaging - packagingjar/packaging Martijn On Thu, Feb 26, 2009 at 6:04 AM, Anton Veretennikov anton.veretenni...@gmail.com wrote: Hi, Do we have jar quickstart with resources filter added by default? -- Tony. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to send serialize/byteArrayOutput stream from wicket page
I think the wicket way to do this is using a org.apache.wicket.markup.html.WebResource (or any of its subclasses) instead of a WebPage On Thu, Feb 26, 2009 at 10:45 AM, freak182 eman.noll...@gmail.com wrote: Hello, How can i send a serialize object using byteArrayOutput stream in wicket page. here is my code: public class BridgeIndex extends WebPage { public BridgeIndex() { final HttpServletResponse response = getWebRequestCycle().getWebResponse().getHttpServletResponse(); ObjectOutputStream out = null; final ByteArrayOutputStream byteObj = new ByteArrayOutputStream(); final BridgeObject bObj = new BridgeObject(); bObj.setPassword(123456); bObj.setUsername(test); try { out = new ObjectOutputStream(byteObj); log.info(Serializing the object...); // serialize the object out.writeObject(bObj); response.setHeader(Cache-Control, no-store); response.setHeader(Pragma, no-cache); response.setContentType(application/octet-stream); final ServletOutputStream outstream = response.getOutputStream(); outstream.write(byteObj.toByteArray()); outstream.flush(); outstream.close(); } catch (MalformedURLException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } } } ...i get this error ERROR - WicketFilter - closing the buffer error java.lang.IllegalStateException: STREAM at org.mortbay.jetty.Response.getWriter(Response.java:586) at org.apache.wicket.protocol.http.WebResponse.write(WebResponse.java:355) at org.apache.wicket.protocol.http.BufferedWebResponse.close(BufferedWebResponse.java:73) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:371) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:295) ...i want to access user object to the separate application..tnx. Thanks a lot. Cheers. -- View this message in context: http://www.nabble.com/How-to-send-serialize-byteArrayOutput-stream-from-wicket-page-tp0804p0804.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to send serialize/byteArrayOutput stream from wicket page
you cant do it like that look at ResourceStreamRequestTarget what you want is a combination of that and AbstractRestartResponseException so you must set the RequestTarget in the RequestCycle and then throw an AbstractRestartResponseException (just like RestartResponseException works) johan On Thu, Feb 26, 2009 at 10:45, freak182 eman.noll...@gmail.com wrote: Hello, How can i send a serialize object using byteArrayOutput stream in wicket page. here is my code: public class BridgeIndex extends WebPage { public BridgeIndex() { final HttpServletResponse response = getWebRequestCycle().getWebResponse().getHttpServletResponse(); ObjectOutputStream out = null; final ByteArrayOutputStream byteObj = new ByteArrayOutputStream(); final BridgeObject bObj = new BridgeObject(); bObj.setPassword(123456); bObj.setUsername(test); try { out = new ObjectOutputStream(byteObj); log.info(Serializing the object...); // serialize the object out.writeObject(bObj); response.setHeader(Cache-Control, no-store); response.setHeader(Pragma, no-cache); response.setContentType(application/octet-stream); final ServletOutputStream outstream = response.getOutputStream(); outstream.write(byteObj.toByteArray()); outstream.flush(); outstream.close(); } catch (MalformedURLException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } } } ...i get this error ERROR - WicketFilter - closing the buffer error java.lang.IllegalStateException: STREAM at org.mortbay.jetty.Response.getWriter(Response.java:586) at org.apache.wicket.protocol.http.WebResponse.write(WebResponse.java:355) at org.apache.wicket.protocol.http.BufferedWebResponse.close(BufferedWebResponse.java:73) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:371) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:295) ...i want to access user object to the separate application..tnx. Thanks a lot. Cheers. -- View this message in context: http://www.nabble.com/How-to-send-serialize-byteArrayOutput-stream-from-wicket-page-tp0804p0804.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
WebMarkupContainer and AjaxSelfUpdatingTimerBehavior
Hi, I want to refresh every 5s my 4 listviews. So I have use AjaxSelfUpdatingTimerBehavior with them. But it was not working, the solution that I have found here, is to put their in a WebMarkupContainer. Now it's working for resfreshing... But every 5 secondes I have 4 new listviews adding to the 4 firsts and 4 more and 4 more... So what can I do to avoid this behavior? Thank you for your help -- View this message in context: http://www.nabble.com/WebMarkupContainer-and-AjaxSelfUpdatingTimerBehavior-tp1606p1606.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
exception on opening a new window
hi, i have this exception when i open my application in a new tab on my browser: java.lang.ClassCastException: cannot assign instance of org.apache.wicket.proxy.$Proxy17 to field com.asf.crm.portal.gui.AdvancedSearchPanel.crmPortalService of type com.asf.crm.portal.service.CrmPortalService in instance of com.asf.crm.portal.gui.AdvancedSearchPanel at java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(ObjectStreamClass.java:2004) at java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java:1184) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1914) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305) at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1908) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348) at org.apache.wicket.util.lang.Objects.cloneObject(Objects.java:521) at org.apache.wicket.markup.html.WebPage.onNewBrowserWindow(WebPage.java:308) at com.asf.crm.portal.gui.CrmPortalPage.onNewBrowserWindow(CrmPortalPage.java:229) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:183) at org.apache.wicket.request.target.component.BookmarkableListenerInterfaceRequestTarget.processEvents(BookmarkableListenerInterfaceRequestTarget.java:155) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1171) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1248) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1349) at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:387) at org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:124) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) at org.mortbay.http.HttpContext.handle(HttpContext.java:1807) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525) at org.mortbay.http.HttpContext.handle(HttpContext.java:1757) at org.mortbay.http.HttpServer.service(HttpServer.java:879) at org.mortbay.http.HttpConnection.service(HttpConnection.java:789) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:806) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:331) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:520) I am currently using wicket 1.3.4. I also have tried adding this to my WebApplication init() method: Objects.setObjectStreamFactory(new IObjectStreamFactory.DefaultObjectStreamFactory()); because it was recommended here:http://www.mail-archive.com/wicket-u...@lists.sourceforge.net/msg25325.html . If you have any ideas regarding this issue, please let me know. Thanks a lot, Vlad - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: GSoC ideas for 09
btw.. are any of the core devs interested or willing to mentor? Once again it seems a lame excuse to say you're too busy or the various other things when this could both give the project good pr and possibly add more people who contribute to the framework. ./C - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: GSoC ideas for 09
It seems like a lame proposition to coerce us to do your bidding just because you think it is a good idea. You're not the one to tell us how to spend our personal time, or whether the choices we make on how to spend our own time is lame or not. There's a Wicket Stuff project where anyone can commit, it is dead simple to setup a public github account, or create a google code project for any GSoC student and their mentor. There's no reason why *YOU* can't mentor a student on any project *YOU* think is a valid asset, and spend *YOUR* time on it. Martijn On Thu, Feb 26, 2009 at 12:00 PM, C. Bergström cbergst...@netsyncro.com wrote: btw.. are any of the core devs interested or willing to mentor? Once again it seems a lame excuse to say you're too busy or the various other things when this could both give the project good pr and possibly add more people who contribute to the framework. ./C - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: GSoC ideas for 09
Martijn Dashorst wrote: Martijn Thanks Martijn.. You've shown me what a good catalyst and community leader you finally are.. It's not about my bidding.. I push for gsoc.. my points are valid.. others have brought up other good points.. and yet when I push in general you make it personal. :) What's more is if you were to even spend a short while and read or understand the gsoc process you'd realize it's not something where you just fork and try to get it sponsored.. http://groups.google.com/group/google-summer-of-code-announce/web/notes-on-organization-selection-criteria I'd happily have mentored, but wasn't sure how the core devs felt about that.. (guess my question is answered) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket + iframe Session Question
Arent there a InternalFrame or something already in wicket? I think this has been discussed before, search with nabble 2009/2/26 freak182 eman.noll...@gmail.com Hello, How can I get the session from my main application to the application in the iframe? here is the scenario: 1. I have a large wicket application then we agree to separate the reporting from main application. 2. The said report application is also a wicket and jasper but embedded into iframe. eg. class TestIframePage extends WebPage { publiuc TestIframePage() { final String reportServerUrl = http://localhost:8282/reports?reportname=;; final StringBuilder build = new StringBuilder(); build.append(reportServerUrl).append(getReportName()); final WebMarkupContainer wmc = new WebMarkupContainer(wmc); wmc.add(new SimpleAttributeModifier(src,build.toString())); add(wmc); } @Override public String getReportName() { return reportName; } } ...and the html file is. TestIframePage.html html head titleReports/title /head body iframe wicket:id=wmc width=500 height=500 /iframe /body /html 3. As of now it's working fine...now the problem is I want the main application session will be passed to report application in the iframe. So that i can authenticate the user from the main application. You, might said that I could pass using parameter but we already discuss that but for security reason we cannot pass it through paramater. I have to securely get the session or paramaters from main application to iframe application. Any idea. Thanks a lot. Cheers. -- View this message in context: http://www.nabble.com/Wicket-%2B-iframe-Session-Question-tp22218613p22218613.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Feedback message on AJAX submit setResponsePage()
Hi, I have the following use case: A form contains an AJAX submit button. The onSubmit() looks like this: public void onSubmit(AjaxRequestTarget target, Form? inviteForm) { if (..some case...) { info(This does not show up); setResponsePage(getPage()); } else { info(This shows up); target.addComponent(feedback); } } The problem is that the feedback message in the first case does not show up because I am not updating a single component but refreshing the whole page (using setResponsePage()). In this case all component messages are cleaned before the page is redered again. This happens in WebSession.cleanupFeedbackMessages(). One solution would be to use session messages (e.g. using getSession().info()). Session messages are not cleaned up the same way and the message shows up. The problem with this approach is that on my page I have multiple FeedbackPanels for different components. Therefore the message apears everywhere. There is no way to distinguish Session messages and set an IFeedbackMessageFilter on the different FeedbackPanels. So my question is: Is there a way to associate a feedback message to a specific FeedbackPanel when doing an AJAX submit and using setRespnsePage()? Thanks, Conrad
Re: GSoC ideas for 09
Once again it seems a lame excuse to say you're too busy or the various other things when this could both give the project good pr and possibly add more people who contribute to the framework. I've found that the best way to convince people does not involve insulting the person you're trying to convince. There is merit to your argument of good PR and possible new contributors, but let's not forget that the people working on Wicket do so in their spare time - and you know that there are a lot of things in life that require time. It is fully understandable that what little time the developers have to spend on Wicket, they'd rather use that time to improve the framework and fix bugs. Mentoring a SoC student takes a considerable amount of time and concentration, and while some students may blossom on their own, a lot of them need guidance on a regular basis - this requires a massive investment of spare time that could otherwise have been used for improving Wicket. A mentor that is only half interested will not be an advantage to the student, and be bad PR rather than good - you need mentors that are willing, good, know the framework well and have loads of time - the last of which does not apply to a lot of Wicket Devs. Calling it lame doesn't change anything about it, but it does agitate the developers, which doesn't exactly help your cause. - Jeroen
Re: Wicket + iframe Session Question
I think InlineFrame is the guy... On Thu, Feb 26, 2009 at 12:47 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: Arent there a InternalFrame or something already in wicket? I think this has been discussed before, search with nabble 2009/2/26 freak182 eman.noll...@gmail.com Hello, How can I get the session from my main application to the application in the iframe? here is the scenario: 1. I have a large wicket application then we agree to separate the reporting from main application. 2. The said report application is also a wicket and jasper but embedded into iframe. eg. class TestIframePage extends WebPage { publiuc TestIframePage() { final String reportServerUrl = http://localhost:8282/reports?reportname=;; final StringBuilder build = new StringBuilder(); build.append(reportServerUrl).append(getReportName()); final WebMarkupContainer wmc = new WebMarkupContainer(wmc); wmc.add(new SimpleAttributeModifier(src,build.toString())); add(wmc); } @Override public String getReportName() { return reportName; } } ...and the html file is. TestIframePage.html html head titleReports/title /head body iframe wicket:id=wmc width=500 height=500 /iframe /body /html 3. As of now it's working fine...now the problem is I want the main application session will be passed to report application in the iframe. So that i can authenticate the user from the main application. You, might said that I could pass using parameter but we already discuss that but for security reason we cannot pass it through paramater. I have to securely get the session or paramaters from main application to iframe application. Any idea. Thanks a lot. Cheers. -- View this message in context: http://www.nabble.com/Wicket-%2B-iframe-Session-Question-tp22218613p22218613.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
[AjaxTabbedPanel] Switching between form and result tab
Hi, I have an AjacTabbedPanel with two tabs. The first tab is a form which, when submitted, show the result on the second tabs. So far, everything's fine. I want to keep the input from the form after the submit so that the user can come back to the first tab and have a look at what the crierias was and maybe to modify them to make another request. But I need to be able switch back to the second tab and keep records of the result if the user didn't resubmit the form. I've search through the mailing list and the solution that come up most often is to override newLink to return an ajaxSubmitLink. But I don't think that's the solution for me since the form is only on the first panel. Cheers, Valery Ce message est à l'attention exclusive des destinataires désignés. Il peut contenir des informations confidentielles. Si vous n'êtes pas destinataire du message, merci d'en avertir immédiatement l'expéditeur et de détruire ce message. Le contenu de ce message ne pourrait engager la responsabilité de Steria que s'il a été émis par une personne dûment habilitée agissant dans le strict cadre de ses fonctions et à des fins non étrangères à ses attributions. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne saurait être engagée pour tout dommage résultant d'un virus transmis. This message is intended exclusively for the designated addressee. It may contain confidential material. If you are not the correct addressee, please notify the sender immediately and destroy the message. The content of this message will engage the responsibility of Steria only if it has been sent by an authorized person acting in the strict scope of his functions and for purposes that are related to his competence. Although reasonable efforts have been made to keep this transmission free from viruses, the sender will not be liable for damages caused by a transmitted virus.
Re: WebMarkupContainer and AjaxSelfUpdatingTimerBehavior
I really need your help. I have replaced the WebMarkupContainer by a Panel. I use the methode addOrReplace (Component child) in my panel. When I arrived in the page, everybody is fine but when it refreshs it, It adds one time in more the panel in the top of my page!! My Page : http://img408.imageshack.us/img408/6828/testl.jpg -- View this message in context: http://www.nabble.com/WebMarkupContainer-and-AjaxSelfUpdatingTimerBehavior-tp1606p4213.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: GSoC ideas for 09
I did some reading and found that a mentoring organization for the GSoC is considered A group running an active free/open source software project. That seems to imply a core committer would need to be involved. See: http://code.google.com/opensource/gsoc/2009/faqs.html#0_1_org_is_47611255748869674_1 The idea of Wicket participating in GSoC interests me. I work at Georgia Tech Research Institute, which is a professional research arm of Georgia Institute of Technology (Georgia Tech). We are located on the edge of the Georgia Tech campus in Atlanta, Georgia. We have about 10 co-op students from Georgia Tech working for us each semester. We use all open source software. We have just started using Wicket, Spring, and Brix (CMS based on Wicket and Jackrabbit) on a new project that I'm driving. I have two co-op students helping me out right now. We have existing web applications that use JEE, Struts, YUI, and Ext JS, which we deploy to Tomcat on Red Hat Linux. We plan to migrate those existing applications to Wicket over the next couple of years. Also, we are hiring: http://jobview.monster.com/getjob.aspx?JobID=78669508 Considering our position, I'm wondering if we could be involved in this somehow. Especially if it benefited us, it might be an easy sell to get some of our engineers/scientists involved. -Richard On Thu, Feb 26, 2009 at 6:12 AM, Martijn Dashorst martijn.dasho...@gmail.com wrote: It seems like a lame proposition to coerce us to do your bidding just because you think it is a good idea. You're not the one to tell us how to spend our personal time, or whether the choices we make on how to spend our own time is lame or not. There's a Wicket Stuff project where anyone can commit, it is dead simple to setup a public github account, or create a google code project for any GSoC student and their mentor. There's no reason why *YOU* can't mentor a student on any project *YOU* think is a valid asset, and spend *YOUR* time on it. Martijn On Thu, Feb 26, 2009 at 12:00 PM, C. Bergström cbergst...@netsyncro.com wrote: btw.. are any of the core devs interested or willing to mentor? Once again it seems a lame excuse to say you're too busy or the various other things when this could both give the project good pr and possibly add more people who contribute to the framework. ./C - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: GSoC ideas for 09
The words of C. Bergstrom may have been poorly chosen, but he seems to have the same goal of wanting Wicket to succeed and grow in popularity. Providing harsh responses to users that, despite poor communication, are otherwise excited about your project does not help to grow your community or get others involved. This is not the first time I've been surprised by the harshness of responses from Wicket core committers. I hope these don't have the effect of pushing developers away. On Thu, Feb 26, 2009 at 7:27 AM, Jeroen Steenbeeke j.steenbeeke.ml@ gmail.com wrote: Once again it seems a lame excuse to say you're too busy or the various other things when this could both give the project good pr and possibly add more people who contribute to the framework. I've found that the best way to convince people does not involve insulting the person you're trying to convince. There is merit to your argument of good PR and possible new contributors, but let's not forget that the people working on Wicket do so in their spare time - and you know that there are a lot of things in life that require time. It is fully understandable that what little time the developers have to spend on Wicket, they'd rather use that time to improve the framework and fix bugs. Mentoring a SoC student takes a considerable amount of time and concentration, and while some students may blossom on their own, a lot of them need guidance on a regular basis - this requires a massive investment of spare time that could otherwise have been used for improving Wicket. A mentor that is only half interested will not be an advantage to the student, and be bad PR rather than good - you need mentors that are willing, good, know the framework well and have loads of time - the last of which does not apply to a lot of Wicket Devs. Calling it lame doesn't change anything about it, but it does agitate the developers, which doesn't exactly help your cause. - Jeroen
Re: AjaxSelfUpdatingTimerBehavior and ModalWindow
I post my solution just in case someone else finds it useful. I've created a copy of AbstractAjaxTimerBehavior and added the methods in AjaxSelfUpdatingTimerBehavior. Then I added a start method: public final void start(final AjaxRequestTarget target) { stopped = false; target.getHeaderResponse().renderOnLoadJavascript( getJsTimeoutCall(updateInterval)); } In the onClick() of the AjaxLink that opens the ModalWindow, I call behavior.stop(), then in the close of the ModalWindow, I call behavior.start(target). Seems to be working ok so far. Hope this helps, Daniel dtoffe wrote: Hi, Is there an easy way of stopping an AjaxSelfUpdatingTimerBehavior when a ModalWindow is opened, and restarting it again when the modal is closed ?? AbstractAjaxTimerBehavior provides a stop() method, but not a (re)start, I would like to know if it is possible to get the desired functionality only by overriding some methods, or if I need to do a customized rewrite of that class. tia, Daniel -- View this message in context: http://www.nabble.com/AjaxSelfUpdatingTimerBehavior-and-ModalWindow-tp22202102p5064.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: GSoC ideas for 09
While I am perfectly capable of working on Wicket in my spare time without being rewarded, I find it way out of line to characterize the way I spend my own time as lame when such that doesn't fit the criteria of anyone. Being characterized as lame because we are engaged in other things, such as family, preparing Wicket presentations, building releases, fixing bugs, reading books, playing games, earning money, eating, sleeping, feeding our children, is utterly uncalled for (though sleeping might be considered lame). Christopher is very capable of writing English prose, so I take that at face value. It's not that someone with a poor knowledge of English wrote this. Armchair volunteerism is very easy to do: it doesn't cost any time, and you don't commit yourself to anything. If anyone wants to pursue GSoC, they're very welcome to call themselves Vice President of Wicket Stuff and enlist as Mentor etc. If any of the other core committers thinks a GSoC is ok, I'm fine with that too. However, given that we're struggling to get all the bugs fixed in 1.3.6 and 1.4, I find it hard to believe that anyone will have the time and energy to do the mentoring as well. I don't have that time and energy. Martijn On Thu, Feb 26, 2009 at 3:03 PM, Richard Allen richard.l.al...@gmail.com wrote: The words of C. Bergstrom may have been poorly chosen, but he seems to have the same goal of wanting Wicket to succeed and grow in popularity. Providing harsh responses to users that, despite poor communication, are otherwise excited about your project does not help to grow your community or get others involved. This is not the first time I've been surprised by the harshness of responses from Wicket core committers. I hope these don't have the effect of pushing developers away. On Thu, Feb 26, 2009 at 7:27 AM, Jeroen Steenbeeke j.steenbeeke.ml@ gmail.com wrote: Once again it seems a lame excuse to say you're too busy or the various other things when this could both give the project good pr and possibly add more people who contribute to the framework. I've found that the best way to convince people does not involve insulting the person you're trying to convince. There is merit to your argument of good PR and possible new contributors, but let's not forget that the people working on Wicket do so in their spare time - and you know that there are a lot of things in life that require time. It is fully understandable that what little time the developers have to spend on Wicket, they'd rather use that time to improve the framework and fix bugs. Mentoring a SoC student takes a considerable amount of time and concentration, and while some students may blossom on their own, a lot of them need guidance on a regular basis - this requires a massive investment of spare time that could otherwise have been used for improving Wicket. A mentor that is only half interested will not be an advantage to the student, and be bad PR rather than good - you need mentors that are willing, good, know the framework well and have loads of time - the last of which does not apply to a lot of Wicket Devs. Calling it lame doesn't change anything about it, but it does agitate the developers, which doesn't exactly help your cause. - Jeroen -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Application.CONFIGURATION
But don't you run the risk of deploying a development version to production by mistake? If you simple start the container in production with the runtime flag, it will be the same WAR (EAR) for both... no rebuild after testing. Anyway, I'm sure it works :) - Brill On 24-Feb-09, at 12:26 PM, Eyal Golan wrote: Brill, What I did is exactly so we don't need to change the source for dev / prod environments. When we develop we use the jetty plugin so we set hard-coded the environment to DEVELOPMENT. The production is a WAR (actually an EAR) file. So the web.xml has configuration set to deployment. That way we don't need to worry. Igor: got your point ... Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Tue, Feb 24, 2009 at 7:03 PM, Brill Pappin br...@pappin.ca wrote: Already answered the static field thing... but just curious why you think its better to have modify your source tree just to switch from dev to prod? Wouldn't your dev/qa/deploy cycle be simpler if you didn't have to modify the source? - Brill pappin On 24-Feb-09, at 10:49 AM, Eyal Golan wrote: Thanks Marcelo and James. I still prefer the solution we have come to: In the web.xml put deployment and in the Jetty plugin (StartWebServer) put the development. My question was why Application.java doesn't have 'wicket.configuration' as a static field. Wouldn't it be nice? Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Tue, Feb 24, 2009 at 3:08 PM, Marcelo Morales marcelomorales.name@ gmail.com wrote: I am using tomcat. I just append - Dwicket.configuration=development on the start script. Perhaps you can append it to the jetty start as well. On Tue, Feb 24, 2009 at 8:35 AM, Eyal Golan egola...@gmail.com wrote: Hi, It's been a long time since I've written in this mailing list. Here's my question: I was looking for a way to set the mode to DEVELOPMENT in the Jetty starter while setting DEPLOYMENT in the web.xml. I encountered the following thread: http://www.nabble.com/dummy-question%2C-how-to-set-wicket-in-Deloyment-mode--td13364304.html#a13364498 In there there is this line: System.setProperty(wicket.configuration, development); I am using Wicket 1.3.4 Wicket Application class has a static filed called CONFIGURATION, which is without the 'wicket' part. Why doesn't it have a static 'wicket.configuration' ? Wouldn't it be better? Thanks Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary -- Marcelo Morales - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket Portlets on WAS 7.5
Hi, We are trying to run the echo wicket example application as a wicket portlet on WAS 7.5. We are able to load the echo application as a portlet but when we enter any text and submit the form, the form doesn't gets submitted and the page always gets loaded with the default echo text. We are using the same echo example application given in the wicket examples and we are using the wicket-1.4.2-SNAPSHOT versions for the portlet JSR 286 support. Has the 286 support tested on WAS? Are there known issues? The Wicket documentation mentions that we need to use WicketFilter instead of WicketServlet, but when we run the wicket web application in WAS, the application doesn't run with the WicketFilter. we need to change it to WicketServlet to make it run. do Wicket Portlets also need the WicketServlet configuration? Where can we find more documentation on using Wicket for its Portlet 2.0 support? Is there anything wrong in the following configuration? the web.xml configuration filter filter-nameEchoWicketFilter/filter-name filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class init-param param-nameportletOnlyFilter/param-name param-valuetrue/param-value /init-param init-param param-namedetectPortletContext/param-name param-valuetrue/param-value /init-param init-param param-namefilterMappingUrlPattern/param-name param-value/echo/*/param-value /init-param init-param param-nameapplicationClassName/param-name param-valueorg.apache.wicket.examples.echo.EchoApplication /param-value /init-param /filter filter-mapping filter-nameEchoWicketFilter/filter-name url-pattern/echo/*/url-pattern dispatcherREQUEST/dispatcher dispatcherINCLUDE/dispatcher /filter-mapping and the portlet.xml configuration is as below. portlet descriptionTrivial input form./description portlet-nameEchoApplication/portlet-name display-nameecho/display-name portlet-classorg.apache.wicket.protocol.http.portlet.WicketPortlet/portlet-class init-param namewicketFilterPath/name value/echo/value /init-param supports mime-type*/*/mime-type portlet-modeVIEW/portlet-mode /supports portlet-info titleWicket Echo Example/title keywordsWicket/keywords /portlet-info /portlet Thanks, Sunil. -- View this message in context: http://www.nabble.com/Wicket-Portlets-on-WAS-7.5-tp7452p7452.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: What IDE best fits with Wicket?
I don't think we're talking about the same plugin then (although you seem to be calling it the same thing)... I'm referring to: http://m2eclipse.codehaus.org/ It's the *only* one I've found that *actually works* properly, particularly for larger projects... although I run the dev version so I'm not sure how well the released version is working at this moment. Of course I could simply go back to the console and use the maven plugin to generate the eclipse project files, but I find the plugin to be light-years ahead in maintaining a clean build env. I guess people's experience with various tools also depends a lot on *how* they work not just what they work with :) - Brill Pappin On 24-Feb-09, at 12:38 PM, Martijn Dashorst wrote: m2eclipse is absolutely worthless for anything beyond a quickstart. It is constantly reparsing poms, grinding eclipse to a halt. It failed to generate the right project dependencies for our multimodule project that consists of 2 multimodule child projects. It failed miserably to uninstall, needing me to axe my eclipse installation. In short: my experience (and that of my co-workers) with m2eclipse is that it is far from ready for prime time. Martijn On Tue, Feb 24, 2009 at 5:55 PM, Brill Pappin br...@pappin.ca wrote: I should add something about the Eclipse maven plugins... don't go for the official eclipse Q4 plugin... use the Maven Integration 4 Eclipse plugin (and actually the development version if your jiggy with it, it works and gets updated/fixed way more often). If your on Netbeans, I think Maven will generate Netbeans project files for you as well (it will do so for eclipse), so you could actually flip back and forth if you wanted. - Brill Pappin On 23-Feb-09, at 5:19 PM, Pierre Goupil wrote: +1, I like Wicket Bench. And with M2Eclipse, you have the full sources JavaDoc just by adding Wicket as a dependency, which is very convenient. But don't expect Wicket Bench to do too much, it's just a small, useful tool. Pierre Hi, I use Eclipse with Wicket Bench plugin and it works very fine. -- Sans amis était le grand maître des mondes, Eprouvait manque, ce pour quoi il créa les esprits, Miroirs bienveillants de sa béatitude. Mais au vrai, il ne trouva aucun égal, Du calice du royaume total des âmes Ecume jusqu'à lui l'infinité. (Schiller, l'amitié) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
LocaleDropDown does not switch locale anymore when deployed on server
Hi, we are using the LocaleDropDown component mentioned in Wicket in Action. While it works on the local machine, it does not when deployed on our server. We need to switch between German and English. German works on my local machine, on the server it doesn't. Any ideas? Roman - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: What IDE best fits with Wicket?
you can mix Ant and Maven easily with the antrun plugin. another option is to use the inline maven goal for the war plugin which I think will allow you to edit the HTML in place. Your issue it certainly not a new one... most of the very good designers i know don't even want to know how to run a build let alone understand one. Wicket actually helps there, but as you get more complex and you start breaking up the components into their separate HTML files, the designers environemnt starts to break down. hard problem... - Brill On 24-Feb-09, at 8:18 PM, Eduardo Nunes wrote: I deal directly with HTML coders and I want to bring to them an easy of use project build / run. I don't want to be called every time a new HTML join to the project team because he doesn't have the setup of the project. I think that maven help me a lot with it but I'm a little bit afraid of the build, for example: A HTML coder change some HTML, he needs to re-build the entire system to see the change, it isn't a good thing. Is it possible to define something on maven to just copy the HTML files to the deployment directory? I wondering to use ant as build because with it I have all flexibility necessary to do this kind of thing. What is your opinion? Thanks, Eduardo S. Nunes On Tue, Feb 24, 2009 at 3:17 PM, Marcelo Morales marcelomorales.n...@gmail.com wrote: On Tue, Feb 24, 2009 at 12:55 PM, Brill Pappin br...@pappin.ca wrote: If your on Netbeans, I think Maven will generate Netbeans project files for you as well (it will do so for eclipse), so you could actually flip back and forth if you wanted. Netbeans does NOT need any other project files. It just need the pom.xml. After personalizing, you'll might find a couple of extra files like nbactions.xml, profiles.xml, that you can safely ignore on your SCM. You can checkout the wicket source from SVN and just open it up with netbeans. Nothing else is necessary -- Marcelo Morale - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
need some help with why a setResponsePage renders twice in a custom component
I've got a custom component based on the TabPanel where instead of updating the panel content it actually calls a setResponsePage(Page). However after setting the first tab, a click on any other tab renders the new page just fine except that the page for tab 0 is also rendered, and I mean the entire HTML template not just the body so i end up with html.../htmlhtml.../html in the response. in case your wondering why, this is used with a inherited page template model so the tabs are in the base page. I'll include the source here for anyone that wants to take a look, because I'm stumped after several hours today. As will be apparent, its a copy of the TabPanel classes with mods to the ITab etc to handle pages (once/if it works, it can be added to the base wicket lib if people think it's useful). All thats missing to to get the darn thing not to render zero'th tab at the same time. - Brill - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: need some help with why a setResponsePage renders twice in a custom component
Of course, no sooner do I post this, i find the problem. Since I dumped code on you folks, here is the working replacement in case anyone has a need for this. - Brill On 26-Feb-09, at 11:38 AM, Brill Pappin wrote: I've got a custom component based on the TabPanel where instead of updating the panel content it actually calls a setResponsePage(Page). However after setting the first tab, a click on any other tab renders the new page just fine except that the page for tab 0 is also rendered, and I mean the entire HTML template not just the body so i end up with html.../htmlhtml.../html in the response. in case your wondering why, this is used with a inherited page template model so the tabs are in the base page. I'll include the source here for anyone that wants to take a look, because I'm stumped after several hours today. As will be apparent, its a copy of the TabPanel classes with mods to the ITab etc to handle pages (once/if it works, it can be added to the base wicket lib if people think it's useful). All thats missing to to get the darn thing not to render zero'th tab at the same time. - Brill PageTabbedPanel .javaIPageTab.javaAbstractPageTab.javaPageTabbedPanel.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Security Question
FYI: it's not clear what will happen with the wicket-security package. The original maintainer sadly passed away last year and no-one has officially taken the torch. We've used both packages (auth-roles and swarm), but neither with spring-security. We'd like to move to using spring-security using Swarm, but we haven't taken any step in this regard due to the package's situation... Hoping the package gets an official maintainer soon. Philippe Markus Strickler wrote: Hi- http://wicketstuff.org/confluence/display/STUFFWIKI/Security+Framework+Comparison might be of interest. I've been using Auth-roles together with ACEGI in a project and it worked quite well. -markus Am 25.02.2009 um 21:23 schrieb M Goodell: I would like to pose a question. We are looking at using Wicket as a platform for an upcoming project. So far we are *really* liking what Wicket brings to the table. In terms of security / securing a web application our first thought was Spring Security. My question: Does Spring Security play nice with Wicket and is it a viable addition to a Wicket Application? Or, what are other alternatives are available for use to investigate. Thank you in advance for any thoughts, comments and suggestions. M. Goodell -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Wicket-Security-Question-tp22210992p8410.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket ResourceReferences Fail (invalid url) portal-container on GlassFish
Hi guys, I've received the news that our application could need portlet support. We turned to wicket 1.4rc2 and OpenPortal portal-container which runs on glassfish v3 (just to choose one portal, has netbeans support). With that we started playing around with it, and get to know it. After endless micro-troubles with configuration and other stuff, we got it running but we are having an issue with a resource (some extra slash-bar / ) In this case on an ajax-call we get an error: * ERROR: *Received Ajax response with code: 404 from firebug, we see that the browser is unable to get: http://localhost:8080/portletdriver// MyWebApplication/MyWebApplication/MyWebApplication | MyWebApplication | MyWebApplication. MyWebApplication/resources/com.mywebapplication.wicket.behavior.help.MyHelpBehavior/MyHelpBehavior.js as you can notice I've bolded out the double slashes in the url. This is a behavior with a javascript that initializes a small div that serves as a kind of tooltip for form components such as textfields and dropdowns. The weird part is that it is being added on the onBeforeRender method of a Panel. Could this be the problem? @Override protected void onBeforeRender() { super.onBeforeRender(); ... visitChildren(new IVisitor() { @Override public Object component(Component component) { ... component.add(new MyHelpBehavior()); ... } }); } cheers, f(t)
Re: Wicket Security Question
I might pick it up (But since it's not something I need right now, it has low priority).. But was hoping that Wayne Pope would get back and tell whats state it is in.. Philippe Laflamme wrote: FYI: it's not clear what will happen with the wicket-security package. The original maintainer sadly passed away last year and no-one has officially taken the torch. We've used both packages (auth-roles and swarm), but neither with spring-security. We'd like to move to using spring-security using Swarm, but we haven't taken any step in this regard due to the package's situation... Hoping the package gets an official maintainer soon. Philippe Markus Strickler wrote: Hi- http://wicketstuff.org/confluence/display/STUFFWIKI/Security+Framework+Comparison might be of interest. I've been using Auth-roles together with ACEGI in a project and it worked quite well. -markus Am 25.02.2009 um 21:23 schrieb M Goodell: I would like to pose a question. We are looking at using Wicket as a platform for an upcoming project. So far we are *really* liking what Wicket brings to the table. In terms of security / securing a web application our first thought was Spring Security. My question: Does Spring Security play nice with Wicket and is it a viable addition to a Wicket Application? Or, what are other alternatives are available for use to investigate. Thank you in advance for any thoughts, comments and suggestions. M. Goodell -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Application.CONFIGURATION
On Thu, Feb 26, 2009 at 11:11 AM, Brill Pappin br...@pappin.ca wrote: But don't you run the risk of deploying a development version to production by mistake? If you simple start the container in production with the runtime flag, it will be the same WAR (EAR) for both... no rebuild after testing. We use a build server (TeamCity) which changes our maven profile for production in our production builds. But, yes, we DID screw that up once with our approach! :) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: inmethod datagrid, ajax interactions between cells
I haven't used inmethod datagrid yet but i guess i wont be different with another Wicket model component, so just clear the property of your Underlying model, that should be enough. Will Jaynes-4 wrote: I'm working with the inmethod datagrid. I would like to set up some ajax interactions between cells within a row. For example, between two EditablePropertyColumns, if the user starts typing in one cell, having ajax blank out the other. There are a lot of methods one can override which provide the rowModel as an argument. But I don't see how to get access to all the components of a row. And I'm not sure what to do even if I did get access to the components in a row. Has anyone tried to set up such ajax interaction between cells? Thanks, Will -- View this message in context: http://www.nabble.com/inmethod-datagrid%2C-ajax-interactions-between-cells-tp8762p22231967.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: inmethod datagrid, ajax interactions between cells
Yes. That would addresses the specific example I sited, but not the general question I have. Suppose I wanted the other cell to turn yellow, or change it to a dropdown, or anything that affects the component, not necessarily the model. On Thu, Feb 26, 2009 at 2:40 PM, jcgarciam jcgarc...@gmail.com wrote: I haven't used inmethod datagrid yet but i guess i wont be different with another Wicket model component, so just clear the property of your Underlying model, that should be enough. Will Jaynes-4 wrote: I'm working with the inmethod datagrid. I would like to set up some ajax interactions between cells within a row. For example, between two EditablePropertyColumns, if the user starts typing in one cell, having ajax blank out the other. There are a lot of methods one can override which provide the rowModel as an argument. But I don't see how to get access to all the components of a row. And I'm not sure what to do even if I did get access to the components in a row. Has anyone tried to set up such ajax interaction between cells? Thanks, Will -- View this message in context: http://www.nabble.com/inmethod-datagrid%2C-ajax-interactions-between-cells-tp8762p22231967.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Application.CONFIGURATION
chuckle so have I, as I think most developers have... :) - Brill On 26-Feb-09, at 2:18 PM, James Carman wrote: On Thu, Feb 26, 2009 at 11:11 AM, Brill Pappin br...@pappin.ca wrote: But don't you run the risk of deploying a development version to production by mistake? If you simple start the container in production with the runtime flag, it will be the same WAR (EAR) for both... no rebuild after testing. We use a build server (TeamCity) which changes our maven profile for production in our production builds. But, yes, we DID screw that up once with our approach! :) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
using a model with DropDownChoice
For some reason the DropDownChoice component doesn't have the same generics as ListView and it will not accept a model that listview will, despite its saying that it will accept an IModel. Is anyone else having that sort of trouble with DropDownChoice? - Brill - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket + iframe Session Question
Hello, It is an InlineFrame reiern70 wrote: I think InlineFrame is the guy... On Thu, Feb 26, 2009 at 12:47 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: Arent there a InternalFrame or something already in wicket? I think this has been discussed before, search with nabble 2009/2/26 freak182 eman.noll...@gmail.com Hello, How can I get the session from my main application to the application in the iframe? here is the scenario: 1. I have a large wicket application then we agree to separate the reporting from main application. 2. The said report application is also a wicket and jasper but embedded into iframe. eg. class TestIframePage extends WebPage { publiuc TestIframePage() { final String reportServerUrl = http://localhost:8282/reports?reportname=;; final StringBuilder build = new StringBuilder(); build.append(reportServerUrl).append(getReportName()); final WebMarkupContainer wmc = new WebMarkupContainer(wmc); wmc.add(new SimpleAttributeModifier(src,build.toString())); add(wmc); } @Override public String getReportName() { return reportName; } } ...and the html file is. TestIframePage.html html head titleReports/title /head body iframe wicket:id=wmc width=500 height=500 /iframe /body /html 3. As of now it's working fine...now the problem is I want the main application session will be passed to report application in the iframe. So that i can authenticate the user from the main application. You, might said that I could pass using parameter but we already discuss that but for security reason we cannot pass it through paramater. I have to securely get the session or paramaters from main application to iframe application. Any idea. Thanks a lot. Cheers. -- View this message in context: http://www.nabble.com/Wicket-%2B-iframe-Session-Question-tp22218613p22218613.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Wicket-%2B-iframe-Session-Question-tp22218613p22235105.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: using a model with DropDownChoice
On 26.02.2009, at 22:52, Brill Pappin wrote: For some reason the DropDownChoice component doesn't have the same generics as ListView and it will not accept a model that listview will, despite its saying that it will accept an IModel. Is anyone else having that sort of trouble with DropDownChoice? - Brill Can you give us more information on what exactly is not working for you? DropDownChoice indeed does accept a model, see for instance the example in the class description at http://wicket.apache.org/docs/1.4/org/apache/wicket/markup/html/form/DropDownChoice.html This works for me. Kaspar -- !-- HTML: -- select wicket:id=site optionsite 1/option optionsite 2/option /select ul li wicket:id=site2wicket:container wicket:id=sitename//li /ul // Code List SITES = Arrays.asList(new String[] { The Server Side, Java Lobby, Java.Net }); form.add(new DropDownChoice(site, SITES)); form.add(new ListView(site2, SITES) { @Override protected void populateItem(ListItem item) { item.add(new Label(sitename, item.getModel())); } }); - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Depricated HeaderContributor.forJavaScript?
Another doubt about this subject. I have overriden the addHeaders method like below. How should I do to make wicket write the charset property/attribute? @Override protected void addHeaders() { add(JavascriptPackageResource.getHeaderContribution(Index.class,./javascript/jquery.js)); add(JavascriptPackageResource.getHeaderContribution(Index.class,./javascript/jquery.meiomask.js)); add(JavascriptPackageResource.getHeaderContribution(Index.class,./javascript/jquery.metadata.js)); add(CSSPackageResource.getHeaderContribution(Index.class, ./common/layout/css/default.css)); } script type=text/javascript src=jquery.meiomask.js charset=utf-8/script On Sat, Feb 21, 2009 at 4:08 PM, Brill Pappin br...@pappin.ca wrote: Thanks, thats perfect. I guess they are still working on the javadoc etc because there was no note anywhere I could find on that and nothing on the How to do things with wicket wiki page. - brill On 21-Feb-09, at 11:35 AM, Martijn Reuvers wrote: Hi Brill, You can use: JavascriptPackageResource.getHeaderContribution(..). Martijn On Sat, Feb 21, 2009 at 5:17 PM, Brill Pappin br...@pappin.ca wrote: It seems that in 1.4-SNAPSHOT HeaderContributor.forJavaScript among other is deprecated, but I am unable to find any documentation about what I should be using instead. What is the replacement for the methods in HeaderContributor? - Brill - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Two rules to succeed in life: 1 - don´t tell people everything you know. We shall go on to the end. We shall fight in France We shall fightover the seas and oceans. We shall fight with growing confidence and growing strength in the air. We shall defend our island whatever the cost may be We shall fight on beaches, we shall fight on the landing grounds, We shall fight in the fields and in the streets, We shall fight on the hills. We shall never surrender. Winston Churchill
Re: using a model with DropDownChoice
Roughly what I'm doing is: class TypeA{} class TypeAModel extends LoadableDetachableModel ListTypeA { public ListTypeA load(){ ... do the load ... return ... } } TypeAModel model = new TypeAModel(); DropDownChoice TypeA ddc = new DropDownChoiceTypeA(id, model ); which gets complained about... in this case the generic def is DropDownChoiceList? extends T I think the problem is that the generic def of the class should actually be DropDownChoiceListT because you are already identifying the type when you create a new instance. Now... my generics are a bit hazy at this level, because I can understand why it was done that way... does anyone with more generics experience know what it should be? Is this a bug that needs filing? - Brill On 26-Feb-09, at 6:03 PM, Kaspar Fischer wrote: On 26.02.2009, at 22:52, Brill Pappin wrote: For some reason the DropDownChoice component doesn't have the same generics as ListView and it will not accept a model that listview will, despite its saying that it will accept an IModel. Is anyone else having that sort of trouble with DropDownChoice? - Brill Can you give us more information on what exactly is not working for you? DropDownChoice indeed does accept a model, see for instance the example in the class description at http://wicket.apache.org/docs/1.4/org/apache/wicket/markup/html/form/DropDownChoice.html This works for me. Kaspar -- !-- HTML: -- select wicket:id=site optionsite 1/option optionsite 2/option /select ul li wicket:id=site2wicket:container wicket:id=sitename//li /ul // Code List SITES = Arrays.asList(new String[] { The Server Side, Java Lobby, Java.Net }); form.add(new DropDownChoice(site, SITES)); form.add(new ListView(site2, SITES) { @Override protected void populateItem(ListItem item) { item.add(new Label(sitename, item.getModel())); } }); - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: using a model with DropDownChoice
This is what I was commenting on last week on the list (or earlier this week). One expects List? extends Foo while the other expects ListFoo. I'm not fully convinced yet that the ? extends is the better option. Either way, I think they should be the same. -- Jeremy Thomerson http://www.wickettraining.com On Thu, Feb 26, 2009 at 8:27 PM, Brill Pappin br...@pappin.ca wrote: Roughly what I'm doing is: class TypeA{} class TypeAModel extends LoadableDetachableModel ListTypeA { public ListTypeA load(){ ... do the load ... return ... } } TypeAModel model = new TypeAModel(); DropDownChoice TypeA ddc = new DropDownChoiceTypeA(id, model ); which gets complained about... in this case the generic def is DropDownChoiceList? extends T I think the problem is that the generic def of the class should actually be DropDownChoiceListT because you are already identifying the type when you create a new instance. Now... my generics are a bit hazy at this level, because I can understand why it was done that way... does anyone with more generics experience know what it should be? Is this a bug that needs filing? - Brill On 26-Feb-09, at 6:03 PM, Kaspar Fischer wrote: On 26.02.2009, at 22:52, Brill Pappin wrote: For some reason the DropDownChoice component doesn't have the same generics as ListView and it will not accept a model that listview will, despite its saying that it will accept an IModel. Is anyone else having that sort of trouble with DropDownChoice? - Brill Can you give us more information on what exactly is not working for you? DropDownChoice indeed does accept a model, see for instance the example in the class description at http://wicket.apache.org/docs/1.4/org/apache/wicket/markup/html/form/DropDownChoice.html This works for me. Kaspar -- !-- HTML: -- select wicket:id=site optionsite 1/option optionsite 2/option /select ul li wicket:id=site2wicket:container wicket:id=sitename//li /ul // Code List SITES = Arrays.asList(new String[] { The Server Side, Java Lobby, Java.Net }); form.add(new DropDownChoice(site, SITES)); form.add(new ListView(site2, SITES) { @Override protected void populateItem(ListItem item) { item.add(new Label(sitename, item.getModel())); } }); - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: using a model with DropDownChoice
? extends Foo collections are read only, it would be too inconvenient to make the model collection read only :) -igor On Thu, Feb 26, 2009 at 8:34 PM, Jeremy Thomerson jer...@wickettraining.com wrote: This is what I was commenting on last week on the list (or earlier this week). One expects List? extends Foo while the other expects ListFoo. I'm not fully convinced yet that the ? extends is the better option. Either way, I think they should be the same. -- Jeremy Thomerson http://www.wickettraining.com On Thu, Feb 26, 2009 at 8:27 PM, Brill Pappin br...@pappin.ca wrote: Roughly what I'm doing is: class TypeA{} class TypeAModel extends LoadableDetachableModel ListTypeA { public ListTypeA load(){ ... do the load ... return ... } } TypeAModel model = new TypeAModel(); DropDownChoice TypeA ddc = new DropDownChoiceTypeA(id, model ); which gets complained about... in this case the generic def is DropDownChoiceList? extends T I think the problem is that the generic def of the class should actually be DropDownChoiceListT because you are already identifying the type when you create a new instance. Now... my generics are a bit hazy at this level, because I can understand why it was done that way... does anyone with more generics experience know what it should be? Is this a bug that needs filing? - Brill On 26-Feb-09, at 6:03 PM, Kaspar Fischer wrote: On 26.02.2009, at 22:52, Brill Pappin wrote: For some reason the DropDownChoice component doesn't have the same generics as ListView and it will not accept a model that listview will, despite its saying that it will accept an IModel. Is anyone else having that sort of trouble with DropDownChoice? - Brill Can you give us more information on what exactly is not working for you? DropDownChoice indeed does accept a model, see for instance the example in the class description at http://wicket.apache.org/docs/1.4/org/apache/wicket/markup/html/form/DropDownChoice.html This works for me. Kaspar -- !-- HTML: -- select wicket:id=site optionsite 1/option optionsite 2/option /select ul li wicket:id=site2wicket:container wicket:id=sitename//li /ul // Code List SITES = Arrays.asList(new String[] { The Server Side, Java Lobby, Java.Net }); form.add(new DropDownChoice(site, SITES)); form.add(new ListView(site2, SITES) { @Override protected void populateItem(ListItem item) { item.add(new Label(sitename, item.getModel())); } }); - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org ? extends - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: using a model with DropDownChoice
Do you mean that I should do something to make the list read only or that it should have the same generic definition? IMO they should all work the same way... so I'm +1 for the ListFoo. syntax. Also, I'm not sure that they mean read only. AFAIK it just means that the unknown object must be assignable to Foo (although I could be wrong about that). - Brill Pappin On 26-Feb-09, at 11:50 PM, Igor Vaynberg wrote: ? extends Foo collections are read only, it would be too inconvenient to make the model collection read only :) -igor On Thu, Feb 26, 2009 at 8:34 PM, Jeremy Thomerson jer...@wickettraining.com wrote: This is what I was commenting on last week on the list (or earlier this week). One expects List? extends Foo while the other expects ListFoo. I'm not fully convinced yet that the ? extends is the better option. Either way, I think they should be the same. -- Jeremy Thomerson http://www.wickettraining.com On Thu, Feb 26, 2009 at 8:27 PM, Brill Pappin br...@pappin.ca wrote: Roughly what I'm doing is: class TypeA{} class TypeAModel extends LoadableDetachableModel ListTypeA { public ListTypeA load(){ ... do the load ... return ... } } TypeAModel model = new TypeAModel(); DropDownChoice TypeA ddc = new DropDownChoiceTypeA(id, model ); which gets complained about... in this case the generic def is DropDownChoiceList? extends T I think the problem is that the generic def of the class should actually be DropDownChoiceListT because you are already identifying the type when you create a new instance. Now... my generics are a bit hazy at this level, because I can understand why it was done that way... does anyone with more generics experience know what it should be? Is this a bug that needs filing? - Brill On 26-Feb-09, at 6:03 PM, Kaspar Fischer wrote: On 26.02.2009, at 22:52, Brill Pappin wrote: For some reason the DropDownChoice component doesn't have the same generics as ListView and it will not accept a model that listview will, despite its saying that it will accept an IModel. Is anyone else having that sort of trouble with DropDownChoice? - Brill Can you give us more information on what exactly is not working for you? DropDownChoice indeed does accept a model, see for instance the example in the class description at http://wicket.apache.org/docs/1.4/org/apache/wicket/markup/html/form/DropDownChoice.html This works for me. Kaspar -- !-- HTML: -- select wicket:id=site optionsite 1/option optionsite 2/option /select ul li wicket:id=site2wicket:container wicket:id=sitename// li /ul // Code List SITES = Arrays.asList(new String[] { The Server Side, Java Lobby, Java.Net }); form.add(new DropDownChoice(site, SITES)); form.add(new ListView(site2, SITES) { @Override protected void populateItem(ListItem item) { item.add(new Label(sitename, item.getModel())); } }); - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org ? extends - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: GSoC ideas for 09
I'll be happy to mentor, what does it require?. I do have a life besides Wicket/Wicketstuff as Martijn has :) regards Nino 2009/2/26 Martijn Dashorst martijn.dasho...@gmail.com While I am perfectly capable of working on Wicket in my spare time without being rewarded, I find it way out of line to characterize the way I spend my own time as lame when such that doesn't fit the criteria of anyone. Being characterized as lame because we are engaged in other things, such as family, preparing Wicket presentations, building releases, fixing bugs, reading books, playing games, earning money, eating, sleeping, feeding our children, is utterly uncalled for (though sleeping might be considered lame). Christopher is very capable of writing English prose, so I take that at face value. It's not that someone with a poor knowledge of English wrote this. Armchair volunteerism is very easy to do: it doesn't cost any time, and you don't commit yourself to anything. If anyone wants to pursue GSoC, they're very welcome to call themselves Vice President of Wicket Stuff and enlist as Mentor etc. If any of the other core committers thinks a GSoC is ok, I'm fine with that too. However, given that we're struggling to get all the bugs fixed in 1.3.6 and 1.4, I find it hard to believe that anyone will have the time and energy to do the mentoring as well. I don't have that time and energy. Martijn On Thu, Feb 26, 2009 at 3:03 PM, Richard Allen richard.l.al...@gmail.com wrote: The words of C. Bergstrom may have been poorly chosen, but he seems to have the same goal of wanting Wicket to succeed and grow in popularity. Providing harsh responses to users that, despite poor communication, are otherwise excited about your project does not help to grow your community or get others involved. This is not the first time I've been surprised by the harshness of responses from Wicket core committers. I hope these don't have the effect of pushing developers away. On Thu, Feb 26, 2009 at 7:27 AM, Jeroen Steenbeeke j.steenbeeke.ml@ gmail.com wrote: Once again it seems a lame excuse to say you're too busy or the various other things when this could both give the project good pr and possibly add more people who contribute to the framework. I've found that the best way to convince people does not involve insulting the person you're trying to convince. There is merit to your argument of good PR and possible new contributors, but let's not forget that the people working on Wicket do so in their spare time - and you know that there are a lot of things in life that require time. It is fully understandable that what little time the developers have to spend on Wicket, they'd rather use that time to improve the framework and fix bugs. Mentoring a SoC student takes a considerable amount of time and concentration, and while some students may blossom on their own, a lot of them need guidance on a regular basis - this requires a massive investment of spare time that could otherwise have been used for improving Wicket. A mentor that is only half interested will not be an advantage to the student, and be bad PR rather than good - you need mentors that are willing, good, know the framework well and have loads of time - the last of which does not apply to a lot of Wicket Devs. Calling it lame doesn't change anything about it, but it does agitate the developers, which doesn't exactly help your cause. - Jeroen -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Security Question
Hi, In terms of SWARM etc its in the pre-generics stage. It didn't take much to get it working with the latest wicket version mind. It works fine, however it wan't what we needed in the end - we went with the wicket.aurthorization package and rolled our own dynamic acl-list/roles etc. I had some promising converstions with Les Hazlewood from jsecurity.org - that looks like another great package and more flexible IMO. However Les was right in the middle of a move to NYC and didn't have anytime to spend on doing a wicket version of jsecurity. It might be worth pinging him a mail and see if he up for doing it again. Wayne www.glasscubes.com On Thu, Feb 26, 2009 at 8:09 PM, Nino Martinez nino.martinez.w...@gmail.com wrote: I might pick it up (But since it's not something I need right now, it has low priority).. But was hoping that Wayne Pope would get back and tell whats state it is in.. Philippe Laflamme wrote: FYI: it's not clear what will happen with the wicket-security package. The original maintainer sadly passed away last year and no-one has officially taken the torch. We've used both packages (auth-roles and swarm), but neither with spring-security. We'd like to move to using spring-security using Swarm, but we haven't taken any step in this regard due to the package's situation... Hoping the package gets an official maintainer soon. Philippe Markus Strickler wrote: Hi- http://wicketstuff.org/confluence/display/STUFFWIKI/Security+Framework+Comparison might be of interest. I've been using Auth-roles together with ACEGI in a project and it worked quite well. -markus Am 25.02.2009 um 21:23 schrieb M Goodell: I would like to pose a question. We are looking at using Wicket as a platform for an upcoming project. So far we are *really* liking what Wicket brings to the table. In terms of security / securing a web application our first thought was Spring Security. My question: Does Spring Security play nice with Wicket and is it a viable addition to a Wicket Application? Or, what are other alternatives are available for use to investigate. Thank you in advance for any thoughts, comments and suggestions. M. Goodell -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: What IDE best fits with Wicket?
That is the plugin Martijn is talking about, and I am one of the co-workers he mentioned. I tried the m2eclipse plugin and used it for a day. The plugin (version 0.9.7.200902090947) was able to checkout the project from svn and create eclipse projects for all modules, so far so good, although the browse button in the svn window didn't work. At that moment the trouble started. Somehow, after even the slightest code change, eclipse started to rebuild the entire project over and over, taking ages. After some more changes (some of them might have been in the pom), some of my projects got corrupted and I had to clean everything, doing a complete rebuild. A few hours later, while I was working on a Java file, about 30,000 errors suddenly appeared. Somehow, m2eclipse had reversed some of my module-to-module dependencies. I tried cleaning, updating, refreshing the project configuration, nothing helped. I was unable to get the project to build again. My experience with m2eclipse is that it is slow and very unstable. My last attempt was not the first attempt. I tried to use it several times, because running mvn eclipse:eclipse all the time is just a pain in the *, but every time I ran into some strange problem I could not solve. Emond Papegaaij On Thursday 26 February 2009 17:20:04 Brill Pappin wrote: I don't think we're talking about the same plugin then (although you seem to be calling it the same thing)... I'm referring to: http://m2eclipse.codehaus.org/ It's the *only* one I've found that *actually works* properly, particularly for larger projects... although I run the dev version so I'm not sure how well the released version is working at this moment. Of course I could simply go back to the console and use the maven plugin to generate the eclipse project files, but I find the plugin to be light-years ahead in maintaining a clean build env. I guess people's experience with various tools also depends a lot on *how* they work not just what they work with :) - Brill Pappin On 24-Feb-09, at 12:38 PM, Martijn Dashorst wrote: m2eclipse is absolutely worthless for anything beyond a quickstart. It is constantly reparsing poms, grinding eclipse to a halt. It failed to generate the right project dependencies for our multimodule project that consists of 2 multimodule child projects. It failed miserably to uninstall, needing me to axe my eclipse installation. In short: my experience (and that of my co-workers) with m2eclipse is that it is far from ready for prime time. Martijn On Tue, Feb 24, 2009 at 5:55 PM, Brill Pappin br...@pappin.ca wrote: I should add something about the Eclipse maven plugins... don't go for the official eclipse Q4 plugin... use the Maven Integration 4 Eclipse plugin (and actually the development version if your jiggy with it, it works and gets updated/fixed way more often). If your on Netbeans, I think Maven will generate Netbeans project files for you as well (it will do so for eclipse), so you could actually flip back and forth if you wanted. - Brill Pappin On 23-Feb-09, at 5:19 PM, Pierre Goupil wrote: +1, I like Wicket Bench. And with M2Eclipse, you have the full sources JavaDoc just by adding Wicket as a dependency, which is very convenient. But don't expect Wicket Bench to do too much, it's just a small, useful tool. Pierre Hi, I use Eclipse with Wicket Bench plugin and it works very fine. -- Sans amis était le grand maître des mondes, Eprouvait manque, ce pour quoi il créa les esprits, Miroirs bienveillants de sa béatitude. Mais au vrai, il ne trouva aucun égal, Du calice du royaume total des âmes Ecume jusqu'à lui l'infinité. (Schiller, l'amitié) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org