Re: [Wicket-user] localhost/wicketApp works fine, PC_NAME/wicketApp throws page expire.
Thanks, the issue was due to local platform (Win XP) and has nothing to do with wicket as far as I'm concern. And works fine when provide the machines IP address instead of the machine name. This sure looks like a DNS resolution issue all local and nothing to do with wicket. Thanks again, f(t) On 7/25/07, Gwyn Evans [EMAIL PROTECTED] wrote: On Tuesday, July 24, 2007, 4:35:06 PM, Francisco [EMAIL PROTECTED] wrote: No, not BS, simply that the issue you have is so fundamental[1] while the info you give is so limited that there's nothing that anyone can do to help. Your follow-up didn't add anything significant, so you didn't get any feedback. You best bet would be to start with QuickStart as a base, then add a link a second page, then see if you still have the same problem - if you do, upload the project (i.e. the pom.xml the src/ tree) with a JIRA issue, which will let others see the code, rather than having to guess what you're doing. /Gwyn [1] If there were a general problem with Wicket only working with 'localhost', I rather suspect that others would have noticed? I see the questions didn't have anything to do with it. just protocol bs... anyways. f(t) On 7/20/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Tomcat, ie7, safari, and firefox. and wicket 1.3 beta 2. On 7/20/07, Sean Sullivan [EMAIL PROTECTED] wrote: Which web browser? Which version of wicket? Which app server? On 7/20/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Hi has anyone has had this problem before? I have a page and everything works fine. but when I click on a link at the home page only works (goes to the page) if I am at localhost:// etc. even on my own computer. /Gwyn - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: users-subscribe at wicket.apache.org and follow the instructions. ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] localhost/wicketApp works fine, PC_NAME/wicketApp throws page expire.
I see the questions didn't have anything to do with it. just protocol bs... anyways. f(t) On 7/20/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Tomcat, ie7, safari, and firefox. and wicket 1.3 beta 2. On 7/20/07, Sean Sullivan [EMAIL PROTECTED] wrote: Which web browser? Which version of wicket? Which app server? On 7/20/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Hi has anyone has had this problem before? I have a page and everything works fine. but when I click on a link at the home page only works (goes to the page) if I am at localhost:// etc. even on my own computer. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ __ _ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] localhost/wicketApp works fine, PC_NAME/wicketApp throws page expire.
Hi has anyone has had this problem before? I have a page and everything works fine. but when I click on a link at the home page only works (goes to the page) if I am at localhost:// etc. even on my own computer. f(t) - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] localhost/wicketApp works fine, PC_NAME/wicketApp throws page expire.
Tomcat, ie7, safari, and firefox. and wicket 1.3 beta 2. On 7/20/07, Sean Sullivan [EMAIL PROTECTED] wrote: Which web browser? Which version of wicket? Which app server? On 7/20/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Hi has anyone has had this problem before? I have a page and everything works fine. but when I click on a link at the home page only works (goes to the page) if I am at localhost:// etc. even on my own computer. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Download / View Attacment (like gmail)
Hello. Any way of doing this? -- Forwarded message -- From: Francisco Diaz Trepat - gmail [EMAIL PROTECTED] Date: Jul 18, 2007 4:15 PM Subject: Download / View Attacment (like gmail) To: wicket-user@lists.sourceforge.net Hi guys is there an easy way to have, say two buttons or links, one downloads a txt file and the other one opens it up on a new window? mus be ajax. f(t) - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Download / View Attacment (like gmail)
great thanks ps: i have a first version of the extensible choice auto-complete. should i send you the code? On 7/19/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On 7/19/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Hello. Any way of doing this? see downloadlink and popupsettings -igor -- Forwarded message -- From: Francisco Diaz Trepat - gmail [EMAIL PROTECTED] Date: Jul 18, 2007 4:15 PM Subject: Download / View Attacment (like gmail) To: wicket-user@lists.sourceforge.net Hi guys is there an easy way to have, say two buttons or links, one downloads a txt file and the other one opens it up on a new window? mus be ajax. f(t) - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Download / View Attacment (like gmail)
Hi guys is there an easy way to have, say two buttons or links, one downloads a txt file and the other one opens it up on a new window? mus be ajax. f(t) - 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] one component class , many markap
Dobre dien Dimitry, ya gabaru paruski chuchuit. Da, Ya dumayu ti moshes sdielaet. Can you spesify a bit more, there are some different ways to implement that. Panels, Fragments, etc. if I understand you correctly. Ochin priantna, Soius Nie Rushimy, f(t) On 7/17/07, Дмитрий Ржевский [EMAIL PROTECTED] wrote: Hello All. Is it possible to create component which: 1) Component has one java class. 2) Component choose markup file depending on his state. Dmitry. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Please anyone, a hint?
Hi all, I wanted to see if I could add an autocomplete that displays a little table (3 columns). It is a simple locations table that shows a ZIPCODE a Provine/City and a Canton/Kanton (CH) field. I already have it working with the default IAutoCompleteRenderer, that renders an Unordered list: ul li textvalue=800080328032 Neumünster ZH/li etc... /ul I tried my own renderer putting a table on the renderHeader method. Then the TableRow and TableData elements in the render. And finally a the end of Table element in the renderFooter method. This worked fine for look and feel but I lost the selection up and down behavior. And also the Click selecting behavior that put the innerHtml on the textfield as says in the documentation if no textvalue was available. I put the textvalue on the tr textvalue=bla and also I tried to put it in the td element. Can some one help me out a bit? Regards, f(t) - 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] Please anyone, a hint?
Ok. On 7/13/07, Igor Vaynberg [EMAIL PROTECTED] wrote: why dont you create a quickstart so we can run it real quick and see -igor On 7/13/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Hi all, I wanted to see if I could add an autocomplete that displays a little table (3 columns). It is a simple locations table that shows a ZIPCODE a Provine/City and a Canton/Kanton (CH) field. I already have it working with the default IAutoCompleteRenderer, that renders an Unordered list: ul li textvalue=800080328032 Neumünster ZH/li etc... /ul I tried my own renderer putting a table on the renderHeader method. Then the TableRow and TableData elements in the render. And finally a the end of Table element in the renderFooter method. This worked fine for look and feel but I lost the selection up and down behavior. And also the Click selecting behavior that put the innerHtml on the textfield as says in the documentation if no textvalue was available. I put the textvalue on the tr textvalue=bla and also I tried to put it in the td element. Can some one help me out a bit? Regards, f(t) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Please anyone, a hint?
Here is the quick start. Well is actually a netbeans project without the war and build contents. Is that what you expected? please let me know. thanks, f(t) On 7/13/07, Igor Vaynberg [EMAIL PROTECTED] wrote: why dont you create a quickstart so we can run it real quick and see -igor On 7/13/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Hi all, I wanted to see if I could add an autocomplete that displays a little table (3 columns). It is a simple locations table that shows a ZIPCODE a Provine/City and a Canton/Kanton (CH) field. I already have it working with the default IAutoCompleteRenderer, that renders an Unordered list: ul li textvalue=800080328032 Neumünster ZH/li etc... /ul I tried my own renderer putting a table on the renderHeader method. Then the TableRow and TableData elements in the render. And finally a the end of Table element in the renderFooter method. This worked fine for look and feel but I lost the selection up and down behavior. And also the Click selecting behavior that put the innerHtml on the textfield as says in the documentation if no textvalue was available. I put the textvalue on the tr textvalue=bla and also I tried to put it in the td element. Can some one help me out a bit? Regards, f(t) - 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 AutocompleteTestCase.rar Description: Binary data - 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] SPAM ON THE LIST
Great. On 7/13/07, Eelco Hillenius [EMAIL PROTECTED] wrote: ps: how's the book comming along? Still working on it. Manning is preparing WIA for MEAP. More in a couple of weeks. Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Please anyone, a hint?
Ok I'll do that. Don't know much about maven yeat. I'll work on that also. f(t) On 7/13/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On 7/13/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Here is the quick start. Well is actually a netbeans project without the war and build contents. Is that what you expected? please let me know. i dont mind that it is a netbeans project, but i do mind that it doesnt have a pom so i cannot do mvn eclipse:eclipse and get an eclipse project set up quickly. the idea way to build a quickstart is to use the new maven archetype in svn, or checkout wicket-quickstart. once you do that modify it to reproduce the testcase. that way all the core devs have to do is import it into eclipse with a command and have a running project. i dont want to spend my time setting up a project manually. -igor thanks, f(t) On 7/13/07, Igor Vaynberg [EMAIL PROTECTED] wrote: why dont you create a quickstart so we can run it real quick and see -igor On 7/13/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Hi all, I wanted to see if I could add an autocomplete that displays a little table (3 columns). It is a simple locations table that shows a ZIPCODE a Provine/City and a Canton/Kanton (CH) field. I already have it working with the default IAutoCompleteRenderer, that renders an Unordered list: ul li textvalue=800080328032 Neumünster ZH/li etc... /ul I tried my own renderer putting a table on the renderHeader method. Then the TableRow and TableData elements in the render. And finally a the end of Table element in the renderFooter method. This worked fine for look and feel but I lost the selection up and down behavior. And also the Click selecting behavior that put the innerHtml on the textfield as says in the documentation if no textvalue was available. I put the textvalue on the tr textvalue=bla and also I tried to put it in the td element. Can some one help me out a bit? Regards, f(t) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Please anyone, a hint?
Dear Igor, I am sorry but I couldn't get on the quick start yet. I am having some troubles with maven (surely because I am a newby). I am getting at the JavaScript that uses the Autocomplete and I found out that one problem is that it uses first element from child list of the root element instead of maybe using name or id properties. that means that it will work for: ulli pp etc etc. the function gets the node from the element.firstChild.childNodes[i]; in other words the menuDivElement.TheULelment.listof_LI_[i]; that is why I cannot put a simple table, because the table would be: table tr thTitle Header 1/th /tr tr tdTHIS IS A MENU/List ITEM/td /tr /table f(t). pd: if you wish to try it out I've attached the CustomRenderer.java. And also if you don't want to write any code I've attached the home page html and java. function render(){ var element= getAutocompleteMenu(); for(var i=0;ielementCount;i++){ var node=element.firstChild.childNodes[i]; var classNames = node.className.split( ); for (var j=0; jclassNames.length; j++) { if (classNames[j] == 'selected') { classNames[j] = ''; } } if(selected==i){ classNames.push('selected'); } node.className = classNames.join( ); } } On 7/13/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Ok I'll do that. Don't know much about maven yeat. I'll work on that also. f(t) On 7/13/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On 7/13/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Here is the quick start. Well is actually a netbeans project without the war and build contents. Is that what you expected? please let me know. i dont mind that it is a netbeans project, but i do mind that it doesnt have a pom so i cannot do mvn eclipse:eclipse and get an eclipse project set up quickly. the idea way to build a quickstart is to use the new maven archetype in svn, or checkout wicket-quickstart. once you do that modify it to reproduce the testcase. that way all the core devs have to do is import it into eclipse with a command and have a running project. i dont want to spend my time setting up a project manually. -igor thanks, f(t) On 7/13/07, Igor Vaynberg [EMAIL PROTECTED] wrote: why dont you create a quickstart so we can run it real quick and see -igor On 7/13/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Hi all, I wanted to see if I could add an autocomplete that displays a little table (3 columns). It is a simple locations table that shows a ZIPCODE a Provine/City and a Canton/Kanton (CH) field. I already have it working with the default IAutoCompleteRenderer, that renders an Unordered list: ul li textvalue=800080328032 Neumünster ZH/li etc... /ul I tried my own renderer putting a table on the renderHeader method. Then the TableRow and TableData elements in the render. And finally a the end of Table element in the renderFooter method. This worked fine for look and feel but I lost the selection up and down behavior. And also the Click selecting behavior that put the innerHtml on the textfield as says in the documentation if no textvalue was available. I put the textvalue on the tr textvalue=bla and also I tried to put it in the td element. Can some one help me out a bit? Regards, f(t) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user
Re: [Wicket-user] Please anyone, a hint?
Here is the picture that prooves this. As you cas see by the red circule. Because in the table there is a TBODY element that is what it gets selected. On 7/13/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Dear Igor, I am sorry but I couldn't get on the quick start yet. I am having some troubles with maven (surely because I am a newby). I am getting at the JavaScript that uses the Autocomplete and I found out that one problem is that it uses first element from child list of the root element instead of maybe using name or id properties. that means that it will work for: ulli pp etc etc. the function gets the node from the element.firstChild.childNodes[i]; in other words the menuDivElement.TheULelment.listof_LI_[i]; that is why I cannot put a simple table, because the table would be: table tr thTitle Header 1/th /tr tr tdTHIS IS A MENU/List ITEM/td /tr /table f(t). pd: if you wish to try it out I've attached the CustomRenderer.java. And also if you don't want to write any code I've attached the home page html and java. function render(){ var element= getAutocompleteMenu(); for(var i=0;ielementCount;i++){ var node=element.firstChild.childNodes[i]; var classNames = node.className.split( ); for (var j=0; jclassNames.length; j++) { if (classNames[j] == 'selected') { classNames[j] = ''; } } if(selected==i){ classNames.push('selected'); } node.className = classNames.join( ); } } On 7/13/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Ok I'll do that. Don't know much about maven yeat. I'll work on that also. f(t) On 7/13/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On 7/13/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Here is the quick start. Well is actually a netbeans project without the war and build contents. Is that what you expected? please let me know. i dont mind that it is a netbeans project, but i do mind that it doesnt have a pom so i cannot do mvn eclipse:eclipse and get an eclipse project set up quickly. the idea way to build a quickstart is to use the new maven archetype in svn, or checkout wicket-quickstart. once you do that modify it to reproduce the testcase. that way all the core devs have to do is import it into eclipse with a command and have a running project. i dont want to spend my time setting up a project manually. -igor thanks, f(t) On 7/13/07, Igor Vaynberg [EMAIL PROTECTED] wrote: why dont you create a quickstart so we can run it real quick and see -igor On 7/13/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Hi all, I wanted to see if I could add an autocomplete that displays a little table (3 columns). It is a simple locations table that shows a ZIPCODE a Provine/City and a Canton/Kanton (CH) field. I already have it working with the default IAutoCompleteRenderer, that renders an Unordered list: ul li textvalue=800080328032 Neumünster ZH/li etc... /ul I tried my own renderer putting a table on the renderHeader method. Then the TableRow and TableData elements in the render. And finally a the end of Table element in the renderFooter method. This worked fine for look and feel but I lost the selection up and down behavior. And also the Click selecting behavior that put the innerHtml on the textfield as says in the documentation if no textvalue was available. I put the textvalue on the tr textvalue=bla and also I tried to put it in the td element. Can some one help me out a bit? Regards, f(t) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Autocomplete Question (igor?)
Hi all, I wanted to see if I could add an autocomplete that displays a little table (3 columns). It is a simple locations table that shows a ZIPCODE a Provine/City and a Canton/Kanton (CH) field. I already have it working with the default IAutoCompleteRenderer, that renders an Unordered list: ul li textvalue=800080328032 Neumünster ZH/li etc... /ul I tried my own renderer putting a table on the renderHeader method. Then the TableRow and TableData elements in the render. And finally a the end of Table element in the renderFooter method. This worked fine for look and feel but I lost the selection up and down behavior. And also the Click selecting behavior that put the innerHtml on the textfield as says in the documentation if no textvalue was available. I put the textvalue on the tr textvalue=bla and also I tried to put it in the td element. Can some one help me out a bit? Regards, f(t) - 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] Autocomplete field sends me right to Expired error page (v.1.3 beta 1)
Hello, I am still having this problem and I don't know what could be. Can someone help? -- Forwarded message -- From: Francisco Diaz Trepat - gmail [EMAIL PROTECTED] Date: Jul 6, 2007 5:52 PM Subject: Autocomplete field sends me right to Expired error page (v.1.3 beta 1) To: wicket-user@lists.sourceforge.net Hi guys, I have an Autocomplete field. As soon as I hit a key the following url gets loaded. http://localhost:8084/ArgoWeb2/?wicket:bookmarkablePage=%3Aorg.apache.wicket.markup.html.pages.PageExpiredErrorPage I copy the code from the example at: http://wicketstuff.org/wicket13/ajax/?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.ajax.builtin.AutoCompletePage Am I missing something? is this common? cheers, f(t) - 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] Autocomplete field sends me right to Expired error page (v.1.3 beta 1)
Ok. I'll do that. f(t) On 7/10/07, Johan Compagner [EMAIL PROTECTED] wrote: make a test case and attach that to a jira issue. johan On 7/10/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Hello, I am still having this problem and I don't know what could be. Can someone help? -- Forwarded message -- From: Francisco Diaz Trepat - gmail [EMAIL PROTECTED] Date: Jul 6, 2007 5:52 PM Subject: Autocomplete field sends me right to Expired error page ( v.1.3beta 1) To: wicket-user@lists.sourceforge.net Hi guys, I have an Autocomplete field. As soon as I hit a key the following url gets loaded. http://localhost:8084/ArgoWeb2/?wicket:bookmarkablePage=%3Aorg.apache.wicket.markup.html.pages.PageExpiredErrorPage I copy the code from the example at: http://wicketstuff.org/wicket13/ajax/?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.ajax.builtin.AutoCompletePage Am I missing something? is this common? cheers, f(t) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Autocomplete field sends me right to Expired error page (v.1.3 beta 1)
Hi guys, I have an Autocomplete field. As soon as I hit a key the following url gets loaded. http://localhost:8084/ArgoWeb2/?wicket:bookmarkablePage=%3Aorg.apache.wicket.markup.html.pages.PageExpiredErrorPage I copy the code from the example at: http://wicketstuff.org/wicket13/ajax/?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.ajax.builtin.AutoCompletePage Am I missing something? is this common? cheers, f(t) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket-based dashboard
That looks pretty good. On 7/3/07, Nathan Beach [EMAIL PROTECTED] wrote: With some simple changes to ModalWindow, I'm able to get the basics to work (see attached gif). Just turned off the masking, added x and yOffsets, and altered the loadPosition function to take settings parameters rather than loading from a cookie. There's still a lot of work left to make an actual lightweight dashboard, but it's a start... It's such a nice-looking component -- thanks Matej! Nathan B. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius Sent: Monday, July 02, 2007 10:44 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] wicket-based dashboard I'm looking for some advice on how to create a Wicket-based dashboard with functionality along the lines of iGoogle.com. That is, resizable and drag/drop-able sub-window components that can be arranged by the user. And the dashboard layout must be serialized for the next time the user logs in. The drag and drop part is probably the most difficult. Though there's plenty of JavaScript libs (and probably some Wicket components in one of the wicket-stuff projects) you can use, you'll probably have to do a decent amount of writing code yourself as well. In can imagine that the modal window can serve as inspiration, though you don't need the ajax loading it has, and I definitively wouldn't make it page based (but rather panel based). It would be a great set of components to have, and it sounds fun to develop. Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] How to manage state / session for different windows/tabs
Hi guys, I have the following task. I'm building a simple calculation page, but for sake of simplicity lets say I'm doing the adding link sample we all know. I might need to be able to open two browsers or tabs to be able to do parallel calculations and compare both results. Lets say click 3 times on the link and have *3* on one window/tab and click 4 times in the other one and have *4*, instead of 7 which is the default behavior. Know this point its kind of arguable, so I need to find ways to both doit and may be recommend against it as it may not be a good practice. To put this in a concrete question: Is it possible to handle each instance of a browser (Being this a window, either a new tab or new window, or even a new process) like a new session instance? To do a little test I built a small application with only a home page that prints out a UUID randomly generated in my MyWicketSession. Very simple code, in the session constructor: this.UUID=uuid = UUID.randomUUID().toString(); and in the Home page *info*(getMyWicketSession().getUUID()); This generates the same value when I hit a new tab and enter the URL or when I ask the browser for a new Window. This must be the correct behavior and I have nothing against it, but can I have independent state management. I don't want to go sessionless. Best regards, f(t) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to manage state / session for different windows/tabs
I think you misunderstood. First of all, I don't have any problems. Is just a question, that is intended to get insight in this matter. If you have an adding link like the one in the samples. And click it any number of times, it adds +1, the number of times you click on it. If you click 3 times, you get a 3. Then if you open a new tab, and click on the link on the new tab, you get 4. not 3. Again, to dissipate confusions, I don't think that is wrong at all. But I was just asking if it is possible to have multiple states in multiple tabs. thanks, f(t) On 6/29/07, Matej Knopp [EMAIL PROTECTED] wrote: It is possible what you have one page instance/version opened in three tabs. How does the link you are clicking on when creating new tabs look like? -Matej On 6/29/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: 1.3 incubator beta and currently STILL drooling for the beta 2. I'll check it out. Thanks igor. On 6/29/07, Igor Vaynberg [EMAIL PROTECTED] wrote: what version of wicket are you using? see IPageSettings.setAutomaticMultiWindowSupport(boolean) -igor On 6/29/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Hi guys, I have the following task. I'm building a simple calculation page, but for sake of simplicity lets say I'm doing the adding link sample we all know. I might need to be able to open two browsers or tabs to be able to do parallel calculations and compare both results. Lets say click 3 times on the link and have 3 on one window/tab and click 4 times in the other one and have 4, instead of 7 which is the default behavior. Know this point its kind of arguable, so I need to find ways to both doit and may be recommend against it as it may not be a good practice. To put this in a concrete question: Is it possible to handle each instance of a browser (Being this a window, either a new tab or new window, or even a new process) like a new session instance? To do a little test I built a small application with only a home page that prints out a UUID randomly generated in my MyWicketSession. Very simple code, in the session constructor: this.UUID=uuid = UUID.randomUUID().toString(); and in the Home page info(getMyWicketSession().getUUID()); This generates the same value when I hit a new tab and enter the URL or when I ask the browser for a new Window. This must be the correct behavior and I have nothing against it, but can I have independent state management. I don't want to go sessionless. Best regards, f(t) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to manage state / session for different windows/tabs
1.3 incubator beta and currently STILL drooling for the beta 2. I'll check it out. Thanks igor. On 6/29/07, Igor Vaynberg [EMAIL PROTECTED] wrote: what version of wicket are you using? see IPageSettings.setAutomaticMultiWindowSupport(boolean) -igor On 6/29/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Hi guys, I have the following task. I'm building a simple calculation page, but for sake of simplicity lets say I'm doing the adding link sample we all know. I might need to be able to open two browsers or tabs to be able to do parallel calculations and compare both results. Lets say click 3 times on the link and have *3* on one window/tab and click 4 times in the other one and have *4*, instead of 7 which is the default behavior. Know this point its kind of arguable, so I need to find ways to both doit and may be recommend against it as it may not be a good practice. To put this in a concrete question: Is it possible to handle each instance of a browser (Being this a window, either a new tab or new window, or even a new process) like a new session instance? To do a little test I built a small application with only a home page that prints out a UUID randomly generated in my MyWicketSession. Very simple code, in the session constructor: this.UUID=uuid = UUID.randomUUID().toString(); and in the Home page *info*(getMyWicketSession().getUUID()); This generates the same value when I hit a new tab and enter the URL or when I ask the browser for a new Window. This must be the correct behavior and I have nothing against it, but can I have independent state management. I don't want to go sessionless. Best regards, f(t) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to manage state / session for different windows/tabs
Excelent. Thanks Igor. On 6/29/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On 6/29/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: I think you misunderstood. First of all, I don't have any problems. Is just a question, that is intended to get insight in this matter. If you have an adding link like the one in the samples. And click it any number of times, it adds +1, the number of times you click on it. If you click 3 times, you get a 3. Then if you open a new tab, and click on the link on the new tab, you get 4. not 3. Again, to dissipate confusions, I don't think that is wrong at all. But I was just asking if it is possible to have multiple states in multiple tabs. the answer is yes, and it is also transparent - eg you dont have to do anything as long as you use default page store if you use sessionstore then you need to turn on that setting i told you about. -igor thanks, f(t) On 6/29/07, Matej Knopp [EMAIL PROTECTED] wrote: It is possible what you have one page instance/version opened in three tabs. How does the link you are clicking on when creating new tabs look like? -Matej On 6/29/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: 1.3 incubator beta and currently STILL drooling for the beta 2. I'll check it out. Thanks igor. On 6/29/07, Igor Vaynberg [EMAIL PROTECTED] wrote: what version of wicket are you using? see IPageSettings.setAutomaticMultiWindowSupport(boolean) -igor On 6/29/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Hi guys, I have the following task. I'm building a simple calculation page, but for sake of simplicity lets say I'm doing the adding link sample we all know. I might need to be able to open two browsers or tabs to be able to do parallel calculations and compare both results. Lets say click 3 times on the link and have 3 on one window/tab and click 4 times in the other one and have 4, instead of 7 which is the default behavior. Know this point its kind of arguable, so I need to find ways to both doit and may be recommend against it as it may not be a good practice. To put this in a concrete question: Is it possible to handle each instance of a browser (Being this a window, either a new tab or new window, or even a new process) like a new session instance? To do a little test I built a small application with only a home page that prints out a UUID randomly generated in my MyWicketSession. Very simple code, in the session constructor: this.UUID=uuid = UUID.randomUUID().toString(); and in the Home page info(getMyWicketSession().getUUID()); This generates the same value when I hit a new tab and enter the URL or when I ask the browser for a new Window. This must be the correct behavior and I have nothing against it, but can I have independent state management. I don't want to go sessionless. Best regards, f(t) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2
Re: [Wicket-user] How to manage state / session for different windows/tabs
Thanks Matej I'll check it out. I am building the sample right now to get a more real experience. f(t) On 6/29/07, Matej Knopp [EMAIL PROTECTED] wrote: Err, the fact is, it turned out that there are some flaws considering multi window support and secondlevelcachesessionstore (default). So in case you are experiencing any problems, you should turn on multiwindow support (manually) even for SecondLevelCacheSessionStore. -Matej On 6/29/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Excelent. Thanks Igor. On 6/29/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On 6/29/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: I think you misunderstood. First of all, I don't have any problems. Is just a question, that is intended to get insight in this matter. If you have an adding link like the one in the samples. And click it any number of times, it adds +1, the number of times you click on it. If you click 3 times, you get a 3. Then if you open a new tab, and click on the link on the new tab, you get 4. not 3. Again, to dissipate confusions, I don't think that is wrong at all. But I was just asking if it is possible to have multiple states in multiple tabs. the answer is yes, and it is also transparent - eg you dont have to do anything as long as you use default page store if you use sessionstore then you need to turn on that setting i told you about. -igor thanks, f(t) On 6/29/07, Matej Knopp [EMAIL PROTECTED] wrote: It is possible what you have one page instance/version opened in three tabs. How does the link you are clicking on when creating new tabs look like? -Matej On 6/29/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: 1.3 incubator beta and currently STILL drooling for the beta 2. I'll check it out. Thanks igor. On 6/29/07, Igor Vaynberg [EMAIL PROTECTED] wrote: what version of wicket are you using? see IPageSettings.setAutomaticMultiWindowSupport(boolean) -igor On 6/29/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Hi guys, I have the following task. I'm building a simple calculation page, but for sake of simplicity lets say I'm doing the adding link sample we all know. I might need to be able to open two browsers or tabs to be able to do parallel calculations and compare both results. Lets say click 3 times on the link and have 3 on one window/tab and click 4 times in the other one and have 4, instead of 7 which is the default behavior. Know this point its kind of arguable, so I need to find ways to both doit and may be recommend against it as it may not be a good practice. To put this in a concrete question: Is it possible to handle each instance of a browser (Being this a window, either a new tab or new window, or even a new process) like a new session instance? To do a little test I built a small application with only a home page that prints out a UUID randomly generated in my MyWicketSession. Very simple code, in the session constructor: this.UUID=uuid = UUID.randomUUID().toString(); and in the Home page info(getMyWicketSession().getUUID()); This generates the same value when I hit a new tab and enter the URL or when I ask the browser for a new Window. This must be the correct behavior and I have nothing against it, but can I have independent state management. I don't want to go sessionless. Best regards, f(t) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to best deffend models and entity classes
Guys, thanks for the answers but I don't think I explained my self.: I understad this is a solution. But how may I better defend models in general. What would be the purpose of a class with only getters and setters besides adding a new layer to the software? public class Person{ String firstName; String lastName; public Person(){ } public String getFirstName(){ return firstName; } public void setFirstName(String firstName){ this.firstName=firstName; } etc...etc.. } On 6/22/07, Igor Vaynberg [EMAIL PROTECTED] wrote: or create models that bind to xml, something like class XmlPropertyModel(String xml, String path) extends AbstractReadOnlyModel { Object getObject() { return XmlUtils.getPath(xml, path); } } add(new TextField(foo, new XmlPropertyModel(xml, address.street)); also create anl XmlCompoundPropertyModel(String xml) and you can do add(new TextField(address.street)); wicket can bind to anything, not just pojos. -igor On 6/22/07, severian [EMAIL PROTECTED] wrote: I'm not sure I fully understand your situation, but if your wicket front end is obtaining xml-serialised versions of business objects (or data transfer objects or whatever), can you not generate a simple Java version from the xml schema? Then perhaps your colleagues objections about having to redo the objects will disappear... -- View this message in context: http://www.nabble.com/How-to-best-deffend-models-and-entity-classes-tf3960566.html#a11247700 Sent from the Wicket - User mailing list archive at Nabble.comhttp://nabble.com/ . - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to best deffend models and entity classes
Thanks I guess I will have to agree. Although I still think there are some good reasons to have structure like clasesses that only hold value. Some times it's good to have a changing state module that does not compromise final data, until last minute. I think it's best for unitest to have models that you can fill up to test behavior on customize data. It is true that in a general sensce you are adding a class that only receives setter calls from the Form trough the IModel Implementation (PropertyModel, CompoundPropertyModel, etc), but we are talking about some hundred bytes and microseconds of calls, assigment operations are very light. f(t) On 6/25/07, severian [EMAIL PROTECTED] wrote: Francisco Diaz Trepat - gmail wrote: What would be the purpose of a class with only getters and setters besides adding a new layer to the software? Well (in the absence of further information), there would be no purpose. But there's no need to have these extra objects in the first place. If your services are written in Java, just use the pojo BOs (or DTOs) returned by these services as your model. If your services are written in some other language (C++) and return xml-serialised versions of BOs/DTOs, then just use the xml as the model (as Igor explained). No need for another set of objects, at least not for Wicket models. Or am I still missing something? -- View this message in context: http://www.nabble.com/How-to-best-deffend-models-and-entity-classes-tf3960566.html#a11288105 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Xml output with extra lines after removeNodeChild
Hi guys, sorry to be asking this here. But I'm having trouble googling this out. Here is the problem. Given an xml document. I read it on my app and manipulate it, then save it when I am done. When I remove a child, the output files shows all the extra lines from the formatting and indent. So it looks like a big hole in the xml file after the node is removed. Here is an example bookshelf books book isbn3349583080580584308/isbn authorJon Stewart/author /book book isbn9900909770543356488/isbn authorStephen Colbert/author /book /books /bookshelf Node parentNode = jonStewartNode.getParentNode(); parentNode.removeChild (jonStewartNode); The result of this is the following xml. bookshelf books book isbn9900909770543356488 /isbn authorStephen Colbert/author /book /books /bookshelf How can I output the xml without this extra lines? Thanks in advance, f(t) PS: here is the initialization, and configuration of the TransformerFactory, and Transformer, and finally the save method. /** * Initializes factory instances and member variables. */ private void initialize(){ try{ //obtain a trasformer factory to save the file this.transformerFactory = TransformerFactory.newInstance(); this.transformerFactory.setAttribute(indent-number, 4); //obtain the transforme this.transformer = this.transformerFactory.newTransformer(); //setup transformer this.transformer.setOutputProperty(OutputKeys.METHOD, xml); this.transformer.setOutputProperty(OutputKeys.INDENT, yes); //this.transformer.setOutputProperty({http://xml.apache.org/xslt}indent-amount http://xml.apache.org/xslt%7Dindent-amount, 4); }catch(TransformerConfigurationException tcex){ this.logger.logException(this, errors.storage.xml.configuringXmlTransformer, true, tcex); } } /** * Saves the DOM document to the XML file. */ private void saveDocument(){ //verify that the documents is not null if(this.document==null) return; //sincronize document synchronized (this.document){ try{ //normalize document this.document.normalizeDocument(); //get a document documentSource object out of the document DOMSource documentSource= new DOMSource( this.document); //create the file output stream FileOutputStream fileOutputStream = new FileOutputStream( this.file); //create the output stream writer OutputStreamWriter outputStreamWriter = new OutputStreamWriter(fileOutputStream); //create the stream streamResult out to the file Stream StreamResult streamResult = new StreamResult(outputStreamWriter); //performe the trasformation transformer.transform(documentSource, streamResult); //clean up outputStreamWriter.close(); outputStreamWriter = null; fileOutputStream.close(); fileOutputStream = null; documentSource = null; } catch (TransformerConfigurationException tcex) { // Error generated by the parser // Log Error this.logger.logException(this, errors.storage.xml.saveXMLRepositoryFile, true, tcex); } catch (TransformerException tex) { // Error generated by the parser // Log Error this.logger.logException(this, errors.storage.xml.saveXMLRepositoryFile, true, tex); } catch (Exception ex) { // Unknown error // Log Error this.logger.logException(this, errors.storage.xml.saveXMLRepositoryFile, true, ex); } } } - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket MADE the grade
Jonathan, I Couldn't agree more, but it is a common critic in the web about wicket. And if you see the spreadsheet you'll know I needed to say something not so good about it. Impartiality 0. _ f(t) On 6/20/07, Jonathan Locke [EMAIL PROTECTED] wrote: very interesting. but i don't agree with the spreadsheet that wicket is not good for million clicks per minute sites. with a good back-end architecture and the right tuning, wicket ought to be able to sustain that kind of load as well as any other web framework. the big difference is that in wicket you aren't stuck with a non-existent or poor man's component model where you manage all your state by hand just so you can optimize a few hot pages. you can do real OO programming with all the great productivity you get from writing real components with very few optimizations across probably 95% of your site and then roll up your sleeves /after looking at a profiler/ to tune the other 5% of your site (probably the home page and a handful of common destinations). Francisco Diaz Trepat - gmail wrote: Yes, thanks. We evaluated the following frameworks: Struts-2 (reviewed by me) SpringMVC (reviewed by a coworker) JFS (reviewed by a coworker) Click (reviewed by a coworker) Wicket (reviewed by a cowerker and then by me in a second chance kind of deal) Other-ones (Tapestry, Webworks, etc) where discarded in a very overview like process. JFS was the first to go. Very complex if no netbeans and taglibs hell, etc. SpringMVC had a huge acceptance in the community although after reviewing it and experience al xml complexity it got to the point we question the community itself. Similiar with Struts2 although we saw an important reduction of configuration. But it was something else (webworx 2) trying to do Struts I guess. Taglibs were there and we all agreed on their uglyness and stupid concept. Lets do HTML + TAGLIBS + JAVA CODE but lets not put JSP enbeded code on the JSP file. Nonesence!!! One aspect was the some of us came to love seaside (web-framework for squeak/smalltalk) and so we came across Click and the second chance for Wicket. Wicket was originally rejected because one of my coworkers who was in charge of building the demo sample, downloaded the Kick-Start kit (I don't remember the name, maybe quick-start or something of the sort). He had some trouble building it, he then tried to copy/paste some code from the web, and in my opinion gave zero interest in anything. He just complaint about it and then it was dropped. As I was working with Struts-2 and bothering in everyday basis our project leader so he would consider seaside I read nice reviews about wicket, pluss ask my brother who I usually trust and told me only good things about it. So because of the lack of evidence or better put, because of the not so deep explanation of why was wicket dumped, I kind of thought that a very common thing had occured. I don't give a crap, let me keep googling arround. Thats when I decided to speak with our PM and ask him if I could give it a try, a left Struts-2 (thanks god) and started with wicket. Because I am a lazy bastard I turn to the list to answer me some preatty dumb questions so I could get a WicketDemo working. It was an awsome ride, thanks again. I attached a Comparison chart of Struts-2 Click and Wicket, that we created. It is nothing fancy nor it is so serious. But I'll attached anyway. f(t) PS: I am currently verry busy, but I expect to get some time near agust so I can start contributing. I am currently on three other projects but it looks one of those is going to finish. On 6/20/07, craigdd [EMAIL PROTECTED] wrote: Great news Francisco, So give us the dirt, what made your company ultimately go with wicket? Which other frameworks where you considering. -Craig Francisco Diaz Trepat - gmail wrote: Hi guys, from a discarded framework to the choice in hand. Wicket was chosen by my company to start a migration project of its products. Is there a way to get latest 1.3 beta2 with java 1.5? to get started... ;-) Thanks to ALL of you for all your help. ELCO... THE BOOK MAN. COME ON!!! jejejeje Well great news for me because wicket kicks ass!!! f(t) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Wicket-MADE-the-grade-tf3953568.html#a11218427 Sent from the Wicket - User mailing list archive at Nabble.com
Re: [Wicket-user] Convertes Hell (Wicket 1.2.x)
kanieshna, Ya ochin intersna Я заинтересован About the jira I meant. f(t) On 6/20/07, Andrew Klochkov [EMAIL PROTECTED] wrote: Francisco Diaz Trepat - gmail wrote: Nie magu panimayet stonibuts. :-) Russian Wicket Users Group - interested? cannot understand anything. f(t) what do you mean? -- Andrew Klochkov - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Wicket MADE the grade
Hi guys, from a discarded framework to the choice in hand. Wicket was chosen by my company to start a migration project of its products. Is there a way to get latest 1.3 beta2 with java 1.5? to get started... ;-) Thanks to ALL of you for all your help. ELCO... THE BOOK MAN. COME ON!!! jejejeje Well great news for me because wicket kicks ass!!! f(t) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket MADE the grade
Yes, thanks. We evaluated the following frameworks: Struts-2 (reviewed by me) SpringMVC (reviewed by a coworker) JFS (reviewed by a coworker) Click (reviewed by a coworker) Wicket (reviewed by a cowerker and then by me in a second chance kind of deal) Other-ones (Tapestry, Webworks, etc) where discarded in a very overview like process. JFS was the first to go. Very complex if no netbeans and taglibs hell, etc. SpringMVC had a huge acceptance in the community although after reviewing it and experience al xml complexity it got to the point we question the community itself. Similiar with Struts2 although we saw an important reduction of configuration. But it was something else (webworx 2) trying to do Struts I guess. Taglibs were there and we all agreed on their uglyness and stupid concept. Lets do HTML + TAGLIBS + JAVA CODE but lets not put JSP enbeded code on the JSP file. Nonesence!!! One aspect was the some of us came to love seaside (web-framework for squeak/smalltalk) and so we came across Click and the second chance for Wicket. Wicket was originally rejected because one of my coworkers who was in charge of building the demo sample, downloaded the Kick-Start kit (I don't remember the name, maybe quick-start or something of the sort). He had some trouble building it, he then tried to copy/paste some code from the web, and in my opinion gave zero interest in anything. He just complaint about it and then it was dropped. As I was working with Struts-2 and bothering in everyday basis our project leader so he would consider seaside I read nice reviews about wicket, pluss ask my brother who I usually trust and told me only good things about it. So because of the lack of evidence or better put, because of the not so deep explanation of why was wicket dumped, I kind of thought that a very common thing had occured. I don't give a crap, let me keep googling arround. Thats when I decided to speak with our PM and ask him if I could give it a try, a left Struts-2 (thanks god) and started with wicket. Because I am a lazy bastard I turn to the list to answer me some preatty dumb questions so I could get a WicketDemo working. It was an awsome ride, thanks again. I attached a Comparison chart of Struts-2 Click and Wicket, that we created. It is nothing fancy nor it is so serious. But I'll attached anyway. f(t) PS: I am currently verry busy, but I expect to get some time near agust so I can start contributing. I am currently on three other projects but it looks one of those is going to finish. On 6/20/07, craigdd [EMAIL PROTECTED] wrote: Great news Francisco, So give us the dirt, what made your company ultimately go with wicket? Which other frameworks where you considering. -Craig Francisco Diaz Trepat - gmail wrote: Hi guys, from a discarded framework to the choice in hand. Wicket was chosen by my company to start a migration project of its products. Is there a way to get latest 1.3 beta2 with java 1.5? to get started... ;-) Thanks to ALL of you for all your help. ELCO... THE BOOK MAN. COME ON!!! jejejeje Well great news for me because wicket kicks ass!!! f(t) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Wicket-MADE-the-grade-tf3953568.html#a11218427 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user Comparativa_Struts2-Click-Wicket.xls Description: MS-Excel spreadsheet - 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] Convertes Hell (Wicket 1.2.x)
Nie magu panimayet stonibuts. cannot understand anything. f(t) On 6/19/07, Andrew Klochkov [EMAIL PROTECTED] wrote: Eelco Hillenius wrote: The one which was mentioned is org.apache.wicket.extensions.markup.html.form.DateTextField Here is some code from 1.3 beta 1: public DateTextField(String id, String datePattern) { super(id, Date.class); this.dateFormat = new SimpleDateFormat(datePattern); this.converter = new DateConverter() { private static final long serialVersionUID = 1L; /** * @see org.apache.wicket.util.convert.converters.DateConverter#getDateFormat( java.util.Locale) */ public DateFormat getDateFormat(Locale locale) { return dateFormat; } }; } Yeah, that's a bit expensive. I'm sure someone can optimize that if there's a JIRA issue for it :) http://issues.apache.org/jira/browse/WICKET-672 :-) -- Andrew Klochkov - 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] Best way to set the focus on a form's TextField
I just saw the code. I think this should be an easy property on any EDITABLE field. g.e.: TextField userIdField = new TextField(userId); userIdField.setFocus(); may be throw some tab order olso. je How about this, can some one from development share a comment? Is this notion or idea correct? regards, f(t) PS: I am adding wicket-dev if this is also not proper please let me know. On 6/15/07, Frank Bille [EMAIL PROTECTED] wrote: Hmm, yeah perhaps it should be a behavior which we should be able to add to the form instead. And the register the components which would like to have default focus. I don't think it's necessary to have it as an interface which should be implemented. It feels a little intrusive. I'll take a look at it later to see what I can come up with. Frank On 6/15/07, Seldon, Richard [EMAIL PROTECTED] wrote: Frank Re. solution proposed below (with FocusBehavior) you can get the markup id for whatever field you chose determined by how you write your getDefaultField() method in the class implementing the interface FocusBehaviour. One option would be to have the method traverse all relevant form components checking their model objects for values and then return markup for whichever one you like. You may even want to append each valid selection into a list and use that as the basis for a rule on which gets the focus. Hope this helps you formulate a strategy. -Original Message- *From:* [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] Behalf Of *Frank Bille *Sent:* 15 June 2007 10:07 *To:* wicket-user@lists.sourceforge.net *Subject:* Re: [Wicket-user] Best way to set the focus on a form's TextField (Link a little long so here's a shorter one: http://tinyurl.com/3d9sja) Frank On 6/15/07, Frank Bille [EMAIL PROTECTED] wrote: I have been playing around with it as well. Untill now I have come up with the following: http://svn.teachus.dk/browse/TeachUs/dk.teachus/trunk/teachus-frontend/src/main/java/dk/teachus/frontend/components/form/DefaultFocusBehavior.java?r=root : But I'm not entirely sure it does what I want. I would also like to be able to attach it to more than one field and then it's the first field without a value that receives focus. Perhaps.. Frank On 6/15/07, Seldon, Richard [EMAIL PROTECTED] wrote: Would be interested to know of any standard way to handle this but it is easy enough to roll your own with a few lines of code. Perhaps try the following: 1) Set up a FocusBehavior interface that provides a getDefaultField() method. 2) Create a SetFocusVisitor that implements wicket.Component.IVisitor and traverses child nodes looking for FocusBehaviour 3) Get the markup id from component implementing FocusBehavior and use bodycontainer to append DOM node lookup into body element onload attribute by 4) calling getElementByid(yourMarkup).focus() -Original Message- *From:* [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] Behalf Of *Francisco Diaz Trepat - gmail *Sent:* 14 June 2007 21:58 *To:* wicket-user@lists.sourceforge.net *Subject:* [Wicket-user] Best way to set the focus on a form's TextField Hi all, I have a login form and want to set the focus on the user name field as soon as it is displayed. As it is to say on the document load event. I've read some on nabble but it didn't quite understand the best way. Can someone guide me a bit? Best regards, f(t) ps: elco elco please the book, elco elco pleae the book /cantito_argentino This e-mail (and any attachments) may contain privileged and/or confidential information. If you are not the intended recipient please do not disclose, copy, distribute, disseminate or take any action in reliance on it. If you have received this message in error please reply and tell us and then delete it. Should you wish to communicate with us by e-mail we cannot guarantee the security of any data outside our own computer systems. For the protection of Legal General's systems and staff, incoming emails will be automatically scanned. Any information contained in this message may be subject to applicable terms and conditions and must not be construed as giving investment advice within or outside the United Kingdom. The following companies are subsidiary companies of the Legal General Group Plc which are authorised and regulated by the Financial Services Authority for advising and arranging the products shown: Legal General Partnership Services Limited (insurance and mortgages), Legal General Insurance Limited (insurance), Legal General Assurance Society Limited (life assurance, pensions and investments), Legal General Unit Trust Managers Limited and Legal General Portfolio Management Services Limited (investments). They are registered in England under numbers shown
Re: [Wicket-user] Convertes Hell (Wicket 1.2.x)
I use the wicket-datetime package. in there, you'll find the DateTextField: DateTextField myDate = DateTextField.forDatePattern(myDate, dd.MM.yy); wicket.extensions.markup.html.form.DateTextField Hope this help, f(t) On 6/15/07, Paolo Di Tommaso [EMAIL PROTECTED] wrote: I need to replace the default Wicket Date conversion with a custom one to override the default format for dates. To do that I've made something like that in my wicket application : getApplicationSettings().setConverterFactory( new IConverterFactory() { public IConverter newConverter(Locale locale) { return new MyConverter() ; } } ); Where: public class MyConverter extends Converter { public MyConverter() { super(); set(Date.class, new MyDateConverter()); set(String.class, new MyStringConverter() ); } public MyConverter(final Locale locale) { this(); setLocale(locale); } } public class MyDateConverter extends AbstractConverter { protected Class getTargetType() { return Date.class; } public Object convert(final Object value, Locale locale) { return parse(MY_DATE_FORMAT, value); } } public class MyStringConverter extends AbstractConverter { /* * ... that requires also an extra class MyDateToStringConverter .. */ } This is really too complex to do a trivial job like a Date --- String conversion . Exists a better and simpler way to override the default date-string conversion ? Thank you, Paolo Di Tommaso - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Best way to set the focus on a form's TextField
Hi all, I have a login form and want to set the focus on the user name field as soon as it is displayed. As it is to say on the document load event. I've read some on nabble but it didn't quite understand the best way. Can someone guide me a bit? Best regards, f(t) ps: elco elco please the book, elco elco pleae the book /cantito_argentino - 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] AjaxSubmitButton changing Button's Name/Displayed Text/etc
Sorry, right. _ Wicket Version 1.2.5 thanks Jean Baptiste. f(t) On 6/11/07, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote: * Francisco Diaz Trepat - gmail: Anybody knows how to change the displayed name of an AjaxSubmitButton? I just tried to do a .setMode(new ResourceModel(bla bla But it didn't work. I have an input: input type=submit value=create wicket:id=createButton Please always mention the version of Wicket you are using. In Wicket 1.3, this is supposed to work. Set a breakpoint in Button#onComponentTag() on the line tag.put(value, value); Best regards, -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AjaxSubmitButton changing Button's Name/Displayed Text/etc
One more thing. Do I get version 1.3 through the svn? How long to the beta 2 in the incubator? f(t) On 6/11/07, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote: * Francisco Diaz Trepat - gmail: Anybody knows how to change the displayed name of an AjaxSubmitButton? I just tried to do a .setMode(new ResourceModel(bla bla But it didn't work. I have an input: input type=submit value=create wicket:id=createButton Please always mention the version of Wicket you are using. In Wicket 1.3, this is supposed to work. Set a breakpoint in Button#onComponentTag() on the line tag.put(value, value); Best regards, -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AjaxSubmitButton changing Button's Name/Displayed Text/etc
thanks, f(t) On 6/12/07, Timo Rantalaiho [EMAIL PROTECTED] wrote: On Tue, 12 Jun 2007, Francisco Diaz Trepat - gmail wrote: One more thing. Do I get version 1.3 through the svn? Or http://www.wicketstuff.org/maven/repository/org/apache /wicket/wicket-jdk14/ (examples one level above) - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - 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] AJAX Button on my Form inside a Panel needs 2 clicks to do a search
Great Jim, thanks a bunch. I'll try it out and let you know. Thanks again, f(t) On 6/8/07, James McLaughlin [EMAIL PROTECTED] wrote: I think some of the older versions of wicket would sometimes omit header contributions. When the error happens, check to see if wicket-ajax.js is included in the page. Also, you might want to upgrade to 1.2.6 and see if that fixes the issue. best, jim On 6/8/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: James, sorry I took so long to respond. I tried to put PageLinks in the menu. And I could swear that the frequency of error drop, but some times it still happens. I am using wicket 1.2.5. f(t) On 6/6/07, James McLaughlin [EMAIL PROTECTED] wrote: Looks good. What version of wicket are you using? And the second time you click DossierSearch, the time when no wicket ajax debug shows up, do a view source and see if the proper wicket-ajax js files are in the head section. Another thing I would suggest is using Bookmarkable links in your menu for Dossier search. You are using regular links, and that is why your url changes. best, jim On 6/6/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Here is the video. It is .AVI file made with CamStudio, an Open-source project. and it is inside a rar. f(t) On 6/6/07, James McLaughlin [EMAIL PROTECTED] wrote: Hi Francisco, I can't see anything logically wrong with your code, all though there are things I would have done differently. What is the output of the wicket ajax debug panel when you click on the ajax submit button? If you want some advice, I would suggest not using a pageablelistview and not keeping your search results as an instance member (unless they are very expensive to create). Instead, look into using DefaultDataTable or extending DataTable. That way you can put all your search logic in your IDataProvider (such as SortableDataProvider), and retrieve only the results you will display in the current page, and not carry them around in the session after the request is over. Hope this helps. best, jim On 6/6/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Sorry but I cannot find what the problem is. I've search Nabble. - Hello every one, I have a page that uses a panel (code ahead) that has a form with an AJAX button, it works fine, but some times I have to click on the Search button 2 times to make it work. I think it has to do with URLs or something because when it happens it changes the url. The code for the page that uses the following panel I don't include because it only has a statement saying add(new SearchPanel(etc... Here is the code, can some one help? ps: If any other comments like, your code sucks, please also include them. thanks a bunch f(t) and here is the code: package ch.logismata.wicket.panels.ajax; import ch.logismata.serverwrapper.DossierSearch ; import ch.logismata.serverwrapper.DossierSearchResult ; import ch.logismata.serverwrapper.DossierSearchResultList; import ch.logismata.wicket.pages.NewDossier ; import ch.logismata.wicket.panels.BasePanel; import java.io.Serializable; import java.util.ArrayList ; import wicket.AttributeModifier; import wicket.Component; import wicket.PageParameters; import wicket.ajax.AjaxRequestTarget; import wicket.ajax.markup.html.form.AjaxSubmitButton ; import wicket.ajax.markup.html.navigation.paging.AjaxPagingNavigator ; import wicket.markup.html.WebMarkupContainer; import wicket.markup.html.basic.Label ; import wicket.markup.html.form.Form ; import wicket.markup.html.form.TextField; import wicket.markup.html.link.Link; import wicket.markup.html.list.ListItem ; import wicket.markup.html.list.PageableListView; import wicket.markup.html.panel.FeedbackPanel ; import wicket.model.AbstractReadOnlyModel; import wicket.model.CompoundPropertyModel ; import wicket.model.Model; import wicket.model.ResourceModel; /** * Panel to make a Dossier Search and display the results * * @author gm */ public class DossierSearchPanel extends BasePanel { private SearchDossierModel m_cSearchDossierModel = new SearchDossierModel(); private ArrayListDossierSearchResult m_cSearchResults= new ArrayListDossierSearchResult(); public DossierSearchPanel(String id) { //Call super base panel super(id); // create feedback panel to show errors final FeedbackPanel feedback = new FeedbackPanel(searchFeedback); //add feedback panel
[Wicket-user] Pro Wicket = big tutorial of wicket 1.2. Elco come on man... ; -)))
Although it will come in handy to some extend to my colleagues and me, I think it is time to once again put some pressure on Elco. Come on man, please get your book out. I think my first project on Wicket will be a Wicket in Action Countdown, as the http://iphonecountdown.com/ ;-) How is the book coming along? Could you tease us with some gossip info? Cheers, f(t) - 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] AjaxSubmitButton changing Button's Name/Displayed Text/etc
hi all, Anybody knows how to change the displayed name of an AjaxSubmitButton? I just tried to do a .setMode(new ResourceModel(bla bla But it didn't work. I have an input: input type=submit value=create wicket:id=createButton with the following code: //create the ajax submit button AjaxSubmitButton ajaxButton = new AjaxSubmitButton(createButton, form) { protected void onSubmit(AjaxRequestTarget target, Form form) { if(dossierModel.getId()!=nulldossierModel.getId().length()0){ modifyDossier(); //Print fields info(Changed: +dossierModel.printFields()); }else{ createDossier(); //Print fields info(New: +dossierModel.printFields()); } target.addComponent(feedback); } protected void onError(AjaxRequestTarget target, Form form) { // repaint the feedback panel so errors are shown target.addComponent(feedback); } //add model for new or modify button //very ugly statement, but possible due to wicket's architecture }; if(dossierId==null){ ajaxButton.setModel(new ResourceModel(fields.btnNew)); }else{ ajaxButton.setModel(new ResourceModel(fields.btnModify)); } //add submit button form.add(ajaxButton); regards, f(t) - 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] AJAX Button on my Form inside a Panel needs 2 clicks to do a search
James, sorry I took so long to respond. I tried to put PageLinks in the menu. And I could swear that the frequency of error drop, but some times it still happens. I am using wicket 1.2.5. f(t) On 6/6/07, James McLaughlin [EMAIL PROTECTED] wrote: Looks good. What version of wicket are you using? And the second time you click DossierSearch, the time when no wicket ajax debug shows up, do a view source and see if the proper wicket-ajax js files are in the head section. Another thing I would suggest is using Bookmarkable links in your menu for Dossier search. You are using regular links, and that is why your url changes. best, jim On 6/6/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Here is the video. It is .AVI file made with CamStudio, an Open-source project. and it is inside a rar. f(t) On 6/6/07, James McLaughlin [EMAIL PROTECTED] wrote: Hi Francisco, I can't see anything logically wrong with your code, all though there are things I would have done differently. What is the output of the wicket ajax debug panel when you click on the ajax submit button? If you want some advice, I would suggest not using a pageablelistview and not keeping your search results as an instance member (unless they are very expensive to create). Instead, look into using DefaultDataTable or extending DataTable. That way you can put all your search logic in your IDataProvider (such as SortableDataProvider), and retrieve only the results you will display in the current page, and not carry them around in the session after the request is over. Hope this helps. best, jim On 6/6/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Sorry but I cannot find what the problem is. I've search Nabble. - Hello every one, I have a page that uses a panel (code ahead) that has a form with an AJAX button, it works fine, but some times I have to click on the Search button 2 times to make it work. I think it has to do with URLs or something because when it happens it changes the url. The code for the page that uses the following panel I don't include because it only has a statement saying add(new SearchPanel(etc... Here is the code, can some one help? ps: If any other comments like, your code sucks, please also include them. thanks a bunch f(t) and here is the code: package ch.logismata.wicket.panels.ajax; import ch.logismata.serverwrapper.DossierSearch; import ch.logismata.serverwrapper.DossierSearchResult ; import ch.logismata.serverwrapper.DossierSearchResultList; import ch.logismata.wicket.pages.NewDossier; import ch.logismata.wicket.panels.BasePanel; import java.io.Serializable; import java.util.ArrayList ; import wicket.AttributeModifier; import wicket.Component; import wicket.PageParameters; import wicket.ajax.AjaxRequestTarget; import wicket.ajax.markup.html.form.AjaxSubmitButton ; import wicket.ajax.markup.html.navigation.paging.AjaxPagingNavigator ; import wicket.markup.html.WebMarkupContainer; import wicket.markup.html.basic.Label; import wicket.markup.html.form.Form ; import wicket.markup.html.form.TextField; import wicket.markup.html.link.Link; import wicket.markup.html.list.ListItem; import wicket.markup.html.list.PageableListView; import wicket.markup.html.panel.FeedbackPanel ; import wicket.model.AbstractReadOnlyModel; import wicket.model.CompoundPropertyModel ; import wicket.model.Model; import wicket.model.ResourceModel; /** * Panel to make a Dossier Search and display the results * * @author gm */ public class DossierSearchPanel extends BasePanel { private SearchDossierModel m_cSearchDossierModel = new SearchDossierModel(); private ArrayListDossierSearchResult m_cSearchResults= new ArrayListDossierSearchResult(); public DossierSearchPanel(String id) { //Call super base panel super(id); // create feedback panel to show errors final FeedbackPanel feedback = new FeedbackPanel(searchFeedback); //add feedback panel feedback.setOutputMarkupId(true); add(feedback); // create form with markup id setter so it can be updated via ajax Form form = new Form(dossierSearchForm, new CompoundPropertyModel(m_cSearchDossierModel)); form.setOutputMarkupId(true); form.add(new Label(legend, new ResourceModel(fields.legend))); form.add(new Label(nameLabel, new ResourceModel( fields.name))); //Construct TextFields TextField cNameTextField= new TextField(name); TextField cLastNameTextField= new TextField(lastName); //add Fields to the form form.add(cNameTextField); form.add(new Label
[Wicket-user] AJAX Button on my Form inside a Panel needs 2 clicks to do a search
Sorry but I cannot find what the problem is. I've search Nabble. - Hello every one, I have a page that uses a panel (code ahead) that has a form with an AJAX button, it works fine, but some times I have to click on the Search button 2 times to make it work. I think it has to do with URLs or something because when it happens it changes the url. The code for the page that uses the following panel I don't include because it only has a statement saying add(new SearchPanel(etc... Here is the code, can some one help? ps: If any other comments like, your code sucks, please also include them. thanks a bunch f(t) and here is the code: package ch.logismata.wicket.panels.ajax; import ch.logismata.serverwrapper.DossierSearch; import ch.logismata.serverwrapper.DossierSearchResult ; import ch.logismata.serverwrapper.DossierSearchResultList; import ch.logismata.wicket.pages.NewDossier; import ch.logismata.wicket.panels.BasePanel; import java.io.Serializable; import java.util.ArrayList ; import wicket.AttributeModifier; import wicket.Component; import wicket.PageParameters; import wicket.ajax.AjaxRequestTarget; import wicket.ajax.markup.html.form.AjaxSubmitButton; import wicket.ajax.markup.html.navigation.paging.AjaxPagingNavigator ; import wicket.markup.html.WebMarkupContainer; import wicket.markup.html.basic.Label; import wicket.markup.html.form.Form; import wicket.markup.html.form.TextField; import wicket.markup.html.link.Link; import wicket.markup.html.list.ListItem; import wicket.markup.html.list.PageableListView; import wicket.markup.html.panel.FeedbackPanel; import wicket.model.AbstractReadOnlyModel; import wicket.model.CompoundPropertyModel ; import wicket.model.Model; import wicket.model.ResourceModel; /** * Panel to make a Dossier Search and display the results * * @author gm */ public class DossierSearchPanel extends BasePanel { private SearchDossierModel m_cSearchDossierModel = new SearchDossierModel(); private ArrayListDossierSearchResult m_cSearchResults= new ArrayListDossierSearchResult(); public DossierSearchPanel(String id) { //Call super base panel super(id); // create feedback panel to show errors final FeedbackPanel feedback = new FeedbackPanel(searchFeedback); //add feedback panel feedback.setOutputMarkupId(true); add(feedback); // create form with markup id setter so it can be updated via ajax Form form = new Form(dossierSearchForm, new CompoundPropertyModel(m_cSearchDossierModel)); form.setOutputMarkupId(true); form.add(new Label(legend, new ResourceModel(fields.legend ))); form.add(new Label(nameLabel, new ResourceModel( fields.name ))); //Construct TextFields TextField cNameTextField= new TextField(name); TextField cLastNameTextField= new TextField(lastName); //add Fields to the form form.add(cNameTextField); form.add(new Label(lastNameLabel, new ResourceModel( fields.lastName))); form.add(cLastNameTextField); ///Add pageable table final WebMarkupContainer datacontainer = new WebMarkupContainer(data); datacontainer.setOutputMarkupId(true); add(datacontainer); Model modelForList = new Model(){ public Object getObject(Component component){ return m_cSearchResults; } }; final PageableListView listview = new PageableListView(rows, modelForList, 10) { protected void populateItem(final ListItem item) { final DossierSearchResult dossierSearchResult = (DossierSearchResult)item.getModelObject(); item.add(new Link(goToDetail) { public void onClick() { setResponsePage(NewDossier.class, new PageParameters(dossierId=+dossierSearchResult.getDossierObjectId())); } }.add(new Label(composedName, dossierSearchResult.getComposedName(; item.add(new Label(streetAddress, dossierSearchResult.getStreetWithNumber ())); item.add(new AttributeModifier(class, true, new AbstractReadOnlyModel() { public Object getObject(Component component) { return (item.getIndex () % 2 == 1) ? even : odd; } })); } }; if(m_cSearchResults.size()==0){ } listview.setOutputMarkupId (true); datacontainer.add(listview); datacontainer.add(new AjaxPagingNavigator(navigator, listview)); datacontainer.setVersioned(false); // add a button that can be used to submit the form via ajax form.add(new AjaxSubmitButton(searchButton, form) { protected void onSubmit(AjaxRequestTarget target, Form form) { // repaint the feedback panel so that it is hidden
[Wicket-user] Click Framework
Hi guys, can I have some of your thoughts on the Click Framework? f(t) - 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] Click Framework
Thanks, I also pointed out here that Click didn't use model binding. But I am failing in the way to transmit the importance of that. Because it is argued that from the form. you can do a one line: form.copyTo(YourModel); as long as the field names in your form matches the field names in the model. Can you comment a bit more? Can you please help me on how can I show the importance of model binding? Thanks, f(t) On 6/6/07, pixotec [EMAIL PROTECTED] wrote: I was an user of click. I was fed up of self handling model data. click has no direct linking of pagefields to modelfields. I asked the developers, but they did not see the advantage of doing click the model binding. click uses velocity, wicket html. I prefer the wicket way. Francisco Diaz Trepat - gmail wrote: Hi guys, can I have some of your thoughts on the Click Framework? f(t) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Click-Framework-tf3878438.html#a10991337 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AJAX Button on my Form inside a Panel needs 2 clicks to do a search
Right, I'll try that and tell you how it went. f(t) On 6/6/07, James McLaughlin [EMAIL PROTECTED] wrote: Looks good. What version of wicket are you using? And the second time you click DossierSearch, the time when no wicket ajax debug shows up, do a view source and see if the proper wicket-ajax js files are in the head section. Another thing I would suggest is using Bookmarkable links in your menu for Dossier search. You are using regular links, and that is why your url changes. best, jim On 6/6/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Here is the video. It is .AVI file made with CamStudio, an Open-source project. and it is inside a rar. f(t) On 6/6/07, James McLaughlin [EMAIL PROTECTED] wrote: Hi Francisco, I can't see anything logically wrong with your code, all though there are things I would have done differently. What is the output of the wicket ajax debug panel when you click on the ajax submit button? If you want some advice, I would suggest not using a pageablelistview and not keeping your search results as an instance member (unless they are very expensive to create). Instead, look into using DefaultDataTable or extending DataTable. That way you can put all your search logic in your IDataProvider (such as SortableDataProvider), and retrieve only the results you will display in the current page, and not carry them around in the session after the request is over. Hope this helps. best, jim On 6/6/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Sorry but I cannot find what the problem is. I've search Nabble. - Hello every one, I have a page that uses a panel (code ahead) that has a form with an AJAX button, it works fine, but some times I have to click on the Search button 2 times to make it work. I think it has to do with URLs or something because when it happens it changes the url. The code for the page that uses the following panel I don't include because it only has a statement saying add(new SearchPanel(etc... Here is the code, can some one help? ps: If any other comments like, your code sucks, please also include them. thanks a bunch f(t) and here is the code: package ch.logismata.wicket.panels.ajax; import ch.logismata.serverwrapper.DossierSearch; import ch.logismata.serverwrapper.DossierSearchResult ; import ch.logismata.serverwrapper.DossierSearchResultList; import ch.logismata.wicket.pages.NewDossier; import ch.logismata.wicket.panels.BasePanel; import java.io.Serializable; import java.util.ArrayList ; import wicket.AttributeModifier; import wicket.Component; import wicket.PageParameters; import wicket.ajax.AjaxRequestTarget; import wicket.ajax.markup.html.form.AjaxSubmitButton ; import wicket.ajax.markup.html.navigation.paging.AjaxPagingNavigator ; import wicket.markup.html.WebMarkupContainer; import wicket.markup.html.basic.Label; import wicket.markup.html.form.Form ; import wicket.markup.html.form.TextField; import wicket.markup.html.link.Link; import wicket.markup.html.list.ListItem; import wicket.markup.html.list.PageableListView; import wicket.markup.html.panel.FeedbackPanel ; import wicket.model.AbstractReadOnlyModel; import wicket.model.CompoundPropertyModel ; import wicket.model.Model; import wicket.model.ResourceModel; /** * Panel to make a Dossier Search and display the results * * @author gm */ public class DossierSearchPanel extends BasePanel { private SearchDossierModel m_cSearchDossierModel = new SearchDossierModel(); private ArrayListDossierSearchResult m_cSearchResults= new ArrayListDossierSearchResult(); public DossierSearchPanel(String id) { //Call super base panel super(id); // create feedback panel to show errors final FeedbackPanel feedback = new FeedbackPanel(searchFeedback); //add feedback panel feedback.setOutputMarkupId(true); add(feedback); // create form with markup id setter so it can be updated via ajax Form form = new Form(dossierSearchForm, new CompoundPropertyModel(m_cSearchDossierModel)); form.setOutputMarkupId(true); form.add(new Label(legend, new ResourceModel(fields.legend))); form.add(new Label(nameLabel, new ResourceModel( fields.name))); //Construct TextFields TextField cNameTextField= new TextField(name); TextField cLastNameTextField= new TextField(lastName); //add Fields to the form form.add(cNameTextField); form.add(new Label(lastNameLabel, new ResourceModel(fields.lastName))); form.add(cLastNameTextField); ///Add pageable table
Re: [Wicket-user] Click Framework
I think this message was not for me. Either that, or I didn't understand you. Wicket uses this storage and so far so good. So does Seaside and I wouldn't expect ASP critics on this framework... :P best regards, f(t) On 6/6/07, Matej Knopp [EMAIL PROTECTED] wrote: It's not only about the binding. Form values - Form bean that's just one part. The other is deciding where the bean is stored. In session? Sure. But if you manually store it into session you are going to get into troubles sooner or later. Will you store it under a key? Great. But what if user opens the page in another window and wants to edit another entity. Will you not forget to remove the state from session? All model 2 applications I've seen leaked somehow when it went to session state. And it was not nice numbers. It's all about state management. -Matej On 6/6/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Thanks, I also pointed out here that Click didn't use model binding. But I am failing in the way to transmit the importance of that. Because it is argued that from the form. you can do a one line: form.copyTo(YourModel); as long as the field names in your form matches the field names in the model. Can you comment a bit more? Can you please help me on how can I show the importance of model binding? Thanks, f(t) On 6/6/07, pixotec [EMAIL PROTECTED] wrote: I was an user of click. I was fed up of self handling model data. click has no direct linking of pagefields to modelfields. I asked the developers, but they did not see the advantage of doing click the model binding. click uses velocity, wicket html. I prefer the wicket way. Francisco Diaz Trepat - gmail wrote: Hi guys, can I have some of your thoughts on the Click Framework? f(t) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Click-Framework-tf3878438.html#a10991337 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - 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] extending and reusing form (and eventually any component)
Diego I have been encapsulating functionality of a Demo app into panels and worked preaty good. A Login panel can then be added wherever and whenever we needed. f(t) On 6/6/07, diego [EMAIL PROTECTED] wrote: Hi, i have an inner form that i want to modularize (the class and the html), but the only way that came up to my mind to do this is creating a new class that extends Panel, add the form to it (as inner too but this time into the extended panel) and put in a html file my code inside wicket:panel/wicket:panel. It works, but at this time i'm not modularizing a form but a panel... Is there some way to get BarForm.java BarForm.html and in the html code of the page where i want to add this extended form put just something like form wicket:id=myBarForm/form and in my page just add(new BarForm(myBarForm)) and the form rendered had been taken from BarForm.html? tanks. :P - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] AJAX Button on my Form inside a Panel needs 2 clicks to do a search
Hello every one, I have a page that uses a panel (code ahead) that has a form with an AJAX button, it works fine, but some times I have to click on the Search button 2 times to make it work. I think it has to do with URLs or something because when it happens it changes the url. The code for the page that uses the following panel I don't include because it only has a statement saying add(new SearchPanel(etc... Here is the code, can some one help? ps: If any other comments like, your code sucks, please also include them. thanks a bunch f(t) and here is the code: package ch.logismata.wicket.panels.ajax; import ch.logismata.serverwrapper.DossierSearch; import ch.logismata.serverwrapper.DossierSearchResult; import ch.logismata.serverwrapper.DossierSearchResultList; import ch.logismata.wicket.pages.NewDossier; import ch.logismata.wicket.panels.BasePanel; import java.io.Serializable; import java.util.ArrayList; import wicket.AttributeModifier; import wicket.Component; import wicket.PageParameters; import wicket.ajax.AjaxRequestTarget; import wicket.ajax.markup.html.form.AjaxSubmitButton; import wicket.ajax.markup.html.navigation.paging.AjaxPagingNavigator; import wicket.markup.html.WebMarkupContainer; import wicket.markup.html.basic.Label; import wicket.markup.html.form.Form; import wicket.markup.html.form.TextField; import wicket.markup.html.link.Link; import wicket.markup.html.list.ListItem; import wicket.markup.html.list.PageableListView; import wicket.markup.html.panel.FeedbackPanel; import wicket.model.AbstractReadOnlyModel; import wicket.model.CompoundPropertyModel; import wicket.model.Model; import wicket.model.ResourceModel; /** * Panel to make a Dossier Search and display the results * * @author gm */ public class DossierSearchPanel extends BasePanel { private SearchDossierModel m_cSearchDossierModel = new SearchDossierModel(); private ArrayListDossierSearchResult m_cSearchResults= new ArrayListDossierSearchResult(); public DossierSearchPanel(String id) { //Call super base panel super(id); // create feedback panel to show errors final FeedbackPanel feedback = new FeedbackPanel(searchFeedback); //add feedback panel feedback.setOutputMarkupId(true); add(feedback); // create form with markup id setter so it can be updated via ajax Form form = new Form(dossierSearchForm, new CompoundPropertyModel(m_cSearchDossierModel)); form.setOutputMarkupId(true); form.add(new Label(legend, new ResourceModel(fields.legend ))); form.add(new Label(nameLabel, new ResourceModel(fields.name ))); //Construct TextFields TextField cNameTextField= new TextField(name); TextField cLastNameTextField= new TextField(lastName); //add Fields to the form form.add(cNameTextField); form.add(new Label(lastNameLabel, new ResourceModel( fields.lastName))); form.add(cLastNameTextField); ///Add pageable table final WebMarkupContainer datacontainer = new WebMarkupContainer(data); datacontainer.setOutputMarkupId(true); add(datacontainer); Model modelForList = new Model(){ public Object getObject(Component component){ return m_cSearchResults; } }; final PageableListView listview = new PageableListView(rows, modelForList, 10) { protected void populateItem(final ListItem item) { final DossierSearchResult dossierSearchResult = (DossierSearchResult)item.getModelObject(); item.add(new Link(goToDetail) { public void onClick() { setResponsePage(NewDossier.class, new PageParameters(dossierId=+dossierSearchResult.getDossierObjectId())); } }.add(new Label(composedName, dossierSearchResult.getComposedName(; item.add(new Label(streetAddress, dossierSearchResult.getStreetWithNumber())); item.add(new AttributeModifier(class, true, new AbstractReadOnlyModel() { public Object getObject(Component component) { return (item.getIndex() % 2 == 1) ? even : odd; } })); } }; if(m_cSearchResults.size()==0){ } listview.setOutputMarkupId(true); datacontainer.add(listview); datacontainer.add(new AjaxPagingNavigator(navigator, listview)); datacontainer.setVersioned(false); // add a button that can be used to submit the form via ajax form.add(new AjaxSubmitButton(searchButton, form) { protected void onSubmit(AjaxRequestTarget target, Form form) { // repaint the feedback panel so that it is hidden searchDossiers(m_cSearchDossierModel.getName(), m_cSearchDossierModel.getLastName()); if(m_cSearchResults.size()==0){
Re: [Wicket-user] wicket did not make the grade.
Sorry to barge in, but... I what I really don't get is: Is these science or fiction? Because if those are the kind of arguments... Then I must agree with Peter, its a waste of time, and just say that. They don't see Struts-2 for what it is, they don't see Wicket for what it is. What is the point indeed of trying? f(t) On 6/5/07, Florian Hehlen [EMAIL PROTECTED] wrote: hi, oops! first a correction: Struts seems heavy on the java-code required for things that are pretty simple with Struts should have read Wicket seems heavy on the java-code required for things that are pretty simple with Struts2 Struts 2 is a complete re-wite... yes and no. It's nothing like struts 1.x. But it's pretty much a re-branded version of WebWorks. In other words the Struts team marketing strategy worked: Use a well known name and put something else behind it. regards, florian Matej Knopp wrote: But you've decided to use struts2. Struts 2 is a complete rewrite, it's different than struts 1. -Matej On 6/5/07, Florian Hehlen [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, The 3 key arguments against wicket were: -It will be easier to hire someone with Struts knowledge on top of the fact that we have some in-house knowledge with it. -Struts is the de-facto standard with a lot of community/vendor/documentation support -Struts seems heavy on the java-code required for things that are pretty simple with struts I agree that it was not a pure technology issue in the end and that the comparison was not purely on technical capabilities. The ability to build clean self-contained components as wicket allows was not at all appreciated. They did not see the potential for us to build our own custom components on top. Oddly enough that was seen as an improper separation of concern because then java is used for presentation aspects like layout. Frankly I think this is an idea that has been manufactured by other frameworks to sell their scattered technology/markup/syntax framework approaches. I have dabbled with other frameworks and thought that for default behavior it would be nice not to have a line of code per label in a table. There was a comment that there is different handling in a DataView. But is that true? I have used them and I had to add new Label(...) in the populateItem() method. anyways... what can you do... I still think wicket is a pretty dam good framework. thanks, florian Peter Thomas wrote: I am sad to announce that my company did not choose to use wicket after comparison with struts 2. :-( One criticism that came out as we were looking at Wicket code was that there seems to be a need to write a lot of Java code in a ListView for such things as displaying a table. Although I did not see this issue as out-weighing all the benefits, many of my colleagues did. All I'll say is that I'm personally sure this is not about technology - this has to be politics, and these colleagues must have already learnt Struts2 and want to protect their investment or have the misconception that Struts2 == Struts1. Or maybe they were swayed by some presentation that used job search statistics to compare web ui frameworks... Sometimes it is a waste of time to try and convince people. Been there done that. Just move on. Regards, Peter. - 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 [EMAIL PROTECTED]://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 [EMAIL PROTECTED]://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 [EMAIL PROTECTED]://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/
Re: [Wicket-user] wicket did not make the grade.
Is it possible to agree more with this post? f(t) On 6/5/07, James McLaughlin [EMAIL PROTECTED] wrote: Hi Florian, To be honest, you should have titled this post My team did not make the grade. There are many developers in the world whose skill and ambition rise little above cut and paste robot, and many burned out managers who have decided employees will never be capable of much else. Struts is a perfect framework choice where such conditions coincide. If you are in such a place right now, then for the love of all things holy, move on before your soul, and skills, languish. On the other hand, if you work for a place where the power of OOP is understood, and developer creativity is required and appreciated, Wicket will be the most natural choice. jim On 6/5/07, Florian Hehlen [EMAIL PROTECTED] wrote: Hi, The comparison was a bit skewed where I showed the richness of such components as a DataView(sortable and pageable) in wicket and that was compared with a simple static table on Struts 2. Johan Compagner wrote: Wicket if adding those low-level components was only necessary when one wants to add special handling, formating, validation, etc. and where is then the binding specified? What kind of data should be displayed where? Well how about simply binding a DataView to a the Model and assume that for all wicket:id in the html template I should find a getter method in the bean? regards, Florian PS: I agree wiith all you guys that this is not a big issue... that it's more a question of style/philospophy and possibly fashion. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Have to click 2 times to get my search results
(); DossierSearch cDossierSearch; DossierSearchResultList cDossierSearchResultList; cDossierSearch = new DossierSearch(); if(name==null){ name = ; } if(lastName==null){ lastName = ; } cDossierSearch.setFirstName(name); cDossierSearch.setName(lastName); cDossierSearchResultList = cDossierSearch.search(); message = cDossierSearchResultList.size()0?cDossierSearchResultList.size()+ Dossiers found at search.:No Dossiers found at search.; info(message); for(int iIterator=0;iIterator cDossierSearchResultList.size ();iIterator++){ m_cSearchResults.add((DossierSearchResult)cDossierSearchResultList.getItem(iIterator)); } /* for(int iIterator=0;iIterator100;iIterator++){ DossierSearchResultEntity cDossierResultEntity = new DossierSearchResultEntity(DossierObjectId-+iIterator, ComposedName-+iIterator, StreetWithNumber-+iIterator, ZipWithLocation-+iIterator, iIterator); m_cSearchResults.add(cDossierResultEntity); }*/ } catch(Exception xException){ message = Error Occured at DossierSearchPanel.searchDossiers().\n+xException.toString(); error(message); } } public boolean isVisible() { return getWicketSession().isUserLoggedIn(); } /** simple java bean. */ private static class SearchDossierModel implements Serializable { private String name, lastName; /** * Gets lastName. * * * @return lastName */ public String getLastName() { return lastName; } /** * Sets lastName. * * * @param lastName *lastName */ public void setLastName(String lastName) { this.lastName = lastName; } /** * Gets name. * * @return name */ public String getName() { return name; } /** * Sets name. * * @param name *name */ public void setName(String name) { this.name = name; } } } On 5/31/07, Johan Compagner [EMAIL PROTECTED] wrote: that code doesn't say much (for example where is the ajax code?) don't you have a small quickstart application ? On 5/30/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Johan many thanks for answering I think so. Here is the structure of the code: 1) A panel that contains a Form (fields name and lastName) and a Table (PageableListView). 2) A small SearchPage like this: public DossierSearch() { super(); add(new ch.logismata.wicket.panels.ajax.DossierSearchPanel (ajaxDossierSearchPanel)); } f(t) On 5/29/07, Johan Compagner [EMAIL PROTECTED] wrote: Are you sure that you don't set another page to render in the ajax button submit code?? Because if you a pure ajax call and you don't set anohter response page then the url in your browser shouldn't change johan On 5/29/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Hi all, I have the following behavior: On one side of a Page I have a list of links (acting as a menu :P) that is created by building links by obtaining the page class NameOfThePage.class. That gives me the url: http://localhost:8084/WicketDemo?wicket:bookmarkablePage=:ch.logismata.wicket.pages.DossierSearch Then I click on my AJAX Submit button to get a search result, but instead of that, the page is refreshed, now with this url: http://localhost:8084/WicketDemo?wicket:interface=:8:1 : Then I click the AJAX SubmitButton and everything works fine. This happens most times, but I don't know how yet, sometimes it works on the first step. Best regards, f(t) - 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] Have to click 2 times to get my search results
Johan many thanks for answering I think so. Here is the structure of the code: 1) A panel that contains a Form (fields name and lastName) and a Table (PageableListView). 2) A small SearchPage like this: public DossierSearch() { super(); add(new ch.logismata.wicket.panels.ajax.DossierSearchPanel (ajaxDossierSearchPanel)); } f(t) On 5/29/07, Johan Compagner [EMAIL PROTECTED] wrote: Are you sure that you don't set another page to render in the ajax button submit code?? Because if you a pure ajax call and you don't set anohter response page then the url in your browser shouldn't change johan On 5/29/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Hi all, I have the following behavior: On one side of a Page I have a list of links (acting as a menu :P) that is created by building links by obtaining the page class NameOfThePage.class. That gives me the url: http://localhost:8084/WicketDemo?wicket:bookmarkablePage=:ch.logismata.wicket.pages.DossierSearch Then I click on my AJAX Submit button to get a search result, but instead of that, the page is refreshed, now with this url: http://localhost:8084/WicketDemo?wicket:interface=:8:1 : Then I click the AJAX SubmitButton and everything works fine. This happens most times, but I don't know how yet, sometimes it works on the first step. Best regards, f(t) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Have to click 2 times to get my search results
Hi all, I have the following behavior: On one side of a Page I have a list of links (acting as a menu :P) that is created by building links by obtaining the page class NameOfThePage.class. That gives me the url: http://localhost:8084/WicketDemo?wicket:bookmarkablePage=:ch.logismata.wicket.pages.DossierSearch Then I click on my AJAX Submit button to get a search result, but instead of that, the page is refreshed, now with this url: http://localhost:8084/WicketDemo?wicket:interface=:8:1: Then I click the AJAX SubmitButton and everything works fine. This happens most times, but I don't know how yet, sometimes it works on the first step. Best regards, f(t) - 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] How to format a TextField to get a valid Date
Hi can some one point me on how to format a text field to get a date like ' dd.MM.yy' and then, when submitting the form get a clean pass? you see I am getting a not a valid date message. regards, f(t) - 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] I AM NOT RECEIVING THE MAILING LIST ANYMORE
I just read a reply from Chuck about a DateTextField. Sorry guys I didn't get the mail. but I read it on Nabble. cheers, f(t) - 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] Date Validation occured on formatted field (dd.MM.yyyy)
Hi I have the following TextField and DatePicket. When I submit I get a validation of type: '15.05.1959' is not a valid Date. //create textfield - validate it with the Date type TextField dateOfBirth = new TextField(dateOfBirth, Date.class); //add a validator for range between a person born a maximum of 100 years ago and today dateOfBirth.add(DateValidator.range(getMinimumDateAllowedForDateOfBirth(), getMaximumDateAllowedForDateOfBirth())); //set also as required dateOfBirth.setRequired(true); //add the textfield form.add(dateOfBirth); //Create DatePicker DatePicker datePicker = new DatePicker(datePicker, dateOfBirthLabel, dateOfBirth); //create date converter DateConverter dateConverter = new DateConverter(); //Set the DateFormat and Locales dateConverter.setDateFormat(getWicketSession().getLocale(), new SimpleDateFormat(dd.MM.)); //asign the converter to the date picker datePicker.setDateConverter(dateConverter); //Add the datepicker form.add(datePicker); What Am I missing, can't see it. f(t) - 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] Tapestry vs. Wicket
Elco is at it but last time we asked him I think he said something about 2/3rds. f(t) On 5/15/07, craigdd [EMAIL PROTECTED] wrote: I started looking at tapestry today, for some reason through out all my webapp development experience I never have taken a look at it. With that said I see a lot of similarities to wicket. Can someone point out the advantages that wicket has over tapestry. Kind of a side note, and I little off subject, but does anyone know the process of the Wicket in Action book? -Craig -- View this message in context: http://www.nabble.com/Tapestry-vs.-Wicket-tf3760084.html#a10627847 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Too much spam on the wicket-user list
Excelent ! ^_^ On 5/9/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Hope is soon too. How is the Apache incubation going, by the way? Getting close we hope :) Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Struts 2 Vs. Wicket (Need some highlights)
I haven't program that much on swing, but is it wicket so much like swing. I think they share the new Component and add(new Component()) etc. But other than that... Could it be possible than they share some concept like nested components but that with HTML not wicket. I don't see how a mapping or server-side HTML output component would be so much different. Wicket is brilliant and is much better than swing. :-) _ f(t) On 5/9/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Just curious, when you say developers' skills play a role, do you think that either component or action based frameworks are considerably harder to program in than the other? Wicket requires you to understand object oriented programming and have a decent command of Java. If you have been working with PHP without much other programming in your career, getting used to Wicket might be difficult. Otoh, if you are used to server side programming and desktop UI programming etc, you'll probably find Wicket *easier* than the action based frameworks, as - hopefully - the programming model just makes more sense and it will enable you to reuse much of what you already know about programming. Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Too much spam on the wicket-user list
What is going on? Apart from reporting the spam to my local google account, is there a procedure for reporting it to the mailing list server? Very, ultra, super, low priority question. Cheers, f(t) - 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] Too much spam on the wicket-user list
You don't think there is spam in the list? I'll forward all the stock quotes I'm getting in images (jpg, gif) I already have word filters too. Hope is soon too. How is the Apache incubation going, by the way? cheers, f(t) On 5/8/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Don't think so. We already have spam filters set high etc. Apache is much better in filtering, so I'm afraid we just have to be patient until we move the user list there (should be soon if all goes well). Eelco On 5/8/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: What is going on? Apart from reporting the spam to my local google account, is there a procedure for reporting it to the mailing list server? Very, ultra, super, low priority question. Cheers, f(t) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Struts 2 Vs. Wicket (Need some highlights)
Guys I need some points I could talk to highlight Wicket over Struts 2 in a professional matter. Inside I'll think wicket rulz and struts sucked and know struts-2 sucks a little less. But still. Can you please contribute to make some sounded statements that would better point out Wicket over Struts-2? On a not so formal decision board I would like to vote in favor of Wicket. I already did this for Wicket Vs. Click. Thanks in advance, /f(t) - 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] How may I access a Panel A from another Panel B (Ajax)?
Hello, I have two panels, one that is mostly a form for login (user/pass +button) and the other panel is just a link (onClick==logou). Now I changed the button for the login form to an ajax button. Everythig works fine. The thing is that I had a code something like this in the logout panel. @Override public boolean isVisible(){ return getMyWicketSession().isUserLoggedIn(); } this code made every round trip evaluate whether the user was still logged in and if so then render the appropriate option to logout. how could I add to the target, the logout panel, do I need to pass it through the constructor : private final logoutPanel; public LoginPanel(String id, LogoutPanel panel){ logoutPanel = panel; } AjaxonSubmit(target...{ target.add(logoutPanel) } ?? Or could I just set in the constructor of the LogoutPanel setOutputMarkupId(true) and then call on it from the onSubmit AJAX button? I am a bit lost on this. Or could I just add a simple JavaScript document.getElementById('logoutPanel').style.visibility = visible; f(t) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How may I access a Panel A from another Panel B (Ajax)?
That looks about right, I'll tested right away. On 5/4/07, Igor Vaynberg [EMAIL PROTECTED] wrote: or just keep a field class mypage extends webpage { private panel a; private panel b; public mypage() { a=new MyLoginPanel(...) { protected void onLogout(AjaxRequestTarget target) { target.add(b); target.add(a); } } b=new MyLogoutPanel(...); } -igor On 5/4/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Hello, I have two panels, one that is mostly a form for login (user/pass +button) and the other panel is just a link (onClick==logou). Now I changed the button for the login form to an ajax button. Everythig works fine. The thing is that I had a code something like this in the logout panel. @Override public boolean isVisible(){ return getMyWicketSession().isUserLoggedIn(); } this code made every round trip evaluate whether the user was still logged in and if so then render the appropriate option to logout. how could I add to the target, the logout panel, do I need to pass it through the constructor : private final logoutPanel; public LoginPanel(String id, LogoutPanel panel){ logoutPanel = panel; } AjaxonSubmit(target...{ target.add(logoutPanel) } ?? Or could I just set in the constructor of the LogoutPanel setOutputMarkupId(true) and then call on it from the onSubmit AJAX button? I am a bit lost on this. Or could I just add a simple JavaScript document.getElementById('logoutPanel').style.visibility = visible; f(t) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Good Tutorial on core wicket
Hello everyone, I am about to buy this book called pro wickethttp://www.amazon.com/Pro-Wicket-Experts-Voice-Java/dp/1590597222/ref=pd_bbs_sr_1/103-4798570-8657439?ie=UTF8s=booksqid=1178205890sr=8-1 . But until it gets here (Argentina) would anyone point me in the right direction to read something on-line. What I am looking for is a tutorial / reference / on-line book / etc. covering the CORE, architecture, vision, a guide on how to structure your design. I have very successfully built a good enough demo, so I got around the reference samples, some docs, and this mailing list. But I cannot say at all that I know wicket. I would very much like to learn more about its internals 'cause I think that will also guide me to better designs by knowing more of wicket potentials. Thanks in advance, f(t) PS: Does the name wicket comes from being a real wicked as in cool or awsome framework or from the name of the cutest EWOK on Episode 6? XD. - 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] Good Tutorial on core wicket
H igor, thanks, but could you be more specific. I do think I browsed the wiki but couldn't find what I was looking for. For instance: http://cwiki.apache.org/WICKET/documentation-index.html appears to list many referential How to's but not core framework architecture. I know there is a little bit in many of the reference samples. But is there a paper on module architecture and core objects. Other than the javadoc I mean. francisco On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: our wiki has links to various articles that might be of help to you. browsing the wiki is usually also good. -igor On 5/3/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Hello everyone, I am about to buy this book called pro wicket http://www.amazon.com/Pro-Wicket-Experts-Voice-Java/dp/1590597222/ref=pd_bbs_sr_1/103-4798570-8657439?ie=UTF8s=booksqid=1178205890sr=8-1 . But until it gets here (Argentina) would anyone point me in the right direction to read something on-line. What I am looking for is a tutorial / reference / on-line book / etc. covering the CORE, architecture, vision, a guide on how to structure your design. I have very successfully built a good enough demo, so I got around the reference samples, some docs, and this mailing list. But I cannot say at all that I know wicket. I would very much like to learn more about its internals 'cause I think that will also guide me to better designs by knowing more of wicket potentials. Thanks in advance, f(t) PS: Does the name wicket comes from being a real wicked as in cool or awsome framework or from the name of the cutest EWOK on Episode 6? XD. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Good Tutorial on core wicket
Right, I'll start to compile things. On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: as far as models go http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models -igor On 5/3/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: I will be glad to help out in any way. Here are my thoughts to the community. If we could talk about core wiket ideas and implementations, for instance: Models (Concept, interfaces, implementations) Session Application Pages Listeners Versioning Request and Response Cycles Page Life Cycle. The thing is, it is not the same (AT ALL) to build a wicket application than it is to build a struts application (Other than struts sucks :P) which are the concepts and design guidelines we should have? That is what I am trying to address. Because of my current infinite ignorance, I might not be the right person to build this type of document. Although I could write some docs after I get an Idea from the Book Pro-Wicket or Wicket-Pro (don't remember just know) and migrate to 1.3, and do some other demos. I think I could start writing in about a month or so. Other than that any thing else I could do would be nice to help out. Regards, f(t) On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: i dont think we have something that is focused on the core architecture. if you have specific questions we will be happy to answer them and maybe you can compile them into a document. it is hard to find time to work specifically on high level documentation because this list, coding, jira, javadoc, etc take up a lot of time. by the time someone gets to a point where they have enough knowledge to write such docs they are usually buried in fixing bugs :) -igor On 5/3/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: H igor, thanks, but could you be more specific. I do think I browsed the wiki but couldn't find what I was looking for. For instance: http://cwiki.apache.org/WICKET/documentation-index.html appears to list many referential How to's but not core framework architecture. I know there is a little bit in many of the reference samples. But is there a paper on module architecture and core objects. Other than the javadoc I mean. francisco On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: our wiki has links to various articles that might be of help to you. browsing the wiki is usually also good. -igor On 5/3/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Hello everyone, I am about to buy this book called pro wicket http://www.amazon.com/Pro-Wicket-Experts-Voice-Java/dp/1590597222/ref=pd_bbs_sr_1/103-4798570-8657439?ie=UTF8s=booksqid=1178205890sr=8-1 . But until it gets here (Argentina) would anyone point me in the right direction to read something on-line. What I am looking for is a tutorial / reference / on-line book / etc. covering the CORE, architecture, vision, a guide on how to structure your design. I have very successfully built a good enough demo, so I got around the reference samples, some docs, and this mailing list. But I cannot say at all that I know wicket. I would very much like to learn more about its internals 'cause I think that will also guide me to better designs by knowing more of wicket potentials. Thanks in advance, f(t) PS: Does the name wicket comes from being a real wicked as in cool or awsome framework or from the name of the cutest EWOK on Episode 6? XD. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get
Re: [Wicket-user] Good Tutorial on core wicket
Can we vote on this issue? can I call this an issue? Igor gracefully pointed me to the Model article in the wiki, but this article is mostly Object Structure, and How to Apply it... but lacks a little on how is model updated and passed throughout the framework. It surely taught me though. :) Is it possible to ask understood community members to divide papers or small overview articles on different aspects like the ones listed below? And therefore we might have some good data to compile into a nice PDF regarding Wicket's inner workings and architecture. With a good paper like that one, the goal would be to auto-answer questions like this one: *Is it possible to use setMarkupStream to assign html to a web page?* (posted a minute ago by Thomas R. Corbin) This is a question regarding inner workings, because the Answer is some IMarkupResourceStreamProvider, and where is this information a part from articles on How-To's. Wicket is Awsome, this should be written on some paper showing architecture and core components behavior. regards to all, -f(t) On 5/3/07, Matthew Kwong [EMAIL PROTECTED] wrote: I'm not new to Wicket, I'm using it for about a year, but there still a lot aspects obscure to me like PageMap, page versioning, details of page request cycle and so on. me too, I also think some more core concept needs more documentation, pro wicket is nice and can get you going with tables, ajax, pages, tabbedpanel etc, but 300pages does not reach to the point of explaining tons of stuffs, especially with new 1.3 features. I was waiting Wicket in action, any news still after the constructor changes drop? Matthew Paolo Di Tommaso wrote: Anyway Francisco is right, I'm also thinking that Wicket is really missing a good tutorial about core concepts. I'm not new to Wicket, I'm using it for about a year, but there still a lot aspects obscure to me like PageMap, page versioning, details of page request cycle and so on. Wicket is really a good framework that covers every details of the web application stack (and they are many and many not just web page rendering ..), but I'm thinking that a good tutorial about Wicket core concepts would be very useful to novice users as well as experts. Thank you. - Paolo On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: as far as models go http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models -igor On 5/3/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: I will be glad to help out in any way. Here are my thoughts to the community. If we could talk about core wiket ideas and implementations, for instance: Models (Concept, interfaces, implementations) Session Application Pages Listeners Versioning Request and Response Cycles Page Life Cycle. The thing is, it is not the same (AT ALL) to build a wicket application than it is to build a struts application (Other than struts sucks :P) which are the concepts and design guidelines we should have? That is what I am trying to address. Because of my current infinite ignorance, I might not be the right person to build this type of document. Although I could write some docs after I get an Idea from the Book Pro-Wicket or Wicket-Pro (don't remember just know) and migrate to 1.3, and do some other demos. I think I could start writing in about a month or so. Other than that any thing else I could do would be nice to help out. Regards, f(t) On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: i dont think we have something that is focused on the core architecture. if you have specific questions we will be happy to answer them and maybe you can compile them into a document. it is hard to find time to work specifically on high level documentation because this list, coding, jira, javadoc, etc take up a lot of time. by the time someone gets to a point where they have enough knowledge to write such docs they are usually buried in fixing bugs :) -igor On 5/3/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: H igor, thanks, but could you be more specific. I do think I browsed the wiki but couldn't find what I was looking for. For instance: http://cwiki.apache.org/WICKET/documentation-index.html appears to list many referential How to's but not core framework architecture. I know there is a little bit in many of the reference samples. But is there a paper on module architecture and core objects. Other than the javadoc I mean. francisco On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: our wiki has links to various articles that might be of help to you. browsing the wiki is usually also good. -igor On 5/3/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Hello everyone, I am about to buy this book called
Re: [Wicket-user] Good Tutorial on core wicket
LOL @ my 2c. My intension is not to point a defect or assign responsibility but to highlight a nice to have document/paper/whatever to address architecture design and core framework inner workings. If Elco is reading this, or Martijn, then please guys, put a chapter on it, or put some chapters on core framework. It would make an important book to have on wicket. regards to all, f(t) PS: Unanswered question, is it or not Wicket named after the ewok? ¬_¬' On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: you can feel free to vote, but i would warn to expect very little help from the core committer group. like i said, between doing everything else we have no time to write a book. in fact eelco and martijn are working on wicket in action and so definetely do not have time to write another. i dont know if they are planning on having chapters that cover this stuff. you might want to discuss that with them. maybe they are willing to add user contributions to the book on this, maybe not, maybe they are already writing about this. what we are available for is to answer specific questions. the rest is up to the users. we have the wiki, feel free to collaborate with others and ask us for clarifications/reviews. my 2c. -igor On 5/3/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Can we vote on this issue? can I call this an issue? Igor gracefully pointed me to the Model article in the wiki, but this article is mostly Object Structure, and How to Apply it... but lacks a little on how is model updated and passed throughout the framework. It surely taught me though. :) Is it possible to ask understood community members to divide papers or small overview articles on different aspects like the ones listed below? And therefore we might have some good data to compile into a nice PDF regarding Wicket's inner workings and architecture. With a good paper like that one, the goal would be to auto-answer questions like this one: *Is it possible to use setMarkupStream to assign html to a web page?* (posted a minute ago by Thomas R. Corbin) This is a question regarding inner workings, because the Answer is some IMarkupResourceStreamProvider, and where is this information a part from articles on How-To's. Wicket is Awsome, this should be written on some paper showing architecture and core components behavior. regards to all, -f(t) On 5/3/07, Matthew Kwong [EMAIL PROTECTED] wrote: I'm not new to Wicket, I'm using it for about a year, but there still a lot aspects obscure to me like PageMap, page versioning, details of page request cycle and so on. me too, I also think some more core concept needs more documentation, pro wicket is nice and can get you going with tables, ajax, pages, tabbedpanel etc, but 300pages does not reach to the point of explaining tons of stuffs, especially with new 1.3 features. I was waiting Wicket in action, any news still after the constructor changes drop? Matthew Paolo Di Tommaso wrote: Anyway Francisco is right, I'm also thinking that Wicket is really missing a good tutorial about core concepts. I'm not new to Wicket, I'm using it for about a year, but there still a lot aspects obscure to me like PageMap, page versioning, details of page request cycle and so on. Wicket is really a good framework that covers every details of the web application stack (and they are many and many not just web page rendering ..), but I'm thinking that a good tutorial about Wicket core concepts would be very useful to novice users as well as experts. Thank you. - Paolo On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: as far as models go http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models -igor On 5/3/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: I will be glad to help out in any way. Here are my thoughts to the community. If we could talk about core wiket ideas and implementations, for instance: Models (Concept, interfaces, implementations) Session Application Pages Listeners Versioning Request and Response Cycles Page Life Cycle. The thing is, it is not the same (AT ALL) to build a wicket application than it is to build a struts application (Other than struts sucks :P) which are the concepts and design guidelines we should have? That is what I am trying to address. Because of my current infinite ignorance, I might not be the right person to build this type of document. Although I could write some docs after I get an Idea from the Book Pro-Wicket or Wicket-Pro (don't remember just know) and migrate to 1.3, and do some other demos. I think I could start writing in about a month or so. Other than that any thing
Re: [Wicket-user] Good Tutorial on core wicket
Right. I'll take this last mail to respond others as well. Sorry to hear your book is still on production as I've read some great articles and blogs and I was looking foward to reading the book. But nevertheless it seams very positive that the reason is so many fixes and upcoming good features. To Scot. Thanks, yes I've read it. And it was helpful. I'll still say that for me, the great magic behind wicket is inside of it, and there is litle written about it. Great achievements in wicket, come, in my opinion, from knowing how it works inside. But I also agree 110% that priority comes first for helping others and improving the framework. best wishes, frank On 5/3/07, Eelco Hillenius [EMAIL PROTECTED] wrote: On 5/4/07, Igor Vaynberg [EMAIL PROTECTED] wrote: you can feel free to vote, but i would warn to expect very little help from the core committer group. like i said, between doing everything else we have no time to write a book. in fact eelco and martijn are working on wicket in action and so definetely do not have time to write another. i dont know if they are planning on having chapters that cover this stuff. you might want to discuss that with them. maybe they are willing to add user contributions to the book on this, maybe not, maybe they are already writing about this. what we are available for is to answer specific questions. the rest is up to the users. we have the wiki, feel free to collaborate with others and ask us for clarifications/reviews. my 2c. I agree. And as great as having better documentation would be, we're still giving priority to this list, IRC and fixing bugs and implementing improvements. So I'd say we're better at supporting our current users, than making it easy for new ones to join in. Best thing that can happen is just someone taking it up. Some users have been very helpful with the Wicket (probably at least half of the content is written by users, not team members), and that's really great. Maybe someday someone will take up the job to write the ultimate guide to Wicket. He/ she would should get all the help we could give. :) Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Setting Visible (setVisible) inside onAttach(). Is this Right?
Hi, I have this working code. But I feel I'am mistaking and this is not the most apropiate place for it. Very simple, a logout panel (just a link) that on attached sets itself visible or not. Here is the code. public class LogoutPanel extends BasePanel { /** Creates a new instance of LogoutPanel */ public LogoutPanel(String id) { super(id); //Create logout link Link cLogoutLink = new Link(logoutLink) { //Logout action public void onClick() { //Logout getWicketSession().logout(); setResponsePage(Index.class); } }; //add class attribute. cLogoutLink.add(new AttributeModifier(class, true, new AbstractReadOnlyModel() { public Object getObject(Component component) { return headerWiteLink; } })); //add the logoutLink add(cLogoutLink); } protected void onAttach() { //Verify visible status setVisible(getWicketSession().isUserLoggedIn()); } } This works fine, but is it the correct way of doing this? Some comments on it could really help. f(t) - 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] Setting Visible (setVisible) inside onAttach(). Is this Right?
Excelent. That means that isVisible is called every page refresh? Thanks On 4/24/07, Igor Vaynberg [EMAIL PROTECTED] wrote: change protected void onAttach() { //Verify visible status setVisible(getWicketSession().isUserLoggedIn()); } to boolean isVisible() { return getWicketSession().isUserLoggedIn(); } imho that is better -igor On 4/24/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Hi, I have this working code. But I feel I'am mistaking and this is not the most apropiate place for it. Very simple, a logout panel (just a link) that on attached sets itself visible or not. Here is the code. public class LogoutPanel extends BasePanel { /** Creates a new instance of LogoutPanel */ public LogoutPanel(String id) { super(id); //Create logout link Link cLogoutLink = new Link(logoutLink) { //Logout action public void onClick() { //Logout getWicketSession().logout(); setResponsePage(Index.class); } }; //add class attribute. cLogoutLink.add(new AttributeModifier(class, true, new AbstractReadOnlyModel() { public Object getObject(Component component) { return headerWiteLink; } })); //add the logoutLink add(cLogoutLink); } protected void onAttach() { //Verify visible status setVisible(getWicketSession().isUserLoggedIn()); } } This works fine, but is it the correct way of doing this? Some comments on it could really help. f(t) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Setting Visible (setVisible) inside onAttach(). Is this Right?
Great, thanks Igor. On 4/24/07, Igor Vaynberg [EMAIL PROTECTED] wrote: yes, any time the component is rendered -igor On 4/24/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Excelent. That means that isVisible is called every page refresh? Thanks On 4/24/07, Igor Vaynberg [EMAIL PROTECTED] wrote: change protected void onAttach() { //Verify visible status setVisible(getWicketSession().isUserLoggedIn()); } to boolean isVisible() { return getWicketSession().isUserLoggedIn(); } imho that is better -igor On 4/24/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Hi, I have this working code. But I feel I'am mistaking and this is not the most apropiate place for it. Very simple, a logout panel (just a link) that on attached sets itself visible or not. Here is the code. public class LogoutPanel extends BasePanel { /** Creates a new instance of LogoutPanel */ public LogoutPanel(String id) { super(id); //Create logout link Link cLogoutLink = new Link(logoutLink) { //Logout action public void onClick() { //Logout getWicketSession().logout(); setResponsePage(Index.class); } }; //add class attribute. cLogoutLink.add(new AttributeModifier(class, true, new AbstractReadOnlyModel() { public Object getObject(Component component) { return headerWiteLink; } })); //add the logoutLink add(cLogoutLink); } protected void onAttach() { //Verify visible status setVisible(getWicketSession().isUserLoggedIn()); } } This works fine, but is it the correct way of doing this? Some comments on it could really help. f(t) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Validation of Date Range with DateValidator.
Hi again group, I have the following problem. I use a DateValidator.range(min, max) to add a validation to a text field. Everything works fine, but as soon as I change the locale to german, french, or italian, it does not validate again. It keeps validating wether or not is required but not the range. What could it be? Is it because I don't have the proper message under the german and french locales but the messages are there for the default locale (in this case english) ? could this be? Here is the code: ... //Create date of birth label, text field, and date picker WebMarkupContainer dateOfBirthLabel = new WebMarkupContainer(dateOfBirthLabel); //add label form.add(dateOfBirthLabel); //create textfield - validate it with the Date type TextField dateOfBirth = new TextField(dateOfBirth, Date.class); //add a validator for range between a person born a maximum of 100 years ago and today dateOfBirth.add(DateValidator.range(getMinimumDateAllowedForDateOfBirth(), getMaximumDateAllowedForDateOfBirth())); //set also as required dateOfBirth.setRequired(true); //add the textfield form.add(dateOfBirth); //Create DatePicker DatePicker datePicker = new DatePicker(datePicker, dateOfBirthLabel, dateOfBirth); //create date converter DateConverter dateConverter = new DateConverter(); //Set the DateFormat and Locales dateConverter.setDateFormat(getWicketSession().getLocale(), new SimpleDateFormat(dd.MM.)); //asign the converter to the date picker datePicker.setDateConverter(dateConverter); //Add the datepicker form.add(datePicker); private Date getMinimumDateAllowedForDateOfBirth(){ Calendar now = Calendar.getInstance(); now.add(Calendar.YEAR, -MAXIMUM_LIFE_EXPECTANCY); //MAXIMUM_LIFE_EXPECTANCY=100 return now.getTime(); } private Date getMaximumDateAllowedForDateOfBirth(){ Calendar now = Calendar.getInstance(); return now.getTime(); } f(t) - 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] Logging Out (What to do with the session)
Hello everyone, I was wondering for a proper way to handle sessions and logging in and out of a wicket application in general. The thing is as follows. I have a Session called WicketSession, inside of which I use a CORBA BUISINESS object labeled m_cSession to do a Login. WicketSession has the following two methods: /** * Terminates the logged user for this Session. */ public void logout() { //Verify user isn't logged out already if (!m_bUserLoggedIn) { return; } //Execute a logout try { m_cSession.logout(); m_bUserLoggedIn = false; m_cSessionLocale = Locale.getDefault(); } catch (Exception xException) { m_bUserLoggedIn = false; m_cSessionLocale = Locale.getDefault(); } } /** * Initiates logged user for this Session. */ public void login(String sUserId, String sUserPassword) { //Verify input data and that the user isn't logged in already if (m_bUserLoggedIn || sUserId == null || sUserPassword == null) { m_bUserLoggedIn = false; return; } //Execute a login try { //create a session m_cSession = new ch.logismata.serverwrapper.Session(); //set user and password m_cSession.setId(sUserId); m_cSession.setPassword(sUserPassword); //Execute and verify login if (m_cSession.login() != null) { m_bUserLoggedIn = true; } } catch (Exception xException) { m_bUserLoggedIn = false; } } ... Very plain. The thing is this, Session also maintains certain state already in wicket, and a question was: Should I invalidate the session? If I do, can I redirect the user to a Home Page where he would get a new session going-on? Is this a proper approach? Usually when I close the Tab on my Firefox and I Call to the site, the Session is also remembered as the Locale is maintain as that of the last state (before I close the tab). Why is this? Sorry if my questions may feel sordid. f(t) - 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] Logging Out (What to do with the session)
Off the top of your head again? ¬_¬ (me needs that head). Great thanks. On 4/24/07, Igor Vaynberg [EMAIL PROTECTED] wrote: yes i would invalidate the session: onclick() { final string url=urlfor(HomePage.class); getsession().invalidate(); getrequestcycle().pushTarget(new RedirectRequestTarget(url)); } something like that -igor On 4/24/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Hello everyone, I was wondering for a proper way to handle sessions and logging in and out of a wicket application in general. The thing is as follows. I have a Session called WicketSession, inside of which I use a CORBA BUISINESS object labeled m_cSession to do a Login. WicketSession has the following two methods: /** * Terminates the logged user for this Session. */ public void logout() { //Verify user isn't logged out already if (!m_bUserLoggedIn) { return; } //Execute a logout try { m_cSession.logout(); m_bUserLoggedIn = false; m_cSessionLocale = Locale.getDefault(); } catch (Exception xException) { m_bUserLoggedIn = false; m_cSessionLocale = Locale.getDefault(); } } /** * Initiates logged user for this Session. */ public void login(String sUserId, String sUserPassword) { //Verify input data and that the user isn't logged in already if (m_bUserLoggedIn || sUserId == null || sUserPassword == null) { m_bUserLoggedIn = false; return; } //Execute a login try { //create a session m_cSession = new ch.logismata.serverwrapper.Session(); //set user and password m_cSession.setId(sUserId); m_cSession.setPassword(sUserPassword); //Execute and verify login if (m_cSession.login() != null) { m_bUserLoggedIn = true; } } catch (Exception xException) { m_bUserLoggedIn = false; } } ... Very plain. The thing is this, Session also maintains certain state already in wicket, and a question was: Should I invalidate the session? If I do, can I redirect the user to a Home Page where he would get a new session going-on? Is this a proper approach? Usually when I close the Tab on my Firefox and I Call to the site, the Session is also remembered as the Locale is maintain as that of the last state (before I close the tab). Why is this? Sorry if my questions may feel sordid. f(t) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Logging Out (What to do with the session)
Great, both of them worked. Only this: getRequestCycle().setRequestTarget(new RedirectRequestTarget(url)); On 4/24/07, Eelco Hillenius [EMAIL PROTECTED] wrote: onclick() { final string url=urlfor(HomePage.class); getsession().invalidate(); getrequestcycle().pushTarget(new RedirectRequestTarget(url)); } Or just onClick() { Session.get().invalidate(); // invalidated after the request is handled setResponsePage(Home.class); } This works for sure when your home page is stateless (and bookmarkable of course). And I think it should work in other cases as well. If not, you can try Session.get().invalidateNow(); Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Logging Out (What to do with the session)
In the message that I sent I am sure that the text that Igor sent was included. if not here it is: Igor Vaynberg wrote:: onclick() { final string url=urlfor(HomePage.class); getsession().invalidate(); getrequestcycle().pushTarget(new RedirectRequestTarget(url)); } Only this: getRequestCycle().setRequestTarget(new RedirectRequestTarget(url)); Instead of this: getrequestcycle().pushTarget That is what I meant. On 4/24/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Great, both of them worked. Only this: getRequestCycle().setRequestTarget(new RedirectRequestTarget(url)); What do you mean? Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] DropDownChoice from ResourceBundles
Hi everyone, I was wondering if there is a more automatic way of building a DropDownChoice out of resource bundles. Here is the case: 1- I have form inside a panel, which in turn has a dropdownchoice that has to be built with options on a resource bundle for i18n reasons. In this case Relationship type DEFAUL LANG: relationships.single=Single relationships.married=Married relationships.domesticPartenrship=Domestic Partnership relationships.registeredPartnership=Registered Partnership DEUTSCH: relationships.single=Alleine relationships.married=Gemeinsam (verheiratet) relationships.domesticPartenrship=Konkubinat relationships.registeredPartnership=Eingetragene Partnerschaft 2- I need to make the ORDINAL POSITION of the list (e.g. Married = 2, or 1+1) I suspect by the example in component reference that something like this could be done with some clever coding. f(t) - 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] DropDownChoice from ResourceBundles
Of the top of your head worked up fine!!! Thanks. Heres is the final code. private class MappedDropDownChoice extends DropDownChoice { private final Map mapValues; public MappedDropDownChoice(String id, final Map values) { super(id); this.mapValues=values; setChoices(new ArrayList(this.mapValues.keySet())); setChoiceRenderer(new IChoiceRenderer() { public Object getDisplayValue(Object object) { return mapValues.get(object); } public String getIdValue(Object object, int index) { return object.toString(); } }); } public boolean localizeDisplayValues(){ return true; } } Thanks again. wicket rulez] _ _ On 4/23/07, Igor Vaynberg [EMAIL PROTECTED] wrote: off the top of my head something like this might do it class mappeddropdownchoice extends dropdownchoice { private map val; public mappeddropdownchoice(string id, final map val) { super(id); this.val=val; setchoices(map.keys()); setchoicerenderer(new ichoicerenderer()) { getdisplayvalue(object o) { return val.get(o); } getidvalue(object o) { return o.tostring(); } }); } map map=new hashmap(); map.put(1, relationships.single); ... add(new mappeddropdownchoice(id,map) { boolean localizeDisplayValues() { return true; }}); -igor On 4/23/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Hi everyone, I was wondering if there is a more automatic way of building a DropDownChoice out of resource bundles. Here is the case: 1- I have form inside a panel, which in turn has a dropdownchoice that has to be built with options on a resource bundle for i18n reasons. In this case Relationship type DEFAUL LANG: relationships.single=Single relationships.married=Married relationships.domesticPartenrship =Domestic Partnership relationships.registeredPartnership=Registered Partnership DEUTSCH: relationships.single =Alleine relationships.married=Gemeinsam (verheiratet) relationships.domesticPartenrship=Konkubinat relationships.registeredPartnership=Eingetragene Partnerschaft 2- I need to make the ORDINAL POSITION of the list (e.g. Married = 2, or 1+1) I suspect by the example in component reference that something like this could be done with some clever coding. f(t) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket performance
Zdrasztbuite Gaspadin Maksimov. And hello to everyone else. I am working with some coworkers in different demos of web-frameworks to evaluate the best suited for us. I started with Struts2 and before one colleague almost drops Wicket I took in the challenge of building the demo, and it is awsome, almost as good as seaside ;). I am so glad and exited (sound very geeky) about it. And I am please to say that wicket is now on the semi-finals with Click, after almost being discarded. Click is a lie, but I cannot say that professionally. Please let me know about some issues, or items I can highlight about wicket and that I can also say about Click. Or also if you can guide me a bit. I already read a few threads in nabble. In regards with Gaspadin Maksimov's message and thread also some pointers on performance cool deals with wicket would be nice. cheers, francisco On 4/19/07, Alexey Maksimov [EMAIL PROTECTED] wrote: On Wed, 18 Apr 2007 09:48:18 -0700 Igor Vaynberg [EMAIL PROTECTED] wrote: i thought you were making fun of us, and i quote Maybe I missed option like 'wicket-speed = 2x'? ;-) I just meant option like development/deployment or maybe option for experimental speedup or something like that. Ok, folks. I APOLOGIZE for that. have you tried searching this list/wiki for scalability performance concurrent sessions before posting your message? I tried to search wiki (http://cwiki.apache.org/WICKET) for 'wicket performance' and 'wicket scalablity' to almost no results. The most hopeful link was 'newuserguide' but section about scalability is empty there. these topics have been discussed to no end and i am tired of regurgitating the same answers over and over and over and over again for newbies who do not bother to give us the courtesy of spending 15 minutes and doing research. If it's indeed frequently asked question, then why not put a common answer to the FAQ page? I hope my apology will close that matter. Best regards, Alexey. - 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] What is Component Versioning (isVersioned())
Eelco, thanks for the thorough explanation. On 4/19/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Basically, it says whether a component supports back button or not when component replacement is used (and less importantly, when setModel is used). If it doesn't support versioning, a stable URL will be generated when a change in hierarchy or state occurs, so that clicking the back button will take you back to the last bookmarkable or versioned page. The wizard component makes use of this, as you want users to use the wizard's buttons, not the browser's buttons. If it does support versioning, an 'unstable' link will be created when a change occurs. An example of this is our implementations of pageable lists. How rolling back of changes is implemented depends on the session store that is being used. In 1.3's default, older instances of whole pages are serialized to second level store (temp dir on disk by default), and when rolling back, the appropriate version is read back in. But with the other session store implementation we provide with Wicket, HttpSessionStore, changes are recorded as delta objects in the page instance where it applies to. When the back button is used, a roll back is executed using the recorded delta objects. This is cheaper when (part of) the history is kept in RAM (which is the case with HttpSessionStore), but doesn't make sense for the second level cache store as we would still have to serialize the references to the page etc. Eelco On 4/19/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Hello everyone, Can someone explain or guide me towards what is the meaning of a component being versioned or not? f(t) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user