Re: Please, I need help to add noscript tag with Wicket
Thanks a lot Martin, I had a confusion, I don't need a dynamic value. Roberto Lavalle de Juan CTO - tellmeGen tlf. +34 650 129 806 El 12/06/2015 a las 14:01, Martin Grigorov escribió: Hi Roberto, What exactly is the problem? Which part of the HTML is dynamic? BTW you can use span instead of div style=display:inline. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Jun 12, 2015 at 2:57 PM, Roberto Lavalle de Juan roberto.lava...@tellmegen.com wrote: Hi all! I need add a noscript tag with this image in wicket, ¿can someone help me please?: noscript div style=display:inline; img height=1 width=1 style=border-style:none; alt= src=// www.googleadservices.com/pagead/conversion/...example/ /div /noscript Thanks a lot!!! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Please, I need help to add noscript tag with Wicket
Hi all! I need add a noscript tag with this image in wicket, ¿can someone help me please?: noscript div style=display:inline; img height=1 width=1 style=border-style:none; alt= src=//www.googleadservices.com/pagead/conversion/...example/ /div /noscript Thanks a lot!!! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Please, I need help to add noscript tag with Wicket
Hi Roberto, What exactly is the problem? Which part of the HTML is dynamic? BTW you can use span instead of div style=display:inline. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Jun 12, 2015 at 2:57 PM, Roberto Lavalle de Juan roberto.lava...@tellmegen.com wrote: Hi all! I need add a noscript tag with this image in wicket, ¿can someone help me please?: noscript div style=display:inline; img height=1 width=1 style=border-style:none; alt= src=// www.googleadservices.com/pagead/conversion/...example/ /div /noscript Thanks a lot!!! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Need help with FeedbackMessageFilter
Hi all, I have a FeedbackPanel in my page and a FeedbackPanel in the form of my page. Both feedback panels show feedback messages of the form. I tried formfeedbackPanel.setFilter(new ComponentFeedbackMessageFilter(theForm)). I tried formfeedbackPanel.setFilter(new ContainerFeedbackMessageFilter(theForm)). But nothing works... Thanx for help. regards Patrick
Re: Need help with FeedbackMessageFilter
See org.apache.wicket.feedback.FencedFeedbackPanel On Fri, Apr 19, 2013 at 5:20 PM, Patrick Davids patrick.dav...@nuboit.dewrote: Hi all, I have a FeedbackPanel in my page and a FeedbackPanel in the form of my page. Both feedback panels show feedback messages of the form. I tried formfeedbackPanel.setFilter(new ComponentFeedbackMessageFilter(theForm)). I tried formfeedbackPanel.setFilter(new ContainerFeedbackMessageFilter(theForm)). But nothing works... Thanx for help. regards Patrick -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/
Need help setting visibility via AjaxFormChoiceComponentUpdatingBehavior
Hi together, I searched the web for several hours and always get the same results for setting the visibilty for components via ajax, but I cannot get it work. The should work solution is: - Creat an extra a WebMarkupContainer in your page - add your subcomponents to this container - setOutPutMarkUpIdPlacerHolderTag(true) for the container - implement ajax anywhere (in my case its an AjaxFormChoiceComponentUpdatingBehavior) - override its onUpdate and setVisibilty of the container true or false depending on something - do target.add( the webmarkupcontainer ) Tada... but nothing happens. My problems are: All solutions I found are about 2-5 years old, so: - the usage of setVisibilty has changed (setVisible vs. setVisibilityAllowed() discussion) - target does not have an addComponent() method anymore (but this is easy, should be add(...)) - perhaps the hole SetVisibilityViaAjax-way has changed since newer wicket versions? My behavior on the gui is: - the first render process of the page itself shows the container once - on clicking my radiochoice the webmarkupcontainer disappears but is still available, due to outPutMarkUpPlaceHolder true, but the content is completly removed and the visibility of the container is always display:none. Using setVisible or using setVisibilityAllowed does not make any changes. Whats wrong?!? :-( (using wicket 6.6) kind regards Patrick - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Need help setting visibility via AjaxFormChoiceComponentUpdatingBehavior
My behavior on the gui is: - the first render process of the page itself shows the container once - on clicking my radiochoice the webmarkupcontainer disappears but is still available, due to outPutMarkUpPlaceHolder true, but the content is completly removed and the visibility of the container is always display:none. Using setVisible or using setVisibilityAllowed does not make any changes. So your container disappears but does not show up again after setting it visible? Sven On 03/28/2013 11:12 AM, Patrick Davids wrote: Hi together, I searched the web for several hours and always get the same results for setting the visibilty for components via ajax, but I cannot get it work. The should work solution is: - Creat an extra a WebMarkupContainer in your page - add your subcomponents to this container - setOutPutMarkUpIdPlacerHolderTag(true) for the container - implement ajax anywhere (in my case its an AjaxFormChoiceComponentUpdatingBehavior) - override its onUpdate and setVisibilty of the container true or false depending on something - do target.add( the webmarkupcontainer ) Tada... but nothing happens. My problems are: All solutions I found are about 2-5 years old, so: - the usage of setVisibilty has changed (setVisible vs. setVisibilityAllowed() discussion) - target does not have an addComponent() method anymore (but this is easy, should be add(...)) - perhaps the hole SetVisibilityViaAjax-way has changed since newer wicket versions? My behavior on the gui is: - the first render process of the page itself shows the container once - on clicking my radiochoice the webmarkupcontainer disappears but is still available, due to outPutMarkUpPlaceHolder true, but the content is completly removed and the visibility of the container is always display:none. Using setVisible or using setVisibilityAllowed does not make any changes. Whats wrong?!? :-( (using wicket 6.6) kind regards Patrick - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Need help setting visibility via AjaxFormChoiceComponentUpdatingBehavior
Additional info: Its now working partially... I removed the onConfigure() of the markup container to determine the initial visibility of itself depending on the radio default choice. So, my question changes to: Whats the best way todo such an initial visibility without affecting the ajax visibility changing? Patrick Am 28.03.2013 11:18, schrieb Sven Meier: My behavior on the gui is: - the first render process of the page itself shows the container once - on clicking my radiochoice the webmarkupcontainer disappears but is still available, due to outPutMarkUpPlaceHolder true, but the content is completly removed and the visibility of the container is always display:none. Using setVisible or using setVisibilityAllowed does not make any changes. So your container disappears but does not show up again after setting it visible? Sven On 03/28/2013 11:12 AM, Patrick Davids wrote: Hi together, I searched the web for several hours and always get the same results for setting the visibilty for components via ajax, but I cannot get it work. The should work solution is: - Creat an extra a WebMarkupContainer in your page - add your subcomponents to this container - setOutPutMarkUpIdPlacerHolderTag(true) for the container - implement ajax anywhere (in my case its an AjaxFormChoiceComponentUpdatingBehavior) - override its onUpdate and setVisibilty of the container true or false depending on something - do target.add( the webmarkupcontainer ) Tada... but nothing happens. My problems are: All solutions I found are about 2-5 years old, so: - the usage of setVisibilty has changed (setVisible vs. setVisibilityAllowed() discussion) - target does not have an addComponent() method anymore (but this is easy, should be add(...)) - perhaps the hole SetVisibilityViaAjax-way has changed since newer wicket versions? My behavior on the gui is: - the first render process of the page itself shows the container once - on clicking my radiochoice the webmarkupcontainer disappears but is still available, due to outPutMarkUpPlaceHolder true, but the content is completly removed and the visibility of the container is always display:none. Using setVisible or using setVisibilityAllowed does not make any changes. Whats wrong?!? :-( (using wicket 6.6) kind regards Patrick - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Mit freundlichen Grüßen, Patrick Davids NuboIT GmbH Co. KG Kieler Str. 103-107 • 25474 Bönningstedt Email: patrick.dav...@nuboit.de Handelsregister: HRA6819 Pi | Amtsgericht Pinneberg Geschäftsführung der Verwaltungsgesellschaft Daniel Fraga Zander HRB10145Pi | Amtsgericht Pinneberg
Re: Need help setting visibility via AjaxFormChoiceComponentUpdatingBehavior
Hi, All you have explained should just work. It seems the component is still invisible after setVisible(true). Maybe you override it later ?! As you said in #onConfigure() or #isVisible() returns false ? Please show some code. On Thu, Mar 28, 2013 at 12:30 PM, Patrick Davids patrick.dav...@nuboit.dewrote: Additional info: Its now working partially... I removed the onConfigure() of the markup container to determine the initial visibility of itself depending on the radio default choice. So, my question changes to: Whats the best way todo such an initial visibility without affecting the ajax visibility changing? Patrick Am 28.03.2013 11:18, schrieb Sven Meier: My behavior on the gui is: - the first render process of the page itself shows the container once - on clicking my radiochoice the webmarkupcontainer disappears but is still available, due to outPutMarkUpPlaceHolder true, but the content is completly removed and the visibility of the container is always display:none. Using setVisible or using setVisibilityAllowed does not make any changes. So your container disappears but does not show up again after setting it visible? Sven On 03/28/2013 11:12 AM, Patrick Davids wrote: Hi together, I searched the web for several hours and always get the same results for setting the visibilty for components via ajax, but I cannot get it work. The should work solution is: - Creat an extra a WebMarkupContainer in your page - add your subcomponents to this container - setOutPutMarkUpIdPlacerHolderTag(true) for the container - implement ajax anywhere (in my case its an AjaxFormChoiceComponentUpdatingBehavior) - override its onUpdate and setVisibilty of the container true or false depending on something - do target.add( the webmarkupcontainer ) Tada... but nothing happens. My problems are: All solutions I found are about 2-5 years old, so: - the usage of setVisibilty has changed (setVisible vs. setVisibilityAllowed() discussion) - target does not have an addComponent() method anymore (but this is easy, should be add(...)) - perhaps the hole SetVisibilityViaAjax-way has changed since newer wicket versions? My behavior on the gui is: - the first render process of the page itself shows the container once - on clicking my radiochoice the webmarkupcontainer disappears but is still available, due to outPutMarkUpPlaceHolder true, but the content is completly removed and the visibility of the container is always display:none. Using setVisible or using setVisibilityAllowed does not make any changes. Whats wrong?!? :-( (using wicket 6.6) kind regards Patrick - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Mit freundlichen Grüßen, Patrick Davids NuboIT GmbH Co. KG Kieler Str. 103-107 • 25474 Bönningstedt Email: patrick.dav...@nuboit.de Handelsregister: HRA6819 Pi | Amtsgericht Pinneberg Geschäftsführung der Verwaltungsgesellschaft Daniel Fraga Zander HRB10145Pi | Amtsgericht Pinneberg -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/
Solved / Re: Need help setting visibility via AjaxFormChoiceComponentUpdatingBehavior
I am not sure what exactly was wrong. Perhaps I had too much code with several active setVisibility...() XYZs code parts. I started from the beginning and found the beautiest way for me, looking like this. final RadioChoiceString r = new RadioChoiceString(id, Model.of(), Arrays.asList(new String[{visible,invisible})); r.setModelObject(visible); final WebMarkupContainer wmc = new WebMarkupContainer(wmc){ @Override protected void onConfigure() { if(r.getValue().equals(0)){ setVisibilityAllowed(true); } if(r.getValue().equals(1)){ setVisibilityAllowed(false); } } wmc.setOutputMarkupPlaceholderTag(true); r.add(new AjaxFormChoiceComponentUpdatingBehavior(){ @Override protected void onUpdate(AjaxRequestTarget target) { target.add(wmc); } } ); onConfigure() is always be executed, and can toggle the visibility. AjaxFormChoiceComponentUpdatingBehavior.onUpdate() just pushes back the wmc, and due to onConfigure() of the wmc it determines its visibility depending on the new state of RadioCoice r. kind regards Patrick Am 28.03.2013 13:44, schrieb Martin Grigorov: Hi, All you have explained should just work. It seems the component is still invisible after setVisible(true). Maybe you override it later ?! As you said in #onConfigure() or #isVisible() returns false ? Please show some code. On Thu, Mar 28, 2013 at 12:30 PM, Patrick Davids patrick.dav...@nuboit.dewrote: Additional info: Its now working partially... I removed the onConfigure() of the markup container to determine the initial visibility of itself depending on the radio default choice. So, my question changes to: Whats the best way todo such an initial visibility without affecting the ajax visibility changing? Patrick Am 28.03.2013 11:18, schrieb Sven Meier: My behavior on the gui is: - the first render process of the page itself shows the container once - on clicking my radiochoice the webmarkupcontainer disappears but is still available, due to outPutMarkUpPlaceHolder true, but the content is completly removed and the visibility of the container is always display:none. Using setVisible or using setVisibilityAllowed does not make any changes. So your container disappears but does not show up again after setting it visible? Sven On 03/28/2013 11:12 AM, Patrick Davids wrote: Hi together, I searched the web for several hours and always get the same results for setting the visibilty for components via ajax, but I cannot get it work. The should work solution is: - Creat an extra a WebMarkupContainer in your page - add your subcomponents to this container - setOutPutMarkUpIdPlacerHolderTag(true) for the container - implement ajax anywhere (in my case its an AjaxFormChoiceComponentUpdatingBehavior) - override its onUpdate and setVisibilty of the container true or false depending on something - do target.add( the webmarkupcontainer ) Tada... but nothing happens. My problems are: All solutions I found are about 2-5 years old, so: - the usage of setVisibilty has changed (setVisible vs. setVisibilityAllowed() discussion) - target does not have an addComponent() method anymore (but this is easy, should be add(...)) - perhaps the hole SetVisibilityViaAjax-way has changed since newer wicket versions? My behavior on the gui is: - the first render process of the page itself shows the container once - on clicking my radiochoice the webmarkupcontainer disappears but is still available, due to outPutMarkUpPlaceHolder true, but the content is completly removed and the visibility of the container is always display:none. Using setVisible or using setVisibilityAllowed does not make any changes. Whats wrong?!? :-( (using wicket 6.6) kind regards Patrick - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Mit freundlichen Grüßen, Patrick Davids NuboIT GmbH Co. KG Kieler Str. 103-107 • 25474 Bönningstedt Email: patrick.dav...@nuboit.de Handelsregister: HRA6819 Pi | Amtsgericht Pinneberg Geschäftsführung der Verwaltungsgesellschaft Daniel Fraga Zander HRB10145Pi | Amtsgericht Pinneberg -- Mit freundlichen Grüßen, Patrick Davids NuboIT GmbH Co. KG Kieler Str. 103-107 • 25474 Bönningstedt Email: patrick.dav...@nuboit.de Handelsregister: HRA6819 Pi | Amtsgericht Pinneberg Geschäftsführung der Verwaltungsgesellschaft Daniel Fraga Zander HRB10145Pi | Amtsgericht
Re: Solved / Re: Need help setting visibility via AjaxFormChoiceComponentUpdatingBehavior
See http://wicketinaction.com/2011/11/implement-wicket-component-visibility-changes-properly/ On Thu, Mar 28, 2013 at 3:36 PM, Patrick Davids patrick.dav...@nuboit.dewrote: I am not sure what exactly was wrong. Perhaps I had too much code with several active setVisibility...() XYZs code parts. I started from the beginning and found the beautiest way for me, looking like this. final RadioChoiceString r = new RadioChoiceString(id, Model.of(), Arrays.asList(new String[{visible,invisible})); r.setModelObject(visible); final WebMarkupContainer wmc = new WebMarkupContainer(wmc){ @Override protected void onConfigure() { if(r.getValue().equals(0)){ setVisibilityAllowed(true); } if(r.getValue().equals(1)){ setVisibilityAllowed(false); } } wmc.setOutputMarkupPlaceholderTag(true); r.add(new AjaxFormChoiceComponentUpdatingBehavior(){ @Override protected void onUpdate(AjaxRequestTarget target) { target.add(wmc); } } ); onConfigure() is always be executed, and can toggle the visibility. AjaxFormChoiceComponentUpdatingBehavior.onUpdate() just pushes back the wmc, and due to onConfigure() of the wmc it determines its visibility depending on the new state of RadioCoice r. kind regards Patrick Am 28.03.2013 13:44, schrieb Martin Grigorov: Hi, All you have explained should just work. It seems the component is still invisible after setVisible(true). Maybe you override it later ?! As you said in #onConfigure() or #isVisible() returns false ? Please show some code. On Thu, Mar 28, 2013 at 12:30 PM, Patrick Davids patrick.dav...@nuboit.dewrote: Additional info: Its now working partially... I removed the onConfigure() of the markup container to determine the initial visibility of itself depending on the radio default choice. So, my question changes to: Whats the best way todo such an initial visibility without affecting the ajax visibility changing? Patrick Am 28.03.2013 11:18, schrieb Sven Meier: My behavior on the gui is: - the first render process of the page itself shows the container once - on clicking my radiochoice the webmarkupcontainer disappears but is still available, due to outPutMarkUpPlaceHolder true, but the content is completly removed and the visibility of the container is always display:none. Using setVisible or using setVisibilityAllowed does not make any changes. So your container disappears but does not show up again after setting it visible? Sven On 03/28/2013 11:12 AM, Patrick Davids wrote: Hi together, I searched the web for several hours and always get the same results for setting the visibilty for components via ajax, but I cannot get it work. The should work solution is: - Creat an extra a WebMarkupContainer in your page - add your subcomponents to this container - setOutPutMarkUpIdPlacerHolderTag(true) for the container - implement ajax anywhere (in my case its an AjaxFormChoiceComponentUpdatingBehavior) - override its onUpdate and setVisibilty of the container true or false depending on something - do target.add( the webmarkupcontainer ) Tada... but nothing happens. My problems are: All solutions I found are about 2-5 years old, so: - the usage of setVisibilty has changed (setVisible vs. setVisibilityAllowed() discussion) - target does not have an addComponent() method anymore (but this is easy, should be add(...)) - perhaps the hole SetVisibilityViaAjax-way has changed since newer wicket versions? My behavior on the gui is: - the first render process of the page itself shows the container once - on clicking my radiochoice the webmarkupcontainer disappears but is still available, due to outPutMarkUpPlaceHolder true, but the content is completly removed and the visibility of the container is always display:none. Using setVisible or using setVisibilityAllowed does not make any changes. Whats wrong?!? :-( (using wicket 6.6) kind regards Patrick - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Mit freundlichen Grüßen, Patrick Davids NuboIT GmbH Co. KG Kieler Str. 103-107 • 25474 Bönningstedt Email: patrick.dav...@nuboit.de Handelsregister: HRA6819 Pi | Amtsgericht Pinneberg Geschäftsführung der Verwaltungsgesellschaft Daniel Fraga Zander HRB10145Pi | Amtsgericht Pinneberg
Re: Solved / Re: Need help setting visibility via AjaxFormChoiceComponentUpdatingBehavior
I read this article and my first approach was like If an outside component controls another’s visibility the best way is to override the controlling component’s onConfigure() and call controlled.setVisible() But this doesnt worked, because onConfigure() of my RadioChoice runs only once. What I can do to force onConfigure() of RadioChoice again is, also adding it to the AjaxRequestTarget. r.add(new AjaxFormChoiceComponentUpdatingBehavior(){ @Override protected void onUpdate(AjaxRequestTarget target) { - target.add(r); target.add(wmc); } } This works, too... I am not sure now, whats the better way... *lol* Determine my visibility in my onConfigure() by watching the state of the controller by myself, and adding only one object to the AjaxRequestTarget. or Let set the visibility of me by a controller and adding two objects to the AjaxRequestTarget, so the onConfigure() of the controller can do its visibility setting job. Pull or Push? regards Patrick Am 28.03.2013 14:40, schrieb Martin Grigorov: See http://wicketinaction.com/2011/11/implement-wicket-component-visibility-changes-properly/ On Thu, Mar 28, 2013 at 3:36 PM, Patrick Davids patrick.dav...@nuboit.dewrote: I am not sure what exactly was wrong. Perhaps I had too much code with several active setVisibility...() XYZs code parts. I started from the beginning and found the beautiest way for me, looking like this. final RadioChoiceString r = new RadioChoiceString(id, Model.of(), Arrays.asList(new String[{visible,invisible})); r.setModelObject(visible); final WebMarkupContainer wmc = new WebMarkupContainer(wmc){ @Override protected void onConfigure() { if(r.getValue().equals(0)){ setVisibilityAllowed(true); } if(r.getValue().equals(1)){ setVisibilityAllowed(false); } } wmc.setOutputMarkupPlaceholderTag(true); r.add(new AjaxFormChoiceComponentUpdatingBehavior(){ @Override protected void onUpdate(AjaxRequestTarget target) { target.add(wmc); } } ); onConfigure() is always be executed, and can toggle the visibility. AjaxFormChoiceComponentUpdatingBehavior.onUpdate() just pushes back the wmc, and due to onConfigure() of the wmc it determines its visibility depending on the new state of RadioCoice r. kind regards Patrick Am 28.03.2013 13:44, schrieb Martin Grigorov: Hi, All you have explained should just work. It seems the component is still invisible after setVisible(true). Maybe you override it later ?! As you said in #onConfigure() or #isVisible() returns false ? Please show some code. On Thu, Mar 28, 2013 at 12:30 PM, Patrick Davids patrick.dav...@nuboit.dewrote: Additional info: Its now working partially... I removed the onConfigure() of the markup container to determine the initial visibility of itself depending on the radio default choice. So, my question changes to: Whats the best way todo such an initial visibility without affecting the ajax visibility changing? Patrick Am 28.03.2013 11:18, schrieb Sven Meier: My behavior on the gui is: - the first render process of the page itself shows the container once - on clicking my radiochoice the webmarkupcontainer disappears but is still available, due to outPutMarkUpPlaceHolder true, but the content is completly removed and the visibility of the container is always display:none. Using setVisible or using setVisibilityAllowed does not make any changes. So your container disappears but does not show up again after setting it visible? Sven On 03/28/2013 11:12 AM, Patrick Davids wrote: Hi together, I searched the web for several hours and always get the same results for setting the visibilty for components via ajax, but I cannot get it work. The should work solution is: - Creat an extra a WebMarkupContainer in your page - add your subcomponents to this container - setOutPutMarkUpIdPlacerHolderTag(true) for the container - implement ajax anywhere (in my case its an AjaxFormChoiceComponentUpdatingBehavior) - override its onUpdate and setVisibilty of the container true or false depending on something - do target.add( the webmarkupcontainer ) Tada... but nothing happens. My problems are: All solutions I found are about 2-5 years old, so: - the usage of setVisibilty has changed (setVisible vs. setVisibilityAllowed() discussion) - target does not have an addComponent() method anymore (but this is easy, should be add(...)) - perhaps the hole SetVisibilityViaAjax-way has changed since newer wicket versions? My behavior on the gui is: - the first render process of the page itself shows the container once - on clicking my
Need help in refreshing panel..
Hi, I am facing a problem in refreshing a panel. The requirement is I have a panel A which has Panel B. Panel A carries list of LDM which is being passed to Panel B. public class PanelA { private LoadableDetachableModelListlt;PostDomain *detachablePostDomainList *= new LoadableDetachableModelListlt;PostDomain() { protected ListPostDomain load() { return new ArrayListPostDomain(); } }; public PanelA() { *this.setOutputMarkupId(true);* detachablePostDomainList = new LoadableDetachableModelListlt;PostDomain() { /** * */ private static final long serialVersionUID = 1L; @Override protected ListPostDomain load() { return new List(); } }; } *final PanelB panelB= new PanelB(B, detachablePostDomainList, PanelA.this); showPostPanel.setOutputMarkupPlaceholderTag(true); * IndicatingAjaxButton ajaxPostSubmitButton = new IndicatingAjaxButton( submitPost, postForm) { // some operations public void onSubmit(AjaxRequestTarget target, final Form? form) { if (target != null) { target.add(PanelA.this); } } }; } In the above scenario, when I refresh panelA from itself by pressing ajaxPostSubmitButton, LDM list is getting updated but when I refresh PanelA from PanelB, nothing happens. What is the reason? I am refreshing PanelA from PanelB using the same manner. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Need-help-in-refreshing-panel-tp4652014.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Need help in refreshing panel..
The problem is now even more complicated as PanelA is not getting refreshed from PanelB at once. But when I do some operation in PanelB again, PanelA is then refreshed... Here is PanelB: Public class PanelB{ public PanelB(PanelA panelA) { PostDeleteButtonPanel postDeleteButtonPanel = new PostDeleteButtonPanel( postDeleteButtonPanel, postForm) { protected void onConfirm(AjaxRequestTarget target) { try { // some operation if (target != null) *target.add(panelA);* } catch (Exception exception) { exception.printStackTrace(); } } }; } } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Need-help-in-refreshing-panel-tp4652014p4652016.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Need help in refreshing panel..
You have to remember that a LDM is loaded once per request cycle only. If you change the backing list (e.g. on delete of an item) *after* the LDM was already accessed (e.g. a link in a ListView), you have to detach the model once, so it is loaded again: // some operation calling getObject() on the LDM ... ldm.detach(); target.add(component) Hope this helps Sven On 09/16/2012 04:08 PM, kshitiz wrote: The problem is now even more complicated as PanelA is not getting refreshed from PanelB at once. But when I do some operation in PanelB again, PanelA is then refreshed... Here is PanelB: Public class PanelB{ public PanelB(PanelA panelA) { PostDeleteButtonPanel postDeleteButtonPanel = new PostDeleteButtonPanel( postDeleteButtonPanel, postForm) { protected void onConfirm(AjaxRequestTarget target) { try { // some operation if (target != null) *target.add(panelA);* } catch (Exception exception) { exception.printStackTrace(); } } }; } } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Need-help-in-refreshing-panel-tp4652014p4652016.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Need help in refreshing panel..
Hey...that workedbut still I didn't understand how it worked. I am not calling detach method in ajaxPostSubmitButton of PanelA. So how come it is getting refreshed. I am just trying to understand the concept -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Need-help-in-refreshing-panel-tp4652014p4652018.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Need help in refreshing panel..
It depends whether the LDM is accessed *before* you change something in the backing list. Note that events handled by components in a ListView will trigger loading of the LDM as soon as you access the component's model. Sven On 09/16/2012 05:48 PM, kshitiz wrote: Hey...that workedbut still I didn't understand how it worked. I am not calling detach method in ajaxPostSubmitButton of PanelA. So how come it is getting refreshed. I am just trying to understand the concept -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Need-help-in-refreshing-panel-tp4652014p4652018.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Need help in implementing Ajax form
Thank you very much for the reply...you have solved it... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Need-help-in-implementing-Ajax-form-tp4632760p4642518.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Need help in implementing Ajax form
Hi, I am trying to learn Ajax in Wicket and implement it in my project. I am trying to use AjaxFallbackButton but there is something I am missing. Here is my code: StatelessFormUserDomain loginForm = new StatelessFormUserDomain( loginForm, new CompoundPropertyModelUserDomain(userDomain)); AjaxFallbackButton ajaxSubmitButton = new AjaxFallbackButton( ajaxSubmitButton, loginForm) { /** * */ private static final long serialVersionUID = 1L; @Override protected void onSubmit(AjaxRequestTarget target, Form? form) { if(target!=null){ UserService userService = new UserService(); try { userDomain = userService.login(emailIdTextField.getValue(), passwordTextField.getValue()); } catch (Exception exception) { error(exception.getMessage()); error = true; } if (!error) { setResponsePage(Home.class, pageParameters); } } } @Override protected void onError(AjaxRequestTarget target, Form? form) { // TODO Auto-generated method stub } }; loginForm.add(ajaxSubmitButton); } Html is input type=submit value=Login class=formbutton name=Login wicket:id=ajaxSubmitButton/ But when I press Login button, nothing happens...Please help me out here as I am new to this. Is there any good doc available for this? Also, why WICKET AJAX DEBUG mark is coming in bottom right corner of my web page? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Need-help-in-implementing-Ajax-form-tp4632760.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Need help in implementing Ajax form
Hi kshitiz, Well, looking at the code as-is does not make me understand what is going wrong. I mean, it should go until onSubmit(). For you implementation, I can just notice that you did not reattach any feedback panel to the target. Maybe you do not see the error (but if it happens, you can see it in the console as Component feedback message was left unrendered...); and you changed the reference to the userDomain object. the model is then not sync. You need to do something like loginForm.setModelObject(userDomain). Mark the form as final to be able to access it from the anonymous method onSubmit. But apart from that, I just would like to tell you that if you need an authentication mechanism, you'll probably better have to use the wicket-auth-roles. All you need to know is here: http://wicket.apache.org/learn/projects/authroles.html Regards, Sebastien On Mon, May 14, 2012 at 8:10 PM, kshitiz k.agarw...@gmail.com wrote: Hi, I am trying to learn Ajax in Wicket and implement it in my project. I am trying to use AjaxFallbackButton but there is something I am missing. Here is my code: StatelessFormUserDomain loginForm = new StatelessFormUserDomain( loginForm, new CompoundPropertyModelUserDomain(userDomain)); AjaxFallbackButton ajaxSubmitButton = new AjaxFallbackButton( ajaxSubmitButton, loginForm) { /** * */ private static final long serialVersionUID = 1L; @Override protected void onSubmit(AjaxRequestTarget target, Form? form) { if(target!=null){ UserService userService = new UserService(); try { userDomain = userService.login(emailIdTextField.getValue(), passwordTextField.getValue()); } catch (Exception exception) { error(exception.getMessage()); error = true; } if (!error) { setResponsePage(Home.class, pageParameters); } } } @Override protected void onError(AjaxRequestTarget target, Form? form) { // TODO Auto-generated method stub } }; loginForm.add(ajaxSubmitButton); } Html is input type=submit value=Login class=formbutton name=Login wicket:id=ajaxSubmitButton/ But when I press Login button, nothing happens...Please help me out here as I am new to this. Is there any good doc available for this? Also, why WICKET AJAX DEBUG mark is coming in bottom right corner of my web page? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Need-help-in-implementing-Ajax-form-tp4632760.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Need help in implementing Ajax form
And the WICKET AJAX DEBUG mark appears as soon as you are dealing with wicket ajax component. It is not displayed anymore when your configuration changes from development to deployment (web.xml) On Mon, May 14, 2012 at 9:47 PM, Sebastien seb...@gmail.com wrote: Hi kshitiz, Well, looking at the code as-is does not make me understand what is going wrong. I mean, it should go until onSubmit(). For you implementation, I can just notice that you did not reattach any feedback panel to the target. Maybe you do not see the error (but if it happens, you can see it in the console as Component feedback message was left unrendered...); and you changed the reference to the userDomain object. the model is then not sync. You need to do something like loginForm.setModelObject(userDomain). Mark the form as final to be able to access it from the anonymous method onSubmit. But apart from that, I just would like to tell you that if you need an authentication mechanism, you'll probably better have to use the wicket-auth-roles. All you need to know is here: http://wicket.apache.org/learn/projects/authroles.html Regards, Sebastien On Mon, May 14, 2012 at 8:10 PM, kshitiz k.agarw...@gmail.com wrote: Hi, I am trying to learn Ajax in Wicket and implement it in my project. I am trying to use AjaxFallbackButton but there is something I am missing. Here is my code: StatelessFormUserDomain loginForm = new StatelessFormUserDomain( loginForm, new CompoundPropertyModelUserDomain(userDomain)); AjaxFallbackButton ajaxSubmitButton = new AjaxFallbackButton( ajaxSubmitButton, loginForm) { /** * */ private static final long serialVersionUID = 1L; @Override protected void onSubmit(AjaxRequestTarget target, Form? form) { if(target!=null){ UserService userService = new UserService(); try { userDomain = userService.login(emailIdTextField.getValue(), passwordTextField.getValue()); } catch (Exception exception) { error(exception.getMessage()); error = true; } if (!error) { setResponsePage(Home.class, pageParameters); } } } @Override protected void onError(AjaxRequestTarget target, Form? form) { // TODO Auto-generated method stub } }; loginForm.add(ajaxSubmitButton); } Html is input type=submit value=Login class=formbutton name=Login wicket:id=ajaxSubmitButton/ But when I press Login button, nothing happens...Please help me out here as I am new to this. Is there any good doc available for this? Also, why WICKET AJAX DEBUG mark is coming in bottom right corner of my web page? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Need-help-in-implementing-Ajax-form-tp4632760.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Need help in implementing Ajax form
Hi, - Use Firefox with Firebug to track down client-server comunication (or lack of it) - Do you have javascript enebled? If terget == null then nothing happens in onSubmit() method. - Add some logging (log4j etc.), to your app Regards Wlodek 2012/5/14 Sebastien seb...@gmail.com: And the WICKET AJAX DEBUG mark appears as soon as you are dealing with wicket ajax component. It is not displayed anymore when your configuration changes from development to deployment (web.xml) On Mon, May 14, 2012 at 9:47 PM, Sebastien seb...@gmail.com wrote: Hi kshitiz, Well, looking at the code as-is does not make me understand what is going wrong. I mean, it should go until onSubmit(). For you implementation, I can just notice that you did not reattach any feedback panel to the target. Maybe you do not see the error (but if it happens, you can see it in the console as Component feedback message was left unrendered...); and you changed the reference to the userDomain object. the model is then not sync. You need to do something like loginForm.setModelObject(userDomain). Mark the form as final to be able to access it from the anonymous method onSubmit. But apart from that, I just would like to tell you that if you need an authentication mechanism, you'll probably better have to use the wicket-auth-roles. All you need to know is here: http://wicket.apache.org/learn/projects/authroles.html Regards, Sebastien On Mon, May 14, 2012 at 8:10 PM, kshitiz k.agarw...@gmail.com wrote: Hi, I am trying to learn Ajax in Wicket and implement it in my project. I am trying to use AjaxFallbackButton but there is something I am missing. Here is my code: StatelessFormUserDomain loginForm = new StatelessFormUserDomain( loginForm, new CompoundPropertyModelUserDomain(userDomain)); AjaxFallbackButton ajaxSubmitButton = new AjaxFallbackButton( ajaxSubmitButton, loginForm) { /** * */ private static final long serialVersionUID = 1L; @Override protected void onSubmit(AjaxRequestTarget target, Form? form) { if(target!=null){ UserService userService = new UserService(); try { userDomain = userService.login(emailIdTextField.getValue(), passwordTextField.getValue()); } catch (Exception exception) { error(exception.getMessage()); error = true; } if (!error) { setResponsePage(Home.class, pageParameters); } } } @Override protected void onError(AjaxRequestTarget target, Form? form) { // TODO Auto-generated method stub } }; loginForm.add(ajaxSubmitButton); } Html is input type=submit value=Login class=formbutton name=Login wicket:id=ajaxSubmitButton/ But when I press Login button, nothing happens...Please help me out here as I am new to this. Is there any good doc available for this? Also, why WICKET AJAX DEBUG mark is coming in bottom right corner of my web page? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Need-help-in-implementing-Ajax-form-tp4632760.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Need help in implementing Ajax form
Damed! I just make me realizing I wrote the anonymous method onSubmit! I cannot believe it... On Mon, May 14, 2012 at 9:59 PM, W Mazur wlodekma...@gmail.com wrote: Hi, - Use Firefox with Firebug to track down client-server comunication (or lack of it) - Do you have javascript enebled? If terget == null then nothing happens in onSubmit() method. - Add some logging (log4j etc.), to your app Regards Wlodek 2012/5/14 Sebastien seb...@gmail.com: And the WICKET AJAX DEBUG mark appears as soon as you are dealing with wicket ajax component. It is not displayed anymore when your configuration changes from development to deployment (web.xml) On Mon, May 14, 2012 at 9:47 PM, Sebastien seb...@gmail.com wrote: Hi kshitiz, Well, looking at the code as-is does not make me understand what is going wrong. I mean, it should go until onSubmit(). For you implementation, I can just notice that you did not reattach any feedback panel to the target. Maybe you do not see the error (but if it happens, you can see it in the console as Component feedback message was left unrendered...); and you changed the reference to the userDomain object. the model is then not sync. You need to do something like loginForm.setModelObject(userDomain). Mark the form as final to be able to access it from the anonymous method onSubmit. But apart from that, I just would like to tell you that if you need an authentication mechanism, you'll probably better have to use the wicket-auth-roles. All you need to know is here: http://wicket.apache.org/learn/projects/authroles.html Regards, Sebastien On Mon, May 14, 2012 at 8:10 PM, kshitiz k.agarw...@gmail.com wrote: Hi, I am trying to learn Ajax in Wicket and implement it in my project. I am trying to use AjaxFallbackButton but there is something I am missing. Here is my code: StatelessFormUserDomain loginForm = new StatelessFormUserDomain( loginForm, new CompoundPropertyModelUserDomain(userDomain)); AjaxFallbackButton ajaxSubmitButton = new AjaxFallbackButton( ajaxSubmitButton, loginForm) { /** * */ private static final long serialVersionUID = 1L; @Override protected void onSubmit(AjaxRequestTarget target, Form? form) { if(target!=null){ UserService userService = new UserService(); try { userDomain = userService.login(emailIdTextField.getValue(), passwordTextField.getValue()); } catch (Exception exception) { error(exception.getMessage()); error = true; } if (!error) { setResponsePage(Home.class, pageParameters); } } } @Override protected void onError(AjaxRequestTarget target, Form? form) { // TODO Auto-generated method stub } }; loginForm.add(ajaxSubmitButton); } Html is input type=submit value=Login class=formbutton name=Login wicket:id=ajaxSubmitButton/ But when I press Login button, nothing happens...Please help me out here as I am new to this. Is there any good doc available for this? Also, why WICKET AJAX DEBUG mark is coming in bottom right corner of my web page? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Need-help-in-implementing-Ajax-form-tp4632760.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
need help using wicket:enclosure tag.
Hi, I am using wicket:enclosureto hide some rows in a table. Take for ex., trtd Phone: span wicket:id=phoneNumber//td /tr wicket:enclosure trtd Fax: span wicket:id=faxNumbertd/tr /wicket:enclosure Initially faxNumber is *not visible*. So the faxNumber row is not rendered. Later based on some user action, i want to make faxNumber to *visible*. How to do this? -- regards, *Madan* *www.educator.eu*
Re: need help using wicket:enclosure tag.
Just make faxNumber component visible and re-render the page. If you use ajax then you'll have to re-render the repeater's parent On Thu, Jun 9, 2011 at 10:10 AM, Madan Mohan mmo...@educator.eu wrote: Hi, I am using wicket:enclosureto hide some rows in a table. Take for ex., trtd Phone: span wicket:id=phoneNumber//td /tr wicket:enclosure trtd Fax: span wicket:id=faxNumbertd/tr /wicket:enclosure Initially faxNumber is *not visible*. So the faxNumber row is not rendered. Later based on some user action, i want to make faxNumber to *visible*. How to do this? -- regards, *Madan* *www.educator.eu* -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: need help using wicket:enclosure tag.
You might want to check out Wicketopia. It has logic for handling this kind of stuff and it might even do some of it automatically for you. http://wicketopia.sourceforge.net/ Download it from SVN, build it, and run the example application. There is an example in there that hides/shows the SSN field based upon whether or not the logged in user is an admin. On Thu, Jun 9, 2011 at 4:10 AM, Madan Mohan mmo...@educator.eu wrote: Hi, I am using wicket:enclosureto hide some rows in a table. Take for ex., trtd Phone: span wicket:id=phoneNumber//td /tr wicket:enclosure trtd Fax: span wicket:id=faxNumbertd/tr /wicket:enclosure Initially faxNumber is *not visible*. So the faxNumber row is not rendered. Later based on some user action, i want to make faxNumber to *visible*. How to do this? -- regards, *Madan* *www.educator.eu* - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: need help using wicket:enclosure tag.
@Martin Grigorov, @James Carman: Thanks ;) I was doing mistake while re-rendering the parent. I fixed it, working fine now ;) On Thu, Jun 9, 2011 at 4:59 PM, James Carman ja...@carmanconsulting.comwrote: You might want to check out Wicketopia. It has logic for handling this kind of stuff and it might even do some of it automatically for you. http://wicketopia.sourceforge.net/ Download it from SVN, build it, and run the example application. There is an example in there that hides/shows the SSN field based upon whether or not the logged in user is an admin. On Thu, Jun 9, 2011 at 4:10 AM, Madan Mohan mmo...@educator.eu wrote: Hi, I am using wicket:enclosureto hide some rows in a table. Take for ex., trtd Phone: span wicket:id=phoneNumber//td /tr wicket:enclosure trtd Fax: span wicket:id=faxNumbertd/tr /wicket:enclosure Initially faxNumber is *not visible*. So the faxNumber row is not rendered. Later based on some user action, i want to make faxNumber to *visible*. How to do this? -- regards, *Madan* *www.educator.eu* - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- regards, *Madan* *www.educator.eu*
need help with spring annotations
Hi there, I was wondering if anyone could help me with spring annotations, I seem to have having some problems. I'm trying to inject my UserService into a CustomAuthenticatedWebSession I wrote to do validation for my pages. I get a NPE when I hit any page because my bean does not seem to have been injected. Here's my AuthenticatedWebSession Class: public class CustomAuthenticatedWebSession extends AuthenticatedWebSession{ private static final long serialVersionUID = 4713195500103052768L; @SpringBean(name=userService) transient private UserService userService; public void setUserService(final UserService userService){ this.userService = userService; } transient private String currentUser = null; public CustomAuthenticatedWebSession(final Request request){ super(request); } @Override public boolean authenticate(final String username, final String password){ currentUser = username; return userService.authenticate(username, password); } @Override public Roles getRoles(){ return userService.getRoles(currentUser, isSignedIn()); } } my applicationContext.xml file: ?xml version=1.0 encoding=UTF-8? beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:aop=http://www.springframework.org/schema/aop; xmlns:tx=http://www.springframework.org/schema/tx; xmlns:context=http://www.springframework.org/schema/context; xsi:schemaLocation= http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd bean id=wicketApplication class=uk.co.company.product.presentation.wicket.app.WicketApplication / bean id=placeholderConfigurer class=org.springframework.beans.factory.config.PropertyPlaceholderConfigurer property name=ignoreUnresolvablePlaceholders value=false / property name=systemPropertiesModeName value=SYSTEM_PROPERTIES_MODE_OVERRIDE / property name=ignoreResourceNotFound value=false / property name=locations list valueclasspath*:/application.properties/value /list /property /bean bean id=dataSource class=org.springframework.jdbc.datasource.DriverManagerDataSource property name=driverClassNamevalue${jdbc.driver}/value/property property name=urlvalue${jdbc.url}/value/property property name=usernamevalue${jdbc.username}/value/property property name=passwordvalue${jdbc.password}/value/property /bean tx:annotation-driven transaction-manager=txManager / bean id=txManager class=org.springframework.orm.hibernate3.HibernateTransactionManager property name=sessionFactory ref bean=sessionFactory / /property /bean !-- bean id=interceptor class=org.springframework.orm.hibernate3.HibernateInterceptor /bean -- bean id=sessionFactory class=org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean property name=dataSource ref=dataSource / property name=hibernateProperties props !-- prop key=hibernate.hbm2ddl.autocreate/prop -- prop key=hibernate.dialect${hibernate.dialect}/prop prop key=hibernate.connection.pool_size5/prop prop key=hibernate.current_session_context_classthread/prop prop key=hibernate.show_sqltrue/prop prop key=hibernate.cglib.use_reflection_optimizertrue/prop prop key=hibernate.cache.provider_classorg.hibernate.cache.EhCacheProvider/prop prop key=hibernate.hibernate.cache.use_query_cachetrue/prop /props /property !-- property name=entityInterceptorref bean=interceptor //property -- property name=packagesToScanlist valueuk.co.company.product.persistance.hibernate/value /list/property /bean context:component-scan base-package=uk.co.company.product / /beans and web.xml ?xml version=1.0 encoding=UTF-8? web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation= http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd version=2.4 display-nameZenTemplate/display-name context-param param-namecontextConfigLocation/param-name param-valueclasspath:applicationContext.xml/param-value /context-param listener
Re: need help with spring annotations
prop key=hibernate.hibernate.cache.use_query_cachetrue/prop /props /property !-- property name=entityInterceptorref bean=interceptor //property -- property name=packagesToScanlist valueuk.co.company.product.persistance.hibernate/value /list/property /bean context:component-scan base-package=uk.co.company.product / /beans and web.xml ?xml version=1.0 encoding=UTF-8? web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation= http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd version=2.4 display-nameZenTemplate/display-name context-param param-namecontextConfigLocation/param-name param-valueclasspath:applicationContext.xml/param-value /context-param listener listener-classorg.springframework.web.context.ContextLoaderListener/listener-class /listener filter filter-nameopensessioninview/filter-name filter-classorg.springframework.orm.hibernate3.support.OpenSessionInViewFilter/filter-class /filter filter filter-namewicket-spring-hibernate/filter-name filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class init-param param-nameapplicationFactoryClassName/param-name param-valueorg.apache.wicket.spring.SpringWebApplicationFactory/param-value /init-param init-param param-nameapplicationClassName/param-name param-valueuk.co.company.product.presentation.wicket.app.WicketApplication/param-value /init-param /filter filter-mapping filter-nameopensessioninview/filter-name url-pattern/*/url-pattern /filter-mapping filter-mapping filter-namewicket-spring-hibernate/filter-name url-pattern/*/url-pattern /filter-mapping /web-app Also here is my simple service: @Service(userService) public class UserService{ final private TestUserService testUserService = new TestUserService(); public UserService(){ super(); } �...@transactional final public boolean authenticate(final String userName, final String password){ return testUserService.authenticate(userName, password); } �...@transactional final public Roles getRoles(final String userName, final boolean signedIn){ return testUserService.getRoles(userName, signedIn); } } If anyone has any ideas please let me know! Cheers, Adam - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3058948i=1 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3058948i=2 -- View message @ http://apache-wicket.1842946.n4.nabble.com/need-help-with-spring-annotations-tp3058944p3058948.html To start a new topic under Apache Wicket, email ml-node+1842946-1499480286-201...@n4.nabble.comml-node%2b1842946-1499480286-201...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=YWRhbS5zLmdpYmJvbnNAZ21haWwuY29tfDE4NDI5NDZ8LTUzNzMyMDU4OQ==. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/need-help-with-spring-annotations-tp3058944p3058950.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: need help with spring annotations
=sessionFactory class=org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean property name=dataSource ref=dataSource / property name=hibernateProperties props !-- prop key=hibernate.hbm2ddl.autocreate/prop -- prop key=hibernate.dialect${hibernate.dialect}/prop prop key=hibernate.connection.pool_size5/prop prop key=hibernate.current_session_context_classthread/prop prop key=hibernate.show_sqltrue/prop prop key=hibernate.cglib.use_reflection_optimizertrue/prop prop key=hibernate.cache.provider_classorg.hibernate.cache.EhCacheProvider/prop prop key=hibernate.hibernate.cache.use_query_cachetrue/prop /props /property !-- property name=entityInterceptorref bean=interceptor //property -- property name=packagesToScanlist valueuk.co.company.product.persistance.hibernate/value /list/property /bean context:component-scan base-package=uk.co.company.product / /beans and web.xml ?xml version=1.0 encoding=UTF-8? web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation= http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd version=2.4 display-nameZenTemplate/display-name context-param param-namecontextConfigLocation/param-name param-valueclasspath:applicationContext.xml/param-value /context-param listener listener-classorg.springframework.web.context.ContextLoaderListener/listener-class /listener filter filter-nameopensessioninview/filter-name filter-classorg.springframework.orm.hibernate3.support.OpenSessionInViewFilter/filter-class /filter filter filter-namewicket-spring-hibernate/filter-name filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class init-param param-nameapplicationFactoryClassName/param-name param-valueorg.apache.wicket.spring.SpringWebApplicationFactory/param-value /init-param init-param param-nameapplicationClassName/param-name param-valueuk.co.company.product.presentation.wicket.app.WicketApplication/param-value /init-param /filter filter-mapping filter-nameopensessioninview/filter-name url-pattern/*/url-pattern /filter-mapping filter-mapping filter-namewicket-spring-hibernate/filter-name url-pattern/*/url-pattern /filter-mapping /web-app Also here is my simple service: @Service(userService) public class UserService{ final private TestUserService testUserService = new TestUserService(); public UserService(){ super(); } @Transactional final public boolean authenticate(final String userName, final String password){ return testUserService.authenticate(userName, password); } @Transactional final public Roles getRoles(final String userName, final boolean signedIn){ return testUserService.getRoles(userName, signedIn); } } If anyone has any ideas please let me know! Cheers, Adam - To unsubscribe, e-mail: [hidden email] http://user/SendEmail.jtp?type=nodenode=3058948i=1 For additional commands, e-mail: [hidden email] http://user/SendEmail.jtp?type=nodenode=3058948i=2 -- View message @ http://apache-wicket.1842946.n4.nabble.com/need-help-with-spring-annotations-tp3058944p3058948.htmlhttp://apache-wicket.1842946.n4.nabble.com/need-help-with-spring-annotations-tp3058944p3058948.html?by-user=t To start a new topic under Apache Wicket, email [hidden email] http://user/SendEmail.jtp?type=nodenode=3058965i=3[hidden email] http://user/SendEmail.jtp?type=nodenode=3058965i=4 To unsubscribe from Apache Wicket, click here http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=YWRhbS5zLmdpYmJvbnNAZ21haWwuY29tfDE4NDI5NDZ8LTUzNzMyMDU4OQ==http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=YWRhbS5zLmdpYmJvbnNAZ21haWwuY29tfDE4NDI5NDZ8LTUzNzMyMDU4OQ==by-user=t. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/need-help-with-spring-annotations-tp3058944p3058950.htmlhttp://apache-wicket.1842946.n4.nabble.com/need-help-with-spring-annotations-tp3058944p3058950.html?by-user=t Sent from the Users forum mailing list archive at Nabble.com
Re: need help with spring annotations
Hello, �...@springbean(name=userService) transient private UserService userService; Do not use injected beans as transient fields, because it will produce that the field is not serialized and thus the reference will be null after the page is hydrated. If you mark fields with @SpringBean, Wicket will automatically inject a serializable proxy that can be reconstructed after hydratation. HTH. Regards. -- Mauro Ciancio - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: need help with spring annotations
Oh thanks for the tip! I've corrected that now. :) How do you inject Hibernate DAOs into your Spring Services using annotations? Is that possible? I also seem to be having some problems with the sessionFactory being inject into the DAOs. Any ideas? Services are there now though, yay :) On 25 November 2010 14:46, Mauro Ciancio [via Apache Wicket] ml-node+3059075-939733042-201...@n4.nabble.comml-node%2b3059075-939733042-201...@n4.nabble.com wrote: Hello, @SpringBean(name=userService) transient private UserService userService; Do not use injected beans as transient fields, because it will produce that the field is not serialized and thus the reference will be null after the page is hydrated. If you mark fields with @SpringBean, Wicket will automatically inject a serializable proxy that can be reconstructed after hydratation. HTH. Regards. -- Mauro Ciancio - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3059075i=0 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3059075i=1 -- View message @ http://apache-wicket.1842946.n4.nabble.com/need-help-with-spring-annotations-tp3058944p3059075.html To start a new topic under Apache Wicket, email ml-node+1842946-1499480286-201...@n4.nabble.comml-node%2b1842946-1499480286-201...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=YWRhbS5zLmdpYmJvbnNAZ21haWwuY29tfDE4NDI5NDZ8LTUzNzMyMDU4OQ==. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/need-help-with-spring-annotations-tp3058944p3059121.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: need help with spring annotations
Hi, How do you inject Hibernate DAOs into your Spring Services using annotations? Is that possible? I also seem to be having some problems with the sessionFactory being inject into the DAOs. Any ideas? That is configured with Spring, doesn't depends on Wicket at all. I usually configure dependencies in XML files but AFAIR you can use @Autowired annotation. Regards. -- Mauro Ciancio - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Need help with Nested DataTable in Form - finding values in submit method
I think I posted this message to the wrong forum. So I'm correcting my mistake. I'm just getting started with Wicket. I've looked at every example I can find related to checkboxes in forms but none of them answer my question. The wicket examples have nothing in the submit button code to describe how to do this. I have a form. Inside the form is a nested datatable. In the datatable is a column that has a check box in it. I accomplished this by putting a panel in the cell and then a checkbox within the panel. This is working fine. It runs, and the checkboxes are displayed properly. The problems start when I try to figure out what checkboxes were selected. When the submit button on the form is clicked, I want to know what checkboxes were selected. I want to do this within the submit button because there will be other buttons that do other tasks. How do I find the values I'm looking for? Lee -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Need-help-with-Nested-DataTable-in-Form-finding-values-in-submit-method-tp3000718p3000718.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Need help with Nested DataTable in Form - finding values in submit method
you do this the same way as with all other form components, bind the checkboxes to some model that stores the values in some field you can access. AbstractCheckBoxModel may also be useful for this usecase. -igor On Mon, Oct 18, 2010 at 10:48 AM, leech lee.chal...@gmail.com wrote: I think I posted this message to the wrong forum. So I'm correcting my mistake. I'm just getting started with Wicket. I've looked at every example I can find related to checkboxes in forms but none of them answer my question. The wicket examples have nothing in the submit button code to describe how to do this. I have a form. Inside the form is a nested datatable. In the datatable is a column that has a check box in it. I accomplished this by putting a panel in the cell and then a checkbox within the panel. This is working fine. It runs, and the checkboxes are displayed properly. The problems start when I try to figure out what checkboxes were selected. When the submit button on the form is clicked, I want to know what checkboxes were selected. I want to do this within the submit button because there will be other buttons that do other tasks. How do I find the values I'm looking for? Lee -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Need-help-with-Nested-DataTable-in-Form-finding-values-in-submit-method-tp3000718p3000718.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Need Help Wicket Stuff push
I tried the wicket push chat example which i found at wicket stuff svn..wicket-stuff/wicketstuff-core/push-parent/push-examples I got the examples to work fine. Now I am trying to create something like a notification using TimerPushService. So i make 2 pages one for sending... and another for receiving. I added listeners to both pages using
Re: Need Help Wicket Stuff push
On Tue, Mar 2, 2010 at 7:35 PM, Stevenson Cunanan stevenson.cuna...@gmail.com wrote: I tried the wicket push chat example which i found at wicket stuff svn..wicket-stuff/wicketstuff-core/push-parent/push-examples I got the examples to work fine. Now I am trying to create something like a notification using TimerPushService. So i make 2 pages one for sending... and another for receiving. I added listeners to both pages using sorry please ignore this message i wasnt able to compose the message properly
Re: Need help with error with in my list code
On Mon, Oct 26, 2009 at 4:57 AM, Haulyn R. Jason saharab...@gmail.comwrote: I do not think JavaReble is a good tool for Wicket. Try Glassfish with hot deploy with netbeans, works very well with Wicket. Why would Wicket not work well with JavaRebel ? It works fine for me. Maarten On Mon, Oct 26, 2009 at 10:50 AM, Lester Chua cicowic...@gmail.com wrote: Update: I found out what the was. I was running Jetty via JavaRebel agent. Somehow JavaRebel could not load in the changes in the Java code properly and that was what caused the code error. There was nothing wrong with the code. Thanks. On Mon, Oct 26, 2009 at 10:43 AM, Lester Chua cicowic...@gmail.com wrote: Hi, I'm very new to wicket and need some help with what I thought is very straight forward code. Wicket Version 1.4.3 Code: -- Html - form wicket:id=dataForm Grouping: select wicket:id=grouping size=6/select Additional Remarks: textarea wicket:id=additionalRemarks name=additionalRemarks/textarea input type=submit value=In Process / /form -- Java -- Form dataForm = new Form(dataForm) { @Override protected void onSubmit() { System.out.println(Form 4 submitted); } }; dataForm.add(new TextArea(additionalRemarks, new Model(additionalRemarks))); ListString groupings = Arrays.asList(Group 1, Group 2); DropDownChoice grouping = new DropDownChoice(grouping, groupings); dataForm.add(grouping); add(dataForm); When I visit my page, I keep getting the error: --- Error - WicketMessage: Unable to find component with id 'grouping' in [MarkupContainer [Component id = dataForm]]. This means that you declared wicket:id=grouping in your markup, but that you either did not add the component to your page at all, or that the hierarchy does not match. It points to select wicket:id=grouping size=6 in my html. Removing the select lets the page render correctly. Is the error caused by me adding a DropDownChoice component to a Form? I've looked at the web examples and they dont seem to have a problem and yet my simple select form cannot run. Did I misunderstand the component hierarchy? DropDownList cannot be added to a Form? Help will be appreciated. -- Many thanks! Haulyn Microproduction You can access me with the following ways: Location: Shandong Jinan Shumagang 6H-8, 25 Mobile: +086-15864011231 email: saharab...@gmail.com, hmp.hau...@foxmail.com website: http://haulynjason.net gtalk: saharab...@gmail.com skype: saharabear QQ: 378606292 persional Twitter: http://twitter.com/saharabear persional Linkedin: http://www.linkedin.com/in/haulyn Haulyn Microproduction Twitter: http://twitter.com/haulynmp Haulyn Jason - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Need help with error with in my list code
Hi, To set the record straight, JavaRebel works very well for Wicket. My error was that I didnt understand Wicket's object lifecycles. I did not refresh my wicket pages after a building affected page classes. So the object instances where still old ones when I interacted with the pages. I had assumed wrongly that Wicket worked the same way as Struts etc (i.e. traditional web servlets based technologies) and did not realise that the Page instance is somehow held in memory by WIcket for my page session. JavaRebel worked as expected after I do a refresh of the page after rebuilding the page class. I repeat JavaRebel works very well for Wicket. Is there a good explaination or writeup on Wicket Page and Component lifecycles that I can read up so that I can understand the lifecycle properly? On Mon, Oct 26, 2009 at 4:10 PM, Maarten Bosteels mbosteels@gmail.comwrote: On Mon, Oct 26, 2009 at 4:57 AM, Haulyn R. Jason saharab...@gmail.com wrote: I do not think JavaReble is a good tool for Wicket. Try Glassfish with hot deploy with netbeans, works very well with Wicket. Why would Wicket not work well with JavaRebel ? It works fine for me. Maarten On Mon, Oct 26, 2009 at 10:50 AM, Lester Chua cicowic...@gmail.com wrote: Update: I found out what the was. I was running Jetty via JavaRebel agent. Somehow JavaRebel could not load in the changes in the Java code properly and that was what caused the code error. There was nothing wrong with the code. Thanks. On Mon, Oct 26, 2009 at 10:43 AM, Lester Chua cicowic...@gmail.com wrote: Hi, I'm very new to wicket and need some help with what I thought is very straight forward code. Wicket Version 1.4.3 Code: -- Html - form wicket:id=dataForm Grouping: select wicket:id=grouping size=6/select Additional Remarks: textarea wicket:id=additionalRemarks name=additionalRemarks/textarea input type=submit value=In Process / /form -- Java -- Form dataForm = new Form(dataForm) { @Override protected void onSubmit() { System.out.println(Form 4 submitted); } }; dataForm.add(new TextArea(additionalRemarks, new Model(additionalRemarks))); ListString groupings = Arrays.asList(Group 1, Group 2); DropDownChoice grouping = new DropDownChoice(grouping, groupings); dataForm.add(grouping); add(dataForm); When I visit my page, I keep getting the error: --- Error - WicketMessage: Unable to find component with id 'grouping' in [MarkupContainer [Component id = dataForm]]. This means that you declared wicket:id=grouping in your markup, but that you either did not add the component to your page at all, or that the hierarchy does not match. It points to select wicket:id=grouping size=6 in my html. Removing the select lets the page render correctly. Is the error caused by me adding a DropDownChoice component to a Form? I've looked at the web examples and they dont seem to have a problem and yet my simple select form cannot run. Did I misunderstand the component hierarchy? DropDownList cannot be added to a Form? Help will be appreciated. -- Many thanks! Haulyn Microproduction You can access me with the following ways: Location: Shandong Jinan Shumagang 6H-8, 25 Mobile: +086-15864011231 email: saharab...@gmail.com, hmp.hau...@foxmail.com website: http://haulynjason.net gtalk: saharab...@gmail.com skype: saharabear QQ: 378606292 persional Twitter: http://twitter.com/saharabear persional Linkedin: http://www.linkedin.com/in/haulyn Haulyn Microproduction Twitter: http://twitter.com/haulynmp Haulyn Jason - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Need help with error with in my list code
Hi, I'm very new to wicket and need some help with what I thought is very straight forward code. Wicket Version 1.4.3 Code: -- Html - form wicket:id=dataForm Grouping: select wicket:id=grouping size=6/select Additional Remarks: textarea wicket:id=additionalRemarks name=additionalRemarks/textarea input type=submit value=In Process / /form -- Java -- Form dataForm = new Form(dataForm) { @Override protected void onSubmit() { System.out.println(Form 4 submitted); } }; dataForm.add(new TextArea(additionalRemarks, new Model(additionalRemarks))); ListString groupings = Arrays.asList(Group 1, Group 2); DropDownChoice grouping = new DropDownChoice(grouping, groupings); dataForm.add(grouping); add(dataForm); When I visit my page, I keep getting the error: --- Error - WicketMessage: Unable to find component with id 'grouping' in [MarkupContainer [Component id = dataForm]]. This means that you declared wicket:id=grouping in your markup, but that you either did not add the component to your page at all, or that the hierarchy does not match. It points to select wicket:id=grouping size=6 in my html. Removing the select lets the page render correctly. Is the error caused by me adding a DropDownChoice component to a Form? I've looked at the web examples and they dont seem to have a problem and yet my simple select form cannot run. Did I misunderstand the component hierarchy? DropDownList cannot be added to a Form? Help will be appreciated.
Re: Need help with error with in my list code
Update: I found out what the was. I was running Jetty via JavaRebel agent. Somehow JavaRebel could not load in the changes in the Java code properly and that was what caused the code error. There was nothing wrong with the code. Thanks. On Mon, Oct 26, 2009 at 10:43 AM, Lester Chua cicowic...@gmail.com wrote: Hi, I'm very new to wicket and need some help with what I thought is very straight forward code. Wicket Version 1.4.3 Code: -- Html - form wicket:id=dataForm Grouping: select wicket:id=grouping size=6/select Additional Remarks: textarea wicket:id=additionalRemarks name=additionalRemarks/textarea input type=submit value=In Process / /form -- Java -- Form dataForm = new Form(dataForm) { @Override protected void onSubmit() { System.out.println(Form 4 submitted); } }; dataForm.add(new TextArea(additionalRemarks, new Model(additionalRemarks))); ListString groupings = Arrays.asList(Group 1, Group 2); DropDownChoice grouping = new DropDownChoice(grouping, groupings); dataForm.add(grouping); add(dataForm); When I visit my page, I keep getting the error: --- Error - WicketMessage: Unable to find component with id 'grouping' in [MarkupContainer [Component id = dataForm]]. This means that you declared wicket:id=grouping in your markup, but that you either did not add the component to your page at all, or that the hierarchy does not match. It points to select wicket:id=grouping size=6 in my html. Removing the select lets the page render correctly. Is the error caused by me adding a DropDownChoice component to a Form? I've looked at the web examples and they dont seem to have a problem and yet my simple select form cannot run. Did I misunderstand the component hierarchy? DropDownList cannot be added to a Form? Help will be appreciated.
Re: Need help with error with in my list code
I do not think JavaReble is a good tool for Wicket. Try Glassfish with hot deploy with netbeans, works very well with Wicket. On Mon, Oct 26, 2009 at 10:50 AM, Lester Chua cicowic...@gmail.com wrote: Update: I found out what the was. I was running Jetty via JavaRebel agent. Somehow JavaRebel could not load in the changes in the Java code properly and that was what caused the code error. There was nothing wrong with the code. Thanks. On Mon, Oct 26, 2009 at 10:43 AM, Lester Chua cicowic...@gmail.com wrote: Hi, I'm very new to wicket and need some help with what I thought is very straight forward code. Wicket Version 1.4.3 Code: -- Html - form wicket:id=dataForm Grouping: select wicket:id=grouping size=6/select Additional Remarks: textarea wicket:id=additionalRemarks name=additionalRemarks/textarea input type=submit value=In Process / /form -- Java -- Form dataForm = new Form(dataForm) { @Override protected void onSubmit() { System.out.println(Form 4 submitted); } }; dataForm.add(new TextArea(additionalRemarks, new Model(additionalRemarks))); ListString groupings = Arrays.asList(Group 1, Group 2); DropDownChoice grouping = new DropDownChoice(grouping, groupings); dataForm.add(grouping); add(dataForm); When I visit my page, I keep getting the error: --- Error - WicketMessage: Unable to find component with id 'grouping' in [MarkupContainer [Component id = dataForm]]. This means that you declared wicket:id=grouping in your markup, but that you either did not add the component to your page at all, or that the hierarchy does not match. It points to select wicket:id=grouping size=6 in my html. Removing the select lets the page render correctly. Is the error caused by me adding a DropDownChoice component to a Form? I've looked at the web examples and they dont seem to have a problem and yet my simple select form cannot run. Did I misunderstand the component hierarchy? DropDownList cannot be added to a Form? Help will be appreciated. -- Many thanks! Haulyn Microproduction You can access me with the following ways: Location: Shandong Jinan Shumagang 6H-8, 25 Mobile: +086-15864011231 email: saharab...@gmail.com, hmp.hau...@foxmail.com website: http://haulynjason.net gtalk: saharab...@gmail.com skype: saharabear QQ: 378606292 persional Twitter: http://twitter.com/saharabear persional Linkedin: http://www.linkedin.com/in/haulyn Haulyn Microproduction Twitter: http://twitter.com/haulynmp Haulyn Jason - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Need help with error with in my list code
Thanks for the reference, I'll take a look at it. On Mon, Oct 26, 2009 at 10:57 AM, Haulyn R. Jason saharab...@gmail.comwrote: I do not think JavaReble is a good tool for Wicket. Try Glassfish with hot deploy with netbeans, works very well with Wicket. On Mon, Oct 26, 2009 at 10:50 AM, Lester Chua cicowic...@gmail.com wrote: Update: I found out what the was. I was running Jetty via JavaRebel agent. Somehow JavaRebel could not load in the changes in the Java code properly and that was what caused the code error. There was nothing wrong with the code. Thanks. On Mon, Oct 26, 2009 at 10:43 AM, Lester Chua cicowic...@gmail.com wrote: Hi, I'm very new to wicket and need some help with what I thought is very straight forward code. Wicket Version 1.4.3 Code: -- Html - form wicket:id=dataForm Grouping: select wicket:id=grouping size=6/select Additional Remarks: textarea wicket:id=additionalRemarks name=additionalRemarks/textarea input type=submit value=In Process / /form -- Java -- Form dataForm = new Form(dataForm) { @Override protected void onSubmit() { System.out.println(Form 4 submitted); } }; dataForm.add(new TextArea(additionalRemarks, new Model(additionalRemarks))); ListString groupings = Arrays.asList(Group 1, Group 2); DropDownChoice grouping = new DropDownChoice(grouping, groupings); dataForm.add(grouping); add(dataForm); When I visit my page, I keep getting the error: --- Error - WicketMessage: Unable to find component with id 'grouping' in [MarkupContainer [Component id = dataForm]]. This means that you declared wicket:id=grouping in your markup, but that you either did not add the component to your page at all, or that the hierarchy does not match. It points to select wicket:id=grouping size=6 in my html. Removing the select lets the page render correctly. Is the error caused by me adding a DropDownChoice component to a Form? I've looked at the web examples and they dont seem to have a problem and yet my simple select form cannot run. Did I misunderstand the component hierarchy? DropDownList cannot be added to a Form? Help will be appreciated. -- Many thanks! Haulyn Microproduction You can access me with the following ways: Location: Shandong Jinan Shumagang 6H-8, 25 Mobile: +086-15864011231 email: saharab...@gmail.com, hmp.hau...@foxmail.com website: http://haulynjason.net gtalk: saharab...@gmail.com skype: saharabear QQ: 378606292 persional Twitter: http://twitter.com/saharabear persional Linkedin: http://www.linkedin.com/in/haulyn Haulyn Microproduction Twitter: http://twitter.com/haulynmp Haulyn Jason - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Need Help in Dynamic CSS generation
I am working on creating Dynamic StyleSheets in wicket, and i found an example of similar behaviour in Wicket Examples http://cwiki.apache.org/WICKET/dynamically-generate-a-css-stylesheet.html but it is not working. When i place the following code in my CSS file (style.css), it generates error. body{background:${color1};} The css file doesn't recognizes $ simbol. Is this allowed in CSS file or not ? Please Help me out to fix this problem. Thanks --Farhan--
Re: Need Help in Dynamic CSS generation
The $ is used to replace the variable (interpolated value). It's the same technique used in properties files to replace some text. This sample works fine. if you look at the css it has been generated according to the load() method. It must be you IDE that complains about this. maybe you can shut the varning off. -- View this message in context: http://www.nabble.com/Need-Help-in-Dynamic-CSS-generation-tp24623639p24623863.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Need Help in Dynamic CSS generation
I am using netbeans IDE 6.5, but i dont think this is the problem of the IDE. It throws error of Unexpected Symbol found ($). Can you please provide me the working code of using variables in css ? From: Mathias Nilsson wicket.program...@gmail.com To: users@wicket.apache.org Sent: Thursday, July 23, 2009 4:28:08 PM Subject: Re: Need Help in Dynamic CSS generation The $ is used to replace the variable (interpolated value). It's the same technique used in properties files to replace some text. This sample works fine. if you look at the css it has been generated according to the load() method. It must be you IDE that complains about this. maybe you can shut the varning off. -- View this message in context: http://www.nabble.com/Need-Help-in-Dynamic-CSS-generation-tp24623639p24623863.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Need Help in Dynamic CSS generation
I use Eclipse and all I have to do was copying and pasting the code from the url you supplied. I'm no Netbeans user so maybe someone else could answer this. -- View this message in context: http://www.nabble.com/Need-Help-in-Dynamic-CSS-generation-tp24623639p24624432.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Need Help in Dynamic CSS generation
Ok thanks, If any user of netBeans IDE have checked this example http://cwiki.apache.org/WICKET/dynamically-generate-a-css-stylesheet.html, then he must encountered this problem. Please help me out to resolve it ? --Farhan-- From: Mathias Nilsson wicket.program...@gmail.com To: users@wicket.apache.org Sent: Thursday, July 23, 2009 5:08:10 PM Subject: Re: Need Help in Dynamic CSS generation I use Eclipse and all I have to do was copying and pasting the code from the url you supplied. I'm no Netbeans user so maybe someone else could answer this. -- View this message in context: http://www.nabble.com/Need-Help-in-Dynamic-CSS-generation-tp24623639p24624432.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
FW: need help urgent......Change label dynamicly
Hello, I want to change the Label for the AjaxButton, when it is clicked. Iam not able to work out this. new AjaxButton(preview){ public void onSubmit(AjaxRequestTarget target, Form form){ // need to get the label name here...how to get the label name? if(AjaxButton.label.equal(click)) then set label to Unclick if UnClick then show click } Need urgently, stopping my work. Could you please give me hint, how to do this Implementation. Thanks, Praveen ---BeginMessage--- Hello, I want to change the Label for the AjaxButton, when it is clicked. Iam not able to work out this. new AjaxButton(preview){ public void onSubmit(AjaxRequestTarget target, Form form){ if(AjaxButton.label.equal(click)) then set label to Unclick if UnClick then show click } Need urgently, stopping my work. Could you please give me hint, how to do this. Implementation. Thanks, Praveen ---End Message--- - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: FW: need help urgent......Change label dynamicly
Maybe you could add two buttons and set the other visible? Cheers Per - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: FW: need help urgent......Change label dynamicly
Maybe to it with an attribute modifier.. I cant remember ajaxbutton.. 2009/5/6 Per Newgro per.new...@gmx.ch: Maybe you could add two buttons and set the other visible? Cheers Per - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: FW: need help urgent......Change label dynamicly
AFAIR a button's label comes from it's Model. So you should do: new AjaxButton(preview){ public void onSubmit(AjaxRequestTarget target, Form form){ String label = getModelObject(); // or getDefaultModelObject(); if 1.4 if (click.equals(label) { getModel().setObject(unclick); // or getDefaultModel().setObject(unclick) in case you're at 1.4 } } }.setModel(click); On Wed, May 6, 2009 at 11:44 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Maybe to it with an attribute modifier.. I cant remember ajaxbutton.. 2009/5/6 Per Newgro per.new...@gmx.ch: Maybe you could add two buttons and set the other visible? Cheers Per - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: FW: need help urgent......Change label dynamicly
And of course don't forget to add the button or a parent component to the ajaxrequesttarget as well. On Wed, May 6, 2009 at 11:58 AM, Janos Cserep cser...@metaprime.hu wrote: AFAIR a button's label comes from it's Model. So you should do: new AjaxButton(preview){ public void onSubmit(AjaxRequestTarget target, Form form){ String label = getModelObject(); // or getDefaultModelObject(); if 1.4 if (click.equals(label) { getModel().setObject(unclick); // or getDefaultModel().setObject(unclick) in case you're at 1.4 } } }.setModel(click); On Wed, May 6, 2009 at 11:44 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Maybe to it with an attribute modifier.. I cant remember ajaxbutton.. 2009/5/6 Per Newgro per.new...@gmx.ch: Maybe you could add two buttons and set the other visible? Cheers Per - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Need help with Wicket, ResourceStream (itext adn pdf)
Thanks a-lot. Will look into it. Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Sat, Apr 25, 2009 at 11:16 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: If what you want is streaming back the PDF contents something like: ResourceLink fileLink = new ResourceLink(file, new DynamicWebResource(file.getName()) { private static final long serialVersionUID = 1L; @Override protected ResourceState getResourceState() { return new DynamicWebResource.ResourceState() { @Override public String getContentType() { return DownLoadExportPanel.this.getContentType(); } @Override public byte[] getData() { try { return FileUtils.bytes(new FileInputStream(file)); } catch (Exception e) { return null; } } }; } }); a wicket:id=filespan wicket:id=message/span/a will do the Job. Here I'm assuming the PDF is in a file... 2- If what you want is showing the PDF inside an iframe maybe the following link can be of some help http://cwiki.apache.org/WICKET/displaying-content-eg-pdf-excel-word-in-an-iframe.html Best, Ernesto On Sat, Apr 25, 2009 at 9:33 PM, Eyal Golan egola...@gmail.com wrote: Hi, I've been struggling to understand the concept of sending resources (such as PDF) to the output with Wicket. I searched many site and wasn't able to find anything useful for me. (I found only one thread in this mailing list regarding iText). Anyway, Suppose I know how to create a PDF file. How can I then show it to the user? Suppose I have created the Document. What next? If someone can give a direction in here or a link to good example, I would be most appreciate. Thanks Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary
Need help with Wicket, ResourceStream (itext adn pdf)
Hi, I've been struggling to understand the concept of sending resources (such as PDF) to the output with Wicket. I searched many site and wasn't able to find anything useful for me. (I found only one thread in this mailing list regarding iText). Anyway, Suppose I know how to create a PDF file. How can I then show it to the user? Suppose I have created the Document. What next? If someone can give a direction in here or a link to good example, I would be most appreciate. Thanks Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary
Re: Need help with Wicket, ResourceStream (itext adn pdf)
If what you want is streaming back the PDF contents something like: ResourceLink fileLink = new ResourceLink(file, new DynamicWebResource(file.getName()) { private static final long serialVersionUID = 1L; @Override protected ResourceState getResourceState() { return new DynamicWebResource.ResourceState() { @Override public String getContentType() { return DownLoadExportPanel.this.getContentType(); } @Override public byte[] getData() { try { return FileUtils.bytes(new FileInputStream(file)); } catch (Exception e) { return null; } } }; } }); a wicket:id=filespan wicket:id=message/span/a will do the Job. Here I'm assuming the PDF is in a file... 2- If what you want is showing the PDF inside an iframe maybe the following link can be of some help http://cwiki.apache.org/WICKET/displaying-content-eg-pdf-excel-word-in-an-iframe.html Best, Ernesto On Sat, Apr 25, 2009 at 9:33 PM, Eyal Golan egola...@gmail.com wrote: Hi, I've been struggling to understand the concept of sending resources (such as PDF) to the output with Wicket. I searched many site and wasn't able to find anything useful for me. (I found only one thread in this mailing list regarding iText). Anyway, Suppose I know how to create a PDF file. How can I then show it to the user? Suppose I have created the Document. What next? If someone can give a direction in here or a link to good example, I would be most appreciate. Thanks Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary
Re: need Help on [AutoCompleteTextField]
Look at the examples on wicket library, if you need more then you could try the object autocomplete from wicketstuff.. 2009/3/31 FaRHaN farhan.ba...@ymail.com: Is there any way to display User Defined values in AutoCompleteTextField (ajax behavior) by using array of values. Please refer me some examples and links to demonstrate such type of behaviour. Thanks, FaRHaN - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: need Help on [AutoCompleteTextField]
I have tried examples exist in wicket library but these examples are used to display only built-in (countries languages) values. But i want to display my own values stored in an array or in DBIs there any ? --- On Wed, 4/1/09, nino martinez wael nino.martinez.w...@gmail.com wrote: From: nino martinez wael nino.martinez.w...@gmail.com Subject: Re: need Help on [AutoCompleteTextField] To: users@wicket.apache.org Date: Wednesday, April 1, 2009, 9:05 AM Look at the examples on wicket library, if you need more then you could try the object autocomplete from wicketstuff.. 2009/3/31 FaRHaN farhan.ba...@ymail.com: Is there any way to display User Defined values in AutoCompleteTextField (ajax behavior) by using array of values. Please refer me some examples and links to demonstrate such type of behaviour. Thanks, FaRHaN - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: need Help on [AutoCompleteTextField]
I dont have any more explicit examples laying around.. Just do it like you would in any other java application.. And it certainly are possible... 2009/4/1 FaRHaN farhan.ba...@ymail.com: I have tried examples exist in wicket library but these examples are used to display only built-in (countries languages) values. But i want to display my own values stored in an array or in DBIs there any ? --- On Wed, 4/1/09, nino martinez wael nino.martinez.w...@gmail.com wrote: From: nino martinez wael nino.martinez.w...@gmail.com Subject: Re: need Help on [AutoCompleteTextField] To: users@wicket.apache.org Date: Wednesday, April 1, 2009, 9:05 AM Look at the examples on wicket library, if you need more then you could try the object autocomplete from wicketstuff.. 2009/3/31 FaRHaN farhan.ba...@ymail.com: Is there any way to display User Defined values in AutoCompleteTextField (ajax behavior) by using array of values. Please refer me some examples and links to demonstrate such type of behaviour. Thanks, FaRHaN - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
need Help on [AutoCompleteTextField]
Is there any way to display User Defined values in AutoCompleteTextField (ajax behavior) by using array of values. Please refer me some examples and links to demonstrate such type of behaviour. Thanks, FaRHaN
Need help with Upgrade to wicket 1.4-rc1
Hi, I decided now is a good time for me to upgrade to the latest wicket code - wicket 1.4-rc We are currently at 1.3.4. I'll also need to update the following other wicket jars I am using. Are there version that are compiled against wicket 1.4? wicketstuff-dojo-1.3.0-beta.jar wicketstuff-minis-1.3.0-SNAPSHOT.jar wicketstuff-yui-1.3.0-SNAPSHOT.jar I can't find them anywhere. Thanks Karen - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Need help with Upgrade to wicket 1.4-rc1
On Wednesday 28 January 2009, Karen Schaper said: Hi, I decided now is a good time for me to upgrade to the latest wicket code - wicket 1.4-rc We are currently at 1.3.4. I'll also need to update the following other wicket jars I am using. Are there version that are compiled against wicket 1.4? wicketstuff-dojo-1.3.0-beta.jar wicketstuff-minis-1.3.0-SNAPSHOT.jar wicketstuff-yui-1.3.0-SNAPSHOT.jar I can't find them anywhere. Thanks Karen I think that's one of the hard things about upgrading wicket - I had to compile all that code myself. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Need help with Upgrade to wicket 1.4-rc1
The wicketstuff- has been taken out of the name of most wicketstuff projects in 1.4. See http://wicketstuff.org/maven/repository/org/wicketstuff/ Example: http://wicketstuff.org/maven/repository/org/wicketstuff/yui/1.4-SNAPSHOT/ Or, if you use Maven, just use org.wicketstuff and yui as the artifactId, 1.4-SNAPSHOT as the version (there have been no rc1 releases cut from most of these) -- Jeremy Thomerson http://www.wickettraining.com On Wed, Jan 28, 2009 at 10:21 AM, Karen Schaper karen.scha...@gmail.comwrote: Hi, I decided now is a good time for me to upgrade to the latest wicket code - wicket 1.4-rc We are currently at 1.3.4. I'll also need to update the following other wicket jars I am using. Are there version that are compiled against wicket 1.4? wicketstuff-dojo-1.3.0-beta.jar wicketstuff-minis-1.3.0-SNAPSHOT.jar wicketstuff-yui-1.3.0-SNAPSHOT.jar I can't find them anywhere. Thanks Karen - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Need help editing a Map plz.
Hi Guys, I have a data construct which is as follows: Template MapString, ListConstraint fieldConstraints; The map is fieldname against a list of constraints. Eg, I might have firstName as the field, and the following constraints length between 2 and 16 characters mandatory alphas only I have editors for each of the constraints - that bit was easy. I can also render out the field names, and the editors. My question is, how do I bind the editors to the instances that are within the map? -- View this message in context: http://www.nabble.com/Need-help-editing-a-Map-plz.-tp21554555p21554555.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Need help editing a Map plz.
Maybe try a RepeatingView of some sort (ListView?) over new ArrayList(map.keySet())... Jeremy Thomerson http://www.wickettraining.com -- sent from a wireless device -Original Message- From: Ned Collyer ned.coll...@gmail.com Sent: Monday, January 19, 2009 6:14 PM To: users@wicket.apache.org Subject: Need help editing a Map plz. Hi Guys, I have a data construct which is as follows: Template MapString, ListConstraint fieldConstraints; The map is fieldname against a list of constraints. Eg, I might have firstName as the field, and the following constraints length between 2 and 16 characters mandatory alphas only I have editors for each of the constraints - that bit was easy. I can also render out the field names, and the editors. My question is, how do I bind the editors to the instances that are within the map? -- View this message in context: http://www.nabble.com/Need-help-editing-a-Map-plz.-tp21554555p21554555.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Need help editing a Map plz.
Got it licked - stuffed up the editors. Specifically I neglected convertInput because I happen to be an idiot. Thanks JT - I have the keyset stuff down already ;) I was just wondering why my constraints were instantiated, but when they were submitted their inner detail was nulled out. Makes sense now. Jeremy Thomerson-5 wrote: Maybe try a RepeatingView of some sort (ListView?) over new ArrayList(map.keySet())... Jeremy Thomerson http://www.wickettraining.com -- sent from a wireless device -- View this message in context: http://www.nabble.com/Need-help-editing-a-Map-plz.-tp21554555p21555867.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Need help editing a Map plz.
No - i officially don't know what's wrong :) This is my snippet - ListString list = new ArrayListString(model.getObject().getConstraints().keySet()); // display any existing constraints form.add(new ListViewString(fields, list) { protected void populateItem(ListItemString listItem) { final Label label = new Label(label, new ModelClass(model.getObject().getDocumentType())); label.setDefaultModelObject(label.getString(listItem.getModelObject())); listItem.add(label); listItem.add(new ListViewConstraint(constraints, new PropertyModelListConstraint(model, String.format(constraints[%s], listItem.getModelObject( { protected void populateItem(ListItemConstraint listItem) { listItem.add(getConstraintFormField(listItem.getModel())); } }.setReuseItems(true)); } }.setReuseItems(true)); The only constraint form field is this public LengthBetweenConstraintField(String id, IModel model) { super(id, model); add(new TextField(minimum, new PropertyModel(model, minimum))); add(new TextField(maximum, new PropertyModel(model, maximum))); } When the page is rendered - the correct values appear. However when it's submitted - the values for max and minimum are set to null. HELP :) -- View this message in context: http://www.nabble.com/Need-help-editing-a-Map-plz.-tp21554555p21556339.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Need help editing a Map plz.
Bleh - its one of those days. Changed the base of the form fields from FormComponentPanel back to Panel - and bobs ur uncle. Sorry for the list noise (recovering from holidays still). Ned Collyer wrote: No - i officially don't know what's wrong :) This is my snippet - ListString list = new ArrayListString(model.getObject().getConstraints().keySet()); // display any existing constraints form.add(new ListViewString(fields, list) { protected void populateItem(ListItemString listItem) { final Label label = new Label(label, new ModelClass(model.getObject().getDocumentType())); label.setDefaultModelObject(label.getString(listItem.getModelObject())); listItem.add(label); listItem.add(new ListViewConstraint(constraints, new PropertyModelListConstraint(model, String.format(constraints[%s], listItem.getModelObject( { protected void populateItem(ListItemConstraint listItem) { listItem.add(getConstraintFormField(listItem.getModel())); } }.setReuseItems(true)); } }.setReuseItems(true)); The only constraint form field is this public LengthBetweenConstraintField(String id, IModel model) { super(id, model); add(new TextField(minimum, new PropertyModel(model, minimum))); add(new TextField(maximum, new PropertyModel(model, maximum))); } When the page is rendered - the correct values appear. However when it's submitted - the values for max and minimum are set to null. HELP :) -- View this message in context: http://www.nabble.com/Need-help-editing-a-Map-plz.-tp21554555p21556545.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Need help regarding Base Page refresh.
Have the same problem. Can any one help -- View this message in context: http://www.nabble.com/Need-help-regarding-Base-Page-refresh.-tp19602473p19846169.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need help regarding Base Page refresh.
is it really so hard to google refresh parent window from child window wow -igor On Mon, Oct 6, 2008 at 1:50 PM, ravichand [EMAIL PROTECTED] wrote: Have the same problem. Can any one help -- View this message in context: http://www.nabble.com/Need-help-regarding-Base-Page-refresh.-tp19602473p19846169.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need help fixing bug #1816
Hello Gili, It is maybe best if you checkout the code from svn and modify the code yourself. When you're satisfied with the changes, you can attach a patch to the issue. Issues with patches are more likely to be solved then others. Regards, Erik. cowwoc schreef: Hi, I spent a few hours tracking down the cause of https://issues.apache.org/jira/browse/WICKET-1816 but now I need someone from the Wicket team to help me fix it. Can someone please fix the lines of code I mention in the report and then send me back a patched version for testing? To be clear: this bug affects *all* platforms. Tomcat fails silently, which is even worse. Gili -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need help fixing bug #1816
is only getParameters() a problem? or cant we also ask for the context path/url? see my commit i just did it should fix your problem if it is only the getParameters of the getLastModified wat is a problem johan On Wed, Sep 24, 2008 at 6:53 AM, cowwoc [EMAIL PROTECTED] wrote: Hi, I spent a few hours tracking down the cause of https://issues.apache.org/jira/browse/WICKET-1816 but now I need someone from the Wicket team to help me fix it. Can someone please fix the lines of code I mention in the report and then send me back a patched version for testing? To be clear: this bug affects *all* platforms. Tomcat fails silently, which is even worse. Gili -- View this message in context: http://www.nabble.com/Need-help-fixing-bug--1816-tp19641982p19641982.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need help fixing bug #1816
Johan, The fix looks good. I no longer get warnings under Glassfish. Thank you, Gili cowwoc wrote: According to http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletRequest.html#setCharacterEncoding(java.lang.String): This method must be called prior to reading request parameters or reading input using getReader(). My interpretation is that requesting the context path is okay, so long as you do not request the query parameters. I'll test your commit to be sure. Gili Johan Compagner wrote: is only getParameters() a problem? or cant we also ask for the context path/url? see my commit i just did it should fix your problem if it is only the getParameters of the getLastModified wat is a problem johan On Wed, Sep 24, 2008 at 6:53 AM, cowwoc [EMAIL PROTECTED] wrote: Hi, I spent a few hours tracking down the cause of https://issues.apache.org/jira/browse/WICKET-1816 but now I need someone from the Wicket team to help me fix it. Can someone please fix the lines of code I mention in the report and then send me back a patched version for testing? To be clear: this bug affects *all* platforms. Tomcat fails silently, which is even worse. Gili -- View this message in context: http://www.nabble.com/Need-help-fixing-bug--1816-tp19641982p19641982.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Need-help-fixing-bug--1816-tp19641982p19651029.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need help fixing bug #1816
Hi, I spent a few hours tracking down the cause of https://issues.apache.org/jira/browse/WICKET-1816 but now I need someone from the Wicket team to help me fix it. Can someone please fix the lines of code I mention in the report and then send me back a patched version for testing? To be clear: this bug affects *all* platforms. Tomcat fails silently, which is even worse. Gili -- View this message in context: http://www.nabble.com/Need-help-fixing-bug--1816-tp19641982p19641982.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need help regarding Base Page refresh.
I have a Wicket Page containing tabbedPanels which opens few other pages depending on the tabs. But in few of my tabs, I have BookmarkablePageLink to open a popup for some operation. I want to refresh corresponding tab after popup is closed. Please help. Kammy Add more friends to your messenger and enjoy! Go to http://in.messenger.yahoo.com/invite/
Need help with AutoCompleteTextField
Hi All, I have an AutoCompleteTextField on a form along with 2 DateTimeFields used to provide a start and end date range that is to be used by the autocomplete field to limit the number of choices returned by the getChoices() method. The problem is that the date values are always the original values for the fields and not the modified values which makes sense since the form has not been submitted. Any ideas or hints on how to get the current values for the dates on the form in the getChoices() method? Or is it even possible? Thanks, Jim -- View this message in context: http://www.nabble.com/Need-help-with-AutoCompleteTextField-tp19143438p19143438.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need help with AutoCompleteTextField
Hi All, I have the date part of the DateTimeField updating to the entered value by adding an AjaxFormComponentUpdatingBehavior to it. However the hours and minutes in the Date is now always 00:00:00 instead of the original value, even with an AjaxFormComponentUpdatingBehavior added to the hours and minutes TextFields. I've tried also adding the DateTimeField and the DateTextFields to the target but that doesn't change anything. Jim jnorris wrote: Hi All, I have an AutoCompleteTextField on a form along with 2 DateTimeFields used to provide a start and end date range that is to be used by the autocomplete field to limit the number of choices returned by the getChoices() method. The problem is that the date values are always the original values for the fields and not the modified values which makes sense since the form has not been submitted. Any ideas or hints on how to get the current values for the dates on the form in the getChoices() method? Or is it even possible? Thanks, Jim -- View this message in context: http://www.nabble.com/Need-help-with-AutoCompleteTextField-tp19143438p19143962.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [offtop] need help with eclipse and m2eclipse
Yeah thats my preferred approach also. Timo Rantalaiho wrote: On Thu, 21 Aug 2008, Oleg Taranenko wrote: Eclipse Ganymede JEE (3.4) + m2eclipse 0.9.5 works perfect! I can now under eclipse launch mvn jetty:run and comfortable debugging all sources including the wicket core. One suggestion, may establish the maven archetype to generate the m2eclipse ready Wicket Quickstart? Thoughts? Doubts? I don't really see why would you want to have Maven in between your IDE and the servlet container. In my latest projects we have always done something like this import org.mortbay.jetty.Connector; import org.mortbay.jetty.Server; import org.mortbay.jetty.nio.SelectChannelConnector; import org.mortbay.jetty.webapp.WebAppContext; public class Jetty { public static void main(String[] args) throws Exception { Server server = new Server(); SelectChannelConnector connector = new SelectChannelConnector(); connector.setPort(8080); server.setConnectors(new Connector[] { connector }); WebAppContext web = new WebAppContext(); web.setContextPath(/foo); web.setWar(src/webapp); server.addHandler(web); server.start(); server.join(); } } and run it from within the IDE. But if m2eclipse + Maven provides some added value there, why not. Best wishes, Timo -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [offtop] need help with eclipse and m2eclipse
On Fri, Aug 22, 2008 at 5:04 AM, Timo Rantalaiho [EMAIL PROTECTED] wrote: I don't really see why would you want to have Maven in between your IDE and the servlet container. I Agree. Just use the wicket quickstart archetype generator and look at the Start class in the src/test/java directory mvn jetty:run is nice to demo a project quickly without having to start an IDE. Once Eclipse has started just use the Start class. Martijn -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [offtop] need help with eclipse and m2eclipse
Hi, On Fri, Aug 22, 2008 at 9:49 AM, Martijn Dashorst [EMAIL PROTECTED] wrote: On Fri, Aug 22, 2008 at 5:04 AM, Timo Rantalaiho [EMAIL PROTECTED] wrote: I don't really see why would you want to have Maven in between your IDE and the servlet container. I Agree. Just use the wicket quickstart archetype generator and look at the Start class in the src/test/java directory I also run the Start class from inside my IDE (IntelliJ IDEA) In combination with JavaRebel it's really super convenient: no need to restart your app, just let your IDE compile the changed classes and you will see the changes in your browser. Maarten mvn jetty:run is nice to demo a project quickly without having to start an IDE. Once Eclipse has started just use the Start class. Martijn -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [offtop] need help with eclipse and m2eclipse
I use NetBeans and have written a custom Maven plugin that converts a POM to a NetBeans project, works well with the Wicket quickstart, Start class, hot-deploy and all. Also generates a build.xml file for those who miss using Ant instead of Maven. No Maven IDE plugin required. Details here: http://ptrthomas.wordpress.com/2008/08/17/an-alternative-maven-plugin-for-ant-and-netbeans/ On Fri, Aug 22, 2008 at 1:37 PM, Maarten Bosteels [EMAIL PROTECTED]wrote: Hi, On Fri, Aug 22, 2008 at 9:49 AM, Martijn Dashorst [EMAIL PROTECTED] wrote: On Fri, Aug 22, 2008 at 5:04 AM, Timo Rantalaiho [EMAIL PROTECTED] wrote: I don't really see why would you want to have Maven in between your IDE and the servlet container. I Agree. Just use the wicket quickstart archetype generator and look at the Start class in the src/test/java directory I also run the Start class from inside my IDE (IntelliJ IDEA) In combination with JavaRebel it's really super convenient: no need to restart your app, just let your IDE compile the changed classes and you will see the changes in your browser. Maarten mvn jetty:run is nice to demo a project quickly without having to start an IDE. Once Eclipse has started just use the Start class. Martijn -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [offtop] need help with eclipse and m2eclipse
Hello all, sorry for reviving archaic thread, but right now i've tried the combinamtion eclipse + m2eclipse again. Eclipse Ganymede JEE (3.4) + m2eclipse 0.9.5 works perfect! I can now under eclipse launch mvn jetty:run and comfortable debugging all sources including the wicket core. One suggestion, may establish the maven archetype to generate the m2eclipse ready Wicket Quickstart? Thoughts? Doubts? Saturday, December 1, 2007, 4:32:02 PM, you wrote: Hello all, Sorry for bothering, may be somebody could help. I'm developing web apps under Eclipse. Early I'm using the mvn eclipse:eclipse + jetty launcher plugn. Now i try to use m2eclipse plugin and webapp is started using m2's goal mvn jetty:run. The application works, but when I want to trace through the wicket core code (in wicket.jar) the debug window shows (for example): Source not found for WebRequestCycle(RequestCycle).steps() line: 1248 I see Eclipse log: !ENTRY org.eclipse.debug.ui 4 0 2007-11-30 23:47:48.546 !MESSAGE Problem detected with part org.eclipse.debug.ui.NoSourceFoundEditor (class = org.eclipse.debug.internal.ui.views.launch.SourceNotFoundEditor): Editor is not firing a PROP_INPUT event in response to IReusableEditor.setInput(...) !SESSION 2007-12-01 07:39:24.265 --- eclipse.buildId=M20071023-1652 java.version=1.6.0_03 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=ru_RU Command-line arguments: -os win32 -ws win32 -arch x86 -clean This is very strange, while if i walking the tree in project explorer, i can see the java code as usually. Could any has the same effects? Should I ask a m2 commutity? Eclipse SDK Version: 3.3.1.1 Build id: I20070503-1400 Java 1.6.0.3 m2 version 0.0.12.20071107-2300 Thanks for any tips. -- Best regards, Olegmailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [offtop] need help with eclipse and m2eclipse
On Thu, 21 Aug 2008, Oleg Taranenko wrote: Eclipse Ganymede JEE (3.4) + m2eclipse 0.9.5 works perfect! I can now under eclipse launch mvn jetty:run and comfortable debugging all sources including the wicket core. One suggestion, may establish the maven archetype to generate the m2eclipse ready Wicket Quickstart? Thoughts? Doubts? I don't really see why would you want to have Maven in between your IDE and the servlet container. In my latest projects we have always done something like this import org.mortbay.jetty.Connector; import org.mortbay.jetty.Server; import org.mortbay.jetty.nio.SelectChannelConnector; import org.mortbay.jetty.webapp.WebAppContext; public class Jetty { public static void main(String[] args) throws Exception { Server server = new Server(); SelectChannelConnector connector = new SelectChannelConnector(); connector.setPort(8080); server.setConnectors(new Connector[] { connector }); WebAppContext web = new WebAppContext(); web.setContextPath(/foo); web.setWar(src/webapp); server.addHandler(web); server.start(); server.join(); } } and run it from within the IDE. But if m2eclipse + Maven provides some added value there, why not. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need Help
At a guess, the m1 quickstart's not been genericised... If you're getting started, I'd suggest sticking to a release 1.3 version, as 1.4-m1 is just a milestone against a moving target not a good starting point if new to Wicket. /Gwyn On Sat, May 17, 2008 at 6:24 PM, Depak Shidu [EMAIL PROTECTED] wrote: i try wicket 4.1-m1 maven using mvn archetype:create -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=1.4-m1 -DgroupId=com.shidu -DartifactId=mywicket from website wicket and have problem. i soon fix pom with 1.3-SNAPSHOT to 1.4-m1 but now compile error [INFO] Compilation failure /home/depak/mywicketsrc/main/java/com/shidu/HomePage.java:[25,8] cannot find symbol symbol : method add(org.apache.wicket.markup.html.basic.Label) i try remove wicket from repository and redo and not work still i run hardy with this maven version Maven version: 2.0.9 Java version: 1.6.0_06 OS name: linux version: 2.6.24-17-generic arch: i386 Family: unix help? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need Help
Try to set the compiler version (as described on http://wicket.apache.org/quickstart.html). I am not sure this is your problem. Regards, Erik. Depak Shidu wrote: i try wicket 4.1-m1 maven using mvn archetype:create -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=1.4-m1 -DgroupId=com.shidu -DartifactId=mywicket from website wicket and have problem. i soon fix pom with 1.3-SNAPSHOT to 1.4-m1 but now compile error [INFO] Compilation failure /home/depak/mywicketsrc/main/java/com/shidu/HomePage.java:[25,8] cannot find symbol symbol : method add(org.apache.wicket.markup.html.basic.Label) i try remove wicket from repository and redo and not work still i run hardy with this maven version Maven version: 2.0.9 Java version: 1.6.0_06 OS name: linux version: 2.6.24-17-generic arch: i386 Family: unix help? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
PageParameter mysetry - need help
Hi, After spending quiet a few hours on PageParameter mystery I think its time to get experts help. I have a few Bookmarkable pages with MixedParamStrategy set - this means I have few fixed parameters and few optional params. What is happening is, somewhere in my code (digging as we speak) one of the optional parameters is getting a default value of false in the URL. Here is the discrete URL thats failing http://localhost:8080/mfg/Polycom/POLYCOM/133/?isAnd=false where mfg is the mount path, Polycom is mfg name, POLYCOM is mfg id and 133 is category id - all of these are obviously Fixed parameters for MixedParamStrategy and isAnd which is an optional param getting set to default false and is part of the URL. What seems to be happening is, somehow the parametermap is storing isAnd is an array of strings instead of just string and hence MixedParameterUrlCodingStrategy.appendParameter (line 153of wicket 1.3.X) fails with the ClassCastException and yet the length of the array is only 1 so there is no reason to convert an existing String param to String array - but somehow that is what is happening. I put some debugging statements in the ValueMap.java to see who is setting it as String array - and here is the stack trace I get (see below) This actually brings up multiple questions why cant mixedparamurlcodingstragy handle multiple values etc. but that is not important in my case - since I will always have 1 value for now. But just wondering what if I had multi select boxes etc. Will appreciate any pointers. java.lang.RuntimeException: = ValueMap.putall... putting isand with array at org.apache.wicket.util.value.ValueMap.putAll(ValueMap.java:494) at org.apache.wicket.request.target.coding.MixedParamUrlCodingStrategy.decodeParameters(MixedParamUrlCodingStrategy.java:189) at org.apache.wicket.request.target.coding.BookmarkablePageRequestTargetUrlCodingStrategy.decode(BookmarkablePageRequestTargetUrlCodingStrategy.java:76) at org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:475) at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:175) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1227) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1347) at org.apache.wicket.RequestCycle.request(RequestCycle.java:496) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:375) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:199) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:542) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) at java.lang.Thread.run(Thread.java:595) -- View this message in context: http://www.nabble.com/PageParameter-mysetry---need-help-tp16966154p16966154.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PageParameter mysetry - need help
Make a jira issue with a sample quickstart On 4/29/08, Ritz123 [EMAIL PROTECTED] wrote: Hi, After spending quiet a few hours on PageParameter mystery I think its time to get experts help. I have a few Bookmarkable pages with MixedParamStrategy set - this means I have few fixed parameters and few optional params. What is happening is, somewhere in my code (digging as we speak) one of the optional parameters is getting a default value of false in the URL. Here is the discrete URL thats failing http://localhost:8080/mfg/Polycom/POLYCOM/133/?isAnd=false where mfg is the mount path, Polycom is mfg name, POLYCOM is mfg id and 133 is category id - all of these are obviously Fixed parameters for MixedParamStrategy and isAnd which is an optional param getting set to default false and is part of the URL. What seems to be happening is, somehow the parametermap is storing isAnd is an array of strings instead of just string and hence MixedParameterUrlCodingStrategy.appendParameter (line 153of wicket 1.3.X) fails with the ClassCastException and yet the length of the array is only 1 so there is no reason to convert an existing String param to String array - but somehow that is what is happening. I put some debugging statements in the ValueMap.java to see who is setting it as String array - and here is the stack trace I get (see below) This actually brings up multiple questions why cant mixedparamurlcodingstragy handle multiple values etc. but that is not important in my case - since I will always have 1 value for now. But just wondering what if I had multi select boxes etc. Will appreciate any pointers. java.lang.RuntimeException: = ValueMap.putall... putting isand with array at org.apache.wicket.util.value.ValueMap.putAll(ValueMap.java:494) at org.apache.wicket.request.target.coding.MixedParamUrlCodingStrategy.decodeParameters(MixedParamUrlCodingStrategy.java:189) at org.apache.wicket.request.target.coding.BookmarkablePageRequestTargetUrlCodingStrategy.decode(BookmarkablePageRequestTargetUrlCodingStrategy.java:76) at org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:475) at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:175) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1227) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1347) at org.apache.wicket.RequestCycle.request(RequestCycle.java:496) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:375) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:199) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:542) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) at java.lang.Thread.run(Thread.java:595) -- View this message in context: http://www.nabble.com/PageParameter-mysetry---need-help-tp16966154p16966154.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PageParameter mystery - need help
Just make an issue for the case you have below, that generates the stacktrace. And in your comments you can also say, that this or that could als be a problem for this url strategy On 4/29/08, Ritz123 [EMAIL PROTECTED] wrote: John, Thanks for the reply. As I mentioned, there seems to be multiple issues - what do I make an issue on? Also, will appreciate if you can share some thoughts on going about fixing it. Johan Compagner wrote: Make a jira issue with a sample quickstart On 4/29/08, Ritz123 [EMAIL PROTECTED] wrote: Hi, After spending quiet a few hours on PageParameter mystery I think its time to get experts help. I have a few Bookmarkable pages with MixedParamStrategy set - this means I have few fixed parameters and few optional params. What is happening is, somewhere in my code (digging as we speak) one of the optional parameters is getting a default value of false in the URL. Here is the discrete URL thats failing http://localhost:8080/mfg/Polycom/POLYCOM/133/?isAnd=false where mfg is the mount path, Polycom is mfg name, POLYCOM is mfg id and 133 is category id - all of these are obviously Fixed parameters for MixedParamStrategy and isAnd which is an optional param getting set to default false and is part of the URL. What seems to be happening is, somehow the parametermap is storing isAnd is an array of strings instead of just string and hence MixedParameterUrlCodingStrategy.appendParameter (line 153of wicket 1.3.X) fails with the ClassCastException and yet the length of the array is only 1 so there is no reason to convert an existing String param to String array - but somehow that is what is happening. I put some debugging statements in the ValueMap.java to see who is setting it as String array - and here is the stack trace I get (see below) This actually brings up multiple questions why cant mixedparamurlcodingstragy handle multiple values etc. but that is not important in my case - since I will always have 1 value for now. But just wondering what if I had multi select boxes etc. Will appreciate any pointers. java.lang.RuntimeException: = ValueMap.putall... putting isand with array at org.apache.wicket.util.value.ValueMap.putAll(ValueMap.java:494) at org.apache.wicket.request.target.coding.MixedParamUrlCodingStrategy.decodeParameters(MixedParamUrlCodingStrategy.java:189) at org.apache.wicket.request.target.coding.BookmarkablePageRequestTargetUrlCodingStrategy.decode(BookmarkablePageRequestTargetUrlCodingStrategy.java:76) at org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:475) at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:175) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1227) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1347) at org.apache.wicket.RequestCycle.request(RequestCycle.java:496) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:375) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:199) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:542) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) at java.lang.Thread.run(Thread.java:595) -- View this message in context: http://www.nabble.com/PageParameter-mysetry---need-help-tp16966154p16966154.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED
Re: PageParameter mystery - need help
) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) at java.lang.Thread.run(Thread.java:595) -- View this message in context: http://www.nabble.com/PageParameter-mysetry---need-help-tp16966154p16966154.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/PageParameter-mystery---need-help-tp16966154p16969397.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/PageParameter-mystery---need-help-tp16966154p16971901.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need help with GridView and checkboxes.
I have a form containing a GridView with a PagingNavigator. Within each cell I have an image and a CheckBox. When a user submits the form I collect all the image refs from the selected cells and process them. My problem is I would like to do this across multiple pages. So the user scenario is: A user goes through the pages using the navigator and selects, using the checkboxes, what images they like and then presses a select button. Unfortunately the selections are not preserved when I use a PagingNavigator on the form. A paging navigator renders links rather than a submit, so any selections are lost. Any ideas how to get around this?? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need help with GridView and checkboxes.
That is a known issue, unfortunately you will need to create your own version of a submittingpagingnavigator. The api for those classes is however not very extendable friendly so you probably end up copy-pasting large portions of code. I believe Martijn is planning on refactoring that component, just not for wicket 1.3.x. As an alternative you might be able to use ajaxcheckboxes? Maurice On Tue, Mar 18, 2008 at 12:30 PM, Trevor Campbell [EMAIL PROTECTED] wrote: I have a form containing a GridView with a PagingNavigator. Within each cell I have an image and a CheckBox. When a user submits the form I collect all the image refs from the selected cells and process them. My problem is I would like to do this across multiple pages. So the user scenario is: A user goes through the pages using the navigator and selects, using the checkboxes, what images they like and then presses a select button. Unfortunately the selections are not preserved when I use a PagingNavigator on the form. A paging navigator renders links rather than a submit, so any selections are lost. Any ideas how to get around this?? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need help with GridView and checkboxes.
Thanks Maurice, I was able to get this to work by copying PagingNavigator, PagingNavigation, PagingNavigationLink and PagingNavigationIncrementLink. The only substantial changes I made were to make PagingNavigationLink and PagingNavigationIncrementLink extend SubmitLink and then in the onsubit to do some horrible stuff to update the models. public void onSubmit() { pageable.setCurrentPage(getPageNumber()); FormComponent.IVisitor visitor = new FormComponent.IVisitor(){ @Override public Object formComponent(IFormVisitorParticipant formComponent) { if (formComponent instanceof FormComponent) { ((FormComponent) formComponent).validate(); ((FormComponent) formComponent).updateModel(); } if (formComponent.processChildren()) { return Component.IVisitor.CONTINUE_TRAVERSAL; } else { return Component.IVisitor.CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER; } } }; getForm().visitFormComponents(visitor); } I still haven't got the autoEnable and linksTo functionality working, but it is just some cosmetics. Trev Maurice Marrink wrote: That is a known issue, unfortunately you will need to create your own version of a submittingpagingnavigator. The api for those classes is however not very extendable friendly so you probably end up copy-pasting large portions of code. I believe Martijn is planning on refactoring that component, just not for wicket 1.3.x. As an alternative you might be able to use ajaxcheckboxes? Maurice On Tue, Mar 18, 2008 at 12:30 PM, Trevor Campbell [EMAIL PROTECTED] wrote: I have a form containing a GridView with a PagingNavigator. Within each cell I have an image and a CheckBox. When a user submits the form I collect all the image refs from the selected cells and process them. My problem is I would like to do this across multiple pages. So the user scenario is: A user goes through the pages using the navigator and selects, using the checkboxes, what images they like and then presses a select button. Unfortunately the selections are not preserved when I use a PagingNavigator on the form. A paging navigator renders links rather than a submit, so any selections are lost. Any ideas how to get around this?? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need help with GridView and checkboxes.
you shouldnt have to do any of that form updating yourself...it should all be done before your link's onsubmit is called, there is a reason why its called a submitlink -igor On Tue, Mar 18, 2008 at 7:47 PM, Trevor Campbell [EMAIL PROTECTED] wrote: Thanks Maurice, I was able to get this to work by copying PagingNavigator, PagingNavigation, PagingNavigationLink and PagingNavigationIncrementLink. The only substantial changes I made were to make PagingNavigationLink and PagingNavigationIncrementLink extend SubmitLink and then in the onsubit to do some horrible stuff to update the models. public void onSubmit() { pageable.setCurrentPage(getPageNumber()); FormComponent.IVisitor visitor = new FormComponent.IVisitor(){ @Override public Object formComponent(IFormVisitorParticipant formComponent) { if (formComponent instanceof FormComponent) { ((FormComponent) formComponent).validate(); ((FormComponent) formComponent).updateModel(); } if (formComponent.processChildren()) { return Component.IVisitor.CONTINUE_TRAVERSAL; } else { return Component.IVisitor.CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER; } } }; getForm().visitFormComponents(visitor); } I still haven't got the autoEnable and linksTo functionality working, but it is just some cosmetics. Trev Maurice Marrink wrote: That is a known issue, unfortunately you will need to create your own version of a submittingpagingnavigator. The api for those classes is however not very extendable friendly so you probably end up copy-pasting large portions of code. I believe Martijn is planning on refactoring that component, just not for wicket 1.3.x. As an alternative you might be able to use ajaxcheckboxes? Maurice On Tue, Mar 18, 2008 at 12:30 PM, Trevor Campbell [EMAIL PROTECTED] wrote: I have a form containing a GridView with a PagingNavigator. Within each cell I have an image and a CheckBox. When a user submits the form I collect all the image refs from the selected cells and process them. My problem is I would like to do this across multiple pages. So the user scenario is: A user goes through the pages using the navigator and selects, using the checkboxes, what images they like and then presses a select button. Unfortunately the selections are not preserved when I use a PagingNavigator on the form. A paging navigator renders links rather than a submit, so any selections are lost. Any ideas how to get around this?? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need help with GridView and checkboxes.
I should have added, I needed to setDefaultFormProcessing(false) because I don't want to process the form while just paging forward and without the DefaultFormProcessing, the model wasn't updating. Is this wrong? or am I missing something else. Igor Vaynberg wrote: you shouldnt have to do any of that form updating yourself...it should all be done before your link's onsubmit is called, there is a reason why its called a submitlink -igor On Tue, Mar 18, 2008 at 7:47 PM, Trevor Campbell [EMAIL PROTECTED] wrote: Thanks Maurice, I was able to get this to work by copying PagingNavigator, PagingNavigation, PagingNavigationLink and PagingNavigationIncrementLink. The only substantial changes I made were to make PagingNavigationLink and PagingNavigationIncrementLink extend SubmitLink and then in the onsubit to do some horrible stuff to update the models. public void onSubmit() { pageable.setCurrentPage(getPageNumber()); FormComponent.IVisitor visitor = new FormComponent.IVisitor(){ @Override public Object formComponent(IFormVisitorParticipant formComponent) { if (formComponent instanceof FormComponent) { ((FormComponent) formComponent).validate(); ((FormComponent) formComponent).updateModel(); } if (formComponent.processChildren()) { return Component.IVisitor.CONTINUE_TRAVERSAL; } else { return Component.IVisitor.CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER; } } }; getForm().visitFormComponents(visitor); } I still haven't got the autoEnable and linksTo functionality working, but it is just some cosmetics. Trev Maurice Marrink wrote: That is a known issue, unfortunately you will need to create your own version of a submittingpagingnavigator. The api for those classes is however not very extendable friendly so you probably end up copy-pasting large portions of code. I believe Martijn is planning on refactoring that component, just not for wicket 1.3.x. As an alternative you might be able to use ajaxcheckboxes? Maurice On Tue, Mar 18, 2008 at 12:30 PM, Trevor Campbell [EMAIL PROTECTED] wrote: I have a form containing a GridView with a PagingNavigator. Within each cell I have an image and a CheckBox. When a user submits the form I collect all the image refs from the selected cells and process them. My problem is I would like to do this across multiple pages. So the user scenario is: A user goes through the pages using the navigator and selects, using the checkboxes, what images they like and then presses a select button. Unfortunately the selections are not preserved when I use a PagingNavigator on the form. A paging navigator renders links rather than a submit, so any selections are lost. Any ideas how to get around this?? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need help with GridView and checkboxes.
so you call setdefaultformprocessing(false) and yet update the form yourself? that is the same as leaving setdefaultformprocessing(true) -igor On Tue, Mar 18, 2008 at 8:00 PM, Trevor Campbell [EMAIL PROTECTED] wrote: I should have added, I needed to setDefaultFormProcessing(false) because I don't want to process the form while just paging forward and without the DefaultFormProcessing, the model wasn't updating. Is this wrong? or am I missing something else. Igor Vaynberg wrote: you shouldnt have to do any of that form updating yourself...it should all be done before your link's onsubmit is called, there is a reason why its called a submitlink -igor On Tue, Mar 18, 2008 at 7:47 PM, Trevor Campbell [EMAIL PROTECTED] wrote: Thanks Maurice, I was able to get this to work by copying PagingNavigator, PagingNavigation, PagingNavigationLink and PagingNavigationIncrementLink. The only substantial changes I made were to make PagingNavigationLink and PagingNavigationIncrementLink extend SubmitLink and then in the onsubit to do some horrible stuff to update the models. public void onSubmit() { pageable.setCurrentPage(getPageNumber()); FormComponent.IVisitor visitor = new FormComponent.IVisitor(){ @Override public Object formComponent(IFormVisitorParticipant formComponent) { if (formComponent instanceof FormComponent) { ((FormComponent) formComponent).validate(); ((FormComponent) formComponent).updateModel(); } if (formComponent.processChildren()) { return Component.IVisitor.CONTINUE_TRAVERSAL; } else { return Component.IVisitor.CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER; } } }; getForm().visitFormComponents(visitor); } I still haven't got the autoEnable and linksTo functionality working, but it is just some cosmetics. Trev Maurice Marrink wrote: That is a known issue, unfortunately you will need to create your own version of a submittingpagingnavigator. The api for those classes is however not very extendable friendly so you probably end up copy-pasting large portions of code. I believe Martijn is planning on refactoring that component, just not for wicket 1.3.x. As an alternative you might be able to use ajaxcheckboxes? Maurice On Tue, Mar 18, 2008 at 12:30 PM, Trevor Campbell [EMAIL PROTECTED] wrote: I have a form containing a GridView with a PagingNavigator. Within each cell I have an image and a CheckBox. When a user submits the form I collect all the image refs from the selected cells and process them. My problem is I would like to do this across multiple pages. So the user scenario is: A user goes through the pages using the navigator and selects, using the checkboxes, what images they like and then presses a select button. Unfortunately the selections are not preserved when I use a PagingNavigator on the form. A paging navigator renders links rather than a submit, so any selections are lost. Any ideas how to get around this?? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need help with GridView and checkboxes.
I am not really doing the normal form processing in the navigation. The form has a navigator, just for showing more parts of the GridView, it also has a submit button to process the users request after they have selected items on one or more pages, So when they use the navigator, all I do is update the component models, when they press the submit button, I validate and process the whole form, But I see your point. I suppose I could pull the code from the form submit and process that in the onSubmit method of the default form submit button. I will give that a try. But that might be a little obscure if someone else were to use my components. Igor Vaynberg wrote: so you call setdefaultformprocessing(false) and yet update the form yourself? that is the same as leaving setdefaultformprocessing(true) -igor On Tue, Mar 18, 2008 at 8:00 PM, Trevor Campbell [EMAIL PROTECTED] wrote: I should have added, I needed to setDefaultFormProcessing(false) because I don't want to process the form while just paging forward and without the DefaultFormProcessing, the model wasn't updating. Is this wrong? or am I missing something else. Igor Vaynberg wrote: you shouldnt have to do any of that form updating yourself...it should all be done before your link's onsubmit is called, there is a reason why its called a submitlink -igor On Tue, Mar 18, 2008 at 7:47 PM, Trevor Campbell [EMAIL PROTECTED] wrote: Thanks Maurice, I was able to get this to work by copying PagingNavigator, PagingNavigation, PagingNavigationLink and PagingNavigationIncrementLink. The only substantial changes I made were to make PagingNavigationLink and PagingNavigationIncrementLink extend SubmitLink and then in the onsubit to do some horrible stuff to update the models. public void onSubmit() { pageable.setCurrentPage(getPageNumber()); FormComponent.IVisitor visitor = new FormComponent.IVisitor(){ @Override public Object formComponent(IFormVisitorParticipant formComponent) { if (formComponent instanceof FormComponent) { ((FormComponent) formComponent).validate(); ((FormComponent) formComponent).updateModel(); } if (formComponent.processChildren()) { return Component.IVisitor.CONTINUE_TRAVERSAL; } else { return Component.IVisitor.CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER; } } }; getForm().visitFormComponents(visitor); } I still haven't got the autoEnable and linksTo functionality working, but it is just some cosmetics. Trev Maurice Marrink wrote: That is a known issue, unfortunately you will need to create your own version of a submittingpagingnavigator. The api for those classes is however not very extendable friendly so you probably end up copy-pasting large portions of code. I believe Martijn is planning on refactoring that component, just not for wicket 1.3.x. As an alternative you might be able to use ajaxcheckboxes? Maurice On Tue, Mar 18, 2008 at 12:30 PM, Trevor Campbell [EMAIL PROTECTED] wrote: I have a form containing a GridView with a PagingNavigator. Within each cell I have an image and a CheckBox. When a user submits the form I collect all the image refs from the selected cells and process them. My problem is I would like to do this across multiple pages. So the user scenario is: A user goes through the pages using the navigator and selects, using the checkboxes, what images they like and then presses a select button. Unfortunately the selections are not preserved when I use a PagingNavigator on the form. A paging navigator renders links rather than a submit, so any selections are lost. Any ideas how to get around this?? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[offtop] need help with eclipse and m2eclipse
Helloall, Sorry for bothering, may be somebody could help. I'm developing web apps under Eclipse. Early I'm using the mvn eclipse:eclipse + jetty launcher plugn. Now i try to use m2eclipse plugin and webapp is started using m2's goal mvn jetty:run. The application works, but when I want to trace through the wicket core code (in wicket.jar) the debug window shows (for example): Source not found for WebRequestCycle(RequestCycle).steps() line: 1248 I see Eclipse log: !ENTRY org.eclipse.debug.ui 4 0 2007-11-30 23:47:48.546 !MESSAGE Problem detected with part org.eclipse.debug.ui.NoSourceFoundEditor (class = org.eclipse.debug.internal.ui.views.launch.SourceNotFoundEditor): Editor is not firing a PROP_INPUT event in response to IReusableEditor.setInput(...) !SESSION 2007-12-01 07:39:24.265 --- eclipse.buildId=M20071023-1652 java.version=1.6.0_03 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=ru_RU Command-line arguments: -os win32 -ws win32 -arch x86 -clean This is very strange, while if i walking the tree in project explorer, i can see the java code as usually. Could anyhas the same effects? Should I ask a m2 commutity? Eclipse SDK Version: 3.3.1.1 Build id: I20070503-1400 Java 1.6.0.3 m2 version 0.0.12.20071107-2300 Thanks for any tips. -- Bestregards, Oleg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [offtop] need help with eclipse and m2eclipse
You don't need the jetty launcher plugin, in fact I'd recommend using the embedded jetty starter we provide with the quickstarts. Right click the start class, select debug as application and go... Also the mvn jetty:run plugin is not really useful for development in my opinion. It is a nice maven plugin to quickly run a project from source, but as a development option I find it cumbersome. Martijn On Dec 1, 2007 3:32 PM, Oleg Taranenko [EMAIL PROTECTED] wrote: Hello all, Sorry for bothering, may be somebody could help. I'm developing web apps under Eclipse. Early I'm using the mvn eclipse:eclipse + jetty launcher plugn. Now i try to use m2eclipse plugin and webapp is started using m2's goal mvn jetty:run. The application works, but when I want to trace through the wicket core code (in wicket.jar) the debug window shows (for example): Source not found for WebRequestCycle(RequestCycle).steps() line: 1248 I see Eclipse log: !ENTRY org.eclipse.debug.ui 4 0 2007-11-30 23:47:48.546 !MESSAGE Problem detected with part org.eclipse.debug.ui.NoSourceFoundEditor (class = org.eclipse.debug.internal.ui.views.launch.SourceNotFoundEditor): Editor is not firing a PROP_INPUT event in response to IReusableEditor.setInput (...) !SESSION 2007-12-01 07:39:24.265--- eclipse.buildId=M20071023-1652 java.version=1.6.0_03 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=ru_RU Command-line arguments: -os win32 -ws win32 -arch x86 -clean This is very strange, while if i walking the tree in project explorer, i can see the java code as usually. Could any has the same effects? Should I ask a m2 commutity? Eclipse SDK Version: 3.3.1.1 Build id: I20070503-1400 Java 1.6.0.3 m2 version 0.0.12.20071107-2300 Thanks for any tips. -- Best regards, Oleg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-rc1 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-rc1/
Re[2]: [offtop] need help with eclipse and m2eclipse
Hello Martijn, Jetty launcher has some advantages though, i.e. it allows to set up different context path/port for the projects without changing source code. Thus i can simultaneously run and debug its. If not this annoying bug, i found development with m2eclipse more convenient. I hope the m2 community will resolve this. Anyway thank you for answer. Cheers, Oleg. Youdon'tneedthejettylauncherplugin,infactI'drecommendusingthe embeddedjettystarterweprovidewiththequickstarts. Rightclickthestartclass,selectdebugasapplicationandgo... Alsothemvnjetty:runpluginisnotreallyusefulfordevelopmentinmy opinion.Itisanicemavenplugintoquicklyrunaprojectfromsource,but asadevelopmentoptionIfinditcumbersome. Martijn OnDec1,20073:32PM,OlegTaranenko[EMAIL PROTECTED]wrote: Helloall, Sorryforbothering,maybesomebodycouldhelp.I'mdevelopingwebapps underEclipse.EarlyI'musingthemvneclipse:eclipse+jettylauncher plugn.Nowitrytousem2eclipsepluginandwebappisstartedusingm2's goalmvnjetty:run.Theapplicationworks,butwhenIwanttotracethrough thewicketcorecode(inwicket.jar)thedebugwindowshows(forexample): SourcenotfoundforWebRequestCycle(RequestCycle).steps()line:1248 IseeEclipselog: !ENTRYorg.eclipse.debug.ui402007-11-3023:47:48.546 !MESSAGEProblemdetectedwithpart org.eclipse.debug.ui.NoSourceFoundEditor(class= org.eclipse.debug.internal.ui.views.launch.SourceNotFoundEditor):Editor isnotfiringaPROP_INPUTeventinresponsetoIReusableEditor.setInput (...) !SESSION2007-12-01 07:39:24.265--- eclipse.buildId=M20071023-1652 java.version=1.6.0_03 java.vendor=SunMicrosystemsInc. BootLoaderconstants:OS=win32,ARCH=x86,WS=win32,NL=ru_RU Command-linearguments:-oswin32-wswin32-archx86-clean Thisisverystrange,whileifiwalkingthetreeinprojectexplorer,i canseethejavacodeasusually. Couldanyhasthesameeffects?ShouldIaskam2commutity? EclipseSDK Version:3.3.1.1 Buildid:I20070503-1400 Java1.6.0.3 m2version0.0.12.20071107-2300 Thanksforanytips. -- Bestregards, Oleg - To unsubscribe,e-mail:[EMAIL PROTECTED]Foradditional commands,e-mail:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]