Re: How to make a request to a mapped servlet
On Tue, Jan 31, 2012 at 7:19 AM, Martin Grigorov wrote: > Hi, > > Wicket doesn't provide such functionalities. > If the servler is part of the same application then you can use > RequestDispatcher.include(). > If it is part of another app then you can use Apache HttpClient, > UrlConnection.open(), ... libraries to make the HTTP call and consume > the response. Thought as much. It will be great to have one. I was looking for it because GWT provides one that's very useful. So I thought Wicket should have this as well. -- Odeyemi 'Kayode O. http://www.sinati.com. t: @charyorde
Re: How to make a request to a mapped servlet
On Tue, Jan 31, 2012 at 10:25 AM, Kayode Odeyemi wrote: > On Tue, Jan 31, 2012 at 7:19 AM, Martin Grigorov wrote: > >> Hi, >> >> Wicket doesn't provide such functionalities. >> If the servler is part of the same application then you can use >> RequestDispatcher.include(). >> If it is part of another app then you can use Apache HttpClient, >> UrlConnection.open(), ... libraries to make the HTTP call and consume >> the response. > > > Thought as much. It will be great to have one. I was looking for it because > GWT provides one that's very useful. So I thought Wicket should have this > as well. What more does it give you than HttpClient ? You can also check Wicket's Include component. > > -- > Odeyemi 'Kayode O. > http://www.sinati.com. t: @charyorde -- 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: How to make a request to a mapped servlet
On Tue, Jan 31, 2012 at 8:29 AM, Martin Grigorov wrote: > On Tue, Jan 31, 2012 at 10:25 AM, Kayode Odeyemi > wrote: > > On Tue, Jan 31, 2012 at 7:19 AM, Martin Grigorov >wrote: > > > >> Hi, > >> > >> Wicket doesn't provide such functionalities. > >> If the servler is part of the same application then you can use > >> RequestDispatcher.include(). > >> If it is part of another app then you can use Apache HttpClient, > >> UrlConnection.open(), ... libraries to make the HTTP call and consume > >> the response. > > > > > > Thought as much. It will be great to have one. I was looking for it > because > > GWT provides one that's very useful. So I thought Wicket should have this > > as well. > > What more does it give you than HttpClient ? > A wicket wrapper around this won't hurt. I'm just looking for convenience :). > > You can also check Wicket's Include component. I'm making a request to a servlet not including. Thanks. -- Odeyemi 'Kayode O. http://www.sinati.com. t: @charyorde
help with form submit
Hello, I am a beginner to wicket. I am currently having a form with email and password. I am able to validate the fields, now the next challenge is how I can display a text just above the form (like 'email' submission successful) after both fields do not have errors and clear the form fields. Help will be appreciated TIA -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/help-with-form-submit-tp4343850p4343850.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: help with form submit
Hi ; There are many ways of doing that. For now i will assume that you are not using ajax. I will assume that you are using Model . you can do this. on your page, add a message property. private String message ; //then add a label that reads and rights to the message add(new Label("mylabel", new Model(){ public String getObject(){ return message ; } public void setObject(String object){ message = object ; } })) Then on your form submit , set the message value. When ever page refreshes, the label will display the new value. Hope that helps. Josh. On Tue, Jan 31, 2012 at 11:45 AM, srinash wrote: > Hello, I am a beginner to wicket. I am currently having a form with email > and > password. I am able to validate the fields, now the next challenge is how I > can display a text just above the form (like 'email' submission successful) > after both fields do not have errors and clear the form fields. > > Help will be appreciated > > TIA > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/help-with-form-submit-tp4343850p4343850.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: help with form submit
Thanks for the reply. I will need to use Ajax as i would not want to refresh the page. CAn you let me know how I can do this by using a fallbackbutton, an example would be good. thank you -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/help-with-form-submit-tp4343850p4343890.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: help with form submit
Maybe you will find this useful: http://println.posterous.com/wicket-automatic-ajax-form-validation-marking Best regards, Michal Wegrzyn > -Original Message- > From: srinash [mailto:avisrid...@gmail.com] > Sent: Tuesday, January 31, 2012 10:07 > To: users@wicket.apache.org > Subject: Re: help with form submit > > Thanks for the reply. I will need to use Ajax as i would not want to > refresh > the page. CAn you let me know how I can do this by using a > fallbackbutton, > an example would be good. > > thank you > > -- > View this message in context: http://apache- > wicket.1842946.n4.nabble.com/help-with-form-submit- > tp4343850p4343890.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: help with form submit
To use ajax, just and the label in my previous example in your instance of AjaxRequestTarget and make sure you have set OutputMarkupId to true for the label. Now if you want to submit the form via ajax, you can use an AjaxSubmitLink Josh. On Tue, Jan 31, 2012 at 12:07 PM, srinash wrote: > Thanks for the reply. I will need to use Ajax as i would not want to > refresh > the page. CAn you let me know how I can do this by using a fallbackbutton, > an example would be good. > > thank you > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/help-with-form-submit-tp4343850p4343890.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 1.5.4 on websphere 7
Hello, I doubt if I can help, but in my company we also have wicket (1.5.4) on WebSphere 7 (fp21). And it works fine, no problems. In addition to com.ibm.ws.webcontainer.invokeFiltersCompatibility we also have com.ibm.ws.webcontainer.assumefiltersuccessonsecurityerror set to true in the webcontainer. I don't recall why I did this, but it had to do with access to static files. Hope it helps. Regards, Hans Friederichs -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-1-5-4-on-websphere-7-tp4343774p4343925.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
Stateless and Ajax
Hi all, Can someone explain to me (from an architecture's point of view) why every Ajax component added to a page makes that page statefull? If I set the stateless hint to true and turn off the page versioning, why is a session needed? The reason why I am asking this is because I want to have a totally stateless application, where the data that should be shared between requests will be managed by myself in a cookie. p.s. I tried to use jolira wicket-stateless tools, but there is no way of submitting a stateless form using ajax button... Thank you in advance, Zlatko -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Stateless-and-Ajax-tp4344007p4344007.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
Hi Zlatko, Read this explanation: http://markmail.org/message/fkbbfmd6l7ogxj2t I will update this wiki page soon with all I know about the topic: https://cwiki.apache.org/WICKET/stateless-pages.html On Tue, Jan 31, 2012 at 12:06 PM, zlatko99 wrote: > Hi all, > > > Can someone explain to me (from an architecture's point of view) why every > Ajax component added to a page makes that page statefull? If I set the > stateless hint to true and turn off the page versioning, why is a session > needed? The reason why I am asking this is because I want to have a totally > stateless application, where the data that should be shared between requests > will be managed by myself in a cookie. > > p.s. I tried to use jolira wicket-stateless tools, but there is no way of > submitting a stateless form using ajax button... > > > Thank you in advance, > Zlatko > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Stateless-and-Ajax-tp4344007p4344007.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
How to make a threaded request within Wicket Application init
If Wicket Application is a singleton, how do I make concurrent request on initialization of my application without getting a WicketRuntimeException? For example I simply want to reload a Page in order to get a RefreshingView component to set its content whenever getObject is triggered. So i will like to know, how do I make a threaded request within init? Thanks -- Odeyemi 'Kayode O. http://www.sinati.com. t: @charyorde
Re: How to make a threaded request within Wicket Application init
Application#init() is called during javax.servlet,Filter#init(FilterConfig), so there is no http request at that time. What exactly do you want to do with the Page ? P.S. Application is not a singleton, but a ThreadLocal. There is a slight difference. On Tue, Jan 31, 2012 at 1:16 PM, Kayode Odeyemi wrote: > If Wicket Application is a singleton, how do I make concurrent request > on initialization of my application without getting a > WicketRuntimeException? > > For example I simply want to reload a Page in order to get a RefreshingView > component > to set its content whenever getObject is triggered. > > So i will like to know, how do I make a threaded request within init? > > Thanks > > -- > Odeyemi 'Kayode O. > http://www.sinati.com. t: @charyorde -- 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: How to make a threaded request within Wicket Application init
On Tue, Jan 31, 2012 at 11:23 AM, Martin Grigorov wrote: > Application#init() is called during > javax.servlet,Filter#init(FilterConfig), so there is no http request > at that time. > > What exactly do you want to do with the Page ? > I understand that IModel getObject is called once. So in order to call it multiple times, I wrote a scheduler using GAE TaskQueue to initialize the Page at intervals. So whenever the Page is reloaded, the content within RefreshingView is reloaded, getting new content as returned by getObject. Something similar to streaming a content. -- Odeyemi 'Kayode O. http://www.sinati.com. t: @charyorde
Re: Add items and then submit a form
Hi, I'm working again on this. And I realized that I have a problem with this method. The problem is when I submit the form that adds items, the main form does't keep its state. I mean if I a complete something like 'name' then click 'add item' the name desapear because it is not submitted. Do you understand my problem? But if I nest forms it works but the problem are validations on main form when inner form is submitted. Thanks in advance Tito On Tue, Dec 20, 2011 at 8:38 AM, Tito wrote: > Great!! > It works ok! > > Thank you very much. > > On Tue, Dec 20, 2011 at 6:21 AM, Andrea Del Bene wrote: > >> This should not be a big deal. Wicket lets you put form submitting button >> outside form itself. All you have to do to make it work is to pass the form >> to component's constructor. >> >> >> HTML code: >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> Java code: >> >> >> >> add(form1 = new Form("form1"){ >> @Override >>protected void onSubmit() { >>super.onSubmit(); >>System.out.println("form1"); >>} >> }); >> >>add(new SubmitLink("submit1", form1)); >> >>Form form2; >> >>add(form2 =new Form("form2"){ >>@Override >>protected void onSubmit() { >>super.onSubmit(); >>System.out.println("form2"); >>} >> }); >> >>form2.add(new SubmitLink("submit2")); >> >> >> >> Button "submit1" is outside its form and you have two separated form. >> >> >> >> I think you are right. >>> Using an AjaxButton it works a litle more like I want. >>> >>> Nevertheless I still have a problem, because outer form submits inner >>> form. >>> >>> In my case I think that I need two separated forms, but the problem is >>> how >>> to put add button y save button in the correct place. I mean, the layout >>> is >>> what you mentioned but the behavior is more like two separated forms. >>> Thank you! >>> >>> On Mon, Dec 19, 2011 at 2:04 PM, Andrea Del Bene* >>> *wrote: >>> >> >> >> --**--**- >> To unsubscribe, e-mail: >> users-unsubscribe@wicket.**apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >
Re: Stateless and Ajax
I dont know if the conversation you pointed to can explain anything for this question;] I can only guess that if you make ajax call and you already have page created then it is faster, from what I know solution like jolira creates new page and whole component tree over and over again on each ajax call. pozdrawiam Paweł Kamiński kami...@gmail.com pkaminski@gmail.com __ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket 1.5.4 on websphere 7
I had a problem with filter wicket and websphere and I solved the problem this way: wicket.application org.apache.wicket.protocol.http.WicketServlet applicationClassName myApplication wicket.application /* Only this and its work.. See and try. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-1-5-4-on-websphere-7-tp4343774p4344270.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
On Tue, Jan 31, 2012 at 2:16 PM, kamiseq wrote: > I dont know if the conversation you pointed to can explain anything > for this question;] OK, then it is not clear. Ajax behavior needs to be stateful to be able to find the page that it has to update. By being stateful the behavior makes the whole page stateful and thus this page is stored in the page store at the end of the request cycle. To be able to store it Wicket needs the session id. Later when an Ajax call fires the same session id is used to find this page instance in the store, then find the component with the Ajax behavior in that page and execute the callback method (onEvent, onClick, etc.) Jolira's Ajax behaviors by being stateless do not store the page and thus they recreate a new page instance for each Ajax call. But instead of rendering the whole page only the components added to the AjaxRequestTarget are rendered and delivered back. Is it more clear now ? > > I can only guess that if you make ajax call and you already have page > created then it is faster, from what I know solution like jolira > creates new page and whole component tree over and over again on each > ajax call. > > pozdrawiam > Paweł Kamiński > > kami...@gmail.com > pkaminski@gmail.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: Stateless and Ajax
Yes, now it's much more clear, thank you! But then, I'm curious to know why doesn't exist a component in Jolira's package that can submit stateless form by ajax button? Is it not possible for such component to exist or the reason is lacking effort on their side? If it is possible, can you give me some hint in order to be able to come up with such a solution? Thank you, Zlatko -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Stateless-and-Ajax-tp4344007p4344401.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
On Tue, Jan 31, 2012 at 3:01 PM, zlatko99 wrote: > Yes, now it's much more clear, thank you! Welcome! > > But then, I'm curious to know why doesn't exist a component in Jolira's > package that can submit stateless form by ajax button? Is it not possible > for such component to exist or the reason is lacking effort on their side? > If it is possible, can you give me some hint in order to be able to come up > with such a solution? Until 1.5.4 Wicket was reading only the GET request parameters to fill its PageParameters. This is improved in 1.5.4 and now it should be possible to use wicket-ajax.js submitFormById() (which uses POST). Try and tell me what problems you face. Then we will figure out how to solve them. > > Thank you, > Zlatko > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Stateless-and-Ajax-tp4344007p4344401.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: right click popup context menu
I have a similar requirement for my project .could you share the implementation or guide me to the example which can help to implement context menu on right of a grid cell in Wicket. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/right-click-popup-context-menu-tp1872802p4343078.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
Adding onclick ajax behaviour to a panel
Dear Forum, I have a grid of panels (a calendar, really) and each panel may have a list of people or no list at all. Because the panels are so small, I'd like to be able to click on the panel and have a modal window pop up. Which Ajax updating behaviour should I add to the panel? I can't add AjaxFormComponentUpdatingBehavior to it since it's not a form component. If Ajax updating behaviour is not the right element that I need to add, then which one is it? Silly as this question is, I am a bit lost. Thanks in advance for any advice. Lucas -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Adding-onclick-ajax-behaviour-to-a-panel-tp4344504p4344504.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
;] hurray pozdrawiam Paweł Kamiński kami...@gmail.com pkaminski@gmail.com __ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Adding onclick ajax behaviour to a panel
AjaxEventBehavior("onclick") On Tue, Jan 31, 2012 at 3:40 PM, lucast wrote: > Dear Forum, > I have a grid of panels (a calendar, really) and each panel may have a list > of people or no list at all. > > Because the panels are so small, I'd like to be able to click on the panel > and have a modal window pop up. > > Which Ajax updating behaviour should I add to the panel? I can't add > AjaxFormComponentUpdatingBehavior to it since it's not a form component. > If Ajax updating behaviour is not the right element that I need to add, > then which one is it? > > Silly as this question is, I am a bit lost. > > Thanks in advance for any advice. > > Lucas > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Adding-onclick-ajax-behaviour-to-a-panel-tp4344504p4344504.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: help with form submit
Thank you for the reply. I will take a look. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/help-with-form-submit-tp4343850p4344980.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
Is multi-window support on by default in 1.5.3?
Hello, I am having some issues when I use modal windows in Wicket 1.5.3. I am using clustering (having multiple hosts running the same application). So I am wondering whether I have to turn on multi-window support somewhere or is is turned on by default? -Suresh -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Is-multi-window-support-on-by-default-in-1-5-3-tp4345435p4345435.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
Hi Martin, thank you for your advice and support. I just wanted to ask if this submitFormById() function is wrapped in some Wicket component so I can use it in an object-oriented manner, or am I supposed to call it manually by an onClick event of a button/link? If there is a ready-made component, it would also automatically import the related javascript, isn't it? I would be grateful if you can give me a simple example of submitting stateless form using ajax. Thank you, Zlatko -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Stateless-and-Ajax-tp4344007p4345591.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: Is multi-window support on by default in 1.5.3?
The concept of multiple page maps was replaced in Wicket 1.5 with a simpler, linear versioning strategy. https://cwiki.apache.org/confluence/display/WICKET/Page+Storage I never found a detailed discussion of the relative pros/cons of this design, but I think the multiple window/tab use case should be handled by default. That said, modal windows seem to be a source of many problems in both 1.4 and 1.5 so your mileage may vary. https://issues.apache.org/jira/secure/IssueNavigator.jspa?sorter/field=created&sorter/order=DESC On Tue, Jan 31, 2012 at 10:37 AM, sudeivas wrote: > Hello, > I am having some issues when I use modal windows in Wicket 1.5.3. I am > using clustering (having multiple hosts running the same application). So I > am wondering whether I have to turn on multi-window support somewhere or is > is turned on by default? > > -Suresh > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Is-multi-window-support-on-by-default-in-1-5-3-tp4345435p4345435.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
Hi Zlatko, Wicket's AjaxSubmitLink uses AjaxFormSubmitBehavior under the hood which uses submitFormById() JavaScript function. See any of the Jolira's behaviors and compare it to its stateful counter part in Wicket and see what you need to do to make AjaxSubmitLink stateless. On Tue, Jan 31, 2012 at 9:30 PM, zlatko99 wrote: > Hi Martin, > > thank you for your advice and support. > > I just wanted to ask if this submitFormById() function is wrapped in some > Wicket component so I can use it in an object-oriented manner, or am I > supposed to call it manually by an onClick event of a button/link? If there > is a ready-made component, it would also automatically import the related > javascript, isn't it? > > I would be grateful if you can give me a simple example of submitting > stateless form using ajax. > > Thank you, > Zlatko > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Stateless-and-Ajax-tp4344007p4345591.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: Is multi-window support on by default in 1.5.3?
Oops, that JIRA link was supposed to include a "modal" keyword :) On Tue, Jan 31, 2012 at 11:33 AM, Dan Retzlaff wrote: > The concept of multiple page maps was replaced in Wicket 1.5 with a > simpler, linear versioning strategy. > https://cwiki.apache.org/confluence/display/WICKET/Page+Storage > > I never found a detailed discussion of the relative pros/cons of this > design, but I think the multiple window/tab use case should be handled by > default. That said, modal windows seem to be a source of many problems in > both 1.4 and 1.5 so your mileage may vary. > > https://issues.apache.org/jira/secure/IssueNavigator.jspa?sorter/field=created&sorter/order=DESC > > > On Tue, Jan 31, 2012 at 10:37 AM, sudeivas wrote: > >> Hello, >> I am having some issues when I use modal windows in Wicket 1.5.3. I >> am >> using clustering (having multiple hosts running the same application). So >> I >> am wondering whether I have to turn on multi-window support somewhere or >> is >> is turned on by default? >> >> -Suresh >> >> -- >> View this message in context: >> http://apache-wicket.1842946.n4.nabble.com/Is-multi-window-support-on-by-default-in-1-5-3-tp4345435p4345435.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: Is multi-window support on by default in 1.5.3?
Thanks for the information. I am trying to resolve the issue by adding panels to the modal window. It creates some problem when we add pages to it. Also as we are using clustering, I did try to set, getRequestCycleSettings().setRenderStrategy(RenderStrategy.ONE_PASS_RENDER); But I am seeing a warning, [org.apache.wicket.request.handler.render.WebPageRenderer] - Falling back to Redirect_To_Buffer render strategy because none of the conditions matched. Am I missing something or using it wrongly? Thanks, Suresh -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Is-multi-window-support-on-by-default-in-1-5-3-tp4345435p4345683.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
straight copy from jolira but for 6.0. basically just keep overriding the ajax components and returning getStatelessHint to true and passing page parameters to ajax components as needed. Code is buggy so just use as reference. https://github.com/robmcguinness/wicket-stateless/blob/master/src/main/java/com/robmcguinness/stateless/StatelessAjaxButton.java http://wicket-stateless.herokuapp.com/ *martin,* would the core devs consider pulling some of jolira's ajax components or some variant of it into the wicket-core? seems that over the years a the demand for stateless ajax components is pretty reasonable. rob -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Stateless-and-Ajax-tp4344007p4345686.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
On Tue, Jan 31, 2012 at 10:04 PM, robert.mcguinness wrote: > straight copy from jolira but for 6.0. basically just keep overriding the > ajax components and returning getStatelessHint to true and passing page > parameters to ajax components as needed. > > Code is buggy so just use as reference. > > https://github.com/robmcguinness/wicket-stateless/blob/master/src/main/java/com/robmcguinness/stateless/StatelessAjaxButton.java > > http://wicket-stateless.herokuapp.com/ > > *martin,* Don't ask Martin, ask at dev@ ;-) > > would the core devs consider pulling some of jolira's ajax components or > some variant of it into the wicket-core? seems that over the years a the > demand for stateless ajax components is pretty reasonable. > > rob > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Stateless-and-Ajax-tp4344007p4345686.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: Stateless and Ajax
i have started writing some of that ,the way i am doing is ,the user wont have to contribute or retrieve pageparameters on his own.he will do in the normal wicket fashion ,the user will just have to extend the statelessmodel that i wrote and these things will be done on its own. i am using 1.5.x On Wed, Feb 1, 2012 at 1:41 AM, Martin Grigorov wrote: > On Tue, Jan 31, 2012 at 10:04 PM, robert.mcguinness > wrote: >> straight copy from jolira but for 6.0. basically just keep overriding the >> ajax components and returning getStatelessHint to true and passing page >> parameters to ajax components as needed. >> >> Code is buggy so just use as reference. >> >> https://github.com/robmcguinness/wicket-stateless/blob/master/src/main/java/com/robmcguinness/stateless/StatelessAjaxButton.java >> >> http://wicket-stateless.herokuapp.com/ >> >> *martin,* > > Don't ask Martin, ask at dev@ ;-) > >> >> would the core devs consider pulling some of jolira's ajax components or >> some variant of it into the wicket-core? seems that over the years a the >> demand for stateless ajax components is pretty reasonable. >> >> rob >> >> -- >> View this message in context: >> http://apache-wicket.1842946.n4.nabble.com/Stateless-and-Ajax-tp4344007p4345686.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 > -- 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: Google bot see my site with errors!!
Alle martedì 31 gennaio 2012, Josh Kamau ha scritto: > Does your homepage constructor have any arguments? this is the first part of HomePage.java, with some omissis package org.wicket.example; import .. public class HomePage extends WebPage // implements java.io.Serializable { private static final long serialVersionUID = 1L; public Model modelWww; //private public int i; public String ,cp; public String vcode; public HomePage() { this ( new PageParameters() ); } public HomePage(PageParameters inparams) // PageParameters params) { final HttpServletRequest httpServletRequest = ((WebRequest)getRequest()).getHttpServletRequest(); final String lingua = httpServletRequest.getHeader("Accept-Language"); if (lingua.. String v; // = params.getString("v"); // prende il parametro v (codice del video) dall'URL String invideo = inparams.getString("v"); if (invideo==null) {// NESSUN VIDEO URL INSERITO modelWww = new Model("eg: http://www.youtube.com/watch?v=uSD4vsh1zDA";); } else { .. The MainApplication.java complete source code: == package org.wicket.example; import org.apache.wicket.protocol.http.WebApplication; import org.apache.wicket.request.target.coding.QueryStringUrlCodingStrategy; import org.wicket.example.HomePage; import org.wicket.example.QuoteResult; public class MainApplication extends WebApplication { @Override protected void init() { mount(new QueryStringUrlCodingStrategy("watch", QuoteResult.class)); } @Override public Class getHomePage() { return HomePage.class; } } - 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 martedì 31 gennaio 2012, Martin Grigorov ha scritto: > What exactly is the code at: org.wicket.example.QuoteResult. > (QuoteResult.java: 55) ? package org.wicket.example; import java.util.Locale; import javax.servlet.http.HttpServletRequest; import org.apache.wicket.markup.html.WebMarkupContainer; import org.apache.wicket.Component; import org.apache.wicket.behavior.AbstractBehavior; import org.apache.wicket.markup.html.IHeaderResponse; import org.apache.wicket.markup.html.internal.HeaderResponse; import org.apache.wicket.markup.ComponentTag; import org.apache.wicket.behavior.SimpleAttributeModifier; import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.markup.html.form.DropDownChoice; import org.apache.wicket.markup.html.form.Form; import org.apache.wicket.markup.html.form.TextField; import org.apache.wicket.markup.html.panel.FeedbackPanel; import org.apache.wicket.markup.html.link.*; import org.apache.wicket.model.Model; import org.apache.wicket.PageParameters; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.protocol.http.WebRequest; import org.apache.wicket.protocol.http.WebResponse; import org.apache.wicket.request.target.coding.QueryStringUrlCodingStrategy; import org.apache.wicket.request.target.component.BookmarkablePageRequestTarget; import org.apache.wicket.request.target.basic.RedirectRequestTarget; import javax.servlet.http.HttpServletRequest; public class QuoteResult extends WebPage // implements java.io.Serializable { private static final long serialVersionUID = 1L; public Model modelWww; public int i; public String ,cp,formato; public String vcode; public String urlcache,burlcache; public QuoteResult() { this ( new PageParameters() ); } // public QuoteResult(PageParameters inparams) // PageParameters params) { final HttpServletRequest httpServletRequest = ((WebRequest)getRequest()).getHttpServletRequest(); final String lingua = httpServletRequest.getHeader("Accept-Language"); if (lingua.indexOf("en-tt")>-1) getSession().setLocale(new Locale ("en-tt")); // *** THIS IS LINE 55 > NPEs are easy to debug ;-) What is NPEs? I use Eclipse IDE. I don't know to debug, can you suggest a simple guide to debug Wichet? The app work well, on my laptop, where I code it, I tested it in localhost with different language browsers. It also work well on server. It is very strange! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket-Source: Click-through from browser back to Java source
Working on someone else's complex wicket pages can result in a lot of time spent hunting for components in the source. What if you could click on an item in the web page and jump straight to the line of Java source that created it? The net.ftlines.wicket-source module, plus a couple of plugins, lets you do just that. There are three parts - a module for your WicketApplication, a Firefox plugin, and an Eclipse plugin. 1. Wicket module records where in the source code each component is constructed and saves it in an HTML attribute. 2. Firebug extension displays the html attribute in Firebug's sidebar and lets you click to open it in Eclipse. (Chrome extension pending.) 3. Eclipse plugin listens for clicks from Firefox and opens the file to that line of the Java source. These three pieces together close the circle from wicket components and html rendering, to the browser, and back to the wicket component source, speeding work on existing but unfamiliar pages, and making minor wording tweaks quick and easy. For more information and installation, check out https://www.42lines.net/2012/01/31/announcing-wicket-source/ Release 1.5.0_06 is available in maven central. 1.5.0.7-SNAPSHOT contains a bug fix for ajax components. Jenny Brown
Re: Wicket-Source: Click-through from browser back to Java source
looks awesome. can't wait to try it. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Source-Click-through-from-browser-back-to-Java-source-tp4346532p4346698.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