Help, Problems With Wicket Bookmarkable Page On Sun Web Server Pass Through
Hi, Need help on this. We currently deployed a wicket application on glassfish. The application's home page is mounted as /login - declared in the application as a mountable bookmarkable page. when i try to access it directly in glassfish http://localhost:8080/application/login i don't have a problem with the generated links the login has a link to forgot password for example, when i click it i can easily go to that link. when i try to click that link, it will not work properly. however, when i try to access forgot password from login page via a web server reverse proxy, it doesn't work properly. it just returns me to the login page over and over again. i'm using sun web server 7.0 btw this is what the genrated link looks like http://localhost:82/bluelace-four/login/wicket:interface/:62:loginPanel:loginForm:forgotpassLink::ILinkListener:: it keeps bringing me back to the same page. so what i did was to remove the bookmarkable page and i was able to access the forgot password page once again. the generated link allowed me to access it this time here's the link http://localhost:82/bluelace-three/?wicket:bookmarkablePage=:com.ccti.luminous.web.login.LoginPagewicket:interface=:4:loginPanel:loginForm:forgotpassLink::ILinkListener:: when i access it however through the application server directly, it all works out. really need help on this thanks guys thanks carlo
Re: Wicket: On RadioChoice component, invoke form submit, what am I missing
You need to use either pure Javascript: 1) input type=radio onchange=this.form.submit();/ or Ajax: 2) radioGroup.add(new AjaxFormSubmitBehavior(onchange) {public void onSubmit(AjaxRequestTarget target) {...}} On Fri, 2010-06-25 at 14:09 -0400, Brown, Berlin [GCG-PFS] wrote: There are some components in wicket that seem to be associated with a form, but I can't get them to actually submit the form. Or at least, I can't get them to submit the form, if I have a hierarchy of FORM - PANEL - COMPONENT/RADIOCHOICE For example, I can create a submitlink or button and those components submit: return new SubmitLink(id, form) { @Override public void onSubmit() { this.setResponsePage(pageClass); } }; That works above. I want to be able to perform a submit on a radio choice, on change. E.g. new OnChangeHandler() { @Override public void onChange(final Object sel) { // On submission, submit back to form setResponsePage(Page.class); } // MY CONTAINER IS NOT A FORM BUT A CHILD OF A FORM (E.g. FORM - PANEL - RADIOCHOICE public RadioChoice addRadioGroup(final WebMarkupContainer container, final Object modelObject, final String groupName, final String propFieldName, final String [] optionsArr, final OnChangeHandler handler) { final RadioChoice radioGroupYesNo = new RadioChoice(groupName, new PropertyModel(modelObject, propFieldName), Arrays.asList(optionsArr)) { @Override public boolean wantOnSelectionChangedNotifications() { return (handler != null); /* When the handler is not null, enable on change */ } @Override public void onSelectionChanged(Object newSel) { if (handler != null) { handler.onChange(newSel); } else { super.onSelectionChanged(newSel); } } }; container.add(radioGroupYesNo); return radioGroupYesNo; } With the code shown above, the page refreshes, but I want to submit the form and do a page refresh. I don't see where I could associate the form with the RadioChoice? Does RadioChoice need to imlement IFormSubmittingComponent? Berlin Brown - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to Ajax-validate CheckBoxMultipleChoice?
Is that element placed / added to a form ? On Sat, Jun 26, 2010 at 5:32 AM, David Chang david_q_zh...@yahoo.comwrote: Hi, I am unable to addres this need and have to ask the group. I am using the ajax approach to validate each field on a form. See the following: div wicket:id=fullNameBorder input type=text wicket:id=fullName / /div If the above field gets focus and loses the focus without any value in it, there will be a red box around the input field. If it gets a value and loses its mouse focus, the red box disappears. All this happens without the user submitting the form. The backend code is similar to the following: ... inputComponent.add(new AjaxFormComponentUpdatingBehavior(onblur) { @Override protected void onUpdate(AjaxRequestTarget target) { if (target != null) { //add border and feedback panel here } } @Override protected void onError(AjaxRequestTarget target, RuntimeException e) { if (target != null) { //add border and feedback panel here } }); This approach works well for TextFields. Now I have a list of check boxes (implemented via CheckBoxMultipleChoice). At least one of them must be checked. The above Ajax approach is NOT working. Can anybody there help me out on this? All the best. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to Ajax-validate CheckBoxMultipleChoice?
Yes. When I click Save button, wickets reports required error message for the CheckBoxMultipleChoice component. Thanks for chiming in! Best. --- On Sat, 6/26/10, yaniv kessler yan...@gmail.com wrote: From: yaniv kessler yan...@gmail.com Subject: Re: How to Ajax-validate CheckBoxMultipleChoice? To: users@wicket.apache.org Cc: wic...@indeterminate.org Date: Saturday, June 26, 2010, 8:47 AM Is that element placed / added to a form ? On Sat, Jun 26, 2010 at 5:32 AM, David Chang david_q_zh...@yahoo.comwrote: Hi, I am unable to addres this need and have to ask the group. I am using the ajax approach to validate each field on a form. See the following: div wicket:id=fullNameBorder input type=text wicket:id=fullName / /div If the above field gets focus and loses the focus without any value in it, there will be a red box around the input field. If it gets a value and loses its mouse focus, the red box disappears. All this happens without the user submitting the form. The backend code is similar to the following: ... inputComponent.add(new AjaxFormComponentUpdatingBehavior(onblur) { @Override protected void onUpdate(AjaxRequestTarget target) { if (target != null) { //add border and feedback panel here } } @Override protected void onError(AjaxRequestTarget target, RuntimeException e) { if (target != null) { //add border and feedback panel here } }); This approach works well for TextFields. Now I have a list of check boxes (implemented via CheckBoxMultipleChoice). At least one of them must be checked. The above Ajax approach is NOT working. Can anybody there help me out on this? All the best. - 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: On RadioChoice component, invoke form submit, what am I missing
On Sat, Jun 26, 2010 at 6:01 AM, Martin Grigorov martingrigo...@yahoo.comwrote: You need to use either pure Javascript: 1) input type=radio onchange=this.form.submit();/ or Ajax: 2) radioGroup.add(new AjaxFormSubmitBehavior(onchange) {public void onSubmit(AjaxRequestTarget target) {...}} On Fri, 2010-06-25 at 14:09 -0400, Brown, Berlin [GCG-PFS] wrote: There are some components in wicket that seem to be associated with a form, but I can't get them to actually submit the form. Or at least, I can't get them to submit the form, if I have a hierarchy of FORM - PANEL - COMPONENT/RADIOCHOICE For example, I can create a submitlink or button and those components submit: return new SubmitLink(id, form) { @Override public void onSubmit() { this.setResponsePage(pageClass); } }; That works above. I want to be able to perform a submit on a radio choice, on change. E.g. new OnChangeHandler() { @Override public void onChange(final Object sel) { // On submission, submit back to form setResponsePage(Page.class); } // MY CONTAINER IS NOT A FORM BUT A CHILD OF A FORM (E.g. FORM - PANEL - RADIOCHOICE public RadioChoice addRadioGroup(final WebMarkupContainer container, final Object modelObject, final String groupName, final String propFieldName, final String [] optionsArr, final OnChangeHandler handler) { final RadioChoice radioGroupYesNo = new RadioChoice(groupName, new PropertyModel(modelObject, propFieldName), Arrays.asList(optionsArr)) { @Override public boolean wantOnSelectionChangedNotifications() { return (handler != null); /* When the handler is not null, enable on change */ } @Override public void onSelectionChanged(Object newSel) { if (handler != null) { handler.onChange(newSel); } else { super.onSelectionChanged(newSel); } } }; container.add(radioGroupYesNo); return radioGroupYesNo; } With the code shown above, the page refreshes, but I want to submit the form and do a page refresh. I don't see where I could associate the form with the RadioChoice? Does RadioChoice need to imlement IFormSubmittingComponent? Berlin Brown public boolean wantOnSelectionChangedNotifica tions() { return (handler != null); /* When the handler is not null, enable on change */ } It was this code. I didn't add wantOnSelection... to the right components. The form was being submitted, some fields weren't getting saved. -- Berlin Brown (berlin dot brown at gmail.com) http://botnode.com http://berlinbrowndev.blogspot.com/
Re: Help, Problems With Wicket Bookmarkable Page On Sun Web Server Pass Through
here's the difference of the two requests Direct ( NO Web Server) GET /bluelace/login/wicket:interface/:29:loginPanel:loginForm:forgotpassLink::ILinkListener:: HTTP/1.1 Host: localhost:8091 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 115 Connection: keep-alive Referer: http://localhost:8091/bluelace/login/ Cookie: JSESSIONID=m3ubb3bvzn66; form:tree-hi=form:tree:applications:webApplications; JSESSIONID=51b8264194cd4017dbc522e2d72f Via Web Server: Equest is : GET /bluelace/login/wicket%3ainterface/%3a32%3aloginPanel%3aloginForm%3aforgotpassLink%3a%3aILinkListener%3a%3a HTTP/1.1 Proxy-agent: Sun-Java-System-Web-Server/7.0 Host: localhost:82 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Cookie: JSESSIONID=m3ubb3bvzn66; form:tree-hi=form:tree:applications:webApplications; JSESSIONID=51b8264194cd4017dbc522e2d72f Client-ip: 127.0.0.1 Via: 1.1 https-CARLOC-PC Connection: keep-alive Referer: http://localhost:82/bluelace/login/ as you can see, the :'s are replaced with %3a's On Sat, Jun 26, 2010 at 6:37 PM, Carlo Camerino carlo.camer...@gmail.comwrote: Hi, Need help on this. We currently deployed a wicket application on glassfish. The application's home page is mounted as /login - declared in the application as a mountable bookmarkable page. when i try to access it directly in glassfish http://localhost:8080/application/login i don't have a problem with the generated links the login has a link to forgot password for example, when i click it i can easily go to that link. when i try to click that link, it will not work properly. however, when i try to access forgot password from login page via a web server reverse proxy, it doesn't work properly. it just returns me to the login page over and over again. i'm using sun web server 7.0 btw this is what the genrated link looks like http://localhost:82/bluelace-four/login/wicket:interface/:62:loginPanel:loginForm:forgotpassLink::ILinkListener:: it keeps bringing me back to the same page. so what i did was to remove the bookmarkable page and i was able to access the forgot password page once again. the generated link allowed me to access it this time here's the link http://localhost:82/bluelace-three/?wicket:bookmarkablePage=:com.ccti.luminous.web.login.LoginPagewicket:interface=:4:loginPanel:loginForm:forgotpassLink::ILinkListener:: when i access it however through the application server directly, it all works out. really need help on this thanks guys thanks carlo
GMap2 and adding LocalSearch
I'm having trouble using GMap2 and adding a LocalSearch control: http://www.google.com/uds/solutions/localsearch/index.html Looks to be a one liner in Javascript: map.addControl(new google.maps.LocalSearch()); But given the class heirarchy and JS generation used, not sure how I would do this. Has anyone done this our could give advice? Thanks - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Reload HTML from deployed war
Hi. To make easier for my designer to work, I make him modified a deployed version of the application. He can edit css and html and see changes live. Webapp is deployed on a jetty 7.0 container and while the CSS modifications of the exploded webapp result in a change, when I modify an HTML nothing changes. When I run the app in a embedded jetty 6 on my machine, if I change the HTMl in the target/classes folder, changes occur for real. I am wondering why the two different behaviors given that on both container the webapp starts with wicket in Development mode. Any advice? -- Daniele Dellafiore http://danieledellafiore.net
Re: one session for standAloneApp or one session for FacebookApp
sounds like Authetication rules On Thu, Jun 24, 2010 at 3:37 PM, Fernando Wermus fernando.wer...@gmail.comwrote: Hi all, Users can login into my site in stand alone mode or with facebook connect. Thus, I would like to have two polimorphic session according to how the user decides to login. Could I switch the session in wicket when this happen? I was looking at Session.replaceSession() thanks in advance -- Fernando Wermus. www.linkedin.com/in/fernandowermus -- Nicolás Meléndez Java Software Developer 1) Google App Engine works: 1.a) http://www.clasificad.com.ar (Local free classifieds for housing, sale, services, local community, curses,jobs, and events - GAE/J + Wicket + YUI) 1.b) http://www.chessk.com (Massive multiplayer chess online GAE/J + Applets + Wicket) 2) Linkedin: http://ar.linkedin.com/in/nicolasmelendez
Re: GMap2 and adding LocalSearch
Hi, LocalSearch is deprecated: http://www.google.com/uds/solutions/localsearch/index.html Shouldn't we think about support for the GoogleBar? http://code.google.com/intl/de/apis/maps/documentation/javascript/v2/services.html#UsingGoogleBar Sven On 06/26/2010 07:29 PM, 7zark7 wrote: I'm having trouble using GMap2 and adding a LocalSearch control: http://www.google.com/uds/solutions/localsearch/index.html Looks to be a one liner in Javascript: map.addControl(new google.maps.LocalSearch()); But given the class heirarchy and JS generation used, not sure how I would do this. Has anyone done this our could give advice? Thanks - 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: GMap2 and adding LocalSearch
Either is fine - I basically need a search box in a Gmap component to help people find the location they are looking for. Is either approach easy to integrate with the existing Gmap2 component? Thanks On Jun 26, 2010, at 11:37 AM, Sven Meier s...@meiers.net wrote: Hi, LocalSearch is deprecated: http://www.google.com/uds/solutions/localsearch/index.html Shouldn't we think about support for the GoogleBar? http://code.google.com/intl/de/apis/maps/documentation/javascript/v2/services.html#UsingGoogleBar Sven On 06/26/2010 07:29 PM, 7zark7 wrote: I'm having trouble using GMap2 and adding a LocalSearch control: http://www.google.com/uds/solutions/localsearch/index.html Looks to be a one liner in Javascript: map.addControl(new google.maps.LocalSearch()); But given the class heirarchy and JS generation used, not sure how I would do this. Has anyone done this our could give advice? Thanks - 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: GMap2 and adding LocalSearch
Hi, enabling the GoogleBar was quite easy: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/gmap2-parent/gmap2-examples/src/main/java/wicket/contrib/examples/gmap/search/HomePage.java Sven On 06/26/2010 08:58 PM, Anh wrote: Either is fine - I basically need a search box in a Gmap component to help people find the location they are looking for. Is either approach easy to integrate with the existing Gmap2 component? Thanks On Jun 26, 2010, at 11:37 AM, Sven Meiers...@meiers.net wrote: Hi, LocalSearch is deprecated: http://www.google.com/uds/solutions/localsearch/index.html Shouldn't we think about support for the GoogleBar? http://code.google.com/intl/de/apis/maps/documentation/javascript/v2/services.html#UsingGoogleBar Sven On 06/26/2010 07:29 PM, 7zark7 wrote: I'm having trouble using GMap2 and adding a LocalSearch control: http://www.google.com/uds/solutions/localsearch/index.html Looks to be a one liner in Javascript: map.addControl(new google.maps.LocalSearch()); But given the class heirarchy and JS generation used, not sure how I would do this. Has anyone done this our could give advice? Thanks - 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: GMap2 and adding LocalSearch
Oh you are the man :-) Thanks Sven! On Sat, Jun 26, 2010 at 1:18 PM, Sven Meier s...@meiers.net wrote: Hi, enabling the GoogleBar was quite easy: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/gmap2-parent/gmap2-examples/src/main/java/wicket/contrib/examples/gmap/search/HomePage.java Sven On 06/26/2010 08:58 PM, Anh wrote: Either is fine - I basically need a search box in a Gmap component to help people find the location they are looking for. Is either approach easy to integrate with the existing Gmap2 component? Thanks On Jun 26, 2010, at 11:37 AM, Sven Meiers...@meiers.net wrote: Hi, LocalSearch is deprecated: http://www.google.com/uds/solutions/localsearch/index.html Shouldn't we think about support for the GoogleBar? http://code.google.com/intl/de/apis/maps/documentation/javascript/v2/services.html#UsingGoogleBar Sven On 06/26/2010 07:29 PM, 7zark7 wrote: I'm having trouble using GMap2 and adding a LocalSearch control: http://www.google.com/uds/solutions/localsearch/index.html Looks to be a one liner in Javascript: map.addControl(new google.maps.LocalSearch()); But given the class heirarchy and JS generation used, not sure how I would do this. Has anyone done this our could give advice? Thanks - 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org