Re: [Wicket-user] Can I get a 'Nice URL' when form validation fails?
sure thanks On 7/6/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On 7/6/07, Joshua Lim [EMAIL PROTECTED] wrote: https://issues.apache.org/jira/browse/WICKET-725 thanks, but do understand this is not a priority right now so it wont happen in 1.3.0 timeframe -igor On 7/6/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On 7/5/07, Joshua Lim [EMAIL PROTECTED] wrote: Thanks for the explanation igor, I would like to use google analytics on all our pages, hence I need to have all the pages mounted with niceurls... or at least something like http://server/app/niceurl/?wicket.; would be ok However, when a validation fails, my page becomes http://server/app/?wicket::... and instead of something like http://server/app/niceurl/?wicket::... am I doing something wrong? no, you are not. as of right now wicket will not keep a mount in the path. we have talked about doing that for a while, but just havent found the time. please add an rfe for 1.4 and we will look into it. -igor Joshua - 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 - 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] non-wicket relative link pre-pending question
thanks for the explanation igor I will use /mycontext for now as there's only a few links I can manage ... would try to figure out why it only happens on the deployed server and not on my development environment Josh On 7/6/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On 7/5/07, Joshua Lim [EMAIL PROTECTED] wrote: Hi I am hitting a problem with my static links being pre-pended with ../. This is happening to my Link... and A Href So where I have a href=a_mounted_path becomes a href=../a_mounted_path when I have a validation error on this page. and it happens only upon the 2nd time of validation error This only happens on the server running apache and tomcat, and does not happen on my development environment. Can anyone help me on this? wicket assumes that any paths in raw markup are context-relative, so it will prepend them with enough ../ to make them context-relative for example if you have a panel that has a href=mymountedpath1 and then that panel is itself inside a mounted page that is mounted to /mountedpath2, the link will break because in reality it will be /mountedpath2/mountedpath1, the ../ will be prepended and will erase any path you are currently on. wicket will ignore any path that starts with /. hope this helps some -igor Thanks Joshua - 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] Can I get a 'Nice URL' when form validation fails?
https://issues.apache.org/jira/browse/WICKET-725 On 7/6/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On 7/5/07, Joshua Lim [EMAIL PROTECTED] wrote: Thanks for the explanation igor, I would like to use google analytics on all our pages, hence I need to have all the pages mounted with niceurls... or at least something like http://server/app/niceurl/?wicket.; would be ok However, when a validation fails, my page becomes http://server/app/?wicket::... and instead of something like http://server/app/niceurl/?wicket::... am I doing something wrong? no, you are not. as of right now wicket will not keep a mount in the path. we have talked about doing that for a while, but just havent found the time. please add an rfe for 1.4 and we will look into it. -igor Joshua - 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] Can I get a 'Nice URL' when form validation fails?
lets say validation fails - that means your form.onsubmit() is never called. what wicket does is redirect to a url that will render the current page again back to the user (it doesnt have to redirect, but it does by default - see redirect-after-post pattern for details). this url also cannot be pretty because it points to a specific instance of a page in session - this is the url you will see when validation fails. Thanks for the explanation igor, I would like to use google analytics on all our pages, hence I need to have all the pages mounted with niceurls... or at least something like http://server/app/niceurl/?wicket.; would be ok However, when a validation fails, my page becomes http://server/app/?wicket::... and instead of something like http://server/app/niceurl/?wicket::... am I doing something wrong? Joshua - 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] non-wicket relative link pre-pending question
Hi I am hitting a problem with my static links being pre-pended with ../. This is happening to my Link... and A Href So where I have a href=a_mounted_path becomes a href=../a_mounted_path when I have a validation error on this page. and it happens only upon the 2nd time of validation error This only happens on the server running apache and tomcat, and does not happen on my development environment. Can anyone help me on this? Thanks Joshua - 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] FormInput Example on 1.3 Clearing Radio/Check/Box on error
the bug is in the wicket-examples using a ListView in a Form without setResueItems set On 6/29/07, Joshua Lim [EMAIL PROTECTED] wrote: Here it is : https://issues.apache.org/jira/browse/WICKET-710 On 6/29/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On 6/28/07, Joshua Lim [EMAIL PROTECTED] wrote: Hi I am encountering a behaviour on 1.3 trunk forminput on wicket-examples which I think wasn't the same before.(been away from wicket for a while) When I clear the String TextField (which is a requiredTextField) to force an error , my values on the Radio/Check/Group seems to be cleared as well... Is this normal? this is definetely not normal, please file a bug report. -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 - 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 Index: /Users/josh/Development/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/forminput/FormInput.java === --- /Users/josh/Development/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/forminput/FormInput.java (revision 551819) +++ /Users/josh/Development/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/forminput/FormInput.java (working copy) @@ -123,7 +123,7 @@ item.add(new Radio(radio, item.getModel())); item.add(new Label(number, item.getModelObjectAsString())); }; - }; + }.setReuseItems(true); group.add(persons); CheckGroup checks = new CheckGroup(numbersCheckGroup); @@ -135,7 +135,8 @@ item.add(new Check(check, item.getModel())); item.add(new Label(number, item.getModelObjectAsString())); }; - }; + }.setReuseItems(true); + checks.add(checksList); add(new ListMultipleChoice(siteSelection, SITES)); - 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] FormInput Example on 1.3 Clearing Radio/Check/Box on error
Hi I am encountering a behaviour on 1.3 trunk forminput on wicket-examples which I think wasn't the same before.(been away from wicket for a while) When I clear the String TextField (which is a requiredTextField) to force an error , my values on the Radio/Check/Group seems to be cleared as well... Is this normal? - 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] FormInput Example on 1.3 Clearing Radio/Check/Box on error
Here it is : https://issues.apache.org/jira/browse/WICKET-710 On 6/29/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On 6/28/07, Joshua Lim [EMAIL PROTECTED] wrote: Hi I am encountering a behaviour on 1.3 trunk forminput on wicket-examples which I think wasn't the same before.(been away from wicket for a while) When I clear the String TextField (which is a requiredTextField) to force an error , my values on the Radio/Check/Group seems to be cleared as well... Is this normal? this is definetely not normal, please file a bug report. -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 - 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 YUI
Hi... I updated the Yui Slider and also the examples on it. It now includes a divisor so that it can return a more customisable range of value instead of pixel values. also the slider thumb will initialise to the starting value based on the model of the textfield attached to it. have fun. Josh On 6/2/07, James McLaughlin [EMAIL PROTECTED] wrote: Turns out the project needed a little touch up -- somehow it missed the onAtach refactor and the pom was missing wicket-velocity. My apologies to anyone who checked the project out only to be greeted by some nice stack traces. It will work now. jbq, I put them up temporarily at http://bones.homelinux.org/wicketstuff-yui-examples, but its a home server, so no guarantees it will be there for any length of time. It would be great if we could get it on wicketstuff.org at some point. Now, if I could just convince you to contribute some of your spare mussels... :) Maurice, That would be great! I look forward to it. best, jim - 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] getVariation and extended panels
Hi I have got a SuperPanel class that extends Panel, I have a few variations of html for this SuperPanel and am overriding the getVariation() method for to get what I want ...that's all good. Then I wanted to add a ChildPanel extending SuperPanel. and also I would like to have ChildPanel to have also a few variations hence giving me more flexibility in generating dynamic panels as a result... getVariation() gets resolved at the ChildPanel level only. since overriding the getVariation on ChildPanel hides SuperPanel.getVariation(). Am I stretching this too far?? :p and should just work with one variation per component hierarchy Joshua - 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] getVariation and extended panels
Ok I'll try... I was experimenting with the following with 2 panels... bascially ChildPanel.getVariation() will override the SuperPanel.getVariation() so I cannot have say a Blue SuperPanel and a Red ChildPanel... which would then make it possible to have flexible combination of layouts by extending the panels... I am not sure if this is the right approach, so would like some advice. right now I have move to just sticking to 1 variation to 1 hierachy thanks Joshua // SuperPanel // // SuperPanel.Html wicket:panel DIV style=border:1px solid #000 This is Super Panel wicket:child/ /DIV /wicket:panel // SuperPanel_Red.html wicket:panel DIV style=border:1px solid #F00 This is Red Super Panel wicket:child / /DIV /wicket:panel // SuperPanel.java public class SuperPanel extends Panel { public String getVariation() { return Red; } } // ChildPanel // // ChildPanel.html wicket:extend DIV style=border:1px solid #000 This is Child Panel /DIV /wicket:extend // ChildPanel_Blue.html wicket:extend DIV style=border:1px solid #00F This is Blue Child Panel /DIV /wicket:extend // ChildPanel.java public class ChildPanel extends SuperPanel { public String getVariation() { return Blue; } } On 5/11/07, Igor Vaynberg [EMAIL PROTECTED] wrote: could you more clearly define what you think the behavior should be, and what it is now? -igor On 5/10/07, Joshua Lim [EMAIL PROTECTED] wrote: Hi I have got a SuperPanel class that extends Panel, I have a few variations of html for this SuperPanel and am overriding the getVariation() method for to get what I want ...that's all good. Then I wanted to add a ChildPanel extending SuperPanel. and also I would like to have ChildPanel to have also a few variations hence giving me more flexibility in generating dynamic panels as a result... getVariation() gets resolved at the ChildPanel level only. since overriding the getVariation on ChildPanel hides SuperPanel.getVariation (). Am I stretching this too far?? :p and should just work with one variation per component hierarchy Joshua - 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] Back-button / versioning
Hi I was having a little problem with back-button and versioning... I am using 1.3 snapshot from trunk. (as of today) I have a few wicket pages :- ParentPage contains a form and a submit button without form components. ChildPage(s) of this ParentPage calls getForm().add(some component). The pages all work fine and everything flows correctly. But when I tried to use the back button and submit again, I get a Page Expired. I know that by default that Pages are versioned but Forms are not (?) according to the wiki... Pages are versioned by default but Forms are not. If you want to make a form versioned call form.setVersioned(true) on the form right after all components have been added (not before). This holds at least for wicket version 1.2.2 but setVersion(true) didn't seem to do the trick. However, Eelco suggested to setObjectStreamFactory to the DefaultObjectStreamFactory in the application init, and this actually made all the back-button submit workThanks again Eelco Objects.setObjectStreamFactory(new IObjectStreamFactory.DefaultObjectStreamFactory()); Joshua - 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] Contributing to wicket-contrib-yui
Sure thing, more than happy :) thanks Josh On 4/27/07, Eelco Hillenius [EMAIL PROTECTED] wrote: David and Thomas, you're both in. Make something beautiful :) And Josh, thanks for your previous effort. Hope you don't mind this, and you like anyone else are most welcome to help with the it. Cheers, Eelco On 4/27/07, Peter Thomas [EMAIL PROTECTED] wrote: Eelco / David, I would be interested in helping out with wicket-contrib-yui as well - my sf id is ptrthomas Thanks, Peter. On 4/27/07, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote: * David Leangen: On Fri, 2007-04-27 at 14:13 +0800, Joshua Lim wrote: I also hope that it could be a wicket package. I don't want to be dependent on the hosting. What about having the option to do either one? Sure, use by default a local copy, and let the user choose the script to load. That's what we do on WS Dojo. -- 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 - 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] Contributing to wicket-contrib-yui
I also hope that it could be a wicket package. I don't want to be dependent on the hosting. I did some work on the package but unfortunately could not complete it to what we wanted and it's been there for a while. josh On 4/27/07, David Leangen [EMAIL PROTECTED] wrote: David, if you send us your sourceforge id, (not the literal id, but the name, like mine is eelco12), we can give you commit rights, and you can decide for yourself whether and when you play with it. My id = dleangen Thanks, Eelco! Dave - 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 to Run behind SSL Loadbalancer + apache web server cluster
HiOk, more poking around and here's what I think is happening ... Accessing the the login page directly via https://.../myWicketApp/login?wicket:bookmarkablePage=:com. works ok.after log in the app works ok and take the https in the URL as it is from the request... However, myWicketApp has an AuthorizationStrategy which extends SimplePageAuthorizationStrategy .. and it is when I access the myWicketApp home page and gets redirectToInterceptPage (my login page) that it drops the https because it was not requested directly from the client browser but from within the LB ? is this wrong?JoshOn 11/6/06, Joshua Lim [EMAIL PROTECTED] wrote: Hi igor Yes you are right, between the (loadbalancer) LB and apache and Weblogic (internal nework) they are all over http - and only the browser to the LB is SSL... Is there something at the application level that I can do to make it work ? I am afraid I might have difficulty getting the convincing them reconfigure their standard LB setup to always forward with https thanksJoshOn 11/6/06, Igor Vaynberg [EMAIL PROTECTED] wrote: afaik wicket should not mess with http vs https, it works on whatever the request is. so it might be that your loadbalancer forwards the request over http instead of https so to wiket it seems like you are accessing over http? - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to Run behind SSL Loadbalancer + apache web server cluster
thanks for the reply. appreciated... will try on the LB endOn 11/6/06, Johan Compagner [EMAIL PROTECTED] wrote: but then it is the ssl loadbalancer at fault here.Wicket just redirects what it has (and internally wicket redirects to relative urls)So weblogic makes it absolute (with http://servername:port )But the ssl load balancer should rewrite that complete part. johan - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] How to Run behind SSL Loadbalancer + apache web server cluster
Hi wicket users,I need some help on running an wicket application behind a SSL load balancer.The wicket application is running on a weblogic server, and accessing the application works fine on its own.(i.e . accessing via IP+port number)and testing it with apache + mod_ssl + mod_jk + tomcat works too.However, once a cluster of apache web server and an SSL loadbalancer is put in front of it, the application cannot be reached. basically the logs suggests :1/ request is sent to the SSL loadbalancer is routed correctly the app server (i.e. we call https://someserver.comp.com/myWicketApp... )2/ the (myWicketApp) application redirects to my login page (http://someserver.comp.com/loginPage ... ) It basically cannot find the app server. because, myWicketApp, redirects to the login page via http and not https. I read http://www.wicket-wiki.org.uk/wiki/index.php/Switch_to_SSL_mode but I want to whole application behind the SSL so I don't think I need to implement that, and SSL is being handled by the SSL loadbalancer, so everything shold just work relatively right? I did try to impement newRequestCycleProcessor() in myWicketApp application and basically just change it the protocol to https but that gave me an Already redirecting to error - I am using a modified SimplePageAuthorizationStrategy. Anyone with experience with a this kind of set up?ThanksJosh - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to Run behind SSL Loadbalancer + apache web server cluster
Hi igor Yes you are right, between the (loadbalancer) LB and apache and Weblogic (internal nework) they are all over http - and only the browser to the LB is SSL... Is there something at the application level that I can do to make it work ? I am afraid I might have difficulty getting the convincing them reconfigure their standard LB setup to always forward with https thanksJoshOn 11/6/06, Igor Vaynberg [EMAIL PROTECTED] wrote: afaik wicket should not mess with http vs https, it works on whatever the request is. so it might be that your loadbalancer forwards the request over http instead of https so to wiket it seems like you are accessing over http? - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Dyanmic component's model
Thanks for the reply igor I will experiment... On 9/13/06, Igor Vaynberg [EMAIL PROTECTED] wrote:depends on what you want to do with it, if you want the input to go back into the question you can just do item.add(new TextField(inputText , new PropertyModel(item.getModel(), questionText));-IgorOn 9/12/06, Joshua Lim [EMAIL PROTECTED] wrote: Hi I am trying to create a set of dynamic components that will generate dynamic numbers of input components, but I got stuck in providing a model for it.for e.g. I have TextGroupPanel - which will create a series of TextField RadioGroupPanel - which will generate a Grid type of Radio buttons.. etc ...Generating it is not a problem, I have a problem though with providing the models for each (dynamic numnber) of Text/Radio components I know I'll probably need a hashMap to handle that, but not sure of the best approach so that this component can be reuseable...any suggestion would be most welcomed/** Text Group **/public class TextGroupPanel extends WidgetPanel public TextGroupPanel(String id, final IQuestion question) { super(id, question); add(new Label(questionText, question.getText())); // a list of children question List questions = question.getQuestions(); add(new ListView(questions, questions) {@Overrideprotected void populateItem(ListItem item) { IQuestion question = (IQuestion) item.getModelObject(); item.add(new Label(question, question.getText())); item.add(new TextField(inputText , newModel()));} }); }/** Radio Group as a Grid **/ public class RadioGroupPanel extends WidgetPanel public RadioGroupPanel(String id, IQuestion question) { super(id, question); // add the question (group) add(new Label(questionText, question.getText())); final List choices = question.getChoices(); List questions = question.getQuestions(); // add Choices Text add(new RefreshingView(choiceTexts) {@Overrideprotected Iterator getItemModels(){ return new ModelIteratorAdapter( choices.iterator()) { @Override protected IModel model(Object object) { return new Model((Serializable)object); } }; }@Overrideprotected void populateItem(Item item){ IChoice choice = (IChoice) item.getModelObject(); item.add(new Label(choiceText, choice.getText()));} }); // add rows of Question and Choices add(new ListView(questions, questions) { @Overrideprotected void populateItem(ListItem item){ // question for this row IQuestion aQuestion = (IQuestion)item.getModelObject(); item.add(new Label(question, aQuestion.getText())); // choices for this row RadioGroup radioGroup = new RadioGroup(choicesGroup, newModel()); item.add(radioGroup); // adds radio into radio group radioGroup.add(new RefreshingView(choices) { @Override protected Iterator getItemModels() { return new ModelIteratorAdapter(choices.iterator()) { @Overrideprotected IModel model(Object object){ return new Model((Serializable)object); } }; } @Override protected void populateItem(Item item) { item.add(new Radio(choice, item.getModel())); } });} }); } -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Dyanmic component's model
Hi I am trying to create a set of dynamic components that will generate dynamic numbers of input components, but I got stuck in providing a model for it.for e.g. I have TextGroupPanel - which will create a series of TextField RadioGroupPanel - which will generate a Grid type of Radio buttons.. etc ...Generating it is not a problem, I have a problem though with providing the models for each (dynamic numnber) of Text/Radio components I know I'll probably need a hashMap to handle that, but not sure of the best approach so that this component can be reuseable...any suggestion would be most welcomed/** Text Group **/public class TextGroupPanel extends WidgetPanel public TextGroupPanel(String id, final IQuestion question) { super(id, question); add(new Label(questionText, question.getText())); // a list of children question List questions = question.getQuestions(); add(new ListView(questions, questions) {@Overrideprotected void populateItem(ListItem item) { IQuestion question = (IQuestion) item.getModelObject(); item.add(new Label(question, question.getText())); item.add(new TextField(inputText , newModel()));} }); }/** Radio Group as a Grid **/ public class RadioGroupPanel extends WidgetPanel public RadioGroupPanel(String id, IQuestion question) { super(id, question); // add the question (group) add(new Label(questionText, question.getText())); final List choices = question.getChoices(); List questions = question.getQuestions(); // add Choices Text add(new RefreshingView(choiceTexts) {@Overrideprotected Iterator getItemModels(){ return new ModelIteratorAdapter( choices.iterator()) { @Override protected IModel model(Object object) { return new Model((Serializable)object); } }; }@Overrideprotected void populateItem(Item item){ IChoice choice = (IChoice) item.getModelObject(); item.add(new Label(choiceText, choice.getText()));} }); // add rows of Question and Choices add(new ListView(questions, questions) { @Overrideprotected void populateItem(ListItem item){ // question for this row IQuestion aQuestion = (IQuestion)item.getModelObject(); item.add(new Label(question, aQuestion.getText())); // choices for this row RadioGroup radioGroup = new RadioGroup(choicesGroup, newModel()); item.add(radioGroup); // adds radio into radio group radioGroup.add(new RefreshingView(choices) { @Override protected Iterator getItemModels() { return new ModelIteratorAdapter(choices.iterator()) { @Overrideprotected IModel model(Object object){ return new Model((Serializable)object); } }; } @Override protected void populateItem(Item item) { item.add(new Radio(choice, item.getModel())); } });} }); } - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] [wikcet-user] wicket.markup.IMarkup missing in svn
Hi..just checked out wicket 1.2.1 branch... looks like wicket.markup.IMarkup.java is missing ?josh - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] yui slider enquiry
ok I will take a look On 3/29/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Ok, just checked in some improvements. Slider still doesn't work forme however. Joshua, if you are interested, please take a look at whatis in SVN now, and see if you can find what the problem is.Thanks and have fun, EelcoOn 3/28/06, Eelco Hillenius [EMAIL PROTECTED] wrote: I didn't choose for that set implemention because I thought it would be useful to have an insertAt option. Eelco On 3/28/06, Martijn Dashorst [EMAIL PROTECTED] wrote: Use a LinkedHashSet to filter out double entries and keep order. MartijnOn 3/29/06, Eelco Hillenius [EMAIL PROTECTED] wrote:Erm, actually I'm not there yet. I'll check in more in half an hour. Eelco On 3/28/06, Eelco Hillenius [EMAIL PROTECTED] wrote: That was because I used a set to filter double contributions. I changed this to list to guarantee order and added an additional method with an index argument to enable further tweaking if needed. Eelco On 3/28/06, Joshua Lim [EMAIL PROTECTED] wrote:It seems that the slider is loading the *.js in some random order...so YAHOO.js is loaded _after_ dom.js etc...which caused a YAHOO not found add(HeaderContributor.forJavaScript(AbstractYuiPanel.class)); I am not sure but I will attempt to get this going since I need this... 1/ is there a way to force the order in which which .js file is loaded ... Iamtrying to load them manually ...seems too does not gaurantee the order... add(HeaderContributor.forJavaScript(AbstractYuiPanel.class, YAHOO.js));add(HeaderContributor.forJavaScript (AbstractYuiPanel.class, dom.js)); --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Wicket 1.2 is coming! Write Ajax applications without touching _javascript_! -- http://wicketframework.org--- This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] yui slider enquiry
Hi Eelcoyea, I think the slider out of bound is defined by the div in the css. I intend to look into thatthis morning.. and also making it more configurable like being able to define how many intervals,the length etc that kind of thing ... I like your idea of it being able to drop inside a form coupled to a textfield, although I would prefera hidden one and show the value via a label ... would be better... that's what I need for the next project I think is maybe useful to have it independent (of the form) as well for things like color picker kind of stuff. no?I like the yui also, I need more of it though :) the other bits I need are the drag and drop stuff, if you've got ideas, one thing I need is for a drag and drop sortable list and the other a editable div like tiddywiki http://tiddlywiki.com but also dragable...just some thoughts... JoshOn 3/30/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Thanks Joshua. There is still a weird thing: it seems that the slidercan be dragged out of bounds.See http://papernapkin.org/pastebin/app/view/86 How do you plan on using the component? Do you plan on coupling it toa textfield and use that for form submission? I was planning (didn'tget to the implementation yet) to enable it to be just be dropped in aform and behave as a form component (updating its model value on form submits). And of course I was planning to expose the YUI at leastpartly through the Wicket component.Hey, and now that you're on it... you might want to take a look atCalendar too. The component works, though I made no effort yet to build a picker on top of it, but it doesn't cooperate in a formeither, and it is hardly configurable.EelcoOn 3/29/06, Joshua Lim [EMAIL PROTECTED] wrote: Thanks Eelco I have been poking around and manage to get the slider out in the examples, however, it now slides out of the bar :P ... I hope to add more options though... I am new to oss and scm in general so not sure how to apply a patch and don't want to break things. so I am attaching them in this email. hope it can find its way to the right position joshua On 3/29/06, Joshua Lim [EMAIL PROTECTED] wrote: ok I will take a look On 3/29/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Ok, just checked in some improvements. Slider still doesn't work for me however. Joshua, if you are interested, please take a look at what is in SVN now, and see if you can find what the problem is. Thanks and have fun, Eelco On 3/28/06, Eelco Hillenius [EMAIL PROTECTED] wrote:I didn't choose for that set implemention because I thought it would be useful to have an insertAt option. Eelco On 3/28/06, Martijn Dashorst [EMAIL PROTECTED] wrote: Use a LinkedHashSet to filter out double entries and keep order. Martijn On 3/29/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Erm, actually I'm not there yet. I'll check in more in half an hour. Eelco On 3/28/06, Eelco Hillenius [EMAIL PROTECTED] wrote: That was because I used a set to filter double contributions. I changed this to list to guarantee order and added an additional method with an index argument to enable further tweaking if needed. Eelco On 3/28/06, Joshua Lim [EMAIL PROTECTED] wrote: It seems that the slider is loading the *.js in some random order... so YAHOO.js is loaded _after_ dom.js etc...which caused a YAHOO not found add(HeaderContributor.forJavaScript(AbstractYuiPanel.class ));I am not sure but I will attempt to get this going since I need this... 1/ is there a way to force the order in which which .js file is loaded ... I am trying to load them manually ...seems too does not gaurantee the order... add(HeaderContributor.forJavaScript(AbstractYuiPanel.class, YAHOO.js)); add( HeaderContributor.forJavaScript (AbstractYuiPanel.class, dom.js)); --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Wicket 1.2 is coming! Write Ajax applications without touching _javascript_! -- http://wicketframework.org --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory
Re: [Wicket-user] yui slider enquiry
thanks igor, that is very close to what I need, and the insight too into the backing list model... I think that would be useful, I do want another, which will only take 1 single value. perhaps a limit on the list ? basically I am trying to build up more widgets to make answering surveys interesting not so much shopping cart ... so I am looking at things like : 1/ sorting list - drag into order choice 1 to 10 - good to have a backing list 2/ maybe extending (1) to have a choice editable - ala toolman - also backed by a list.3/ multi-targets/draggables - each target having 1 only 1 draggable - so dragging a draggable over a target replaces it instead of adding up ?? still thinking about this one, could be used for matching question. JoshuaOn 3/30/06, Igor Vaynberg [EMAIL PROTECTED] wrote: On 3/29/06, Joshua Lim [EMAIL PROTECTED] wrote: and the other a editable div like tiddywiki http://tiddlywiki.com but also dragable... take a look at AjaxEditableLabel, its probably not exactly what you want, but it will give you an idea of how it can be done. there is a good impl of draggable lists here:http://tool-man.org/examples/sorting.html ive been thinking of how drag and drop can work in wicket. my idea was to be able to have a DropTarget WebMarkupContainer whose model is a list, and a Draggable behavior to another component. so after a form submit whether ajax or regular, the DropTarget's model would be set to the list of all value model object's of all Draggables in it. maybe this will help, -Igor
[Wicket-user] yui slider enquiry
HiI would like to use the yui slider bar ... is it still experimental?noticed it in the exmaple app (1.2b2 in there under yui, but not exactly shown on the home page)thanks joshua
Re: [Wicket-user] yui slider enquiry
It seems that the slider is loading the *.js in some random order...so YAHOO.js is loaded _after_ dom.js etc...which caused a YAHOO not foundadd(HeaderContributor.forJavaScript(AbstractYuiPanel.class)); I am not sure but I will attempt to get this going since I need this...1/ is there a way to force the order in which which .js file is loaded ... I amtrying to load them manually ... seems too does not gaurantee the order... add(HeaderContributor.forJavaScript(AbstractYuiPanel.class, YAHOO.js));add(HeaderContributor.forJavaScript(AbstractYuiPanel.class, dom.js)); 2/ I tried first to use wicket:head in the AbstractYuiPanel.html but it doesn't seem to get added into the sub-panel Slider.any help ? Joshua On 3/29/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: May be you can have a look at it and tell us whether you think it isready or not. And in case you find something to improve, we are morethan happy to receive a patch.JuergenOn 3/29/06, Joshua Lim [EMAIL PROTECTED] wrote: Hi I would like to use the yui slider bar ...is it still experimental? noticed it in the exmaple app (1.2b2 in there under yui, but not exactly shown on the home page) thanks joshua---This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] yui slider enquiry
Ok I added them manually and it now loads ok without _javascript_ errors...so that bit is ok... next I think the imgs/*.png shoud be added into resources...On 3/29/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Erm, actually I'm not there yet. I'll check in more in half an hour.EelcoOn 3/28/06, Eelco Hillenius [EMAIL PROTECTED] wrote: That was because I used a set to filter double contributions. I changed this to list to guarantee order and added an additional method with an index argument to enable further tweaking if needed. Eelco On 3/28/06, Joshua Lim [EMAIL PROTECTED] wrote: It seems that the slider is loading the *.js in some random order... so YAHOO.js is loaded _after_ dom.js etc...which caused a YAHOO not found add( HeaderContributor.forJavaScript(AbstractYuiPanel.class)); I am not sure but I will attempt to get this going since I need this... 1/ is there a way to force the order in which which .js file is loaded ... I am trying to load them manually ...seems too does not gaurantee the order... add(HeaderContributor.forJavaScript(AbstractYuiPanel.class, YAHOO.js)); add( HeaderContributor.forJavaScript(AbstractYuiPanel.class, dom.js)); ---This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] OT? Tomcat not removing wicket.jar
I was having this similiar problem, I have a few apps on my isp (kattare incidentally) and I needed to redeploy each one without shutting the whole damn (pardon me) thing down. using the tomcat manager wasn't helping as it did not remove the WEB-INF/lib directory and was causing SEVERE: ClassNotFoundException while loading persisted sessions: java.lang.ClassNotFoundException : wicket.Page$4java.lang.ClassNotFoundException: wicket.Page$4 ...java.net forum suggested turning off the session persistence - here but that didn't work and the WEB-INF/lib was not deleted by tomcat, only shutting it down was I able to remove it on the command line as it is probably locked. another thread also on java.net mentioned something about setting anti-jar locking and anti-resource locking in the contect.xml for Tomcat which I thought might solve the problemso now, when I package my war file I include the META-INF/context.xml which when I cp onto the webapp dir deploys nicely without complaining... Context path=/myApp docBase=myApp reloadable=true unpackWAR=true override=true antiJARLocking=true antiResourceLocaking=true Manager className=org.apache.catalina.session.PersistentManager saveOnRestart=false //Contextn.b . according to context.xml doc on apache there are side effects to on jsp - but heck, I'm using wicket ! Is this the right way to go? I am using wicket1.1 and tomcat 5.5 JoshOn 8/26/05, Igor Vaynberg [EMAIL PROTECTED] wrote:This isnt just a development-time problem. This also happens when you are deploying a new version of your app, and if it's a hosted tomcat server youare screwed.-Igor
Re: [Wicket-user] OT? Tomcat not removing wicket.jar
typo - antiResourceLocking=trueOn 3/7/06, Joshua Lim [EMAIL PROTECTED] wrote:I was having this similiar problem, I have a few apps on my isp (kattare incidentally) and I needed to redeploy each one without shutting the whole damn (pardon me) thing down. using the tomcat manager wasn't helping as it did not remove the WEB-INF/lib directory and was causing SEVERE: ClassNotFoundException while loading persisted sessions: java.lang.ClassNotFoundException : wicket.Page$4java.lang.ClassNotFoundException: wicket.Page$4 ...java.net forum suggested turning off the session persistence - here but that didn't work and the WEB-INF/lib was not deleted by tomcat, only shutting it down was I able to remove it on the command line as it is probably locked. another thread also on java.net mentioned something about setting anti-jar locking and anti-resource locking in the contect.xml for Tomcat which I thought might solve the problemso now, when I package my war file I include the META-INF/context.xml which when I cp onto the webapp dir deploys nicely without complaining... Context path=/myApp docBase=myApp reloadable=true unpackWAR=true override=true antiJARLocking=true antiResourceLocaking=true Manager className=org.apache.catalina.session.PersistentManager saveOnRestart=false //Contextn.b . according to context.xml doc on apache there are side effects to on jsp - but heck, I'm using wicket ! Is this the right way to go? I am using wicket1.1 and tomcat 5.5 Josh On 8/26/05, Igor Vaynberg [EMAIL PROTECTED] wrote:This isnt just a development-time problem. This also happens when you are deploying a new version of your app, and if it's a hosted tomcat server youare screwed.-Igor
Re: [Wicket-user] VOTE
+1 1. Give me the constructor change and the Java 5 functionality in one pass (Wicket 2.0)
[Wicket-user] body onLoad=... in Panel not added without wicket:head
Not sure if this is a intended .. but I was trying to get my panel to contribute to the body onload... tag. saw that it is supported through the mailing list. However, for my panel, if I didn't have wicket:head in myPanel.html, the body would not be added... is this normal? Josh
Re: [Wicket-user] Using POJO as Model - is this right?
thanks ... should have thought of that! :) On 12/23/05, Maurice Marrink [EMAIL PROTECTED] wrote: You could always use a different model (containing just the fileuploadobject) for the fileupload and the compoundmodel for the rest of theform. then in the onsubmit you could get both models set the blob onyour pojo and save it. this way you can keep your pojo clean. Maurice2005/12/23, Joshua Lim [EMAIL PROTECTED]: Hi I have a question about using POJO as Models in wicket. BTW, love the framework ! I am using Hibernate 3 and Wicket 1.1 I've got 2 POJO : Contestant -1:n- Design. I have a page which lets a Contestant uploads a bunch of images and each of these images are stored as Blobs in a database. Each image is a Design Here's the 'problem' I am setting Contestant object as the CompoundPropertyModel, which is ok. and everything is populated. I use a ListView to handle set of Designs within the form, and I have FileUploadField to handle image file uploads. The FileUploadField, however, will populate a FileUpload object which I had to add into my POJO, and onSubmit, I then populate my Bolb field... Question: Although it works, does this sound right in using my POJO as a Model? becuase I really don't like the idea of having to modify my POJO just to accommodate the wicket page, becasue I might have another page which may require a checkbox for e.g. for some other reasonand I have to modify my Pojo again? I would like to have a Pojo that is not dependant on the wicket page ... is this right? any advise? Am I using it correctly? Thanks Joshua ---This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?Stop!Download the new AJAX search engine that makes searching your log files as easy as surfing theweb.DOWNLOAD SPLUNK!http://ads.osdn.com/?ad_idv37alloc_id865opclick___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Using POJO as Model - is this right?
Hi I have a question about using POJO as Models in wicket. BTW, love the framework ! I am using Hibernate 3 and Wicket 1.1 I've got 2 POJO : Contestant -1:n- Design. I have a page which lets a Contestant uploads a bunch of images and each of these images are stored as Blobs in a database. Each image is a Design Here's the 'problem' I am setting Contestant object as the CompoundPropertyModel, which is ok. and everything is populated. I use a ListView to handle set of Designs within the form, and I have FileUploadField to handle image file uploads. The FileUploadField, however, will populate a FileUpload object which I had to add into my POJO, and onSubmit, I then populate my Bolb field... Question: Although it works, does this sound right in using my POJO as a Model? becuase I really don't like the idea of having to modify my POJO just to accommodate the wicket page, becasue I might have another page which may require a checkbox for e.g. for some other reasonand I have to modify my Pojo again? I would like to have a Pojo that is not dependant on the wicket page ... is this right? any advise? Am I using it correctly? Thanks Joshua
[Wicket-user] RenderedDynamicImageResource needs refresh?
Hi I am trying to understand dynamic images using wicket 1.1 rc 2. basically i have 2 pages. A login page and a voucher page. - similar to the login example in eicket example. Here's the problem. after loggin in, I present a voucher based on the next page. this voucher is created using RenderedDynamicImageResource rdir = new RenderedDynamicImageResource(WIDTH, HEIGHT) { protected boolean render(Graphics2D graphics) { drawVoucher(graphics, user); return true; } }; where drawVoucher will dynamically read an image and add the user details on the voucher making it personalised. (could have super imposed using Labels but ... went down this track instead...hindsight...) upon loggin in, I get the voucher ok. for the first time. subsequent log ins using a different user on a fresh browser causes the previous user's info to appearSo I thought it was cached and hit the refresh button and true enough, the voucher got updated with the right info. so I tried ... protected void configureResponse() { System.out.println(Configure Response); super.configureResponse(); WebRequestCycle wrc = getWebRequestCycle(); WebResponse wrp = ((WebResponse)getWebRequestCycle().getOriginalResponse()); wrp.setHeader(Cache-Control,no-cache); //HTTP 1.1 wrp.setHeader(Pragma,no-cache); //HTTP 1.0 wrp.setDateHeader (Expires, 0); } but it does not seems to force a refresh on the client browser upon the 2nd login. so I also tried protected void onBeginRequest() { rdir.invalidate(); } and also does not work... Am I doing somthing wrong here ? Joshua
Re: [Wicket-user] RenderedDynamicImageResource needs refresh?
Thanks ! that works I had setCacheable(false) on the wrong resource :) On 10/24/05, Johan Compagner [EMAIL PROTECTED] wrote: i you just need to do rdir.setCacheable(false) you could configure the response for the Resource but i don;t think that is needed when a resource is not cacheable. On 10/24/05, Joshua Lim [EMAIL PROTECTED] wrote: Hi I am trying to understand dynamic images using wicket 1.1 rc 2. basically i have 2 pages. A login page and a voucher page. - similar to the login example in eicket example. Here's the problem. after loggin in, I present a voucher based on the next page. this voucher is created using RenderedDynamicImageResource rdir = new RenderedDynamicImageResource(WIDTH, HEIGHT) { protected boolean render(Graphics2D graphics) { drawVoucher(graphics, user); return true; } }; where drawVoucher will dynamically read an image and add the user details on the voucher making it personalised. (could have super imposed using Labels but ... went down this track instead...hindsight...) upon loggin in, I get the voucher ok. for the first time. subsequent log ins using a different user on a fresh browser causes the previous user's info to appearSo I thought it was cached and hit the refresh button and true enough, the voucher got updated with the right info. so I tried ... protected void configureResponse() { System.out.println(Configure Response); super.configureResponse(); WebRequestCycle wrc = getWebRequestCycle(); WebResponse wrp = ((WebResponse)getWebRequestCycle().getOriginalResponse()); wrp.setHeader(Cache-Control,no-cache); //HTTP 1.1 wrp.setHeader(Pragma,no-cache); //HTTP 1.0 wrp.setDateHeader (Expires, 0); } but it does not seems to force a refresh on the client browser upon the 2nd login. so I also tried protected void onBeginRequest() { rdir.invalidate(); } and also does not work... Am I doing somthing wrong here ? Joshua
[Wicket-user] setHeader on webResponse
Hi I am trying to set http header on one of my WebPage I tried over ridding this method but get a class cast error. can anyone point me to where to go? Thanks Joshua protected void configureResponse() { // super.configureResponse(); System.out.println(getWebRequestCycle().getClass()); getWebRequestCycle().getWebResponse().setHeader(Cache-Control,no-cache); } java.lang.ClassCastException: wicket.protocol.http.WebRequestCycle$1 at wicket.protocol.http.WebRequestCycle.getWebResponse(WebRequestCycle.java:99) at com.vocanic.gtv.voucher.VoucherHome.configureResponse(VoucherHome.java:59) at wicket.Page.onRender(Page.java:782) at wicket.Component.render(Component.java:1160) at wicket.Page.doRender(Page.java:251) at wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:218) at wicket.RequestCycle.respond(RequestCycle.java:869) at wicket.RequestCycle.request(RequestCycle.java:421) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:197)
[Wicket-user] setRenderBody(true) on Link
Hi I am using wicket for a simple app. but I have a few constraints because the web page is to be displayed on a i-mode phone. which has a browser that understands a sub-set of HTML. so it does not understand wicket:id in a tag, does not understand span, does not allow /li etc...and no _javascript_ I was able to generate most of what is needed using wicket and setRenderBody(true) to remove most of the wicket:id. However, can't seem to remove wicket:id on a Link component any suggestions please? thanks Josh
[Wicket-user] Re: setRenderBody(true) on Link
I meant setRenderBodyOnly(true)On 9/28/05, Joshua Lim [EMAIL PROTECTED] wrote: Hi I am using wicket for a simple app. but I have a few constraints because the web page is to be displayed on a i-mode phone. which has a browser that understands a sub-set of HTML. so it does not understand wicket:id in a tag, does not understand span, does not allow /li etc...and no _javascript_ I was able to generate most of what is needed using wicket and setRenderBody(true) to remove most of the wicket: id. However, can't seem to remove wicket:id on a Link component any suggestions please? thanks Josh
[Wicket-user] setSuffix for RadioChoice
Hi I need a radio choice a single row, i.e. I don't want to br that's at the setSuffix. it seems that the only way is to subclass RadioChoice and override getSuffix() ? or is there an easier way which I can achieve radioChoices in a single row. I am trying to generate a table with radio choices, where each row is a record with a radio choice for updating a single field. any help? thanks Josh --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] FieldLabel component
On 7/30/05, Gert Jan Verhoog [EMAIL PROTECTED] wrote: On Jul 30, 2005, at 04:44, Igor Vaynberg wrote: This will create a field label that will turn red when the linked form component has an error. Another good use is to prepand an asterisk to the fieldlabel's label if the linked form component has a requiredvalidator added. I did more or less the same thing the other day. My FieldLabel class does two things: It checks the list of validators attached to the form component (if it's a FormComponent). If the list contains a RequiredValidator, the value required is added to the label's class attribute. If the component has feedback messages, I add error to the label's class attribute. Hi Gert, I am interested in your example, are you able to send me some examples? thanks josh --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] getParent recursively?
I like Igor's method a little better ;) but thanks for the suggestion On 8/17/05, Gili [EMAIL PROTECTED] wrote: heh, that works too. But where's the fun in that? :) Good catch! Gili Igor Vaynberg wrote: Button.getForm().getModel() :) -Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joshua Lim Sent: Tuesday, August 16, 2005 9:26 PM To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] getParent recursively? Hi, I have a question regarding components and getting it's parent. I have a Form which contains a ListView which contains a Button. when a Button is clicked, in order to get the Form's model, I have to do getParent().getParent().getParent().getModelObject() to go from the ListView item (1st getParent) to ListView to Form... is there another way of doing this ? not too sure if I got this right? perhaps a recursive getParent? Josh --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- http://www.desktopbeautifier.com/ --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Form Post to External Site
Hi, I need to do a Form Post out of a Wicket WebPage to a External Location. Basically, I have a WebPage that has a form. I override the onSubmit to do some database updates etc... upon completion, I would like to do a Form Post out along with some information... Could someone point me to how to do this? thanks Josh --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Form Post to External Site
Hi Eelco, yes, currently I have a Page with a Panel containing a Form. on submit, I get the values and update database...(that's the plan) and than I need to do a form post. I am not keen to put the external form in the wicket page... but prefer to build it up dynamically... I like the RedirectPage...I am thinking of extending the RedirectPage to provide Form Post including handling parameters... but not sure that's advisable ... I still grappling with wicket. what is your advise. btw, I put in the new RedirectPage() at the end of my Panel within the onSubmit...it works with FireFox, but goes into an infinite loop in IE6... any ideas? Thanks Josh On 7/19/05, Eelco Hillenius [EMAIL PROTECTED] wrote: So, if I understand you correctly, you need to handle the form submit in Wicket first, and right after that, pass the submit through to an external site? If it can be a GET and you want your form to be embedded in your Wicket page, you could use the Include component (1.1. only at this time, but could be included in 1.0 if people want). You have to construct your parameters yourself though. If you want to do a POST, the pattern is probably similar, but I haven't tried that yet. If you /dont/ want the external form to be embedded in your Wicket page, you should probably do a full redirect (check out RedirectPage for this). Eelco thanks Josh --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] linkomatic - IE6 endless loop
Hi was trying out linkomatic RedirectPage example(last one), and it caused an endless loop in IE, Firefox seems ok... anyone know why? http://www.wicket-library.com/wicket-examples/linkomatic Josh --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Form Post to External Site
I was meaing option 2 :P On 7/19/05, Eelco Hillenius [EMAIL PROTECTED] wrote: Joshua Lim wrote: Hi Eelco, yes, currently I have a Page with a Panel containing a Form. on submit, I get the values and update database...(that's the plan) and than I need to do a form post. I am not keen to put the external form in the wicket page... but prefer to build it up dynamically... I like the RedirectPage...I am thinking of extending the RedirectPage to provide Form Post including handling parameters... but not sure that's advisable ... I still grappling with wicket. what is your advise. btw, I put in the new RedirectPage() at the end of my Panel within the onSubmit...it works with FireFox, but goes into an infinite loop in IE6... any ideas? What do you mean by putting it at the end of your panel? Pages are not really meant for inclusion, so what I meant was to use it like this: ... your form ... protected void onSubmit() { RedirectPage yourPageToRedirectTo = new RedirectPage(); setResponsePage(new RedirectPage(yourPageToRedirectTo)); } that renders the 'redirect' page which immediately redirects to the information you've given. If you look at RedirectPage.html, this: htmlheadmeta wicket:id=redirect http-equiv=refresh content=0; url=app/head/html does the trick. In your case you should either 1.) reconstruct the url you need including the form parameters in case you can live with a GET request, 2.) create a similar construct of RedirectPage, but one that works with a form, or 3.) take the approach Martijn proposed, which is to build your request totally outside of Wicket. As for option 2., I think it would work by creating the page with a form like you would normally do, but include an onload javascript function in the body element, that immediately triggers the form submit, like: body onload = document.myform.submit(); form id=myform ... Eelco Thanks Josh On 7/19/05, Eelco Hillenius [EMAIL PROTECTED] wrote: So, if I understand you correctly, you need to handle the form submit in Wicket first, and right after that, pass the submit through to an external site? If it can be a GET and you want your form to be embedded in your Wicket page, you could use the Include component (1.1. only at this time, but could be included in 1.0 if people want). You have to construct your parameters yourself though. If you want to do a POST, the pattern is probably similar, but I haven't tried that yet. If you /dont/ want the external form to be embedded in your Wicket page, you should probably do a full redirect (check out RedirectPage for this). Eelco thanks Josh --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts