Re: Migration to wicket 1.5 and properties.xml files

2012-05-01 Thread jensiator
This seems to be working. I'm will just using for a couple of days. Until I have been able to check all the other changes. Then in one chunk I will replace all the xml files when I have confirmed that the application is behaving well. In init of application and -- View this message in

ModalWindow parameters

2012-05-01 Thread Brian Mulholland
I am popping up a modal window when an ajax event fires. The event has a parameter of which key the user selected. I know I can get the parameters from the AjaxRequestTarget in the onClick event, but in ModalWindow.PageCreator.createPage(), how can I get the parameters so that I can load the

Re: ModalWindow parameters

2012-05-01 Thread Melinda Dweer
Have you tried AjaxRequestTarget.get()? If you are in a middle of an AJAX request cycle it should give you the request target. Regards, Melinda. On Tue, May 1, 2012 at 2:51 PM, Brian Mulholland blmulholl...@gmail.comwrote: I am popping up a modal window when an ajax event fires. The event

AutoCompleteField returning null

2012-05-01 Thread cmagnollay
I am having an issue with DefaultCssAutoCompleteTextField where calling getModelObject returns null. The autocomplete behavior itself is functioning as intended, as I see the options come up, and am able to select one. Definition: itemField = new DefaultCssAutoCompleteTextFieldString(itemField,

Re: AutoCompleteField returning null

2012-05-01 Thread Sebastien
Hi, The feedbackpanel always shows that the value it is getting back from itemField is empty. itemField.getValue or getModelObject will returns empty if it is not in your form... (this is the only reason I see regarding to the code you supplied) Sebastien. On Tue, May 1, 2012 at 3:54 PM,

JSessionID breaking my dropdown

2012-05-01 Thread Fergal Keating
I have the following Dropdown added to my code. DropDownChoiceString listSites = new DropDownChoiceString(localeSelect, new PropertyModelString(this, selected), currentProductLocales) { /** * */ private static final long serialVersionUID = 1L; protected boolean

Re: JSessionID breaking my dropdown

2012-05-01 Thread Fergal Keating
sorry sent accidentally. On 1 May 2012 16:16, Fergal Keating fergal.keat...@directski.com wrote: I have the following Dropdown added to my code. DropDownChoiceString listSites = new DropDownChoiceString(localeSelect, new PropertyModelString(this, selected), currentProductLocales) { /**

Re: AutoCompleteField returning null

2012-05-01 Thread cmagnollay
Well, that is not the case unfortunately. Here is my code as stripped down as I could get it, to still supply information about what I am doing. If you have any questions I would be happy to answer. public class MyPage extends WebPage { private TextField quantityField;

JsessionID breaking my DropDownChoice#onSelectionChanged

2012-05-01 Thread Fergal Keating
Apologies if this has been covered before, but i havn't found anything with this specific issue. I have a Dropdown added to my code, but when a user first accesses the site, the URL gets appended with JsessionID. This seems to break the link, and the #onSelectionChanged never gets called. Is

Re: AutoCompleteField returning null

2012-05-01 Thread Sebastien
Oops, I did not saw you was using an AjaxLink... You have to use an AjaxButton instead. Sebastien. On Tue, May 1, 2012 at 5:51 PM, cmagnollay cmagnol...@gmail.com wrote: Well, that is not the case unfortunately. Here is my code as stripped down as I could get it, to still supply information

Re: AutoCompleteField returning null

2012-05-01 Thread cmagnollay
Hmm, The reason I used AjaxLink was because of this post I saw regarding stopping button from submitting to the form. Could you elaborate on why I cannot use AjaxLink, like Igor seems to recommend? Should I do setDefaultFormProcessingBehavior(false) to have the button not submit the form and

Re: JsessionID breaking my DropDownChoice#onSelectionChanged

2012-05-01 Thread Sven Meier
Hi, I just verified with blocked cookies on a quickstart and it works fine here. ServletWebRequest#getContextRelativeUrl() strips the session id from the uri, so running without cookies should be no problem. Perhaps something else is going wrong, you should build a quickstart and attach it

Re: AutoCompleteField returning null

2012-05-01 Thread Sebastien
Hi again, The discussion you point to is related to a case where it is not desired to send the form. I may be wrong but if you need get the field value, you need to have send the form (it is possible to post a single component without sending the whole form but that's another discussion). As you

Re: AutoCompleteField returning null

2012-05-01 Thread cmagnollay
No, this looks very promising. Thank you very much for elaborating. I still do not understand what is different about AutoCompleteTextField that it will not give me back the textual value (getModelObject()) reliably, but I will definitely try this out. Thank you for staying with me until we

Re: AutoCompleteField returning null

2012-05-01 Thread Sebastien
You're welcome. You can not rely on the model object in that case because the form is not proceed (it is sent but not proceed, because of defaultFormProcessing set to false). For the model object of form components to be updated, the form should be proceed and validators (if any) should not have

deserialization - got nulll lastPage

2012-05-01 Thread Dale Ogilvie
What does this warning from our wicket 1.4.20 app signify? WARN org.apache.wicket.protocol.http.SecondLevelCacheSessionStore PageMap deserialization - got nulll lastPage It seems to occur in a couple of situations: a) when the application is reloaded due to a web.xml change b) when restarting

browser resolution info .. ClientProperties question

2012-05-01 Thread mlabs
So I added a call to: getRequestCycleSettings().setGatherExtendedBrowserInfo(true); in my app.init() and sure enough I can now see the client's browser resolution... but I also see it briefly redirect to a page with some 'if you see this..' text on it... Q: Is there any way to stop that