Please reffer to the free user guide, section 12.9 Creating complex form components with FormComponentPanel at: http://wicket.apache.org/guide/guide/single.html#forms2_9
In short you need to create your own compound FormComponentPanel that encapsulates both from components and accepts a single model. Then you would take that model and pass each individual part of it to the corresponding form component you want. On Mon, Oct 6, 2014 at 3:50 AM, manoj kumar <malathkarma...@gmail.com> wrote: > Yes Sebastien it is related to my previous post. > > Actually we are using this for adding filters for a Report, where each > filter is a Row consisting of: > > for ex: a Report might be on the Employee Table. where user could add a > filter as: > > Attribute Operator Value Editor > Department IN In this case it is > Multi Select > DOB EQ > DateTimeField > EmpName LIKE textField > joining date Between <DateTimeFeild1> & > <DateTimeField2>. > > There are Two Drop downs one for a attribute of a report and a value > Editor: > > Based on The Attribute selected: > 1. The Value Editor is changed to either text Field, Date or multi select & > also > 2. The List of the Operators allowed for that attribute is shown. > 3. Now We have added the Between Operator for the Date attributes. > > For Date we are using > org.apache.wicket.extensions.yui.calendar.DateTimeField. which only accepts > the Single date model object. > > so my Question is when between is checked i will show two DateTimeFields, > and these two should map to a Single Model object, is this possible? > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Mapping-two-UI-componets-to-Single-Model-tp4667796p4667829.html > Sent from the Users forum 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 > >