Re: How to set a common HTTP Header on all Responses?
What about using a filter in front of your Wicket application On Mon, Nov 28, 2011 at 1:15 PM, Sven Ludwig [via Apache Wicket] ml-node+s1842946n4115751...@n4.nabble.com wrote: Hello, is there a way to set a common HTTP Header on all Responses of a Wicket 1.4.19 Application which returns redirect-to-buffer responses, Ajax responses and possibly also resource responses? Is there possibly a(nother) way since Wicket 1.5? If I set the Header for example in overwritten WebRequestCycle.onBeginRequest, there is a problem with at least the redirect-to-buffer responses done in my case by the HybridUrlCodingStrategy. The HTTP Header will be present in the first response which is the redirect itself, but not in second response coming from the buffer. Best Regards, Sven -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/How-to-set-a-common-HTTP-Header-on-all-Responses-tp4115751p4115751.html To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY= . NAMLhttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.InstantMailNamespacebreadcrumbs=instant+emails%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- JC -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-set-a-common-HTTP-Header-on-all-Responses-tp4115751p4117902.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: PageableListView Not Rendering Data as required
You have to build the SQL query in a away it returns the data in the way you one. After that it will easier to map the ListView. Based on your example want to represent certain rows as columns values. On Sun, Nov 20, 2011 at 7:20 AM, robinthapa [via Apache Wicket] ml-node+s1842946n4088337...@n4.nabble.com wrote: am working on wicket, where i am supposed to show my data's under tr tdName/td tdSingle Player Score/td tdDouble Player Score/td tdTotal Score/td /tr tr wicket:id=data td wicket:id=name/td td wicket:id=singlePlayerScore/td td wicket:id=doublePlayerScore/td td wicket:id=totalScore/td /tr My Player model class is as: Player class with attributes singlePlayerScore, doublePlayerScore(), name with getter and setter and also a list data obtained from database. Data from SQLQuery is as; namescoregamemode A 200 singlePlayerMode A 100 doublePLayerMode B 400 singlePlayerMode B 300 doublePLayerMode dataList == player.getScoreList(); My PageableListView is as: final PageableListView listView = new PageableListView(data,dataList,10){ @Override protected void populateItem(Item item){ player = (Player)item.getModelObject(); item.add(Label(name,player.getName())); item.add(Label(singlePlayerScore,player.getName())); item.add(Label(doublePlayerScore,player.getName())); item.add(Label(totalScore,String.valueOf(player.getSinglePlayerScore()+player.getDoublePlayerScore(; } } My Problem is as: What view i get is as: Name single Player Score Double Player Score Total Score A 0 100 100 A 200 0 200 B 0 300 300 B 400 0 400 How do i achieve below view on my webpage? Name single Player Score Double Player Score Total Score A 200 100 300 B 400 300 700 Please help me as to why is this happening? I guess my list has size four that's one reason why as to it is rendering the view? So what can i do to get as require rendering view? -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/PageableListView-Not-Rendering-Data-as-required-tp4088337p4088337.html To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY= . NAMLhttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.InstantMailNamespacebreadcrumbs=instant+emails%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- JC -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/PageableListView-Not-Rendering-Data-as-required-tp4088337p4088685.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: PageMap locking...
If you are using wicket 1.4, you should be able to delegate your long running request to work with a different pageMap. On Mon, Oct 24, 2011 at 6:16 AM, YaronHolland [via Apache Wicket] ml-node+s1842946n3932536...@n4.nabble.com wrote: Actually using lazy panel makes the problem worse, now the user can click on the tabs, but they will not work as they wait to the lazy panel to complete... We need to allow to move to another tab, without waiting for the first tab to be rendered. -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/PageMap-locking-tp3930623p3932536.html To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- JC -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/PageMap-locking-tp3930623p3932867.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Weblogic deployment
Weblogic doesn't play well with classpath resouces having space on its path. As Manuel, suggest try putting your domain in a path without space on it On Tue, Oct 18, 2011 at 11:02 AM, manuelbarzi [via Apache Wicket] ml-node+s1842946n3915471...@n4.nabble.com wrote: Application.initializeComponents() may you try running wl in non-blank-spaces path? (zip:C:/Documents[16 charater here])...) . On Tue, Oct 18, 2011 at 3:31 PM, Wolfgang Schreiner [hidden email]http://user/SendEmail.jtp?type=nodenode=3915471i=0 wrote: Hi all, I am having problems deploying my web application on Weblogic 10.3.2. Everything works fine on 10.3.5 but I am running into the following exception when deploying on 10.3.2 - see below How can I resolve this? And when and where is wicket.properties loaded? Can't find references in the sources ... Thanks! 18.10.2011 14:17 Uhr MESZ Error HTTP BEA-101165 Could not load user def ined filter in web.xml: org.apache.wicket.protocol.http.WicketFilter. org.apache.wicket.WicketRuntimeException: java.net.URISyntaxException: Illegal c haracter in opaque part at index 16: zip:C:/Documents and Settings/schrewo3/Orac le/Middleware/user_projects/domains/test1/servers/AdminServer/tmp/_WL_user/edoc- web/11vfn0/war/WEB-INF/lib/wicket-core-1.5.0.jar!/wicket.properties at org.apache.wicket.application.AbstractClassResolver.getResources(Abst ractClassResolver.java:156) at org.apache.wicket.Application.initializeComponents(Application.java:4 90) at org.apache.wicket.Application.initApplication(Application.java:806) at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:3 46) at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:2 86) Truncated. see log file for complete stacktrace Caused By: java.net.URISyntaxException: Illegal character in opaque part at inde x 16: zip:C:/Documents and Settings/schrewo3/Oracle/Middleware/user_projects/dom ains/test1/servers/AdminServer/tmp/_WL_user/edoc-web/11vfn0/war/WEB-INF/lib/wick et-core-1.5.0.jar!/wicket.properties at java.net.URI$Parser.fail(URI.java:2809) at java.net.URI$Parser.checkChars(URI.java:2982) at java.net.URI$Parser.parse(URI.java:3019) at java.net.URI.init(URI.java:578) at java.net.URL.toURI(URL.java:918) Truncated. see log file for complete stacktrace - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3915471i=1 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3915471i=2 -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/How-to-update-a-palette-tp3859111p3915471.html To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- JC -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-update-a-palette-tp3859111p3915574.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Weblogic deployment
Nop, this is a bug in the container no within the wicket framework. On Tue, Oct 18, 2011 at 11:44 AM, Wolfgang Schreiner [via Apache Wicket] ml-node+s1842946n3915620...@n4.nabble.com wrote: Ok thanks, will give it a go Is there another workaround? Like removing wicket.properties and calling the Initializers from code? From: jcgarciam [hidden email]http://user/SendEmail.jtp?type=nodenode=3915620i=0 To: [hidden email] http://user/SendEmail.jtp?type=nodenode=3915620i=1 Date: 18.10.2011 16:26 Subject: Re: Weblogic deployment Weblogic doesn't play well with classpath resouces having space on its path. As Manuel, suggest try putting your domain in a path without space on it On Tue, Oct 18, 2011 at 11:02 AM, manuelbarzi [via Apache Wicket] [hidden email] http://user/SendEmail.jtp?type=nodenode=3915620i=2 wrote: Application.initializeComponents() may you try running wl in non-blank-spaces path? (zip:C:/Documents[16 charater here])...) . On Tue, Oct 18, 2011 at 3:31 PM, Wolfgang Schreiner [hidden email] http://user/SendEmail.jtp?type=nodenode=3915471i=0 wrote: Hi all, I am having problems deploying my web application on Weblogic 10.3.2. Everything works fine on 10.3.5 but I am running into the following exception when deploying on 10.3.2 - see below How can I resolve this? And when and where is wicket.properties loaded? Can't find references in the sources ... Thanks! 18.10.2011 14:17 Uhr MESZ Error HTTP BEA-101165 Could not load user def ined filter in web.xml: org.apache.wicket.protocol.http.WicketFilter. org.apache.wicket.WicketRuntimeException: java.net.URISyntaxException: Illegal c haracter in opaque part at index 16: zip:C:/Documents and Settings/schrewo3/Orac le/Middleware/user_projects/domains/test1/servers/AdminServer/tmp/_WL_user/edoc- web/11vfn0/war/WEB-INF/lib/wicket-core-1.5.0.jar!/wicket.properties at org.apache.wicket.application.AbstractClassResolver.getResources(Abst ractClassResolver.java:156) at org.apache.wicket.Application.initializeComponents(Application.java:4 90) at org.apache.wicket.Application.initApplication(Application.java:806) at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:3 46) at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:2 86) Truncated. see log file for complete stacktrace Caused By: java.net.URISyntaxException: Illegal character in opaque part at inde x 16: zip:C:/Documents and Settings/schrewo3/Oracle/Middleware/user_projects/dom ains/test1/servers/AdminServer/tmp/_WL_user/edoc-web/11vfn0/war/WEB-INF/lib/wick et-core-1.5.0.jar!/wicket.properties at java.net.URI$Parser.fail(URI.java:2809) at java.net.URI$Parser.checkChars(URI.java:2982) at java.net.URI$Parser.parse(URI.java:3019) at java.net.URI.init(URI.java:578) at java.net.URL.toURI(URL.java:918) Truncated. see log file for complete stacktrace - To unsubscribe, e-mail: [hidden email] http://user/SendEmail.jtp?type=nodenode=3915471i=1 For additional commands, e-mail: [hidden email] http://user/SendEmail.jtp?type=nodenode=3915471i=2 -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/How-to-update-a-palette-tp3859111p3915471.html To unsubscribe from Apache Wicket, click here -- JC -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-update-a-palette-tp3859111p3915574.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3915620i=3 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3915620i=4 -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/How-to-update-a-palette-tp3859111p3915620.html To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- JC -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-update-a-palette-tp3859111p3915632.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Is there ModalWindow alternative options
Is this probably related to the usage of ModalWindow with PageCreator instead of Panel content? On Tue, Oct 11, 2011 at 9:40 PM, nhsoft.yhw [via Apache Wicket] ml-node+s1842946n3896443...@n4.nabble.com wrote: Is there ModalWindow alternative options, I found that the ModelWindow component has browser compatibility problems. Original use of ModalWindow is no problem in the wicket 1.4.x version, but after upgrading to 1.5.1 version, I found several used ModalWindow Page is normal, several used ModalWindow Page is not displayed properly, I check my code, but did not find the difference between my Page. ModalWindow in chrome browser is the most stable, Both IE6, IE7, IE8 and the latest version Firefox have problem, generally ModalWindow can not pop modal window display properly. http://www.517wm.com 外卖订餐分享工具 -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/Is-there-ModalWindow-alternative-options-tp3896443p3896443.html To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- JC -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Is-there-ModalWindow-alternative-options-tp3896443p3896505.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicketAjaxGet Size limt
Use Post *instead of using Get, **limitation is set by Browsers.* see: *wicketAjaxPost function* On Sun, Sep 25, 2011 at 8:13 AM, Arjun Dhar [via Apache Wicket] ml-node+s1842946n3841117...@n4.nabble.com wrote: Hi, From a JavaScript code (CkEditor pluin to be exact), I want to send data to my wicket component/panel. I traced the generated code, and it uses wicketAjaxGet. With wicketAjaxGet I can get in 3000+ characters on a rough. This seems to have size limitation, whats the best way to get around that? Additional Context Would like this to be as scalable as possible so I can send Contents in my CkEditor on my Custom Ajax-Save button. Basically have created a plugin in CkEditor and have my Ajax-Save on the Editor Toolbar (no Wicket button). I have a Proxy link that generates the script, and then on JavaScript I simply rip that off and do an eval (server generated function code + modifications). This submits back the data to the server and it all works well. Just the size limit bothers me a bit. Have avoided using forms sicxe I dont see a conceptual need for forms. wicketAjaxPost or wicketSerializeForm (?) -- Discussion sake (maybe not relevant) I saw some post few months back where guy talks about wicketAjaxPost and serializing Forms using wicketSerializeForm. But no code or context provided so not sure how that works. plus wicketSerializeForm takes only one param ... the form element in javbscript. So how does it send data back to server? Preferred Area of Solution - Note: This script can be modified @ the server in public final CharSequence getCallbackUrl(final boolean onlyTargetActivePage) ; Looking for some server side wizardry so I dont have to put in Hacke (replace commands in javascript). Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/wicketAjaxGet-Size-limt-tp3841117p3841117.html To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- JC -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicketAjaxGet-Size-limt-tp3841117p3841406.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicketAjaxGet Size limt
https://cwiki.apache.org/WICKET/calling-wicket-from-javascript.html On Sun, Sep 25, 2011 at 11:23 AM, Juan Carlos Garcia jcgarc...@gmail.comwrote: Use Post *instead of using Get, **limitation is set by Browsers.* see: *wicketAjaxPost function* On Sun, Sep 25, 2011 at 8:13 AM, Arjun Dhar [via Apache Wicket] ml-node+s1842946n3841117...@n4.nabble.com wrote: Hi, From a JavaScript code (CkEditor pluin to be exact), I want to send data to my wicket component/panel. I traced the generated code, and it uses wicketAjaxGet. With wicketAjaxGet I can get in 3000+ characters on a rough. This seems to have size limitation, whats the best way to get around that? Additional Context Would like this to be as scalable as possible so I can send Contents in my CkEditor on my Custom Ajax-Save button. Basically have created a plugin in CkEditor and have my Ajax-Save on the Editor Toolbar (no Wicket button). I have a Proxy link that generates the script, and then on JavaScript I simply rip that off and do an eval (server generated function code + modifications). This submits back the data to the server and it all works well. Just the size limit bothers me a bit. Have avoided using forms sicxe I dont see a conceptual need for forms. wicketAjaxPost or wicketSerializeForm (?) -- Discussion sake (maybe not relevant) I saw some post few months back where guy talks about wicketAjaxPost and serializing Forms using wicketSerializeForm. But no code or context provided so not sure how that works. plus wicketSerializeForm takes only one param ... the form element in javbscript. So how does it send data back to server? Preferred Area of Solution - Note: This script can be modified @ the server in public final CharSequence getCallbackUrl(final boolean onlyTargetActivePage) ; Looking for some server side wizardry so I dont have to put in Hacke (replace commands in javascript). Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/wicketAjaxGet-Size-limt-tp3841117p3841117.html To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- JC -- JC -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicketAjaxGet-Size-limt-tp3841117p3841408.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicketAjaxGet Size limt
When using Post, are you seeing a content-length header? On Sun, Sep 25, 2011 at 4:29 PM, Arjun Dhar [via Apache Wicket] ml-node+s1842946n3841975...@n4.nabble.com wrote: Found root cause; confirm. Am getting a HTTP 413 return (Server puking it on Post) ...any suggestions? Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/wicketAjaxGet-Size-limt-tp3841117p3841975.html To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- JC -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicketAjaxGet-Size-limt-tp3841117p3842015.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicketAjaxGet Size limt
When using GET content is limited per browser. ie: Modern Browser set a limit to 8K while others just 2K. When using POST per the spec browser are mandate to set content-length header, i have no idea what is going on your end, but definitely will suggest to try that out on a different container such as Tomcat just to see if this is something Jetty related. On Sun, Sep 25, 2011 at 4:58 PM, Arjun Dhar [via Apache Wicket] ml-node+s1842946n3842018...@n4.nabble.com wrote: Since it was a server error, I changed the headerBufferSize config in Jetty and it worked ..but then on changing Jetty Config wicketAjaxPost wicketAjaxGet were both working. headerBufferSize uses the request header imo, so on post why do we need the request header? ..Something does not seem right with my understanding of these functions or perhaps how JETTY handles requests. Its left me a little confused :( Jetty config fix -- !-- http://docs.codehaus.org/display/JETTY/Configuring+Connectors --raw connector implementation=org.mortbay.jetty.nio.SelectChannelConnector port9090/port maxIdleTime6/maxIdleTime headerBufferSize24000/headerBufferSize /connector ** ..what im still worried about is the HeaderBuffer Size Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/wicketAjaxGet-Size-limt-tp3841117p3842018.html To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- JC -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicketAjaxGet-Size-limt-tp3841117p3842025.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicketAjaxGet Size limt
I'm seeing you request is still being sent as GET, since your parameters are bound to the URL. If it would have been POST the content of your request would appear below the: Content-Length: Yor content here Or am i missing something. On Sun, Sep 25, 2011 at 5:05 PM, Attila Király [via Apache Wicket] ml-node+s1842946n384202...@n4.nabble.com wrote: Aren't you sending your data in the url? Even if you are using POST you can still have some (all) data in the url as query parameters. And there are limits for url length (both on client/browser side and server side). This would also explain why does it depend on header buffer size as the url is read into that buffer. Attila 2011/9/25 Arjun Dhar [hidden email]http://user/SendEmail.jtp?type=nodenode=3842028i=0 Since it was a server error, I changed the headerBufferSize config in Jetty and it worked ..but then on changing Jetty Config wicketAjaxPost wicketAjaxGet were both working. headerBufferSize uses the request header imo, so on post why do we need the request header? ..Something does not seem right with my understanding of these functions or perhaps how JETTY handles requests. Its left me a little confused :( Jetty config fix -- connector implementation=org.mortbay.jetty.nio.SelectChannelConnector port9090/port maxIdleTime6/maxIdleTime headerBufferSize24000/headerBufferSize /connector ..what im still worried about is the HeaderBuffer Size - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicketAjaxGet-Size-limt-tp3841117p3842018.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3842028i=1 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3842028i=2 -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/wicketAjaxGet-Size-limt-tp3841117p3842028.html To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- JC -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicketAjaxGet-Size-limt-tp3841117p3842032.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: On Label/Div or some other component, how to use setMarkupId and dynamic id
Why not adding a behavior that output some specific custom tag using the onComponentTag method? Will that work for you? On Thu, Sep 1, 2011 at 4:54 PM, Brown, Berlin [GCG-PFS] [via Apache Wicket] ml-node+3784600-559914674-65...@n4.nabble.com wrote: Strange but I may scrape the page and search for those particular elements. I want the prefix but I also want to keep uniqueness. -Original Message- From: Igor Vaynberg [mailto:[hidden email]http://user/SendEmail.jtp?type=nodenode=3784600i=0] Sent: Thursday, September 01, 2011 2:19 PM To: [hidden email] http://user/SendEmail.jtp?type=nodenode=3784600i=1 Subject: Re: On Label/Div or some other component, how to use setMarkupId and dynamic id i guess the question would be: why? -igor On Thu, Sep 1, 2011 at 10:57 AM, Brown, Berlin [GCG-PFS] [hidden email] http://user/SendEmail.jtp?type=nodenode=3784600i=2 wrote: Is there a way to prefix a component with using setMarkupid but also have the dynamic id. I want my end output to have: With Code: x = new WebMarkupContainer(myId) x.setMarkupId(myId); div id=myId_id2323 / - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3784600i=3 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3784600i=4 - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3784600i=5 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3784600i=6 -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/On-Label-Div-or-some-other-component-how-to-use-setMarkupId-and-dynamic-id-tp3784344p3784600.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- JC -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/On-Label-Div-or-some-other-component-how-to-use-setMarkupId-and-dynamic-id-tp3784344p3784701.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: On Label/Div or some other component, how to use setMarkupId and dynamic id
I meant some specific custom attribute. On Thu, Sep 1, 2011 at 5:33 PM, Juan Carlos Garcia jcgarc...@gmail.comwrote: Why not adding a behavior that output some specific custom tag using the onComponentTag method? Will that work for you? On Thu, Sep 1, 2011 at 4:54 PM, Brown, Berlin [GCG-PFS] [via Apache Wicket] ml-node+3784600-559914674-65...@n4.nabble.com wrote: Strange but I may scrape the page and search for those particular elements. I want the prefix but I also want to keep uniqueness. -Original Message- From: Igor Vaynberg [mailto:[hidden email]http://user/SendEmail.jtp?type=nodenode=3784600i=0] Sent: Thursday, September 01, 2011 2:19 PM To: [hidden email] http://user/SendEmail.jtp?type=nodenode=3784600i=1 Subject: Re: On Label/Div or some other component, how to use setMarkupId and dynamic id i guess the question would be: why? -igor On Thu, Sep 1, 2011 at 10:57 AM, Brown, Berlin [GCG-PFS] [hidden email] http://user/SendEmail.jtp?type=nodenode=3784600i=2 wrote: Is there a way to prefix a component with using setMarkupid but also have the dynamic id. I want my end output to have: With Code: x = new WebMarkupContainer(myId) x.setMarkupId(myId); div id=myId_id2323 / - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3784600i=3 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3784600i=4 - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3784600i=5 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3784600i=6 -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/On-Label-Div-or-some-other-component-how-to-use-setMarkupId-and-dynamic-id-tp3784344p3784600.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- JC -- JC -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/On-Label-Div-or-some-other-component-how-to-use-setMarkupId-and-dynamic-id-tp3784344p3784704.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to use the LoadableDetachableModel in a Wicket, Spring, Hibernate based web application correctly?
To avoid having detached objects in your web layer, try wrapping wicket filter with the Spring OpenSessionInView http://static.springsource.org/spring/docs/2.5.x/api/org/springframework/orm/hibernate3/support/OpenSessionInViewFilter.htmlfilter, in that way transaction will be bound to the - HttpRequest - HttpResponse cycle, or you can you use a more wicket way and override onBeginRequest / onEndRequest to do your transaction work there. On Fri, Aug 12, 2011 at 5:52 AM, Florian B. [via Apache Wicket] ml-node+3738252-887758337-65...@n4.nabble.com wrote: I'm developing a web application based on Hibernate, Spring and Wicket. Until now I implemented the business objects and the persistence layer. The transaction is managed by a transaction interceptor of the Spring framework and the HibernateTransactionManager. So each method of the DAO classes is encapsulated in a transaction. Implementing this together with unit test was straight forward. Now I come to the web application part where I also use Spring for dependency injection. Together with the @SpringBean annotations of the Wicket framework I inject the DAOs in the Wicket components. But as I'm pretty new to Wicket I'm a little bit stuck when using the right model for my business objects when passing them do the Wicket components. The problem is that I got a lot of exceptions due to detached business objects, which are not connected to the Hibernate session any more. I tried to use the LoadableDetachableModel solve the issues. I put the business object into a LoadableDetachableModel which I put into a CompoundModel which then is bound to Form. The form is on a page which should be used to create new business objects and also to edit exiting ones depending on the input parameters of the page. If there is a id in the parameters then the corresponding business object should be loaded from the database. When there are no parameters then a new business object should be created. The part were a object should be edited runs quite well but when a new object should be created, and I fill out the web form and press save, I get a NullPointerException. After some debugging I found out that LoadableDetachableModel could not return an instance of the business object as the overridden load() method could not load the object form the database as it was not saved there yet and therefore has no id. So now I'm wondering how to solve this problem. Is the LoadableDetachableModel the right choice? Is it advisable to separate the form into two interdependent forms and each form uses a different model. So only the edit page/form uses the LoadableDetachableModel? -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/How-to-use-the-LoadableDetachableModel-in-a-Wicket-Spring-Hibernate-based-web-application-correctly-tp3738252p3738252.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- JC -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-use-the-LoadableDetachableModel-in-a-Wicket-Spring-Hibernate-based-web-application-correctly-tp3738252p3739173.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Downloader for files outside Web Context
Check: DownloadLink component http://wicket.apache.org/apidocs/1.4/org/apache/wicket/markup/html/link/DownloadLink.html On Mon, Aug 8, 2011 at 1:14 AM, Arjun Dhar [via Apache Wicket] ml-node+3726062-793087976-65...@n4.nabble.com wrote: Liek a DownloadServlet that is given some params and knows where to pick it from the local FS and streams it down. So the link ends up getting the streamed resource. Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/Downloader-for-files-outside-Web-Context-tp3726061p3726062.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- JC -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Downloader-for-files-outside-Web-Context-tp3726061p3727427.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Stateless pagination
Just for the record, using HttpSession makes your application already stateful as well. On Mon, Aug 8, 2011 at 10:21 AM, Vytautas Racelis-2 [via Apache Wicket] ml-node+3726961-1182509707-65...@n4.nabble.com wrote: Hi, I guess you might be interested in this: https://xaloon.googlecode.com/svn/trunk/xaloon-wicket/xaloon-wicket-components/src/main/java/org/xaloon/wicket/component/navigation/BookmarkablePagingNavigator.java it's a bookmarkable navigator example with abitility to change items per page and it is stateless. On Mon, Aug 8, 2011 at 4:16 PM, heikki [hidden email]http://user/SendEmail.jtp?type=nodenode=3726961i=0 wrote: hello, I've noticed that rather many Wicket components cause the page to become stateful, something which I wish to avoid. In particular I'm wondering if there is some way to use the Pagination* components (or similar alternative ones) to create a page that has pagination over a repeater, without making the page stateful. Sure, I suppose some info about the collection and current page etc. must be remembered on the server, but we still have good old HttpSession that could maybe be used for it ? Any hints appreciated ! thanks and kind regards Heikki Doeleman -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Stateless-pagination-tp3726950p3726950.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3726961i=1 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3726961i=2 -- Best regards, Vytautas R. --- www.xaloon.org www.allcarindex.com -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/Stateless-pagination-tp3726950p3726961.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- JC -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Stateless-pagination-tp3726950p3727424.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How can i toggle panel visibility without javascript?
Try using the Swap Panel technique, here is an example using Fragments http://pawelzubkiewicz.blogspot.com/2009/06/wicket-swapping-replacing-fragments.html On Mon, Aug 8, 2011 at 10:39 AM, Mike Mander [via Apache Wicket] ml-node+3727006-1582440175-65...@n4.nabble.com wrote: Hi, i have two adress panels. Invoice and shipping. Shipping is off by default. I would like to add a button or something to my invoice panel which is toggling the visibility of the shipping panel. I tried to add a page parameter to my current site and redirect, but the added parameter is not present. Do i have other options? Thanks Mike - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3727006i=0 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3727006i=1 -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/How-can-i-toggle-panel-visibility-without-javascript-tp3727006p3727006.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- JC -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-can-i-toggle-panel-visibility-without-javascript-tp3727006p3727441.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket, hibernate, spring setup
Try jWeekend LegUp http://www.jweekend.com/dev/LegUp On Mon, Aug 8, 2011 at 7:15 PM, msj121 [via Apache Wicket] ml-node+3728444-1358850638-65...@n4.nabble.com wrote: I noticed there was a github setup here: https://github.com/pflanzenmoerder/wicket-hibernate-archetype And I added the repository and imported the project into my eclipse helios. I can't seem to get the project to run, not sure how to finish setting up the project. Can anyone help? -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/wicket-hibernate-spring-setup-tp3728444p3728444.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- JC -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-hibernate-spring-setup-tp3728444p3728572.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: CSS, JS resource file handle issues?
Try compiling the SNAPSHOT from svn yourself and try again. On Thu, Aug 4, 2011 at 7:23 PM, rush66 [via Apache Wicket] ml-node+3720006-321977728-65...@n4.nabble.com wrote: The fix should've been in today's 1.5 snapshot correct? I moved our app to use the 1.5-SNAPSHOT that I got from a quickstart earlier today with the same issue. It failed to reload the resource and logged WARN [UrlResourceStream] getLastModified for file:path for each respective html file that was in use for the page I had open in the browser. -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/CSS-JS-resource-file-handle-issues-tp3701938p3720006.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- JC -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CSS-JS-resource-file-handle-issues-tp3701938p3720252.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to handle exceptions caused by img src=GARBAGE?
Are you expecting to actually serves images content from your own application directory using this methods?, you may need to parse and clean the HTML you are planning to serves in order to avoid those invalid HTTP GET. On Mon, Aug 1, 2011 at 11:45 PM, Alec Swan [via Apache Wicket] ml-node+3711221-2121860390-65...@n4.nabble.com wrote: Hello, Our app has a basic HTML editor where users can enter some HTML code. Sometimes users enter something like img src=GARBAGE. When the browser displays renders the page with this HTML it treats GARBAGE as a relative URL. So, the browser tacks GARBAGE on to the current page URL causing the application to throw an error. In fact, if the current page URL is http://xxx/yyy/oid/1 the browser will send and HTTP request to http://xxx/yyy/oid/GARBAGE making it look like oid parameter is invalid. Is there a way to distinguish between this scenario and a scenario where the user did enter an invalid oid value? Thanks, Alec - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3711221i=0 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3711221i=1 -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/How-to-handle-exceptions-caused-by-img-src-GARBAGE-tp3711221p3711221.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- JC -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-handle-exceptions-caused-by-img-src-GARBAGE-tp3711221p3712443.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to Catch WebApplication's Destroy()?
Why not use a ServletContextListener http://download.oracle.com/javaee/5/api/javax/servlet/ServletContextListener.html Instead of using wicket for that? On Mon, Jul 25, 2011 at 10:34 PM, eugenebalt [via Apache Wicket] ml-node+3694614-1673249323-65...@n4.nabble.com wrote: To clarify, this is not per-request, it should be per-application. I have a static Connection object in my WebApplication, and it's used for all transactions in the app. I construct it initially in the init(), and was just wondering where to close the Connection at the end of the app. -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/How-to-Catch-WebApplication-s-Destroy-tp3694556p3694614.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- JC -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-Catch-WebApplication-s-Destroy-tp3694556p3694654.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Problems with Wicket JARs: jcl-over-slf4j
Eugene, Usually you just need one jar from SLF4J in order to statically make the bridge to the logging system of choice. On Mon, Jul 25, 2011 at 10:10 PM, eugenebalt [via Apache Wicket] ml-node+3694554-1008203965-65...@n4.nabble.com wrote: I resolved all my issues, but I had to add a ton of JAR's that were never mentioned anywhere. Thanks anyway. -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/Problems-with-Wicket-JARs-jcl-over-slf4j-tp3694328p3694554.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- JC -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problems-with-Wicket-JARs-jcl-over-slf4j-tp3694328p3694662.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Replacing Spring MVC with Wicket in Existing Spring/Hibernate project
Eugene, Maven is just for development usually is just required you to put maven instalation on your hard drive, set the PATH variable to the /bin directory in order to be able to locate mvn in your command prompt (shell) and you're all set. If you do that, take the wicket quickstart from wicket page and put that on a command prompt (shell) should be enough to get that started. In the end after finishing you just need to grab the WAR from the target directory (by running *mvn package*) and send that war to your teacher. On Mon, Jul 25, 2011 at 9:03 PM, Randy S. [via Apache Wicket] ml-node+3694473-1917891730-65...@n4.nabble.com wrote: Glad to help. Read the intro to slf4j. You should only use two slf4j jars: the api plus exactly ONE implementation API jar. If that implementation has dependencies then of course you'll need to add those as well. But several implementations don't require anything additional. On Jul 25, 2011 5:29 PM, eugenebalt [hidden email]http://user/SendEmail.jtp?type=nodenode=3694473i=0 wrote: Thanks Randy. I added one more question about SLF4J, I am getting this exception even after adding all the 12-13 SLF4J JARs: Detected both jcl-over-slf4j.jar AND slf4j-jcl.jar on the class path, preempting StackOverflowError Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Replacing-Spring-MVC-with-Wicket-in-Existing-Spring-Hibernate-project-tp3693395p3694331.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3694473i=1 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3694473i=2 -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/Replacing-Spring-MVC-with-Wicket-in-Existing-Spring-Hibernate-project-tp3693395p3694473.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- JC -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Replacing-Spring-MVC-with-Wicket-in-Existing-Spring-Hibernate-project-tp3693395p3694669.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Bigger sites running on wicket?
The only trace that i think could be easily spot (once DEPLOYMENT mode is on) are the inclusion of resources such as css/javascript On Wed, Jul 20, 2011 at 6:08 PM, richard emberson [via Apache Wicket] ml-node+3682047-48131163-65...@n4.nabble.com wrote: I looked at the Page source for about 10 pages and could not tell that they were generated using Wicket. Are there some telltale indicators that might indicate Wicket usage? Yea, inside knowledge is one indicator, but I mean some other indicator. Something about the HTML or such? Thanks Richard On 07/20/2011 12:57 PM, dryajov wrote: Well, bodybuilding.com is beginning to use wicket extensively, there are several parts of the website ported to wicket (store excluded) already and a major revamp is being worked on as we speak - all in wicket. That is by far the biggest site that uses wicket AFAIK. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Bigger-sites-running-on-wicket-tp2197500p3681916.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3682047i=0 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3682047i=1 -- Quis custodiet ipsos custodes - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3682047i=2 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3682047i=3 -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/Bigger-sites-running-on-wicket-tp2197500p3682047.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- JC -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Bigger-sites-running-on-wicket-tp2197500p3682086.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Why does my DAO need to implement serialization?
It must be serializable because Wicket session can get serialized. On Thu, Jun 16, 2011 at 3:00 PM, Brian Lavender [via Apache Wicket] ml-node+3603204-29326886-65...@n4.nabble.com wrote: It seems that I have to extend the serializable interface for my DAO in order not to get errors. Should I be putting it in the WebSession area, or elsewhere? I have the full context of the sample at the following. It is a simple Maven project. http://brie.com/brian/wicket/zebra00.zip public interface CheeseDAO extends java.io.Serializable { public Cheese getCheese(Long id); public ListCheese getCheeses(); } public class CheesrSession extends WebSession { private CheeseDAO myDAO = new CheeseDAOImpl(); public CheeseDAO getDAO() { return myDAO; } } Thanks, brian -- Brian Lavender http://www.brie.com/brian/ There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies. Professor C. A. R. Hoare The 1980 Turing award lecture - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3603204i=0 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3603204i=1 -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/Why-does-my-DAO-need-to-implement-serialization-tp3603204p3603204.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- JC -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Why-does-my-DAO-need-to-implement-serialization-tp3603204p3603224.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Handling session and load-balancer cookie timeout
How does Referer header value looks like?, is it a bookmarkable url? Try HybridUrlCodingStrategyhttp://wicket.apache.org/apidocs/1.4/org/apache/wicket/request/target/coding/HybridUrlCodingStrategy.html when mounting those pages and check. On Sat, May 14, 2011 at 3:18 PM, Alec Swan [via Apache Wicket] ml-node+3522892-1695417627-65...@n4.nabble.com wrote: I put the following code in RequestCycle#onRuntimeException() but it redirects me to Wicket's Page Expired page?! if (e instanceof PageExpiredException) { final HttpServletRequest httpServletRequest = ((WebRequest) getRequest()).getHttpServletRequest(); final String referrerUrl = httpServletRequest.getHeader(Referer); if (referrerUrl != null) { setRequestTarget(new RedirectRequestTarget(referrerUrl)); return super.onRuntimeException(page, e); } } Any ideas? Alec On Sat, May 14, 2011 at 11:21 AM, Alec Swan [hidden email]http://user/SendEmail.jtp?type=nodenode=3522892i=0 wrote: Igor, if I understood correctly you recommend redirecting back to tab2 from the login page. If so, what is the recommended way to do this? Do I get referrer ULR with ((WebRequest) getRequest()).getHttpServletRequest().getHeader(Referer) and throw some kind of exception which redirects back to that URL in LoginPage constructor or do I call continueToOriginalDestination() in the LoginPage constructor instead? Thanks, Alec On Sat, May 14, 2011 at 10:32 AM, Igor Vaynberg [hidden email]http://user/SendEmail.jtp?type=nodenode=3522892i=1 wrote: i can only assume that tab 2 is either bookmarkable or hybrid. if it is, you may be able to check the referer header and if its bookmarkable or hybrid redirect back to it. -igor On Sat, May 14, 2011 at 9:15 AM, Alec Swan [hidden email]http://user/SendEmail.jtp?type=nodenode=3522892i=2 wrote: In our case login page is the home page. Please let me clarify the scenario we need to support: 1. Guest opens the website, clicks on tab1 and stays on it for a while 2. Session times out 3. Guest clicks on tab2 Current behavior: Guest is redirected to a login page Desired behavior: Guest is redirected to tab2 Thanks, Alec On Sat, May 14, 2011 at 12:10 AM, Igor Vaynberg [hidden email]http://user/SendEmail.jtp?type=nodenode=3522892i=3 wrote: so for guests do not return the login page, but a homepage instead... -igor On Fri, May 13, 2011 at 9:03 PM, Alec Swan [hidden email]http://user/SendEmail.jtp?type=nodenode=3522892i=4 wrote: The login page is returned from WebRequestCycle#onRuntimeException() and Application#getHomePage() and there is also a RestartResponseAtInterceptPageException(LOGIN_PAGE) thrown from IAuthorizationStrategy#isInstantiationAuthorized(). I am not sure how session timeout is handled by wicket, but I bet some kind of runtime exception is thrown causing WebRequestCycle#onRuntimeException() to return the login page. Thanks, Alec On Fri, May 13, 2011 at 6:23 PM, Igor Vaynberg [hidden email]http://user/SendEmail.jtp?type=nodenode=3522892i=5 wrote: what is redirecting them back? -igor On Fri, May 13, 2011 at 3:45 PM, Alec Swan [hidden email]http://user/SendEmail.jtp?type=nodenode=3522892i=6 wrote: Hello, Our webapp has two types of users - Admins and Guests. Guests can view the site without logging in. However, when the session times out or load-balancer cookie expires Guests, like Admins are redirected to our login page, which confuses the Guests. What's a good way to redirect Guests back to the page that they were viewing without keeping the session alive with AJAX pings? Thanks, Alec - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3522892i=7 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3522892i=8 - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3522892i=9 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3522892i=10 - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3522892i=11 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3522892i=12 - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3522892i=13 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3522892i=14 - To
Re: Continue navigating while on submit button process stuff on the background
Hi, putting configuration aside of your first question (since i just made a comment, for the sake of best practice). Back to your original question and since you are using Spring, you can just use Spring facilities to Schedule the jobs an pass the appropriate parameters (list of objects) to the appropriate async service http://static.springsource.org/spring/docs/2.5.x/reference/scheduling.html http://static.springsource.org/spring/docs/2.5.x/reference/scheduling.htmlBut keep in mind the following, from a Thread you shouldn't access any wicket component since those are bound the Http Thread, which at the point when the jobs runs the request would be gone. On Sat, May 7, 2011 at 6:26 AM, lucast [via Apache Wicket] ml-node+3505262-1989378023-65...@n4.nabble.com wrote: @jcgarciam, Thanks for your post. Sorry it took me so long to reply. Yes, I am using component instantiation listener on my wicket app. I think I might have not explained things properly in my last post. For the sake of clarity, I'm posting my web.xml and applicationContext set up: On my WicketApplication class I have the following, also based on the wicket in action book: public class WicketApplication extends WebApplication { @Autowired private ObjectService objects_service; @Override protected void init() { addComponentInstantiationListener(new SpringComponentInjector(this)); } My spring/hibernate set-up is also similar to the wicket in Action book : My web.xml file has the following hibernate session filter (wicket in action book, section 12.3.2): filter filter-nameopensessioninview/filter-name filter-class org.springframework.orm.hibernate3.support.OpenSessionInViewFilter/filter-class /filter filter-mapping filter-nameopensessioninview/filter-name url-pattern/*/url-pattern /filter-mapping context-param param-namecontextConfigLocation/param-name param-value/WEB-INF/applicationContext.xml/param-value /context-param listener listener-classorg.springframework.web.context.ContextLoaderListener/listener-class /listener On the applicationContext.xml file I have the following: tx:annotation-driven / bean id=wicketApplication class=com.myApp.WicketApplication /bean ... I think the whole set up is pretty much standard but if you think I am missing something, then I'd be most grateful if you point it out. Cheers, Lucas -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/Continue-navigating-while-on-submit-button-process-stuff-on-the-background-tp3473026p3505262.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- JC -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Continue-navigating-while-on-submit-button-process-stuff-on-the-background-tp3473026p3505480.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to add an unspecified number of components
What you want to achieve is a very common usecase in wicket, play around with a ListView component and then move to a suitable component for database like that provide like DataView https://cwiki.apache.org/WICKET/listview-and-other-repeaters.html https://cwiki.apache.org/WICKET/listview-and-other-repeaters.html http://wicket.apache.org/apidocs/1.4/org/apache/wicket/markup/repeater/data/DataView.html http://wicket.apache.org/apidocs/1.4/org/apache/wicket/markup/repeater/data/DataView.html On Wed, May 4, 2011 at 8:54 PM, wmike1...@gmail.com [via Apache Wicket] ml-node+3497096-2083856505-65...@n4.nabble.com wrote: Hi, I'm gathering information from a database that I want to display on my page. My query to this DB could result any number of rows. I'd like to build a panel to represent the information from a row and then just add a bunch of panels to my page. To add a panel or component though, I need an html element with a wicket:id attribute in the container's markup. So my question is: if I don't know how many panels I'm going to be adding (uncertain of the # of rows I'll get), how can I prepare the markup to have enough wicket:ids to accommodate them? Or am I going about this all wrong? Thanks, Mike -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/How-to-add-an-unspecified-number-of-components-tp3497096p3497096.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- JC -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-add-an-unspecified-number-of-components-tp3497096p3497198.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Serve Json in request and response
Just adding another json library (http://code.google.com/p/google-gson/) As all saids, wicket brings nothing to the mix. Use a servlet+json library to parse the request. On Tue, May 3, 2011 at 8:22 AM, Wilhelmsen Tor Iver [via Apache Wicket] ml-node+3492239-1708321586-65...@n4.nabble.com wrote: I can use dopost and doget but how to handle Json request? JSON is just data representation, there are some Java libraries out there to deal with JSON formatted data (e.g. Jettison at http://jettison.codehaus.org/ or JSON.simple at http://code.google.com/p/json-simple/ ). But if you want to use the Jersey libraries directly they of course deal with Java-JSON mapping out of the box. If you somehow need to share info between Wicket and the REST services you should be able to put that into the HTTP session which would be shared between them. - Tor Iver - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3492239i=0by-user=t For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3492239i=1by-user=t -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/Serve-Json-in-request-and-response-tp3491991p3492239.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- JC -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Serve-Json-in-request-and-response-tp3491991p3492287.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Share data in TabbedPanel
Lets say you have a property in your page that point to the dataobject you are creating and manipulating on first tab. The model of the tabs that should see this dataobject as well can be reference as: tp.setDefaultModel(new PropertyModel(this,mySharedObject)); Being mySharedObject the property on you page (this) that have the object reference that you want to shared across tabs. On Sun, May 1, 2011 at 5:06 AM, meduolis[via Apache Wicket] ml-node+3487440-18642877-65...@n4.nabble.com wrote: Maybe you can show a small example how to do this? You mean like this? TabbedPanel tp = new TabbedPanel(); tp.setDefaultModel(new ModelSharedDTO()); -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/Share-data-in-TabbedPanel-tp3477328p3487440.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- JC -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Share-data-in-TabbedPanel-tp3477328p3487759.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Share data in TabbedPanel
I didn't checked the API before posting the example was using the kind of the same code you provide earlier, just to give u a quick start :) But the idea is to pass a model to the underlying panel on each tab, that points to the same object reference. On Sun, May 1, 2011 at 12:52 PM, meduolis[via Apache Wicket] ml-node+3487936-2075405694-65...@n4.nabble.com wrote: I think that your example would finish with ClassCastExeption in TabbedPanel.java:382 line return (Integer)getDefaultModelObject(); -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/Share-data-in-TabbedPanel-tp3477328p3487936.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- JC -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Share-data-in-TabbedPanel-tp3477328p3487998.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Continue navigating while on submit button process stuff on the background
Lucast is not good idea to make the Wicket application and spring bean directly (can't remember why, but look for it into the archive), instead the use of the CompenentInstantiaionListener is the recommended with the companion of the wicket @SpringBean annotation. On Thu, Apr 28, 2011 at 8:31 AM, lucast [via Apache Wicket] ml-node+3480723-1382859170-65...@n4.nabble.com wrote: Thank you Mzemeck, I am using Spring and I tried implementing @Async but for some reason when I fired up my wicket app it complained that it couldn't find the beans. I think it must have been because I'm declaring all of my spring managed beans (including my wicketApplication class) on my applicationContext file. Looking at the Task Execution and Schedulinghttp://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/htmlsingle/spring-framework-reference.html#scheduling section of the spring reference manual, I decided to use a TaskExecutorhttp://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/htmlsingle/spring-framework-reference.html#scheduling-task-executor-usage instead of using @Async annotations and it works perfectly with my current spring settings. I am autowiring spring beans on my WicketAppliation class. And I noticed that calling WicketApplication.get() from the taskExecutor kept throwing a WicketRuntimeException: There is no application attached to current thread taskExecutor-1 exception. I realised that I didn't need to call my db services from the taskExecutor since none of those tasks are time consuming, the sending emails is what is time consuming and that's what I limited the functionality of taskExecutor to. Thanks, once more for your help. Lucas -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/Continue-navigating-while-on-submit-button-process-stuff-on-the-background-tp3473026p3480723.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- JC -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Continue-navigating-while-on-submit-button-process-stuff-on-the-background-tp3473026p3486071.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket 1.5-RC3 with hibernate-annotation
I think you can try to exclude the slfj dependency that wicket ships on, since its being already contributed by Hibernate or just update you the dependency groupIdorg.slf4j/groupId artifactIdslf4j-log4j12/artifactId * version1.6.1/version* /dependency To the version that match the one provided hibernate. On Wed, Apr 27, 2011 at 3:53 AM, Lucky Spiff [via Apache Wicket] ml-node+3477380-979833950-65...@n4.nabble.com wrote: I folks, I tried to upgrade an application from wicket 1.4.17 to wicket 1.5-RC3 and after resolving some API changes it crashed at runtime because of a version conflicht with slf4j that seems to come from hibernate-annotations: java.lang.NoSuchMethodError: org.slf4j.helpers.MessageFormatter.format(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String; at org.slf4j.impl.Log4jLoggerAdapter.info(Log4jLoggerAdapter.java:318) at org.hibernate.annotations.common.Version.clinit(Version.java:37) ... It seems that hibernate-annotations is compiled against slfj4 1.5.8 and has a version conflict. I use hibernate 3.6.2-Final. Is there a simple way around this without moving to something like OSGi? Thank you in advance for any hints! -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-RC3-with-hibernate-annotation-tp3477380p3477380.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- JC -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-RC3-with-hibernate-tp3477380p3477963.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Question on sessions
just and idea, declare an anonymous role in your app. and effectively bind it to a real session, once the token is obtained elevate the users right. On Mon, Apr 25, 2011 at 6:35 PM, nimmy [via Apache Wicket] ml-node+3474193-959482693-65...@n4.nabble.com wrote: Hi, I have a user who has a temporary session (i.e. is not logged in). I need to redirect him/her to an external page for to get an access token (e.g. Facebook/Flickr access token). Is there anyway to keep the same session? I find that the user has a different session after the redirection. Thanks for your help. Cheers, Nim -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/Question-on-sessions-tp3474193p3474193.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- JC -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Question-on-sessions-tp3474193p3474371.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Refreshing loadable detachable model object inside an ajax call
Does your Person class implements the 'Identifiable' interface? On Mon, Apr 18, 2011 at 4:27 AM, lucast [via Apache Wicket] ml-node+3456789-549093517-65...@n4.nabble.com wrote: Hi Clint, Here is the example of EntityModel as taken from http://wicketinaction.com/2008/09/building-a-smart-entitymodel/. I've added the constructor that calls super(). public class EntityModelT extends AbstractEntityModelT { public EntityModel(Class? extends T clazz, Serializable id) { super(clazz, id); } @Override protected T load(Class clazz, Serializable id) { return WicketApplication.get().get_service().load(clazz, id); } } Now my I have two errors from my IDE (Eclipse), the first one on *extends AbstractEntityModelT {*. On type T, it says: Bound mismatch: The type T is not a valid substitute for the bounded parameter T extends Identifiable? of the type AbstractEntityModelT. Would you know what is going on here? I am following the exact example. The second error my IDE is complaining about is on *return WicketApplication.get().get_service().load(clazz, id);*: The method load(ClassT, long) in the type Service is not applicable for the arguments (Class, Serializable). That's fair enough since all the objects ID i'm persisting to DB are of type Long. But why is the example using type Serializable instead of Long? If you look at the section Using EntityModel to bind to Forms, from the link above you will see that the values passed are class and Long: public EditPersonPage(Long personId) { this(new EntityModelPerson(Person.class, personId)); } I fear I'm missing a very small detail that's stopping me from having this working. Thanks, Lucas -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/Refreshing-loadable-detachable-model-object-inside-an-ajax-call-tp3446979p3456789.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- JC -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Refreshing-loadable-detachable-model-object-inside-an-ajax-call-tp3446979p3457165.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [ANNOUNCE] Wicketopia 0.9 Released...
Nice Work, James. I working on project right now with tons of CRUD for their administration application, even thought i don't have problem writing them is more a repetitive and bored task than rocket science :P. I think this will fit nice, i was thinking about building one (or use other implementation that are outthere, but always found an excuse to avoid them), but i'll take a look during the week. Thanks On Sat, Apr 2, 2011 at 8:19 AM, James Carman [via Apache Wicket] ml-node+3421978-831030994-65...@n4.nabble.com wrote: On Fri, Apr 1, 2011 at 10:59 PM, Chris Colman [hidden email]http://user/SendEmail.jtp?type=nodenode=3421978i=0by-user=t wrote: We created and maintain the open source persistence abstraction framework called exPOJO (expojo.com) than can support any persistence technology under the hood upon which your application (or indeed other framework) can with be written with no direct reference to any specific framework (Hibernate, JDO, JPA). Currently JDO and Hibernate plugins are implementated but JPA could be easily accommodated via the same interface. It allows you to write applications where the UI and model need have no direct reference to any specific framework - keeping your app persistence framework agnostic. Following Chris Richardon's 'Exposed domain model' pattern it works with repositories and service classes. It is only the repositories (collections of query methods) that need to be written in a specific persistence framework's query language. The rest of the app can remain blissfully independent and portable and usable by developers of any ORM persuasion. Sounds like domdrides. - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3421978i=1by-user=t For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3421978i=2by-user=t -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/ANNOUNCE-Wicketopia-0-9-Released-tp3418771p3421978.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) --Anyone who has never made a mistake has never tried anything new.-- -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ANNOUNCE-Wicketopia-0-9-Released-tp3418771p3422135.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: problems with spring integration
Hi, I believe the problem to your [Could not instantiate bean class [de.Test]: No default constructor found;] is that your are setting up a Wicket Page (without default constructor) as a managed bean in Spring, when what you actually mean was to define your [UserService] as the Spring bean. Spring doesn't to managed the Wicket pages specifically, just bind your services and then use the @SpringBean annotation on it and you will be fine. On Wed, Mar 30, 2011 at 12:56 PM, hrbaer [via Apache Wicket] ml-node+3418488-701454310-65...@n4.nabble.com wrote: Just to summarize my status: I've added *addComponentInstantiationListener( new SpringComponentInjector(this) );* to the init method of my xxxApplication file, I added *bean id=userService class=de.service.UserService/bean* to my applicationContext and withing my WebPage I have this code: public class Test extends WebPage { @SpringBean private UserService userService; public Test( PageParameters params ) { (...) } If I add bean id=test class=de.Test property name=userService ref=userService/ /bean to the applicationContext I get the error Could not instantiate bean class [de.Test]: No default constructor found; If I don't add this line I get the error message *WicketMessage: Can't instantiate page using constructor public de.Test(org.apache.wicket.PageParameters) and argument Root cause: java.lang.ClassNotFoundException: net.sf.cglib.proxy.Callback (...)* At the moment I'm at a loss. Every help would be appreciated. -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/problems-with-spring-integration-tp3416484p3418488.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) --Anyone who has never made a mistake has never tried anything new.-- -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/problems-with-spring-integration-tp3416484p3418767.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Apache Wicket Cookbook Published!
Congrats!! I will order mine! On Fri, Mar 25, 2011 at 7:48 PM, Attila Király [via Apache Wicket] ml-node+3406630-1722189058-65...@n4.nabble.com wrote: Gratulations! I ordered one. Attila 2011/3/25 Igor Vaynberg [hidden email]http://user/SendEmail.jtp?type=nodenode=3406630i=0by-user=t For the past nine months I have been quietly working on a book about Wicket... -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/Apache-Wicket-Cookbook-Published-tp3406012p3406630.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) --Anyone who has never made a mistake has never tried anything new.-- -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Apache-Wicket-Cookbook-Published-tp3406012p3406733.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Adding a IRenderer interface ?
What about: IChoiceRenderer ?? On Fri, Mar 18, 2011 at 10:52 AM, zedros [via Apache Wicket] ml-node+3387253-1092151999-65...@n4.nabble.com wrote: hi I was refactoring some code (to go from DropDownChoice to AutoCompleteEdit) when I stumbled upon there's no interface just about how to render some given class instances. Well, it's for sure no big deal, but I was wondering if, for unification purpose, a IRenderer interface wouldn't make sense, being something like : public interface IRendererT { /** * Get the value for displaying to an end user. * * @param object *the actual object * @return the value meant for displaying to an end user */ Object getDisplayValue(T object); } Just 2 cents really. thanks again for all the good work done with Wicket :) best zedros - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3387253i=0by-user=t For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3387253i=1by-user=t -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/Adding-a-IRenderer-interface-tp3387253p3387253.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) --Anyone who has never made a mistake has never tried anything new.-- -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Adding-a-IRenderer-interface-tp3387253p3392206.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Erase Previous Error Messages in Feedback Panel after Download
Explore the option of having a Resource mounted at a Fixed URL that will serves your file (It will create/load your file on demand) if you hit that URL. In that way you can do what Igor's said. On Fri, Feb 18, 2011 at 11:49 AM, eugenebalt [via Apache Wicket] ml-node+3312811-825428239-65...@n4.nabble.com wrote: Hi Igor, the file isn't saved anywhere, it's immediately returned to the user in the browser, as follows: (in Form OnSubmit) --- File f = generateExcelFile(); // generates a File object ResourceStreamRequestTarget target = new ResourceStreamRequestTarget( new FileResourceStream(f)); target.setFileName(test.xls); RequestCycle.get().setRequestTarget(target); --- So I don't see how I can do a URL that points to it, unless we change our whole architecture to store files somewhere. Would that be required? Or is there an easier solution to do this Download/Refresh workaround? Thanks -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/Erase-Previous-Error-Messages-in-Feedback-Panel-after-Download-tp3311648p3312811.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) --Anyone who has never made a mistake has never tried anything new.-- -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Erase-Previous-Error-Messages-in-Feedback-Panel-after-Download-tp3311648p3312908.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: export to excel AjaxFallbackDefaultDataTable
See http://itextpdf.com/ On Tue, Feb 1, 2011 at 1:21 PM, fachhoch [via Apache Wicket] ml-node+3252116-297151156-65...@n4.nabble.comml-node%2b3252116-297151156-65...@n4.nabble.com wrote: Now I want to export the same table in PDF , I did the export to excel using apache POI, Now I have to export the same table to PDF. Is there any libray which serves export to various formats ? I saw display Tag http://displaytag.sourceforge.net/10/export.html it provides export to pdf , xml , excel , I am looking for a similar solution , is there any way I can use the display tag to export from wicket datatable ? Please suggest me what are the available options to provide export to various formats from a wicket datatable ? -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/export-to-excel-AjaxFallbackDefaultDataTable-tp3225458p3252116.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.comml-node%2b1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) --Anyone who has never made a mistake has never tried anything new.-- -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/export-to-excel-AjaxFallbackDefaultDataTable-tp3225458p3253047.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Question regarding AjaxFormSubmitBehavior
Adding to Igor's comment, remember that nested form is not allow in HTML spec per se, so what wicket is doing a trick where the root form is submit but only elements of nested form (which get transform in DIV tag) are processed On Thu, Jan 20, 2011 at 4:47 PM, Igor Vaynberg-2 [via Apache Wicket] ml-node+3228304-1818027643-65...@n4.nabble.comml-node%2b3228304-1818027643-65...@n4.nabble.com wrote: the bigger form needs to be processed because what is submitted is the root form's formtag. however, validation, etc, will probably be delegated only to the inner form. -igor On Thu, Jan 20, 2011 at 4:14 AM, Daniel Bartl [hidden email]http://user/SendEmail.jtp?type=nodenode=3228304i=0 wrote: Have a small question regarding using AjaxFormSubmitBehavoir with nested forms. Would like to use it to submit a smaller nested form within a bigger parent form. Even though I passed a nested form as a *form that will be submitted* while calling the following constructor of AjaxFormSubmitBehavoir : /** * Construct. * * @param form * * form that will be submitted* * @param event *javascript event this behavior is attached to, like onclick */ public AjaxFormSubmitBehavior(Form? form, String event) - passing nested form here { super(event); __form = form; if (form != null) { form.setOutputMarkupId(true); } } I noticed that the AjaxFormSubmitBehavior#onEvent(AjaxRequestTarget target) executes the following line first: getForm().getRootForm().onFormSubmitted(); Why does it still delegate to the root form? Shouldn't the line be getForm().onFormSubmitted(); so that the nested form and possibly its children get processed only. Many thanks! Daniel - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3228304i=1 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3228304i=2 -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/Question-regarding-AjaxFormSubmitBehavior-tp3227451p3228304.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.comml-node%2b1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) --Anyone who has never made a mistake has never tried anything new.-- -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Question-regarding-AjaxFormSubmitBehavior-tp3227451p3228728.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Check for User-Modified (Dirty) Fields before Form Submission
JavaScript Trick: After Page Load, serialized your form elements into a global variable. Before Submit, serialize your form elements again and compare it against your previously serialized version. Rinse and Repeat On Mon, Jan 17, 2011 at 1:12 PM, eugenebalt [via Apache Wicket] ml-node+3221228-1217690326-65...@n4.nabble.comml-node%2b3221228-1217690326-65...@n4.nabble.com wrote: Is there a way in wicket to check if a field has been modified by the user before submitting the form? -- View message @ http://apache-wicket.1842946.n4.nabble.com/Check-for-User-Modified-Dirty-Fields-before-Form-Submission-tp3221228p3221228.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.comml-node%2b1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) --Anyone who has never made a mistake has never tried anything new.-- -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Check-for-User-Modified-Dirty-Fields-before-Form-Submission-tp3221228p3221278.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Check for User-Modified (Dirty) Fields before Form Submission
JavaScript Trick: After Page Load, serialized your form elements into a global variable. Before Submit, serialize your form elements again and compare it against your previously serialized version. Rinse and Repeat -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Check-for-User-Modified-Dirty-Fields-before-Form-Submission-tp3221228p3221280.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: help me please!!! Wicket/Spring/Hibernate configuration woes
userService; public void setUserService(final UserService userService){ this.userService = userService; } transient private String currentUser = null; public CustomAuthenticatedWebSession(final Request request){ super(request); InjectorHolder.getInjector().inject(this);//-- VERY IMPORTANT to get Spring DI to work (within Wicket objects) } @Override public boolean authenticate(final String username, final String password){ currentUser = username; return userService.authenticate(username, password); } @Override public Roles getRoles(){ return userService.getRoles(currentUser, isSignedIn()); } } UserServiceImpl.java: @Service public class UserServiceImpl extends _AbstractService implements UserService{ final private TestUserService testUserService = new TestUserService(); @Autowired private Temp1DAO temp1DAO; @Override @Required final public void setTemp1DAO(final Temp1DAO temp1dao){ temp1DAO = temp1dao; } public UserServiceImpl(){ super(); //InjectorHolder.getInjector().inject(this);//-- VERY IMPORTANT to get Spring DI to work. } /* (non-Javadoc) * @see uk.co.company.product.business.spring.UserService#authenticate(java.lang.String, java.lang.String) */ @Override @Transactional final public boolean authenticate(final String userName, final String password){ final Temp1 temp1 = new Temp1(); temp1.setValue(userName); temp1DAO.save(temp1); return testUserService.authenticate(userName, password); } /* (non-Javadoc) * @see uk.co.company.product.business.spring.UserService#getRoles(java.lang.String, boolean) */ @Override @Transactional final public Roles getRoles(final String userName, final boolean signedIn){ return testUserService.getRoles(userName, signedIn); } } Temp1DAOImpl.java: @Repository public class Temp1DAOImpl extends AbstractTemp1DAO implements Temp1DAO{ private static final Log log = LogFactory.getLog(Temp1DAOImpl.class); public Temp1DAOImpl(){ super(); log.debug(Temp1DAO created.); } @Autowired public void init(final SessionFactory factory) { setSessionFactory(factory); } } -- View message @ http://apache-wicket.1842946.n4.nabble.com/help-me-please-Wicket-Spring-Hibernate-configuration-woes-tp3088768p3089284.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.comml-node%2b1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) --Anyone who has never made a mistake has never tried anything new.-- -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/help-me-please-Wicket-Spring-Hibernate-configuration-woes-tp3088768p3089321.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: RequiredValidator
See if this can help: https://cwiki.apache.org/WICKET/form-validation-messages.html https://cwiki.apache.org/WICKET/form-validation-messages.htmlFrom the link aboves: --- Changes in Wicket 1.3 Whether a field is required is now determined by testing the isRequired() method of FormComponent, therefore 'RequiredValidator' in the above examples has to be replaced by 'Required'. --- On Wed, Dec 15, 2010 at 10:29 AM, mrblobby [via Apache Wicket] ml-node+3088996-1577718881-65...@n4.nabble.comml-node%2b3088996-1577718881-65...@n4.nabble.com wrote: Hi, I dont see how this reply solves the problem. The forms fields have this: passwordField.setRequired(true); the Page.properties file has the following structure: Form.FeildName=fieldname RequiredValidator=Holy cow, ${lablel} is blank. This works fine, except the Required Validator part of the properties file does seem to work any more. I.e. it picks up the Form.Fieldname but not the RequiredValidator patterns. I am aware that RequiredValidator has been depricated, and there is no direct replacement, but how do you get the RequiredValidator string functionality back? E.g. if you need to translate the default Field 'xx' is required. which is hard coded into reply a the moment? Which class has an onErrorMessage() call? The form has a bunch of error methods which presumably can be overridden, but not this one. Many thanks for any help! -- View message @ http://apache-wicket.1842946.n4.nabble.com/RequiredValidator-tp1864291p3088996.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.comml-node%2b1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) --Anyone who has never made a mistake has never tried anything new.-- -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/RequiredValidator-tp1864291p3089345.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: repeters with
/SendEmail.jtp?type=nodenode=3084657i=10 - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3084657i=11 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3084657i=12 -- View message @ http://apache-wicket.1842946.n4.nabble.com/repeters-with-tp3084084p3084657.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.comml-node%2b1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) --Anyone who has never made a mistake has never tried anything new.-- -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/repeters-with-tp3084084p3084669.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Asynchronous File Uploads
Use a hidden Iframe to make your upload using the Servlet approach that Jeremy describe. On Fri, Dec 10, 2010 at 2:12 AM, exl [via Apache Wicket] ml-node+3081409-1187169087-65...@n4.nabble.comml-node%2b3081409-1187169087-65...@n4.nabble.com wrote: Hi again, This is how I interpreted your last post Jeremy (please see attached code fragments: TestingServlet.txthttp://apache-wicket.1842946.n4.nabble.com/file/n3081409/TestingServlet.txt) The new approach appears to trigger the separate servlet, but the problem is that it also redirects the browser to the separate servlet's URL (and confirms my suspicion that the Wicket application loses control as I queried in a previous post). The requirements I'm trying to achieve are: - The Wicket application accepts parameters from the user, potentially including a file upload. - When the user hits submit, some processing needs to be done in the background to update the backend (e.g. decode and import the contents of the file). - However, the user should be allowed to continue doing other things in the Wicket application. - The user will be notified via email that the background processing has been completed and then they can come back to interact with the newly created information. So am I still approaching this correctly? Thanks in advanced, Eric. -- View message @ http://apache-wicket.1842946.n4.nabble.com/Asynchronous-File-Uploads-tp2541855p3081409.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.comml-node%2b1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) --Anyone who has never made a mistake has never tried anything new.-- -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Asynchronous-File-Uploads-tp2541855p3081888.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: howto track translations
It seems very helpful, however i believe this can be used in other places (not only to wicket projects), since it may mislead users to think is wicket specific. However thanks for sharing it. On Thu, Dec 9, 2010 at 4:38 AM, Vijay Kiran-3 [via Apache Wicket] ml-node+3079700-1936498219-65...@n4.nabble.comml-node%2b3079700-1936498219-65...@n4.nabble.com wrote: I created a simple maven plugin to check the localizations in the properties files in a project. The plugin scans the folders for .properties file and verifies if there are corresponding files for the specified locales. Also, it checks for the missing labels in other languages. The results can be saved to a simple HTML file which lists the missing file and missing labels in other locales. You can also configure the plugin to cause the build to fail when these checks are failed. https://github.com/vijaykiran/wicket-l10n-checker https://github.com/vijaykiran/wicket-l10n-checkerI plan to add the support for XML localization checking as soon as I find some more time. HTH, Vijay Kiran. On Fri, Dec 3, 2010 at 10:40 AM, Frank van Lankvelt [hidden email] http://user/SendEmail.jtp?type=nodenode=3079700i=0 wrote: in the process of expanding the number of languages my wicket application is available in, I'm running into the question of tracking properties files. In particular, I want to be able to get some kind of feedback about missing translations; mismatches between property files would be sufficient. How do you do this? Is there a maven plugin that I've missed, or perhaps a standalone tool? cheers, Frank -- Hippo Europe • Amsterdam Oosteinde 11 • 1017 WT Amsterdam • +31 (0)20 522 4466 USA • San Francisco 755 Baywood Drive, Second Floor • Petaluma, CA. 94954 • +1 877 414 4776 (toll free) Canada• Montréal 5369 Boulevard St-Laurent #430 • Montréal QC H2T 1S5 • +1 (514) 316 8966 www.onehippo.com • www.onehippo.org • [hidden email]http://user/SendEmail.jtp?type=nodenode=3079700i=1 This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately. - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3079700i=2 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3079700i=3 -- View message @ http://apache-wicket.1842946.n4.nabble.com/howto-track-translations-tp3070837p3079700.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.comml-node%2b1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) --Anyone who has never made a mistake has never tried anything new.-- -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/howto-track-translations-tp3070837p3080297.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Setlt;Objectgt; with PageableListView
Or you can change your domain from: SetPhone phones; to: ListPhone phones; On Tue, Nov 30, 2010 at 7:57 AM, Alexander Monakhov-3 [via Apache Wicket] ml-node+3065170-145019232-65...@n4.nabble.comml-node%2b3065170-145019232-65...@n4.nabble.com wrote: Why are you trying to use component that is intended to work with java.util.List when your domain object is Set? Try one of AbstractPageableView implementations, f.e. DataView. Best regards, Alexander. - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3065170i=0 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3065170i=1 -- View message @ http://apache-wicket.1842946.n4.nabble.com/Set-Object-with-PageableListView-tp3064908p3065170.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.comml-node%2b1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) --Anyone who has never made a mistake has never tried anything new.-- -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Set-Object-with-PageableListView-tp3064908p3065304.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Ajax Panel Update
Just an idea: if the panel holds a model pointing to a ProductReference instance, you can change the underlying model. targetUpdatePanel.modelChanging(); targetUpdatePanel.setModel(new ProductReferenceLoadableDetachableModel(prod)); targetUpdatePanel.modelChanged(); On Wed, Nov 24, 2010 at 11:48 AM, Arjun Dhar [via Apache Wicket] ml-node+3057421-1014270419-65...@n4.nabble.comml-node%2b3057421-1014270419-65...@n4.nabble.com wrote: Hi, I have a Tree (representing a product line) and an adjacent Panel representing Product listing within a category/line. On click of the Link the Panel updates. I have the following code, all works except am not sure how to go about refreshing the Panel with updated DataModel: ... In following code: See //TODO: Not sure how to update Panel with latest Product. So on click I am getting the correct object in Prod (ProductReference). However I'm failing to translate that into updating the Panel Model Refreshing the Panel on UI more importantly. @Override protected final LinkTree createLinkTree(String id, TreeModel treeModel) { return new LinkTree(id, treeModel) { //node = Name of Link protected final void onNodeLinkClicked(Object node, BaseTree tree, AjaxRequestTarget target) { Object o = ((DefaultMutableTreeNode)node).getUserObject(); if (o instanceof ProductReference) { ProductReference prod = (ProductReference)((DefaultMutableTreeNode)node).getUserObject(); log.info([createLinkTree] + prod); targetUpdatePanel.setVisible(true); //TODO: Not sure how to update Panel with latest Product } } ... (targetUpdatePanel.setVisible(true); is used because initially the Panel is blank when nothing is selected placeholder markup is used -- FYI) -- View message @ http://apache-wicket.1842946.n4.nabble.com/Ajax-Panel-Update-tp3057421p3057421.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.comml-node%2b1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-Panel-Update-tp3057421p3057473.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Execute JavaScript automatically when loading a Page through XHTTPRequest
Wicket set a header value in the request set to wicket-ajax i believe that way, wicket is able to detect ajax request from regular request. On Tue, Nov 23, 2010 at 6:31 AM, Poko Booth [via Apache Wicket] ml-node+3055066-291766867-65...@n4.nabble.comml-node%2b3055066-291766867-65...@n4.nabble.com wrote: Not sure about this but if you use jQuery, you could try adding a js in the head of the page which will have something like $(document).ready( function(){ //your javascript here } ); Regards, Poko On Nov 23, 2010, at 11:12, sonxurxo [hidden email]http://user/SendEmail.jtp?type=nodenode=3055066i=0 wrote: Hi all, Is it possible to tell, from a Wicket Page, to execute some JavaScript automatically when a page loads through a JavaScript XHTTPRequest? I'm using AbstractBehavior with renderHead(), and it works when the Page is invoked from another Wicket component (through Link, etc), but not when I invoke the Page URL through Javascript, even when the HTML returned contains the script tags in the header, it does not execute it. Any ideas? TIA -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Execute-JavaScript-automatically-when-loading-a-Page-through-XHTTPRequest-tp3055042p3055042.htmlhttp://apache-wicket.1842946.n4.nabble.com/Execute-JavaScript-automatically-when-loading-a-Page-through-XHTTPRequest-tp3055042p3055042.html?by-user=t Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3055066i=1 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3055066i=2 - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3055066i=3 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3055066i=4 -- View message @ http://apache-wicket.1842946.n4.nabble.com/Execute-JavaScript-automatically-when-loading-a-Page-through-XHTTPRequest-tp3055042p3055066.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.comml-node%2b1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Execute-JavaScript-automatically-when-loading-a-Page-through-XHTTPRequest-tp3055042p3055072.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Simple Download from StringResourceStream cause NPE wicket 1.5M3 (possible bug??)
Hi Folks, Probably im doing it wrong, but please bear with me, currently i'm trying to do a very simple download operation in wicket 1.5M3, but it fails with a NPE in (ResourceStreamResource.java line 72), because it seems is always expecting that any IResourceStream implementation set the lastModifiedTime in the underlying stream before calling dataNeedsToBeWritten which StringResourceStream doesn't do it ( i need to explicitly set it to make it work ) . @Override protected ResourceResponse newResourceResponse(Attributes attributes) { ResourceResponse data = new ResourceResponse(); (72)- data.setLastModified(stream.lastModifiedTime().toDate()); My code using [StringResourceStream] code final StringBuilder content = new StringBuilder(Hello,world); add(new LinkVoid(downloadDoc) { @Override public void onClick() { StringResourceStream stream = new StringResourceStream(content.toString(),html/csv); getRequestCycle().scheduleRequestHandlerAfterCurrent(new ResourceStreamRequestHandler(stream) .setFileName(demo.csv) .setContentDisposition(ContentDisposition.ATTACHMENT)); } }); /code Calling [stream.setLastModified(Time.now());] right before scheduling the request handler make the download to works, but it seems that probably im doing something wrong (not supposed to a download on this way) or does it sounds like a bug in [ResourceStreamResource.java]? Thanks, Attached is a quickstart http://apache-wicket.1842946.n4.nabble.com/file/n3056036/DownloadStreamBug.7z DownloadStreamBug.7z -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Simple-Download-from-StringResourceStream-cause-NPE-wicket-1-5M3-possible-bug-tp3056036p3056036.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Simple Download from StringResourceStream cause NPE wicket 1.5M3 (possible bug??)
Hi Martin, I explored the object hierarchy, and it seems *StringBufferResourceStream *may suffer from the same problem, if its constructed and no append or prepend method is called on it (which is a weird scenario of course). Thanks! On Tue, Nov 23, 2010 at 4:27 PM, Martin Grigorov-4 [via Apache Wicket] ml-node+3056080-692802461-65...@n4.nabble.comml-node%2b3056080-692802461-65...@n4.nabble.com wrote: Done. r1038292 On Tue, Nov 23, 2010 at 8:20 PM, Martin Grigorov [hidden email]http://user/SendEmail.jtp?type=nodenode=3056080i=0wrote: Looks like a bug. I think StringResourceStream has to initialize its lastModifiedTime in the constructor to Time.now(). I'll create a ticket and fix it. On Tue, Nov 23, 2010 at 8:05 PM, jcgarciam [hidden email]http://user/SendEmail.jtp?type=nodenode=3056080i=1 wrote: Hi Folks, Probably im doing it wrong, but please bear with me, currently i'm trying to do a very simple download operation in wicket 1.5M3, but it fails with a NPE in (ResourceStreamResource.java line 72), because it seems is always expecting that any IResourceStream implementation set the lastModifiedTime in the underlying stream before calling dataNeedsToBeWritten which StringResourceStream doesn't do it ( i need to explicitly set it to make it work ) . @Override protected ResourceResponse newResourceResponse(Attributes attributes) { ResourceResponse data = new ResourceResponse(); (72)- data.setLastModified(stream.lastModifiedTime().toDate()); My code using [StringResourceStream] code final StringBuilder content = new StringBuilder(Hello,world); add(new LinkVoid(downloadDoc) { @Override public void onClick() { StringResourceStream stream = new StringResourceStream(content.toString(),html/csv); getRequestCycle().scheduleRequestHandlerAfterCurrent(new ResourceStreamRequestHandler(stream) .setFileName(demo.csv) .setContentDisposition(ContentDisposition.ATTACHMENT)); } }); /code Calling [stream.setLastModified(Time.now());] right before scheduling the request handler make the download to works, but it seems that probably im doing something wrong (not supposed to a download on this way) or does it sounds like a bug in [ResourceStreamResource.java]? Thanks, Attached is a quickstart http://apache-wicket.1842946.n4.nabble.com/file/n3056036/DownloadStreamBug.7zhttp://apache-wicket.1842946.n4.nabble.com/file/n3056036/DownloadStreamBug.7z?by-user=t DownloadStreamBug.7z -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Simple-Download-from-StringResourceStream-cause-NPE-wicket-1-5M3-possible-bug-tp3056036p3056036.htmlhttp://apache-wicket.1842946.n4.nabble.com/Simple-Download-from-StringResourceStream-cause-NPE-wicket-1-5M3-possible-bug-tp3056036p3056036.html?by-user=t Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3056080i=2 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3056080i=3 -- View message @ http://apache-wicket.1842946.n4.nabble.com/Simple-Download-from-StringResourceStream-cause-NPE-wicket-1-5M3-possible-bug-tp3056036p3056080.html To unsubscribe from Simple Download from StringResourceStream cause NPE wicket 1.5M3 (possible bug??), click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=3056036code=amNnYXJjaWFtQGdtYWlsLmNvbXwzMDU2MDM2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Simple-Download-from-StringResourceStream-cause-NPE-wicket-1-5M3-possible-bug-tp3056036p3056096.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Simple Download from StringResourceStream cause NPE wicket 1.5M3 (possible bug??)
Great, exactly what i had in mind :) Thanks. On Tue, Nov 23, 2010 at 4:42 PM, Martin Grigorov-4 [via Apache Wicket] ml-node+3056108-1056044911-65...@n4.nabble.comml-node%2b3056108-1056044911-65...@n4.nabble.com wrote: Covered by the fix ;-) All classes extending org.apache.wicket.util.resource.AbstractStringResourceStream will have it initialized for free. On Tue, Nov 23, 2010 at 8:37 PM, jcgarciam [hidden email]http://user/SendEmail.jtp?type=nodenode=3056108i=0 wrote: Hi Martin, I explored the object hierarchy, and it seems *StringBufferResourceStream *may suffer from the same problem, if its constructed and no append or prepend method is called on it (which is a weird scenario of course). Thanks! On Tue, Nov 23, 2010 at 4:27 PM, Martin Grigorov-4 [via Apache Wicket] [hidden email] http://user/SendEmail.jtp?type=nodenode=3056108i=1[hidden email] http://user/SendEmail.jtp?type=nodenode=3056108i=2 [hidden email] http://user/SendEmail.jtp?type=nodenode=3056108i=3[hidden email] http://user/SendEmail.jtp?type=nodenode=3056108i=4 wrote: Done. r1038292 On Tue, Nov 23, 2010 at 8:20 PM, Martin Grigorov [hidden email] http://user/SendEmail.jtp?type=nodenode=3056080i=0wrote: Looks like a bug. I think StringResourceStream has to initialize its lastModifiedTime in the constructor to Time.now(). I'll create a ticket and fix it. On Tue, Nov 23, 2010 at 8:05 PM, jcgarciam [hidden email] http://user/SendEmail.jtp?type=nodenode=3056080i=1 wrote: Hi Folks, Probably im doing it wrong, but please bear with me, currently i'm trying to do a very simple download operation in wicket 1.5M3, but it fails with a NPE in (ResourceStreamResource.java line 72), because it seems is always expecting that any IResourceStream implementation set the lastModifiedTime in the underlying stream before calling dataNeedsToBeWritten which StringResourceStream doesn't do it ( i need to explicitly set it to make it work ) . @Override protected ResourceResponse newResourceResponse(Attributes attributes) { ResourceResponse data = new ResourceResponse(); (72)- data.setLastModified(stream.lastModifiedTime().toDate()); My code using [StringResourceStream] code final StringBuilder content = new StringBuilder(Hello,world); add(new LinkVoid(downloadDoc) { @Override public void onClick() { StringResourceStream stream = new StringResourceStream(content.toString(),html/csv); getRequestCycle().scheduleRequestHandlerAfterCurrent(new ResourceStreamRequestHandler(stream) .setFileName(demo.csv) .setContentDisposition(ContentDisposition.ATTACHMENT)); } }); /code Calling [stream.setLastModified(Time.now());] right before scheduling the request handler make the download to works, but it seems that probably im doing something wrong (not supposed to a download on this way) or does it sounds like a bug in [ResourceStreamResource.java]? Thanks, Attached is a quickstart http://apache-wicket.1842946.n4.nabble.com/file/n3056036/DownloadStreamBug.7zhttp://apache-wicket.1842946.n4.nabble.com/file/n3056036/DownloadStreamBug.7z?by-user=t http://apache-wicket.1842946.n4.nabble.com/file/n3056036/DownloadStreamBug.7z?by-user=thttp://apache-wicket.1842946.n4.nabble.com/file/n3056036/DownloadStreamBug.7z?by-user=tby-user=t DownloadStreamBug.7z -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Simple-Download-from-StringResourceStream-cause-NPE-wicket-1-5M3-possible-bug-tp3056036p3056036.htmlhttp://apache-wicket.1842946.n4.nabble.com/Simple-Download-from-StringResourceStream-cause-NPE-wicket-1-5M3-possible-bug-tp3056036p3056036.html?by-user=t http://apache-wicket.1842946.n4.nabble.com/Simple-Download-from-StringResourceStream-cause-NPE-wicket-1-5M3-possible-bug-tp3056036p3056036.html?by-user=thttp://apache-wicket.1842946.n4.nabble.com/Simple-Download-from-StringResourceStream-cause-NPE-wicket-1-5M3-possible-bug-tp3056036p3056036.html?by-user=tby-user=t Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: [hidden email] http://user/SendEmail.jtp?type=nodenode=3056080i=2 For additional commands, e-mail: [hidden email] http://user/SendEmail.jtp?type=nodenode=3056080i=3 -- View message @ http://apache-wicket.1842946.n4.nabble.com/Simple-Download-from-StringResourceStream-cause-NPE-wicket-1-5M3-possible-bug-tp3056036p3056080.htmlhttp
Re: Cannot get current page from AjaxPagingNavigator
I would change: final Label currentPage = new Label(currentPage, new Model()); to this: Label currentPage = new Label(currentPage, new LoadableDetachableModel(){ public Object load(){ return pagination.getPageable().getCurrentPage() + 1; } }); and then just remove the last part: currentPage.setDefaultModel(model); On Wed, Nov 10, 2010 at 5:19 AM, vp143 [via Apache Wicket] ml-node+3035648-2145298352-65...@n4.nabble.comml-node%2b3035648-2145298352-65...@n4.nabble.com wrote: I got it working with the following code- thanks Pedro and JC final Label currentPage = new Label(currentPage, new Model()); currentPage.setOutputMarkupId(true); add(currentPage); final AjaxPagingNavigator pagination = new AjaxPagingNavigator(navigator, dataList) { @Override protected void onAjaxEvent(AjaxRequestTarget target) { target.addComponent(currentPage); super.onAjaxEvent(target); } }; add(pagination); LoadableDetachableModel model = new LoadableDetachableModel() { public Object load(){ return pagination.getPageable().getCurrentPage() + 1; } }; currentPage.setDefaultModel(model); It had to be written like this because the model needs pagination which would not have been initialised if written as an inner class when creating the label. Please let me know if anyone finds a better way of writing it. Many thanks again Vishal -- View message @ http://apache-wicket.1842946.n4.nabble.com/Cannot-get-current-page-from-AjaxPagingNavigator-tp3034524p3035648.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.comml-node%2b1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Cannot-get-current-page-from-AjaxPagingNavigator-tp3034524p3036168.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Cannot get current page from AjaxPagingNavigator
Ohh sorry, now that i read your code carefully i see you have a case of the Chicken and the Egg!! :) On Wed, Nov 10, 2010 at 11:30 AM, Juan Carlos Garcia jcgarc...@gmail.comwrote: I would change: final Label currentPage = new Label(currentPage, new Model()); to this: Label currentPage = new Label(currentPage, new LoadableDetachableModel(){ public Object load(){ return pagination.getPageable().getCurrentPage() + 1; } }); and then just remove the last part: currentPage.setDefaultModel(model); On Wed, Nov 10, 2010 at 5:19 AM, vp143 [via Apache Wicket] ml-node+3035648-2145298352-65...@n4.nabble.comml-node%2b3035648-2145298352-65...@n4.nabble.com wrote: I got it working with the following code- thanks Pedro and JC final Label currentPage = new Label(currentPage, new Model()); currentPage.setOutputMarkupId(true); add(currentPage); final AjaxPagingNavigator pagination = new AjaxPagingNavigator(navigator, dataList) { @Override protected void onAjaxEvent(AjaxRequestTarget target) { target.addComponent(currentPage); super.onAjaxEvent(target); } }; add(pagination); LoadableDetachableModel model = new LoadableDetachableModel() { public Object load(){ return pagination.getPageable().getCurrentPage() + 1; } }; currentPage.setDefaultModel(model); It had to be written like this because the model needs pagination which would not have been initialised if written as an inner class when creating the label. Please let me know if anyone finds a better way of writing it. Many thanks again Vishal -- View message @ http://apache-wicket.1842946.n4.nabble.com/Cannot-get-current-page-from-AjaxPagingNavigator-tp3034524p3035648.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.comml-node%2b1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) Work smarter, not harder!. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Cannot-get-current-page-from-AjaxPagingNavigator-tp3034524p3036177.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: mobile Apllication via Wicket
In server side, just check the User-Agent header from your HttpRequest. On Wed, Nov 10, 2010 at 11:41 AM, Madlip89 [via Apache Wicket] ml-node+3036192-1884488973-65...@n4.nabble.comml-node%2b3036192-1884488973-65...@n4.nabble.com wrote: Hey everyone, i must started a apllication with wicket. This is a Web-Application. A must find out, Who send the Request? (SmartPhones or Desctop PC) I started this with a Javascript that's call by browserdetect. Now I'm searching a way to realise that's in wicket. Can u help me, from what object or variable i get this information? please. thank u Madlip -- View message @ http://apache-wicket.1842946.n4.nabble.com/mobile-Apllication-via-Wicket-tp3036192p3036192.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.comml-node%2b1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/mobile-Apllication-via-Wicket-tp3036192p3036212.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Cannot get current page from AjaxPagingNavigator
You are using an static model, which only knows about the value by the time of construction. Use a dynamic model i.e: (make sure you define pagination as final) Label currentPage = new Label(currentPage, new LoadableDetachableModel(){ public Object load(){ return pagination.getPageable().getCurrentPage(); } }); On Tue, Nov 9, 2010 at 1:04 PM, vp143 [via Apache Wicket] ml-node+3034524-366758351-65...@n4.nabble.comml-node%2b3034524-366758351-65...@n4.nabble.com wrote: Hi all, For some reason I cannot get the current page number. This is the relevant part of my code: PageableListView dataList = new PageableListView(dataList, results, 10) { protected void populateItem(ListItem item) { .. } } AjaxPagingNavigator pagination = new AjaxPagingNavigator(navigator, dataList); add(pagination); Label currentPage = new Label(currentPage, pagination.getPageable().getCurrentPage() + ); currentPage.setOutputMarkupId(true); add(currentPage); currentPage always returns 0. I have also tried PagingNavigator with similar results. Can anyone tell me what I have missed? Regards Vishal -- View message @ http://apache-wicket.1842946.n4.nabble.com/Cannot-get-current-page-from-AjaxPagingNavigator-tp3034524p3034524.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.comml-node%2b1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Cannot-get-current-page-from-AjaxPagingNavigator-tp3034524p3034563.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Problem with setResponsePage from a thread
From the thread you can't request anything to the application server, since the original request that initiates the threads is already gone, what you can do is actually create an abstract behavior with a timer that checks the server (lets say every 5 seconds) for an status and force a redirection from there (javascript tricks). Obviously your thread need to update this status somewhere. On Thu, Oct 28, 2010 at 5:36 AM, lsm_7 [via Apache Wicket] ml-node+3016823-1352866555-65...@n4.nabble.comml-node%2b3016823-1352866555-65...@n4.nabble.com wrote: Hello everybody, I have a form, then when all the fields are filled and I clicked the accept button, there's an AJAX event that shows a progress bar in flash and then executes onSubmit(). In this event I create a thread to execute other internal actions. What I want is when the thread finishes, redirect to another WebPage. But it seems that I can not interact with redirections from the thread. If somebody has any suggestion it would be great! The most important part of the code is: . button.add(new AjaxEventBehavior(onclick){ @Override protected void onEvent(AjaxRequestTarget target) { iframe.setVisible(true); target.addComponent(iframe); onSubmit(); t = new ThreadXen(); t.start(); } }); } public void onSubmit() { int mem = Integer.parseInt(memory.getValue()); int swap; if (mem 1024) swap = mem*2; else swap = 2048; machine = new VirtualMachine(); machine.setHostname(name.getValue()); machine.setMemory(mem); machine.setDisk(Integer.parseInt(disk.getValue())); machine.setSwap(swap); machine.setOs(os.getModelObject()); machine.setPwd(password.getValue()); machine.setArch(arch.getValue()); ListString users = assigned.getUsers(); machine.setAssigned(users); } public class ThreadXen extends Thread implements Serializable{ private static final long serialVersionUID = 6117927184239433259L; public void run() { XenManager.newMachine(machine); setResponsePage(ListMachines.class); } } . Thanks in advance -- View message @ http://apache-wicket.1842946.n4.nabble.com/Problem-with-setResponsePage-from-a-thread-tp3016823p3016823.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.comml-node%2b1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problem-with-setResponsePage-from-a-thread-tp3016823p3017124.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Button submit and onclick event right way
Just by curiosity why not sending all information in one request (on form submit), rather than two separate http request? You can leave the onclick of your button to submit your form via javascript which also previously massage the additional data you need. On Mon, Oct 18, 2010 at 8:46 PM, Tito [via Apache Wicket] ml-node+3001276-352039908-65...@n4.nabble.comml-node%2b3001276-352039908-65...@n4.nabble.com wrote: Hello everybody! This is a question of what is the right way to do this. The idea is, I'm submiting information with a submit button from a form. But at the same time I want to send another information (generated by javascript) by ajax. Is clear what I'm trying to do? Well at this time I have made a behavior that I'm atatching to my webpage, that process one call made by ajax with wicketAjaxGet function in witch part of information travel. And at the same time process the rest of information by onSubmit method after form submitting. I hope I explained well. I just wanna now what is the correct way to do this. Thanks a lot. Bye Tito -- View message @ http://apache-wicket.1842946.n4.nabble.com/Button-submit-and-onclick-event-right-way-tp3001276p3001276.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.comml-node%2b1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Button-submit-and-onclick-event-right-way-tp3001276p3001327.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Button submit and onclick event right way
Well without knowing much detail of your implementation i could say, you need to use one of the function wicketAjaxGet or wicketAjaxPost to actually post the content of your form to wicket. In the server side depending on how you have setup your Model or set your hidden fields in the html form you can retrieve later your field by using: Not a very orthodoxy way: WebRequest.get().getRequestParameter(yourHiddendFieldName) On Mon, Oct 18, 2010 at 10:55 PM, Tito [via Apache Wicket] ml-node+3001345-678496819-65...@n4.nabble.comml-node%2b3001345-678496819-65...@n4.nabble.com wrote: mmm good question... In fact I wanted to do that. But I couldn't found the way to send all information in one request. I don't know how to send that information that I get with javascript. 2010/10/18 jcgarciam [hidden email]http://user/SendEmail.jtp?type=nodenode=3001345i=0 Just by curiosity why not sending all information in one request (on form submit), rather than two separate http request? You can leave the onclick of your button to submit your form via javascript which also previously massage the additional data you need. On Mon, Oct 18, 2010 at 8:46 PM, Tito [via Apache Wicket] [hidden email] http://user/SendEmail.jtp?type=nodenode=3001345i=1[hidden email] http://user/SendEmail.jtp?type=nodenode=3001345i=2 [hidden email] http://user/SendEmail.jtp?type=nodenode=3001345i=3[hidden email] http://user/SendEmail.jtp?type=nodenode=3001345i=4 wrote: Hello everybody! This is a question of what is the right way to do this. The idea is, I'm submiting information with a submit button from a form. But at the same time I want to send another information (generated by javascript) by ajax. Is clear what I'm trying to do? Well at this time I have made a behavior that I'm atatching to my webpage, that process one call made by ajax with wicketAjaxGet function in witch part of information travel. And at the same time process the rest of information by onSubmit method after form submitting. I hope I explained well. I just wanna now what is the correct way to do this. Thanks a lot. Bye Tito -- View message @ http://apache-wicket.1842946.n4.nabble.com/Button-submit-and-onclick-event-right-way-tp3001276p3001276.htmlhttp://apache-wicket.1842946.n4.nabble.com/Button-submit-and-onclick-event-right-way-tp3001276p3001276.html?by-user=t To start a new topic under Apache Wicket, email [hidden email] http://user/SendEmail.jtp?type=nodenode=3001345i=5[hidden email] http://user/SendEmail.jtp?type=nodenode=3001345i=6 [hidden email] http://user/SendEmail.jtp?type=nodenode=3001345i=7[hidden email] http://user/SendEmail.jtp?type=nodenode=3001345i=8 To unsubscribe from Apache Wicket, click here http://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=http://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=by-user=t . -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Button-submit-and-onclick-event-right-way-tp3001276p3001327.htmlhttp://apache-wicket.1842946.n4.nabble.com/Button-submit-and-onclick-event-right-way-tp3001276p3001327.html?by-user=t Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3001345i=9 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3001345i=10 -- View message @ http://apache-wicket.1842946.n4.nabble.com/Button-submit-and-onclick-event-right-way-tp3001276p3001345.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.comml-node%2b1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Button-submit-and-onclick-event-right-way-tp3001276p3001367.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: FeedbackPanel for each ListItem in ListView
Hi, try: yourListView.setReuseItems(true); From the JavaDoc: *WARNING:* though you can nest ListViews within Forms, you HAVE to set the setReuseItems property to true in order to have validation work properly. By default, setReuseItems is false, which has the effect that ListView replaces all child components by new instances. The idea behind this is that you always render the fresh data, and as people usually use ListViews for displaying read-only lists (at least, that's what we think), this is good default behavior. However, as the components are replaced before the rendering starts, the search for specific messages for these components fails as they are replaced with other instances. Another problem is that 'wrong' user input is kept as (temporary) instance data of the components. As these components are replaced by new ones, your user will never see the wrong data when setReuseItems is false. * * On Fri, Oct 15, 2010 at 9:58 AM, Patrick Petermair [via Apache Wicket] ml-node+2996972-1727673597-65...@n4.nabble.comml-node%2b2996972-1727673597-65...@n4.nabble.com wrote: Hey! I have ListView and every ListItem has multiple AjaxEditableLabels and one FeedbackPanel added to it. Each FeedbackPanel should only show messages that were reported within the same listitem. I tried the following but it didn't work: protected void populateItem(final ListItem item) { [...] item.add(new FeedbackPanel(someId, new ContainerFeedbackMessageFilter(item))); } Somehow when the AjaxEditablelabel submits, the list items get created from scratch, which screws up object references and therefore container.contains(message.getReporter(), true) of the ContainerFeedbackMessageFilter never returns true. Am I doing something wrong here? What would be the proper way to check if a feedback message was created within a listitem? Cheers, Patrick - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2996972i=0 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2996972i=1 -- View message @ http://apache-wicket.1842946.n4.nabble.com/FeedbackPanel-for-each-ListItem-in-ListView-tp2996972p2996972.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.comml-node%2b1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/FeedbackPanel-for-each-ListItem-in-ListView-tp2996972p2996985.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: submit or refresh form via ajax from javascript ?
Simple javascript: var theForm = document.getElementById(formId); theForm.submit(); On Tue, Oct 12, 2010 at 7:53 AM, Maris Orbidans [via Apache Wicket] ml-node+2991613-1252635351-65...@n4.nabble.comml-node%2b2991613-1252635351-65...@n4.nabble.com wrote: Is it possible to submit a form from javascript ? Maris - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2991613i=0 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2991613i=1 -- View message @ http://apache-wicket.1842946.n4.nabble.com/How-to-trigger-server-side-method-when-user-clicks-on-a-Table-Row-tp2991576p2991613.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.comml-node%2b1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-trigger-server-side-method-when-user-clicks-on-a-Table-Row-tp2991576p2991835.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AjaxPagingNavigator give out strange error
Why do you add the *classifierjavadoc/classifier * in your pom to have the JavaDocs, why not adding the the -DdownloadSources=true -DdownloadJavadocs=true in your maven command, full example: mvn eclipse:eclipse -DdownloadSources=true -DdownloadJavadocs=true On Tue, Oct 12, 2010 at 4:13 PM, btbluesky [via Apache Wicket] ml-node+2992535-582055769-65...@n4.nabble.comml-node%2b2992535-582055769-65...@n4.nabble.com wrote: I finally found out what exactly the problem is. I used the quickstart to generate a new project from scratch. In my maven, I have wicket javadoc to be dependency. whenever that dependency is there. All the ajax calls failed in both jetty and tomcat (I setup both servers to test them), and spurring out bunch of javadoc html failed code. The second I take that dependency out of my eclipse WTP project, redeploy, it's perfectly fine. Is it just me, what am I doing wrong. Again the only thing I used is, enable maven manage in eclipse, and then add the javadoc in the dependency. *dependency groupIdorg.apache.wicket/groupId artifactIdwicket/artifactId version${wicket.version}/version classifierjavadoc/classifier /dependency* The error: *Unexpected RuntimeException WicketMessage: Tag 'DT' (line 103, column 1) has a mismatched close tag at '/DL' (line 104, column 1) [markup = jar:file:/D:/mavenRepo/org/apache/wicket/wicket/1.4.12/wicket-1.4.12-javadoc.jar!/org/apache/wicket/ajax/markup/html/navigation/paging/AjaxPagingNavigator.html !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; Markup The problem is in jar:file:/D:/mavenRepo/org/apache/wicket/wicket/1.4.12/wicket-1.4.12-javadoc.jar!/org/apache/wicket/ajax/markup/html/navigation/paging/AjaxPagingNavigator.html: * -- View message @ http://apache-wicket.1842946.n4.nabble.com/AjaxPagingNavigator-give-out-strange-error-tp2327360p2992535.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.comml-node%2b1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxPagingNavigator-give-out-strange-error-tp2327360p2992593.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: PropertyModel Not Refreshing
, but all the attributes in the edit group are null/defaults for a new record. If I remove the call to setDefaultFormProcessing(false) on the cancel button, selecting other records for edit works correctly, but I can't cancel a creating a new record if I use a RequiredTextField because the form validation fails. If I select a record for editing or save the newly created record, I can select a different record for edit or create another one correctly. So I must be doing something wrong in the cancel logic. My editForm (created in the EditGroup constructor) looks like this: Form editForm = new Form(editForm); editForm.add(new Label(nameLabel, Name)); editForm.add(new Label(attributeLabel, Attribute)); editForm.add(new RequiredTextFieldString(recordNameText, new PropertyModelString(MyRecordPanel.this, selectedRecord.name))); editForm.add(new DropDownChoiceLir(attributes, new PropertyModelAttribute(MyRecordPanel.this, selectedRecord.attribute), RateCentrePanel.this.getAttributes(), new AttributeRenderer())); editForm.add(new Button(cancel) { private static final long serialVersionUID = 1L; public void onSubmit() { MyRecordPanel.this.selectedRecord = null; editGroup.setVisible(false); selectGroup.setVisible(true); } }.setDefaultFormProcessing(false)); add(editForm); Other than setting the selectedRecord to null, what should I be doing differently? Thanks in advance! Shelli - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2968688i=4 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2968688i=5 - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2968688i=6 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2968688i=7 - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2968688i=8 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2968688i=9 - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2968688i=10 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2968688i=11 -- View message @ http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-Model-Confusion-tp2955144p2968688.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.comml-node%2b1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-Model-Confusion-tp2955144p2968936.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Bean injection
I think as a WorkAround is to get the beans yourself from the Spring context insteads of relying on the @SpringBean annotation On Thu, Oct 7, 2010 at 10:51 AM, Mauro Ciancio [via Apache Wicket] ml-node+2966817-1959417264-65...@n4.nabble.comml-node%2b2966817-1959417264-65...@n4.nabble.com wrote: Hi, Why are you using prototype scope anyway? In order to get a new fresh instance every time is requested. AFAIR the once the bean is looked up from spring it is being cached by AnnotProxyFieldValueFactory itself. So using prototype scope will not work anyway: either way you always get a fresh bean (so you cannot keep state) or you will always get the same bean (even worse if the bean is stateful). You probably should convert your code to using singleton beans and pass appropriate state from wicket component itself. OK, I understand, that explains my issue. However, I have a bean that is stateful and the state cannot be sent by wicket componets (more precisely it's a bean that provides the local date and local time, and it's cached in a field so every time you invoke it, it returns the same date). So, I'm getting the same date when I navigate through a stateful page. Is there any another workaround or the only way out is not to keep the date cached? Thanks for the replies. Regards. -- Mauro Ciancio - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2966817i=0 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2966817i=1 -- View message @ http://apache-wicket.1842946.n4.nabble.com/Bean-injection-tp2966113p2966817.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.comml-node%2b1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Bean-injection-tp2966113p2966851.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: PropertyModel Not Refreshing
=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-Model-Confusion-tp2955144p2967255.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DropDownChoice/Model Confusion
Yes, that should make your DDC to query the list any time it needs to re render. To your 2nd. question in order to set a default or selected value, just set a MyRecord reference to your property, keep in mind that your MyRecord should implement and equals/hashcode correctly. On Tue, Oct 5, 2010 at 12:00 PM, Shelli Orton [via Apache Wicket] ml-node+2956214-1797994246-65...@n4.nabble.comml-node%2b2956214-1797994246-65...@n4.nabble.com wrote: Hi, Thanks for replying. Just to clarify, do you mean do something like this: LoadableDetachableModelListMyRecord myRecordsModel = new LoadableDetachableModelListMyRecord() { @Override protected ListMyRecord load() { return myRecordService.getList(); } }; MyRecord selectedRecord; form.add(new DropDownChoiceMyRecord(records, new PropertyModelMyRecord(this, selectedRecord), myRecordsModel, new MyRecordRenderer()).setNullValid(false)); Shelli -Original Message- From: jcgarciam [mailto:[hidden email]http://user/SendEmail.jtp?type=nodenode=2956214i=0] Sent: Monday, October 04, 2010 6:27 PM To: [hidden email] http://user/SendEmail.jtp?type=nodenode=2956214i=1 Subject: Re: DropDownChoice/Model Confusion Hi, instead of passing getMyRecords() in the constructor wrap it around a LoadableDetachableModel and pass that model to the DDC. The difference is that your current list is fetch only once at construction of your pages and is considered static because its never get called again unless you triggered it by entering to a new page instance, while by using a LDM the component will ask for it every time it needs to re-render them. On Mon, Oct 4, 2010 at 6:52 PM, Shelli Orton [via Apache Wicket] [hidden email] http://user/SendEmail.jtp?type=nodenode=2956214i=2ml-node%2B2955144-66557051 [hidden email] http://user/SendEmail.jtp?type=nodenode=2956214i=3 wrote: I am writing a (simple?) database CRUD app where I have multiple tab panels that encapsulate the different tables in the database. On a panel there's a dropdownchoice which lists the existing records for that table. There's also create, delete and edit buttons (and and edit panel with save and cancel buttons). When I create, edit or delete any of the records, the dropdownchoice list doesn't reflect the changes until I open a new session. So my question is how to reload the list after one of these actions is done? Currently my dropdownchoice model is set like this: MyRecord selectedRecord; ... form.add(new DropDownChoiceMyRecord(records, new PropertyModelMyRecord(this, selectedRecord), getMyRecords(), // method that retrieves from the database (via JPA) new MyRecordRenderer()).setNullValid(false)); // used to return the display attribute of MyRecord I am trying to understand if using a LoadableDetachableModel will do the reload that I want. Also, I don't know how to set the selectedRecord using that type of model or if it's even possible. Any advice? Thanks! Shelli - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2955144i=0 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2955144i=1 -- View message @ http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-Model-Confusiohttp://apache-wicket.1842946.n4.nabble.com/DropDownChoice-Model-Confusio?by-user=t n-tp2955144p2955144.html To start a new topic under Apache Wicket, email [hidden email] http://user/SendEmail.jtp?type=nodenode=2956214i=4ml-node%2B1842946-39801187 [hidden email] http://user/SendEmail.jtp?type=nodenode=2956214i=5 To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtphttp://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?by-user=t? tpl=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxOD QyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-Model-Confusiohttp://apache-wicket.1842946.n4.nabble.com/DropDownChoice-Model-Confusio?by-user=t n-tp2955144p2955255.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2956214i=6 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2956214i=7 - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2956214i=8 For additional
Re: DropDownChoice/Model Confusion
I dont think it may be related to the hierarchy, are you using AJAX? On Tue, Oct 5, 2010 at 2:38 PM, Shelli Orton [via Apache Wicket] ml-node+2956527-385265518-65...@n4.nabble.comml-node%2b2956527-385265518-65...@n4.nabble.com wrote: Hmm, that code sort of works. When I create or edit a record, the list is updated. However, when I delete a record it is not. My component hierarchy is set up like this (hope it makes sense): TabPanel - SelectForEditForm - MyRecords (DDC) - Add (Button) - Edit (Button) - Delete (Button) - EditGroup (WebMarkupContainer) - EditForm - MyRecord Name (TextField) - MyRecord Attribute (DDC) - Save (Button) - Cancel (Button) I created the EditGroup so that I can hide/display the edit panel. Debugging the application shows that the save button onSubmit is called before the update of the myRecordsModel LDM and this is why the list is updated when I create/edit a record. The delete button onSubmit is called after the update of the myRecordsModel LDM and that is why a deleted record is still visible in the list. I think the issue has something to do with the buttons being in different places in the component hierarchy. Can you provide any guidance on if there's some way to have the LDM updated after the delete onSubmit? Thanks again, Shelli -Original Message- From: jcgarciam [mailto:[hidden email]http://user/SendEmail.jtp?type=nodenode=2956527i=0] Sent: Tuesday, October 05, 2010 9:33 AM To: [hidden email] http://user/SendEmail.jtp?type=nodenode=2956527i=1 Subject: Re: DropDownChoice/Model Confusion Yes, that should make your DDC to query the list any time it needs to re render. To your 2nd. question in order to set a default or selected value, just set a MyRecord reference to your property, keep in mind that your MyRecord should implement and equals/hashcode correctly. On Tue, Oct 5, 2010 at 12:00 PM, Shelli Orton [via Apache Wicket] [hidden email] http://user/SendEmail.jtp?type=nodenode=2956527i=2ml-node%2B2956214-1797994 [hidden email] http://user/SendEmail.jtp?type=nodenode=2956527i=3 wrote: Hi, Thanks for replying. Just to clarify, do you mean do something like this: LoadableDetachableModelListMyRecord myRecordsModel = new LoadableDetachableModelListMyRecord() { @Override protected ListMyRecord load() { return myRecordService.getList(); } }; MyRecord selectedRecord; form.add(new DropDownChoiceMyRecord(records, new PropertyModelMyRecord(this, selectedRecord), myRecordsModel, new MyRecordRenderer()).setNullValid(false)); Shelli -Original Message- From: jcgarciam [mailto:[hidden email]http://user/SendEmail.jtp?type=nodenode=2956214i=0] Sent: Monday, October 04, 2010 6:27 PM To: [hidden email] http://user/SendEmail.jtp?type=nodenode=2956214i=1 Subject: Re: DropDownChoice/Model Confusion Hi, instead of passing getMyRecords() in the constructor wrap it around a LoadableDetachableModel and pass that model to the DDC. The difference is that your current list is fetch only once at construction of your pages and is considered static because its never get called again unless you triggered it by entering to a new page instance, while by using a LDM the component will ask for it every time it needs to re-render them. On Mon, Oct 4, 2010 at 6:52 PM, Shelli Orton [via Apache Wicket] [hidden email] http://user/SendEmail.jtp?type=nodenode=2956214i=2ml-node%2B2955144 -66557051 [hidden email] http://user/SendEmail.jtp?type=nodenode=2956214i=3 wrote: I am writing a (simple?) database CRUD app where I have multiple tab panels that encapsulate the different tables in the database. On a panel there's a dropdownchoice which lists the existing records for that table. There's also create, delete and edit buttons (and and edit panel with save and cancel buttons). When I create, edit or delete any of the records, the dropdownchoice list doesn't reflect the changes until I open a new session. So my question is how to reload the list after one of these actions is done? Currently my dropdownchoice model is set like this: MyRecord selectedRecord; ... form.add(new DropDownChoiceMyRecord(records, new PropertyModelMyRecord(this, selectedRecord), getMyRecords(), // method that retrieves from the database (via JPA) new MyRecordRenderer()).setNullValid(false)); // used to return the display attribute of MyRecord I am trying to understand if using a LoadableDetachableModel will do the reload that I want. Also, I don't know how to set the selectedRecord using that type of model or if it's even possible. Any advice? Thanks! Shelli
Re: DropDownChoice/Model Confusion
There should not need to force the LDB to reload, Can you share more code? On Tue, Oct 5, 2010 at 4:27 PM, Shelli Orton [via Apache Wicket] ml-node+2956722-1309362030-65...@n4.nabble.comml-node%2b2956722-1309362030-65...@n4.nabble.com wrote: No, I'm not using AJAX. Is there a way to force the LDB to reload? Shelli -Original Message- From: jcgarciam [mailto:[hidden email]http://user/SendEmail.jtp?type=nodenode=2956722i=0] Sent: Tuesday, October 05, 2010 12:52 PM To: [hidden email] http://user/SendEmail.jtp?type=nodenode=2956722i=1 Subject: Re: DropDownChoice/Model Confusion I dont think it may be related to the hierarchy, are you using AJAX? On Tue, Oct 5, 2010 at 2:38 PM, Shelli Orton [via Apache Wicket] [hidden email] http://user/SendEmail.jtp?type=nodenode=2956722i=2ml-node%2B2956527-38526551 [hidden email] http://user/SendEmail.jtp?type=nodenode=2956722i=3 wrote: Hmm, that code sort of works. When I create or edit a record, the list is updated. However, when I delete a record it is not. My component hierarchy is set up like this (hope it makes sense): TabPanel - SelectForEditForm - MyRecords (DDC) - Add (Button) - Edit (Button) - Delete (Button) - EditGroup (WebMarkupContainer) - EditForm - MyRecord Name (TextField) - MyRecord Attribute (DDC) - Save (Button) - Cancel (Button) I created the EditGroup so that I can hide/display the edit panel. Debugging the application shows that the save button onSubmit is called before the update of the myRecordsModel LDM and this is why the list is updated when I create/edit a record. The delete button onSubmit is called after the update of the myRecordsModel LDM and that is why a deleted record is still visible in the list. I think the issue has something to do with the buttons being in different places in the component hierarchy. Can you provide any guidance on if there's some way to have the LDM updated after the delete onSubmit? Thanks again, Shelli -Original Message- From: jcgarciam [mailto:[hidden email]http://user/SendEmail.jtp?type=nodenode=2956527i=0] Sent: Tuesday, October 05, 2010 9:33 AM To: [hidden email] http://user/SendEmail.jtp?type=nodenode=2956527i=1 Subject: Re: DropDownChoice/Model Confusion Yes, that should make your DDC to query the list any time it needs to re render. To your 2nd. question in order to set a default or selected value, just set a MyRecord reference to your property, keep in mind that your MyRecord should implement and equals/hashcode correctly. On Tue, Oct 5, 2010 at 12:00 PM, Shelli Orton [via Apache Wicket] [hidden email] http://user/SendEmail.jtp?type=nodenode=2956527i=2ml-node%2B2956214 -1797994 [hidden email] http://user/SendEmail.jtp?type=nodenode=2956527i=3 wrote: Hi, Thanks for replying. Just to clarify, do you mean do something like this: LoadableDetachableModelListMyRecord myRecordsModel = new LoadableDetachableModelListMyRecord() { @Override protected ListMyRecord load() { return myRecordService.getList(); } }; MyRecord selectedRecord; form.add(new DropDownChoiceMyRecord(records, new PropertyModelMyRecord(this, selectedRecord), myRecordsModel, new MyRecordRenderer()).setNullValid(false)); Shelli -Original Message- From: jcgarciam [mailto:[hidden email]http://user/SendEmail.jtp?type=nodenode=2956214i=0] Sent: Monday, October 04, 2010 6:27 PM To: [hidden email] http://user/SendEmail.jtp?type=nodenode=2956214i=1 Subject: Re: DropDownChoice/Model Confusion Hi, instead of passing getMyRecords() in the constructor wrap it around a LoadableDetachableModel and pass that model to the DDC. The difference is that your current list is fetch only once at construction of your pages and is considered static because its never get called again unless you triggered it by entering to a new page instance, while by using a LDM the component will ask for it every time it needs to re-render them. On Mon, Oct 4, 2010 at 6:52 PM, Shelli Orton [via Apache Wicket] [hidden email] http://user/SendEmail.jtp?type=nodenode=2956214i=2ml-node%2B2955144 -66557051 [hidden email] http://user/SendEmail.jtp?type=nodenode=2956214i=3 wrote: I am writing a (simple?) database CRUD app where I have multiple tab panels that encapsulate the different tables in the database. On a panel there's a dropdownchoice which lists the existing records for that table. There's also create, delete and edit buttons (and and edit panel with save and cancel buttons). When I create, edit or delete any of the records, the dropdownchoice list doesn't
Re: DropDownChoice/Model Confusion
Hi, instead of passing getMyRecords() in the constructor wrap it around a LoadableDetachableModel and pass that model to the DDC. The difference is that your current list is fetch only once at construction of your pages and is considered static because its never get called again unless you triggered it by entering to a new page instance, while by using a LDM the component will ask for it every time it needs to re-render them. On Mon, Oct 4, 2010 at 6:52 PM, Shelli Orton [via Apache Wicket] ml-node+2955144-665570512-65...@n4.nabble.comml-node%2b2955144-665570512-65...@n4.nabble.com wrote: I am writing a (simple?) database CRUD app where I have multiple tab panels that encapsulate the different tables in the database. On a panel there's a dropdownchoice which lists the existing records for that table. There's also create, delete and edit buttons (and and edit panel with save and cancel buttons). When I create, edit or delete any of the records, the dropdownchoice list doesn't reflect the changes until I open a new session. So my question is how to reload the list after one of these actions is done? Currently my dropdownchoice model is set like this: MyRecord selectedRecord; ... form.add(new DropDownChoiceMyRecord(records, new PropertyModelMyRecord(this, selectedRecord), getMyRecords(), // method that retrieves from the database (via JPA) new MyRecordRenderer()).setNullValid(false)); // used to return the display attribute of MyRecord I am trying to understand if using a LoadableDetachableModel will do the reload that I want. Also, I don't know how to set the selectedRecord using that type of model or if it's even possible. Any advice? Thanks! Shelli - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2955144i=0 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2955144i=1 -- View message @ http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-Model-Confusion-tp2955144p2955144.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.comml-node%2b1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-Model-Confusion-tp2955144p2955255.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Ajax and updating DropDownChoice model object
I believe the problem goes that [setOutputMarkupId(true)] is called on very late step. Try setting the [setOutputMarkupId(true)] just right after when the component is constructed, so the initial HTML have the id already set. After that the wicket js should be able to locate the DOM id later on any ajax response. On Thu, Sep 16, 2010 at 12:30 PM, Eric Reagan [via Apache Wicket] ml-node+2542429-664652022-65...@n4.nabble.comml-node%2b2542429-664652022-65...@n4.nabble.com wrote: Hello, I'm having some problems getting ajax to work with a updating the data contained in the DropDownChoice default model object. My drop down choices are dependent upon what is entered in a text box. I can get/update the text box just fine but when I go and shove the list of choices into the DropDownChoice default model object on ajax update the choices are are not displayed. If in eclipse I do an inspect of my default model object after I set it, the proper values are returned. target.addComponent(getForm().get(contractChoices).setDefaultModelObject(s).setEnabled(true).setOutputMarkupId(true)); where right now S is a listString that I just created with a value of abc, 123. Thank you, -- Eric Reagan -- View message @ http://apache-wicket.1842946.n4.nabble.com/Ajax-and-updating-DropDownChoice-model-object-tp2542429p2542429.html To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-and-updating-DropDownChoice-model-object-tp2542429p2542647.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Ajax and updating DropDownChoice model object
I dont think you may want to do that with witcket, each html has a 1:1 relation with a corresponding Java file, having said so the Java file is very tight to the DOM hierarchy that are wicket component (wicket:id). It seems like you are trying to build an application with a CMS like approach. On Thu, Sep 16, 2010 at 12:30 PM, Eric Reagan [via Apache Wicket] ml-node+2542429-664652022-65...@n4.nabble.comml-node%2b2542429-664652022-65...@n4.nabble.com wrote: Hello, I'm having some problems getting ajax to work with a updating the data contained in the DropDownChoice default model object. My drop down choices are dependent upon what is entered in a text box. I can get/update the text box just fine but when I go and shove the list of choices into the DropDownChoice default model object on ajax update the choices are are not displayed. If in eclipse I do an inspect of my default model object after I set it, the proper values are returned. target.addComponent(getForm().get(contractChoices).setDefaultModelObject(s).setEnabled(true).setOutputMarkupId(true)); where right now S is a listString that I just created with a value of abc, 123. Thank you, -- Eric Reagan -- View message @ http://apache-wicket.1842946.n4.nabble.com/Ajax-and-updating-DropDownChoice-model-object-tp2542429p2542429.html To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-and-updating-DropDownChoice-model-object-tp2542429p2542655.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Demystifying page serialization
Also with this line, you are not taking advantage of a model itself, this is label have an static value on it. add( new Label( name, model.getObject().getName() ) ); try something like: add( new Label( name, model) ); After loading your page first time, change your Person table in the db and then hit refresh in your web browser, the component label should reflect your changes On Fri, Sep 10, 2010 at 6:57 PM, Mike Dee [via Apache Wicket] ml-node+2535132-587425177-65...@n4.nabble.comml-node%2b2535132-587425177-65...@n4.nabble.com wrote: I tried this with a detachable model. I created two versions of the page, one uses a detachable model and the other doesn't. I put a printout in the constructor of the page. The printout appears only the first time the page is loaded in both cases. Here is the code. What am I doing wrong? // Detachable model public PersonPage( int id ) { PersonDetachableModel model = new PersonDetachableModel( id ); System.out.println( ** HERE I AM ** ); // This doesn't appear upon RELOAD OF PAGE. add( new Label( name, model.getObject().getName() ) ); } public class PersonDetachableModel extends LoadableDetachableModelPerson { private int personId; public PersonDetachableModel( int id ) { personId= id; } public Person load() { Person person = db.findPerson( personId ); return person; } } -- View message @ http://apache-wicket.1842946.n4.nabble.com/Demystifying-page-serialization-tp2533538p2535132.html To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Demystifying-page-serialization-tp2533538p2535303.html Sent from the Wicket - User mailing list archive at Nabble.com.
Re: How can I capture the data on one panel 1 when i click submit button on panel 2
cannot be guaranteed. Any views expressed in this message are those of the individual sender. This message is for information purposes only. All liability of the EFG Financial Products Group and its entities for any damages resulting from e-mail use is excluded. US persons are kindly requested to read the important legal information presented at following URL: http://www.efgfp.comhttp://www.efgfp.com?by-user=t. If you suspect that the message may have been intercepted or amended, please call the sender. Should you require any further information, please contact the Compliance Manager on [hidden email]http://user/SendEmail.jtp?type=nodenode=2531520i=4. - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2531520i=5 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2531520i=6 -- View message @ http://apache-wicket.1842946.n4.nabble.com/How-can-I-capture-the-data-on-one-panel-1-when-i-click-submit-button-on-panel-2-tp2531350p2531520.html To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-can-I-capture-the-data-on-one-panel-1-when-i-click-submit-button-on-panel-2-tp2531350p2531697.html Sent from the Wicket - User mailing list archive at Nabble.com.
Re: session timeout notification using cometd
You indeed can use wicket-cometd on that, but why not setting a simple Javascript timer on the page (set to your server-timeout configuratin) which get reset on user interaction. On Wed, Sep 1, 2010 at 11:21 AM, fachhoch [via Apache Wicket] ml-node+2403249-1689023062-65...@n4.nabble.comml-node%2b2403249-1689023062-65...@n4.nabble.com wrote: I want to notify clients about their session timeout.If the user is idle and his session is about to expire I want to warn users about this , can I do this with wicket-cometd ? -- View message @ http://apache-wicket.1842946.n4.nabble.com/session-timeout-notification-using-cometd-tp2403249p2403249.html To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/session-timeout-notification-using-cometd-tp2403249p2403283.html Sent from the Wicket - User mailing list archive at Nabble.com.
Re: session timeout notification using cometd
Here is a very rough example, keep in mind there a several factors that can reset the timeout to happen in the server and then you need to reset your timer in the client, the most troublesome to handle are ajax interaction and iframe. So assuming you don't have any ajax component or iframe on the page that can actually trigger any server interaction and the user just sit in the page and wait, something like this is the easiest way: setTimeout(showAboutToTimeout(), (1000 * (60 * 28) ); //28min function showAboutToTimeout(){ // Here you can build you message or show floating div, what ever you like alert(Your session may timeout in 2 minutes unless you interact with the page :) ); } On Wed, Sep 1, 2010 at 11:52 AM, fachhoch [via Apache Wicket] ml-node+2403332-1651621642-65...@n4.nabble.comml-node%2b2403332-1651621642-65...@n4.nabble.com wrote: I can do that, do you have any examples for java script notification when session is about to timeoout ? -- View message @ http://apache-wicket.1842946.n4.nabble.com/session-timeout-notification-using-cometd-tp2403249p2403332.html To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/session-timeout-notification-using-cometd-tp2403249p2403388.html Sent from the Wicket - User mailing list archive at Nabble.com.
Re: Best practice for component interaction
Hi James, I like the idea of having a way of automatically includes components in the AjaxRequestTarget without the need to do it explicitly (target.add(..)), by using a Marking Interface and the Visitor, it really would make things easier when you want to add a new component to the current Ajax Response. The idea of the DynamicProxy seems very promising and i thinks it something way much better of having Pub/Sub event implementation. Just my +0.05 cents :) On Wed, Aug 25, 2010 at 9:11 AM, James Carman [via Apache Wicket] ml-node+2338119-2003757039-65...@n4.nabble.comml-node%2b2338119-2003757039-65...@n4.nabble.com wrote: What about if we modify this idea a bit? What if we use dynamic proxies to make it more generic? So, your onclick method would look like: public void onClick(AjaxRequestTarget target) { fire(MyCustomEventListener.class).someAjaxEvent(target); } Then, the fire() method would return an object (a dynamic proxy) that implements the MyCustomEventListener interface. The method implementation would do the visitor thing by looking for all components implementing the MyCustomEventListener interface and then call the someAjaxEvent() method. On Wed, Aug 25, 2010 at 5:10 AM, vladimir.kovalyuk [hidden email]http://user/SendEmail.jtp?type=nodenode=2338119i=0 wrote: I don't like subscriptions implementation. Somewhen it becomes difficult to realize when to add/remove observers. It depends on the order of instantiations. Visitor pattern seems to be much more reliable. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Best-practice-for-component-interaction-tp2336888p2337874.htmlhttp://apache-wicket.1842946.n4.nabble.com/Best-practice-for-component-interaction-tp2336888p2337874.html?by-user=t Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2338119i=1 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2338119i=2 - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2338119i=3 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2338119i=4 -- View message @ http://apache-wicket.1842946.n4.nabble.com/Best-practice-for-component-interaction-tp2336888p2338119.html To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Best-practice-for-component-interaction-tp2336888p2338205.html Sent from the Wicket - User mailing list archive at Nabble.com.
Re: Best practice for component interaction
Thanks for expressing your help on this, im already working on it :-), since is not that hard to implement, but i would like to see this kind of functionality in the core . :) On Wed, Aug 25, 2010 at 10:09 AM, James Carman [via Apache Wicket] ml-node+2338212-617428318-65...@n4.nabble.comml-node%2b2338212-617428318-65...@n4.nabble.com wrote: Do you want an example of how it would work or are you confident in how to implement it yourself? On Wed, Aug 25, 2010 at 9:05 AM, jcgarciam [hidden email]http://user/SendEmail.jtp?type=nodenode=2338212i=0 wrote: Hi James, I like the idea of having a way of automatically includes components in the AjaxRequestTarget without the need to do it explicitly (target.add(..)), by using a Marking Interface and the Visitor, it really would make things easier when you want to add a new component to the current Ajax Response. The idea of the DynamicProxy seems very promising and i thinks it something way much better of having Pub/Sub event implementation. Just my +0.05 cents :) On Wed, Aug 25, 2010 at 9:11 AM, James Carman [via Apache Wicket] [hidden email] http://user/SendEmail.jtp?type=nodenode=2338212i=1[hidden email] http://user/SendEmail.jtp?type=nodenode=2338212i=2 wrote: What about if we modify this idea a bit? What if we use dynamic proxies to make it more generic? So, your onclick method would look like: public void onClick(AjaxRequestTarget target) { fire(MyCustomEventListener.class).someAjaxEvent(target); } Then, the fire() method would return an object (a dynamic proxy) that implements the MyCustomEventListener interface. The method implementation would do the visitor thing by looking for all components implementing the MyCustomEventListener interface and then call the someAjaxEvent() method. On Wed, Aug 25, 2010 at 5:10 AM, vladimir.kovalyuk [hidden email] http://user/SendEmail.jtp?type=nodenode=2338119i=0 wrote: I don't like subscriptions implementation. Somewhen it becomes difficult to realize when to add/remove observers. It depends on the order of instantiations. Visitor pattern seems to be much more reliable. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Best-practice-for-component-interaction-tp2336888p2337874.htmlhttp://apache-wicket.1842946.n4.nabble.com/Best-practice-for-component-interaction-tp2336888p2337874.html?by-user=t http://apache-wicket.1842946.n4.nabble.com/Best-practice-for-component-interaction-tp2336888p2337874.html?by-user=thttp://apache-wicket.1842946.n4.nabble.com/Best-practice-for-component-interaction-tp2336888p2337874.html?by-user=tby-user=t Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [hidden email] http://user/SendEmail.jtp?type=nodenode=2338119i=1 For additional commands, e-mail: [hidden email] http://user/SendEmail.jtp?type=nodenode=2338119i=2 - To unsubscribe, e-mail: [hidden email] http://user/SendEmail.jtp?type=nodenode=2338119i=3 For additional commands, e-mail: [hidden email] http://user/SendEmail.jtp?type=nodenode=2338119i=4 -- View message @ http://apache-wicket.1842946.n4.nabble.com/Best-practice-for-component-interaction-tp2336888p2338119.htmlhttp://apache-wicket.1842946.n4.nabble.com/Best-practice-for-component-interaction-tp2336888p2338119.html?by-user=t To unsubscribe from Apache Wicket, click here http://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=http://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=by-user=t. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Best-practice-for-component-interaction-tp2336888p2338205.htmlhttp://apache-wicket.1842946.n4.nabble.com/Best-practice-for-component-interaction-tp2336888p2338205.html?by-user=t Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2338212i=3 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2338212i=4 -- View message @ http://apache-wicket.1842946.n4.nabble.com/Best-practice-for-component-interaction-tp2336888p2338212.html To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_codenode=1842946code
Re: Best practice for component interaction
James, taking Igor example why not providing simple marking interfaces in the Core and then something like this in the Page implementation, (i was thinking of the Dynamic Proxy approach you mention, but i'm not seeing why it would be needed here since all you want is to propagate the Component re-rendering into the current AjaxRequestTarget) i.e: Defining a root Event named: AjaxEventResponseListener then defining a simple method in base page: protected void propagateAjaxEvent(Class? extends AjaxEventResponseListener listener, final AjaxRequestTarget target) { getPage().visitChildren(listener, new IVisitorComponent() { public Object component(Component component) { target.addComponent(component); return CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER; } }); } On Wed, Aug 25, 2010 at 11:08 AM, James Carman [via Apache Wicket] ml-node+2338298-400135988-65...@n4.nabble.comml-node%2b2338298-400135988-65...@n4.nabble.com wrote: There's an issue in trunk where they nail down the type parameter to extend Component on the visitChildren() method. If you're looking for a listener interface, that's not possible, because Component is a class and your listener interface can't extend that. Why the restriction? On Wed, Aug 25, 2010 at 9:35 AM, James Carman [hidden email] http://user/SendEmail.jtp?type=nodenode=2338298i=0 wrote: So, submit a JIRA with a patch once you get it working. It would be good to have this on the Page class so that it's portable (no casting). On Wed, Aug 25, 2010 at 9:12 AM, jcgarciam [hidden email]http://user/SendEmail.jtp?type=nodenode=2338298i=1 wrote: Thanks for expressing your help on this, im already working on it :-), since is not that hard to implement, but i would like to see this kind of functionality in the core . :) On Wed, Aug 25, 2010 at 10:09 AM, James Carman [via Apache Wicket] [hidden email] http://user/SendEmail.jtp?type=nodenode=2338298i=2[hidden email] http://user/SendEmail.jtp?type=nodenode=2338298i=3 wrote: Do you want an example of how it would work or are you confident in how to implement it yourself? On Wed, Aug 25, 2010 at 9:05 AM, jcgarciam [hidden email] http://user/SendEmail.jtp?type=nodenode=2338212i=0 wrote: Hi James, I like the idea of having a way of automatically includes components in the AjaxRequestTarget without the need to do it explicitly (target.add(..)), by using a Marking Interface and the Visitor, it really would make things easier when you want to add a new component to the current Ajax Response. The idea of the DynamicProxy seems very promising and i thinks it something way much better of having Pub/Sub event implementation. Just my +0.05 cents :) On Wed, Aug 25, 2010 at 9:11 AM, James Carman [via Apache Wicket] [hidden email] http://user/SendEmail.jtp?type=nodenode=2338212i=1[hidden email] http://user/SendEmail.jtp?type=nodenode=2338212i=2 wrote: What about if we modify this idea a bit? What if we use dynamic proxies to make it more generic? So, your onclick method would look like: public void onClick(AjaxRequestTarget target) { fire(MyCustomEventListener.class).someAjaxEvent(target); } Then, the fire() method would return an object (a dynamic proxy) that implements the MyCustomEventListener interface. The method implementation would do the visitor thing by looking for all components implementing the MyCustomEventListener interface and then call the someAjaxEvent() method. On Wed, Aug 25, 2010 at 5:10 AM, vladimir.kovalyuk [hidden email] http://user/SendEmail.jtp?type=nodenode=2338119i=0 wrote: I don't like subscriptions implementation. Somewhen it becomes difficult to realize when to add/remove observers. It depends on the order of instantiations. Visitor pattern seems to be much more reliable. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Best-practice-for-component-interaction-tp2336888p2337874.htmlhttp://apache-wicket.1842946.n4.nabble.com/Best-practice-for-component-interaction-tp2336888p2337874.html?by-user=t http://apache-wicket.1842946.n4.nabble.com/Best-practice-for-component-interaction-tp2336888p2337874.html?by-user=thttp://apache-wicket.1842946.n4.nabble.com/Best-practice-for-component-interaction-tp2336888p2337874.html?by-user=tby-user=t http://apache-wicket.1842946.n4.nabble.com/Best-practice-for-component-interaction-tp2336888p2337874.html?by-user=thttp://apache-wicket.1842946.n4.nabble.com/Best-practice-for-component-interaction-tp2336888p2337874.html?by-user=tby-user=t http://apache-wicket.1842946.n4.nabble.com/Best-practice-for-component-interaction-tp2336888p2337874.html?by-user=tby-user=thttp://apache-wicket.1842946.n4.nabble.com/Best-practice-for-component-interaction-tp2336888p2337874.html?by-user=tby-user=tby-user=t Sent from the Wicket - User mailing list
Re: Best practice for component interaction
Thanks Igor, i will review that Item. On Wed, Aug 25, 2010 at 11:46 AM, Igor Vaynberg-2 [via Apache Wicket] ml-node+2338351-880928828-65...@n4.nabble.comml-node%2b2338351-880928828-65...@n4.nabble.com wrote: already done https://issues.apache.org/jira/browse/WICKET-1312 -igor On Wed, Aug 25, 2010 at 6:12 AM, jcgarciam [hidden email]http://user/SendEmail.jtp?type=nodenode=2338351i=0 wrote: Thanks for expressing your help on this, im already working on it :-), since is not that hard to implement, but i would like to see this kind of functionality in the core . :) On Wed, Aug 25, 2010 at 10:09 AM, James Carman [via Apache Wicket] [hidden email] http://user/SendEmail.jtp?type=nodenode=2338351i=1[hidden email] http://user/SendEmail.jtp?type=nodenode=2338351i=2 wrote: Do you want an example of how it would work or are you confident in how to implement it yourself? On Wed, Aug 25, 2010 at 9:05 AM, jcgarciam [hidden email] http://user/SendEmail.jtp?type=nodenode=2338212i=0 wrote: Hi James, I like the idea of having a way of automatically includes components in the AjaxRequestTarget without the need to do it explicitly (target.add(..)), by using a Marking Interface and the Visitor, it really would make things easier when you want to add a new component to the current Ajax Response. The idea of the DynamicProxy seems very promising and i thinks it something way much better of having Pub/Sub event implementation. Just my +0.05 cents :) On Wed, Aug 25, 2010 at 9:11 AM, James Carman [via Apache Wicket] [hidden email] http://user/SendEmail.jtp?type=nodenode=2338212i=1[hidden email] http://user/SendEmail.jtp?type=nodenode=2338212i=2 wrote: What about if we modify this idea a bit? What if we use dynamic proxies to make it more generic? So, your onclick method would look like: public void onClick(AjaxRequestTarget target) { fire(MyCustomEventListener.class).someAjaxEvent(target); } Then, the fire() method would return an object (a dynamic proxy) that implements the MyCustomEventListener interface. The method implementation would do the visitor thing by looking for all components implementing the MyCustomEventListener interface and then call the someAjaxEvent() method. On Wed, Aug 25, 2010 at 5:10 AM, vladimir.kovalyuk [hidden email] http://user/SendEmail.jtp?type=nodenode=2338119i=0 wrote: I don't like subscriptions implementation. Somewhen it becomes difficult to realize when to add/remove observers. It depends on the order of instantiations. Visitor pattern seems to be much more reliable. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Best-practice-for-component-interaction-tp2336888p2337874.htmlhttp://apache-wicket.1842946.n4.nabble.com/Best-practice-for-component-interaction-tp2336888p2337874.html?by-user=t http://apache-wicket.1842946.n4.nabble.com/Best-practice-for-component-interaction-tp2336888p2337874.html?by-user=thttp://apache-wicket.1842946.n4.nabble.com/Best-practice-for-component-interaction-tp2336888p2337874.html?by-user=tby-user=t http://apache-wicket.1842946.n4.nabble.com/Best-practice-for-component-interaction-tp2336888p2337874.html?by-user=thttp://apache-wicket.1842946.n4.nabble.com/Best-practice-for-component-interaction-tp2336888p2337874.html?by-user=tby-user=t http://apache-wicket.1842946.n4.nabble.com/Best-practice-for-component-interaction-tp2336888p2337874.html?by-user=tby-user=thttp://apache-wicket.1842946.n4.nabble.com/Best-practice-for-component-interaction-tp2336888p2337874.html?by-user=tby-user=tby-user=t Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [hidden email] http://user/SendEmail.jtp?type=nodenode=2338119i=1 For additional commands, e-mail: [hidden email] http://user/SendEmail.jtp?type=nodenode=2338119i=2 - To unsubscribe, e-mail: [hidden email] http://user/SendEmail.jtp?type=nodenode=2338119i=3 For additional commands, e-mail: [hidden email] http://user/SendEmail.jtp?type=nodenode=2338119i=4 -- View message @ http://apache-wicket.1842946.n4.nabble.com/Best-practice-for-component-interaction-tp2336888p2338119.htmlhttp://apache-wicket.1842946.n4.nabble.com/Best-practice-for-component-interaction-tp2336888p2338119.html?by-user=t http://apache-wicket.1842946.n4.nabble.com/Best-practice-for-component-interaction-tp2336888p2338119.html?by-user=thttp://apache-wicket.1842946.n4.nabble.com/Best-practice-for-component-interaction-tp2336888p2338119.html?by-user=tby-user=t To unsubscribe from Apache Wicket, click here http://apache-wicket.1842946.n4.nabble.com
Re: Best practice for component interaction
Let see if this answer your question, in my example i have this Interface: [AjaxEventResponseListener] as root Event interface Then i have 2 more specifics interfaces named: [MyHomePageEvent1] and [MyHomePageEvent2] Now i have 2 panels component: 1-CounterPanel extends Panel implements MyHomePageEvent1 2-MessagePanel extends Panel implements MyHomePageEvent2 And in finally in HomePage i added them and provide several link to test them: code add(new AjaxLinkInteger(counterInc1) { @Override public void onClick(final AjaxRequestTarget target) { HomePage.this.updateCounter(); propagateAjaxEvent(MyHomePageEvent1.class, target); //Only CounterPanel get Updated } }); add(new AjaxLinkInteger(counterInc2) { @Override public void onClick(final AjaxRequestTarget target) { HomePage.this.updateCounter(); propagateAjaxEvent(MyHomePageEvent2.class, target); // Only MessagePanel get Updated } }); add(new AjaxLinkInteger(counterInc3) { @Override public void onClick(final AjaxRequestTarget target) { HomePage.this.updateCounter(); propagateAjaxEvent(AjaxEventResponseListener.class, target); // Both Panel get Updated } }); /code Are we on the same page? On Wed, Aug 25, 2010 at 12:00 PM, James Carman [via Apache Wicket] ml-node+2338371-59596-65...@n4.nabble.comml-node%2b2338371-59596-65...@n4.nabble.com wrote: What if you have different event types that happen on a page? On Wed, Aug 25, 2010 at 10:47 AM, jcgarciam [hidden email]http://user/SendEmail.jtp?type=nodenode=2338371i=0 wrote: James, taking Igor example why not providing simple marking interfaces in the Core and then something like this in the Page implementation, (i was thinking of the Dynamic Proxy approach you mention, but i'm not seeing why it would be needed here since all you want is to propagate the Component re-rendering into the current AjaxRequestTarget) i.e: Defining a root Event named: AjaxEventResponseListener then defining a simple method in base page: protected void propagateAjaxEvent(Class? extends AjaxEventResponseListener listener, final AjaxRequestTarget target) { getPage().visitChildren(listener, new IVisitorComponent() { public Object component(Component component) { target.addComponent(component); return CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER; } }); } On Wed, Aug 25, 2010 at 11:08 AM, James Carman [via Apache Wicket] [hidden email] http://user/SendEmail.jtp?type=nodenode=2338371i=1[hidden email] http://user/SendEmail.jtp?type=nodenode=2338371i=2 wrote: There's an issue in trunk where they nail down the type parameter to extend Component on the visitChildren() method. If you're looking for a listener interface, that's not possible, because Component is a class and your listener interface can't extend that. Why the restriction? On Wed, Aug 25, 2010 at 9:35 AM, James Carman [hidden email] http://user/SendEmail.jtp?type=nodenode=2338298i=0 wrote: So, submit a JIRA with a patch once you get it working. It would be good to have this on the Page class so that it's portable (no casting). On Wed, Aug 25, 2010 at 9:12 AM, jcgarciam [hidden email] http://user/SendEmail.jtp?type=nodenode=2338298i=1 wrote: Thanks for expressing your help on this, im already working on it :-), since is not that hard to implement, but i would like to see this kind of functionality in the core . :) On Wed, Aug 25, 2010 at 10:09 AM, James Carman [via Apache Wicket] [hidden email] http://user/SendEmail.jtp?type=nodenode=2338298i=2[hidden email] http://user/SendEmail.jtp?type=nodenode=2338298i=3 wrote: Do you want an example of how it would work or are you confident in how to implement it yourself? On Wed, Aug 25, 2010 at 9:05 AM, jcgarciam [hidden email] http://user/SendEmail.jtp?type=nodenode=2338212i=0 wrote: Hi James, I like the idea of having a way of automatically includes components in the AjaxRequestTarget without the need to do it explicitly (target.add(..)), by using a Marking Interface and the Visitor, it really would make things easier when you want to add a new component to the current Ajax Response. The idea of the DynamicProxy seems very promising and i thinks it something way much better of having Pub/Sub event implementation. Just my +0.05 cents :) On Wed, Aug 25, 2010 at 9:11 AM, James Carman [via Apache Wicket] [hidden email] http://user/SendEmail.jtp?type=nodenode=2338212i=1[hidden email] http://user/SendEmail.jtp?type=nodenode=2338212i=2 wrote: What about if we modify this idea a bit? What if we use dynamic proxies to make it more generic? So, your onclick method would look like: public void onClick(AjaxRequestTarget target) { fire(MyCustomEventListener.class).someAjaxEvent(target); } Then, the fire
Re: Best practice for component interaction
I guess we are targeting different things here, a) You want to control on each Interfaces implementation what component should be added by passing the [target] around b) I want to just add the component automatically to the ajax response if it just implement the Event Interface, imagine a Very rich component UI and where a lots of component get added to the AjaxTarget, and later you need to add another component for what ever reason. After that you need to go an manually push the component to the target, i would just let the component implement the market interfaces and get re-render automatically. Thanks for sharing your thoughts. On Wed, Aug 25, 2010 at 12:27 PM, James Carman [via Apache Wicket] ml-node+2338421-1360946432-65...@n4.nabble.comml-node%2b2338421-1360946432-65...@n4.nabble.com wrote: Not exactly. Here's how I would implement your example 1. You'd have three interfaces AjaxEventListener, MyHomePageListener1, MyHomePageListener2. 2. Then you'd have the panels that implement the interfaces. 3. Then, in your home page, you'd do: add(new AjaxLinkInteger(counterInc1) { public void onClick( AjaxRequestTarget target ) { updateCounter(); fire(MyHomePageListener1.class).event1Happened(target); } } ); add(new AjaxLinkInteger(counterInc2) { public void onClick(AjaxRequestTarget target ) { updateCounter(); fire(MyHomePageListener2.class).event2Happened(target); } } ); add(new AjaxLinkInteger(counterInc3) { public void onClick(AjaxRequestTarget target ) { updateCounter(); fire(AjaxEventListener.class).onAjaxEvent(target); } } ); I wouldn't use marker interfaces. I'd use real listener interfaces with method names that reflect what the event is. It makes the code more readable. On Wed, Aug 25, 2010 at 11:09 AM, jcgarciam [hidden email]http://user/SendEmail.jtp?type=nodenode=2338421i=0 wrote: Let see if this answer your question, in my example i have this Interface: [AjaxEventResponseListener] as root Event interface Then i have 2 more specifics interfaces named: [MyHomePageEvent1] and [MyHomePageEvent2] Now i have 2 panels component: 1-CounterPanel extends Panel implements MyHomePageEvent1 2-MessagePanel extends Panel implements MyHomePageEvent2 And in finally in HomePage i added them and provide several link to test them: code add(new AjaxLinkInteger(counterInc1) { @Override public void onClick(final AjaxRequestTarget target) { HomePage.this.updateCounter(); propagateAjaxEvent(MyHomePageEvent1.class, target); //Only CounterPanel get Updated } }); add(new AjaxLinkInteger(counterInc2) { @Override public void onClick(final AjaxRequestTarget target) { HomePage.this.updateCounter(); propagateAjaxEvent(MyHomePageEvent2.class, target); // Only MessagePanel get Updated } }); add(new AjaxLinkInteger(counterInc3) { @Override public void onClick(final AjaxRequestTarget target) { HomePage.this.updateCounter(); propagateAjaxEvent(AjaxEventResponseListener.class, target); // Both Panel get Updated } }); /code Are we on the same page? On Wed, Aug 25, 2010 at 12:00 PM, James Carman [via Apache Wicket] [hidden email] http://user/SendEmail.jtp?type=nodenode=2338421i=1[hidden email] http://user/SendEmail.jtp?type=nodenode=2338421i=2 wrote: What if you have different event types that happen on a page? On Wed, Aug 25, 2010 at 10:47 AM, jcgarciam [hidden email] http://user/SendEmail.jtp?type=nodenode=2338371i=0 wrote: James, taking Igor example why not providing simple marking interfaces in the Core and then something like this in the Page implementation, (i was thinking of the Dynamic Proxy approach you mention, but i'm not seeing why it would be needed here since all you want is to propagate the Component re-rendering into the current AjaxRequestTarget) i.e: Defining a root Event named: AjaxEventResponseListener then defining a simple method in base page: protected void propagateAjaxEvent(Class? extends AjaxEventResponseListener listener, final AjaxRequestTarget target) { getPage().visitChildren(listener, new IVisitorComponent() { public Object component(Component component) { target.addComponent(component); return CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER; } }); } On Wed, Aug 25, 2010 at 11:08 AM, James Carman [via Apache Wicket] [hidden email] http://user/SendEmail.jtp?type=nodenode=2338371i=1[hidden email] http://user/SendEmail.jtp?type=nodenode=2338371i=2 wrote: There's an issue in trunk where they nail down the type parameter to extend Component on the visitChildren() method. If you're looking for a listener interface, that's not possible, because Component is a class and your listener interface can't extend that. Why the restriction? On Wed, Aug 25, 2010 at 9
Re: using cometd with threads
I haven't tried this myself, but take a look into the Spring interface ServletContextAwarehttp://static.springsource.org/spring/docs/2.5.x/api/org/springframework/web/context/ServletContextAware.htmlit may shed some light to achieve what you want. * * * * On Tue, Aug 17, 2010 at 12:06 PM, fachhoch [via Apache Wicket] ml-node+2328511-1648896416-65...@n4.nabble.comml-node%2b2328511-1648896416-65...@n4.nabble.com wrote: I wan to inject Bayeaux service in a pojo initialized by spring , please sugest me how can I get servlet context in a spring bean ? -- View message @ http://apache-wicket.1842946.n4.nabble.com/using-cometd-with-threads-tp2310323p2328511.html To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NodeServlet.jtp?tpl=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/using-cometd-with-threads-tp2310323p2328532.html Sent from the Wicket - User mailing list archive at Nabble.com.
Re: SV: problem with wicket + spring + hibernate
Probably some Form validation fail (some field cannot be converted), try overriding the OnError method in the form, report any error in the feedbackpanel. On Wed, Aug 11, 2010 at 4:10 AM, Will Martinez A. [via Apache Wicket] ml-node+2320816-430238374-65...@n4.nabble.comml-node%2b2320816-430238374-65...@n4.nabble.com wrote: As I said before I took some configurations files from 5 days of wicket(mysticpaste) and for mysticpaste it works fine. I think I found the problem for some reason without @transactional it is not working, in mysticpaste it works without @transactional, but in my project it need it, some one can tell why? Thanks, Will From: [hidden email]http://user/SendEmail.jtp?type=nodenode=2320816i=0 To: [hidden email]http://user/SendEmail.jtp?type=nodenode=2320816i=1 Date: Wed, 11 Aug 2010 08:50:01 +0200 Subject: SV: problem with wicket + spring + hibernate I noticed that you ignored the warning here: !-- Important! This filter mapping must come before Wicket's! -- by placing the Wicket filters first. - Tor Iver - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2320816i=2 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2320816i=3 -- View message @ http://apache-wicket.1842946.n4.nabble.com/problem-with-wicket-spring-hibernate-tp2320778p2320816.html To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NodeServlet.jtp?tpl=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/problem-with-wicket-spring-hibernate-tp2320778p2321036.html Sent from the Wicket - User mailing list archive at Nabble.com.
Re: A beginner's tutorial
Hi, i did a quick walk thru the tutorial and something i think is missing and could help is to explain the concepts of Model and the difference between Static Model and Dynamic Model. I know it may complicate things for students and new comers to wicket programming but i think it worth, (using Page 6 (adding the Datetime to the homepage) as example its good enought to understand it. Hope it helps. On Thu, Aug 5, 2010 at 10:15 AM, H. Turgut Uyar [via Apache Wicket] ml-node+2314844-1121304651-229...@n4.nabble.comml-node%2b2314844-1121304651-229...@n4.nabble.com wrote: Hi, I am a lecturer at the Istanbul Technical University, Computer Engineering Department. One of the courses I teach is Database Management Systems where the students develop a web application using databases as their term project. Until a few years ago we used PHP but then switched to Java in order to be consistent with the course material. Last year we have gone with Wicket as our framework but the students had trouble with finding their way in the documentation. Considering that this is the first course they take after an introductory object-oriented programming course, this year I've decided to prepare a simple tutorial that would teach them how to get started on such a project. The result is on the address: http://www3.itu.edu.tr/~uyar/wicket-tutorial/ There is also a PDF version: http://www3.itu.edu.tr/~uyar/wicket-tutorial/wicket-tutorial.pdf The problem is, I'm a novice Wicket programmer. I would really appreciate all kinds of feedback, especially about the mistakes I might have made in the text or the code. Thanks -- H. Turgut Uyar [hidden email]http://user/SendEmail.jtp?type=nodenode=2314844i=0 [GPG KeyID: 0xEAF45FB8] http://www3.itu.edu.tr/~uyar/ - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2314844i=1 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2314844i=2 -- View message @ http://apache-wicket.1842946.n4.nabble.com/A-beginner-s-tutorial-tp2314844p2314844.html To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDExOTE5MDc4OTQ=. -- Sincerely, JC Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/A-beginner-s-tutorial-tp2314844p2314919.html Sent from the Wicket - User mailing list archive at Nabble.com.
Re: using cometd with threads
If you are starting your Job from a Web Request, initialize your Bayeaux service (as Rodolfo mentioned) and pass that to your processing Job (Your Job doesn't have to be WebApi aware) as Rodolfo said, Bauyeaux is meant to be used a messaging API. On Tue, Aug 3, 2010 at 11:00 AM, fachhoch [via Apache Wicket] ml-node+2311905-1356455233-229...@n4.nabble.comml-node%2b2311905-1356455233-229...@n4.nabble.com wrote: If I do that I am using web api in service which is not good , so any other way ? -- View message @ http://apache-wicket.1842946.n4.nabble.com/using-cometd-with-threads-tp2310323p2311905.html To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDExOTE5MDc4OTQ=. -- Sincerely, JC Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/using-cometd-with-threads-tp2310323p2311920.html Sent from the Wicket - User mailing list archive at Nabble.com.
Re: Single session per user
For that you may need to do your own session tracking using an HttpSessionListenerhttp://download-llnw.oracle.com/javaee/5/api/javax/servlet/http/HttpSessionListener.html, and trying to handle yourself a Session cache (Be carefully of not leaking those session by not preventing the container to reclaim that memory when needed if they got stale). Also i believe Spring Security (former Acegi) has builtin support for this use case. On Thu, Jul 29, 2010 at 5:56 AM, MelmanRo [via Apache Wicket] ml-node+2306158-2052172248-229...@n4.nabble.comml-node%2b2306158-2052172248-229...@n4.nabble.com wrote: Hi guys, I'm trying to achieve the behavior where if a user is logged in and he is logging in from some place else again, he would be logged out and prompted the login page in the first place. For now, I've experimented with Session#invalidateNow and ApplicationSettings#setExpiredErrorPage on the current session and it works fine. I can't figure out how I can invalidateNow other session than the current one. Besides this, a method that wouldn't require storing the sessionId for one user in the DB would be preferred (a Map at WebApplication level maybe?). Any suggestions are welcome. I've searched the forum for similar threads but didn't quite understand how to do it... Thanks -- View message @ http://apache-wicket.1842946.n4.nabble.com/Single-session-per-user-tp2306158p2306158.html To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDExOTE5MDc4OTQ=. -- Sincerely, JC Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Single-session-per-user-tp2306158p2308007.html Sent from the Wicket - User mailing list archive at Nabble.com.
Re: rules declaration for form valdation
if you can just avoid push operation (if. setThatcomponentEnabled ...else setThatComponentDisable). Use a Pull approach, override the isEnabled of your component and make it query the boolean value of your model. i.e:: form.add(new TextField(myId){ public boolean isEnabled(){ return ((MyObject)getModelObject()).getMyBooleanProperty(); } }); On Tue, Jul 20, 2010 at 12:01 PM, Jan Juno [via Apache Wicket] ml-node+2295636-518553383-229...@n4.nabble.comml-node%2b2295636-518553383-229...@n4.nabble.com wrote: How can I avoid if hell? and declare rules for my form validation. I have project which has an extensive form on which when you check on chceck box than this and this will be disabled this is enabled, and so on. In the end you end up with huge if else if else. How can I avoid it in wicket? -- View message @ http://apache-wicket.1842946.n4.nabble.com/rules-declaration-for-form-valdation-tp2295636p2295636.html To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDExOTE5MDc4OTQ=. -- Sincerely, JC Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/rules-declaration-for-form-valdation-tp2295636p2295697.html Sent from the Wicket - User mailing list archive at Nabble.com.
Re: HowTo inject FeedbackPanel
I guess what Martin and James talk about is having a FeedbackPanel at the top and a lot component (panels) ajaxified which only update the FeedbackPanel on their callbacks. Therefore they pass the FeedbackPanel on every Panel constructor. Martin, James am i right? On Tue, Jul 20, 2010 at 1:08 PM, Fernando Wermus-3 [via Apache Wicket] ml-node+2295772-688142619-229...@n4.nabble.comml-node%2b2295772-688142619-229...@n4.nabble.com wrote: Martin, I would like to learn a little. Which is the use case? Why do you need to inject feedback panels? I don't get a case for this situation. thanks in advance. On Tue, Jul 20, 2010 at 9:44 AM, Martin Makundi [hidden email] http://user/SendEmail.jtp?type=nodenode=2295772i=0 wrote: Hi! I don't like passing feedbackpanel to subpanels and I don't like the idea using visitors/component-search for looking it up in page hierarchy because of its potential volatility... Has some of you pals come up with a nice way of injecting feedbackpanel references to children or something? Or even better some direct refrence? Should I only allow one (particular) feedbackpanel per session and re-use it from session? ** Martin - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2295772i=1 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2295772i=2 -- Fernando Wermus. www.linkedin.com/in/fernandowermus -- View message @ http://apache-wicket.1842946.n4.nabble.com/HowTo-inject-FeedbackPanel-tp2295430p2295772.html To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDExOTE5MDc4OTQ=. -- Sincerely, JC Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/HowTo-inject-FeedbackPanel-tp2295430p2295809.html Sent from the Wicket - User mailing list archive at Nabble.com.
Re: Localize AjaxSubmitLink
Try using wicket:message http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html PDiefent wrote: Hi, is it possible to localize a AjaxSubmitLink? I would like to replace Speichern with a localized value from a properties file ... HTML: input wicket:id=save: type=submit value=Speichern/nbsp; Java:; form.add(new AjaxSubmitLink(save) { ... }); Thanx, Peter - 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/Localize-AjaxSubmitLink-tp23135348p23137663.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: tinymce textarea
Agreed with @Jeremy, I have used to TinyMCE myself to update a CLOB fields mapped to my Entity Object and its value get submitted like a charm, but i remember seen this problem in my project a while before, when the form was submitted using Ajax, since i didn't make too much research i just switch to normal SubmitLink and the problem was resolved. Jeremy Thomerson-5 wrote: I think TinyMCE always uses an iframe - because it loads an editable document in it. I don't think that's your problem. Show us all of the relevant code (your java and html code). -- Jeremy Thomerson http://www.wickettraining.com On Mon, Apr 20, 2009 at 9:50 AM, tubin gen fachh...@gmail.com wrote: I am trying to make my text editor (text area ) to rich text eitors using timymce.First I tried wicket timymce behaviour , the problem is the tinymce java scriopt is repalce my textarea html with an iframe this is my html , but the style=display: none; is added by tinymce textarea maxlength=4000 cols=120 rows=8 name=reassignmentComments wicket:id=reassignmentComments id=reassignmentComments style=display: none;/ and code generated by tinymce is lot, but the problem is it uses iframe and because of which the textarea value is not posted to my form , please help me integrating tinymce - 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/tinymce-textarea-tp23138273p23138719.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: debugging a Wicket application running under Jetty-6.1 in Eclipse
I'll suggest to do it in the Wicket Way, you will have much more benefits. If you made your project from the QuickStart, you will notice a 'Start' class under your 'test' source. that what it does is just start an embedded jetty pointing to your webapp directory and mounting your application under / context. so just right click on it and click Debug as - Java Application and you're done. Even if you are working on a multi-module maven project this will work, just make sure your module are installed on your local repository, issuing 'mvn install' on the root project. If you have question regarding the 'Start.java' class just let us know. mchenini wrote: Hi, This is about debugging a Wicket application running under Jetty-6.1 in Eclipse. I followed the steps shown at: http://docs.codehaus.org/display/JETTY/Debugging+with+the+Maven+Jetty+Pl ugin+inside+Eclipse But I am getting this exception: java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher Exception in thread main Any help? The steps I followed are: Step 1 Go to the Run/External Tools/External Tools ... menu item on the Run menu bar. Select Program and click the New button. On the Main tab, fill in the Location: as the full path to your mvn executable. C:\java\DEVTOOLS\MAIN\maven2\bin For the Working Directory: select the workspace that matches your webapp. For Arguments: add jetty:run. Move to the Environment tab and click the New button to add a new variable named MAVEN_OPTS with the value: -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=y If you supply suspend=n instead of suspend=y you can start immediately without running the debugger and launch the debugger at anytime you really wish to debug. Step 2 Then, pull up the Run/Debug/Debug ... menu item and select Remote Java Application and click the New button. Fill in the dialog by selecting your webapp project for the Project: field, and ensure you are using the same port number as you specified in the address= property above. Now all you need to do is to Run/External Tools and select the name of the maven tool setup you created in step 1 to start the plugin and then Run/Debug and select the name of the debug setup you setup in step2. Thanks, Mohamed This email/fax message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution of this email/fax is prohibited. If you are not the intended recipient, please destroy all paper and electronic copies of the original message. -- View this message in context: http://www.nabble.com/debugging-a-Wicket-application-running-under-Jetty-6.1-in-Eclipse-tp22979929p22980041.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: override isEnabed of FinishButton
I guess, you can try to override protected void onBeforeRender() and make something like: protected void onBeforeRender(){ this.setEnabled(true); super.onBeforeRender(); } Martin Tilma wrote: Hello, I have a Wizard with a FinishButton. I want the button always be enabled. Because the method isEnabled is final I cant override it. I think coping the button and change the isEnabled method to always return true is a bit ugly. What is de best way to do it? Regards, Martin -- Martin Tilma Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500 - 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/override-isEnabed-of-FinishButton-tp22927709p22930094.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: CheckBoxMultipleChoice: change markup from label to span
Hi, I guess the solution would be using a http://cwiki.apache.org/WICKET/listview-with-checkboxes.html ListView in conjunction with a CheckGroup object in order to achieve what you want. Roman Zechner | Liland wrote: is there a way to change the markup of CheckBoxMultipleChoice? CheckBoxMultipleChoice.onComponentTagBody() is final ... I need to change the label tag to thanks - 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/CheckBoxMultipleChoice%3A-change-markup-from-%3Clabel%3E-to-%3Cspan%3E-tp22781388p22784346.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: How do I call alert(); rather than using .info or .error of Component
You could try iterating thru the FeedBackMessage List Using something like: @Override public void renderHead(IHeaderResponse response) { super.renderHead(response); FeedbackMessages messages = WebSession.get().getFeedbackMessages(); if(!messages.isEmpty()){ //Iterate thru the messagesList and build a nice JavaScript Alert Message response.renderOnLoadJavascript(buildJSAlertFeedback(messages)); } } private String buildJSAlertFeedback(FeedbackMessages messages){ . return .; } john.mattucci wrote: I need to display messages via a javascript alert box rather than .error or .info messages which is provided in Component. I currently have the following. The problem is that the message remains. The alert appears whenever there is an error however how do I remove it? And is this the best approach? Thank you. .. extends AbstractBehavior { private String message; public void setMessage(String message) { this.message = message; } @Override public void renderHead(IHeaderResponse response) { super.renderHead(response); response.renderOnLoadJavascript(alert(' + message + ');); } NOTICE OF CONFIDENTIALITY This communication including any information transmitted with it is intended only for the use of the addressees and is confidential. If you are not an intended recipient or responsible for delivering the message to an intended recipient, any review, disclosure, conversion to hard copy, dissemination, reproduction or other use of any part of this communication is strictly prohibited, as is the taking or omitting of any action in reliance upon this communication. If you receive this communication in error or without authorization please notify us immediately by return e-mail or otherwise and permanently delete the entire communication from any computer, disk drive, or other storage medium. If the above disclaimer is not properly readable, it can be found at www.td.com/legal AVERTISSEMENT DE CONFIDENTIALITE Ce courriel, ainsi que tout renseignement ci-inclus, destiné uniquement aux destinataires susmentionnés, est confidentiel. Si vous n'êtes pas le destinataire prévu ou un agent responsable de la livraison de ce courriel, tout examen, divulgation, copie, impression, reproduction, distribution, ou autre utilisation d'une partie de ce courriel est strictement interdit de même que toute intervention ou abstraction à cet égard. Si vous avez reçu ce message par erreur ou sans autorisation, veuillez en aviser immédiatement l'expéditeur par retour de courriel ou par un autre moyen et supprimer immédiatement cette communication entière de tout système électronique. Si l'avis de non-responsabilité ci-dessus n'est pas lisible, vous pouvez le consulter à www.td.com/francais/legale -- View this message in context: http://www.nabble.com/How-do-I-call-alert%28%29--rather-than-using-.info-or-.error-of-Component-tp22789324p22789715.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: How do I call alert(); rather than using .info or .error of Component
Would you please elaborated more on this? You mean like filtering ERROR or INFO messages? john.mattucci wrote: Sorry my bad. Got it to work. Is there a way to stop the error/info messages from displaying altogether on the form? Thanks again. -Original Message- From: jcgarciam [mailto:jcgarc...@gmail.com] Sent: Monday, March 30, 2009 2:28 PM To: users@wicket.apache.org Subject: Re: How do I call alert(); rather than using .info or .error of Component You could try iterating thru the FeedBackMessage List Using something like: @Override public void renderHead(IHeaderResponse response) { super.renderHead(response); FeedbackMessages messages = WebSession.get().getFeedbackMessages(); if(!messages.isEmpty()){ //Iterate thru the messagesList and build a nice JavaScript Alert Message response.renderOnLoadJavascript(buildJSAlertFeedback(messages)); } } private String buildJSAlertFeedback(FeedbackMessages messages){ . return .; } john.mattucci wrote: I need to display messages via a javascript alert box rather than .error or .info messages which is provided in Component. I currently have the following. The problem is that the message remains. The alert appears whenever there is an error however how do I remove it? And is this the best approach? Thank you. .. extends AbstractBehavior { private String message; public void setMessage(String message) { this.message = message; } @Override public void renderHead(IHeaderResponse response) { super.renderHead(response); response.renderOnLoadJavascript(alert(' + message + ');); } NOTICE OF CONFIDENTIALITY This communication including any information transmitted with it is intended only for the use of the addressees and is confidential. If you are not an intended recipient or responsible for delivering the message to an intended recipient, any review, disclosure, conversion to hard copy, dissemination, reproduction or other use of any part of this communication is strictly prohibited, as is the taking or omitting of any action in reliance upon this communication. If you receive this communication in error or without authorization please notify us immediately by return e-mail or otherwise and permanently delete the entire communication from any computer, disk drive, or other storage medium. If the above disclaimer is not properly readable, it can be found at www.td.com/legal AVERTISSEMENT DE CONFIDENTIALITE Ce courriel, ainsi que tout renseignement ci-inclus, destiné uniquement aux destinataires susmentionnés, est confidentiel. Si vous n'êtes pas le destinataire prévu ou un agent responsable de la livraison de ce courriel, tout examen, divulgation, copie, impression, reproduction, distribution, ou autre utilisation d'une partie de ce courriel est strictement interdit de même que toute intervention ou abstraction à cet égard. Si vous avez reçu ce message par erreur ou sans autorisation, veuillez en aviser immédiatement l'expéditeur par retour de courriel ou par un autre moyen et supprimer immédiatement cette communication entière de tout système électronique. Si l'avis de non-responsabilité ci-dessus n'est pas lisible, vous pouvez le consulter à www.td.com/francais/legale -- View this message in context: http://www.nabble.com/How-do-I-call-alert%28%29--rather-than-using-.info-or-.error-of-Component-tp22789324p22789715.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 NOTICE OF CONFIDENTIALITY This communication including any information transmitted with it is intended only for the use of the addressees and is confidential. If you are not an intended recipient or responsible for delivering the message to an intended recipient, any review, disclosure, conversion to hard copy, dissemination, reproduction or other use of any part of this communication is strictly prohibited, as is the taking or omitting of any action in reliance upon this communication. If you receive this communication in error or without authorization please notify us immediately by return e-mail or otherwise and permanently delete the entire communication from any computer, disk drive, or other storage medium. If the above disclaimer is not properly readable, it can be found at www.td.com/legal AVERTISSEMENT DE CONFIDENTIALITE Ce courriel, ainsi que tout renseignement ci-inclus, destiné uniquement aux destinataires susmentionnés, est confidentiel. Si
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: WYSIWYG component
I have this component working at work. Im using Wicket 1.4 RC1. I'll suggest you to download the example war and check it out, Basically tinyMCE have a simple default theme, then you need to add any other button you may need using the Plugin Class provided with the Component on the Wicket Side. Daniel Ferreira Castro wrote: By commenting the line SpellCheckPlugin spellCheckPlugin = new SpellCheckPlugin(); it runs, but appears only a TextArea without tools...a single TextArea. Why? :) On Wed, Feb 25, 2009 at 9:31 PM, Daniel Ferreira Castro dfcas...@gmail.comwrote: I did it. But now I am recievieng an error whn accessing the page When the page execute this line SpellCheckPlugin spellCheckPlugin = new SpellCheckPlugin(); it throws a ClassNotFoundException: com.swabunga.spell.event.SpellCheckListener Does anyone knows how to solve it? I addapted the file https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/tinymce-parent/tinymce-examples/src/main/java/wicket/contrib/examples/tinymce/FullFeaturedTinyMCEPage.javato my needs. *at wicket.contrib.tinymce.settings.SpellCheckPlugin.init(SpellCheckPlugin.java:47) * at com.jasp.ecommfwk.pages.forms.NewsletterForm.createToolbars(NewsletterForm.java:167) at com.jasp.ecommfwk.pages.forms.NewsletterForm.inicializaComponentesForm(NewsletterForm.java:71) at com.jasp.ecommfwk.pages.forms.NewsletterForm.init(NewsletterForm.java:54) at com.jasp.ecommfwk.pages.panels.cadastro.CadastroNewsletterPanel.init(CadastroNewsletterPanel.java:14) at com.jasp.ecommfwk.pages.panels.cadastro.CadastroPanel$8.getPanel(CadastroPanel.java:72) at org.apache.wicket.extensions.markup.html.tabs.TabbedPanel.setSelectedTab(TabbedPanel.java:360) at org.apache.wicket.extensions.ajax.markup.html.tabs.AjaxTabbedPanel$1.onClick(AjaxTabbedPanel.java:64) at org.apache.wicket.ajax.markup.html.AjaxFallbackLink$1.onEvent(AjaxFallbackLink.java:73) at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:166) at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:299) at org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:105) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1192) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1271) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1370) at org.apache.wicket.RequestCycle.request(RequestCycle.java:501) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:455) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:288) 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) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:503) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:827) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:511) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:210) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:379) at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) *Caused by: java.lang.ClassNotFoundException: com.swabunga.spell.event.SpellCheckListener* at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) On Wed, Feb 25, 2009 at 8:23 PM, Jeremy Thomerson jer...@wickettraining.com wrote: groupId: org.wicketstuff artifactId: tinymce 1.4-SNAPSHOT make sure you include the wicketstuff maven repo, as described on the wicketstuff site. On Wed, Feb 25, 2009 at 5:20 PM, Daniel Ferreira Castro dfcas...@gmail.comwrote: