It'd obviously be very helpful to have a more specific exception
message...it was so obvious I looked right over it (and I'm still
getting familiar w/ models.)
What I had done is copied some code where I was using a detachable
model...and just changed it to a regular model...that's where load()
ca
The current equivalent is line 305, i.e.
protected void onComponentTagBody(final MarkupStream markupStream,
final ComponentTag openTag)
{
List choices = getChoices();
final AppendingStringBuffer buffer = new
AppendingStringBuffer((choices.size() * 50) + 16);
getChoices() is returning null the
Good God...I don't believe I missed that!
Ok, this never happened...and thanks!
BTW - I'm using Wicket 1.1.1
On 4/12/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
> if you change that strange load method to what i and gwyn are saying does it
> work then
> what wicket version are you using becau
if you change that strange load method to what i and gwyn are saying does it work thenwhat wicket version are you using because if i look at 290 of AbstractChoice it is nothing.
On 4/12/06, Vincent Jenks <[EMAIL PROTECTED]> wrote:
OK, I did this exactly how you showed me here...and I'm still gettin
On 12/04/06, Vincent Jenks <[EMAIL PROTECTED]> wrote:
> OK, I did this exactly how you showed me here...
No you didn't - In your model you've got "protected Object load()"
from somewhere, whereas what Johan said was "public Object
getObject(final Component component)"
/Gwyn
and I'm still getting
OK, I did this exactly how you showed me here...and I'm still getting the error.
Here's my model:
IModel dropDownModel = new Model()
{
protected Object load()
{
ok then youre dropdown is wrong. IModel dropDownModel = new Model() { public Object getObject(final Component component) {
return new ArrayList(StringValues.getUSAStates().keySet()); //via proxy } };
add(new DropD
I'm sorry, I don't think I quite understand.I have dropDownModel which looks like this: IModel dropDownModel = new Model() { protected Object load() {
return StringValues.getUSAStates(); //via proxy }
give the choice renderen the complete hashmapAnd give the dropdown a model with the keys of that hashmap as a list.so if StringValues.getUSAStates(); are th ids in the hashmap then that should go ok.
but youre choicerender is wrong: add(new DropDownChoice("billingState", dropDownModel, new IChoice
Is there an example of this somewhere? I'm struggling to get this working where I have a HashMap...the first String is the ID and the second String is the value.I have this: IModel dropDownModel = new Model()
{ protected Object load() {
I see. I just went w/ a List and changed the value when I created the list. The dropdown was a list of dates so I just formatted the date differently for the view portion of the list.Thanks!
On 4/1/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
there is no map support for this.What you could do i
there is no map support for this.What you could do is give the map to the ChoiceRenderer impland give the keys of the map as a list to the Choice.johanOn 3/31/06,
Vincent Jenks <[EMAIL PROTECTED]> wrote:
I'm trying to get a Map of data so I can have the key be the value of the dropdown options and
I'm trying to get a Map of data so I can have the key be the value of the dropdown options and the value of the Map item be the value of the option in the dropdown. Problem is, it doesn't look like DropDownChoice will accept a Map...unless I'm doing it wrong?
Is a Map the best way to go? I was ma
13 matches
Mail list logo