object will be put into your model, dropdown
choice works like this:
DropDownChoiceT(String id, IModelT model, IModelListT choices,
IChoiceRenrererT renderer)
-igor
--
View this message in context:
http://www.nabble.com/DropDownChoice-getting-value-into-the-model-tp15905486p15907046
will be put into your model, dropdown
choice works like this:
DropDownChoiceT(String id, IModelT model, IModelListT choices,
IChoiceRenrererT renderer)
-igor
--
View this message in context:
http://www.nabble.com/DropDownChoice-getting-value-into-the-model-tp15905486p15907046.html
Sent
in swing or
tapestry would help.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
View this message in context:
http://www.nabble.com/DropDownChoice-getting-value
everybody should buy one or two. How
is that for a plug?
--
View this message in context:
http://www.nabble.com/DropDownChoice-getting-value-into-the-model-tp15905486p1597.html
Sent from the Wicket - User mailing list archive at Nabble.com
]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
View this message in context:
http://www.nabble.com/DropDownChoice-getting-value-into-the-model-tp15905486p15950742.html
Sent from the Wicket - User mailing list archive
]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
View this message in context:
http://www.nabble.com/DropDownChoice-getting-value-into-the-model-tp15905486p15950742.html
Sent from the Wicket - User mailing list archive at Nabble.com
This has to work yes, the only thing is do build up the new
Model(states) as States so the same type of object as vendor.state
returns.
On 3/7/08, Kai Mutz [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
It is nice to know I'm not the only one struggling with
DropDownChoices. I'm new to
No it works also good, exactly the same if you where using the swing
combobox. The problem that you have is that when you have an id
(integer) in your object model that needs to be set but thagt id is
the id of a Person then i think your object model is just plain wrong.
Its not an object model at
Hi Vitaly,
That is correct. For primitive model values you need something like a map.
I think the DropDownBox was more designed for complex data where the
data to display is embedded in the model value itself.
Anyway, how would the addition of an index argument to the display
method help?
An index is a kind of a link between a value and its displayable
representation. Having an index in getDisplayValue method we would do
something like:
ListInteger lang_choices = Arrays.asList (new Object [] { 1, 2, 4, 8 });
Object [] lang_labels = new Object [] { php, perl, java, c++ };
Hi everyone, Hi Erik,
I am sorry for so late post. But am going to go back to our
DropDownChoice discussion.
If you suggest me to create a list of integers and use a special
renderer implementation to retrieve a displayable value you should
take into account that in case if we have a
), choiceRenderer);
public class SelectOption implements Serializable {
private String state;
private String display;
--
View this message in context:
http://www.nabble.com/DropDownChoice-getting-value-into-the-model-tp15905486p15905486.html
Sent from the Wicket - User mailing list
://www.nabble.com/DropDownChoice-getting-value-into-the-model-tp15905486p15905486.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
[EMAIL PROTECTED] wrote:
I've tried for 1 1/2 days to get this simple Drop Down to work and I'm
feeling stupid. My mom tells me I'm smart.:-(
Everything works fine until I try to save it. I get the following
error. I
think it is trying to put the SelectOption object into the Model
but I
://www.nabble.com/DropDownChoice-getting-value-into-the-model-tp15905486p15907046.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
will be put into your model, dropdown
choice works like this:
DropDownChoiceT(String id, IModelT model, IModelListT choices,
IChoiceRenrererT renderer)
-igor
--
View this message in context:
http://www.nabble.com/DropDownChoice-getting-value-into-the-model-tp15905486p15907046.html
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
View this message in context:
http://www.nabble.com/DropDownChoice-getting-value-into-the-model-tp15905486p15907346.html
Sent from the Wicket - User mailing list archive at Nabble.com
[EMAIL PROTECTED] wrote:
It is nice to know I'm not the only one struggling with
DropDownChoices. I'm new to Wicket and I'm pretty far with
rebuilding an application we are using internally. Has anybody
proposed an alternative or a wrapper to DropDownChoices?
Have you tried something like:
-getting-value-into-the-model-tp15905486p15907691.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Thanks for trying but I get:
WicketMessage: No get method defined for class: class
java.lang.String expression: state
Have you defined a getter/setter for field state in your vendor class?
-
To
commands, e-mail: [EMAIL PROTECTED]
--
View this message in context:
http://www.nabble.com/DropDownChoice-getting-value-into-the-model-tp15905486p15907944.html
Sent from the Wicket - User mailing list archive at Nabble.com
But in java.lang.String there is no state property.
You added a list of Strings to the ddc. But you have to add your vendor
objects. The display in ddc will be done by ChoiceRenderer.
Cheers
Per
Am Freitag, 7. März 2008 23:34:35 schrieb rmattler:
Yes
@Column(name = state, length = 2)
22 matches
Mail list logo