Author: mvitenkov
Date: 2008-07-09 11:00:15 -0400 (Wed, 09 Jul 2008)
New Revision: 9491
Modified:
trunk/test-applications/facelets/src/main/java/dataDefinitionList/DataDefinitionList.java
trunk/test-applications/facelets/src/main/webapp/DataDefinitionList/DataDefinitionListProperty.xhtml
Log:
Modified:
trunk/test-applications/facelets/src/main/java/dataDefinitionList/DataDefinitionList.java
===================================================================
---
trunk/test-applications/facelets/src/main/java/dataDefinitionList/DataDefinitionList.java 2008-07-09
14:56:49 UTC (rev 9490)
+++
trunk/test-applications/facelets/src/main/java/dataDefinitionList/DataDefinitionList.java 2008-07-09
15:00:15 UTC (rev 9491)
@@ -4,6 +4,8 @@
import org.richfaces.component.html.HtmlDataDefinitionList;
import javax.faces.context.FacesContext;
import javax.faces.event.ActionEvent;
+
+import util.componentInfo.ComponentInfo;
import util.data.Data;
public class DataDefinitionList
@@ -26,7 +28,13 @@
public void setColumnClasses(String columnClasses) {
this.columnClasses = columnClasses;
}
-
+
+ public String add(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(myDefinitionList);
+ return null;
+ }
+
public String getDir() {
return dir;
}
Modified:
trunk/test-applications/facelets/src/main/webapp/DataDefinitionList/DataDefinitionListProperty.xhtml
===================================================================
---
trunk/test-applications/facelets/src/main/webapp/DataDefinitionList/DataDefinitionListProperty.xhtml 2008-07-09
14:56:49 UTC (rev 9490)
+++
trunk/test-applications/facelets/src/main/webapp/DataDefinitionList/DataDefinitionListProperty.xhtml 2008-07-09
15:00:15 UTC (rev 9491)
@@ -5,6 +5,7 @@
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich"
id="dataDefinitionListPropertySubviewID">
+ <h:commandButton action="#{dataDefinitionList.add}" value="add
test" />
<h:panelGrid columns="2">
<h:outputText value="title" />
<h:inputText value="#{dataDefinitionList.title}">