Author: mvitenkov
Date: 2008-04-29 11:32:25 -0400 (Tue, 29 Apr 2008)
New Revision: 8332
Modified:
trunk/test-applications/facelets/src/main/java/dataOrderedList/DataOrderedList.java
trunk/test-applications/facelets/src/main/webapp/DataOrderedList/DataOrderedList.xhtml
trunk/test-applications/facelets/src/main/webapp/DataOrderedList/DataOrderedListProperty.xhtml
Log:
+binding
Modified:
trunk/test-applications/facelets/src/main/java/dataOrderedList/DataOrderedList.java
===================================================================
---
trunk/test-applications/facelets/src/main/java/dataOrderedList/DataOrderedList.java 2008-04-29
15:31:37 UTC (rev 8331)
+++
trunk/test-applications/facelets/src/main/java/dataOrderedList/DataOrderedList.java 2008-04-29
15:32:25 UTC (rev 8332)
@@ -1,7 +1,9 @@
package dataOrderedList;
import java.util.ArrayList;
-
+import org.richfaces.component.html.HtmlDataOrderedList;
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
import util.data.Data;
public class DataOrderedList
@@ -15,7 +17,30 @@
private String dir;
private int mSize;
private ArrayList defaultArr;
+ private HtmlDataOrderedList myOrderedList = null;
+ private String bindLabel;
+ public HtmlDataOrderedList getMyOrderedList() {
+ return myOrderedList;
+ }
+
+ public void setMyOrderedList(HtmlDataOrderedList myOrderedList) {
+ this.myOrderedList = myOrderedList;
+ }
+
+ public String getBindLabel() {
+ return bindLabel;
+ }
+
+ public void setBindLabel(String bindLabel) {
+ this.bindLabel = bindLabel;
+ }
+
+ public void checkBinding(ActionEvent actionEvent){
+ FacesContext context = FacesContext.getCurrentInstance();
+ bindLabel = myOrderedList.getBaseClientId(context);
+ }
+
public String getDir() {
return dir;
}
Modified:
trunk/test-applications/facelets/src/main/webapp/DataOrderedList/DataOrderedList.xhtml
===================================================================
---
trunk/test-applications/facelets/src/main/webapp/DataOrderedList/DataOrderedList.xhtml 2008-04-29
15:31:37 UTC (rev 8331)
+++
trunk/test-applications/facelets/src/main/webapp/DataOrderedList/DataOrderedList.xhtml 2008-04-29
15:32:25 UTC (rev 8332)
@@ -3,14 +3,15 @@
<rich:dataOrderedList id="doListID"
value="#{dataOrderedList.arr}" var="arr"
first="#{dataOrderedList.first}"
rendered="#{dataOrderedList.rendered}"
title="#{dataOrderedList.title}" type="#{dataOrderedList.type}"
dir="#{dataOrderedList.dir}"
rows="#{dataOrderedList.rows}"
- columnClasses="#{style.columnClasses}"
footerClass="#{style.footerClass}" headerClass="#{style.headerClass}"
rowClasses="#{style.rowClasses}" style="#{style.style}"
styleClass="#{style.styleClass}" >
+ columnClasses="#{style.columnClasses}" footerClass="style"
headerClass="test" rowClasses="#{style.rowClasses}"
style="#{style.style}" styleClass="#{style.styleClass}"
+ binding="#{dataOrderedList.myOrderedList}" >
<f:facet name="header">
- <h:outputText value="Africa(header):" />
+ <h:outputText value="HEADER" style="TEXT-DECORATION:
underline;"/>
</f:facet>
<h:outputText value="#{arr.str0} " />
<h:outputLink
value="http://www.jboss.com/"><f:verbatim>Link</f:v...
<f:facet name="footer">
- <h:outputText value="Africa(footer);" />
+ <h:outputText value="FOOTER" style="TEXT-DECORATION:
underline;"/>
</f:facet>
</rich:dataOrderedList>
</f:subview>
Modified:
trunk/test-applications/facelets/src/main/webapp/DataOrderedList/DataOrderedListProperty.xhtml
===================================================================
---
trunk/test-applications/facelets/src/main/webapp/DataOrderedList/DataOrderedListProperty.xhtml 2008-04-29
15:31:37 UTC (rev 8331)
+++
trunk/test-applications/facelets/src/main/webapp/DataOrderedList/DataOrderedListProperty.xhtml 2008-04-29
15:32:25 UTC (rev 8332)
@@ -38,5 +38,8 @@
<h:outputText value="rendered" />
<h:selectBooleanCheckbox value="#{dataOrderedList.rendered}"
onchange="submit();"/>
+
+ <h:commandButton actionListener="#{dataOrderedList.checkBinding}"
value="Binding"></h:commandButton>
+ <h:outputText
value="#{dataOrderedList.bindLabel}"></h:outputText>
</h:panelGrid>
</f:subview>
\ No newline at end of file