Re: [Wicket-user] form processing - getting dropdown selection back to onSubmit method.

2007-03-20 Thread GS-ikiini
don't understand: look up a localized string with the key nullValid (rather than null) to represent the null option. - can you elaborate a bit please. need to know what a localised string is and what is its key. thank you -B Ryan Holmes wrote: DropDownChoice.setNullValid(true) And

Re: [Wicket-user] form processing - getting dropdown selection back to onSubmit method.

2007-03-17 Thread Ryan Holmes
DropDownChoice.setNullValid(true) And remember that for a null valid drop down choice, Wicket will look up a localized string with the key nullValid (rather than null) to represent the null option. Also see the JavaDocs for DropDownChoice and it's superclasses, plus this wiki page:

Re: [Wicket-user] form processing - getting dropdown selection back to onSubmit method.

2007-03-16 Thread GS-ikiini
let me make sure i understand.. add(new DropDownChoice(users,new PropertyModel(this, user),)); the Property model returns the User model. and the id of this dropdownchoice is used to access that model? so get or setUsers on the User user of this? if that is correct. can i do add(new

Re: [Wicket-user] form processing - getting dropdown selection back to onSubmit method.

2007-03-16 Thread Igor Vaynberg
the id of dropdowns has nothing to do with their model. i am not using a compound property model anywhere in the code, nor am i not specifying it directly. the model for each dropdown is specified as a propertymodel where this refers to the page and the string refers to the property on that

Re: [Wicket-user] form processing - getting dropdown selection back to onSubmit method.

2007-03-16 Thread GS-ikiini
I see..I am still thinking in old java style...let me try again... i have my dataprovider class/model. my page class and 2 beans. in my dataprovider class.model, the 2 beans are properties. that i need to set via drop down choice. so i set them as specified here. what i don't understand

Re: [Wicket-user] form processing - getting dropdown selection back to onSubmit method.

2007-03-16 Thread Igor Vaynberg
first the properties are on the page, not on the dataprovider. since dataprovider is an inner non-static class it has access to page properties. second - the particular user object or logtype will come from the dropdown. you give the dropdown a list of users and logtypes you said earlier no?

Re: [Wicket-user] form processing - getting dropdown selection back to onSubmit method.

2007-03-16 Thread GS-ikiini
hey i think i figured it outi am passing a list of the object ideed and the toSting method is automatically called to display what the user sees. I need to go look up how to alter that using the ichoiceRender..once i get that then i think it would work the way i want it to...you've been a big

Re: [Wicket-user] form processing - getting dropdown selection back to onSubmit method.

2007-03-16 Thread Igor Vaynberg
you are welcome. the wiki is here: http://cwiki.apache.org/WICKET/ -igor On 3/16/07, GS-ikiini [EMAIL PROTECTED] wrote: hey i think i figured it outi am passing a list of the object ideed and the toSting method is automatically called to display what the user sees. I need to go look up

Re: [Wicket-user] form processing - getting dropdown selection back to onSubmit method.

2007-03-16 Thread GS-ikiini
hey, is there way to get the select one option to remain in the selection list after the user has made a selection? -B igor.vaynberg wrote: the id of dropdowns has nothing to do with their model. i am not using a compound property model anywhere in the code, nor am i not specifying it

Re: [Wicket-user] form processing - getting dropdown selection back to onSubmit method.

2007-03-15 Thread GS-ikiini
ok here is another question...how do i by pass the validating and form processing and go straight to the onSubmit method of my form(not the button)? -B GS-ikiini wrote: hey all, I am attempting to do some form processing for a filter that i am building. I user 4 dropDownChoice in a

Re: [Wicket-user] form processing - getting dropdown selection back to onSubmit method.

2007-03-15 Thread Gwyn Evans
I'm away from my main computer now, so can't check code, but have you had a look at the Wicket examples, e.g. http://www.wicket-library.com/wicket-examples/compref?wicket:bookmarkablePage=:wicket.examples.compref.DropDownChoicePage /Gwyn On 15/03/07, GS-ikiini [EMAIL PROTECTED] wrote: ok here

Re: [Wicket-user] form processing - getting dropdown selection back to onSubmit method.

2007-03-15 Thread GS-ikiini
yes i have but i am not quite sure how to apply it to what i am doing. It calls for a model on which the current selecting is designated thing is in my selection list i have a strings. but in the model that need setting i have only mostly bean properties. what i want to do is as the user makes a

Re: [Wicket-user] form processing - getting dropdown selection back to onSubmit method.

2007-03-15 Thread GS-ikiini
also how do i get the user selection from a drop down that uses the dropDownchoice(String id,list choinces) constrctor? Gwyn wrote: I'm away from my main computer now, so can't check code, but have you had a look at the Wicket examples, e.g.

Re: [Wicket-user] form processing - getting dropdown selection back to onSubmit method.

2007-03-15 Thread Igor Vaynberg
since you dont specify the model for the selection wicket will look for a compoundpropertymodel you have somewhere above. the value will go into the bean that is in the compoundpropertymodel into a property with the same name as the id of the dropdownchoice. there is a great page on models on

Re: [Wicket-user] form processing - getting dropdown selection back to onSubmit method.

2007-03-15 Thread GS-ikiini
i seei have a fair understaning of models this is what i am doing: I have a dataprovider that services a dataview. this data provider is the the model that i ultimately need to update. however the properties within this are beans i need to set them using the selection from the dropdown. so fo

Re: [Wicket-user] form processing - getting dropdown selection back to onSubmit method.

2007-03-15 Thread Igor Vaynberg
first of all the dataprovider is a readonly interface, it has no set method like the model. that said what you want is simple: populateitem(item item) { final imodel namemodel=new propertymodel(item.getmodel(), name); add(new dropdownchoice(names,namemodel,nameslist)); } -igor On

Re: [Wicket-user] form processing - getting dropdown selection back to onSubmit method.

2007-03-15 Thread GS-ikiini
I have an implementaion of IDataProvider. that has setters in it and originally i used it like a model. however the properties have now been changed to beans. can i still use what you say below? does that populateItem go into my implementaion of dataView? in other words, Imodel

Re: [Wicket-user] form processing - getting dropdown selection back to onSubmit method.

2007-03-15 Thread GS-ikiini
The popilateItem as i know it is used within the dataview. That part i understand. let me re-explain myself. on my webpage class, i have a dataview component. i also have a dropdownview component . they are both children of a form component. i have a beans user, log and logtype. (I am using

Re: [Wicket-user] form processing - getting dropdown selection back to onSubmit method.

2007-03-15 Thread Igor Vaynberg
once you understand models it becomes quiet trivial :) below is the simple way (without using a compound property model) class mypage extends webpage { private user user; private logtype logtype; // getters setters (only necessary in 1.2.x, in later wicket will access private properties through

Re: [Wicket-user] form processing

2006-07-06 Thread Martijn Dashorst
It is of course assumed that you return to the specific page instance instead of a new instance. So give the originating instance to the popup or new page, and when you are ready to return, set that specific instance as the response page. Martijn On 7/5/06, Eelco Hillenius [EMAIL PROTECTED]

Re: [Wicket-user] form processing

2006-07-05 Thread Matej Knopp
Doesn't setDefaultFormProcessing(false) work for you? The values should be preserved even if model is not update. At least if you're using wicket 1.2 or newer. -Matej Alexei Sokolov wrote: I need some help with the following scenario. I have a form and when a user is halfway through it,

Re: [Wicket-user] form processing

2006-07-05 Thread Eelco Hillenius
Yeah, the raw input is always updated, so getInput will give the updated value, and it is also used to set the output value of form components. Eelco On 7/5/06, Matej Knopp [EMAIL PROTECTED] wrote: Doesn't setDefaultFormProcessing(false) work for you? The values should be preserved even if