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)
>
>
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: ht
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 i
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 u
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
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?
dro
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
i
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 pag
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 Drop
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 p
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 wick
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 myModelwhichImpl
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 3/15
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
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 our
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.
> http://www.wicket-library.com/wicket-exampl
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
s
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 he
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
hey all,
I am attempting to do some form processing for a filter that i am building.
I user 4 dropDownChoice in a form with a submit button. I want to overide
the onSubmit method, which i did. however when i try to get the values
selected from the drop down in the method for prodessing, they come
20 matches
Mail list logo