JBoss Rich Faces SVN: r6187 - trunk/framework/api/src/main/java/org/richfaces/event.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2008-02-20 04:48:22 -0500 (Wed, 20 Feb 2008)
New Revision: 6187
Modified:
trunk/framework/api/src/main/java/org/richfaces/event/UploadEvent.java
Log:
changed file type in UploadEvent.
Modified: trunk/framework/api/src/main/java/org/richfaces/event/UploadEvent.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/event/UploadEvent.java 2008-02-20 08:11:11 UTC (rev 6186)
+++ trunk/framework/api/src/main/java/org/richfaces/event/UploadEvent.java 2008-02-20 09:48:22 UTC (rev 6187)
@@ -1,5 +1,26 @@
+/**
+ * License Agreement.
+ *
+ * JBoss RichFaces - Ajax4jsf Component Library
+ *
+ * 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.event;
+import java.io.File;
import java.io.InputStream;
import javax.faces.component.UIComponent;
import javax.faces.event.FacesEvent;
@@ -9,9 +30,9 @@
private static final long serialVersionUID = -7645197191376210068L;
- private InputStream file = null;
+ private File file = null;
- public UploadEvent(UIComponent component, InputStream file) {
+ public UploadEvent(UIComponent component, File file) {
super(component);
this.file = file;
}
@@ -27,7 +48,7 @@
}
- public InputStream getFile() {
+ public File getFile() {
return file;
}
18 years, 2 months
JBoss Rich Faces SVN: r6186 - trunk/framework/api/src/main/java/org/richfaces/event.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2008-02-20 03:11:11 -0500 (Wed, 20 Feb 2008)
New Revision: 6186
Added:
trunk/framework/api/src/main/java/org/richfaces/event/FileUploadListener.java
trunk/framework/api/src/main/java/org/richfaces/event/UploadEvent.java
Log:
fileUploadListener and UploadEvent were added
Added: trunk/framework/api/src/main/java/org/richfaces/event/FileUploadListener.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/event/FileUploadListener.java (rev 0)
+++ trunk/framework/api/src/main/java/org/richfaces/event/FileUploadListener.java 2008-02-20 08:11:11 UTC (rev 6186)
@@ -0,0 +1,29 @@
+/**
+ * License Agreement.
+ *
+ * JBoss RichFaces - Ajax4jsf Component Library
+ *
+ * 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.event;
+
+import javax.faces.event.FacesListener;
+
+public interface FileUploadListener extends FacesListener {
+
+ public void processUpload(UploadEvent event);
+}
Property changes on: trunk/framework/api/src/main/java/org/richfaces/event/FileUploadListener.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Added: trunk/framework/api/src/main/java/org/richfaces/event/UploadEvent.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/event/UploadEvent.java (rev 0)
+++ trunk/framework/api/src/main/java/org/richfaces/event/UploadEvent.java 2008-02-20 08:11:11 UTC (rev 6186)
@@ -0,0 +1,34 @@
+package org.richfaces.event;
+
+import java.io.InputStream;
+import javax.faces.component.UIComponent;
+import javax.faces.event.FacesEvent;
+import javax.faces.event.FacesListener;
+
+public class UploadEvent extends FacesEvent{
+
+
+ private static final long serialVersionUID = -7645197191376210068L;
+ private InputStream file = null;
+
+ public UploadEvent(UIComponent component, InputStream file) {
+ super(component);
+ this.file = file;
+ }
+
+
+ public boolean isAppropriateListener(FacesListener listener) {
+ return false;
+ }
+
+
+ public void processListener(FacesListener listener) {
+
+ }
+
+
+ public InputStream getFile() {
+ return file;
+ }
+
+}
Property changes on: trunk/framework/api/src/main/java/org/richfaces/event/UploadEvent.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
18 years, 2 months
JBoss Rich Faces SVN: r6185 - in trunk/sandbox: ui and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-02-19 15:34:50 -0500 (Tue, 19 Feb 2008)
New Revision: 6185
Modified:
trunk/sandbox/samples/pom.xml
trunk/sandbox/ui/pom.xml
Log:
reverted changes from r6183
Modified: trunk/sandbox/samples/pom.xml
===================================================================
--- trunk/sandbox/samples/pom.xml 2008-02-19 20:08:55 UTC (rev 6184)
+++ trunk/sandbox/samples/pom.xml 2008-02-19 20:34:50 UTC (rev 6185)
@@ -20,6 +20,6 @@
<module>fileUploadDemo</module>
<module>sortingFilteringDemo</module>
<module>inplaceInput-sample</module>
- <!--module>inplaceSelect-sample</module-->
+ <module>inplaceSelect-sample</module>
</modules>
</project>
\ No newline at end of file
Modified: trunk/sandbox/ui/pom.xml
===================================================================
--- trunk/sandbox/ui/pom.xml 2008-02-19 20:08:55 UTC (rev 6184)
+++ trunk/sandbox/ui/pom.xml 2008-02-19 20:34:50 UTC (rev 6185)
@@ -21,6 +21,6 @@
<module>sortableHeader</module>
<module>fileUpload</module>
<module>inplaceInput</module>
- <!--module>inplaceSelect</module-->
+ <module>inplaceSelect</module>
</modules>
</project>
\ No newline at end of file
18 years, 2 months
JBoss Rich Faces SVN: r6184 - branches/3.1.x/ui/contextMenu/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: alexsmirnov
Date: 2008-02-19 15:08:55 -0500 (Tue, 19 Feb 2008)
New Revision: 6184
Modified:
branches/3.1.x/ui/contextMenu/src/main/config/component/contextMenu.xml
Log:
Fix name for grnerated component class
Modified: branches/3.1.x/ui/contextMenu/src/main/config/component/contextMenu.xml
===================================================================
--- branches/3.1.x/ui/contextMenu/src/main/config/component/contextMenu.xml 2008-02-19 20:07:37 UTC (rev 6183)
+++ branches/3.1.x/ui/contextMenu/src/main/config/component/contextMenu.xml 2008-02-19 20:08:55 UTC (rev 6184)
@@ -4,7 +4,7 @@
<component>
<name>org.richfaces.ContextMenu</name>
<family>org.richfaces.ContextMenu</family>
- <classname>org.richfaces.component.html.ContextMenu</classname>
+ <classname>org.richfaces.component.html.HtmlContextMenu</classname>
<superclass>org.richfaces.component.UIContextMenu</superclass>
<description>
<![CDATA[ ]]>
18 years, 2 months
JBoss Rich Faces SVN: r6183 - in trunk/sandbox: ui and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-02-19 15:07:37 -0500 (Tue, 19 Feb 2008)
New Revision: 6183
Modified:
trunk/sandbox/samples/pom.xml
trunk/sandbox/ui/pom.xml
Log:
inplace select removed from common build
Modified: trunk/sandbox/samples/pom.xml
===================================================================
--- trunk/sandbox/samples/pom.xml 2008-02-19 20:00:31 UTC (rev 6182)
+++ trunk/sandbox/samples/pom.xml 2008-02-19 20:07:37 UTC (rev 6183)
@@ -20,6 +20,6 @@
<module>fileUploadDemo</module>
<module>sortingFilteringDemo</module>
<module>inplaceInput-sample</module>
- <module>inplaceSelect-sample</module>
+ <!--module>inplaceSelect-sample</module-->
</modules>
</project>
\ No newline at end of file
Modified: trunk/sandbox/ui/pom.xml
===================================================================
--- trunk/sandbox/ui/pom.xml 2008-02-19 20:00:31 UTC (rev 6182)
+++ trunk/sandbox/ui/pom.xml 2008-02-19 20:07:37 UTC (rev 6183)
@@ -21,6 +21,6 @@
<module>sortableHeader</module>
<module>fileUpload</module>
<module>inplaceInput</module>
- <module>inplaceSelect</module>
+ <!--module>inplaceSelect</module-->
</modules>
</project>
\ No newline at end of file
18 years, 2 months
JBoss Rich Faces SVN: r6182 - trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-02-19 15:00:31 -0500 (Tue, 19 Feb 2008)
New Revision: 6182
Modified:
trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/FileUploadRendererBase.java
Log:
excess import removed
Modified: trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/FileUploadRendererBase.java
===================================================================
--- trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/FileUploadRendererBase.java 2008-02-19 18:32:51 UTC (rev 6181)
+++ trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/FileUploadRendererBase.java 2008-02-19 20:00:31 UTC (rev 6182)
@@ -25,8 +25,6 @@
import org.richfaces.org.jboss.seam.web.MultipartRequest;
import org.richfaces.renderkit.TemplateEncoderRendererBase;
-import com.sun.faces.context.FacesContextImpl;
-
/**
* Class provides base renderer for upload file component
*
18 years, 2 months
JBoss Rich Faces SVN: r6181 - in trunk/docs/userguide/en/src/main: resources/images and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: vsukhov
Date: 2008-02-19 13:32:51 -0500 (Tue, 19 Feb 2008)
New Revision: 6181
Added:
trunk/docs/userguide/en/src/main/resources/images/pickList2.png
trunk/docs/userguide/en/src/main/resources/images/pickListClass.png
trunk/docs/userguide/en/src/main/resources/images/pickListStyle.png
Modified:
trunk/docs/userguide/en/src/main/docbook/included/pickList.xml
Log:
http://jira.jboss.com/jira/browse/RF-2174 Done screenshots and added code samples for pickList.
Modified: trunk/docs/userguide/en/src/main/docbook/included/pickList.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/pickList.xml 2008-02-19 18:03:16 UTC (rev 6180)
+++ trunk/docs/userguide/en/src/main/docbook/included/pickList.xml 2008-02-19 18:32:51 UTC (rev 6181)
@@ -549,18 +549,18 @@
<para>On the screenshot there are classes names that define styles for component elements.</para>
- <!--figure>
+ <figure>
<title>Classes names</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/orderingList_classes_1.png"/>
+ <imagedata fileref="images/pickList2.png"/>
</imageobject>
</mediaobject>
- </figure-->
+ </figure>
- <table >
+ <table id="pickListC">
<title>Classes names that define a list representation</title>
<tgroup cols="2">
<thead>
@@ -572,11 +572,11 @@
<tbody>
<row>
<entry>rich-picklist-list</entry>
- <entry>rich-picklist-list</entry>
+ <entry>Defines styles for a wrapper table element of a pickList</entry>
</row>
<row>
<entry>rich-list-picklist</entry>
- <entry>rich-picklist-list</entry>
+ <entry>Defines styles for a wrapper table element of a pickList</entry>
</row>
</tbody>
</tgroup>
@@ -594,11 +594,11 @@
<tbody>
<row>
<entry>rich-list-picklist-button</entry>
- <entry>rich-picklist-list</entry>
+ <entry>Defines styles for a button</entry>
</row>
<row>
<entry>rich-list-picklist-button-disabled</entry>
- <entry>rich-picklist-list</entry>
+ <entry>Defines styles for a disabled button</entry>
</row>
</tbody>
</tgroup>
@@ -616,11 +616,11 @@
<tbody>
<row>
<entry>rich-list-picklist-button-press</entry>
- <entry>rich-picklist-list</entry>
+ <entry>Defines styles for a pressed button</entry>
</row>
<row>
<entry>rich-list-picklist-button-light</entry>
- <entry>rich-picklist-list</entry>
+ <entry>Defines styles for a button highlight</entry>
</row>
</tbody>
</tgroup>
@@ -638,7 +638,7 @@
<tbody>
<row>
<entry>rich-list-picklist-button-selection</entry>
- <entry>rich-picklist-list</entry>
+ <entry>Defines styles for a button selection</entry>
</row>
</tbody>
</tgroup>
@@ -655,8 +655,8 @@
</thead>
<tbody>
<row>
- <entry>ich-list-picklist-button-content</entry>
- <entry>rich-picklist-list</entry>
+ <entry>rich-list-picklist-button-content</entry>
+ <entry>Defines styles for a button content</entry>
</row>
</tbody>
@@ -675,11 +675,11 @@
<tbody>
<row>
<entry>rich-picklist-source-items</entry>
- <entry>rich-picklist-list</entry>
+ <entry>Defines styles for an item in a source list</entry>
</row>
<row>
<entry>rich-picklist-target-items</entry>
- <entry>rich-picklist-list</entry>
+ <entry>Defines styles for an item in a target list</entry>
</row>
</tbody>
@@ -698,11 +698,11 @@
<tbody>
<row>
<entry>rich-picklist-source-cell</entry>
- <entry>rich-picklist-list</entry>
+ <entry>Defines styles for a cell in a source list</entry>
</row>
<row>
<entry>rich-picklist-target-cell</entry>
- <entry>rich-picklist-list</entry>
+ <entry>Defines styles for a cell in a target list</entry>
</row>
</tbody>
</tgroup>
@@ -722,23 +722,23 @@
<tbody>
<row>
<entry>rich-picklist-control-disabled</entry>
- <entry>rich-picklist-list</entry>
+ <entry>Defines styles for a control in a disabled state</entry>
</row>
<row>
<entry>rich-picklist-control-copyall</entry>
- <entry>rich-picklist-list</entry>
+ <entry>Defines styles for a "copyAll" control</entry>
</row>
<row>
<entry>rich-picklist-control-copy</entry>
- <entry>rich-picklist-list</entry>
+ <entry>Defines styles for a "Copy" control</entry>
</row>
<row>
<entry>rich-picklist-control-remove</entry>
- <entry>rich-picklist-list</entry>
+ <entry>Defines styles for a "Remove" control</entry>
</row>
<row>
<entry>rich-picklist-control-removeall</entry>
- <entry>rich-picklist-list</entry>
+ <entry>Defines styles for a "removeAll" control</entry>
</row>
</tbody>
@@ -748,14 +748,14 @@
<para>In order to redefine styles for all <emphasis role="bold">
<property><rich:pickList></property>
</emphasis> components on a page using CSS, it's enough to create classes with the
- same names (possible classes could be found in the tables <link linkend="OrderL"> above</link>) and define necessary properties in them. </para>
+ same names (possible classes could be found in the tables <link linkend="pickListC"> above</link>) and define necessary properties in them. </para>
- <!--para>
+ <para>
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="CSS"><![CDATA[...
-.rich-ordering-list-table-header-cell{
- font-weight:bold;
+.rich-picklist-list{
+ background-color:#ecf4fe;
}
...]]></programlisting>
@@ -765,16 +765,16 @@
<title>Redefinition styles with predefined classes</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/orderinListClass.png"/>
+ <imagedata fileref="images/pickListClass.png"/>
</imageobject>
</mediaobject>
</figure>
- <para>In the example the font weight for header text was changed.</para>
+ <para>In the example the background color for lists was changed.</para>
<para>Also it’s possible to change styles of particular <emphasis role="bold"
- ><property><rich:orderingList></property></emphasis> component. In this case you should create own style classes and use them in corresponding <emphasis role="bold"
- ><property><rich:orderingList></property></emphasis> <property>styleClass</property> attributes. An example is placed below:</para>
+ ><property><rich:pickList></property></emphasis> component. In this case you should create own style classes and use them in corresponding <emphasis role="bold"
+ ><property><rich:pickList></property></emphasis> <property>styleClass</property> attributes. An example is placed below:</para>
<para>
<emphasis role="bold">Example:</emphasis>
@@ -784,28 +784,28 @@
font-style:italic;
}
...]]></programlisting>
- <para>The <emphasis><property>"rowClasses"</property></emphasis> attribute for <emphasis role="bold"
- ><property><rich:orderingList></property></emphasis> is defined as it’s shown in the example below:</para>
+ <para>The <emphasis><property>"styleClass"</property></emphasis> attribute for <emphasis role="bold"
+ ><property><rich:pickList></property></emphasis> is defined as it’s shown in the example below:</para>
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="CSS"><![CDATA[<rich:orderingList ... rowClasses="myClass"/>
+ <programlisting role="CSS"><![CDATA[<rich:pickList ... styleClass="myClass"/>
]]></programlisting>
<para>This is a result:</para>
<figure>
- <title>Redefinition styles with own classes and <emphasis><property>styleClass</property></emphasis> attributes</title>
+ <title>Redefinition styles with own classes and styleClass attributes</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/orderinListStyle.png"/>
+ <imagedata fileref="images/pickListStyle.png"/>
</imageobject>
</mediaobject>
</figure>
- <para>As it could be seen on the picture above, the font style for rows was changed.</para-->
-
+ <para>As it could be seen on the picture above, the font style for buttons was changed.</para>
+
</section>
<section>
Added: trunk/docs/userguide/en/src/main/resources/images/pickList2.png
===================================================================
(Binary files differ)
Property changes on: trunk/docs/userguide/en/src/main/resources/images/pickList2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/docs/userguide/en/src/main/resources/images/pickListClass.png
===================================================================
(Binary files differ)
Property changes on: trunk/docs/userguide/en/src/main/resources/images/pickListClass.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/docs/userguide/en/src/main/resources/images/pickListStyle.png
===================================================================
(Binary files differ)
Property changes on: trunk/docs/userguide/en/src/main/resources/images/pickListStyle.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
18 years, 2 months
JBoss Rich Faces SVN: r6180 - trunk/ui/combobox/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-02-19 13:03:16 -0500 (Tue, 19 Feb 2008)
New Revision: 6180
Modified:
trunk/ui/combobox/src/main/java/org/richfaces/renderkit/ComboBoxBaseRenderer.java
Log:
Modified: trunk/ui/combobox/src/main/java/org/richfaces/renderkit/ComboBoxBaseRenderer.java
===================================================================
--- trunk/ui/combobox/src/main/java/org/richfaces/renderkit/ComboBoxBaseRenderer.java 2008-02-19 17:19:03 UTC (rev 6179)
+++ trunk/ui/combobox/src/main/java/org/richfaces/renderkit/ComboBoxBaseRenderer.java 2008-02-19 18:03:16 UTC (rev 6180)
@@ -36,7 +36,8 @@
*/
public class ComboBoxBaseRenderer extends HeaderResourcesRendererBase {
- private ArrayList <String> valuesList = null;
+ private List valuesList = null;
+
private final String RICH_COMBOBOX_ITEM_CLASSES = "rich-combobox-item rich-combobox-item-normal";
private static Log logger = LogFactory.getLog(ComboBoxBaseRenderer.class);
@@ -83,20 +84,20 @@
Object suggestionValues = comboBox.getSuggestionValues();
ResponseWriter writer = context.getResponseWriter();
- valuesList = new ArrayList<String>();
+ List values = getValuesList();
if (suggestionValues != null) {
if (suggestionValues instanceof Collection) {
for (Iterator iterator = ((Collection)suggestionValues).iterator(); iterator.hasNext();) {
String value = getConvertedStringValue(context, comboBox, iterator.next()) ;
- valuesList.add(value);
+ values.add(value);
encodeSuggestion(writer, comboBox, value, RICH_COMBOBOX_ITEM_CLASSES);
}
} else if (suggestionValues.getClass().isArray()) {
Object [] suggestions = (Object [])suggestionValues;
for (int i = 0; i < suggestions.length; i++) {
String value = getConvertedStringValue(context, comboBox, suggestions[i]);
- valuesList.add(value);
+ values.add(value);
encodeSuggestion(writer, comboBox, value, RICH_COMBOBOX_ITEM_CLASSES );
}
} else {
@@ -219,4 +220,15 @@
}
return ScriptUtils.toScript(result);
}
+
+ public List getValuesList() {
+ if (valuesList == null) {
+ valuesList = new ArrayList();
+ }
+ return valuesList;
+ }
+
+ public void setValuesList(List valuesList) {
+ this.valuesList = valuesList;
+ }
}
18 years, 2 months
JBoss Rich Faces SVN: r6179 - trunk/sandbox/ui/inplaceSelect/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-02-19 12:19:03 -0500 (Tue, 19 Feb 2008)
New Revision: 6179
Modified:
trunk/sandbox/ui/inplaceSelect/src/main/java/org/richfaces/renderkit/InplaceSelectBaseRenderer.java
Log:
fix encoding selection options
Modified: trunk/sandbox/ui/inplaceSelect/src/main/java/org/richfaces/renderkit/InplaceSelectBaseRenderer.java
===================================================================
--- trunk/sandbox/ui/inplaceSelect/src/main/java/org/richfaces/renderkit/InplaceSelectBaseRenderer.java 2008-02-19 17:12:52 UTC (rev 6178)
+++ trunk/sandbox/ui/inplaceSelect/src/main/java/org/richfaces/renderkit/InplaceSelectBaseRenderer.java 2008-02-19 17:19:03 UTC (rev 6179)
@@ -4,7 +4,6 @@
package org.richfaces.renderkit;
import java.io.IOException;
-import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
@@ -16,10 +15,6 @@
import javax.faces.convert.ConverterException;
import javax.faces.model.SelectItem;
-import org.ajax4jsf.javascript.JSFunctionDefinition;
-import org.ajax4jsf.javascript.JSReference;
-import org.ajax4jsf.javascript.ScriptString;
-import org.ajax4jsf.javascript.ScriptUtils;
import org.ajax4jsf.util.InputUtils;
import org.ajax4jsf.util.SelectUtils;
import org.apache.commons.logging.Log;
@@ -34,7 +29,6 @@
private static Log logger = LogFactory.getLog(InplaceSelectBaseRenderer.class);
private static final String RICH_INPLACE_SELECT_CLASSES = "rich-iselect-item rich-iselect-item-normal";
- private ArrayList <String> valuesList = null;
@Override
protected void doDecode(FacesContext context, UIComponent component) {
@@ -83,7 +77,7 @@
}
public void encodeItems( FacesContext context, UIComponent component) throws IOException {
- valuesList = new ArrayList<String>();
+ List values = getValuesList();
ResponseWriter writer = context.getResponseWriter();
List <SelectItem> selectItems = SelectUtils.getSelectItems(context, component);
@@ -91,7 +85,7 @@
for (Iterator <SelectItem> iterator = selectItems.iterator(); iterator.hasNext();) {
SelectItem selectItem = iterator.next();
String value = getConvertedStringValue(context, component, selectItem.getValue());
- valuesList.add(value);
+ values.add(value);
encodeSuggestion(writer, component, value, RICH_INPLACE_SELECT_CLASSES);
}
}
@@ -111,22 +105,4 @@
protected Class <? extends UIComponent> getComponentClass() {
return UIInplaceSelect.class;
}
-
-// public String getAsEventHandler(FacesContext context, UIComponent component, String attributeName) {
-// String event = (String) component.getAttributes().get(attributeName);
-// ScriptString result = JSReference.NULL;
-//
-// if (event != null) {
-// event = event.trim();
-//
-// if (event.length() != 0) {
-// JSFunctionDefinition function = new JSFunctionDefinition();
-// function.addParameter("event");
-// function.addToBody(event);
-//
-// result = function;
-// }
-// }
-// return ScriptUtils.toScript(result);
-// }
}
18 years, 2 months
JBoss Rich Faces SVN: r6178 - Suite and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: tkuprevich
Date: 2008-02-19 12:12:52 -0500 (Tue, 19 Feb 2008)
New Revision: 6178
Added:
trunk/test-applications/qa/Performance Suite/Performance Test Suite 19022008.doc
Modified:
trunk/test-applications/qa/Performance Suite/Performance Test Suite Blank.doc
Log:
Added: trunk/test-applications/qa/Performance Suite/Performance Test Suite 19022008.doc
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/qa/Performance Suite/Performance Test Suite 19022008.doc
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/test-applications/qa/Performance Suite/Performance Test Suite Blank.doc
===================================================================
(Binary files differ)
18 years, 2 months