JBoss Rich Faces SVN: r10225 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2008-08-28 10:58:50 -0400 (Thu, 28 Aug 2008)
New Revision: 10225
Modified:
trunk/docs/userguide/en/src/main/docbook/included/fileUpload.xml
trunk/docs/userguide/en/src/main/docbook/included/suggestionbox.xml
Log:
RF-2305 - described new functions for suggestionbox and fileUpload
Modified: trunk/docs/userguide/en/src/main/docbook/included/fileUpload.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/fileUpload.xml 2008-08-28 14:49:55 UTC (rev 10224)
+++ trunk/docs/userguide/en/src/main/docbook/included/fileUpload.xml 2008-08-28 14:58:50 UTC (rev 10225)
@@ -414,15 +414,15 @@
</itemizedlist>
</para>
- <!--
- There is a number of facets providing for this component:
- <emphasis>
- <property> "header"</property></emphasis>
-
- <emphasis>
- <property> "footer"</property></emphasis>
- <emphasis>
- <property> "label"</property></emphasis>. could be used to provide displaying the progress of uploading.
+ <!--
+ There is a number of facets providing for this component:
+ <emphasis>
+ <property> "header"</property></emphasis>
+
+ <emphasis>
+ <property> "footer"</property></emphasis>
+ <emphasis>
+ <property> "label"</property></emphasis>. could be used to provide displaying the progress of uploading.
-->
<para>
@@ -579,7 +579,6 @@
<code>RICH_FILE_UPLOAD_ENTRY_CANCEL_LABEL</code> there. </para>
- <para> </para>
<para> The <emphasis role="bold">
<property><rich:fileUpload></property>
@@ -651,14 +650,16 @@
uploaded. </entry>
</row>
- <!-- <row>
- <entry>
- getUploadItems()
- </entry>
- <entry>
-
- </entry>
- </row>-->
+ <row>
+ <entry> getUploadItems() </entry>
+ <entry> Returns the list of the uploaded
+ files. If several files were
+ uploaded the first element of
+ this list will be returned. If
+ one file was uploaded, the
+ list consisting of one file
+ will be returned </entry>
+ </row>
</tbody>
</tgroup>
@@ -1597,36 +1598,36 @@
</section>
</section>
-<!--para>In order to encode form around <emphasis role="bold">
- <property><rich:fileUpload></property>
- </emphasis> component you could confine this area by <emphasis role="bold">
- <property><h:form></property>
- </emphasis>/<emphasis role="bold">
- <property></h:form></property></emphasis> tags.
- </para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[...
- <h:form>
- <rich:fileUpload uploadData="#{bean.data}" addControlLabel="myLabel" autoclear="true" maxFilesQuantity="2" fileUploadListener="#{bean.listener}"
- acceptedTypes="html" immediateUpload="true"/>
- <a4j:commandLink style="font-weight: bold; width: 200px;" value="Show files uploaded:" reRender="files_list">
- <h:dataTable value="#{bean.fileList}" var="file" id="files_list" style="width: 500px">
- <h:column>
- <h:outputText value="#{file.fileName}"></h:outputText>
- </h:column>
- </h:dataTable>
- </h:form>
- ...]]></programlisting>
- <para>This is a result:</para>
- <figure>
- <title><emphasis role="bold">
- <property><rich:fileUpload></property>
- </emphasis>at server-side</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/fileUpload11.png"/>
- </imageobject>
- </mediaobject>
+<!--para>In order to encode form around <emphasis role="bold">
+ <property><rich:fileUpload></property>
+ </emphasis> component you could confine this area by <emphasis role="bold">
+ <property><h:form></property>
+ </emphasis>/<emphasis role="bold">
+ <property></h:form></property></emphasis> tags.
+ </para>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+ <h:form>
+ <rich:fileUpload uploadData="#{bean.data}" addControlLabel="myLabel" autoclear="true" maxFilesQuantity="2" fileUploadListener="#{bean.listener}"
+ acceptedTypes="html" immediateUpload="true"/>
+ <a4j:commandLink style="font-weight: bold; width: 200px;" value="Show files uploaded:" reRender="files_list">
+ <h:dataTable value="#{bean.fileList}" var="file" id="files_list" style="width: 500px">
+ <h:column>
+ <h:outputText value="#{file.fileName}"></h:outputText>
+ </h:column>
+ </h:dataTable>
+ </h:form>
+ ...]]></programlisting>
+ <para>This is a result:</para>
+ <figure>
+ <title><emphasis role="bold">
+ <property><rich:fileUpload></property>
+ </emphasis>at server-side</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/fileUpload11.png"/>
+ </imageobject>
+ </mediaobject>
</figure-->
Modified: trunk/docs/userguide/en/src/main/docbook/included/suggestionbox.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/suggestionbox.xml 2008-08-28 14:49:55 UTC (rev 10224)
+++ trunk/docs/userguide/en/src/main/docbook/included/suggestionbox.xml 2008-08-28 14:58:50 UTC (rev 10225)
@@ -249,8 +249,38 @@
you can find example of getting additional properties.
</para>
</section>
-
<section>
+ <title>JavaScript API</title>
+ <table>
+ <title>JavaScript API</title>
+
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Function</entry>
+
+ <entry>Description</entry>
+ </row>
+ </thead>
+
+ <tbody>
+
+ <row>
+ <entry>callSuggestion()</entry>
+ <entry>Calls the suggestion. If the "ignoreMinChars" value is "true" then the number of symbols to send a query is no longer actual for callSuggestion()</entry>
+ </row>
+
+ <row>
+ <entry>getSelectedItems()</entry>
+ <entry>Returns the array of objects</entry>
+ </row>
+
+ </tbody>
+ </tgroup>
+ </table>
+</section>
+
+ <section>
<title>Look-and-Feel Customization</title>
<para>For skinnability implementation, the components use a <emphasis>
16 years, 3 months
JBoss Rich Faces SVN: r10224 - in trunk/ui/inplaceInput/src/main: java/org/richfaces/renderkit and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-08-28 10:49:55 -0400 (Thu, 28 Aug 2008)
New Revision: 10224
Modified:
trunk/ui/inplaceInput/src/main/config/component/inplaceinput.xml
trunk/ui/inplaceInput/src/main/java/org/richfaces/renderkit/InplaceInputBaseRenderer.java
trunk/ui/inplaceInput/src/main/templates/inplaceinput.jspx
Log:
https://jira.jboss.org/jira/browse/RF-4243
Modified: trunk/ui/inplaceInput/src/main/config/component/inplaceinput.xml
===================================================================
--- trunk/ui/inplaceInput/src/main/config/component/inplaceinput.xml 2008-08-28 14:14:59 UTC (rev 10223)
+++ trunk/ui/inplaceInput/src/main/config/component/inplaceinput.xml 2008-08-28 14:49:55 UTC (rev 10224)
@@ -60,7 +60,7 @@
<name>defaultLabel</name>
<classname>java.lang.String</classname>
<description>The attribute is used to display text while value is undefined</description>
- <defaultvalue>"\u00a0\u00a0\u00a0"</defaultvalue>
+ <defaultvalue>""</defaultvalue>
</property>
<property>
<name>showControls</name>
Modified: trunk/ui/inplaceInput/src/main/java/org/richfaces/renderkit/InplaceInputBaseRenderer.java
===================================================================
--- trunk/ui/inplaceInput/src/main/java/org/richfaces/renderkit/InplaceInputBaseRenderer.java 2008-08-28 14:14:59 UTC (rev 10223)
+++ trunk/ui/inplaceInput/src/main/java/org/richfaces/renderkit/InplaceInputBaseRenderer.java 2008-08-28 14:49:55 UTC (rev 10224)
@@ -158,7 +158,7 @@
String defaultLabel = (String)component.getAttributes().get("defaultLabel");
- if (defaultLabel == null || defaultLabel.length() == 0) {
+ if (defaultLabel == null || defaultLabel.trim().equals("")) {
defaultLabel = EMPTY_DEFAULT_LABEL;
}
Modified: trunk/ui/inplaceInput/src/main/templates/inplaceinput.jspx
===================================================================
--- trunk/ui/inplaceInput/src/main/templates/inplaceinput.jspx 2008-08-28 14:14:59 UTC (rev 10223)
+++ trunk/ui/inplaceInput/src/main/templates/inplaceinput.jspx 2008-08-28 14:49:55 UTC (rev 10224)
@@ -26,17 +26,16 @@
<f:clientid var="clientId" />
<jsp:scriptlet>
<![CDATA[
- Object value = component.getSubmittedValue();
+ String value = (String)component.getSubmittedValue();
if (value == null) {
- value = component.getValue();
- value = getConvertedStringValue(context, component,value);
+ value = getConvertedStringValue(context, component,component.getValue());
}
- Object fieldValue = value;
- if (value == null || value.equals("")) {
+ String fieldValue = value;
+ if (value == null || value.trim().equals("")) {
fieldValue = "";
String defaultValue = (String)component.getAttributes().get("defaultLabel");
- if(defaultValue == null || defaultValue.equals("")) {
+ if(defaultValue == null || defaultValue.trim().equals("")) {
defaultValue = "\u00a0\u00a0\u00a0";
}
value = defaultValue;
16 years, 3 months
JBoss Rich Faces SVN: r10223 - trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-08-28 10:14:59 -0400 (Thu, 28 Aug 2008)
New Revision: 10223
Modified:
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
Log:
extendedDataTable sample
Modified: trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
===================================================================
--- trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2008-08-28 14:14:50 UTC (rev 10222)
+++ trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2008-08-28 14:14:59 UTC (rev 10223)
@@ -88,3 +88,4 @@
beanValidator=richValidators, \t Bean Validator, \t\t/images/ico_BeanValidator.gif, \t\t/images/cn_BeanValidator.gif, beanValidator.html, jbossrichfaces/freezone/docs/tlddoc/rich/beanValidator.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIhotkey.html, \t\t\t\t\t/richfaces/beanValidator.jsf
graphValidator=richValidators, \t Graph Validator, \t\t/images/ico_GraphValidator.gif, \t\t/images/cn_GraphValidator.gif, graphValidator.html, jbossrichfaces/freezone/docs/tlddoc/rich/graphValidator.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIhotkey.html, \t\t\t\t\t/richfaces/graphValidator.jsf
stateAPI=richMisc, \t State Manager API, \t\t/images/ico_StateManagerAPI.gif, \t\t/images/cn_StateManagerAPI.gif, ArchitectureOverview.html\#statemanagerapi, jbossrichfaces/freezone/docs/tlddoc/rich/graphValidator.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIhotkey.html, \t\t\t\t\t/richfaces/stateAPI.jsf
+extendedDataTable= richDataIterators, Extended DataTable, /images/ico_extendedDataTable.gif, /images/cn_extendedDataTable.gif, extendedDataTable.html, jbossrichfaces/freezone/docs/tlddoc/rich/dataTable.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIDataTable.html, /richfaces/extendedDataTable.jsf
16 years, 3 months
JBoss Rich Faces SVN: r10222 - trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-08-28 10:14:50 -0400 (Thu, 28 Aug 2008)
New Revision: 10222
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/usage.xhtml
Log:
sourcepath fixes
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/usage.xhtml 2008-08-28 14:13:37 UTC (rev 10221)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/usage.xhtml 2008-08-28 14:14:50 UTC (rev 10222)
@@ -44,7 +44,7 @@
<ui:include src="/templates/include/sourceview.xhtml">
<ui:param name="openlabel" value="Validation Bean Code" />
<ui:param name="sourcetype" value="java" />
- <ui:param name="sourcepath" value="/richfaces/beanValidator/snippets/validationBean.java"/>
+ <ui:param name="sourcepath" value="/WEB-INF/src/org/richfaces/demo/validation/ValidationBean.java" />
</ui:include>
</div>
</fieldset>
16 years, 3 months
JBoss Rich Faces SVN: r10221 - trunk/samples/richfaces-demo/src/main/webapp/WEB-INF.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-08-28 10:13:37 -0400 (Thu, 28 Aug 2008)
New Revision: 10221
Modified:
trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml
Log:
extendedDataTable sample
Modified: trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml 2008-08-28 14:12:19 UTC (rev 10220)
+++ trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml 2008-08-28 14:13:37 UTC (rev 10221)
@@ -398,6 +398,11 @@
<managed-bean-class>org.richfaces.demo.calendar.modelImpl.CalendarDataModelImpl</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
+ <managed-bean>
+ <managed-bean-name>extendedTableBean</managed-bean-name>
+ <managed-bean-class>org.richfaces.demo.extendedDataTable.ExtendedTableBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
<navigation-rule>
<from-view-id>/richfaces/include/examples/wstep1.xhtml</from-view-id>
<navigation-case>
16 years, 3 months
JBoss Rich Faces SVN: r10220 - in trunk/samples/richfaces-demo/src/main: java/org/richfaces/demo/extendedDataTable and 7 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-08-28 10:12:19 -0400 (Thu, 28 Aug 2008)
New Revision: 10220
Added:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/extendedDataTable/
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/extendedDataTable/ExtendedTableBean.java
trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator/snippets/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator/snippets/ValidationBean.java
trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar/snippets/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar/snippets/CalendarDataModelImpl.java
trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar/snippets/CalendarDataModelItemImpl.java
trunk/samples/richfaces-demo/src/main/webapp/richfaces/extendedDataTable.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/extendedDataTable/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/extendedDataTable/examples/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/extendedDataTable/examples/simple.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/extendedDataTable/usage.xhtml
Log:
extendedDataTable sample
Added: trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/extendedDataTable/ExtendedTableBean.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/extendedDataTable/ExtendedTableBean.java (rev 0)
+++ trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/extendedDataTable/ExtendedTableBean.java 2008-08-28 14:12:19 UTC (rev 10220)
@@ -0,0 +1,32 @@
+/**
+ *
+ */
+package org.richfaces.demo.extendedDataTable;
+
+/**
+ * @author Ilya Shaikovsky
+ *
+ */
+public class ExtendedTableBean {
+ private String sortMode="single";
+ private String selectionMode="multi";
+
+ public String getSortMode() {
+ return sortMode;
+ }
+
+ public void setSortMode(String sortMode) {
+ this.sortMode = sortMode;
+ }
+
+ public String getSelectionMode() {
+ return selectionMode;
+ }
+
+ public void setSelectionMode(String selectionMode) {
+ this.selectionMode = selectionMode;
+ }
+
+ public ExtendedTableBean() {
+ }
+}
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator/snippets/ValidationBean.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator/snippets/ValidationBean.java (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator/snippets/ValidationBean.java 2008-08-28 14:12:19 UTC (rev 10220)
@@ -0,0 +1,69 @@
+/**
+ *
+ */
+package org.richfaces.demo.validation;
+
+import org.hibernate.validator.Email;
+import org.hibernate.validator.Length;
+import org.hibernate.validator.Max;
+import org.hibernate.validator.Min;
+import org.hibernate.validator.NotEmpty;
+import org.hibernate.validator.NotNull;
+
+/**
+ * @author Ilya Shaikovsky
+ *
+ */
+public class ValidationBean {
+
+ private String progressString="Fill the form please";
+
+ @NotEmpty
+ @Length(min=3,max=12)
+ private String name;
+ @Email
+ @NotEmpty
+ private String email;
+ @NotNull
+ @Min(18)
+ @Max(100)
+ private int age;
+
+ public ValidationBean() {
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getEmail() {
+ return email;
+ }
+
+ public void setEmail(String email) {
+ this.email = email;
+ }
+
+ public int getAge() {
+ return age;
+ }
+
+ public void setAge(int age) {
+ this.age = age;
+ }
+ public void success() {
+ setProgressString(getProgressString() + "(Strored successfully)");
+ }
+
+ public String getProgressString() {
+ return progressString;
+ }
+
+ public void setProgressString(String progressString) {
+ this.progressString = progressString;
+ }
+}
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar/snippets/CalendarDataModelImpl.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar/snippets/CalendarDataModelImpl.java (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar/snippets/CalendarDataModelImpl.java 2008-08-28 14:12:19 UTC (rev 10220)
@@ -0,0 +1,187 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.richfaces.demo.calendar.modelImpl;
+
+import java.util.Calendar;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.Map;
+
+import javax.faces.event.ValueChangeEvent;
+
+import org.richfaces.model.CalendarDataModel;
+import org.richfaces.model.CalendarDataModelItem;
+
+/**
+ * @author Ilya Shaikovsky
+ *
+ */
+public class CalendarDataModelImpl implements CalendarDataModel {
+
+ /* (non-Javadoc)
+ * @see org.richfaces.component.CalendarDataModel#getData(java.util.Date[])
+ */
+
+ private CalendarDataModelItem[] items;
+
+ private String currentDescription;
+ private String currentShortDescription;
+ private Date currentDate;
+ private boolean currentDisabled;
+
+
+ /* (non-Javadoc)
+ * @see org.richfaces.model.CalendarDataModel#getData(java.util.Date[])
+ */
+ public CalendarDataModelItem[] getData(Date[] dateArray) {
+ if (dateArray == null) {
+ return null;
+ }
+ if (items==null) {
+ items = new CalendarDataModelItem[dateArray.length];
+ for (int i = 0; i < dateArray.length; i++) {
+ items[i] = createDataModelItem(dateArray[i]);
+ }
+ }
+ return items;
+ }
+
+ /**
+ * @param date
+ * @return CalendarDataModelItem for date
+ */
+ protected CalendarDataModelItem createDataModelItem(Date date) {
+ CalendarDataModelItemImpl item = new CalendarDataModelItemImpl();
+ Map data = new HashMap();
+ data.put("shortDescription", "Nothing planned");
+ data.put("description", "");
+ Calendar c = Calendar.getInstance();
+ c.setTime(date);
+ item.setDay(c.get(Calendar.DAY_OF_MONTH));
+ item.setEnabled(true);
+ item.setStyleClass("rel-hol");
+ item.setData(data);
+ return item;
+ }
+
+ /* (non-Javadoc)
+ * @see org.richfaces.model.CalendarDataModel#getToolTip(java.util.Date)
+ */
+ public Object getToolTip(Date date) {
+
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /**
+ * @return items
+ */
+ public CalendarDataModelItem[] getItems() {
+ return items;
+ }
+
+ /**
+ * @param setter for items
+ */
+ public void setItems(CalendarDataModelItem[] items) {
+ this.items = items;
+ }
+
+ /**
+ * @param valueChangeEvent handling
+ */
+ public void valueChanged(ValueChangeEvent event) {
+ System.out.println(event.getNewValue()+"selected");
+ setCurrentDate((Date)event.getNewValue());
+ Calendar calendar = Calendar.getInstance();
+ calendar.setTime(getCurrentDate());
+ setCurrentDescription((String)((HashMap)items[calendar.get(Calendar.DAY_OF_MONTH)-1].getData()).get("description"));
+ setCurrentShortDescription((String)((HashMap)items[calendar.get(Calendar.DAY_OF_MONTH)-1].getData()).get("shortDescription"));
+ }
+
+ /**
+ * Storing changes action
+ */
+ public void storeDayDetails() {
+ Calendar calendar = Calendar.getInstance();
+ calendar.setTime(getCurrentDate());
+ ((HashMap)items[calendar.get(Calendar.DAY_OF_MONTH)-1].getData()).put("shortDescription", getCurrentShortDescription());
+ ((HashMap)items[calendar.get(Calendar.DAY_OF_MONTH)-1].getData()).put("description", getCurrentDescription());
+ }
+
+ /**
+ * @return currentDescription
+ */
+ public String getCurrentDescription() {
+ return currentDescription;
+ }
+
+ /**
+ * @param currentDescription
+ */
+ public void setCurrentDescription(String currentDescription) {
+ this.currentDescription = currentDescription;
+ }
+
+ /**
+ * @return currentDisabled
+ */
+ public boolean isCurrentDisabled() {
+ return currentDisabled;
+ }
+
+ /**
+ * @param currentDisabled
+ */
+ public void setCurrentDisabled(boolean currentDisabled) {
+ this.currentDisabled = currentDisabled;
+ }
+
+ /**
+ * @return currentShortDescription
+ */
+ public String getCurrentShortDescription() {
+ return currentShortDescription;
+ }
+
+ /**
+ * @param currentShortDescription
+ */
+ public void setCurrentShortDescription(String currentShortDescription) {
+ this.currentShortDescription = currentShortDescription;
+ }
+
+ /**
+ * @return currentDate
+ */
+ public Date getCurrentDate() {
+ return currentDate;
+ }
+
+ /**
+ * @param currentDate
+ */
+ public void setCurrentDate(Date currentDate) {
+ this.currentDate = currentDate;
+ }
+
+}
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar/snippets/CalendarDataModelItemImpl.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar/snippets/CalendarDataModelItemImpl.java (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar/snippets/CalendarDataModelItemImpl.java 2008-08-28 14:12:19 UTC (rev 10220)
@@ -0,0 +1,111 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.richfaces.demo.calendar.modelImpl;
+
+import org.richfaces.model.CalendarDataModelItem;
+
+/**
+ * @author Nick Belaevski - mailto:nbelaevski@exadel.com
+ * created 04.07.2007
+ *
+ */
+public class CalendarDataModelItemImpl implements CalendarDataModelItem {
+
+ private Object data;
+ private String styleClass;
+ private Object toolTip;
+ private int day;
+ private boolean enabled = true;
+
+
+ public int getDay() {
+ return day;
+ }
+
+ public void setDay(int day) {
+ this.day = day;
+ }
+
+ /* (non-Javadoc)
+ * @see org.richfaces.component.CalendarDataModelItem#getData()
+ */
+ public Object getData() {
+ return data;
+ }
+
+ /* (non-Javadoc)
+ * @see org.richfaces.component.CalendarDataModelItem#getStyleClass()
+ */
+ public String getStyleClass() {
+ return styleClass;
+ }
+
+ /* (non-Javadoc)
+ * @see org.richfaces.component.CalendarDataModelItem#getToolTip()
+ */
+ public Object getToolTip() {
+ return toolTip;
+ }
+
+ /* (non-Javadoc)
+ * @see org.richfaces.component.CalendarDataModelItem#hasToolTip()
+ */
+ public boolean hasToolTip() {
+ return getToolTip() != null;
+ }
+
+ /* (non-Javadoc)
+ * @see org.richfaces.component.CalendarDataModelItem#isEnabled()
+ */
+ public boolean isEnabled() {
+ return enabled;
+ }
+
+ /**
+ * @param data the data to set
+ */
+ public void setData(Object data) {
+ this.data = data;
+ }
+
+ /**
+ * @param styleClass the styleClass to set
+ */
+ public void setStyleClass(String styleClass) {
+ this.styleClass = styleClass;
+ }
+
+ /**
+ * @param toolTip the toolTip to set
+ */
+ public void setToolTip(Object toolTip) {
+ this.toolTip = toolTip;
+ }
+
+ /**
+ * @param enabled the enabled to set
+ */
+ public void setEnabled(boolean enabled) {
+ this.enabled = enabled;
+ }
+
+}
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/extendedDataTable/examples/simple.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/extendedDataTable/examples/simple.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/extendedDataTable/examples/simple.xhtml 2008-08-28 14:12:19 UTC (rev 10220)
@@ -0,0 +1,61 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html 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">
+
+ <ui:composition>
+ <h:form>
+ <h:panelGrid columns="2">
+ <rich:extendedDataTable value="#{capitalsBean.capitals}" var="cap" id="table"
+ width="400px" height="400px" sortMode="#{extendedTableBean.sortMode}"
+ selectionMode="#{extendedTableBean.selectionMode}">
+ <rich:column sortable="false">
+ <f:facet name="header">
+ <h:outputText value="Flag"/>
+ </f:facet>
+ <h:graphicImage value="#{cap.stateFlag}"/>
+ </rich:column>
+ <rich:column sortable="true" sortBy="#{cap.state}">
+ <f:facet name="header">
+ <h:outputText value="State Name"/>
+ </f:facet>
+ <h:outputText value="#{cap.state}"/>
+ </rich:column>
+ <rich:column sortable="true" sortBy="#{cap.name}">
+ <f:facet name="header">
+ <h:outputText value="State Capital"/>
+ </f:facet>
+ <h:outputText value="#{cap.name}"/>
+ </rich:column>
+ <rich:column sortable="false">
+ <f:facet name="header">
+ <h:outputText value="Time Zone"/>
+ </f:facet>
+ <h:outputText value="#{cap.timeZone}"/>
+ </rich:column>
+ </rich:extendedDataTable>
+ <rich:panel>
+ <h:panelGrid columns="2">
+ <h:outputText value="Sort Mode:"/>
+ <h:selectOneMenu value="#{extendedTableBean.sortMode}">
+ <f:selectItem itemLabel="Single" itemValue="single"/>
+ <f:selectItem itemLabel="Multy" itemValue="multi"/>
+ <a4j:support event="onchange" ajaxSingle="true" reRender="table"/>
+ </h:selectOneMenu>
+ <h:outputText value="Selection Mode:"/>
+ <h:selectOneMenu value="#{extendedTableBean.selectionMode}">
+ <a4j:support ajaxSingle="true" event="onchange" reRender="table"/>
+ <f:selectItem itemLabel="Single" itemValue="single"/>
+ <f:selectItem itemLabel="Multy" itemValue="multi"/>
+ <f:selectItem itemLabel="None" itemValue="none"/>
+ </h:selectOneMenu>
+ </h:panelGrid>
+ </rich:panel>
+ </h:panelGrid>
+ </h:form>
+ </ui:composition>
+
+</html>
\ No newline at end of file
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/extendedDataTable/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/extendedDataTable/usage.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/extendedDataTable/usage.xhtml 2008-08-28 14:12:19 UTC (rev 10220)
@@ -0,0 +1,25 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html 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">
+ <ui:composition template="/templates/component-sample.xhtml">
+ <ui:define name="sample">
+ <p>Desc
+ </p>
+
+ <fieldset class="demo_fieldset">
+ <legend class="demo_legend">Extended DataTable example</legend>
+ <div class="sample-container">
+ <ui:include src="/richfaces/extendedDataTable/examples/simple.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/extendedDataTable/examples/simple.xhtml"/>
+ </ui:include>
+ </div>
+ </fieldset>
+ </ui:define>
+
+ </ui:composition>
+</html>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/extendedDataTable.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/extendedDataTable.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/extendedDataTable.xhtml 2008-08-28 14:12:19 UTC (rev 10220)
@@ -0,0 +1,13 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html 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:rich="http://richfaces.org/rich">
+<ui:composition template="/templates/main.xhtml">
+ <ui:define name="title">RichFaces - Open Source Rich JSF Components - Extended DataTable</ui:define>
+ <ui:define name="body">
+ <ui:include src="/templates/include/tab-panel.xhtml" />
+ </ui:define>
+</ui:composition>
+</html>
16 years, 3 months
JBoss Rich Faces SVN: r10219 - in trunk/test-applications/qa/Test Reports: 3.1.5 and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: tkuprevich
Date: 2008-08-28 10:08:49 -0400 (Thu, 28 Aug 2008)
New Revision: 10219
Added:
trunk/test-applications/qa/Test Reports/3.2.2/
trunk/test-applications/qa/Test Reports/3.2.2/ComponentsAssignment3.2.2.BETA1.xls
trunk/test-applications/qa/Test Reports/3.2.2/ComponentsAssignment3.2.2.BETA2.xls
trunk/test-applications/qa/Test Reports/3.2.2/ComponentsAssignment3.2.2.BETA3.xls
trunk/test-applications/qa/Test Reports/3.2.2/ComponentsAssignment3.2.2.BETA4.xls
trunk/test-applications/qa/Test Reports/3.2.2/ComponentsAssignment3.2.2.BETA5.xls
Modified:
trunk/test-applications/qa/Test Reports/3.1.5/DailyReportCR1tkuprevich.xls
Log:
Modified: trunk/test-applications/qa/Test Reports/3.1.5/DailyReportCR1tkuprevich.xls
===================================================================
(Binary files differ)
Added: trunk/test-applications/qa/Test Reports/3.2.2/ComponentsAssignment3.2.2.BETA1.xls
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/qa/Test Reports/3.2.2/ComponentsAssignment3.2.2.BETA1.xls
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/qa/Test Reports/3.2.2/ComponentsAssignment3.2.2.BETA2.xls
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/qa/Test Reports/3.2.2/ComponentsAssignment3.2.2.BETA2.xls
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/qa/Test Reports/3.2.2/ComponentsAssignment3.2.2.BETA3.xls
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/qa/Test Reports/3.2.2/ComponentsAssignment3.2.2.BETA3.xls
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/qa/Test Reports/3.2.2/ComponentsAssignment3.2.2.BETA4.xls
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/qa/Test Reports/3.2.2/ComponentsAssignment3.2.2.BETA4.xls
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/qa/Test Reports/3.2.2/ComponentsAssignment3.2.2.BETA5.xls
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/qa/Test Reports/3.2.2/ComponentsAssignment3.2.2.BETA5.xls
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
16 years, 3 months
JBoss Rich Faces SVN: r10218 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2008-08-28 08:27:58 -0400 (Thu, 28 Aug 2008)
New Revision: 10218
Modified:
trunk/docs/userguide/en/src/main/docbook/included/extendedDataTable.xml
Log:
RF-4131:extendedDataTable-Documenting
Modified: trunk/docs/userguide/en/src/main/docbook/included/extendedDataTable.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/extendedDataTable.xml 2008-08-28 12:19:12 UTC (rev 10217)
+++ trunk/docs/userguide/en/src/main/docbook/included/extendedDataTable.xml 2008-08-28 12:27:58 UTC (rev 10218)
@@ -5,7 +5,7 @@
]
>
-<section>
+<section role="new">
<sectioninfo>
<keywordset>
<keyword>table</keyword>
@@ -207,7 +207,7 @@
<mediaobject>
<imageobject>
<imagedata
- fileref="images/extendedDataTable_4.png"
+ fileref="images/extendedDataTable_init4.png"
width="75%"/>
</imageobject>
</mediaobject>
@@ -236,7 +236,7 @@
<mediaobject>
<imageobject>
<imagedata
- fileref="images/extendedDataTable_5.png"
+ fileref="images/extendedDataTable_init5.png"
width="75%"/>
</imageobject>
</mediaobject>
@@ -253,7 +253,7 @@
<mediaobject>
<imageobject>
<imagedata
- fileref="images/extendedDataTable_6.png"
+ fileref="images/extendedDataTable_init6.png"
width="75%"/>
</imageobject>
</mediaobject>
16 years, 3 months
JBoss Rich Faces SVN: r10217 - trunk/docs/userguide/en/src/main/resources/images.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2008-08-28 08:19:12 -0400 (Thu, 28 Aug 2008)
New Revision: 10217
Removed:
trunk/docs/userguide/en/src/main/resources/images/extendedDataTable_DD.png
trunk/docs/userguide/en/src/main/resources/images/extendedDataTable_actions.png
trunk/docs/userguide/en/src/main/resources/images/extendedDataTable_grouped.png
trunk/docs/userguide/en/src/main/resources/images/extendedDataTable_hideCol.png
trunk/docs/userguide/en/src/main/resources/images/extendedDataTable_multiselect.png
Log:
Deleted: trunk/docs/userguide/en/src/main/resources/images/extendedDataTable_DD.png
===================================================================
(Binary files differ)
Deleted: trunk/docs/userguide/en/src/main/resources/images/extendedDataTable_actions.png
===================================================================
(Binary files differ)
Deleted: trunk/docs/userguide/en/src/main/resources/images/extendedDataTable_grouped.png
===================================================================
(Binary files differ)
Deleted: trunk/docs/userguide/en/src/main/resources/images/extendedDataTable_hideCol.png
===================================================================
(Binary files differ)
Deleted: trunk/docs/userguide/en/src/main/resources/images/extendedDataTable_multiselect.png
===================================================================
(Binary files differ)
16 years, 3 months
JBoss Rich Faces SVN: r10216 - Plan and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: tkuprevich
Date: 2008-08-28 07:06:58 -0400 (Thu, 28 Aug 2008)
New Revision: 10216
Removed:
trunk/test-applications/qa/Test Plan/ComponentsAssignment3.2.2.BETA1.xls
trunk/test-applications/qa/Test Plan/ComponentsAssignment3.2.2.BETA2.xls
trunk/test-applications/qa/Test Plan/ComponentsAssignment3.2.2.BETA3.xls
trunk/test-applications/qa/Test Plan/ComponentsAssignment3.2.2.BETA4.xls
trunk/test-applications/qa/Test Plan/ComponentsAssignment3.2.2.BETA5.xls
Log:
Deleted: trunk/test-applications/qa/Test Plan/ComponentsAssignment3.2.2.BETA1.xls
===================================================================
(Binary files differ)
Deleted: trunk/test-applications/qa/Test Plan/ComponentsAssignment3.2.2.BETA2.xls
===================================================================
(Binary files differ)
Deleted: trunk/test-applications/qa/Test Plan/ComponentsAssignment3.2.2.BETA3.xls
===================================================================
(Binary files differ)
Deleted: trunk/test-applications/qa/Test Plan/ComponentsAssignment3.2.2.BETA4.xls
===================================================================
(Binary files differ)
Deleted: trunk/test-applications/qa/Test Plan/ComponentsAssignment3.2.2.BETA5.xls
===================================================================
(Binary files differ)
16 years, 3 months