protected void onInit()
{
{
// Subject
final FieldsetPanel fs = gridBuilder.newFieldset(AbstractRechnungDO.class, "betreff");
fs.add(new MaxLengthTextField(InputPanel.WICKET_ID, new PropertyModel<String>(data, "betreff")));
}
/* GRID50 - BLOCK */
gridBuilder.newSplitPanel(GridSize.COL50);
{
// Creditor
final FieldsetPanel fs = gridBuilder.newFieldset(EingangsrechnungDO.class, "kreditor");
final PFAutoCompleteTextField<String> kreditorField = new PFAutoCompleteTextField<String>(InputPanel.WICKET_ID,
new PropertyModel<String>(data, "kreditor")) {
@Override
protected List<String> getChoices(final String input)
{
return parentPage.getBaseDao().getAutocompletion("kreditor", input);
}
};
kreditorField.withMatchContains(true).withMinChars(2).withFocus(true).add(WicketUtils.setFocus());
fs.add(kreditorField);
}
{
// Reference
final FieldsetPanel fs = gridBuilder.newFieldset(EingangsrechnungDO.class, "referenz");
fs.add(new MaxLengthTextField(InputPanel.WICKET_ID, new PropertyModel<String>(data, "referenz")));
}
if (Registry.instance().getKontoCache().isEmpty() == false) {
// Account
final FieldsetPanel fs = gridBuilder.newFieldset(EingangsrechnungDO.class, "konto");
final KontoSelectPanel kontoSelectPanel = new KontoSelectPanel(fs.newChildId(), new PropertyModel<KontoDO>(data, "konto"),