Hi, I have a page and multiple panels added to it.
e.g I have panel1 and panel2 added to a page. On Panel I have components RadioChoice, dropdownchoice,text area that accepts input from the user. Panel 2 has two textfields (accepts the login info) and submit button. When i click submit button on panel2, how can I capture the data from panel1. Here is my panel1 public class ImageQualityPanel extends Panel { public ImageQualityPanel(String id, WicketAnalysisForm aform) { super(id); ImageQuality imageQuality = new ImageQuality(); //model 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); TextArea notes = new TextArea("notes"); notes.setRequired(true); add(notes); DropDownChoice group = new DropDownChoice("location"); group.setChoices(new PropertyModel(model, "location") { public Object getObject() { List<String> l = new ArrayList<String>(5); l.add("Location 1"); l.add("Location 2"); l.add("Location 3"); l.add("Location 4"); return l; } }); add(group); aform.setImageQuality((ImageQuality)model.getObject()); I am getting null when i try to get the model data. Thanks in anticipation -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-can-I-capture-the-data-on-one-panel-1-when-i-click-submit-button-on-panel-2-tp2531350p2531350.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org