Re: How to get form submit to return to previous page?

2010-09-02 Thread bht
What about redirectToInterceptPage(new FormPage()); and in FormPage onSubmit: if (!continueToOriginalDestination()) { setResponsePage(Application.get().getHomePage()); } Regards, Bernard On Wed, 1 Sep 2010 20:30:20 -0700, you wrote: do not pass the page, pass the page reference, see

DropDownChoice and generics

2010-09-02 Thread Sigmar Muuga
Hello, the generics solution for the DropdownChoice is weird in my opinion. I want to write like this: ListGender genders = getGenderList(); DropdownChoicePerson new DropDownChoicePerson(fieldId, new PropertyModelPerson(currentPerson, gender), genders); But the compilation fails because of the

Re: DropDownChoice and generics

2010-09-02 Thread Wilhelmsen Tor Iver
ListGender genders = getGenderList(); DropdownChoicePerson new DropDownChoicePerson(fieldId, new PropertyModelPerson(currentPerson, gender), genders); The class type parameter for the dropdown and models there should be Gender: That the model delegates to a property in a Person object should

Re: DropDownChoice and generics

2010-09-02 Thread bht
Hi, IModelPerson personModel = getPersonModel(); ListGender genders = getGenderList(); DropDownChoice dropDownChoiceGender = new DropDownChoice(genderFieldId, new PropertyModelGender(personModel, gender), genderList); Regards, Bernard On Thu, 2 Sep 2010 10:02:27 +0300, you wrote: Hello,

SV: Remove support for Portlets in Wicket 1.5

2010-09-02 Thread Wilhelmsen Tor Iver
Usually -1 votes should be accompanied by a justification if you want them to be considered seriously. Why are you voting -1? Moving portlet support to a separate project (instead of core or extensions) makes more sense, that is at least one justification. (I guess this would in effect be

Re: SV: Remove support for Portlets in Wicket 1.5

2010-09-02 Thread James Carman
A -1 vote would be a vote against dropping support. You seem to be making an argument for dropping it. Plus it wasn't your -1, was it? On Sep 2, 2010 3:41 AM, Wilhelmsen Tor Iver toriv...@arrive.no wrote: Usually -1 votes should be accompanied by a justification if you want them to be

SV: SV: Remove support for Portlets in Wicket 1.5

2010-09-02 Thread Wilhelmsen Tor Iver
A -1 vote would be a vote against dropping support. You seem to be making an argument for dropping it. Plus it wasn't your -1, was it? Ah, then I misunderstood. Was a bit early in the morning I guess. And if you only wanted a reply from him you would have sent a private email instead of

Re: SV: Remove support for Portlets in Wicket 1.5

2010-09-02 Thread James Carman
On Thu, Sep 2, 2010 at 6:50 AM, Wilhelmsen Tor Iver toriv...@arrive.no wrote: And if you only wanted a reply from him you would have sent a private email instead of posting to the public list, would you not? :) No, because I would want their reply to go to the list. The -1 should be taken

Wicket + Guice + other framework (e.g. Jersey)

2010-09-02 Thread Johannes Schneider
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi guys, I have created a webapp based on Wicket. This app uses the GuiceFilter. And I have also created a REST API for my application using Jersey. It is also using Guice. Both applications run fine in different contexts. Now I'd like to run both

onSelectionChanged and browser back button

2010-09-02 Thread nmetzger
Hi all, I have a problem with a page in which I exchange a lot of panels via Ajax. It worked the way I intended, especially the fact that pressing the browser back button returned the user to the previous page. Now I added a new panel that included a CheckGroup with an onSelectionChanged()

Re: Wicket + Guice + other framework (e.g. Jersey)

2010-09-02 Thread Bas Gooren
Johannes, yes, this is no problem, see http://code.google.com/p/wicket-guice-jaxws/ Bas - Original Message - From: Johannes Schneider maili...@cedarsoft.com To: users@wicket.apache.org Sent: Thursday, September 02, 2010 3:58 PM Subject: Wicket + Guice + other framework (e.g. Jersey)

Inconsistent wicket error mesage

2010-09-02 Thread Martin Makundi
Hi! Does this wicket error message make sense? To me it looks like renderhead: 2010-09-02 13:46:31,307 267219809 [18145...@qtp-23684178-2226] ERROR RequestCycle - Only methods that can be called on IHeaderResponse outside renderHead() are renderOnLoadJavascript and renderOnDomReadyJavascript

Re: Radio buttons in modal window in IE6

2010-09-02 Thread Andrea Del Bene
Visually I can switch through radio buttons, but, when I submit form - it's always the same value - Hi! Have you tried adding model to RadioGroup? es: RadioGroup choiseGroup = new RadioGroup(searchParam, new Model()); Grafas martynas.jurkus at gmail.com writes:

Re: SV: Remove support for Portlets in Wicket 1.5

2010-09-02 Thread Igor Vaynberg
this has already been done, its a bit too late for -1 votes. the thread was started aug 11. -igor On Thu, Sep 2, 2010 at 3:52 AM, James Carman ja...@carmanconsulting.com wrote: On Thu, Sep 2, 2010 at 6:50 AM, Wilhelmsen Tor Iver toriv...@arrive.no wrote: And if you only wanted a reply from

Re: onSelectionChanged and browser back button

2010-09-02 Thread Igor Vaynberg
if you override wantonselectionchangednotification to return true then it is done with a regular request instead of ajax. -igor On Thu, Sep 2, 2010 at 7:04 AM, nmetzger nmetz...@odu.edu wrote: Hi all, I have a problem with a page in which I exchange a lot of panels via Ajax. It worked the

WicketRuntimeException: loginPage is already mounted for BookmarkablePageEncoder[page=class com.xxx.LoginPage]

2010-09-02 Thread Fernando Wermus
Hi all, I am using wicketTester to render html for emails. I pass my current app to WicketTester and I get the following error: WicketRuntimeException: loginPage is already mounted for BookmarkablePageEncoder[page=class com.xxx.LoginPage] Which makes no sense. The Application is running and

Re: onSelectionChanged and browser back button

2010-09-02 Thread nmetzger
Yes, I did override it. I wasn't aware that this would change the process to a normal request. So, what's the best way to implement the onSelectionChanged behavior and keep my ajax behavior? Thanks for you help, Natalie -- View this message in context:

Re: onSelectionChanged and browser back button

2010-09-02 Thread Igor Vaynberg
ajaxformchoicecomponentupdatingbehavior? -igor On Thu, Sep 2, 2010 at 9:23 AM, nmetzger nmetz...@odu.edu wrote: Yes, I did override it. I wasn't aware that this would change the process to a normal request. So, what's the best way to implement the onSelectionChanged behavior and keep my

Re: WicketRuntimeException: loginPage is already mounted for BookmarkablePageEncoder[page=class com.xxx.LoginPage]

2010-09-02 Thread Igor Vaynberg
you should pass a new instance of application. wicket tester inits the application and so it would call the init method which will execute the mounts - and on already initialized instance it would cause that error. -igor On Thu, Sep 2, 2010 at 9:13 AM, Fernando Wermus fernando.wer...@gmail.com

Re: Radio buttons in modal window in IE6

2010-09-02 Thread Grafas
Oh, yeah, sorry, the code sample doesn't show it... Sorry about that. Yeah, RadioGroup has model set. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Radio-buttons-in-modal-window-in-IE6-tp2403103p2524455.html Sent from the Wicket - User mailing list archive at

Re: Localizer in a new Thread

2010-09-02 Thread Fernando Wermus
Ale, I got a org.hibernate.HibernateException: createCriteria is not valid without active transaction because the page that I am trying to render need to get an entity using hibernate. how could I solve this situation? thanks in advance On Fri, Jul 30, 2010 at 5:38 PM, Alex Objelean

Re: WicketRuntimeException: loginPage is already mounted for BookmarkablePageEncoder[page=class com.xxx.LoginPage]

2010-09-02 Thread Fernando Wermus
Igor, When I don't pass the application I got the following error RuntimeException: There is no application attached to current thread btpool0-3 - /messagebroker/amf This is because I need to render the emails from a different servlet. Do I have any solution for this situation? How can I

Re: Within the wicket lifecyle, what is the best place to add a call on the page request

2010-09-02 Thread Ben Tilford
If your using wicket 1.4.10 you may want to look at the new onConfigure method that was added. On Thu, Sep 2, 2010 at 3:38 PM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: Where is the best place to add logic to get invoked always when the page is requested? The logic may or

Re: Within the wicket lifecyle, what is the best place to add a call on the page request

2010-09-02 Thread Avraham Rosenzweig
Or you can override onBeforeRender as we used to do before 1.4.10 :-) Just don't forget to call super.onBeforeRender(). On Fri, Sep 3, 2010 at 12:10 AM, Ben Tilford [via Apache Wicket] ml-node+2524782-1377046621-117...@n4.nabble.comml-node%2b2524782-1377046621-117...@n4.nabble.com wrote: If

Re: WicketRuntimeException: loginPage is already mounted for BookmarkablePageEncoder[page=class com.xxx.LoginPage]

2010-09-02 Thread Igor Vaynberg
you can create a new instance -igor On Thu, Sep 2, 2010 at 1:49 PM, Fernando Wermus fernando.wer...@gmail.com wrote: Igor,    When I don't pass the application I got the following error RuntimeException: There is no application attached to current thread btpool0-3 - /messagebroker/amf

Wicket AjaxButton multiple responses

2010-09-02 Thread DmitryM
Hello, everybody I have a long-running Ajax request (about 7 seconds) and would like to notify user about its progress. A preferred way would be to push multiple ajax responses back to the Response (for the current request). Is there any way to do that? I would prefer to avoid using 'push' from

Re: Wicket AjaxButton multiple responses

2010-09-02 Thread Igor Vaynberg
search this list for ajaxpoller -igor On Thu, Sep 2, 2010 at 9:16 PM, DmitryM nsk...@aol.com wrote: Hello, everybody I have a long-running Ajax request (about 7 seconds) and would like to notify user about its progress. A preferred way would be to push multiple ajax responses back to the

Re: Wicket AjaxButton multiple responses

2010-09-02 Thread DmitryM
Thanks for the immediate response. But that's not really what I was asking for. =( I didn't really want to start a session-attached thread on the server and then poll it for the status. I would really appreciate if the AjaxButton.onSubmit allowed for several XML responses to be pushed down the

Re: Wicket AjaxButton multiple responses

2010-09-02 Thread DmitryM
Igor, one more thing: I can probably 'hack' the system and try to get to the current request's response output stream and even make up a chunk of XML emulating an ajax response. But most likely the client Wicket javascript would not allow for multiple XML chunks returned from one request. Am I