Re: Firefox 4: Modal windows redirect to invalid page, i.e WICKET-2207 in Firefox 4

2011-04-11 Thread Martin Grigorov
http://wicketstuff.org/wicket14/ajax/modal-window works for me with FF4 please create a new ticket with a quickstart On Sun, Apr 10, 2011 at 8:30 PM, Alec Swan alecs...@gmail.com wrote: Hello, I just updated my Firefox to 4.0 and noticed that all modal windows on my website no longer work.

CheckBox Behaviour through AJAX

2011-04-11 Thread vn0058212
Hi All, I am unable to write Ajax method to make a button visible and when unchecked it should'nt be made visible. heres my bit of code, 1.) this is like a PoP screen which comes up and i need to check the checkbox and after which the button will be made visible and also if unchecked it should

Re: CheckBox handling with Ajax.

2011-04-11 Thread vn0058212
Hi All, I am unable to write Ajax method to make a button visible and unchecked it should'nt be made visible. heres my bit of code, 1.) this is like a PoP screen which comes up and i need to check the checkbox and after which the button will be made visible and also if unchecked it should made

Re: CheckBox Behaviour through AJAX

2011-04-11 Thread lucast
Hi Varum, I was in a sort of similar predicament a couple of weeks ago. Instead of using new CheckBox(A, new Model() ... Have you tried using CheckBox(A, new AbstractCheckBoxModel ... ?? It was recommended by Igor (who recently published a wicket book). Have a look how it is meant to be used.

Re: [VOTE] Behavior of CheckBox With Respect to setRequired(true)

2011-04-11 Thread Andrea Del Bene
Sorry, I know I'm little late but I'd like to vote for the 2nd option This has been discussed before (https://issues.apache.org/jira/browse/WICKET-1221), but I can't find the old vote thread to see what folks think. The problem is that a checkbox is a weird bird when it comes to HTTP. If it's

Re: link within modal window should reload parent page

2011-04-11 Thread hrbaer
Thanks for the hint but the behaviour is still present. I added your code to both ModalPage and parent Webpage but the popup still appears. Any idea? -- View this message in context:

Repetitive TextField Form into ListView?

2011-04-11 Thread Paolo
Hi, It is my first experience with Wicket. I try to do a e-commerce site, based on cheese shop from Wicket in Action Book. I have problem to implement shopping cart to set the quantity of each item that the user choose. As you can see in this screenshot, I put a TextField for quantity in a

Re: Repetitive TextField Form into ListView?

2011-04-11 Thread Martin Grigorov
The problem is in : TextField quantita = new TextField(quantita, quantitaMOD); replace quantitaMOD with something that is associated somehow with the currently iterated cheese object e.g. new PropertyModel(cheese, quantity) On Mon, Apr 11, 2011 at 12:47 PM, Paolo irresistible...@gmail.com

Re: [VOTE] Behavior of CheckBox With Respect to setRequired(true)

2011-04-11 Thread Henrique
+1 for option 2 [for wicket 1.5] --- Inaiat Henrique On Mon, Apr 11, 2011 at 6:25 AM, Andrea Del Bene adelb...@ciseonweb.itwrote: Sorry, I know I'm little late but I'd like to vote for the 2nd option This has been discussed before (https://issues.apache.org/jira/browse/WICKET-1221), but I

Form composed of Panel components

2011-04-11 Thread Chris Colman
I have a complex form that I choose to break down into logical sub Panel components and then add them as children to the Form. The sub Panels themselves then have FormComponents like text fields and DropDownChoice components added to them. Will the normal validate/update mechanism simply work

RE: Form composed of Panel components

2011-04-11 Thread Wilhelmsen Tor Iver
Look into org.apache.wicket.markup.html.form.FormComponentPanelT - Tor Iver -Original Message- From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: 11. april 2011 15:08 To: users@wicket.apache.org Subject: Form composed of Panel components I have a complex form that I choose

Re: Form composed of Panel components

2011-04-11 Thread Pedro Santos
Simply nestle sub Panel contain form components is fine if you make sure that there are a form component higher in hierarchy. FormComponentPanel is useful if you want the panel itself participating in form processing, I don't think this is the case. On Mon, Apr 11, 2011 at 10:08 AM, Chris Colman

RE: Form composed of Panel components

2011-04-11 Thread Chris Colman
I can't derive my Panels from FormComponentPanel because a strict inheritance hierarchy of Panels is already in place. I've started playing around with the Panels in question implementing IFormVisitorParticipant and IFormModelUpdateListener and this seems to be at least calling the validate and

Re: Form composed of Panel components

2011-04-11 Thread Pedro Santos
Form will process nested form components regardless of the web markup container component you used to group them. On Mon, Apr 11, 2011 at 10:46 AM, Chris Colman chr...@stepaheadsoftware.com wrote: I can't derive my Panels from FormComponentPanel because a strict inheritance hierarchy of

Re: Form composed of Panel components

2011-04-11 Thread Michael O'Cleirigh
Extending FormComponentPanel is useful if you want your panel to return some IModelBusinessObject that is built from the various controls on the page. You can override convertInput and onBeforeRender to build/show the BusinessObject into the panel fields. It can make things a lot simpler

RE: Form composed of Panel components

2011-04-11 Thread Chris Colman
What if I want the Panel containers to have their own updateModel and validate methods? Will those methods be called on a class I derive from Panel? -Original Message- From: Pedro Santos [mailto:pedros...@gmail.com] Sent: Monday, 11 April 2011 11:54 PM To: users@wicket.apache.org Subject:

Re: Form composed of Panel components

2011-04-11 Thread Pedro Santos
Yes if you implement IFormModelUpdateListener and add a form validator in form. On Mon, Apr 11, 2011 at 11:01 AM, Chris Colman chr...@stepaheadsoftware.com wrote: What if I want the Panel containers to have their own updateModel and validate methods? Will those methods be called on a class I

CheckBoxMultipleChoice's getInput and getValue return NULL

2011-04-11 Thread eugenebalt
BACKGROUND: I have a CheckBoxMultipleChoice where all items are disabled. Also, one of the items is selected by default. 1. I construct my CheckBoxMultipleChoice as checkBoxes = new CheckBoxMultipleChoice(CheckboxGroup, new ArrayList()) ; 2. I present the choices (all disabled) as

Wicket 1.5 PageParameters vs IRequestParameters question.

2011-04-11 Thread Serban Balamaci
Hello everybody, I''m in the process of migrating an app from 1.4 to 1.5-RC3 I see that the PageParameters and IRequestParameters are pretty separate things now. Any reason why it's done this way and why they not extend a Common Interface that exposes methods like getParameterNames

Re: Firefox 4: Modal windows redirect to invalid page, i.e WICKET-2207 in Firefox 4

2011-04-11 Thread Alec Swan
Martin, When I click on Show modal dialog with a page link on http://wicketstuff.org/wicket14/ajax/modal-window I get redirected to Yahoo search (probably because I have Yahoo toolbar installed) which says: Sorry, the page you were looking for could not be found. Showing related results for:

Re: Firefox 4: Modal windows redirect to invalid page, i.e WICKET-2207 in Firefox 4

2011-04-11 Thread Matthias Keller
I can confirm that an URL http://:/; is tried to be loaded in that process, although it does not result in an ugly yahoo page - as I dont have any yahoo toolbars installed. So the effect is NIL but that url nevertheless is being loaded (verified using firebug, Tab Net, then click on the link.

Re: Firefox 4: Modal windows redirect to invalid page, i.e WICKET-2207 in Firefox 4

2011-04-11 Thread Martin Grigorov
well, it seems to be just in FF4 for Windows I'm using Ubuntu and it works for me it worked for FF3.6 so I'd say it is a bug in FF4 for windows ... try to debug it and let us know if it can be worked around in Wicket On Mon, Apr 11, 2011 at 5:17 PM, Matthias Keller matthias.kel...@ergon.chwrote:

Re: link within modal window should reload parent page

2011-04-11 Thread MZemeck
How about using setResponsePage in ModalWindow.WindowClosedCallback() or ModalWindow.CloseButtonCallback()? Does modalwindow.close(target); fire CloseButtonCallback? From: hrbaer herber.m...@gmail.com To: users@wicket.apache.org Date: 04/11/2011 06:03 AM Subject:Re:

Re: Firefox 4: Modal windows redirect to invalid page, i.e WICKET-2207 in Firefox 4

2011-04-11 Thread Gabriel Landon
I'm using wicket =1.4.15 with FF4 for windows (under windows 7 x64) and all the ModalWindows work perfectly (both using Components or pages). With a wicket page the iframe's src is //: -- View this message in context:

Re: Firefox 4: Modal windows redirect to invalid page, i.e WICKET-2207 in Firefox 4

2011-04-11 Thread Alec Swan
I just double-checked it and Show modal dialog with a PAGE link on http://wicketstuff.org/wicket14/ajax/modal-window redirects me to http:// but Show modal dialog with PANEL works as expected. On Mon, Apr 11, 2011 at 12:24 PM, Gabriel Landon glan...@piti.pf wrote: I'm using wicket =1.4.15 with

Re: Firefox 4: Modal windows redirect to invalid page, i.e WICKET-2207 in Firefox 4

2011-04-11 Thread Isammoc OFF
I agree with Matthias : FF4 for windows (under windows 7 x32) All ModalWindows work perfectly But a GET request for http://:/; is sent 2011/4/11 Gabriel Landon glan...@piti.pf I'm using wicket =1.4.15 with FF4 for windows (under windows 7 x64) and all the ModalWindows work perfectly (both

Re: Wicket 1.5 PageParameters vs IRequestParameters question.

2011-04-11 Thread Pedro Santos
IRequestParameters interface has PageParameters correspondent API to access page parameters. Can be accessed like: RequestCycle.get().getRequest().getQueryParameters() If you want to recreate page parameters for some request, you can use the PageParametersEncoder. On Mon, Apr 11, 2011 at 12:06

Re: link within modal window should reload parent page

2011-04-11 Thread hrbaer
It does! I didn't expect that the modalwindow.close( target ); triggers the WindowClosedCallback function. Thanks! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/link-within-modal-window-should-reload-parent-page-tp3437508p3443067.html Sent from the Users forum

Re: link within modal window should reload parent page

2011-04-11 Thread hrbaer
ok - I just realised that the WindowCloseCallback method gets triggered if a user clicks on the link but also if he wants to close the popup. That's not that good :( Is there a chance to differ whether the user uses the link or just click on the x button to close the popup? -- View this message