Re: jWicket WiQuery
You can also have a look at [1] and [2] which contain some jquery based extensions. Ernesto 1-http://wiquery-plugins-demo.appspot.com/demo/ 2-http://code.google.com/p/wiquery-plugins/ On Sat, Jan 22, 2011 at 9:12 PM, flavius flav...@silverlion.com wrote: I'm looking to implement some ajax functionality and was looking at the different libs that integrate with wicket. After looking at these statistics, I thought jquery would be ideal. It's the most popular in most parts of the world and has gotten good reviews in general. http://www.google.com/trends?q=jquery%2Cdojo%2Cmootools%2Cyui%2Cextjs I found jWicket and WiQuery, two different projects for jQuery. I'm looking for some examples to test out. I found the examples for jWicket (nice job on this project). The only thing I can find for WiQuery is here: http://code.google.com/p/wiquery-demos/ I've downloaded what I can from the google code. It only includes sources, javadoc, and the wiquery lib itself. Am I missing this someplace? Thanks in advance. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/jWicket-WiQuery-tp3231792p3231792.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: showing a wicket page on a ModalWindow
Let me answer myself : Use ModalWIndow.PageCreator On Sun, Jan 23, 2011 at 4:19 PM, Josh Kamau joshnet2...@gmail.com wrote: Hi there. How can i show a wicket page in a modal window? Thanks in advance. Josh.
Re: [announce] Wicket 1.5-RC1 is released!
Intercomponent event mechanism is REALY, REALY NICE !!! https://cwiki.apache.org/WICKET/migration-to-wicket-15.html#MigrationtoWicket1.5-Intercomponentevents
Problems with Ajax update of part of a table
I have the following issue doing an Ajax update on the headers in a table. In my application, clicking on the headers will dynamically change the icon associated with each column. If I do an update on a Panel object which contains the entire table then this works well. However, I specifically don't want to do that, as I don't want server side changes to other rows to be visible in the browser. So, I wrap just the header row in a WebMarkupContainer. When clicking on the headers to trigger the Ajax update only on this container, this happens: 1) The header row is getting redrawn again outside the table (in Firefox, above the original table, in Safari by the side) 2) Clicking again on the original header row inside the table, the server side code is being executed and the 'shadow headers' get updated, but not the original header row itself 3) Clicking on the headers in the 'shadow row' also triggers the server side code Here is the html: wicket:panel table border=0 summary= class=standardTable cellpadding=0 cellspacing=0 id=tableToSort thead tr th scope=col Date /th th scope=col Type /th th scope=col wicket:id=transactionRefHeaderreference/th th scope=col Debit /th th scope=col Credit /th th scope=col wicket:id=transactionBalanceHeaderBalance/th /tr tr td colspan=6/td /tr /thead tr wicket:id=transactions td nowrap=nowrap wicket:id=date/td td nowrap=nowrap wicket:id=type/td // MORE COLUMNS /tr /table // MORE STUFF /wicket:panel I should point out that the columns themselves are Panel objects. As always, help is greatly appreciated ! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problems-with-Ajax-update-of-part-of-a-table-tp3232828p3232828.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Problems with Ajax update of part of a table
Hi! In my experience, tables get distorted if you party reshape them. Browsers are not sufficiently sophisticated to handle the situation. ** Martin 2011/1/23 drf davidrfi...@gmail.com: I have the following issue doing an Ajax update on the headers in a table. In my application, clicking on the headers will dynamically change the icon associated with each column. If I do an update on a Panel object which contains the entire table then this works well. However, I specifically don't want to do that, as I don't want server side changes to other rows to be visible in the browser. So, I wrap just the header row in a WebMarkupContainer. When clicking on the headers to trigger the Ajax update only on this container, this happens: 1) The header row is getting redrawn again outside the table (in Firefox, above the original table, in Safari by the side) 2) Clicking again on the original header row inside the table, the server side code is being executed and the 'shadow headers' get updated, but not the original header row itself 3) Clicking on the headers in the 'shadow row' also triggers the server side code Here is the html: wicket:panel table border=0 summary= class=standardTable cellpadding=0 cellspacing=0 id=tableToSort thead tr th scope=col Date /th th scope=col Type /th th scope=col wicket:id=transactionRefHeaderreference/th th scope=col Debit /th th scope=col Credit /th th scope=col wicket:id=transactionBalanceHeaderBalance/th /tr tr td colspan=6/td /tr /thead tr wicket:id=transactions td nowrap=nowrap wicket:id=date/td td nowrap=nowrap wicket:id=type/td // MORE COLUMNS /tr /table // MORE STUFF /wicket:panel I should point out that the columns themselves are Panel objects. As always, help is greatly appreciated ! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problems-with-Ajax-update-of-part-of-a-table-tp3232828p3232828.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: wicket nested form and modal
Here is a workaround http://www.mail-archive.com/users@wicket.apache.org/msg35946.html ** Martin 2011/1/24 Clément Tamisier clement.tamis...@gmail.com: Hi, I have something strange with wicket 1.4 and I don't find what. I have 2 nested forms. The inner form (form2) is in a modal window, and when I validate this form (form2) the checkbox of main form (form1) become unchecked (which is initially checked). to test: click on click and submit the form of modal window showed - checkbox become unchecked. PS : if I uncheck my checkbox manually and retry, it's works. I include this this project in the mail. You can launch it with: mvn clean compile jetty:run Do you have any ideas. Thank you very much. Clément HelloWorld.java public class HelloWorld extends WebPage { private CheckBox checkbox; private ModalWindow modalWindow; @SuppressWarnings(serial) public HelloWorld() { FormObject form = new FormObject(form1); add(new AjaxLinkObject(click) { @Override public void onClick(AjaxRequestTarget target) { modalWindow.show(target); } }); checkbox = new CheckBox(checkbox, new ModelBoolean(true)); checkbox.add(new OnChangeAjaxBehavior() { @Override protected void onUpdate(AjaxRequestTarget target) { System.out.println(checkbox set to :+checkbox.getModelObject()); } }); checkbox.setOutputMarkupId(true); modalWindow = new ModalWindow(modal); SubmitPanel panel = new SubmitPanel(content, checkbox, modalWindow); modalWindow.setContent(panel); form.add(checkbox); form.add(modalWindow); form.add(new AjaxButton(submitForm) { @Override protected void onSubmit(AjaxRequestTarget target, Form? form) { System.out.println(on submit checkbox is :+checkbox.getModelObject()); } }); add(form); } } HelloWorld.html html body form wicket:id=form1 div wicket:id=modal/div input type=checkbox wicket:id=checkbox / input type=submit wicket:id=submitForm / /form a wicket:id=clickclick/a /body /html SubmitPanel.java public class SubmitPanel extends Panel{ public SubmitPanel(String id, final CheckBox checkbox, final ModalWindow modalWindow) { super(id); FormObject form =new FormObject(form2); form.add(new AjaxButton(submitForm2) { @Override protected void onSubmit(AjaxRequestTarget target, Form? form) { checkbox.setModelObject(true); target.addComponent(checkbox); modalWindow.close(target); } }); add(form); } } SubmitPanel.html wicket:panel form wicket:id=form2 input type=submit wicket:id=submitForm2 / /form /wicket:panel - 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
Ajax Response xml showing in browser
Got an odd issue occurring where the Ajax Response xml is showing in the browser rather than modifying the DOM of the page as it usually does. The scenario is the following: My Login page is abstract and has an abstract method called onLoginSuccess. When the login is successful we call onLoginSuccess. Abstract Class called LoginLink which extends AjaxLink LoginLink has an abstract method called onSuccess() and onAlreadyLoggedIn() The Login page is constructed and has it's abstract method onLoginSuccess defined to call onSuccess() The onClick method of LoginLink does a setResponsePage to my Login page if not already logged in and calls onAlreadyLoggedIn() if the user is already logged into the site. I have a page called Page1 which contains a LoginLink. The onSuccess() method is defined to setResponsePage() to the page I ultimately need to go to say Page2. The onAlreadyLoggedIn() method is defined to setResponsePage() to the page I ultimately need to go to say Page2. On Page2, there are AjaxButtons to submit forms. If any button is clicked I get the AjaxResponse xml showing in the browser window. Any ideas on how to solve this? Is there another way of doing this interaction with built in wicket components. Thanks. Jeff