Re: [Wicket-user] SubmitLink and back button...
Have you seen the test case I posted on the mailing list? Can you confirm that you see the problem too and that it is indeed a wicket problem and not a problem with the way I use wicket? - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] SubmitLink and back button...
best thing is to make a bug report and attach the testcase.Because in the traffic ammount of the mailing list it can be forgotton..johanOn 9/12/06, Erik Brakkee [EMAIL PROTECTED] wrote: Have you seen the test case I posted on the mailing list?Can you confirm that you see the problem too and that it is indeed awicket problem and not a problem with the way I use wicket?- Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Wicket-portlet inside LifeRay + Tomcat?
Has anyone successfully runned a simple Wicket-portlet inside LifeRay + Tomcat? I have downloaded the Wicket-portlet-samples from the repository, and when I try to load the portlet.war with LifeRay + Tomcat I get the following error: --- 14:59:36,520 ERROR [HotDeployUtil:52] com.liferay.portal.kernel.deploy.HotDeploy Exception: Error registering portlets for es.tsystems.nt.web at com.liferay.portal.deploy.HotDeployPortletListener.invokeDeploy(HotDe ployPortletListener.java:284) at com.liferay.portal.kernel.deploy.HotDeployUtil._fireDeployEvent(HotDe ployUtil.java:82) at com.liferay.portal.kernel.deploy.HotDeployUtil.fireDeployEvent(HotDep loyUtil.java:43) at com.liferay.portal.kernel.servlet.PortletContextListener.contextIniti alized(PortletContextListener.java:41) at org.apache.catalina.core.StandardContext.listenerStart(StandardContex t.java:3729) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4 187) at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java :1089) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1187) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java :292) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:119) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBas e.java:1305) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.p rocessChildren(ContainerBase.java:1569) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.p rocessChildren(ContainerBase.java:1578) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.r un(ContainerBase.java:1558) at java.lang.Thread.run(Thread.java:534) Caused by: java.lang.ClassCastException at com.liferay.portal.deploy.HotDeployPortletListener.invokeDeploy(HotDe ployPortletListener.java:142) ... 14 more --- Need help! Thank you, in advance! Regards. Manu - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket-portlet inside LifeRay + Tomcat?
At least wicket-portlet-examples run fine with Liferay+Tomcat. What is this wicket-portlet-samples you're trying to deploy, and where did you get that portlet.war? If you compile the examples with maven it produces a war called "wicket-portlet-examples.war"."Exception: Error registering portlets for es.tsystems.nt.web" sounds like you're not deploying the real wicket portlet examples, may be you should try with that first?Also, which version of wicket are you using? 1.2.2 is currently the best choice.JanneOn 12.9.2006, at 18.05, Manu wrote:Has anyone successfully runned a simple Wicket-portlet inside LifeRay + Tomcat?I have downloaded the Wicket-portlet-samples from the repository, andwhen I try to load the portlet.war with LifeRay + Tomcat I get thefollowing error:---14:59:36,520 ERROR [HotDeployUtil:52] com.liferay.portal.kernel.deploy.HotDeployException: Error registering portlets for es.tsystems.nt.web at com.liferay.portal.deploy.HotDeployPortletListener.invokeDeploy(HotDeployPortletListener.java:284) at com.liferay.portal.kernel.deploy.HotDeployUtil._fireDeployEvent(HotDeployUtil.java:82) at com.liferay.portal.kernel.deploy.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:43) at com.liferay.portal.kernel.servlet.PortletContextListener.contextInitialized(PortletContextListener.java:41) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187) at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1089) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1187) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:292) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1305) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1569) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1578) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1558) at java.lang.Thread.run(Thread.java:534)Caused by: java.lang.ClassCastException at com.liferay.portal.deploy.HotDeployPortletListener.invokeDeploy(HotDeployPortletListener.java:142) ... 14 more---Need help! Thank you, in advance!Regards.Manu-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user Janne HietamäkiTeknologiajohtajaOy Cemron AbOsoite:Kehräsaari33200 Tamperehttp://www.cemron.fipuh. +358 40 724 7680[EMAIL PROTECTED] - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Fwd: Wicket WebApp as a Portlet (T-Systems - Barcelona)
Portlet support is still experimental, meaning there has not been real production class project based on it, but it is pretty much feature complete. There are some known features, and for sure some bugs left, but it mostly works.And yes, the examples project can be checked out from https://svn.sourceforge.net/svnroot/wicket/branches/wicket-1.x/wicket-portlet-examples/JanneOn 7.9.2006, at 19.30, Eelco Hillenius wrote:From what I now, portlet support is basic but works. There is an example project in the wicket-1.x branch:'https://svn.sourceforge.net/svnroot/wicket/branches/wicket-1.x/wicket-portlet-examples'that you could take a look at.Maybe Janne can tell a bit more about this. But he's in Spain for the weekend :)EelcoOn 9/7/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: The request should go to our mailing list I assume. There are userswith more portlet experience than I have.Juergen-- Forwarded message --From: Manuel Barzi [EMAIL PROTECTED]Date: Sep 7, 2006 2:00 PMSubject: Wicket WebApp as a Portlet (T-Systems - Barcelona)To: [EMAIL PROTECTED]Hi, Juergen,I am on intetrating Wicket in an already started project here inT-Systems, Barcelona. The final wicket-webapp I should end by the endof october should be "wrapped" in a Portlet to be integrated in aPortal "motorized" by LifeRay Portal Container. For the moment I amintroducing myself to Wicket, testing samples, and learning it bit bybit.The point is I been checking Wicket Site and found the following information:"... the portlet examples have not been released yet. You can findthem in SVN until the time has been found to build a proper releasefor it. The portlet support is still young and ..."Then I SVNed Wicket and searched for portlet samples, but only WicketAPI and some XML files where containing the keyword "portlet". Iguess, then, that the Portlet Samples you mention in the snippet aboveare in a different location, or not commited yet?Please, let me know... I have to resolve this issue asap as acondition to finally use Wicket or not in the project. I desire to useWicket, but first I have to check that it will allow me integratingits nature webapp to the portlet container.Thank you very much,Salute you from Barcelona!Manuel BarziComputer Solutions EngineerT-SystemsDISCLAIMER: This e-mail contains propietary information someor all of which may be legally protected. It is for the intendedrecipient only. If an addressing or transmission error hasmisdirected this e-mail, please notify the author by replying tothis e-mail. If you are not the intended recipient you must not use,disclose, distribute, copy, print or relay this e-mail.-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user Janne HietamäkiTeknologiajohtajaOy Cemron AbOsoite:Kehräsaari33200 Tamperehttp://www.cemron.fipuh. +358 40 724 7680[EMAIL PROTECTED] - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] SubmitLink and back button...
yeah i can reproduce it to, the problem is that the submitlink changes the form's value using _javascript_ - and the browser remembers it in its cache! so when you go back that cahnged url is present. ugly, im going to look for a solution. -IgorOn 9/12/06, Johan Compagner [EMAIL PROTECTED] wrote: best thing is to make a bug report and attach the testcase.Because in the traffic ammount of the mailing list it can be forgotton..johan On 9/12/06, Erik Brakkee [EMAIL PROTECTED] wrote: Have you seen the test case I posted on the mailing list?Can you confirm that you see the problem too and that it is indeed awicket problem and not a problem with the way I use wicket?- Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] How to detect page switch
Hi, Is there a Wicket (ie really smart) way to detext when the user switch to another page? The use case is to release locks that a user might have put on database records with pessimistic locking when the user switch to another page. Pierre-Yves - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket-portlet inside LifeRay + Tomcat?
On 12.9.2006, at 19.03, Manuel Barzi wrote: When I try to use maven, I get the following error (and I have already setup the proxy as described in Wicket site): --- [INFO] Scanning for projects... [INFO] -- -- [ERROR] FATAL ERROR [INFO] -- -- [INFO] Failed to resolve artifact. GroupId: wicket ArtifactId: wicket-parent Version: 1.2-SNAPSHOT Reason: Unable to download the artifact from any repository wicket:wicket-parent:pom:1.2-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) [INFO] -- -- [INFO] Trace org.apache.maven.reactor.MavenExecutionException: Cannot find parent: wicket:wic ket-parent for project: null:wicket-portlet-examples:war:null at org.apache.maven.DefaultMaven.getProjects (DefaultMaven.java:365) ... --- It might be my proxy... I guesss... you have to do mvn install at the wicket-parent directory to get the things up and running. So, what I do is to create a WAR using ANT... Exception: Error registering portlets for es.tsystems.nt.web sounds like you're not deploying the real wicket portlet examples, may be you should try with that first? Cannot understand you... I do a WAR as mentioned before, then deployed it and LifeRay says: portlet correctly loaded ... when I check the console I can see WicketServlet loaded... but then there's the exception I alredy sent you. What is this es.tsystems.nt.web anyway? The exception does not mention wicket in any way, so I believe it's your war. I think you should build the example-war and try to deploy that to see everything is working properly. Also, which version of wicket are you using? 1.2.2 is currently the best Well, I am using 1.x, isn't it right? that's fine. Janne - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to detect page switch
Is there a Wicket (ie really smart) way to detext when the user switch to another page? The use case is to release locks that a user might have put on database records with pessimistic locking when the user switch to another page. For every request target that was set during a request (like for everytime you called setResponsePage), onDetach will be called at the end of the request handling. This is the place where you should clean up resources for normal requests. Eelco - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] SubmitLink and back button...
ok, should be fixed in 1.2.3, you can try the wicket-1.x branch now if you wantfor the versioning to work properly though you need to remember changes done against your dataprovider because it keeps its own state that needs to be rolled back. attached is the submitlinkpage.java that shows you how to do that.-IgorOn 9/12/06, Igor Vaynberg [EMAIL PROTECTED] wrote:yeah i can reproduce it to, the problem is that the submitlink changes the form's value using _javascript_ - and the browser remembers it in its cache! so when you go back that cahnged url is present. ugly, im going to look for a solution. -IgorOn 9/12/06, Johan Compagner [EMAIL PROTECTED] wrote: best thing is to make a bug report and attach the testcase.Because in the traffic ammount of the mailing list it can be forgotton..johan On 9/12/06, Erik Brakkee [EMAIL PROTECTED] wrote: Have you seen the test case I posted on the mailing list?Can you confirm that you see the problem too and that it is indeed awicket problem and not a problem with the way I use wicket?- Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user package wicket.quickstart; import java.io.Serializable; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import wicket.extensions.markup.html.repeater.data.DataView; import wicket.extensions.markup.html.repeater.data.IDataProvider; import wicket.extensions.markup.html.repeater.refreshing.Item; import wicket.markup.html.WebPage; import wicket.markup.html.basic.Label; import wicket.markup.html.form.Form; import wicket.markup.html.form.SubmitLink; import wicket.model.IModel; import wicket.model.Model; import wicket.version.undo.Change; public class SubmitLinkPage extends WebPage { private int _counter = 0; public SubmitLinkPage() { System.out.println(New page); final Form form = new Form(form); add(form); final LinkProvider provider = new LinkProvider(); DataView view = new DataView(links, provider) { protected void populateItem(Item aItem) { String text = (String) aItem.getModelObject(); SubmitLink link = new SubmitLink(link); link.setDefaultFormProcessing(false); aItem.add(link); link.add(new Label(text, text)); } }; form.add(view); SubmitLink addLink = new SubmitLink(add) { protected void onSubmit() { System.out.println(Hallo!); final int index = provider.add(Look ma, a new link! + _counter++)-1; addStateChange(new Change() { @Override public void undo() { provider.remove(index-1); } }); System.out.println(no. items = + provider.size()); } }; addLink.setVersioned(true); form.add(addLink); } } class LinkProvider implements IDataProvider { private ListString _links; public LinkProvider() { _links = new ArrayListString(); } public int add(String aLink) { _links.add(aLink); return _links.size(); } public void remove(int index) { _links.remove(index); } public Iterator iterator(int aFirst, int aCount) { Iterator iterator = _links.iterator(); for (int i = 0; i aFirst; i++) { iterator.next(); } return iterator; } public IModel model(Object aObject) { return new Model((Serializable) aObject); } public int size() { return _links.size(); } } - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to detect page switch
I already tried this method, but it is called just before the user can see the page. What I need is to do something when he leaves the page. However, I think I have found an acceptable solution. I would make all my data objects implements an interface (let's say Lockable) and retain the last locked object in the session. That way, I can release the last locked object on each new request (if needed). The risk is to have the last object locked until the session expires, but that's acceptable in my use case. However, I red many times that big objects should not be put in the session. Putting an object in the session is just a matter of retaining a reference to it. So it should not cost much. Or do I miss something? Pierre-Yves Eelco Hillenius a écrit : Is there a Wicket (ie really smart) way to detext when the user switch to another page? The use case is to release locks that a user might have put on database records with pessimistic locking when the user switch to another page. For every request target that was set during a request (like for everytime you called setResponsePage), onDetach will be called at the end of the request handling. This is the place where you should clean up resources for normal requests. Eelco - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Changing Value of ListItem model object
your example is too big, there is too much going on. personally i dont have time to go through it and understand everything in order to help you with your problem. you should distill it down to a very small and concise example. -IgorOn 9/11/06, ChuckDeal [EMAIL PROTECTED] wrote: My Problem:I am trying to make a set of Radio buttons (rendered by a ListView)dynamically update with the selection that is made.I am trying toimplement a feature where the status date is cleared when the status changes back to OPEN or the status date is set to today's date when the status ischanged to an option with a blank date.BUT... When the CLOSED status isset back to OPEN, the closed date should be set to blank (null) but it is not.In a similar situation, when WITHDRAWN is selected, it gets today'sdate (as it should).So, this seems to have something to do with the nullvalue, but I just can't see what it is.Can anyone offer me some guidance? I have attached a quickstart app so that someone might point me in the rightdirection.The quickstart is dummied up pretty good, but it pretty closelyresembles the output that I want. I'm not sure how much detail is appropriate right now, but I will be more than willing to supply moredetails if someone thinks that they can help me.Charles Deal http://www.nabble.com/user-files/235945/quickstart-listview.zipquickstart-listview.zip--View this message in context: http://www.nabble.com/Changing-Value-of-ListItem-model-object-tf2254438.html#a6253100Sent from the Wicket - User forum at Nabble.com.- Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to detect page switch
Putting large objects into session is ok, as long as you a) have enough memory and can afford it b) don't replicate the session (clustering). -Matej Pierre-Yves Saumont wrote: I already tried this method, but it is called just before the user can see the page. What I need is to do something when he leaves the page. However, I think I have found an acceptable solution. I would make all my data objects implements an interface (let's say Lockable) and retain the last locked object in the session. That way, I can release the last locked object on each new request (if needed). The risk is to have the last object locked until the session expires, but that's acceptable in my use case. However, I red many times that big objects should not be put in the session. Putting an object in the session is just a matter of retaining a reference to it. So it should not cost much. Or do I miss something? Pierre-Yves Eelco Hillenius a écrit : Is there a Wicket (ie really smart) way to detext when the user switch to another page? The use case is to release locks that a user might have put on database records with pessimistic locking when the user switch to another page. For every request target that was set during a request (like for everytime you called setResponsePage), onDetach will be called at the end of the request handling. This is the place where you should clean up resources for normal requests. Eelco - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] SubmitLink and back button...
Igor Vaynberg wrote: ok, should be fixed in 1.2.3, you can try the wicket-1.x branch now if you want Thanks! I can wait for version 1.2.3 since the problem is not that critical for us. for the versioning to work properly though you need to remember changes done against your dataprovider because it keeps its own state that needs to be rolled back. attached is the submitlinkpage.java that shows you how to do that. Thanks for the example. It is getting more and more clear to me how versioning and back button support works. -Igor By the way, I am really impressed about this mailinglist (and about wicket!). We are developing a commercial application with it and it would be nice to post a link to it on the wiki when it is finished. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] SubmitLink and back button...
sure, wiki registration is open so feel free :)-IgorOn 9/12/06, Erik Brakkee [EMAIL PROTECTED] wrote: Igor Vaynberg wrote: ok, should be fixed in 1.2.3, you can try the wicket-1.x branch now if you wantThanks! I can wait for version 1.2.3 since the problem is not thatcritical for us. for the versioning to work properly though you need to remember changes done against your dataprovider because it keeps its own state that needs to be rolled back. attached is the submitlinkpage.java that shows you how to do that.Thanks for the example. It is getting more and more clear to me howversioning and back button support works. -IgorBy the way, I am really impressed about this mailinglist (and aboutwicket!).We are developing a commercial application with it and itwould be nice to post a link to it on the wiki when it is finished. -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] SubmitLink and back button...
Go ahead with the commercial applications on the wiki. As long as they are developed using Wicket. Martijn On 9/12/06, Erik Brakkee [EMAIL PROTECTED] wrote: Igor Vaynberg wrote: ok, should be fixed in 1.2.3, you can try the wicket-1.x branch now if you want Thanks! I can wait for version 1.2.3 since the problem is not that critical for us. for the versioning to work properly though you need to remember changes done against your dataprovider because it keeps its own state that needs to be rolled back. attached is the submitlinkpage.java that shows you how to do that. Thanks for the example. It is getting more and more clear to me how versioning and back button support works. -Igor By the way, I am really impressed about this mailinglist (and about wicket!). We are developing a commercial application with it and it would be nice to post a link to it on the wiki when it is finished. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Download Wicket 1.2.2 now! New Ajax components: Tree, TreeTable and ModalWindow -- http://wicketframework.org - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to detect page switch
Matej, I do not understand your point :-( The object does not get replicated when a reference to it is stored in the session. So I understand point b, but in case no clustering is used, why would there be a memory problem? Putting a reference in the session is just a way to keep a handle on the object. Having the reference the session is not different from having it anywhere else, as far as memory is concerned. Or is it? Pierre-Yves Matej Knopp a écrit : Putting large objects into session is ok, as long as you a) have enough memory and can afford it b) don't replicate the session (clustering). -Matej Pierre-Yves Saumont wrote: I already tried this method, but it is called just before the user can see the page. What I need is to do something when he leaves the page. However, I think I have found an acceptable solution. I would make all my data objects implements an interface (let's say Lockable) and retain the last locked object in the session. That way, I can release the last locked object on each new request (if needed). The risk is to have the last object locked until the session expires, but that's acceptable in my use case. However, I red many times that big objects should not be put in the session. Putting an object in the session is just a matter of retaining a reference to it. So it should not cost much. Or do I miss something? Pierre-Yves Eelco Hillenius a écrit : Is there a Wicket (ie really smart) way to detext when the user switch to another page? The use case is to release locks that a user might have put on database records with pessimistic locking when the user switch to another page. For every request target that was set during a request (like for everytime you called setResponsePage), onDetach will be called at the end of the request handling. This is the place where you should clean up resources for normal requests. Eelco - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] SubmitLink and back button...
Can the call 'addLink.setVersioned(true);' be left out? By default pages are versioned so components on pages are versioned too by default, right? - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Pagemap null is locked
Everyone, I am getting the following error whenever I try to hit a certain page in my webapp. The error can be reproduced and happens every time I try to access the page. I have not yet been successful in creating a small non-trivial test app that will display this behaviour. Any thoughts would be appreciated. Thanks, WicketMessage: After 20s the Pagemap null is still locked by: Thread[resin-803,5,main], giving up trying to get the page for path: 12:categorySelect Root cause: wicket.WicketRuntimeException: After 20s the Pagemap null is still locked by: Thread[resin-803,5,main], giving up trying to get the page for path: 12:categorySelect at wicket.Session.getPage(Session.java:482) at wicket.request.compound.AbstractRequestTargetResolverStrategy.resolveRenderedPage(AbstractRequestTargetResolverStrategy.java:80) at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolve(DefaultRequestTargetResolverStrategy.java:79) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.resolve(AbstractCompoundRequestCycleProcessor.java:49) at wicket.RequestCycle.step(RequestCycle.java:993) at wicket.RequestCycle.steps(RequestCycle.java:1082) at wicket.RequestCycle.request(RequestCycle.java:454) at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:233) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:126) at javax.servlet.http.HttpServlet.service(HttpServlet.java:115) at javax.servlet.http.HttpServlet.service(HttpServlet.java:92) at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:106) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70) at wicket.protocol.http.servlet.WicketSessionFilter.doFilter(WicketSessionFilter.java:197) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70) at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:178) at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:259) at com.caucho.server.port.TcpConnection.run(TcpConnection.java:386) at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:490) at com.caucho.util.ThreadPool.run(ThreadPool.java:423) at java.lang.Thread.run(Thread.java:595) -- Philip A. Chapman Desktop and Web Application Development: Java, .NET, PostgreSQL, MySQL, MSSQL Linux, Windows 2000, Windows XP signature.asc Description: This is a digitally signed message part - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] SubmitLink and back button...
not formcomponents, which i think is a bit weird/wrong.what we want is to let the form control the versioning of formcomponents, so inside formcomponent constructor we set it to false. and then form overrides setversioned() and replicates that call to the formcomponents. the problem is that during page constructor that wont do anything because form components might be added later - the chain is not yet complete - and also defaulting to false is wrong i think. johan you got any thoughts on this? in 2.0 we can fix this by overriding isversioned on formcomponent and polling the form directly instead of having the form push.-IgorOn 9/12/06, Erik Brakkee [EMAIL PROTECTED] wrote: Can the call'addLink.setVersioned(true);' be left out? By defaultpages are versioned so components on pages are versioned too by default,right?- Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] SubmitLink and back button...
Igor Vaynberg wrote: not formcomponents, which i think is a bit weird/wrong. Aha. what we want is to let the form control the versioning of formcomponents, so inside formcomponent constructor we set it to false. and then form overrides setversioned() and replicates that call to the formcomponents. the problem is that during page constructor that wont do anything because form components might be added later - the chain is not yet complete - and also defaulting to false is wrong i think. johan you got any thoughts on this? In my opinion setting it to true by default is also more natural and consistent with pages. This is unexpected behavior and one of the key things I have with wicket is its predictability: Components usually just behave as you expect, so making it consistent in wicket 2 would be a good idea. in 2.0 we can fix this by overriding isversioned on formcomponent and polling the form directly instead of having the form push. I think the polling behavior should be the default. Why shouldn't a form be versioned? Unfortunately, the book 'Pro Wicket' does not cover anything at all about versioning and back button support (a search of the document for 'back button', 'modelChanging', and 'modelChanged' did not return any results. I just hope that 'Wicket in Action' will cover versioning and back button support in detail since it is such a major point of wicket (one of the selling points). -Igor - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] SubmitLink and back button...
On 9/12/06, Erik Brakkee [EMAIL PROTECTED] wrote: Igor Vaynberg wrote: not formcomponents, which i think is a bit weird/wrong.Aha. what we want is to let the form control the versioning of formcomponents, so inside formcomponent constructor we set it to false. and then form overrides setversioned() and replicates that call to the formcomponents. the problem is that during page constructor that wont do anything because form components might be added later - the chain is not yet complete - and also defaulting to false is wrong i think. johan you got any thoughts on this?In my opinion setting it to true by default is also more natural andconsistent with pages. This is unexpected behavior and one of the key things I have with wicket is its predictability: Components usually justbehave as you expect, so making it consistent in wicket 2 would be agood idea.well, as i said i think this is somewhat of a bug. johan you implemented this, are you reading with us? in 2.0 we can fix this by overriding isversioned on formcomponent and polling the form directly instead of having the form push.I think the polling behavior should be the default. Why shouldn't a formbe versioned?because in 1.x we cannot do it because the component hierarchy is not always available. Unfortunately, the book 'Pro Wicket' does not cover anything at allabout versioning and back button support (a search of the document for 'back button', 'modelChanging', and 'modelChanged' did not return anyresults. I just hope that 'Wicket in Action' will cover versioning andback button support in detail since it is such a major point of wicket (one of the selling points).there really isnt that much to it. if you have an object inside the model it is versioned for you through modelchanging/changed calls.if you have state outside the model you version it yourself using addStateChange which is trivial - just have to remember to do it. the book is still in beta, get in touch with the author maybe its not too late to add?-Igor -Igor-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] SubmitLink and back button...
Igor Vaynberg wrote: there really isnt that much to it. if you have an object inside the model it is versioned for you through modelchanging/changed calls. if you have state outside the model you version it yourself using addStateChange which is trivial - just have to remember to do it. I agree that it is basically very easy, but not everything is obvious. Therefore, I have taken the liberty to extend the wiki page on the back button (http://www.wicket-wiki.org.uk/wiki/index.php/Backbutton) with the information I got from this discussion. Please have a look at it to see if I am not writing nonsense :-) - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] SubmitLink and back button...
thanks for the contribution-IgorOn 9/12/06, Erik Brakkee [EMAIL PROTECTED] wrote: Igor Vaynberg wrote: there really isnt that much to it. if you have an object inside the model it is versioned for you through modelchanging/changed calls. if you have state outside the model you version it yourself using addStateChange which is trivial - just have to remember to do it.I agree that it is basically very easy, but not everything is obvious.Therefore, I have taken the liberty to extend the wiki page on the back button (http://www.wicket-wiki.org.uk/wiki/index.php/Backbutton) withthe information I got from this discussion. Please have a look at it to see if I am not writing nonsense :-)-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to detect page switch
On 9/12/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote: Matej, I do not understand your point :-( The object does not get replicated when a reference to it is stored in the session. So I understand point b, but in case no clustering is used, why would there be a memory problem? Putting a reference in the session is just a way to keep a handle on the object. Having the reference the session is not different from having it anywhere else, as far as memory is concerned. Or is it? That,, of course, depends on where that object comes from and how long lived it would be if it were not put in the session. For instance, if you have some objects you get from an ORM (like Hibernate), they typically only have to exist for a short time, e.g. during a transaction, interpreting the results of a query, etc. Usually, this means that such objects live for one request. However, if you references to such objects in your components or models, they'll live as long as those components/ models live, which might be for the duration of the session. But if you would store e.g. only the ids of those objects, or the query to get them or just a reference to a service that knows how to get them, you'll use less memory. This is the main reason we have detachable models. Replication, like you said, only happens when you run in a cluster *and* you use http session replication *and* you use http session as session store (HttpSessionStore) *or* when a server tries to persist sessions e.g. on shutdown so that on startup it can pick up it's sessions again. Eelco - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Ajax request 'hangs' on Safari - problem found (Wicket 2.0)
Problem found, it looks like safari aborts execution when getElementsByTagName is called on a text node (in contrast calling e.g. 'childNodes' works fine.) The problem occurs in the Wicket.Head.addJavascripts (called from Wicket.replaceOuterHtml) function when one of the elements is a text node. A fix could be to check for the node type of the element or childNodes.lenght 0 before element.getElementsByTagName(script) is called. Do you have another solution or can I file a bug for it? Adam On Sep 9, 2006, at 11:44 AM, Eelco Hillenius wrote: I can't reproduce this. All Ajax examples (wicket-examples/ajax) work fine with Safari (2.0.4) for me. Maybe you could give us a code sample of the thing that fails with you? Eelco On 9/9/06, Adam Smyczek [EMAIL PROTECTED] wrote: Hi All, I have an ajax problem on Safari browser. When I update a component using AbstractDefaultAjaxBehavior the ajax log looks like following: -- begin -- INFO: INFO: Initiating Ajax GET request on /quickstart/app? wicket:interface=: 1:tooltip2Trigger:tooltip2Border::IBehaviorListenerwicket:behaviorId =0 random=0.4174859744578069 INFO: Invoking pre-call handler(s)... INFO: Received ajax response (686 characters) INFO: ?xml version=1.0 encoding=UTF-8?ajax-responsecomponent id=tooltip2Trigger_tooltip2Border encoding=wicket1 ![CDATA [span style=display:none; id=tooltip2Trigger_tooltip2Border wicket:id=tooltip2Border class=tooltipwicket:borderwicket:body This is a static tooltip loaded on first mouseover event! /wicket:body/wicket:border/spanscript type=text/javascript !--/*--![CDATA[/*!--*/ tooltipManager.registerTrigger('tooltip2Trigger', 'tooltip2Trigger_tooltip2Border', false, '/quickstart/app? wicket:interface=: 1:tooltip2Trigger:tooltip2Border::IBehaviorListenerwicket:behaviorId =0' ); /*--]^]^*//script ]]/component/ajax-response INFO: Response parsed. Now invoking steps... -- end -- It looks like the response cannot be processed correctly and javascript 'hangs' because on every following request I get the 'Chanel busy - postponing...' message. On Firefox everything works fine. To compare following is the ajax log: -- begin-- INFO: INFO: Initiating Ajax GET request on /quickstart/app? wicket:interface=: 2:tooltip2Trigger:tooltip2Border::IBehaviorListenerwicket:behaviorId =0 random=0.9799105785595497 INFO: Invoking pre-call handler(s)... INFO: Received ajax response (686 characters) INFO: ?xml version=1.0 encoding=UTF-8?ajax-responsecomponent id=tooltip2Trigger_tooltip2Border encoding=wicket1 ![CDATA [span style=display:none; id=tooltip2Trigger_tooltip2Border wicket:id=tooltip2Border class=tooltipwicket:borderwicket:body This is a static tooltip loaded on first mouseover event! /wicket:body/wicket:border/spanscript type=text/javascript !--/*--![CDATA[/*!--*/ tooltipManager.registerTrigger('tooltip2Trigger', 'tooltip2Trigger_tooltip2Border', false, '/quickstart/app? wicket:interface=: 2:tooltip2Trigger:tooltip2Border::IBehaviorListenerwicket:behaviorId =0' ); /*--]^]^*//script ]]/component/ajax-response INFO: Response parsed. Now invoking steps... INFO: Response processed successfully. INFO: Invoking post-call handler(s)... -- end -- Any idea what could be wrong with this response? Regards, Adam - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel? cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel? cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list
Re: [Wicket-user] Ajax request 'hangs' on Safari - problem found (Wicket 2.0)
i would file it as a bug just so it wouldnt get lost and assign it to matej :)-IgorOn 9/12/06, Adam Smyczek [EMAIL PROTECTED] wrote:Problem found, it looks like safari aborts execution when getElementsByTagNameis called on a text node (in contrast calling e.g. 'childNodes' worksfine.)The problem occurs in the Wicket.Head.addJavascripts (called fromWicket.replaceOuterHtml) function when one of the elements is a text node. A fix could be to check forthe node type of the element orchildNodes.lenght 0 before element.getElementsByTagName(script)is called.Do you have another solution or can I file a bug for it? AdamOn Sep 9, 2006, at 11:44 AM, Eelco Hillenius wrote: I can't reproduce this. All Ajax examples (wicket-examples/ajax) work fine with Safari (2.0.4) for me. Maybe you could give us a code sample of the thing that fails with you? Eelco On 9/9/06, Adam Smyczek [EMAIL PROTECTED] wrote: Hi All, I have an ajax problem on Safari browser. When I update a component using AbstractDefaultAjaxBehavior the ajax log looks like following: -- begin -- INFO: INFO: Initiating Ajax GET request on /quickstart/app? wicket:interface=: 1:tooltip2Trigger:tooltip2Border::IBehaviorListenerwicket:behaviorId =0 random= 0.4174859744578069 INFO: Invoking pre-call handler(s)... INFO: Received ajax response (686 characters) INFO: ?xml version=1.0 encoding=UTF-8?ajax-responsecomponent id=tooltip2Trigger_tooltip2Borderencoding=wicket1 ![CDATA [span style=display:none; id=tooltip2Trigger_tooltip2Border wicket:id=tooltip2Border class=tooltipwicket:borderwicket:bodyThis is a static tooltip loaded on first mouseover event!/wicket:body/wicket:border/spanscript type=text/_javascript_ !--/*--![CDATA[/*!--*/ tooltipManager.registerTrigger('tooltip2Trigger', 'tooltip2Trigger_tooltip2Border', false, '/quickstart/app? wicket:interface=: 1:tooltip2Trigger:tooltip2Border::IBehaviorListenerwicket:behaviorId =0' ); /*--]^]^*//script ]]/component/ajax-response INFO: Response parsed. Now invoking steps... -- end -- It looks like the response cannot be processed correctly and _javascript_ 'hangs' because on every following request I get the 'Chanel busy - postponing...' message. On Firefox everything works fine. To compare following is the ajax log: -- begin-- INFO: INFO: Initiating Ajax GET request on /quickstart/app? wicket:interface=: 2:tooltip2Trigger:tooltip2Border::IBehaviorListenerwicket:behaviorId =0 random=0.9799105785595497 INFO: Invoking pre-call handler(s)... INFO: Received ajax response (686 characters) INFO: ?xml version=1.0 encoding=UTF-8?ajax-responsecomponent id=tooltip2Trigger_tooltip2Borderencoding=wicket1 ![CDATA [span style=display:none; id=tooltip2Trigger_tooltip2Border wicket:id=tooltip2Border class=tooltipwicket:borderwicket:bodyThis is a static tooltip loaded on first mouseover event! /wicket:body/wicket:border/spanscript type=text/_javascript_ !--/*--![CDATA[/*!--*/ tooltipManager.registerTrigger ('tooltip2Trigger', 'tooltip2Trigger_tooltip2Border', false, '/quickstart/app? wicket:interface=: 2:tooltip2Trigger:tooltip2Border::IBehaviorListenerwicket:behaviorId =0' ); /*--]^]^*//script ]]/component/ajax-response INFO: Response parsed. Now invoking steps... INFO: Response processed successfully. INFO: Invoking post-call handler(s)... -- end -- Any idea what could be wrong with this response? Regards, Adam - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel? cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel? cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] jfreechart and wicket
Decebal Suiu wrote: Any example about how to display a chart generated with jfreechart in a WebPage? I am going to do the same for my application (trackdetective.com) for displaying height profiles of GPS tracks. Just browsed a little through the APIs. It seems you can use the Image class. The most general constructor is public Image(final String id, final Resource imageResource) In this way you can determine for yourself where it gets the input from. Perhaps BlobImageResource or its super class DynamicImageResource are good resource implementations for this. I found a link about this topic (http://www.nabble.com/JFreeChart-Experiment-tf1824840.html#a4977424) but the link containing the source code is broken. Thanks, Decebal - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] polymorphic components...
Hi all, In the application I am writing I have encountered a need for polymorphic components. That is, in my markup I have span wicket:id=blahcontent/span and depending on what component is used on the server side, I can add links, labels, or anything else you can imagine. The only requirement is that the component provides its own html. This is very useful for instance for dynamically generating content such as dynamic menus based on user privileges where the menu items consist of plain text, links, images, etc As an example I have attached a LinkPanel. The programmer has to create a subclass and implement /** * Must be implemented to create the content of the link. * @param aId Id of the component to create. */ protected abstract Component createContent(String aId); /** * Callback to notify the user of onClick events. * */ protected abstract void onClick(); The first callback is simply to create the content. The second is to notify of onclick events. The html template for the component is very simple, just an anchor and the content of the anchor. Are a range of components like this a good idea for inclusion in wicket-extensions? Cheers Erik PS. This is a wicket 1.2.2 component but wicket 2 would be really easy. import wicket.Component; import wicket.markup.html.link.Link; import wicket.markup.html.panel.Panel; /** * Represents a link with text marked up in a specific way. * This generates a link with CSS class codelink/code. */ public abstract class LinkPanel extends Panel { /** * Constructs the link. * @param aId Id of the link. */ public LinkPanel(String aId) { super(aId); Link link = new Link(link) { @Override public void onClick() { LinkPanel.this.onClick(); } }; link.add(createContent(text)); add(link); } /** * Must be implemented to create the content of the link. * @param aId Id of the component to create. */ protected abstract Component createContent(String aId); /** * Callback to notify the user of onClick events. * */ protected abstract void onClick(); } HTML template html head /head body wicket:panel a class=link wicket:id=linkspan wicket:id=textLink text/span/a /wicket:panel /body /html - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] polymorphic components...
Thanks for sharing, What we would like to promote more actually is the fact that creating your own patterns/components is (or at least should be) pretty damn easy with Wicket. So in this case, a WIKI or blog item is probably more helpful. However, if you feel you have something that'll save users a lot of time, or will inspire them with their Wicket work, you're free to start up a wicket-stuff project (send me a personal email with your sourceforge id if you want that). Cheers, Eelco On 9/12/06, Erik Brakkee [EMAIL PROTECTED] wrote: Hi all, In the application I am writing I have encountered a need for polymorphic components. That is, in my markup I have span wicket:id=blahcontent/span and depending on what component is used on the server side, I can add links, labels, or anything else you can imagine. The only requirement is that the component provides its own html. This is very useful for instance for dynamically generating content such as dynamic menus based on user privileges where the menu items consist of plain text, links, images, etc As an example I have attached a LinkPanel. The programmer has to create a subclass and implement /** * Must be implemented to create the content of the link. * @param aId Id of the component to create. */ protected abstract Component createContent(String aId); /** * Callback to notify the user of onClick events. * */ protected abstract void onClick(); The first callback is simply to create the content. The second is to notify of onclick events. The html template for the component is very simple, just an anchor and the content of the anchor. Are a range of components like this a good idea for inclusion in wicket-extensions? Cheers Erik PS. This is a wicket 1.2.2 component but wicket 2 would be really easy. import wicket.Component; import wicket.markup.html.link.Link; import wicket.markup.html.panel.Panel; /** * Represents a link with text marked up in a specific way. * This generates a link with CSS class codelink/code. */ public abstract class LinkPanel extends Panel { /** * Constructs the link. * @param aId Id of the link. */ public LinkPanel(String aId) { super(aId); Link link = new Link(link) { @Override public void onClick() { LinkPanel.this.onClick(); } }; link.add(createContent(text)); add(link); } /** * Must be implemented to create the content of the link. * @param aId Id of the component to create. */ protected abstract Component createContent(String aId); /** * Callback to notify the user of onClick events. * */ protected abstract void onClick(); } HTML template html head /head body wicket:panel a class=link wicket:id=linkspan wicket:id=textLink text/span/a /wicket:panel /body /html - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] polymorphic components...
i think all these little wrappers for consistent-ui will be unique to every application. i have them for all applications im working on and they are really trivial, but more importantly really different between the applications, so i think having a set of these for extensions will not be very helpful. -IgorOn 9/12/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Thanks for sharing,What we would like to promote more actually is the fact that creatingyour own patterns/components is (or at least should be) pretty damneasy with Wicket. So in this case, a WIKI or blog item is probably more helpful. However, if you feel you have something that'll saveusers a lot of time, or will inspire them with their Wicket work,you're free to start up a wicket-stuff project (send me a personalemail with your sourceforge id if you want that). Cheers,EelcoOn 9/12/06, Erik Brakkee [EMAIL PROTECTED] wrote: Hi all, In the application I am writing I have encountered a need for polymorphic components. That is, in my markup I have span wicket:id=blahcontent/span and depending on what component is used on the server side, I can add links, labels, or anything else you can imagine. The only requirement is that the component provides its own html. This is very useful for instance for dynamically generating content such as dynamic menus based on user privileges where the menu items consist of plain text, links, images, etc As an example I have attached a LinkPanel. The programmer has to create a subclass and implement /*** Must be implemented to create the content of the link.* @param aId Id of the component to create.*/ protected abstract Component createContent(String aId); /*** Callback to notify the user of onClick events.**/ protected abstract void onClick(); The first callback is simply to create the content. The second is to notify of onclick events.The html template for the component is very simple, just an anchor and the content of the anchor. Are a range of components like this a good idea for inclusion in wicket-extensions? Cheers Erik PS. This is a wicket 1.2.2 component but wicket 2 would be really easy. import wicket.Component; import wicket.markup.html.link.Link ; import wicket.markup.html.panel.Panel; /*** Represents a link with text marked up in a specific way.* This generates a link with CSS class codelink/code.*/ public abstract class LinkPanel extends Panel { /*** Constructs the link.* @param aId Id of the link.*/ public LinkPanel(String aId) { super(aId); Link link = new Link(link) { @Override public void onClick() { LinkPanel.this.onClick(); } }; link.add(createContent(text)); add(link); } /*** Must be implemented to create the content of the link.* @param aId Id of the component to create. */ protected abstract Component createContent(String aId); /*** Callback to notify the user of onClick events.**/ protected abstract void onClick(); } HTML template html head /head body wicket:panel a class=link wicket:id=linkspan wicket:id=textLink text/span/a /wicket:panel /body /html - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to detect page switch
Thank you for this clarification. So it appears that, in an unclusterd context, the problem is not with storing references *in sessions*, but simply with storing references. I am using hibernate objects and I need to keep to copies of the data, so I am creating a value object plus I keep the original hibernate object. Perhaps I would better create 2 value objects and throw away the hibernate object (in case this object is much bigger than a simple value object??). I must check for this. (But this is not Wicket related ;-). Thanks again Pierre-Yves Eelco Hillenius a écrit : On 9/12/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote: Matej, I do not understand your point :-( The object does not get replicated when a reference to it is stored in the session. So I understand point b, but in case no clustering is used, why would there be a memory problem? Putting a reference in the session is just a way to keep a handle on the object. Having the reference the session is not different from having it anywhere else, as far as memory is concerned. Or is it? That,, of course, depends on where that object comes from and how long lived it would be if it were not put in the session. For instance, if you have some objects you get from an ORM (like Hibernate), they typically only have to exist for a short time, e.g. during a transaction, interpreting the results of a query, etc. Usually, this means that such objects live for one request. However, if you references to such objects in your components or models, they'll live as long as those components/ models live, which might be for the duration of the session. But if you would store e.g. only the ids of those objects, or the query to get them or just a reference to a service that knows how to get them, you'll use less memory. This is the main reason we have detachable models. Replication, like you said, only happens when you run in a cluster *and* you use http session replication *and* you use http session as session store (HttpSessionStore) *or* when a server tries to persist sessions e.g. on shutdown so that on startup it can pick up it's sessions again. Eelco - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] polymorphic components...
Eelco Hillenius wrote: Thanks for sharing, What we would like to promote more actually is the fact that creating your own patterns/components is (or at least should be) pretty damn easy with Wicket. And it is. I have many application-specific components and a few generic ones. So in this case, a WIKI or blog item is probably more helpful. However, if you feel you have something that'll save users a lot of time, or will inspire them with their Wicket work, you're free to start up a wicket-stuff project (send me a personal email with your sourceforge id if you want that). Perhaps I will write an entry on the wiki. I don't have enough for a separate project, but on a different note, I am still thinking of starting a project for wicket CMS components. That one could be useful as a separate project. I will think about it and let you know. Cheers, Eelco - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to detect page switch
On 9/12/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote: Thank you for this clarification. So it appears that, in an unclusterd context, the problem is not with storing references *in sessions*, but simply with storing references. I am using hibernate objects and I need to keep to copies of the data, so I am creating a value object plus I keep the original hibernate object. Perhaps I would better create 2 value objects and throw away the hibernate object (in case this object is much bigger than a simple value object??). I must check for this. (But this is not Wicket related ;-). A common problem with things like Hibernate objects is that they might get stale (disconnected from the session they were retrieved in), which results in problems with things like lazy collections. Also, if you use a transaction per request (e.g. using servlet filters or a custom request cycle) like some people have reported doing, you have to be very careful you're not updating objects you didn't want updated. The latter is an argument for using value objects (which I don't like tbh... too much code duplication) and the first is an argument for using detachable models and thus storing only the minimal info (if any) for retrieving the proper objects. Eelco - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Pagemap null is locked
Nasty. Maybe you can set a breakpoint in Session.requestDetached in getPage (line 486). And for us something reproducible runnable would help :) Eelco On 9/12/06, Philip A. Chapman [EMAIL PROTECTED] wrote: Everyone, I am getting the following error whenever I try to hit a certain page in my webapp. The error can be reproduced and happens every time I try to access the page. I have not yet been successful in creating a small non-trivial test app that will display this behaviour. Any thoughts would be appreciated. Thanks, WicketMessage: After 20s the Pagemap null is still locked by: Thread[resin-803,5,main], giving up trying to get the page for path: 12:categorySelect Root cause: wicket.WicketRuntimeException: After 20s the Pagemap null is still locked by: Thread[resin-803,5,main], giving up trying to get the page for path: 12:categorySelect at wicket.Session.getPage(Session.java:482) at wicket.request.compound.AbstractRequestTargetResolverStrategy.resolveRenderedPage(AbstractRequestTargetResolverStrategy.java:80) at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolve(DefaultRequestTargetResolverStrategy.java:79) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.resolve(AbstractCompoundRequestCycleProcessor.java:49) at wicket.RequestCycle.step(RequestCycle.java:993) at wicket.RequestCycle.steps(RequestCycle.java:1082) at wicket.RequestCycle.request(RequestCycle.java:454) at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:233) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:126) at javax.servlet.http.HttpServlet.service(HttpServlet.java:115) at javax.servlet.http.HttpServlet.service(HttpServlet.java:92) at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:106) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70) at wicket.protocol.http.servlet.WicketSessionFilter.doFilter(WicketSessionFilter.java:197) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70) at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:178) at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:259) at com.caucho.server.port.TcpConnection.run(TcpConnection.java:386) at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:490) at com.caucho.util.ThreadPool.run(ThreadPool.java:423) at java.lang.Thread.run(Thread.java:595) -- Philip A. Chapman Desktop and Web Application Development: Java, .NET, PostgreSQL, MySQL, MSSQL Linux, Windows 2000, Windows XP - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Radiogroup without listview
Hi do i need to always use radiogroup with listview? i used it without listview but my radiogoup model is not updating.. here is code RadioGroup rg = new RadioGroup(group, new Model()); Radio r1 = new Radio(radio1, new Model(no)); Radio r2 = new Radio(radio2, new Model(yes)); rg.add(r1); rg.add(r2); i understand that on form submit the selected radio button model will be attached to group. so public vois onSubmit(){ group.getModelObject(); // here i expect the selected radio button model .. but i get null.. } what is wrong with this code? cheers, marshwicket -- View this message in context: http://www.nabble.com/Radiogroup-without-listview-tf2262520.html#a6277615 Sent from the Wicket - User forum at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Dyanmic component's model
Hi I am trying to create a set of dynamic components that will generate dynamic numbers of input components, but I got stuck in providing a model for it.for e.g. I have TextGroupPanel - which will create a series of TextField RadioGroupPanel - which will generate a Grid type of Radio buttons.. etc ...Generating it is not a problem, I have a problem though with providing the models for each (dynamic numnber) of Text/Radio components I know I'll probably need a hashMap to handle that, but not sure of the best approach so that this component can be reuseable...any suggestion would be most welcomed/** Text Group **/public class TextGroupPanel extends WidgetPanel public TextGroupPanel(String id, final IQuestion question) { super(id, question); add(new Label(questionText, question.getText())); // a list of children question List questions = question.getQuestions(); add(new ListView(questions, questions) {@Overrideprotected void populateItem(ListItem item) { IQuestion question = (IQuestion) item.getModelObject(); item.add(new Label(question, question.getText())); item.add(new TextField(inputText , newModel()));} }); }/** Radio Group as a Grid **/ public class RadioGroupPanel extends WidgetPanel public RadioGroupPanel(String id, IQuestion question) { super(id, question); // add the question (group) add(new Label(questionText, question.getText())); final List choices = question.getChoices(); List questions = question.getQuestions(); // add Choices Text add(new RefreshingView(choiceTexts) {@Overrideprotected Iterator getItemModels(){ return new ModelIteratorAdapter( choices.iterator()) { @Override protected IModel model(Object object) { return new Model((Serializable)object); } }; }@Overrideprotected void populateItem(Item item){ IChoice choice = (IChoice) item.getModelObject(); item.add(new Label(choiceText, choice.getText()));} }); // add rows of Question and Choices add(new ListView(questions, questions) { @Overrideprotected void populateItem(ListItem item){ // question for this row IQuestion aQuestion = (IQuestion)item.getModelObject(); item.add(new Label(question, aQuestion.getText())); // choices for this row RadioGroup radioGroup = new RadioGroup(choicesGroup, newModel()); item.add(radioGroup); // adds radio into radio group radioGroup.add(new RefreshingView(choices) { @Override protected Iterator getItemModels() { return new ModelIteratorAdapter(choices.iterator()) { @Overrideprotected IModel model(Object object){ return new Model((Serializable)object); } }; } @Override protected void populateItem(Item item) { item.add(new Radio(choice, item.getModel())); } });} }); } - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Radiogroup without listview
looks correct, got a quickstart to replicate it?-IgorOn 9/12/06, wicketmarsh [EMAIL PROTECTED] wrote:Hido i need to always use radiogroup with listview?i used it without listview but my radiogoup model is not updating.. here is codeRadioGroup rg = new RadioGroup(group, new Model());Radio r1 = new Radio(radio1, new Model(no));Radio r2 = new Radio(radio2, new Model(yes)); rg.add(r1);rg.add(r2);i understand that on form submit the selected radio button model will beattached to group.sopublic voisonSubmit(){ group.getModelObject(); // here i expect the selected radio button model .. but i get null..}what is wrong with this code?cheers,marshwicket--View this message in context: http://www.nabble.com/Radiogroup-without-listview-tf2262520.html#a6277615Sent from the Wicket - User forum at Nabble.com.- Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Dyanmic component's model
depends on what you want to do with it, if you want the input to go back into the question you can just doitem.add(new TextField(inputText , new PropertyModel(item.getModel(), questionText));-IgorOn 9/12/06, Joshua Lim [EMAIL PROTECTED] wrote:Hi I am trying to create a set of dynamic components that will generate dynamic numbers of input components, but I got stuck in providing a model for it.for e.g. I have TextGroupPanel - which will create a series of TextField RadioGroupPanel - which will generate a Grid type of Radio buttons.. etc ...Generating it is not a problem, I have a problem though with providing the models for each (dynamic numnber) of Text/Radio components I know I'll probably need a hashMap to handle that, but not sure of the best approach so that this component can be reuseable...any suggestion would be most welcomed/** Text Group **/public class TextGroupPanel extends WidgetPanel public TextGroupPanel(String id, final IQuestion question) { super(id, question); add(new Label(questionText, question.getText())); // a list of children question List questions = question.getQuestions(); add(new ListView(questions, questions) {@Overrideprotected void populateItem(ListItem item) { IQuestion question = (IQuestion) item.getModelObject(); item.add(new Label(question, question.getText())); item.add(new TextField(inputText , newModel()));} }); }/** Radio Group as a Grid **/ public class RadioGroupPanel extends WidgetPanel public RadioGroupPanel(String id, IQuestion question) { super(id, question); // add the question (group) add(new Label(questionText, question.getText())); final List choices = question.getChoices(); List questions = question.getQuestions(); // add Choices Text add(new RefreshingView(choiceTexts) {@Overrideprotected Iterator getItemModels(){ return new ModelIteratorAdapter( choices.iterator()) { @Override protected IModel model(Object object) { return new Model((Serializable)object); } }; }@Overrideprotected void populateItem(Item item){ IChoice choice = (IChoice) item.getModelObject(); item.add(new Label(choiceText, choice.getText()));} }); // add rows of Question and Choices add(new ListView(questions, questions) { @Overrideprotected void populateItem(ListItem item){ // question for this row IQuestion aQuestion = (IQuestion)item.getModelObject(); item.add(new Label(question, aQuestion.getText())); // choices for this row RadioGroup radioGroup = new RadioGroup(choicesGroup, newModel()); item.add(radioGroup); // adds radio into radio group radioGroup.add(new RefreshingView(choices) { @Override protected Iterator getItemModels() { return new ModelIteratorAdapter(choices.iterator()) { @Overrideprotected IModel model(Object object){ return new Model((Serializable)object); } }; } @Override protected void populateItem(Item item) { item.add(new Radio(choice, item.getModel())); } });} }); } -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user