On Tue, 24 Jun 2008, Giuliano Caliari wrote:
> As you can see I am new to wicket and I'm trying to evaluate it for my 
> projects.

Then it's a good idea to checkout the code of
wicket-examples of 1.3 

  
http://svn.apache.org/repos/asf/wicket/branches/wicket-1.3.x/jdk-1.5/wicket-examples/

alongside your project, and look at the linked
DropDownChoices example

  http://www.wicketstuff.org/wicket13/ajax/choice.0

from there. Sure it's handy to see the live examples but
it's a lot better to browse the source code in your own IDE,
and you can start the examples there as well.

You can then start by modding the example to do something
like what you want.

Also, be sure to have Wicket source code attached to your
IDE.

> > BTW, what are these methods here for?
> 
> These 2 are there for spring to inject the bean 
> "@SpringBean(name="armyServices")"
 
@SpringBean works "standalone", there's no need to provide 
a setter for your the bean dependency:

  http://cwiki.apache.org/WICKET/spring.html#Spring-AnnotationbasedApproach

> The real problem is that whenever chosenArmy
> DropDownChoice is changed through the AJAX code,
> stwMatchPrefs.setChosenArmy receives null when the form is
> submitted.

Unfortunately I still cannot pinpoint the exact problem. 
Removing the PropertyModel and doing the interaction more 
via specified models might make the problem more apparent. 

Good luck :)

Best wishes,
Timo

-- 
Timo Rantalaiho           
Reaktor Innovations Oy    <URL: http://www.ri.fi/ >

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to