Re: Regression: @Inject'ed objects cannot be passed to Threads

2010-06-04 Thread Douglas Ferguson
That makes sense. I was just surprised to see it stop working. It is something people should be aware of when upgrading. Any idea of what changed from 1.4.5 - 1.4.7 that was have exacerbated this? Also, what every happened to wrap idea that was proposed? D/ On Jun 3, 2010, at 10:22 AM, Igor

Question about usage of PageMap

2010-06-04 Thread Swanthe Lindgren
Hello all. I our application we have a lot of search and maintenance pages for different type of entities. On each of these pages we put an Add button, which takes the user to a wizard to add a new entity of that type. In the wizard, we want to be able to send the user back to where it came

Re: Regression: @Inject'ed objects cannot be passed to Threads

2010-06-04 Thread Douglas Ferguson
Also, I'm starting to dig into these and fix them and most of them make sense to me. They are obviously asynchronous threads that we start. But this one has be a bit baffled. Does anybody recognize the classes in the stack? 2010-06-04 00:06:34,623 ERROR [main] session.ManagerBase - Exception

Image subclass not getting its model object

2010-06-04 Thread Erwin Bolwidt
Hi, I'm trying to make an image subclass that shows an icon. Which icon it shows depends on its model object, which is a boolean. Problem is, I'm not getting the model object: it's always null. If I use a Label instead of InStockIconImage, it works: the label shows a boolean (true/false).

Re: Image subclass not getting its model object

2010-06-04 Thread Erwin Bolwidt
Oops, I went a bit too far in pruning non-essential code. InStockIconImage has a second constructor: public InStockIconImage(String id) { super(id); } I think it centers around this. If I pass a PropertyModel(listingModel, inStock) explicitly to the constructor, it works, but

Re: Image subclass not getting its model object

2010-06-04 Thread Ernesto Reinaldo Barreiro
Maybe this is related to this override on Image class? @Override protected IModel? initModel() { // Images don't support Compound models. They either have a simple // model, explicitly set, or they use their tag's src or value //

Re: SV: Dialog involving multiple pages and a VO: some best practices?

2010-06-04 Thread Joseph Pachod
Wilhelmsen Tor Iver wrote: I've recently been wondering about the following use case: an instance of Foo class, used as a detached value object, is edited in a FooEditPage. For some reasons, let's say this page then needs to launch dialogs spanning over different pages. Each of these pages could

Re: Dialog involving multiple pages and a VO: some best practices?

2010-06-04 Thread Joseph Pachod
Mauro Ciancio wrote: Hi, On Wed, Jun 2, 2010 at 7:43 PM, Joseph Pachod josephpac...@thomas-daily.de wrote: I've recently been wondering about the following use case: an instance of Foo class, used as a detached value object, is edited in a FooEditPage. For some reasons, let's say this

Re: Dialog involving multiple pages and a VO: some best practices?

2010-06-04 Thread Joseph Pachod
Igor Vaynberg wrote: usually i simply allow pages to take models of whatever it is they need, just like any other component. in case of a dto being passed around you can simply use the default model: new ModelDto(new Dto()); and pass that to any page. that way the page does not need to worry

Re: drag and drop

2010-06-04 Thread DerBernd
Thank you for your help. So I solved it by using repeaters RepeatingView. On DropEvent I add the droppedComponent to the repeating view and update the page. I also had to set wantOnDragStartNotification(false), wantOnDragStopNotification(false), otherwise the dropped Component was not found on

RE: drag and drop

2010-06-04 Thread Stefan Lindner
Could you provide a small testcase? I'm using dd very intensive in a calendar app and never had any problems with this. Stefan -Ursprüngliche Nachricht- Von: DerBernd [mailto:beha...@web.de] Gesendet: Freitag, 4. Juni 2010 11:06 An: users@wicket.apache.org Betreff: Re: drag and drop

Re: drag and drop

2010-06-04 Thread DerBernd
No I have a absolutely specific question to jwicket-jquery. I want to set the handle option on a draggable, to define the tag which is used to drag the panel. e.g. handle: 'h2' Unfortunately theres no setter for the handle option. Thank you -- View this message in context:

RE: drag and drop

2010-06-04 Thread Stefan Lindner
The default value for both is false! The code: private boolean onDragStartNotificationWanted = false; /** * If set to {...@code true}, the callback-Method {...@link #onDragStart(AjaxRequestTarget,SpecialKeys)} * is called when the drag operation starts.

DataTable in DataTable

2010-06-04 Thread midikem
Hi is it possible to add a dataTable in a DataTable and how? I have a dataTable and when i press on a line in it i want a new dataTable to popup below the line i have pressed. How do i do this? I have a DefaultDataTabletest(dataTable, columns, provider, 10) where i have added the columns to a

Re: Unit Test InMethod DataGrid

2010-06-04 Thread Ronan O'Connell
Thank you very much Nino and Kent, I've read about Wicketpagetest before and I've been planning to try it out. Looks like now is my chance :-) Ronan On 04/06/2010 02:16, Kent Tong wrote: Hi Ronan, Looking at the output of WicketTester.debugComponentTrees() I can see that the grid row is

AW: drag and drop

2010-06-04 Thread Stefan Lindner
Look into the original jQuery docs for draggable and set any options that are not implementet now with setRawOptions(handle: 'h2'); This should do the trick. If you have any suggestion for implementing a setHandle(???) method that doesn't simple have a String

RE: drag and drop

2010-06-04 Thread DerBernd
So here is my Example Case I have several Platzhalter which implement IDroppable and some FeldKursObjects which implement IDraggable. The FeldKurs Components are dragged on Placeholders. When I define dragger.setWantOnDragStartNotification(true); dragger.setWantOnDragStopNotification(true);

Re: AW: drag and drop

2010-06-04 Thread DerBernd
Thank you setRawOptions(handle: 'h2'); works great, just want I was searching for!!! Bernd -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2242954.html Sent from the Wicket - User mailing list archive at Nabble.com.

RE: drag and drop

2010-06-04 Thread Stefan Lindner
This is a general Ajax problem. The ajax calls fired by the jQuery handlers dragStart/drag/dragEnd are not sychronized with each other. So it may happen that the onDrop event of the droppable is fired BEFORE the dragEnd. In the onDrop method you replace the dragged component wit a new one

Re: How can override calendar formatting at initialization using DatePicker? getAdditionalJavascript not always working...

2010-06-04 Thread rawe
I got the same problem! Did you solve it already? If yes, I would be glad to get some help! I just disabled the weekend days in DatePicker by overriding the method @Override protected String getAdditionalJavascript() { additionalJavascript +=

Re: Image subclass not getting its model object

2010-06-04 Thread Erwin Bolwidt
Hi Ernesto, Just got the 1.4.9 source code and I see what you mean. But why is it like this? I copied the whole Image source code to a new class, removed this initModel method, and then things work fine if I don't supply a model. Why would the Image component behave different from the other

Re: Image subclass not getting its model object

2010-06-04 Thread James Carman
I would say you need to use your own image resource, not subclass Image itself. On Fri, Jun 4, 2010 at 7:03 AM, Erwin Bolwidt ebolw...@worldturner.nl wrote: Hi Ernesto, Just got the 1.4.9 source code and I see what you mean. But why is it like this? I copied the whole Image source code to a

Renderer does not work when datePicker is initially displayed

2010-06-04 Thread rawe
I`m using a renderer to work with the OutOfBoundsDate, but it doesn't work when the DatePicker is initially displayed. When I do some action in the DatePicker (e.g. change the month) the OutOfBoundsDate is correctly rendered (here sundays and saturdays are disabled) e.g. I disable the weekend

Re: Image subclass not getting its model object

2010-06-04 Thread Ernesto Reinaldo Barreiro
Hi Erwin, On Fri, Jun 4, 2010 at 1:03 PM, Erwin Bolwidt ebolw...@worldturner.nl wrote: Hi Ernesto, Just got the 1.4.9 source code and I see what you mean. As a rule I always install the source code of any OpenSouce software I use: Javadoc could be wrong or outdated but source code will never

Re: Javascript string formatting problem with DateTextField and DatePicker

2010-06-04 Thread Jimi
Thanks Igor. I was already running 1.4.7, but I just upgraded to 1.4.9 and that solved the problem. But strange that the bugfix wasn't mentioned on the http://wicket.apache.org/news.html page. Regards /Jimi Igor Vaynberg-2 wrote: i think this is fixed in 1.4.7+, you should upgrade --

RE: drag and drop

2010-06-04 Thread DerBernd
Ok, thank you, good to know. At the moment I don't need to watch the dragStop or DragStart Event. So I can leave it as it is. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2243182.html Sent from the Wicket - User mailing list archive at

[wicketstuff-core] planning a 1.4.9.1 point release next week.

2010-06-04 Thread Michael O'Cleirigh
Hello, For release I'm doing at work I need to generate a wicketstuff-core 1.4.9.1 release. I see that there have been some updates to trunk (1.4.10-SNAPSHOT) so if you would like these changes to be included in the this point release please back port your changes to the 1.4.9 branch.

Frustrating behavior ... same browser, same war, same tomcat version - different behavior!!!

2010-06-04 Thread Bryan Montgomery
Hello, I've been banging my head against the proverbial brick wall for the last day. I have a fairly large web application which I've been modifying part of. Essentially, part of the process generates dynamic web forms based on xml configuration files. We noticed that on one of our servers when

TextField that renders a link

2010-06-04 Thread Josh Chappelle
Does anyone know of a TextField component or perhaps a Behavior that can be added to a TextField that will render a link when the user types a URL into it? Thanks, Josh

Re: Frustrating behavior ... same browser, same war, same tomcat version - different behavior!!!

2010-06-04 Thread James Carman
Have you tried clearing your cache on your browsers? On Fri, Jun 4, 2010 at 11:57 AM, Bryan Montgomery mo...@english.net wrote: Hello, I've been banging my head against the proverbial brick wall for the last day. I have a fairly large web application which I've been modifying part of.

Re: Frustrating behavior ... same browser, same war, same tomcat version - different behavior!!!

2010-06-04 Thread Bryan Montgomery
Yeah, I thought it might be as simple as that - but unfortunately not. On Fri, Jun 4, 2010 at 12:29 PM, James Carman ja...@carmanconsulting.comwrote: Have you tried clearing your cache on your browsers? On Fri, Jun 4, 2010 at 11:57 AM, Bryan Montgomery mo...@english.net wrote: Hello,

Re: Frustrating behavior ... same browser, same war, same tomcat version - different behavior!!!

2010-06-04 Thread gnul
Essentially, part of the process generates dynamic web forms based on xml configuration files. We noticed that on one of our servers when we deployed the war file that the fields would not hold their values, and as soon as you tabbed out, the entry would disappear. Taking the same war file

Introduction: restauracie.sk (new project based on Wicket)

2010-06-04 Thread David Skuben
Hello Wicket comunity, let me introduce the new web project based on Wicket from Slovakia. Project name is RESTAURACIE.SK and you can find it at http://restauracie.sk. RESTAURACIE.SK is restaurant guide showcasting restaurant across the Slovakia. Today we support only slovak locale, but in the

Re: Introduction: restauracie.sk (new project based on Wicket)

2010-06-04 Thread Marek Šabo
Nice one. Bookmarking... :) -- Marek Šabo On 06/04/2010 08:46 PM, David Skuben wrote: Hello Wicket comunity, let me introduce the new web project based on Wicket from Slovakia. Project name is RESTAURACIE.SK and you can find it at http://restauracie.sk. RESTAURACIE.SK is restaurant

TabbedPanel with AjaxSelfUpdatingTimerBehavior

2010-06-04 Thread Decebal Suiu
Hello I use AjaxSelfUpdatingTimerBehavior on one tab and when switching to another tab I want to stop it. The AjaxSelfUpdatingTimerBehavior will be active only if this tab is selected (start timer behavior when select the tab and stop it when select other tab). Any help is welcome. Thanks,

Re: Problem with Crypted URL

2010-06-04 Thread kugaprakash
Actually I should say, that it is not force re-directing even on using the recommended approach. It still stays in the same current page. Am I doing something wrong here? I tried to remove the finally block {Session.get().invalidate(); } and moved that code to detach(), still no success.

Re: Frustrating behavior ... same browser, same war, same tomcat version - different behavior!!!

2010-06-04 Thread Bryan Montgomery
Thanks for the ideas. Still no joy. The behavior is consistent between three different clients, all running different versions of IE (6,7 and 8). I was able to use the debugging feature built in to IE 8 to see that the wicket ajax javascript was gettting called. At some point in that process it

Re: Frustrating behavior ... same browser, same war, same tomcat version - different behavior!!!

2010-06-04 Thread Scott Swank
Do you have apache or a load balancer or anything else in the network? Is there maybe a simple difference in your httpd.conf pertaining to sessions? On Fri, Jun 4, 2010 at 1:32 PM, Bryan Montgomery mo...@english.net wrote: Thanks for the ideas. Still no joy. The behavior is consistent between

Re: Can I develop without recompiling/restarting after every change?

2010-06-04 Thread bht
Hi, My suggestions were meant to be general, and with best I actually meant in all environments including certified J2EE servers. Any number of environments (Igor suggested Jetty) may work with or without these suggestions. That is because deployment environments may or may not make decisions

Re: Dialog involving multiple pages and a VO: some best practices?

2010-06-04 Thread Igor Vaynberg
obviously you have to know what you are passing around. you shouldnt pass around objects that link to page instances, such as anonymous classes of models. -igor On Fri, Jun 4, 2010 at 2:04 AM, Joseph Pachod j...@thomas-daily.de wrote: Igor Vaynberg wrote: usually i simply allow pages to take

Re: DataTable in DataTable

2010-06-04 Thread Igor Vaynberg
just like you would with any other component, wicket doesnt care -igor On Fri, Jun 4, 2010 at 2:23 AM, midikem ext.anders.nyst...@apotekensservice.se wrote: Hi is it possible to add a dataTable in a DataTable and how? I have a dataTable and when i press on a line in it i want a new dataTable

Re: Frustrating behavior ... same browser, same war, same tomcat version - different behavior!!!

2010-06-04 Thread Igor Vaynberg
right, sounds like the session is being lost and the page is being rerendered fresh. -igor On Fri, Jun 4, 2010 at 1:46 PM, Scott Swank scott.sw...@gmail.com wrote: Do you have apache or a load balancer or anything else in the network?  Is there maybe a simple difference in your httpd.conf

How to do a multiple page form?

2010-06-04 Thread David Chang
Hi, I would like to do a multiple page form. For example, I have a two-page form. Both pages have a few fields that need validation. The first page has a button called Next and the second page has a Previous button and a Submit button. Any pointers or how-to info will be greatly appreciated.

Re: How to do a multiple page form?

2010-06-04 Thread Pedro Santos
Do you searching for an wizard implementation? http://www.wicket-library.com/wicket-examples/wizard/ On Fri, Jun 4, 2010 at 11:49 PM, David Chang david_q_zh...@yahoo.comwrote: Hi, I would like to do a multiple page form. For example, I have a two-page form. Both pages have a few fields that

Re: Question about usage of PageMap

2010-06-04 Thread Pedro Santos
I believe that passing the page where user click Add as parameter to the wizard is an simple solution to has an reference to set on the cancel response. On Fri, Jun 4, 2010 at 3:55 AM, Swanthe Lindgren swanthe.lindg...@megasol.se wrote: Hello all. I our application we have a lot of search and

Re: TextField that renders a link

2010-06-04 Thread Mauro Ciancio
Hello, An option is to create a panel that inside of it has two components, a textbox and a link. Via ajax you can update the textbox's model and show the link if needed. I don't know if there is a pre-made component with that functions, but I've wrapped two components into a panel and it

Re: SessionStore life cycle in cluster?

2010-06-04 Thread DmitryM
Igor, Can you please comment on the following couple of points I got? 1. Pulling session from memcached node: I double checked the recommendation and it looks like fetching session from the memcached node doesn't take much time (around 200ms at most). But there was a recommendation about