[Wicket-user] Clueless - Customising Behaviors
Hey guys, At the moment I have been looking for ways to modify the existing AjaxSelfUpdatingTimerBehavior, and i am looking to create my own CustomAjaxSelfUpdatingTimerBehavior that continues to count before the next polling without waiting for the response. i dont know where to start or how to go about it really. I was wondering if anyone knew of any tutorials covering behaviors from the ground up. I have had a look around and all of the tutorials seem concerned with the API docs and Composite behaviors. Thanks! -- View this message in context: http://www.nabble.com/Clueless---Customising-Behaviors-tf4016423.html#a11406722 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Clueless - Customising Behaviors
At the moment I have been looking for ways to modify the existing AjaxSelfUpdatingTimerBehavior, and i am looking to create my own CustomAjaxSelfUpdatingTimerBehavior that continues to count before the next polling without waiting for the response. i dont know where to start or how to go about it really. I was wondering if anyone knew of any tutorials covering behaviors from the ground up. I have had a look around and all of the tutorials seem concerned with the API docs and Composite behaviors. Please take a good look at the wicket-examples project. It hosts my examples concerning behaviors, including AjaxSelfUpdatingTimerBehavior and CustomAjaxSelfUpdatingTimerBehavior. Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Clueless - Customising Behaviors
Thanks Eelco! just found the src for the latest beta so I can see how the current AjaxSelfUpdatingTimerBehavior works, ill check out the wicket examples, should be able to pull it apart in no time. Eelco Hillenius wrote: At the moment I have been looking for ways to modify the existing AjaxSelfUpdatingTimerBehavior, and i am looking to create my own CustomAjaxSelfUpdatingTimerBehavior that continues to count before the next polling without waiting for the response. i dont know where to start or how to go about it really. I was wondering if anyone knew of any tutorials covering behaviors from the ground up. I have had a look around and all of the tutorials seem concerned with the API docs and Composite behaviors. Please take a good look at the wicket-examples project. It hosts my examples concerning behaviors, including AjaxSelfUpdatingTimerBehavior and CustomAjaxSelfUpdatingTimerBehavior. Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Clueless---Customising-Behaviors-tf4016423.html#a11406804 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] onSubmit() called twice
Hi, Eelco, I guess I found why this was happening, but somehow this doesn't seem right to me. I had been experimenting with adding this add( new AjaxFormValidatingBehavior( this, onchange ) ); to my RequiredTextField. It never did work for me, but I thought I'd get back to it later. [When I say it doesn't work, I mean that there is no Javascript validation (which IIUC is what's supposed to happen).] Anyway, when I add this behaviour, onSubmit() is getting called twice for some reason, which at least for me is definitely not the desired behaviour of my form. Is this the expected behaviour, or is something wrong? Cheers, Dave On Mon, 2007-07-02 at 21:51 -0700, Eelco Hillenius wrote: onSubmit(), and consequently the code I have in that overridden method, is being called twice. I'm wondering if it's my misunderstanding of how Wicket works, and this behaviour is intended, or if I somehow introduced a bug in my code. If this is caused by my error, does anybody have any hints as to where I can look to find the source of this method's being called twice? That should definitively not happen. Can you tell us again what Wicket version you are using, and can you set a break point in your onSubmit method and tell us the trace? Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Copenhagen Wicket Users Group - interested?
Oeh an btw my cell number are 29367684. If you somehow get in trouble finding the address etc.. Flemming Boller wrote: Yes! See you on tuesday. On 6/26/07, *Nino Saturnino Martinez Vazquez Wael* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: the more the better:) So did we agree on the agenda? 1. Testing Wicket apps 2. Some Wicket Hibernate 3. Showing of the stuff we've done with wicket? regards Nino Frank Bille wrote: Cool. I have invited a colleague of mine. Frank On 6/25/07, *Nino Saturnino Martinez Vazquez Wael* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: sure... Flemming Boller wrote: could it be 17, then it is fine by me :-) have to get to frederiksberg... /FLemming On 6/25/07, *Nino Saturnino Martinez Vazquez Wael* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: O, then 16 a clock at jayway dk it is? Jayway address: Jakob Danefærdsvej 6b Frederiksberg C regards Nino Flemming Boller wrote: Great idea with the calendar! It is the same with me, after 16-17 is the best for me too. /Flemming On 6/22/07, *Frank Bille* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: On 6/22/07, * Nino Saturnino Martinez Vazquez Wael* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I've created a public google calendar for us: http://www.google.com/calendar/embed?src=7mkimsnp84i09nh48u5ju59pqg%40group.calendar.google.com http://www.google.com/calendar/embed?src=7mkimsnp84i09nh48u5ju59pqg%40group.calendar.google.com http://www.google.com/calendar/embed?src=7mkimsnp84i09nh48u5ju59pqg%40group.calendar.google.com http://www.google.com/calendar/embed?src=7mkimsnp84i09nh48u5ju59pqg%40group.calendar.google.com http://www.google.com/calendar/embed?src=7mkimsnp84i09nh48u5ju59pqg%40group.calendar.google.com http://www.google.com/calendar/embed?src=7mkimsnp84i09nh48u5ju59pqg%40group.calendar.google.com http://www.google.com/calendar/embed?src=7mkimsnp84i09nh48u5ju59pqg%40group.calendar.google.com http://www.google.com/calendar/embed?src=7mkimsnp84i09nh48u5ju59pqg%40group.calendar.google.com And entered your proposition Flemming. It looks ok for me. Cool, thx. I normally can't meet before 16-17. So it's either after 4 or in the weekends. Frank - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net
Re: [Wicket-user] Using hot-reloading of classes with Spring (Was: Has something changed in markup inheritance?)
* Watter: Most of the time the following holds true when I reach that statement: Session.get().getClass().getClassLoader() = org.apache.wicket.application.ReloadingClassLoader FusionAuthenticatedWebSession.class.getClassLoader() = org.apache.wicket.application.ReloadingClassLoader However, when I am use the behaviour described earlier in the thread (browser back button, click any link), I instead see that the following with that cast: Session.get().getClass().getClassLoader() = org.apache.wicket.application.ReloadingClassLoader FusionAuthenticatedWebSession.class.getClassLoader() = ContextLoader That's very interesting. It may be caused by some page deserialization not using the right classloader, when Wicket pulls pages out of the second-level cache. May be worth trying with org.apache.wicket.util.lang.Objects.setObjectStreamFactory(new WicketObjectStreamFactory()) -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket 1.3 and tomcat 5.5 filterStart severe error?
ahh, thanks.. Gwyn Evans wrote: On Friday, June 29, 2007, 8:03:08 AM, Nino [EMAIL PROTECTED] wrote: See http://www.nabble.com/remove-test-scope-for-slf4j-in-pom.xml-t3913261.html for background. thanks, now its working.. Thought that dependencies would have been setup... So belived that something else was causing it.. Igor Vaynberg wrote: add this into your pom: dependency groupIdorg.slf4j/groupId artifactIdslf4j-log4j12/artifactId version1.0.1/version /dependency dependency groupIdlog4j/groupId artifactIdlog4j/artifactId version1.2.14/version /dependency -igor On 6/28/07, *Nino Saturnino Martinez Vazquez Wael* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Sorry for hanging on this for a couple of days... using the wicket 1.3 beta 2 release and mvn install on wicket quickstart project and the deploying on tomcat 6, with the war from target folder yields this on my laptop: jun 29, 2007 12:57:44 AM org.apache.catalina.core.StandardContext filterStart SEVERE: Exception starting filter quickstart java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder at org.slf4j.LoggerFactory.clinit(LoggerFactory.java:57) at org.apache.wicket.protocol.http.WicketFilter .clinit(WicketFilter.java:73) ... /Gwyn - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Copenhagen Wicket Users Group - interested?
I wonder how much spam this will attract :) Martijn -- Wicket joins the Apache Software Foundation as Apache Wicket Apache Wicket 1.3.0-beta2 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta2/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Copenhagen Wicket Users Group - interested?
doh:( Martijn Dashorst wrote: I wonder how much spam this will attract :) Martijn - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Copenhagen Wicket Users Group - interested?
yes everybody start calling our new phone buddy!! On 7/3/07, Martijn Dashorst [EMAIL PROTECTED] wrote: I wonder how much spam this will attract :) Martijn -- Wicket joins the Apache Software Foundation as Apache Wicket Apache Wicket 1.3.0-beta2 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta2/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] jWeekend London-based Wicket training course on July 14th/15th
Hi folks, This is a shameless plug. However, it's an on-topic shameless plug, so hopefully that's fine with everyone. ;-) jWeekend run weekend training courses for people who are too busy to do them during the week. I'm going to be helping run a course on Wicket on the weekend of July 14th/15th. The programme is looking really interesting and comprehensive, and this will be a fabulous opportunity to really get up to speed with the framework. Obviously, I'd love to see some of you there. For more details and booking information please see the web site, which lives here: http://www.jweekend.co.uk Best regards, Al -- Alastair Maw Wicket-biased blog at http://herebebeasties.com - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] onSubmit() called twice
first AjaxFormValidationBehavior doesn't do client side (javascript) validation. it calls the server and does this by submitting the form. so if you change the field where you have this validation on. And then you directly click a submit button yes it will be done twice. first the fields onchange is triggered (or the button i dont know what the browser sees first) then the button click. so yes you get 2 form submits But i don't know where you add that form on and what onchange you trigger because this: add( new AjaxFormValidatingBehavior( this, onchange ) ); seems to me that you add this to a forms onchange? (because this needs to be a form) but i guess you mean textfield.add( new AjaxFormValidatingBehavior( this, onchange ) ); johan On 7/3/07, David Leangen [EMAIL PROTECTED] wrote: Hi, Eelco, I guess I found why this was happening, but somehow this doesn't seem right to me. I had been experimenting with adding this add( new AjaxFormValidatingBehavior( this, onchange ) ); to my RequiredTextField. It never did work for me, but I thought I'd get back to it later. [When I say it doesn't work, I mean that there is no Javascript validation (which IIUC is what's supposed to happen).] Anyway, when I add this behaviour, onSubmit() is getting called twice for some reason, which at least for me is definitely not the desired behaviour of my form. Is this the expected behaviour, or is something wrong? Cheers, Dave On Mon, 2007-07-02 at 21:51 -0700, Eelco Hillenius wrote: onSubmit(), and consequently the code I have in that overridden method, is being called twice. I'm wondering if it's my misunderstanding of how Wicket works, and this behaviour is intended, or if I somehow introduced a bug in my code. If this is caused by my error, does anybody have any hints as to where I can look to find the source of this method's being called twice? That should definitively not happen. Can you tell us again what Wicket version you are using, and can you set a break point in your onSubmit method and tell us the trace? Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] jWeekend London-based Wicket training course on July 14th/15th
hmm a weekend in london! /me checking flights :) On 7/3/07, Al Maw [EMAIL PROTECTED] wrote: Hi folks, This is a shameless plug. However, it's an on-topic shameless plug, so hopefully that's fine with everyone. ;-) jWeekend run weekend training courses for people who are too busy to do them during the week. I'm going to be helping run a course on Wicket on the weekend of July 14th/15th. The programme is looking really interesting and comprehensive, and this will be a fabulous opportunity to really get up to speed with the framework. Obviously, I'd love to see some of you there. For more details and booking information please see the web site, which lives here: http://www.jweekend.co.uk Best regards, Al -- Alastair Maw Wicket-biased blog at http://herebebeasties.com - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AjaxLink not updating Image
I am experiencing the same behavior with 1.3.0-beta2. My code: final Image image = new Image(image, gfx/online.gif); Link imageLink = new AjaxFallbackLink(imageToggle) { @Override public void onClick(AjaxRequestTarget target) { image.setModel(new Model(gfx/offline.gif)); target.addComponent(image); } }; After clicking the link, the ajax-debug shows online.gif being sent for the image name. Any idea? Thanks in advance, Sven -- View this message in context: http://www.nabble.com/AjaxLink-not-updating-Image-tf3915168.html#a11409389 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] MarkupException using a fragment with a TabbedPanel
Hi All, I just grabbed Wicket 1.3.0-beta2 and tried to reproduce this problem. The problem still occurs. I managed to isolate it to a simple use case (see the attachments for Java code and HTML - ZIP attachments get filtered out, so I'm sending the files as is). It looks like it doesn't have anything to do with a TabbedPanel. Instead it looks like fragments do not play nicely with wicket:message tags. Here is the markup for my panel: html xmlns:wicket="http://wicket.apache.org" body wicket:panel div wicket:id="test"[test fragment goes here]/divbr / /wicket:panel wicket:fragment wicket:id="testFrag" table class="theader" cellspacing="1" tr class="bg" thwicket:message key="message.test"[test message]/wicket:messagenbsp;/th tdspan wicket:id="label"[test label]/spannbsp;/td /tr /table /wicket:fragment /body /html If I comment out the wicket:message tag from my fragment, everything works fine. However when the wicket:message tag is in place, a MarkupException occurs and the closing tag /div is highlighted red (see below). Do you think this could be a bug in Wicket or is there a problem in my markup/code? Thanks! Huergo Exception stack trace: org.apache.wicket.markup.MarkupException: Method renderComponent called on bad markup element: /div [markup = file:/C:/work/projects/collection/collection-webapp/target/classes/test/FragmentTestPanel.html html body wicket:panel div wicket:id="test"[test fragment goes here]/divbr / /wicket:panel wicket:fragment wicket:id="testFrag" table class="theader" cellspacing="1" tr class="bg" thwicket:message key="message.test"[test message]/wicket:messagenbsp;/th tdspan wicket:id="label"[test label]/spannbsp;/td /tr /table /wicket:fragment /body /html , index = 8, current = '/div' (line 5, column 49)] at org.apache.wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java:426) at org.apache.wicket.Component.renderComponent(Component.java:2089) at org.apache.wicket.markup.html.WebComponent.onRender(WebComponent.java:60) at org.apache.wicket.Component.render(Component.java:1941) at org.apache.wicket.Component.render(Component.java:1904) at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:223) at org.apache.wicket.markup.resolver.WicketMessageResolver.resolve(WicketMessageResolver.java:103) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1206) at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1349) at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1284) at org.apache.wicket.markup.html.panel.Fragment.renderFragment(Fragment.java:268) at org.apache.wicket.markup.html.panel.Fragment.onComponentTagBody(Fragment.java:198) at org.apache.wicket.Component.renderComponent(Component.java:2114) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1294) at org.apache.wicket.Component.render(Component.java:1941) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1179) at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1349) at org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:629) at org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:107) at org.apache.wicket.Component.renderComponent(Component.java:2114) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1294) at org.apache.wicket.Component.render(Component.java:1941) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1179) at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1349) at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1284) at org.apache.wicket.Component.renderComponent(Component.java:2114) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1294) at org.apache.wicket.Component.render(Component.java:1941) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1179) at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1311) at org.apache.wicket.Page.onRender(Page.java:1422) at org.apache.wicket.Component.render(Component.java:1941) at org.apache.wicket.Page.renderPage(Page.java:927) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:225) at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:103) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1037) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1107) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1176) at org.apache.wicket.RequestCycle.request(RequestCycle.java:499) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:257) at org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:126) Huergo Perez wrote: I am migrating my application from 1.2.6 to 1.3.0 and am getting a similar (although slightly
Re: [Wicket-user] Oracle Application Server 10g (10.1.2) and Wicket / ajax
Do you have a small example on howto do this? Using the servlet filter does not seem to end up applying the header. No matter where filterchain.do are placed. regards Nino mchack wrote: Another method to do this would be to Override the configureResponse method for the page, at least this is how I am doing it. This is where the cache-control header is being generated. If no change needed then call super.configureResponse() else add your header at this point. Seems like there are often many ways to accomplish the same task with Wicket :). Cheers Nino Saturnino Martinez Vazquez Wael wrote: Hi We are having some troubles using wicket and Oracle web server. It's some of our ajax calls that just hangs. By hanging I mean that if we click an ajax triggering control, if fires the event and just never gets a response. Debuggin a little deeper it seems that wicket does not even gets the request. We are suspecting that it has something todo with the oracle web cache. So the ajax call sends some attributs with it to avoid being cached, however it's missing the cache-control=no-store. We are not sure that this are causing our troubles. How can I make the ajax call include the attribute? Has anybody some ideas about this? I've tested the application on jetty, and here it works without any problems. any help highly appreciated. regards Nino - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] CheckBox and final method onComponentTag
Hi. We are trying to put some own javascript code in the onClick method of the checkbox component. Unfortunately we need also the wicket code which is generated in onComponentTag method when onSelectionChangeNotifications is true. So I need to execute my javascript code before the wicket's. I can do this easily with Radio component, becouse it doesnt have onComponentTag final. E.g. @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); CharSequence myScripts = new AppendingStringBuffer(setPageLocationByFormID('+ formId +');if (!wasClicked('+ formId + ')) {+ tag.getString(onclick) +}); tag.put(onclick, myScripts); } Any suggestions? Thanks in advance. K -- View this message in context: http://www.nabble.com/CheckBox-and-final-method-onComponentTag-tf4017607.html#a11409980 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] CheckBox and final method onComponentTag
Use AttributeAppender behavior instead.. kubino wrote: Hi. We are trying to put some own javascript code in the onClick method of the checkbox component. Unfortunately we need also the wicket code which is generated in onComponentTag method when onSelectionChangeNotifications is true. So I need to execute my javascript code before the wicket's. I can do this easily with Radio component, becouse it doesnt have onComponentTag final. E.g. @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); CharSequence myScripts = new AppendingStringBuffer(setPageLocationByFormID('+ formId +');if (!wasClicked('+ formId + ')) {+ tag.getString(onclick) +}); tag.put(onclick, myScripts); } Any suggestions? Thanks in advance. K -- View this message in context: http://www.nabble.com/CheckBox-and-final-method-onComponentTag-tf4017607.html#a11410283 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] CheckBox and final method onComponentTag
Sorry, for quickdirty response :)... You can add AjaxEventBehavior to your checkbox and override getAjaxCallDecorator() method, thus decorating the wicket onclick script with your own script. Alex Objelean wrote: Use AttributeAppender behavior instead.. kubino wrote: Hi. We are trying to put some own javascript code in the onClick method of the checkbox component. Unfortunately we need also the wicket code which is generated in onComponentTag method when onSelectionChangeNotifications is true. So I need to execute my javascript code before the wicket's. I can do this easily with Radio component, becouse it doesnt have onComponentTag final. E.g. @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); CharSequence myScripts = new AppendingStringBuffer(setPageLocationByFormID('+ formId +');if (!wasClicked('+ formId + ')) {+ tag.getString(onclick) +}); tag.put(onclick, myScripts); } Any suggestions? Thanks in advance. K -- View this message in context: http://www.nabble.com/CheckBox-and-final-method-onComponentTag-tf4017607.html#a11410336 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] [wicket 1.2.6]Listview and item.getModelObject()?
Hi I have this setup: ListView blockContainer = new ListView(blockContainer, model) { protected void populateItem(ListItem item) { item.getModelObject(); more code... } I've experienced some what I belive unexpected behavior here. So I'll try to explain what I expect should happen when iterating trough the listview. In the above example, I would expect the following 1. listview should to call model.getObject to retrieve the list that it should iterate over. 2. item.getModelObject should give me the current items modelObject These two points are also what happens but its the way that they seem to be implemented that are odd. It looks like when calling item.getModelObject this is what happens: model.getObject.get(iterationnumber), I would have expected listview to extract the list only once? regards Nino - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] [wicket 1.2.6]Listview and item.getModelObject()?
Looks like it could be something that could be solved by setting reuseitems to true. But I still dont see why one would ever want to call the ListViews getModel more than once when updating? regards Nino Nino Saturnino Martinez Vazquez Wael wrote: Hi I have this setup: ListView blockContainer = new ListView(blockContainer, model) { protected void populateItem(ListItem item) { item.getModelObject(); more code... } I've experienced some what I belive unexpected behavior here. So I'll try to explain what I expect should happen when iterating trough the listview. In the above example, I would expect the following 1. listview should to call model.getObject to retrieve the list that it should iterate over. 2. item.getModelObject should give me the current items modelObject These two points are also what happens but its the way that they seem to be implemented that are odd. It looks like when calling item.getModelObject this is what happens: model.getObject.get(iterationnumber), I would have expected listview to extract the list only once? regards Nino - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] [wicket 1.2.6]Listview and item.getModelObject()?
Hmm this just seems to make the Listview call the getModel list.size times before running the populateItem method. regards Nino Nino Saturnino Martinez Vazquez Wael wrote: Looks like it could be something that could be solved by setting reuseitems to true. But I still dont see why one would ever want to call the ListViews getModel more than once when updating? regards Nino Nino Saturnino Martinez Vazquez Wael wrote: Hi I have this setup: ListView blockContainer = new ListView(blockContainer, model) { protected void populateItem(ListItem item) { item.getModelObject(); more code... } I've experienced some what I belive unexpected behavior here. So I'll try to explain what I expect should happen when iterating trough the listview. In the above example, I would expect the following 1. listview should to call model.getObject to retrieve the list that it should iterate over. 2. item.getModelObject should give me the current items modelObject These two points are also what happens but its the way that they seem to be implemented that are odd. It looks like when calling item.getModelObject this is what happens: model.getObject.get(iterationnumber), I would have expected listview to extract the list only once? regards Nino - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] add class onlclick
If some link is clicked, I want to change the css-class of a label like this: // text final Label text = new Label(text, resourceRecord.getText()); add(text) // edit link add(new AjaxFallbackLink(edit-link){ @Override public void onClick(AjaxRequestTarget target) { // dome some other stuff text.add(new SimpleAttributeModifier(id,test)); if (target != null) { // add some other components target.addComponent(text); } } }); Somehow this doesn't work. I guess I simply missed something? thanks, Pieter -- Pieter Cogghe Ganzendries 186 9000 Gent 0487 10 14 21 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] BookmarkablePageLink relative path Dilemma
You can do that by mapping the WicketFilter to the /* context and then mount the pages with some url strategies (like IndexedParamUrlCodingStrategy). You then don't need that /app/* and you can proxy the requests in a one-to-one. Frank On 7/2/07, Chris Lintz [EMAIL PROTECTED] wrote: Hey all, I have an interesting issue to solve. I basically have 2 BookmarkablePageLinks on a home page. I am reading 1.3 is all about relative links. This causes a problem for me because of this: 1) The BookmarkablePageLinks appear as: www.somedomain.com/app/register www.somedomain.com/app/login 2) I have an .htaccess file pushing URLs like www.somedomain.com/username to app/profileView/user/username (kinda like how myspace has www.myspace.com/username). This causes issues because when you land on www.somedomain.com/username, all the BookmarkablePageLinks are relative so the links above become: www.somedomain.com/register www.somedomain.com/login This is obviously not right so my question is how can I have BookmarkablePageLinks yet have some sort of control as an absolute path? How can I get the functionality of BookmarkablePageLinks and always have the links render as www.somedomain.com/app/register and www.somedomain.com/app/login thanks for any help c -- View this message in context: http://www.nabble.com/BookmarkablePageLink-relative-path-Dilemma-tf4014023.html#a11399090 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] add class onlclick
I think it might have something todo with the fact that you are adding the attributemodifier in the ajax call? So each time you get the call you add another modifier, it would be better to add to modifier once and then change its model instead... regards Nino Pieter Cogghe wrote: If some link is clicked, I want to change the css-class of a label like this: // text final Label text = new Label(text, resourceRecord.getText()); add(text) // edit link add(new AjaxFallbackLink(edit-link){ @Override public void onClick(AjaxRequestTarget target) { // dome some other stuff text.add(new SimpleAttributeModifier(id,test)); if (target != null) { // add some other components target.addComponent(text); } } }); Somehow this doesn't work. I guess I simply missed something? thanks, Pieter -- Pieter Cogghe Ganzendries 186 9000 Gent 0487 10 14 21 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Using hot-reloading of classes with Spring (Was: Has something changed in markup inheritance?)
Jean-Baptiste Quenot-3 wrote: * Watter: Most of the time the following holds true when I reach that statement: Session.get().getClass().getClassLoader() = org.apache.wicket.application.ReloadingClassLoader FusionAuthenticatedWebSession.class.getClassLoader() = org.apache.wicket.application.ReloadingClassLoader However, when I am use the behaviour described earlier in the thread (browser back button, click any link), I instead see that the following with that cast: Session.get().getClass().getClassLoader() = org.apache.wicket.application.ReloadingClassLoader FusionAuthenticatedWebSession.class.getClassLoader() = ContextLoader That's very interesting. It may be caused by some page deserialization not using the right classloader, when Wicket pulls pages out of the second-level cache. May be worth trying with org.apache.wicket.util.lang.Objects.setObjectStreamFactory(new WicketObjectStreamFactory()) When I do this, I get Page Expired errors after using my back button and then clicking a link. This happens regardless of what I'm doing with reloading (i.e. disabled or enabled). When I switch to the default JDK serialization or just don't specify anything for serialization, things work as expected with reloading disabled but I get the same ClassCastException as before with reloading enabled. Does the fact that I'm seeing Page Expired errors with WicketObjectStreamFactory indicate that I have another issue that's unrelated to the reloading filter that I need to fix? -- View this message in context: http://www.nabble.com/Has-something-changed-in-markup-inheritance--tf3963374.html#a11411673 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] add class onlclick
First of all you must setOutputMarkupId to true for the text component: text.setOutputMarkupId(true); Also, you are modifying the id attribute, and not the css... this is also a problem so instead of: text.add(new SimpleAttributeModifier(id,test)); do this: text.add(new SimpleAttributeModifier(class,mySuperClass)); yuccaplant wrote: If some link is clicked, I want to change the css-class of a label like this: // text final Label text = new Label(text, resourceRecord.getText()); add(text) // edit link add(new AjaxFallbackLink(edit-link){ @Override public void onClick(AjaxRequestTarget target) { // dome some other stuff text.add(new SimpleAttributeModifier(id,test)); if (target != null) { // add some other components target.addComponent(text); } } }); Somehow this doesn't work. I guess I simply missed something? thanks, Pieter -- Pieter Cogghe Ganzendries 186 9000 Gent 0487 10 14 21 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/add-class-onlclick-tf4017981.html#a11411738 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to get HTML source code from a wicket page
* Jeremy Thomerson: I hope someone can give me a hand. I'm trying to do something similar, and seemingly stumped. I have a form that I want to have the user fill out, and then I just want to email the completed form to someone on our team. So, I created subclasses of form components that can be switched from edit to view mode, and that works great. So, I submit the form, and swap them out to view mode so that it is the exact same form, except instead of text fields and the like, I then have labels that display the input, in an un-editable way. Now, the problem: In the onSubmit() of my Button, I switch the fields over, and then I would like to render the page to a String and email it, and then render the page for the user. I've tried the methods below, and both are failing - can someone please help. First, I tried JBQ's method, slightly modified since I'm not in a request target. Maybe that's the problem. Maybe I need to specifically mount this page to a request strategy as he does in the example. But, I'd rather be able to accomplish this in the form itself. final StringResponse emailResponse = new StringResponse(); final WebResponse originalResponse = (WebResponse)RequestCycle.get().getResponse(); RequestCycle.get().setResponse(emailResponse); RequestCycle.get().getRequestTarget().respond(RequestCycle.get()); // Here send the email instead of dumping it to stdout! System.out.println(emailResponse.toString()); RequestCycle.get().setResponse(originalResponse); RequestCycle.get().setRequestTarget(new BookmarkablePageRequestTarget( Home.class)); I get this error (BTW - I'm on 1.2.6 with this app until we have an RC release): Caused by: java.lang.ClassCastException: wicket.response.StringResponse at wicket.protocol.http.WebRequestCycle.getWebResponse( WebRequestCycle.java:110) at wicket.markup.html.WebPage.configureResponse(WebPage.java:249) at wicket.markup.html.pages.ExceptionErrorPage.configureResponse( ExceptionErrorPage.java:106) at wicket.Page.onRender(Page.java:854) at wicket.Component.render(Component.java:1526) at wicket.Page.renderPage(Page.java:408) at wicket.request.target.component.PageRequestTarget.respond( PageRequestTarget.java:67) at wicket.request.compound.DefaultResponseStrategy.respond( DefaultResponseStrategy.java:49) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond (AbstractCompoundRequestCycleProcessor.java:66) at wicket.RequestCycle.respond(RequestCycle.java:950) at wicket.RequestCycle.step(RequestCycle.java:1025) It's not your fault. I didn't mention that you need to upgrade to the latest beta2 for this to work, as there is a nasty cast to WebResponse in WebPage.java that I removed. -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Use getConverterInput rather than updateModel in FormComponentPanel
by the way this is a bit more dangerous now: protected void convertInput() { setConvertedInput(dateField.getConvertedInput()); } this goes ok because we visit child post order. and because dateField is a child it works But getConvertedInput and convertInput() are called in different flows. johan On 7/2/07, ChuckDeal [EMAIL PROTECTED] wrote: Eelco Hillenius wrote: Good point. I didn't think about getConvertedInput being called multiple times. I'm working on a refactoring now. Removing final from getConvertedInput wasn't the smartest thing to do it turns out. I'm thinking about making that method final again, and instead removing final from convert (and rename that to convertInput) and add setConvertedInput. You can then override convertInput and call setConvertedInput with the new value, and be sure this method will only be called once. As it turns out, using getConvertedInput was the best for me either :). When I was writing a validator for my component, the input was null which caused it to throw an exception. Upon figuring out why it was throwing the ex, I realized that I really wanted my Custom component to defer to the underlying text box, so I made getInputAsArray return the underlying TextBox's getInputAsArray and then I overrode convertValue to do what getConvertedInput was doing before. And since I now have valid data from getInputAsArray, validators don't cause exceptions. Chuck -- View this message in context: http://www.nabble.com/Use-getConverterInput-rather-than-updateModel-in-FormComponentPanel-tf3873952.html#a11399774 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] double trouble
hi, I am having a couple of problems with doubles. 1. when I hand a double into a TextField the value is often rounded. Is there a way to make sure this does not happen? 2. i would like to validate an entry so that it has a maximum of x digits after the decimal. Is there some functionality that will allow me to do this? florian - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] jsessionid and page expired
I already have several Wicket applications deployed, some that don't require a session (all extranet - non-signin, bookmarkable url stuff), and one large one that uses the session extensively. Now, I just deployed a site last night for testing that is a backend administration site, which obviously requires a session for the user to sign in, etc. But, on every bookmarkable link, it appends the jsessionid (not just the first link like normal), and on non-bookmarkable links (i.e. http://admin.theatdgroup.com/app/?wicket:interface=:15), it doesn't append the jsessionid, but I get Page Expired (and this is without the page actually being expired). I'm running the latest, built-from-svn version of Wicket. This is also my first stateful Wicket app to deploy on Linux (the others are on Windows). I'm using Tomcat, and have made sure that the sessions last 60 minutes. It is behind Apache, using mod_proxy, just like all of the other Wicket apps that I have deployed. I know there's just a setting I'm missing somewhere... any ideas? Thanks! Jeremy Thomerson - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Contents of Wicket-user digest...
Contents of Wicket-user digest... - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] add class onlclick
I just tried to modify the id to see if the worked, I'm sorry for the confusion. @Nino I think you might be right, but I couldn't get it to work. (I changed it to modifying the style attribute, just to quick test visually.) My modified code: // text final Label text = new Label(text, resourceRecord.getText()); final Model textClassModel = new Model(color: red;); final AttributeModifier textClass = new AttributeModifier(style, true, textClassModel); text.add(textClass); add(text); //(...) // edit link add(new AjaxFallbackLink(edit-link){ @Override public void onClick(AjaxRequestTarget target) { //(...) textClassModel.setObject(color: blue;); if (target != null) { // (...) target.addComponent(text); } } }); 2007/7/3, Alex Objelean [EMAIL PROTECTED]: First of all you must setOutputMarkupId to true for the text component: text.setOutputMarkupId(true); Also, you are modifying the id attribute, and not the css... this is also a problem so instead of: text.add(new SimpleAttributeModifier(id,test)); do this: text.add(new SimpleAttributeModifier(class,mySuperClass)); yuccaplant wrote: If some link is clicked, I want to change the css-class of a label like this: // text final Label text = new Label(text, resourceRecord.getText()); add(text) // edit link add(new AjaxFallbackLink(edit-link){ @Override public void onClick(AjaxRequestTarget target) { // dome some other stuff text.add(new SimpleAttributeModifier(id,test)); if (target != null) { // add some other components target.addComponent(text); } } }); Somehow this doesn't work. I guess I simply missed something? thanks, Pieter -- Pieter Cogghe Ganzendries 186 9000 Gent 0487 10 14 21 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/add-class-onlclick-tf4017981.html#a11411738 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Pieter Cogghe Ganzendries 186 9000 Gent 0487 10 14 21 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] add class onlclick
You forgot again to call text.setOutputMarkupId(true); This is an important method to make components ajax aware.. yuccaplant wrote: I just tried to modify the id to see if the worked, I'm sorry for the confusion. @Nino I think you might be right, but I couldn't get it to work. (I changed it to modifying the style attribute, just to quick test visually.) My modified code: // text final Label text = new Label(text, resourceRecord.getText()); final Model textClassModel = new Model(color: red;); final AttributeModifier textClass = new AttributeModifier(style, true, textClassModel); text.add(textClass); add(text); //(...) // edit link add(new AjaxFallbackLink(edit-link){ @Override public void onClick(AjaxRequestTarget target) { //(...) textClassModel.setObject(color: blue;); if (target != null) { // (...) target.addComponent(text); } } }); 2007/7/3, Alex Objelean [EMAIL PROTECTED]: First of all you must setOutputMarkupId to true for the text component: text.setOutputMarkupId(true); Also, you are modifying the id attribute, and not the css... this is also a problem so instead of: text.add(new SimpleAttributeModifier(id,test)); do this: text.add(new SimpleAttributeModifier(class,mySuperClass)); yuccaplant wrote: If some link is clicked, I want to change the css-class of a label like this: // text final Label text = new Label(text, resourceRecord.getText()); add(text) // edit link add(new AjaxFallbackLink(edit-link){ @Override public void onClick(AjaxRequestTarget target) { // dome some other stuff text.add(new SimpleAttributeModifier(id,test)); if (target != null) { // add some other components target.addComponent(text); } } }); Somehow this doesn't work. I guess I simply missed something? thanks, Pieter -- Pieter Cogghe Ganzendries 186 9000 Gent 0487 10 14 21 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/add-class-onlclick-tf4017981.html#a11411738 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Pieter Cogghe Ganzendries 186 9000 Gent 0487 10 14 21 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/add-class-onlclick-tf4017981.html#a11413172 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Jeff Pierce is out of the office.
I will be out of the office starting 07/03/2007 and will not return until 07/09/2007. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Filterable DefaultDatatable
Hello, I'm trying do display a simple Data Table with a filter on it. I had a look at the wicket-phonebook example because what I have to do is really similar to that example. So I will refer to the code of this example to describe my problem. The thing is I want to have some filter on the table that would add a criteria on a status column (not present in the wicket-phonebook example). This status would be an Integer and I would like to dispay a checkGroup as filter on this status! I don't really understand how the page should reload keeping the filter status (meaning the checked checkboxes) and refreshing the table with the status criteria. (NB I don't want to use Ajax here) Do I have to Implement a load method in my DetachebleContactModel? I succeeded linking the criteria to my query but don't succeed to refresh the page correctly. Can somebody help me with some clues or code example? I putted some of my code here... The rest is really base on the wicket-phonebook example I have seen a similar question in the Filterable ListViews thread but don't really understand how to adapt it in the phonebook example. Thanks a lot, Ox public class ListContactPage extends BasePage { ... public ListContactPage(List statuses) { add(new InputForm(inputForm)); ... RequestDataProvider dataProvider = new ConatctDataProvider( getContactDao(), statuses); DefaultDataTable table = new DefaultDataTable(requestTable, Arrays .asList(columns), dataProvider, 15); // I don't use it // ... addTopToolbar(new FilterToolbar(... add(table); ... } private class InputForm extends Form { public InputForm(String name) { super(name, new CompoundPropertyModel(new FormInputModel())); CheckGroup statusChecks = new CheckGroup(statusCheckGroup); add(statusChecks); ListView statusChecksList = new ListView(statuses, ContactUtil.getStatusCodes()) { protected void populateItem(ListItem item) { item.add(new Check(scheck, item.getModel())); item.add(new Label(status, item.getModelObjectAsString())); }; }; statusChecks.add(statusChecksList); ... } public void onSubmit(){ info(Search model + getModelObject()); //Do I have to set a ResponsePage here? Or will it automatically remains and reload the current page } } ... } public class ListContactPage extends BasePage { ... public ListContactPage(List statuses) { add(new InputForm(inputForm)); ... RequestDataProvider dataProvider = new ConatctDataProvider( getContactDao(), statuses); DefaultDataTable table = new DefaultDataTable(requestTable, Arrays .asList(columns), dataProvider, 15); // I don't use it // ... addTopToolbar(new FilterToolbar(... add(table); ... } private class InputForm extends Form { public InputForm(String name) { super(name, new CompoundPropertyModel(new FormInputModel())); CheckGroup statusChecks = new CheckGroup(statusCheckGroup); add(statusChecks); ListView statusChecksList = new ListView(statuses, ContactUtil.getStatusCodes()) { protected void populateItem(ListItem item) { item.add(new Check(scheck, item.getModel())); item.add(new Label(status, item.getModelObjectAsString())); }; }; statusChecks.add(statusChecksList); ... } public void onSubmit(){ info(Search model + getModelObject()); //Do I have to set a ResponsePage here? Or will it automatically remains and reload the current page } } ... } -- View this message in context:
Re: [Wicket-user] Use getConverterInput rather than updateModel in FormComponentPanel
by the way this is a bit more dangerous now: protected void convertInput() { setConvertedInput(dateField.getConvertedInput()); } this goes ok because we visit child post order. and because dateField is a child it works But getConvertedInput and convertInput() are called in different flows. Yeah, I noticed that. I couldn't really think of a better solution though. Either you tell users to override a method that can (will) be called multiple times - getConvertedInput - and there isn't even a guarantee when that is, or, like we do now, we tell users to override a method that will only be called once and at a clear point in the processing. WDYT Johan? Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AjaxLink not updating Image
I am experiencing the same behavior with 1.3.0-beta2. My code: final Image image = new Image(image, gfx/online.gif); Link imageLink = new AjaxFallbackLink(imageToggle) { @Override public void onClick(AjaxRequestTarget target) { image.setModel(new Model(gfx/offline.gif)); target.addComponent(image); } }; After clicking the link, the ajax-debug shows online.gif being sent for the image name. Could someone please open up a JIRA issue for this? Prefarably with a unit test if that is possible. Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] double trouble
I am having a couple of problems with doubles. 1. when I hand a double into a TextField the value is often rounded. Is there a way to make sure this does not happen? Did you set the type to double? new TextField(foo, model, Double.class); 2. i would like to validate an entry so that it has a maximum of x digits after the decimal. Is there some functionality that will allow me to do this? You should be able to do that by configuring converters. You can either do this application-wide in your application settings (search for this on the WIKI), or by overriding getConverter of the component in question. Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] help needed with creation of image Link component
I'm trying to create a link component that will produce output similar to the following: a href=link/to/somewhereimg src=imgA onmousedown=this.src='imgB'; onmouseup=this.src='imgA';/a where: 1) The link handler (onClick) is defined by users of the component 2) The two images are provided in the component constructor for example, ImageLink link = new ImageLink(id, path/to/imageA, path/to/imageB); The idea is that anytime I want to create an image link, I can just drop that in with the paths to the image(s) I want to use. I've got working code for the image: StaticImage image = new StaticImage(image, new Model(imageOffPath)); if (StringUtils.isNotBlank(imageOnPath)) { image.add(new AttributeModifier(onmousedown, true, new Model( this.src='+imageOnPath+'))); image.add(new AttributeModifier(onmouseup, true, new Model( this.src='+imageOffPath+'))); } But I'm having trouble figuring out the rest of it. I started by extending Panel, but that doesn't work due to Panels requiring their own markup. I tried extending Link, but I'm not sure how to get it to render the image above without creating a markup file. Any assistance is greatly appreciated. Thanks, Erik - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Redirect form to a request target rather than a page?
On 7/2/07, Jeremy Thomerson [EMAIL PROTECTED] wrote: I know you can do this somehow - I just can't tell what's missing In a search form that I have, I do the following: getRequestCycle().setRequestTarget(new ListenerInterfaceRequestTarget(getPage(), new SearchQueryLink(foo, mQuery), ILinkListener.INTERFACE)); I have a request strategy that decodes SearchQueryLink instances just fine. But, when doing the above, it does not redirect at all - it just repaints my page. What am I missing? I walked up the stack trace from setResponsePage(Page), which is the standard way of redirecting a form submission, and it calls getRequestCycle().setRequestTarget(IRequestTarget), exactly as I am above. could you tell us your usecase - what you are trying to do and where you are putting the above code? also make sure you dont have a stacktrace in your logs/console. -igor Thank you! Jeremy Thomerson - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] suggestion: have Wicket SVN searchable with FishEye
On 7/2/07, Eelco Hillenius [EMAIL PROTECTED] wrote: However, I still would not support setting up Fisheye against an Apache SVN without infrastructure's support as they are the ones that would have to pick up the pieces if it were to go wrong. Yeah, that's fair enough :) since we are moving svn soon, why not wait for after the move so it doesnt do the initial import twice. -igor Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] onSubmit() called twice
On 7/3/07, Johan Compagner [EMAIL PROTECTED] wrote: first AjaxFormValidationBehavior doesn't do client side (javascript) validation. it calls the server and does this by submitting the form. so if you change the field where you have this validation on. And then you directly click a submit button yes it will be done twice. first the fields onchange is triggered (or the button i dont know what the browser sees first) then the button click. so yes you get 2 form submits But i don't know where you add that form on and what onchange you trigger because this: add( new AjaxFormValidatingBehavior( this, onchange ) ); seems to me that you add this to a forms onchange? (because this needs to be a form) but i guess you mean textfield.add ( new AjaxFormValidatingBehavior( this, onchange ) ); the problem here is that onchange is fired when the focus is lost from the field. so if you are on that field and you click the submit button this will result in two form-submittals that are very very close to each other. thus the double submit that you see. you should add validatingbehavior to onkeyup, and make sure to set a throttle so it doesnt flood your server. -igor johan On 7/3/07, David Leangen [EMAIL PROTECTED] wrote: Hi, Eelco, I guess I found why this was happening, but somehow this doesn't seem right to me. I had been experimenting with adding this add( new AjaxFormValidatingBehavior( this, onchange ) ); to my RequiredTextField. It never did work for me, but I thought I'd get back to it later. [When I say it doesn't work, I mean that there is no Javascript validation (which IIUC is what's supposed to happen).] Anyway, when I add this behaviour, onSubmit() is getting called twice for some reason, which at least for me is definitely not the desired behaviour of my form. Is this the expected behaviour, or is something wrong? Cheers, Dave On Mon, 2007-07-02 at 21:51 -0700, Eelco Hillenius wrote: onSubmit(), and consequently the code I have in that overridden method, is being called twice. I'm wondering if it's my misunderstanding of how Wicket works, and this behaviour is intended, or if I somehow introduced a bug in my code. If this is caused by my error, does anybody have any hints as to where I can look to find the source of this method's being called twice? That should definitively not happen. Can you tell us again what Wicket version you are using, and can you set a break point in your onSubmit method and tell us the trace? Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] MarkupException using a fragment with a TabbedPanel
On 7/3/07, Huergo Perez [EMAIL PROTECTED] wrote: Hi All, I just grabbed Wicket 1.3.0-beta2 and tried to reproduce this problem. The problem still occurs. I managed to isolate it to a simple use case (see the attachments for Java code and HTML - ZIP attachments get filtered out, so I'm sending the files as is). It looks like it doesn't have anything to do with a TabbedPanel. Instead it looks like fragments do not play nicely with wicket:message tags. could you open a jira issue and upload the files there? -igor - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] [wicket 1.2.6]Listview and item.getModelObject()?
On 7/3/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Hi I have this setup: ListView blockContainer = new ListView(blockContainer, model) { protected void populateItem(ListItem item) { item.getModelObject(); more code... } I've experienced some what I belive unexpected behavior here. So I'll try to explain what I expect should happen when iterating trough the listview. In the above example, I would expect the following 1. listview should to call model.getObject to retrieve the list that it should iterate over. 2. item.getModelObject should give me the current items modelObject These two points are also what happens but its the way that they seem to be implemented that are odd. It looks like when calling item.getModelObject this is what happens: model.getObject.get(iterationnumber), I would have expected listview to extract the list only once? no, listview doesnt cache the list. but the model can do so. so if you use loadabledetachablemodel() then your list is only extracted once, and then cached by the model for the duration of the request. there are never contracts on how often a component will call getobject() on the model. -igor regards Nino - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] jsessionid and page expired
On 7/3/07, Jeremy Thomerson [EMAIL PROTECTED] wrote: I already have several Wicket applications deployed, some that don't require a session (all extranet - non-signin, bookmarkable url stuff), and one large one that uses the session extensively. Now, I just deployed a site last night for testing that is a backend administration site, which obviously requires a session for the user to sign in, etc. But, on every bookmarkable link, it appends the jsessionid (not just the first link like normal), and on non-bookmarkable links ( i.e. http://admin.theatdgroup.com/app/?wicket:interface=:15), it doesn't append the jsessionid, but I get Page Expired (and this is without the page actually being expired). I'm running the latest, built-from-svn version of Wicket. This is also my first stateful Wicket app to deploy on Linux (the others are on Windows). I'm using Tomcat, and have made sure that the sessions last 60 minutes. It is behind Apache, using mod_proxy, just like all of the other Wicket apps that I have deployed. I know there's just a setting I'm missing somewhere... any ideas? if it keeps appending jsessionid then its not getting a cookie it tried to set back from you. maybe apache is eating it. -igor Thanks! Jeremy Thomerson - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] help needed with creation of image Link component
On 7/3/07, Erik Dreyer [EMAIL PROTECTED] wrote: I'm trying to create a link component that will produce output similar to the following: a href=link/to/somewhereimg src=imgA onmousedown=this.src='imgB'; onmouseup= this.src='imgA';/a where: 1) The link handler (onClick) is defined by users of the component 2) The two images are provided in the component constructor for example, ImageLink link = new ImageLink(id, path/to/imageA, path/to/imageB); The idea is that anytime I want to create an image link, I can just drop that in with the paths to the image(s) I want to use. I've got working code for the image: StaticImage image = new StaticImage(image, new Model(imageOffPath)); if (StringUtils.isNotBlank(imageOnPath)) { image.add(new AttributeModifier(onmousedown, true, new Model(this.src='+imageOnPath+'))); image.add (new AttributeModifier(onmouseup, true, new Model(this.src='+imageOffPath+'))); } But I'm having trouble figuring out the rest of it. I started by extending Panel, but that doesn't work due to Panels requiring their own markup. I tried extending Link, but I'm not sure how to get it to render the image above without creating a markup file. Any assistance is greatly appreciated. i would make a panel and forward link's onclick to the panel's onclick. the panels markup would look like this: wicket:panela wicket:id=linkimg wicke:id=img//a/wicket:panel -igor Thanks, Erik - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Wicket mailing list rules with regards to jobs
Are there any rules about a company posting to this list about potential open positions around Wicket? Matt -- View this message in context: http://www.nabble.com/Wicket-mailing-list-rules-with-regards-to-jobs-tf4019684.html#a11416655 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket mailing list rules with regards to jobs
On 7/3/07, Watter [EMAIL PROTECTED] wrote: Are there any rules about a company posting to this list about potential open positions around Wicket? go for it -igor Matt -- View this message in context: http://www.nabble.com/Wicket-mailing-list-rules-with-regards-to-jobs-tf4019684.html#a11416655 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket mailing list rules with regards to jobs
Hi Matt, as far as I know there are no strict rules. Basically, if the position involves Wicket, nobody objects against such posts. -Matej On 7/3/07, Watter [EMAIL PROTECTED] wrote: Are there any rules about a company posting to this list about potential open positions around Wicket? Matt -- View this message in context: http://www.nabble.com/Wicket-mailing-list-rules-with-regards-to-jobs-tf4019684.html#a11416655 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] add class onlclick
Super it works. Thanks. I thought you said that because I wrote id instead of class. I didn't see the connection. I did some Ajax related things before without setting outPutMarkU... . Either way it works. 2007/7/3, Alex Objelean [EMAIL PROTECTED]: You forgot again to call text.setOutputMarkupId(true); This is an important method to make components ajax aware.. yuccaplant wrote: I just tried to modify the id to see if the worked, I'm sorry for the confusion. @Nino I think you might be right, but I couldn't get it to work. (I changed it to modifying the style attribute, just to quick test visually.) My modified code: // text final Label text = new Label(text, resourceRecord.getText()); final Model textClassModel = new Model(color: red;); final AttributeModifier textClass = new AttributeModifier(style, true, textClassModel); text.add(textClass); add(text); //(...) // edit link add(new AjaxFallbackLink(edit-link){ @Override public void onClick(AjaxRequestTarget target) { //(...) textClassModel.setObject(color: blue;); if (target != null) { // (...) target.addComponent(text); } } }); 2007/7/3, Alex Objelean [EMAIL PROTECTED]: First of all you must setOutputMarkupId to true for the text component: text.setOutputMarkupId(true); Also, you are modifying the id attribute, and not the css... this is also a problem so instead of: text.add(new SimpleAttributeModifier(id,test)); do this: text.add(new SimpleAttributeModifier(class,mySuperClass)); yuccaplant wrote: If some link is clicked, I want to change the css-class of a label like this: // text final Label text = new Label(text, resourceRecord.getText()); add(text) // edit link add(new AjaxFallbackLink(edit-link){ @Override public void onClick(AjaxRequestTarget target) { // dome some other stuff text.add(new SimpleAttributeModifier(id,test)); if (target != null) { // add some other components target.addComponent(text); } } }); Somehow this doesn't work. I guess I simply missed something? thanks, Pieter -- Pieter Cogghe Ganzendries 186 9000 Gent 0487 10 14 21 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/add-class-onlclick-tf4017981.html#a11411738 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Pieter Cogghe Ganzendries 186 9000 Gent 0487 10 14 21 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/add-class-onlclick-tf4017981.html#a11413172 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Pieter Cogghe Ganzendries 186 9000 Gent 0487 10 14 21 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list
Re: [Wicket-user] Filterable DefaultDatatable
you dont need to do anything in onsubmit, it will automatically reload the current page unless you call setresponsepage to another one. if the values are not sticking after submit that means they are not saved properly, you might want to look at your models. -igor On 7/3/07, Ox [EMAIL PROTECTED] wrote: Hello, I'm trying do display a simple Data Table with a filter on it. I had a look at the wicket-phonebook example because what I have to do is really similar to that example. So I will refer to the code of this example to describe my problem. The thing is I want to have some filter on the table that would add a criteria on a status column (not present in the wicket-phonebook example). This status would be an Integer and I would like to dispay a checkGroup as filter on this status! I don't really understand how the page should reload keeping the filter status (meaning the checked checkboxes) and refreshing the table with the status criteria. (NB I don't want to use Ajax here) Do I have to Implement a load method in my DetachebleContactModel? I succeeded linking the criteria to my query but don't succeed to refresh the page correctly. Can somebody help me with some clues or code example? I putted some of my code here... The rest is really base on the wicket-phonebook example I have seen a similar question in the Filterable ListViews thread but don't really understand how to adapt it in the phonebook example. Thanks a lot, Ox public class ListContactPage extends BasePage { ... public ListContactPage(List statuses) { add(new InputForm(inputForm)); ... RequestDataProvider dataProvider = new ConatctDataProvider( getContactDao(), statuses); DefaultDataTable table = new DefaultDataTable(requestTable, Arrays .asList(columns), dataProvider, 15); // I don't use it // ... addTopToolbar(new FilterToolbar(... add(table); ... } private class InputForm extends Form { public InputForm(String name) { super(name, new CompoundPropertyModel(new FormInputModel())); CheckGroup statusChecks = new CheckGroup(statusCheckGroup); add(statusChecks); ListView statusChecksList = new ListView(statuses, ContactUtil.getStatusCodes()) { protected void populateItem(ListItem item) { item.add(new Check(scheck, item.getModel ())); item.add(new Label(status, item.getModelObjectAsString())); }; }; statusChecks.add(statusChecksList); ... } public void onSubmit(){ info(Search model + getModelObject()); //Do I have to set a ResponsePage here? Or will it automatically remains and reload the current page } } ... } public class ListContactPage extends BasePage { ... public ListContactPage(List statuses) { add(new InputForm(inputForm)); ... RequestDataProvider dataProvider = new ConatctDataProvider( getContactDao(), statuses); DefaultDataTable table = new DefaultDataTable(requestTable, Arrays .asList(columns), dataProvider, 15); // I don't use it // ... addTopToolbar(new FilterToolbar(... add(table); ... } private class InputForm extends Form { public InputForm(String name) { super(name, new CompoundPropertyModel(new FormInputModel())); CheckGroup statusChecks = new CheckGroup(statusCheckGroup); add(statusChecks); ListView statusChecksList = new ListView(statuses, ContactUtil.getStatusCodes()) { protected void populateItem(ListItem item) { item.add(new Check(scheck, item.getModel ())); item.add(new Label(status, item.getModelObjectAsString())); }; }; statusChecks.add(statusChecksList); ... } public void onSubmit(){ info(Search model + getModelObject()); //Do I have to set a ResponsePage here? Or will it automatically remains and reload the current page } } ... } -- View this message in context:
Re: [Wicket-user] Use getConverterInput rather than updateModel in FormComponentPanel
protected Object convertInput() { return dateField.convertInput(); } but that will mean that it will call twice convert intput on the inner date field. johan On 7/3/07, Eelco Hillenius [EMAIL PROTECTED] wrote: by the way this is a bit more dangerous now: protected void convertInput() { setConvertedInput(dateField.getConvertedInput()); } this goes ok because we visit child post order. and because dateField is a child it works But getConvertedInput and convertInput() are called in different flows. Yeah, I noticed that. I couldn't really think of a better solution though. Either you tell users to override a method that can (will) be called multiple times - getConvertedInput - and there isn't even a guarantee when that is, or, like we do now, we tell users to override a method that will only be called once and at a clear point in the processing. WDYT Johan? Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] onSubmit() called twice
you can use onchange but then you don't have to have a submit button because after every change your form is submitted. On 7/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On 7/3/07, Johan Compagner [EMAIL PROTECTED] wrote: first AjaxFormValidationBehavior doesn't do client side (javascript) validation. it calls the server and does this by submitting the form. so if you change the field where you have this validation on. And then you directly click a submit button yes it will be done twice. first the fields onchange is triggered (or the button i dont know what the browser sees first) then the button click. so yes you get 2 form submits But i don't know where you add that form on and what onchange you trigger because this: add( new AjaxFormValidatingBehavior( this, onchange ) ); seems to me that you add this to a forms onchange? (because this needs to be a form) but i guess you mean textfield.add ( new AjaxFormValidatingBehavior( this, onchange ) ); the problem here is that onchange is fired when the focus is lost from the field. so if you are on that field and you click the submit button this will result in two form-submittals that are very very close to each other. thus the double submit that you see. you should add validatingbehavior to onkeyup, and make sure to set a throttle so it doesnt flood your server. -igor johan On 7/3/07, David Leangen [EMAIL PROTECTED] wrote: Hi, Eelco, I guess I found why this was happening, but somehow this doesn't seem right to me. I had been experimenting with adding this add( new AjaxFormValidatingBehavior( this, onchange ) ); to my RequiredTextField. It never did work for me, but I thought I'd get back to it later. [When I say it doesn't work, I mean that there is no Javascript validation (which IIUC is what's supposed to happen).] Anyway, when I add this behaviour, onSubmit() is getting called twice for some reason, which at least for me is definitely not the desired behaviour of my form. Is this the expected behaviour, or is something wrong? Cheers, Dave On Mon, 2007-07-02 at 21:51 -0700, Eelco Hillenius wrote: onSubmit(), and consequently the code I have in that overridden method, is being called twice. I'm wondering if it's my misunderstanding of how Wicket works, and this behaviour is intended, or if I somehow introduced a bug in my code. If this is caused by my error, does anybody have any hints as to where I can look to find the source of this method's being called twice? That should definitively not happen. Can you tell us again what Wicket version you are using, and can you set a break point in your onSubmit method and tell us the trace? Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket mailing list rules with regards to jobs
On 7/3/07, Matej Knopp [EMAIL PROTECTED] wrote: Hi Matt, as far as I know there are no strict rules. Basically, if the position involves Wicket, nobody objects against such posts. Specifically targets Wicket developers to be more exact. No general catch all 'Wicket, Tapestry, JSF, Struts, WebWork, Stripes' job ads please. Martijn -- Wicket joins the Apache Software Foundation as Apache Wicket Apache Wicket 1.3.0-beta2 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta2/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Split pane / scroll pane components
Hi! Are there any split pane and scroll pane components in wicket (core, extensions,...)? I need them for my app. If there are none of those, could anyone suggest me some example JS code to base them on? Thanks a lot, Arseniy Sizov - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket mailing list rules with regards to jobs
Well if that's the case I am happy to invite any Wicket adept living near Amsterdam or willing to move there to have a look at the job opening at our company :-) http://www.feeddex.nl/vacatures.html Cheers, Wilko Hische Martijn Dashorst wrote: On 7/3/07, Matej Knopp [EMAIL PROTECTED] wrote: Hi Matt, as far as I know there are no strict rules. Basically, if the position involves Wicket, nobody objects against such posts. Specifically targets Wicket developers to be more exact. No general catch all 'Wicket, Tapestry, JSF, Struts, WebWork, Stripes' job ads please. Martijn -- Wicket joins the Apache Software Foundation as Apache Wicket Apache Wicket 1.3.0-beta2 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta2/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Wicket-mailing-list-rules-with-regards-to-jobs-tf4019684.html#a11419205 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Split pane / scroll pane components
Arseniy: I've had a lot of luck with the ExtJS SplitBar combined with Wicket (and it looks so cool): http://extjs.com/deploy/ext/docs/output/Ext.SplitBar.html Nathan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Arseniy Sent: Tuesday, July 03, 2007 2:15 PM To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] Split pane / scroll pane components Hi! Are there any split pane and scroll pane components in wicket (core, extensions,...)? I need them for my app. If there are none of those, could anyone suggest me some example JS code to base them on? Thanks a lot, Arseniy Sizov - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] help needed with creation of image Link component
Ahh. I assumed that if you subclassed a Panel, you had to provide your own markup for that subclass. I didn't realize that if the subclassed panel does not provide its own markup that it uses the markup from the parent. Very nice feature. Thx! On 7/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On 7/3/07, Erik Dreyer [EMAIL PROTECTED] wrote: I'm trying to create a link component that will produce output similar to the following: a href=link/to/somewhereimg src=imgA onmousedown=this.src='imgB'; onmouseup= this.src='imgA';/a where: 1) The link handler (onClick) is defined by users of the component 2) The two images are provided in the component constructor for example, ImageLink link = new ImageLink(id, path/to/imageA, path/to/imageB); The idea is that anytime I want to create an image link, I can just drop that in with the paths to the image(s) I want to use. I've got working code for the image: StaticImage image = new StaticImage(image, new Model(imageOffPath)); if (StringUtils.isNotBlank(imageOnPath)) { image.add(new AttributeModifier(onmousedown, true, new Model(this.src='+imageOnPath+'))); image.add (new AttributeModifier(onmouseup, true, new Model(this.src='+imageOffPath+'))); } But I'm having trouble figuring out the rest of it. I started by extending Panel, but that doesn't work due to Panels requiring their own markup. I tried extending Link, but I'm not sure how to get it to render the image above without creating a markup file. Any assistance is greatly appreciated. i would make a panel and forward link's onclick to the panel's onclick. the panels markup would look like this: wicket:panela wicket:id=linkimg wicke:id=img//a/wicket:panel -igor Thanks, Erik - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket-based dashboard
With some simple changes to ModalWindow, I'm able to get the basics to work (see attached gif). Just turned off the masking, added x and yOffsets, and altered the loadPosition function to take settings parameters rather than loading from a cookie. There's still a lot of work left to make an actual lightweight dashboard, but it's a start... It's such a nice-looking component -- thanks Matej! Nathan B. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius Sent: Monday, July 02, 2007 10:44 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] wicket-based dashboard I'm looking for some advice on how to create a Wicket-based dashboard with functionality along the lines of iGoogle.com. That is, resizable and drag/drop-able sub-window components that can be arranged by the user. And the dashboard layout must be serialized for the next time the user logs in. The drag and drop part is probably the most difficult. Though there's plenty of JavaScript libs (and probably some Wicket components in one of the wicket-stuff projects) you can use, you'll probably have to do a decent amount of writing code yourself as well. In can imagine that the modal window can serve as inspiration, though you don't need the ajax loading it has, and I definitively wouldn't make it page based (but rather panel based). It would be a great set of components to have, and it sounds fun to develop. Eelco attachment: dashboard.gif- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Split pane / scroll pane components
Thanks!:) Arseniy: I've had a lot of luck with the ExtJS SplitBar combined with Wicket (and it looks so cool): http://extjs.com/deploy/ext/docs/output/Ext.SplitBar.html Nathan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Arseniy Sent: Tuesday, July 03, 2007 2:15 PM To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] Split pane / scroll pane components Hi! Are there any split pane and scroll pane components in wicket (core, extensions,...)? I need them for my app. If there are none of those, could anyone suggest me some example JS code to base them on? Thanks a lot, Arseniy Sizov - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket-based dashboard
That looks pretty good. On 7/3/07, Nathan Beach [EMAIL PROTECTED] wrote: With some simple changes to ModalWindow, I'm able to get the basics to work (see attached gif). Just turned off the masking, added x and yOffsets, and altered the loadPosition function to take settings parameters rather than loading from a cookie. There's still a lot of work left to make an actual lightweight dashboard, but it's a start... It's such a nice-looking component -- thanks Matej! Nathan B. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius Sent: Monday, July 02, 2007 10:44 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] wicket-based dashboard I'm looking for some advice on how to create a Wicket-based dashboard with functionality along the lines of iGoogle.com. That is, resizable and drag/drop-able sub-window components that can be arranged by the user. And the dashboard layout must be serialized for the next time the user logs in. The drag and drop part is probably the most difficult. Though there's plenty of JavaScript libs (and probably some Wicket components in one of the wicket-stuff projects) you can use, you'll probably have to do a decent amount of writing code yourself as well. In can imagine that the modal window can serve as inspiration, though you don't need the ajax loading it has, and I definitively wouldn't make it page based (but rather panel based). It would be a great set of components to have, and it sounds fun to develop. Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Can I get a 'Nice URL' when form validation fails?
Hi, When my form validation fails, the page is redisplayed with the default url with all its wicket:interface stuff. I'd rather this didn't happen as I've bookmarked the page, and would prefer to have the bookmarked url redisplayed. (the bookmarked url was initially displayed for the page) I've tried overriding Form.onError() { setResponsePage(WelcomePage.class, new PageParameters()); } and that got me my nice bookmarked url, but lost all my form field values. Obviously creating a new page instance. I've also tried Form.onError() { setResponsePage(WelcomePage.this); } Is it possible with wicket to only have the bookmarkable urls visible, without exposing the wicket internals in the url? Thanks in advance Philip Wilkinson. -- View this message in context: http://www.nabble.com/Can-I-get-a-%27Nice-URL%27-when-form-validation-fails--tf4020865.html#a11420378 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket-based dashboard
You're welcome :) -Matej On 7/3/07, Nathan Beach [EMAIL PROTECTED] wrote: With some simple changes to ModalWindow, I'm able to get the basics to work (see attached gif). Just turned off the masking, added x and yOffsets, and altered the loadPosition function to take settings parameters rather than loading from a cookie. There's still a lot of work left to make an actual lightweight dashboard, but it's a start... It's such a nice-looking component -- thanks Matej! Nathan B. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius Sent: Monday, July 02, 2007 10:44 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] wicket-based dashboard I'm looking for some advice on how to create a Wicket-based dashboard with functionality along the lines of iGoogle.com. That is, resizable and drag/drop-able sub-window components that can be arranged by the user. And the dashboard layout must be serialized for the next time the user logs in. The drag and drop part is probably the most difficult. Though there's plenty of JavaScript libs (and probably some Wicket components in one of the wicket-stuff projects) you can use, you'll probably have to do a decent amount of writing code yourself as well. In can imagine that the modal window can serve as inspiration, though you don't need the ajax loading it has, and I definitively wouldn't make it page based (but rather panel based). It would be a great set of components to have, and it sounds fun to develop. Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] jsessionid and page expired
Okay - you helped me shed some good light on this... Was there a change to the way the cookies are set in 1.3? Or is the following possibly a configuration issue? Going through Apache: http://admin.theatdgroup.com/app/signin, I get the following set-cookie header - Set-Cookie=JSESSIONID=E9272590E6918C858DAD956CB2ACE671; Path=/atdg The problem there is the path - which is the path that my backend tomcat instance is mounted on: http://admin.theatdgroup.com:9080/atdg/app/signin That cookie is probably not even set by Wicket, is it? I'll dig deeper, but maybe there's something I need to do with tomcat or apache config. Thank you! Jeremy Thomerson On 7/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On 7/3/07, Jeremy Thomerson [EMAIL PROTECTED] wrote: I already have several Wicket applications deployed, some that don't require a session (all extranet - non-signin, bookmarkable url stuff), and one large one that uses the session extensively. Now, I just deployed a site last night for testing that is a backend administration site, which obviously requires a session for the user to sign in, etc. But, on every bookmarkable link, it appends the jsessionid (not just the first link like normal), and on non-bookmarkable links ( i.e. http://admin.theatdgroup.com/app/?wicket:interface=:15), it doesn't append the jsessionid, but I get Page Expired (and this is without the page actually being expired). I'm running the latest, built-from-svn version of Wicket. This is also my first stateful Wicket app to deploy on Linux (the others are on Windows). I'm using Tomcat, and have made sure that the sessions last 60 minutes. It is behind Apache, using mod_proxy, just like all of the other Wicket apps that I have deployed. I know there's just a setting I'm missing somewhere... any ideas? if it keeps appending jsessionid then its not getting a cookie it tried to set back from you. maybe apache is eating it. -igor Thanks! Jeremy Thomerson - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] jsessionid and page expired
I found it - need to use ProxyPassReverseCookiePath, which means I also need to upgrade to Apache 2.2 (I'm on 2.0.51). Thanks Igor!! Jeremy On 7/3/07, Jeremy Thomerson [EMAIL PROTECTED] wrote: Okay - you helped me shed some good light on this... Was there a change to the way the cookies are set in 1.3? Or is the following possibly a configuration issue? Going through Apache: http://admin.theatdgroup.com/app/signin, I get the following set-cookie header - Set-Cookie=JSESSIONID=E9272590E6918C858DAD956CB2ACE671; Path=/atdg The problem there is the path - which is the path that my backend tomcat instance is mounted on: http://admin.theatdgroup.com:9080/atdg/app/signin That cookie is probably not even set by Wicket, is it? I'll dig deeper, but maybe there's something I need to do with tomcat or apache config. Thank you! Jeremy Thomerson On 7/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On 7/3/07, Jeremy Thomerson [EMAIL PROTECTED] wrote: I already have several Wicket applications deployed, some that don't require a session (all extranet - non-signin, bookmarkable url stuff), and one large one that uses the session extensively. Now, I just deployed a site last night for testing that is a backend administration site, which obviously requires a session for the user to sign in, etc. But, on every bookmarkable link, it appends the jsessionid (not just the first link like normal), and on non-bookmarkable links ( i.e. http://admin.theatdgroup.com/app/?wicket:interface=:15), it doesn't append the jsessionid, but I get Page Expired (and this is without the page actually being expired). I'm running the latest, built-from-svn version of Wicket. This is also my first stateful Wicket app to deploy on Linux (the others are on Windows). I'm using Tomcat, and have made sure that the sessions last 60 minutes. It is behind Apache, using mod_proxy, just like all of the other Wicket apps that I have deployed. I know there's just a setting I'm missing somewhere... any ideas? if it keeps appending jsessionid then its not getting a cookie it tried to set back from you. maybe apache is eating it. -igor Thanks! Jeremy Thomerson - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Wicket ModalWindow, MaskType and opacity
Hello, I am using a Wicket 1.3.0 SNAPSHOT from the trunk. In the ModalWindow class, there are two masks available: MaskType.TRANSPARENT MaskType.SEMI-TRANSPARENT (10% opacity) Is there a way for me to have finer control of the degree of opacity? I'd love to be able to control it through a Java API. For what its worth, I inspected the Wicket's ModalWindow implementation and noticed that the mask is implemented in the modal.css file: div.wicket-mask-dark { position: fixed; top: 0px; left: 0px; width: 100%; height: 100%; opacity: 0.1; -moz-opacity:0.1; background-color: black; filter: alpha(opacity=10); background-image: url('transparent2.png'); } div.wicket-mask-transparent { position: fixed; top: 0px; left: 0px; width: 100%; height: 100%; background-image: url('transparent1.gif'); } Cheers, Sean - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket with JExcel
meanwhile for the AjaxExcelGirdPanel, you have to click on the cell labels to edit them and you will require wicket-extensions along with the wicket jar to make it work regards On 7/4/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: hmm..i have been busy but i worked a quick fix for you it is attached, its a netbeans project folder. I really hope you find it useful There are two panels there that meet your requirements ExcelGridPanel and AjaxExcelGridPanel i does not support paging yet so that gagantic excel data wont scatter the screen I also realized that Loop and ListView have a lot of difference cuz igor's validation error notification code did not work with Loop until i modified it to ListView Either way, you could work your way from what is attached when i have more updates, i will let you know regards On 7/2/07, Edi [EMAIL PROTECTED] wrote: Excuse me, ANy updates? please Ayodeji Aladejebi wrote: alas...igor has rescued us pls give me some time to update the code wih this approach and send it to yu On 6/29/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On 6/29/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: that should be simple, although my wicket is bit rusty at the moment, I think final TextField tx = new TextField(cell, new PropertyModel(values[row][col],data)); tx.add(new IValidator(){ public void validate(FormComponent fc){ if(fc.getValue () is greater than 20){ fc.add(new AttributeModifier(style,true, new Model(background-color: #FF;))); fc.error(error.toolongvalue ,null); }else{ fc.add(new AttributeModifier(style,true, new Model(background-color: normal-color;))); } } }); item.add(tx); something like dat...just buzz around ayyayay, i guess no matter how you try to engineer the api people always find ways to abuse it :) TextField tf=new TextField() { oncomponenttag(tag) { if (!isvalid()) { tag.put(class,error); } }}; tf.add(StringValidator.maxLength(20)); -igor On 6/29/07, Edi [EMAIL PROTECTED] wrote: Or, tell me how to validate, if the text box value exceeds 20 characters, I want to change the color of the text box. HOW? Ayodeji Aladejebi wrote: well, yu can use String.length to do dat. but be aware it might jumble your table because some Text will be *This is a very long text that can expand the Textfield too much* and some will be just Hi. I had to make that trade off as well i am looking for some javascript technique maybe yu can show me if yu find. Look for a javascript library that can allow a user to dynamically expand the textfield lenght with his mouse. so that we can attach that Behavior to each Textfield On 6/29/07, Edi [EMAIL PROTECTED] wrote: Hi, In your sample code, tx.add (new AttributeModifier(size,true, new Model(String.valueOf (8; It shows all the size of textbox is same. I want to change the size of text box value according to text each contents Ayodeji Aladejebi wrote: meanwhile, if yu look at this code in the Wicket - JExcel example Cell cell = sheet.getCell(col, row); values[row][col] = new XCell(row, col,cell.getContents()); return values[row][col].getData(); The Cell object is from JExcel and its where Datatype should be retrieved from 2. To validate, You can write a default wicket validator (See Validator examples), The validator can access the Textfield arrays and then check for validity its shouldn't be too difficult anyway On 6/28/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: I think that is within the scope of the JExcel API and not a wicket thing. Refer to the JExcel API doc first On 6/28/07, Edi [EMAIL PROTECTED] wrote: Hi, I am Newbie of Wicket. I have downloaded sample example to read XLS file using Wicket with JExcel. It's working fine. My doubt is 1.How can I retrieve the datatype of each cell? and 2. How to validate the each cell values? Please give me some Suggestions. Thanking You. Regards, Edi -- View this message in context: http://www.nabble.com/Wicket-with-JExcel-tf3994102.html#a11342103 Sent from the Wicket - User mailing list archive at Nabble.com .
Re: [Wicket-user] Wicket mailing list rules with regards to jobs
if it's specifically about wicket, posting is encouraged. Watter wrote: Are there any rules about a company posting to this list about potential open positions around Wicket? Matt -- View this message in context: http://www.nabble.com/Wicket-mailing-list-rules-with-regards-to-jobs-tf4019684.html#a11423549 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Advice needed on custom star rating control
I need to allow users to rate things on a site, but as far as I can tell, none of the star rating controls I've seen do everything I want. I'd like the following: 1. Should have CSS or Javascript rollover support to highlight stars as mouse rolls over them. 2. Must be able to fallback to regular HTML form submission if javascript is not availble. 3. Needs to have multiple star rating controls in the same form on the same page. 4. Should be able to show the overall rating within the same control (as colored and grey stars) and still allow mouse rollover highlighting in another color. 5. Should have a display-only mode where the rating feature doesn't work, it just shows the current rating. The Wicket rating control doesn't include the mouse rollover support: http://wicketstuff.org/wicket13/ajax/?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.ajax.builtin.RatingsPage This CSS only version is nice, but I don't think it does any sort of fallback to regular HTML: http://komodomedia.com/blog/index.php/2007/01/20/css-star-rating-redux/ This JQuery-rating plugin is probably closest with really nice HTML fallback, but it looks like each control needs to be in its own form and I need multiple controls in a single form: http://sandbox.wilstuckey.com/jquery-ratings/ Before I go and start creating yet another star rating wicket control, does anyone know of other solutions that would work? Or any advice on which path to take? I'm tempted to start with the JQuery-rating solution and build a wicket control from it, but maybe adding rollover to the current wicket control would be better? Thanks! Tauren - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Why wicket-phonebook 1.3 doesn't reload and run in glassfish?
I have been trying to figure out a reason as to why wicket-phonebook 1.3 couldn't be executed anymore after reloading in glassfish but it can be done in tomcat 5.x...I could reload it in glassfish without seeing error on the glassfish console, but if i type the URL pointing to the wicket-phonebook 1.3 context path, it shows 404 http error.. any idea? -- View this message in context: http://www.nabble.com/Why-wicket-phonebook-1.3-doesn%27t-reload-and-run-in-glassfish--tf4022018.html#a11423797 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Tree - override onNodeLinkClicked(...)?
Sorry, cant get u.. can you show me the some partial code ? My tree example was refer from the wicket example. but it only shown how to create a tree without some example to click the node and redirect to another page. I had tried search from the forum and do testing... still failed. Can everybody give ma some guide ? Maybe i am new to the wicket.. anyway, it is fun to learn and play around :) thanks igor.vaynberg wrote: On 7/2/07, kenixwong [EMAIL PROTECTED] wrote: i m using wicket1.2.4 i done with the nice tree and can display it. Just i did not get any resource on the link. Once i click all the node link, i wish to redirect to different pages that i defined. I had search in the wicket-user forum, but cant get any result yet. Can u help for it. (btw: i m the new to wicket) in wicket 1.2.x we do not support setresponsepage() from an ajax request (which is what i assume is going on since setresponsepage isnt working). what you have to do instead is ajaxtarget.appendjavascript(window.location=+urlfor(MyPage.class)); -igor here is my partial code final Tree tree = new Tree(tree, treeModel) { protected String renderNode(TreeNode node) { DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)node; return String.valueOf(treeNode.getUserObject()); } protected void nodeLinkClicked(DefaultMutableTreeNode node) { DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)node; setResponsePage(ReportTreePanel.class); } }; Eelco Hillenius wrote: Can anyone give me an example of override onNodeLinkClicked(...) for display the tree. I want to click the menu intree structure. It's fine i can did it now. But i cant setResponce to another page when i clicked on the link.. thanks in future So calling setResponsePage (to another page I pressume) doesn't work in the link clicked handler of the tree component? I wouldn't know how this might be a problem tbh. Which version of Wicket are you using, and which tree component (from the core project or the extensions project)? Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Tree---override-onNodeLinkClicked%28...%29--tf4010264.html#a11391373 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Tree---override-onNodeLinkClicked%28...%29--tf4010264.html#a11424058 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Advice needed on custom star rating control
I implemented one on our site (see example at: http://www.texashuntfish.com/thf/app/journals/1089/Boone-Crockett-26th-Big-Game-Awards-2004-2006-Entries- ). It's pretty straight-forward. Do you require that it is a form submission? (i.e. - is it nested in another form, and the whole form must be submitted to save data?). If not, I'd suggest staying away from a form altogether - use AjaxFallbackLink Just paint your stars, each with an AjaxFallbackLink, and then if it is an ajax request, do target.addComponent(wholeStarPanel) to repaint the updated panel (if you have recalculated the star rating, etc). Hope this helps a little. Sorry I didn't have more time for a better example. Jeremy Thomerson On 7/3/07, Tauren Mills [EMAIL PROTECTED] wrote: I need to allow users to rate things on a site, but as far as I can tell, none of the star rating controls I've seen do everything I want. I'd like the following: 1. Should have CSS or Javascript rollover support to highlight stars as mouse rolls over them. 2. Must be able to fallback to regular HTML form submission if javascript is not availble. 3. Needs to have multiple star rating controls in the same form on the same page. 4. Should be able to show the overall rating within the same control (as colored and grey stars) and still allow mouse rollover highlighting in another color. 5. Should have a display-only mode where the rating feature doesn't work, it just shows the current rating. The Wicket rating control doesn't include the mouse rollover support: http://wicketstuff.org/wicket13/ajax/?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.ajax.builtin.RatingsPage This CSS only version is nice, but I don't think it does any sort of fallback to regular HTML: http://komodomedia.com/blog/index.php/2007/01/20/css-star-rating-redux/ This JQuery-rating plugin is probably closest with really nice HTML fallback, but it looks like each control needs to be in its own form and I need multiple controls in a single form: http://sandbox.wilstuckey.com/jquery-ratings/ Before I go and start creating yet another star rating wicket control, does anyone know of other solutions that would work? Or any advice on which path to take? I'm tempted to start with the JQuery-rating solution and build a wicket control from it, but maybe adding rollover to the current wicket control would be better? Thanks! Tauren - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How do I change the look and feel of a wicket tree component?
hi, saad can you share me with your code (tree) created ? Maybe i am new to the wicket. As My tree example was refer from the wicket example. but it only shown how to create a tree without some example to click the node and redirect to another page. I had tried search from the forum and do testing... still failed... :( 10x alot Saad, Salma wrote: I am using a wicket.extensions.markup.html.tree.Tree and need to change the background color and the image used for the folder. I also need to make it wider. Does anyone have an idea how I could do this? - # CONFIDENTIAL: This e-mail, including its contents and attachments, if any, are confidential. It is neither an offer to buy or sell, nor a solicitation of an offer to buy or sell, any securities or any related financial instruments mentioned in it. If you are not the named recipient please notify the sender and immediately delete it. You may not disseminate, distribute, or forward this e-mail message or disclose its contents to anybody else. Unless otherwise indicated, copyright and any other intellectual property rights in its contents are the sole property of Mizuho Securities USA Inc. E-mail transmission cannot be guaranteed to be secure or error-free. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. Although we routinely screen for viruses, addressees should check this e-mail and any attachments for viruses. We make no representation or warranty as to the absence of viruses in this e-mail or any attachments. Please note that to ensure regulatory compliance and for the protection of our customers and business, we may monitor and read e-mails sent to and from our server(s). # - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/How-do-I-change-the-look-and-feel-of-a-wicket-tree-component--tf3873786.html#a11424222 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Advice needed on custom star rating control
Thanks for the ideas, Jeremy. For my application, users will be rating services and will fill out a form that includes several text fields, a textarea, a dropdown, and so forth. They need to rate this service based on multiple criteria with a star-rating control for each criteria. I want star-rating controls that fallback to plain html dropdowns like the jquery-rating plugin does. For this reason, I'm not sure that using AjaxFallbackLinks is the best solution. I don't want the user to lose any input into the text fields, textarea, dropdowns, etc. Maybe there would be a way to do it using AjaxSubmtiLink, but I don't think that it has Fallback capability for users without JS enabled. Plus, I don't want the feedback panel appearing if they chose to rate before completing other required fields in the form. If you have more ideas, I'd certainly like to hear them! Tauren On 7/3/07, Jeremy Thomerson [EMAIL PROTECTED] wrote: I implemented one on our site (see example at: http://www.texashuntfish.com/thf/app/journals/1089/Boone-Crockett-26th-Big-Game-Awards-2004-2006-Entries- ). It's pretty straight-forward. Do you require that it is a form submission? (i.e. - is it nested in another form, and the whole form must be submitted to save data?). If not, I'd suggest staying away from a form altogether - use AjaxFallbackLink Just paint your stars, each with an AjaxFallbackLink, and then if it is an ajax request, do target.addComponent(wholeStarPanel) to repaint the updated panel (if you have recalculated the star rating, etc). Hope this helps a little. Sorry I didn't have more time for a better example. Jeremy Thomerson On 7/3/07, Tauren Mills [EMAIL PROTECTED] wrote: I need to allow users to rate things on a site, but as far as I can tell, none of the star rating controls I've seen do everything I want. I'd like the following: 1. Should have CSS or Javascript rollover support to highlight stars as mouse rolls over them. 2. Must be able to fallback to regular HTML form submission if javascript is not availble. 3. Needs to have multiple star rating controls in the same form on the same page. 4. Should be able to show the overall rating within the same control (as colored and grey stars) and still allow mouse rollover highlighting in another color. 5. Should have a display-only mode where the rating feature doesn't work, it just shows the current rating. The Wicket rating control doesn't include the mouse rollover support: http://wicketstuff.org/wicket13/ajax/?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.ajax.builtin.RatingsPage This CSS only version is nice, but I don't think it does any sort of fallback to regular HTML: http://komodomedia.com/blog/index.php/2007/01/20/css-star-rating-redux/ This JQuery-rating plugin is probably closest with really nice HTML fallback, but it looks like each control needs to be in its own form and I need multiple controls in a single form: http://sandbox.wilstuckey.com/jquery-ratings/ Before I go and start creating yet another star rating wicket control, does anyone know of other solutions that would work? Or any advice on which path to take? I'm tempted to start with the JQuery-rating solution and build a wicket control from it, but maybe adding rollover to the current wicket control would be better? Thanks! Tauren - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Advice needed on custom star rating control
On 7/3/07, Tauren Mills [EMAIL PROTECTED] wrote: The Wicket rating control doesn't include the mouse rollover support: http://wicketstuff.org/wicket13/ajax/?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.ajax.builtin.RatingsPage Before I go and start creating yet another star rating wicket control, does anyone know of other solutions that would work? Or any advice on which path to take? I'm tempted to start with the JQuery-rating solution and build a wicket control from it, but maybe adding rollover to the current wicket control would be better? why roll your own? why not patch the one in extensions and give a little back to the community? -igor - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] DatePicker broken on beta2 and snapshot?
Hi. Just noticed that the DatePicker in my Form no longer works. The wicket form examples page also does not work: http://wicketstuff.org/wicket13/forminput/ I am using beta2. Wicketstuff is using 1.3.0-incubating-SNAPSHOT i think. Tried in FireFox 2, Opera 9.21, IE 6. Snippet of code: add(new TextField(dateProperty, Date.class).add(new DatePicker())); Another question, which is the 'current'/recommended DateTextField implementation as there is one in wicket.datetime and one in wicket.extentions? Cheers Oliver -- View this message in context: http://www.nabble.com/DatePicker-broken-on-beta2-and-snapshot--tf4022254.html#a11424417 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Advice needed on custom star rating control
Igor, Of course my preference would be to do exactly that -- improve the wicket-extensions rating control and give it back to the community. However, it is missing several features that I need, including the javascript rollover feature as well as not supporting fallback to html. Of course I could implement these features, but I don't have a lot of time to put into this right now. Since the jQuery-ratings plugin does almost everything I need, except for allow multiple raters in one form, it looks like it may be quicker to implement. Regardless, either way I'll contribute it to the wicket community. However, I was hoping that someone might have some suggestions or know of someone who already did something similar. I really don't want to sink too much time into this one little feature, but it is looking like I might have to. Tauren On 7/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On 7/3/07, Tauren Mills [EMAIL PROTECTED] wrote: The Wicket rating control doesn't include the mouse rollover support: http://wicketstuff.org/wicket13/ajax/?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.ajax.builtin.RatingsPage Before I go and start creating yet another star rating wicket control, does anyone know of other solutions that would work? Or any advice on which path to take? I'm tempted to start with the JQuery-rating solution and build a wicket control from it, but maybe adding rollover to the current wicket control would be better? why roll your own? why not patch the one in extensions and give a little back to the community? -igor - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Can I get a 'Nice URL' when form validation fails?
Philip, You need to also include all your form values in the PageParamters, and parse those values in your page, filling each of the fields with those values. Does that make sense? So, your url would be something like: /myPage?field1=blahcheckbox1=true... Cheers, Dave On Tue, 2007-07-03 at 13:48 -0700, Philip Wilkinson wrote: Hi, When my form validation fails, the page is redisplayed with the default url with all its wicket:interface stuff. I'd rather this didn't happen as I've bookmarked the page, and would prefer to have the bookmarked url redisplayed. (the bookmarked url was initially displayed for the page) I've tried overriding Form.onError() { setResponsePage(WelcomePage.class, new PageParameters()); } and that got me my nice bookmarked url, but lost all my form field values. Obviously creating a new page instance. I've also tried Form.onError() { setResponsePage(WelcomePage.this); } Is it possible with wicket to only have the bookmarkable urls visible, without exposing the wicket internals in the url? Thanks in advance Philip Wilkinson. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket mailing list rules with regards to jobs
In that case... Is anybody on this list, living in the Kansai area in Japan, available for purely Wicket development? We're looking for somebody who can work on-site if possible. Japanese language skills would be a great asset. :-) On Tue, 2007-07-03 at 21:06 +0200, Martijn Dashorst wrote: On 7/3/07, Matej Knopp [EMAIL PROTECTED] wrote: Hi Matt, as far as I know there are no strict rules. Basically, if the position involves Wicket, nobody objects against such posts. Specifically targets Wicket developers to be more exact. No general catch all 'Wicket, Tapestry, JSF, Struts, WebWork, Stripes' job ads please. Martijn - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] onSubmit() called twice
Ok, thanks for this info! I'll have to look into Ajax behaviours in more detail at some point. It all looks really well done and very useful, but I think there's more to it than I originally thought. Cheers, Dave On Tue, 2007-07-03 at 19:40 +0200, Johan Compagner wrote: you can use onchange but then you don't have to have a submit button because after every change your form is submitted. On 7/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On 7/3/07, Johan Compagner [EMAIL PROTECTED] wrote: first AjaxFormValidationBehavior doesn't do client side (javascript) validation. it calls the server and does this by submitting the form. so if you change the field where you have this validation on. And then you directly click a submit button yes it will be done twice. first the fields onchange is triggered (or the button i dont know what the browser sees first) then the button click. so yes you get 2 form submits But i don't know where you add that form on and what onchange you trigger because this: add( new AjaxFormValidatingBehavior( this, onchange ) ); seems to me that you add this to a forms onchange? (because this needs to be a form) but i guess you mean textfield.add ( new AjaxFormValidatingBehavior( this, onchange ) ); the problem here is that onchange is fired when the focus is lost from the field. so if you are on that field and you click the submit button this will result in two form-submittals that are very very close to each other. thus the double submit that you see. you should add validatingbehavior to onkeyup, and make sure to set a throttle so it doesnt flood your server. -igor johan On 7/3/07, David Leangen [EMAIL PROTECTED] wrote: Hi, Eelco, I guess I found why this was happening, but somehow this doesn't seem right to me. I had been experimenting with adding this add( new AjaxFormValidatingBehavior( this, onchange ) ); to my RequiredTextField. It never did work for me, but I thought I'd get back to it later. [When I say it doesn't work, I mean that there is no Javascript validation (which IIUC is what's supposed to happen).] Anyway, when I add this behaviour, onSubmit() is getting called twice for some reason, which at least for me is definitely not the desired behaviour of my form. Is this the expected behaviour, or is something wrong? Cheers, Dave On Mon, 2007-07-02 at 21:51 -0700, Eelco Hillenius wrote: onSubmit(), and consequently the code I have in that overridden method, is being called twice. I'm wondering if it's my misunderstanding of how Wicket works, and this behaviour is intended, or if I somehow introduced a bug in my code. If this is caused by my error, does anybody have any hints as to where I can look to find the source of this method's being called twice? That should definitively not happen. Can you
Re: [Wicket-user] Wicket with JExcel
Thank you so much for your kind reply. I have installed source. It's working fine. I have one doubt. If the empty field occurs, you have set the string Not Set. That's fine. 1. How can I change the empty field box style in Red color. It's easy to Identify. Because XL file may contains lot of empty fields. 2. And how can I add alt tag when I mouse over the empty field text box - for eg. If I mouse over the empty field, It shows the empty field should not be allowed. 3. After changing the file, what is save record button. How it works? Please explain. It's useful for me. Thank you so much for all your kind reply. It's really helpful to learn lot. Regards, Edi Ayodeji Aladejebi wrote: meanwhile for the AjaxExcelGirdPanel, you have to click on the cell labels to edit them and you will require wicket-extensions along with the wicket jar to make it work regards On 7/4/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: hmm..i have been busy but i worked a quick fix for you it is attached, its a netbeans project folder. I really hope you find it useful There are two panels there that meet your requirements ExcelGridPanel and AjaxExcelGridPanel i does not support paging yet so that gagantic excel data wont scatter the screen I also realized that Loop and ListView have a lot of difference cuz igor's validation error notification code did not work with Loop until i modified it to ListView Either way, you could work your way from what is attached when i have more updates, i will let you know regards On 7/2/07, Edi [EMAIL PROTECTED] wrote: Excuse me, ANy updates? please Ayodeji Aladejebi wrote: alas...igor has rescued us pls give me some time to update the code wih this approach and send it to yu On 6/29/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On 6/29/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: that should be simple, although my wicket is bit rusty at the moment, I think final TextField tx = new TextField(cell, new PropertyModel(values[row][col],data)); tx.add(new IValidator(){ public void validate(FormComponent fc){ if(fc.getValue () is greater than 20){ fc.add(new AttributeModifier(style,true, new Model(background-color: #FF;))); fc.error(error.toolongvalue ,null); }else{ fc.add(new AttributeModifier(style,true, new Model(background-color: normal-color;))); } } }); item.add(tx); something like dat...just buzz around ayyayay, i guess no matter how you try to engineer the api people always find ways to abuse it :) TextField tf=new TextField() { oncomponenttag(tag) { if (!isvalid()) { tag.put(class,error); } }}; tf.add(StringValidator.maxLength(20)); -igor On 6/29/07, Edi [EMAIL PROTECTED] wrote: Or, tell me how to validate, if the text box value exceeds 20 characters, I want to change the color of the text box. HOW? Ayodeji Aladejebi wrote: well, yu can use String.length to do dat. but be aware it might jumble your table because some Text will be *This is a very long text that can expand the Textfield too much* and some will be just Hi. I had to make that trade off as well i am looking for some javascript technique maybe yu can show me if yu find. Look for a javascript library that can allow a user to dynamically expand the textfield lenght with his mouse. so that we can attach that Behavior to each Textfield On 6/29/07, Edi [EMAIL PROTECTED] wrote: Hi, In your sample code, tx.add (new AttributeModifier(size,true, new Model(String.valueOf (8; It shows all the size of textbox is same. I want to change the size of text box value according to text each contents Ayodeji Aladejebi wrote: meanwhile, if yu look at this code in the Wicket - JExcel example Cell cell = sheet.getCell(col, row); values[row][col] = new XCell(row, col,cell.getContents()); return values[row][col].getData(); The Cell object is from JExcel and its where Datatype should be retrieved from 2. To validate, You can write a default wicket validator (See Validator examples), The validator can access the Textfield arrays and then check for validity its shouldn't be too difficult anyway On 6/28/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: I think that is within the
Re: [Wicket-user] Wicket with JExcel
In xls one field contains more than 20 characters. When I upload that xls, initially it shows the data only not in red color box. But when I click the box only it shows red color. How can I show in red color when load the document. Ayodeji Aladejebi wrote: meanwhile for the AjaxExcelGirdPanel, you have to click on the cell labels to edit them and you will require wicket-extensions along with the wicket jar to make it work regards On 7/4/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: hmm..i have been busy but i worked a quick fix for you it is attached, its a netbeans project folder. I really hope you find it useful There are two panels there that meet your requirements ExcelGridPanel and AjaxExcelGridPanel i does not support paging yet so that gagantic excel data wont scatter the screen I also realized that Loop and ListView have a lot of difference cuz igor's validation error notification code did not work with Loop until i modified it to ListView Either way, you could work your way from what is attached when i have more updates, i will let you know regards On 7/2/07, Edi [EMAIL PROTECTED] wrote: Excuse me, ANy updates? please Ayodeji Aladejebi wrote: alas...igor has rescued us pls give me some time to update the code wih this approach and send it to yu On 6/29/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On 6/29/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: that should be simple, although my wicket is bit rusty at the moment, I think final TextField tx = new TextField(cell, new PropertyModel(values[row][col],data)); tx.add(new IValidator(){ public void validate(FormComponent fc){ if(fc.getValue () is greater than 20){ fc.add(new AttributeModifier(style,true, new Model(background-color: #FF;))); fc.error(error.toolongvalue ,null); }else{ fc.add(new AttributeModifier(style,true, new Model(background-color: normal-color;))); } } }); item.add(tx); something like dat...just buzz around ayyayay, i guess no matter how you try to engineer the api people always find ways to abuse it :) TextField tf=new TextField() { oncomponenttag(tag) { if (!isvalid()) { tag.put(class,error); } }}; tf.add(StringValidator.maxLength(20)); -igor On 6/29/07, Edi [EMAIL PROTECTED] wrote: Or, tell me how to validate, if the text box value exceeds 20 characters, I want to change the color of the text box. HOW? Ayodeji Aladejebi wrote: well, yu can use String.length to do dat. but be aware it might jumble your table because some Text will be *This is a very long text that can expand the Textfield too much* and some will be just Hi. I had to make that trade off as well i am looking for some javascript technique maybe yu can show me if yu find. Look for a javascript library that can allow a user to dynamically expand the textfield lenght with his mouse. so that we can attach that Behavior to each Textfield On 6/29/07, Edi [EMAIL PROTECTED] wrote: Hi, In your sample code, tx.add (new AttributeModifier(size,true, new Model(String.valueOf (8; It shows all the size of textbox is same. I want to change the size of text box value according to text each contents Ayodeji Aladejebi wrote: meanwhile, if yu look at this code in the Wicket - JExcel example Cell cell = sheet.getCell(col, row); values[row][col] = new XCell(row, col,cell.getContents()); return values[row][col].getData(); The Cell object is from JExcel and its where Datatype should be retrieved from 2. To validate, You can write a default wicket validator (See Validator examples), The validator can access the Textfield arrays and then check for validity its shouldn't be too difficult anyway On 6/28/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: I think that is within the scope of the JExcel API and not a wicket thing. Refer to the JExcel API doc first On 6/28/07, Edi [EMAIL PROTECTED] wrote: Hi, I am Newbie of Wicket. I have downloaded sample example to read XLS file using Wicket with JExcel. It's working fine. My doubt is 1.How can I retrieve the datatype of each cell?
Re: [Wicket-user] DatePicker broken on beta2 and snapshot?
Just noticed that the DatePicker in my Form no longer works. The wicket form examples page also does not work: http://wicketstuff.org/wicket13/forminput/ Yeah, this is fixed in example's trunk (it's actually removed from that example), but there is no ultimate solution for this. The problem is described here: http://issues.apache.org/jira/browse/WICKET-694 (or rather in the thread it references). Still no good idea about a solution. It's one of the things 2.0's constructor change *did* fix, but unfortunately, pros like that didn't outweight the cons. The issue is left open. Hopefully someone get's some fresh inspiration soon. Snippet of code: add(new TextField(dateProperty, Date.class).add(new DatePicker())); As you can read in the above-mentioned thread, you can work around this by not using an id attribute on dateProperty's markup tag. Another question, which is the 'current'/recommended DateTextField implementation as there is one in wicket.datetime and one in wicket.extentions? Doesn't matter much. I prefer the one in wicket-datetime, as there's some magic in there (or rather in the converter is used by default) to adjust for time zones, but if you need just the basics, they're both fine. Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Tree - override onNodeLinkClicked(...)?
Sorry, cant get u.. can you show me the some partial code ? My tree example was refer from the wicket example. but it only shown how to create a tree without some example to click the node and redirect to another page. I had tried search from the forum and do testing... still failed. Can everybody give ma some guide ? Maybe i am new to the wicket.. anyway, it is fun to learn and play around :) If you are just playing around, could you please do that with Wicket 1.3, as you won't have those problems you are having with that version to start with :) See http://martijndashorst.com/blog/2007/07/02/apache-wicket-130-beta-2-released/ Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Tree - override onNodeLinkClicked(...)?
thx for reply... i waiting and waiting somebody to reply it.. :p sorry for understood.. i m not just play around. i wish to build a new module for my current project. And i wish to manage all the menus in a tree style outlook. So, can i get some guide frou u , Eelco .. thx a lot Eelco Hillenius wrote: Sorry, cant get u.. can you show me the some partial code ? My tree example was refer from the wicket example. but it only shown how to create a tree without some example to click the node and redirect to another page. I had tried search from the forum and do testing... still failed. Can everybody give ma some guide ? Maybe i am new to the wicket.. anyway, it is fun to learn and play around :) If you are just playing around, could you please do that with Wicket 1.3, as you won't have those problems you are having with that version to start with :) See http://martijndashorst.com/blog/2007/07/02/apache-wicket-130-beta-2-released/ Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Tree---override-onNodeLinkClicked%28...%29--tf4010264.html#a11425136 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Tree - override onNodeLinkClicked(...)?
sorry for understood.. i m not just play around. i wish to build a new module for my current project. And i wish to manage all the menus in a tree style outlook. So, can i get some guide frou u , Eelco .. If you are looking for menus, why not use something like this: http://developer.yahoo.com/yui/menu/? That will be much easier to set up than bending the Tree component into something it is not meant for. Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] 401 HTTP authentication?
What is the right way to use basic HTTP authentication? I know how to read the headers to extract the username and password, but if they don't match, or if they're not supplied, what is the best way to send the 401 response to the user? It seems like the ISecuritySettings.setUnauthorizedComponentInstantiationListener() method assumes that you want to present an HTML login component to the user. --Jesse Barnum, President, 360Works http://www.360works.com (770) 234-9293 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user