this is what I have public class MyRadioChoice extends RadioChoice { public MyRadioChoice(final String id, final IModel model,List choices) { super(id,model,choices);} public boolean wantOnSelectionChangedNotifications(){return true;} }
public void populateItem(final Item item) { QuestionModel questionModel = (QuestionModel)item.getModelObject(); item.add(new MyRadioChoice("question",new PropertyModel(question,"question")),lisOfYesNo); ResultDataProvider rdp = new ResultDataProvider(); MyResultDVO rdvo = new MyResultDVO(); rdvo.setResultDVO(questionModel.getSubQuestionModels()); rdp.setResultDVO(rdvo); DataView dataView = new DataView(CommonConstants.FOLLOWUP_QUESTION , rdp) { protected void populateItem(final Item item) { Question question = ((QuestionModel)obj).getQuestion(); TextFirld ft = new TextField("subQuestion", new PropertyModel(question,"question"), type) ft.setRequired(true); item.add(ft); } }; item.add(dataView); } basically the model seems not attached. I do not see the field high lighted when I leave tre field empty. TextFirld ft = new TextField("subQuestion", new PropertyModel(question,"question"), type) ft.setRequired(true); item.add(ft); Sorry, posted to author by mistake, Regards, David C. igor.vaynberg wrote: > > what do you mean fields are not highlighted? > > -igor > > > On 3/29/07, changdt2 <[EMAIL PROTECTED]> wrote: >> >> >> hi, >> >> I am working with DataView where each item will a have a label, checkbox >> and >> another Dataview which is created on the fly, but it seems that the >> models >> in the sub Dataview is not been attached, when error happens the Sub >> Dataview which contains fields is not high lighted. >> >> Is there a issue to created Nested dataview? >> >> Thanks, >> David C. >> -- >> View this message in context: >> http://www.nabble.com/nested-DataView-is-not-updating-model-tf3487728.html#a9738414 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------- >> 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 > > -- View this message in context: http://www.nabble.com/nested-DataView-is-not-updating-model-tf3487728.html#a9739403 Sent from the Wicket - User mailing list archive at Nabble.com. ------------------------------------------------------------------------- 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