Re: browser resolution info .. ClientProperties question

2012-05-01 Thread Dan Retzlaff
If you look into the extended browser info detection, you'll see the results of some JavaScript tests being submitted as a form, and saved in a session-scoped object for server-side use. Instead of using these results, you can use your own session-scoped information, and your own Wicket behavior to

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 showi

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 th

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 f

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 reached

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: 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 t

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 cause

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 wrote: > 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 do

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 there

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; p

Re: JSessionID breaking my dropdown

2012-05-01 Thread Fergal Keating
sorry sent accidentally. On 1 May 2012 16:16, Fergal Keating wrote: > > I have the following Dropdown added to my code. > > DropDownChoice listSites = new > DropDownChoice("localeSelect", new PropertyModel(this, > "selected"), currentProductLocales) > { > /** > * > */ > private static final l

JSessionID breaking my dropdown

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

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, cmag

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 DefaultCssAutoCompleteTextField("itemField", new M

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 wrote: > I am popping up a modal window when an ajax event fires. The event > has a parameter of wh

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 righ

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 context: