I have a Panel that I'd like to be able to either render as a
FormComponent in the context of a known Form (by passing the parent Form
in this component's constructor) or, if the parent Form is null, to
itself render as a complete Form.
At first, I thought this would work:
WebMarkupContainer formHeader =
new WebMarkupContainer( FORM_HEADER_ID );
add( formHeader );
formHeader.setVisible( form == null );
but then I realised that this won't work, since only the form header (or
footer) is not valid markup (i.e. the <form> tag is not properly opened
and closed).
I can think of a few hacks to make this work, but can somebody suggest a
more elegant solution to this?
Thanks!
David
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
IMPORTANT NOTICE:
This mailing list is shutting down. Please subscribe to the Apache Wicket user
list. Send a message to: "users-subscribe at wicket.apache.org" and follow the
instructions.
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user