Re: SimpleAuthorizationStratagy with errormessage fails

2009-06-08 Thread Cuball
I didn't find a solution yet :-( anyone an idea how to solve my problem ? Cuball wrote: Hi all, I have a created a simple authorizationstrategy, SimplePageAuthorizationStrategy authorizationStrategy = new SimplePageAuthorizationStrategy(

Re: AW: Custom HeaderContributor

2009-06-08 Thread Martin Funk
Hi Stefan, I can see the pain you have with the script.../script sections. But looking at HeaderResponse#renderJavascript(..) I'd say wicket might not be very helpful in aggregating all the script sections into one. My best shot would be trying to aggregate the Behaviors into one/fewer

Re: ListMultipleChoice and HashSet

2009-06-08 Thread Linda van der Pal
Well it's unlikely to be a bug in Wicket (not that I was expecting one). When I tried to make a quickstart, the quickstart didn't show the error. It worked as I expected in the first place. So now I'm off to hunt for the bug in my original code. Thanks for all the help! Linda. Igor Vaynberg

page refresh after setLocale

2009-06-08 Thread Juri Prokofiev
I have a link that just changes a locale. How is it possible to refresh the same page after setting the locale? The problem is that after I click the link the translation links are changed, but the content(that comes from hibernate) of the page is still the same in different language. If I add a

Re: page refresh after setLocale

2009-06-08 Thread Jonas
I think you just have to make sure the locale-dependent strings are not 'static' within the page. e.g. don't use new Model(My localized label from db) but something like new LoadableDetachableModel() { protected Object load() { return the string, taking the current locale into account;

auto focuslost

2009-06-08 Thread Alexander Elsholz
hi, i need a feature. when a user typed a number with a apecified length (zipcode, articelnumber and so on) the system should execute an auto focus lost and set the focus to the next field. has someone an idea how to solve this issue? thanks alex

Re: stack overflow in wicket-autocomplete.js

2009-06-08 Thread Lutz Müller
just wanted to check if my patch made it into rc4? On Thursday 02 April 2009 23:37:11 Johan Compagner wrote: I guess it would be better to fix it. Have to look into the code better, do you have a patch for it? On 02/04/2009, Lutz Müller lutz.muel...@combase.de wrote: Hi, I have a

Re: stack overflow in wicket-autocomplete.js

2009-06-08 Thread Johan Compagner
dont know exactly what the status is can you check the current code? and see if a patch is still needed? is there a jira issue for this? On Mon, Jun 8, 2009 at 15:00, Lutz Müller lutz.muel...@combase.de wrote: just wanted to check if my patch made it into rc4? On Thursday 02 April 2009

Re: stack overflow in wicket-autocomplete.js

2009-06-08 Thread Lutz Müller
i just downloaded and upgraded our project to rc4 and it seems the patch ist still needed. i could not find a corresponding jira issue. On Thursday 02 April 2009 23:37:11 Johan Compagner wrote: I guess it would be better to fix it. Have to look into the code better, do you have a patch for it?

Generic type of AjaxFallBackDefaultDataTable

2009-06-08 Thread Jing Ge (Besitec IT DEHAM)
Hello, We are using Wicket for building our new web application. Today I want to try the AjaxFallbackDefaultDataTable. But the example of it has event a syntax error: The constructor AjaxFallbackDefaultDataTableContact(String, ListIColumn?, ListModelDataProviderContact, int) is

putting a panel on dojo-component

2009-06-08 Thread Alexander Elsholz
hi, when i put a panel on dojos floatingpane i get this warning: DEBUG: DEPRECATED: dojo.widget.Manager.getImplementationName Could not locate widget implementation for panel in wicket.widget registered to namespace wicket. Developers must specify correct namespaces for all non-Dojo widgets --

Re: Stateful vs stateless requests and navigation

2009-06-08 Thread Igor Vaynberg
On Sun, Jun 7, 2009 at 10:16 AM, J.-F. Romprejrom...@gmail.com wrote:                        SETUP A So I tried setting the response headers to 'no-cache','no-store' as prescribed in other threads - that forces each request to go to the server and fixed the accuracy problem. - cart contents

Re: Component lifecycle question

2009-06-08 Thread Igor Vaynberg
On Sun, Jun 7, 2009 at 10:40 AM, Martin Funkmafulaf...@googlemail.com wrote: Hi list, in short: Why is there no Component#onRemove() method? because no one asked for it. feel free to create a jira issue with the request. -igor I see that there is Component#onDetach() which is called by

Re: Custom HeaderContributor

2009-06-08 Thread Igor Vaynberg
if there is no factory add a jira to create one. this might, however, be tricky because we use different instances for regular requests and ajax requests because they have to do different things - so i do not know how feasible a factory is or if we have to create both or what. -igor On Sun, Jun

Re: Generic type of AjaxFallBackDefaultDataTable

2009-06-08 Thread Igor Vaynberg
this email could have been way more helpful if you linked to the online example you mentioned. -igor On Mon, Jun 8, 2009 at 7:32 AM, Jing Ge (Besitec IT DEHAM)j...@besitec.com wrote: HI, I got the correct example from the downloaded package. Btw: the online example should be kept up to

Time Field

2009-06-08 Thread hill180
I understand there is the Datetimefield, but is there a field for just time. -jose - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Time Field

2009-06-08 Thread Martin Makundi
There used to be... the one for timestamp.. but in 1.4-rc4 you must make one yourself (by tweaking the converter). public class SqlTimestampTextField extends TextFieldTimestamp { /** * @param id * @param modelObject * @param property * @param datePattern */ public

Re: Time Field

2009-06-08 Thread Vladimir K
Does anyone know the converter for org.joda.time.Duration? It is not trivial one taking into account the user's locale. -- View this message in context: http://www.nabble.com/Time-Field-tp23930465p23931514.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Problem refreshing a table content

2009-06-08 Thread Igor Vaynberg
listdataprovider keeps a reference to the list, so it never sees your updated reference. i would suggest you implement idataprovider yourself. -igor On Mon, Jun 8, 2009 at 2:05 PM, Rangel Preisrangel...@gmail.com wrote: Hi. I have a page with one inputText, one button and one table... this's a

Re: JPA EntityManager storage

2009-06-08 Thread Adrian Merrall
I try to keep my UI logic, my business logic, and my persistence strategy separate. Putting the EntityManager in the Request means you have to pass the Request around into your business logic layer. By putting it in a ThreadLocal, the UI and business layers can be blissfully unaware of its

Re: question about IChoiceRenderer#getIdValue

2009-06-08 Thread Igor Vaynberg
no its not really safe if the changes to locale resort the list. -igor On Mon, Jun 8, 2009 at 6:12 PM, Ian MacLartyian.macla...@gmail.com wrote: Hello, I wonder if someone could clarify when it is safe to use the index as the value for IChoiceRenderer#getIdValue.  The documentation says that

Re: question about IChoiceRenderer#getIdValue

2009-06-08 Thread Ian MacLarty
On Tue, Jun 9, 2009 at 11:23 AM, Igor Vaynbergigor.vaynb...@gmail.com wrote: no its not really safe if the changes to locale resort the list. Okay, thanks. Ian. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Problems with UTF-8 chars in query string

2009-06-08 Thread David Leangen
Hello! I am having a problem with the double-encoding of Japanese characters that are in the query string. For example: http://www.example.com/path/q=日本語 If I write the raw value directly in the URL string in my browser, there are no problems. If I write the URL encoded value directly

Re: Problems with UTF-8 chars in query string

2009-06-08 Thread David Leangen
Ok, this seems to have something to do with proxying, not Wicket. When I enter 日本語 into the form, Wicket correctly sends back the reply: HTTP/1.1 302 Location: http://www.example.com/path?q=%E6%97%A5%E6%9C%AC%E8%AA%9E To which my browser redirects with: GET

Re: 2 questions on Include

2009-06-08 Thread satar
Bumped into this over one year old thread and it answered pretty much the exact question I had - SWEET. I am an experience Java developer but very new to Wicket. Just finished the Wicket-in-Action book, which was awesomely put together at least for someone like myself that loves to follow along

Re: Problems with UTF-8 chars in query string

2009-06-08 Thread David Leangen
Ok, sorry for the noise. I just needed to add the [NE] rule to my RewriteRule in my apache config and that did the trick. Cheers, =David On Jun 9, 2009, at 2:06 PM, David Leangen wrote: Ok, this seems to have something to do with proxying, not Wicket. When I enter 日本語 into the form,

Re: nested forms and locale

2009-06-08 Thread msteff
Could anybody help on this - please ? Or maybe give me a hint as to where to start debugging this. I tried to follow the setLocale() to see what the behaviour of wicket is, but i guess i have to start elsewhere.. Thanks for any answer! msteff wrote: Hi, I am having problems using nested