Hello!

I am trying to understand Wicket since a few weeks...( and quite unexperienced 
in Java ;-(  )
The last struggle I came up to is how to localize a drop down selection.
The first point of course is that all 'values' normally associated with 
selections get out of sight in Wicket.. 

How can I localize display strings in a Dropdown list? After lots of looking 
through the wicket docs and code, I tried the 
following:

public InputForm(String name, IFeedback feedback)
{
        super(name,new CompoundPropertyModel(new  SrchFormModel()), feedback);
                         add(new DropDownChoice("testType", new 
StringResourceModel("testType", this, null),            
                                                TESTCONTAINER ) ) ;
}

This to my amazement worked to produce the desired result in the selection.. ( 
I made a srchform.properties file of course 
with some testType values )

But I was very disappointed that I got an exception that setObject in the used 
model (StringResourceModel) is not 
supported....
What should I do?

I too came upon the problem how to forward Form-submission results to the page 
that will handle the form input.
Do I need to pack all returned parameters  in a Page parameters object, and 
construct the new page (target) with this 
parameters object?, or can I somehow create a model (object) of a form that I 
can access in the result page..and if sow, 
how do I do that? (That is, how to forward this object to the target page ; as 
somehow happens in the library example with a 
bookdetails - page  ) 

Help will be much appreciated!

Dick








-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to