<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: AjaxTabbedPanel &#8211; Store state when switching tabs</title>
	<atom:link href="http://www.volkomenjuist.nl/blog/2009/12/01/ajaxtabbedpanel-store-state-when-switching-tabs/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.volkomenjuist.nl/blog/2009/12/01/ajaxtabbedpanel-store-state-when-switching-tabs/</link>
	<description>Juist! Volkomen Juist!</description>
	<lastBuildDate>Sun, 11 Sep 2011 13:03:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Ludger</title>
		<link>http://www.volkomenjuist.nl/blog/2009/12/01/ajaxtabbedpanel-store-state-when-switching-tabs/comment-page-1/#comment-3423</link>
		<dc:creator>Ludger</dc:creator>
		<pubDate>Wed, 01 Sep 2010 12:41:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.volkomenjuist.nl/blog/?p=331#comment-3423</guid>
		<description>Thanks for the post.
I have one thing. TabbedComponent.this should be form.

cu
Ludger</description>
		<content:encoded><![CDATA[<p>Thanks for the post.<br />
I have one thing. TabbedComponent.this should be form.</p>
<p>cu<br />
Ludger</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefanovich</title>
		<link>http://www.volkomenjuist.nl/blog/2009/12/01/ajaxtabbedpanel-store-state-when-switching-tabs/comment-page-1/#comment-3128</link>
		<dc:creator>Stefanovich</dc:creator>
		<pubDate>Tue, 20 Jul 2010 14:25:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.volkomenjuist.nl/blog/?p=331#comment-3128</guid>
		<description>Wicket can handle nested forms. See https://cwiki.apache.org/WICKET/nested-forms.html</description>
		<content:encoded><![CDATA[<p>Wicket can handle nested forms. See <a href="https://cwiki.apache.org/WICKET/nested-forms.html" rel="nofollow">https://cwiki.apache.org/WICKET/nested-forms.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gerbrand van Dieijen</title>
		<link>http://www.volkomenjuist.nl/blog/2009/12/01/ajaxtabbedpanel-store-state-when-switching-tabs/comment-page-1/#comment-3081</link>
		<dc:creator>Gerbrand van Dieijen</dc:creator>
		<pubDate>Mon, 12 Jul 2010 14:09:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.volkomenjuist.nl/blog/?p=331#comment-3081</guid>
		<description>Hello,

Stefanovich, thanks for the posting!

Bert, the example can only work when the tabbedpanel is inside a form, because newLink returns a submit button.
Forms can&#039;t be nested in HTML, so the tabs inside the tabbedpanel can&#039;t contain a separate form.

To have a form object, you could pass the form you could extend AjaxTabbedPanel, and then pass you&#039;re own form to the constructor:

class MyAjaxTabbedPanel extends AjaxTabbedPanel {
 Form m_form;

 MyAjaxTabbedPanel(String id,List tabs,Form m_form) {
   super(id,tabs);
   this.m_form=m_form;

 ...


   @Override
    protected WebMarkupContainer newLink(String linkId, final int index) {


 }

If I have some time left, I&#039;ll post a working example on my on weblog (as I&#039;m currently trying to get tabs working).
  
}</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Stefanovich, thanks for the posting!</p>
<p>Bert, the example can only work when the tabbedpanel is inside a form, because newLink returns a submit button.<br />
Forms can&#8217;t be nested in HTML, so the tabs inside the tabbedpanel can&#8217;t contain a separate form.</p>
<p>To have a form object, you could pass the form you could extend AjaxTabbedPanel, and then pass you&#8217;re own form to the constructor:</p>
<p>class MyAjaxTabbedPanel extends AjaxTabbedPanel {<br />
 Form m_form;</p>
<p> MyAjaxTabbedPanel(String id,List tabs,Form m_form) {<br />
   super(id,tabs);<br />
   this.m_form=m_form;</p>
<p> &#8230;</p>
<p>   @Override<br />
    protected WebMarkupContainer newLink(String linkId, final int index) {</p>
<p> }</p>
<p>If I have some time left, I&#8217;ll post a working example on my on weblog (as I&#8217;m currently trying to get tabs working).</p>
<p>}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bert</title>
		<link>http://www.volkomenjuist.nl/blog/2009/12/01/ajaxtabbedpanel-store-state-when-switching-tabs/comment-page-1/#comment-1389</link>
		<dc:creator>bert</dc:creator>
		<pubDate>Thu, 17 Dec 2009 15:19:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.volkomenjuist.nl/blog/?p=331#comment-1389</guid>
		<description>Hi,

thanks for this post. I have 2 questions:
 
 * where is the m_form coming from
 * TabbedComponent is the Component holding your TabbedPanel?

In my usecase, i have a form in each of the tabs and would like to push the data into the model on tab switch. If i understood you right, the above code is inside a 
AjaxTabbedPanel tabPanel = new AjaxTabbedPanel(&quot;tabsPanel&quot;, tabs) {
 ..
}
and i do not have any form there .. 

Any hints would be very helpful 

Thanks, Bert</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>thanks for this post. I have 2 questions:</p>
<p> * where is the m_form coming from<br />
 * TabbedComponent is the Component holding your TabbedPanel?</p>
<p>In my usecase, i have a form in each of the tabs and would like to push the data into the model on tab switch. If i understood you right, the above code is inside a<br />
AjaxTabbedPanel tabPanel = new AjaxTabbedPanel(&#8220;tabsPanel&#8221;, tabs) {<br />
 ..<br />
}<br />
and i do not have any form there .. </p>
<p>Any hints would be very helpful </p>
<p>Thanks, Bert</p>
]]></content:encoded>
	</item>
</channel>
</rss>

