Hi,
The component constructor doesn't call #add() at the moment (and I think
this wont change soon without a better reason).
So even if adding the varargs this wont help.
But you can create your own components which do this:
public class MyForm extends FormEntity {
public MyForm(String id,
Why aren't you using fluent interfaces?
The API ist built around that and allows for a much cleaner structure
inside your constructors.
Just watch out for those Auto-Formaters ;)
new FormRsvpPage(frmRsvp, cpm)
.add(new StatusPanel(pnlRsvp))
.add(new ConfirmPanel(pnlConfirm))
Hi,
you can use something like this:
RsvpPage.this.add(
new Label(event.title),
new CssFeedbackPanel(feedback),
new FormRsvpPage(frmRsvp, cpm).add(pnlNoRsvp, pnlRsvp, pnlConfirm),
pnlRsvpRules
);
I am not dev, but I wouldn't break the API.
BR,
Robert