Re: [Wicket-user] Page Expiration when first clicking AJAX
sorry, no. that was not wicket's javascript. Andrew Berman wrote: > > Interesting. I'm only using Wicket for my AJAX, so are you saying that > something is wrong with the Wicket AJAX JavaScript? > > On 5/19/07, Jonathan Locke <[EMAIL PROTECTED]> wrote: >> >> >> >> i discovered in my case that this was related to cookie overflow created >> by some errant javascript on the page doing ajax callbacks. it had >> nothing >> to do with wicket. you might try modifying a build of wicket to diagnose >> your problem. i wound up putting some print statements in wicket where >> sessions are created to dump the jsessionid then finally putting alert >> statements >> in the javascript. >> >> >> Andrew Berman wrote: >> > >> > I haven't found a solution yet. I'm still debugging stuff and have no >> > solution. The problem definitely occurs when the initial redirect >> occurs >> > from /context to /context/YourHomePage. >> > >> > On 5/17/07, Jonathan Locke <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> Did we find a resolution for this yet? We are having the same problem >> in >> >> Wicket 1.3 trunk and I'm about to start investigating. Any definite >> >> information or conclusions (whether complete or not) would be very >> much >> >> appreciated. >> >> >> >> >> >> Andrew Berman wrote: >> >> > >> >> > I am having a strange issue. If I access my site for the first time >> (I >> >> > clear all cookies, sessions, and cache before going to the site), >> the >> >> page >> >> > comes up fine. However, if I click one of the AJAX links, I get a >> page >> >> > expired error. Any thoughts why this is happening? I see it create >> a >> >> new >> >> > session and the cookie, but it looks like the Ajax link is not valid >> >> for >> >> > some reason. I am using Wicket 1.2.6. Any thoughts? >> >> > >> >> > Thanks for any help, >> >> > >> >> > Andrew >> >> > >> >> > >> >> >> - >> >> > 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/Page-Expiration-when-first-clicking-AJAX-tf3729176.html#a10669922 >> >> 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/Page-Expiration-when-first-clicking-AJAX-tf3729176.html#a10700976 >> 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/Page-Expiration-when-first-clicking-AJAX-tf3729176.html#a10701576 Sent from the Wicket -
Re: [Wicket-user] Page Expiration when first clicking AJAX
Interesting. I'm only using Wicket for my AJAX, so are you saying that something is wrong with the Wicket AJAX JavaScript? On 5/19/07, Jonathan Locke <[EMAIL PROTECTED]> wrote: i discovered in my case that this was related to cookie overflow created by some errant javascript on the page doing ajax callbacks. it had nothing to do with wicket. you might try modifying a build of wicket to diagnose your problem. i wound up putting some print statements in wicket where sessions are created to dump the jsessionid then finally putting alert statements in the javascript. Andrew Berman wrote: > > I haven't found a solution yet. I'm still debugging stuff and have no > solution. The problem definitely occurs when the initial redirect occurs > from /context to /context/YourHomePage. > > On 5/17/07, Jonathan Locke <[EMAIL PROTECTED]> wrote: >> >> >> >> Did we find a resolution for this yet? We are having the same problem in >> Wicket 1.3 trunk and I'm about to start investigating. Any definite >> information or conclusions (whether complete or not) would be very much >> appreciated. >> >> >> Andrew Berman wrote: >> > >> > I am having a strange issue. If I access my site for the first time (I >> > clear all cookies, sessions, and cache before going to the site), the >> page >> > comes up fine. However, if I click one of the AJAX links, I get a page >> > expired error. Any thoughts why this is happening? I see it create a >> new >> > session and the cookie, but it looks like the Ajax link is not valid >> for >> > some reason. I am using Wicket 1.2.6. Any thoughts? >> > >> > Thanks for any help, >> > >> > Andrew >> > >> > >> - >> > 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/Page-Expiration-when-first-clicking-AJAX-tf3729176.html#a10669922 >> 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/Page-Expiration-when-first-clicking-AJAX-tf3729176.html#a10700976 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] Page Expiration when first clicking AJAX
i discovered in my case that this was related to cookie overflow created by some errant javascript on the page doing ajax callbacks. it had nothing to do with wicket. you might try modifying a build of wicket to diagnose your problem. i wound up putting some print statements in wicket where sessions are created to dump the jsessionid then finally putting alert statements in the javascript. Andrew Berman wrote: > > I haven't found a solution yet. I'm still debugging stuff and have no > solution. The problem definitely occurs when the initial redirect occurs > from /context to /context/YourHomePage. > > On 5/17/07, Jonathan Locke <[EMAIL PROTECTED]> wrote: >> >> >> >> Did we find a resolution for this yet? We are having the same problem in >> Wicket 1.3 trunk and I'm about to start investigating. Any definite >> information or conclusions (whether complete or not) would be very much >> appreciated. >> >> >> Andrew Berman wrote: >> > >> > I am having a strange issue. If I access my site for the first time (I >> > clear all cookies, sessions, and cache before going to the site), the >> page >> > comes up fine. However, if I click one of the AJAX links, I get a page >> > expired error. Any thoughts why this is happening? I see it create a >> new >> > session and the cookie, but it looks like the Ajax link is not valid >> for >> > some reason. I am using Wicket 1.2.6. Any thoughts? >> > >> > Thanks for any help, >> > >> > Andrew >> > >> > >> - >> > 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/Page-Expiration-when-first-clicking-AJAX-tf3729176.html#a10669922 >> 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/Page-Expiration-when-first-clicking-AJAX-tf3729176.html#a10700976 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] Page Expiration when first clicking AJAX
I haven't found a solution yet. I'm still debugging stuff and have no solution. The problem definitely occurs when the initial redirect occurs from /context to /context/YourHomePage. On 5/17/07, Jonathan Locke <[EMAIL PROTECTED]> wrote: Did we find a resolution for this yet? We are having the same problem in Wicket 1.3 trunk and I'm about to start investigating. Any definite information or conclusions (whether complete or not) would be very much appreciated. Andrew Berman wrote: > > I am having a strange issue. If I access my site for the first time (I > clear all cookies, sessions, and cache before going to the site), the page > comes up fine. However, if I click one of the AJAX links, I get a page > expired error. Any thoughts why this is happening? I see it create a new > session and the cookie, but it looks like the Ajax link is not valid for > some reason. I am using Wicket 1.2.6. Any thoughts? > > Thanks for any help, > > Andrew > > - > 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/Page-Expiration-when-first-clicking-AJAX-tf3729176.html#a10669922 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] Updating formComponents on round trip
Yes Igor, i tried, right in this example , I have added getForm().process(); , but nothing happend. :-( Kubino igor.vaynberg wrote: > > have you tried: > > onselectionchanged() { form.process(); } ? > > -igor > > > On 5/18/07, kubino <[EMAIL PROTECTED]> wrote: >> >> >> I made a functional code, so everyone can test it. What I want is that, >> when >> I click on radio button to automatically update textfields according to >> their model. I do NOT want to use method textField.setModelValue(String >> d) >> in onSelectionChanged method... >> >> Thanks for help. >> >> >> ///html >> >> >> >> >> >> >> >> >> >> >> >> >> >> > wicket:id="sys_radio" /> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> // Wicket page >> >> >> import java.io.Serializable; >> import java.util.Arrays; >> import java.util.List; >> >> import wicket.markup.html.basic.Label; >> import wicket.markup.html.form.Form; >> import wicket.markup.html.form.Radio; >> import wicket.markup.html.form.RadioGroup; >> import wicket.markup.html.form.TextField; >> import wicket.markup.html.list.ListItem; >> import wicket.markup.html.list.ListView; >> import wicket.model.PropertyModel; >> >> >> public class TestPage extends WebPage { >> >> >> private List systems = Arrays.asList(new >> SystemM("aa","aa"),new >> SystemM("bb","bb"),new SystemM("cc","cc")); >> >> >> private SystemM selectedSystem; >> >> >> public TestPage() { >> >> Form myForm = new Form("myForm"); >> >> selectedSystem = systems.get(0); >> >> >> RadioGroup radioGroup = new RadioGroup("radioGroup",new >> PropertyModel(this,"selectedSystem")) { >> >> >> @Override >> protected boolean wantOnSelectionChangedNotifications() { >> return true; >> } >> >> @Override >> protected void onModelChanging() { >> >> } >> >> @Override >> protected void onSelectionChanged(Object arg0) { >> >> } >> }; >> >> ListView table = new ListView("table", systems) { >> >> >> @Override >> protected void populateItem(final ListItem item) { >> >> final SystemM model = (SystemM)item.getModelObject(); >> >> item.add(new Radio("sys_radio",item.getModel())); >> item.add(new Label("sys_name",model.getName())); >> item.add(new Label("sys_desc",model.getDesc())); >> >> } >> }; >> >> >> TextField nameTextField = new TextField("textFieldName",new >> PropertyModel(selectedSystem,"name")); >> TextField descTextField = new TextField("textFieldDesc",new >> PropertyModel(selectedSystem,"desc")); >> >> radioGroup.add(table); >> >> myForm.add(radioGroup); >> >> myForm.add(nameTextField); >> myForm.add(descTextField); >> >> add(myForm); >> >> } >> >> public class SystemM implements Serializable{ >> >> private String name; >> private String desc; >> >> /** >> * >> */ >> public SystemM(String n, String d) { >> >> this.name = n; >> this.desc = d; >> >> } >> >> public String getName() { >> return name; >> } >> public void setName(String name) { >> this.name = name; >> } >> public String getDesc() { >> return desc; >> } >> public void setDesc(String desc) { >> this.desc = desc; >> } >> >> >> >> } >> >> public SystemM getSelectedSystem() { >> return selectedSystem; >> } >> >> public void setSelectedSystem(SystemM selectedSystem) { >> this.selectedSystem = selectedSystem; >> } >> >> >> } >> -- >> View this message in context: >> http://www.nabble.com/Updating-formComponents-on-round-trip-tf3770603.html#a10677724 >> 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/Updating-formComponents-on-round-trip-tf3770603.html#a10700783 Sent from the Wicket - User
Re: [Wicket-user] Gricket: The Love-Child of Grails and Wicket
Hey, Eelco I love Java, it is perfect for writing complex business logic because of all the tools and so forth, but as I said if it was just the web frameworks that were the problem the frameworks like Rails and Grails would be ignored. I'm sure Wicket on its own is wondefully simple, but add persistence, dependency injecion, job scheduling, messaging systems etc. into the mix and it becomes horribly over complicated. With Groovy code I typically write 60% less code than in Java. Does that mean Java is a bad language? Hell no, its great, for somethings. I use Groovy when it makes sense and Java when it makes sense, its a highly effective blend. I'm not saying ditch Java, but writing everything in it is pure folly. That is why I hope the Grails+Wicket integration takes off as it providers Wicket users with this flexibility and Grails users with some of the nicer component features of Wicket. This is no framework war. As for the complex app you're building now, I'm totally with you I've been part of many projects where we've built complex Java systems. Sometimes you need to ask yourself though where is that complexity coming from? In often cases it is the language and implementing certain tasks in a nother language (like Groovy) makes a hell of a lot sense. And btw Grails is not just for CRUD. Cheers Graeme Eelco Hillenius wrote: > >> Haha, sorry but it seems some of the Wicket community are still living in >> Lala land with regards to believing everything deployed to production has >> to >> be written in Java. It is 2007, the realisation that Java is not the best >> language for web apps has hit home for years now. > > Oh, I can't disagree more. Java 'proved' (note that that's a very > subjective to start with) to be not the best language for web apps > because most of the 'Java' frameworks around are more focussed on > inventing declarative programming models, usually based on XML or > annotations than on enabling users to simply program Java like Wicket > made it it's goal. > > I'm sure Grails/ Groovy can give you an edge in cases, but at the same > time, I'm absolutely convinced it many cases such an edge would only > be short term (quick delivery of basic functionality). Take the > project I'm working on now. It's a complex beast, with hardly any real > straightforward CRUD functionality. The ability to refactor without > problems, navigate code quickly, reuse similar pieces of functionality > as custom components etc etc makes using Java very valuable. > > I don't want to get into yet another framework battle, certainly not > on our own mailing list, but imo, there are good cases for both, and a > level of integration would be more than welcome, especially because > users get to choose what they want while still being able to switch > from one to the other/ or do parts of their project in one and parts > in the other, and have a better level of reuse. > >> A good language for >> writing a lot of your business logic yes, but your business logic and web >> logic are two different things and if you're mixing them you're already >> making mistakes right there. > > You can just write n layers in Java and keep em separated. I don't see > any problems with that. > > Cheers, > > 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/Gricket%3A-The-Love-Child-of-Grails-and-Wicket-tf3772804.html#a10699110 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] Incorrect DateField Validation in datetime package (1.3)
Could that be the same as described in: https://issues.apache.org/jira/browse/WICKET-522 Martin mchack schrieb: > Appears to be incorrect behavior with validation in DateField (DateTextField) > component. I am using the data picker, which works fine, but if I enter bad > data manually into the input field it appears that there are problems. > > Using default short format. > > Random text input is ignored - would have expected a validation issue to be > reported. > > Entering incorrect data such as month = 1000 truncates month to 10 and works > fine, but still feel like it should be invalid input. > > Entering incorrect data such as month = 55 or day = 40 results in uncaught > exception. > > Thanks > - 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] Did anybody try wicket+sso?
Did anybody try wicket+sso? such as opensso. integrate SSO with wicket's authentication. who could give me any suggestion? thanks -- View this message in context: http://www.nabble.com/Did-anybody-try-wicket%2Bsso--tf3782863.html#a10698019 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] new pagemaps in same window
you are correct that this does not occur with secondlevelcachesessionstore. Johan Compagner wrote: > > but in 1.3 the auto detect window name is disabled by default if you use > secondlevel cache > so why is that check working for you anyway? > > But it really does that when you open a complete new browser? > > johan > > > On 5/19/07, Jonathan Locke <[EMAIL PROTECTED]> wrote: >> >> >> >> somehow i'm getting a new pagemap every time i go to our home page (not >> with >> browser refresh, with a link). it's probably my fault, but does anyone >> have >> any idea how that might happen? i thought window.name was being used to >> detect whether a window is new and that a page map would only be created >> in >> a new window. somehow that check is not working out. >> >>jon >> >> -- >> View this message in context: >> http://www.nabble.com/new-pagemaps-in-same-window-tf3781334.html#a10693797 >> 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/new-pagemaps-in-same-window-tf3781334.html#a10697738 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] I see a lot of questions and talk about DropDownChoice and IChoiceRenderer.
On Friday 18 May 2007 4:27 pm, Johan Compagner escreveu: > a converter and choice renderer is not really the same thing > But i guess if you give a list of strings to the DDC that it displays > then the converter can convert the selected object to that string and back > again > that should also work yes. Cool. Actually, what I do is load objects from the db using ibatis and give those to the DDC and the converter pulls the strings to display. Works really well. > > the choicerender is if you don't want to do that upfront but just have > a list of Objects/Pojos and the selected object is also that Object/Pojo > then you the toString is done for you > > johan > > On 5/18/07, Thomas R. Corbin <[EMAIL PROTECTED]> wrote: > > I had started to use a ChoiceRenderer when I started with wicket, but > > quickly > > found that registering a converter was easier for me. > > > > Is that an unusual way of dealing with DDC? > > > > - > > 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] new pagemaps in same window
i am using the normal httpsessionstore. it really creates new page maps in the same browser window. Johan Compagner wrote: > > but in 1.3 the auto detect window name is disabled by default if you use > secondlevel cache > so why is that check working for you anyway? > > But it really does that when you open a complete new browser? > > johan > > > On 5/19/07, Jonathan Locke <[EMAIL PROTECTED]> wrote: >> >> >> >> somehow i'm getting a new pagemap every time i go to our home page (not >> with >> browser refresh, with a link). it's probably my fault, but does anyone >> have >> any idea how that might happen? i thought window.name was being used to >> detect whether a window is new and that a page map would only be created >> in >> a new window. somehow that check is not working out. >> >>jon >> >> -- >> View this message in context: >> http://www.nabble.com/new-pagemaps-in-same-window-tf3781334.html#a10693797 >> 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/new-pagemaps-in-same-window-tf3781334.html#a10697674 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] Howto override method org.apache.wicket.Application.newCrypt() ?
I'm using an OS which does not ship with JCE installed by default. I've installed both the Sun JCE (some time ago) and now bouncycastle.. I'm fairly certainly the Sun JCE is installed correctly as before I installed it I wasn't able to use 1024 bit certs with another program. In any event.. I'm not sure how to override newCrypt and hoping maybe someone can share an example.. Thanks ./C --- // ?? @Override public ICrypt newCrypt() { try { ICrypt crypt = (ICrypt) cryptClass.newInstance(); crypt.setKey(encryptionKey); return crypt; --- My debug log.. 2007-05-19 16:17:21,806 DEBUG org.apache.wicket.util.crypt.ClassCryptFactory - exception: java.lang.InstantiationException: org.apache.wicket.util.crypt.ICrypt at java.lang.Class.newInstance0(Class.java:335) at java.lang.Class.newInstance(Class.java:303) at org.apache.wicket.util.crypt.ClassCryptFactory.newCrypt(ClassCryptFactory.java:66) at org.apache.wicket.markup.html.form.PasswordTextField.getModelValue(PasswordTextField.java:95) at org.apache.wicket.markup.html.form.FormComponent.getValue(FormComponent.java:492) at org.apache.wicket.markup.html.form.TextField.onComponentTag(TextField.java:101) at org.apache.wicket.markup.html.form.PasswordTextField.onComponentTag(PasswordTextField.java:154) at org.apache.wicket.Component.renderComponent(Component.java:1827) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1278) at org.apache.wicket.Component.render(Component.java:1685) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1163) at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1333) at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1268) at org.apache.wicket.markup.html.form.Form.onComponentTagBody(Form.java:865) at org.apache.wicket.Component.renderComponent(Component.java:1858) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1278) at org.apache.wicket.markup.html.form.Form.onRender(Form.java:951) at org.apache.wicket.Component.render(Component.java:1685) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1163) at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1333) at org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:621) at org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:107) at org.apache.wicket.Component.renderComponent(Component.java:1858) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1278) at org.apache.wicket.Component.render(Component.java:1685) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1163) at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1333) at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1268) at org.apache.wicket.Component.renderComponent(Component.java:1858) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1278) at org.apache.wicket.Component.render(Component.java:1685) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1163) at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1295) at org.apache.wicket.Page.onRender(Page.java:1295) at org.apache.wicket.Component.render(Component.java:1685) at org.apache.wicket.Page.renderPage(Page.java:868) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:223) at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:103) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1011) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1073) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1142) at org.apache.wicket.RequestCycle.request(RequestCycle.java:490) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:248) at org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:126) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:445) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:356) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:226) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:627) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141) at org.mortbay.jetty.Server.handle(Server.java:265) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:430) at org.mortbay.jetty.HttpConnection
[Wicket-user] Incorrect DateField Validation in datetime package (1.3)
Appears to be incorrect behavior with validation in DateField (DateTextField) component. I am using the data picker, which works fine, but if I enter bad data manually into the input field it appears that there are problems. Using default short format. Random text input is ignored - would have expected a validation issue to be reported. Entering incorrect data such as month = 1000 truncates month to 10 and works fine, but still feel like it should be invalid input. Entering incorrect data such as month = 55 or day = 40 results in uncaught exception. Thanks -- View this message in context: http://www.nabble.com/Incorrect-DateField-Validation-in-datetime-package-%281.3%29-tf3782382.html#a10696694 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] Any objections to removing any reference to 2.0
> If I find the time I plan to strip 2.0 from existence unless someone > objects.. Feedback welcomed. That would be great! Cheers, 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] Gricket: The Love-Child of Grails and Wicket
emm, actually the Song is "Come out and Play" and was on the 94'SMASH album ;) _ Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Igor Vaynberg Gesendet: Freitag, 18. Mai 2007 21:12 An: wicket-user@lists.sourceforge.net Betreff: Re: [Wicket-user] Gricket: The Love-Child of Grails and Wicket you gotta keep'em separated <-- i love that song! didnt know you were an offspring fan eelco! -igor On 5/18/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > Haha, sorry but it seems some of the Wicket community are still living in > Lala land with regards to believing everything deployed to production has to > be written in Java. It is 2007, the realisation that Java is not the best > language for web apps has hit home for years now. Oh, I can't disagree more. Java 'proved' (note that that's a very subjective to start with) to be not the best language for web apps because most of the 'Java' frameworks around are more focussed on inventing declarative programming models, usually based on XML or annotations than on enabling users to simply program Java like Wicket made it it's goal. I'm sure Grails/ Groovy can give you an edge in cases, but at the same time, I'm absolutely convinced it many cases such an edge would only be short term (quick delivery of basic functionality). Take the project I'm working on now. It's a complex beast, with hardly any real straightforward CRUD functionality. The ability to refactor without problems, navigate code quickly, reuse similar pieces of functionality as custom components etc etc makes using Java very valuable. I don't want to get into yet another framework battle, certainly not on our own mailing list, but imo, there are good cases for both, and a level of integration would be more than welcome, especially because users get to choose what they want while still being able to switch from one to the other/ or do parts of their project in one and parts in the other, and have a better level of reuse. > A good language for > writing a lot of your business logic yes, but your business logic and web > logic are two different things and if you're mixing them you're already > making mistakes right there. You can just write n layers in Java and keep em separated. I don't see any problems with that. Cheers, 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] Any objections to removing any reference to 2.0
Some pages still mention 2.0 eg. http://cwiki.apache.org/WICKET/best-practices-and-gotchas.html Other pages while there is a big note on the reference link, the landing page may still contain erroneous references to 2.0. a) Delete all mention of 2.0 in the wiki/docs b. Any 2.0 reference/doc page strip of content and put a BIG note at the top to see the current development Example: http://cwiki.apache.org/WICKET/migrate-20.html If I find the time I plan to strip 2.0 from existence unless someone objects.. Feedback welcomed. ./C - 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] Process Page After Redirect
> I have a Template class that each page extends. In the template it does... > > boolean isSecure = ((WebRequest) > WebRequestCycle.get().getRequest()).getHttpServletRequest().isSecure(); > String url = http://www.google-analytics.com/urchin.js; > if (isSecure) { > url = https://ssl.google-analytics.com/urchin.js; > } > ...to determine which url to use. > > I'm using > http://cwiki.apache.org/WICKET/how-to-switch-to-ssl-mode.html > to switch to SSL mode. > > The problem I'm having is when I'm not in SSL mode and I click on a link to > a page that should be in SSL. I think the following happens: > 1. The requested page get processed > 2. The redirect to SSL mode occurs to the page that is has just been > processed. > > I need it to process the page AFTER the redirect occurs so when I call > httpRequest.isSecure() it will return true. > > How can I achieve this? Would restart RestartResponseException help here? Maybe I don't understand your problem? 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] new pagemaps in same window
but in 1.3 the auto detect window name is disabled by default if you use secondlevel cache so why is that check working for you anyway? But it really does that when you open a complete new browser? johan On 5/19/07, Jonathan Locke <[EMAIL PROTECTED]> wrote: somehow i'm getting a new pagemap every time i go to our home page (not with browser refresh, with a link). it's probably my fault, but does anyone have any idea how that might happen? i thought window.name was being used to detect whether a window is new and that a page map would only be created in a new window. somehow that check is not working out. jon -- View this message in context: http://www.nabble.com/new-pagemaps-in-same-window-tf3781334.html#a10693797 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] continueToOriginalDestination / RestartResponseAtInterceptPageException with page parameters
Ok sure, but I need some help. Usually the part of the request that is missing is taken from (when not using a framework) javax.servlet.http.HttpServletRequest.getQueryString() But PageMap is depending on org.apache.wicket.Request which seems unaware of http, but it does hold an instance of org.apache.wicket.request.RequestParameters. Now I guess I can do two things, change Request to hold an abstract for of getQueryString and implement it like the getUrl() method in all the implementing classes, or convert the RequestParameter object to a string. In the latter case I hope there is some utility class/method I can use. Can any of you wicket guys please assist me on this? Wouter On 5/18/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > yes please make a case (with a patch is even better :) ) > > > On 5/18/07, Wouter de Vaal <[EMAIL PROTECTED]> wrote: > > You are correct about the interpretation of my problem. I've run the > debugger > > and interceptContinuationURL = cycle.getRequest().getURL(); does not > > store the ?x=y part. > > > > Shall I file a bug report? > > > > Wouter > > > > On 5/18/07, Johan Compagner <[EMAIL PROTECTED] > wrote: > > > ahh but that is an url that doesn't have query args like ?xx=yy > > > > > > you only have a path that should work yes > > > > > > johan > > > > > > > > > > > > On 5/18/07, Thomas R. Corbin < [EMAIL PROTECTED]> wrote: > > > > On Friday 18 May 2007 8:04 am, Johan Compagner escreveu: > > > > > hmm this could be bug i think, we dont support post params at all > > > > > but get should be but maybe we store only part of the url (only the > > > path) > > > > > > > > i'm not sure that I quite understand the issue, but if my user > > > goes to a url > > > > such as > > > > > > > > > > > > http://myserver.com/myapp/app/queryDialog/variation/oru_edv/billGroup/23 > > > > > > > > and they go through my login page, they still end up at the > right > > > page with > > > > all the page parameters. > > > > > > > > Is that what you meant Wouter? > > > > > > > > In that case, I'm still on the pre-apache-package reorg, but > will > > > upgrade > > > > this weekend. > > > > > > > > > > > > > > can you see what this code in PageMap: > > > > > > > > > > interceptContinuationURL = cycle.getRequest().getURL(); > > > > > > > > > > does return? is getURL() onl returning the part withoug query > params? > > > > > > > > > > johan > > > > > > > > > > On 5/18/07, Wouter de Vaal < [EMAIL PROTECTED]> wrote: > > > > > > Hi, > > > > > > > > > > > > I'm using the login/authorization strategy taken from the wicket > > > > > > examples, which is > > > > > > throw new > RestartResponseAtInterceptPageException( > > > SignIn.class); > > > > > > > > > > > > in the application class and calling > > > > > > > > > > > > continueToOriginalDestination() > > > > > > > > > > > > in the login page. > > > > > > > > > > > > However when I'm using a bookmarkable page with PageParameters, > the > > > > > > parameters get lost in the process.. > > > > > > > > > > > > Am I missing something, or is this behaviour just not supported? > > > > > > > > > > > > Regards, > > > > > > Wouter > > > > > > > > > > > > > > > > - > > > > > > 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 F