[Wicket-user] Form.updateFormComponentModels() doesn't seem to be working
Ive got a simple Form with TextField(tf, new PropertyModel(myObj, text).setRequired(true). I have one non-Wicket submit button, and a wicket Button, with setDefaultFormProcessing set to false. In the onSubmit() of the Wicket button I call updateFormComponentModels(). If I put text in the field, and press the Wicket button, myObj.getText() returns null instead of the text Ive entered. Im basically trying to circumvent the validation but still update the model for a form when certain buttons are pressed. Any input is appreciated, thanks! -Jerry - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] HeaderContributor on page works for one request only? (1.2.2)
HeaderContributor.forCss(Class c, String path) is NOT working for me in 1.2.2 after the first request to a page. -Original Message- From: [EMAIL PROTECTED] [mailto:wicket-user- [EMAIL PROTECTED] On Behalf Of landtuna Sent: Tuesday, August 29, 2006 4:14 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] HeaderContributor on page works for one request only? (1.2.2) I said: Nathan Hamblen-2 said: Can anyone confirm if header contributors to pages are working properly? This works for me. I'm using a StringHeaderContributor that is added in each constructor of the page. I take that back. It worked in 1.2.1, but it's broken in 1.2.2. -- Jim Hunziker -- View this message in context: http://www.nabble.com/HeaderContributor-on- page-works-for-one-request-only--%281.2.2%29-tf2186030.html#a6047857 Sent from the Wicket - User forum at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Reusable component with CSS and images
Im working on making a reusable component that is styled with a CSS file that references some images. Ive been looking for a solution to this, and I think its just that Im having a disconnect in dealing with Resources. Heres a simple version of what Im trying to do: Component.jar contains: com/comp/MyComponent.java com/comp/MyComponent.html com/comp/MyComponent.css com/comp/MyImage1.jpg com/comp/MyImage2.jpg MyComponent.css .myclass1 { Background: url(MyImage2.jpg); // What do I put here? } .myclass2 { Background: url(MyImage2.jpg); // What do I put here? } How do I code the rest of my component to get this to work? Ive gotten it to read the .css file by doing: getApplication().getSharedResources().putClassAlias(getClass(), mycomponent); add(HeaderContributor.forCss(getClass(), MyComponent.css)); And that puts a nice entry in the header that works like: link rel=stylesheet type=text/css href=/test/app/resources/mycomponent/MyComponent.css/link Im lost as to how to get my images to read correctly. Thanks for any help with this, and thanks for a very nice framework! -Jerry - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Reusable component with CSS and images
Is the patch that Al Maw came up with in any builds? From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg Sent: Wednesday, August 30, 2006 2:06 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Reusable component with CSS and images this is a known problem that we are working to fix. basically the css file needs to be parsed for these urls and they should be changed to packaged resources. see here [1] for some info and work that has been done till date. if you would like to help us with this you would be most welcome [1] https://sourceforge.net/tracker/?func=detailatid=684978aid=1532568group_id=119783 -Igor On 8/30/06, Jerry Smith [EMAIL PROTECTED] wrote: I'm working on making a reusable component that is styled with a CSS file that references some images. I've been looking for a solution to this, and I think it's just that I'm having a disconnect in dealing with Resources. Here's a simple version of what I'm trying to do: Component.jar contains: com/comp/MyComponent.java com/comp/MyComponent.html com/comp/MyComponent.css com/comp/MyImage1.jpg com/comp/MyImage2.jpg MyComponent.css .myclass1 { Background: url(MyImage2.jpg); // What do I put here? } .myclass2 { Background: url(MyImage2.jpg); // What do I put here? } How do I code the rest of my component to get this to work? I've gotten it to read the .css file by doing: getApplication().getSharedResources().putClassAlias(getClass(), mycomponent); add(HeaderContributor.forCss(getClass(), MyComponent.css)); And that puts a nice entry in the header that works like: link rel=stylesheet type=text/css href="">/test/app/resources/mycomponent/MyComponent.css/link I'm lost as to how to get my images to read correctly. Thanks for any help with this, and thanks for a very nice framework! -Jerry - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Reusable component with CSS and images
Ok, now I'm really confused, it's working. I just took out the getApplication().getSharedResources().putClassAlias(getClass(), mycomponent); line and it's working with the CSS url's like url(MyImage1.jpg) -Original Message- From: [EMAIL PROTECTED] [mailto:wicket-user- [EMAIL PROTECTED] On Behalf Of Eelco Hillenius Sent: Wednesday, August 30, 2006 2:39 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Reusable component with CSS and images Is the patch that Al Maw came up with in any builds? Nope, it's not. We're still thinking on how to best integrate it while avoiding code duplication/ more classes then we need. Anyone ideas? Eelco - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] LoadableDetachableModel question
I've added the FeedbackPanel, but still no message. I know it's throwing an error. I'll try a test project and see if it still happens. -Original Message- From: [EMAIL PROTECTED] [mailto:wicket-user- [EMAIL PROTECTED] On Behalf Of Eelco Hillenius Sent: Friday, July 07, 2006 1:54 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] LoadableDetachableModel question Feedback panel typically should display any messages. You added a feedback panel to your page, and you are rendering the same page? Personally, I wouldn't catch exceptions in my models though. If a service fails and it is not designed to fail quietly, I would rather display some error page. But that's up to you of course :) Eelco On 7/7/06, Jerry Smith [EMAIL PROTECTED] wrote: Using a typical situation like: IModel myListModel = new LoadableDetachableModel() { protected Object load() { Object result = null; try { result = someServiceOrDao.findSomeListOfObjects(); } catch(Throwable t) { ??? } return result; } }; How can I have the error message displayed in a FeedbackPanel for the page? Doing a page.error(t.getMessage()) call doesn't seem to be doing anything. Thanks! -Jerry Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] LoadableDetachableModel question
Still the same thing, no message displayed: TestPage.java public class TestPage extends WebPage { public TestPage() { add(new FeedbackPanel(feedback)); add(new MyForm(myForm)); } class MyForm extends Form { MyForm(String id) { super(id); IModel m = new LoadableDetachableModel() { protected Object load() { List result = new ArrayList(); try { throw new Exception(My error message); } catch(Throwable t) { t.printStackTrace(); findPage().error(t.getMessage()); } return result; } }; add(new DropDownChoice(choice, m)); } } } TestPage.html html head title/title /head body div wicket:id=feedback/div form wicket:id=myForm Some selection: select wicket:id=choice/select /form /body /html -Original Message- From: [EMAIL PROTECTED] [mailto:wicket-user- [EMAIL PROTECTED] On Behalf Of Jerry Smith Sent: Friday, July 07, 2006 2:06 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] LoadableDetachableModel question I've added the FeedbackPanel, but still no message. I know it's throwing an error. I'll try a test project and see if it still happens. -Original Message- From: [EMAIL PROTECTED] [mailto:wicket-user- [EMAIL PROTECTED] On Behalf Of Eelco Hillenius Sent: Friday, July 07, 2006 1:54 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] LoadableDetachableModel question Feedback panel typically should display any messages. You added a feedback panel to your page, and you are rendering the same page? Personally, I wouldn't catch exceptions in my models though. If a service fails and it is not designed to fail quietly, I would rather display some error page. But that's up to you of course :) Eelco On 7/7/06, Jerry Smith [EMAIL PROTECTED] wrote: Using a typical situation like: IModel myListModel = new LoadableDetachableModel() { protected Object load() { Object result = null; try { result = someServiceOrDao.findSomeListOfObjects(); } catch(Throwable t) { ??? } return result; } }; How can I have the error message displayed in a FeedbackPanel for the page? Doing a page.error(t.getMessage()) call doesn't seem to be doing anything. Thanks! -Jerry Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket 2.0
Looks like there are some very nice changes coming to Wicket in 2.0! Is there a timeline on when there might be binary drops to play with and a possible target release date? -Original Message- From: [EMAIL PROTECTED] [mailto:wicket-user- [EMAIL PROTECTED] On Behalf Of Eelco Hillenius Sent: Monday, June 12, 2006 3:03 AM To: Wicket User List Subject: [Wicket-user] Wicket 2.0 Hi all, I think I sent out a similar message like this before, but I couldn't find it, so just to be sure... We've been working for about a month on Wicket 2.0 now. The meat of the changes are in, and for the not-so-faint-hearted: please check out trunk (Wicket 1.2 is maintained in the WICKET_1_2 branch) and play with it. I am doing my best (soon to be we are doing our best) to keep track on changes at our wiki: http://wicket-wiki.org.uk/wiki/index.php/Migrate-2.0 If you play with 2.0 and have any questions on how to achieve things/ possible bugs/ etc, please let us know on the list so that we can help you and/ or we can expand the migration document with some more useful tips. Hope you have fun with it! Eelco ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Border and markup inheritance problem
Sorry to send this again, I know youre all very busy trying to get the 1.2 release together, but I didnt want this to fall through the cracks if it is a bug. I'm get a WicketMessage: Unable to find component with id 'message' error. Maybe this can't be done or I'm doing it wrong using 1.2rc4, but what I'm working with is a MyBorder component, a BasePage, and ExtendPage. Here's the distilled code bits: MyBorder.html: wicket:border div wicket:id=header[header]/div div wicket:body/ /div div wicket:id=footer[footer]/div /wicket:border MyBorder.java: public class MyBorder extends Border { public MyBorder(String id) { super(id); add(new Label(header, new Model(Border Header))); add(new Label(footer, new Model(Border Footer))); } } BasePage.html html body div wicket:id=border wicket:child/ /div /body /html BasePage.java public class BasePage extends WebPage { public BasePage() { add(new MyBorder(border)); } } ExtendPage.html: wicket:extend span wicket:id=message[message]/span /wicket:extend ExtendPage.java: public class ExtendPage extends BasePage { public ExtendPage() { super(); add(new Label(message, new Model(Extended message))); } } Here's the error output minus stack: html head title/title /head body div wicket:id=border wicket:childwicket:extend span wicket:id=message[message]/span /wicket:extend/wicket:child /div /body /html [Page class = ExtendPage, id = 4]: # Path Size Type Model Object 1 _body 2.7K wicket.markup.html.internal.HtmlBodyContainer 2 _header 473 bytes wicket.markup.html.internal.HtmlHeaderContainer 3 border 1.3K com.ses.wicket.components.test.x.MyBorder 4 border:_child 485 bytes wicket.markup.html.WebMarkupContainer 5 border:_child:_extend 456 bytes wicket.markup.html.WebMarkupContainer 6 border:footer 456 bytes wicket.markup.html.basic.Label Border Footer 7 border:header 456 bytes wicket.markup.html.basic.Label Border Header 8 message 460 bytes wicket.markup.html.basic.Label Extended message From this it looks like the message Label isn't being added to the correct component(border:_child:_extend?), am I doing something wrong, or is this a bug? Thanks for any input! -Jerry
RE: [Wicket-user] Border and markup inheritance problem
Thanks for the reply Igor! Ill try the methods you mentioned. You also said markup inheritance is a better fit for this use case, could demonstrate how you would do this? I thought I was using markup inheritance, but it appears I dont fully understand how to set it up correctly. Thanks! -Jerry From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg Sent: Friday, May 19, 2006 2:03 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Border and markup inheritance problem if you look at the hierarchy of your message label it is like this: in java: page-message in markup: page-border-message so when wicket tries to render message in the markup it cannot find it because it expects it to be in the border, but in fact you have added it to the page itself in extendpage. so what you should do is either someting like this ExtendPage() { getBorder().add(message); } to put it in the right place or BasPage() { add(new MyBorder(blah).setTransparentResolver(true); } this will tell wicket that the border is transparent - if component inside border cannot be found wicket should try to locate it in the border's parent or use markup inheritance which is a much much better fit for this usecase -Igor On 5/19/06, Jerry Smith [EMAIL PROTECTED] wrote: Sorry to send this again, I know you're all very busy trying to get the 1.2 release together, but I didn't want this to fall through the cracks if it is a bug. I'm get a WicketMessage: Unable to find component with id 'message' error. Maybe this can't be done or I'm doing it wrong using 1.2rc4, but what I'm working with is a MyBorder component, a BasePage, and ExtendPage. Here's the distilled code bits: MyBorder.html: wicket:border div wicket:id=header[header]/div div wicket:body/ /div div wicket:id=footer[footer]/div /wicket:border MyBorder.java: public class MyBorder extends Border { public MyBorder(String id) { super(id); add(new Label(header, new Model(Border Header))); add(new Label(footer, new Model(Border Footer))); } } BasePage.html html body div wicket:id=border wicket:child/ /div /body /html BasePage.java public class BasePage extends WebPage { public BasePage() { add(new MyBorder(border)); } } ExtendPage.html: wicket:extend span wicket:id=message[message]/span /wicket:extend ExtendPage.java: public class ExtendPage extends BasePage { public ExtendPage() { super(); add(new Label(message, new Model(Extended message))); } } Here's the error output minus stack: html head title/title /head body div wicket:id=border wicket:childwicket:extend span wicket:id=message[message]/span /wicket:extend/wicket:child /div /body /html [Page class = ExtendPage, id = 4]: # Path Size Type Model Object 1 _body 2.7K wicket.markup.html.internal.HtmlBodyContainer 2 _header 473 bytes wicket.markup.html.internal.HtmlHeaderContainer 3 border 1.3K com.ses.wicket.components.test.x.MyBorder 4 border:_child 485 bytes wicket.markup.html.WebMarkupContainer 5 border:_child:_extend 456 bytes wicket.markup.html.WebMarkupContainer 6 border:footer 456 bytes wicket.markup.html.basic.Label Border Footer 7 border:header 456 bytes wicket.markup.html.basic.Label Border Header 8 message 460 bytes wicket.markup.html.basic.Label Extended message From this it looks like the message Label isn't being added to the correct component(border:_child:_extend?), am I doing something wrong, or is this a bug? Thanks for any input! -Jerry
[Wicket-user] Border and markup inheritance problem
I'm get a WicketMessage: Unable to find component with id 'message' error. Maybe this can't be done or I'm doing it wrong using 1.2rc4, but what I'm working with is a MyBorder component, a BasePage, and ExtendPage. Here's the distilled code bits: MyBorder.html: wicket:border div wicket:id=header[header]/div div wicket:body/ /div div wicket:id=footer[footer]/div /wicket:border MyBorder.java: public class MyBorder extends Border { public MyBorder(String id) { super(id); add(new Label(header, new Model(Border Header))); add(new Label(footer, new Model(Border Footer))); } } BasePage.html html body div wicket:id=border wicket:child/ /div /body /html BasePage.java public class BasePage extends WebPage { public BasePage() { add(new MyBorder(border)); } } ExtendPage.html: wicket:extend span wicket:id=message[message]/span /wicket:extend ExtendPage.java: public class ExtendPage extends BasePage { public ExtendPage() { super(); add(new Label(message, new Model(Extended message))); } } Here's the error output minus stack: html head title/title /head body div wicket:id=border wicket:childwicket:extend span wicket:id=message[message]/span /wicket:extend/wicket:child /div /body /html [Page class = ExtendPage, id = 4]: # PathSizeType Model Object 1 _body 2.7K wicket.markup.html.internal.HtmlBodyContainer 2 _header 473 bytes wicket.markup.html.internal.HtmlHeaderContainer 3 border 1.3K com.ses.wicket.components.test.x.MyBorder 4 border:_child 485 bytes wicket.markup.html.WebMarkupContainer 5 border:_child:_extend 456 bytes wicket.markup.html.WebMarkupContainer 6 border:footer 456 bytes wicket.markup.html.basic.Label Border Footer 7 border:header 456 bytes wicket.markup.html.basic.Label Border Header 8 message 460 bytes wicket.markup.html.basic.Label Extended message From this it looks like the message Label isn't being added to the correct component(border:_child:_extend?), am I doing something wrong, or is this a bug? Thanks for any input! -Jerry --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
RE: [Wicket-user] Ajax in IE gets slower and slower
This is happening with AjaxPagingNavigator as well. The memory usage of both IE and firefox jump pretty high on each refresh. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Knight Sent: Friday, April 07, 2006 10:58 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Ajax in IE gets slower and slower Actually, it does appear to occur in Firefox as well, but it takes a lot longer to notice. In IE the slowdown is noticeable after using the dropdown only a couple of times. If I go to another page of my application and then go back, the filtering is fast again, but then starts to slow. I will see if I can create a quickstart project to reproduce it. Steve On 4/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: hmm, can you please reproduce in a quickstart project so i can see whats going on. -Igor On 4/7/06, Steve Knight [EMAIL PROTECTED] wrote: The wicket-examples dropdown example uses AjaxFormComponentUpdatingBehavior. I am using AjaxFormSubmitBehavior. My DropDownChoice is acting as a filter to filter the results of a database query. The results are displayed in a table on the same page. It definitely slows down quicker when the returned table content is quite large. If I return only a small bit then you wouldn't even notice the slowdown until after many repeated Ajax calls. And like I said it doesn't seem to occur in Firefox. Steve On 4/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: can you reproduce this in wicket-examples/ajax drop down example. i tried and couldnt. maybe you have a memory leak elsewhere that is slowing down the container. -Igor On 4/7/06, Steve Knight [EMAIL PROTECTED] wrote: I created a DropDownChoice that submits the form via Ajax on it's onchange event. Seems to work great in Firefox, but in Internet Explorer it gets progressively slower each time I trigger the Ajax call. Is this a known issue with IE? Steve
[Wicket-user] IMG reload via AJAX
Hi all, Im trying to get an Image to reload via AJAX. Basically Ive got some thumbnails when the user clicks on them I want to display the full version. The model is changing, but the screen isnt refreshing quite right. The AJAX response comes back but the graphic doesnt update unless I force the browser to refresh. The url for the img src attribute is the same everytime, Im using a subclass of WebResource to feed the Image. Any ideas on how to get this working would be awesome! Thanks!
RE: [Wicket-user] IMG reload via AJAX
Ive already got res.setHeader(Cache-Control, no-cache); res.setHeader(Cache-Control, no-store); in the resource, how do I go about changing the src url? From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg Sent: Friday, April 07, 2006 3:29 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] IMG reload via AJAX there are a couple of ways: one) add anti caching headers to your resource two) append a random number to the resource url -Igor On 4/7/06, Jerry Smith [EMAIL PROTECTED] wrote: Hi all, I'm trying to get an Image to reload via AJAX. Basically I've got some thumbnails when the user clicks on them I want to display the full version. The model is changing, but the screen isn't refreshing quite right. The AJAX response comes back but the graphic doesn't update unless I force the browser to refresh. The url for the img src attribute is the same everytime, I'm using a subclass of WebResource to feed the Image. Any ideas on how to get this working would be awesome! Thanks!
[Wicket-user] 1.2 beta3 AjaxPagingNavigator odd behavior?
Here's my test Page: public class HomePage extends WebPage { public HomePage() { ListString list = new ArrayListString(); for(int i = 0; i 40; i++) { list.add(Integer.toString(i)); } PageableListView lv = new PageableListView(items, (List)list, 5) { public void populateItem(ListItem item) { item.add(new Label(item, item.getModelObject().toString())); } }; lv.setOutputMarkupId(true); WebMarkupContainer wmc = new WebMarkupContainer(wmc); wmc.setOutputMarkupId(true); wmc.add(lv); add(wmc); add(new AjaxPagingNavigator(nav, lv)); } } This template DOES NOT work as expected: html head title/title /head body div wicket:id=nav1 2 3 4 5/div table div wicket:id=wmc span wicket:id=items tr tdspan wicket:id=itemtest/span/td /tr /span /div /table /body /html Output with 3 selected: 1 2 3 4 5 6 7 8 10 11 12 13 14 0 1 2 3 4 This on DOES work as expected: html head title/title /head body div wicket:id=nav1 2 3 4 5/div div wicket:id=wmc table span wicket:id=items tr tdspan wicket:id=itemtest/span/td /tr /span /table /div /body /html Output with 3 selected: 1 2 3 4 5 6 7 8 10 11 12 13 14 What's going on here do you think? --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
RE: [Wicket-user] 1.2 beta3 AjaxPagingNavigator odd behavior?
Yep, its working now with the table, thanks! From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg Sent: Wednesday, April 05, 2006 11:48 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] 1.2 beta3 AjaxPagingNavigator odd behavior? tbody in ie doesnt work either with outerHTML, so you have to redraw the entire table. -Igor On 4/5/06, Martijn Dashorst [EMAIL PROTECTED] wrote: A listview doesn't have its own markup. So it can't redraw itself using AJAX. In your second example that does work, you have a webmarkup container surrounding the listview, so that *does* work in a AJAX refresh. Also, you don't need the span here: span wicket:id=items tr Just: tr wicket:id=items will do. In IE it is not possible to redraw a TR element of a table. So you need to redraw the whole table, or the TBODY part. Martijn On 4/5/06, Jerry Smith [EMAIL PROTECTED] wrote: Here's my test Page: public class HomePage extends WebPage { public HomePage() { ListString list = new ArrayListString(); for(int i = 0; i 40; i++) { list.add(Integer.toString(i)); } PageableListView lv = new PageableListView(items, (List)list, 5) { public void populateItem(ListItem item) { item.add (new Label(item, item.getModelObject().toString())); } }; lv.setOutputMarkupId(true); WebMarkupContainer wmc = new WebMarkupContainer(wmc); wmc.setOutputMarkupId(true); wmc.add(lv); add(wmc); add(new AjaxPagingNavigator(nav, lv)); } } This template DOES NOT work as expected: html head title/title /head body div wicket:id=nav1 2 3 4 5/div table div wicket:id=wmc span wicket:id=items tr tdspan wicket:id=itemtest/span/td /tr /span /div /table /body /html Output with 3 selected: 1 2 3 4 5 6 7 8 10 11 12 13 14 0 1 2 3 4 This on DOES work as expected: html head title/title /head body div wicket:id=nav1 2 3 4 5/div div wicket:id=wmc table span wicket:id=items tr tdspan wicket:id=itemtest/span/td /tr /span /table /div /body /html Output with 3 selected: 1 2 3 4 5 6 7 8 10 11 12 13 14 What's going on here do you think? --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Wicket 1.2 is coming! Write Ajax applications without touching _javascript_! -- http://wicketframework.org
[Wicket-user] IllegalStateException in WebSession.valueUnbound 1.2beta1 on Tomcat 5.5.15
Undeploying and redeploying my webapp I'm getting: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Caused by: java.lang.IllegalStateException: getId: Session already invalidated at org.apache.catalina.session.StandardSession.getId(StandardSession.java:3 28) at org.apache.catalina.session.StandardSessionFacade.getId(StandardSessionF acade.java:78) at wicket.protocol.http.WebSession.valueUnbound(WebSession.java:144) at org.apache.catalina.session.StandardSession.removeAttributeInternal(Stan dardSession.java:1607) at org.apache.catalina.session.StandardSession.expire(StandardSession.java: 737) at org.apache.catalina.session.StandardSession.expire(StandardSession.java: 643) at org.apache.catalina.session.PersistentManagerBase.stop(PersistentManager Base.java:966) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4316) at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:89 2) at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1159 ) at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1131) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:31 2) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:119) at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1053) at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1065) at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:447) at org.apache.catalina.core.StandardService.stop(StandardService.java:512) at org.apache.catalina.core.StandardServer.stop(StandardServer.java:734) at org.apache.catalina.startup.Catalina.stop(Catalina.java:601) at org.apache.catalina.startup.Catalina.start(Catalina.java:576) ... 6 more Looking at the Tomcat source it's calling interested HttpSessionListeners first, then invalidates the session, then notifies the HttpSessionBindingListeners. Is this the proper order for the spec? If so, maybe WebApplication should implement HttpSessionListener, and WebSession should check if the session is valid inside valueUnbound? --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] ListMultipleChoice and AJAX Wicket-beta1
I have a ListMultipleChoice with an AJAX onchange handler attached to it in a form. When I first bring up the form, the behavior works fine. I submit the form, which comes back to the same page. Now when I select something in the ListMultipleChoice it's throwing: Caused by: java.lang.ClassCastException: wicket.ajax.AjaxRequestTarget$EncodingResponse at wicket.protocol.http.WebRequestCycle.getWebResponse(WebRequestCycle.java :99) at wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:130 ) at wicket.request.target.component.PageRequestTarget.respond(PageRequestTar get.java:60) at wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseS trategy.java:49) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(Ab stractCompoundRequestCycleProcessor.java:66) at wicket.RequestCycle.respond(RequestCycle.java:877) at wicket.RequestCycle.step(RequestCycle.java:946) ... 21 more --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
RE: [Wicket-user] ListMultipleChoice and AJAX Wicket-beta1
The section that gets updated when the ListMultipleChoice onchange happens is wrapped in a WebMarkupContainer. Before the form is submitted it works great. It starts acting weird after the form is submitted. There are no calls to setRedirect on this page anywhere, I guess Im using the default render strategy since I havent set that anywhere. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg Sent: Thursday, March 09, 2006 2:05 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] ListMultipleChoice and AJAX Wicket-beta1 also you cannot update a component attached to a select element directly. this is because browsers dont allow select.innertHTML to work. so you will need to wrap your component with a webmarkup container and update that via ajax instead. there is an example of this in wicket-examples/builtin-ajax -Igor On 3/9/06, Igor Vaynberg [EMAIL PROTECTED] wrote: thats weird, why is an ajax request causing a redirect? are you setting the redirect manually somewhere? what render strategy do you use? -Igor On 3/9/06, Jerry Smith [EMAIL PROTECTED] wrote: I have a ListMultipleChoice with an AJAX onchange handler attached to it in a form.When I first bring up the form, the behavior works fine.I submit the form, which comes back to the same page.Now when I select something in the ListMultipleChoice it's throwing: Caused by: java.lang.ClassCastException: wicket.ajax.AjaxRequestTarget$EncodingResponse at wicket.protocol.http.WebRequestCycle.getWebResponse (WebRequestCycle.java :99) at wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:130 ) at wicket.request.target.component.PageRequestTarget.respond(PageRequestTar get.java :60) at wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseS trategy.java:49) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(Ab stractCompoundRequestCycleProcessor.java :66) at wicket.RequestCycle.respond(RequestCycle.java:877) at wicket.RequestCycle.step(RequestCycle.java:946) ... 21 more --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
RE: [Wicket-user] ListMultipleChoice and AJAX Wicket-beta1
I couldnt reproduce it in a distilled project. The problem turned up in a model. Sorry for wasting your time, Igor, and thanks for a really nice framework! From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg Sent: Thursday, March 09, 2006 2:23 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] ListMultipleChoice and AJAX Wicket-beta1 wicket examples/ajax has a choice example that does the same thing and has a submit button. i couldnt reproduce the problem. can you reproduce it in a quickstart project so that i can take a look at it? -Igor On 3/9/06, Jerry Smith [EMAIL PROTECTED] wrote: The section that gets updated when the ListMultipleChoice onchange happens is wrapped in a WebMarkupContainer. Before the form is submitted it works great. It starts acting weird after the form is submitted. There are no calls to setRedirect on this page anywhere, I guess I'm using the default render strategy since I haven't set that anywhere. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Igor Vaynberg Sent: Thursday, March 09, 2006 2:05 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] ListMultipleChoice and AJAX Wicket-beta1 also you cannot update a component attached to a select element directly. this is because browsers dont allow select.innertHTML to work. so you will need to wrap your component with a webmarkup container and update that via ajax instead. there is an example of this in wicket-examples/builtin-ajax -Igor On 3/9/06, Igor Vaynberg [EMAIL PROTECTED] wrote: thats weird, why is an ajax request causing a redirect? are you setting the redirect manually somewhere? what render strategy do you use? -Igor On 3/9/06, Jerry Smith [EMAIL PROTECTED] wrote: I have a ListMultipleChoice with an AJAX onchange handler attached to it in a form.When I first bring up the form, the behavior works fine.I submit the form, which comes back to the same page.Now when I select something in the ListMultipleChoice it's throwing: Caused by: java.lang.ClassCastException: wicket.ajax.AjaxRequestTarget$EncodingResponse at wicket.protocol.http.WebRequestCycle.getWebResponse (WebRequestCycle.java :99) at wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:130 ) at wicket.request.target.component.PageRequestTarget.respond(PageRequestTar get.java :60) at wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseS trategy.java:49) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(Ab stractCompoundRequestCycleProcessor.java :66) at wicket.RequestCycle.respond(RequestCycle.java:877) at wicket.RequestCycle.step(RequestCycle.java:946) ... 21 more --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] ListMultipleChoice and AJAX problem
Im using snapshot 20060227-0200 a ListMultipleChoice with AjaxFormComponentUpdatingBehavior. The ListMultipleChoices model is getting set to only the first selected item in the list during the AJAX update. Im guessing the problem might be in wicket-ajax.js: function wicketGetValue(comp) { var type=comp.type; if (type==checkbox||type==radio) { return comp.checked; } else { return comp.value; for select will only return the first item } } If its just a _javascript_ fix, it would probably be faster for you guys to do it. If its more involved, Id be happy to get a patch together if you could start me down the right path of the possible classes involved.
[Wicket-user] Are the lists working?
Are the lists working?