JBoss Rich Faces SVN: r5076 - in trunk/sandbox/ui/progressBAR/src/main: templates/org/richfaces and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2007-12-28 09:43:54 -0500 (Fri, 28 Dec 2007)
New Revision: 5076
Modified:
trunk/sandbox/ui/progressBAR/src/main/config/component/progressBar.xml
trunk/sandbox/ui/progressBAR/src/main/templates/org/richfaces/progressBar.jspx
Log:
RF-1691 - Add styleClass attr for component
Modified: trunk/sandbox/ui/progressBAR/src/main/config/component/progressBar.xml
===================================================================
--- trunk/sandbox/ui/progressBAR/src/main/config/component/progressBar.xml 2007-12-28 14:38:00 UTC (rev 5075)
+++ trunk/sandbox/ui/progressBAR/src/main/config/component/progressBar.xml 2007-12-28 14:43:54 UTC (rev 5076)
@@ -29,6 +29,11 @@
&html_universal_attributes;
&html_events;
<property>
+ <name>styleClass</name>
+ <classname>java.lang.String</classname>
+ <description>CSS class that defines style for progress bar</description>
+ </property>
+ <property>
<name>completeClass</name>
<classname>java.lang.String</classname>
<description>CSS class that defines style for progress line rendering</description>
Modified: trunk/sandbox/ui/progressBAR/src/main/templates/org/richfaces/progressBar.jspx
===================================================================
--- trunk/sandbox/ui/progressBAR/src/main/templates/org/richfaces/progressBar.jspx 2007-12-28 14:38:00 UTC (rev 5075)
+++ trunk/sandbox/ui/progressBAR/src/main/templates/org/richfaces/progressBar.jspx 2007-12-28 14:43:54 UTC (rev 5076)
@@ -22,6 +22,7 @@
variables.setVariable("percent",percent);
variables.setVariable("style",(String)component.getAttributes().get("style"));
+ variables.setVariable("styleClass",(String)component.getAttributes().get("styleClass"));
String permanent = (String)component.getAttributes().get("permanent");
@@ -46,7 +47,7 @@
} else {
]]>
</jsp:scriptlet>
-<div class="rich-progress-bar" style="#{style}" id="#{clientId}">
+<div class="rich-progress-bar #{styleClass}" style="#{style}" id="#{clientId}">
<div class="#{remainClass} rich-progress-bar-base" style="#{style}">
<f:call name="encodePersent"/>
</div>
17 years, 2 months
JBoss Rich Faces SVN: r5075 - in branches/3.1.x/samples/scrollableDataTableDemo/src/main: webapp/pages and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2007-12-28 09:38:00 -0500 (Fri, 28 Dec 2007)
New Revision: 5075
Modified:
branches/3.1.x/samples/scrollableDataTableDemo/src/main/java/org/richfaces/demo/datagrid/bean/TestGridDataModelBuilder.java
branches/3.1.x/samples/scrollableDataTableDemo/src/main/webapp/pages/grid1.xhtml
Log:
update demo
Modified: branches/3.1.x/samples/scrollableDataTableDemo/src/main/java/org/richfaces/demo/datagrid/bean/TestGridDataModelBuilder.java
===================================================================
--- branches/3.1.x/samples/scrollableDataTableDemo/src/main/java/org/richfaces/demo/datagrid/bean/TestGridDataModelBuilder.java 2007-12-28 14:33:11 UTC (rev 5074)
+++ branches/3.1.x/samples/scrollableDataTableDemo/src/main/java/org/richfaces/demo/datagrid/bean/TestGridDataModelBuilder.java 2007-12-28 14:38:00 UTC (rev 5075)
@@ -2,19 +2,25 @@
import java.util.ArrayList;
import java.util.HashMap;
+import java.util.Iterator;
+import javax.faces.event.ActionEvent;
+
+import org.richfaces.component.UIScrollableDataTable;
+
public class TestGridDataModelBuilder{
private ArrayList model1 = new ArrayList();
private ArrayList model2 = new ArrayList();
private ArrayList model3 = new ArrayList();
private HashMap grids = new HashMap();
private String grid = "grid1.xhtml";
+ private int size = 1000;
public TestGridDataModelBuilder() {
grids.put("grid1", "grid1.xhtml");
grids.put("grid2", "grid2.xhtml");
grids.put("grid3", "grid3.xhtml");
- for (int i = 0; i < 1000; i++) {
+ for (int i = 0; i < size; i++) {
model1.add(new Row("model1 - " + i));
model2.add(new Row("model2 - " + i));
model3.add(new Row("model3 - " + i));
@@ -22,6 +28,10 @@
}
public ArrayList getModel1() {
+ model1.clear();
+ for (int i = 0; i < size; i++) {
+ model1.add(new Row("model1 - " + i));
+ }
return model1;
}
@@ -60,4 +70,25 @@
public void setGrid(String grid) {
this.grid = grid;
}
+
+ public void rowSelected(ActionEvent event) {
+ System.out.println("==============>>>>>>>>>>>>>>>>>>>>>> rowSelected");
+
+ Iterator keys = ((UIScrollableDataTable)event.getComponent().getParent()).getSelection().getKeys();
+
+ while(keys.hasNext())
+ {
+ System.out.println(keys.next());
+ }
+ System.out.println("Finished!");
+ }
+
+ public int getSize() {
+ return size;
+ }
+
+ public void setSize(int size) {
+ this.size = size;
+ }
+
}
\ No newline at end of file
Modified: branches/3.1.x/samples/scrollableDataTableDemo/src/main/webapp/pages/grid1.xhtml
===================================================================
--- branches/3.1.x/samples/scrollableDataTableDemo/src/main/webapp/pages/grid1.xhtml 2007-12-28 14:33:11 UTC (rev 5074)
+++ branches/3.1.x/samples/scrollableDataTableDemo/src/main/webapp/pages/grid1.xhtml 2007-12-28 14:38:00 UTC (rev 5075)
@@ -3,14 +3,48 @@
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:sg="http://labs.jboss.com/jbossrichfaces/ui/scrollableDataTable">
-
+ xmlns:sg="http://labs.jboss.com/jbossrichfaces/ui/scrollableDataTable"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:dt="http://labs.jboss.com/jbossrichfaces/ui/dataTable">
<ui:composition>
- <sg:scrollableDataTable value="#{modelBuilder.model1}" var="issues"
- frozenColCount="3" first="0" rows="40" width="100%" height="500px">
- <ui:include src="columns.xhtml">
- <ui:param name="issues" value="#{issues}" />
- </ui:include>
+ <style>
+ <!--
+ .rich-sdt-header-cell {
+ background-color: red;
+ }
+ -->
+ </style>
+ <h:inputText id="inputText" value="#{modelBuilder.size}">
+ <a4j:support event="onchange" reRender="inputText" oncomplete="window.Richfaces_ScrollableGrid_j_id2_table.reloadData();"/>
+ </h:inputText>
+ <!-- input id="input" type="text" onchange="window.Richfaces_ScrollableGrid_j_id2_table.updateRowCount(this.value);window.Richfaces_ScrollableGrid_j_id2_table.reloadData();" /-->
+ <sg:scrollableDataTable id="table" value="#{modelBuilder.model1}" var="issues"
+ frozenColCount="1" rows="40" first="0" width="100%" height="500px">
+ <dt:column width="200px">
+ <f:facet name="header">
+ <h:outputText value="header"></h:outputText>
+ </f:facet>
+ <h:outputText value="#{issues.cell2}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="footer"></h:outputText>
+ </f:facet>
+ </dt:column>
+ <dt:column width="200px">
+ <h:outputText value="data"></h:outputText>
+ </dt:column>
</sg:scrollableDataTable>
+ <a4j:commandButton value="reRender" reRender="table"/>
+ <script type="text/javascript">
+<!--
+document.observe("grid:initialized", function(event) {
+ console.log("Element with ID (" + event.target.id +
+ ") fire event with name " + event.eventName + ".");
+});
+document.observe("grid:onresizecolumn", function(event) {
+ console.log("Element with ID (" + event.target.id +
+ ") fire event with name " + event.eventName + ".");
+});
+//-->
+</script>
</ui:composition>
</jsp:root>
17 years, 2 months
JBoss Rich Faces SVN: r5074 - in trunk/samples/scrollableDataTableDemo/src/main: webapp/pages and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2007-12-28 09:33:11 -0500 (Fri, 28 Dec 2007)
New Revision: 5074
Modified:
trunk/samples/scrollableDataTableDemo/src/main/java/org/richfaces/demo/datagrid/bean/TestGridDataModelBuilder.java
trunk/samples/scrollableDataTableDemo/src/main/webapp/pages/grid1.xhtml
Log:
update demo
Modified: trunk/samples/scrollableDataTableDemo/src/main/java/org/richfaces/demo/datagrid/bean/TestGridDataModelBuilder.java
===================================================================
--- trunk/samples/scrollableDataTableDemo/src/main/java/org/richfaces/demo/datagrid/bean/TestGridDataModelBuilder.java 2007-12-28 14:11:56 UTC (rev 5073)
+++ trunk/samples/scrollableDataTableDemo/src/main/java/org/richfaces/demo/datagrid/bean/TestGridDataModelBuilder.java 2007-12-28 14:33:11 UTC (rev 5074)
@@ -2,14 +2,24 @@
import java.util.ArrayList;
import java.util.HashMap;
+import java.util.Iterator;
+import javax.faces.event.ActionEvent;
+
+import org.richfaces.component.UIDataTable;
+import org.richfaces.component.UIScrollableDataTable;
+
public class TestGridDataModelBuilder{
private ArrayList model1 = new ArrayList();
private ArrayList model2 = new ArrayList();
private ArrayList model3 = new ArrayList();
private HashMap grids = new HashMap();
+ private int size = 1000;
private String grid = "grid1.xhtml";
+ private UIDataTable table;
+ private Integer i;
+
public TestGridDataModelBuilder() {
grids.put("grid1", "grid1.xhtml");
grids.put("grid2", "grid2.xhtml");
@@ -22,7 +32,11 @@
}
public ArrayList getModel1() {
- return model1;
+ System.out.println("TestGridDataModelBuilder.getModel1()");
+ model1.clear();
+ for (int i = 0; i < size; i++) {
+ model1.add(new Row("model1 - " + i));
+ } return model1;
}
public void setModel1(ArrayList model1) {
@@ -60,4 +74,53 @@
public void setGrid(String grid) {
this.grid = grid;
}
+
+ public void rowSelected(ActionEvent event) {
+ System.out.println("==============>>>>>>>>>>>>>>>>>>>>>> rowSelected");
+
+ Iterator keys = ((UIScrollableDataTable)event.getComponent().getParent()).getSelection().getKeys();
+
+ while(keys.hasNext())
+ {
+ System.out.println(keys.next());
+ }
+ System.out.println("Finished!");
+ }
+
+ public UIDataTable getTable() {
+ return table;
+ }
+
+ public void setTable(UIDataTable table) {
+ this.table = table;
+ }
+ public void test() {
+ System.out.print(table.getRowKey() + " -> ");
+ System.out.println(table.getRowIndex());
+ }
+
+ public Integer getI() {
+ return i;
+ }
+
+ public void setI(Integer i) {
+ this.i = i;
+ }
+
+ public boolean getRowType() {
+ int currentIndex = table.getRowIndex();
+ if (Integer.valueOf(currentIndex).equals(i)) {
+ return true;
+ }
+ return false;
+ }
+
+ public int getSize() {
+ return size;
+ }
+
+ public void setSize(int size) {
+ this.size = size;
+ }
+
}
\ No newline at end of file
Modified: trunk/samples/scrollableDataTableDemo/src/main/webapp/pages/grid1.xhtml
===================================================================
--- trunk/samples/scrollableDataTableDemo/src/main/webapp/pages/grid1.xhtml 2007-12-28 14:11:56 UTC (rev 5073)
+++ trunk/samples/scrollableDataTableDemo/src/main/webapp/pages/grid1.xhtml 2007-12-28 14:33:11 UTC (rev 5074)
@@ -3,14 +3,49 @@
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:sg="http://labs.jboss.com/jbossrichfaces/ui/scrollableDataTable">
-
+ xmlns:sg="http://labs.jboss.com/jbossrichfaces/ui/scrollableDataTable"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:dt="http://labs.jboss.com/jbossrichfaces/ui/dataTable">
<ui:composition>
- <sg:scrollableDataTable value="#{modelBuilder.model1}" var="issues"
- frozenColCount="3" first="0" rows="40" width="100%" height="500px">
- <ui:include src="columns.xhtml">
- <ui:param name="issues" value="#{issues}" />
- </ui:include>
+ <style>
+ <!--
+ .rich-sdt-header-cell {
+ background-color: red;
+ }
+ -->
+ </style>
+ <h:inputText id="inputText" value="#{modelBuilder.size}">
+ <a4j:support event="onchange" reRender="inputText" oncomplete="window.Richfaces_ScrollableGrid_j_id2_table.reloadData();"/>
+ </h:inputText>
+ <!-- input id="input" type="text" onchange="window.Richfaces_ScrollableGrid_j_id2_table.updateRowCount(this.value);window.Richfaces_ScrollableGrid_j_id2_table.reloadData();" /-->
+ <sg:scrollableDataTable id="table" value="#{modelBuilder.model1}" var="issues"
+ frozenColCount="1" first="0" rows="40" width="100%" height="500px">
+ <dt:column width="200px">
+ <f:facet name="header">
+ <h:outputText value="header"></h:outputText>
+ </f:facet>
+ <h:outputText value="#{issues.cell2}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="footer"></h:outputText>
+ </f:facet>
+ </dt:column>
+ <dt:column width="200px">
+ <h:outputText value="data"></h:outputText>
+ </dt:column>
</sg:scrollableDataTable>
+ <a4j:commandButton value="reRender" reRender="table"/>
+ <img src="q.jpg">
+ <script type="text/javascript">
+<!--
+document.observe("grid:initialized", function(event) {
+ console.log("Element with ID (" + event.target.id +
+ ") fire event with name " + event.eventName + ".");
+});
+document.observe("grid:onresizecolumn", function(event) {
+ console.log("Element with ID (" + event.target.id +
+ ") fire event with name " + event.eventName + ".");
+});
+//-->
+</script>
</ui:composition>
</jsp:root>
17 years, 2 months
JBoss Rich Faces SVN: r5073 - trunk/ui/columns/src/main/java/org/richfaces/taglib.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2007-12-28 09:11:56 -0500 (Fri, 28 Dec 2007)
New Revision: 5073
Modified:
trunk/ui/columns/src/main/java/org/richfaces/taglib/ColumnsTag.java
Log:
Dynamic columns refactoring
Modified: trunk/ui/columns/src/main/java/org/richfaces/taglib/ColumnsTag.java
===================================================================
--- trunk/ui/columns/src/main/java/org/richfaces/taglib/ColumnsTag.java 2007-12-28 14:04:47 UTC (rev 5072)
+++ trunk/ui/columns/src/main/java/org/richfaces/taglib/ColumnsTag.java 2007-12-28 14:11:56 UTC (rev 5073)
@@ -36,12 +36,16 @@
* @author "Andrey Markavtsov"
*
*/
-public class ColumnsTag extends UIComponentClassicTagBase
- implements IterationTag {
+public class ColumnsTag extends UIComponentClassicTagBase implements
+ IterationTag {
+ /** Component type */
private static final String COLUMN_COMPONENT_TYPE = UIColumn.COMPONENT_TYPE;
- /** Current column counter */
+ /** Prefix before id to be assigned for column */
+ private static final String COLUMN_ID_PREFIX = "rf";
+
+ /** Current column counter */
private Integer index = -1;
/** Data table */
@@ -93,6 +97,9 @@
/** Expression for var item */
private IteratedExpression iteratedExpression;
+ /** Column incrementer */
+ private Integer counter = 0;
+
/**
* <p>
* The <code>Lst</code> of {@link UIComponent} ids created or located by
@@ -259,7 +266,7 @@
public void setHeaderClass(ValueExpression __headerClass) {
this._headerClass = __headerClass;
}
-
+
/**
* rowspan Corresponds to the HTML rowspan attribute
*/
@@ -502,12 +509,16 @@
}
UIComponent component = createColumn();
pushUIComponentClassicTagBase(this);
-
+
dataTable.getChildren().add(component);
next();
}
+ private String generateColumnId() {
+ return COLUMN_ID_PREFIX + Integer.toString(counter++);
+ }
+
/**
* Creates column instance
*
@@ -516,7 +527,7 @@
private UIComponent createColumn() {
UIComponent component = getFacesContext().getApplication()
.createComponent(COLUMN_COMPONENT_TYPE);
- component.setId(getFacesContext().getViewRoot().createUniqueId());
+ component.setId(generateColumnId());
initColumnByThis(component);
@@ -554,6 +565,29 @@
return (index == -1);
}
+ /**
+ * Deletes dynamic rich columns created before
+ */
+ private void deleteRichColumns() {
+ List<UIComponent> children = dataTable.getChildren();
+ Iterator<UIComponent> it = children.iterator();
+ List<UIComponent> forDelete = new ArrayList<UIComponent>();
+ Integer i = 0;
+ while (it.hasNext()) {
+ UIComponent child = it.next();
+ String id = child.getId();
+ if (id != null && id.startsWith(COLUMN_ID_PREFIX)) {
+ forDelete.add(child);
+ }
+ i++;
+ }
+ it = forDelete.iterator();
+ while (it.hasNext()) {
+ UIComponent elem = it.next();
+ children.remove(elem);
+ }
+ }
+
/*
* (non-Javadoc)
*
@@ -565,7 +599,7 @@
prepare();
if (created) {
- dataTable.getChildren().clear();
+ deleteRichColumns();
created = false;
}
@@ -995,4 +1029,3 @@
}
}
-
17 years, 2 months
JBoss Rich Faces SVN: r5072 - management/design/fileUpload.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2007-12-28 09:04:47 -0500 (Fri, 28 Dec 2007)
New Revision: 5072
Modified:
management/design/fileUpload/Func Spec - File Upload Component.doc
Log:
Modified: management/design/fileUpload/Func Spec - File Upload Component.doc
===================================================================
(Binary files differ)
17 years, 2 months
JBoss Rich Faces SVN: r5071 - management/design/fileUpload.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2007-12-28 09:03:31 -0500 (Fri, 28 Dec 2007)
New Revision: 5071
Modified:
management/design/fileUpload/Func Spec - File Upload Component.doc
Log:
Modified: management/design/fileUpload/Func Spec - File Upload Component.doc
===================================================================
(Binary files differ)
17 years, 2 months
JBoss Rich Faces SVN: r5070 - in trunk/sandbox/samples/pickList-sample/src/main: webapp/WEB-INF and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-12-28 08:58:25 -0500 (Fri, 28 Dec 2007)
New Revision: 5070
Modified:
trunk/sandbox/samples/pickList-sample/src/main/java/org/richfaces/Bean.java
trunk/sandbox/samples/pickList-sample/src/main/webapp/WEB-INF/faces-config.xml
trunk/sandbox/samples/pickList-sample/src/main/webapp/pages/index.jsp
Log:
extend sample
Modified: trunk/sandbox/samples/pickList-sample/src/main/java/org/richfaces/Bean.java
===================================================================
--- trunk/sandbox/samples/pickList-sample/src/main/java/org/richfaces/Bean.java 2007-12-28 13:58:20 UTC (rev 5069)
+++ trunk/sandbox/samples/pickList-sample/src/main/java/org/richfaces/Bean.java 2007-12-28 13:58:25 UTC (rev 5070)
@@ -20,10 +20,57 @@
*/
package org.richfaces;
-/**
- * @author $Autor$
- *
- */
-public class Bean {
-
+
+import java.util.ArrayList;
+
+import javax.faces.event.ValueChangeEvent;
+import javax.faces.model.SelectItem;
+
+public class Bean
+{
+ private ArrayList testList = new ArrayList();
+
+ private String selectedInfo;
+
+ public Bean()
+ {
+ testList.add(new SelectItem("polecat", "polecat"));
+ testList.add(new SelectItem("suricate", "suricate"));
+ testList.add(new SelectItem("marshotter", "marshotter"));
+ }
+
+ public void selectionChanged(ValueChangeEvent evt)
+ {
+ String[] selectedValues = (String[]) evt.getNewValue();
+
+ if (selectedValues.length == 0)
+ {
+ selectedInfo = "No selected values";
+ }
+ else
+ {
+
+ StringBuffer sb = new StringBuffer("Selected values: ");
+
+ for (int i = 0; i < selectedValues.length; i++)
+ {
+ if (i > 0)
+ sb.append(", ");
+ sb.append(selectedValues[i]);
+ }
+
+ selectedInfo = sb.toString();
+ }
+ }
+
+ public ArrayList getTestList()
+ {
+ return testList;
+ }
+
+ public String getSelectedInfo()
+ {
+ return selectedInfo;
+ }
+
}
\ No newline at end of file
Modified: trunk/sandbox/samples/pickList-sample/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/sandbox/samples/pickList-sample/src/main/webapp/WEB-INF/faces-config.xml 2007-12-28 13:58:20 UTC (rev 5069)
+++ trunk/sandbox/samples/pickList-sample/src/main/webapp/WEB-INF/faces-config.xml 2007-12-28 13:58:25 UTC (rev 5070)
@@ -3,8 +3,8 @@
"http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
<faces-config>
<managed-bean>
- <managed-bean-name>bean</managed-bean-name>
+ <managed-bean-name>pickBean</managed-bean-name>
<managed-bean-class>org.richfaces.Bean</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
+ <managed-bean-scope>session</managed-bean-scope>
</managed-bean>
</faces-config>
Modified: trunk/sandbox/samples/pickList-sample/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/sandbox/samples/pickList-sample/src/main/webapp/pages/index.jsp 2007-12-28 13:58:20 UTC (rev 5069)
+++ trunk/sandbox/samples/pickList-sample/src/main/webapp/pages/index.jsp 2007-12-28 13:58:25 UTC (rev 5070)
@@ -7,11 +7,16 @@
</head>
<body>
<f:view>
- <pickList:pickList>
- <f:selectItem itemValue="test" itemLabel="cats"/>
- <f:selectItem itemValue="test" itemLabel="dogs"/>
- </pickList:pickList>
-
+ <h:form>
+ <pickList:pickList size="5" valueChangeListener="#{pickBean.selectionChanged}">
+ <f:selectItem itemValue="cat" itemLabel="cat"/>
+ <f:selectItem itemValue="dog" itemLabel="dog"/>
+ <f:selectItems value="#{pickBean.testList}"/>
+ </pickList:pickList>
+
+ <h:commandButton value="Submit" action="none"/>
+ <h:outputText value="#{pickBean.selectedInfo}"/>
+ </h:form>
</f:view>
</body>
</html>
17 years, 2 months
JBoss Rich Faces SVN: r5069 - trunk/docs/userguide/en/src/main/resources/images.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-12-28 08:58:20 -0500 (Fri, 28 Dec 2007)
New Revision: 5069
Modified:
trunk/docs/userguide/en/src/main/resources/images/dropDownMenu1.png
trunk/docs/userguide/en/src/main/resources/images/dropDownMenu2.png
trunk/docs/userguide/en/src/main/resources/images/dropDownMenu3.png
trunk/docs/userguide/en/src/main/resources/images/menuGroup1.png
trunk/docs/userguide/en/src/main/resources/images/menuGroup2.png
trunk/docs/userguide/en/src/main/resources/images/menuItem1.png
trunk/docs/userguide/en/src/main/resources/images/menuSeparator1.png
Log:
http://jira.jboss.com/jira/browse/RF-657 - changed pictures.
Modified: trunk/docs/userguide/en/src/main/resources/images/dropDownMenu1.png
===================================================================
(Binary files differ)
Modified: trunk/docs/userguide/en/src/main/resources/images/dropDownMenu2.png
===================================================================
(Binary files differ)
Modified: trunk/docs/userguide/en/src/main/resources/images/dropDownMenu3.png
===================================================================
(Binary files differ)
Modified: trunk/docs/userguide/en/src/main/resources/images/menuGroup1.png
===================================================================
(Binary files differ)
Modified: trunk/docs/userguide/en/src/main/resources/images/menuGroup2.png
===================================================================
(Binary files differ)
Modified: trunk/docs/userguide/en/src/main/resources/images/menuItem1.png
===================================================================
(Binary files differ)
Modified: trunk/docs/userguide/en/src/main/resources/images/menuSeparator1.png
===================================================================
(Binary files differ)
17 years, 2 months
JBoss Rich Faces SVN: r5068 - trunk/sandbox/ui/pickList/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-12-28 08:57:53 -0500 (Fri, 28 Dec 2007)
New Revision: 5068
Modified:
trunk/sandbox/ui/pickList/src/main/config/component/picklist.xml
Log:
add ValueChangeListener, validator properties
Modified: trunk/sandbox/ui/pickList/src/main/config/component/picklist.xml
===================================================================
--- trunk/sandbox/ui/pickList/src/main/config/component/picklist.xml 2007-12-28 13:57:43 UTC (rev 5067)
+++ trunk/sandbox/ui/pickList/src/main/config/component/picklist.xml 2007-12-28 13:57:53 UTC (rev 5068)
@@ -52,7 +52,20 @@
<name>selectedValues</name>
<classname>java.lang.Object</classname>
</property>
+ <property>
+ <name>valueChangeListener</name>
+ <classname>javax.el.MethodExpression</classname>
+ <methodargs> javax.faces.event.ValueChangeEvent</methodargs>
+ </property>
+ <property>
+ <name>validator</name>
+ <classname>javax.el.MethodExpression</classname>
+ <methodargs>javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object</methodargs>
+
+ </property>
+
+
</properties>
</component>
17 years, 2 months
JBoss Rich Faces SVN: r5067 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-12-28 08:57:43 -0500 (Fri, 28 Dec 2007)
New Revision: 5067
Modified:
trunk/docs/userguide/en/src/main/docbook/included/dropDownMenu.xml
trunk/docs/userguide/en/src/main/docbook/included/menuGroup.xml
trunk/docs/userguide/en/src/main/docbook/included/menuItem.xml
Log:
http://jira.jboss.com/jira/browse/RF-1797 - updated documentation, rewrote examples, changed pictures.
Modified: trunk/docs/userguide/en/src/main/docbook/included/dropDownMenu.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dropDownMenu.xml 2007-12-28 13:57:16 UTC (rev 5066)
+++ trunk/docs/userguide/en/src/main/docbook/included/dropDownMenu.xml 2007-12-28 13:57:43 UTC (rev 5067)
@@ -241,8 +241,16 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
- <rich:dropDownMenu value="Item1" direction="bottom-right" jointPoint="tr">
- <!--Nested menu components-->
+ <rich:dropDownMenu value="File" direction="bottom-right" jointPoint="tr">
+ <rich:menuItem submitMode="ajax" value="New" action="#{ddmenu.doNew}"/>
+ <rich:menuItem submitMode="ajax" value="Open" action="#{ddmenu.doOpen}"/>
+ <rich:menuGroup value="Save As...">
+ <rich:menuItem submitMode="ajax" value="Text File" action="#{ddmenu.doSaveText}"/>
+ <rich:menuItem submitMode="ajax" value="PDF File" action="#{ddmenu.doSavePDF}"/>
+ </rich:menuGroup>
+ <rich:menuItem submitMode="ajax" value="Close" action="#{ddmenu.doClose}"/>
+ <rich:menuSeparator id="menuSeparator11"/>
+ <rich:menuItem submitMode="ajax" value="Exit" action="#{ddmenu.doExit}"/>
</rich:dropDownMenu>
...
]]></programlisting>
@@ -274,8 +282,16 @@
</para>
<programlisting role="XML"><![CDATA[...
- <rich:dropDownMenu value="Item1" direction="bottom-right" jointPoint="tr" horizontalOffset="-15" verticalOffset="0">
- <!--Nested menu components-->
+ <rich:dropDownMenu value="File" direction="bottom-right" jointPoint="tr" horizontalOffset="-15" verticalOffset="0">
+ <rich:menuItem submitMode="ajax" value="New" action="#{ddmenu.doNew}"/>
+ <rich:menuItem submitMode="ajax" value="Open" action="#{ddmenu.doOpen}"/>
+ <rich:menuGroup value="Save As...">
+ <rich:menuItem submitMode="ajax" value="Text File" action="#{ddmenu.doSaveText}"/>
+ <rich:menuItem submitMode="ajax" value="PDF File" action="#{ddmenu.doSavePDF}"/>
+ </rich:menuGroup>
+ <rich:menuItem submitMode="ajax" value="Close" action="#{ddmenu.doClose}"/>
+ <rich:menuSeparator id="menuSeparator11"/>
+ <rich:menuItem submitMode="ajax" value="Exit" action="#{ddmenu.doExit}"/>
</rich:dropDownMenu>
...
]]></programlisting>
Modified: trunk/docs/userguide/en/src/main/docbook/included/menuGroup.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/menuGroup.xml 2007-12-28 13:57:16 UTC (rev 5066)
+++ trunk/docs/userguide/en/src/main/docbook/included/menuGroup.xml 2007-12-28 13:57:43 UTC (rev 5067)
@@ -142,9 +142,10 @@
</emphasis>. </para>
<para> Here is an example: </para>
<programlisting role="XML"><![CDATA[...
- <rich:menuGroup value="Active" direction="left-down"
- <!--Nested menu components-->
- </rich:menuGroup>
+ <rich:menuGroup value="Save As..." direction="left-down">
+ <rich:menuItem submitMode="ajax" value="Text File" action="#{ddmenu.doSaveText}"/>
+ <rich:menuItem submitMode="ajax" value="PDF File" action="#{ddmenu.doSavePDF}"/>
+ </rich:menuGroup>
...
]]></programlisting>
<para> This would be the result: </para>
@@ -156,6 +157,9 @@
</imageobject>
</mediaobject>
</figure>
+ <note><title>Note:</title> The <emphasis role="bold">
+ <property><rich:menuGroup></property>
+ </emphasis> component was designed to be used only for pop-up menu list creation.</note>
</section>
<section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/menuItem.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/menuItem.xml 2007-12-28 13:57:16 UTC (rev 5066)
+++ trunk/docs/userguide/en/src/main/docbook/included/menuItem.xml 2007-12-28 13:57:43 UTC (rev 5067)
@@ -130,8 +130,8 @@
<property>"action"</property>
</emphasis> and <emphasis>
<property>"actionListener"</property>
- </emphasis> item's attributes are ignored. Menu items don' fire any submits themselves.
- The behavior is fully defined by the components nested into items.</para>
+ </emphasis> item's attributes are ignored. Menu items don' fire any
+ submits themselves. The behavior is fully defined by the components nested into items.</para>
<para> For example, you can put any content into an item, but, in this case, you should set
the <emphasis>
<property>"mode"</property>
@@ -159,36 +159,39 @@
<rich:dropDownMenu>
...
]]></programlisting>
+ <note><title>Note:</title> The <emphasis role="bold">
+ <property><rich:menuItem></property>
+ </emphasis> component was designed to be used only for pop-up menu list creation.</note>
</section>
<section>
<title>Look-and-Feel Customization</title>
-
+
<para>For skinnability implementation, the components use a <emphasis>
- <property>style class redefinition method.</property>
- </emphasis> Default style classes are mapped on <emphasis>
- <property>skin parameters.</property>
- </emphasis></para>
-
+ <property>style class redefinition method.</property>
+ </emphasis> Default style classes are mapped on <emphasis>
+ <property>skin parameters.</property>
+ </emphasis></para>
+
<para>There are two ways to redefine the appearance of all <emphasis role="bold">
- <property><rich:menuItem></property>
- </emphasis> components at once:</para>
-
+ <property><rich:menuItem></property>
+ </emphasis> components at once:</para>
+
<itemizedlist>
<listitem>
<para>Redefine the corresponding skin parameters</para>
</listitem>
-
+
<listitem>
<para>Add to your style sheets <emphasis>
- <property>style classes</property>
- </emphasis> used by a <emphasis role="bold">
- <property><rich:menuItem></property>
- </emphasis> component</para>
+ <property>style classes</property>
+ </emphasis> used by a <emphasis role="bold">
+ <property><rich:menuItem></property>
+ </emphasis> component</para>
</listitem>
</itemizedlist>
</section>
-
+
<section>
<title>Skin Parameters Redefinition</title>
<table>
@@ -295,7 +298,8 @@
<tbody>
<row>
<entry>rich-menu-item</entry>
- <entry>Defines styles for a wrapper <div> element for an item</entry>
+ <entry>Defines styles for a wrapper <div> element for an
+ item</entry>
</row>
<row>
<entry>rich-menu-item-label</entry>
@@ -308,8 +312,8 @@
</tbody>
</tgroup>
</table>
- <table>
- <title>Classes names that define different states</title>
+ <table>
+ <title>Classes names that define different states</title>
<tgroup cols="2">
<thead>
<row>
@@ -320,15 +324,18 @@
<tbody>
<row>
<entry>rich-menu-item-disabled</entry>
- <entry>Defines styles for a wrapper <div> element of an item</entry>
+ <entry>Defines styles for a wrapper <div> element of an
+ item</entry>
</row>
<row>
<entry>rich-menu-item-enabled</entry>
- <entry>Defines styles for a wrapper <div> element of an enabled item</entry>
+ <entry>Defines styles for a wrapper <div> element of an
+ enabled item</entry>
</row>
<row>
<entry>rich-menu-item-hover</entry>
- <entry>Defines styles for a wrapper <div> element of a hover item</entry>
+ <entry>Defines styles for a wrapper <div> element of a hover
+ item</entry>
</row>
<row>
@@ -359,21 +366,23 @@
</tgroup>
</table>
<para>In order to redefine styles for all <emphasis role="bold">
- <property><rich:menuItem></property>
- </emphasis> components on a page using CSS, it's enough to create classes with the
- same names and define necessary properties in them.</para>
-
+ <property><rich:menuItem></property>
+ </emphasis> components on a page using CSS, it's enough to create classes with
+ the same names and define necessary properties in them.</para>
+
<para>To change styles of particular <emphasis role="bold">
- <property><rich:menuItem></property>
- </emphasis> components, define your own style classes in the corresponding <emphasis
- role="bold">
- <property><rich:menuItem></property>
- </emphasis>attributes.</para>
+ <property><rich:menuItem></property>
+ </emphasis> components, define your own style classes in the corresponding <emphasis
+ role="bold">
+ <property><rich:menuItem></property>
+ </emphasis>attributes.</para>
</section>
<section>
<title>Relevant Resources Links</title>
- <para><ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/dropDownMenu.jsf?c=me..."
- >Here</ulink> you can see the example of <emphasis role="bold"
- ><property><rich:menuItem></property></emphasis> usage and sources for the given example. </para>
- </section>
+ <para><ulink
+ url="http://livedemo.exadel.com/richfaces-demo/richfaces/dropDownMenu.jsf?c=me..."
+ >Here</ulink> you can see the example of <emphasis role="bold">
+ <property><rich:menuItem></property>
+ </emphasis> usage and sources for the given example. </para>
+ </section>
</section>
17 years, 2 months