JBoss Rich Faces SVN: r7218 - trunk/docs/userguide/en/src/main/resources/images.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2008-03-25 13:35:24 -0400 (Tue, 25 Mar 2008)
New Revision: 7218
Modified:
trunk/docs/userguide/en/src/main/resources/images/datalistStyle.png
Log:
RF-1052 - updated screen for dataList
Modified: trunk/docs/userguide/en/src/main/resources/images/datalistStyle.png
===================================================================
(Binary files differ)
16 years, 9 months
JBoss Rich Faces SVN: r7217 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2008-03-25 13:34:59 -0400 (Tue, 25 Mar 2008)
New Revision: 7217
Modified:
trunk/docs/userguide/en/src/main/docbook/included/panelMenu.xml
trunk/docs/userguide/en/src/main/docbook/included/panelMenuGroup.xml
trunk/docs/userguide/en/src/main/docbook/included/panelMenuItem.xml
Log:
RF-398 - corrected names of JS API function for panelMenu, panelMenuGroup;corrected description in the table "Classes names that define items state" for panelMenuItem.
Modified: trunk/docs/userguide/en/src/main/docbook/included/panelMenu.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panelMenu.xml 2008-03-25 17:26:22 UTC (rev 7216)
+++ trunk/docs/userguide/en/src/main/docbook/included/panelMenu.xml 2008-03-25 17:34:59 UTC (rev 7217)
@@ -240,7 +240,7 @@
<section>
<title>JavaScript API</title>
<para>In Java Script code for expanding/collapsing group element creation it's
- necessary to use Expand()/Collapse() function.</para>
+ necessary to use expand()/collapse() function.</para>
<table>
<title>JavaScript API</title>
@@ -256,13 +256,13 @@
<tbody>
<row>
- <entry>Expand()</entry>
+ <entry>expand()</entry>
<entry>Expands group element</entry>
</row>
<row>
- <entry>Collapse()</entry>
+ <entry>collapse()</entry>
<entry>Collapses group element</entry>
</row>
@@ -291,7 +291,7 @@
<section>
<title>Definition of Custom Style Classes</title>
- <table id="panelMenuC">
+ <table>
<title>Classes names that define a component appearance</title>
<tgroup cols="2">
<thead>
Modified: trunk/docs/userguide/en/src/main/docbook/included/panelMenuGroup.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panelMenuGroup.xml 2008-03-25 17:26:22 UTC (rev 7216)
+++ trunk/docs/userguide/en/src/main/docbook/included/panelMenuGroup.xml 2008-03-25 17:34:59 UTC (rev 7217)
@@ -213,13 +213,13 @@
<tbody>
<row>
- <entry>Expand()</entry>
+ <entry>expand()</entry>
<entry>Expand group element</entry>
</row>
<row>
- <entry>Collapse()</entry>
+ <entry>collapse()</entry>
<entry>Collapse group element</entry>
</row>
@@ -436,7 +436,7 @@
</mediaobject>
</figure>
- <table>
+ <table id="panelMenuC">
<title>Classes names that define an upper level groups</title>
<tgroup cols="2">
Modified: trunk/docs/userguide/en/src/main/docbook/included/panelMenuItem.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panelMenuItem.xml 2008-03-25 17:26:22 UTC (rev 7216)
+++ trunk/docs/userguide/en/src/main/docbook/included/panelMenuItem.xml 2008-03-25 17:34:59 UTC (rev 7217)
@@ -405,7 +405,7 @@
<row>
<entry>rich-pmenu-item-icon</entry>
- <entry>Definesstyles for a panel menu item icon</entry>
+ <entry>Defines styles for a panel menu item icon</entry>
</row>
<row>
16 years, 9 months
JBoss Rich Faces SVN: r7216 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2008-03-25 13:26:22 -0400 (Tue, 25 Mar 2008)
New Revision: 7216
Modified:
trunk/docs/userguide/en/src/main/docbook/included/inplaceInput.xml
Log:
http://jira.jboss.com/jira/browse/RF-1226
MyClass usage image and Rich-inplace-field class usage described
Description is finished.
Modified: trunk/docs/userguide/en/src/main/docbook/included/inplaceInput.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/inplaceInput.xml 2008-03-25 17:25:01 UTC (rev 7215)
+++ trunk/docs/userguide/en/src/main/docbook/included/inplaceInput.xml 2008-03-25 17:26:22 UTC (rev 7216)
@@ -253,7 +253,7 @@
The
<emphasis><property>"selectOnEdit"</property></emphasis>
- (with possible values <property>"true</property>, <property>"false"</property>) gives you an
+ (with possible values "true", "false") gives you an
option to make the text in the input area selected right after the change from
<property>"View"</property> state to <property>"Edit"</property>.
@@ -391,13 +391,12 @@
</para>
</section>
- <!-- Skin Parameters Redefinition-->
- <!--
+
<section>
<title>Skin Parameters Redefinition</title>
<table>
- <title>Skin parameters redefinition for the "completed" part of the bar with no label</title>
+ <title>Skin parameters redefinition for "save" and "cancel" controls</title>
<tgroup cols="2">
<thead>
@@ -410,68 +409,32 @@
<tbody>
<row>
- <entry>selectControlColor</entry>
+ <entry>tabBackgroundColor</entry>
<entry>background-color</entry>
</row>
-
- </tbody>
- </tgroup>
- </table>
-
- <table>
- <title>Skin parameters redefinition for the "completed" part of the bar with a label used</title>
-
- <tgroup cols="2">
- <thead>
+
<row>
- <entry>Skin parameters</entry>
-
- <entry>CSS properties</entry>
+ <entry>panelBorderColor</entry>
+
+ <entry>border-color</entry>
</row>
- </thead>
-
- <tbody>
+
<row>
<entry>panelBorderColor</entry>
-
+
<entry>border-color</entry>
</row>
- </tbody>
- </tgroup>
- </table>
- <table>
- <title>Skin parameters redefinition for the “completed” part of the bar with a label used</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Skin parameters</entry>
- <entry>CSS properties</entry>
- </row>
- </thead>
-
- <tbody>
- <row>
- <entry>selectControlColor</entry>
-
- <entry>background-color</entry>
- </row>
-
- <row>
- <entry>controlBackgroundColor</entry>
-
- <entry>color</entry>
- </row>
</tbody>
</tgroup>
</table>
<table>
- <title>Skin parameters redefinition for the "remained" part of the bar</title>
+ <title>Skin parameters redefinition for "View" state</title>
<tgroup cols="2">
<thead>
@@ -484,22 +447,23 @@
<tbody>
<row>
- <entry>controlBackgroundColor</entry>
+ <entry>editorBackgroundColor</entry>
<entry>background-color</entry>
</row>
-
<row>
- <entry>controlTextColor</entry>
-
- <entry>color</entry>
+ <entry>generalTextColor</entry>
+
+ <entry>border-bottom-color</entry>
</row>
- </tbody>
+ </tbody>
</tgroup>
</table>
+
+
<table>
- <title>Skin parameters redefinition for the bar itself with a label used</title>
+ <title>Skin parameters redefinition for "Changed" state</title>
<tgroup cols="2">
<thead>
@@ -512,41 +476,22 @@
<tbody>
<row>
- <entry>panelBorderColor</entry>
+ <entry>editorBackgroundColor</entry>
- <entry>border-color</entry>
+ <entry>background-color</entry>
</row>
<row>
- <entry>generalFamilyFont</entry>
+ <entry>generalTextColo</entry>
- <entry>font-family</entry>
+ <entry>border-bottom-color</entry>
</row>
-
- <row>
- <entry>headerFamilyFont</entry>
-
- <entry>font-family</entry>
- </row>
-
- <row>
- <entry>generalSizeFont</entry>
-
- <entry>font-size</entry>
- </row>
-
- <row>
- <entry>controlTextColor</entry>
-
- <entry>color</entry>
- </row>
-
</tbody>
</tgroup>
</table>
<table>
- <title>Skin parameters redefinition for the bar itself with no label used</title>
+ <title>Classes names that define input field look and feel in "Edit" state </title>
<tgroup cols="2">
<thead>
@@ -559,7 +504,7 @@
<tbody>
<row>
- <entry>controlBackgroundColor</entry>
+ <entry>editBackgroundColor</entry>
<entry>background-color</entry>
</row>
@@ -569,7 +514,6 @@
<entry>border-color</entry>
</row>
-
</tbody>
</tgroup>
</table>
@@ -579,7 +523,7 @@
<!-- END Skin Parameters Redefinition-->
<!-- Definition of Custom Style Classes-->
-<!--
+
<section>
<title>Definition of Custom Style Classes</title>
<para>On the screenshot there are classes names that define styles for component elements.</para>
@@ -589,11 +533,14 @@
<title>Classes names</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/progressbarClasses.png"/>
+ <imagedata fileref="images/inplaceInputClasses.png"/>
</imageobject>
</mediaobject>
- </figure> <table>
- <title>Classes names for the bar</title>
+ </figure>
+
+
+ <table>
+ <title>Class name for the "View" state</title>
<tgroup cols="2">
<thead>
<row>
@@ -603,20 +550,21 @@
</thead>
<tbody>
<row>
- <entry>rich-progress-bar-shell</entry>
- <entry>Defines styles for the background and the borders of the bar when label is not used</entry>
+ <entry>rich-inplace-view</entry>
+ <entry>Defines styles for the "View" state</entry>
</row>
- <row>
- <entry>rich-progress-bar-shell-dig</entry>
- <entry>Defines styles for background, font and border settings when label is used</entry>
- </row>
</tbody>
</tgroup>
</table>
+
+
+
+
+
<table>
- <title>Classes names that define "completed" part of the bar</title>
+ <title>Class name for the input field in "Edit" state</title>
<tgroup cols="2">
<thead>
<row>
@@ -625,30 +573,40 @@
</row>
</thead>
<tbody>
-
<row>
- <entry>rich-progress-bar-uploaded</entry>
- <entry>Defines styles for of "completed" progress area with no labels used</entry>
+ <entry>rich-inplace-field</entry>
+ <entry>Defines styles for input field look and feel in "Edit" state</entry>
</row>
+
+ </tbody>
+ </tgroup>
+ </table>
+
+
+ <table>
+ <title>Class name for the "Changed" state</title>
+ <tgroup cols="2">
+ <thead>
<row>
- <entry>rich-progress-bar-uploaded-dig</entry>
- <entry>Defines styles for that "completed" progress area with labels used </entry>
+ <entry>Class name</entry>
+ <entry>Description</entry>
</row>
-
+ </thead>
+ <tbody>
<row>
- <entry>rich-progress-bar-completed</entry>
- <entry>Defines styles for the "completed" progress area with a label used</entry>
+ <entry>rich-inplace-changed</entry>
+ <entry>Defines styles for the "Changed" state</entry>
</row>
-
</tbody>
</tgroup>
</table>
+
<table>
- <title>Classes names that define "remained" part of the progress area</title>
+ <title>Classes names "save" and "cancel" controls in Edit state</title>
<tgroup cols="2">
<thead>
<row>
@@ -659,17 +617,40 @@
<tbody>
<row>
- <entry>rich-progress-bar-remained</entry>
- <entry>Defines styles for the "remained" part of the bar</entry>
+ <entry>rich-inplace-control</entry>
+ <entry>Defines styles for the controls</entry>
</row>
-
+ <row>
+ <entry>.rich-inplace-control-press</entry>
+ <entry>Defines styles for the controls when either of the buttons is pressed</entry>
+ </row>
+ <row>
+ <entry>rich-inplace-shadow-tl</entry>
+ <entry>Defines styles for the shadow in the top left corner </entry>
+ </row>
+ <row>
+ <entry>rich-inplace-shadow-tr</entry>
+ <entry>Defines styles for the shadow in the top right corner</entry>
+ </row>
+ <row>
+ <entry>rich-inplace-shadow-bl</entry>
+ <entry>Defines styles for the shadow in the bottom left corner</entry>
+ </row>
+ <row>
+ <entry>rich-inplace-shadow-br</entry>
+ <entry>Defines styles for the shadow in the bottom right corner</entry>
+ </row>
</tbody>
</tgroup>
</table>
+
+
+
+
<para>In order to redefine styles for all <emphasis role="bold">
- <property><rich:progressBar></property>
+ <property><rich:inplaceInput></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="tab_cn3"> above</link>) and define necessary properties in them. </para>
@@ -677,9 +658,10 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="CSS"><![CDATA[...
-.rich-progress-bar-remained{
- background-color: #ebf3fd;
-}
+.rich-inplace-field {
+font-style: bold;
+}
+
...]]></programlisting>
<para>This is the result:</para>
@@ -688,31 +670,33 @@
<title>Redefinition styles with predefined classes</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/progressbarRedefinedClasses.png"/>
+ <imagedata fileref="images/inplaceInputRich-inplace-field.png"/>
</imageobject>
</mediaobject>
</figure>
- <para>In the example the "remained" part of progress area is modified with a background-color CSS property.</para>
+ <para>In the shown example the font in "Edit" state is changed to bold.</para>
<para>It's aslo possible to change styles of a particular
- <emphasis role="bold"> <property><rich:progressBar></property></emphasis> component. In this case you should create own style classes and use them in corresponding <emphasis role="bold"><property><rich:progressBar></property></emphasis> <property>styleClass</property> attributes. An example is placed below:</para>
+ <emphasis role="bold"> <property><rich:inplaceInput></property></emphasis> component. In this case you should create own style classes and use them in corresponding <emphasis role="bold"><property><rich:inplaceInput></property></emphasis> <property>styleClass</property> attributes. An example is placed below:</para>
<para>
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="CSS"><![CDATA[...
-.RremainClass{ background-color: #ebf3fd;}
+.myClass {
+color: #008cca;
+}
...]]></programlisting>
<para>The <emphasis><property>"styleClass"</property></emphasis> attribute for <emphasis role="bold"
- ><property><rich:progressBar> </property></emphasis> is defined as it’s shown in the example below:</para>
+ ><property><rich:inplaceInput> </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:progressBar value="#{bean.incValue1}" styleClass="remainClass" />
+ <programlisting role="CSS"><![CDATA[...<rich:inplaceInput value="click to edit" styleClass="myClass"/>
]]></programlisting>
<para>This is a result:</para>
@@ -721,12 +705,12 @@
<title>Modificaton of a look and feel with own classes and <emphasis><property>styleClass</property></emphasis> attributes</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/progressbarRedefinedClasses.png"/>
+ <imagedata fileref="images/inplaceInputMyClass.png"/>
</imageobject>
</mediaobject>
</figure>
- <para>As it could be seen on the picture above, the font style for output text was changed.</para>
+ <para>As it could be seen on the picture above, the font color of the text on the component was changed.</para>
</section>
-->
16 years, 9 months
JBoss Rich Faces SVN: r7215 - trunk/docs/userguide/en/src/main/resources/images.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2008-03-25 13:25:01 -0400 (Tue, 25 Mar 2008)
New Revision: 7215
Added:
trunk/docs/userguide/en/src/main/resources/images/inplaceInputMyClass.png
trunk/docs/userguide/en/src/main/resources/images/inplaceInputRich-inplace-field.png
Log:
http://jira.jboss.com/jira/browse/RF-1226
MyClass using image and Rich-inplace-field class usage
Added: trunk/docs/userguide/en/src/main/resources/images/inplaceInputMyClass.png
===================================================================
(Binary files differ)
Property changes on: trunk/docs/userguide/en/src/main/resources/images/inplaceInputMyClass.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/docs/userguide/en/src/main/resources/images/inplaceInputRich-inplace-field.png
===================================================================
(Binary files differ)
Property changes on: trunk/docs/userguide/en/src/main/resources/images/inplaceInputRich-inplace-field.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
16 years, 9 months
JBoss Rich Faces SVN: r7214 - in trunk/ui/fileUpload/src/main: java/org/richfaces/renderkit and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2008-03-25 12:59:34 -0400 (Tue, 25 Mar 2008)
New Revision: 7214
Modified:
trunk/ui/fileUpload/src/main/java/org/richfaces/component/UIFileUpload.java
trunk/ui/fileUpload/src/main/java/org/richfaces/renderkit/FileUploadRendererBase.java
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
trunk/ui/fileUpload/src/main/templates/org/richfaces/fileUpload.jspx
Log:
RF-2765
Modified: trunk/ui/fileUpload/src/main/java/org/richfaces/component/UIFileUpload.java
===================================================================
--- trunk/ui/fileUpload/src/main/java/org/richfaces/component/UIFileUpload.java 2008-03-25 16:59:25 UTC (rev 7213)
+++ trunk/ui/fileUpload/src/main/java/org/richfaces/component/UIFileUpload.java 2008-03-25 16:59:34 UTC (rev 7214)
@@ -50,6 +50,8 @@
private String localContentType;
private String localFileName;
+
+ private String fileName;
private Integer localFileSize;
@@ -79,7 +81,19 @@
return localFileName;
}
- public void setLocalFileName(String localFileName) {
+ public String getFileName() {
+ return fileName;
+ }
+
+
+
+ public void setFileName(String fileName) {
+ this.fileName = fileName;
+ }
+
+
+
+ public void setLocalFileName(String localFileName) {
this.localFileName = localFileName;
}
Modified: trunk/ui/fileUpload/src/main/java/org/richfaces/renderkit/FileUploadRendererBase.java
===================================================================
--- trunk/ui/fileUpload/src/main/java/org/richfaces/renderkit/FileUploadRendererBase.java 2008-03-25 16:59:25 UTC (rev 7213)
+++ trunk/ui/fileUpload/src/main/java/org/richfaces/renderkit/FileUploadRendererBase.java 2008-03-25 16:59:34 UTC (rev 7214)
@@ -112,6 +112,7 @@
.getSession(false);
String uid = request.getParameter(Filter.UPLOAD_FILES_ID);
String id = request.getParameter("id");
+ String fullName = request.getParameter(clientId + ":fileName");
decreaseFileCounter(session, id);
Map<String, MultipartRequest> map = (Map<String, MultipartRequest>) session
.getAttribute(Filter.REQUESTS_SESSIONS_BEAN_NAME);
@@ -121,7 +122,8 @@
clientId = clientId + ":file";
String fileName = multipartRequest.getFileName(clientId);
Object file = multipartRequest.getFile(clientId);
- fileUpload.setLocalFileName(fileName);
+ fileUpload.setLocalFileName(fullName);
+ fileUpload.setFileName(fileName);
onUploadComplete(context, file, fileUpload);
}
@@ -352,7 +354,7 @@
Object file) {
ValueExpression data = fileUpload
.getValueExpression(_FILES_UPLOADED_ATTRIBUTE_NAME);
- UploadItem item = new UploadItem(fileUpload.getLocalFileName(), file);
+ UploadItem item = new UploadItem(fileUpload.getFileName(), fileUpload.getLocalFileName(),file);
if (data != null) {
if (data.getValue(context.getELContext()) instanceof Collection) {
Collection collection = (Collection) data.getValue(context
@@ -360,7 +362,6 @@
collection.add(item);
}
}
-// fileUpload.queueEvent(new UploadEvent(fileUpload, item));
new UploadEvent(fileUpload, item).queue();
}
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-25 16:59:25 UTC (rev 7213)
+++ trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-03-25 16:59:34 UTC (rev 7214)
@@ -394,6 +394,7 @@
this.labelMarkup = label;
this.disabled = disabled;
+ this.fileNameElement = $(this.id + ":fileName");
this.element.component = this;
this.acceptedTypes = acceptedTypes;
@@ -789,6 +790,7 @@
this.clear(this.activeEntry);
}
this.activeEntry = null;
+ this.fileNameElement.value = '';
this.deleteFrame();
},
@@ -949,7 +951,7 @@
function (state) {
this.updateViewState(state);
}.bind(this));
-
+ this.fileNameElement.value = entryInput.value;
parentForm.submit();
}
Modified: trunk/ui/fileUpload/src/main/templates/org/richfaces/fileUpload.jspx
===================================================================
--- trunk/ui/fileUpload/src/main/templates/org/richfaces/fileUpload.jspx 2008-03-25 16:59:25 UTC (rev 7213)
+++ trunk/ui/fileUpload/src/main/templates/org/richfaces/fileUpload.jspx 2008-03-25 16:59:34 UTC (rev 7214)
@@ -67,6 +67,8 @@
]]>
</jsp:scriptlet>
</span>
+
+ <input type="hidden" name="#{clientId}:fileName" style="display: none;" id="#{clientId}:fileName"/>
<table class="upload_toolbar_decor">
<tr>
<td>
16 years, 9 months
JBoss Rich Faces SVN: r7213 - trunk/framework/api/src/main/java/org/richfaces/model.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2008-03-25 12:59:25 -0400 (Tue, 25 Mar 2008)
New Revision: 7213
Modified:
trunk/framework/api/src/main/java/org/richfaces/model/UploadItem.java
Log:
RF-2765
Modified: trunk/framework/api/src/main/java/org/richfaces/model/UploadItem.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/model/UploadItem.java 2008-03-25 16:40:15 UTC (rev 7212)
+++ trunk/framework/api/src/main/java/org/richfaces/model/UploadItem.java 2008-03-25 16:59:25 UTC (rev 7213)
@@ -19,6 +19,9 @@
/** Users file name */
private String fileName;
+ /** Full file name path */
+ private String fullFileName;
+
/** java.io.File instance */
private File file;
@@ -28,8 +31,9 @@
/**
* Constructor for the UploadItem
*/
- public UploadItem(String fileName, Object file) {
+ public UploadItem(String fileName, String fullName, Object file) {
this.fileName = fileName;
+ this.fullFileName = fullName;
if (null != file) {
if (file.getClass().isAssignableFrom(File.class)) {
this.file = (File) file;
@@ -69,6 +73,11 @@
public String getFileName() {
return fileName;
}
-
+ /**
+ * @return the fullFileName
+ */
+ public String getFullFileName() {
+ return fullFileName;
+ }
}
16 years, 9 months
JBoss Rich Faces SVN: r7212 - trunk/test-applications/jsp/src/main/webapp/Columns.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2008-03-25 12:40:15 -0400 (Tue, 25 Mar 2008)
New Revision: 7212
Modified:
trunk/test-applications/jsp/src/main/webapp/Columns/ColumnsProperty.jsp
Log:
fix remove first
Modified: trunk/test-applications/jsp/src/main/webapp/Columns/ColumnsProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Columns/ColumnsProperty.jsp 2008-03-25 16:39:20 UTC (rev 7211)
+++ trunk/test-applications/jsp/src/main/webapp/Columns/ColumnsProperty.jsp 2008-03-25 16:40:15 UTC (rev 7212)
@@ -45,10 +45,6 @@
<h:outputText value="width:"></h:outputText>
<h:inputText value="#{columns.width}" onchange="submit();">
</h:inputText>
-
- <h:outputText value="first:"></h:outputText>
- <h:inputText value="#{columns.first}" onchange="submit();">
- </h:inputText>
<h:outputText value="sortable"></h:outputText>
<h:selectBooleanCheckbox value="#{columns.sortable}" onchange="submit();">
16 years, 9 months
JBoss Rich Faces SVN: r7211 - trunk/test-applications/jsp/src/main/webapp/WEB-INF.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2008-03-25 12:39:20 -0400 (Tue, 25 Mar 2008)
New Revision: 7211
Modified:
trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-Tree.xml
Log:
-fix
Modified: trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-Tree.xml
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-Tree.xml 2008-03-25 16:37:19 UTC (rev 7210)
+++ trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-Tree.xml 2008-03-25 16:39:20 UTC (rev 7211)
@@ -12,9 +12,4 @@
<managed-bean-class>tree.TreeBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
- <managed-bean>
- <managed-bean-name>tree</managed-bean-name>
- <managed-bean-class>tree.Tree</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
- </managed-bean>
</faces-config>
16 years, 9 months
JBoss Rich Faces SVN: r7210 - trunk/samples/scrollableDataTableDemo/src/main/webapp/pages.
by richfaces-svn-commits@lists.jboss.org
Author: maksimkaszynski
Date: 2008-03-25 12:37:19 -0400 (Tue, 25 Mar 2008)
New Revision: 7210
Modified:
trunk/samples/scrollableDataTableDemo/src/main/webapp/pages/scrollable-grid.xhtml
Log:
Modified: trunk/samples/scrollableDataTableDemo/src/main/webapp/pages/scrollable-grid.xhtml
===================================================================
--- trunk/samples/scrollableDataTableDemo/src/main/webapp/pages/scrollable-grid.xhtml 2008-03-25 16:33:17 UTC (rev 7209)
+++ trunk/samples/scrollableDataTableDemo/src/main/webapp/pages/scrollable-grid.xhtml 2008-03-25 16:37:19 UTC (rev 7210)
@@ -57,7 +57,7 @@
frozenColCount="3"
first="0"
rows="40"
- width="1800px"
+ width="800px"
columnClasses="col"
height="500px" hideWhenScrolling="false">
@@ -204,13 +204,7 @@
<h:outputLink target="_blank" value="resource:///org/ajax4jsf/javascript/jsshell.html">Console</h:outputLink>
- <script>
- //<![CDATA[
- LOG._log = function(msg) {console.log(msg);}
- //]]>
- </script>
-
-
+
</f:view>
</body>
</html>
\ No newline at end of file
16 years, 9 months
JBoss Rich Faces SVN: r7209 - trunk/ui/pickList/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-03-25 12:33:17 -0400 (Tue, 25 Mar 2008)
New Revision: 7209
Added:
trunk/ui/pickList/src/main/java/org/richfaces/renderkit/PickListControlsHelper.java
Log:
helper for pickList
Added: trunk/ui/pickList/src/main/java/org/richfaces/renderkit/PickListControlsHelper.java
===================================================================
--- trunk/ui/pickList/src/main/java/org/richfaces/renderkit/PickListControlsHelper.java (rev 0)
+++ trunk/ui/pickList/src/main/java/org/richfaces/renderkit/PickListControlsHelper.java 2008-03-25 16:33:17 UTC (rev 7209)
@@ -0,0 +1,170 @@
+/**
+ *
+ */
+package org.richfaces.renderkit;
+
+import javax.faces.context.FacesContext;
+
+import org.richfaces.component.UIListShuttle;
+import org.richfaces.component.UIOrderingBaseComponent;
+import org.richfaces.renderkit.html.images.ListShuttleIconCopy;
+import org.richfaces.renderkit.html.images.ListShuttleIconCopyAll;
+import org.richfaces.renderkit.html.images.ListShuttleIconCopyAllDisabled;
+import org.richfaces.renderkit.html.images.ListShuttleIconCopyDisabled;
+import org.richfaces.renderkit.html.images.ListShuttleIconRemove;
+import org.richfaces.renderkit.html.images.ListShuttleIconRemoveAll;
+import org.richfaces.renderkit.html.images.ListShuttleIconRemoveAllDisabled;
+import org.richfaces.renderkit.html.images.ListShuttleIconRemoveDisabled;
+
+/**
+ * @author Anton Belevich
+ *
+ */
+public class PickListControlsHelper extends ListShuttleControlsHelper {
+
+ public final static String BUNDLE_COPY_ALL_LABEL = "RICH_PICK_LIST_COPY_ALL_LABEL";
+ public final static String BUNDLE_COPY_LABEL = "RICH_PICK_LIST_COPY_LABEL";
+ public final static String BUNDLE_REMOVE_ALL_LABEL = "RICH_PICK_LIST_REMOVE_ALL_LABEL";
+ public final static String BUNDLE_REMOVE_LABEL = "RICH_PICK_LIST_REMOVE_LABEL";
+ private final static String FACET_COPY_ALL = "copyAllControl";
+
+ private final static String FACET_REMOVE_ALL = "removeAllControl";
+
+ private final static String FACET_COPY = "copyControl";
+
+ private final static String FACET_REMOVE = "removeControl";
+
+ private final static String FACET_DIS_COPY_ALL = FACET_COPY_ALL + "Disabled";
+
+ private final static String FACET_DIS_REMOVE_ALL = FACET_REMOVE_ALL + "Disabled";
+
+ private final static String FACET_DIS_COPY = FACET_COPY + "Disabled";
+
+ private final static String FACET_DIS_REMOVE = FACET_REMOVE + "Disabled";
+
+ public final static String FACET_CAPTION = "caption";
+
+ private final static String ATTRIBUTE_CE_ONCOPYALLCLICK = "oncopyallclick";
+
+ private final static String ATTRIBUTE_CE_ONREMOVECLICK = "onremoveclick";
+
+ private final static String ATTRIBUTE_CE_ONCOPYCLICK = "oncopyclick";
+
+ private final static String ATTRIBUTE_CE_ONREMOVEALLCLICK = "onremoveallclick";
+
+ public final static String ATTRIBUTE_SOURCE_CAPTION_LABEL = "sourceCaptionLabel";
+
+ public final static String ATTRIBUTE_TARGET_CAPTION_LABEL = "targetCaptionLabel";
+
+ private final static String ATTRIBUTE_CLASS_COPY_ALL_CONTROL = FACET_COPY_ALL + "Class";
+
+ private final static String ATTRIBUTE_CLASS_REMOVE_ALL_CONTROL = FACET_REMOVE_ALL + "Class";
+
+ private final static String ATTRIBUTE_CLASS_REMOVE_CONTROL = FACET_REMOVE + "Class";
+
+ private final static String ATTRIBUTE_CLASS_COPY_CONTROL = FACET_COPY + "Class";
+
+ private final static String ATTRIBUTE_CLASS_DISABLED_CONTROL = "disabledControlClass";
+
+ private final static String DIS_CONTROL_ID_PREFIX = "dis";
+
+ public final static String CONTROL_ID_COPY_ALL = "copyAll";
+
+ public final static String CONTROL_ID_COPY = "copy";
+
+ public final static String CONTROL_ID_REMOVE = "remove";
+
+ public final static String CONTROL_ID_REMOVE_ALL = "removeAll";
+
+ private final static String DEFAULT_LABEL_COPY_ALL = "Copy all";
+ private final static String DEFAULT_LABEL_COPY = "Copy";
+ private final static String DEFAULT_LABEL_REMOVE = "Remove";
+ private final static String DEFAULT_LABEL_REMOVE_ALL = "Remove All";
+
+ public final static String DISABLED_STYLE_PREF = "-disabled";
+
+ private final static String NAME_COPYALL = "copyAll";
+ private final static String NAME_COPYALL_DIS = "disabledCopy";
+ private final static String NAME_COPY = "copy";
+ private final static String NAME_COPY_DIS = "disabledCopy";
+ private final static String NAME_REMOVEALL = "removeAll";
+ private final static String NAME_REMOVEALL_DIS = "disabledCopyAll";
+ private final static String NAME_REMOVE_DIS = "disabledRemove";
+ private final static String NAME_REMOVE = "remove";
+
+ protected static final OrderingComponentRendererBase.ControlsHelper[] HELPERS = new OrderingComponentRendererBase.ControlsHelper[] {
+ new OrderingComponentRendererBase.ControlsHelper(NAME_COPYALL, BUNDLE_COPY_ALL_LABEL, DEFAULT_LABEL_COPY_ALL, ListShuttleIconCopyAll.class
+ .getName(), FACET_COPY_ALL, "-copyall", ATTRIBUTE_CLASS_COPY_ALL_CONTROL, "", CONTROL_ID_COPY_ALL, ATTRIBUTE_CE_ONCOPYALLCLICK, true,
+ "copyAll".concat(OrderingComponentControlsHelper.CONTROL_LABEL_ATTRIBUTE_SUFFIX)) {
+
+ public boolean isRendered(FacesContext context, UIOrderingBaseComponent list) {
+ return ((UIListShuttle) list).isFastMoveControlsVisible();
+ }
+
+ },
+ new OrderingComponentRendererBase.ControlsHelper(NAME_COPYALL_DIS, BUNDLE_COPY_ALL_LABEL, DEFAULT_LABEL_COPY_ALL,
+ ListShuttleIconCopyAllDisabled.class.getName(), FACET_DIS_COPY_ALL, "-disabled", ATTRIBUTE_CLASS_DISABLED_CONTROL, DISABLED_STYLE_PREF,
+ DIS_CONTROL_ID_PREFIX.concat(CONTROL_ID_COPY_ALL), null, false, "copyAll"
+ .concat(OrderingComponentControlsHelper.CONTROL_LABEL_ATTRIBUTE_SUFFIX)) {
+
+ public boolean isRendered(FacesContext context, UIOrderingBaseComponent list) {
+ return ((UIListShuttle) list).isFastMoveControlsVisible();
+ }
+
+ },
+ new OrderingComponentRendererBase.ControlsHelper(NAME_COPY, BUNDLE_COPY_LABEL, DEFAULT_LABEL_COPY, ListShuttleIconCopy.class.getName(), FACET_COPY,
+ "-copy", ATTRIBUTE_CLASS_COPY_CONTROL, "", CONTROL_ID_COPY, ATTRIBUTE_CE_ONCOPYCLICK, true, "copy"
+ .concat(OrderingComponentControlsHelper.CONTROL_LABEL_ATTRIBUTE_SUFFIX)) {
+
+ public boolean isRendered(FacesContext context, UIOrderingBaseComponent list) {
+ return ((UIListShuttle) list).isMoveControlsVisible();
+ }
+
+ },
+ new OrderingComponentRendererBase.ControlsHelper(NAME_COPY_DIS, BUNDLE_COPY_LABEL, DEFAULT_LABEL_COPY, ListShuttleIconCopyDisabled.class.getName(),
+ FACET_DIS_COPY, "-disabled", ATTRIBUTE_CLASS_DISABLED_CONTROL, DISABLED_STYLE_PREF, DIS_CONTROL_ID_PREFIX.concat(CONTROL_ID_COPY), null,
+ false, "copy".concat(OrderingComponentControlsHelper.CONTROL_LABEL_ATTRIBUTE_SUFFIX)) {
+
+ public boolean isRendered(FacesContext context, UIOrderingBaseComponent list) {
+ return ((UIListShuttle) list).isMoveControlsVisible();
+ }
+
+ },
+ new OrderingComponentRendererBase.ControlsHelper(NAME_REMOVE, BUNDLE_REMOVE_LABEL, DEFAULT_LABEL_REMOVE, ListShuttleIconRemove.class.getName(),
+ FACET_REMOVE, "-remove", ATTRIBUTE_CLASS_REMOVE_CONTROL, "", CONTROL_ID_REMOVE, ATTRIBUTE_CE_ONREMOVECLICK, true, "remove"
+ .concat(OrderingComponentControlsHelper.CONTROL_LABEL_ATTRIBUTE_SUFFIX)) {
+
+ public boolean isRendered(FacesContext context, UIOrderingBaseComponent list) {
+ return ((UIListShuttle) list).isMoveControlsVisible();
+ }
+
+ },
+ new OrderingComponentRendererBase.ControlsHelper(NAME_REMOVE_DIS, BUNDLE_REMOVE_LABEL, DEFAULT_LABEL_REMOVE, ListShuttleIconRemoveDisabled.class
+ .getName(), FACET_DIS_REMOVE, "-disabled", ATTRIBUTE_CLASS_DISABLED_CONTROL, DISABLED_STYLE_PREF, DIS_CONTROL_ID_PREFIX
+ .concat(CONTROL_ID_REMOVE), null, false, "remove".concat(OrderingComponentControlsHelper.CONTROL_LABEL_ATTRIBUTE_SUFFIX)) {
+
+ public boolean isRendered(FacesContext context, UIOrderingBaseComponent list) {
+ return ((UIListShuttle) list).isMoveControlsVisible();
+ }
+
+ },
+ new OrderingComponentRendererBase.ControlsHelper(NAME_REMOVEALL, BUNDLE_REMOVE_ALL_LABEL, DEFAULT_LABEL_REMOVE_ALL, ListShuttleIconRemoveAll.class
+ .getName(), FACET_REMOVE_ALL, "-removeall", ATTRIBUTE_CLASS_REMOVE_ALL_CONTROL, "", CONTROL_ID_REMOVE_ALL, ATTRIBUTE_CE_ONREMOVEALLCLICK,
+ true, "removeAll".concat(OrderingComponentControlsHelper.CONTROL_LABEL_ATTRIBUTE_SUFFIX)) {
+
+ public boolean isRendered(FacesContext context, UIOrderingBaseComponent list) {
+ return ((UIListShuttle) list).isFastMoveControlsVisible();
+ }
+
+ },
+ new OrderingComponentRendererBase.ControlsHelper(NAME_REMOVEALL_DIS, BUNDLE_REMOVE_ALL_LABEL, DEFAULT_LABEL_REMOVE_ALL,
+ ListShuttleIconRemoveAllDisabled.class.getName(), FACET_DIS_REMOVE_ALL, "-disabled", ATTRIBUTE_CLASS_DISABLED_CONTROL, DISABLED_STYLE_PREF,
+ DIS_CONTROL_ID_PREFIX.concat(CONTROL_ID_REMOVE_ALL), null, false, "removeAll"
+ .concat(OrderingComponentControlsHelper.CONTROL_LABEL_ATTRIBUTE_SUFFIX)) {
+
+ public boolean isRendered(FacesContext context, UIOrderingBaseComponent list) {
+ return ((UIListShuttle) list).isFastMoveControlsVisible();
+ }
+
+ } };
+}
16 years, 9 months