Re: [Wicket-user] RadioGroup Broken(1.2.5+?/when usingwantOnSelectionChangedNotifications)?
done : https://issues.apache.org/jira/browse/WICKET-512 notice the nice number:) -Original Message- From: [EMAIL PROTECTED] on behalf of Eelco Hillenius Sent: Fri 27-04-2007 11:24 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] RadioGroup Broken(1.2.5+?/when usingwantOnSelectionChangedNotifications)? Been busy on the list again. Nino, if you think it's a bug, would you mind opening up a JIRA issue for it? Thanks, Eelco On 4/26/07, Nino Wael [EMAIL PROTECTED] wrote: Hi Something's not right with RadioGroup when using wantOnSelectionChangedNotifications or I am doing something wrong. When the same Radio are selected for the 2nd time, the radio becomes unselected and cannot be selected again until another radio has been selected. However the RadioGroup's model remains the same even though the radio does not appear to be selected. I've created a Quickstart project that showes this behavior. You can get it here: http://www.badongo.com/file/2868077 Im not sure what the normal behavior should be for the radioGroup? Im guessing/expecting that not matter how many times you click on a radio to select it, it should always be selected? Also some would argue that wantOnSelectionChangedNotifications, arent the best name since it tells that you only get notifications when selection changes, however you also get notified if the selection remains the same. A more proper name would be wantSelectionNotifications? Since english arent my primary language I might be somewhat off here, also I guess it will break dependant code, if it were to be renamed :(. BTW: I noticed this behavior when using 1.2.5, but it could also be there before. - 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 winmail.dat- 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] RadioGroup Broken(1.2.5+?/whenusingwantOnSelectionChangedNotifications)?
Igor please answer:) Fra: [EMAIL PROTECTED] på vegne af Nino Wael Sendt: to 26-04-2007 16:01 Til: wicket-user@lists.sourceforge.net; wicket-user@lists.sourceforge.net Emne: Re: [Wicket-user] RadioGroup Broken(1.2.5+?/whenusingwantOnSelectionChangedNotifications)? bump anyone for answer? Fra: [EMAIL PROTECTED] på vegne af Nino Wael Sendt: to 26-04-2007 09:25 Til: wicket-user@lists.sourceforge.net Emne: [Wicket-user] RadioGroup Broken(1.2.5+?/when usingwantOnSelectionChangedNotifications)? Hi Something's not right with RadioGroup when using wantOnSelectionChangedNotifications or I am doing something wrong. When the same Radio are selected for the 2nd time, the radio becomes unselected and cannot be selected again until another radio has been selected. However the RadioGroup's model remains the same even though the radio does not appear to be selected. I've created a Quickstart project that showes this behavior. You can get it here: http://www.badongo.com/file/2868077 Im not sure what the normal behavior should be for the radioGroup? Im guessing/expecting that not matter how many times you click on a radio to select it, it should always be selected? Also some would argue that wantOnSelectionChangedNotifications, arent the best name since it tells that you only get notifications when selection changes, however you also get notified if the selection remains the same. A more proper name would be wantSelectionNotifications? Since english arent my primary language I might be somewhat off here, also I guess it will break dependant code, if it were to be renamed :(. BTW: I noticed this behavior when using 1.2.5, but it could also be there before. - 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 winmail.dat- 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] RadioGroup Broken(1.2.5+?/when usingwantOnSelectionChangedNotifications)?
Ok, no problem:) Fra: [EMAIL PROTECTED] på vegne af Eelco Hillenius Sendt: fr 27-04-2007 11:24 Til: wicket-user@lists.sourceforge.net Emne: Re: [Wicket-user] RadioGroup Broken(1.2.5+?/when usingwantOnSelectionChangedNotifications)? Been busy on the list again. Nino, if you think it's a bug, would you mind opening up a JIRA issue for it? Thanks, Eelco On 4/26/07, Nino Wael [EMAIL PROTECTED] wrote: Hi Something's not right with RadioGroup when using wantOnSelectionChangedNotifications or I am doing something wrong. When the same Radio are selected for the 2nd time, the radio becomes unselected and cannot be selected again until another radio has been selected. However the RadioGroup's model remains the same even though the radio does not appear to be selected. I've created a Quickstart project that showes this behavior. You can get it here: http://www.badongo.com/file/2868077 Im not sure what the normal behavior should be for the radioGroup? Im guessing/expecting that not matter how many times you click on a radio to select it, it should always be selected? Also some would argue that wantOnSelectionChangedNotifications, arent the best name since it tells that you only get notifications when selection changes, however you also get notified if the selection remains the same. A more proper name would be wantSelectionNotifications? Since english arent my primary language I might be somewhat off here, also I guess it will break dependant code, if it were to be renamed :(. BTW: I noticed this behavior when using 1.2.5, but it could also be there before. - 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 winmail.dat- 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] RadioGroup Broken(1.2.5+?/when using wantOnSelectionChangedNotifications)?
Hi Something's not right with RadioGroup when using wantOnSelectionChangedNotifications or I am doing something wrong. When the same Radio are selected for the 2nd time, the radio becomes unselected and cannot be selected again until another radio has been selected. However the RadioGroup's model remains the same even though the radio does not appear to be selected. I've created a Quickstart project that showes this behavior. You can get it here: http://www.badongo.com/file/2868077 Im not sure what the normal behavior should be for the radioGroup? Im guessing/expecting that not matter how many times you click on a radio to select it, it should always be selected? Also some would argue that wantOnSelectionChangedNotifications, arent the best name since it tells that you only get notifications when selection changes, however you also get notified if the selection remains the same. A more proper name would be wantSelectionNotifications? Since english arent my primary language I might be somewhat off here, also I guess it will break dependant code, if it were to be renamed :(. BTW: I noticed this behavior when using 1.2.5, but it could also be there before. - 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] RadioGroup Broken(1.2.5+?/when usingwantOnSelectionChangedNotifications)?
bump anyone for answer? Fra: [EMAIL PROTECTED] på vegne af Nino Wael Sendt: to 26-04-2007 09:25 Til: wicket-user@lists.sourceforge.net Emne: [Wicket-user] RadioGroup Broken(1.2.5+?/when usingwantOnSelectionChangedNotifications)? Hi Something's not right with RadioGroup when using wantOnSelectionChangedNotifications or I am doing something wrong. When the same Radio are selected for the 2nd time, the radio becomes unselected and cannot be selected again until another radio has been selected. However the RadioGroup's model remains the same even though the radio does not appear to be selected. I've created a Quickstart project that showes this behavior. You can get it here: http://www.badongo.com/file/2868077 Im not sure what the normal behavior should be for the radioGroup? Im guessing/expecting that not matter how many times you click on a radio to select it, it should always be selected? Also some would argue that wantOnSelectionChangedNotifications, arent the best name since it tells that you only get notifications when selection changes, however you also get notified if the selection remains the same. A more proper name would be wantSelectionNotifications? Since english arent my primary language I might be somewhat off here, also I guess it will break dependant code, if it were to be renamed :(. BTW: I noticed this behavior when using 1.2.5, but it could also be there before. - 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] Palette with sorted elements
We had to do our own version of the palette. Im not sure if its outdated. But you can find the old source somewhere linked to in this thread: http://www.nabble.com/Palette-add-selected-option-tf2730861.html#a7672169 We also created a version where youselft can sort the items, let me know if you want to see our source.. regards nino Fra: [EMAIL PROTECTED] på vegne af Flavia Paganelli Sendt: ti 03-04-2007 23:32 Til: wicket-user@lists.sourceforge.net Emne: [Wicket-user] Palette with sorted elements Hi! Did anyone have to use a Palette component showing the elements in a sorted way (e.g. using a comparator, or the compareTo() method)? I tried providing a SortedSet to the Palette (a TreeSet), but that doesn't work... I guess the Palette internally uses its own List or something of that kind. Any ideas? Thank you! Flavia - 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 - 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] Radio.getValue?
|ichoicerenderer exists for two reasons. one is to generate an id so that a specific imodel can be picked out of a list of imodels. two so that you can convert model object into some user string to display to the user. NEITHER |of these apply to radio, so radio will not have an ichoicerenderer. I see your point, and am aware that it's just not the logical place to implement it. I guess RadioGroup/checkgroup would be a better place? |no it wouldnt be a better place. |yes, you are not meant to have control over it - it is an implementation detail of that component. Well again correct, radiogroup/checkgroup seems a better place. I might have been a little slow here. |once again, no. the choice renderer simply doesnt apply to these components. Come on, a little better would it be. Since radiogroup contains radios. So it is a kind of container. But in the sense that it arent just possible to implement the change without some changes youre right. And in fact i guess if we change it too much we would just end up with the RadioChoice component. Which already takes an ichoicerenderer. I am using Jmeter, but the whole trouble originates by that data are changeing. And in production it would not make sense for it to remain stable, but some of it are stable and this is what we are wanting to test. Currently we have agreed that we only run one test (orginal we had 15 individual tests) which needs to be recreated / or manipulated with the correct radio id's. Im wondering since no one else seems to have these problems, they have either not used the radio / check components or does not performance test this way? Is this an uncommon way to performance test over time? regards Nino Fra: [EMAIL PROTECTED] på vegne af Igor Vaynberg Sendt: ma 02-04-2007 20:13 Til: wicket-user@lists.sourceforge.net Emne: Re: [Wicket-user] Radio.getValue? On 4/2/07, Nino Wael [EMAIL PROTECTED] wrote: |ichoicerenderer exists for two reasons. one is to generate an id so that a specific imodel can be picked out of a list of imodels. two so that you can convert model object into some user string to display to the user. NEITHER |of these apply to radio, so radio will not have an ichoicerenderer. I see your point, and am aware that it's just not the logical place to implement it. I guess RadioGroup/checkgroup would be a better place? no it wouldnt be a better place. |yes, you are not meant to have control over it - it is an implementation detail of that component. Well again correct, radiogroup/checkgroup seems a better place. I might have been a little slow here. once again, no. the choice renderer simply doesnt apply to these components. perhaps what you should work on is running jmeter, or whatever you use, over a stable dataset. the way these components work are deterministic - so same test over same data should produce same html -igor - 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] Radio.getValue?
We also can test without trouble, as long as the underlying data does not change. I guess this depends on how the application are built. But if you have something to add, we have created an entry on the wiki please feel free to add stuff to it. http://cwiki.apache.org/WICKET/wicket-and-jmeter.html regards Nino Fra: [EMAIL PROTECTED] på vegne af Peter Thomas Sendt: ti 03-04-2007 10:43 Til: wicket-user@lists.sourceforge.net Emne: Re: [Wicket-user] Radio.getValue? Hi Nino, Sorry I was not following this thread from the start - but recently I had some success using JMeter for testing a wicket application by using the regular expression support built into JMeter. My test script actually can use the wicket:id values and so far I'm getting good results. Let me know if you need more details. Thanks, Peter. On 4/3/07, Nino Wael [EMAIL PROTECTED] wrote: I am using Jmeter, but the whole trouble originates by that data are changeing. And in production it would not make sense for it to remain stable, but some of it are stable and this is what we are wanting to test. Currently we have agreed that we only run one test (orginal we had 15 individual tests) which needs to be recreated / or manipulated with the correct radio id's. Im wondering since no one else seems to have these problems, they have either not used the radio / check components or does not performance test this way? Is this an uncommon way to performance test over time? regards Nino - 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] Radio.getValue?
Before wicket processing or after? the after processing you can see here: prod.jobindsats.dk a user case could be: 1. select starthjælp from the left menu(this brings you to our wicket application in the middle frame) 2. select databank radio 3. select the Tilbagefald radio 4. press the submit button called næste There are some further steps, but this should make you see what the trouble are with the radios, by selecting the tilbagefald radio you also submit the page(this populates the info field), after the submit of the page then the radios gets new numbers. I also have the jMeter testplan if you want to see it? Hmm, it might be easier if I just took a look at your script? Also I dont want you to put in too much work on this(theres no need for it, since customer has accepted to rebuild the test plan each time). regards Nino Fra: [EMAIL PROTECTED] på vegne af Peter Thomas Sendt: ti 03-04-2007 11:11 Til: wicket-user@lists.sourceforge.net Emne: Re: [Wicket-user] Radio.getValue? Ok, once I manage to get something on the wiki (hopefully soon), I'll notify the mailing list. Meanwhile Nino - if you can send me separately a couple of different samples of HTML of the page you are trying to test, I can have a look to see if I have a solution using JMeter. Thanks, Peter. On 4/3/07, Nino Wael [EMAIL PROTECTED] wrote: We also can test without trouble, as long as the underlying data does not change. I guess this depends on how the application are built. But if you have something to add, we have created an entry on the wiki please feel free to add stuff to it. http://cwiki.apache.org/WICKET/wicket-and-jmeter.html regards Nino Fra: [EMAIL PROTECTED] på vegne af Peter Thomas Sendt: ti 03-04-2007 10:43 Til: wicket-user@lists.sourceforge.net Emne: Re: [Wicket-user] Radio.getValue? Hi Nino, Sorry I was not following this thread from the start - but recently I had some success using JMeter for testing a wicket application by using the regular expression support built into JMeter. My test script actually can use the wicket:id values and so far I'm getting good results. Let me know if you need more details. Thanks, Peter. On 4/3/07, Nino Wael [EMAIL PROTECTED] wrote: I am using Jmeter, but the whole trouble originates by that data are changeing. And in production it would not make sense for it to remain stable, but some of it are stable and this is what we are wanting to test. Currently we have agreed that we only run one test (orginal we had 15 individual tests) which needs to be recreated / or manipulated with the correct radio id's. Im wondering since no one else seems to have these problems, they have either not used the radio / check components or does not performance test this way? Is this an uncommon way to performance test over time? regards Nino - 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 winmail.dat- 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] Radio.getValue?
|ichoicerenderer exists for two reasons. one is to generate an id so that a specific imodel can be picked out of a list of imodels. two so that you can convert model object into some user string to display to the user. NEITHER |of these apply to radio, so radio will not have an ichoicerenderer. I see your point, and am aware that it's just not the logical place to implement it. I guess RadioGroup/checkgroup would be a better place? |yes, you are not meant to have control over it - it is an implementation detail of that component. Well again correct, radiogroup/checkgroup seems a better place. I might have been a little slow here. |why do people keep bring up arguments like this? it is very annoying. is it our fault that you are in this situation? you put yourself there. now you expect us to make our component worse for all our users so that you can get |out of a corner you painted yourself into? Hmmm, I did not mean to accuse you of being the one whose fault it was, I never talked of fault. I just said that it was a little late for our project to implement drastic changes, this has absolutely nothing to do with the wicket devs. Wheter I put myself in the situation or not, I guess can be discussed on a lot of levels. And no I did not see it comming that the radio, werent persistant in it's id's. I never expected you guys to do anything, how could I. Wicket are opensource:) And I did certinly not want or expect of you to make any part of wicket worse, that would be a really bad thing to do. I just wanted to point out that there was something that was less that optimal with radios and checks. And I guessed that we wasnt the only users likely to encounter this. So of course, I would like to see wicket was improved on this point, either by me or somebody else (doesnt really matter who does the work), just that its done. However if this means that we are crapping wicket up in some way, thats a bad turn to take. I think i'll ask the user list how many peeps does performance tests that needs to be stable over a longer periode. Or what peeps in general does to performance test their application. It might just be us who has an strict contract with our customer. -regards Nino Fra: [EMAIL PROTECTED] på vegne af Igor Vaynberg Sendt: sø 01-04-2007 21:15 Til: wicket-user@lists.sourceforge.net Emne: Re: [Wicket-user] Radio.getValue? On 4/1/07, Nino Wael [EMAIL PROTECTED] wrote: I do know that radio and check are directly attached to their imodel. But the imodel does not provide an alternate value for them. I just dont see why not to provide an ichoicerender on these components when providing it for the radiochoice and dropdown choice. ichoicerenderer exists for two reasons. one is to generate an id so that a specific imodel can be picked out of a list of imodels. two so that you can convert model object into some user string to display to the user. NEITHER of these apply to radio, so radio will not have an ichoicerenderer. We have no way of controlling the value of the radios when using this component. yes, you are not meant to have control over it - it is an implementation detail of that component. And since we cant overide the getValue we are either stuck or need to use another component. But that implicates some redesign, and it's a little late for that now on our project at least. why do people keep bring up arguments like this? it is very annoying. is it our fault that you are in this situation? you put yourself there. now you expect us to make our component worse for all our users so that you can get out of a corner you painted yourself into? Hmm this maybe something for wicket-stuff or extensions then.. or for your own code tree. it is easy to copy/paste radio into your own code and remove whatever final is in your way. since your code is imported first on the classpath it will simply override whatever wicket has, given you do not change package name and class name. -igor regards Nino -Original Message- From: [EMAIL PROTECTED] on behalf of Igor Vaynberg Sent: Fri 30-03-2007 17:15 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Radio.getValue? radio and check do not take an ichoicerenderer because they do not need it. they do not traverse over a list of choices and try to look one up, they have the choice attached directly to them via imodel. -igor On 3/30/07, Nino Wael [EMAIL PROTECTED] wrote: That was whý I suggested that we could have another constructor that took an Ichoicerender. There are tons of places in other wicket core components that supply a constructor that takes the ichoicerender. SO I think
[Wicket-user] Performance test, how do you do it?
Hi, based on something in another thread, (http://www.nabble.com/Flexible-markup-with-same-Java-classes-tf3471204.html#a9689979) I was curious on how people does performance test with wicket? On our project we are using JMeter which we use as a http request processor. Which we record requests with and then in order to performance test, Jmeter plays the request and checks if responses are correct. At the same time JMeter times how long responses take etc. Our customer wants to run and rerun the jmeter test over a longer periode, when adding content to the system inorder to check how this impacts performance. I guess this is normal procedure? I've looked at Selenium too, but selenium are more a browser testing tool that arent able to performance test. I had some trouble using Selenium against ajax queries, but you should be able to fix this by calling some alternate functions instead. So this is how we do it, how do you do it? regards Nino - 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] Radio.getValue?
I do know that radio and check are directly attached to their imodel. But the imodel does not provide an alternate value for them. I just dont see why not to provide an ichoicerender on these components when providing it for the radiochoice and dropdown choice. We have no way of controlling the value of the radios when using this component. And since we cant overide the getValue we are either stuck or need to use another component. But that implicates some redesign, and it's a little late for that now on our project at least. Hmm this maybe something for wicket-stuff or extensions then.. regards Nino -Original Message- From: [EMAIL PROTECTED] on behalf of Igor Vaynberg Sent: Fri 30-03-2007 17:15 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Radio.getValue? radio and check do not take an ichoicerenderer because they do not need it. they do not traverse over a list of choices and try to look one up, they have the choice attached directly to them via imodel. -igor On 3/30/07, Nino Wael [EMAIL PROTECTED] wrote: That was whý I suggested that we could have another constructor that took an Ichoicerender. There are tons of places in other wicket core components that supply a constructor that takes the ichoicerender. SO I think it should be ok? I would really like that ichoicerenderer would be supported by every component where it makes sense... Should we move this do the dev list? regards Nino Fra: [EMAIL PROTECTED] på vegne af Igor Vaynberg Sendt: to 29-03-2007 19:11 Til: wicket-user@lists.sourceforge.net Emne: Re: [Wicket-user] Radio.getValue? On 3/29/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Looking at that code, I don't understand why we even need: private short uuid = -1; as there is no code other than in getValue that changes the value, and that value can just be recreated everytime it is needed (as it is nothing more than a call to getPage().getAutoIndex()). Am I missing something here? yes, you are missing the fact that getautoindex() increments the index on every call that is why we cache it in the uuid var. WDYT? personally i dont like making getvalue non-final. this will patch this component for this kind of testing, but what about other components that do not have a stable name? are we going to have to start opening implementation details on all of them just because users want to test it with something static like httpunit? just my 2c. -igor - 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 winmail.dat- 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] Radio.getValue?
That was whý I suggested that we could have another constructor that took an Ichoicerender. There are tons of places in other wicket core components that supply a constructor that takes the ichoicerender. SO I think it should be ok? I would really like that ichoicerenderer would be supported by every component where it makes sense... Should we move this do the dev list? regards Nino Fra: [EMAIL PROTECTED] på vegne af Igor Vaynberg Sendt: to 29-03-2007 19:11 Til: wicket-user@lists.sourceforge.net Emne: Re: [Wicket-user] Radio.getValue? On 3/29/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Looking at that code, I don't understand why we even need: private short uuid = -1; as there is no code other than in getValue that changes the value, and that value can just be recreated everytime it is needed (as it is nothing more than a call to getPage().getAutoIndex()). Am I missing something here? yes, you are missing the fact that getautoindex() increments the index on every call that is why we cache it in the uuid var. WDYT? personally i dont like making getvalue non-final. this will patch this component for this kind of testing, but what about other components that do not have a stable name? are we going to have to start opening implementation details on all of them just because users want to test it with something static like httpunit? just my 2c. -igor winmail.dat- 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] Radio.getValue?
pinging/bump Eelco to answer:) Fra: [EMAIL PROTECTED] på vegne af Nino Wael Sendt: on 28-03-2007 09:54 Til: wicket-user@lists.sourceforge.net Emne: SV: [Wicket-user] Radio.getValue? Ok, let me try to explain another way. If you create a page where you use the radio component. The radios represent various kinds of datasets(OLAP cubes in this case but it does not really matter). On monday the 1. march you record with jmeter your test case(jmeter only records the http requests). In your test case you must select the retirement dataset (which has the value radio5 on the html page). Some time has passed now and you want to run your jmeter test, but on your page some of the datasets has been removed (they wasnt needed or was not allowed to be shown). So now the page no longer contains the radio with the value radio5, and your jmeter test will fail because wicket cant find the radio(another error scenario would be if the radios changed order). So if radio component allowed the use of Ichoicerenderer, it could generate the value based on the id of the ichoicerenderer for the particular dataitem. This would bring better persistance to the radios. At least when testing with jmeter. Did I do a better job explaining?:) Some could argue that it's not issue, but it would be very handy to have the ability to use the ichoicerender with every component that makes use of the value attribute in inputs(havent thought it through though). Because it would make it easier to use tools as jmeter. I would suggest that to avoid nameclashing we could use the components name.getIdValue as value attribute. I am aware that this would bring in a possible vuernability, if duplicate items are inserted and that could cause problems i guess? regards Nino Fra: [EMAIL PROTECTED] på vegne af Eelco Hillenius Sendt: ti 27-03-2007 18:40 Til: wicket-user@lists.sourceforge.net Emne: Re: [Wicket-user] Radio.getValue? I'm afraid I don't really understand your problem Nino. Eelco On 3/26/07, Nino Wael [EMAIL PROTECTED] wrote: Hi We are doing some extensive Jmeter testing, and have run into a technical problem regarding radios, which are the following: If you had 5 radios on a page at a given time, their value would have been radio1, radio2.. radio5. If you then pulled out radio number 4 then the list would be this, radio1, radio2 .. radio4. Now only the one previously called radio4 should not have been selectable. This renders our jmeter test pretty vuernable if some of the stuff no longer are available. Im not sure if I can use a ichoicerenderer, looking at the code from getValue, it's pretty hardcoded am I correct? If possible i'd like to just use the IChoiceRenderer's getId instead, that should fix the problem. regards Nino - 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 - 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 winmail.dat- 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] AJAX modal window (1.2.5)and form
Hmm after some extensive testing. It appears as the radiochoice cant be used with ajax when applying the ajaxformupdating component (the update a called but the radiochoice model arent updated), I am using onchance attribute to trigger ajax are this wrong? It works just fine when using dropdown. Not matter if its on a page or panel.. regards Nino Fra: [EMAIL PROTECTED] på vegne af Nino Wael Sendt: ma 26-03-2007 15:18 Til: wicket-user@lists.sourceforge.net Emne: SV: [Wicket-user] AJAX modal window (1.2.5)and form it's not a nested form: body concept ideas: display questionaire on main page, have popups when adding questions with available question types. form wicket:id=form input type=submit wicket:id=addQuestion / /form div wicket:id=modalquestionpopup/div div wicket:id=selectedradionone/div /body form tag are closed before the popup tag(modalquestionpopup). I'll try creating a page instead? regards Nino -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] på vegne af Matej Knopp Sendt: ma 26-03-2007 14:37 Til: wicket-user@lists.sourceforge.net Emne: Re: [Wicket-user] AJAX modal window (1.2.5)and form If you have nested forms it will fail. Nested forms are not supported in wicket 1.2. If you need separate form in modal window in 1.2, the safest bet is to use a page inside modal window. -Matej On 3/26/07, Nino Wael [EMAIL PROTECTED] wrote: Hi I have a AJAX modal window wich contains a form. In the form there a an radiochoice that has an ajax formcomponentupdatingbehavior. Now the updating behavior are trigered but the model of the radiochoice aren't being updated. Also on the basepage where you can trigger the modal window, I also have a form. Not sure if this should make anything fail? snip of the code from the panel thats used in the modal window: public QuestionSelectorPanel(String id, final IModel selectedQuestion, final ModalWindow modalQuestionPop, final Label label) { super(id); Form form = new Form(form); final RadioChoice questionRadio = new RadioChoice(questions, selectedQuestion, Question.getTypes()); questionRadio.setOutputMarkupId(true); questionRadio.add(new AjaxFormComponentUpdatingBehavior(onchange) { protected void onUpdate(AjaxRequestTarget target) { System.out.print(selected value should print here!: + selectedQuestion.toString()); // below are working, label prints out foobar // label.setModelObject(foobar!); target.addComponent(label); modalQuestionPop.close(target); } }); add(form); form.add(questionRadio); } snip of the basecode: final ModalWindow modalQuestionPop = new ModalWindow( modalquestionpopup); add(modalQuestionPop); Label label = new Label(selectedradio, selectedQuestion); label.setOutputMarkupId(true); modalQuestionPop.setOutputMarkupId(true); modalQuestionPop.setTitle(Please select a Question type); modalQuestionPop.setContent(new QuestionSelectorPanel(modalQuestionPop .getContentId(), selectedQuestion, modalQuestionPop, label)); Form form = new Form(form); AjaxSubmitButton addQuestion = new AjaxSubmitButton(addQuestion, form) { protected void onSubmit(wicket.ajax.AjaxRequestTarget arg0, Form arg1) { modalQuestionPop.show(arg0); }; }; form.add(addQuestion); add(form); add(label); regards Nino - 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 - Take Surveys. Earn
Re: [Wicket-user] AJAX modal window (1.2.5)and form
heheh obviously i am using onchange and not onchance:) Fra: [EMAIL PROTECTED] på vegne af Nino Wael Sendt: to 29-03-2007 13:42 Til: wicket-user@lists.sourceforge.net; wicket-user@lists.sourceforge.net Emne: Re: [Wicket-user] AJAX modal window (1.2.5)and form Hmm after some extensive testing. It appears as the radiochoice cant be used with ajax when applying the ajaxformupdating component (the update a called but the radiochoice model arent updated), I am using onchance attribute to trigger ajax are this wrong? It works just fine when using dropdown. Not matter if its on a page or panel.. regards Nino Fra: [EMAIL PROTECTED] på vegne af Nino Wael Sendt: ma 26-03-2007 15:18 Til: wicket-user@lists.sourceforge.net Emne: SV: [Wicket-user] AJAX modal window (1.2.5)and form it's not a nested form: body concept ideas: display questionaire on main page, have popups when adding questions with available question types. form wicket:id=form input type=submit wicket:id=addQuestion / /form div wicket:id=modalquestionpopup/div div wicket:id=selectedradionone/div /body form tag are closed before the popup tag(modalquestionpopup). I'll try creating a page instead? regards Nino -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] på vegne af Matej Knopp Sendt: ma 26-03-2007 14:37 Til: wicket-user@lists.sourceforge.net Emne: Re: [Wicket-user] AJAX modal window (1.2.5)and form If you have nested forms it will fail. Nested forms are not supported in wicket 1.2. If you need separate form in modal window in 1.2, the safest bet is to use a page inside modal window. -Matej On 3/26/07, Nino Wael [EMAIL PROTECTED] wrote: Hi I have a AJAX modal window wich contains a form. In the form there a an radiochoice that has an ajax formcomponentupdatingbehavior. Now the updating behavior are trigered but the model of the radiochoice aren't being updated. Also on the basepage where you can trigger the modal window, I also have a form. Not sure if this should make anything fail? snip of the code from the panel thats used in the modal window: public QuestionSelectorPanel(String id, final IModel selectedQuestion, final ModalWindow modalQuestionPop, final Label label) { super(id); Form form = new Form(form); final RadioChoice questionRadio = new RadioChoice(questions, selectedQuestion, Question.getTypes()); questionRadio.setOutputMarkupId(true); questionRadio.add(new AjaxFormComponentUpdatingBehavior(onchange) { protected void onUpdate(AjaxRequestTarget target) { System.out.print(selected value should print here!: + selectedQuestion.toString()); // below are working, label prints out foobar // label.setModelObject(foobar!); target.addComponent(label); modalQuestionPop.close(target); } }); add(form); form.add(questionRadio); } snip of the basecode: final ModalWindow modalQuestionPop = new ModalWindow( modalquestionpopup); add(modalQuestionPop); Label label = new Label(selectedradio, selectedQuestion); label.setOutputMarkupId(true); modalQuestionPop.setOutputMarkupId(true); modalQuestionPop.setTitle(Please select a Question type); modalQuestionPop.setContent(new QuestionSelectorPanel(modalQuestionPop .getContentId(), selectedQuestion, modalQuestionPop, label)); Form form = new Form(form); AjaxSubmitButton addQuestion = new AjaxSubmitButton(addQuestion, form) { protected void onSubmit(wicket.ajax.AjaxRequestTarget arg0, Form arg1) { modalQuestionPop.show(arg0); }; }; form.add(addQuestion); add(form); add(label); regards Nino - 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
Re: [Wicket-user] Radio.getValue?
Ok, let me try to explain another way. If you create a page where you use the radio component. The radios represent various kinds of datasets(OLAP cubes in this case but it does not really matter). On monday the 1. march you record with jmeter your test case(jmeter only records the http requests). In your test case you must select the retirement dataset (which has the value radio5 on the html page). Some time has passed now and you want to run your jmeter test, but on your page some of the datasets has been removed (they wasnt needed or was not allowed to be shown). So now the page no longer contains the radio with the value radio5, and your jmeter test will fail because wicket cant find the radio(another error scenario would be if the radios changed order). So if radio component allowed the use of Ichoicerenderer, it could generate the value based on the id of the ichoicerenderer for the particular dataitem. This would bring better persistance to the radios. At least when testing with jmeter. Did I do a better job explaining?:) Some could argue that it's not issue, but it would be very handy to have the ability to use the ichoicerender with every component that makes use of the value attribute in inputs(havent thought it through though). Because it would make it easier to use tools as jmeter. I would suggest that to avoid nameclashing we could use the components name.getIdValue as value attribute. I am aware that this would bring in a possible vuernability, if duplicate items are inserted and that could cause problems i guess? regards Nino Fra: [EMAIL PROTECTED] på vegne af Eelco Hillenius Sendt: ti 27-03-2007 18:40 Til: wicket-user@lists.sourceforge.net Emne: Re: [Wicket-user] Radio.getValue? I'm afraid I don't really understand your problem Nino. Eelco On 3/26/07, Nino Wael [EMAIL PROTECTED] wrote: Hi We are doing some extensive Jmeter testing, and have run into a technical problem regarding radios, which are the following: If you had 5 radios on a page at a given time, their value would have been radio1, radio2.. radio5. If you then pulled out radio number 4 then the list would be this, radio1, radio2 .. radio4. Now only the one previously called radio4 should not have been selectable. This renders our jmeter test pretty vuernable if some of the stuff no longer are available. Im not sure if I can use a ichoicerenderer, looking at the code from getValue, it's pretty hardcoded am I correct? If possible i'd like to just use the IChoiceRenderer's getId instead, that should fix the problem. regards Nino - 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 - 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 winmail.dat- 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] Radio.getValue?
Hmm I can see that radio are pretty simple on this, no constructors with ichoicerenderer. I guess the only way it can work are if some one creates a patch. I'll findout how bad we want this not to be a problem, if we want it bad. I'll create a fix for it. If I create a fix, could it be patched back into wicket 1.2.4? regards Nino -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] på vegne af Nino Wael Sendt: ti 27-03-2007 08:22 Til: wicket-user@lists.sourceforge.net Emne: Radio.getValue? Hi We are doing some extensive Jmeter testing, and have run into a technical problem regarding radios, which are the following: If you had 5 radios on a page at a given time, their value would have been radio1, radio2.. radio5. If you then pulled out radio number 4 then the list would be this, radio1, radio2 .. radio4. Now only the one previously called radio4 should not have been selectable. This renders our jmeter test pretty vuernable if some of the stuff no longer are available. Im not sure if I can use a ichoicerenderer, looking at the code from getValue, it's pretty hardcoded am I correct? If possible i'd like to just use the IChoiceRenderer's getId instead, that should fix the problem. regards Nino winmail.dat- 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] Japanese does not work inAutocomplete (Firefox/Windows)
Any localized javascript operators in the autocomplete thingy(eg boolean=falsch instead of boolean=0 )? As I remember it only were a problem on IE 5.5. But thats something you could check. regards. -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] på vegne af David Leangen Sendt: ti 27-03-2007 04:49 Til: wicket-user@lists.sourceforge.net Emne: Re: [Wicket-user] Japanese does not work inAutocomplete (Firefox/Windows) Just an update... The problem does not occur on English Windows. It occurred on 3 different machines running Japanese Windows XP. I'm stumped... On Tue, 2007-03-27 at 09:45 +0900, David Leangen wrote: Hello! For some reason, in Firefox under Windows only, Japanese autocomplete does not not work. It works in Firefox on Mac and Linux, and it works on IE in Windows. It's just the Firefox/Windows that causes the problem, and only in Japanese. By does not work, I mean that nothing shows up. Any ideas where we could look? (I don't have a dev environment in Windows set up, so I haven't been able to step through the code in debug mode.) Cheers, David - 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 - 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 winmail.dat- 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] Radio.getValue?
hmm, the same thing applies to checkbox component. -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] på vegne af Nino Wael Sendt: ti 27-03-2007 12:15 Til: wicket-user@lists.sourceforge.net Emne: SV: Radio.getValue? Hmm I can see that radio are pretty simple on this, no constructors with ichoicerenderer. I guess the only way it can work are if some one creates a patch. I'll findout how bad we want this not to be a problem, if we want it bad. I'll create a fix for it. If I create a fix, could it be patched back into wicket 1.2.4? regards Nino -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] på vegne af Nino Wael Sendt: ti 27-03-2007 08:22 Til: wicket-user@lists.sourceforge.net Emne: Radio.getValue? Hi We are doing some extensive Jmeter testing, and have run into a technical problem regarding radios, which are the following: If you had 5 radios on a page at a given time, their value would have been radio1, radio2.. radio5. If you then pulled out radio number 4 then the list would be this, radio1, radio2 .. radio4. Now only the one previously called radio4 should not have been selectable. This renders our jmeter test pretty vuernable if some of the stuff no longer are available. Im not sure if I can use a ichoicerenderer, looking at the code from getValue, it's pretty hardcoded am I correct? If possible i'd like to just use the IChoiceRenderer's getId instead, that should fix the problem. regards Nino winmail.dat- 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
[Wicket-user] getRealPath(wicket 1.2.4) any proper wicket way to this?
Hi Currently we are doing this within our wicket application: getWicketServlet().getServletContext().getRealPath(/); Im wondering if there are a more wicketly kind of approach to this? regards Nino winmail.dat- 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
[Wicket-user] AJAX modal window (1.2.5)and form
Hi I have a AJAX modal window wich contains a form. In the form there a an radiochoice that has an ajax formcomponentupdatingbehavior. Now the updating behavior are trigered but the model of the radiochoice aren't being updated. Also on the basepage where you can trigger the modal window, I also have a form. Not sure if this should make anything fail? snip of the code from the panel thats used in the modal window: public QuestionSelectorPanel(String id, final IModel selectedQuestion, final ModalWindow modalQuestionPop, final Label label) { super(id); Form form = new Form(form); final RadioChoice questionRadio = new RadioChoice(questions, selectedQuestion, Question.getTypes()); questionRadio.setOutputMarkupId(true); questionRadio.add(new AjaxFormComponentUpdatingBehavior(onchange) { protected void onUpdate(AjaxRequestTarget target) { System.out.print(selected value should print here!: + selectedQuestion.toString()); // below are working, label prints out foobar // label.setModelObject(foobar!); target.addComponent(label); modalQuestionPop.close(target); } }); add(form); form.add(questionRadio); } snip of the basecode: final ModalWindow modalQuestionPop = new ModalWindow( modalquestionpopup); add(modalQuestionPop); Label label = new Label(selectedradio, selectedQuestion); label.setOutputMarkupId(true); modalQuestionPop.setOutputMarkupId(true); modalQuestionPop.setTitle(Please select a Question type); modalQuestionPop.setContent(new QuestionSelectorPanel(modalQuestionPop .getContentId(), selectedQuestion, modalQuestionPop, label)); Form form = new Form(form); AjaxSubmitButton addQuestion = new AjaxSubmitButton(addQuestion, form) { protected void onSubmit(wicket.ajax.AjaxRequestTarget arg0, Form arg1) { modalQuestionPop.show(arg0); }; }; form.add(addQuestion); add(form); add(label); regards Nino winmail.dat- 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] AJAX modal window (1.2.5)and form
it's not a nested form: body concept ideas: display questionaire on main page, have popups when adding questions with available question types. form wicket:id=form input type=submit wicket:id=addQuestion / /form div wicket:id=modalquestionpopup/div div wicket:id=selectedradionone/div /body form tag are closed before the popup tag(modalquestionpopup). I'll try creating a page instead? regards Nino -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] på vegne af Matej Knopp Sendt: ma 26-03-2007 14:37 Til: wicket-user@lists.sourceforge.net Emne: Re: [Wicket-user] AJAX modal window (1.2.5)and form If you have nested forms it will fail. Nested forms are not supported in wicket 1.2. If you need separate form in modal window in 1.2, the safest bet is to use a page inside modal window. -Matej On 3/26/07, Nino Wael [EMAIL PROTECTED] wrote: Hi I have a AJAX modal window wich contains a form. In the form there a an radiochoice that has an ajax formcomponentupdatingbehavior. Now the updating behavior are trigered but the model of the radiochoice aren't being updated. Also on the basepage where you can trigger the modal window, I also have a form. Not sure if this should make anything fail? snip of the code from the panel thats used in the modal window: public QuestionSelectorPanel(String id, final IModel selectedQuestion, final ModalWindow modalQuestionPop, final Label label) { super(id); Form form = new Form(form); final RadioChoice questionRadio = new RadioChoice(questions, selectedQuestion, Question.getTypes()); questionRadio.setOutputMarkupId(true); questionRadio.add(new AjaxFormComponentUpdatingBehavior(onchange) { protected void onUpdate(AjaxRequestTarget target) { System.out.print(selected value should print here!: + selectedQuestion.toString()); // below are working, label prints out foobar // label.setModelObject(foobar!); target.addComponent(label); modalQuestionPop.close(target); } }); add(form); form.add(questionRadio); } snip of the basecode: final ModalWindow modalQuestionPop = new ModalWindow( modalquestionpopup); add(modalQuestionPop); Label label = new Label(selectedradio, selectedQuestion); label.setOutputMarkupId(true); modalQuestionPop.setOutputMarkupId(true); modalQuestionPop.setTitle(Please select a Question type); modalQuestionPop.setContent(new QuestionSelectorPanel(modalQuestionPop .getContentId(), selectedQuestion, modalQuestionPop, label)); Form form = new Form(form); AjaxSubmitButton addQuestion = new AjaxSubmitButton(addQuestion, form) { protected void onSubmit(wicket.ajax.AjaxRequestTarget arg0, Form arg1) { modalQuestionPop.show(arg0); }; }; form.add(addQuestion); add(form); add(label); regards Nino - 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 - 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 winmail.dat- 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
Re: [Wicket-user] getRealPath(wicket 1.2.4) any proper wicket wayto this?
Ok. -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] på vegne af Eelco Hillenius Sendt: ma 26-03-2007 17:27 Til: wicket-user@lists.sourceforge.net Emne: Re: [Wicket-user] getRealPath(wicket 1.2.4) any proper wicket wayto this? Nope, that's the way to do it. In 1.3 you can get the servlet context directly from the application object. Eelco On 3/26/07, Nino Wael [EMAIL PROTECTED] wrote: Hi Currently we are doing this within our wicket application: getWicketServlet().getServletContext().getRealPath(/); Im wondering if there are a more wicketly kind of approach to this? regards Nino - 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 - 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 winmail.dat- 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
[Wicket-user] Radio.getValue?
Hi We are doing some extensive Jmeter testing, and have run into a technical problem regarding radios, which are the following: If you had 5 radios on a page at a given time, their value would have been radio1, radio2.. radio5. If you then pulled out radio number 4 then the list would be this, radio1, radio2 .. radio4. Now only the one previously called radio4 should not have been selectable. This renders our jmeter test pretty vuernable if some of the stuff no longer are available. Im not sure if I can use a ichoicerenderer, looking at the code from getValue, it's pretty hardcoded am I correct? If possible i'd like to just use the IChoiceRenderer's getId instead, that should fix the problem. regards Nino winmail.dat- 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] how do I set Ajax time out[wicket 1.2.4]?
Hmm this is really wierd, when testing this against one of our dev machine's these errors does not occur.. It only occurs against our servers. Fra: [EMAIL PROTECTED] på vegne af Nino Wael Sendt: to 15-03-2007 13:56 Til: wicket-user@lists.sourceforge.net Emne: [Wicket-user] how do I set Ajax time out[wicket 1.2.4]? Hi I have some components that uses the ajaxformupdatingbehavior. Some times(1% of 1300 requests) under heavy load(24 concurent users/threads using jmeter) some of them fails to be able to select something in the dropdown thats using the updating behavior. This leads me to think that the ajax updating behavior times out, so how do I increase the duration on ajaxrequests? regards Nino - 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 winmail.dat- 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] Question about Panel
Just create the panel as an anonym class in your page or inner class... Pseudo Snipplet: Webpage extends page { Mypanel panel=new Mypanel(); This.add(panel); } Mypanel extends panel{} As I remember it should work... From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zhang Hailong Sent: 28. februar 2007 10:56 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] Question about Panel Hi all, I found it is inconvenient to create a separate page and class for Panel every time. Sometimes, I just want keep things as simple as possible. For example, I just want to hide some components together, so I put them in a Panel. Is it possible to use Panel like this?Or add this feature in later version?(I'm using 1.2.4) HTML: span wicket:id=myPanel h3 label wicket:id=labelYou believe/label /h3 ul li wicket:id=lines label wicket:id=texttext/label /li /ul /span Java: Panel myPanel = new Panel(myPanel); Label label = new Label(label, test); myPanel.add(label); . Thanks. Regards, Hailong Zhang - 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] Nicer URLs
Just use a mountedurl mountBookmarkablePage(/desiredurl, desiredclass.class); -Nino -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Colman Sent: 28. februar 2007 11:59 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] Nicer URLs Today I hit the critical mass of connections between neurons in my brain required to grasp Wicket and I have to say - Wicket rocks massively! A while back I designed my own *little* component based rendering technology (design stage only thankfully) and Wicket looks just like the one I was designing which is great - I no longer need to implement mine now! It's interesting how similar Wicket is - right down to the inheritance markup - something I regarded as a *must have* feature for mine. Keep up the great work. I have a question: Is it possible to change URLs like: http://myserver.com/helloworld?wicket:bookmarkablePage=:com.sas.av.ui.wi cket.templates.original.LocationPageo=76165 to something like: http://myserver.com/helloworld/LocationPageo=76165 ? Regards. - 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 - 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] Nicer URLs
Oeh an forgot to say that parameters you can just append to the url Short example: http:\\localhost\mywicketapp\myniceurl\paramA\valueA\paramB\valueB -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael Sent: 28. februar 2007 12:02 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Nicer URLs Just use a mountedurl mountBookmarkablePage(/desiredurl, desiredclass.class); -Nino -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Colman Sent: 28. februar 2007 11:59 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] Nicer URLs Today I hit the critical mass of connections between neurons in my brain required to grasp Wicket and I have to say - Wicket rocks massively! A while back I designed my own *little* component based rendering technology (design stage only thankfully) and Wicket looks just like the one I was designing which is great - I no longer need to implement mine now! It's interesting how similar Wicket is - right down to the inheritance markup - something I regarded as a *must have* feature for mine. Keep up the great work. I have a question: Is it possible to change URLs like: http://myserver.com/helloworld?wicket:bookmarkablePage=:com.sas.av.ui.wi cket.templates.original.LocationPageo=76165 to something like: http://myserver.com/helloworld/LocationPageo=76165 ? Regards. - 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 - 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 - 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] Testing Wicket with JMeter
Hmm actually, I've joined the Jmeter users mailing list. But traffic is very low on this one, and I haven't got any replies to my mails, although trying to get people to use the list by replying to their mails but I guess it will take some time. So im not quite sure on howto get in contact with the right people... Their IRC channel is also dead. Regards Nino From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Frank Bille Sent: 22. februar 2007 22:33 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Testing Wicket with JMeter On 2/22/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Did anyone try to get people from JMeter involved? Maybe they can help us sort this out? Nah, I don't believe in this kind of open source collaboration.. ;-) Seriously I guess my excuse is time. It's easy to solve, when you know the solution. Nino is this something you want to do something about? Frank - 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] Navigation between pages
Yes something like that, I guess you could also pop the pages from the page stack. You think that should give problems? Im betting that this technique also are used by the wizard extension..? -regards Nino -Original Message- From: [EMAIL PROTECTED] on behalf of Scott Swank Sent: Wed 21-02-2007 17:48 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Navigation between pages Nino, Wouldn't that leave all of the pages in session? I.e. you expect to have 7 pages in history, but 7 points to 8, which points to 9, etc. Scott On 2/21/07, Nino Wael [EMAIL PROTECTED] wrote: You can also employ an easy way to go back to the previous page by passing the current page to the next page. It's been pretty useful for us. Or even telling the page which page to goto next. Small pseudo snipplet: public class mypage extends WebPage { public mypage(final Page Previous, final Page next, Model model) { on next button: setresponse(next); on previous: setresponse(previous); } Regards Nino -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gohan Sent: 21. februar 2007 09:36 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Navigation between pages Well you could just use setResponsePage(new YourWebPage(..)); Peter Klassen wrote: Hi all, just one more trivial question; ;-) which possibilities do i got to navigate from one Webpage to another after an event is triggered? Thx in advance! Peter -- View this message in context: http://www.nabble.com/Navigation-between-pages-tf3265417.html#a9077111 Sent from the Wicket - User mailing list archive at Nabble.com. - 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 - 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 -- Scott Swank reformed mathematician - 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 - 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] Testing Wicket with JMeter
Please update the wiki with your findings, or if your lucky find the solution for your troubles:): http://cwiki.apache.org/confluence/display/WICKET/Wicket+and+JMeter Hmm, should we make the jmeter faq for wicket more visible? -Original Message- From: [EMAIL PROTECTED] on behalf of Flavia Paganelli Sent: Wed 21-02-2007 17:45 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Testing Wicket with JMeter Hi! I've also been making JMeter tests over Wicket applications. I had to use the HTTP Cookie Manager. But still sometimes I found strange behaviour, like it sometimes stopped working, I recorded the same test again and it worked. The problem always appeared with a submit (POST). Not much help, but... Date: Wed, 14 Feb 2007 10:18:42 +0100 From: Nino Wael [EMAIL PROTECTED] Subject: [Wicket-user] Testing Wicket with JMeter To: wicket-user@lists.sourceforge.net Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii Hi Im trying to test an application with jmeter , I keep getting page expired when testing. I have a cookie manager and save jsessionid, are there any thing else I should be aware of in that direction? The application are rather simple although there are some ajax calls. The test fails on the first submit with a page expired.. Any ideas on what im doing wrong ? Please ask if you need more information... Nino Wael - 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 - 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] Testing Wicket with JMeter
Im unable to confirm this. Im not seeing that jmeter does record in random order. Im using the GUI and a http recording controller and a cookie manager. Although I've also had the trouble that Flavia Paganelli talks about. Recording a jmeter test one day having it work the whole day and then the day after it stops working. regards Nino -Original Message- From: [EMAIL PROTECTED] on behalf of Frank Bille Sent: Thu 22-02-2007 10:22 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Testing Wicket with JMeter I looks = It looks On 2/22/07, Frank Bille [EMAIL PROTECTED] wrote: I looks like JMeter is storing the recorded tests in random order. And this doesn't work with wicket because you have to execute the requests in correct order (hint: look at the id number in the URL). Frank On 2/21/07, Flavia Paganelli [EMAIL PROTECTED] wrote: Hi! I've also been making JMeter tests over Wicket applications. I had to use the HTTP Cookie Manager. But still sometimes I found strange behaviour, like it sometimes stopped working, I recorded the same test again and it worked. The problem always appeared with a submit (POST). Not much help, but... Date: Wed, 14 Feb 2007 10:18:42 +0100 From: Nino Wael [EMAIL PROTECTED] Subject: [Wicket-user] Testing Wicket with JMeter To: wicket-user@lists.sourceforge.net Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii Hi Im trying to test an application with jmeter , I keep getting page expired when testing. I have a cookie manager and save jsessionid, are there any thing else I should be aware of in that direction? The application are rather simple although there are some ajax calls. The test fails on the first submit with a page expired.. Any ideas on what im doing wrong ? Please ask if you need more information... Nino Wael - 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 winmail.dat- 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] Testing Wicket with JMeter
Ahh, I think its the same think. Im also using the proxy which records the http request into the recording controller. Havent checked if the recordings are reorder sometimes, that might also be what has bugged me. Strange though that it keep working for the rest of the day..? Also I've had trouble finding out howto download the generated report (which the wicket application generates, and places in a temporary folder), but thats a strictly jmeter challenge.. regards Nino -Original Message- From: [EMAIL PROTECTED] on behalf of Frank Bille Sent: Thu 22-02-2007 11:17 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Testing Wicket with JMeter On 2/22/07, Nino Wael [EMAIL PROTECTED] wrote: Im unable to confirm this. Im not seeing that jmeter does record in random order. Im using the GUI and a http recording controller and a cookie manager. Not in total random order, but it tends to reorder some requests. I recall that it was normally two requests next to each other that were reordered, but that is enough. I'm using the Proxy to record. Don't know if that is the same as HTTP recording controller. Although I've also had the trouble that Flavia Paganelli talks about. Recording a jmeter test one day having it work the whole day and then the day after it stops working. Hmm I haven't had that problem. After I have rearranged the requests it always works. Can you send me a test which behaves like that? Frank - 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] Testing Wicket with JMeter
With report, I meant the thing the application does in the end are write a report concerning unemployment statistics in Denmark:) But I skimmed through the help for jmeter and it looks like it has a lot of capabilities. Currently we use the aggregate report. But there are some other stuff which are interesting to. Some of the graphs looks like they could be usefull inorder to find out just how much load the system will handle, they have one report where should load times versus concurent threads. BTW, heard that you know Dhamantha, say hi to him for me:) regards Nino -Original Message- From: [EMAIL PROTECTED] on behalf of Frank Bille Sent: Thu 22-02-2007 12:17 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Testing Wicket with JMeter On 2/22/07, Nino Wael [EMAIL PROTECTED] wrote: Also I've had trouble finding out howto download the generated report (which the wicket application generates, and places in a temporary folder), but thats a strictly jmeter challenge.. I do reporting using a spreadsheet or something else based on the raw data which JMeter spits out. JMeters reporting tool is c*** (read: I don't know how to use it ;o)) Frank - 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] Navigation between pages
You can also employ an easy way to go back to the previous page by passing the current page to the next page. It's been pretty useful for us. Or even telling the page which page to goto next. Small pseudo snipplet: public class mypage extends WebPage { public mypage(final Page Previous, final Page next, Model model) { on next button: setresponse(next); on previous: setresponse(previous); } Regards Nino -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gohan Sent: 21. februar 2007 09:36 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Navigation between pages Well you could just use setResponsePage(new YourWebPage(..)); Peter Klassen wrote: Hi all, just one more trivial question; ;-) which possibilities do i got to navigate from one Webpage to another after an event is triggered? Thx in advance! Peter -- View this message in context: http://www.nabble.com/Navigation-between-pages-tf3265417.html#a9077111 Sent from the Wicket - User mailing list archive at Nabble.com. - 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 - 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
[Wicket-user] using texttemplates or some other stuff?
Hi I have some pages that need to use specific stylesheets, per user. How would you suggest I solve this? I've been thinking of using the packagedtexttemplates for this. Im thinking that I could store the custom CSS In either a database or some xml structure, would that be okay because im having some trouble seeing how I can apply the sharedressource decorator to the template, this is 1.2.3 extensions though? I'll take a look at 1.2.4 next week.. Nino Wael - 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] help How to include *.htc files in css files?
Not sure about this but could it be that the container does not serve these files by default? From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Elemer Zagoni Sent: 16. februar 2007 10:51 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] help How to include *.htc files in css files? Hi, I'm new to Wicket (using Wicket ver. 1.2.4). I tried to include an htc file (Internet Explorer behavior file) in a css (to fix incorrect png handling in IE). I did it like below: *img, div {behavior:url(../htc/iepngfix.htc)} the browser cannot find the referenced htc file. The strange thing is that I refer to various images (in the same css) the same way, I mean: background-image:url(../img/background.png), and the images are found. Could anyone tell me why the above technique did not work for *.htc files, and what's the way to do it for *.htc files? Thanx in advance. - 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] AutoCompleteTextField and special characters -solution
A really low guess would be that the web container does not handle the url encoding but it still manages to work some places because of some browser encoding. We also saw the problem you had, if user pressed the back button of the browser(IE6 only). Later we discovered that IE 6 does not cache the page encoding (or caches the wrong one) and defaults to os codepage when back are pressed. Fixing this was done by setting server encoding to the same as the locale we expect the users to have (danish), a real crappy solution but it works. Regards Nino From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Flemming Boller Sent: 14. februar 2007 22:07 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] AutoCompleteTextField and special characters -solution Hi I just wanted to share a little trick with you guys who might also be struggling with this. I have deployed an application on my linux box. Danish characters (æøå) works fine, no problem. Then we add AutoCompleteTextField to make search more nice on one page. And here comes the problem. The autocomplete will not work with æøå, but if I used %F8 instead og ø, it worked. After some hair-pulling I found (thanx to woogle.billen.dk) http://cwiki.apache.org/WW/how-to-support-utf-8-uriencoding-with-tomcat.html which did the job. If somebody can explain why it do work, please do..because æøå works in all other input fields. Regards Flemming - 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] Testing Wicket with JMeter
Hi Frank Hows it going along? Could you define some time?:) Thanks.. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Frank Bille Sent: 14. februar 2007 12:29 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Testing Wicket with JMeter Hey Nino We use JMeter for load testing as well. I can't share our current setup, but we did a test to compare ajax vs. normal page requests. Let me see if I can dig it out and blog about it/write a wiki page. It may take some time :) Frank On 2/14/07, Nino Wael [EMAIL PROTECTED] wrote: Hmm, adding a link parser seemed to solve the problem.. But any how, if anyone has some tips I'd like to hear them::-) From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael Sent: 14. februar 2007 10:19 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] Testing Wicket with JMeter Hi Im trying to test an application with jmeter , I keep getting page expired when testing. I have a cookie manager and save jsessionid, are there any thing else I should be aware of in that direction? The application are rather simple although there are some ajax calls. The test fails on the first submit with a page expired.. Any ideas on what im doing wrong ? Please ask if you need more information... Nino Wael - 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 - 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] Testing Wicket with JMeter
Hmm as someone earlier stated. I too seem to have problems with the pages where wicket appends something like : wicket:interface=:18:: to the url. Now this is strange since we have had this working earlier. Im running wicket 1.2.4, fixing it the the cookie manager does not help. Any tips on how to solve this problem would be really great. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael Sent: 15. februar 2007 13:25 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Testing Wicket with JMeter Hi Frank Hows it going along? Could you define some time?:) Thanks.. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Frank Bille Sent: 14. februar 2007 12:29 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Testing Wicket with JMeter Hey Nino We use JMeter for load testing as well. I can't share our current setup, but we did a test to compare ajax vs. normal page requests. Let me see if I can dig it out and blog about it/write a wiki page. It may take some time :) Frank On 2/14/07, Nino Wael [EMAIL PROTECTED] wrote: Hmm, adding a link parser seemed to solve the problem.. But any how, if anyone has some tips I'd like to hear them::-) From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael Sent: 14. februar 2007 10:19 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] Testing Wicket with JMeter Hi Im trying to test an application with jmeter , I keep getting page expired when testing. I have a cookie manager and save jsessionid, are there any thing else I should be aware of in that direction? The application are rather simple although there are some ajax calls. The test fails on the first submit with a page expired.. Any ideas on what im doing wrong ? Please ask if you need more information... Nino Wael - 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 - 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] Testing Wicket with JMeter
Ahh found the problem!!! I didnt close my browser between Jmeter recordings. So wicket of course incremented the interface:xx: each time, because it was the same session. When a new user the comes and asks for the same page it of course aren't there... hmm I really guess we should write a wiki about testing wicket with jmeter. Not sure if that was what you wanted to do Frank, if you start it I'll try to tie lose ends if any? Regards Nino From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael Sent: 15. februar 2007 14:06 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Testing Wicket with JMeter Hmm as someone earlier stated. I too seem to have problems with the pages where wicket appends something like : wicket:interface=:18:: to the url. Now this is strange since we have had this working earlier. Im running wicket 1.2.4, fixing it the the cookie manager does not help. Any tips on how to solve this problem would be really great. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael Sent: 15. februar 2007 13:25 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Testing Wicket with JMeter Hi Frank Hows it going along? Could you define some time?:) Thanks.. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Frank Bille Sent: 14. februar 2007 12:29 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Testing Wicket with JMeter Hey Nino We use JMeter for load testing as well. I can't share our current setup, but we did a test to compare ajax vs. normal page requests. Let me see if I can dig it out and blog about it/write a wiki page. It may take some time :) Frank On 2/14/07, Nino Wael [EMAIL PROTECTED] wrote: Hmm, adding a link parser seemed to solve the problem.. But any how, if anyone has some tips I'd like to hear them::-) From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael Sent: 14. februar 2007 10:19 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] Testing Wicket with JMeter Hi Im trying to test an application with jmeter , I keep getting page expired when testing. I have a cookie manager and save jsessionid, are there any thing else I should be aware of in that direction? The application are rather simple although there are some ajax calls. The test fails on the first submit with a page expired.. Any ideas on what im doing wrong ? Please ask if you need more information... Nino Wael - 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 - 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
[Wicket-user] Testing Wicket with JMeter
Hi Im trying to test an application with jmeter , I keep getting page expired when testing. I have a cookie manager and save jsessionid, are there any thing else I should be aware of in that direction? The application are rather simple although there are some ajax calls. The test fails on the first submit with a page expired.. Any ideas on what im doing wrong ? Please ask if you need more information... Nino Wael - 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] Testing Wicket with JMeter
Hmm, adding a link parser seemed to solve the problem.. But any how, if anyone has some tips I'd like to hear them::-) From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael Sent: 14. februar 2007 10:19 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] Testing Wicket with JMeter Hi Im trying to test an application with jmeter , I keep getting page expired when testing. I have a cookie manager and save jsessionid, are there any thing else I should be aware of in that direction? The application are rather simple although there are some ajax calls. The test fails on the first submit with a page expired.. Any ideas on what im doing wrong ? Please ask if you need more information... Nino Wael - 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] multiple rendering at same time
Ahh, I think we discussed this earlier. The best solution are to utilize a worker thread (I think) and make the client reload until the thread are done.. I think it's essential for wicket in order to handle session state to use a singleton pattern for request cycles. EG if page A have long loading time page b,c,d will just have to wait. So if you utilize a worker thread then you will be able to cancel the thread and go to the other page if you want to. Regards Nino -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ryan Holmes Sent: 14. februar 2007 10:32 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] multiple rendering at same time It sounds like Scott just wants to allow the user to cancel the slow-loading page by navigating to another page. If his database request happened in a LoadableDetachableModel rather than a page constructor, would that allow a new page to be rendered while the old one is still trying to load data? -Ryan On Feb 13, 2007, at 11:19 PM, Johan Compagner wrote: But what does that lock matter for you page if that page takes a long time? You 'loose' the database connections for all other things anyway. Or does that session have different windows and is displaying more then 1 page at the same time in tabs/frames or browser windows? johan On 2/13/07, Scott Lusebrink [EMAIL PROTECTED] wrote: I've realized that wicket will only render one page at a time, at least it will not run the constructor and onAttach methods of 2 pages at the same time. This is a major bottle neck on applications with large user bases. My app is experiencing problems because database calls are being run in these constructors and onAttach methods. While there maybe a more appropriate place for database calls to be run, and I'd like to hear where these should be, running only 1 page constructor at a time doesn't seem to be efficient. I've found the code that does this. RequestCycle.874 processEventsAndRespond(){ // Use any synchronization lock provided by the target 874 Object lock = getRequestTarget().getLock( this); 875 if (lock != null) 876 { 877 synchronized (lock) 878 { 879 doProcessEventsAndRespond (processor); 880 } 881 } can someone explain if this behavior is intentional, is there a way to stop it? As a result of this behavior while a page is loading, no other page will load until the first has finish. I am using wicket 1.2 Scott -- --- 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 -- --- 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 - 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 - 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] VOTE on wicket:component
I've havent used this feature.. And currently see no use for it. As long as one of the options are done, im happy:) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Locke Sent: 13. februar 2007 17:48 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] VOTE on wicket:component Our Wiki describes the wicket:component tag as follows: wicket:component - Creates a Wicket component on the fly. Needs a class attribute. Though this has been in wicket for a long time, it is still kind of an unsupported feature, as most of the core developers believe that this may lead to misuse of the framework. Before heavily relying on this feature, you might want to contact the user list to discuss alternative strategies. It's unclear to me that anyone is using this. The utility is limited and unimportant. And for anyone creating tooling support for wicket, this will be a tripping point. I can't see any good reason to keep this feature as it is a way to instantiate a component in the markup and might server as the beginning of a bunch of requests to add component configuration or other code logic where we should only have nice clean markup. VOTE: [ ] Delete this unimportant and generally unsupported feature [ ] Keep wicket:component, but define its limits, document it on the wiki as fully supported and commit to supporting it in the future -- View this message in context: http://www.nabble.com/VOTE-on-wicket%3Acomponent-tf3221780.html#a8948008 Sent from the Wicket - User mailing list archive at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - 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] help urgent
Yeah, Im guessing that the web container must have been forced to do the url rewrite from the start. How else should it be able to do such a thing... From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg Sent: 14. februar 2007 07:27 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] help urgent of course if you clear out cookies while in the middle of a session you will get a page expired page. this is because the container can no longer find the session since the cookie is gone. -igor On 2/13/07, ketan gote [EMAIL PROTECTED] wrote: hello friends there is problem in wicket example, ie farme example when this example is run , and clear out cookies, the expire page comes when i click on bottom page link. Then click on expire page link and see the result. -- Regards Ketan D.Gote - 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 - 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] How can I add some javascript to make sure the mainpage will occupy whole browser?
You could write parent.location, and redirect to the page you want to fill the whole page. But im not sure if it's a dirty hack. As Web developer tool bar reports it as access denied in FF. Looking forward to hear about some other ideas.. -Nino -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carfield Yim Sent: 2. februar 2007 10:15 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] How can I add some javascript to make sure the mainpage will occupy whole browser? We have a small version of login windows which exist within an iframe. After the user login we need to make the main page occupy the whole browser windows. How can I add that javascript to onload event of that main page? - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] writing unit tests
Hi I've been wondering about best practices for writing unit tests with wicket? Looking around the source of wicket, I can see that most uses junit. A few places wicket tester are used. Last time I wrote a test I tried writing using jwebunit and http unit (as I remember). I tried using the wicket test framework, but it gave me some complications (might be because I was new to the wicket world). Also this was on wicket 1.x. What do others do? -Nino Wael - 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
[Wicket-user] Wicket user story WAS [RE: [OT] wicket expertise offered / Denmark]
I think you missunderstod my question.. Nevermind.. I've put our userstorie up on the wiki and created a small gallery aswell.. Regards Nino -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius Sent: 25. januar 2007 17:20 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] [OT] wicket expertise offered / Denmark Putting it with the other user stories would work best. Thanks, Eelco On 1/25/07, Nino Wael [EMAIL PROTECTED] wrote: Ok, hmm we actually have a cms that links to our wicket application, to get a full understanding of the application you must view it via the cms, but then it might be unclear when something is wicket and when its not. Wicket application are presented inside the beautiful red circle: http://img180.imageshack.us/my.php?image=frontpage2qt.jpg How should I put it on the wiki? Im planning on both writing a user story and dumping somescreenshots. Regards Nino -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius Sent: 23. januar 2007 17:39 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] [OT] wicket expertise offered / Denmark Good luck. And a user story or some other reference on the application you built with Wicket would be a very welcome addition to the WIKI! Eelco On 1/22/07, Nino Wael [EMAIL PROTECTED] wrote: Hi, I was wondering if any off you guys would be interested in some wicket expertise, located somewhere near Copenhagen-Frederikssund in Denmark. Our current wicket project are almost running out, and the next project im off to do aren't wicket in fact im not even sure it's java basedL So just thought I'll give the user list's peeps a chance of getting a wicket guyJ Regards Nino - 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 - 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 - 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 - 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 - 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] Palette add selected option
Hi Sure did, they are now localised but I guess you could revert them... I guess you also will need to setup some styling, I could provide our if you wanted to have it? Palette html: http://pastebin.ca/329121 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Giltal Sent: 25. januar 2007 14:00 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Palette add selected option Hi Did you change anything in the HTML files also ? If so, please send them too Thanks Nino Wael wrote: Heres the pastebin: Palette: http://pastebin.ca/327900 Recorder: http://pastebin.ca/327901 -regards Nino -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Giltal Sent: 25. januar 2007 11:18 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Palette add selected option Hi Can you please post your Palette and Recorder classes ... Thanks Nino Wael wrote: I think I have something somewhere... As I remember you need to update the recorder component... Below is only meant as a sniplet(notice the recreate model, which now are called from the palette onchange function).. package com.sas.jobindsats.ui.palette.component; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.Iterator; import java.util.List; import wicket.Component; import wicket.markup.html.form.HiddenField; import wicket.markup.html.form.IChoiceRenderer; import wicket.model.AbstractModel; import wicket.util.string.Strings; import com.sas.jobindsats.ui.palette.Palette; /** * Component to keep track of selections on the html side. Also used for * encoding and decoding those selections between html and java. * * @author Igor Vaynberg ( ivaynberg ) */ public class Recorder extends HiddenField { private static final long serialVersionUID = 1L; private static final String[] EMPTY_IDS = new String[0]; private final String seperator = #; /** conviniently maintained array of selected ids */ private String[] ids; /** parent palette object */ private Palette palette; /** * @return parent Palette object */ public Palette getPalette() { return palette; } /** * @param id *component id * @param palette *parent palette object */ public Recorder(String id, Palette palette) { super(id); this.palette = palette; // BELOW ENSURES THAT IDS ARE NOT NULL reCreateModel(); AbstractModel model = new AbstractModel() { public Object getObject(Component component) { StringBuffer modelStringBuffer = new StringBuffer(); for (int i = 0; ids.length i; i++) { modelStringBuffer.append(ids[i]); if (i + 1 ids.length) { modelStringBuffer.append(seperator); } } // set model and update ids array String modelString = modelStringBuffer.toString(); return modelString; } public void setObject(Component component, Object object) { updateIds((String) object); }; }; setModel(model); } protected void onValid() { super.onValid(); updateIds(); } /** * @return iterator over selected choices */ public Iterator getSelectedChoices() { IChoiceRenderer renderer = getPalette().getChoiceRenderer(); if (ids.length == 0) { return Collections.EMPTY_LIST.iterator(); } List selected = new ArrayList(ids.length); for (int i = 0; i ids.length; i++) { Iterator it = getPalette().getChoices().iterator(); while (it.hasNext()) { final Object choice = it.next(); if (renderer.getIdValue(choice, 0).equals(ids[i])) { selected.add(choice); break; } } } return selected.iterator(); } /** * @return iterator over unselected choices */ public Iterator getUnselectedChoices() { IChoiceRenderer renderer = getPalette().getChoiceRenderer(); Collection choices = getPalette().getChoices
Re: [Wicket-user] Palette add selected option
Heres the pastebin: Palette: http://pastebin.ca/327900 Recorder: http://pastebin.ca/327901 -regards Nino -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Giltal Sent: 25. januar 2007 11:18 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Palette add selected option Hi Can you please post your Palette and Recorder classes ... Thanks Nino Wael wrote: I think I have something somewhere... As I remember you need to update the recorder component... Below is only meant as a sniplet(notice the recreate model, which now are called from the palette onchange function).. package com.sas.jobindsats.ui.palette.component; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.Iterator; import java.util.List; import wicket.Component; import wicket.markup.html.form.HiddenField; import wicket.markup.html.form.IChoiceRenderer; import wicket.model.AbstractModel; import wicket.util.string.Strings; import com.sas.jobindsats.ui.palette.Palette; /** * Component to keep track of selections on the html side. Also used for * encoding and decoding those selections between html and java. * * @author Igor Vaynberg ( ivaynberg ) */ public class Recorder extends HiddenField { private static final long serialVersionUID = 1L; private static final String[] EMPTY_IDS = new String[0]; private final String seperator = #; /** conviniently maintained array of selected ids */ private String[] ids; /** parent palette object */ private Palette palette; /** * @return parent Palette object */ public Palette getPalette() { return palette; } /** * @param id *component id * @param palette *parent palette object */ public Recorder(String id, Palette palette) { super(id); this.palette = palette; // BELOW ENSURES THAT IDS ARE NOT NULL reCreateModel(); AbstractModel model = new AbstractModel() { public Object getObject(Component component) { StringBuffer modelStringBuffer = new StringBuffer(); for (int i = 0; ids.length i; i++) { modelStringBuffer.append(ids[i]); if (i + 1 ids.length) { modelStringBuffer.append(seperator); } } // set model and update ids array String modelString = modelStringBuffer.toString(); return modelString; } public void setObject(Component component, Object object) { updateIds((String) object); }; }; setModel(model); } protected void onValid() { super.onValid(); updateIds(); } /** * @return iterator over selected choices */ public Iterator getSelectedChoices() { IChoiceRenderer renderer = getPalette().getChoiceRenderer(); if (ids.length == 0) { return Collections.EMPTY_LIST.iterator(); } List selected = new ArrayList(ids.length); for (int i = 0; i ids.length; i++) { Iterator it = getPalette().getChoices().iterator(); while (it.hasNext()) { final Object choice = it.next(); if (renderer.getIdValue(choice, 0).equals(ids[i])) { selected.add(choice); break; } } } return selected.iterator(); } /** * @return iterator over unselected choices */ public Iterator getUnselectedChoices() { IChoiceRenderer renderer = getPalette().getChoiceRenderer(); Collection choices = getPalette().getChoices(); if (choices.size() - ids.length == 0) { return Collections.EMPTY_LIST.iterator(); } List unselected = new ArrayList(Math .max(1, choices.size() - ids.length)); Iterator it = choices.iterator(); while (it.hasNext()) { final Object choice = it.next(); final String choiceId = renderer.getIdValue(choice, 0
Re: [Wicket-user] [OT] wicket expertise offered / Denmark
Ok, hmm we actually have a cms that links to our wicket application, to get a full understanding of the application you must view it via the cms, but then it might be unclear when something is wicket and when its not. Wicket application are presented inside the beautiful red circle: http://img180.imageshack.us/my.php?image=frontpage2qt.jpg How should I put it on the wiki? Im planning on both writing a user story and dumping somescreenshots. Regards Nino -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius Sent: 23. januar 2007 17:39 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] [OT] wicket expertise offered / Denmark Good luck. And a user story or some other reference on the application you built with Wicket would be a very welcome addition to the WIKI! Eelco On 1/22/07, Nino Wael [EMAIL PROTECTED] wrote: Hi, I was wondering if any off you guys would be interested in some wicket expertise, located somewhere near Copenhagen-Frederikssund in Denmark. Our current wicket project are almost running out, and the next project im off to do aren't wicket in fact im not even sure it's java basedL So just thought I'll give the user list's peeps a chance of getting a wicket guyJ Regards Nino - 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 - 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 - 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] VOTE: IModel and 'model object' name change
Im -1. As most of my models holds objects and not value, I've had no problem understanding this part of the IModel. I must admit that I may be blind to this because im used to the current naming, and have been working with it for so long. I guess the new users would be the ones best to tell us which would be better. But I do think that getModelObject, is very descriptive. It tells that you want to get the object that the model hold. getValue just tells that you want to get a value, which value is it that you are getting is an integer or what? Regards Nino -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Locke Sent: 23. januar 2007 07:51 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] VOTE: IModel and 'model object' name change i'd like us to vote on changing IModel to this in 2.0 (i know it's very late, but please at least read my argument below and think about it for a moment): public interface IModelV extends IDetachable { V getValue(); void setValue(V value); } we would also change getModelObject() to getValue() as well as any other related methods like getModelObjectAsString() to getValueAsString() (or valueAsString() if preferred). there might be naming conflicts somewhere or other problems, but i don't know of any offhand. i realize we're about to enter beta, but i feel like this matters since our users have been telling us for some time now that models are hard to understand and it seems likely that the term 'model object' (as derived from the IModel interface naming) is really not helping anyone to understand things. in fact, that term is actually ambiguous since the object implementing IModel might be informally understood to be the model object (which is not what we mean). i realize this change would affect the book and so eelco and martijn may very understandably not want to deal with that so i won't be upset if this change can't happen. but i'd like to see it if it's possible, so at any rate, i'm +1 and i think igor says he's +0. Jonathan Locke wrote: We did already break the model contract with 1.2/1.3... would get/setObject-get/setValue be a huge hassle? Or am I spacing something here? Jonathan Locke wrote: Made a few more changes. I think it's getting shorter/better. My one regret looking at this documentation is that I wish IModel.get/setObject were actually IModel.get/setValue. Or was there some crazy reason we didn't do this? It would be much easier and more natural to talk about a model's value this way... Jonathan Locke wrote: Nice work. I made a few small changes and rephrased the first paragraph to be even more specific. Maybe it could be tweaked a little more, but I think this sums it up better now: In Wicket, a model holds a value for a component to display and/or edit. How exactly this value is held is determined by a given model's implementation of the wicket.model.IModel interface. This interface decouples a component from the data which forms its value. This in turn decouples the whole Wicket framework from any and all details of model storage, such as the details of a given persistence technology. As far as Wicket itself is concerned, a model is anything that implements the IModel interface, no matter how it might do that. It does feel like this is the best place to show the IModel interface since readers will be wondering what it looks like already. It sounds scarier than it is, so why delay? Loren Rosen wrote: I've saved my rewritten version. (See http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models) Comments by everyone from experts to complete newbies are most welcome. Doubtless there are things that are confusing or flat-out wrong. In addition to rephrasing or rewriting a lot of material, and adding a few things, I excised some details I thought would be distracting for a beginner. Some of this material is, I think, still useful, perhaps in a slightly more advanced More about Models page. igor.vaynberg wrote: go ahead and edit the page...the wiki is versioned i think so we can always roll back. when you are done with the majority let us know and we will review the changes. -igor On 1/15/07, Loren Rosen [EMAIL PROTECTED] wrote: When I first started using Wicket I found the information on models a little hard to follow. So now I'd like to revise the Working with Wicket models wiki page ( http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models ) to improve this. I'd be happy to outline what I think should be improved (though this is a little hard to do in detail short of simply annotating the page) or I can just plunge ahead and draft a revised page. If I do the latter I could potentially post it somewhere else for comment instead of directly replacing the existing page on the wiki. Perhaps we need a 'in draft' part
Re: [Wicket-user] Compound Property model and Palette
If you want to, i'll send you our corrected palette. These lines are especially interesting: From palette: protected void onModelChanged() { super.onModelChanged(); if (recorderComponent != null) { recorderComponent.reCreateModel(); } } From recorder: public void reCreateModel() { // construct the model string based on selection collection IChoiceRenderer renderer = getPalette().getChoiceRenderer(); StringBuffer modelStringBuffer = new StringBuffer(); Iterator selection = ((Collection) getPalette().getModelObject()) .iterator(); while (selection.hasNext()) { modelStringBuffer.append(renderer.getIdValue(selection.next(), 0)); if (selection.hasNext()) { modelStringBuffer.append(seperator); } } // Get values from modelstringbuffer String modelString = modelStringBuffer.toString(); // Only add if not already added String[] local = getValue().split(seperator); for (int i = 0; local.length i; i++) { if (modelString.indexOf(local[i]) == -1) { modelString += seperator + local[i]; } } updateIds(modelString); } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of samyem Sent: 23. januar 2007 06:47 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Compound Property model and Palette Thanks for the note. I've gone ahead with my own implementation of Palette since my last comment to satisfy my particular needs which were beyond the scope of what Wicket provided. igor.vaynberg wrote: there have been many changes to the palette in the recent past, give it another try. -igor On 10/18/06, samyem [EMAIL PROTECTED] wrote: Hi Igor, No that didn't work. You have just added a new constructor signature, but not fixed the real problem. The problem is that when Palette is constructed, it tries to make a new RecorderComponent which reads the model at construction time. Since I am using the 1.x wicket, Palette does not know its parent container at construction time and hence it cannot find the compound property model set on the palette's container. To fix this, you'll have to make the Palette's components read from the model at render time and remove the logic from the constructors, like the other FormComponents are already doing. Please give it another try and I'll check again once you are done. Thanks, Samyem igor.vaynberg wrote: and its patched, let me know if it works. -Igor On 10/14/06, Igor Vaynberg [EMAIL PROTECTED] wrote: it is a limitation, i will patch it soon. -Igor On 10/14/06, samyem [EMAIL PROTECTED] wrote: Since the Palette does not allow you to implicitly use the container's compound model, there does not appear to be an obvious way for Palette to behave the same way as the other FormComponents. So I was wondering if this is a limitation of Palette or it was done this way by design? samyem wrote: Is it possible for a Palette to take the CompoundPropertyModel set on the form? -- View this message in context: http://www.nabble.com/Compound-Property-model-and-Palette-tf2439928.html#a6812005 Sent from the Wicket - User mailing list archive at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context:
[Wicket-user] [wicket 1.2.4] is it possible to use attributeapender on RadioChoice?
Hi I want to append something on my RadioChoice's onclick method. If I just add the attributeappender then the base markup container gets appended: div wicket:id=radiochoice onclick=showlayerinput a/input/div Problem is that I have a sort of div layer that needs to be triggered once the user clicks one of the radio's, and the above code gets triggered if the user manages to click somewhere near the radio but outside the label and the radio itself. In order for it to work I need to add an appender to the input element: div wicket:id=radiochoice input a onclick=showlayer/input/div Then the script will only be run if the radios actually are clicket. Im guessing that I need to use radio and radiogroup for this. But it would be easier for me if I could just append the radio of the radiochoice since we are already using this. -Nino - 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] how to abort the xmlhttprequest
Why do you need to cancel it? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Prashant Khanal Sent: 22. januar 2007 12:09 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] how to abort the xmlhttprequest Hello all, Is there any way to abort the xmlhttprequest in wicket. As XMLHttpRequest object has got abort() method to abort the request. Can it be used in wicket. We won't tell. Get more on shows you hate to love (and love to hate): Yahoo! TV's Guilty Pleasures list. http://tv.yahoo.com/collections/265 - 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 - 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
[Wicket-user] [OT] wicket expertise offered / Denmark
Hi, I was wondering if any off you guys would be interested in some wicket expertise, located somewhere near Copenhagen-Frederikssund in Denmark. Our current wicket project are almost running out, and the next project im off to do aren't wicket in fact im not even sure it's java based:-( So just thought I'll give the user list's peeps a chance of getting a wicket guy:-) Regards Nino - 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
[Wicket-user] contributing to wicket-stuff or ?
Hi I have some components that migth be interesting for others to have. The best one I'll describe below: Currently called dropdownpalette, and it's a combination of Igor's palette(although rewritten a bit, I belive that Igor have fixed the original palette so we should use that one) and a dropdown. The component works by having three models and a list plus a bit more. When you chose something in the dropdown the palettes left side listbox are updated with values and the right side are cleared. Since the update are done with ajax, as base the left listbox are updated but you can specify additional slavecompnents that will be rerendered and updated after selection of a specific dropdown item. I've used reflection on this, you must provide a method, a provider and a parameter list, when creating the component. Snipplet: Creating the parameters: List params = new ArrayList(); Object[] param = new Object[2]; param[0] = IDataItem.class; param[1] = dataitemmodel; params.add(param); param = new Object[2]; param[0] = Object.class; param[1] = object model; params.add(param); param = new Object[2]; param[0] = Cube.class; param[1] = cubemodel; params.add(param); From the above you can see that all parameters actually are Imodels but we also specify which kind of class the object retrieved from the model should be cast into. (pseudo creation of component) DropDownPalette ddp = new DropDownPalette( id, dropdownmodel, dropdown items, paletteleftmodel, paletterightmodel, dbprovider, getAreas, params, slaveComponents) Form.add(ddp); So the string getAreas specify that dbprovide will be called when choosing a new thing in the dropdown, the method are called with the params list as parameters. So I guess this is a pretty generic component, although there are some setup with the parameter list the component should be easy to use, I think at least the reflection part should be useful if you have a bunch of components that almost does the same thing you should be able to create one component that fits all. Regards Nino - 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] Strategy for printable pages
We use css here as well this works very well. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Frank Bille Sent: 22. januar 2007 09:31 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Strategy for printable pages I normally use css for print friendly pages: http://meyerweb.com/eric/articles/webrev/21.html http://alistapart.com/articles/goingtoprint/ Frank On 1/21/07, MClark00 [EMAIL PROTECTED] wrote: Hi, I'd like to support the ability to have a 'Printable Version' link on all pages which make sense to print in my application. My first thought on how to do this would be to have the content of those pages always be a panel, and then I could do something like this, where PrintablePage is a simple empty page which includes one div called contentPanel. Panel contentPanel = new FooPanel(contentPanel); add( contentPanel ); add( new Link(printableVersion){ public void onClick(){ setResponsePage( new PrintablePage(contentPanel) ); } }); I'm still a wicket beginner, so if there is a better strategy for this please let me know. I searched the forum and reference guide and couldn't find one. Thanks! Matt -- View this message in context: http://www.nabble.com/Strategy-for-printable-pages-tf3049342.html#a8476340 Sent from the Wicket - User mailing list archive at Nabble.com. - 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 - 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] Abort Ajax Operation
Hmm i think this circles around the worker thread, we disscussed earlier when talking about a cancel button... Regards Nino From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner Sent: 21. januar 2007 13:11 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Abort Ajax Operation and how do they that then? Do you program in your code something like: while(dosomemorestuff) { // do something more } and then by another request you set that boolean that it needs to be stopped? this does not really work currently because we lock the session, so that nobody have to worry about multi threading. But you can go around it. Do that long request in an own request and poll with ajax when it is finished Or when you want to abort it. make a call to a shared resource... (thats not synched) and then set the flag that it needs to stop. johan On 1/19/07, samyem [EMAIL PROTECTED] wrote: Is there any way to timeout if the ajax operation does not respond by a certain time? I've seen in other ajax frameworks where you can submit multiple ajax requests in parallel, but Wicket does not allow me to do such a thing. Matej Knopp wrote: I don't think this is about AJAX. I think the question concerns the session locking. If you make an ajax request and it takes too long, the session is locked and the application seem to be frozen. I don't think there's much I can do about it. -Matej Igor Vaynberg wrote: tbh im not even sure there is a way to abort the request initiated through xmlhttprequest object. matej is better suited to answer this, he has many more js scars then i. -igor On 11/22/06, *Eelco Hillenius* [EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I don't know if there is anything for that yet. Matej, Igor? If there isn't, you could open a feature request for it. Eelco On 11/21/06, samyem [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: When there is an ajax operation, if the operation takes too long, what would be the best way to abort the operation? The case right now is if there is any long operation as a result of ajax event, the app freezes till the even is over. -- View this message in context: http://www.nabble.com/Abort-Ajax-Operation-tf2681806.html#a7480240 Sent from the Wicket - User mailing list archive at Nabble.com http://Nabble.com. - 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 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto: Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - 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 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - 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 - 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
Re: [Wicket-user] how to abort the xmlhttprequest
Why not use a worker thread? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Prashant Khanal Sent: 23. januar 2007 04:41 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] how to abort the xmlhttprequest Ok the main problem is that i want to include some timeout mechanism for ajax operation and to abort the request in case it takes considerable time. As can be done with XMLHttpRequest using setTimeOut, is there any way that i can achive this in wicket. So the main reason to cancel is for those ajax operation that takes awful long time. --- Nino Wael [EMAIL PROTECTED] wrote: Why do you need to cancel it? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Prashant Khanal Sent: 22. januar 2007 12:09 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] how to abort the xmlhttprequest Hello all, Is there any way to abort the xmlhttprequest in wicket. As XMLHttpRequest object has got abort() method to abort the request. Can it be used in wicket. We won't tell. Get more on shows you hate to love (and love to hate): Yahoo! TV's Guilty Pleasures list. http://tv.yahoo.com/collections/265 - 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 - 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 Don't get soaked. Take a quick peak at the forecast with the Yahoo! Search weather shortcut. http://tools.search.yahoo.com/shortcuts/#loc_weather - 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 - 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] Fwd: FW: UI Framework selection
Scott, you still interested in hiring some wicket expertise? regards Nino winmail.dat- 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] How to pass the parameter without submit
just pass your model when creating the popup window? And use a image button? Fra: [EMAIL PROTECTED] på vegne af (?) ?? ?? Sendt: to 18-01-2007 05:19 Til: wicket-user@lists.sourceforge.net Emne: [Wicket-user] How to pass the parameter without submit Hello. How to pass the parameters other popup window (using bookmarkpagebleLink) without submit. I want to use a click of an image in substitution for a click of an submit button. - 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 - 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] Problem adding css with ajax in Firefox
or have a listview. And switch contents of the collection, to make the correct panel... -Nino Fra: [EMAIL PROTECTED] på vegne af Matej Knopp Sendt: to 18-01-2007 15:43 Til: wicket-user@lists.sourceforge.net Emne: Re: [Wicket-user] Problem adding css with ajax in Firefox This doesn't really make sense. You can't create panel in the onClick handler without placing it anywhere in page. You can either create the panel in advance (and hide it) or create another component and replace it by the new panel panel. -Matej Alberto Bueno wrote: Hello, I'm trying to load css files with ajax, but the problem is that the rendering of the components are executed before the loading of the css files. This problem means that if I have to use styles in the component updated, these styles are not executed, because when the component is rendered, the styles are not loaded yet. This is a very simple example where the css file doesn't work correctly: MyPage.java: public class MyPage extends WebPage { private static final long serialVersionUID = 1L; private Component panel = null; public MyPage(final PageParameters parameters) { super(); panel = new Label(this,panel,panel); panel.setOutputMarkupId(true); AjaxLink link = new AjaxLink(this, link, new Model(link)){ @Override public void onClick(AjaxRequestTarget target) { panel = new MyPanel(TogglePanePage.this,panel); panel.setOutputMarkupId(true); panel.add(HeaderContributor.forCss(this.getClass(), mycss.css)); target.addComponent(panel); } }; } } MyPage.html html body h1Dialogs/h1 div style=padding:20px h4Inline Accordeon/h4 div style=padding-left: 40px; span wicket:id=panel/span a wicket:id=linklink/a /div /div /body /html MyPanel.java public class MyPanel extends Panel { public MyPanel(MarkupContainer parent, String id) { super(parent, id); } private static final long serialVersionUID = 1L; } MyPanel.html html body wicket:panel scriptalert(loaded)/script div class=testtest/div /wicket:panel /body /html mycss.css body { background-color: red; } In the example, the javascript alert() is executed before the background-color has been changed. And the background-color would have to be changed before. I think this is not a correct behavior, because with javascript files work correcty. But javascript files call to the server to load the file and css files don't call to the server. Any suggestion? Thanks - 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 - 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 - 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] Tracking session expire exception
to the use of pagemap to communicate from a pop-up to the current window. I'll try to explain what is happening : I log in my application, I click the link to open the pop-up. When clicking on the link, I'm tring to add a pageparameters to the pop-up to pass the pagemap name. Presently, the log say that about updating pagemap : In the pop up, I add a link to update the main window to display something different. I get the page map from parameters. If page map is null, it is because this session currently does not have a name and by default, the first name used by wicket is : wicket-default. If there is nothing, this is what I enter. Then, when I click this link, it load the page in the correct window. This is what is printed in the log file when updating page map : Then, if I click on normal bookmarkable link, it work, but the first ajaxlink I click will made the session to expire. Nothing can be done, it even didn't pass in the onClick method of the ajaxLink. There is no other error in the log, only loadingthe expired page Marc On 1/15/07, Nino Wael [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hmm, we had to track something similar. Could you describe what happens? Our thing was something that was caused by clearing the pagemap and the same time referencing to the cleared page. Also we have a problem where we loose our session's id. Regards Nino From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marc-Andre Houle Sent: 15. januar 2007 15:35 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] Tracking session expire exception Is there somebody here that had to track in his application why the session expire? I'm in need of some hint on how to efficiently find the damn thing that have made the session expire abruptly. Surely somebody have done something about that! :) Marc - 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 - 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 - 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 - 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] numbervalidator 'java.lang.ClassCastException'
Ding, that worked thanks:) Gotta look a bit closer to the details of the examples... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik van Oosten Sent: 15. januar 2007 16:23 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] numbervalidator 'java.lang.ClassCastException' Try the following: form.add(new TextField(carmillage, carMillage, Integer.class).add(NumberValidator.minimum(0))); Erik. Nino Wael wrote: Hi Im getting an exception when I submit my page(base cause line 205 I numbervalidator). Im a bit puzzled by this since I cant understand why it should happened. Entering a text string triggers the error, but that's the reason why I put in the numbervalidator in the first place.. I've been looking at the forminput from wicket examples and my code appear to be ok: final FormModel formModel = new FormModel(); final PropertyModel carModel = new PropertyModel(formModel, carModel); final PropertyModel carYear = new PropertyModel(formModel, carYear); final PropertyModel carMillage = new PropertyModel(formModel, carMillage); final PropertyModel carFailureText = new PropertyModel(formModel, carFailureText); FormComponentFeedbackBorder feedbackBorder = new FormComponentFeedbackBorder( feedback); add(feedbackBorder); Form form = new Form(theform); feedbackBorder.add(form); form.add(new DropDownChoice(carmodel, carModel, Offline .getCarsFromBrand(Opel))); form.add(new RadioChoice(caryear, carYear, Offline.getCarYears())); form.add(new TextField(carmillage, carMillage).add(NumberValidator .minimum(0))); form.add(new TextArea(carfailuretext, carFailureText) .setRequired(true)); form.add(new Button(btn_submit) { protected void onValid() { CompoundPropertyModel model = new CompoundPropertyModel( formModel); setResponsePage(new ThankYouPage(model)); }; }); } Regards Nino - 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 -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - 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] skandinavian characters encoding lost...
Thanks but I am using tomcat 4.1.18... and the setting does not seem to apply when adding it to coyote: Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true URIEncoding=UTF-8 / -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Juergen Donnerstag Sent: 15. januar 2007 18:02 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] skandinavian characters encoding lost... http://cwiki.apache.org/WW/how-to-support-utf-8-uriencoding-with-tomcat.html Juergen On 1/15/07, Nino Wael [EMAIL PROTECTED] wrote: Actually I also remember asking about this before, hmm... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik van Oosten Sent: 15. januar 2007 15:43 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] skandinavian characters encoding lost... No, that's not it. I vaguely remember that Tomcat needs a setting in its configuration files before it will serve UTF-8 content. Otherwise it will silently convert it to ISO8859-1. Erik. Martijn Dashorst wrote: Perhaps this: http://cwiki.apache.org/WICKET/how-to-change-the-character-encoding.html found through: http://woogle.billen.dk/search/q/tomcat%20encoding Martijn On 1/15/07, Erik van Oosten [EMAIL PROTECTED] wrote: Well according to Johan its only for POSTs that Tomcat can be a problem. I just tried for at least 10 minutes to find a reference to the exact thing Tomcat does wrong, and I am sure it was on the Wicket Wiki at some point, but I can not find it anymore. If someone can find it, or put it back on the Wicket Wiki, that would be great. Cheers, Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - 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 - 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 - 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 - 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] wicket presentation
Because I want the form to be updatet when something new is selected, should I do this another way? Regards Nino -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius Sent: 13. januar 2007 20:45 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] wicket presentation Those dropdowns should be updated without troubles. Why do you need the wantOnSelectionChangedNotifications there? Did you try removing the overrides of these methods? As far as I can see you're not doing anything useful with them. Eelco On 1/12/07, Nino Wael [EMAIL PROTECTED] wrote: To my presentation im doing both a jsp version and a wicket version of a very small applikation (might just be a form or two separate pages with forms), btw would it be an idea to put the presentation with examples up somewhere perhaps the wiki (when im done with it?)? However upon doing this I've stumbled into something I find odd, in the below code the label called model are not updatet when it's model are changed, I got the same problem with the dropdown, I fixed that by calling the dropdown.modelchanged() method. But is it really necessary to call modelchanged? I saw the ajax example which is almost identical to this does not call modelchanged. public class IndexPage extends WebPage { public IndexPage() { FormModel formModel = new FormModel(); final PropertyModel carModel = new PropertyModel(formModel, carModel); final PropertyModel carBrand = new PropertyModel(formModel, carBrand); IModel carsFromBrand = new AbstractReadOnlyModel() { public Object getObject(Component arg0) { String selected = (String) carBrand.getObject(null); if (selected != null) { return Offline.getCarsFromBrand(selected); } return Collections.EMPTY_LIST; } }; add(new Label(brand, carBrand)); add(new Label(model, carModel)); Form form = new Form(theform); add(form); final DropDownChoice ddcCarModel = new DropDownChoice(carmodel, carModel, carsFromBrand) { protected boolean wantOnSelectionChangedNotifications() { return true; } }; DropDownChoice ddcCarbrand = new DropDownChoice(carbrand, carBrand, Offline.getCarBrands()) { protected boolean wantOnSelectionChangedNotifications() { return true; } protected void onSelectionChanged(Object arg0) { // TODO Auto-generated method stub super.onSelectionChanged(arg0); ddcCarModel.modelChanged(); } }; form.add(ddcCarbrand); form.add(ddcCarModel); } } From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael Sent: 4. januar 2007 14:16 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] wicket presentation Hi im doing a wicket presentation for our consultants team, on this first teaser I have about ten minutes. I plan to talk something about markup inheritance(the stuff with panels and borders, which are very nice), and the POJO concept. Also wickets model concept and that you don't have to think about the tedious tasks like printing html and setting the correct radio to be selected. I guess that part will be a big eye opener for some of themJ Which features should I show? The crowd will maximum have knowledge of struts or simple jsp pages. Regards Nino - 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 - Take Surveys. Earn Cash. Influence
Re: [Wicket-user] ComponentModel
Hmm this does not difference, still not working.. Heres the markup before processing: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xml:lang=da lang=da head titlethis is my Wicket page/title /head body This is my Wicket page. br Thank you for the information br div wicket:id=carModel / br div wicket:id=carYear / br div wicket:id=carMillage / br div wicket:id=carFailureText / /body /html And heres it after: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xml:lang=da lang=da head titlethis is my Wicket page/title script type=text/javascript !--/*--![CDATA[/*!--*/ if (window.name=='') { window.location=/wicketDemo/wicketdemo?wicket:interface=:2::INewBrowserWindowListener; } /*--]]*//script /head body This is my Wicket page. br Thank you for the information br div wicket:id=carModel/ br div wicket:id=carYear/ br div wicket:id=carMillage/ br div wicket:id=carFailureText/ /body /html -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martijn Dashorst Sent: 15. januar 2007 11:00 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] ComponentModel You use the compound property model wrong: public ThankYouPage(FormModel filledForm) { setModel(new CompoundPropertyModel(filledForm)); add(new Label(carModel)); add(new Label(carYear)); add(new Label(carMillage)); add(new MultiLineLabel(carFailureText)); } Martijn On 1/15/07, Nino Wael [EMAIL PROTECTED] wrote: Hi Im trying to use a component model and som labels to display contents of the model.. It does not work why? See pastebin : http://pastebin.ca/317148 or here for code: package wicketDemo; import wicket.markup.html.WebPage; import wicket.markup.html.basic.Label; import wicket.markup.html.basic.MultiLineLabel; import wicket.model.CompoundPropertyModel; public class ThankYouPage extends WebPage { public ThankYouPage(FormModel filledForm) { CompoundPropertyModel model = new CompoundPropertyModel(filledForm); add(new Label(carModel, model)); add(new Label(carYear, model)); add(new Label(carMillage, model)); add(new MultiLineLabel(carFailureText, model)); } } regards Nino - 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 -- Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now! http://wicketframework.org - 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 - 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] ComponentModel
Argh so it did not work because im lazy.. That figures:) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik van Oosten Sent: 15. januar 2007 11:22 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] ComponentModel Hi Nino, You should never use div/ but always div/div. Regards, Erik. Nino Wael wrote: Hmm this does not difference, still not working.. Heres the markup before processing: -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - 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 - 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
[Wicket-user] skandinavian characters encoding lost...
Hi I seem to be expriencing lost of encoding, if I have an text area and text field and if Æ Ø or Å are entered then they do not get interpered as Å Ø Æ but losses their encoding. Am I missing something? Wicket does pickup that the browser are in Danish locale and actually does display the default text in dropdowns in Danish(choose one - vælg en). Regards Nino - 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] skandinavian characters encoding lost...
Yes i am using tomcat.. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik van Oosten Sent: 15. januar 2007 13:17 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] skandinavian characters encoding lost... Are you using Tomcat? Erik. Nino Wael schreef: Hi I seem to be expriencing lost of encoding, if I have an text area and text field and if Æ Ø or Å are entered then they do not get interpered as Å Ø Æ but losses their encoding. Am I missing something? Wicket does pickup that the browser are in Danish locale and actually does display the default text in dropdowns in Danish(choose one - vælg en). Regards Nino - 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 -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - 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 - 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] skandinavian characters encoding lost...
Page encoding reported by FF are ISO-8859-1. Regards Nino From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner Sent: 15. januar 2007 13:24 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] skandinavian characters encoding lost... by default wicket does everything in UTF-8 What is your page encoding when you see your webpage? (page info in FF) If you use tomcat you need some other configuration (use utf 8 encoding in request params) but thats only for GET request not post. johan On 1/15/07, Nino Wael [EMAIL PROTECTED] wrote: Hi I seem to be expriencing lost of encoding, if I have an text area and text field and if Æ Ø or Å are entered then they do not get interpered as Å Ø Æ but losses their encoding. Am I missing something? Wicket does pickup that the browser are in Danish locale and actually does display the default text in dropdowns in Danish(choose one - vælg en). Regards Nino - 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 - 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
[Wicket-user] numbervalidator 'java.lang.ClassCastException'
Hi Im getting an exception when I submit my page(base cause line 205 I numbervalidator). Im a bit puzzled by this since I cant understand why it should happened. Entering a text string triggers the error, but that's the reason why I put in the numbervalidator in the first place.. I've been looking at the forminput from wicket examples and my code appear to be ok: final FormModel formModel = new FormModel(); final PropertyModel carModel = new PropertyModel(formModel, carModel); final PropertyModel carYear = new PropertyModel(formModel, carYear); final PropertyModel carMillage = new PropertyModel(formModel, carMillage); final PropertyModel carFailureText = new PropertyModel(formModel, carFailureText); FormComponentFeedbackBorder feedbackBorder = new FormComponentFeedbackBorder( feedback); add(feedbackBorder); Form form = new Form(theform); feedbackBorder.add(form); form.add(new DropDownChoice(carmodel, carModel, Offline .getCarsFromBrand(Opel))); form.add(new RadioChoice(caryear, carYear, Offline.getCarYears())); form.add(new TextField(carmillage, carMillage).add(NumberValidator .minimum(0))); form.add(new TextArea(carfailuretext, carFailureText) .setRequired(true)); form.add(new Button(btn_submit) { protected void onValid() { CompoundPropertyModel model = new CompoundPropertyModel( formModel); setResponsePage(new ThankYouPage(model)); }; }); } Regards Nino - 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] Tracking session expire exception
Hmm, we had to track something similar. Could you describe what happens? Our thing was something that was caused by clearing the pagemap and the same time referencing to the cleared page. Also we have a problem where we loose our session's id. Regards Nino From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marc-Andre Houle Sent: 15. januar 2007 15:35 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] Tracking session expire exception Is there somebody here that had to track in his application why the session expire? I'm in need of some hint on how to efficiently find the damn thing that have made the session expire abruptly. Surely somebody have done something about that! :) Marc - 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] skandinavian characters encoding lost...
Actually I also remember asking about this before, hmm... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik van Oosten Sent: 15. januar 2007 15:43 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] skandinavian characters encoding lost... No, that's not it. I vaguely remember that Tomcat needs a setting in its configuration files before it will serve UTF-8 content. Otherwise it will silently convert it to ISO8859-1. Erik. Martijn Dashorst wrote: Perhaps this: http://cwiki.apache.org/WICKET/how-to-change-the-character-encoding.html found through: http://woogle.billen.dk/search/q/tomcat%20encoding Martijn On 1/15/07, Erik van Oosten [EMAIL PROTECTED] wrote: Well according to Johan its only for POSTs that Tomcat can be a problem. I just tried for at least 10 minutes to find a reference to the exact thing Tomcat does wrong, and I am sure it was on the Wicket Wiki at some point, but I can not find it anymore. If someone can find it, or put it back on the Wicket Wiki, that would be great. Cheers, Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - 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 - 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] numbervalidator 'java.lang.ClassCastException'
Hmm the error is actually triggered by everything even if I enter a number... From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael Sent: 15. januar 2007 16:11 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] numbervalidator 'java.lang.ClassCastException' Hi Im getting an exception when I submit my page(base cause line 205 I numbervalidator). Im a bit puzzled by this since I cant understand why it should happened. Entering a text string triggers the error, but that's the reason why I put in the numbervalidator in the first place.. I've been looking at the forminput from wicket examples and my code appear to be ok: final FormModel formModel = new FormModel(); final PropertyModel carModel = new PropertyModel(formModel, carModel); final PropertyModel carYear = new PropertyModel(formModel, carYear); final PropertyModel carMillage = new PropertyModel(formModel, carMillage); final PropertyModel carFailureText = new PropertyModel(formModel, carFailureText); FormComponentFeedbackBorder feedbackBorder = new FormComponentFeedbackBorder( feedback); add(feedbackBorder); Form form = new Form(theform); feedbackBorder.add(form); form.add(new DropDownChoice(carmodel, carModel, Offline .getCarsFromBrand(Opel))); form.add(new RadioChoice(caryear, carYear, Offline.getCarYears())); form.add(new TextField(carmillage, carMillage).add(NumberValidator .minimum(0))); form.add(new TextArea(carfailuretext, carFailureText) .setRequired(true)); form.add(new Button(btn_submit) { protected void onValid() { CompoundPropertyModel model = new CompoundPropertyModel( formModel); setResponsePage(new ThankYouPage(model)); }; }); } Regards Nino - 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] wicket presentation
To my presentation im doing both a jsp version and a wicket version of a very small applikation (might just be a form or two separate pages with forms), btw would it be an idea to put the presentation with examples up somewhere perhaps the wiki (when im done with it?)? However upon doing this I've stumbled into something I find odd, in the below code the label called model are not updatet when it's model are changed, I got the same problem with the dropdown, I fixed that by calling the dropdown.modelchanged() method. But is it really necessary to call modelchanged? I saw the ajax example which is almost identical to this does not call modelchanged. public class IndexPage extends WebPage { public IndexPage() { FormModel formModel = new FormModel(); final PropertyModel carModel = new PropertyModel(formModel, carModel); final PropertyModel carBrand = new PropertyModel(formModel, carBrand); IModel carsFromBrand = new AbstractReadOnlyModel() { public Object getObject(Component arg0) { String selected = (String) carBrand.getObject(null); if (selected != null) { return Offline.getCarsFromBrand(selected); } return Collections.EMPTY_LIST; } }; add(new Label(brand, carBrand)); add(new Label(model, carModel)); Form form = new Form(theform); add(form); final DropDownChoice ddcCarModel = new DropDownChoice(carmodel, carModel, carsFromBrand) { protected boolean wantOnSelectionChangedNotifications() { return true; } }; DropDownChoice ddcCarbrand = new DropDownChoice(carbrand, carBrand, Offline.getCarBrands()) { protected boolean wantOnSelectionChangedNotifications() { return true; } protected void onSelectionChanged(Object arg0) { // TODO Auto-generated method stub super.onSelectionChanged(arg0); ddcCarModel.modelChanged(); } }; form.add(ddcCarbrand); form.add(ddcCarModel); } } From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael Sent: 4. januar 2007 14:16 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] wicket presentation Hi im doing a wicket presentation for our consultants team, on this first teaser I have about ten minutes. I plan to talk something about markup inheritance(the stuff with panels and borders, which are very nice), and the POJO concept. Also wickets model concept and that you don't have to think about the tedious tasks like printing html and setting the correct radio to be selected. I guess that part will be a big eye opener for some of them:-) Which features should I show? The crowd will maximum have knowledge of struts or simple jsp pages
Re: [Wicket-user] wicket presentation
Oeh btw this is wicket 1.2.3 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael Sent: 12. januar 2007 13:27 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] wicket presentation To my presentation im doing both a jsp version and a wicket version of a very small applikation (might just be a form or two separate pages with forms), btw would it be an idea to put the presentation with examples up somewhere perhaps the wiki (when im done with it?)? However upon doing this I've stumbled into something I find odd, in the below code the label called model are not updatet when it's model are changed, I got the same problem with the dropdown, I fixed that by calling the dropdown.modelchanged() method. But is it really necessary to call modelchanged? I saw the ajax example which is almost identical to this does not call modelchanged. public class IndexPage extends WebPage { public IndexPage() { FormModel formModel = new FormModel(); final PropertyModel carModel = new PropertyModel(formModel, carModel); final PropertyModel carBrand = new PropertyModel(formModel, carBrand); IModel carsFromBrand = new AbstractReadOnlyModel() { public Object getObject(Component arg0) { String selected = (String) carBrand.getObject(null); if (selected != null) { return Offline.getCarsFromBrand(selected); } return Collections.EMPTY_LIST; } }; add(new Label(brand, carBrand)); add(new Label(model, carModel)); Form form = new Form(theform); add(form); final DropDownChoice ddcCarModel = new DropDownChoice(carmodel, carModel, carsFromBrand) { protected boolean wantOnSelectionChangedNotifications() { return true; } }; DropDownChoice ddcCarbrand = new DropDownChoice(carbrand, carBrand, Offline.getCarBrands()) { protected boolean wantOnSelectionChangedNotifications() { return true; } protected void onSelectionChanged(Object arg0) { // TODO Auto-generated method stub super.onSelectionChanged(arg0); ddcCarModel.modelChanged(); } }; form.add(ddcCarbrand); form.add(ddcCarModel); } } From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael Sent: 4. januar 2007 14:16 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] wicket presentation Hi im doing a wicket presentation for our consultants team, on this first teaser I have about ten minutes. I plan to talk something about markup inheritance(the stuff with panels and borders, which are very nice), and the POJO concept. Also wickets model concept and that you don't have to think about
[Wicket-user] error deleting cookie when calling deletWicketCookie
Hi I Get an error when the page are calling this line, on my html : body onunload=deleteWicketCookie('pm-null/jobindsatsViewerComponentServlet'); I think I know why it's failing, it's because the browser does not allow cookie and therefore the cookie cant be deleted.. What can I do about it? Except getting the user to accept cookies? Regards Nino - 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] error deleting cookie when calling deletWicketCookie
This is running wicket 1.2 btw, I'll try to remember version numbers in the original mails from now on. Regards Nino From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael Sent: 12. januar 2007 13:50 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] error deleting cookie when calling deletWicketCookie Hi I Get an error when the page are calling this line, on my html : body onunload=deleteWicketCookie('pm-null/jobindsatsViewerComponentServlet'); I think I know why it's failing, it's because the browser does not allow cookie and therefore the cookie cant be deleted.. What can I do about it? Except getting the user to accept cookies? Regards Nino - 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] wicket presentation
Where in wicket you just write your markupfile .html and your java file and thats it... Regards Nino -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael Sent: 5. januar 2007 08:42 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] wicket presentation Sure Here I was thinking against wicket versus JSP/servlets, in those you have to print each line of html you want displayed at the browser.. -Nino -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gustavo Santucho Sent: Friday, January 05, 2007 3:43 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] wicket presentation you don't have to think about the tedious tasks like printing html Can you explain this? - Gustavo. - 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 - 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 - 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
[Wicket-user] IE 6 requests new session OTT
Hi I guess this is not directly connected to wicket. But it seems that IE 6 has a nasty habbit of requesting new sessions sometimes(Bill Gates random generator). This are giving us some problems with the page expired exceptions, and some other stuff, THE FACT that we loose our session context are horrible. We live within an iframe, so im not sure if this triggers it somehow. Has anyone experienced this and what did you do, if something could be done? I do not have this problem with firefox. Which even uses authenticated sessions cross browser instance. Regards Nino - 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] IE 6 requests new session OTT
Hmm just found out that, there is a setting in IE 6 where you can disallow session cookies. Setting this to false, clears our problem... This appears to be default, are there any way to change this from our server side (im guessing no). Regards Nino From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael Sent: 5. januar 2007 12:05 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] IE 6 requests new session OTT Hi I guess this is not directly connected to wicket. But it seems that IE 6 has a nasty habbit of requesting new sessions sometimes(Bill Gates random generator). This are giving us some problems with the page expired exceptions, and some other stuff, THE FACT that we loose our session context are horrible. We live within an iframe, so im not sure if this triggers it somehow. Has anyone experienced this and what did you do, if something could be done? I do not have this problem with firefox. Which even uses authenticated sessions cross browser instance. Regards Nino - 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] IE 6 requests new session OTT
Sorry for so many posts about this. But are there any way to avoid session cookies? And stil maintain session state? We are using load balancing with apache upfront and then tomcat. Regards Nino From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael Sent: 5. januar 2007 12:12 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] IE 6 requests new session OTT Hmm just found out that, there is a setting in IE 6 where you can disallow session cookies. Setting this to false, clears our problem... This appears to be default, are there any way to change this from our server side (im guessing no). Regards Nino From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael Sent: 5. januar 2007 12:05 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] IE 6 requests new session OTT Hi I guess this is not directly connected to wicket. But it seems that IE 6 has a nasty habbit of requesting new sessions sometimes(Bill Gates random generator). This are giving us some problems with the page expired exceptions, and some other stuff, THE FACT that we loose our session context are horrible. We live within an iframe, so im not sure if this triggers it somehow. Has anyone experienced this and what did you do, if something could be done? I do not have this problem with firefox. Which even uses authenticated sessions cross browser instance. Regards Nino - 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] IE 6 requests new session OTT
We are using BookmarkablePages and mounted parameters (app/page/parametera/valuea) btw, does this affect the ability to force jessionId? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael Sent: 5. januar 2007 13:22 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] IE 6 requests new session OTT Correct, I think I know whats going wrong... Since we live in an Iframe. I guess this is what happens: User clicks a link which leads to us via an Iframe with an static url. Then the servlet container makes the url rewrite, which is ok. But if the user clicks again on the link our session id are of course gone from the url and the servlet container treats this as an new session. Again this is only a problem when session cookies aren't allowed. So the solution are to give an session id from the page having our application within the iframe. So this is where I ask how do I force a specific session id to be used, retrieved from the url? Regards Nino -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martijn Dashorst Sent: 5. januar 2007 12:19 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] IE 6 requests new session OTT The servlet container will use url rewriting (i.e. append the jsessionid=afwo020394) when a cookie can't be set. Martijn On 1/5/07, Nino Wael [EMAIL PROTECTED] wrote: Sorry for so many posts about this. But are there any way to avoid session cookies? And stil maintain session state? We are using load balancing with apache upfront and then tomcat. Regards Nino From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael Sent: 5. januar 2007 12:12 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] IE 6 requests new session OTT Hmm just found out that, there is a setting in IE 6 where you can disallow session cookies. Setting this to false, clears our problem... This appears to be default, are there any way to change this from our server side (im guessing no). Regards Nino From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael Sent: 5. januar 2007 12:05 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] IE 6 requests new session OTT Hi I guess this is not directly connected to wicket. But it seems that IE 6 has a nasty habbit of requesting new sessions sometimes(Bill Gates random generator). This are giving us some problems with the page expired exceptions, and some other stuff, THE FACT that we loose our session context are horrible. We live within an iframe, so im not sure if this triggers it somehow. Has anyone experienced this and what did you do, if something could be done? I do not have this problem with firefox. Which even uses authenticated sessions cross browser instance. Regards Nino - 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 -- Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now! http://wicketframework.org - 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 - 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 - 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
Re: [Wicket-user] IE 6 requests new session OTT
Correct, I think I know whats going wrong... Since we live in an Iframe. I guess this is what happens: User clicks a link which leads to us via an Iframe with an static url. Then the servlet container makes the url rewrite, which is ok. But if the user clicks again on the link our session id are of course gone from the url and the servlet container treats this as an new session. Again this is only a problem when session cookies aren't allowed. So the solution are to give an session id from the page having our application within the iframe. So this is where I ask how do I force a specific session id to be used, retrieved from the url? Regards Nino -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martijn Dashorst Sent: 5. januar 2007 12:19 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] IE 6 requests new session OTT The servlet container will use url rewriting (i.e. append the jsessionid=afwo020394) when a cookie can't be set. Martijn On 1/5/07, Nino Wael [EMAIL PROTECTED] wrote: Sorry for so many posts about this. But are there any way to avoid session cookies? And stil maintain session state? We are using load balancing with apache upfront and then tomcat. Regards Nino From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael Sent: 5. januar 2007 12:12 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] IE 6 requests new session OTT Hmm just found out that, there is a setting in IE 6 where you can disallow session cookies. Setting this to false, clears our problem... This appears to be default, are there any way to change this from our server side (im guessing no). Regards Nino From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael Sent: 5. januar 2007 12:05 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] IE 6 requests new session OTT Hi I guess this is not directly connected to wicket. But it seems that IE 6 has a nasty habbit of requesting new sessions sometimes(Bill Gates random generator). This are giving us some problems with the page expired exceptions, and some other stuff, THE FACT that we loose our session context are horrible. We live within an iframe, so im not sure if this triggers it somehow. Has anyone experienced this and what did you do, if something could be done? I do not have this problem with firefox. Which even uses authenticated sessions cross browser instance. Regards Nino - 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 -- Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now! http://wicketframework.org - 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 - 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
[Wicket-user] PageExpired
Hi We are experiencing some PageExpired exceptions, where I believe they should not occur. We are running on a clustered environment, two tomcats with apache infront as loadbalancer. As I see it pageExpired could happen if somehow apache sent the user to the wrong server(we are using the session affinity JK-mod I belive so that should not happen). Else pageExpired would happen if the users session expire or the user tries to reach a page that's pop'ed from the pagemap stack (I belive our limit are 15). Could pageExpired also come if the user gets an exception? And finally we are also seeing that if a user double posts their form they get an pageExpired message, how can I prevent this? We are using the pagemap to retrieve previous pages, so that the user can press a previous button... And as I remember it we are clearing our pagemap when we begin a new flow(its also on this page that we experience the page expired if double post occur, im not sure how this interferes with the request cycle). Lets say user clicks twice(then two page rendering are waiting), and somewhere in the code we clear the page map what happens then? Regards Nino - 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] i18n of sentences with links
Why not have different page versions like the beer exampel on wicket library? Oeh meant pub example: http://www.wicket-library.com/wicket-examples/pub -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ryan Sent: 4. januar 2007 01:33 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] i18n of sentences with links One tricky i18n problem to solve is how to internationalize a sentence that has a link somewhere in it. If anyone has solved this problem or has a suggestion on how to go about doing it in Wicket I would appreciate the help! Example sentence: Use of this Web site constitutes acceptance of the _User Agreement_. (where the underlined text is a link that normally would be rendered with a BookmarkablePageLink) Note that it is tempting to split the sentence into two keys in a resource bundle (one for the sentence and another for the link text) and then concat the two strings together to create the sentence. This might work for a lot of english sentences but does not work for all languages (for instance if the language requires the link to be in the middle of the sentence). In the past (and not using wicket) I have solved this using two place holders like so: sentence1=Use of this Web site constitutes acceptance of the {0}User Agreement{1}. Then at runtime I construct the dynamic link and replace 0 with the a href... and 1 with /a. This solution works but I was hoping there is a nicer solution with Wicket. Any suggestions? Thanks, Ryan - 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 - 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] PageExpired
I think a little more detail are in order here from myside.. On our form are a radiobutton group which have wantnotifications and an overridden onselectionchanged method. Depending on which radio button are selected the user are forwarded to a different page. So I have page A and B. If radio A are selected we are on page A and radio B are selected then we are on page B. So if I select radio B from page A and while loading(we have about 1-2 secs load time ) I still manage to press the next button which basically are a submit button which sets response to the next page, then I get an page expired message. My guess are that in the above scenario since the request cycle are linear and chronological I first get to submit the request that require page B(doing this clears the pagemap), after this request comes my second request that are a button clicked event on page A, but page A are no longer in the pagemap since it got cleared in the previous request..? Regards Nino From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner Sent: 4. januar 2007 11:25 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] PageExpired can users also go forward again? Because those pages will be gone then it is a stack. I would just monitor which pages goes out of the stack at what time. in 1.3 with the new SecondLevelCache this wouldn't happen at all. All pages can be found again. johan On 1/4/07, Nino Wael [EMAIL PROTECTED] wrote: Hi We are experiencing some PageExpired exceptions, where I believe they should not occur. We are running on a clustered environment, two tomcats with apache infront as loadbalancer. As I see it pageExpired could happen if somehow apache sent the user to the wrong server(we are using the session affinity JK-mod I belive so that should not happen). Else pageExpired would happen if the users session expire or the user tries to reach a page that's pop'ed from the pagemap stack (I belive our limit are 15). Could pageExpired also come if the user gets an exception? And finally we are also seeing that if a user double posts their form they get an pageExpired message, how can I prevent this? We are using the pagemap to retrieve previous pages, so that the user can press a previous button... And as I remember it we are clearing our pagemap when we begin a new flow(its also on this page that we experience the page expired if double post occur, im not sure how this interferes with the request cycle). Lets say user clicks twice(then two page rendering are waiting), and somewhere in the code we clear the page map what happens then? Regards Nino - 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 - 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
[Wicket-user] wicket presentation
Hi im doing a wicket presentation for our consultants team, on this first teaser I have about ten minutes. I plan to talk something about markup inheritance(the stuff with panels and borders, which are very nice), and the POJO concept. Also wickets model concept and that you don't have to think about the tedious tasks like printing html and setting the correct radio to be selected. I guess that part will be a big eye opener for some of them:-) Which features should I show? The crowd will maximum have knowledge of struts or simple jsp pages. Regards Nino - 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] wicket presentation
Sure Here I was thinking against wicket versus JSP/servlets, in those you have to print each line of html you want displayed at the browser.. -Nino -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gustavo Santucho Sent: Friday, January 05, 2007 3:43 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] wicket presentation you don't have to think about the tedious tasks like printing html Can you explain this? - Gustavo. - 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 - 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] Palette removes values from WizardStep
My guess is that you have run into an issue with the palette, as I remember it you cant contstruct a palette that already haves values in the selected model or something like that, I replied in a post earlier with a solution... -regards Nino -Original Message- From: [EMAIL PROTECTED] on behalf of De Soca Sent: Tue 02-01-2007 16:51 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] Palette removes values from WizardStep Hello Happy New Year to all, I have come across a curious problem when using the Palette component. Attached is a quickstart sample of what I am experiencing. I have 2 palettes, one on the input wizardStep and one on the confirmation wizardStep. The values are set properly, and are verified so, in the input wizardStep. When I go to the confirm step the values set in the palette in the previous step are gone. The other form values are still available. Hopefully I am missing something obvious. Thanks for all input. http://www.nabble.com/file/5188/quickstart-palette.zip quickstart-palette.zip -- View this message in context: http://www.nabble.com/Palette-removes-values-from-WizardStep-tf2908589.html#a8125921 Sent from the Wicket - User mailing list archive at Nabble.com. - 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 - 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] Palette removes values from WizardStep
It's the recorder component that needs to be updated... and overide onModelchanged on palette to update the recorder component. -Original Message- From: [EMAIL PROTECTED] on behalf of Igor Vaynberg Sent: Wed 03-01-2007 07:12 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Palette removes values from WizardStep looks like a problem with the palette caching some model values, please add a bug report and we will look into it asap -igor On 1/2/07, De Soca [EMAIL PROTECTED] wrote: Hello Happy New Year to all, I have come across a curious problem when using the Palette component. Attached is a quickstart sample of what I am experiencing. I have 2 palettes, one on the input wizardStep and one on the confirmation wizardStep. The values are set properly, and are verified so, in the input wizardStep. When I go to the confirm step the values set in the palette in the previous step are gone. The other form values are still available. Hopefully I am missing something obvious. Thanks for all input. http://www.nabble.com/file/5188/quickstart-palette.zip quickstart-palette.zip -- View this message in context: http://www.nabble.com/Palette-removes-values-from-WizardStep-tf2908589.html#a8125921 Sent from the Wicket - User mailing list archive at Nabble.com. - 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 - 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] Constructing a list of links from java
hmm have you tried the wicket.link class? that generates the link... I had to learn something similar, you can attach a link wicket java class to a button html markup if you need to for some reason and vice versa. And that goes in general you can attach any component to any markup if you want to, guys please comment on this one since im not completely sure.. regards Nino -Original Message- From: [EMAIL PROTECTED] on behalf of Dustin Sallings Sent: Sat 23-12-2006 02:09 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Constructing a list of links from java Thanks everyone for the responses. I got it to do what I wanted without an excessive amount of work. I wasn't able to find a component that would generate a regular link within my application context so I wrote one, but it was pretty easy. From the examples I saw, I thought repeaters/list stuff was for tables for some reason. Having actually tried it, it seems rather obvious that that's not the case. On Dec 22, 2006, at 0:00 , Erik van Oosten wrote: Hello Dustin, You can also find more information on the wiki: http://cwiki.apache.org/WICKET/listview-and-other-repeaters.html Regards, Erik. Dustin Sallings wrote: I am trying to convert an old struts and tiles/jsp app to wicket. This app has a bunch of links that get added programatically. I'd like my template to have a ul to which I'd append several li elements containing links. What is this obvious thing I'm missing? -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ -- --- 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 -- Dustin Sallings - 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] Constructing a list of links from java
aye, I guess I should be better to reference towards the wiki/ other example pages... I guess that would give users a better toolbox, since there are a fairly bunch of documentation out there. regards Nino -Original Message- From: [EMAIL PROTECTED] on behalf of Erik van Oosten Sent: Fri 22-12-2006 09:00 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Constructing a list of links from java Hello Dustin, You can also find more information on the wiki: http://cwiki.apache.org/WICKET/listview-and-other-repeaters.html Regards, Erik. Dustin Sallings wrote: I am trying to convert an old struts and tiles/jsp app to wicket. This app has a bunch of links that get added programatically. I'd like my template to have a ul to which I'd append several li elements containing links. What is this obvious thing I'm missing? -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - 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 - 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] Constructing a list of links from java
Use a Listview or repeater? Im using Listview to do something similar... Want an example? regards Nino -Original Message- From: [EMAIL PROTECTED] on behalf of Dustin Sallings Sent: Fri 22-12-2006 06:05 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] Constructing a list of links from java I have an embarrassingly simple question to which I haven't been able to find a simple answer. I am trying to convert an old struts and tiles/jsp app to wicket. This app has a bunch of links that get added programatically. I'd like my template to have a ul to which I'd append several li elements containing links. What is this obvious thing I'm missing? Thanks. -- Dustin Sallings - 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 winmail.dat- 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] Change label dynamicly
Hmmm, should we change it so that trying to use an component that had no OutputMarkupId via AJAX would give an PleaseSetOutputMarKUPIDTRUE exception? I've stumpled over this also and a couple of other users has aswell.. Regards Nino _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg Sent: 14. december 2006 00:54 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Change label dynamicly see below On 12/13/06, Roman Mandeleil [EMAIL PROTECTED] wrote: Take a look on that code Form oneForm = new Form(form); final Label label = new Label(label); label.setOutputMarkupId(true); == needed for ajax component to be updated ... AjaxSubmitButton button = new AjaxSubmitButton(button, oneForm){ protected void onSubmit(AjaxRequestTarget target, Form form) { target.add(label); == add component you want updated to the ajax target } }; -igor igor.vaynberg wrote: you mean via ajax? why dont you describe what you are trying to do -igor On 12/13/06, Roman Mandeleil [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: No I wan't to know where the code should begin to render components that changed, without change the whole page igor.vaynberg wrote: add(new Label(time, new AbstractReadOnlyModel() { Object getObject(Component c) { return new Date().toString(); }})); is that what you mean? -igor On 12/13/06, Roman Mandeleil [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I had read all the posts about changing label dynamicly , but I still have a hard time to do that , can somebody send me a place inside a framework that is responsibale for components update. Thanks in advance -- View this message in context: http://www.nabble.com/Change-label-dynamicly-tf2816858.html#a7861932 Sent from the Wicket - User mailing list archive at Nabble.com. - 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 - 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 -- View this message in context: http://www.nabble.com/Change-label-dynamicly-tf2816858.html#a7863974 Sent from the Wicket - User mailing list archive at Nabble.com. - 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 - 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
Re: [Wicket-user] Change label dynamicly
though hevvyly drunk, I still manange to say thank you:) Guess this is the last xxxmas company party of the year...:) -Original Message- From: [EMAIL PROTECTED] on behalf of Igor Vaynberg Sent: Thu 14-12-2006 18:36 To: wicket-user@lists.sourceforge.net Cc: Subject:Re: [Wicket-user] Change label dynamicly see https://issues.apache.org/jira/browse/WICKET-168 -igor On 12/14/06, Roman Mandeleil [EMAIL PROTECTED] wrote: Ohh yeah it can improve the user expirience Nino Wael wrote: Hmmm, should we change it so that trying to use an component that had no OutputMarkupId via AJAX would give an PleaseSetOutputMarKUPIDTRUE exception? I've stumpled over this also and a couple of other users has aswell.. Regards Nino _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg Sent: 14. december 2006 00:54 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Change label dynamicly see below On 12/13/06, Roman Mandeleil [EMAIL PROTECTED] wrote: Take a look on that code Form oneForm = new Form(form); final Label label = new Label(label); label.setOutputMarkupId(true); == needed for ajax component to be updated ... AjaxSubmitButton button = new AjaxSubmitButton(button, oneForm){ protected void onSubmit(AjaxRequestTarget target, Form form) { target.add(label); == add component you want updated to the ajax target } }; -igor igor.vaynberg wrote: you mean via ajax? why dont you describe what you are trying to do -igor On 12/13/06, Roman Mandeleil [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: No I wan't to know where the code should begin to render components that changed, without change the whole page igor.vaynberg wrote: add(new Label(time, new AbstractReadOnlyModel() { Object getObject(Component c) { return new Date().toString(); }})); is that what you mean? -igor On 12/13/06, Roman Mandeleil [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I had read all the posts about changing label dynamicly , but I still have a hard time to do that , can somebody send me a place inside a framework that is responsibale for components update. Thanks in advance -- View this message in context: http://www.nabble.com/Change-label-dynamicly-tf2816858.html#a7861932 Sent from the Wicket - User mailing list archive at Nabble.com. - 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 - 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 -- View this message in context: http://www.nabble.com/Change-label-dynamicly-tf2816858.html#a7863974 Sent from the Wicket - User mailing list archive at Nabble.com. - 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