Re: [Wicket-user] The problem about encoding and event in ajax
Dear ??, The problem is because you can not encode Chinese characters in ISO-8859-1. You must use UTF-8 throughout your application. String newInput = new String(input.getBytes(iso8859-1), UTF-8); first converts the string to ISO8859-1 and thereby replaces all Chinese characters with a ?. Please make sure that the HTML pages that Wicket renders are in UTF-8. This true by default, but to be sure you could do getRequestCycleSettings().setResponseRequestEncoding(UTF-8) Then replace the line above with: String newInput = input; Regards, Erik. 王磊 schreef: I just try to write a book about wicket.(It's written in chinese,and it's free to get a e-book). But while i writing a ajax example,i got a stange problem. I writed a auto-complete text application with AutoCompleteTextField control. But i got the following 2 problems. 1. If i input a chinese word,no request is sent to the server side.(I write println in server application,no output). 2. If in input a chinese word,then input a letter like 'd',the server side will get a string input like ???d, it's in wrong code. I use the following code to get the right input. String newInput = new String(input.getBytes(iso8859-1), UTF-8); I think these problems are caused by javascript,because i am not familiar with javascript. So i can't give reasons. May somebody can give a patch. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] INPUT (+ value, + onClick) as Button?
You will not be able to see the difference between optimalization... String.equals() does exactly that, it test for length Aha! This is new for me. The last time I checked (Java 1.3) there were are least 2 instanceof operators in the implementation of String.equals(String) and no length checking. I just checked the Java 5 implementation. It looks a lot better, but there is still 1 instanceof operator. Anyway, another myth busted. Erik. Johan Compagner schreef: You will not be able to see the difference between optimalization... String.equals() does exactly that, it test for length and where we just do this .equals(value) without testing for null i will not rewrite those by first testing null to be able to call for length. On 9/21/06, *Erik van Oosten* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: If this gets accepted, may I humbly suggest to replace value != null !.equals(value) with value != null value.length() != 0 The latter performs considerably faster (though it is of course still a micro optimization). Regards, Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ Manuel Barzi schreef: Ok, Igor, I already solved this issue by re-implementing Link class in my custom LinkButton class, just adding the following snippet extracted from Button class, and added to the original onComponentTag Link in this new LinkButton class: --- // Default handling for tag super.onComponentTag(tag); // manuelbarzi { // setting the value property to the tag try { String value = getModelObjectAsString(); if (value != null !.equals(value)) { tag.put(value, value); } } catch (Exception e) { // ignore. } // } // Set href to link to this link's linkClicked method --- It works fine now. May this simple addition be interesting for other people needing this functionality, you'll judge according to statistics... Thank you and regards, Manu - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] INPUT (+ value, + onClick) as Button?
and where we just do this .equals(value) without testing for null i will not rewrite those by first testing null to be able to call for length. This is wrong, we never said so. Just meant switching from [nullability-check] !.equals(value) to [nullability-check] value.length() != 0... ONLY THOSE DUETS! Re-read it, you will see. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] DownDownChoice problem
Gwyn Evans wrote: What does c.getMyOptionValue() return? This... public HomePage() { add(new DropDownChoice( options, new Model(getMyOptionValue()), OPTIONS) { protected String getDefaultChoice(final Object selected) { return ; // remove Choose One prompt } }); } private String getMyOptionValue() { return Opt2; } } works as you'd expect. (The ChoiceRenderer() wasn't doing anything). /Gwyn getMyOptionValue() actually returns an Integer. What I'm trying to acomplish is this: in my Client object I have stored an Integer myOptionValue, and there are 3 possible options, so I want to show an edit form with a dropdownchoice with those 3 options and have the selected option to be the one that corresponds to the Integer I have stored in myOptionValue. For Integer(1) - Opt1, Integer(2) - Opt2, etc. - posto - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] The problem about encoding and event in ajax
In fact, i use utf-8 as my coding. The following is the content of the html. ?xml version=1.0 encoding=UTF-8? html head meta http-equiv=Content-Type content=text/html; charset=UTF-8 /head body form wicket:id=formCountry: input type=text wicket:id=ac size=50 //form /body /html I also tried many ways 1.keep meta charset or remove it. 2.keep ?xml version=1.0 encoding=UTF-8? or remove it. I can't get the right result. Another problem You can copy a chinese word and paste to the AutoCompleteTextField, no event will fired.You can see it in the server side. - Original Message - From: Erik van Oosten [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Friday, September 22, 2006 3:03 PM Subject: Re: [Wicket-user] The problem about encoding and event in ajax Dear ??, The problem is because you can not encode Chinese characters in ISO-8859-1. You must use UTF-8 throughout your application. String newInput = new String(input.getBytes(iso8859-1), UTF-8); first converts the string to ISO8859-1 and thereby replaces all Chinese characters with a ?. Please make sure that the HTML pages that Wicket renders are in UTF-8. This true by default, but to be sure you could do getRequestCycleSettings().setResponseRequestEncoding(UTF-8) Then replace the line above with: String newInput = input; Regards, Erik. 王磊 schreef: I just try to write a book about wicket.(It's written in chinese,and it's free to get a e-book). But while i writing a ajax example,i got a stange problem. I writed a auto-complete text application with AutoCompleteTextField control. But i got the following 2 problems. 1. If i input a chinese word,no request is sent to the server side.(I write println in server application,no output). 2. If in input a chinese word,then input a letter like 'd',the server side will get a string input like ???d, it's in wrong code. I use the following code to get the right input. String newInput = new String(input.getBytes(iso8859-1), UTF-8); I think these problems are caused by javascript,because i am not familiar with javascript. So i can't give reasons. May somebody can give a patch. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] INPUT (+ value, + onClick) as Button?
He is just saying he doesn't want to rewrite the cases that do not have a null check. Please re-read yourself ;) Manuel Barzi schreef: and where we just do this .equals(value) without testing for null i will not rewrite those by first testing null to be able to call for length. This is wrong, we never said so. Just meant switching from [nullability-check] !.equals(value) to [nullability-check] value.length() != 0... ONLY THOSE DUETS! Re-read it, you will see. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] DatePicker broken in IE6
Hi Matej, Here is a quickstart showing the two problems I have encountered. 1) The following configuration is mandatory if you use the french language with IE6 : getRequestCycleSettings().setResponseRequestEncoding(ISO-8859-1); Unless you use this, IE6 reports a Javascript error because the french script with the monthes names reports an unterminated string for every name containing accented characters. This problem does not occur with FF. 2) Anyway, the datePicker does not work in FF nor IE6. In IE6, it will work only if the page is entirely loaded. If it is in a component loaded through Ajax, it does not work (the setup script is not executed) In Firefox, it does not work either unless the script has previously been executed. You can see this by uncommenting the datePicker in the first tab, so it is loaded with the page. That way, it will work in the two tabs. (In IE6, it will work only in the first tab). (I have removed the jars in the lib directory to reduce the size of the zip - I also changed the extension since zip is blocked by the list server) Pierre-Yves Matej Knopp a écrit : Can you provide a test case? Or quick start project? I haven't encountered this behavior. I'd like to look at it but I'd need to reproduce it. -Matej Pierre-Yves Saumont wrote: It appears that under some conditions, the script associated with the date picker in the HTML is not executed when the HTML is loaded through Ajax. So Calendar.setup never get called. I could not figure what those secific conditions are. (In a simple use case, it works without problem.) Any idea where to look for? Pierre-Yves Pierre-Yves Saumont a écrit : Just don't use an ajax link to switch the locale. That's not a super idea anyway, as you would typically want the the whole page, with all it's markup etc to reload. Change the switch locale link to a normal link and all should be good. One use case is the need to have the page in ono language and teh datePicker in another one. Another use case could be to have to datePicker in the same page with different languages. Anyway, I figured a way to achieve this, but it was just to realize that it appears that the datePicker can't work anyway in a component that is updated through Ajax. I have an Ajax tabbed panel with one tab containing a datePicker. If I swith to another tab and switch back, the datePicker won't work anymore in IE6 unless the page is reloaded. (No error displayed, just you click on the icon and nothing happens. It works fine in FF, of course) Any suggestion ? Pierre-Yves Eelco Hillenius a écrit : Can somebody tell me how to use setStyle() with a DatePicker settings.setStyle(settings.newStyleGreen()); or (completely custom style) settings.setStyle(new PackageResourceReference(MyDatePicker.class, myStyle.css)); DatePickerSettings datePickerSetting = new DatePickerSettings(); datePickerSetting.setAlign(cr); add(new DatePicker(dateFieldPicker, dateField, datePickerSetting)); but this does not work. With this configuration, when I click on the icon, the DatePicker is not displayed. If I remove the second line, it works. No idea. Please take a look at what jscalendar does/ expects, as many fields are just a means to pass values through to that components. Read about jscalendar here: http://www.dynarch.com/projects/calendar/ Another problem is to configure the DatePicker in a page which locale is switched through an Ajax link. Although the component containing the DatePicker receives the response, the locale of the DatePicker is not changed. I have to reload the teh page to get it work. Is there a solution to have the DatePicker refreshed so its locale is changed ? Just don't use an ajax link to switch the locale. That's not a super idea anyway, as you would typically want the the whole page, with all it's markup etc to reload. Change the switch locale link to a normal link and all should be good. Eelco - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net
Re: [Wicket-user] The problem about encoding and event in ajax
Hello, I missed the point that you are using the AutoCompleteTextField. Sorry, can't help you there. Erik. 王磊 schreef: In fact, i use utf-8 as my coding. The following is the content of the html. ?xml version=1.0 encoding=UTF-8? html head meta http-equiv=Content-Type content=text/html; charset=UTF-8 /head body form wicket:id=formCountry: input type=text wicket:id=ac size=50 //form /body /html I also tried many ways 1.keep meta charset or remove it. 2.keep ?xml version=1.0 encoding=UTF-8? or remove it. I can't get the right result. Another problem You can copy a chinese word and paste to the AutoCompleteTextField, no event will fired.You can see it in the server side. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] INPUT (+ value, + onClick) as Button?
He is just saying he doesn't want to rewrite the cases that do not have a null check. Very weill, but the question is: whoever promoted that idea? Seems to be auto-promoted and auto-rejected... ;) Anyway, have a nice day! - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] TinyMCE integration
Ok that is good news, but we still have the problem that the licenses of TinyMCE and Wicket might be incompatible.On 9/22/06, Eelco Hillenius [EMAIL PROTECTED] wrote:Checked it now, and the current release of tinymce does not work well. However, this issuehttp://sourceforge.net/tracker/index.php?func=detailaid=1440124group_id=103281atid=635682 suggests the problem I'm experiencing will be gone with the nextrelease.EelcoOn 9/21/06, Eelco Hillenius [EMAIL PROTECTED] wrote: I also have an open bug report for the system that I'm working on that tinymce doesn't work well with the latest Safari. I haven't checked that yet though... maybe other people have experience with that? Eelco On 9/21/06, Martijn Dashorst [EMAIL PROTECTED] wrote: Just one caveat: tinymce is LGPL last time I checked... not sure how this works out, but you can't guarantee that the CMS is then Apache licensed (if that is what you're aiming for). Martijn On 9/21/06, Janne Hietamäki [EMAIL PROTECTED] wrote: On Sep 21, 2006, at 10:31 AM, Ted Roeloffzen wrote: Some of you may know that we are trying to create a CMS or a least CMS-components with Wicket. When i looked at the Wicket-stuff sitea saw that there is a project to integrate TinyMCE into Wicket. Iwas wondering if anyone knows how far along this project is. It could be a fine addition to the CMS-components. wicket-contrib-tinymce works greatfor me, just give it a try. Janne - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Download Wicket 1.2.2 now! New Ajax components: Tree, TreeTable and ModalWindow -- http://wicketframework.org - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] INPUT (+ value, + onClick) as Button?
Indeed 8) I should probably be denied write-access to this list for at least a week. None of my e-mails seem to hit the mark at the moment. Erik. Manuel Barzi schreef: He is just saying he doesn't want to rewrite the cases that do not have a null check. Very weill, but the question is: whoever promoted that idea? Seems to be auto-promoted and auto-rejected... ;) Anyway, have a nice day! -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Database Integration With Wicket
Hi, i justtook a closer look at the wicket-phonebook. can anyone pointme to the sourceode for it? - i can get the war from http://wicket-stuff.sourceforge.net/wicket-phonebook/but dont finda source for it... (maybe im just too blind?). Oh, and another thing:on the http://wicket-stuff.sourceforge.net/wicket-phonebook/pagethe first threelinks under "Related Projects" are broken! Best Regards Korbinian PS: just another question: im currently working myself through EJB3.0 from Oreilly, and are curious if we have any wicket example that uses EJB3 and Java Persistence 1.0 - i think i read about a project someone dida time ago on this list. If this person would share a base project skeleton with some beans would be great... Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Igor VaynbergGesendet: Donnerstag, 21. September 2006 16:57An: wicket-user@lists.sourceforge.netBetreff: Re: [Wicket-user] Database Integration With Wicket look at wicket-phonebook, it uses wicket and spring. there are dao implementations for hibernate and ibatis, but it would be trivial to write one for jdbc. spring takes care of all the connection/transaction management for you. if you dont want spring and want to write something for pure jdbc i would store a datasource in application, and subclass request cycle to open/close/rollback/commit the transaction assuming you want a single-transaction-per-request pattern. -Igor On 9/21/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: Okay I know of all the contrib projects, databinder, hibernate stuffs etc, I have used databinder and its lovely but I think for some reason, database in wicket needs to be sort of easier to put up to encourage faster adaptation. Come to think about it, presently most of the present solutions around database in Wicket wraps around Hibernate and a beginner who is not familair with hibernate may get stuck. Some developers still tend to love thier SQL thing compared to ORM and in some cases, you want to do direct SQL cuz hibernate3.jar is some size you may not need to include in your portable web application. And believe me, i believe more ppl learn SQL more than they learn ORM in SchoolsYesterday, I was tryin to use Dababinder or wicket-contrib-dababase but at the same time i was using the wicket-auth framework and all these contibs enforce that you extend XXXApplication in your Application Class which means you cannot directly use Contrib projects e.g wicket-contrib-database and also Wicket-auth. There should be a more elegant way to use multiple contrib projects without this Inheritance lock jam.Now most web applications need authentication and also need database which is why i believe wicket shoud somehow integrate some DAO scheme into wicket where all we do is set connection properties and from Components, you can fly CRUD. Well i know there must be some good reasons to exclude this from wicket but what will be the most elegant way to do CRUD in wicket? where should I store my Connection? Session or Application Class. Should I create a parent WebPage with all the SQL stuffs and then make other CRUD pages extend it. a hundred ways to do this but which way is more elegant? Thanks Wicket dads-- "It takes insanity to drive in sanity" - MeAladejebi Ayodeji A., DabarObjects SolutionsEmail: [EMAIL PROTECTED] Mobile: +234 803 589 1780Web: www.dabarobjects.comCommunity:www.cowblock.net -Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Database Integration With Wicket
I use PriDE. It's extremely small and easy to learn - basically it generates SQL for you. http://pride.sourceforge.net/ I've designed a number of supporting classes and coding conventions that give me some more advanced features (still light weight). I've been meaning to look at what exists in terms of Wicket database/persistence code to see if what I've done could be integrated/merged with that. At the moment my code only depends on PriDE. What kind of integration are you talking about? Isn't it a good idea to keep database/persistence code and application/gui code independent? /Anders Eelco Hillenius wrote: If someone would provide a JDBC version of wicket-phonebook, that would be welcome! We talked about wanting this, but haven't found any time to do this ourselves yet. Eelco On 9/21/06, Igor Vaynberg [EMAIL PROTECTED] wrote: look at wicket-phonebook, it uses wicket and spring. there are dao implementations for hibernate and ibatis, but it would be trivial to write one for jdbc. spring takes care of all the connection/transaction management for you. if you dont want spring and want to write something for pure jdbc i would store a datasource in application, and subclass request cycle to open/close/rollback/commit the transaction assuming you want a single-transaction-per-request pattern. -Igor On 9/21/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: Okay I know of all the contrib projects, databinder, hibernate stuffs etc, I have used databinder and its lovely but I think for some reason, database in wicket needs to be sort of easier to put up to encourage faster adaptation. Come to think about it, presently most of the present solutions around database in Wicket wraps around Hibernate and a beginner who is not familair with hibernate may get stuck. Some developers still tend to love thier SQL thing compared to ORM and in some cases, you want to do direct SQL cuz hibernate3.jar is some size you may not need to include in your portable web application. And believe me, i believe more ppl learn SQL more than they learn ORM in Schools Yesterday, I was tryin to use Dababinder or wicket-contrib-dababase but at the same time i was using the wicket-auth framework and all these contibs enforce that you extend XXXApplication in your Application Class which means you cannot directly use Contrib projects e.g wicket-contrib-database and also Wicket-auth. There should be a more elegant way to use multiple contrib projects without this Inheritance lock jam. Now most web applications need authentication and also need database which is why i believe wicket shoud somehow integrate some DAO scheme into wicket where all we do is set connection properties and from Components, you can fly CRUD. Well i know there must be some good reasons to exclude this from wicket but what will be the most elegant way to do CRUD in wicket? where should I store my Connection? Session or Application Class. Should I create a parent WebPage with all the SQL stuffs and then make other CRUD pages extend it. a hundred ways to do this but which way is more elegant? Thanks Wicket dads -- It takes insanity to drive in sanity - Me Aladejebi Ayodeji A., DabarObjects Solutions Email: [EMAIL PROTECTED] Mobile: +234 803 589 1780 Web: www.dabarobjects.com Community: www.cowblock.net - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java - Take Surveys. Earn Cash. Influence the Future of IT Join
Re: [Wicket-user] The problem about encoding and event in ajax
We have had some problems with Ajax and UTF-8 encoding. You'll have to configure the uri encoding on your httpconnector to use UTF-8. In tomcat that would go into your server.xml Martijn On 9/22/06, 王磊 [EMAIL PROTECTED] wrote: In fact, i use utf-8 as my coding. The following is the content of the html. ?xml version=1.0 encoding=UTF-8? html head meta http-equiv=Content-Type content=text/html; charset=UTF-8 /head body form wicket:id=formCountry: input type=text wicket:id=ac size=50 //form /body /html I also tried many ways 1.keep meta charset or remove it. 2.keep ?xml version=1.0 encoding=UTF-8? or remove it. I can't get the right result. Another problem You can copy a chinese word and paste to the AutoCompleteTextField, no event will fired.You can see it in the server side. - Original Message - From: Erik van Oosten [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Friday, September 22, 2006 3:03 PM Subject: Re: [Wicket-user] The problem about encoding and event in ajax Dear ??, The problem is because you can not encode Chinese characters in ISO-8859-1. You must use UTF-8 throughout your application. String newInput = new String(input.getBytes(iso8859-1), UTF-8); first converts the string to ISO8859-1 and thereby replaces all Chinese characters with a ?. Please make sure that the HTML pages that Wicket renders are in UTF-8. This true by default, but to be sure you could do getRequestCycleSettings().setResponseRequestEncoding(UTF-8) Then replace the line above with: String newInput = input; Regards, Erik. 王磊 schreef: I just try to write a book about wicket.(It's written in chinese,and it's free to get a e-book). But while i writing a ajax example,i got a stange problem. I writed a auto-complete text application with AutoCompleteTextField control. But i got the following 2 problems. 1. If i input a chinese word,no request is sent to the server side.(I write println in server application,no output). 2. If in input a chinese word,then input a letter like 'd',the server side will get a string input like ???d, it's in wrong code. I use the following code to get the right input. String newInput = new String(input.getBytes(iso8859-1), UTF-8); I think these problems are caused by javascript,because i am not familiar with javascript. So i can't give reasons. May somebody can give a patch. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Download Wicket 1.2.2 now! New Ajax components: Tree, TreeTable and ModalWindow -- http://wicketframework.org - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Database Integration With Wicket
On 22/09/06, Korbinian Bachl [EMAIL PROTECTED] wrote: Hi, i just took a closer look at the wicket-phonebook. can anyone point me to the sourceode for it? - i can get the war from http://wicket-stuff.sourceforge.net/wicket-phonebook/ but dont find a source for it... (maybe im just too blind?). The source files used in the example are actually in the WAR, albeit next to the class files under WEB-INF/classes, rather than where one might expect to see them. The true source is in the SVN repository, e.g. http://svn.sourceforge.net/viewvc/wicket-stuff/branches/WICKET_1_2/wicket-phonebook/ Oh, and another thing: on the http://wicket-stuff.sourceforge.net/wicket-phonebook/ page the first three links under Related Projects are broken! Thanks, I'll try make time to update the sub-site. /Gwyn -- Download Wicket 1.2.2 now! - http://wicketframework.org - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] INPUT (+ value, + onClick) as Button?
There's also wicket.util.string.Strings#isEmpty (http://wicket.sourceforge.net/apidocs/wicket/util/string/Strings.html#isEmpty(java.lang.CharSequence) to consider... /Gwyn On 22/09/06, Erik van Oosten [EMAIL PROTECTED] wrote: Indeed 8) I should probably be denied write-access to this list for at least a week. None of my e-mails seem to hit the mark at the moment. Erik. Manuel Barzi schreef: He is just saying he doesn't want to rewrite the cases that do not have a null check. Very weill, but the question is: whoever promoted that idea? Seems to be auto-promoted and auto-rejected... ;) Anyway, have a nice day! -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Download Wicket 1.2.2 now! - http://wicketframework.org - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] The problem about encoding and event in ajax
Also it brings some trouble,but i can solve the problem of encoding. But i can't know why there is not a event in the server while i input or paste a chinese word in the AutoCompleteTextField. I am not familiar with javascript. Thanks for your advice . - Original Message - From: Martijn Dashorst [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Friday, September 22, 2006 3:52 PM Subject: Re: [Wicket-user] The problem about encoding and event in ajax We have had some problems with Ajax and UTF-8 encoding. You'll have to configure the uri encoding on your httpconnector to use UTF-8. In tomcat that would go into your server.xml Martijn On 9/22/06, 王磊 [EMAIL PROTECTED] wrote: In fact, i use utf-8 as my coding. The following is the content of the html. ?xml version=1.0 encoding=UTF-8? html head meta http-equiv=Content-Type content=text/html; charset=UTF-8 /head body form wicket:id=formCountry: input type=text wicket:id=ac size=50 //form /body /html I also tried many ways 1.keep meta charset or remove it. 2.keep ?xml version=1.0 encoding=UTF-8? or remove it. I can't get the right result. Another problem You can copy a chinese word and paste to the AutoCompleteTextField, no event will fired.You can see it in the server side. - Original Message - From: Erik van Oosten [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Friday, September 22, 2006 3:03 PM Subject: Re: [Wicket-user] The problem about encoding and event in ajax Dear ??, The problem is because you can not encode Chinese characters in ISO-8859-1. You must use UTF-8 throughout your application. String newInput = new String(input.getBytes(iso8859-1), UTF-8); first converts the string to ISO8859-1 and thereby replaces all Chinese characters with a ?. Please make sure that the HTML pages that Wicket renders are in UTF-8. This true by default, but to be sure you could do getRequestCycleSettings().setResponseRequestEncoding(UTF-8) Then replace the line above with: String newInput = input; Regards, Erik. 王磊 schreef: I just try to write a book about wicket.(It's written in chinese,and it's free to get a e-book). But while i writing a ajax example,i got a stange problem. I writed a auto-complete text application with AutoCompleteTextField control. But i got the following 2 problems. 1. If i input a chinese word,no request is sent to the server side.(I write println in server application,no output). 2. If in input a chinese word,then input a letter like 'd',the server side will get a string input like ???d, it's in wrong code. I use the following code to get the right input. String newInput = new String(input.getBytes(iso8859-1), UTF-8); I think these problems are caused by javascript,because i am not familiar with javascript. So i can't give reasons. May somebody can give a patch. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Download Wicket 1.2.2 now! New Ajax components: Tree, TreeTable and ModalWindow -- http://wicketframework.org - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and
Re: [Wicket-user] Database Integration With Wicket
What kind of integration are you talking about? Isn't it a good idea to keep database/persistence code and application/gui code independent?/AndersIt makes sense to do that when you want to design a larger enteprise application but not for small web applications, why all the issues. when u see a framework like ruby on rails, you will understand why may be soon all web applications on the planet may be using ruby on rails because they keep the simple things really very simple. Eelco Hillenius wrote: If someone would provide a JDBC version of wicket-phonebook, that would be welcome! We talked about wanting this, but haven't found any time to do this ourselves yet. Eelco On 9/21/06, Igor Vaynberg [EMAIL PROTECTED] wrote: look at wicket-phonebook, it uses wicket and spring. there are dao implementations for hibernate and ibatis, but it would be trivial to write one for jdbc. spring takes care of all the connection/transaction management for you. if you dont want spring and want to write something for pure jdbc i would store a datasource in application, and subclass request cycle to open/close/rollback/commit the transaction assuming you want a single-transaction-per-request pattern. -Igor On 9/21/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: Okay I know of all the contrib projects, databinder, hibernate stuffs etc, I have used databinder and its lovely but I think for some reason, database in wicket needs to be sort of easier to put up to encourage faster adaptation. Come to think about it, presently most of the present solutions around database in Wicket wraps around Hibernate and a beginner who is not familair with hibernate may get stuck. Some developers still tend to love thier SQL thing compared to ORM and in some cases, you want to do direct SQL cuz hibernate3.jar is some size you may not need to include in your portable web application. And believe me, i believe more ppl learn SQL more than they learn ORM in Schools Yesterday, I was tryin to use Dababinder or wicket-contrib-dababase but at the same time i was using the wicket-auth framework and all these contibs enforce that you extend XXXApplication in your Application Class which means you cannot directly use Contrib projects e.g wicket-contrib-database and also Wicket-auth. There should be a more elegant way to use multiple contrib projects without this Inheritance lock jam. Now most web applications need authentication and also need database which is why i believe wicket shoud somehow integrate some DAO scheme into wicket where all we do is set connection properties and from Components, you can fly CRUD. Well i know there must be some good reasons to exclude this from wicket but what will be the most elegant way to do CRUD in wicket?where should I store my Connection? Session or Application Class. Should I create a parent WebPage with all the SQL stuffs and then make other CRUD pages extend it. a hundred ways to do this but which way is more elegant? Thanks Wicket dads -- It takes insanity to drive in sanity - Me Aladejebi Ayodeji A., DabarObjects Solutions Email: [EMAIL PROTECTED] Mobile: +234 803 589 1780 Web: www.dabarobjects.com Community: www.cowblock.net - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV --http://ojalgo.org/Mathematics, Linear Algebra and Optimisation with Java-Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT business topics through brief surveys -- and earn cash
Re: [Wicket-user] INPUT (+ value, + onClick) as Button?
There's also wicket.util.string.Strings#isEmpty (http://wicket.sourceforge.net/apidocs/wicket/util/string/Strings.html#isEmpty(java.lang.CharSequence) to consider... Just FYI, what people from Apache does (matching Erik's optimization proposal ;)... I guess wicket does the same. [org.apache.commons.lang.StringUtils] // Empty checks //--- /** * pChecks if a String is empty () or null./p * * pre * StringUtils.isEmpty(null) = true * StringUtils.isEmpty()= true * StringUtils.isEmpty( ) = false * StringUtils.isEmpty(bob) = false * StringUtils.isEmpty( bob ) = false * /pre * * pNOTE: This method changed in Lang version 2.0. * It no longer trims the String. * That functionality is available in isBlank()./p * * @param str the String to check, may be null * @return codetrue/code if the String is empty or null */ public static boolean isEmpty(String str) { return (str == null || str.length() == 0); } (http://www.koders.com/java/fidB29436EC634995BA0A41C5DC97C3F97F549D54B9.aspx?s=apache+%22StringUtils%22) - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] INPUT (+ value, + onClick) as Button?
i just checked an 1.3 String implementation and there the same thing was doneAs far as i know they have to do that. How else would you test for equals for a string?You have to walk the chars on both sides comparing it. So if you don't test first for lenght the length can be different and if you walk then over the 2 char arrays you willget and arrayindexoutofbounds exception.. So i can't imaging an other implementation then that.an instanceof check is pretty fast. I never have been able to get that popped up in a profiler. (and that is also directly the null check that you need)you can read some more here: http://www.google.com/url?sa=tct=rescd=2url="" johanOn 9/22/06, Erik van Oosten [EMAIL PROTECTED] wrote: You will not be able to see the difference between optimalization... String.equals() does exactly that, it test for lengthAha! This is new for me. The last time I checked (Java 1.3) there wereare least 2 instanceof operators in the implementation of String.equals(String) and no length checking.I just checked the Java 5 implementation. It looks a lot better, butthere is still 1 instanceof operator.Anyway, another myth busted. Erik. Johan Compagner schreef: You will not be able to see the difference between optimalization... String.equals() does exactly that, it test for length and where we just do this .equals(value) without testing for null i will not rewrite those by first testing null to be able to call for length. On 9/21/06, *Erik van Oosten* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: If this gets accepted, may I humbly suggest to replace value != null !.equals(value) with value != null value.length() != 0 The latter performs considerably faster (though it is of course still a micro optimization). Regards,Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ Manuel Barzi schreef: Ok, Igor, I already solved this issue by re-implementing Link class in my custom LinkButton class, just adding the following snippet extracted from Button class, and added to the original onComponentTag Link in this new LinkButton class: --- // Default handling for tag super.onComponentTag(tag); // manuelbarzi { // setting the value property to the tag try { String value = getModelObjectAsString(); if (value != null !.equals(value)) { tag.put(value, value); } } catch (Exception e) { // ignore. } // } // Set href to link to this link's linkClicked method --- It works fine now. May this simple addition be interesting for other people needing this functionality, you'll judge according to statistics... Thank you and regards, Manu - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto: Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --Erik van Oostenhttp://www.day-to-day-stuff.blogspot.com/- Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Jackrabbit
Hi all,We are trying to make a CMS and CMS-components for wicket and we were told that i could be helpful to use the JSR-170 to store the content. Have any of you used the JSR-170 and aspecially its implementation JackRabbit? greets - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] DownDownChoice problem
How about... add(new DropDownChoice( options2, new Model(getDefaultSelection(getMyOptionValue())), OPTIONS) { protected String getDefaultChoice( final Object selected ) { return ; // remove Choose One prompt } }); }; private Integer getMyOptionValue() { return new Integer(2); } private String getDefaultSelection(Integer i) { return String.valueOf(OPTIONS.get(i.intValue())); } /Gwyn On 22/09/06, Dumitru Postoronca [EMAIL PROTECTED] wrote: Gwyn Evans wrote: What does c.getMyOptionValue() return? This... public HomePage() { add(new DropDownChoice( options, new Model(getMyOptionValue()), OPTIONS) { protected String getDefaultChoice(final Object selected) { return ; // remove Choose One prompt } }); } private String getMyOptionValue() { return Opt2; } } works as you'd expect. (The ChoiceRenderer() wasn't doing anything). /Gwyn getMyOptionValue() actually returns an Integer. What I'm trying to acomplish is this: in my Client object I have stored an Integer myOptionValue, and there are 3 possible options, so I want to show an edit form with a dropdownchoice with those 3 options and have the selected option to be the one that corresponds to the Integer I have stored in myOptionValue. For Integer(1) - Opt1, Integer(2) - Opt2, etc. - posto - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Download Wicket 1.2.2 now! - http://wicketframework.org - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] INPUT (+ value, + onClick) as Button?
almost: public static boolean isEmpty(final CharSequence string) { return string == null || string.length() == 0 || string.toString().trim().equals(); }so we could also do this: public static boolean isEmpty(final CharSequence string) { return string == null || string.length() == 0 || string.toString().trim().length() == 0; }I am not against these changes or what ever, i am just pointing out that you will not notice these changes in real live. I was just reacting to the bug report that there was a 'huge' gain to be made by this change. johanOn 9/22/06, Manuel Barzi [EMAIL PROTECTED] wrote: There's also wicket.util.string.Strings#isEmpty (http://wicket.sourceforge.net/apidocs/wicket/util/string/Strings.html#isEmpty(java.lang.CharSequence) to consider...Just FYI, what people from Apache does (matching Erik's optimizationproposal ;)... I guess wicket does the same.[org.apache.commons.lang.StringUtils]// Empty checks //---/** * pChecks if a String is empty () or null./p * * pre * StringUtils.isEmpty (null)= true * StringUtils.isEmpty()= true * StringUtils.isEmpty( ) = false * StringUtils.isEmpty(bob) = false * StringUtils.isEmpty (bob) = false * /pre * * pNOTE: This method changed in Lang version 2.0. * It no longer trims the String. * That functionality is available in isBlank()./p * * @param strthe String to check, may be null * @return codetrue/code if the String is empty or null */public static boolean isEmpty(String str) {return (str == null || str.length() == 0);}(http://www.koders.com/java/fidB29436EC634995BA0A41C5DC97C3F97F549D54B9.aspx?s=apache+%22StringUtils%22 )-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cashhttp://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] INPUT (+ value, + onClick) as Button?
Sirs... WicketUsersMailingListStackOverflowException: discussion has branched interesting, but to the infinite ;) i just checked an 1.3 String implementation and there the same thing was ... ... - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] INPUT (+ value, + onClick) as Button?
what can i say :) i like performance discussions.. :)Yourkit is running constantly on all my java programs that i run/debug on my laptop..On 9/22/06, Manuel Barzi [EMAIL PROTECTED] wrote:Sirs... WicketUsersMailingListStackOverflowException: discussion has branched interesting, but to the infinite ;) i just checked an 1.3 String implementation and there the same thing was ... ...- Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] The problem about encoding and event in ajax
for this we need to have a sample case.Also i checked in a encoding problem in the 1.2.x branch (and 2.0 but i don't think that one is completely fixed yet...)So if you could build/test it from svn maybe it is fixed then. johanOn 9/22/06, 王磊 [EMAIL PROTECTED] wrote: Also it brings some trouble,but i can solve the problem of encoding.But i can't know why there is not a event in the server while i input or paste a chinese word in the AutoCompleteTextField.I am not familiarwith _javascript_. Thanks for your advice .- Original Message -From: Martijn Dashorst [EMAIL PROTECTED]To: wicket-user@lists.sourceforge.netSent: Friday, September 22, 2006 3:52 PMSubject: Re: [Wicket-user] The problem about encoding and event in ajax We have had some problems with Ajax and UTF-8 encoding. You'll have to configure the uri encoding on your httpconnector to use UTF-8. In tomcat that would go into your server.xml Martijn On 9/22/06, 王磊 [EMAIL PROTECTED] wrote: In fact, i use utf-8 as my coding. The following is the content of the html. ?xml version=1.0 encoding=UTF-8? html head meta http-equiv=Content-Type content=text/html; charset=UTF-8 /head body form wicket:id=formCountry: input type=text wicket:id=ac size=50 //form /body /html I also tried many ways 1.keep meta charset or remove it. 2.keep ?xml version=1.0 encoding=UTF-8? or remove it. I can't get the right result. Another problem You can copy a chinese word and paste to the AutoCompleteTextField, no event will fired.You can see it in the server side. - Original Message - From: Erik van Oosten [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Friday, September 22, 2006 3:03 PM Subject: Re: [Wicket-user] The problem about encoding and event in ajax Dear ??, The problem is because you can not encode Chinese characters in ISO-8859-1. You must use UTF-8 throughout your application.String newInput = new String( input.getBytes(iso8859-1), UTF-8); first converts the string to ISO8859-1 and thereby replaces all Chinese characters with a ?. Please make sure that the HTML pages that Wicket renders are in UTF-8. This true by default, but to be sure you could do getRequestCycleSettings().setResponseRequestEncoding(UTF-8) Then replace the line above with: String newInput = input; Regards, Erik.王磊 schreef: I just try to write a book about wicket.(It's written in chinese,and it's free to get a e-book). But while i writing a ajax example,i got a stange problem. I writed a auto-complete text application with AutoCompleteTextField control. But i got the following 2 problems. 1. If i input a chinese word,no request is sent to the server side.(I write println in server application,no output). 2. If in input a chinese word,then input a letter like 'd',the server side will get a string input like ???d, it's in wrong code. I use the following code to get the right input. String newInput = new String(input.getBytes(iso8859-1), UTF-8);I think these problems are caused by _javascript_,because i am not familiar with _javascript_. So i can't give reasons. May somebody can give a patch. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Download Wicket 1.2.2 now! New Ajax components: Tree, TreeTable and ModalWindow -- http://wicketframework.org - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -Take Surveys. Earn Cash. Influence the Future of ITJoin
Re: [Wicket-user] INPUT (+ value, + onClick) as Button?
what can i say :) i like performance discussions.. :) :) That's fine, at the end it's very nutritive... Yourkit is running constantly on all my java programs that i run/debug on my laptop.. Good! should try it... - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] long-named wicket:ids vs performance
Sirs, Trying to get all WebPages and inner components correctly and univocally identified (wicket:id), I am using landing in a domain of long-named wicket:ids as, for instance, CaocAdminPage-checkg-1, to identify a CheckGroup... My question is: does long-named wicket:ids affect performance, or there's an inner wicket's optimization strategy mapping them to faster-inner-numerical ids? Thanks. (May Johan Compagner answer this... ;) - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] ajax refresh on date picker
I don't think so. I was working on header contribution and problem with debug console calling document.write() (thus removing all head elements from DOM). This is something completely different, it's related to the component rendered check. That's not my domain. I believe the problem are components in wicket:head section of DataPicker. Anyway, what can temporary help is to disable component render check in appication settings. Juergen? -Matej Igor Vaynberg wrote: matej was working to fix this, i thought he did matej? -Igor On 9/21/06, *samyem* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I took the latest SVN code today and suddenly, I am getting the following error everytime there is an ajax refresh on panels with date pickers: 2006-09-21 14:16:07,728 ERROR wicket.ajax.AjaxRequestTarget - Error while responding to an AJAX request: [EMAIL PROTECTED] markupIdToComponent [{pageBody_sidePanel=[MarkupContainer [Component id = sidePanel, page = com.wsi.mm.ui.directship.item.ItemDirectShipPage, path = 4:pageBody:sidePanel.DirectShipSideBarPanel, isVisible = true, isVersioned = false]]}], prependJavascript [[]], appendJavascript [[var win; try { win = window.parent.Wicket.Window; } catch (ignore) { } if (typeof(win) != undefined typeof(win.current ) != undefined) { window.parent.setTimeout(function() { win.current.close(); }, 0); }]] wicket.WicketRuntimeException: The component(s) below failed to render. A common problem is that you have added a component in code but forgot to reference it in the markup (thus the component will never be rendered). 1. [MarkupContainer [Component id = calendarMain, page = com.wsi.mm.ui.directship.item.ItemDirectShipPage , path = 4:pageBody:sidePanel:massUpdate:massUpdateForm:releaseDate:picker:calendarMain.JavaScriptReference, isVisible = true, isVersioned = false]] 2. [MarkupContainer [Component id = calendarSetup, page = com.wsi.mm.ui.directship.item.ItemDirectShipPage , path = 4:pageBody:sidePanel:massUpdate:massUpdateForm:releaseDate:picker:calendarSetup.JavaScriptReference, isVisible = true, isVersioned = false]] 3. [MarkupContainer [Component id = calendarLanguage, page = com.wsi.mm.ui.directship.item.ItemDirectShipPage, path = 4:pageBody:sidePanel:massUpdate:massUpdateForm:releaseDate:picker:calendarLanguage.JavaScriptReference, isVisible = true, isVersioned = false]] 4. [MarkupContainer [Component id = calendarStyle, page = com.wsi.mm.ui.directship.item.ItemDirectShipPage, path = 4:pageBody:sidePanel:massUpdate:massUpdateForm:releaseDate:picker:calendarStyle.StyleSheetReference, isVisible = true, isVersioned = false]] at wicket.Page.checkRendering(Page.java:1105) at wicket.Page.endComponentRender(Page.java:431) at wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget.java:467) at wicket.ajax.AjaxRequestTarget.respond (AjaxRequestTarget.java:353) at wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:49) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond (AbstractCompoundRequestCycleProcessor.java:66) at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:868) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:900) at wicket.RequestCycle.step(RequestCycle.java:976) at wicket.RequestCycle.steps(RequestCycle.java:1050) at wicket.RequestCycle.request(RequestCycle.java:454) at wicket.protocol.http.WicketServlet.doGet (WicketServlet.java:217) at wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:260) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service (HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) at org.mortbay.http.HttpContext.handle(HttpContext.java:1807) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java :525) at org.mortbay.http.HttpContext.handle(HttpContext.java:1757) at org.mortbay.http.HttpServer.service(HttpServer.java:879) at org.mortbay.http.HttpConnection.service(HttpConnection.java :790) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961) at
Re: [Wicket-user] Problem with tree width
I've fixed the problem of disappearing item captions, but only for tree-table. I'll have to look at tree css, I just had no time. It might some serious changes to stylesheet to get this working for Tree. So if this really is a showstopper for you, try to use tree table (with the css from current svn). -Matej Marc-Andre Houle wrote: Since I got no one to help me, I have continued to search for this problem with no result. Also, maybe I wasn't clear enough to demonstrate the problem, so I will make a new effort to display it. Here is easy Path to demonstrate the problem 1 - got the web developper extension for firefox if it is not already done (Really usefull : https://addons.mozilla.org/firefox/60/) 2- go to page http://www.wicket-library.com/wicket-examples/ajax?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.tree.SimpleTreePage 3- Click the link to expand all node 4- Open up the the CSS edit tool ( CTRL-SHIFT-E ) 5 - In div wicket-tree, set the width variable to 15. Now, you should see that some of the element of the table disapred because there was no place to display them. My problem, while not being exclusively that, is related to that. Is it not possible to make the tree scrollable horizontally when the content is larger that the space to display the tree? It seems to be only a CSS problem, but I still don't know how to solve it. Using the auto tag for width is not a goot solution. For the exemple, the tree will take all the place in the page, but when a node will eventually be more width than the page, it will just also disapear. I hope I was more clear about the problem. Thinks in advance for any suggestion or solution. Marc On 9/18/06, *Marc-Andre Houle* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I got a problem when using the tree. in wicket 1.2.2. In the context I am working on, I'm loading a list of node in the tree. The problem is that the tree is sometimes not large enough. Here are the step I have done for now : First, I wanted to check if the problem was the stylesheet we use. It doesn't seem's too since the problem can be repeated in the wicket Tree exemple.. When you use the simple tree in the exemple and try to feed it with lot ant lot of sub folder or entering a very long string, it finish by making disapear come of the node. So, after that, I wanted to know what can provoke the problem. I have found that the wicket-tree style in the CVS set a width for the tree. div.wicket-tree { white-space: nowrap; border: 1px solid #ccc; width: 20em; overflow: auto; margin: 10px; line-height: 1.5em; } I tried to overwrite this with auto, 100% or anything like that. But finally, it does nothing more interesting.I can put a larger number, like 40, but it will be ugly on the screen 98% of the time. Is it possible to make this panel autosizeable or having a horizontal scrooling bar. I mean, is there a way to make it look fancier for an all time usage without having object disaprearing when there is a long horizontale line to display. I'm not much in CSS coding, so I probably didn't try everything. Thanks in advance. Wicket is the best Framwork I ever used. It is the first real trouble I got for now and I'm sure it is nothing big. Marc - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] long-named wicket:ids vs performance
There is no such inner mapping and I don't think it really matters performance wise. Juergen On 9/22/06, Manuel Barzi [EMAIL PROTECTED] wrote: Sirs, Trying to get all WebPages and inner components correctly and univocally identified (wicket:id), I am using landing in a domain of long-named wicket:ids as, for instance, CaocAdminPage-checkg-1, to identify a CheckGroup... My question is: does long-named wicket:ids affect performance, or there's an inner wicket's optimization strategy mapping them to faster-inner-numerical ids? Thanks. (May Johan Compagner answer this... ;) - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] long-named wicket:ids vs performance
I will try to answer it then ;)i don't think it will affect performance that much but it will increase memory consumption a bitand then on both sides with that i mean the static heap (because your html size is bigger in the markup cache) and the garbage created because the wicket id's can be used to generate urls See Component.getPath() implementation for that.So in the end you create a little more garbage (the response buffer) and the html pages to the client can be bigger and uglier. But to say that that would be a thing you can really measure.. I dont think so. (or you must have very big id's everywhere that the page is almost twice the size :))but that is only the rendering/response part. The request part when a repsonse comes in we need to walk the component pathverylongverylongverylongverylong1:verylongverylongverylongverylongverylong2:verylongverylongverylongverylongverylong3:verylongverylongverylong4so first we have to split that then compare it with a component. String compare is also pretty quick because it runs ofcourse only over the shortest string and if the first char is already different it already know what it can return.. Only a hit (or near hit) has to walk over the completely stringBut that is the penalty you get of long id's also again i dont think you will notice it. if your wicket id's are 5 or 15 chars. That is just still nothing.. But we do have a url compressor build in in wicket:wicket.protocol.http.request.urlcompressing.URLCompressorandwicket.protocol.http.request.urlcompressing.WebURLCompressingTargetResolverStrategy By using those we don't generate the full path for urls. We only map the component to a uid. and when the request comes in we don't have to parse and walk the full component path because we just lookup the component directly for that uid. But ofcourse this does cost some additional memory for registering that stuff..johanOn 9/22/06, Manuel Barzi [EMAIL PROTECTED] wrote:Sirs,Trying to get all WebPages and inner components correctly and univocally identified (wicket:id), I am using landing in a domain oflong-named wicket:ids as, for instance, CaocAdminPage-checkg-1, toidentify a CheckGroup...My question is: does long-named wicket:ids affect performance, or there's an inner wicket's optimization strategy mapping them tofaster-inner-numerical ids?Thanks.(May Johan Compagner answer this... ;)- Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] If the wicket examples' library can put into a TabbedPanel
Hello, In the wicket examples there's a library example, if I can put it into a TabbedPanel? I need some pages, these pages have the same header and navigation, if use TabbedPanel, I needn't to add the header each page, and it looks like use the frame. But if use the TabbedPanel, I can't redirect from a panel to another panel, if this problem can handle more easier? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] long-named wicket:ids vs performance
Glad to learn it ;! Thanks, Johan. I will try to answer it then ;) i don't think it will affect performance that much but it will increase memory consumption a bit and then on both sides with that i mean the static heap (because your html size is bigger in the markup cache) and the garbage created because the wicket id's can be used to generate urls See Component.getPath() implementation for that. So in the end you create a little more garbage (the response buffer) and the html pages to the client can be bigger and uglier. But to say that that would be a thing you can really measure.. I dont think so. (or you must have very big id's everywhere that the page is almost twice the size :)) but that is only the rendering/response part. The request part when a repsonse comes in we need to walk the component path verylongverylongverylongverylong1:verylongverylongverylongverylongverylong2:verylongverylongverylongverylongverylong3:verylongverylongverylong4 so first we have to split that then compare it with a component. String compare is also pretty quick because it runs ofcourse only over the shortest string and if the first char is already different it already know what it can return.. Only a hit (or near hit) has to walk over the completely string But that is the penalty you get of long id's also again i dont think you will notice it. if your wicket id's are 5 or 15 chars. That is just still nothing.. But we do have a url compressor build in in wicket: wicket.protocol.http.request.urlcompressing.URLCompressor and wicket.protocol.http.request.urlcompressing.WebURLCompressingTargetResolverStrategy By using those we don't generate the full path for urls. We only map the component to a uid. and when the request comes in we don't have to parse and walk the full component path because we just lookup the component directly for that uid. But ofcourse this does cost some additional memory for registering that stuff.. johan - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] The problem about encoding and event in ajax
I think this problem is caused by javaSciprt. Additionally, i can use textfield with ajx. There is no problems. The following is the code. The code are simple,most of them are the same as the example of ajax. Just with a println statement to show whether there is a event while input a chinese word. Thanks for all of you to give me advice. Html Template: ?xml version="1.0" encoding="UTF-8"?htmlheadmeta http-equiv="Content-Type" content="text/html; charset=UTF-8"/headbody br / form wicket:id="form"Country: input type="text" wicket:id="ac" size="50" //form /body/html Java Code: public class AutoPage extends WebPage { public AutoPage() {super();Form form = new Form("form");add(form);AutoCompleteTextField textField;textField = new AutoCompleteTextField("ac", new Model("")) {protected Iterator getChoices(String input) { String newInput;try { newInput = new String(input.getBytes("iso8859-1"), "UTF-8"); } catch (UnsupportedEncodingException e) {e.printStackTrace();newInput = input;} if (Strings.isEmpty(input)) {return Collections.EMPTY_LIST.iterator();} List choices = new ArrayList(10); Locale[] locales = Locale.getAvailableLocales(); for (int i = 0; i locales.length; i++) {final Locale locale = locales[i];final String country = locale.getDisplayCountry(); if (country.toUpperCase().startsWith(input.toUpperCase())) {choices.add(country);if (choices.size() == 10) {break;}}} return choices.iterator();}}; form.add(textField);}} - Original Message - From: Johan Compagner To: wicket-user@lists.sourceforge.net Sent: Friday, September 22, 2006 4:56 PM Subject: Re: [Wicket-user] The problem about encoding and event in ajax for this we need to have a sample case.Also i checked in a encoding problem in the 1.2.x branch (and 2.0 but i don't think that one is completely fixed yet...)So if you could build/test it from svn maybe it is fixed then. johan On 9/22/06, 王磊 [EMAIL PROTECTED] wrote: Also it brings some trouble,but i can solve the problem of encoding.But i can't know why there is not a event in the server while i input or paste a chinese word in the AutoCompleteTextField.I am not familiarwith _javascript_. Thanks for your advice .- Original Message -From: "Martijn Dashorst" [EMAIL PROTECTED]To: wicket-user@lists.sourceforge.netSent: Friday, September 22, 2006 3:52 PMSubject: Re: [Wicket-user] The problem about encoding and event in ajax We have had some problems with Ajax and UTF-8 encoding. You'll have to configure the uri encoding on your httpconnector to use UTF-8. In tomcat that would go into your server.xml Martijn On 9/22/06, 王磊 [EMAIL PROTECTED] wrote: In fact, i use utf-8 as my coding. The following is the content of the html. ?xml version="1.0" encoding="UTF-8"? html head meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /head body form wicket:id="form"Country: input type="text" wicket:id="ac" size="50" //form /body /html I also tried many ways 1.keep meta charset or remove it. 2.keep ?xml version="1.0" encoding="UTF-8"? or remove it. I can't get the right result. Another problem You can copy a chinese word and paste to the AutoCompleteTextField, no event will fired.You can see it in the server side. - Original Message - From: "Erik van Oosten" [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Friday, September 22, 2006 3:03 PM Subject: Re: [Wicket-user] The problem about encoding and event in ajax Dear ??,The problem is because you can not encode Chinese characters in ISO-8859-1. You must use UTF-8 throughout your application. String newInput = new String( input.getBytes("iso8859-1"), "UTF-8"); first converts the string to ISO8859-1 and thereby replaces all Chinese characters with a "?". Please make sure that the HTML pages that Wicket renders are in UTF-8. This true by default, but to be sure you could do getRequestCycleSettings().setResponseRequestEncoding("UTF-8") Then replace the line above with: String newInput = input; Regards, Erik. 王磊 schreef: I just try to write a book about wicket.(It's written in chinese,and it's free to get a e-book). But while i writing a ajax example,i got a stange problem. I writed a auto-complete text application with AutoCompleteTextField control. But i got the following 2 problems. 1. If i input a chinese word,no request is sent to the server side.(I write "println" in server application,no output).2. If in input a chinese word,then input a
Re: [Wicket-user] DownDownChoice problem
This is wrong.This is mentioned before on the list: The model object that is the selected objectshould be the same kind of object that is in the choices (the list)that is just a one-one mapping. so if your list is: final static List OPTIONS = Arrays.asList(new String[] {Opt1, Opt2, Opt3});thenc.getMyOptionValue()shoudl return one of those so Opt1, Opt2 or Opt3 if c can only return an int then the options list should just be a Integer array of those possible ints.And the getDisplayValue should return Opt1 for integer1 and Opt2 for integer2 and so on.Thats the idea.. The renderer gives you an method where you can return the display value of a real object. johanOn 9/21/06, Dumitru Postoronca [EMAIL PROTECTED] wrote: Hello everyone, I want to create an edit form and I'm trying to set the selected item of a DropDownChoice to match what I have in the database.The form constructor looks like this:-public ClientEditPage(Client c) {...}-The code that sets the form looks like this: -final static List OPTIONS = Arrays.asList(new String[] {Opt1, Opt2,Opt3});//...DropDownChoice ddc = new DropDownChoice(options, new Model(c.getMyOptionValue()),OPTIONS,new ChoiceRenderer() {@Overridepublic String getIdValue(Object arg0, int arg1) {// I also tried to return ((Integer)arg1).toString() // and it didn't workreturn ((Integer)OPTIONS.indexOf(arg0)).toString();}}){protected String getDefaultChoice(final Object selected){ return ; // remove Choose One prompt}};add(ddc);-No matter what client I select, it always shows me the first option.Also, the rendered HTML looks like this: option value=0Opt1/optionoption value=1Opt2/optionoption value=2Opt3/optionNo selected=selected attribute. Can somebody tell me what am I doing wrong?Thank you in advance,- posto-Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] DatePicker broken in IE6
1) The following configuration is mandatory if you use the frenchlanguage with IE6 : getRequestCycleSettings().setResponseRequestEncoding(ISO-8859-1);Unless you use this, IE6 reports a _javascript_ error because the frenchscript with the monthes names reports an unterminated string for every name containing accented characters. This problem does not occur with FF.hmm this should then be really looked at because this is very strangeBy default we do UTF-8 and that should be able to handle everything. johan - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Preventing multiple form submits
I have a simple signup page that does a setRedirect(true); setResponsePage(ThankYouPage.class); as the last thing in the Form's onSubmit(). People can still go back to the signup page and fill it in again though and this results in all kinds of weird behaviour. What is the wicket way to prevent double submits? S. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Preventing multiple form submits
page.getPageMap().removePage(page)Then your page with the form is removedand if they use the back button they will get a page expired.johanOn 9/22/06, Stefan Arentz [EMAIL PROTECTED] wrote: I have a simple signup page that does a setRedirect(true);setResponsePage(ThankYouPage.class); as the last thing in the Form'sonSubmit(). People can still go back to the signup page and fill it inagain though and this results in all kinds of weird behaviour. What is the wicket way to prevent double submits? S.-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net 's Techsay panel and you'll get the chance to share youropinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] If the wicket examples' library can put into a TabbedPanel
if you just want to have to same header and navigation on multiply pagesyou could use markup inheritanceSo have a base page with the header and navigationand then extend that page.johan On 9/22/06, dragon deaf [EMAIL PROTECTED] wrote: Hello,In the wicket examples there's a library example, if I can put it intoa TabbedPanel?I need some pages, these pages have the same header and navigation, ifuse TabbedPanel, I needn't to add the header each page, and it looks like use the frame.But if use the TabbedPanel, I can't redirect from a panel to anotherpanel, if this problem can handle more easier?- Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] DatePicker broken in IE6
The file calendar-fr.js is in DOS format. Is this OK? (By the way, it also contains some spelling errors in messages, but this is another story.) Pierre-Yves Johan Compagner a écrit : 1) The following configuration is mandatory if you use the french language with IE6 : getRequestCycleSettings().setResponseRequestEncoding(ISO-8859-1); Unless you use this, IE6 reports a Javascript error because the french script with the monthes names reports an unterminated string for every name containing accented characters. This problem does not occur with FF. hmm this should then be really looked at because this is very strange By default we do UTF-8 and that should be able to handle everything. johan - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem with tree width
It is not that important for now, I was just trying to know if the problem was on my side or on the wicket platform. Thanks for your help and I'm pleased to know someone better than me is working on that issue. I'm not really a master in CSS! MarcOn 9/22/06, Matej Knopp [EMAIL PROTECTED] wrote: I've fixed the problem of disappearing item captions, but only fortree-table. I'll have to look at tree css, I just had no time. It mightsome serious changes to stylesheet to get this working for Tree.So if this really is a showstopper for you, try to use tree table (with the css from current svn).-MatejMarc-Andre Houle wrote: Since I got no one to help me, I have continued to search for this problem with no result.Also, maybe I wasn't clear enough to demonstrate the problem, so I will make a new effort to display it. Here is easy Path to demonstrate the problem 1 - got the web developper extension for firefox if it is not already done (Really usefull : https://addons.mozilla.org/firefox/60/) 2- go to page http://www.wicket-library.com/wicket-examples/ajax?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.tree.SimpleTreePage 3- Click the link to expand all node 4- Open up the the CSS edit tool ( CTRL-SHIFT-E ) 5 - In div wicket-tree, set the width variable to 15. Now, you should see that some of the element of the table disapred because there was no place to display them.My problem, while not being exclusively that, is related to that.Is it not possible to make the tree scrollable horizontally when the content is larger that the space to display the tree? It seems to be only a CSS problem, but I still don't know how to solve it.Using the auto tag for width is not a goot solution.For the exemple, the tree will take all the place in the page, but when a node will eventually be more width than the page, it will just also disapear. I hope I was more clear about the problem.Thinks in advance for any suggestion or solution. Marc On 9/18/06, *Marc-Andre Houle* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I got a problem when using the tree. in wicket 1.2.2. In the context I am working on, I'm loading a list of node in the tree.The problem is that the tree is sometimes not large enough. Here are the step I have done for now : First, I wanted to check if the problem was the stylesheet we use. It doesn't seem's too since the problem can be repeated in the wicket Tree exemple..When you use the simple tree in the exemple and try to feed it with lot ant lot of sub folder or entering a very long string, it finish by making disapear come of the node. So, after that, I wanted to know what can provoke the problem.I have found that the wicket-tree style in the CVS set a width for the tree. div.wicket-tree { white-space: nowrap; border: 1px solid #ccc; width: 20em; overflow: auto; margin: 10px; line-height: 1.5em; } I tried to overwrite this with auto, 100% or anything like that. But finally, it does nothing more interesting.I can put a larger number, like 40, but it will be ugly on the screen 98% of the time. Is it possible to make this panel autosizeable or having a horizontal scrooling bar.I mean, is there a way to make it look fancier for an all time usage without having object disaprearing when there is a long horizontale line to display.I'm not much in CSS coding, so I probably didn't try everything. Thanks in advance. Wicket is the best Framwork I ever used.It is the first real trouble I got for now and I'm sure it is nothing big. Marc - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net 's Techsay panel and you'll get the chance to share youropinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash
Re: [Wicket-user] INPUT (+ value, + onClick) as Button?
lol, if there is one thing i learned from working on wicket it is that if you are going to discuss optimizations with johan you have to bring your a-game-IgorOn 9/22/06, Johan Compagner [EMAIL PROTECTED] wrote: what can i say :) i like performance discussions.. :)Yourkit is running constantly on all my java programs that i run/debug on my laptop.. On 9/22/06, Manuel Barzi [EMAIL PROTECTED] wrote: Sirs... WicketUsersMailingListStackOverflowException: discussion has branched interesting, but to the infinite ;) i just checked an 1.3 String implementation and there the same thing was ... ...- Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Tree scrolling
Matej,Does the TreeTable component in 1.2.2 suffer from the same image issue as the Tree component? I might just switch to the TreeTable.SteveOn 9/21/06, Matej Knopp [EMAIL PROTECTED] wrote:Scrolling shouldn't be a problem. div style=overflow: scroll; height: 20emdiv wicket:id=tree/div/divWell. In 1.2.2 there was a problem with internet explorer in standard compliance mode, images were staying even if tree scrolled. In currentsvn this is fixed. Can you please try current 1.x from svn?-MatejSteve Knight wrote: Ok, I just noticed that the tree component has built-in scrolling, but the problem remains valid.The images don't scroll...at least not in IE.In Firefox, the scrollbars don't even show up. On 9/21/06, *Steve Knight* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I am using the new tree component that was backported to 1.2, but I am having trouble putting the tree into a scrollable div.I would like to restrict the tree to a certain height on screen, and when the tree gets larger it should show vertical scrollbars.This sort of works.The text scrolls fine but the images used for the folders and nodes does not scroll.Is this possible? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net 's Techsay panel and you'll get the chance to share youropinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Database Integration With Wicket
bah, ruby on rails is too complex imho. lets use coldfusion instead. i can knock out any app in coldfusion probably 2x the speed of you knocking it out in ror :)-IgorOn 9/22/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: What kind of integration are you talking about? Isn't it a good idea to keep database/persistence code and application/gui code independent?/AndersIt makes sense to do that when you want to design a larger enteprise application but not for small web applications, why all the issues. when u see a framework like ruby on rails, you will understand why may be soon all web applications on the planet may be using ruby on rails because they keep the simple things really very simple. Eelco Hillenius wrote: If someone would provide a JDBC version of wicket-phonebook, that would be welcome! We talked about wanting this, but haven't found any time to do this ourselves yet. Eelco On 9/21/06, Igor Vaynberg [EMAIL PROTECTED] wrote: look at wicket-phonebook, it uses wicket and spring. there are dao implementations for hibernate and ibatis, but it would be trivial to write one for jdbc. spring takes care of all the connection/transaction management for you. if you dont want spring and want to write something for pure jdbc i would store a datasource in application, and subclass request cycle to open/close/rollback/commit the transaction assuming you want a single-transaction-per-request pattern. -Igor On 9/21/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: Okay I know of all the contrib projects, databinder, hibernate stuffs etc, I have used databinder and its lovely but I think for some reason, database in wicket needs to be sort of easier to put up to encourage faster adaptation. Come to think about it, presently most of the present solutions around database in Wicket wraps around Hibernate and a beginner who is not familair with hibernate may get stuck. Some developers still tend to love thier SQL thing compared to ORM and in some cases, you want to do direct SQL cuz hibernate3.jar is some size you may not need to include in your portable web application. And believe me, i believe more ppl learn SQL more than they learn ORM in Schools Yesterday, I was tryin to use Dababinder or wicket-contrib-dababase but at the same time i was using the wicket-auth framework and all these contibs enforce that you extend XXXApplication in your Application Class which means you cannot directly use Contrib projects e.g wicket-contrib-database and also Wicket-auth. There should be a more elegant way to use multiple contrib projects without this Inheritance lock jam. Now most web applications need authentication and also need database which is why i believe wicket shoud somehow integrate some DAO scheme into wicket where all we do is set connection properties and from Components, you can fly CRUD. Well i know there must be some good reasons to exclude this from wicket but what will be the most elegant way to do CRUD in wicket?where should I store my Connection? Session or Application Class. Should I create a parent WebPage with all the SQL stuffs and then make other CRUD pages extend it. a hundred ways to do this but which way is more elegant? Thanks Wicket dads -- It takes insanity to drive in sanity - Me Aladejebi Ayodeji A., DabarObjects Solutions Email: [EMAIL PROTECTED] Mobile: +234 803 589 1780 Web: www.dabarobjects.com Community: www.cowblock.net - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV --http://ojalgo.org/Mathematics, Linear Algebra and Optimisation with Java- Take Surveys. Earn Cash. Influence the Future of
Re: [Wicket-user] ajax refresh on date picker
i thought you _were_ working on the component use check and ajax target stuff?-IgorOn 9/22/06, Matej Knopp [EMAIL PROTECTED] wrote:I don't think so. I was working on header contribution and problem with debug console calling document.write() (thus removing all head elementsfrom DOM).This is something completely different, it's related to the componentrendered check. That's not my domain. I believe the problem are components in wicket:head section of DataPicker.Anyway, what can temporary help is to disable component render check inappication settings. Juergen?-MatejIgor Vaynberg wrote: matej was working to fix this, i thought he did matej? -Igor On 9/21/06, *samyem* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I took the latest SVN code today and suddenly, I am getting the following error everytime there is an ajax refresh on panels with date pickers: 2006-09-21 14:16:07,728 ERROR wicket.ajax.AjaxRequestTarget - Error while responding to an AJAX request: [EMAIL PROTECTED] markupIdToComponent [{pageBody_sidePanel=[MarkupContainer [Component id = sidePanel, page = com.wsi.mm.ui.directship.item.ItemDirectShipPage, path = 4:pageBody:sidePanel.DirectShipSideBarPanel, isVisible = true, isVersioned = false]]}], prependJavascript [[]], appendJavascript [[var win; try { win = window.parent.Wicket.Window; } catch (ignore) { } if (typeof(win) != undefined typeof(win.current ) != undefined) { window.parent.setTimeout(function() { win.current.close(); }, 0); }]] wicket.WicketRuntimeException: The component(s) below failed to render. A common problem is that you have added a component in code but forgot to reference it in the markup (thus the component will never be rendered). 1. [MarkupContainer [Component id = calendarMain, page = com.wsi.mm.ui.directship.item.ItemDirectShipPage , path = 4:pageBody:sidePanel:massUpdate:massUpdateForm:releaseDate:picker:calendarMain._javascript_Reference, isVisible = true, isVersioned = false]] 2. [MarkupContainer [Component id = calendarSetup, page = com.wsi.mm.ui.directship.item.ItemDirectShipPage , path = 4:pageBody:sidePanel:massUpdate:massUpdateForm:releaseDate:picker:calendarSetup._javascript_Reference , isVisible = true, isVersioned = false]] 3. [MarkupContainer [Component id = calendarLanguage, page = com.wsi.mm.ui.directship.item.ItemDirectShipPage, path = 4:pageBody:sidePanel:massUpdate:massUpdateForm:releaseDate:picker: calendarLanguage._javascript_Reference, isVisible = true, isVersioned = false]] 4. [MarkupContainer [Component id = calendarStyle, page = com.wsi.mm.ui.directship.item.ItemDirectShipPage, path = 4:pageBody:sidePanel:massUpdate:massUpdateForm:releaseDate:picker:calendarStyle.StyleSheetReference, isVisible = true, isVersioned = false]] at wicket.Page.checkRendering (Page.java:1105) at wicket.Page.endComponentRender(Page.java:431) at wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget.java:467) at wicket.ajax.AjaxRequestTarget.respond (AjaxRequestTarget.java:353) at wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:49) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond (AbstractCompoundRequestCycleProcessor.java:66) at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:868) at wicket.RequestCycle.processEventsAndRespond (RequestCycle.java:900) at wicket.RequestCycle.step(RequestCycle.java:976) at wicket.RequestCycle.steps(RequestCycle.java:1050) at wicket.RequestCycle.request(RequestCycle.java :454) at wicket.protocol.http.WicketServlet.doGet (WicketServlet.java:217) at wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:260) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service (HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle (ServletHolder.java:358) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294) at org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:567) at org.mortbay.http.HttpContext.handle(HttpContext.java:1807) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java :525) at org.mortbay.http.HttpContext.handle(HttpContext.java:1757) at org.mortbay.http.HttpServer.service(HttpServer.java:879) at org.mortbay.http.HttpConnection.service (HttpConnection.java :790) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961) at org.mortbay.http.HttpConnection.handle(HttpConnection.java :807) at org.mortbay.http.SocketListener.handleConnection (SocketListener.java:218) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java :300) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511) Is there anything I can do to get rid of this error? Or is it a wicket bug? -- View this message in context: http://www.nabble.com/ajax-refresh-on-date-picker-tf2314518.html#a6436806 Sent from the Wicket - User mailing list archive at Nabble.com http://Nabble.com.
Re: [Wicket-user] Tree scrolling
I believe in 1.2.2 it does. In svn it should be fixed. It's actually not Tree/TreeTable bug, but it's a browser quirk (IE I believe) -Matej Steve Knight wrote: Matej, Does the TreeTable component in 1.2.2 suffer from the same image issue as the Tree component? I might just switch to the TreeTable. Steve On 9/21/06, * Matej Knopp* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Scrolling shouldn't be a problem. div style=overflow: scroll; height: 20em div wicket:id=tree /div /div Well. In 1.2.2 there was a problem with internet explorer in standard compliance mode, images were staying even if tree scrolled. In current svn this is fixed. Can you please try current 1.x from svn? -Matej Steve Knight wrote: Ok, I just noticed that the tree component has built-in scrolling, but the problem remains valid. The images don't scroll...at least not in IE. In Firefox, the scrollbars don't even show up. On 9/21/06, *Steve Knight* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I am using the new tree component that was backported to 1.2, but I am having trouble putting the tree into a scrollable div. I would like to restrict the tree to a certain height on screen, and when the tree gets larger it should show vertical scrollbars. This sort of works. The text scrolls fine but the images used for the folders and nodes does not scroll. Is this possible? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net 's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] long-named wicket:ids vs performance
you do know that the ids have to be unique only within the same parent right?this is perfectly legalMyPage() { add(new CheckGroup(group); WebMarkupContainer c=new WebMarkupContainer(container); container.add(new CheckGroup(group);-IgorOn 9/22/06, Manuel Barzi [EMAIL PROTECTED] wrote:Sirs,Trying to get all WebPages and inner components correctly and univocally identified (wicket:id), I am using landing in a domain oflong-named wicket:ids as, for instance, CaocAdminPage-checkg-1, toidentify a CheckGroup...My question is: does long-named wicket:ids affect performance, or there's an inner wicket's optimization strategy mapping them tofaster-inner-numerical ids?Thanks.(May Johan Compagner answer this... ;)- Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] ajax refresh on date picker
Well, I was working on it. But only to the degree that I disabled the disabling of check during ajax request, because it was no longer necessary. Unfortunately head contribution is something else, I'm not sure how to do it the best way, again, it's not my domain. I think that I've posted mail about it to the list, I'm not sure what the outcome was. -Matej Igor Vaynberg wrote: i thought you _were_ working on the component use check and ajax target stuff? -Igor On 9/22/06, *Matej Knopp* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I don't think so. I was working on header contribution and problem with debug console calling document.write() (thus removing all head elements from DOM). This is something completely different, it's related to the component rendered check. That's not my domain. I believe the problem are components in wicket:head section of DataPicker. Anyway, what can temporary help is to disable component render check in appication settings. Juergen? -Matej Igor Vaynberg wrote: matej was working to fix this, i thought he did matej? -Igor On 9/21/06, *samyem* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I took the latest SVN code today and suddenly, I am getting the following error everytime there is an ajax refresh on panels with date pickers: 2006-09-21 14:16:07,728 ERROR wicket.ajax.AjaxRequestTarget - Error while responding to an AJAX request: [EMAIL PROTECTED] markupIdToComponent [{pageBody_sidePanel=[MarkupContainer [Component id = sidePanel, page = com.wsi.mm.ui.directship.item.ItemDirectShipPage, path = 4:pageBody:sidePanel.DirectShipSideBarPanel, isVisible = true, isVersioned = false]]}], prependJavascript [[]], appendJavascript [[var win; try { win = window.parent.Wicket.Window; } catch (ignore) { } if (typeof(win) != undefined typeof(win.current ) != undefined) { window.parent.setTimeout(function() { win.current.close(); }, 0); }]] wicket.WicketRuntimeException: The component(s) below failed to render. A common problem is that you have added a component in code but forgot to reference it in the markup (thus the component will never be rendered). 1. [MarkupContainer [Component id = calendarMain, page = com.wsi.mm.ui.directship.item.ItemDirectShipPage , path = 4:pageBody:sidePanel:massUpdate:massUpdateForm:releaseDate:picker:calendarMain.JavaScriptReference, isVisible = true, isVersioned = false]] 2. [MarkupContainer [Component id = calendarSetup, page = com.wsi.mm.ui.directship.item.ItemDirectShipPage , path = 4:pageBody:sidePanel:massUpdate:massUpdateForm:releaseDate:picker:calendarSetup.JavaScriptReference , isVisible = true, isVersioned = false]] 3. [MarkupContainer [Component id = calendarLanguage, page = com.wsi.mm.ui.directship.item.ItemDirectShipPage, path = 4:pageBody:sidePanel:massUpdate:massUpdateForm:releaseDate:picker: calendarLanguage.JavaScriptReference, isVisible = true, isVersioned = false]] 4. [MarkupContainer [Component id = calendarStyle, page = com.wsi.mm.ui.directship.item.ItemDirectShipPage, path = 4:pageBody:sidePanel:massUpdate:massUpdateForm:releaseDate:picker:calendarStyle.StyleSheetReference, isVisible = true, isVersioned = false]] at wicket.Page.checkRendering (Page.java:1105) at wicket.Page.endComponentRender(Page.java:431) at wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget.java:467) at wicket.ajax.AjaxRequestTarget.respond (AjaxRequestTarget.java:353) at wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:49) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond (AbstractCompoundRequestCycleProcessor.java:66) at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:868) at wicket.RequestCycle.processEventsAndRespond (RequestCycle.java:900) at wicket.RequestCycle.step(RequestCycle.java:976) at wicket.RequestCycle.steps(RequestCycle.java:1050) at
Re: [Wicket-user] INPUT (+ value, + onClick) as Button?
;) ha! never give up... - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] DownDownChoice problem
Johan Compagner wrote: This is wrong. This is mentioned before on the list: The model object that is the selected object should be the same kind of object that is in the choices (the list) that is just a one-one mapping. so if your list is: final static List OPTIONS = Arrays.asList(new String[] {Opt1, Opt2, Opt3}); then c.getMyOptionValue() shoudl return one of those so Opt1, Opt2 or Opt3 if c can only return an int then the options list should just be a Integer array of those possible ints. And the getDisplayValue should return Opt1 for integer1 and Opt2 for integer2 and so on. Thats the idea.. The renderer gives you an method where you can return the display value of a real object. johan Thanks! I solved it. I'll add the example to the wiki for future reference. - posto - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] long-named wicket:ids vs performance
you do know that the ids have to be unique only within the same parent right? this is perfectly legal MyPage() { add(new CheckGroup(group); WebMarkupContainer c=new WebMarkupContainer(container); container.add(new CheckGroup(group); -Igor Already learnt-by-example, yes. Thank you. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Database Integration With Wicket
any wicket example that uses EJB3 and Java Persistence 1.0 Nathan's Databinder will give you ideas and simplicity here ( if you ignore the Maven thing, of course ;-) ) Note that the Hibernate Session and the JPA EntityManager are almost indentical concepts. In fact, if you use Hibernate as the JPA implementation, they are the same thing. JPA makes accessing databases *really* simple. And you don't need EJB: I'm using JPA (TopLink) in a JSE project. - Gustavo. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Database Integration With Wicket
so what is the much buzz about ror..i just did a small walkthrough that made everything look so easy :)however in the wicket-phonebook example, it was said that All Hibernate session management and transaction management is handled by Spring sure the whole abstraction thing is good but that means doing some database in wicket based on this example mandates learning some spring and some hibernate...meaning that the more paradigms the more complexity on setting up small web applications. On 9/22/06, Igor Vaynberg [EMAIL PROTECTED] wrote: bah, ruby on rails is too complex imho. lets use coldfusion instead. i can knock out any app in coldfusion probably 2x the speed of you knocking it out in ror :)-Igor On 9/22/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: What kind of integration are you talking about? Isn't it a good idea to keep database/persistence code and application/gui code independent?/AndersIt makes sense to do that when you want to design a larger enteprise application but not for small web applications, why all the issues. when u see a framework like ruby on rails, you will understand why may be soon all web applications on the planet may be using ruby on rails because they keep the simple things really very simple. Eelco Hillenius wrote: If someone would provide a JDBC version of wicket-phonebook, that would be welcome! We talked about wanting this, but haven't found any time to do this ourselves yet. Eelco On 9/21/06, Igor Vaynberg [EMAIL PROTECTED] wrote: look at wicket-phonebook, it uses wicket and spring. there are dao implementations for hibernate and ibatis, but it would be trivial to write one for jdbc. spring takes care of all the connection/transaction management for you. if you dont want spring and want to write something for pure jdbc i would store a datasource in application, and subclass request cycle to open/close/rollback/commit the transaction assuming you want a single-transaction-per-request pattern. -Igor On 9/21/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: Okay I know of all the contrib projects, databinder, hibernate stuffs etc, I have used databinder and its lovely but I think for some reason, database in wicket needs to be sort of easier to put up to encourage faster adaptation. Come to think about it, presently most of the present solutions around database in Wicket wraps around Hibernate and a beginner who is not familair with hibernate may get stuck. Some developers still tend to love thier SQL thing compared to ORM and in some cases, you want to do direct SQL cuz hibernate3.jar is some size you may not need to include in your portable web application. And believe me, i believe more ppl learn SQL more than they learn ORM in Schools Yesterday, I was tryin to use Dababinder or wicket-contrib-dababase but at the same time i was using the wicket-auth framework and all these contibs enforce that you extend XXXApplication in your Application Class which means you cannot directly use Contrib projects e.g wicket-contrib-database and also Wicket-auth. There should be a more elegant way to use multiple contrib projects without this Inheritance lock jam. Now most web applications need authentication and also need database which is why i believe wicket shoud somehow integrate some DAO scheme into wicket where all we do is set connection properties and from Components, you can fly CRUD. Well i know there must be some good reasons to exclude this from wicket but what will be the most elegant way to do CRUD in wicket?where should I store my Connection? Session or Application Class. Should I create a parent WebPage with all the SQL stuffs and then make other CRUD pages extend it. a hundred ways to do this but which way is more elegant? Thanks Wicket dads -- It takes insanity to drive in sanity - Me Aladejebi Ayodeji A., DabarObjects Solutions Email: [EMAIL PROTECTED] Mobile: +234 803 589 1780 Web: www.dabarobjects.com Community: www.cowblock.net - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net
Re: [Wicket-user] DatePicker broken in IE6
Here are two versions. Using the UTF8 file does not solve the encoding problem since it will then break applications that use the ISO-8859-1 encoding setting. The javascript language file should be selected according to the encoding used, or its content should be translated to the appropriate encoding. So the solution of using the UTF8 version as is would be worse than the problem it is supposed to solve. Most french applications do in fact use ISO-8859-1 encoding. After all, isn't this is the default encoding for Java? It is somewhat sad since it lacks two characters that are very frequently used in french (oe and OE ligatures), but I think most french users would not like to be forced to switch their app to UTF8 to be able to use the datepicker. Pierre-Yves Johan Compagner a écrit : please give as an updated one then can we correct that And check it in as UTF-8 somehow johan On 9/22/06, *Pierre-Yves Saumont* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: The file calendar-fr.js is in DOS format. Is this OK? (By the way, it also contains some spelling errors in messages, but this is another story.) Pierre-Yves Johan Compagner a écrit : 1) The following configuration is mandatory if you use the french language with IE6 : getRequestCycleSettings().setResponseRequestEncoding(ISO-8859-1); Unless you use this, IE6 reports a Javascript error because the french script with the monthes names reports an unterminated string for every name containing accented characters. This problem does not occur with FF. hmm this should then be really looked at because this is very strange By default we do UTF-8 and that should be able to handle everything. johan // ** I18N // Calendar EN language // Author: Mihai Bazon, [EMAIL PROTECTED] // Encoding: any // Distributed under the same terms as the calendar itself. // For translators: please use UTF-8 if possible. We strongly believe that // Unicode is the answer to a real internationalized world. Also please // include your contact information in the header, as can be seen above. // Translator: David Duret, [EMAIL PROTECTED] from previous french version // Edited by Pierre-Yves Saumont [EMAIL PROTECTED] // full day names Calendar._DN = new Array (Dimanche, Lundi, Mardi, Mercredi, Jeudi, Vendredi, Samedi, Dimanche); // Please note that the following array of short day names (and the same goes // for short month names, _SMN) isn't absolutely necessary. We give it here // for exemplification on how one can customize the short day names, but if // they are simply the first N letters of the full name you can simply say: // // Calendar._SDN_len = N; // short day name length // Calendar._SMN_len = N; // short month name length // // If N = 3 then this is not needed either since we assume a value of 3 if not // present, to be compatible with translation files that were written before // this feature. // short day names Calendar._SDN = new Array (Dim, Lun, Mar, Mar, Jeu, Ven, Sam, Dim); // full month names Calendar._MN = new Array (Janvier, Février, Mars, Avril, Mai, Juin, Juillet, Août, Septembre, Octobre, Novembre, Décembre); // short month names Calendar._SMN = new Array (Jan, Fév, Mar, Avr, Mai, Juin, Juil, Août, Sep, Oct, Nov, Déc); // First day of the week. 0 means display Sunday first, 1 means display // Monday first, etc. Calendar._FD = 1; // tooltips Calendar._TT = {}; Calendar._TT[INFO] = A propos du calendrier; Calendar._TT[ABOUT] = DHTML Date/Heure Selecteur\n + (c) dynarch.com 2002-2005 / Author: Mihai Bazon\n + // don't translate this this ;-) Pour la dernière version visitez : http://www.dynarch.com/projects/calendar/\n; + Distribué sous license GNU LGPL. Voir http://gnu.org/licenses/lgpl.html pour les détails. + \n\n + Sélection de la date :\n + - Utiliser les boutons \xab, \xbb pour sélectionner l\'année\n + - Utiliser les boutons + String.fromCharCode(0x2039) + , + String.fromCharCode(0x203a) + pour sélectionner les mois\n + - Garder la souris sur n'importe quels boutons pour une sélection plus rapide; Calendar._TT[ABOUT_TIME] = \n\n + Sélection de l\'heure :\n + - Cliquer sur heures ou minutes pour incrémenter\n + - ou Maj-clic pour décrémenter\n + - ou clic et glisser-déplacer pour une sélection plus rapide; Calendar._TT[PREV_YEAR] = Année préc. (maintenir pour menu); Calendar._TT[PREV_MONTH] = Mois préc. (maintenir pour menu); Calendar._TT[GO_TODAY] = Atteindre la date du jour; Calendar._TT[NEXT_MONTH] = Mois suiv. (maintenir pour menu); Calendar._TT[NEXT_YEAR] = Année suiv. (maintenir pour menu); Calendar._TT[SEL_DATE] = Sélectionner une date; Calendar._TT[DRAG_TO_MOVE] = Déplacer; Calendar._TT[PART_TODAY] = (Aujourd'hui); // the following is to inform that %s is to be the
Re: [Wicket-user] Database Integration With Wicket
The first time, sure. I'll agree with that. Once you have your boilerplate application setup, it's pretty easy to replicate it. On 9/22/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:so what is the much buzz about ror..i just did a small walkthrough that made everything look so easy :) however in the wicket-phonebook example, it was said that All Hibernate session management and transaction management is handled by Spring sure the whole abstraction thing is good but that means doing some database in wicket based on this example mandates learning some spring and some hibernate...meaning that the more paradigms the more complexity on setting up small web applications. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Database Integration With Wicket
please is wicket-contrib-database fully mature?On 9/22/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: so what is the much buzz about ror..i just did a small walkthrough that made everything look so easy :) however in the wicket-phonebook example, it was said that All Hibernate session management and transaction management is handled by Spring sure the whole abstraction thing is good but that means doing some database in wicket based on this example mandates learning some spring and some hibernate...meaning that the more paradigms the more complexity on setting up small web applications. On 9/22/06, Igor Vaynberg [EMAIL PROTECTED] wrote: bah, ruby on rails is too complex imho. lets use coldfusion instead. i can knock out any app in coldfusion probably 2x the speed of you knocking it out in ror :)-Igor On 9/22/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: What kind of integration are you talking about? Isn't it a good idea to keep database/persistence code and application/gui code independent?/AndersIt makes sense to do that when you want to design a larger enteprise application but not for small web applications, why all the issues. when u see a framework like ruby on rails, you will understand why may be soon all web applications on the planet may be using ruby on rails because they keep the simple things really very simple. Eelco Hillenius wrote: If someone would provide a JDBC version of wicket-phonebook, that would be welcome! We talked about wanting this, but haven't found any time to do this ourselves yet. Eelco On 9/21/06, Igor Vaynberg [EMAIL PROTECTED] wrote: look at wicket-phonebook, it uses wicket and spring. there are dao implementations for hibernate and ibatis, but it would be trivial to write one for jdbc. spring takes care of all the connection/transaction management for you. if you dont want spring and want to write something for pure jdbc i would store a datasource in application, and subclass request cycle to open/close/rollback/commit the transaction assuming you want a single-transaction-per-request pattern. -Igor On 9/21/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: Okay I know of all the contrib projects, databinder, hibernate stuffs etc, I have used databinder and its lovely but I think for some reason, database in wicket needs to be sort of easier to put up to encourage faster adaptation. Come to think about it, presently most of the present solutions around database in Wicket wraps around Hibernate and a beginner who is not familair with hibernate may get stuck. Some developers still tend to love thier SQL thing compared to ORM and in some cases, you want to do direct SQL cuz hibernate3.jar is some size you may not need to include in your portable web application. And believe me, i believe more ppl learn SQL more than they learn ORM in Schools Yesterday, I was tryin to use Dababinder or wicket-contrib-dababase but at the same time i was using the wicket-auth framework and all these contibs enforce that you extend XXXApplication in your Application Class which means you cannot directly use Contrib projects e.g wicket-contrib-database and also Wicket-auth. There should be a more elegant way to use multiple contrib projects without this Inheritance lock jam. Now most web applications need authentication and also need database which is why i believe wicket shoud somehow integrate some DAO scheme into wicket where all we do is set connection properties and from Components, you can fly CRUD. Well i know there must be some good reasons to exclude this from wicket but what will be the most elegant way to do CRUD in wicket?where should I store my Connection? Session or Application Class. Should I create a parent WebPage with all the SQL stuffs and then make other CRUD pages extend it. a hundred ways to do this but which way is more elegant? Thanks Wicket dads -- It takes insanity to drive in sanity - Me Aladejebi Ayodeji A., DabarObjects Solutions Email: [EMAIL PROTECTED] Mobile: +234 803 589 1780 Web: www.dabarobjects.com Community: www.cowblock.net - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___
Re: [Wicket-user] Database Integration With Wicket
sure the whole abstraction thing is good but that means doing some database in wicket based on this example mandates learning some spring and some hibernate...meaning that the more paradigms the more complexity on setting up small web applications. this is completely false. you should say the more paradigms you dont know the more complexity on setting up small web applications.-Igor On 9/22/06, Igor Vaynberg [EMAIL PROTECTED] wrote: bah, ruby on rails is too complex imho. lets use coldfusion instead. i can knock out any app in coldfusion probably 2x the speed of you knocking it out in ror :)-Igor On 9/22/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: What kind of integration are you talking about? Isn't it a good idea to keep database/persistence code and application/gui code independent?/AndersIt makes sense to do that when you want to design a larger enteprise application but not for small web applications, why all the issues. when u see a framework like ruby on rails, you will understand why may be soon all web applications on the planet may be using ruby on rails because they keep the simple things really very simple. Eelco Hillenius wrote: If someone would provide a JDBC version of wicket-phonebook, that would be welcome! We talked about wanting this, but haven't found any time to do this ourselves yet. Eelco On 9/21/06, Igor Vaynberg [EMAIL PROTECTED] wrote: look at wicket-phonebook, it uses wicket and spring. there are dao implementations for hibernate and ibatis, but it would be trivial to write one for jdbc. spring takes care of all the connection/transaction management for you. if you dont want spring and want to write something for pure jdbc i would store a datasource in application, and subclass request cycle to open/close/rollback/commit the transaction assuming you want a single-transaction-per-request pattern. -Igor On 9/21/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: Okay I know of all the contrib projects, databinder, hibernate stuffs etc, I have used databinder and its lovely but I think for some reason, database in wicket needs to be sort of easier to put up to encourage faster adaptation. Come to think about it, presently most of the present solutions around database in Wicket wraps around Hibernate and a beginner who is not familair with hibernate may get stuck. Some developers still tend to love thier SQL thing compared to ORM and in some cases, you want to do direct SQL cuz hibernate3.jar is some size you may not need to include in your portable web application. And believe me, i believe more ppl learn SQL more than they learn ORM in Schools Yesterday, I was tryin to use Dababinder or wicket-contrib-dababase but at the same time i was using the wicket-auth framework and all these contibs enforce that you extend XXXApplication in your Application Class which means you cannot directly use Contrib projects e.g wicket-contrib-database and also Wicket-auth. There should be a more elegant way to use multiple contrib projects without this Inheritance lock jam. Now most web applications need authentication and also need database which is why i believe wicket shoud somehow integrate some DAO scheme into wicket where all we do is set connection properties and from Components, you can fly CRUD. Well i know there must be some good reasons to exclude this from wicket but what will be the most elegant way to do CRUD in wicket?where should I store my Connection? Session or Application Class. Should I create a parent WebPage with all the SQL stuffs and then make other CRUD pages extend it. a hundred ways to do this but which way is more elegant? Thanks Wicket dads -- It takes insanity to drive in sanity - Me Aladejebi Ayodeji A., DabarObjects Solutions Email: [EMAIL PROTECTED] Mobile: +234 803 589 1780 Web: www.dabarobjects.com Community: www.cowblock.net - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn
Re: [Wicket-user] Database Integration With Wicket
On 9/22/06, Igor Vaynberg [EMAIL PROTECTED] wrote: sure the whole abstraction thing is good but that means doing some database in wicket based on this example mandates learning some spring and some hibernate...meaning that the more paradigms the more complexity on setting up small web applications. this is completely false. you should say the more paradigms you dont know the more complexity on setting up small web applications. -Igor ah well i depends on how it is seem anyway. Have been with younger developers in my office who complain of lots of buzzes in java. You will find many stuffs easy as a result of experience with many technologies but not beginners. i believe that the more experience you have, the more you leverage paradigms in an easier fashion but am sure not everyone sees it that way especially those developers who think java is hard on enterprise level Thanks GustavoOn JPA (TopLink) I agree..its pretty cool. I saw a good tutorial using Netbeans5.5Netbeans 5.5beta2 is an awesome IDE. as its makes this really fast to build and deploy. My team members find that more comfortable I think i will stick with that On 9/22/06, Igor Vaynberg [EMAIL PROTECTED] wrote: bah, ruby on rails is too complex imho. lets use coldfusion instead. i can knock out any app in coldfusion probably 2x the speed of you knocking it out in ror :)-Igor On 9/22/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: What kind of integration are you talking about? Isn't it a good idea to keep database/persistence code and application/gui code independent?/AndersIt makes sense to do that when you want to design a larger enteprise application but not for small web applications, why all the issues. when u see a framework like ruby on rails, you will understand why may be soon all web applications on the planet may be using ruby on rails because they keep the simple things really very simple. Eelco Hillenius wrote: If someone would provide a JDBC version of wicket-phonebook, that would be welcome! We talked about wanting this, but haven't found any time to do this ourselves yet. Eelco On 9/21/06, Igor Vaynberg [EMAIL PROTECTED] wrote: look at wicket-phonebook, it uses wicket and spring. there are dao implementations for hibernate and ibatis, but it would be trivial to write one for jdbc. spring takes care of all the connection/transaction management for you. if you dont want spring and want to write something for pure jdbc i would store a datasource in application, and subclass request cycle to open/close/rollback/commit the transaction assuming you want a single-transaction-per-request pattern. -Igor On 9/21/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: Okay I know of all the contrib projects, databinder, hibernate stuffs etc, I have used databinder and its lovely but I think for some reason, database in wicket needs to be sort of easier to put up to encourage faster adaptation. Come to think about it, presently most of the present solutions around database in Wicket wraps around Hibernate and a beginner who is not familair with hibernate may get stuck. Some developers still tend to love thier SQL thing compared to ORM and in some cases, you want to do direct SQL cuz hibernate3.jar is some size you may not need to include in your portable web application. And believe me, i believe more ppl learn SQL more than they learn ORM in Schools Yesterday, I was tryin to use Dababinder or wicket-contrib-dababase but at the same time i was using the wicket-auth framework and all these contibs enforce that you extend XXXApplication in your Application Class which means you cannot directly use Contrib projects e.g wicket-contrib-database and also Wicket-auth. There should be a more elegant way to use multiple contrib projects without this Inheritance lock jam. Now most web applications need authentication and also need database which is why i believe wicket shoud somehow integrate some DAO scheme into wicket where all we do is set connection properties and from Components, you can fly CRUD. Well i know there must be some good reasons to exclude this from wicket but what will be the most elegant way to do CRUD in wicket?where should I store my Connection? Session or Application Class. Should I create a parent WebPage with all the SQL stuffs and then make other CRUD pages extend it. a hundred ways to do this but which way is more elegant? Thanks Wicket dads -- It takes insanity to drive in sanity - Me Aladejebi Ayodeji A., DabarObjects Solutions Email: [EMAIL PROTECTED] Mobile: +234 803 589 1780 Web: www.dabarobjects.com Community: www.cowblock.net - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
Re: [Wicket-user] Preventing multiple form submits
Why are you using setRedirect directly like that btw? So you want to block the login page after a user authenticated? Why not just block the page for authenticated users e.g. with an authorization strategy. Or maybe even better... in the submit method of your login form, before you do anything, check whether the user was authenticated, and if so, just ignore the whole action and redirect him to e.g. the home page. One thing I'm curious about is why you would design your application in such a way that a re-login is a problem in the first place? Eelco On 9/22/06, Stefan Arentz [EMAIL PROTECTED] wrote: I have a simple signup page that does a setRedirect(true); setResponsePage(ThankYouPage.class); as the last thing in the Form's onSubmit(). People can still go back to the signup page and fill it in again though and this results in all kinds of weird behaviour. What is the wicket way to prevent double submits? S. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] TinyMCE integration
IANAL, but this is really only a problem in the sense that we'll not moving the component to Apache. But the wicket-stuff project is meant to stay at sourceforge anyway. I don't think it's a problem for end-users. Eelco On 9/22/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: Ok that is good news, but we still have the problem that the licenses of TinyMCE and Wicket might be incompatible. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Database Integration With Wicket
Gustavo Santucho wrote: Nathan's Databinder will give you ideas and simplicity here ( if you ignore the Maven thing, of course ;-) ) Databinder says thanks for the compliment. Maven says it would like to meet with you in cold, dark, JAR-strewn alley and settle this thing once and for all. ;) Nathan - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Preventing multiple form submits
On 9/22/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Why are you using setRedirect directly like that btw? So you want to block the login page after a user authenticated? Why not just block the page for authenticated users e.g. with an authorization strategy. Or maybe even better... in the submit method of your login form, before you do anything, check whether the user was authenticated, and if so, just ignore the whole action and redirect him to e.g. the home page. One thing I'm curious about is why you would design your application in such a way that a re-login is a problem in the first place? Forget about the fact that this happens to be a SignUp page. It is a generic problem that applies to all kinds of forms. S. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] BookmarkablePageLink as button with value from model
Hi all, just a simple, stupid question: i want to use a BookmarkablePageLink as button as described in the wicket examples for links. Additionaly i want to use a Model to fill the buttons value. How can i put these things together? For a short peace of code i would definitly be thankful. :-) Thx in advance, Peter - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] DatePicker broken in IE6
please attach this to a patch: http://sourceforge.net/tracker/?group_id=119783atid=684977(and say what files it exactl y are)because else it will get lost. the standaard in java is not iso-8859-1 internally java is all utfbut saving to disk and reading java looks at the system what the encoding is.But if you ask me, what you sent to the browser should always be full utf8 because then you never have problems who ever you target..The projects i work with it is all utf8browser - app server - databasejohanOn 9/22/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote: Here are two versions. Using the UTF8 file does not solve the encodingproblem since it will then break applications that use the ISO-8859-1encoding setting. The _javascript_ language file should be selectedaccording to the encoding used, or its content should be translated to the appropriate encoding. So the solution of using the UTF8 version asis would be worse than the problem it is supposed to solve.Most french applications do in fact use ISO-8859-1 encoding. After all,isn't this is the default encoding for Java? It is somewhat sad since it lacks two characters that are very frequently used in french (oe and OEligatures), but I think most french users would not like to be forced toswitch their app to UTF8 to be able to use the datepicker. Pierre-YvesJohan Compagner a écrit : please give as an updated one then can we correct that And check it in as UTF-8 somehow johan On 9/22/06, *Pierre-Yves Saumont* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: The file calendar-fr.js is in DOS format. Is this OK? (By the way, it also contains some spelling errors in messages, but this is another story.) Pierre-Yves Johan Compagner a écrit : 1) The following configuration is mandatory if you use the french language with IE6 : getRequestCycleSettings().setResponseRequestEncoding(ISO-8859-1); Unless you use this, IE6 reports a _javascript_ error because the french script with the monthes names reports an unterminated string for every name containing accented characters. This problem does not occur with FF. hmm this should then be really looked at because this is very strange By default we do UTF-8 and that should be able to handle everything. johan// ** I18N// Calendar EN language// Author: Mihai Bazon, [EMAIL PROTECTED] // Encoding: any// Distributed under the same terms as the calendar itself.// For translators: please use UTF-8 if possible.We strongly believe that// Unicode is the answer to a real internationalized world.Also please // include your contact information in the header, as can be seen above.// Translator: David Duret, [EMAIL PROTECTED] from previous french version // Edited by Pierre-Yves Saumont [EMAIL PROTECTED]// full day namesCalendar._DN = new Array(Dimanche, Lundi, Mardi, Mercredi, Jeudi, Vendredi, Samedi, Dimanche);// Please note that the following array of short day names (and the same goes// for short month names, _SMN) isn't absolutely necessary.We give it here // for exemplification on how one can customize the short day names, but if// they are simply the first N letters of the full name you can simply say: Calendar._SDN_len = N; // short day name length // Calendar._SMN_len = N; // short month name length If N = 3 then this is not needed either since we assume a value of 3 if not// present, to be compatible with translation files that were written before // this feature.// short day namesCalendar._SDN = new Array(Dim, Lun, Mar, Mar, Jeu, Ven, Sam, Dim);// full month namesCalendar._MN = new Array(Janvier, Février, Mars, Avril, Mai, Juin, Juillet, Août, Septembre, Octobre, Novembre, Décembre);// short month namesCalendar._SMN = new Array(Jan, Fév, Mar, Avr, Mai, Juin, Juil, Août, Sep, Oct, Nov, Déc); // First day of the week. 0 means display Sunday first, 1 means display// Monday first, etc.Calendar._FD = 1;// tooltipsCalendar._TT = {};Calendar._TT[INFO] = A propos du calendrier; Calendar._TT[ABOUT] =DHTML Date/Heure Selecteur\n +(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n + // don't translate this this ;-) Pour la dernière version visitez : http://www.dynarch.com/projects/calendar/\n +Distribué sous license GNU LGPL.Voir http://gnu.org/licenses/lgpl.html pour les détails. +\n\n +Sélection de la date :\n +- Utiliser les boutons \xab, \xbbpour sélectionner l\'année\n +- Utiliser les boutons + String.fromCharCode(0x2039) + , + String.fromCharCode(0x203a) + pour sélectionner les mois\n +- Garder la souris sur n'importe quels boutons pour une sélection plus rapide;Calendar._TT[ABOUT_TIME] = \n\n + Sélection de l\'heure :\n +- Cliquer sur heures ou minutes pour incrémenter\n +- ou Maj-clic pour décrémenter\n +- ou clic et glisser-déplacer pour une sélection plus rapide; Calendar._TT[PREV_YEAR] = Année préc. (maintenir pour menu);Calendar._TT[PREV_MONTH] = Mois préc. (maintenir pour menu);Calendar._TT[GO_TODAY] = Atteindre la date du jour; Calendar._TT[NEXT_MONTH] = Mois suiv. (maintenir pour
Re: [Wicket-user] Preventing multiple form submits
new Form(...) { boolean isVisible() { return getSession().getUser()==null; }}new AlreadyLoggedinPanel(...) { isVisible() { return getSession().getUser()!=null; }}-Igor On 9/22/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Why are you using setRedirect directly like that btw?So you want to block the login page after a user authenticated? Whynot just block the page for authenticated users e.g. with anauthorization strategy. Or maybe even better... in the submit method of your login form, before you do anything, check whether the user wasauthenticated, and if so, just ignore the whole action and redirecthim to e.g. the home page. One thing I'm curious about is why youwould design your application in such a way that a re-login is a problem in the first place?EelcoOn 9/22/06, Stefan Arentz [EMAIL PROTECTED] wrote: I have a simple signup page that does a setRedirect(true); setResponsePage(ThankYouPage.class); as the last thing in the Form's onSubmit(). People can still go back to the signup page and fill it in again though and this results in all kinds of weird behaviour. What is the wicket way to prevent double submits?S. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user- Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] BookmarkablePageLink as button with value from model
class MyLink extends BookmarkabkePageLink { public MyLink(String id, IModel model) {add(new AttributeModifier(value, true, model)); }}-Igor On 9/22/06, Peter Klassen [EMAIL PROTECTED] wrote: Hi all,just a simple, stupid question:i want to use a BookmarkablePageLink as button as described in thewicket examples for links.Additionaly i want to use a Model to fill the buttons value. How can i put these things together?For a short peace of code i would definitly be thankful. :-)Thx in advance, Peter-Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] DatePicker broken in IE6
I was talking about the default format for String output, which is dependent upon the operating system character encoding (I guess 95% use ISO-Latin-1). Java internal representation of characters is UNICODE UTF-16 (in fact an obsolete version of this standard) and not UTF-8. (Dealing with variable length characters for internal representation would be a programmer's nightmare!) Using ISO-Latin-1 for ouptut makes sense because ISO-Latin-1 is the same as UNICODE page 0, thus making the conversion trivial. Pierre-Yves Johan Compagner a écrit : please attach this to a patch: http://sourceforge.net/tracker/?group_id=119783atid=684977 http://sourceforge.net/tracker/?group_id=119783atid=684977 (and say what files it exactl y are) because else it will get lost. the standaard in java is not iso-8859-1 internally java is all utf but saving to disk and reading java looks at the system what the encoding is. But if you ask me, what you sent to the browser should always be full utf8 because then you never have problems who ever you target.. The projects i work with it is all utf8 browser - app server - database johan On 9/22/06, *Pierre-Yves Saumont* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Here are two versions. Using the UTF8 file does not solve the encoding problem since it will then break applications that use the ISO-8859-1 encoding setting. The javascript language file should be selected according to the encoding used, or its content should be translated to the appropriate encoding. So the solution of using the UTF8 version as is would be worse than the problem it is supposed to solve. Most french applications do in fact use ISO-8859-1 encoding. After all, isn't this is the default encoding for Java? It is somewhat sad since it lacks two characters that are very frequently used in french (oe and OE ligatures), but I think most french users would not like to be forced to switch their app to UTF8 to be able to use the datepicker. Pierre-Yves Johan Compagner a écrit : please give as an updated one then can we correct that And check it in as UTF-8 somehow johan On 9/22/06, *Pierre-Yves Saumont* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: The file calendar-fr.js is in DOS format. Is this OK? (By the way, it also contains some spelling errors in messages, but this is another story.) Pierre-Yves Johan Compagner a écrit : 1) The following configuration is mandatory if you use the french language with IE6 : getRequestCycleSettings().setResponseRequestEncoding(ISO-8859-1); Unless you use this, IE6 reports a Javascript error because the french script with the monthes names reports an unterminated string for every name containing accented characters. This problem does not occur with FF. hmm this should then be really looked at because this is very strange By default we do UTF-8 and that should be able to handle everything. johan // ** I18N // Calendar EN language // Author: Mihai Bazon, [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] // Encoding: any // Distributed under the same terms as the calendar itself. // For translators: please use UTF-8 if possible. We strongly believe that // Unicode is the answer to a real internationalized world. Also please // include your contact information in the header, as can be seen above. // Translator: David Duret, [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] from previous french version // Edited by Pierre-Yves Saumont [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] // full day names Calendar._DN = new Array (Dimanche, Lundi, Mardi, Mercredi, Jeudi, Vendredi, Samedi, Dimanche); // Please note that the following array of short day names (and the same goes // for short month names, _SMN) isn't absolutely necessary. We give it here // for exemplification on how one can customize the short day names, but if // they are simply the first N letters of the full name you can simply say: // // Calendar._SDN_len = N; // short day name length // Calendar._SMN_len = N; // short month name length // // If N = 3 then this is not needed either since we assume a value of 3 if not // present, to be compatible with translation files
Re: [Wicket-user] If the wicket examples' library can put into a TabbedPanel
Thank you for your help. I had known the markup inheritance like the WicketExamplePage, but the tag span wicket:id=mainNavigation/ will be add each page. If use TabbedPanel, I only to care the panel page's markup, I ask if can redirect a panel to another panel, only to avoid markup inheritance. I like panel combination more, how can wicket do this? deafwolf Date: Fri, 22 Sep 2006 14:12:13 +0200 From: Johan Compagner [EMAIL PROTECTED] Subject: Re: [Wicket-user] If the wicket examples' library can put into a TabbedPanel To: wicket-user@lists.sourceforge.net Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=iso-8859-1 if you just want to have to same header and navigation on multiply pages you could use markup inheritance So have a base page with the header and navigation and then extend that page. johan On 9/22/06, dragon deaf [EMAIL PROTECTED] wrote: Hello, In the wicket examples there's a library example, if I can put it into a TabbedPanel? I need some pages, these pages have the same header and navigation, if use TabbedPanel, I needn't to add the header each page, and it looks like use the frame. But if use the TabbedPanel, I can't redirect from a panel to another panel, if this problem can handle more easier? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user