Re: [Wicket-user] To Form or not to Form

2007-07-26 Thread Igor Vaynberg
always add a form around it, wicket supports nested forms.

-igor


On 7/26/07, David Leangen [EMAIL PROTECTED] wrote:


 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
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

-
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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] To Form or not to Form

2007-07-26 Thread David Leangen

Great! Very simple!

Thanks, Igor!



On Thu, 2007-07-26 at 22:31 -0700, Igor Vaynberg wrote:
 always add a form around it, wicket supports nested forms.
 
 -igor
 
 
 On 7/26/07, David Leangen [EMAIL PROTECTED] wrote:
 
 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
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 


-
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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user