Ben <benarjee_g <at> yahoo.com> writes: > Here is my panel1 >... > add(new ImageQualityForm("imageQualityForm", new > CompoundPropertyModel(imageQuality), aform)); > } > > private static class ImageQualityForm extends Form { > > public ImageQualityForm(String id, IModel model, WicketAnalysisForm > aform) { > super(id, model); > > add(new Label("qualityQuestion", (....))); > add(new Label("safetyQuestion", (...))); > add(new Label("locationQuestion", (...))); > add(new Label("commentsQuestion", (...))); > > List<String> options = Arrays.asList("Yes", "No"); > > add(new RadioChoice("qualityGroup", options); > add(new RadioChoice("criteriaGroup", options); ... > > aform.setImageQuality((ImageQuality)model.getObject()); > > I am getting null when i try to get the model data. > > > Thanks in anticipation >
Hi Ben! I've seen your code and I have a couple of questions. Why do you pass a CompoundPropertyModel to ImageQualityForm form and then you build form components assigning a specific model to each of them? How do get the model data in your code? Bye. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org