ListChoice gets updated BEFORE onSubmit is called

2007-12-16 Thread Dan Kaplan
Hello, I'm very new to wicket so this may be a duh situation, but here's what I'm trying to do: I have a form that shows you a ChoiceList of things. You can select one and then hit the submit button to delete that item. I've written this functionality but found that it doesn't work the way I

Re: ListChoice gets updated BEFORE onSubmit is called

2007-12-16 Thread Johan Compagner
It has to get the list, because thats where the selected object comes from. What you need to do is remove the object through that list or call detach on the choice in the submit. That should also result in the list being detached/cleared. On 12/16/07, Dan Kaplan [EMAIL PROTECTED] wrote: Hello,

WYMeditor / Ajax - Adding Javascript References to Header

2007-12-16 Thread Karl M. Davis
Hello all, I'm trying to put together a Wicket component for WYMeditor (http://www.wymeditor.org/en/) as an alternative to TinyMCE. If you haven't seen WYMeditor itself before, check out the demo at http://demo.wymeditor.org/demo.html. WYMeditor is dual-licensed under GPL and MIT. After

Re: Suckerfish dropdowns for wicket

2007-12-16 Thread tsuresh
Hi Tames, It worked when I upgraded from wicket 1.2.6 to 1.3 and showed no error. Would you please suggest me what change should I make in your code, so that I would have no links in the topMenuItems. thanks. Tames wrote: Hello. I created the example (using Eclipse with MyEclipse plugin)

RE: ListChoice gets updated BEFORE onSubmit is called

2007-12-16 Thread Dan Kaplan
Oh ok. I didn't think about solving the problem with that approach. Thanks -Original Message- From: Johan Compagner [mailto:[EMAIL PROTECTED] Sent: Sunday, December 16, 2007 2:10 AM To: users@wicket.apache.org Subject: Re: ListChoice gets updated BEFORE onSubmit is called It has to

Re: Suckerfish dropdowns for wicket

2007-12-16 Thread tsuresh
Hi Tames, It worked when I upgraded from wicket 1.2.6 to 1.3 and showed no error. Would you please suggest me what change should I make in your code, so that I would have no links in the topMenuItems. thanks. Tames wrote: Hello. I created the example (using Eclipse with MyEclipse plugin)

Re: ModalWindow bug - unable to close when added AjaxButton in content of the window

2007-12-16 Thread Thies Edeling
Was there any resolution for this? I have the same thing with rc2 with a valid form. From the javascript console: *INFO: * Initiating Ajax POST request on ../../?wicket:interface=:4:39:::0:2random= 0.745044540904514 *INFO: *Invoking pre-call handler(s)... *INFO: *Received ajax response (457

Re: ModalWindow bug - unable to close when added AjaxButton in content of the window

2007-12-16 Thread Thies Edeling
never mind, seems it's the same as https://issues.apache.org/jira/browse/WICKET-1003 Thies Edeling wrote: Was there any resolution for this? I have the same thing with rc2 with a valid form. From the javascript console: *INFO: * Initiating Ajax POST request on

Re: Suckerfish dropdowns for wicket

2007-12-16 Thread Ryan Sonnek
this would make a great contribution to the wicketstuff project! On Dec 16, 2007 5:41 AM, tsuresh [EMAIL PROTECTED] wrote: Hi Tames, It worked when I upgraded from wicket 1.2.6 to 1.3 and showed no error. Would you please suggest me what change should I make in your code, so that I would

Re: Two home pages?

2007-12-16 Thread John Krasnay
On Sat, Dec 15, 2007 at 08:44:32PM -0800, Cristina wrote: Hello, I'm working on an app where users and admins will perform mutually exclusive use cases. That's quite a common situation. It looks like the simpler approach here would be to return one home page with the user menu and another

Redirect to a page with POST parameters

2007-12-16 Thread Pills
Hello, I'm looking for a way to redirect to an external page that needs some POST parameters to works. It will be used in a paiement system implementation (it needs some data like currency, amount... passed using post parameters). I know how to redirect a user to a simple url (with

Re: Redirect to a page with POST parameters

2007-12-16 Thread Johan Compagner
real Post variables are not directly possible (or you have to go to a page that has a form pre filled in and you submit that when the page is loaded) You can generate a GET url request with parameters and use the RedirectRequestTarget to redirect to it. johan On Dec 16, 2007 3:59 PM, Pills

Re: Two home pages?

2007-12-16 Thread Martijn Dashorst
Why not: Application#getHomePage() { if(!isUser()) { return AdminPage.class; } return UserPage.class; } On Dec 16, 2007 2:46 PM, John Krasnay [EMAIL PROTECTED] wrote: On Sat, Dec 15, 2007 at 08:44:32PM -0800, Cristina wrote: Hello, I'm working on an app where users and admins

Re: Session.invalidate()

2007-12-16 Thread NateRedding
Cool, thanks! As you can probably tell, I am new to Wicket, and haven't quite figured out all its nuances yet! So far, I love it though! Is there a good article about nuances such as the difference between setResponsePage(MyPage.class) and setResponsePage(new MyPage()) and/or one that explains

Re: Streaming a huge ZIP file

2007-12-16 Thread Johan Compagner
Stupid me of not knowing anymore what i committed myself AbstractResourceStreamWriter writer = new AbstractResourceStreamWriter() { write(OutputStream output) { // do your generation and output } }; RequestCycle.get().setRequestTarget(new ResourceStreamRequestTarget(writer, test.zip)); johan

Re: Session.invalidate()

2007-12-16 Thread Eelco Hillenius
Cool, thanks! As you can probably tell, I am new to Wicket, and haven't quite figured out all its nuances yet! So far, I love it though! Is there a good article about nuances such as the difference between setResponsePage(MyPage.class) and setResponsePage(new MyPage()) and/or one that

Re: Two home pages?

2007-12-16 Thread Maurice Marrink
Or create a single page used by both user as an entry point and have different menu options visible depending on the user. Hint: a security framework like swarm can easily do this. :D ;) http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security Maurice On Dec 16, 2007 5:02 PM, Martijn

Problem with hiding/showing components with AJAX and isVisible()

2007-12-16 Thread Mika Salminen
Hello, I encountered a problem with hiding/showing components with ajax. If a component is initially not visible according to the isVisible() method, it is not rendered on the page. But if it becomes visible as an effect of ajax request and I try to update it on the client by adding the component

DatePickerSettings and Time?

2007-12-16 Thread Karen Schaper
Hello, I am looking for a component that I can use that will allow users to enter a date and a time. I was hoping to use the following 2 classes to accomplish this. wicket.extensions.markup.html.datepicker.DatePickerSettings ;

Re: DatePickerSettings and Time?

2007-12-16 Thread Eelco Hillenius
On Dec 16, 2007 1:55 PM, Karen Schaper [EMAIL PROTECTED] wrote: Hello, I am looking for a component that I can use that will allow users to enter a date and a time. I was hoping to use the following 2 classes to accomplish this.

Re: Problem with hiding/showing components with AJAX and isVisible()

2007-12-16 Thread Mika Salminen
Hi, Thanks a lot. Did not expect to get the answer in 5 minutes =). I should have read the docs better since the improvement I was suggesting was already implemented. You just got a new buyer for the book. -Mika -- View this message in context: