[Wicket-user] Matching default locale to browser's preferred locale

2007-03-20 Thread David Leangen
I can't seem to find any info on this, and I can't recall either how this is supposed to work. I want the locale of my app to match the client browser's default locale (unless changed explicitly, of course). What do I need to do to achieve this? Thanks!

Re: [Wicket-user] Matching default locale to browser's preferred locale

2007-03-20 Thread Johan Compagner
that should happen automatically already. johan On 3/20/07, David Leangen [EMAIL PROTECTED] wrote: I can't seem to find any info on this, and I can't recall either how this is supposed to work. I want the locale of my app to match the client browser's default locale (unless changed

[Wicket-user] Serveur pushing implementation

2007-03-20 Thread Vincent Demay
Hi all, I made a new project in wicket-stuff(sourceforge) called wicket-contrib-push. This project allows pushing of events on server side in a simulated bus between server and all client. This pushing has 2 implementations : * The first based on Xavier Hanin work which is based on

Re: [Wicket-user] Hibernate/Spring and Wicket architecture request for validation (was Wicket's questions)

2007-03-20 Thread ZedroS Schwart
Thanks again for all these answers. I just don't get right the last one : They are also good for when you work with value objects ('thin' representations of the your domain objects). Could you be more explicit please ? Thanks again ZedroS On 3/17/07, Eelco Hillenius [EMAIL PROTECTED] wrote:

Re: [Wicket-user] Serveur pushing implementation

2007-03-20 Thread Johan Compagner
is the second one really push? or push by polling? I am currently checking out the NIO support of tomcat 6. I hope in the coming weeks to have an impl that is really push (so there is really a nio socket connection from server to client all the time) johan On 3/20/07, Vincent Demay [EMAIL

Re: [Wicket-user] Serveur pushing implementation

2007-03-20 Thread Vincent Demay
Korbinian Bachl a écrit : Hi, i find it great that you put it to wicket-stuff! However im sorry that i havent understood what this is good for - can you please give me some usage example? I mean what is the usecase of a bus-simulation? Regards, Korbinian Hi I will try to found out

[Wicket-user] palette problem

2007-03-20 Thread Ivana Cace
I've been experiencing a problem with the Palette component. User choices are always returned as n times the first item from options, unless the ChoiceRenderer is explicitely constructed with an idExpression. For example the following code: //class Input implements Serializable, it has two

Re: [Wicket-user] Matching default locale to browser's preferred locale

2007-03-20 Thread Johan Compagner
i don't see a getDefaultLocale on ApplicationSettings (which version do you use of wicket?) But setting a (default) locale like getSession().setLocale() then you will override the user locale with something that the server specifies. But the question is what doesn't work? What do you do with

Re: [Wicket-user] Serveur pushing implementation

2007-03-20 Thread Johan Compagner
tomcat uses this: http://tomcat.apache.org/tomcat-6.0-doc/aio.html so for tomcat to work i need to create a special filter (or servlet) that maps a push connection How does jetty work? When does jetty know that this is a nio/cometd connection? johan On 3/20/07, Vincent Demay [EMAIL

Re: [Wicket-user] Matching default locale to browser's preferred locale

2007-03-20 Thread David Leangen
Thanks for your help! You helped us locate the source of the problem, though it's totally unrelated to wicket. We misunderstood how locales work. We were testing for: locale == Locale.JAPANESE When we should have been testing for: locale.getLanguage().equals( ja ) Cheers, Dave On

Re: [Wicket-user] Serveur pushing implementation

2007-03-20 Thread Vincent Demay
Johan Compagner a écrit : tomcat uses this: http://tomcat.apache.org/tomcat-6.0-doc/aio.html so for tomcat to work i need to create a special filter (or servlet) that maps a push connection How does jetty work? When does jetty know that this is a nio/cometd connection? It is exactly the

[Wicket-user] Working with Tree - onClick() different frame target?

2007-03-20 Thread Michel Wichers
Hi guys, I'm currently developing a page with two frames. The left frame SelectionFrame contains an extensions Tree and the right frame Main contains any Contents. What i now want to do is to respond to the Contents Frame by clicking on some special tree nodes. e.g.: ...

[Wicket-user] Row highlighting on IE

2007-03-20 Thread eznibe
Hi, I need to know how to make the highlighting in IE, because it don't support the tr:hover. I found something about a patch, can you explain me a bit more about this Thanks -- View this message in context: http://www.nabble.com/Row-highlighting-on-IE-tf3433736.html#a9572576 Sent from the

Re: [Wicket-user] Row highlighting on IE

2007-03-20 Thread Nick Heudecker
I haven't tried it, but have you tried tr onmouseover=... onmouseout=...? On 3/20/07, eznibe [EMAIL PROTECTED] wrote: Hi, I need to know how to make the highlighting in IE, because it don't support the tr:hover. I found something about a patch, can you explain me a bit more about this

Re: [Wicket-user] Working with Tree - onClick() different frame target?

2007-03-20 Thread Marc-Andre Houle
Maybe this can help you. At least, I hope... http://cwiki.apache.org/WICKET/using-frames.html Marc On 3/20/07, Michel Wichers [EMAIL PROTECTED] wrote: Hi guys, I'm currently developing a page with two frames. The left frame SelectionFrame contains an extensions Tree and the right frame

Re: [Wicket-user] Working with Tree - onClick() different frame target?

2007-03-20 Thread Michel Wichers
Hello Marc, thanks for the quick response. I've read that and also scanned the wicket examples for frames where a base frame class is used which holds the target frames... But i was wondering if there is a easier way to solve this since i do not need to refresh the top page which holds the

Re: [Wicket-user] Working with Tree - onClick() different frame target?

2007-03-20 Thread Marc-Andre Houle
Now I understand what you mean. Not sure it is possible, maybe someone with more frame and PageMap experience will be able to answer you In our application, instead of using real frame, we use Dojo which let you display a page with resizable panel that look like frame. So we display one

Re: [Wicket-user] Serveur pushing implementation

2007-03-20 Thread James McLaughlin
WDYT?, Any comments, feelings? This looks like really exciting work. I can't wait to try it out. I took a look at the code and you've done a really nice job. One question, is it possible to push rendered components instead of pinging those components on the client side to call back?

Re: [Wicket-user] Hibernate/Spring and Wicket architecture request for validation (was Wicket's questions)

2007-03-20 Thread Eelco Hillenius
On 3/20/07, ZedroS Schwart [EMAIL PROTECTED] wrote: Thanks again for all these answers. I just don't get right the last one : They are also good for when you work with value objects ('thin' representations of the your domain objects). Could you be more explicit please ?

Re: [Wicket-user] Serveur pushing implementation

2007-03-20 Thread Eelco Hillenius
Can't the Tomcat support be merged into the same project? Eelco On 3/20/07, Johan Compagner [EMAIL PROTECTED] wrote: tomcat uses this: http://tomcat.apache.org/tomcat-6.0-doc/aio.html so for tomcat to work i need to create a special filter (or servlet) that maps a push connection How

Re: [Wicket-user] Working with Tree - onClick() different frame target?

2007-03-20 Thread James McLaughlin
On 3/20/07, Michel Wichers [EMAIL PROTECTED] wrote: Hi guys, I'm currently developing a page with two frames. The left frame SelectionFrame contains an extensions Tree and the right frame Main contains any Contents. What i now want to do is to respond to the Contents Frame by clicking on

Re: [Wicket-user] Matching default locale to browser's preferred locale

2007-03-20 Thread Eelco Hillenius
Yes, you're right. Our problem occurs when we try to do some locale-related stuff, i.e.: Locale defaultLocale = Application.get().getApplicationSettings().getDefaultLocale(); getSession().setLocale(); ApplicationSettings#defaultLocale was removed a while ago as the default

Re: [Wicket-user] Working with Tree - onClick() different frame target?

2007-03-20 Thread Eelco Hillenius
In your case: don't use 'internal' links but use bookmarkable links and call setPageMap(PageMap.forName(Main)) on them. Also, if your tree is not too large, consider just using some javascript based tree you your selection frame doesn't have to make round trips. Eelco On 3/20/07, Michel Wichers

Re: [Wicket-user] Serveur pushing implementation

2007-03-20 Thread Vincent Demay
Eelco Hillenius a écrit : Can't the Tomcat support be merged into the same project? I need to check for that and check tomcat behavior is the same as jetty but I think it should -- Vincent Eelco On 3/20/07, Johan Compagner [EMAIL PROTECTED] wrote: tomcat uses this:

Re: [Wicket-user] Serveur pushing implementation

2007-03-20 Thread Vincent Demay
James McLaughlin a écrit : WDYT?, Any comments, feelings? This looks like really exciting work. I can't wait to try it out. I took a look at the code and you've done a really nice job. One question, is it possible to push rendered components instead of pinging those components on the

Re: [Wicket-user] Wicket workflow and rules

2007-03-20 Thread Eelco Hillenius
Sounds to me like you should put a BPM tool central in your architecture. I've used jBPM and (a little bit of) Wicket in the past myself, and know Matej has for his closed source project. I like jBPM for it being a Java-centric tool, that's easy to use, extend and test. Also take a look at this

Re: [Wicket-user] Serveur pushing implementation

2007-03-20 Thread Eelco Hillenius
On 3/20/07, Vincent Demay [EMAIL PROTECTED] wrote: Eelco Hillenius a écrit : Can't the Tomcat support be merged into the same project? I need to check for that and check tomcat behavior is the same as jetty but I think it should Cool. My note was more directed to Johan actually :) But you

Re: [Wicket-user] palette problem

2007-03-20 Thread Igor Vaynberg
go ahead and open a bug. i dont know if i ever tested indexing by int because i dont think anyone would use it that much. its too bad that int ended up in the ichoicerenderer interface. so it might very well be a bug in the pallette. -igor On 3/20/07, Ivana Cace [EMAIL PROTECTED] wrote: I've

Re: [Wicket-user] Serveur pushing implementation

2007-03-20 Thread Weaver, Scott
This might be of some help and it might not. I use bi-directional json (but not cometd) in one of the portal apps I wrote (unfortunately not in Wicket). On the server side, I use json-lib http://json-lib.sourceforge.net/ and on the client side I use jsonStringify.js,

Re: [Wicket-user] Serveur pushing implementation

2007-03-20 Thread Igor Vaynberg
this is a great start. my idea vision of this implementation is something that doesnt depend on dojo and something that has a very similar requesttarget to ajaxrequesttarget that can transfer value pairs _or_ markup. but this is definetely a great start. -igor On 3/20/07, Vincent Demay [EMAIL

Re: [Wicket-user] Serveur pushing implementation

2007-03-20 Thread James McLaughlin
The problem comes from cometd bus which is design to transport json and not xml. I was thinking of something which is able to serialize a component rendered as String and put all in a json object in order to avoid this second useless callback. but it need some additionnal work ;) -- Vincent

Re: [Wicket-user] Hibernate/Spring and Wicket architecture request for validation (was Wicket's questions)

2007-03-20 Thread ZedroS Schwart
That's was a really instructive post, thanks Eelco. In fact I'm actually struggling with this kind of issue. I've model objects and then on my presentation layer the data are quite often a bit different, and thus I wonder which way is the best. Igor had spoken about form beans, but then I've to

Re: [Wicket-user] Serveur pushing implementation

2007-03-20 Thread Johan Compagner
yes i want to have it simple and build in in wicket-ajax.js if possible (at least support for it it could be and extra small js: wicket-cometd.js) johan On 3/20/07, Igor Vaynberg [EMAIL PROTECTED] wrote: this is a great start. my idea vision of this implementation is something that doesnt

Re: [Wicket-user] Hibernate/Spring and Wicket architecture request for validation (was Wicket's questions)

2007-03-20 Thread Eelco Hillenius
That's was a really instructive post, thanks Eelco. In fact I'm actually struggling with this kind of issue. I've model objects and then on my presentation layer the data are quite often a bit different, and thus I wonder which way is the best. Igor had spoken about form beans, I think he

Re: [Wicket-user] Serveur pushing implementation

2007-03-20 Thread Vincent Demay
Johan Compagner a écrit : yes i want to have it simple and build in in wicket-ajax.js if possible (at least support for it it could be and extra small js: wicket-cometd.js) well, I understand what you mean, but comted (www.cometd.com) is a dojo fundation subproject. So if we want to write our

Re: [Wicket-user] Working with Tree - onClick() different frame target?

2007-03-20 Thread Michel Wichers
Hello Marc, thanks for the Dojo information i will check that out for our requirements. Have you used any Dojo-Wicket framework stuff for this? Thanks! Michel Zitat von Marc-Andre Houle [EMAIL PROTECTED]: Now I understand what you mean. Not sure it is possible, maybe someone with more

Re: [Wicket-user] Working with Tree - onClick() different frame target?

2007-03-20 Thread Marc-Andre Houle
Nope, we started before the wicket-stuf/dojo project So we ad the JS and make the stuff directly... (In fact, it is just making div look correctly for Dojo) On 3/20/07, Michel Wichers [EMAIL PROTECTED] wrote: Hello Marc, thanks for the Dojo information i will check that out for our

Re: [Wicket-user] Working with Tree - onClick() different frame target?

2007-03-20 Thread Marc-Andre Houle
You got an example here even if the code is missing, maybe there is a way of using it... http://www.demay-fr.net:8080/WCD13/app/?wicket:bookmarkablePage=wicket-0%3Awicket.contrib.dojo.examples.SplitContainerSample Marc On 3/20/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: Nope, we started

Re: [Wicket-user] Working with Tree - onClick() different frame target?

2007-03-20 Thread Michel Wichers
Thanks Marc! I will check that tomorrow and call it a day ;-) Thanks for all your Help to Eelco jim as well - will check that out. cheers! Michel Zitat von Marc-Andre Houle [EMAIL PROTECTED]: You got an example here even if the code is missing, maybe there is a way of using it...

Re: [Wicket-user] Working with Tree - onClick() different frame target?

2007-03-20 Thread Igor Vaynberg
but why use ajax if you are using frames? all you have to do is make those links bookmarkable and append a target attribute to them via an attribute modifier -igor On 3/20/07, Michel Wichers [EMAIL PROTECTED] wrote: Hi guys, I'm currently developing a page with two frames. The left frame

Re: [Wicket-user] Working with Tree - onClick() different frame target?

2007-03-20 Thread Michel Wichers
Hi Igor, you're right - we really do not need any AJAX stuff here - i just used the extension tree and the ajax stuff is there out of the box (if not explicitely disabled). As you can see I'm still in a learning phase ;-) I will switch that tree to use regular links instead and use

Re: [Wicket-user] Working with Tree - onClick() different frame target?

2007-03-20 Thread Eelco Hillenius
The only reason in your case where it might make sense to use Ajax is when you're tree is really large and you want to load parts of it lazily. If that's not the case, don't use Ajax. Eelco On 3/20/07, Michel Wichers [EMAIL PROTECTED] wrote: Hi Igor, you're right - we really do not need any

[Wicket-user] Variable Interpolation within the HTML

2007-03-20 Thread Andrew Berman
I have a use case where the text of the a page can change depending on the skin that is selected. There is some dynamic text in the original text, such as website name, which also changes depending on skin. However, currently I have added a fixed number of Label objects to deal with the website

Re: [Wicket-user] Variable Interpolation within the HTML

2007-03-20 Thread James McLaughlin
On 3/20/07, Andrew Berman [EMAIL PROTECTED] wrote: I have a use case where the text of the a page can change depending on the skin that is selected. There is some dynamic text in the original text, such as website name, which also changes depending on skin. However, currently I have added a

Re: [Wicket-user] Serveur pushing implementation

2007-03-20 Thread Johan Compagner
first what is so special about that code? What is the protocol you are talking about I haven't really looked at it yet at this time but i will. How i see it if possible is just an open channel and over it flows the wicket ajax stuff (so the xml that wicket ajax can parse) this way if something

Re: [Wicket-user] Apache Con Amsterdam: wicket presence

2007-03-20 Thread Gwyn Evans
So, who'll be in town are there any plans for a get-together other than the conference itself? (Just trying to price a quick trip across wondering when's best...) /Gwyn On 14/03/07, Erik van Oosten [EMAIL PROTECTED] wrote: If you are off into the city, I'll join you. Perhaps I can show you

Re: [Wicket-user] Apache Con Amsterdam: wicket presence

2007-03-20 Thread Eelco Hillenius
I'm in town during that week, though I won't be there everyday. But if we have a get together (in a bar or mayb we can find Amsterdam friends with some office space in the city or something) I'll be there! Eelco On 3/20/07, Gwyn Evans [EMAIL PROTECTED] wrote: So, who'll be in town are there

Re: [Wicket-user] Variable Interpolation within the HTML

2007-03-20 Thread Eelco Hillenius
Alternatively, you could use post processing filters for that. Can't remember the exact name from the top of my head. Eelco On 3/20/07, James McLaughlin [EMAIL PROTECTED] wrote: On 3/20/07, Andrew Berman [EMAIL PROTECTED] wrote: I have a use case where the text of the a page can change

Re: [Wicket-user] Variable Interpolation within the HTML

2007-03-20 Thread Andrew Berman
Cool, thanks guys, I'll check both options out. On 3/20/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Alternatively, you could use post processing filters for that. Can't remember the exact name from the top of my head. Eelco On 3/20/07, James McLaughlin [EMAIL PROTECTED] wrote: On 3/20/07,

Re: [Wicket-user] Apologies from an anonymous coward

2007-03-20 Thread Jean-Baptiste Quenot
* Brian Topping: I hope you have the guts to realize what an ass you are making of yourself and stand up and apologize. He won't do so: as a pure coincidence, this guy didn't have the courtesy to even mention his name. I bet that he'll be returning with another nickname soon. I'm

Re: [Wicket-user] form processing - getting dropdown selection back to onSubmit method.

2007-03-20 Thread GS-ikiini
don't understand: look up a localized string with the key nullValid (rather than null) to represent the null option. - can you elaborate a bit please. need to know what a localised string is and what is its key. thank you -B Ryan Holmes wrote: DropDownChoice.setNullValid(true) And

[Wicket-user] hey, I was uisng that target model

2007-03-20 Thread Nathan Hamblen
Now that 2.0-style compound models are in 1.x snapshots, I have a question for people that have been using them: how do you work without CompoundPropertyModel.getNetstedModel()? For me, this is often a special model that I want to do something with, but in the newer style it's called the