RE: Cannot detect ModalWindow cancel - ModalX live demo
You can see a live demo of ModalX here: http://demo.visualclassworks.com/modalx/ The section within the border demonstrates the use of ModalResult. Regards, Chris -Original Message- From: Jered Myers [mailto:jer...@maplewoodsoftware.com] Sent: Thursday, 2 February 2012 7:04 AM To: users@wicket.apache.org Subject: Re: Cannot detect ModalWindow cancel Thanks for your help! I will look into this. On 02/01/2012 11:34 AM, Chris Colman wrote: In trying to solve your problem of determining how the user closed the form you might find the ModalX library in Wicketstuff useful. ModalX (Modal eXtensions) for Wicket (part of Wickestuff) provides a generic modal panel, modal form which you can simply extend to build your own modal panels, modal forms and when you use that you not only have extremely easy modal construction but you also inherit some standard behaviours that are common to modal windows in many different traditional OO UI frameworks. One of the standard behaviours available in many OO UI frameworks is the concept of a 'modal result' whereby the method by which the user closed the modal is stored and accessible in the form object after closure. In the ModalFormPanel the possible values returned by getModalResult() are: public static final int MR_OK = 1; public static final int MR_CANCEL = 2; MR_CANCEL indicates the user closed the form using the cancel button or the X button in the top right corner. Both of these actions are semantically the same. In MessageBox that extends MessageBox the following addition getModalResults() values are: public static final int MR_YES = 3; public static final int MR_NO = 4; because MessageBox can be constructed with a variety of OK/Cancel/Yes/No combinations in the control panel. These constants are MB_ not MR_ because they aren't modal results but rather specify the combination of buttons to display in the Message Box. public static final int MB_OK = 0; public static final int MB_OK_CANCEL = 1; public static final int MB_YES_NO = 2; public static final int MB_YES_NO_CANCEL = 3; -Original Message- From: Andrea Del Bene [mailto:adelb...@ciseonweb.it] Sent: Wednesday, 1 February 2012 8:49 PM To: users@wicket.apache.org Subject: Re: Cannot detect ModalWindow cancel Hi Jered, this is a known issue, you can find more informations here: https://issues.apache.org/jira/browse/WICKET-3809 I have a ModalWindow where I need to know if the user saved in the WindowClosedCallback or if they chose to click the X to close the window. To do this in Wicket 1.4, I just set a variable on the page that the ModalWindow gets in the PageCreator and then check the variable in the WindowClosedCallback. When I try this in Wicket 1.5 it doesn't work. My variable retains the value I initialized it to and not the value I updated it to when I submitted the form on the ModalWindow page. I am attaching a quickstart with the 1.5.4 version of Wicket. This is where the bug appears. I updated the POM and a few files to test the same code with 1.4.19 and it works. - 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
Re: 1.5 Behaviors
See org.apache.wicket.Component#canCallListenerInterface On Thu, Feb 2, 2012 at 12:25 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi What can cause a behavior not to be processed? I have a structure like this: Form --FieldSet ---inputs... I have an appender on the fieldset which is a webmarkupcontainer. However it never gets processed.. In this case the Form are disabled. Ive also tried overriding the enabled property of the webmarkupcontainer it makes no difference. regards Nino -- 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: 1.5 Behaviors
it's never called on the behavior and neither are isEnabled... It must be something higher up the hierarchy that are stopping the behavior processing.. 2012/2/2 Martin Grigorov mgrigo...@apache.org See org.apache.wicket.Component#canCallListenerInterface On Thu, Feb 2, 2012 at 12:25 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi What can cause a behavior not to be processed? I have a structure like this: Form --FieldSet ---inputs... I have an appender on the fieldset which is a webmarkupcontainer. However it never gets processed.. In this case the Form are disabled. Ive also tried overriding the enabled property of the webmarkupcontainer it makes no difference. regards Nino -- 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: Unnecessary 302 redirects in Wicket 1.5
Is it possible to set the redirect feature localized to a page instead of every page? There are 2 out 10 pages I don't want to redirect. Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Unnecessary-302-redirects-in-Wicket-1-5-tp3921623p4351160.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: Unnecessary 302 redirects in Wicket 1.5
On Thu, Feb 2, 2012 at 1:27 PM, TH Lim ssh...@gmail.com wrote: Is it possible to set the redirect feature localized to a page instead of every page? There are 2 out 10 pages I don't want to redirect. Thanks Experiment with new RestartResponseException(new PageProvider(YourPage.class, PageParameters), RedirectPolicy.NEVER_REDIRECT) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Unnecessary-302-redirects-in-Wicket-1-5-tp3921623p4351160.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 -- 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: 1.5 Behaviors
Any clue on what it could be? 2012/2/2 nino martinez wael nino.martinez.w...@gmail.com it's never called on the behavior and neither are isEnabled... It must be something higher up the hierarchy that are stopping the behavior processing.. 2012/2/2 Martin Grigorov mgrigo...@apache.org See org.apache.wicket.Component#canCallListenerInterface On Thu, Feb 2, 2012 at 12:25 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi What can cause a behavior not to be processed? I have a structure like this: Form --FieldSet ---inputs... I have an appender on the fieldset which is a webmarkupcontainer. However it never gets processed.. In this case the Form are disabled. Ive also tried overriding the enabled property of the webmarkupcontainer it makes no difference. regards Nino -- 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: 1.5 Behaviors
Are they any other behaviors attached? Best regards, Michal Wegrzyn -Original Message- From: nino martinez wael [mailto:nino.martinez.w...@gmail.com] Sent: Thursday, February 02, 2012 14:00 To: users@wicket.apache.org Subject: Re: 1.5 Behaviors Any clue on what it could be? 2012/2/2 nino martinez wael nino.martinez.w...@gmail.com it's never called on the behavior and neither are isEnabled... It must be something higher up the hierarchy that are stopping the behavior processing.. 2012/2/2 Martin Grigorov mgrigo...@apache.org See org.apache.wicket.Component#canCallListenerInterface On Thu, Feb 2, 2012 at 12:25 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi What can cause a behavior not to be processed? I have a structure like this: Form --FieldSet ---inputs... I have an appender on the fieldset which is a webmarkupcontainer. However it never gets processed.. In this case the Form are disabled. Ive also tried overriding the enabled property of the webmarkupcontainer it makes no difference. regards Nino -- 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Added FeedbackMessage.UNDEFINED to Session
How can I add a feedback message of type UNDEFINED to the session. The session only provides methods for info, warning error. Even though the Javadocs for FeedbackMessages says WARNING: This class should typically NOT be used directly., I tried the following in a class extending Session. However, it didn't work: /** * Registers a success feedback message for this session. * @param reporter The component reporting the message. * @param message The message. * @param arguments Optional format arguments, as for {@link String#format(String, Object...)}. */ public void success(final Component reporter, final String message, final Object... arguments) { final FeedbackMessage feedback = new FeedbackMessage (reporter, String.format(message, arguments), FeedbackMessage.UNDEFINED); getFeedbackMessages().add(feedback); } ** This email and any attachments may contain information that is confidential and/or privileged for the sole use of the intended recipient. Any use, review, disclosure, copying, distribution or reliance by others, and any forwarding of this email or its contents, without the express permission of the sender is strictly prohibited by law. If you are not the intended recipient, please contact the sender immediately, delete the e-mail and destroy all copies. **
Wicket Ajax direction and roadmap regarding push-like updates
Please correct me if i'm wrong but it looks like 1.5 and 1.6 wicket will continue to use behaviors to work with ajax events driven by user events or timers. In the real world a lot of my ajax needs occur when i need to push back page state changes and don't want to write 100 lines of code with custom javascript just to do something that could be provided by the API. Hopefully I'm just ignorant of the existing elegant solution. onClick(AjaxRequestTarget target){ //disable some controls ... doWorkThatTakesSomeTime(); // update some label with current status ... doSomeMoreWork(); // append results to an unordered list // update labels with final results and enable controls } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-direction-and-roadmap-regarding-push-like-updates-tp4351890p4351890.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: 1.5 Behaviors
Nope.. It's just this one, although there might be in a child though.. 2012/2/2 Michal Wegrzyn michal.wegr...@onior.com Are they any other behaviors attached? Best regards, Michal Wegrzyn -Original Message- From: nino martinez wael [mailto:nino.martinez.w...@gmail.com] Sent: Thursday, February 02, 2012 14:00 To: users@wicket.apache.org Subject: Re: 1.5 Behaviors Any clue on what it could be? 2012/2/2 nino martinez wael nino.martinez.w...@gmail.com it's never called on the behavior and neither are isEnabled... It must be something higher up the hierarchy that are stopping the behavior processing.. 2012/2/2 Martin Grigorov mgrigo...@apache.org See org.apache.wicket.Component#canCallListenerInterface On Thu, Feb 2, 2012 at 12:25 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi What can cause a behavior not to be processed? I have a structure like this: Form --FieldSet ---inputs... I have an appender on the fieldset which is a webmarkupcontainer. However it never gets processed.. In this case the Form are disabled. Ive also tried overriding the enabled property of the webmarkupcontainer it makes no difference. regards Nino -- 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
AjaxRadio
Hello! Thank you for great work! Why wicket 1.5.4 does not include default AjaxRadio component? I was really frustrating when I did not find it. This guy saved me: http://reachmnadeem.wordpress.com/2011/08/15/wicket-ajax-radio/ Maybe this class (Ajax) should be included in default wicket's components? Not all wicket users have knowledge how to write this component ourselves. Thank you, Alexander Lipatov -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxRadio-tp4351467p4351467.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 Ajax direction and roadmap regarding push-like updates
Hi, Correct me if I'm wrong but not many of the browsers (IE, I look at you) support modern technologies like WebSocket. Correct me if I'm wrong but not many web servers support WebSocket too, only Jetty and Glassfish support it. So we cannot add support for some browsers and/or some server and ignore others. Additionally WebSocket connection is not processed by servlet filters and this requires some tricks to be able to use Wicket Application. Session and Page objects. Currently the best you can use is wicketstuff-push and/or Atmosphere which fallback to not-so-pushy technologies when they are not supported by the browser/server. On Thu, Feb 2, 2012 at 6:05 PM, pkc pkci...@gmail.com wrote: Please correct me if i'm wrong but it looks like 1.5 and 1.6 wicket will continue to use behaviors to work with ajax events driven by user events or timers. In the real world a lot of my ajax needs occur when i need to push back page state changes and don't want to write 100 lines of code with custom javascript just to do something that could be provided by the API. Hopefully I'm just ignorant of the existing elegant solution. onClick(AjaxRequestTarget target){ //disable some controls ... doWorkThatTakesSomeTime(); // update some label with current status ... doSomeMoreWork(); // append results to an unordered list // update labels with final results and enable controls } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-direction-and-roadmap-regarding-push-like-updates-tp4351890p4351890.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 -- 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: AjaxRadio
Hi, All you need to do is to add org.apache.wicket.ajax.form.AjaxFormChoiceComponentUpdatingBehavior to the RadioChoice. On Thu, Feb 2, 2012 at 3:46 PM, revenant alex...@yandex.ru wrote: Hello! Thank you for great work! Why wicket 1.5.4 does not include default AjaxRadio component? I was really frustrating when I did not find it. This guy saved me: http://reachmnadeem.wordpress.com/2011/08/15/wicket-ajax-radio/ Maybe this class (Ajax) should be included in default wicket's components? Not all wicket users have knowledge how to write this component ourselves. Thank you, Alexander Lipatov -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxRadio-tp4351467p4351467.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 -- 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: Wicket Ajax direction and roadmap regarding push-like updates
Thanks for the reply. The direction I'm wondering about is kind of like chained ajax requests and responses. At the API level you would update some controls in the onClick(), then tell wicket to return the updated ajax targets by calling some API method that would block until the web browser sent the next request saying it got the response and is ready to continue. So Wicket would make it a synchronous method for the developer but behind the scenes, it would be sending ajax responses and telling the web page to immediately make another request to continue the wicket server-side method. The first release could make some assumptions like the socket would just block until the code is finished for each section of code that takes a while. Then it could be refined as browsers and java servers better support push technology. Couldn't this be added to the core API and provide an interface for different implementations? I'm no expert but this is on my wish list. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-direction-and-roadmap-regarding-push-like-updates-tp4351890p4352332.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: Stateless and Ajax
i am just now trying to program the same thing,this kind of is very tough to implement if not impossible.. i am adding the following things in url 1)replaced component markupid 2)replaced with component class name so as to instantiate the component that replaced old one but its constructor/constructors will still have arguments which again will be needed to store in url and they can be complex too so kind of very tough to do if not impossible or i am thinking in wrong direction? On Wed, Feb 1, 2012 at 10:22 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: if you are using stateless ajax links like that then the fact that the panel has been replaced should be added as a query parameter so the page is reinitialized with the right panel, thats how stateless frameworks work :) -igor On Wed, Feb 1, 2012 at 7:21 AM, Martin Grigorov mgrigo...@apache.org wrote: On Wed, Feb 1, 2012 at 5:04 PM, zlatko99 zlatko.suslev...@gmail.com wrote: Thank you all involved in this thread. With your help, I managed to build a login/registration form, totally stateless and submitted with ajax. (Thanks, Robert, for the referenced component, it works really good). This was a proof of concept for me that such a page could be built in Wicket. I want to continue further with my project in a completely stateless manner. However, I see my project using many more complicated ajax components (ajax-autocomplete, etc.), also incorporating jqwicket library for integration with Jquery UI. Is it possible to continue with this arsenal of stateless ajax components (extended jolira) in order to achieve my plan? If I go this route (like the login/registration form), can I be optimistic that I can overcome all or most of other stateless ajax quirks waiting for me in the future? I'm thinking of a problem which I'm not sure can be handled by stateless ajax. A page has a panel and an ajax link that replaces this panel with a another panel. So far so good. The new panel also has an ajax link. Clicking on this link will lead to ComponentNotFoundException I think, because it wont be in the initial state of the re-created page. Stateless Ajax users can you try this scenario ? I work with Wicket 6.0-SNAPSHOT and Roberts' components nicely fit in my environment. Cool! More users testing the new Ajax impl in Wicket 6.0 ! Thank you, Zlatko -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Stateless-and-Ajax-tp4344007p4348144.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 -- 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- thank you, regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Veil behavior of wicketstuff-minis
Someone can help with the veil behavior, because until now I could not make it works. Thankss. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Veil-behavior-of-wicketstuff-minis-tp2228127p4352522.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: Stateless and Ajax
no, you are thinking in the right direction. this is why wicket's stateful model is better then stateless frameworks for complex UIs -igor On Thu, Feb 2, 2012 at 11:24 AM, vineet semwal vineetsemwal1...@gmail.com wrote: i am just now trying to program the same thing,this kind of is very tough to implement if not impossible.. i am adding the following things in url 1)replaced component markupid 2)replaced with component class name so as to instantiate the component that replaced old one but its constructor/constructors will still have arguments which again will be needed to store in url and they can be complex too so kind of very tough to do if not impossible or i am thinking in wrong direction? On Wed, Feb 1, 2012 at 10:22 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: if you are using stateless ajax links like that then the fact that the panel has been replaced should be added as a query parameter so the page is reinitialized with the right panel, thats how stateless frameworks work :) -igor On Wed, Feb 1, 2012 at 7:21 AM, Martin Grigorov mgrigo...@apache.org wrote: On Wed, Feb 1, 2012 at 5:04 PM, zlatko99 zlatko.suslev...@gmail.com wrote: Thank you all involved in this thread. With your help, I managed to build a login/registration form, totally stateless and submitted with ajax. (Thanks, Robert, for the referenced component, it works really good). This was a proof of concept for me that such a page could be built in Wicket. I want to continue further with my project in a completely stateless manner. However, I see my project using many more complicated ajax components (ajax-autocomplete, etc.), also incorporating jqwicket library for integration with Jquery UI. Is it possible to continue with this arsenal of stateless ajax components (extended jolira) in order to achieve my plan? If I go this route (like the login/registration form), can I be optimistic that I can overcome all or most of other stateless ajax quirks waiting for me in the future? I'm thinking of a problem which I'm not sure can be handled by stateless ajax. A page has a panel and an ajax link that replaces this panel with a another panel. So far so good. The new panel also has an ajax link. Clicking on this link will lead to ComponentNotFoundException I think, because it wont be in the initial state of the re-created page. Stateless Ajax users can you try this scenario ? I work with Wicket 6.0-SNAPSHOT and Roberts' components nicely fit in my environment. Cool! More users testing the new Ajax impl in Wicket 6.0 ! Thank you, Zlatko -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Stateless-and-Ajax-tp4344007p4348144.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 -- 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- thank you, regards, Vineet Semwal - 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: Stateless and Ajax
ha yeah i just now realized its nearly impossible to do complex things in stateless frameworks. thanks :) On Fri, Feb 3, 2012 at 1:03 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: no, you are thinking in the right direction. this is why wicket's stateful model is better then stateless frameworks for complex UIs -igor On Thu, Feb 2, 2012 at 11:24 AM, vineet semwal vineetsemwal1...@gmail.com wrote: i am just now trying to program the same thing,this kind of is very tough to implement if not impossible.. i am adding the following things in url 1)replaced component markupid 2)replaced with component class name so as to instantiate the component that replaced old one but its constructor/constructors will still have arguments which again will be needed to store in url and they can be complex too so kind of very tough to do if not impossible or i am thinking in wrong direction? On Wed, Feb 1, 2012 at 10:22 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: if you are using stateless ajax links like that then the fact that the panel has been replaced should be added as a query parameter so the page is reinitialized with the right panel, thats how stateless frameworks work :) -igor On Wed, Feb 1, 2012 at 7:21 AM, Martin Grigorov mgrigo...@apache.org wrote: On Wed, Feb 1, 2012 at 5:04 PM, zlatko99 zlatko.suslev...@gmail.com wrote: Thank you all involved in this thread. With your help, I managed to build a login/registration form, totally stateless and submitted with ajax. (Thanks, Robert, for the referenced component, it works really good). This was a proof of concept for me that such a page could be built in Wicket. I want to continue further with my project in a completely stateless manner. However, I see my project using many more complicated ajax components (ajax-autocomplete, etc.), also incorporating jqwicket library for integration with Jquery UI. Is it possible to continue with this arsenal of stateless ajax components (extended jolira) in order to achieve my plan? If I go this route (like the login/registration form), can I be optimistic that I can overcome all or most of other stateless ajax quirks waiting for me in the future? I'm thinking of a problem which I'm not sure can be handled by stateless ajax. A page has a panel and an ajax link that replaces this panel with a another panel. So far so good. The new panel also has an ajax link. Clicking on this link will lead to ComponentNotFoundException I think, because it wont be in the initial state of the re-created page. Stateless Ajax users can you try this scenario ? I work with Wicket 6.0-SNAPSHOT and Roberts' components nicely fit in my environment. Cool! More users testing the new Ajax impl in Wicket 6.0 ! Thank you, Zlatko -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Stateless-and-Ajax-tp4344007p4348144.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 -- 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- thank you, regards, Vineet Semwal - 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 -- thank you, regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Stateless and Ajax
its possible, but certainly nowhere as easy as Wicket makes it. -igor On Thu, Feb 2, 2012 at 11:45 AM, vineet semwal vineetsemwal1...@gmail.com wrote: ha yeah i just now realized its nearly impossible to do complex things in stateless frameworks. thanks :) On Fri, Feb 3, 2012 at 1:03 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: no, you are thinking in the right direction. this is why wicket's stateful model is better then stateless frameworks for complex UIs -igor On Thu, Feb 2, 2012 at 11:24 AM, vineet semwal vineetsemwal1...@gmail.com wrote: i am just now trying to program the same thing,this kind of is very tough to implement if not impossible.. i am adding the following things in url 1)replaced component markupid 2)replaced with component class name so as to instantiate the component that replaced old one but its constructor/constructors will still have arguments which again will be needed to store in url and they can be complex too so kind of very tough to do if not impossible or i am thinking in wrong direction? On Wed, Feb 1, 2012 at 10:22 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: if you are using stateless ajax links like that then the fact that the panel has been replaced should be added as a query parameter so the page is reinitialized with the right panel, thats how stateless frameworks work :) -igor On Wed, Feb 1, 2012 at 7:21 AM, Martin Grigorov mgrigo...@apache.org wrote: On Wed, Feb 1, 2012 at 5:04 PM, zlatko99 zlatko.suslev...@gmail.com wrote: Thank you all involved in this thread. With your help, I managed to build a login/registration form, totally stateless and submitted with ajax. (Thanks, Robert, for the referenced component, it works really good). This was a proof of concept for me that such a page could be built in Wicket. I want to continue further with my project in a completely stateless manner. However, I see my project using many more complicated ajax components (ajax-autocomplete, etc.), also incorporating jqwicket library for integration with Jquery UI. Is it possible to continue with this arsenal of stateless ajax components (extended jolira) in order to achieve my plan? If I go this route (like the login/registration form), can I be optimistic that I can overcome all or most of other stateless ajax quirks waiting for me in the future? I'm thinking of a problem which I'm not sure can be handled by stateless ajax. A page has a panel and an ajax link that replaces this panel with a another panel. So far so good. The new panel also has an ajax link. Clicking on this link will lead to ComponentNotFoundException I think, because it wont be in the initial state of the re-created page. Stateless Ajax users can you try this scenario ? I work with Wicket 6.0-SNAPSHOT and Roberts' components nicely fit in my environment. Cool! More users testing the new Ajax impl in Wicket 6.0 ! Thank you, Zlatko -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Stateless-and-Ajax-tp4344007p4348144.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 -- 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- thank you, regards, Vineet Semwal - 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 -- thank you, regards, Vineet Semwal - 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: Google bot see my site with errors!!
Alle mercoledì 01 febbraio 2012, Martin Grigorov ha scritto: I guess lingue is null here, i.e. there is no Accept-Language header. NPEs are easy to debug ;-) Thank you very much, I solved it by putting a if (lingua==null) { lingua = 0; } before the line with NPE: if (lingua.indexOf(en-tt)-1) getSession().setLocale( I don't know if this solution is nice to code, but it work's, and this is enought for me! :-) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Unnecessary 302 redirects in Wicket 1.5
I have compilation error with this statement. Any help here would be great. And I suppose I put this line of code at the end of my web page constructor, right? Martin Grigorov-4 wrote On Thu, Feb 2, 2012 at 1:27 PM, TH Lim lt;sshark@gt; wrote: Is it possible to set the redirect feature localized to a page instead of every page? There are 2 out 10 pages I don't want to redirect. Thanks Experiment with new RestartResponseException(new PageProvider(YourPage.class, PageParameters), RedirectPolicy.NEVER_REDIRECT) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Unnecessary-302-redirects-in-Wicket-1-5-tp3921623p4353522.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: Unnecessary 302 redirects in Wicket 1.5
The compilation error was my fault. I tried and it didn't work. Probably I missed something. What I did was throw the RestartResponseException at the end of the said page and StackOverflowException was thrown, quite obvious to me what has happened. With my limited knowledge of Wicket internal working mechanism, I think RestartResponseException was not the right solution. What I understood was a page accepted a request, redirected the request to a page targeted by the exception. it basically worked like P-R-G. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Unnecessary-302-redirects-in-Wicket-1-5-tp3921623p4353854.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: Unnecessary 302 redirects in Wicket 1.5
Can you share your code so we can take a look and help you ? On Fri, Feb 3, 2012 at 9:04 AM, TH Lim ssh...@gmail.com wrote: The compilation error was my fault. I tried and it didn't work. Probably I missed something. What I did was throw the RestartResponseException at the end of the said page and StackOverflowException was thrown, quite obvious to me what has happened. With my limited knowledge of Wicket internal working mechanism, I think RestartResponseException was not the right solution. What I understood was a page accepted a request, redirected the request to a page targeted by the exception. it basically worked like P-R-G. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Unnecessary-302-redirects-in-Wicket-1-5-tp3921623p4353854.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 -- 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