Re: Wicket 1.5 - ModalWindow with page - abstract functions do not update model correct

2011-06-15 Thread Marieke Vandamme
Hello, Thanks for the response ! I'm not sure if the following code is what you want. I just update the pageValue variable on the HomePage in the abstract function 'linkClicked'. Following code is inside the HomePage constructor: pageValue = initial modal value; final ModalWindow

Re: Wicket 1.5 - ModalWindow with page - abstract functions do not update model correct

2011-06-15 Thread Marieke Vandamme
Hi, I just tried it with the inter-component events, and it's the same problem as with the abstract functions.. Please try my code: HomePage: public class HomePage extends WebPage { @Override public void onEvent(IEvent? event) { super.onEvent(event); if

Users, sessions, data...

2011-06-15 Thread Zeldor
Hi, My last attempts to fix my session and advices here made me thinking if my approach is good. So I'm curious - how do you handle users and their data? In my case I have session, when user logs in entire entity gets loaded into session. Later I get user data from that session and when he

Re: Users, sessions, data...

2011-06-15 Thread Peter Karich
Am 15.06.2011 08:36, schrieb Zeldor: Hi, My last attempts to fix my session and advices here made me thinking if my approach is good. So I'm curious - how do you handle users and their data? In my case I have session, when user logs in entire entity gets loaded into session. Later I get

Re: Users, sessions, data...

2011-06-15 Thread Zeldor
But what are benefits of small session really? With entire user in session I can skip getting data from db and serve data faster... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Users-sessions-data-tp3598626p3598945.html Sent from the Users forum mailing list

Re: AutoCompleteTextField which uses an Object, not a String

2011-06-15 Thread Clint Checketts
Yesterday while playing with AutoCompleTextField, I created a quickstart to show how it is 'broken'. I hadn't thought of using a converter. After using a converter the component behaves as I'd expect. So a simpler solution could be: 1) improve the AutoCompleteTextField's java doc to explain using

Re: Users, sessions, data...

2011-06-15 Thread Alexander Morozov
Zeldor wrote: But what are benefits of small session really? With entire user in session I can skip getting data from db and serve data faster... In clustered env small session get replicated much faster. I think that wicket's session shouldn't be used for storing any business data. Any

Re: Users, sessions, data...

2011-06-15 Thread Peter Karich
But what are benefits of small session really? With entire user in session I can skip getting data from db and serve data faster... wicket's (de-)serialization is not done in 0ms ;) but if that works for you then this strategy is great. and also if you have a lot of users or big user data

Deploiment problem of wicket application with Jboss 5.1

2011-06-15 Thread Thomas Franconville
Hi all, I am deploying my wicket application as an EAR with maven using JMX deploiment of JBoss. When I use the web application, the directory [Jboss_home]/default/tmp/vfs-nested.tmp is growing until saturated the hardrive (several gigabytes !), duplicating all the jar and war in the ear.

Re: Users, sessions, data...

2011-06-15 Thread Zeldor
Well, I'm hosting it on GAE and with new pricing model I have to worry about instances, not memcache or things like that. And I don't have to do load balancing. To be sure that data does not get lost between instances [which could happen probably with big traffic and longer inactivity from user] I

Re: Deploiment problem of wicket application with Jboss 5.1

2011-06-15 Thread Avraham Rosenzweig
It's a known JBoss issue with a workaround: http://community.jboss.org/message/8053 On Wed, Jun 15, 2011 at 4:32 PM, Thomas Franconville tfranconvi...@tetraedge.com wrote: Hi all, I am deploying my wicket application as an EAR with maven using JMX deploiment of JBoss. When I use the web

Re: Users, sessions, data...

2011-06-15 Thread Dan Retzlaff
One subtle gotcha to consider is that Wicket does not synchronize access to your Session object when processing multiple requests by the same user. Marking your Session's getters and setters as synchronized is sufficient for simple data members, but typical use of entities cannot be considered

Re: Deploiment problem of wicket application with Jboss 5.1

2011-06-15 Thread Thomas Franconville
I have added as specified the entry entry key${jboss.server.home.url}farm/key valueinject bean=VfsNamesExceptionHandler//value /entry* into the file server\default\conf\bootstrap\vfs.xml But it changes nothing. They wrote about farm. I am in default configuration, so farm is not activated. I am

Re: Deploiment problem of wicket application with Jboss 5.1

2011-06-15 Thread Thomas Franconville
The workaround is not so far. I try to put the target directory as a key of the vfs.xml file and it works. It duplicates only once files so no more problem of space. BUT it is not so good for me as each developer has directory different, and when we work with remote server, the directory is

Re: Deploiment problem of wicket application with Jboss 5.1

2011-06-15 Thread Peter Ertl
Google Translate tells me: 'Espace insuffisant sur le disque' - 'Not enough space on disk' So did you check your free disk space? Am 15.06.2011 um 15:32 schrieb Thomas Franconville: Hi all, I am deploying my wicket application as an EAR with maven using JMX deploiment of JBoss. When I

TextField and Java Number

2011-06-15 Thread Corbin, James
I am creating an input field that should accept numbers only, so I defined my TextField component as follows, TextFieldNumber(String markupId, IModelNumber model) I am forcing the model update by adding AjaxFormComponentUpdatingBehavior(onblur)... The model doesn't appear to be getting

Re: TextField and Java Number

2011-06-15 Thread James Carman
Number is abstract. How is TextField supposed to be able to instantiate one using the text? You can't use one of the subclasses? On Wed, Jun 15, 2011 at 5:20 PM, Corbin, James jcor...@iqnavigator.com wrote: I am creating an input field that should accept numbers only, so I defined my

Re: Deploiment problem of wicket application with Jboss 5.1

2011-06-15 Thread Thomas Franconville
Yes, before deploying and using the wicket application, I have had 4Go space left on my disk. After, 0 octet is left as the [Jboss_home]/default/tmp/vfs-nested.tmp directory growing as non sense with with jar and war contained into the ear were duplicated as space left. It is as wicket find

Re: Wicket 1.5 - ModalWindow with page - abstract functions do not update model correct

2011-06-15 Thread Andrea Del Bene
Hi Marieke , I've tried your code and I have your same problem. Tomorrow I will try to investigate further and maybe I will create an issue. Hi, I just tried it with the inter-component events, and it's the same problem as with the abstract functions.. Please try my code: HomePage: public

RE: TextField and Java Number

2011-06-15 Thread Corbin, James
LOL...good point...so the type Number.class was probably a bad choice :) I'm going with a BigDecimal as my type as that should support all my needs. Thanks, J.D. -Original Message- From: jcar...@carmanconsulting.com [mailto:jcar...@carmanconsulting.com] On Behalf Of James Carman Sent:

RE: TextField and Java Number

2011-06-15 Thread Corbin, James
Good point. Number is not the appropriate type in this case. I think I should -Original Message- From: jcar...@carmanconsulting.com [mailto:jcar...@carmanconsulting.com] On Behalf Of James Carman Sent: Wednesday, June 15, 2011 3:30 PM To: users@wicket.apache.org Subject: Re: TextField

wicket-rest and Wicket 1.5-RC4.2: MarkupNotFoundException: Can not determine Markup

2011-06-15 Thread gerar
Hi, I've tried to port http://wicket-rest.googlecode.com/svn to Wicket 1.5-RC4.2. That took some minor changes like the package that PageParameters is in, the way the HttpServletRequest is fetched and the onRender methods. All compiles well. However, when I make a request in a browser for a URL

autocomplete editable label

2011-06-15 Thread wmike1...@gmail.com
Is there any way to combine the function of the auto complete text field and the function of the ajaxEditableLabel? I'd like to click some text, have an editable text box appear, and have it autocomplete for me. -- View this message in context:

Debouncing ajax calls..

2011-06-15 Thread Tom Howe
Hi, is there a supported way to make setThottleDelay keep resetting the timer and only action the event after the last change. I can see 'postponeTimerOnUpdate' as an option to Wicket.Throttler in the wicket ajax js but dont know how to activate it. Should I manually create a wicket.throttler

How do I create a detachable model for a ListView?

2011-06-15 Thread Brian Lavender
I am trying to create a ListView using a detachable model, but I just can't seem to figure out how to construct my DetachableModel. Basically, I would like to create a detachable model and then pass it to my constructor for a CheeseList. This is built upon the code for the examples for Wicket in

Re: How do I create a detachable model for a ListView?

2011-06-15 Thread Dan Retzlaff
Look carefully at the ListView's constructor arguments. It wants an IModelListCheese, not an IModelCheese which is what your current CheeseDetach provides. Depending on your goals, you can either (1) change CheeseDetach.load() to call getCheeses(), or (2) change the constructor to accept a list of

Re: How do I create a detachable model for a ListView?

2011-06-15 Thread Brian Lavender
Dan, thank you for pointing that out. That makes more sense. So, it looks like now that my List of Cheeses will not get cached between pages saving space? And this is because the model doesn't do anything for detach but only does load, so every time, it will get it from the DAO? Here is the code