Re: wicket-tree checkboxes managing
Hi, now that all is looking fine I'm observing a strange behaviuor. The same method, to 'check/uncheck' all from a button, public void modifyAllCheckBoxes(final boolean select) { visitChildren(CheckBox.class, new IVisitorComponent() { @Override public Object component(Component component) { CheckBox checkBox=(CheckBox)component; checkBox.setModelObject(select); return IVisitor.CONTINUE_TRAVERSAL; } }); } seems not working when all are collapsed and if I want unselect all (the select works). 1. Collapsing all and selecting all works 2. nodes into a branch can be unselected with the button only after having expanded and collapsed it page is opened with the tree state = expanded by default best Massimo -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-tree-checkboxes-managing-tp3472967p3540207.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket-tree checkboxes managing
Hi Massimo, children of collapsed nodes are not present in the Wicket component hierarchy. I don't understand why you're getting different results whether you want to select or deselect though. Instead of twiddling with components, you should perform the mutation directly on your model objects: root.selectAll(true): public void selectAll(boolean select) { this.selected = select; for (Foo child : children) { child.selectAll(select); } } Hope this helps Sven On 05/21/2011 08:45 AM, massimo_pugni wrote: Hi, now that all is looking fine I'm observing a strange behaviuor. The same method, to 'check/uncheck' all from a button, public void modifyAllCheckBoxes(final boolean select) { visitChildren(CheckBox.class, new IVisitorComponent() { @Override public Object component(Component component) { CheckBox checkBox=(CheckBox)component; checkBox.setModelObject(select); return IVisitor.CONTINUE_TRAVERSAL; } }); } seems not working when all are collapsed and if I want unselect all (the select works). 1. Collapsing all and selecting all works 2. nodes into a branch can be unselected with the button only after having expanded and collapsed it page is opened with the tree state = expanded by default best Massimo -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-tree-checkboxes-managing-tp3472967p3540207.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
facebook like iframe in wicket
I want to incorporate the facebook like button in my wicket application page. The page is a story page which displays different stories based on what story the user clicked on in the previous page. Basically, the page is rendered with one story every time. Based on the facebook implementation of the like button: iframe src=http://www.facebook.com/plugins/like.php?app_id=219924774692113amp;href=http%3A%2F%2Fapps.facebook.com%2Fmyappname%2F%3Fref%3Dbookmarksamp;send=trueamp;layout=standardamp;width=450amp;show_faces=trueamp;action=likeamp;colorscheme=lightamp;font=verdanaamp;height=80; scrolling=no frameborder=0 style=border: none; overflow: hidden; width: 450px; height: 80px; allowTransparency=true/iframe How do I go about making each like mapped to each of the stories?? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/facebook-like-iframe-in-wicket-tp3540423p3540423.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
JavaScript enabled or disabled
Hi, is there any way to check if JS is enabled from wicket code? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/JavaScript-enabled-or-disabled-tp3540451p3540451.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
Ajax and browser Back button
I have noticed, that there is one issue when you click back button on browser. If it was ajaxified page and you click on any control after back button clicked in browser you will get exception that clicked component not found or something. I did some research and found this as one of solutions: http://www.richardnichols.net/2010/03/apache-wicket-force-page-reload-to-fix-ajax-back/ But this disables browser level cache. I think, this decreases performance. Is there any better solution to avoid this back button issue? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-and-browser-Back-button-tp3540454p3540454.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: JavaScript enabled or disabled
Unless there's another way I'm not familiar with, I believe you can use getScreenHeight or getScreenWidth from ClientProperties. Someone correct me if I'm wrong, but I believe these values will still be -1 (their default) if javascript is disabled. Be sure to add: getRequestCycleSettings().setGatherExtendedBrowserInfo(true); to your application's init method. On Sat, May 21, 2011 at 6:51 AM, meduolis meduol...@gmail.com wrote: Hi, is there any way to check if JS is enabled from wicket code? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/JavaScript-enabled-or-disabled-tp3540451p3540451.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: JavaScript enabled or disabled
Already tried this. No success because of http://apache-wicket.1842946.n4.nabble.com/Odd-behaviour-after-setGatherExtendedBrowserInfo-true-td1857093.html :/ -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/JavaScript-enabled-or-disabled-tp3540451p3540522.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Ajax and browser Back button
Perhaps you can navigate to an anchor after each AJAX call. On 21 May 2011, at 12:54, meduolis wrote: I have noticed, that there is one issue when you click back button on browser. If it was ajaxified page and you click on any control after back button clicked in browser you will get exception that clicked component not found or something. I did some research and found this as one of solutions: http://www.richardnichols.net/2010/03/apache-wicket-force-page-reload-to-fix-ajax-back/ But this disables browser level cache. I think, this decreases performance. Is there any better solution to avoid this back button issue? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-and-browser-Back-button-tp3540454p3540454.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: Ajax and browser Back button
Could you please provide any simple example? Because I don't understand your solution :] -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-and-browser-Back-button-tp3540454p3540573.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
wiquery and IE 9 not compatible
Just wondering if any other noticed how strange wiquery behaves on IE 9? It sometimes works, sometimes don't. Created issue ticket here: http://code.google.com/p/wiquery/issues/detail?id=184 If any have similar problems, please share yours Solutions to fix this are welcome. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wiquery-and-IE-9-not-compatible-tp3540597p3540597.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
Wicket's Wizard Component
I am attempting to enhance the Wizard's layout by sub-classing Wizard.java. The idea is to change the default markup to suit some specific layout requirements. The problem I am trying to solve is to re-parent the form to the component bound to the wicket:id myOuterWrapperComp, but not sure if or how this can be done using the Wizard framework. I am using Wicket Version 1.4.13. Can this be done using sub-classing Wizard.java? I would like to avoid writing my own class that mimics 99% of what Wizard.java provides, just for this layout issue. Here is a sample of the markup in my DerivedFromWizard (not real name) class, div wicket:id=myOuterWrapperComp class=wicketExtensionsWizard form wicket:id=form class=wicketExtensionsWizardForm ... rest of wizard markup, same as what is in Wizard.html /form /div Thanks, J.D.
Re: Wicket's Wizard Component
Wizard probably ought to be moved to the category of example code instead of something that can (or will) be improved. It hasn't changed much since it was written, and if it were changed, would probably break hundreds of users for no real benefit (i.e. users would have to go implement new interfaces for components that already work and have long since been forgotten about). IMHO, if you like the code, you might be better off just grabbing a copy of it into your own source tree. Then you can build what you want with impunity. Brian On May 21, 2011, at 11:08 AM, Corbin, James wrote: I am attempting to enhance the Wizard's layout by sub-classing Wizard.java. The idea is to change the default markup to suit some specific layout requirements. The problem I am trying to solve is to re-parent the form to the component bound to the wicket:id myOuterWrapperComp, but not sure if or how this can be done using the Wizard framework. I am using Wicket Version 1.4.13. Can this be done using sub-classing Wizard.java? I would like to avoid writing my own class that mimics 99% of what Wizard.java provides, just for this layout issue. Here is a sample of the markup in my DerivedFromWizard (not real name) class, div wicket:id=myOuterWrapperComp class=wicketExtensionsWizard form wicket:id=form class=wicketExtensionsWizardForm ... rest of wizard markup, same as what is in Wizard.html /form /div Thanks, J.D. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Wicket's Wizard Component
Actually, it makes sense to pull the source and modify it to support my specific needs. J.D. -Original Message- From: Brian Topping [mailto:topp...@codehaus.org] Sent: Saturday, May 21, 2011 9:29 AM To: users@wicket.apache.org Subject: Re: Wicket's Wizard Component Wizard probably ought to be moved to the category of example code instead of something that can (or will) be improved. It hasn't changed much since it was written, and if it were changed, would probably break hundreds of users for no real benefit (i.e. users would have to go implement new interfaces for components that already work and have long since been forgotten about). IMHO, if you like the code, you might be better off just grabbing a copy of it into your own source tree. Then you can build what you want with impunity. Brian On May 21, 2011, at 11:08 AM, Corbin, James wrote: I am attempting to enhance the Wizard's layout by sub-classing Wizard.java. The idea is to change the default markup to suit some specific layout requirements. The problem I am trying to solve is to re-parent the form to the component bound to the wicket:id myOuterWrapperComp, but not sure if or how this can be done using the Wizard framework. I am using Wicket Version 1.4.13. Can this be done using sub-classing Wizard.java? I would like to avoid writing my own class that mimics 99% of what Wizard.java provides, just for this layout issue. Here is a sample of the markup in my DerivedFromWizard (not real name) class, div wicket:id=myOuterWrapperComp class=wicketExtensionsWizard form wicket:id=form class=wicketExtensionsWizardForm ... rest of wizard markup, same as what is in Wizard.html /form /div Thanks, J.D. - 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: Wicket's Wizard Component
To the core wicket developers, is there any copyright concerns with pulling the Wizard source into my codebase and modifying it? J.D. -Original Message- From: Corbin, James [mailto:jcor...@iqnavigator.com] Sent: Saturday, May 21, 2011 9:37 AM To: users@wicket.apache.org Subject: RE: Wicket's Wizard Component Actually, it makes sense to pull the source and modify it to support my specific needs. J.D. -Original Message- From: Brian Topping [mailto:topp...@codehaus.org] Sent: Saturday, May 21, 2011 9:29 AM To: users@wicket.apache.org Subject: Re: Wicket's Wizard Component Wizard probably ought to be moved to the category of example code instead of something that can (or will) be improved. It hasn't changed much since it was written, and if it were changed, would probably break hundreds of users for no real benefit (i.e. users would have to go implement new interfaces for components that already work and have long since been forgotten about). IMHO, if you like the code, you might be better off just grabbing a copy of it into your own source tree. Then you can build what you want with impunity. Brian On May 21, 2011, at 11:08 AM, Corbin, James wrote: I am attempting to enhance the Wizard's layout by sub-classing Wizard.java. The idea is to change the default markup to suit some specific layout requirements. The problem I am trying to solve is to re-parent the form to the component bound to the wicket:id myOuterWrapperComp, but not sure if or how this can be done using the Wizard framework. I am using Wicket Version 1.4.13. Can this be done using sub-classing Wizard.java? I would like to avoid writing my own class that mimics 99% of what Wizard.java provides, just for this layout issue. Here is a sample of the markup in my DerivedFromWizard (not real name) class, div wicket:id=myOuterWrapperComp class=wicketExtensionsWizard form wicket:id=form class=wicketExtensionsWizardForm ... rest of wizard markup, same as what is in Wizard.html /form /div Thanks, J.D. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
wicket showing traces that we used wicket is it a problem
html head titleWicket form/title /head body form id=id1 method=post action=;jsessionid=90C6F4DC17391001C2B5A3575453976D?wicket:interface=:0:form::IFormSubmitListener::div style=width:0px;height:0px;position:absolute;left:-100px;top:-100px;overflow:hiddeninput type=hidden name=id1_hf_0 id=id1_hf_0 //div input type=text value= name=username button type=submit name=hello id=id2 onclick=var wcall=wicketSubmitFormById('id1', ';jsessionid=90C6F4DC17391001C2B5A3575453976D?wicket:interface=:0:form:hello::IActivePageBehaviorListener:0:amp;wicket:ignoreIfNotActive=true', 'hello' ,function() { }.bind(this),function() { }.bind(this), function() {return Wicket.$$(this)amp;amp;Wicket.$$('id1')}.bind(this));;; return false;helloworld/button /form /body /html this is the html code i got for a simple program using ajax it shows many traces that we used wicket i am imagining is it cause any problem to reveal what we actually used to the users. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-showing-traces-that-we-used-wicket-is-it-a-problem-tp3540810p3540810.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket's Wizard Component
Everything including Wizard has the ASL 2.0 copyleft at the top, which grants free and unrestricted use for commercial and non-commercial purposes. On May 21, 2011, at 11:40 AM, Corbin, James wrote: To the core wicket developers, is there any copyright concerns with pulling the Wizard source into my codebase and modifying it? J.D. -Original Message- From: Corbin, James [mailto:jcor...@iqnavigator.com] Sent: Saturday, May 21, 2011 9:37 AM To: users@wicket.apache.org Subject: RE: Wicket's Wizard Component Actually, it makes sense to pull the source and modify it to support my specific needs. J.D. -Original Message- From: Brian Topping [mailto:topp...@codehaus.org] Sent: Saturday, May 21, 2011 9:29 AM To: users@wicket.apache.org Subject: Re: Wicket's Wizard Component Wizard probably ought to be moved to the category of example code instead of something that can (or will) be improved. It hasn't changed much since it was written, and if it were changed, would probably break hundreds of users for no real benefit (i.e. users would have to go implement new interfaces for components that already work and have long since been forgotten about). IMHO, if you like the code, you might be better off just grabbing a copy of it into your own source tree. Then you can build what you want with impunity. Brian On May 21, 2011, at 11:08 AM, Corbin, James wrote: I am attempting to enhance the Wizard's layout by sub-classing Wizard.java. The idea is to change the default markup to suit some specific layout requirements. The problem I am trying to solve is to re-parent the form to the component bound to the wicket:id myOuterWrapperComp, but not sure if or how this can be done using the Wizard framework. I am using Wicket Version 1.4.13. Can this be done using sub-classing Wizard.java? I would like to avoid writing my own class that mimics 99% of what Wizard.java provides, just for this layout issue. Here is a sample of the markup in my DerivedFromWizard (not real name) class, div wicket:id=myOuterWrapperComp class=wicketExtensionsWizard form wicket:id=form class=wicketExtensionsWizardForm ... rest of wizard markup, same as what is in Wizard.html /form /div Thanks, J.D. - 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Ajaxifying RadioGroups
Hi, Hi, I am trying to build a RadioGroup that triggers an ajax callback so I can refresh another panel with the value set in the radio. I couldn't find a good example anywhere and I've failed using the AjaxFormChoiceComponentUpdatingBehavior in the following code. What am I doing wrong here.. or is not supported? Thanks, Tom 1. final RadioGroupString imageChoice = new RadioGroupString(imageChoice, new ModelString(chosen) ); 2. 3. imageChoice.setOutputMarkupId( true ); 4. imageChoice.add( new AjaxFormChoiceComponentUpdatingBehavior(){ 5. private static final long serialVersionUID = 1L; 6. 7. @Override 8. protected void onUpdate(AjaxRequestTarget target) { 9. log.info(updated radio); 10. } 11. 12.}); 13. 14. 15. ListViewString images = new ListViewString(imageList, imageModel) { 16. 17. @Override 18. protected void populateItem(ListItem listItem) { 19. 20. Radio radioChoice = new Radio(radio, listItem.getModel(), imageChoice); 21. 22. listItem.add(radioChoice); 23. 24. } 25. }; 26. imageChoice.add(images); 27. 28. add(imageChoice); 29. 30. }
Re: wicket showing traces that we used wicket is it a problem
this is the html code i got for a simple program using ajax it shows many traces that we used wicket i am imagining is it cause any problem to reveal what we actually used to the users. It also shows traces that you are using JQuery. That might reveal you are too lazy to code every line of javascript by hand. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Ajaxifying RadioGroups
ignore this - some jquery I had was breaking the wicket javascript. On Sat, May 21, 2011 at 8:16 PM, Tom Howe tomh...@artcore.com wrote: Hi, Hi, I am trying to build a RadioGroup that triggers an ajax callback so I can refresh another panel with the value set in the radio. I couldn't find a good example anywhere and I've failed using the AjaxFormChoiceComponentUpdatingBehavior in the following code. What am I doing wrong here.. or is not supported? Thanks, Tom 1. final RadioGroupString imageChoice = new RadioGroupString(imageChoice, new ModelString(chosen) ); 2. 3. imageChoice.setOutputMarkupId( true ); 4. imageChoice.add( new AjaxFormChoiceComponentUpdatingBehavior(){ 5. private static final long serialVersionUID = 1L; 6. 7. @Override 8. protected void onUpdate(AjaxRequestTarget target) { 9. log.info(updated radio); 10. } 11. 12. }); 13. 14. 15. ListViewString images = new ListViewString(imageList, imageModel) { 16. 17. @Override 18. protected void populateItem(ListItem listItem) { 19. 20. Radio radioChoice = new Radio(radio, listItem.getModel(), imageChoice); 21. 22. listItem.add(radioChoice); 23. 24. } 25. }; 26. imageChoice.add(images); 27. 28. add(imageChoice); 29. 30. }