Does xxx have getters and setters? What do you get when you do getModel()?

Eelco

On 9/26/06, MailingWicketUser <[EMAIL PROTECTED]> wrote:
>
>
>
> Hello,
>
> the main problem is not the info-message.
> When I call info("bla") in thze constructor, then the message is displayed.
>
> I think the main problem is that the method getModelObject() (see method
> isChoiceAvailable())provides null, but it should not be null!
>
> Here again my code:
>
> The DropDownChoice initialized in the Page-Constructor:
> XXXDropDownChoice dropDownChoice = new XXXDropDownChoice(
>  "xxx", listModel, new ChoiceRenderer("name",
>  "id"), false);
>  dropDownChoice.add(new XXXChoiceValidator());
>  form.add(dropDownChoice);
>  if (!dropDownChoice.isChoiceAvailable()){
>  getFeedbackMessages().info(dropDownChoice ,"An info
> text!");
>  }
> The method isChoiceAvailable() in my XXXDropDownChoice is implemented using
> the model and the choices:
>
> public boolean isChoiceAvailable(){
>  List baseChoicesList = super.getChoices();
>  Object choiceObject = getModelObject();
>  return baseChoicesList.contains(choiceObject);
>  }
>
> Daniel
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to