JBoss Rich Faces SVN: r6718 - in trunk/ui/inplaceInput/src/main: templates and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-03-11 13:57:18 -0400 (Tue, 11 Mar 2008)
New Revision: 6718
Modified:
trunk/ui/inplaceInput/src/main/config/component/inplaceinput.xml
trunk/ui/inplaceInput/src/main/templates/inplaceinput.jspx
Log:
http://jira.jboss.com/jira/browse/RF-2436
Modified: trunk/ui/inplaceInput/src/main/config/component/inplaceinput.xml
===================================================================
--- trunk/ui/inplaceInput/src/main/config/component/inplaceinput.xml 2008-03-11 17:28:09 UTC (rev 6717)
+++ trunk/ui/inplaceInput/src/main/config/component/inplaceinput.xml 2008-03-11 17:57:18 UTC (rev 6718)
@@ -41,12 +41,6 @@
<defaultvalue><![CDATA["inline"]]></defaultvalue>
</property>
<property>
- <name>inputMaxLength</name>
- <classname>java.lang.Integer</classname>
- <description></description>
- <defaultvalue>255</defaultvalue>
- </property>
- <property>
<name>maxInputWidth</name>
<classname>java.lang.String</classname>
<description></description>
@@ -256,8 +250,12 @@
</property>
&html_events;
&ui_input_attributes;
+ <property hidden="true">
+ <name>localValueSet</name>
+ <classname>boolean</classname>
+ <description></description>
+ </property>
-
</properties>
</component>
</components>
Modified: trunk/ui/inplaceInput/src/main/templates/inplaceinput.jspx
===================================================================
--- trunk/ui/inplaceInput/src/main/templates/inplaceinput.jspx 2008-03-11 17:28:09 UTC (rev 6717)
+++ trunk/ui/inplaceInput/src/main/templates/inplaceinput.jspx 2008-03-11 17:57:18 UTC (rev 6718)
@@ -84,7 +84,6 @@
class='rich-inplace-field'
style='display:none;'
type='text'
- maxlength='#{component.attributes["inputMaxLength"]}'
autocomplete="off"
value='#{fieldValue}'
tabindex='#{component.attributes["tabindex"]}'
16 years, 10 months
JBoss Rich Faces SVN: r6717 - trunk/samples/richfaces-demo/src/main/webapp/richfaces.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-03-11 13:28:09 -0400 (Tue, 11 Mar 2008)
New Revision: 6717
Added:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/columns.xhtml
Log:
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/columns.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/columns.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/columns.xhtml 2008-03-11 17:28:09 UTC (rev 6717)
@@ -0,0 +1,20 @@
+<!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 - Columns Component</ui:define>
+ <ui:define name="body">
+ <rich:tabPanel switchType="server" value="#{componentNavigator.activeTab}" styleClass="top_tab" contentClass="content_tab" headerClass="header_tabs_class" inactiveTabClass="inactive_tab" activeTabClass="active_tab">
+ <rich:tab label="Usage">
+ <ui:include src="/richfaces/columns/usage.xhtml"/>
+ </rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="rich/columns"/>
+ </ui:include>
+ </rich:tabPanel>
+ </ui:define>
+</ui:composition>
+</html>
16 years, 10 months
JBoss Rich Faces SVN: r6716 - in trunk/samples/richfaces-demo/src/main: webapp/richfaces and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-03-11 13:27:47 -0400 (Tue, 11 Mar 2008)
New Revision: 6716
Added:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/Facet.java
trunk/samples/richfaces-demo/src/main/webapp/richfaces/columns/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/columns/examples/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/columns/examples/example.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/columns/usage.xhtml
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/DataTableScrollerBean.java
Log:
Columns example
Modified: trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/DataTableScrollerBean.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/DataTableScrollerBean.java 2008-03-11 17:24:13 UTC (rev 6715)
+++ trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/DataTableScrollerBean.java 2008-03-11 17:27:47 UTC (rev 6716)
@@ -25,12 +25,17 @@
private UIScrollableDataTable table;
- private ArrayList<DemoInventoryItem> selectedCars = new ArrayList<DemoInventoryItem>();
+ private ArrayList<DemoInventoryItem> selectedCars = new ArrayList<DemoInventoryItem>();
+ private ArrayList<Facet> columns = new ArrayList<Facet>();
private static int DECIMALS = 1;
private static int ROUNDING_MODE = BigDecimal.ROUND_HALF_UP;
private static List <DemoInventoryItem> allCars = null;
+ public DataTableScrollerBean() {
+ initColumnsHeaders();
+ }
+
public List <DemoInventoryItem> getAllCars() {
synchronized (this) {
if (allCars == null) {
@@ -77,7 +82,6 @@
}
}
}
-
return allCars;
}
@@ -193,4 +197,47 @@
public void setTable(UIScrollableDataTable table) {
this.table = table;
}
+
+ public void initColumnsHeaders(){
+ columns.clear();
+ String header;
+ String footer="";
+ header = "Chevrolet Corvette";
+ Facet facet = new Facet(header ,footer);
+ columns.add(facet);
+ header = "Ford Explorer";
+ facet = new Facet(header ,footer);
+ columns.add(facet);
+ header = "Nissan Maxima";
+ facet = new Facet(header ,footer);
+ columns.add(facet);
+ header = "Toyota Camry";
+ facet = new Facet(header ,footer);
+ columns.add(facet);
+ header = "GMC Yukon";
+ facet = new Facet(header ,footer);
+ columns.add(facet);
+ header = "Infiniti G35";
+ facet = new Facet(header ,footer);
+ columns.add(facet);
+ }
+
+ public ArrayList<DemoInventoryItem[]> getModel() {
+
+ ArrayList model = new ArrayList();
+ model.add(createCar("Chevrolet","Corvette", 10).toArray());
+ model.add(createCar("Ford","Explorer", 10).toArray());
+ model.add(createCar("Nissan","Maxima", 10).toArray());
+ model.add(createCar("Toyota","Camry", 10).toArray());
+ model.add(createCar("GMC","Yukon", 10).toArray());
+ model.add(createCar("Infiniti","G35", 10).toArray());
+
+ return model;
+ //TODO Columns rendered wrong for such model
+ }
+
+ public ArrayList<Facet> getColumns() {
+ return columns;
+ }
+
}
Added: trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/Facet.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/Facet.java (rev 0)
+++ trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/Facet.java 2008-03-11 17:27:47 UTC (rev 6716)
@@ -0,0 +1,53 @@
+/*
+ * Facet.java Date created: 10.12.2007
+ * Last modified by: $Author$
+ * $Revision$ $Date$
+ */
+
+package org.richfaces.datatablescroller;
+
+/**
+ * TODO Class description goes here.
+ * @author "Andrey Markavtsov"
+ *
+ */
+public class Facet {
+ private String header;
+ private String footer;
+
+ /**
+ * TODO Description goes here.
+ * @param header
+ * @param footer
+ */
+ public Facet(String header, String footer) {
+ super();
+ this.header = header;
+ this.footer = footer;
+ }
+ /**
+ * @return the header
+ */
+ public String getHeader() {
+ return header;
+ }
+ /**
+ * @param header the header to set
+ */
+ public void setHeader(String header) {
+ this.header = header;
+ }
+ /**
+ * @return the footer
+ */
+ public String getFooter() {
+ return footer;
+ }
+ /**
+ * @param footer the footer to set
+ */
+ public void setFooter(String footer) {
+ this.footer = footer;
+ }
+
+}
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/columns/examples/example.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/columns/examples/example.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/columns/examples/example.xhtml 2008-03-11 17:27:47 UTC (rev 6716)
@@ -0,0 +1,19 @@
+<ui:composition 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">
+
+ <h:form>
+ <rich:dataTable value="#{dataTableScrollerBean.model}" var="model">
+ <rich:columns value="#{dataTableScrollerBean.columns}" var="columns" index="ind">
+ <f:facet name="header">
+ <h:outputText value="#{columns.header}"/>
+ </f:facet>
+ <h:outputText value="#{model[ind].model}"/>
+ </rich:columns>
+ </rich:dataTable>
+ </h:form>
+
+</ui:composition>
\ No newline at end of file
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/columns/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/columns/usage.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/columns/usage.xhtml 2008-03-11 17:27:47 UTC (rev 6716)
@@ -0,0 +1,26 @@
+<!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>
+ SHORT DESCRIPTION
+ </p>
+ <div class="sample-container" >
+ <ui:include src="/richfaces/columns/examples/example.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/columns/examples/example.xhtml"/>
+ </ui:include>
+ </div>
+ <p>
+ DESCRIPTION
+ </p>
+ </ui:define>
+
+ </ui:composition>
+</html>
16 years, 10 months
JBoss Rich Faces SVN: r6715 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2008-03-11 13:24:13 -0400 (Tue, 11 Mar 2008)
New Revision: 6715
Modified:
trunk/docs/userguide/en/src/main/docbook/included/jsFunction.xml
Log:
RF-672 - corrected names of attributes for a4j:jsFunction
Modified: trunk/docs/userguide/en/src/main/docbook/included/jsFunction.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/jsFunction.xml 2008-03-11 17:23:40 UTC (rev 6714)
+++ trunk/docs/userguide/en/src/main/docbook/included/jsFunction.xml 2008-03-11 17:24:13 UTC (rev 6715)
@@ -109,7 +109,7 @@
</emphasis> instead of <emphasis role="bold">
<property><a4j:commandButton></property>
</emphasis>. You can put it anywhere, just don't forget to use
- <h:form> ... </h:form> around it. </para>
+ <emphasis><property><h:form></property></emphasis> ... <emphasis><property></h:form></property></emphasis> around it. </para>
</section>
<section>
<title>Relevant resources links</title>
16 years, 10 months
JBoss Rich Faces SVN: r6714 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2008-03-11 13:23:40 -0400 (Tue, 11 Mar 2008)
New Revision: 6714
Modified:
trunk/docs/userguide/en/src/main/docbook/included/commandLink.xml
Log:
RF-926 - corrected code for a4j:commandLink
Modified: trunk/docs/userguide/en/src/main/docbook/included/commandLink.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/commandLink.xml 2008-03-11 17:22:10 UTC (rev 6713)
+++ trunk/docs/userguide/en/src/main/docbook/included/commandLink.xml 2008-03-11 17:23:40 UTC (rev 6714)
@@ -37,7 +37,9 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="XML"><![CDATA[<a4j:commandLink reRender="someData" action="#{bean.action1}" value="Link"/>]]></programlisting>
+ <programlisting role="XML"><![CDATA[...
+ <a4j:commandLink reRender="someData" action="#{bean.action1}" value="Link"/>
+...]]></programlisting>
</section>
<section>
<title>Creating the Component Dynamically Using Java</title>
@@ -58,13 +60,11 @@
submit on the server, <property>action1</property> method performance, and rendering of the component
with <property>someData</property> id after the response comes back from the server.</para>
<para>The component <emphasis role="bold"><property><a4j:commandLink></property></emphasis> placed on a page generates the following HTML code:</para>
- <programlisting role="XML"><![CDATA[<a href="#" onclick="A4J.AJAX.Submit(?"request parameters");
- return
- <a href="#" onclick="A4J.AJAX.Submit(?"request parameters");
- return false;">
- <span style="color: black;">Link Value</span>
- </a>
-]]></programlisting>
+ <programlisting role="XML"><![CDATA[...
+<a href="#" onclick="A4J.AJAX.Submit(?"request parameters"); return false;">
+ <span>Link Value</span>
+</a>
+...]]></programlisting>
<para>Hence, the utility method <property>A4J.AJAX.Submit</property> is called on a click, the method performs Ajax request as the <emphasis role="bold"><property><a4j:support></property></emphasis> component</para>
<note>
<title>Note:</title>
16 years, 10 months
JBoss Rich Faces SVN: r6713 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2008-03-11 13:22:10 -0400 (Tue, 11 Mar 2008)
New Revision: 6713
Modified:
trunk/docs/userguide/en/src/main/docbook/included/support.xml
Log:
RF-2099 - corrected code in section "Key attributes and ways of usage" and added the information in "Creating the Component Dynamically Using Java" section
Modified: trunk/docs/userguide/en/src/main/docbook/included/support.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/support.xml 2008-03-11 17:17:47 UTC (rev 6712)
+++ trunk/docs/userguide/en/src/main/docbook/included/support.xml 2008-03-11 17:22:10 UTC (rev 6713)
@@ -49,35 +49,32 @@
</section>
<section>
<title>Creating the Component Dynamically Using Java</title>
-
+ <para>In order to add <emphasis role="bold">
+ <property><a4j:support></property>
+ </emphasis> in Java code you should add it as <emphasis><property>facet</property></emphasis>, not children:</para>
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="JAVA"><![CDATA[import org.ajax4jsf.component.html.HtmlAjaxSupport;
+ <programlisting role="JAVA"><![CDATA[HtmlInputText inputText = new HtmlInputText();
...
-HtmlAjaxSupport mySupport = new HtmlAjaxSupport();>]]></programlisting>
+HtmlAjaxSupport ajaxSupport = new HtmlAjaxSupport();
+ ajaxSupport.setActionExpression(FacesContext.getCurrentInstance().getApplication().getExpressionFactory().createMethodExpression(
+ FacesContext.getCurrentInstance().getELContext(), "#{bean.action}", String.class, new Class[] {}));
+ ajaxSupport.setEvent("onkeyup");
+ ajaxSupport.setReRender("output");
+ inputText.getFacets().put("a4jsupport", ajaxSupport);
+]]></programlisting>
</section>
<section>
<title>Key attributes and ways of usage</title>
- <para>A4j support addition is very similar to correspondent event redefinition of a component, i.e.
+ <para><emphasis role="bold"><property><a4j:support></property></emphasis> addition is very similar to correspondent event redefinition of a component, i.e.
</para>
<para><emphasis role="bold">Example:</emphasis></para>
<programlisting role="XML"><![CDATA[...
<h:inputText value="#{bean.text}">
<a4j:support event="onkeyup" reRender="output" action="#{bean.action}"/>
</h:inputText>
-...]]></programlisting>
-
- <para> Below you can see example Java code where support was added as facelets, not children:</para>
- <para><emphasis role="bold">Example:</emphasis></para>
- <programlisting role="JAVA"><![CDATA[HtmlInputText inputText = new HtmlInputText();
-...
-HtmlAjaxSupport ajaxSupport = new HtmlAjaxSupport();
- ajaxSupport.setActionExpression(FacesContext.getCurrentInstance().getApplication().getExpressionFactory().createMethodExpression(FacesContext.getCurrentInstance().getELContext(), "#{bean.action}", String.class, new Class[] {}));
- ajaxSupport.setEvent("onkeyup");
- ajaxSupport.setReRender("output");
- inputText.getFacets().put("a4jsupport", ajaxSupport);
-]]></programlisting>
+...]]></programlisting>
<para>Is decoded on a page as:</para>
<para>
16 years, 10 months
JBoss Rich Faces SVN: r6712 - trunk/docs/faq/en/src/main/docbook/module.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2008-03-11 13:17:47 -0400 (Tue, 11 Mar 2008)
New Revision: 6712
Modified:
trunk/docs/faq/en/src/main/docbook/module/RFCfaq.xml
Log:
RF-2099 - deleted the information from FAQ
Modified: trunk/docs/faq/en/src/main/docbook/module/RFCfaq.xml
===================================================================
--- trunk/docs/faq/en/src/main/docbook/module/RFCfaq.xml 2008-03-11 17:00:34 UTC (rev 6711)
+++ trunk/docs/faq/en/src/main/docbook/module/RFCfaq.xml 2008-03-11 17:17:47 UTC (rev 6712)
@@ -1776,33 +1776,7 @@
</rich:dataTable>
</h:form>
...]]></programlisting>
- </section>
- <section id="AddSupportAsFacet">
- <title>How to add support as facet instead of children?</title>
- <para>In order to add <emphasis role="bold">
- <property><a4j:support></property>
- </emphasis> in Java code you should add it as <emphasis><property>facet</property></emphasis>, not children:</para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[...
-<h:inputText value="#{bean.text}">
- <a4j:support event="onkeyup" reRender="output" action="#{bean.action}"/>
-</h:inputText>
-...]]></programlisting>
- <para>Below you can see Java code:</para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
-<programlisting role="JAVA"><![CDATA[HtmlInputText inputText = new HtmlInputText();
-...
-HtmlAjaxSupport ajaxSupport = new HtmlAjaxSupport();
- ajaxSupport.setActionExpression(FacesContext.getCurrentInstance().getApplication().getExpressionFactory().createMethodExpression(FacesContext.getCurrentInstance().getELContext(), "#{bean.action}", String.class, new Class[] {}));
- ajaxSupport.setEvent("onkeyup");
- ajaxSupport.setReRender("output");
- inputText.getFacets().put("a4jsupport", ajaxSupport);
-]]></programlisting>
- </section>
+ </section>
<section>
<?dbhtml filename="HighlightRowDataTable.html"?>
<title>How to ReRender table cells with ajax support?</title>
16 years, 10 months
JBoss Rich Faces SVN: r6711 - trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/css.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2008-03-11 13:00:34 -0400 (Tue, 11 Mar 2008)
New Revision: 6711
Modified:
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/css/fileUpload.xcss
Log:
Modified: trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/css/fileUpload.xcss
===================================================================
--- trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/css/fileUpload.xcss 2008-03-11 16:59:59 UTC (rev 6710)
+++ trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/css/fileUpload.xcss 2008-03-11 17:00:34 UTC (rev 6711)
@@ -6,9 +6,7 @@
<f:verbatim><![CDATA[
-body{margin : 20px}
-
.upload_list_overflow{overflow : auto; overflow-x : hidden;}
.upload_name{ width : 100%; height : 58px; padding : 2px 10px 2px 10px;}
.upload_del{ width : 90px; text-align : center; padding-top : 3; padding-bottom : 3;}
16 years, 10 months
JBoss Rich Faces SVN: r6710 - in trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html: js and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2008-03-11 12:59:59 -0400 (Tue, 11 Mar 2008)
New Revision: 6710
Modified:
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/css/fileUpload.xcss
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
Log:
RF-2452
Modified: trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/css/fileUpload.xcss
===================================================================
--- trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/css/fileUpload.xcss 2008-03-11 16:55:44 UTC (rev 6709)
+++ trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/css/fileUpload.xcss 2008-03-11 16:59:59 UTC (rev 6710)
@@ -8,7 +8,6 @@
body{margin : 20px}
-table{width : 100%}
.upload_list_overflow{overflow : auto; overflow-x : hidden;}
.upload_name{ width : 100%; height : 58px; padding : 2px 10px 2px 10px;}
@@ -71,6 +70,7 @@
<u:style name="border-bottom-color" skin="tableBorderColor" />
<u:style name="border-top-color" skin="tableBackgroundColor" />
<u:style name="border-left-color" skin="tableBackgroundColor" />
+ <u:style name="width" value="100%" />
</u:selector>
<u:selector name=".upload_button_border">
Modified: trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
===================================================================
--- trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-03-11 16:55:44 UTC (rev 6709)
+++ trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-03-11 16:59:59 UTC (rev 6710)
@@ -46,7 +46,7 @@
FileUploadEntry.template =
[
new E('table',
- {'cellspacing':'0', 'cellpadding':'0', 'border':'0'},
+ {'cellspacing':'0', 'cellpadding':'0', 'border':'0', 'style':'width:100%'},
[
new E('tbody',{},
[
16 years, 10 months
JBoss Rich Faces SVN: r6709 - trunk/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: vmolotkov
Date: 2008-03-11 12:55:44 -0400 (Tue, 11 Mar 2008)
New Revision: 6709
Modified:
trunk/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/OrderingList.js
Log:
new JS api functions are added
Modified: trunk/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/OrderingList.js
===================================================================
--- trunk/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/OrderingList.js 2008-03-11 16:52:04 UTC (rev 6708)
+++ trunk/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/OrderingList.js 2008-03-11 16:55:44 UTC (rev 6709)
@@ -172,6 +172,22 @@
this.controlListManager();
break;
}
+ },
+
+ top : function(e) {
+ this.moveSelectedItems("first", e);
+ },
+
+ bottom : function(e) {
+ this.moveSelectedItems("last", e);
+ },
+
+ up : function(e) {
+ this.moveSelectedItems("up", e);
+ },
+
+ down : function(e) {
+ this.moveSelectedItems("down", e);
}
});
@@ -181,8 +197,8 @@
Richfaces.OrderingList.ITEM_SEPARATOR = ",";
Richfaces.OrderingList.HANDLERS = {
- first: function (e) { this.moveSelectedItems("first", e); return false; },
- last: function (e) { this.moveSelectedItems("last", e);return false; },
- up: function (e) { this.moveSelectedItems("up", e);return false; },
- down: function (e) { this.moveSelectedItems("down", e);return false; }
+ first: function (e) { this.top(e); return false; },
+ last: function (e) { this.bottom(e); return false; },
+ up: function (e) { this.up(e); return false; },
+ down: function (e) { this.down(e); return false; }
};
\ No newline at end of file
16 years, 10 months