Re: [Wicket-user] error when using Palette in 2 different places.

2006-04-24 Thread karthik Guru
I have been playing around with Initializer and ended up overwriting the already existing wicket.properties. Took care of that and its working fine now. thanks.On 4/24/06, Igor Vaynberg [EMAIL PROTECTED] wrote: very strange, can you please reproduce in a quickstart.-IgorOn 4/23/06, karthik Guru

[Wicket-user] How to identify the *redirect* request, i.e. 2nd request with REDIRECT_TO_BUFFER

2006-04-24 Thread Marco Geier
I'd like to wrap all the event-handling and renderig stuff with a transaction. So one approach would be to define a (Servlet)Filter or modify some requestcycle settings. But when i use REDIRECT_TO_BUFFER i just want to wrap the first request (i.e. the processing and rendering part), but not the

[Wicket-user] ChoiceRenderer toString()

2006-04-24 Thread sven
ChoiceRenderer#getDisplayValue() uses toString() on the display value before returning it (line 129). This is no longer needed since AbstractChoice is using converters to produce a string representation (http://sourceforge.net/mailarchive/message.php?msg_id=14511656). Couldn't this toString()

Re: [Wicket-user] How to identify the *redirect* request, i.e. 2nd request with REDIRECT_TO_BUFFER

2006-04-24 Thread Igor Vaynberg
why not only open a transaction when a connection is asked for?what persistence layer are you using?-IgorOn 4/23/06, Marco Geier [EMAIL PROTECTED] wrote:I'd like to wrap all the event-handling and renderig stuff with a transaction.So one approach would be to define a (Servlet)Filter or modify

Re: [Wicket-user] proposal: internationalization project

2006-04-24 Thread flemming.boller
I can contribute to the danish translations, no problemo. /Flemming --- 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

Re: [Wicket-user] How to identify the *redirect* request, i.e. 2nd request with REDIRECT_TO_BUFFER

2006-04-24 Thread Johan Compagner
still why can't you do it on request?the first time a hibernate connection/transaction is get?And then close that in the servlet filter?Also you could do this in youre own RequestCycle and do the open/close in the attach en detach. johanOn 4/24/06, Marco Geier [EMAIL PROTECTED] wrote: i'm using

Re: [Wicket-user] ChoiceRenderer toString()

2006-04-24 Thread Johan Compagner
removed.On 4/24/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: ChoiceRenderer#getDisplayValue() uses toString() on the display value before returning it (line 129).This is no longer needed since AbstractChoice is using converters to produce a string representation (

Re: [Wicket-user] proposal: internationalization project

2006-04-24 Thread Eelco Hillenius
On 4/23/06, Iman Rahmatizadeh [EMAIL PROTECTED] wrote: I'm ready for Persian/Farsi (fa_IR). Just asking, would it be a good idea to let wicket automatically set the page direction (ltr or rtl) based on the locale ? I have no experience with that, so I wouldn't know. Which is exactly why we

Re: [Wicket-user] call for i18n contributions

2006-04-24 Thread Per Ejeklint
Sorry, forgot that. Yes, it's sv. /Per 20 apr 2006 kl. 19.26 skrev Eelco Hillenius: Thanks. That's language code 'sv', right? (Application_sv.properties). Eelco On 4/20/06, Per Ejeklint [EMAIL PROTECTED] wrote: Here is the quick Swedish translation (couldn't log in to sourceforge right

[Wicket-user] image ref within CSS

2006-04-24 Thread karthik Guru
I have a CSS that refers to an image - span hello{float:left; background:#DAE0D2 url(test.gif) repeat-x bottom; }If I were to package the panel as a component, the gif needs to be packaged as well. Then the CSS reference to image - url(test.gif)cannot be hardcoded.So changed the css to

Re: [Wicket-user] image ref within CSS

2006-04-24 Thread Eelco Hillenius
On 4/24/06, karthik Guru [EMAIL PROTECTED] wrote: I have a CSS that refers to an image - span hello{ float:left; background:#DAE0D2 url(test.gif) repeat-x bottom; } If I were to package the panel as a component, the gif needs to be packaged as well. Then the CSS reference to image -

Re: [Wicket-user] How to identify the *redirect* request, i.e. 2nd request with REDIRECT_TO_BUFFER

2006-04-24 Thread Marco Geier
Hi Johan, Johan Compagner wrote: still why can't you do it on request? the first time a hibernate connection/transaction is get? And then close that in the servlet filter? Agreed, that would be the cleanest way to do, but it may not always be feasible and would need a lot of code and rework

Re: [Wicket-user] image ref within CSS

2006-04-24 Thread karthik Guru
yes worked..great!..my initializer that registers the gifs as a shared resource didn't run .I fixed that. thanks.On 4/24/06, Eelco Hillenius [EMAIL PROTECTED] wrote: On 4/24/06, karthik Guru [EMAIL PROTECTED] wrote: I have a CSS that refers to an image - span hello{ float:left;

Re: [Wicket-user] How to identify the *redirect* request, i.e. 2nd request with REDIRECT_TO_BUFFER

2006-04-24 Thread Johan Compagner
a requestcycle is not made for redirect to buffer responses.On 4/24/06, Marco Geier [EMAIL PROTECTED] wrote:Hi Johan,Johan Compagner wrote: still why can't you do it on request? the first time a hibernate connection/transaction is get? And then close that in the servlet filter?Agreed, that would

[Wicket-user] Re: Licensing issues for including Wicket JARs

2006-04-24 Thread Petr Pisl
It depends, how we can distribute the module. In the case that it will be distributed with NetBeans (as you wrote), we need permission from pack to be part of NetBeans and then fill a leagal issue for lawyers. This issue should be entered with Mike Boyer, who covers all legal issues. Usually

Re: [Wicket-user] image ref within CSS

2006-04-24 Thread Eelco Hillenius
Pfffew. Glad I didn't say something stupid this time ;) Eelco On 4/24/06, karthik Guru [EMAIL PROTECTED] wrote: yes worked..great!..my initializer that registers the gifs as a shared resource didn't run .I fixed that. thanks. On 4/24/06, Eelco Hillenius [EMAIL PROTECTED] wrote: On

[Wicket-user] Question about localizing strings with .properties files

2006-04-24 Thread Ari Suutari
Hi, If I have following property files for my application: 1) Application_myskin_fi.properties message1=A 2) Application_myskin.properties message2= 3) Application.properties message3=CCC If I have three messages above, must I put values for these keys for each property

Re: [Wicket-user] Re: Licensing issues for including Wicket JARs

2006-04-24 Thread Eelco Hillenius
So it would be much quicker for you Geertjan to just update to 1.2 :) No worries, we'll help you through it. It's only a couple of classes, no? Eelco On 4/24/06, Petr Pisl [EMAIL PROTECTED] wrote: It depends, how we can distribute the module. In the case that it will be distributed with

Re: [Wicket-user] Question about localizing strings with .properties files

2006-04-24 Thread Marco Geier
by default you need all values in all files! I had the same problem and adding the following code to application's init did the trick: getResourceSettings().addStringResourceLoader(new ApplicationStringResourceLoader(this) { @Override public String loadStringResource(Class clazz,

Re: [Wicket-user] Question about localizing strings with .properties files

2006-04-24 Thread Johan Compagner
we should try to fall back to those better then (i thought this already happend)can you make a bug report for this with a small (unit) test case ?johanOn 4/24/06, Marco Geier [EMAIL PROTECTED] wrote: by default you need all values in all files!I had the same problem and adding the following code

[Wicket-user] Changing Tree model

2006-04-24 Thread Steve Knight
I am currently using the tree component to display hierarchical data, and now I'd like to have an Edit page that allows users to edit the data that is displayed in the tree. So, after the user saves the changes the tree view is displayed again, and the changes should be reflected in the tree.

Re: [Wicket-user] Changing Tree model

2006-04-24 Thread Eelco Hillenius
setOptimizeItemRemoval to false should do the trick. Or maybe just manually removeChildren when you suspect something changed (e.g. by registring a listener). Eelco On 4/24/06, Steve Knight [EMAIL PROTECTED] wrote: I am currently using the tree component to display hierarchical data, and now

Re: [Wicket-user] Question about localizing strings with .properties files

2006-04-24 Thread Marco Geier
johan, the fallback mechanism works fine *on the bundle-level*, i.e. Wicket will try all these SomeApplication_locale_style.properties combinations down to SomeApplication.properties. But once it found a bundle it will not longer look for another bundle, even if the key is not contained, but

Re: [Wicket-user] components javadoc

2006-04-24 Thread Igor Vaynberg
a patch to javadoc would be most welcome :)-IgorOn 4/24/06, karthik Guru [EMAIL PROTECTED] wrote:A small recommendation/request wrt built-in components javadoc. I think the components that ship with wicket/wicket-extensions need to have the associated template HTML text copied over as a part of

Re: [Wicket-user] image ref within CSS

2006-04-24 Thread Igor Vaynberg
im still recovering from shock!On 4/24/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Pfffew. Glad I didn't say something stupid this time ;)EelcoOn 4/24/06, karthik Guru [EMAIL PROTECTED] wrote: yes worked..great!..my initializer that registers the gifs as a shared resource didn't run .I fixed

Re: [Wicket-user] image ref within CSS

2006-04-24 Thread Justin Lee
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 /me tosses some popcorn in igor's gaping maw. Igor Vaynberg wrote: im still recovering from shock! On 4/24/06, *Eelco Hillenius* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Pfffew. Glad I didn't say something stupid this time

Re: [Wicket-user] Question about localizing strings with .properties files

2006-04-24 Thread Juergen Donnerstag
I think it is a RFE. Juergen On 4/24/06, Marco Geier [EMAIL PROTECTED] wrote: johan, the fallback mechanism works fine *on the bundle-level*, i.e. Wicket will try all these SomeApplication_locale_style.properties combinations down to SomeApplication.properties. But once it found a bundle

[Wicket-user] UML diagram?

2006-04-24 Thread Stefan Kanev
HiDon't you think that an UML diagram for the basic objects in wicket would be useful for newbies to the frameworks (shows the complete) picture and for all users, where it can serve as a quick reference. Since such a diagram is not present, I'm willing to put up one. What do you think should be

Re: [Wicket-user] Changing Tree model

2006-04-24 Thread Steve Knight
The data for the tree comes from a database. And the user may also move a node to a different part of the tree. I would like to rebuild the entire tree from the database on each page view, but I'd like it to maintain the expanded and selected states. How should I go about doing this? SteveOn

Re: [Wicket-user] Dynamically generated buttons are showing up as broken links

2006-04-24 Thread kurt heston
When I'm stepping through the code, the problem goes away. Still looking... Johan Compagner wrote: do debug when you just ask for the link in the browser what you excactly are sending to the browser. isn't it by accident 0 bytes? johan On 4/19/06, * kurt heston* [EMAIL PROTECTED]

Re: [Wicket-user] Changing Tree model

2006-04-24 Thread Eelco Hillenius
That's the beauty of that Swing tree model. It should work as the selection is held in the TreeState object. So if you set OptimizeItemRemoval to false, it triggers redrawing the child components everytime, but using the current tree state. So, just setting that flag - btw the new method name for