Hi,
if you are planning to subclass a FormComponent (let's say a TextField
for the id and a TextArea for the description) you don't need to use
panels and you will bind your custom components to standard form's tags
<input type="text"/> and <texarea>...</textarea>
IMHO the second component should uses both models: IModel<B> as main
model and IModel<A> to retrieve the A object to assign to manyBToOneA.
Hello *,
I have two classes, along the lines of:
class A
{
String id;
}
class B
{
A manyBToOneA;
String description;
}
I want to provide a single form such as:
Id: ________
Default description: ________
[Submit]
I plan to use two subclasses of FormComponent, so that one uses IModel<A>, the
other usaes IModel<B> and they are reusable in other forms.
What would be the HTML markup for the main form? Should I use two
<wicket:panel> also if FormComponent is not a Panel? Should I use two <div
wicket:id="...">? What if I prefer to avoid <div>-ing the different fields of
the form?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org