JBoss Rich Faces SVN: r6117 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2008-02-15 09:46:20 -0500 (Fri, 15 Feb 2008)
New Revision: 6117
Modified:
trunk/docs/userguide/en/src/main/docbook/included/comboBox.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/comboBox.xml
trunk/docs/userguide/en/src/main/docbook/included/inputNumberSlider.xml
trunk/docs/userguide/en/src/main/docbook/included/scrollableDataTable.xml
Log:
http://jira.jboss.com/jira/browse/RF-2158 - done for comdoBox, updated for scrollableDataTable, listShuttle, inputNumberSlider
Modified: trunk/docs/userguide/en/src/main/docbook/included/comboBox.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/comboBox.desc.xml 2008-02-15 14:45:06 UTC (rev 6116)
+++ trunk/docs/userguide/en/src/main/docbook/included/comboBox.desc.xml 2008-02-15 14:46:20 UTC (rev 6117)
@@ -11,7 +11,7 @@
<property><rich:comboBox></property>
</emphasis> is a component, that provides editable combo box element on the page.</para>
<figure>
- <title><rich:comboBox> component</title>
+ <title><emphasis role="bold"><property><rich:comboBox></property></emphasis> component</title>
<mediaobject>
<imageobject>
<imagedata fileref="images/comboBox.png"/>
Modified: trunk/docs/userguide/en/src/main/docbook/included/comboBox.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/comboBox.xml 2008-02-15 14:45:06 UTC (rev 6116)
+++ trunk/docs/userguide/en/src/main/docbook/included/comboBox.xml 2008-02-15 14:46:20 UTC (rev 6117)
@@ -547,7 +547,7 @@
<para>This is a result:</para>
<figure>
- <title>Redefinition styles with own classes and styleClass attributes</title>
+ <title>Redefinition styles with own classes and <emphasis><property>styleClass</property></emphasis> attributes</title>
<mediaobject>
<imageobject>
<imagedata fileref="images/comboboxStyle.png"/>
Modified: trunk/docs/userguide/en/src/main/docbook/included/inputNumberSlider.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/inputNumberSlider.xml 2008-02-15 14:45:06 UTC (rev 6116)
+++ trunk/docs/userguide/en/src/main/docbook/included/inputNumberSlider.xml 2008-02-15 14:46:20 UTC (rev 6117)
@@ -110,7 +110,7 @@
<programlisting role="XML"><![CDATA[<rich:inputNumberSlider minValue="1" maxValue="100" showInput="false"/>]]></programlisting>
<para>It looks at page like:</para>
<figure>
- <title><rich:inputNumberSlider> without input field</title>
+ <title><emphasis role="bold"><property><rich:inputNumberSlider></property></emphasis> without input field</title>
<mediaobject>
<imageobject>
<imagedata fileref="images/slider3.png"/>
Modified: trunk/docs/userguide/en/src/main/docbook/included/scrollableDataTable.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/scrollableDataTable.xml 2008-02-15 14:45:06 UTC (rev 6116)
+++ trunk/docs/userguide/en/src/main/docbook/included/scrollableDataTable.xml 2008-02-15 14:46:20 UTC (rev 6117)
@@ -188,7 +188,7 @@
...]]></programlisting>
<para>This is a result:</para>
<figure>
- <title>The <emphasis>"selection"</emphasis> attribute usage</title>
+ <title>The <emphasis><property>"selection"</property></emphasis> attribute usage</title>
<mediaobject>
<imageobject>
<imagedata fileref="images/scrollableDataTable.png"/>
@@ -227,7 +227,7 @@
<tbody>
<row>
- <entry>Collapse(columnId)</entry>
+ <entry>collapse(columnId)</entry>
<entry>Performs a collapse action for column with corresponding Id</entry>
</row>
18 years, 2 months
JBoss Rich Faces SVN: r6116 - trunk/docs/faq/en/src/main/docbook/module.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2008-02-15 09:45:06 -0500 (Fri, 15 Feb 2008)
New Revision: 6116
Modified:
trunk/docs/faq/en/src/main/docbook/module/RFCfaq.xml
Log:
http://jira.jboss.com/jira/browse/RF-2147 - done for second "HOWTO" - "How to highlight rows in a dataTable when the mouse is over"
Modified: trunk/docs/faq/en/src/main/docbook/module/RFCfaq.xml
===================================================================
--- trunk/docs/faq/en/src/main/docbook/module/RFCfaq.xml 2008-02-15 14:28:16 UTC (rev 6115)
+++ trunk/docs/faq/en/src/main/docbook/module/RFCfaq.xml 2008-02-15 14:45:06 UTC (rev 6116)
@@ -1309,4 +1309,248 @@
url="http://www.jboss.com/index.html?module=bb&op=viewtopic&t=122543"
>here</ulink>.</para>
</section>
+ <!-- <section id="RowSelectionInDataTable">
+ <?dbhtml filename="RowSelectionInDataTable.html"?>
+ <title>How to show a row of a dataTable on a modal panel?</title>
+ <para>In order to get <property>a row selection in DataTable using </property> you should use the <emphasis>
+ <property>"selection"</property>
+ </emphasis> attribute. </para>
+ <para>In the following example when user submits the form current collection of
+ objects selected by user is placed in the object's property. Then on
+ complete action the <emphasis role="bold">
+ <property><rich:modalPanel></property>
+ </emphasis> with selected data will be shown.</para>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>``
+ <programlisting role="XML"><![CDATA[...
+<f:subview xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich" id="subview">
+ <style>
+ .cur{
+ cursor:pointer;
+ }
+ </style>
+ <h:form id="form">
+ <rich:contextMenu attached="false" id="menu" submitMode="ajax">
+ <rich:menuItem >
+ <b>{car} {model}</b> details
+ <a4j:actionparam name="det" assignTo="#{ddmenu.current}" value="{car} {model} details"/>
+ </rich:menuItem>
+ <rich:menuGroup value="Actions">
+ <rich:menuItem ajaxSingle="true">
+ Put <b>{car} {model}</b> To Basket
+ <a4j:actionparam name="bask" assignTo="#{ddmenu.current}" value="Put {car} {model} To Basket"/>
+ </rich:menuItem>
+ <rich:menuItem value="Read Comments" ajaxSingle="true">
+ <a4j:actionparam name="bask" assignTo="#{ddmenu.current}" value="Read Comments"/>
+ </rich:menuItem>
+ <rich:menuItem ajaxSingle="true">
+ Go to <b>{car}</b> site
+ <a4j:actionparam name="bask" assignTo="#{ddmenu.current}" value="Go to {car} site"/>
+ </rich:menuItem>
+ </rich:menuGroup>
+ </rich:contextMenu>
+ <h:panelGrid columns="2">
+ <rich:dataTable value="#{dataTableScrollerBean.tenRandomCars}" var="car" id="table"
+ onRowMouseOver="this.style.backgroundColor='#F8F8F8'"
+ onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'" rowClasses="cur">
+ <a4j:support event="onRowClick" ajaxSingle="true" oncomplete="javascript:Richfaces.showModalPanel('subview:form:mhjgfjk'); return false;" reRender="panel">
+ <a4j:actionparam name="car" assignTo="#{dataTableScrollerBean.currentCar}" value="#{car.make}"/>
+ <a4j:actionparam name="model" assignTo="#{dataTableScrollerBean.currentModel}" value="#{car.model}"/>
+ <a4j:actionparam name="price" assignTo="#{dataTableScrollerBean.currentPrice}" value="#{car.price}"/>
+ </a4j:support>
+ <rich:column>
+ <f:facet name="header">
+ Make
+ </f:facet>
+ <h:outputText value="#{car.make}"/>
+ </rich:column>
+ <rich:column>
+ <f:facet name="header">
+ Model
+ </f:facet>
+ <h:outputText value="#{car.model}"/>
+ </rich:column>
+ <rich:column>
+ <f:facet name="header">
+ Price
+ </f:facet>
+ <h:outputText value="#{car.price}" />
+ </rich:column>
+ </rich:dataTable>
+ <rich:modalPanel id="mhjgfjk" minWidth="300" minHeight="50">
+ <f:facet name="controls">
+ <span style="cursor:pointer" onclick="Richfaces.hideModalPanel('subview:form:mhjgfjk'); return false;">X</span>
+ </f:facet>
+ <f:facet name="header">
+ Selection Row
+ </f:facet>
+ <rich:panel id="panel">
+ <f:facet name="header">
+ <h:outputText value="#{dataTableScrollerBean.currentCar}"/>
+ </f:facet>
+ <h:panelGrid columns="2">
+ <h:outputText value="Model" style="font-style:bold"></h:outputText>
+ <h:outputText value="#{dataTableScrollerBean.currentModel}"/>
+ <h:outputText value="Price" style="font-style:bold"></h:outputText>
+ <h:outputText value="#{dataTableScrollerBean.currentPrice}"/>
+ </h:panelGrid>
+ </rich:panel>
+ </rich:modalPanel>
+ </h:panelGrid>
+</h:form>
+</f:subview>
+...]]></programlisting>
+ <para>In order to build this application, you can create a managed bean like this
+ one. Function <emphasis>
+ <property>takeSelection()</property>
+ </emphasis> fills the array <property>selectedCars</property> with the data,
+ got from the <property>selection</property>. Function <emphasis>
+ <property>getSelectedCars()</property>
+ </emphasis> returns the array <property>selectedCars</property>, which is
+ used for filling <emphasis role="bold">
+ <property><rich:dataTable></property>
+ </emphasis> with selected row/rows data.</para>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+public class DataTableScrollerBean {
+ private SimpleSelection selection = new SimpleSelection();
+ private ArrayList<DemoInventoryItem> selectedCars = new ArrayList<DemoInventoryItem>();
+ ...
+ public SimpleSelection getSelection() {
+ return selection;
+ }
+ public void setSelection(SimpleSelection selection) {
+ System.out.println("Setting Started");
+ this.selection = selection;
+ System.out.println("Setting Complete");
+ }
+ public String takeSelection() {
+ getSelectedCars().clear();
+ Iterator<SimpleRowKey> iterator = getSelection().getKeys();
+ while (iterator.hasNext()){
+ SimpleRowKey key = iterator.next();
+ getSelectedCars().add(getAllCars().get(key.intValue()));
+ }
+ return null;
+ }
+ public ArrayList<DemoInventoryItem> getSelectedCars() {
+ return selectedCars;
+ }
+ public void setSelectedCars(ArrayList<DemoInventoryItem> selectedCars) {
+ this.selectedCars = selectedCars;
+ }
+}
+...]]></programlisting>
+ <para>Some additional information about usage of <property>one and multi-selection
+ rows mode</property> can be found <ulink
+ url="http://www.jboss.com/index.html?module=bb&op=viewtopic&t=122543"
+ >here</ulink>.</para>
+ </section> -->
+
+
+
+ <section id="RowSelectionInDataTable">
+ <?dbhtml filename="HighlightRowDataTable.html"?>
+ <title>How to highlight rows in a dataTable when the mouse is over?</title>
+ <para>In order <property>to highlight rows in a dataTable when the mouse is over</property> you should use <emphasis><property>"onmouseover"</property></emphasis> and <emphasis><property>"onmouseout"</property></emphasis> attributes. </para>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+<h:form>
+ <rich:dataTable onRowMouseOver="this.style.font = 'bold 20pt Arial'"
+ onRowMouseOut="this.style.font='#{a4jSkin.tableFont}'"
+ cellpadding="0" cellspacing="0"
+ width="700" border="0" var="record" value="#{report.expReport.records}"
+ onRowClick="#{dataTableBean.onRowClick}">
+ <f:facet name="header">
+ <rich:columnGroup>
+ <rich:column rowspan="2">
+ <rich:spacer />
+ </rich:column>
+ <rich:column colspan="3">
+ <h:outputText value="Expenses" />
+ </rich:column>
+ <rich:column rowspan="2">
+ <h:outputText value="subtotals" />
+ </rich:column>
+ <rich:column breakBefore="true">
+ <h:outputText value="Meals" />
+ </rich:column>
+ <rich:column>
+ <h:outputText value="Hotels" />
+ </rich:column>
+ <rich:column>
+ <h:outputText value="Transport" />
+ </rich:column>
+ </rich:columnGroup>
+ </f:facet>
+ <rich:column colspan="5">
+ <h:outputText value="#{record.city}" />
+ </rich:column>
+ <rich:subTable onRowMouseOver="this.style.font = 'bold 20pt Arial'"
+ onRowMouseOut="this.style.font='#{a4jSkin.tableFont}'"
+ var="expense" value="#{record.items}">
+ <rich:column>
+ <h:outputText value="#{expense.day}"></h:outputText>
+ <f:facet name="footer">
+ <rich:spacer />
+ </f:facet>
+ </rich:column>
+ <rich:column>
+ <h:outputText value="#{expense.meals}"><f:convertNumber pattern="$####.00" /></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="#{record.totalMeals}"><f:convertNumber pattern="$####.00" /></h:outputText>
+ </f:facet>
+ </rich:column>
+ <rich:column>
+ <h:outputText value="#{expense.hotels}"><f:convertNumber pattern="$####.00" /></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="#{record.totalHotels}"><f:convertNumber pattern="$####.00" /></h:outputText>
+ </f:facet>
+ </rich:column>
+ <rich:column>
+ <h:outputText value="#{expense.transport}"><f:convertNumber pattern="$####.00" /></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="#{record.totalTransport}"><f:convertNumber pattern="$####.00" /></h:outputText>
+ </f:facet>
+ </rich:column>
+ <rich:column>
+ <rich:spacer></rich:spacer>
+ <f:facet name="footer">
+ <h:outputText value="#{record.total}"><f:convertNumber pattern="$####.00" /></h:outputText>
+ </f:facet>
+ </rich:column>
+ </rich:subTable>
+ <f:facet name="footer">
+ <rich:columnGroup>
+ <rich:column>Totals</rich:column>
+ <rich:column>
+ <h:outputText value="#{report.expReport.totalMeals}"><f:convertNumber pattern="$####.00" /></h:outputText>
+ </rich:column>
+ <rich:column>
+ <h:outputText value="#{report.expReport.totalHotels}"><f:convertNumber pattern="$####.00" /></h:outputText>
+ </rich:column>
+ <rich:column>
+ <h:outputText value="#{report.expReport.totalTransport}"><f:convertNumber pattern="$####.00" /></h:outputText>
+ </rich:column>
+ <rich:column>
+ <h:outputText value="#{report.expReport.grandTotal}"><f:convertNumber pattern="$####.00" /></h:outputText>
+ </rich:column>
+ </rich:columnGroup>
+ </f:facet>
+</rich:dataTable>
+</h:form>
+...]]></programlisting>
+
+ </section>
+
</chapter>
18 years, 2 months
JBoss Rich Faces SVN: r6115 - in trunk/test-applications/qa/Performance Suite: DataModels and 4 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: tkuprevich
Date: 2008-02-15 09:28:16 -0500 (Fri, 15 Feb 2008)
New Revision: 6115
Added:
trunk/test-applications/qa/Performance Suite/DataModels/
trunk/test-applications/qa/Performance Suite/DataModels/Scrollable Data Table/
trunk/test-applications/qa/Performance Suite/DataModels/Scrollable Data Table/ScrollableDataTable.java
trunk/test-applications/qa/Performance Suite/DataModels/Util.Data/
trunk/test-applications/qa/Performance Suite/DataModels/Util.Data/Data.java
trunk/test-applications/qa/Performance Suite/Performance Test Suite.doc
trunk/test-applications/qa/Performance Suite/Stpwatch.exe
Log:
Added: trunk/test-applications/qa/Performance Suite/DataModels/Scrollable Data Table/ScrollableDataTable.java
===================================================================
--- trunk/test-applications/qa/Performance Suite/DataModels/Scrollable Data Table/ScrollableDataTable.java (rev 0)
+++ trunk/test-applications/qa/Performance Suite/DataModels/Scrollable Data Table/ScrollableDataTable.java 2008-02-15 14:28:16 UTC (rev 6115)
@@ -0,0 +1,216 @@
+package scrollableDataTable;
+
+import java.util.ArrayList;
+
+import org.ajax4jsf.model.DataComponentState;
+import org.richfaces.model.selection.Selection;
+
+import util.data.Data;
+
+
+/**
+ * @author AYanul
+ *
+ */
+public class ScrollableDataTable
+{
+ private ArrayList<Data> data;
+ private String width;
+ private int rows;
+ private String key;
+ private boolean hideWhenScrolling;
+ private int dataLength;
+ private int frozenColCount;
+
+ private int first;
+ private boolean rendered;
+ private int timeout;
+ private String height;
+ private boolean limitToList;
+ private DataComponentState componentState;
+ private boolean bypassUpdates;
+ private boolean ignoreDupResponses;
+ private String eventsQueue;
+ private String activeRowKey;
+ private Selection selection;
+ private boolean ajaxSingle;
+
+ public ScrollableDataTable() {
+ width = "400px";
+ rows = 30;
+ hideWhenScrolling = false;
+ dataLength = 40;
+ data = new ArrayList<Data>();
+ first = 0;
+ rendered = true;
+ timeout = 500;
+ height = "400px";
+ limitToList = false;
+ bypassUpdates = false;
+ ignoreDupResponses = false;
+ ajaxSingle = false;
+ addNewItem();
+ }
+
+ public Selection getSelection() {
+ return selection;
+ }
+
+ public void setSelection(Selection selection) {
+ this.selection = selection;
+ }
+
+ public int getFrozenColCount() {
+ return frozenColCount;
+ }
+
+ public void setFrozenColCount(int frozenColCount) {
+ this.frozenColCount = frozenColCount;
+ }
+
+ public int getFirst() {
+ return first;
+ }
+
+ public void setFirst(int first) {
+ this.first = first;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public int getTimeout() {
+ return timeout;
+ }
+
+ public void setTimeout(int timeout) {
+ this.timeout = timeout;
+ }
+
+ public String getHeight() {
+ return height;
+ }
+
+ public void setHeight(String height) {
+ this.height = height;
+ }
+
+ public boolean isLimitToList() {
+ return limitToList;
+ }
+
+ public void setLimitToList(boolean limitToList) {
+ this.limitToList = limitToList;
+ }
+
+ public DataComponentState getComponentState() {
+ return componentState;
+ }
+
+ public void setComponentState(DataComponentState componentState) {
+ this.componentState = componentState;
+ }
+
+ public boolean isBypassUpdates() {
+ return bypassUpdates;
+ }
+
+ public void setBypassUpdates(boolean bypassUpdates) {
+ this.bypassUpdates = bypassUpdates;
+ }
+
+ public boolean isIgnoreDupResponses() {
+ return ignoreDupResponses;
+ }
+
+ public void setIgnoreDupResponses(boolean ignoreDupResponses) {
+ this.ignoreDupResponses = ignoreDupResponses;
+ }
+
+ public String getEventsQueue() {
+ return eventsQueue;
+ }
+
+ public void setEventsQueue(String eventsQueue) {
+ this.eventsQueue = eventsQueue;
+ }
+
+ public String getActiveRowKey() {
+ return activeRowKey;
+ }
+
+ public void setActiveRowKey(String activeRowKey) {
+ this.activeRowKey = activeRowKey;
+ }
+
+ public String getKey() {
+ return key;
+ }
+
+ public boolean isHideWhenScrolling() {
+ return hideWhenScrolling;
+ }
+
+ public void setHideWhenScrolling(boolean hideWhenScrolling) {
+ this.hideWhenScrolling = hideWhenScrolling;
+ }
+
+ public void addNewItem() {
+ if(dataLength < 0) dataLength = 0;
+ if(data.size() > dataLength)
+ for(int i = dataLength; i < data.size(); )
+ data.remove(i);
+ else
+ for(int i = data.size() + 1; i <= dataLength; i++)
+ data.add(new Data(i, "Text " + i, "Link " + i, "select" +(i % 5), Data.statusIcon[i % 5]));
+ }
+
+ public ArrayList<Data> getData() {
+ return data;
+ }
+
+ public void setData(ArrayList<Data> data) {
+ this.data = data;
+ }
+
+ public String getWidth() {
+ return width;
+ }
+
+ public void setWidth(String width) {
+ this.width = width;
+ }
+
+ public int getRows() {
+ return rows;
+ }
+
+ public void setRows(int rows) {
+ this.rows = rows;
+ }
+
+ public void setKey(String key) {
+ this.key = key;
+ }
+
+ public int getDataLength() {
+ return dataLength;
+ }
+
+ public void setDataLength(int dataLength) {
+ this.dataLength = dataLength;
+ }
+
+ public boolean isAjaxSingle() {
+ return ajaxSingle;
+ }
+
+ public void setAjaxSingle(boolean ajaxSingle) {
+ this.ajaxSingle = ajaxSingle;
+ }
+}
\ No newline at end of file
Added: trunk/test-applications/qa/Performance Suite/DataModels/Util.Data/Data.java
===================================================================
--- trunk/test-applications/qa/Performance Suite/DataModels/Util.Data/Data.java (rev 0)
+++ trunk/test-applications/qa/Performance Suite/DataModels/Util.Data/Data.java 2008-02-15 14:28:16 UTC (rev 6115)
@@ -0,0 +1,197 @@
+package util.data;
+
+public class Data {
+ public static final String[] statusIcon = {"/pics/error.gif", "/pics/fatal.gif", "/pics/info.gif", "/pics/passed.gif", "/pics/warn.gif"};
+ public static final String[] status = {"error", "fatal", "info", "passed", "warn"};
+
+ public static final String[] cityAfrica = {"Africa", "Algeria", "Angola", "Bassas da India", "Benin", "Botswana", "Burkina Faso", "Burundi", "Cameroon", "Central African Republic", "Chad", "Comoros", "Democratic Republic of the Congo", "Djibouti", "Egypt", "Equatorial Guinea", "Eritrea", "Ethiopia", "Europa Island", "Gabon", "Gambia", "Ghana", "Glorioso Islands", "Guinea", "Guinea-Bissau", "Ivory Coast", "Juan de Nova Island", "Kenya", "Lesotho", "Liberia", "Libya", "Madagascar", "Malawi", "Mali", "Mauritania", "Mauritius Island", "Mayotte", "Morocco", "Mozambique", "Namibia", "Nigeria", "Republic of the Congo", "Reunion", "Rwanda", "Niger", "Saint Helena", "Sao Tome and Principe", "Senegal", "Seychelles", "Sierra Leone", "Somalia", "South Africa", "Sudan", "Swaziland", "Tanzania", "Togo", "Tromelin Island", "Tunisia", "Uganda", "Western Sahara", "Zambia", "Zimbabwe"};
+ public static final String[] cityAsia = {"Asia", "Afghanistan", "Armenia", "Azerbaijan", "Bangladesh", "Bhutan", "China", "Georgia", "India", "Japan", "Kazakhstan", "Korea, North", "Korea, South", "Kyrgyzstan", "Maldives", "Mongolia", "Nepal", "Pakistan", "Russia", "Sri Lanka", "Tajikistan", "Turkmenistan", "Uzbekistan"};
+ public static final String[] cityCAmerica = {"Central America", "Belize", "Costa Rica", "El Salvador", "Guatemala", "Honduras", "Nicaragua", "Panama"};
+ public static final String[] cityEurope = {"Europe", "Albania", "Andorra", "Austria", "Belarus", "Belgium", "Bosnia and Herzegovina", "Bulgaria", "Canary Islands", "Croatia", "Czech Republic", "Denmark", "Estonia", "Faroe Islands", "Finland", "France", "Germany", "Gibraltar", "Greece", "Guernsey", "Hungary", "Iceland", "Ireland", "Isle of Man", "Italy", "Jersey", "Latvia", "Liechtenstein", "Lithuania", "Luxembourg", "Macedonia", "Malta", "Moldova", "Monaco", "Montenegro", "Netherlands", "Norway", "Poland", "Portugal", "Romania", "San Marino", "Serbia and Montenegro", "Slovakia", "Slovenia", "Spain", "Sweden", "Switzerland", "Ukraine", "United Kingdom", "Vatican The Holy See"};
+ public static final String[] cityMEast = {"Middle East", "Akrotiri", "Bahrain", "Cyprus", "Dhekelia", "Gaza Strip", "Iran", "Iraq", "Israel", "Jordan", "Kuwait", "Lebanon", "Oman", "Qatar", "Saudi Arabia", "Syria", "Turkey", "United Arab Emirates", "West Bank", "Yemen"};
+ public static final String[] cityNAmerica = {"North America", "Bermuda", "Canada", "Greenland", "Mexico", "Saint Pierre and Miquelon", "United States of America"};
+ public static final String[] cityOceania = {"Oceania", "American Samoa", "Australia", "Baker Island", "Cook Islands", "Coral Sea Islands", "Fiji", "French Polynesia", "Guam", "Howland Island", "Jarvis Island", "Johnston Atoll", "Kingman Reef", "Kiribati", "Marshall Islands", "Micronesia", "Midway Islands", "Nauru", "New Caledonia", "New Zealand", "Niue", "Norfolk Island", "Northern Mariana Islands", "Palau", "Palmyra Atoll", "Papua New Guinea", "Pitcairn Islands", "Samoa", "Solomon Islands", "Tokelau", "Tonga", "Tuvalu", "Vanuatu", "Wake Island", "Wallis and Futuna"};
+ public static final String[] citySAmerica = {"South America","Argentina", "Bolivia", "Brazil", "Chile", "Colombia", "Easter Island", "Ecuador", "Falkland Islands", "French Guiana", "Guyana", "Paraguay", "Peru", "Suriname", "Uruguay", "Venezuela"};
+ public static final String[] citySEAsia = {"SouthEast Asia", "Ashmore and Cartier Islands", "Brunei", "Burma", "Cambodia", "Christmas Island", "Cocos (Keeling) Islands", "East Timor", "Hong Kong", "Indonesia", "Laos", "Malaysia", "Paracel Islands", "Philippines", "Singapore", "Spratly Islands", "Taiwan", "Thailand", "Vietnam"};
+ public static final String[] cityCaribbean = {"The Caribbean", "Anguilla", "Antigua and Barbuda", "Aruba", "Barbados", "British Virgin Islands", "Cayman Islands", "Cuba", "Dominica", "Dominican Republic", "Grenada", "Guadeloupe", "Haiti", "Jamaica", "Martinique", "Montserrat", "Navassa Island", "Netherlands Antilles", "Puerto Rico", "Saint Barthelemy", "Saint Kitts and Nevis", "Saint Lucia", "Saint Vincent and the Grenadines", "The Bahamas", "Trinidad and Tobago", "Turks and Caicos Islands", "Virgin Islands"};
+
+ private String str0;
+ private String str1;
+ private String str2;
+ private String str3;
+ private int int0;
+ private int int1;
+ private int int2;
+ private int int3;
+ private boolean bool0;
+ private boolean bool1;
+ private boolean bool2;
+ private boolean bool3;
+
+ public Data() {
+ this.str0 = "";
+ this.str1 = "";
+ this.str2 = "";
+ this.str3 = "";
+ this.int0 = 0;
+ this.int1 = 0;
+ this.int2 = 0;
+ this.int3 = 0;
+ this.bool0 = false;
+ this.bool1 = false;
+ this.bool2 = false;
+ this.bool3 = false;
+ }
+
+ public Data(String str0, String str1, String str2, String str3, int int0,
+ int int1, int int2, int int3, boolean bool0, boolean bool1,
+ boolean bool2, boolean bool3) {
+ this.str0 = str0;
+ this.str1 = str1;
+ this.str2 = str2;
+ this.str3 = str3;
+ this.int0 = int0;
+ this.int1 = int1;
+ this.int2 = int2;
+ this.int3 = int3;
+ this.bool0 = bool0;
+ this.bool1 = bool1;
+ this.bool2 = bool2;
+ this.bool3 = bool3;
+ }
+
+ public Data(String str0, String str1, String str2, String str3){
+ this.str0 = str0;
+ this.str1 = str1;
+ this.str2 = str2;
+ this.str3 = str3;
+ }
+
+ public Data(int int0, String str0, String str1, String str2, String str3){
+ this.int0 = int0;
+ this.str0 = str0;
+ this.str1 = str1;
+ this.str2 = str2;
+ this.str3 = str3;
+ }
+
+ public Data(String str0){
+ this.str0 = str0;
+ }
+
+ public Data(int int0) {
+ this.int0 = int0;
+ }
+
+ public Data(String str0, String str1){
+ this.str0 = str0;
+ this.str1 = str1;
+ }
+
+ public Data(String str0, int int0){
+ this.str0 = str0;
+ this.int0 = int0;
+ }
+
+ public Data(String str0, int int0, boolean bool0){
+ this.str0 = str0;
+ this.int0 = int0;
+ this.bool0 = bool0;
+ }
+
+ public String getStr0() {
+ return str0;
+ }
+ public void setStr0(String str0) {
+ this.str0 = str0;
+ }
+ public String getStr1() {
+ return str1;
+ }
+ public void setStr1(String str1) {
+ this.str1 = str1;
+ }
+ public String getStr2() {
+ return str2;
+ }
+ public void setStr2(String str2) {
+ this.str2 = str2;
+ }
+ public String getStr3() {
+ return str3;
+ }
+ public void setStr3(String str3) {
+ this.str3 = str3;
+ }
+ public int getInt0() {
+ return int0;
+ }
+ public void setInt0(int int0) {
+ this.int0 = int0;
+ }
+ public int getInt1() {
+ return int1;
+ }
+ public void setInt1(int int1) {
+ this.int1 = int1;
+ }
+ public int getInt2() {
+ return int2;
+ }
+ public void setInt2(int int2) {
+ this.int2 = int2;
+ }
+ public int getInt3() {
+ return int3;
+ }
+ public void setInt3(int int3) {
+ this.int3 = int3;
+ }
+ public boolean isBool0() {
+ return bool0;
+ }
+ public void setBool0(boolean bool0) {
+ this.bool0 = bool0;
+ }
+ public boolean isBool1() {
+ return bool1;
+ }
+ public void setBool1(boolean bool1) {
+ this.bool1 = bool1;
+ }
+ public boolean isBool2() {
+ return bool2;
+ }
+ public void setBool2(boolean bool2) {
+ this.bool2 = bool2;
+ }
+ public boolean isBool3() {
+ return bool3;
+ }
+ public void setBool3(boolean bool3) {
+ this.bool3 = bool3;
+ }
+
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int result = 1;
+ result = prime * result + int0;
+ return result;
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+ if (getClass() != obj.getClass())
+ return false;
+ final Data other = (Data) obj;
+ if (int0 != other.int0)
+ return false;
+ return true;
+ }
+
+}
Added: trunk/test-applications/qa/Performance Suite/Performance Test Suite.doc
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/qa/Performance Suite/Performance Test Suite.doc
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/qa/Performance Suite/Stpwatch.exe
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/qa/Performance Suite/Stpwatch.exe
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
18 years, 2 months
JBoss Rich Faces SVN: r6113 - Plan/3.2.0 and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: tkuprevich
Date: 2008-02-15 08:56:27 -0500 (Fri, 15 Feb 2008)
New Revision: 6113
Removed:
trunk/test-applications/qa/Test Plan/3.2.0/~$stPlan-RF-3.2.0.doc
Log:
Deleted: trunk/test-applications/qa/Test Plan/3.2.0/~$stPlan-RF-3.2.0.doc
===================================================================
(Binary files differ)
18 years, 2 months
JBoss Rich Faces SVN: r6112 - Plan/3.2.0 and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: tkuprevich
Date: 2008-02-15 08:55:32 -0500 (Fri, 15 Feb 2008)
New Revision: 6112
Added:
trunk/test-applications/qa/Test Plan/3.2.0/~$stPlan-RF-3.2.0.doc
Modified:
trunk/test-applications/qa/Test Plan/3.2.0/TestPlan-RF-3.2.0.doc
Log:
Modified: trunk/test-applications/qa/Test Plan/3.2.0/TestPlan-RF-3.2.0.doc
===================================================================
(Binary files differ)
Added: trunk/test-applications/qa/Test Plan/3.2.0/~$stPlan-RF-3.2.0.doc
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/qa/Test Plan/3.2.0/~$stPlan-RF-3.2.0.doc
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
18 years, 2 months
JBoss Rich Faces SVN: r6111 - in trunk/sandbox/ui/inplaceInput/src/main: resources/org/richfaces/renderkit/html/scripts and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: vmolotkov
Date: 2008-02-15 08:53:51 -0500 (Fri, 15 Feb 2008)
New Revision: 6111
Modified:
trunk/sandbox/ui/inplaceInput/src/main/config/component/inplaceinput.xml
trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
trunk/sandbox/ui/inplaceInput/src/main/templates/inplaceinput.jspx
Log:
vertical and horizontal position of controls bar
Modified: trunk/sandbox/ui/inplaceInput/src/main/config/component/inplaceinput.xml
===================================================================
--- trunk/sandbox/ui/inplaceInput/src/main/config/component/inplaceinput.xml 2008-02-15 13:43:42 UTC (rev 6110)
+++ trunk/sandbox/ui/inplaceInput/src/main/config/component/inplaceinput.xml 2008-02-15 13:53:51 UTC (rev 6111)
@@ -76,13 +76,13 @@
<property>
<name>controlsPosition</name>
<classname>java.lang.String</classname>
- <defaultvalue><![CDATA["right"]]></defaultvalue>
+ <defaultvalue><![CDATA["center"]]></defaultvalue>
</property>
<property>
<name>controlsHorizontalAlign</name>
<classname>java.lang.String</classname>
- <defaultvalue><![CDATA["left"]]></defaultvalue>
+ <defaultvalue><![CDATA["right"]]></defaultvalue>
</property>
<property>
Modified: trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
===================================================================
--- trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-02-15 13:43:42 UTC (rev 6110)
+++ trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-02-15 13:53:51 UTC (rev 6111)
@@ -25,7 +25,7 @@
if (this.attributes.showControls) {
this.bar = new Richfaces.InplaceInputBar(barParams[0], barParams[1], barParams[2], barParams[3],
- this.attributes.controlsPosition);
+ this.attributes.verticalPosition, this.attributes.horizontalPosition);
}
this.initHandlers();
this.initEvents();
@@ -297,13 +297,14 @@
Richfaces.InplaceInputBar = Class.create();
Richfaces.InplaceInputBar.prototype = {
- initialize : function(barId, okId, cancelId, buttonsPanelId, position) {
+ initialize : function(barId, okId, cancelId, buttonsPanelId, verticalPosition, horizontalPosition) {
this.bar = $(barId);
this.ok = $(okId);
this.cancel = $(cancelId);
this.bsPanel = $(buttonsPanelId);
- this.position = position;
+ this.verticalPosition = verticalPosition;
+ this.horizontalPosition = horizontalPosition;
this.initDimensions();
},
@@ -332,23 +333,35 @@
positioning : function(inpWidth, inpHeight) {
this.bar.style.position = "absolute";
var bs = this.bar.style;
- switch (this.position) {
- case "top" :
+
+ if (this.verticalPosition == "top" || this.verticalPosition == "bottom") {
+ switch (this.horizontalPosition) {
+ case "left" :
+ bs.left = "0px";
+ break;
+ case "right" :
+ bs.left = inpWidth + "px";
+ break;
+ case "center" :
+ bs.left = parseInt(inpWidth/2 - this.BAR_WIDTH/2) + "px";
+ break;
+ }
+
+ if (this.verticalPosition == "top") {
bs.top = -this.BAR_HEIGHT + "px";
- bs.left = "0px";
- break;
- case "bottom" :
+ } else {
bs.top = inpHeight + "px";
- bs.left = "0px";
- break;
- case "left" :
- bs.top = "0px";
- bs.left = -this.BAR_WIDTH + "px";
- break;
- case "right" :
- bs.top = "0px";
- bs.left = inpWidth + "px";
- break;
+ }
+ } else if (this.verticalPosition == "center") {
+ bs.top = "0px";
+ switch (this.horizontalPosition) {
+ case "left" :
+ bs.left = -this.BAR_WIDTH + "px";
+ break;
+ case "right" :
+ bs.left = inpWidth + "px";
+ break;
+ }
}
}
Modified: trunk/sandbox/ui/inplaceInput/src/main/templates/inplaceinput.jspx
===================================================================
--- trunk/sandbox/ui/inplaceInput/src/main/templates/inplaceinput.jspx 2008-02-15 13:43:42 UTC (rev 6110)
+++ trunk/sandbox/ui/inplaceInput/src/main/templates/inplaceinput.jspx 2008-02-15 13:53:51 UTC (rev 6111)
@@ -128,7 +128,8 @@
applyFromControlsOnly : #{component.attributes["applyFromControlsOnly"]},
editEvent : '#{component.attributes["editEvent"]}',
selectOnEdit : #{component.attributes["selectOnEdit"]},
- controlsPosition : '#{component.attributes["controlsPosition"]}',
+ verticalPosition : '#{component.attributes["controlsPosition"]}',
+ horizontalPosition : '#{component.attributes["controlsHorizontalAlign"]}',
inputWidth : '#{component.attributes["inputWidth"]}',
inputMinWidth : '#{component.attributes["inputMinWidth"]}',
inputMaxWidth : '#{component.attributes["inputMaxWidth"]}'
18 years, 2 months
JBoss Rich Faces SVN: r6110 - trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2008-02-15 08:43:42 -0500 (Fri, 15 Feb 2008)
New Revision: 6110
Modified:
trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
Log:
http://jira.jboss.com/jira/browse/RF-2264
Modified: trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
===================================================================
--- trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2008-02-15 12:30:06 UTC (rev 6109)
+++ trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2008-02-15 13:43:42 UTC (rev 6110)
@@ -833,6 +833,11 @@
setStateInput: function(e) {
var target = Event.element(e);
if (e && target) {
+ // Concret input but not entire form is a target element for onsubmit in FF
+ while (target && !/^form$/i.test(target.tagName)) {
+ target = target.parentNode;
+ }
+
var input = document.createElement("input");
input.type = "hidden";
input.id = this.id.id + "OpenedState";
18 years, 2 months
JBoss Rich Faces SVN: r6109 - in trunk/sandbox/ui/inplaceInput/src/main: resources/org/richfaces/renderkit/html/scripts and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: vmolotkov
Date: 2008-02-15 07:30:06 -0500 (Fri, 15 Feb 2008)
New Revision: 6109
Modified:
trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/css/inplaceinput.xcss
trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
trunk/sandbox/ui/inplaceInput/src/main/templates/inplaceinput.jspx
Log:
strut spacer is added
Modified: trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/css/inplaceinput.xcss
===================================================================
--- trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/css/inplaceinput.xcss 2008-02-15 11:27:01 UTC (rev 6108)
+++ trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/css/inplaceinput.xcss 2008-02-15 12:30:06 UTC (rev 6109)
@@ -98,6 +98,7 @@
.is_edit_state{position : relative; width : 100px;}
.is_field{background : #FFF281; padding : 0px 0px 0px 3px; border : 0px; margin : 0px; width : 100px; position : absolute; top:0px; left : 0px;}
+ .is_strut{height : 1px}
.is_btn_set{ /*position : absolute; top:0px; left : 100px;*/ white-space : nowrap}
]]>
Modified: trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
===================================================================
--- trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-02-15 11:27:01 UTC (rev 6108)
+++ trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-02-15 12:30:06 UTC (rev 6109)
@@ -4,7 +4,7 @@
Richfaces.InplaceInput.prototype = {
- initialize: function(clientId, temValueKeepId, valueKeepId, tabberId, attributes, events, classes, barParams) {
+ initialize: function(clientId, temValueKeepId, valueKeepId, tabberId, strutId, attributes, events, classes, barParams) {
this.inplaceInput = $(clientId);
this.inplaceInput.component = this;
@@ -12,6 +12,7 @@
this.valueKeeper = $(valueKeepId);
this.attributes = attributes;
this.tabber = $(tabberId);
+ this.strut = $(strutId);
this.events = events;
this.classes = classes;
@@ -175,6 +176,8 @@
var inputSize = this.setInputWidth(textSize);
this.inplaceInput.className = this.classes.COMPONENT.EDITABLE;
+ this.strut.style.width = this.inplaceInput.offsetWidth + "px";
+ this.strut.show();
this.tempValueKeeper.show();
if (this.bar) {
@@ -192,6 +195,7 @@
this.createNewText(this.currentText);
this.inplaceInput.className = this.classes.COMPONENT.VIEW.NORMAL;
+ this.strut.hide();
},
startChangedState : function () {
@@ -199,6 +203,7 @@
this.createNewText(this.valueKeeper.value);
this.inplaceInput.className = this.classes.COMPONENT.CHANGED.NORMAL;
+ this.strut.hide();
},
/**
@@ -272,14 +277,14 @@
},
deleteViewArtifacts : function () {
- var text = this.inplaceInput.childNodes[4];
+ var text = this.inplaceInput.childNodes[5];
if (text) {
this.inplaceInput.removeChild(text);
}
},
getCurrentText : function() {
- return this.inplaceInput.childNodes[4];
+ return this.inplaceInput.childNodes[5];
},
createNewText : function(text) {
Modified: trunk/sandbox/ui/inplaceInput/src/main/templates/inplaceinput.jspx
===================================================================
--- trunk/sandbox/ui/inplaceInput/src/main/templates/inplaceinput.jspx 2008-02-15 11:27:01 UTC (rev 6108)
+++ trunk/sandbox/ui/inplaceInput/src/main/templates/inplaceinput.jspx 2008-02-15 12:30:06 UTC (rev 6109)
@@ -58,6 +58,7 @@
<span id="#{clientId}" class='rich-inplace rich-inplace-view #{component.attributes["styleClass"]}'>
<input id="#{clientId}tabber" type="button" value="" style="width: 1px; position: absolute; left: -32767px;" />
+ <img id="#{clientId}strut" src="#{spacer}" class="is_strut"/>
<input id='#{clientId}tempValue'
class='rich-inplace-field'
style='display:none;'
@@ -144,6 +145,6 @@
EDITABLE : 'rich-inplace rich-inplace-edit #{component.attributes["editClass"]}'}
};
- var inplaceInput = new Richfaces.InplaceInput('#{clientId}', '#{clientId}tempValue', '#{clientId}value', '#{clientId}tabber', attributes, events, Richfaces.InplaceInput.CLASSES, ['#{clientId}bar', '#{clientId}ok', '#{clientId}cancel', '#{clientId}buttons']);
+ var inplaceInput = new Richfaces.InplaceInput('#{clientId}', '#{clientId}tempValue', '#{clientId}value', '#{clientId}tabber', '#{clientId}strut', attributes, events, Richfaces.InplaceInput.CLASSES, ['#{clientId}bar', '#{clientId}ok', '#{clientId}cancel', '#{clientId}buttons']);
</script>
</f:root>
\ No newline at end of file
18 years, 2 months
JBoss Rich Faces SVN: r6108 - trunk/ui/dataTable/src/main/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2008-02-15 06:27:01 -0500 (Fri, 15 Feb 2008)
New Revision: 6108
Modified:
trunk/ui/dataTable/src/main/java/org/richfaces/component/UIDataTable.java
Log:
http://jira.jboss.com/jira/browse/RF-1839
Modified: trunk/ui/dataTable/src/main/java/org/richfaces/component/UIDataTable.java
===================================================================
--- trunk/ui/dataTable/src/main/java/org/richfaces/component/UIDataTable.java 2008-02-15 09:43:47 UTC (rev 6107)
+++ trunk/ui/dataTable/src/main/java/org/richfaces/component/UIDataTable.java 2008-02-15 11:27:01 UTC (rev 6108)
@@ -108,11 +108,14 @@
.iterator(), isAjaxSupport));
+ // http://jira.jboss.com/jira/browse/RF-1839
+ // Append all column's children (facets have
+ // been processed with fixedChildren() already)
+ for (Iterator columns = columns(); columns.hasNext(); ) {
+ UIComponent column = (UIComponent) columns.next();
+ dataChildren.addIterator(column.getChildren().iterator());
+ }
- // Append all columns children.
- dataChildren.addIterator(columns());
-
-
// for (Iterator iter = columns(); iter.hasNext();) {
// UIComponent column = (UIComponent) iter.next();
// if (column.isRendered()) {
18 years, 2 months