Re: [Wicket-user] Any ajax callback for when a panel is closed?

2007-04-06 Thread Eelco Hillenius
What do you use to navigate to another tab? Probably a link (ajax or not)? If so, you could put the logic in there. Eelco On 4/4/07, jamieballing <[EMAIL PROTECTED]> wrote: > > We have a modal window with several tabs. We want to validate the data on the > tab after when the user navigates away

Re: [Wicket-user] Problem setting selected value in DropDownChoice

2007-04-06 Thread Peter Thomas
Instead of pre-loading in the input field, try pre-loading the property in your form backing object (model) - so call setArrivalDate() or just ensure that PaymentInfoInput.arrivalDate is not null On 4/7/07, V. Jenks <[EMAIL PROTECTED]> wrote: I feel like I've asked this question before...but h

Re: [Wicket-user] form with listview that contains radio groups?

2007-04-06 Thread Kurt R. Hoehn
Thank you, that worked perfect. -kurt On Thu, 2007-04-05 at 16:23 +0200, Sven Meier wrote: > You have to give the radio group a model, that is backed by your question > object, not only the current value of its answer: > > RadioGroup answer = new RadioGroup("answer", new PropertyModel(questi

Re: [Wicket-user] Help Me Improve Wicket Quickstart

2007-04-06 Thread Eelco Hillenius
Patches are always welcome at: https://issues.apache.org/jira/browse/WICKET Eelco On 4/6/07, Philip Weaver <[EMAIL PROTECTED]> wrote: > Basically, would be nice if instructions as simple as the following were > part of the build file: > > > failonerror="true" maxmemory="128m" class

Re: [Wicket-user] Help Me Improve Wicket Quickstart

2007-04-06 Thread Philip Weaver
Basically, would be nice if instructions as simple as the following were part of the build file: I'll see if I can add something to the wiki - but I want to play now. On 4/6/07, Philip Weaver <[EMAIL PROTECTED]> wro

Re: [Wicket-user] Help Me Improve Wicket Quickstart

2007-04-06 Thread Philip Weaver
In summary, the intent of the QuickStart with a bundled Jetty is fabulous. However, I feel that it falls short by only offering means to run the project using NetBeans, IDEA, or Eclipse. And I think this is a little disappointing. I happen to use jEdit - so I think it's a little annoying that the

Re: [Wicket-user] Classloader for selectively reload web tier

2007-04-06 Thread Jean-Baptiste Quenot
* Carlos Pita: > Maybe this could be relevant: > > * I'm using jetty:run maven plugin. I run it from the console > * and from apache. I run it on top sun jdk 1.6.0 and ibm jdk 5. Hi Carlos, You're running jetty:run so I guess your Eclipse classpath is setup with Maven as well. So clas

Re: [Wicket-user] Classloader for selectively reload web tier

2007-04-06 Thread Carlos Pita
Maybe this could be relevant: * I'm using jetty:run maven plugin. * I run it from the console and from apache. * I run it on top sun jdk 1.6.0 and ibm jdk 5. Carlos On 4/6/07, Carlos Pita <[EMAIL PROTECTED]> wrote: > Maybe I'm missing something but I can't get ReloadingWicketServlet to > work. I

Re: [Wicket-user] Classloader for selectively reload web tier

2007-04-06 Thread Carlos Pita
Maybe I'm missing something but I can't get ReloadingWicketServlet to work. I have subclassed it and included a pattern for my web tier package as documented. The relevant code and configuration is given below. If I modify a class residing at home.web and then re-enter its page (not just refresh it

Re: [Wicket-user] Classloader for selectively reload web tier

2007-04-06 Thread Carlos Pita
I'm pointing my pom repositories to http://wicketstuff.org/maven/repository just right now. I will keep you informed of my experiences along next week, toying with it at home and more seriously using it with my development team at work. Cheers, Carlos On 4/6/07, Eelco Hillenius <[EMAIL PROTECTED]>

Re: [Wicket-user] Classloader for selectively reload web tier

2007-04-06 Thread Eelco Hillenius
Please keep us informed when you play with the reloading filter. I think Jean-Baptiste deems it usable in it current state. But any improvements/ suggestions (especially in the form of patches!) would be welcome. Eelco On 4/6/07, Carlos Pita <[EMAIL PROTECTED]> wrote: > I'd read that thread befor

Re: [Wicket-user] Classloader for selectively reload web tier

2007-04-06 Thread Eelco Hillenius
> Seems there might not be a full-proof fix for this problem: > http://forum.java.sun.com/thread.jspa?threadID=572396&tstart=0 But at least they're working on it, and any improvement would be welcome imo. Eelco - Tak

Re: [Wicket-user] Classloader for selectively reload web tier

2007-04-06 Thread Carlos Pita
I'd read that thread before. I think I understand your point Igor. But I don't pretend that old instances keep somehow up to date with new incompatible reloaded classes. If I could start all again from a bookmarkable page, everything being reinstantiated again, I will be happy, even if some margina

[Wicket-user] Problem setting selected value in DropDownChoice

2007-04-06 Thread V. Jenks
I feel like I've asked this question before...but here I am again. I'm simply trying to set a selected value for a DropDownChoice when a page is loaded. I've tried pre-loading it into the input class, setting it in getDefaultChoice, and also by trying to pass a model into the control w/ the valu

Re: [Wicket-user] Classloader for selectively reload web tier

2007-04-06 Thread cowwoc
Seems there might not be a full-proof fix for this problem: http://forum.java.sun.com/thread.jspa?threadID=572396&tstart=0 Gili Carlos Pita wrote: >> See wicket.protocol.http.ReloadingWicketFilter. YMMV though, as Wicket > > I will give this filter a try. I see it's included in the trun

Re: [Wicket-user] Classloader for selectively reload web tier

2007-04-06 Thread Igor Vaynberg
this is mostly a dream anyways for early stages where you are still adding fields see http://www.theserverside.com/news/thread.tss?thread_id=44119#226916 hls' reply here http://www.theserverside.com/news/thread.tss?thread_id=44119#226916 my rebuttal that drives the point home http://www.thes

Re: [Wicket-user] Classloader for selectively reload web tier

2007-04-06 Thread Eelco Hillenius
> > See wicket.protocol.http.ReloadingWicketFilter. YMMV though, as Wicket > I will give this filter a try. I see it's included in the trunk but > not in 1.2.x releases. Is it compatible with wicket 1.2.5? Nope. Not planned either, sorry. If you are starting out, 1.3 (from svn or get snapshots her

Re: [Wicket-user] Help Me Improve Wicket Quickstart

2007-04-06 Thread Igor Vaynberg
in quickstart you can do mvn eclipse:eclipse to generate an eclipse project, or mvn idea:idea for idea. you can writeup a document on the wiki, and if we all like it we can export it into quickstart's readme or something like that -igor On 4/6/07, Philip Weaver <[EMAIL PROTECTED]> wrote: Ca

Re: [Wicket-user] Classloader for selectively reload web tier

2007-04-06 Thread Carlos Pita
> See wicket.protocol.http.ReloadingWicketFilter. YMMV though, as Wicket I will give this filter a try. I see it's included in the trunk but not in 1.2.x releases. Is it compatible with wicket 1.2.5? > the JDK provides. Some SDK implementations are working on improved > support (I think Johan has

[Wicket-user] Help Me Improve Wicket Quickstart

2007-04-06 Thread Philip Weaver
Can anyone send me pointers for setting up quickstart manually? (scripts, build file w/ exec, etc) Who to talk to to create a generic quickstart setup document? I am interested in helping to improve the Quickstart download. I would be more pleased if the quickstart first presented a generic quick

Re: [Wicket-user] Classloader for selectively reload web tier

2007-04-06 Thread Eelco Hillenius
> I find that reloading the entire app stack (wicket + spring + > hibernate) every time I change a page class is somewhat overkiller. > When coding simple toy examples restricted to just wicket, the > jetty:run maven plugin monitors my target folder and reload the > application in a matter of a sec

[Wicket-user] Classloader for selectively reload web tier

2007-04-06 Thread Carlos Pita
Hi all, I find that reloading the entire app stack (wicket + spring + hibernate) every time I change a page class is somewhat overkiller. When coding simple toy examples restricted to just wicket, the jetty:run maven plugin monitors my target folder and reload the application in a matter of a seco

Re: [Wicket-user] onSelectionChanged and session-in-view

2007-04-06 Thread Carlos Pita
> > I've been coding some > > examples with convoluted entity lazy-loaded associations and, despite > > my previous fears, detaching/re-attaching it from/to the hibernate > > session works like a charm. I think I will tag all my editable > > entities as Serializable and embrace this approach. > > S

Re: [Wicket-user] onSelectionChanged and session-in-view

2007-04-06 Thread Carlos Pita
> > the object is reloaded just for setting a property and discarded > > again; also, depending on how you configure your transactions, you > > could end up persisting partial non-validated changes (although I > > should say that from my observations this doesn't happen inside a > > vanilla OpenSes

Re: [Wicket-user] onSelectionChanged and session-in-view

2007-04-06 Thread Eelco Hillenius
> Also, reloading the entity from "state zero" every time could be > problematic when incrementally updating it using ajax. Not if you save it every time :) But yes, if you do an update in steps, and only want to commit changes at the end (relevant not only with Ajax, but also e.g. with a wizard)

Re: [Wicket-user] onSelectionChanged and session-in-view

2007-04-06 Thread Carlos Pita
On 4/6/07, Carlos Pita <[EMAIL PROTECTED]> wrote: > On 4/6/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > It's not a good idea to use LoadableDetachableModel for entities that > > > you edit. Because they are detached after every request. > > > > Sorry, but I don't agree with that :) LDMs are

Re: [Wicket-user] onSelectionChanged and session-in-view

2007-04-06 Thread Eelco Hillenius
> On 4/6/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > It's not a good idea to use LoadableDetachableModel for entities that > > > you edit. Because they are detached after every request. > > > > Sorry, but I don't agree with that :) LDMs are my favorite models for > > such use. The only thi

Re: [Wicket-user] onSelectionChanged and session-in-view

2007-04-06 Thread Carlos Pita
> > If it works well, anything outside of a transaction should well... be > outside the transaction :) So anything touched in a read-only (auto > started) transaction should never be upgraded to a write one. I'm not > a Spring expert though. But that's what you can expect from the > library. This

Re: [Wicket-user] Framework Evaluation

2007-04-06 Thread BPnwn
Eelco Hillenius wrote: > > I've never worked with T myself, but read a book on it and browsed > through the source code. The funny thing is that I was about to start > a proof of concept in it for the company I worked for three years ago. > But Johan just got out of a project that used it, and e

Re: [Wicket-user] onSelectionChanged and session-in-view

2007-04-06 Thread Carlos Pita
On 4/6/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > It's not a good idea to use LoadableDetachableModel for entities that > > you edit. Because they are detached after every request. > > Sorry, but I don't agree with that :) LDMs are my favorite models for > such use. The only thing you have

Re: [Wicket-user] onSelectionChanged and session-in-view

2007-04-06 Thread Eelco Hillenius
> Anyway, I've done little tests with spring OpenSessionInViewFilter and > things DO work as I desire. I mean changes are committed only when a > @Transactional method is invoked, not during events that simply update > the model without submitting. Imo, have separate transaction methods (service/

Re: [Wicket-user] IAjaxIndicatorAware and AbstractDefaultAjaxBehavior's findIndicatorId() feature request

2007-04-06 Thread Igor Vaynberg
i think that can work, please add an rfe. we do have global js hooks that you can use to create a global indicator. -igor On 4/6/07, Alex Objelean <[EMAIL PROTECTED]> wrote: In wicket 1.2.5, is not possible (at least I didn't manage to find a way) to add AjaxIndicator image to a page for all

Re: [Wicket-user] onSelectionChanged and session-in-view

2007-04-06 Thread Eelco Hillenius
> It's not a good idea to use LoadableDetachableModel for entities that > you edit. Because they are detached after every request. Sorry, but I don't agree with that :) LDMs are my favorite models for such use. The only thing you have to keep in mind is to persist any changes coming in with a requ

Re: [Wicket-user] Framework Evaluation

2007-04-06 Thread Eelco Hillenius
> I am definitely going to check out 1.3. Any idea when it will become > less of a "moving target"? In a couple of weeks. Basically when all the items listed here http://cwiki.apache.org/confluence/display/WICKET/Backporting+features+from+trunk are backported. We'll announce it on the list when t

Re: [Wicket-user] Framework Evaluation

2007-04-06 Thread Weaver, Scott
I am definitely going to check out 1.3. Any idea when it will become less of a "moving target"? -scott > -Original Message- > From: [EMAIL PROTECTED] [mailto:wicket-user- > [EMAIL PROTECTED] On Behalf Of Matej Knopp > Sent: Thursday, April 05, 2007 6:14 PM > To: wicket-user@lists.sourcef

Re: [Wicket-user] JavaScript Hijacking

2007-04-06 Thread Matej Knopp
Hi Wicket applications shouldn't be affected by javascript hijacking. To be able to use this kind of hijacking, ajax response has to be directly executable javascript. Wicket's Ajax response is a xml file, which can not be directly evaluated, thus loading it from remote site using the

Re: [Wicket-user] onSelectionChanged and session-in-view

2007-04-06 Thread Carlos Pita
Hi Matej, what about entities with lazy loaded associations that are not easily detachable/re-attachable from/to their hibernate session? I was never sure on how to do this, maybe dto is a healthier alternative despite introducing a lot of duplication. Anyway, I've done little tests with spring O

[Wicket-user] JavaScript Hijacking

2007-04-06 Thread Niels Bo
Hi! How protected is Wicket against "JavaScript Hijacking", as described in this paper? http://www.fortifysoftware.com/servlet/downloads/public/JavaScript_Hijacking.pdf http://www.fortifysoftware.com/servlet/downloads/public/JavaScript_Hijacking.pdf Best Regards Niels Bo -- View this messag

Re: [Wicket-user] onSelectionChanged and session-in-view

2007-04-06 Thread Matej Knopp
It's not a good idea to use LoadableDetachableModel for entities that you edit. Because they are detached after every request. LoadableDetachableModel is best for View scenarios, when you need fresh data on every request. In case you are editing entities, like you do, load the entity only once, e.

[Wicket-user] IAjaxIndicatorAware and AbstractDefaultAjaxBehavior's findIndicatorId() feature request

2007-04-06 Thread Alex Objelean
In wicket 1.2.5, is not possible (at least I didn't manage to find a way) to add AjaxIndicator image to a page for all Ajax requests made by its child components. Currently, the AbstractDefaultAjaxBehavior has a findIndicatorId() method which is responsible to find the component id which should b