Re: [Wicket-user] Compound Property model and Palette
Thanks for the note. I've gone ahead with my own implementation of Palette since my last comment to satisfy my particular needs which were beyond the scope of what Wicket provided. igor.vaynberg wrote: there have been many changes to the palette in the recent past, give it another try. -igor On 10/18/06, samyem [EMAIL PROTECTED] wrote: Hi Igor, No that didn't work. You have just added a new constructor signature, but not fixed the real problem. The problem is that when Palette is constructed, it tries to make a new RecorderComponent which reads the model at construction time. Since I am using the 1.x wicket, Palette does not know its parent container at construction time and hence it cannot find the compound property model set on the palette's container. To fix this, you'll have to make the Palette's components read from the model at render time and remove the logic from the constructors, like the other FormComponents are already doing. Please give it another try and I'll check again once you are done. Thanks, Samyem igor.vaynberg wrote: and its patched, let me know if it works. -Igor On 10/14/06, Igor Vaynberg [EMAIL PROTECTED] wrote: it is a limitation, i will patch it soon. -Igor On 10/14/06, samyem [EMAIL PROTECTED] wrote: Since the Palette does not allow you to implicitly use the container's compound model, there does not appear to be an obvious way for Palette to behave the same way as the other FormComponents. So I was wondering if this is a limitation of Palette or it was done this way by design? samyem wrote: Is it possible for a Palette to take the CompoundPropertyModel set on the form? -- View this message in context: http://www.nabble.com/Compound-Property-model-and-Palette-tf2439928.html#a6812005 Sent from the Wicket - User mailing list archive 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 - 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 -- View this message in context: http://www.nabble.com/Compound-Property-model-and-Palette-tf2439928.html#a6885413 Sent from the Wicket - User mailing list archive 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 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Compound-Property-model-and-Palette-tf2439928.html#a8515854 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net
Re: [Wicket-user] Abort Ajax Operation
Is there any way to timeout if the ajax operation does not respond by a certain time? I've seen in other ajax frameworks where you can submit multiple ajax requests in parallel, but Wicket does not allow me to do such a thing. Matej Knopp wrote: I don't think this is about AJAX. I think the question concerns the session locking. If you make an ajax request and it takes too long, the session is locked and the application seem to be frozen. I don't think there's much I can do about it. -Matej Igor Vaynberg wrote: tbh im not even sure there is a way to abort the request initiated through xmlhttprequest object. matej is better suited to answer this, he has many more js scars then i. -igor On 11/22/06, *Eelco Hillenius* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I don't know if there is anything for that yet. Matej, Igor? If there isn't, you could open a feature request for it. Eelco On 11/21/06, samyem [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: When there is an ajax operation, if the operation takes too long, what would be the best way to abort the operation? The case right now is if there is any long operation as a result of ajax event, the app freezes till the even is over. -- View this message in context: http://www.nabble.com/Abort-Ajax-Operation-tf2681806.html#a7480240 Sent from the Wicket - User mailing list archive at Nabble.com http://Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net 's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Abort-Ajax-Operation-tf2681806.html#a8457424 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Abort Ajax Operation
When there is an ajax operation, if the operation takes too long, what would be the best way to abort the operation? The case right now is if there is any long operation as a result of ajax event, the app freezes till the even is over. -- View this message in context: http://www.nabble.com/Abort-Ajax-Operation-tf2681806.html#a7480240 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Compound Property model and Palette
Hi Igor, No that didn't work. You have just added a new constructor signature, but not fixed the real problem. The problem is that when Palette is constructed, it tries to make a new RecorderComponent which reads the model at construction time. Since I am using the 1.x wicket, Palette does not know its parent container at construction time and hence it cannot find the compound property model set on the palette's container. To fix this, you'll have to make the Palette's components read from the model at render time and remove the logic from the constructors, like the other FormComponents are already doing. Please give it another try and I'll check again once you are done. Thanks, Samyem igor.vaynberg wrote: and its patched, let me know if it works. -Igor On 10/14/06, Igor Vaynberg [EMAIL PROTECTED] wrote: it is a limitation, i will patch it soon. -Igor On 10/14/06, samyem [EMAIL PROTECTED] wrote: Since the Palette does not allow you to implicitly use the container's compound model, there does not appear to be an obvious way for Palette to behave the same way as the other FormComponents. So I was wondering if this is a limitation of Palette or it was done this way by design? samyem wrote: Is it possible for a Palette to take the CompoundPropertyModel set on the form? -- View this message in context: http://www.nabble.com/Compound-Property-model-and-Palette-tf2439928.html#a6812005 Sent from the Wicket - User mailing list archive 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 - 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 -- View this message in context: http://www.nabble.com/Compound-Property-model-and-Palette-tf2439928.html#a6885413 Sent from the Wicket - User mailing list archive 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
Re: [Wicket-user] Compound Property model and Palette
Since the Palette does not allow you to implicitly use the container's compound model, there does not appear to be an obvious way for Palette to behave the same way as the other FormComponents. So I was wondering if this is a limitation of Palette or it was done this way by design? samyem wrote: Is it possible for a Palette to take the CompoundPropertyModel set on the form? -- View this message in context: http://www.nabble.com/Compound-Property-model-and-Palette-tf2439928.html#a6812005 Sent from the Wicket - User mailing list archive 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] Compound Property model and Palette
Is it possible for a Palette to take the CompoundPropertyModel set on the form? -- View this message in context: http://www.nabble.com/Compound-Property-model-and-Palette-tf2439928.html#a6803854 Sent from the Wicket - User mailing list archive 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
Re: [Wicket-user] stop AjaxSelfUpdatingTimerBehavior programmatically ?
Has this been implemented yet? What's the current status? Ingram Chen wrote: Thanks! Igor, I have created a RFE for this item. If you have time to release some code snips, it is great helpful ! On 8/12/06, Igor Vaynberg [EMAIL PROTECTED] wrote: no it is not possible. i actually needed the same functionality recently and so i noticed this shortcoming as well. please file an rfe for 1.3 and i will add it in...right now i cant because it will break the api. in the meantime what i did was write an ajax poller that is similar to the timer behaviors but allows me to stop it, its only a few lines of code...i will check if i can release it monday if you would like. its not exactly what you want but it might be a good starting point. -Igor respond(target) { if (continuepolling()) { target.addjavascript( On 8/11/06, Ingram Chen [EMAIL PROTECTED] wrote: Hi all, Is there any way to stop AjaxSelfUpdatingTimerBehavior programmatically ? I am writting a small chat app and require to stop self updating to reduce server load when user is idle. I check AbstractAjaxTimerBehavior but both updateInterval and response(target) are final... Is it possible to do ? Thanks in advance. -- Ingram Chen Java [EMAIL PROTECTED] Institue of BioMedical Sciences Academia Sinica Taiwan blog: http://www.javaworld.com.tw/roller/page/ingramchen - 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 -- Ingram Chen Java [EMAIL PROTECTED] Institue of BioMedical Sciences Academia Sinica Taiwan blog: http://www.javaworld.com.tw/roller/page/ingramchen - 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 -- View this message in context: http://www.nabble.com/stop-AjaxSelfUpdatingTimerBehavior-programmatically---tf2093952.html#a6650292 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] input tag and src attribute
Any thoughts on this message? samyem wrote: If we have tags with wicket:id, the SRC and HREF attributes does not prepend context path, but it does for simple tags. Is there a reason why it is done this way (in class PrependContextPathHandler)? I am having issues with this in my app. I have a button like input wicket:id=btnAccept type=image src=images/apply.jpg value=Apply/ and the image path does not resolve properly. Meanwhile, simple images are rendered as: img class=buttonImage src=/media/images/cancel.jpg/ Which are resolving good. What might be a good technique to solve it? -- View this message in context: http://www.nabble.com/input-tag-and-src-attribute-tf2348043.html#a6568900 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] ajax refresh on date picker
Same here. I am getting too much recursion in places I didn't have problem earlier as well. Looking at the generated source, it is clear that the java script gets included more than once, not just once in the header. - Samyem Pierre-Yves Saumont wrote: I am afraid there is still a problem. I tested the fix in the quickstart I had made and it worked fine. However, in my application, selecting a date in the datepicker cause a Javascript error. FF reports this error as: Erreur : too much recursion Fichier source : http://localhost:8080/ceagrap/app/resources/wicket.extensions.markup.html.datepicker.DatePicker/calendar.js Ligne : 1796 Date.prototype.__msh_oldSetFullYear = Date.prototype.setFullYear; Date.prototype.setFullYear = function(y) { var d = new Date(this); line 1796 d.__msh_oldSetFullYear(y); if (d.getMonth() != this.getMonth()) this.setDate(28); this.__msh_oldSetFullYear(y); }; In IE6, the error message is not enough stack space. The same line number is reported, but the next line is highlighted: Date.prototype.__msh_oldSetFullYear = Date.prototype.setFullYear; Date.prototype.setFullYear = function(y) { var d = new Date(this); d.__msh_oldSetFullYear(y); line 1796 if (d.getMonth() != this.getMonth()) this.setDate(28); this.__msh_oldSetFullYear(y); }; If I reload the page, the error disapears. Pierre-Yves Matej Knopp a ?crit : Thanks for fixed files, I've already commited those. -Matej Pierre-Yves Saumont wrote: Now it seems to work fine provided the locale switching is made through reloading the page and not through Ajax. (I enclosed the modified french scripts, in utf8 and iso.) If switching is made through Ajax, it works much better than it did before. If the datepicker is visible when switching, switching works fine. If the datepicker is not visible when switching, and then is is loaded through Ajax, it does not always acknowledge the switch. But the worst problem is that reloading the page after a locale switch (which before made the datepicker to swith to the new locale) now cause an exception: Root cause:java.lang.IllegalStateException: Cannot remove [MarkupContainer [Component id = 6, page = No Page, path = 6.Loop$LoopItem]] from null parent! at wicket.Component.remove(Component.java:1475) at wicket.version.undo.Add.undo(Add.java:81) at wicket.version.undo.ChangeList.undo(ChangeList.java:93) at wicket.version.undo.UndoPageVersionManager.undo(UndoPageVersionManager.java:217) at wicket.version.undo.UndoPageVersionManager.getVersion(UndoPageVersionManager.java:167) I also somtime get this exception: java.lang.NullPointerException at wicket.MarkupFragmentFinder.find(MarkupFragmentFinder.java:76) at wicket.Component.renderComponent(Component.java:1599) at wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget.java:474) However, having it working with full page reload is a very good point. I think it will be enough Pierre-Yves Matej Knopp a ?crit : You won't find it there. It's wicket-1.x (and trunk). 1.2.2 is release. Current branch for 1.2 is under 1.x -Matej Pierre-Yves Saumont wrote: I can't find it in releases/wicket-1.2.2, only in trunk, but my app does not work with 2.0 :-( Pierre-Yves Matej Knopp a ?crit : Sorry for ambiguity. The fix should be already in. -Matej Pierre-Yves Saumont wrote: What should already be in? Is it your fix? Or are you talking about the edited file I sent to the list few days ago? This is no complete since at that time I had not noticed the tuesday error! Pierre-Yves Matej Knopp a ?crit : btw. it should be already in. Pierre-Yves Saumont wrote: Hi Matej, Of course I will test it as soon as you commit it. BTW, there are plenty of typos and spelling mistakes in the french script, and even an error in the abreviated day names (it says monday, tuesday, tuesday, thursday and there is no wednesday!). Do you want me to send you an edited file? Pierre-Yves Matej Knopp a ?crit : Hi, I'm working on the date picker encoding problem. What I'll probably do is to convert all non-unicode (latin1, ...) date picker locale strings to utf-8 and add charset=utf-8 to the script element that includes the script. This should sove the problem, as xmlhttprequest (used to load script during ajax header contribution) treats the response as utf-8. And the charset in script that should ensure that during regular header contribution the script will be loaded with the correct locale. I'll be commiting soon, would you mind testing if it works for you? -Matej Pierre-Yves Saumont wrote: Hi Eelco, I did not feel irritated by your answers and I apologize for having let you think I was. I understand perfectly your position and I acknowledge the immense amount of work there is behind Wicket and I want to thank every one working
Re: [Wicket-user] ajax refresh on date picker
I could trace my problem to a recent change in wicket-ajax.js. In the defination of processNext, it used to be that the run was called on a timeout like window.setTimeout(run, 1);. Now this is only called for isKHTML, and there is a direct call to run() otherwise. This for some reason gave the recursion error for me. When I reverted this line and use the timeout version, the recursion error disappeared. I am not sure about the big picture of what's going on, but that gave me a dirty fix for now. - Samyem samyem wrote: Same here. I am getting too much recursion in places I didn't have problem earlier as well. Looking at the generated source, it is clear that the java script gets included more than once, not just once in the header. - Samyem Pierre-Yves Saumont wrote: I am afraid there is still a problem. I tested the fix in the quickstart I had made and it worked fine. However, in my application, selecting a date in the datepicker cause a Javascript error. FF reports this error as: Erreur : too much recursion Fichier source : http://localhost:8080/ceagrap/app/resources/wicket.extensions.markup.html.datepicker.DatePicker/calendar.js Ligne : 1796 Date.prototype.__msh_oldSetFullYear = Date.prototype.setFullYear; Date.prototype.setFullYear = function(y) { var d = new Date(this); line 1796 d.__msh_oldSetFullYear(y); if (d.getMonth() != this.getMonth()) this.setDate(28); this.__msh_oldSetFullYear(y); }; In IE6, the error message is not enough stack space. The same line number is reported, but the next line is highlighted: Date.prototype.__msh_oldSetFullYear = Date.prototype.setFullYear; Date.prototype.setFullYear = function(y) { var d = new Date(this); d.__msh_oldSetFullYear(y); line 1796 if (d.getMonth() != this.getMonth()) this.setDate(28); this.__msh_oldSetFullYear(y); }; If I reload the page, the error disapears. Pierre-Yves Matej Knopp a ?crit : Thanks for fixed files, I've already commited those. -Matej Pierre-Yves Saumont wrote: Now it seems to work fine provided the locale switching is made through reloading the page and not through Ajax. (I enclosed the modified french scripts, in utf8 and iso.) If switching is made through Ajax, it works much better than it did before. If the datepicker is visible when switching, switching works fine. If the datepicker is not visible when switching, and then is is loaded through Ajax, it does not always acknowledge the switch. But the worst problem is that reloading the page after a locale switch (which before made the datepicker to swith to the new locale) now cause an exception: Root cause:java.lang.IllegalStateException: Cannot remove [MarkupContainer [Component id = 6, page = No Page, path = 6.Loop$LoopItem]] from null parent! at wicket.Component.remove(Component.java:1475) at wicket.version.undo.Add.undo(Add.java:81) at wicket.version.undo.ChangeList.undo(ChangeList.java:93) at wicket.version.undo.UndoPageVersionManager.undo(UndoPageVersionManager.java:217) at wicket.version.undo.UndoPageVersionManager.getVersion(UndoPageVersionManager.java:167) I also somtime get this exception: java.lang.NullPointerException at wicket.MarkupFragmentFinder.find(MarkupFragmentFinder.java:76) at wicket.Component.renderComponent(Component.java:1599) at wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget.java:474) However, having it working with full page reload is a very good point. I think it will be enough Pierre-Yves Matej Knopp a ?crit : You won't find it there. It's wicket-1.x (and trunk). 1.2.2 is release. Current branch for 1.2 is under 1.x -Matej Pierre-Yves Saumont wrote: I can't find it in releases/wicket-1.2.2, only in trunk, but my app does not work with 2.0 :-( Pierre-Yves Matej Knopp a ?crit : Sorry for ambiguity. The fix should be already in. -Matej Pierre-Yves Saumont wrote: What should already be in? Is it your fix? Or are you talking about the edited file I sent to the list few days ago? This is no complete since at that time I had not noticed the tuesday error! Pierre-Yves Matej Knopp a ?crit : btw. it should be already in. Pierre-Yves Saumont wrote: Hi Matej, Of course I will test it as soon as you commit it. BTW, there are plenty of typos and spelling mistakes in the french script, and even an error in the abreviated day names (it says monday, tuesday, tuesday, thursday and there is no wednesday!). Do you want me to send you an edited file? Pierre-Yves Matej Knopp a ?crit : Hi, I'm working on the date picker encoding problem. What I'll probably do is to convert all non-unicode (latin1, ...) date picker locale strings to utf-8 and add charset=utf-8 to the script element that includes the script. This should sove the problem, as xmlhttprequest (used to load script during ajax header
[Wicket-user] input tag and src attribute
If we have tags with wicket:id, the SRC and HREF attributes does not prepend context path, but it does for simple tags. Is there a reason why it is done this way (in class PrependContextPathHandler)? I am having issues with this in my app. I have a button like input wicket:id=btnAccept type=image src=images/apply.jpg value=Apply/ and the image path does not resolve properly. Meanwhile, simple images are rendered as: /media/images/cancel.jpg Which are resolving good. What might be a good technique to solve it? -- View this message in context: http://www.nabble.com/input-tag-and-src-attribute-tf2348043.html#a6537885 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] ajax refresh on date picker
So far so good. Now if only the z-index issue can be cleanly fixed. I still have other issues that I'll post in other threads. - Samyem Matej Knopp wrote: The problem was that AjaxRequestTarget called component.renderHead(), without calling rendered() on component behaviors after that (co the thread local has not been cleaned). The fix is in SVN. Can you please test if it works for you? It works with the quick start you've provided, so I'd say it should also work with your application. Thanks a lot for helping to nail down this nasty bug. -Matej samyem wrote: Okay I have got something that'll make you happy: wicket quickstart! Pick it up at http://www.yomari.net/~samyem/problem-wicket-quickstart.zip It has two pages. The first page is okay. Click on the link to go to the second one. And click on the Click here to add one link. Nothing will happen. Refresh the page (F5 will do). Now click on the same link again, and everything works. I've identified the problem to be the way the ajax behaviour clears the ThreadLocal variable, as I've explained in the other email. But I am not too sure what is a proper fix for this problem. This quick start has the essentials of the way I am using wicket. I cannot do it anyother way due to the application's requirements. I've got it working in my case for now by moving the ThreadLocal variable one step up in AbstractBehavior and making the cleanup method in AbstractBehavior set the ThreadLocal to null. That fixed this problem apparently, but I'll let you have the final say on this. - Samyem Matej Knopp wrote: No matter what I do I just can't reproduce this. Can you please double check that you're using branch wicket-1.x or trunk, and a clean build? If the problem persists, can you please either check if it happens with wicket-examples too or try to isolate the problem and provide a quickstart example? I'll be more than happy to look at it. Thanks, -Matej samyem wrote: Upon further investigations, what is clear is that when the page first loads, it loads up all the java scripts in the header. When I do a page refresh by pressing F5, the ensuing page does not render the javascript references at all. Looks like there is some logic which prevents javascripts from rendering after the initial page display. Here is what I am seeing in my HEAD tag : Initial page load: ? head meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1title?/title script type=text/javascript src=/mm/app/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax.js/script script type=text/javascript id=wicket-ajax-debug-enable!--/*--![CDATA[/*!--*/ wicketAjaxDebugEnable=true; /*--]]*//script script type=text/javascript src=/mm/app/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug-drag.js/script script type=text/javascript src=/mm/app/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js/script script type=text/javascript src=/mm/app/resources/wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.js/script link rel=stylesheet type=text/css href=/mm/app/resources/wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.css link rel=stylesheet type=text/css href=/mm/app/resources/com.wsi.mm.ui.commons.modaldialog.WsiModalWindow/modal.css script type=text/javascript!--/*--![CDATA[/*!--*/ if (window.name=='') { window.location=/mm/app?wicket:bookmarkablePage=wicket-0:com.wsi.mm.ui.media.MediaPage; } /*--]]*//script /head Subsequent refreshes: head meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1title?/title script type=text/javascript!--/*--![CDATA[/*!--*/ if (window.name=='') { window.location=/mm/app?wicket:bookmarkablePage=wicket-1:com.wsi.mm.ui.media.MediaPage; } /*--]]*//script /head Now I think we should be able to pinpoint the problem at the moment. samyem wrote: I am also getting this new error after the update: Error: wicketAjaxGet is not defined Source File: http://localhost:8081/mm/app?wicket:interface=:11:1: Line: 1 samyem wrote: I updated wicket and wicket-extension and now my modal window is not even showing and the date picker does not show up in non modal window pages as well. I can only see the error through the ajax debugger as: ... NFO: Response parsed. Now invoking steps... INFO: INFO: Initiating Ajax GET request on /mm/calendar.js INFO: Invoking pre-call handler(s)... ERROR: Received Ajax response with code: 404 INFO: Invoking post-call handler(s)... INFO: Invoking failure handler(s)... ... After this, further clicks gives this error: INFO: Chanel busy - postponing... On non-modal pages, I get things like: Error: Calendar is not defined Source File: http://localhost:8081/mm/app?wicket:interface=:13:: Line: 214 And even my auto-complete text box is broken now with the latest code. I get things like: Error: Wicket.Ajax
[Wicket-user] AjaxSubmitButton does not disable
When I do setEnabled(false) on AjaxSubmitButton component, it does not disable the button. However, it seems to work for other components like textbox and checkboxes. Looks like a wicket problem? For now, I have had to override onComponentTag and manually set the disabled attribute on the tag. Is this by design or a real bug? -- View this message in context: http://www.nabble.com/AjaxSubmitButton-does-not-disable-tf2339847.html#a6511834 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] ajax refresh on date picker
I updated wicket and wicket-extension and now my modal window is not even showing and the date picker does not show up in non modal window pages as well. I can only see the error through the ajax debugger as: ... NFO: Response parsed. Now invoking steps... INFO: INFO: Initiating Ajax GET request on /mm/calendar.js INFO: Invoking pre-call handler(s)... ERROR: Received Ajax response with code: 404 INFO: Invoking post-call handler(s)... INFO: Invoking failure handler(s)... ... After this, further clicks gives this error: INFO: Chanel busy - postponing... On non-modal pages, I get things like: Error: Calendar is not defined Source File: http://localhost:8081/mm/app?wicket:interface=:13:: Line: 214 And even my auto-complete text box is broken now with the latest code. I get things like: Error: Wicket.Ajax has no properties Source File: http://localhost:8081/mm/javascript/wicket-autocomplete.js Line: 7 And the auto-complete fails to work. Nontheless, other ajax behaviour like ajax links and so forth are still working. When I revert the wicket library to the release version, it does not break like this. Before this fix, the only thing not working was the date picker not working on ajax refresh. Looks like the fix actually broke far more things than fixing the original problem. If you cannot identify the problem, I could prepare a quickstart to demonstrate these issues. - Samyem Matej Knopp wrote: The fix is in svn. (both 1.x and 2.0) DatePicker in modal window panel now works, although the issue with z-index still remains. As a side effect this also fixes the component use check for components that render into head, so calling getDebugSettings().setComponentUseCheck(false) in application#init is no longer necessary. I'd appreciate if everyone who has issues with header contribution test it with current svn. The more bugs we nail down the better! :) -Matej Matej Knopp wrote: Hi, It indeed is problem with modal window. Or, better said, with AjaxRequestTarget. I've tried to put date picker to modal window, and it didn't work. The reason is that component is not attached when rendering it's header contribution from AjaxRequestTarget. I've tried to refactor AjaxRequestTarget a bit to call responseComponent first, and that way it worked (of course the problem with date picker having lower z order than modal window is still there). Anyway, to fix this, we have to refactor AjaxRequestTarget to render component prior rendering the header contribution (although in response these should be reversed, e.g. header contribution before component body). And the header contribution should be rendered between page.startComponentRender(component) and page.endComponentRender(component); -Matej samyem wrote: Well it might actually be just a problem with this component. In my case, all I have is a date picker in a modal window which is shown as a result of clicking on a link. This produced the shown error and the modal window fail to display. I am sure you can replicate this condition with the current SVN source with this much info. - Samyem Matej Knopp wrote: I don'y really understand why. I was able to reproduce the problem with the files attached to bug report. And after I fixed the debug console, the problems were no longer there (though there was other problem - component not rendered except - for which it is necessary to disable component render check, at least for now). Are you sure you have cleared the browser cache? So far I had no problems with ajax header contribution apart from this one. But that doesn't mean there are none. Can you please provide a testcase/quick start for the problems you are encountering now? Thanks, -Matej samyem wrote: The header contribution logic seems to be still flawed. The javascript references were not added to the HTML's HEAD at all when the component is added by ajax. I guess this is a larger problem than the date picker. The same problem would occur everytime the javascript/stylesheet are added dynamically. Matej Knopp wrote: Well, I was working on it. But only to the degree that I disabled the disabling of check during ajax request, because it was no longer necessary. Unfortunately head contribution is something else, I'm not sure how to do it the best way, again, it's not my domain. I think that I've posted mail about it to the list, I'm not sure what the outcome was. -Matej Igor Vaynberg wrote: i thought you _were_ working on the component use check and ajax target stuff? -Igor On 9/22/06, *Matej Knopp* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I don't think so. I was working on header contribution and problem with debug console calling document.write() (thus removing all head elements from DOM). This is something completely different, it's related to the component rendered check. That's not my domain. I
Re: [Wicket-user] ajax refresh on date picker
Just to add emphasis, here the problem is that wicket made a request for the resource at /mm/calendar.js, which is not a valid path. It should have been /mm/app/resources/wicket.extensions.markup.html.datepicker.DatePicker/calendar.js - Samyem samyem wrote: I updated wicket and wicket-extension and now my modal window is not even showing and the date picker does not show up in non modal window pages as well. I can only see the error through the ajax debugger as: ... NFO: Response parsed. Now invoking steps... INFO: INFO: Initiating Ajax GET request on /mm/calendar.js INFO: Invoking pre-call handler(s)... ERROR: Received Ajax response with code: 404 INFO: Invoking post-call handler(s)... INFO: Invoking failure handler(s)... ... After this, further clicks gives this error: INFO: Chanel busy - postponing... On non-modal pages, I get things like: Error: Calendar is not defined Source File: http://localhost:8081/mm/app?wicket:interface=:13:: Line: 214 And even my auto-complete text box is broken now with the latest code. I get things like: Error: Wicket.Ajax has no properties Source File: http://localhost:8081/mm/javascript/wicket-autocomplete.js Line: 7 And the auto-complete fails to work. Nontheless, other ajax behaviour like ajax links and so forth are still working. When I revert the wicket library to the release version, it does not break like this. Before this fix, the only thing not working was the date picker not working on ajax refresh. Looks like the fix actually broke far more things than fixing the original problem. If you cannot identify the problem, I could prepare a quickstart to demonstrate these issues. - Samyem Matej Knopp wrote: The fix is in svn. (both 1.x and 2.0) DatePicker in modal window panel now works, although the issue with z-index still remains. As a side effect this also fixes the component use check for components that render into head, so calling getDebugSettings().setComponentUseCheck(false) in application#init is no longer necessary. I'd appreciate if everyone who has issues with header contribution test it with current svn. The more bugs we nail down the better! :) -Matej Matej Knopp wrote: Hi, It indeed is problem with modal window. Or, better said, with AjaxRequestTarget. I've tried to put date picker to modal window, and it didn't work. The reason is that component is not attached when rendering it's header contribution from AjaxRequestTarget. I've tried to refactor AjaxRequestTarget a bit to call responseComponent first, and that way it worked (of course the problem with date picker having lower z order than modal window is still there). Anyway, to fix this, we have to refactor AjaxRequestTarget to render component prior rendering the header contribution (although in response these should be reversed, e.g. header contribution before component body). And the header contribution should be rendered between page.startComponentRender(component) and page.endComponentRender(component); -Matej samyem wrote: Well it might actually be just a problem with this component. In my case, all I have is a date picker in a modal window which is shown as a result of clicking on a link. This produced the shown error and the modal window fail to display. I am sure you can replicate this condition with the current SVN source with this much info. - Samyem Matej Knopp wrote: I don'y really understand why. I was able to reproduce the problem with the files attached to bug report. And after I fixed the debug console, the problems were no longer there (though there was other problem - component not rendered except - for which it is necessary to disable component render check, at least for now). Are you sure you have cleared the browser cache? So far I had no problems with ajax header contribution apart from this one. But that doesn't mean there are none. Can you please provide a testcase/quick start for the problems you are encountering now? Thanks, -Matej samyem wrote: The header contribution logic seems to be still flawed. The javascript references were not added to the HTML's HEAD at all when the component is added by ajax. I guess this is a larger problem than the date picker. The same problem would occur everytime the javascript/stylesheet are added dynamically. Matej Knopp wrote: Well, I was working on it. But only to the degree that I disabled the disabling of check during ajax request, because it was no longer necessary. Unfortunately head contribution is something else, I'm not sure how to do it the best way, again, it's not my domain. I think that I've posted mail about it to the list, I'm not sure what the outcome was. -Matej Igor Vaynberg wrote: i thought you _were_ working on the component use check and ajax target stuff? -Igor On 9/22/06, *Matej Knopp* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED
Re: [Wicket-user] ajax refresh on date picker
I am also getting this new error after the update: Error: wicketAjaxGet is not defined Source File: http://localhost:8081/mm/app?wicket:interface=:11:1: Line: 1 samyem wrote: I updated wicket and wicket-extension and now my modal window is not even showing and the date picker does not show up in non modal window pages as well. I can only see the error through the ajax debugger as: ... NFO: Response parsed. Now invoking steps... INFO: INFO: Initiating Ajax GET request on /mm/calendar.js INFO: Invoking pre-call handler(s)... ERROR: Received Ajax response with code: 404 INFO: Invoking post-call handler(s)... INFO: Invoking failure handler(s)... ... After this, further clicks gives this error: INFO: Chanel busy - postponing... On non-modal pages, I get things like: Error: Calendar is not defined Source File: http://localhost:8081/mm/app?wicket:interface=:13:: Line: 214 And even my auto-complete text box is broken now with the latest code. I get things like: Error: Wicket.Ajax has no properties Source File: http://localhost:8081/mm/javascript/wicket-autocomplete.js Line: 7 And the auto-complete fails to work. Nontheless, other ajax behaviour like ajax links and so forth are still working. When I revert the wicket library to the release version, it does not break like this. Before this fix, the only thing not working was the date picker not working on ajax refresh. Looks like the fix actually broke far more things than fixing the original problem. If you cannot identify the problem, I could prepare a quickstart to demonstrate these issues. - Samyem Matej Knopp wrote: The fix is in svn. (both 1.x and 2.0) DatePicker in modal window panel now works, although the issue with z-index still remains. As a side effect this also fixes the component use check for components that render into head, so calling getDebugSettings().setComponentUseCheck(false) in application#init is no longer necessary. I'd appreciate if everyone who has issues with header contribution test it with current svn. The more bugs we nail down the better! :) -Matej Matej Knopp wrote: Hi, It indeed is problem with modal window. Or, better said, with AjaxRequestTarget. I've tried to put date picker to modal window, and it didn't work. The reason is that component is not attached when rendering it's header contribution from AjaxRequestTarget. I've tried to refactor AjaxRequestTarget a bit to call responseComponent first, and that way it worked (of course the problem with date picker having lower z order than modal window is still there). Anyway, to fix this, we have to refactor AjaxRequestTarget to render component prior rendering the header contribution (although in response these should be reversed, e.g. header contribution before component body). And the header contribution should be rendered between page.startComponentRender(component) and page.endComponentRender(component); -Matej samyem wrote: Well it might actually be just a problem with this component. In my case, all I have is a date picker in a modal window which is shown as a result of clicking on a link. This produced the shown error and the modal window fail to display. I am sure you can replicate this condition with the current SVN source with this much info. - Samyem Matej Knopp wrote: I don'y really understand why. I was able to reproduce the problem with the files attached to bug report. And after I fixed the debug console, the problems were no longer there (though there was other problem - component not rendered except - for which it is necessary to disable component render check, at least for now). Are you sure you have cleared the browser cache? So far I had no problems with ajax header contribution apart from this one. But that doesn't mean there are none. Can you please provide a testcase/quick start for the problems you are encountering now? Thanks, -Matej samyem wrote: The header contribution logic seems to be still flawed. The javascript references were not added to the HTML's HEAD at all when the component is added by ajax. I guess this is a larger problem than the date picker. The same problem would occur everytime the javascript/stylesheet are added dynamically. Matej Knopp wrote: Well, I was working on it. But only to the degree that I disabled the disabling of check during ajax request, because it was no longer necessary. Unfortunately head contribution is something else, I'm not sure how to do it the best way, again, it's not my domain. I think that I've posted mail about it to the list, I'm not sure what the outcome was. -Matej Igor Vaynberg wrote: i thought you _were_ working on the component use check and ajax target stuff? -Igor On 9/22/06, *Matej Knopp* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I don't think so. I was working on header contribution and problem
Re: [Wicket-user] ajax refresh on date picker
Upon further investigations, what is clear is that when the page first loads, it loads up all the java scripts in the header. When I do a page refresh by pressing F5, the ensuing page does not render the javascript references at all. Looks like there is some logic which prevents javascripts from rendering after the initial page display. Here is what I am seeing in my HEAD tag : Initial page load: ? head meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1title?/title script type=text/javascript src=/mm/app/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax.js/script script type=text/javascript id=wicket-ajax-debug-enable!--/*--![CDATA[/*!--*/ wicketAjaxDebugEnable=true; /*--]]*//script script type=text/javascript src=/mm/app/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug-drag.js/script script type=text/javascript src=/mm/app/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js/script script type=text/javascript src=/mm/app/resources/wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.js/script link rel=stylesheet type=text/css href=/mm/app/resources/wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.css link rel=stylesheet type=text/css href=/mm/app/resources/com.wsi.mm.ui.commons.modaldialog.WsiModalWindow/modal.css script type=text/javascript!--/*--![CDATA[/*!--*/ if (window.name=='') { window.location=/mm/app?wicket:bookmarkablePage=wicket-0:com.wsi.mm.ui.media.MediaPage; } /*--]]*//script /head Subsequent refreshes: head meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1title?/title script type=text/javascript!--/*--![CDATA[/*!--*/ if (window.name=='') { window.location=/mm/app?wicket:bookmarkablePage=wicket-1:com.wsi.mm.ui.media.MediaPage; } /*--]]*//script /head Now I think we should be able to pinpoint the problem at the moment. samyem wrote: I am also getting this new error after the update: Error: wicketAjaxGet is not defined Source File: http://localhost:8081/mm/app?wicket:interface=:11:1: Line: 1 samyem wrote: I updated wicket and wicket-extension and now my modal window is not even showing and the date picker does not show up in non modal window pages as well. I can only see the error through the ajax debugger as: ... NFO: Response parsed. Now invoking steps... INFO: INFO: Initiating Ajax GET request on /mm/calendar.js INFO: Invoking pre-call handler(s)... ERROR: Received Ajax response with code: 404 INFO: Invoking post-call handler(s)... INFO: Invoking failure handler(s)... ... After this, further clicks gives this error: INFO: Chanel busy - postponing... On non-modal pages, I get things like: Error: Calendar is not defined Source File: http://localhost:8081/mm/app?wicket:interface=:13:: Line: 214 And even my auto-complete text box is broken now with the latest code. I get things like: Error: Wicket.Ajax has no properties Source File: http://localhost:8081/mm/javascript/wicket-autocomplete.js Line: 7 And the auto-complete fails to work. Nontheless, other ajax behaviour like ajax links and so forth are still working. When I revert the wicket library to the release version, it does not break like this. Before this fix, the only thing not working was the date picker not working on ajax refresh. Looks like the fix actually broke far more things than fixing the original problem. If you cannot identify the problem, I could prepare a quickstart to demonstrate these issues. - Samyem Matej Knopp wrote: The fix is in svn. (both 1.x and 2.0) DatePicker in modal window panel now works, although the issue with z-index still remains. As a side effect this also fixes the component use check for components that render into head, so calling getDebugSettings().setComponentUseCheck(false) in application#init is no longer necessary. I'd appreciate if everyone who has issues with header contribution test it with current svn. The more bugs we nail down the better! :) -Matej Matej Knopp wrote: Hi, It indeed is problem with modal window. Or, better said, with AjaxRequestTarget. I've tried to put date picker to modal window, and it didn't work. The reason is that component is not attached when rendering it's header contribution from AjaxRequestTarget. I've tried to refactor AjaxRequestTarget a bit to call responseComponent first, and that way it worked (of course the problem with date picker having lower z order than modal window is still there). Anyway, to fix this, we have to refactor AjaxRequestTarget to render component prior rendering the header contribution (although in response these should be reversed, e.g. header contribution before component body). And the header contribution should be rendered between page.startComponentRender(component) and page.endComponentRender(component); -Matej samyem wrote: Well it might actually be just a problem
Re: [Wicket-user] ajax refresh on date picker
This problem is a bit difficult to reproduce. Anyway, I am trying to isolate this into a quick start. So far, this is what I observed: AbstractAjaxBehavior has a ThreadLocal variable called headContribHolder. It is set to null by a call to cleanup() method, which is ment to be called from AbstractBehavior.rendered(). However, the cleanup() implementation of AbstractBehavior does not do anything. So the effect of this is that when AbstractAjaxBehavior.renderHead() is eventually called in an ajax page after going through a page that does not have ajax, the headContribHolder is not reset and still assumes the value of a previous visit to another ajax page. Since there is a check to see if the header has already been rendered, it thinks the header has been rendered in the following code: if (!contributors.contains(implementationId)) { onRenderHeadInitContribution(response); contributors.add(implementationId); } and thus you arrive at the problem I saw. I managed to get a quick fix by making the AbstractBehavior reset the ThreadLocal variable, but there is still a problem with the sequence flow that I'll let you fix. - Samyem Matej Knopp wrote: No matter what I do I just can't reproduce this. Can you please double check that you're using branch wicket-1.x or trunk, and a clean build? If the problem persists, can you please either check if it happens with wicket-examples too or try to isolate the problem and provide a quickstart example? I'll be more than happy to look at it. Thanks, -Matej samyem wrote: Upon further investigations, what is clear is that when the page first loads, it loads up all the java scripts in the header. When I do a page refresh by pressing F5, the ensuing page does not render the javascript references at all. Looks like there is some logic which prevents javascripts from rendering after the initial page display. Here is what I am seeing in my HEAD tag : Initial page load: ? head meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1title?/title script type=text/javascript src=/mm/app/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax.js/script script type=text/javascript id=wicket-ajax-debug-enable!--/*--![CDATA[/*!--*/ wicketAjaxDebugEnable=true; /*--]]*//script script type=text/javascript src=/mm/app/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug-drag.js/script script type=text/javascript src=/mm/app/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js/script script type=text/javascript src=/mm/app/resources/wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.js/script link rel=stylesheet type=text/css href=/mm/app/resources/wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.css link rel=stylesheet type=text/css href=/mm/app/resources/com.wsi.mm.ui.commons.modaldialog.WsiModalWindow/modal.css script type=text/javascript!--/*--![CDATA[/*!--*/ if (window.name=='') { window.location=/mm/app?wicket:bookmarkablePage=wicket-0:com.wsi.mm.ui.media.MediaPage; } /*--]]*//script /head Subsequent refreshes: head meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1title?/title script type=text/javascript!--/*--![CDATA[/*!--*/ if (window.name=='') { window.location=/mm/app?wicket:bookmarkablePage=wicket-1:com.wsi.mm.ui.media.MediaPage; } /*--]]*//script /head Now I think we should be able to pinpoint the problem at the moment. samyem wrote: I am also getting this new error after the update: Error: wicketAjaxGet is not defined Source File: http://localhost:8081/mm/app?wicket:interface=:11:1: Line: 1 samyem wrote: I updated wicket and wicket-extension and now my modal window is not even showing and the date picker does not show up in non modal window pages as well. I can only see the error through the ajax debugger as: ... NFO: Response parsed. Now invoking steps... INFO: INFO: Initiating Ajax GET request on /mm/calendar.js INFO: Invoking pre-call handler(s)... ERROR: Received Ajax response with code: 404 INFO: Invoking post-call handler(s)... INFO: Invoking failure handler(s)... ... After this, further clicks gives this error: INFO: Chanel busy - postponing... On non-modal pages, I get things like: Error: Calendar is not defined Source File: http://localhost:8081/mm/app?wicket:interface=:13:: Line: 214 And even my auto-complete text box is broken now with the latest code. I get things like: Error: Wicket.Ajax has no properties Source File: http://localhost:8081/mm/javascript/wicket-autocomplete.js Line: 7 And the auto-complete fails to work. Nontheless, other ajax behaviour like ajax links and so forth are still working. When I revert the wicket library to the release version, it does not break like this. Before this fix, the only thing not working
Re: [Wicket-user] ajax refresh on date picker
Okay I have got something that'll make you happy: wicket quickstart! Pick it up at http://www.yomari.net/~samyem/problem-wicket-quickstart.zip It has two pages. The first page is okay. Click on the link to go to the second one. And click on the Click here to add one link. Nothing will happen. Refresh the page (F5 will do). Now click on the same link again, and everything works. I've identified the problem to be the way the ajax behaviour clears the ThreadLocal variable, as I've explained in the other email. But I am not too sure what is a proper fix for this problem. This quick start has the essentials of the way I am using wicket. I cannot do it anyother way due to the application's requirements. I've got it working in my case for now by moving the ThreadLocal variable one step up in AbstractBehavior and making the cleanup method in AbstractBehavior set the ThreadLocal to null. That fixed this problem apparently, but I'll let you have the final say on this. - Samyem Matej Knopp wrote: No matter what I do I just can't reproduce this. Can you please double check that you're using branch wicket-1.x or trunk, and a clean build? If the problem persists, can you please either check if it happens with wicket-examples too or try to isolate the problem and provide a quickstart example? I'll be more than happy to look at it. Thanks, -Matej samyem wrote: Upon further investigations, what is clear is that when the page first loads, it loads up all the java scripts in the header. When I do a page refresh by pressing F5, the ensuing page does not render the javascript references at all. Looks like there is some logic which prevents javascripts from rendering after the initial page display. Here is what I am seeing in my HEAD tag : Initial page load: ? head meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1title?/title script type=text/javascript src=/mm/app/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax.js/script script type=text/javascript id=wicket-ajax-debug-enable!--/*--![CDATA[/*!--*/ wicketAjaxDebugEnable=true; /*--]]*//script script type=text/javascript src=/mm/app/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug-drag.js/script script type=text/javascript src=/mm/app/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js/script script type=text/javascript src=/mm/app/resources/wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.js/script link rel=stylesheet type=text/css href=/mm/app/resources/wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.css link rel=stylesheet type=text/css href=/mm/app/resources/com.wsi.mm.ui.commons.modaldialog.WsiModalWindow/modal.css script type=text/javascript!--/*--![CDATA[/*!--*/ if (window.name=='') { window.location=/mm/app?wicket:bookmarkablePage=wicket-0:com.wsi.mm.ui.media.MediaPage; } /*--]]*//script /head Subsequent refreshes: head meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1title?/title script type=text/javascript!--/*--![CDATA[/*!--*/ if (window.name=='') { window.location=/mm/app?wicket:bookmarkablePage=wicket-1:com.wsi.mm.ui.media.MediaPage; } /*--]]*//script /head Now I think we should be able to pinpoint the problem at the moment. samyem wrote: I am also getting this new error after the update: Error: wicketAjaxGet is not defined Source File: http://localhost:8081/mm/app?wicket:interface=:11:1: Line: 1 samyem wrote: I updated wicket and wicket-extension and now my modal window is not even showing and the date picker does not show up in non modal window pages as well. I can only see the error through the ajax debugger as: ... NFO: Response parsed. Now invoking steps... INFO: INFO: Initiating Ajax GET request on /mm/calendar.js INFO: Invoking pre-call handler(s)... ERROR: Received Ajax response with code: 404 INFO: Invoking post-call handler(s)... INFO: Invoking failure handler(s)... ... After this, further clicks gives this error: INFO: Chanel busy - postponing... On non-modal pages, I get things like: Error: Calendar is not defined Source File: http://localhost:8081/mm/app?wicket:interface=:13:: Line: 214 And even my auto-complete text box is broken now with the latest code. I get things like: Error: Wicket.Ajax has no properties Source File: http://localhost:8081/mm/javascript/wicket-autocomplete.js Line: 7 And the auto-complete fails to work. Nontheless, other ajax behaviour like ajax links and so forth are still working. When I revert the wicket library to the release version, it does not break like this. Before this fix, the only thing not working was the date picker not working on ajax refresh. Looks like the fix actually broke far more things than fixing the original problem. If you cannot identify the problem, I could prepare a quickstart to demonstrate these issues. - Samyem
Re: [Wicket-user] ajax refresh on date picker
Thanks. I've fixed the z-index problem in my app by manually resetting the z-index in my HTML, thus overriding the default values set by the components. So hopefully now everything will run smoothly. Thanks for the fix again, Samyem Matej Knopp wrote: The fix is in svn. (both 1.x and 2.0) DatePicker in modal window panel now works, although the issue with z-index still remains. As a side effect this also fixes the component use check for components that render into head, so calling getDebugSettings().setComponentUseCheck(false) in application#init is no longer necessary. I'd appreciate if everyone who has issues with header contribution test it with current svn. The more bugs we nail down the better! :) -Matej Matej Knopp wrote: Hi, It indeed is problem with modal window. Or, better said, with AjaxRequestTarget. I've tried to put date picker to modal window, and it didn't work. The reason is that component is not attached when rendering it's header contribution from AjaxRequestTarget. I've tried to refactor AjaxRequestTarget a bit to call responseComponent first, and that way it worked (of course the problem with date picker having lower z order than modal window is still there). Anyway, to fix this, we have to refactor AjaxRequestTarget to render component prior rendering the header contribution (although in response these should be reversed, e.g. header contribution before component body). And the header contribution should be rendered between page.startComponentRender(component) and page.endComponentRender(component); -Matej samyem wrote: Well it might actually be just a problem with this component. In my case, all I have is a date picker in a modal window which is shown as a result of clicking on a link. This produced the shown error and the modal window fail to display. I am sure you can replicate this condition with the current SVN source with this much info. - Samyem Matej Knopp wrote: I don'y really understand why. I was able to reproduce the problem with the files attached to bug report. And after I fixed the debug console, the problems were no longer there (though there was other problem - component not rendered except - for which it is necessary to disable component render check, at least for now). Are you sure you have cleared the browser cache? So far I had no problems with ajax header contribution apart from this one. But that doesn't mean there are none. Can you please provide a testcase/quick start for the problems you are encountering now? Thanks, -Matej samyem wrote: The header contribution logic seems to be still flawed. The javascript references were not added to the HTML's HEAD at all when the component is added by ajax. I guess this is a larger problem than the date picker. The same problem would occur everytime the javascript/stylesheet are added dynamically. Matej Knopp wrote: Well, I was working on it. But only to the degree that I disabled the disabling of check during ajax request, because it was no longer necessary. Unfortunately head contribution is something else, I'm not sure how to do it the best way, again, it's not my domain. I think that I've posted mail about it to the list, I'm not sure what the outcome was. -Matej Igor Vaynberg wrote: i thought you _were_ working on the component use check and ajax target stuff? -Igor On 9/22/06, *Matej Knopp* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I don't think so. I was working on header contribution and problem with debug console calling document.write() (thus removing all head elements from DOM). This is something completely different, it's related to the component rendered check. That's not my domain. I believe the problem are components in wicket:head section of DataPicker. Anyway, what can temporary help is to disable component render check in appication settings. Juergen? -Matej Igor Vaynberg wrote: matej was working to fix this, i thought he did matej? -Igor On 9/21/06, *samyem* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I took the latest SVN code today and suddenly, I am getting the following error everytime there is an ajax refresh on panels with date pickers: 2006-09-21 14:16:07,728 ERROR wicket.ajax.AjaxRequestTarget - Error while responding to an AJAX request: [EMAIL PROTECTED] markupIdToComponent [{pageBody_sidePanel=[MarkupContainer [Component id = sidePanel, page = com.wsi.mm.ui.directship.item.ItemDirectShipPage, path = 4:pageBody:sidePanel.DirectShipSideBarPanel, isVisible = true, isVersioned = false
Re: [Wicket-user] ajax refresh on date picker
The header contribution logic seems to be still flawed. The javascript references were not added to the HTML's HEAD at all when the component is added by ajax. I guess this is a larger problem than the date picker. The same problem would occur everytime the javascript/stylesheet are added dynamically. Matej Knopp wrote: Well, I was working on it. But only to the degree that I disabled the disabling of check during ajax request, because it was no longer necessary. Unfortunately head contribution is something else, I'm not sure how to do it the best way, again, it's not my domain. I think that I've posted mail about it to the list, I'm not sure what the outcome was. -Matej Igor Vaynberg wrote: i thought you _were_ working on the component use check and ajax target stuff? -Igor On 9/22/06, *Matej Knopp* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I don't think so. I was working on header contribution and problem with debug console calling document.write() (thus removing all head elements from DOM). This is something completely different, it's related to the component rendered check. That's not my domain. I believe the problem are components in wicket:head section of DataPicker. Anyway, what can temporary help is to disable component render check in appication settings. Juergen? -Matej Igor Vaynberg wrote: matej was working to fix this, i thought he did matej? -Igor On 9/21/06, *samyem* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I took the latest SVN code today and suddenly, I am getting the following error everytime there is an ajax refresh on panels with date pickers: 2006-09-21 14:16:07,728 ERROR wicket.ajax.AjaxRequestTarget - Error while responding to an AJAX request: [EMAIL PROTECTED] markupIdToComponent [{pageBody_sidePanel=[MarkupContainer [Component id = sidePanel, page = com.wsi.mm.ui.directship.item.ItemDirectShipPage, path = 4:pageBody:sidePanel.DirectShipSideBarPanel, isVisible = true, isVersioned = false]]}], prependJavascript [[]], appendJavascript [[var win; try { win = window.parent.Wicket.Window; } catch (ignore) { } if (typeof(win) != undefined typeof(win.current ) != undefined) { window.parent.setTimeout(function() { win.current.close(); }, 0); }]] wicket.WicketRuntimeException: The component(s) below failed to render. A common problem is that you have added a component in code but forgot to reference it in the markup (thus the component will never be rendered). 1. [MarkupContainer [Component id = calendarMain, page = com.wsi.mm.ui.directship.item.ItemDirectShipPage , path = 4:pageBody:sidePanel:massUpdate:massUpdateForm:releaseDate:picker:calendarMain.JavaScriptReference, isVisible = true, isVersioned = false]] 2. [MarkupContainer [Component id = calendarSetup, page = com.wsi.mm.ui.directship.item.ItemDirectShipPage , path = 4:pageBody:sidePanel:massUpdate:massUpdateForm:releaseDate:picker:calendarSetup.JavaScriptReference , isVisible = true, isVersioned = false]] 3. [MarkupContainer [Component id = calendarLanguage, page = com.wsi.mm.ui.directship.item.ItemDirectShipPage, path = 4:pageBody:sidePanel:massUpdate:massUpdateForm:releaseDate:picker: calendarLanguage.JavaScriptReference, isVisible = true, isVersioned = false]] 4. [MarkupContainer [Component id = calendarStyle, page = com.wsi.mm.ui.directship.item.ItemDirectShipPage, path = 4:pageBody:sidePanel:massUpdate:massUpdateForm:releaseDate:picker:calendarStyle.StyleSheetReference, isVisible = true, isVersioned = false]] at wicket.Page.checkRendering (Page.java:1105) at wicket.Page.endComponentRender(Page.java:431) at wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget.java:467) at wicket.ajax.AjaxRequestTarget.respond (AjaxRequestTarget.java:353) at wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:49) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond (AbstractCompoundRequestCycleProcessor.java:66
Re: [Wicket-user] ajax refresh on date picker
Well it might actually be just a problem with this component. In my case, all I have is a date picker in a modal window which is shown as a result of clicking on a link. This produced the shown error and the modal window fail to display. I am sure you can replicate this condition with the current SVN source with this much info. - Samyem Matej Knopp wrote: I don'y really understand why. I was able to reproduce the problem with the files attached to bug report. And after I fixed the debug console, the problems were no longer there (though there was other problem - component not rendered except - for which it is necessary to disable component render check, at least for now). Are you sure you have cleared the browser cache? So far I had no problems with ajax header contribution apart from this one. But that doesn't mean there are none. Can you please provide a testcase/quick start for the problems you are encountering now? Thanks, -Matej samyem wrote: The header contribution logic seems to be still flawed. The javascript references were not added to the HTML's HEAD at all when the component is added by ajax. I guess this is a larger problem than the date picker. The same problem would occur everytime the javascript/stylesheet are added dynamically. Matej Knopp wrote: Well, I was working on it. But only to the degree that I disabled the disabling of check during ajax request, because it was no longer necessary. Unfortunately head contribution is something else, I'm not sure how to do it the best way, again, it's not my domain. I think that I've posted mail about it to the list, I'm not sure what the outcome was. -Matej Igor Vaynberg wrote: i thought you _were_ working on the component use check and ajax target stuff? -Igor On 9/22/06, *Matej Knopp* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I don't think so. I was working on header contribution and problem with debug console calling document.write() (thus removing all head elements from DOM). This is something completely different, it's related to the component rendered check. That's not my domain. I believe the problem are components in wicket:head section of DataPicker. Anyway, what can temporary help is to disable component render check in appication settings. Juergen? -Matej Igor Vaynberg wrote: matej was working to fix this, i thought he did matej? -Igor On 9/21/06, *samyem* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I took the latest SVN code today and suddenly, I am getting the following error everytime there is an ajax refresh on panels with date pickers: 2006-09-21 14:16:07,728 ERROR wicket.ajax.AjaxRequestTarget - Error while responding to an AJAX request: [EMAIL PROTECTED] markupIdToComponent [{pageBody_sidePanel=[MarkupContainer [Component id = sidePanel, page = com.wsi.mm.ui.directship.item.ItemDirectShipPage, path = 4:pageBody:sidePanel.DirectShipSideBarPanel, isVisible = true, isVersioned = false]]}], prependJavascript [[]], appendJavascript [[var win; try { win = window.parent.Wicket.Window; } catch (ignore) { } if (typeof(win) != undefined typeof(win.current ) != undefined) { window.parent.setTimeout(function() { win.current.close(); }, 0); }]] wicket.WicketRuntimeException: The component(s) below failed to render. A common problem is that you have added a component in code but forgot to reference it in the markup (thus the component will never be rendered). 1. [MarkupContainer [Component id = calendarMain, page = com.wsi.mm.ui.directship.item.ItemDirectShipPage , path = 4:pageBody:sidePanel:massUpdate:massUpdateForm:releaseDate:picker:calendarMain.JavaScriptReference, isVisible = true, isVersioned = false]] 2. [MarkupContainer [Component id = calendarSetup, page = com.wsi.mm.ui.directship.item.ItemDirectShipPage , path = 4:pageBody:sidePanel:massUpdate:massUpdateForm:releaseDate:picker:calendarSetup.JavaScriptReference , isVisible = true, isVersioned = false]] 3. [MarkupContainer [Component id = calendarLanguage, page = com.wsi.mm.ui.directship.item.ItemDirectShipPage, path = 4:pageBody:sidePanel:massUpdate:massUpdateForm:releaseDate:picker: calendarLanguage.JavaScriptReference, isVisible = true, isVersioned = false]] 4. [MarkupContainer [Component
[Wicket-user] ajax refresh on date picker
I took the latest SVN code today and suddenly, I am getting the following error everytime there is an ajax refresh on panels with date pickers: 2006-09-21 14:16:07,728 ERROR wicket.ajax.AjaxRequestTarget - Error while responding to an AJAX request: [EMAIL PROTECTED] markupIdToComponent [{pageBody_sidePanel=[MarkupContainer [Component id = sidePanel, page = com.wsi.mm.ui.directship.item.ItemDirectShipPage, path = 4:pageBody:sidePanel.DirectShipSideBarPanel, isVisible = true, isVersioned = false]]}], prependJavascript [[]], appendJavascript [[var win; try { win = window.parent.Wicket.Window; } catch (ignore) { } if (typeof(win) != undefined typeof(win.current) != undefined) { window.parent.setTimeout(function() { win.current.close(); }, 0); }]] wicket.WicketRuntimeException: The component(s) below failed to render. A common problem is that you have added a component in code but forgot to reference it in the markup (thus the component will never be rendered). 1. [MarkupContainer [Component id = calendarMain, page = com.wsi.mm.ui.directship.item.ItemDirectShipPage, path = 4:pageBody:sidePanel:massUpdate:massUpdateForm:releaseDate:picker:calendarMain.JavaScriptReference, isVisible = true, isVersioned = false]] 2. [MarkupContainer [Component id = calendarSetup, page = com.wsi.mm.ui.directship.item.ItemDirectShipPage, path = 4:pageBody:sidePanel:massUpdate:massUpdateForm:releaseDate:picker:calendarSetup.JavaScriptReference, isVisible = true, isVersioned = false]] 3. [MarkupContainer [Component id = calendarLanguage, page = com.wsi.mm.ui.directship.item.ItemDirectShipPage, path = 4:pageBody:sidePanel:massUpdate:massUpdateForm:releaseDate:picker:calendarLanguage.JavaScriptReference, isVisible = true, isVersioned = false]] 4. [MarkupContainer [Component id = calendarStyle, page = com.wsi.mm.ui.directship.item.ItemDirectShipPage, path = 4:pageBody:sidePanel:massUpdate:massUpdateForm:releaseDate:picker:calendarStyle.StyleSheetReference, isVisible = true, isVersioned = false]] at wicket.Page.checkRendering(Page.java:1105) at wicket.Page.endComponentRender(Page.java:431) at wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget.java:467) at wicket.ajax.AjaxRequestTarget.respond(AjaxRequestTarget.java:353) at wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:49) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:66) at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:868) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:900) at wicket.RequestCycle.step(RequestCycle.java:976) at wicket.RequestCycle.steps(RequestCycle.java:1050) at wicket.RequestCycle.request(RequestCycle.java:454) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:217) at wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:260) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) at org.mortbay.http.HttpContext.handle(HttpContext.java:1807) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525) at org.mortbay.http.HttpContext.handle(HttpContext.java:1757) at org.mortbay.http.HttpServer.service(HttpServer.java:879) at org.mortbay.http.HttpConnection.service(HttpConnection.java:790) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:300) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511) Is there anything I can do to get rid of this error? Or is it a wicket bug? -- View this message in context: http://www.nabble.com/ajax-refresh-on-date-picker-tf2314518.html#a6436806 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Modal Window
Thanks. That was helpful, but it seems to be more difficult than it needs to be. I think the default behaviour should have been to use different cookie names per instance of the modal window, but apparently the same cookie name were used for all instances. I tried to use getClassRelativePath() for the modal window. I guess a simple fix of using distinct cookie name per modal window instance would solve the problem in general. Matej Knopp wrote: Modal window width and height is stored in a cookie. First time initial width and height is used, and after that the width and height from the cookie is used. What you need to do is set different cookie id for different modal windows. Or disable cookies at all (setCookieId(null)). -Matej samyem wrote: If the modal window is resizable, why is it ignoring the window size, and what should be done if I do need to supply a width and height? At the moment, I can set an initial width and height, but after I close the window and go to another page with another modal window, instead of using the initial width/height set for the modal window, it uses the last known width/height values. For non-resizable modal windows, this behaviour does not occur. - 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 -- View this message in context: http://www.nabble.com/Modal-Window-tf2268885.html#a6309891 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] Date Picker in Modal Window
When the date picker is used in a modal window, the picker comes behind the modal window, making it unusuable. See http://www.nabble.com/user-files/235996/datepicker.png . Also, I am eagerly waiting for the earlier problem with date picker being unusable after an ajax refresh. -- View this message in context: http://www.nabble.com/Date-Picker-in-Modal-Window-tf2266489.html#a6289592 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
Re: [Wicket-user] Date Picker in Modal Window
Going a bit deeper into the problem, it looks like wicket picks up the z-index values in an arbitrary way. The components do not integrate enough to figure out the correct z-index values. For instance, the date picker is set at z-index 1000, while the modal window's mask is set to 2000 and so on. I am not sure why these particular z-index values are picked, but they sure not working together. A better approach perhaps would be to derive the z-index value from peer components in the page in a relative manner rather than picking absolute values. -- View this message in context: http://www.nabble.com/Date-Picker-in-Modal-Window-tf2266489.html#a6289950 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
Re: [Wicket-user] Date Picker in Modal Window
Most likely, there is no reason why a modal window would be invoked by a date picker, but the general problem of assuming random z-index is still valid. igor.vaynberg wrote: i think for now we can change the zindex of modal to 500 or something. but then if you have any jscalendars on the page that invokes the modal window they will show through :) -Igor On 9/13/06, Eelco Hillenius [EMAIL PROTECTED] wrote: That probably has to do with the fact that the datepicker component was build on top of jscalendar, which is not maintained by Wicket's team. By now we acknowledge that many times it is actually a good idea to re-invent the wheel instead of building on such components... the problems we have with that jscalendar bastard... Anyway, if you have a patch for fixing this problem, we'd be happy to apply. Eelco On 9/13/06, samyem [EMAIL PROTECTED] wrote: Going a bit deeper into the problem, it looks like wicket picks up the z-index values in an arbitrary way. The components do not integrate enough to figure out the correct z-index values. For instance, the date picker is set at z-index 1000, while the modal window's mask is set to 2000 and so on. I am not sure why these particular z-index values are picked, but they sure not working together. A better approach perhaps would be to derive the z-index value from peer components in the page in a relative manner rather than picking absolute values. -- View this message in context: http://www.nabble.com/Date-Picker-in-Modal-Window-tf2266489.html#a6289950 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 - 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 -- View this message in context: http://www.nabble.com/Date-Picker-in-Modal-Window-tf2266489.html#a6291306 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] Modal Window
If the modal window is resizable, why is it ignoring the window size, and what should be done if I do need to supply a width and height? At the moment, I can set an initial width and height, but after I close the window and go to another page with another modal window, instead of using the initial width/height set for the modal window, it uses the last known width/height values. For non-resizable modal windows, this behaviour does not occur. -- View this message in context: http://www.nabble.com/Modal-Window-tf2268885.html#a6297354 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
Re: [Wicket-user] Error: too much recursion for Date Widget
I noticed that I could use addOnLoadModifier. However, it makes me know the javascript to do the ajax. I wanted to do the way I've done it this quickstart. Is there a way I can make my onload ajax event behavior to actually work as it is? -Samyem samyem wrote: I found out that the error happens only when I listen to the onload on BODY tag. Here is my quickstart to prove it: http://www.yomari.net/~samyem/wicket-quickstart.zip Quick Start p/ Set the date without refreshing, and then click on the link to refresh the panel. The js console will go: p/ Error: too much recursion br/ Source File: http://localhost:8080/quickstart/app/resources/wicket.extensions.markup.html.datepicker.DatePicker/calendar.jsbr/ Line: 1796br/ br/ I need the onload for body as I need to load parts of the page after the initial load. Please help me solve this problem. -- View this message in context: http://www.nabble.com/Error%3A-too-much-recursion-for-Date-Widget-tf2191447.html#a6191843 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
Re: [Wicket-user] Error: too much recursion for Date Widget
I found out that the error happens only when I listen to the onload on BODY tag. Here is my quickstart to prove it: Quick Start Set the date without refreshing, and then click on the link to refresh the panel. The js console will go: Error: too much recursion Source File: http://localhost:8080/quickstart/app/resources/wicket.extensions.markup.html.datepicker.DatePicker/calendar.js Line: 1796 I need the onload for body as I need to load parts of the page after the initial load. Please help me solve this problem. View this message in context: Re: Error: too much recursion for Date Widget 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
Re: [Wicket-user] DatePicker problem - java script stack overflow error
Yup I have experienced this same problem. Hope it get addressed soon before our QA nails us down! Iuly wrote: Hi, I've upgraded my current application to 1.2.2 wicket version. The only problem that occured is related to DatePicker. Shortly I have the following use case : if a panel with a DatePicker inside is added to the target after a ajax request, DatePicker component is opened but cannot be close. The reason is an javascript error - stack overflow (calendar.js line 1796). If the page is refreshed then DatePicker works propely. This use case worked when I was using previous version on wicket. How this problem can be avoided or which is the exact cause ? Btw, wicket is a great stuff ! Regards, Iulian -- View this message in context: http://www.nabble.com/DatePicker-problem---java-script-stack-overflow-error-tf2195736.html#a6080405 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
Re: [Wicket-user] Error: too much recursion for Date Widget
The modal windows are our own implementation as we had it since before wicket had support of modal windows. We are thinking of porting to the new modal that wicket has once we get some time. Eelco Hillenius wrote: I'm trying to reproduce it, but so far without luck. What I did was add a datepicker to the ajax tabs example... but whatever I do, I can't get it to stall. Also, what's strange about your case is that you shouldn't see any ajax header contribution; that is done dynamically and thus should never show up as actual page source. Can you tell us more about the context you're using it? I can see from the source that you're using modal window - a very new component that might have some unforseen issues. Eelco On 8/30/06, samyem [EMAIL PROTECTED] wrote: I keep getting this error on the Date Picker: Error: too much recursion Source File: http://localhost:8081/mm/app/resources/wicket.extensions.markup.html.datepicker.DatePicker/calendar.js Line: 1796 See my source code for the HTML generated in my browser: problem.txt I can see that the calendar.js is included several times, probably each one for every time I ajax-refresh the panel with the date picker. Also, there is a big mess generated in the HTML with tons of nbsp; . Is this my fault or something wrong with wicket? I am using the latest wicket from SVN. View this message in context: Error: too much recursion for Date Widget 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 - 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 -- View this message in context: http://www.nabble.com/Error%3A-too-much-recursion-for-Date-Widget-tf2191447.html#a6084535 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
Re: [Wicket-user] AutoCompleteTextField
No other ajax component is added except the target is passed the feedbackcomponent. I can see all the javascripts necessary, and there is no error either on the javascript side or on the java side. The callback function to get the autocomplete iterator is not called at all by wicket when the autocomplete textfield component has the error message associated to it. I can show my file file if necessary. Johan Compagner wrote: is there somehow another ajax component also added to the page when you see the feedback? Can you see if alll the javascript that you see first (when it works) is still there? johan On 8/30/06, samyem [EMAIL PROTECTED] wrote: I have a custom converter associated to my autocomplete text field that throws a conversion exception if it cannot convert the entered text into the associated object. Once it does this, I can see the error in the feedback panel, but the autocomplete feature stops working. Eelco Hillenius wrote: What kind of errors do you mean? Where/ how did you encounter this? Eelco On 8/29/06, samyem [EMAIL PROTECTED] wrote: If there is an error associated to AutoCompleteTextField, the auto complete text field does not do auto complete, which prevents the user from correcting the problem easily. Can it be done such that even if there are errors in the AutoCompleteTextField, it still behaves normally and show the autocomplete drop down? -- View this message in context: http://www.nabble.com/AutoCompleteTextField-tf2186341.html#a6048058 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 - 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 -- View this message in context: http://www.nabble.com/AutoCompleteTextField-tf2186341.html#a6052587 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 - 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 -- View this message in context: http://www.nabble.com/AutoCompleteTextField-tf2186341.html#a6060105 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] Error: too much recursion for Date Widget
I keep getting this error on the Date Picker: Error: too much recursion Source File: http://localhost:8081/mm/app/resources/wicket.extensions.markup.html.datepicker.DatePicker/calendar.js Line: 1796 See my source code for the HTML generated in my browser: problem.txt I can see that the calendar.js is included several times, probably each one for every time I ajax-refresh the panel with the date picker. Also, there is a big mess generated in the HTML with tons of nbsp; . Is this my fault or something wrong with wicket? I am using the latest wicket from SVN. View this message in context: Error: too much recursion for Date Widget 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
Re: [Wicket-user] AutoCompleteTextField
I can see that I get the following error reported in my JS console in firefox: Error: Wicket.Ajax.AutoComplete is not a constructor Source File: http://localhost:8081/mm/app?wicket:interface=:2:: Line: 78 The HTML code codes something like: ... input id=directShipFilter_form_supplier name=supplier value=asd type=text autocomplete=off wicket:id=supplier size=50/script type=text/javascript!--/*--![CDATA[/*!--*/ new Wicket.Ajax.AutoComplete('directShipFilter_form_supplier','/mm/app?wicket:interface=:2:directShipFilter:form:supplier::IBehaviorListenerwicket:behaviorId=1'); ... Eelco Hillenius wrote: Could you please file an issue with our bug tracker? Eelco On 8/30/06, samyem [EMAIL PROTECTED] wrote: No other ajax component is added except the target is passed the feedbackcomponent. I can see all the javascripts necessary, and there is no error either on the javascript side or on the java side. The callback function to get the autocomplete iterator is not called at all by wicket when the autocomplete textfield component has the error message associated to it. I can show my file file if necessary. Johan Compagner wrote: is there somehow another ajax component also added to the page when you see the feedback? Can you see if alll the javascript that you see first (when it works) is still there? johan On 8/30/06, samyem [EMAIL PROTECTED] wrote: I have a custom converter associated to my autocomplete text field that throws a conversion exception if it cannot convert the entered text into the associated object. Once it does this, I can see the error in the feedback panel, but the autocomplete feature stops working. Eelco Hillenius wrote: What kind of errors do you mean? Where/ how did you encounter this? Eelco On 8/29/06, samyem [EMAIL PROTECTED] wrote: If there is an error associated to AutoCompleteTextField, the auto complete text field does not do auto complete, which prevents the user from correcting the problem easily. Can it be done such that even if there are errors in the AutoCompleteTextField, it still behaves normally and show the autocomplete drop down? -- View this message in context: http://www.nabble.com/AutoCompleteTextField-tf2186341.html#a6048058 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 - 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 -- View this message in context: http://www.nabble.com/AutoCompleteTextField-tf2186341.html#a6052587 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 - 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 -- View this message in context: http://www.nabble.com/AutoCompleteTextField-tf2186341.html#a6060105 Sent from the Wicket - User forum
Re: [Wicket-user] AutoCompleteTextField
Also, I forgot to add that : script type=text/javascript src=/mm/app/resources/wicket.extensions.ajax.markup.html.autocomplete.AutoCompleteBehavior/wicket-autocomplete.js/script is missing in the second page with the error in the feedback panel. So the problem is that the java script for the component didn't get added when the component has an error. samyem wrote: I can see that I get the following error reported in my JS console in firefox: Error: Wicket.Ajax.AutoComplete is not a constructor Source File: http://localhost:8081/mm/app?wicket:interface=:2:: Line: 78 The HTML code codes something like: ... input id=directShipFilter_form_supplier name=supplier value=asd type=text autocomplete=off wicket:id=supplier size=50/script type=text/javascript!--/*--![CDATA[/*!--*/ new Wicket.Ajax.AutoComplete('directShipFilter_form_supplier','/mm/app?wicket:interface=:2:directShipFilter:form:supplier::IBehaviorListenerwicket:behaviorId=1'); ... Eelco Hillenius wrote: Could you please file an issue with our bug tracker? Eelco On 8/30/06, samyem [EMAIL PROTECTED] wrote: No other ajax component is added except the target is passed the feedbackcomponent. I can see all the javascripts necessary, and there is no error either on the javascript side or on the java side. The callback function to get the autocomplete iterator is not called at all by wicket when the autocomplete textfield component has the error message associated to it. I can show my file file if necessary. Johan Compagner wrote: is there somehow another ajax component also added to the page when you see the feedback? Can you see if alll the javascript that you see first (when it works) is still there? johan On 8/30/06, samyem [EMAIL PROTECTED] wrote: I have a custom converter associated to my autocomplete text field that throws a conversion exception if it cannot convert the entered text into the associated object. Once it does this, I can see the error in the feedback panel, but the autocomplete feature stops working. Eelco Hillenius wrote: What kind of errors do you mean? Where/ how did you encounter this? Eelco On 8/29/06, samyem [EMAIL PROTECTED] wrote: If there is an error associated to AutoCompleteTextField, the auto complete text field does not do auto complete, which prevents the user from correcting the problem easily. Can it be done such that even if there are errors in the AutoCompleteTextField, it still behaves normally and show the autocomplete drop down? -- View this message in context: http://www.nabble.com/AutoCompleteTextField-tf2186341.html#a6048058 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 - 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 -- View this message in context: http://www.nabble.com/AutoCompleteTextField-tf2186341.html#a6052587 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 - 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
Re: [Wicket-user] AutoCompleteTextField
I tried to manually added the java script, but I still get these two js errors: Error: Wicket is not defined Source File: http://localhost:8081/mm/javascript/wicket-autocomplete.js Line: 7 and Error: Wicket.Ajax.AutoComplete is not a constructor Source File: http://localhost:8081/mm/app?wicket:bookmarkablePage=:com.wsi.mm.ui.directship.newds.DirectShipBasePage Line: 79 It does not like the line: Wicket.Ajax.AutoComplete=function(elementId,callbackUrl){ samyem wrote: Also, I forgot to add that : script type=text/javascript src=/mm/app/resources/wicket.extensions.ajax.markup.html.autocomplete.AutoCompleteBehavior/wicket-autocomplete.js/script is missing in the second page with the error in the feedback panel. So the problem is that the java script for the component didn't get added when the component has an error. samyem wrote: I can see that I get the following error reported in my JS console in firefox: Error: Wicket.Ajax.AutoComplete is not a constructor Source File: http://localhost:8081/mm/app?wicket:interface=:2:: Line: 78 The HTML code codes something like: ... input id=directShipFilter_form_supplier name=supplier value=asd type=text autocomplete=off wicket:id=supplier size=50/script type=text/javascript!--/*--![CDATA[/*!--*/ new Wicket.Ajax.AutoComplete('directShipFilter_form_supplier','/mm/app?wicket:interface=:2:directShipFilter:form:supplier::IBehaviorListenerwicket:behaviorId=1'); ... Eelco Hillenius wrote: Could you please file an issue with our bug tracker? Eelco On 8/30/06, samyem [EMAIL PROTECTED] wrote: No other ajax component is added except the target is passed the feedbackcomponent. I can see all the javascripts necessary, and there is no error either on the javascript side or on the java side. The callback function to get the autocomplete iterator is not called at all by wicket when the autocomplete textfield component has the error message associated to it. I can show my file file if necessary. Johan Compagner wrote: is there somehow another ajax component also added to the page when you see the feedback? Can you see if alll the javascript that you see first (when it works) is still there? johan On 8/30/06, samyem [EMAIL PROTECTED] wrote: I have a custom converter associated to my autocomplete text field that throws a conversion exception if it cannot convert the entered text into the associated object. Once it does this, I can see the error in the feedback panel, but the autocomplete feature stops working. Eelco Hillenius wrote: What kind of errors do you mean? Where/ how did you encounter this? Eelco On 8/29/06, samyem [EMAIL PROTECTED] wrote: If there is an error associated to AutoCompleteTextField, the auto complete text field does not do auto complete, which prevents the user from correcting the problem easily. Can it be done such that even if there are errors in the AutoCompleteTextField, it still behaves normally and show the autocomplete drop down? -- View this message in context: http://www.nabble.com/AutoCompleteTextField-tf2186341.html#a6048058 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 - 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 -- View this message in context: http://www.nabble.com/AutoCompleteTextField-tf2186341.html#a6052587 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
[Wicket-user] AutoCompleteTextField
If there is an error associated to AutoCompleteTextField, the auto complete text field does not do auto complete, which prevents the user from correcting the problem easily. Can it be done such that even if there are errors in the AutoCompleteTextField, it still behaves normally and show the autocomplete drop down? -- View this message in context: http://www.nabble.com/AutoCompleteTextField-tf2186341.html#a6048058 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
Re: [Wicket-user] Matej's Tree Demo
Most of the demos in that page are not working. Karl M. Davis wrote: Hey there, Just wanted to mention that the demo of Matej's new tree on the web page (http://wicketframework.org/wicket-extensions/index.html) is down. Does anyone know where I can find some sample code and/or a working demo? I'd really love to start using this and it's always easier to figure out when there's an example available. Thanks, Karl - 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 -- View this message in context: http://www.nabble.com/Matej%27s-Tree-Demo-tf2186851.html#a6049887 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
Re: [Wicket-user] AutoCompleteTextField
I have a custom converter associated to my autocomplete text field that throws a conversion exception if it cannot convert the entered text into the associated object. Once it does this, I can see the error in the feedback panel, but the autocomplete feature stops working. Eelco Hillenius wrote: What kind of errors do you mean? Where/ how did you encounter this? Eelco On 8/29/06, samyem [EMAIL PROTECTED] wrote: If there is an error associated to AutoCompleteTextField, the auto complete text field does not do auto complete, which prevents the user from correcting the problem easily. Can it be done such that even if there are errors in the AutoCompleteTextField, it still behaves normally and show the autocomplete drop down? -- View this message in context: http://www.nabble.com/AutoCompleteTextField-tf2186341.html#a6048058 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 - 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 -- View this message in context: http://www.nabble.com/AutoCompleteTextField-tf2186341.html#a6052587 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
Re: [Wicket-user] AjaxLink setresponse
I guess I do not have the latest version. I am trying to use the trunk version and almost all my code broke due to Component's constructor signature change. thanks Anyway. igor.vaynberg wrote: RequestCycle.java: /** * Returns a URL that references the given page. It also * [EMAIL PROTECTED] Session#touch(Page) touches} the page in the session so that it is * put in the front of the page stack. Use this method only if you plan to * use it the next request. * * @param page *The page * @return The url pointing to the provided page */ public final CharSequence urlFor(final Page page) -Igor On 8/17/06, samyem [EMAIL PROTECTED] wrote: Unlike setResponsePage, urlFor does not seem to take an instance of a Page, but only Class. What if I want to pass an instance of Page itself? igor.vaynberg wrote: if you update to latest code from svn wicket_1_2 branch setresponsepage() will work. if you cannot upgrade then you have to do target.appendJavascript (window.location=+urlFor(page, IRedirectListener.INTERFACE)); -Igor On 8/17/06, samyem [EMAIL PROTECTED] wrote: What do I need to do to go to a different page as a result the user pressing an ajax link? My problem is that depending on the result of state the page is on, pressing on the link could either lead to a different or change portion of the same page (it's a bit more complex than this, but this should give some idea). However, the setResponsePage() method does not work for onClick for AjaxLink. What could be a possible solution? -- View this message in context: http://www.nabble.com/AjaxLink-setresponse-tf2124210.html#a5860434 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 - 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 -- View this message in context: http://www.nabble.com/AjaxLink-setresponse-tf2124210.html#a5860761 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 - 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 -- View this message in context: http://www.nabble.com/AjaxLink-setresponse-tf2124210.html#a5874546 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
Re: [Wicket-user] AjaxLink setresponse
Okay that's fine. We were using the 1.2.1 release jars and not from SVN. So is it okay if i check out from wicket_1_2_1 branch instead of wicket_1_2 branch? igor.vaynberg wrote: let me restate with some highlighting :) if you update to latest code from svn *wicket_1_2 branch* setresponsepage() will work. if you cannot upgrade then you have to do target.appendJavascript (window.location=+urlFor(page, IRedirectListener.INTERFACE)); -Igor On 8/18/06, samyem [EMAIL PROTECTED] wrote: I guess I do not have the latest version. I am trying to use the trunk version and almost all my code broke due to Component's constructor signature change. thanks Anyway. igor.vaynberg wrote: RequestCycle.java: /** * Returns a URL that references the given page. It also * [EMAIL PROTECTED] Session#touch(Page) touches} the page in the session so that it is * put in the front of the page stack. Use this method only if you plan to * use it the next request. * * @param page *The page * @return The url pointing to the provided page */ public final CharSequence urlFor(final Page page) -Igor On 8/17/06, samyem [EMAIL PROTECTED] wrote: Unlike setResponsePage, urlFor does not seem to take an instance of a Page, but only Class. What if I want to pass an instance of Page itself? igor.vaynberg wrote: if you update to latest code from svn wicket_1_2 branch setresponsepage() will work. if you cannot upgrade then you have to do target.appendJavascript (window.location=+urlFor(page, IRedirectListener.INTERFACE)); -Igor On 8/17/06, samyem [EMAIL PROTECTED] wrote: What do I need to do to go to a different page as a result the user pressing an ajax link? My problem is that depending on the result of state the page is on, pressing on the link could either lead to a different or change portion of the same page (it's a bit more complex than this, but this should give some idea). However, the setResponsePage() method does not work for onClick for AjaxLink. What could be a possible solution? -- View this message in context: http://www.nabble.com/AjaxLink-setresponse-tf2124210.html#a5860434 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 - 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 -- View this message in context: http://www.nabble.com/AjaxLink-setresponse-tf2124210.html#a5860761 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 - 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 -- View this message in context: http://www.nabble.com/AjaxLink-setresponse-tf2124210.html#a5874546 Sent from the Wicket - User forum at Nabble.com
Re: [Wicket-user] AjaxLink setresponse
Okay that explains all my confusions. thanks. igor.vaynberg wrote: no, wicket_1_2_1 branch was a mistake - it is supposed to be a label that marks the code that went into 1.2.1 release not a branch - but maven made a booboo. frank i thought you were gonna move it to tags? if you want the latest you should check out from wicket_1_2 branch. -Igor On 8/18/06, samyem [EMAIL PROTECTED] wrote: Okay that's fine. We were using the 1.2.1 release jars and not from SVN. So is it okay if i check out from wicket_1_2_1 branch instead of wicket_1_2 branch? igor.vaynberg wrote: let me restate with some highlighting :) if you update to latest code from svn *wicket_1_2 branch* setresponsepage() will work. if you cannot upgrade then you have to do target.appendJavascript (window.location=+urlFor(page, IRedirectListener.INTERFACE)); -Igor On 8/18/06, samyem [EMAIL PROTECTED] wrote: I guess I do not have the latest version. I am trying to use the trunk version and almost all my code broke due to Component's constructor signature change. thanks Anyway. igor.vaynberg wrote: RequestCycle.java: /** * Returns a URL that references the given page. It also * [EMAIL PROTECTED] Session#touch(Page) touches} the page in the session so that it is * put in the front of the page stack. Use this method only if you plan to * use it the next request. * * @param page *The page * @return The url pointing to the provided page */ public final CharSequence urlFor(final Page page) -Igor On 8/17/06, samyem [EMAIL PROTECTED] wrote: Unlike setResponsePage, urlFor does not seem to take an instance of a Page, but only Class. What if I want to pass an instance of Page itself? igor.vaynberg wrote: if you update to latest code from svn wicket_1_2 branch setresponsepage() will work. if you cannot upgrade then you have to do target.appendJavascript (window.location=+urlFor(page, IRedirectListener.INTERFACE)); -Igor On 8/17/06, samyem [EMAIL PROTECTED] wrote: What do I need to do to go to a different page as a result the user pressing an ajax link? My problem is that depending on the result of state the page is on, pressing on the link could either lead to a different or change portion of the same page (it's a bit more complex than this, but this should give some idea). However, the setResponsePage() method does not work for onClick for AjaxLink. What could be a possible solution? -- View this message in context: http://www.nabble.com/AjaxLink-setresponse-tf2124210.html#a5860434 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 - 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 -- View this message in context: http://www.nabble.com/AjaxLink-setresponse-tf2124210.html#a5860761 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 - Using Tomcat but need to do more? Need to support web services
Re: [Wicket-user] AjaxLink setresponse
Unlike setResponsePage, urlFor does not seem to take an instance of a Page, but only Class. What if I want to pass an instance of Page itself? igor.vaynberg wrote: if you update to latest code from svn wicket_1_2 branch setresponsepage() will work. if you cannot upgrade then you have to do target.appendJavascript (window.location=+urlFor(page, IRedirectListener.INTERFACE)); -Igor On 8/17/06, samyem [EMAIL PROTECTED] wrote: What do I need to do to go to a different page as a result the user pressing an ajax link? My problem is that depending on the result of state the page is on, pressing on the link could either lead to a different or change portion of the same page (it's a bit more complex than this, but this should give some idea). However, the setResponsePage() method does not work for onClick for AjaxLink. What could be a possible solution? -- View this message in context: http://www.nabble.com/AjaxLink-setresponse-tf2124210.html#a5860434 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 - 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 -- View this message in context: http://www.nabble.com/AjaxLink-setresponse-tf2124210.html#a5860761 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
Re: [Wicket-user] Palette AjaxFormComponentUpdatingBehavior
To which component do I bind the ajax form submit behaviour and on which event? Perhaps the best approach would have been for the Palette to raise some kind of event when the content of the Palette changes. igor.vaynberg wrote: have you tried to use a form submitting behavior? the problem is that it is the recorder component that needs to be submitted - it is the hidden field that keeps track of the selection. -Igor On 8/11/06, samyem [EMAIL PROTECTED] wrote: I could not make this work. I tried to override protected Component newSelectionComponent() and did: new AjaxFormComponentUpdatingBehavior(onsubtreemodified){..} I tried a few variations and none of my effort was able to invoke any kind of event when the palette's content changed. Any ideas? igor.vaynberg wrote: its because pallette is not a field it is a compound component. you have to attach the behavior to one of palette's internal components. the palette has factory methods for all its internal components so you probably have to add it to one of those...i havent looked at it so its just a guess. -Igor On 8/8/06, Samyem Tuladhar [EMAIL PROTECTED] wrote: How do I use AjaxFormComponentUpdatingBehavior with Palette ? There seem to be no effect using it the same way as with other text form fields. Thanks, - 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 -- View this message in context: http://www.nabble.com/Palette-AjaxFormComponentUpdatingBehavior-tf2075278.html#a5770553 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 - 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 -- View this message in context: http://www.nabble.com/Palette-AjaxFormComponentUpdatingBehavior-tf2075278.html#a5778482 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
Re: [Wicket-user] Palette AjaxFormComponentUpdatingBehavior
I could not make this work. I tried to override protected Component newSelectionComponent() and did: new AjaxFormComponentUpdatingBehavior(onsubtreemodified){..} I tried a few variations and none of my effort was able to invoke any kind of event when the palette's content changed. Any ideas? igor.vaynberg wrote: its because pallette is not a field it is a compound component. you have to attach the behavior to one of palette's internal components. the palette has factory methods for all its internal components so you probably have to add it to one of those...i havent looked at it so its just a guess. -Igor On 8/8/06, Samyem Tuladhar [EMAIL PROTECTED] wrote: How do I use AjaxFormComponentUpdatingBehavior with Palette ? There seem to be no effect using it the same way as with other text form fields. Thanks, - 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 -- View this message in context: http://www.nabble.com/Palette-AjaxFormComponentUpdatingBehavior-tf2075278.html#a5770553 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] Palette AjaxFormComponentUpdatingBehavior
How do I use AjaxFormComponentUpdatingBehavior with Palette ? There seem to be no effect using it the same way as with other text form fields.Thanks, - 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] Component updating problem
I am getting errors like these:ERROR: Component with id [[dataView_modalPanel_placeHolder_panel_modalPanel_shippingRatesGroupForm_sourceCodes_choices]] a was not found while trying to perform markup update. Make sure you called component.setOutputMarkupId(true) on the component whose markup you are trying to update.I have set the setOutputMarkupId to true to this component. And in the rendered markup, I can see the ID rendered as: id=2:dataView:modalPanel:placeHolder:panel:modalPanel:shippingRatesGroupForm:sourceCodes:choicesWhat could I be doing wrong here? - 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] Palette autoupdate
When using a Palette, how do I make it such that the Palette can update the model as soon as user changes the data in the Palette? I had been able to do this with more other form components by using: AjaxFormSubmitBehavior(form,onchange) This has not worked for Palette. What would be the equivalent way to do this for Palette? Thanks -- View this message in context: http://www.nabble.com/Palette-autoupdate-tf2006955.html#a5513346 Sent from the Wicket - User forum at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket 1.2.1 available
As soon as upgrading to the new version, I am getting these types of errors all over the place: WicketMessage: Internal error cloning object. Make sure all dependent objects implement Serializable. Class: com.wsi.mm.ui.shippingrates.ShippingRateGroupPage Root cause: java.io.NotSerializableException: com.wsi.mm.ui.shippingrates.ShippingRateGroupSideBarPanel$2 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369) ... at wicket.protocol.http.HttpSessionStore.setAttribute(HttpSessionStore.java:57) at wicket.Session.setAttribute(Session.java:926) at wicket.PageMap.put(PageMap.java:526) at wicket.Session.touch(Session.java:714) at wicket.Page.renderPage(Page.java:422) at wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:226) ... Complete stack: wicket.WicketRuntimeException: Internal error cloning object. Make sure all dependent objects implement Serializable. Class: com.wsi.mm.ui.shippingrates.ShippingRateGroupPage at wicket.protocol.http.HttpSessionStore.setAttribute(HttpSessionStore.java:63) at wicket.Session.setAttribute(Session.java:926) It works fine with Wicket 1.2 release, but no more with 1.2.1. Please help! -- View this message in context: http://www.nabble.com/Wicket-1.2.1-available-tf1992241.html#a5472531 Sent from the Wicket - User forum at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket 1.2.1 available
Thanks. That solved my problem for now. -- View this message in context: http://www.nabble.com/Wicket-1.2.1-available-tf1992241.html#a5472704 Sent from the Wicket - User forum at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Label and Compound Property Model
Label does not seem to take Compound Property Model as other components like Text Field. Is this intended? Do I always have to explicitely pass in the model to a Label? -- View this message in context: http://www.nabble.com/Label-and-Compound-Property-Model-tf1875306.html#a5127082 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] Disabling Palette
How do I disable a Palette? setEnabled(false) apparently didn't work for some reason. -- View this message in context: http://www.nabble.com/Disabling-Palette-tf1863672.html#a5091463 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
Re: [Wicket-user] Ajax Panel Include
Has this problem been fixed yet? This is becoming a major problem in my project. -- View this message in context: http://www.nabble.com/Ajax-Panel-Include-t1606490.html#a4957969 Sent from the Wicket - User forum at Nabble.com. ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] findSetter
The findSetter method in wicket.util.lang.PropertyResolver is defined as: private final static Method findSetter(Method getMethod, Class clz) { String name = getMethod.getName(); name = set + name.substring(3); ... What if the getter method name is something like isTrue and setter like setIsTrue? It won't be able to handle this situation right? -- View this message in context: http://www.nabble.com/findSetter-t1768813.html#a4814216 Sent from the Wicket - User forum at Nabble.com. ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Ajax Indicator Appender
I am trying to use the AjaxIndicatorAppender. My problem is that when I click on my Ajax link, it shows the GIF but when the request is over, the GIF is still there. I looked at the HTML source code and my link has the following onclick attribute on the SPAN tag: onclick=wicketShow('dataView_oir_1_quantityReserved_quantityReserved_quantityReserved--ajax-indicator');var wcall=wicketAjaxGet('/mm/app?wicket:interface=:5:dataView:oir:1:quantityReserved:quantityReserved:quantityReserved::IBehaviorListenerwicket:behaviorId=1', function() { ;wicketHide('dataView_oir_1_quantityReserved_quantityReserved_quantityReserved--ajax-indicator');}, function() { ;wicketHide('dataView_oir_1_quantityReserved_quantityReserved_quantityReserved--ajax-indicator');}); Why does this look not right? why are there semicolons in unusual places? Something does not look right. -- View this message in context: http://www.nabble.com/Ajax-Indicator-Appender-t1728222.html#a4695591 Sent from the Wicket - User forum at Nabble.com. ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] ConcurrentModificationException
I am getting this error with wicket 1.2: java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(Unknown Source) at java.util.HashMap$EntryIterator.next(Unknown Source) at java.util.HashMap$EntryIterator.next(Unknown Source) at wicket.ajax.AjaxRequestTarget.respond(AjaxRequestTarget.java:307) at wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:49) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:66) at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:852) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:879) at wicket.RequestCycle.step(RequestCycle.java:960) at wicket.RequestCycle.steps(RequestCycle.java:1034) at wicket.RequestCycle.request(RequestCycle.java:453) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:215) at wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:258) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) at org.mortbay.http.HttpContext.handle(HttpContext.java:1807) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525) at org.mortbay.http.HttpContext.handle(HttpContext.java:1757) at org.mortbay.http.HttpServer.service(HttpServer.java:879) at org.mortbay.http.HttpConnection.service(HttpConnection.java:790) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:300) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511) - I am getting this when I use the AjaxSelfUpdatingTimerBehavior. The component can be updated by several ajax behaviour. Can you guys give me some kind of hints how I can try to solve this type of problem? Is there something that can be fixed in Wicket to get rid of this problem? Thanks, Samyem -- View this message in context: http://www.nabble.com/ConcurrentModificationException-t1720838.html#a4674302 Sent from the Wicket - User forum at Nabble.com. --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Ajax Panel Include
When I include a panel into a page after the page has been loaded through ajax, I do not get the content defined in the wicket:head. How do I access the head of the panel so that I can dynamically load them through ajax once the page has been on the browser? Samye
[Wicket-user] Image Resource
I am having problem generating dynamic images in Wicket. Wicket seem to generate the same URL even when the Image's resource has changed. So the browser decides to use the cached image instead of the uptodate one. How do we tell wicket to generate a different img tag's src value when the image resource change? Thanks,Samyem