So are you suggesting that I create a form inside each tab-panel? Or a form
that includes the whole TabbedPanel?
2012/6/20 Sven Meier [via Apache Wicket]
ml-node+s1842946n4650096...@n4.nabble.com
when I click a submit button the data gets refreshed inside the model
and I can see the
You need to update the value of coors somehow before going to the next tab.
As Sven explained clicking on the tab wont submit the form inside a tab panel.
You can submit the form in a tab panel explicitly with its own button.
You can wrap the tabbed panel in a form and use a SubmitLink to switch
Worked like a charm. Thank you everyone.
And for future users who bump into this thread, solved it with this...
TabbedPanel tabbedPanel = new TabbedPanel(tabs, tabs) {
@Override
protected WebMarkupContainer newLink(String linkId, final int
index) {
return
On Tue, Jun 19, 2012 at 11:26 PM, nunofaria11 nunofari...@gmail.com wrote:
Hi, I am trying to properly share a model between tabs in a TabbedPanel.
I've been trying to pass the model to the Panels returned in the getPanel
hook (below), but it seems not to work.
Doesn't work doesn't explain
By doesn't work I meant the data (inside the model) that was supposed to
change does not change.
2012/6/19 Martin Grigorov-4 [via Apache Wicket]
ml-node+s1842946n4650084...@n4.nabble.com
On Tue, Jun 19, 2012 at 11:26 PM, nunofaria11 [hidden
it sounds like you are using static models.
read about dynamic models at:
https://cwiki.apache.org/WICKET/working-with-wicket-models.html
On Tue, Jun 19, 2012 at 11:36 PM, nunofaria11 nunofari...@gmail.com wrote:
By doesn't work I meant the data (inside the model) that was supposed to
change
That is indeed a useful link. Thank you...
However, I still get the same behavior
Here is what I have:
public class HomePage extends WebPage {
private static final long serialVersionUID = 1L;
private ArrayListGPSCoord coords = new ArrayListGPSCoord();
public HomePage() {
when I click a submit button the data gets refreshed inside the model
and I can see the changes when I switch tabs, but only then
In the second panel there is nothing special, only an AjaxSubmitLink
that repaints a WebMarkupContainer.
TabbedPanel uses links by default, so form values are