I have a form that has a lot of labels with surrounding markup that needs to
be visible based on whether their is a value or empty string. The form uses
a CompoundPropertyModel based on a LoadableDetachableModel. How do I check
the model value of a Label in isVisible() without having load() of
LoadableDetachableModel being called twice.
<wicket:enclosure child="lineItem.item.department.departmentName">
<br>Dept: <span
wicket:id="lineItem.item.department.departmentName">Supplements</span>
</wicket:enclosure>
Label departmentName = new Label("lineItem.item.department.departmentName")
{
public boolean isVisible()
{
// How do I check value without load() being called again
}
};
Thanks,
Warren Bell
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]