click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r1030020 - /click/trunk/click/examples/src/org/apache/click/examples/page/panel/TabbedPanelDemo.java
Date Tue, 02 Nov 2010 12:40:05 GMT
Author: sabob
Date: Tue Nov  2 12:40:05 2010
New Revision: 1030020

URL: http://svn.apache.org/viewvc?rev=1030020&view=rev
Log:
remove @Binadable from demo

Modified:
    click/trunk/click/examples/src/org/apache/click/examples/page/panel/TabbedPanelDemo.java

Modified: click/trunk/click/examples/src/org/apache/click/examples/page/panel/TabbedPanelDemo.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/page/panel/TabbedPanelDemo.java?rev=1030020&r1=1030019&r2=1030020&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/page/panel/TabbedPanelDemo.java
(original)
+++ click/trunk/click/examples/src/org/apache/click/examples/page/panel/TabbedPanelDemo.java
Tue Nov  2 12:40:05 2010
@@ -27,7 +27,6 @@ import org.apache.click.examples.domain.
 import org.apache.click.examples.page.BorderPage;
 import org.apache.click.examples.service.CustomerService;
 import org.apache.click.extras.panel.TabbedPanel;
-import org.apache.click.util.Bindable;
 import org.springframework.stereotype.Component;
 
 /**
@@ -38,8 +37,8 @@ public class TabbedPanelDemo extends Bor
 
     private static final long serialVersionUID = 1L;
 
-    @Bindable protected TabbedPanel tabbedPanel = new TabbedPanel();
-    @Bindable protected List<Customer> customers;
+    private TabbedPanel tabbedPanel = new TabbedPanel("tabbedPanel");
+    private List<Customer> customers;
 
     @Resource(name="customerService")
     private CustomerService customerService;
@@ -47,6 +46,8 @@ public class TabbedPanelDemo extends Bor
     // Constructor ------------------------------------------------------------
 
     public TabbedPanelDemo() {
+        addControl(tabbedPanel);
+
         Panel panel1 = new Panel("panel1", "panel/customersPanel1.htm");
         panel1.setLabel("The First Panel");
         tabbedPanel.add(panel1);
@@ -76,6 +77,7 @@ public class TabbedPanelDemo extends Bor
     @Override
     public void onRender() {
         customers = customerService.getCustomersSortedByName(12);
+        addModel("customers", customers);
     }
 
 }



Mime
View raw message