Re: [Wicket-user] The problem about encoding and event in ajax

2006-09-22 Thread Erik van Oosten
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 ?.

Re: [Wicket-user] INPUT (+ value, + onClick) as Button?

2006-09-22 Thread Erik van Oosten
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

Re: [Wicket-user] INPUT (+ value, + onClick) as Button?

2006-09-22 Thread Manuel Barzi
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

Re: [Wicket-user] DownDownChoice problem

2006-09-22 Thread Dumitru Postoronca
Gwyn Evans wrote: What does c.getMyOptionValue() return? This... public HomePage() { add(new DropDownChoice( options, new Model(getMyOptionValue()), OPTIONS) { protected String getDefaultChoice(final Object

Re: [Wicket-user] The problem about encoding and event in ajax

2006-09-22 Thread 王磊
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

Re: [Wicket-user] INPUT (+ value, + onClick) as Button?

2006-09-22 Thread Erik van Oosten
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

Re: [Wicket-user] DatePicker broken in IE6

2006-09-22 Thread Pierre-Yves Saumont
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

Re: [Wicket-user] The problem about encoding and event in ajax

2006-09-22 Thread Erik van Oosten
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

Re: [Wicket-user] INPUT (+ value, + onClick) as Button?

2006-09-22 Thread Manuel Barzi
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!

Re: [Wicket-user] TinyMCE integration

2006-09-22 Thread Ted Roeloffzen
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

Re: [Wicket-user] INPUT (+ value, + onClick) as Button?

2006-09-22 Thread Erik van Oosten
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

Re: [Wicket-user] Database Integration With Wicket

2006-09-22 Thread Korbinian Bachl
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

Re: [Wicket-user] Database Integration With Wicket

2006-09-22 Thread Anders Peterson
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

Re: [Wicket-user] The problem about encoding and event in ajax

2006-09-22 Thread Martijn Dashorst
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

Re: [Wicket-user] Database Integration With Wicket

2006-09-22 Thread Gwyn Evans
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

Re: [Wicket-user] INPUT (+ value, + onClick) as Button?

2006-09-22 Thread Gwyn Evans
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

Re: [Wicket-user] The problem about encoding and event in ajax

2006-09-22 Thread 王磊
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:

Re: [Wicket-user] Database Integration With Wicket

2006-09-22 Thread Ayodeji Aladejebi
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

Re: [Wicket-user] INPUT (+ value, + onClick) as Button?

2006-09-22 Thread Manuel Barzi
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.

Re: [Wicket-user] INPUT (+ value, + onClick) as Button?

2006-09-22 Thread Johan Compagner
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

[Wicket-user] Jackrabbit

2006-09-22 Thread Ted Roeloffzen
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

Re: [Wicket-user] DownDownChoice problem

2006-09-22 Thread Gwyn Evans
How about... add(new DropDownChoice( options2, new Model(getDefaultSelection(getMyOptionValue())), OPTIONS) { protected String getDefaultChoice( final Object selected ) { return ; // remove Choose One prompt

Re: [Wicket-user] INPUT (+ value, + onClick) as Button?

2006-09-22 Thread Johan Compagner
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 ||

Re: [Wicket-user] INPUT (+ value, + onClick) as Button?

2006-09-22 Thread Manuel Barzi
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

Re: [Wicket-user] INPUT (+ value, + onClick) as Button?

2006-09-22 Thread Johan Compagner
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

Re: [Wicket-user] The problem about encoding and event in ajax

2006-09-22 Thread Johan Compagner
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

Re: [Wicket-user] INPUT (+ value, + onClick) as Button?

2006-09-22 Thread Manuel Barzi
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

[Wicket-user] long-named wicket:ids vs performance

2006-09-22 Thread Manuel Barzi
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

Re: [Wicket-user] ajax refresh on date picker

2006-09-22 Thread Matej Knopp
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

Re: [Wicket-user] Problem with tree width

2006-09-22 Thread Matej Knopp
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

Re: [Wicket-user] long-named wicket:ids vs performance

2006-09-22 Thread Juergen Donnerstag
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

Re: [Wicket-user] long-named wicket:ids vs performance

2006-09-22 Thread Johan Compagner
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

[Wicket-user] If the wicket examples' library can put into a TabbedPanel

2006-09-22 Thread dragon deaf
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

Re: [Wicket-user] long-named wicket:ids vs performance

2006-09-22 Thread Manuel Barzi
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

Re: [Wicket-user] The problem about encoding and event in ajax

2006-09-22 Thread 王磊
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

Re: [Wicket-user] DownDownChoice problem

2006-09-22 Thread Johan Compagner
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,

Re: [Wicket-user] DatePicker broken in IE6

2006-09-22 Thread Johan Compagner
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

[Wicket-user] Preventing multiple form submits

2006-09-22 Thread Stefan Arentz
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

Re: [Wicket-user] Preventing multiple form submits

2006-09-22 Thread Johan Compagner
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

Re: [Wicket-user] If the wicket examples' library can put into a TabbedPanel

2006-09-22 Thread Johan Compagner
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

Re: [Wicket-user] DatePicker broken in IE6

2006-09-22 Thread Pierre-Yves Saumont
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 :

Re: [Wicket-user] Problem with tree width

2006-09-22 Thread Marc-Andre Houle
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:

Re: [Wicket-user] INPUT (+ value, + onClick) as Button?

2006-09-22 Thread Igor Vaynberg
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

Re: [Wicket-user] Tree scrolling

2006-09-22 Thread Steve Knight
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.

Re: [Wicket-user] Database Integration With Wicket

2006-09-22 Thread Igor Vaynberg
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

Re: [Wicket-user] ajax refresh on date picker

2006-09-22 Thread Igor Vaynberg
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

Re: [Wicket-user] Tree scrolling

2006-09-22 Thread Matej Knopp
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

Re: [Wicket-user] long-named wicket:ids vs performance

2006-09-22 Thread Igor Vaynberg
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

Re: [Wicket-user] ajax refresh on date picker

2006-09-22 Thread Matej Knopp
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

Re: [Wicket-user] INPUT (+ value, + onClick) as Button?

2006-09-22 Thread Manuel Barzi
;) 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

Re: [Wicket-user] DownDownChoice problem

2006-09-22 Thread Dumitru Postoronca
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 =

Re: [Wicket-user] long-named wicket:ids vs performance

2006-09-22 Thread Manuel Barzi
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.

Re: [Wicket-user] Database Integration With Wicket

2006-09-22 Thread Gustavo Santucho
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

Re: [Wicket-user] Database Integration With Wicket

2006-09-22 Thread Ayodeji Aladejebi
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

Re: [Wicket-user] DatePicker broken in IE6

2006-09-22 Thread Pierre-Yves Saumont
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

Re: [Wicket-user] Database Integration With Wicket

2006-09-22 Thread Nick Heudecker
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

Re: [Wicket-user] Database Integration With Wicket

2006-09-22 Thread Ayodeji Aladejebi
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

Re: [Wicket-user] Database Integration With Wicket

2006-09-22 Thread Igor Vaynberg
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

Re: [Wicket-user] Database Integration With Wicket

2006-09-22 Thread Ayodeji Aladejebi
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

Re: [Wicket-user] Preventing multiple form submits

2006-09-22 Thread Eelco Hillenius
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,

Re: [Wicket-user] TinyMCE integration

2006-09-22 Thread Eelco Hillenius
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,

Re: [Wicket-user] Database Integration With Wicket

2006-09-22 Thread Nathan Hamblen
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.

Re: [Wicket-user] Preventing multiple form submits

2006-09-22 Thread Stefan Arentz
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

[Wicket-user] BookmarkablePageLink as button with value from model

2006-09-22 Thread Peter Klassen
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. :-)

Re: [Wicket-user] DatePicker broken in IE6

2006-09-22 Thread Johan Compagner
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

Re: [Wicket-user] Preventing multiple form submits

2006-09-22 Thread Igor Vaynberg
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

Re: [Wicket-user] BookmarkablePageLink as button with value from model

2006-09-22 Thread Igor Vaynberg
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

Re: [Wicket-user] DatePicker broken in IE6

2006-09-22 Thread Pierre-Yves Saumont
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

Re: [Wicket-user] If the wicket examples' library can put into a TabbedPanel

2006-09-22 Thread deafwolf
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.