JBoss Rich Faces SVN: r5796 - trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-02-04 20:10:42 -0500 (Mon, 04 Feb 2008)
New Revision: 5796
Modified:
trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-item-dnd.js
trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-item.js
Log:
http://jira.jboss.com/jira/browse/RF-1850
Modified: trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-item-dnd.js
===================================================================
--- trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-item-dnd.js 2008-02-05 01:09:52 UTC (rev 5795)
+++ trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-item-dnd.js 2008-02-05 01:10:42 UTC (rev 5796)
@@ -104,18 +104,27 @@
},
getDraggableOptions: function() {
- if (window.drag && window.drag.treeDraggableOptions) {
- return window.drag.treeDraggableOptions;
- }
+ var drag = window.drag;
+
+ if (drag && drag.treeDraggableOptions) {
+
+ return drag.treeDraggableOptions;
+ } else {
+ var opts = this._getDraggableOptions();
- var attr = Richfaces.getNSAttribute("draggableoptions", this.elements.iconElement);
- if (attr) {
- var opts = attr.parseJSON(EventHandlersWalk);
- if (window.drag) {
- window.drag.treeDraggableOptions = opts;
+ if (drag) {
+ drag.treeDraggableOptions = opts;
}
+
return opts;
}
+ },
+
+ _getDraggableOptions: function() {
+ var attr = Richfaces.getNSAttribute("draggableoptions", this.elements.iconElement);
+ if (attr) {
+ return attr.parseJSON(EventHandlersWalk);
+ }
return null;
},
Modified: trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-item.js
===================================================================
--- trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-item.js 2008-02-05 01:09:52 UTC (rev 5795)
+++ trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-item.js 2008-02-05 01:10:42 UTC (rev 5796)
@@ -1,4 +1,5 @@
Tree.Item = Class.create();
+
Tree.Item.prototype = {
initialize: function(id, tree, parent, ajaxUpdate) {
this.parent = parent;
@@ -60,10 +61,10 @@
var handleImgExpandedId = handleId + Tree.ID_DEVIDER + Tree.ID_HANDLE_IMG_EXPANDED;
var handleImgCollapsedId = handleId + Tree.ID_DEVIDER + Tree.ID_HANDLE_IMG_COLLAPSED;
- this.elements.handle = Element.firstDescendant(Element.firstDescendant(handles));
+ this.elements.handle = Richfaces.firstDescendant(Richfaces.firstDescendant(handles));//Element.firstDescendant(Element.firstDescendant(handles));
if (this.elements.handle.id == handleId) {
- this.elements.handleImgCollapsed = this.elements.handle.firstDescendant();
- this.elements.handleImgExpanded = this.elements.handleImgCollapsed.next();
+ this.elements.handleImgCollapsed = Richfaces.firstDescendant(this.elements.handle);
+ this.elements.handleImgExpanded = Richfaces.next(this.elements.handleImgCollapsed);
if (this.elements.handleImgExpanded.id != handleImgExpandedId ||
this.elements.handleImgCollapsed.id != handleImgCollapsedId) {
@@ -76,12 +77,12 @@
this.eventMouseOut = this.processMouseOut.bindAsEventListener(this);
this.eventMouseOver = this.processMouseOver.bindAsEventListener(this);
- var dragOpts = this.getDraggableOptions();
+ var dragOpts = this._getDraggableOptions();
if(dragOpts) {
this.enableDraggableCursors(dragOpts.grab, dragOpts.grabbing);
}
- var dropOpts = this.getDropzoneOptions();;
+ var dropOpts = this.getDropzoneOptions();
if (dropOpts) {
this.enableDropzoneCursors(dropOpts.acceptCursor, dropOpts.rejectCursor);
}
@@ -99,7 +100,6 @@
}
this.childs = null;
- this.elements = null;
},
observeEvents: function() {
@@ -386,10 +386,10 @@
if (this.tree.options.onSelection) this.tree.options.onSelection(this.id);
this.tree.showNode(eText.parentNode);
+ }
- if (e && e["originatingEventType"] == "mousedown" /* can be keydown */) {
- this.startDrag(e);
- }
+ if (e && e["originatingEventType"] == "mousedown" /* can be keydown */) {
+ this.startDrag(e);
}
return true;
16 years, 2 months
JBoss Rich Faces SVN: r5795 - trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-02-04 20:09:52 -0500 (Mon, 04 Feb 2008)
New Revision: 5795
Modified:
trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-draggable.js
Log:
DnD cursors: do not apply cursors if dragType is empty
Modified: trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-draggable.js
===================================================================
--- trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-draggable.js 2008-02-05 01:08:50 UTC (rev 5794)
+++ trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-draggable.js 2008-02-05 01:09:52 UTC (rev 5795)
@@ -181,15 +181,15 @@
startDrag : function(event) {
var contentType = this.getContentType();
-
- if(this.grabbingCursor) {
- if(this.grabCursor && this.grabCursor.visible) {
- this.grabCursor.hideCursor();
- }
- this.grabbingCursor.showCursor();
- }
if (contentType) {
+ if(this.grabbingCursor) {
+ if(this.grabCursor && this.grabCursor.visible) {
+ this.grabCursor.hideCursor();
+ }
+ this.grabbingCursor.showCursor();
+ }
+
if (!this.endDragListener) {
this.dragTrigger = this.moveDrag.bindAsEventListener(this);
16 years, 2 months
JBoss Rich Faces SVN: r5794 - trunk/samples/tree-demo/src/main/webapp/pages.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-02-04 20:08:50 -0500 (Mon, 04 Feb 2008)
New Revision: 5794
Modified:
trunk/samples/tree-demo/src/main/webapp/pages/index.jsp
Log:
Re-render added to tree-demo
Modified: trunk/samples/tree-demo/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/samples/tree-demo/src/main/webapp/pages/index.jsp 2008-02-04 20:49:37 UTC (rev 5793)
+++ trunk/samples/tree-demo/src/main/webapp/pages/index.jsp 2008-02-05 01:08:50 UTC (rev 5794)
@@ -173,6 +173,7 @@
</rich:treeNode>
</rich:tree>
+ <a4j:commandButton value="Re-render tree" reRender="tree" />
<a4j:commandButton value="Increase counter" action="#{bean.incCounter1}" />
<h:outputText value="Enter path to expand, eg. [webApp_:id__1 , webApp_:id__1:7 ]:" />
16 years, 2 months
JBoss Rich Faces SVN: r5793 - trunk/sandbox/samples/fileUploadDemo/src/main/java/org/richfaces.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-02-04 15:49:37 -0500 (Mon, 04 Feb 2008)
New Revision: 5793
Modified:
trunk/sandbox/samples/fileUploadDemo/src/main/java/org/richfaces/Bean.java
Log:
Console output removed
Modified: trunk/sandbox/samples/fileUploadDemo/src/main/java/org/richfaces/Bean.java
===================================================================
--- trunk/sandbox/samples/fileUploadDemo/src/main/java/org/richfaces/Bean.java 2008-02-04 17:00:50 UTC (rev 5792)
+++ trunk/sandbox/samples/fileUploadDemo/src/main/java/org/richfaces/Bean.java 2008-02-04 20:49:37 UTC (rev 5793)
@@ -44,18 +44,20 @@
public void printFile() {
int i = -1;
+ int count = 0;
InputStream stream = fileUpload.getLocalInputStream();
if (stream != null) {
do {
try {
i = stream.read();
+ count++;
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
- System.out.print((char) i);
+ //System.out.print((char) i);
} while (i != -1);
- System.out.println();
+ System.out.println(String.format("%d bytes read", count));
}
}
16 years, 2 months
JBoss Rich Faces SVN: r5792 - trunk/sandbox/samples/combobox-sample/src/main/webapp/pages.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-02-04 12:00:50 -0500 (Mon, 04 Feb 2008)
New Revision: 5792
Modified:
trunk/sandbox/samples/combobox-sample/src/main/webapp/pages/index.jsp
Log:
combo box demo updated
Modified: trunk/sandbox/samples/combobox-sample/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/sandbox/samples/combobox-sample/src/main/webapp/pages/index.jsp 2008-02-04 16:52:44 UTC (rev 5791)
+++ trunk/sandbox/samples/combobox-sample/src/main/webapp/pages/index.jsp 2008-02-04 17:00:50 UTC (rev 5792)
@@ -65,7 +65,7 @@
buttonDisabledClass="buttonDisabledClass"
buttonClass="buttonClass"
listClass="listClass"
- value="#{bean.defaultMessage}"
+ value="#{bean.state}"
valueChangeListener="#{bean.selectionChanged}"
suggestionValues="#{bean.suggestions}"
width = "#{bean.width}"
16 years, 2 months
JBoss Rich Faces SVN: r5791 - management/design/comboBox.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-02-04 11:52:44 -0500 (Mon, 04 Feb 2008)
New Revision: 5791
Modified:
management/design/comboBox/comboBox.doc
Log:
Modified: management/design/comboBox/comboBox.doc
===================================================================
(Binary files differ)
16 years, 2 months
JBoss Rich Faces SVN: r5790 - in trunk/sandbox/samples/combobox-sample/src/main: webapp/WEB-INF and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-02-04 11:43:09 -0500 (Mon, 04 Feb 2008)
New Revision: 5790
Modified:
trunk/sandbox/samples/combobox-sample/src/main/java/org/richfaces/samples/Bean.java
trunk/sandbox/samples/combobox-sample/src/main/webapp/WEB-INF/faces-config.xml
trunk/sandbox/samples/combobox-sample/src/main/webapp/WEB-INF/web.xml
trunk/sandbox/samples/combobox-sample/src/main/webapp/pages/index.jsp
trunk/sandbox/samples/combobox-sample/src/main/webapp/pages/index.xhtml
Log:
Modified: trunk/sandbox/samples/combobox-sample/src/main/java/org/richfaces/samples/Bean.java
===================================================================
--- trunk/sandbox/samples/combobox-sample/src/main/java/org/richfaces/samples/Bean.java 2008-02-04 16:28:46 UTC (rev 5789)
+++ trunk/sandbox/samples/combobox-sample/src/main/java/org/richfaces/samples/Bean.java 2008-02-04 16:43:09 UTC (rev 5790)
@@ -35,17 +35,17 @@
*/
public class Bean {
- String suggestions = "Alabama,Alaska,Arizona,Arkansas,California,Colorado,Connecticut,Delaware,Florida,Maryland,Massachusetts,Michigan,Georgia,Hawaii,Idaho,Indiana,Iowa,Kansas,Kentucky,Louisiana,Maine,Minnesota,Mississippi,Missouri,Montana,Nebraska";
+ String suggestions = "Alabama,Alaska,Arizona,Arkansas,California,Colorado,Connecticut,Delaware,Florida,Massachusetts,Michigan,Georgia,Hawaii,Idaho,Indiana,Iowa,Kansas,Kentucky,Louisiana,Maine,Minnesota,Mississippi,Missouri,Montana,Nebraska";
List selectItems = new ArrayList();
private boolean disabled = false;
- private boolean enableManualInput = false;
+ private boolean enableManualInput = true;
private boolean selectFirstOnUpdate = true;
private boolean filterNewValues = true;
private boolean directInputSuggestions = true;
- private String defaultMessage = "default message ...";
- private String width = "150px";
- private String listWidth = "150px";
- private String listHeight = "100px";
+ private String defaultMessage = "South Carolina";
+ private String width;
+ private String listWidth;
+ private String listHeight;
private String inputSize;
private String onchangeScript;
private String onlistcallScript;
Modified: trunk/sandbox/samples/combobox-sample/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/sandbox/samples/combobox-sample/src/main/webapp/WEB-INF/faces-config.xml 2008-02-04 16:28:46 UTC (rev 5789)
+++ trunk/sandbox/samples/combobox-sample/src/main/webapp/WEB-INF/faces-config.xml 2008-02-04 16:43:09 UTC (rev 5790)
@@ -12,5 +12,17 @@
<managed-bean-name>skinBean</managed-bean-name>
<managed-bean-class>org.richfaces.SkinBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
-</managed-bean>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>carsManager</managed-bean-name>
+ <managed-bean-class>org.richfaces.samples.CarsManager</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <converter>
+ <converter-id>carConverter</converter-id>
+ <converter-class>org.richfaces.samples.converter.CarConverter</converter-class>
+ </converter>
+
+
</faces-config>
Modified: trunk/sandbox/samples/combobox-sample/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/sandbox/samples/combobox-sample/src/main/webapp/WEB-INF/web.xml 2008-02-04 16:28:46 UTC (rev 5789)
+++ trunk/sandbox/samples/combobox-sample/src/main/webapp/WEB-INF/web.xml 2008-02-04 16:43:09 UTC (rev 5790)
@@ -2,7 +2,7 @@
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>Archetype Created Web Application</display-name>
- <!--
+
<context-param>
<param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
<param-value>com.sun.facelets.FaceletViewHandler</param-value>
@@ -10,7 +10,7 @@
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
- </context-param> -->
+ </context-param>
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config.xml</param-value>
Modified: trunk/sandbox/samples/combobox-sample/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/sandbox/samples/combobox-sample/src/main/webapp/pages/index.jsp 2008-02-04 16:28:46 UTC (rev 5789)
+++ trunk/sandbox/samples/combobox-sample/src/main/webapp/pages/index.jsp 2008-02-04 16:43:09 UTC (rev 5790)
@@ -58,13 +58,7 @@
</h:panelGrid>
- <cmb:comboBox disabled="false">
- <f:selectItem itemValue="Oregon"/>
- <f:selectItem itemValue="Pennsylvania"/>
- <f:selectItem itemValue="Rhode Island"/>
- <f:selectItem itemValue="South Carolina"/>
- </cmb:comboBox>
-
+
<cmb:comboBox
disabled="#{bean.disabled}"
inputClass="inputClass"
@@ -88,16 +82,12 @@
onitemselected="#{bean.onitemselectedScript}">
<f:selectItems value="#{bean.selectItems}"/>
<f:selectItem itemValue="Oregon"/>
- <f:selectItem itemValue="Pennsylvania"/>
+ <f:selectItem itemValue="Pennsylvania Oregonfdsf fdsfdsfds dsffdsfdsfdsf fdsfdsfwdsfsfsd fdsfdsfdsfds dfsfdsfdsfds"/>
<f:selectItem itemValue="Rhode Island"/>
<f:selectItem itemValue="South Carolina"/>
+
</cmb:comboBox>
- <cmb:comboBox disabled="false">
- <f:selectItem itemValue="Oregon"/>
- <f:selectItem itemValue="Pennsylvania"/>
- <f:selectItem itemValue="Rhode Island"/>
- <f:selectItem itemValue="South Carolina"/>
- </cmb:comboBox>
+
<br/>
<h:commandButton action="none" value="submit"></h:commandButton>
<br>
Modified: trunk/sandbox/samples/combobox-sample/src/main/webapp/pages/index.xhtml
===================================================================
--- trunk/sandbox/samples/combobox-sample/src/main/webapp/pages/index.xhtml 2008-02-04 16:28:46 UTC (rev 5789)
+++ trunk/sandbox/samples/combobox-sample/src/main/webapp/pages/index.xhtml 2008-02-04 16:43:09 UTC (rev 5790)
@@ -1,24 +1,99 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/xhtml1-transitional.dtd">
-
+<!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -->
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:cb="http://labs.jboss.com/jbossrichfaces/ui/ui/combobox">
+ xmlns:cmb="http://labs.jboss.com/jbossrichfaces/ui/ui/combobox">
-
- <head></head>
- <body>
- <f:view>
- <h:form>
- <cb:comboBox>
- <f:selectItem itemValue="Oregon"/>
- <f:selectItem itemValue="Pennsylvania"/>
- <f:selectItem itemValue="Rhode Island"/>
- <f:selectItem itemValue="South Carolina"/>
- </cb:comboBox>
-
- </h:form>
- </f:view>
- </body>
+ <head>
+ <title></title>
+ </head>
+ <body>
+ <f:view>
+
+ <h:form>
+ <h:selectOneRadio binding="#{skinBean.component}" />
+ <h:commandLink action="#{skinBean.change}" value="set skin" />
+ <h:outputText value="Current skin: #{skinBean.skin}"/><br />
+ </h:form>
+
+ <h:form>
+ <h:panelGrid columns="2">
+ <h:outputText value="is disable (default: false):" />
+ <h:selectBooleanCheckbox value="#{bean.disabled}" />
+
+ <h:outputText value="enableManualInput (default: false):" />
+ <h:selectBooleanCheckbox value="#{bean.enableManualInput}" />
+
+ <h:outputText value="selectFirstOnUpdate (default: true):" />
+ <h:selectBooleanCheckbox value="#{bean.selectFirstOnUpdate}" />
+
+ <h:outputText value="filterNewValues (default: true):" />
+ <h:selectBooleanCheckbox value="#{bean.filterNewValues}" />
+
+ <h:outputText value="directInputSuggestions (default: true):" />
+ <h:selectBooleanCheckbox value="#{bean.directInputSuggestions}" />
+
+ <h:outputText value="defaultMessage is:" />
+ <h:inputText value="#{bean.defaultMessage}" />
+
+ <h:outputText value="width (in 'px'):" />
+ <h:inputText value="#{bean.width}" />
+
+ <h:outputText value="listWidth (in 'px'):" />
+ <h:inputText value="#{bean.listWidth}" />
+
+ <h:outputText value="listHeight (in 'px'):" />
+ <h:inputText value="#{bean.listHeight}" />
+
+ <h:outputText value="inputSize:" />
+ <h:inputText value="#{bean.inputSize}" />
+
+ <h:outputText value="onchange event script:" />
+ <h:inputText value="#{bean.onchangeScript}" />
+
+ <h:outputText value="onlistcall event script:" />
+ <h:inputText value="#{bean.onlistcallScript}" />
+
+ <h:outputText value="onitemselected event script:" />
+ <h:inputText value="#{bean.onitemselectedScript}" />
+
+ </h:panelGrid>
+ <cmb:comboBox
+ disabled="#{bean.disabled}"
+ inputClass="inputClass"
+ buttonDisabledClass="buttonDisabledClass"
+ buttonClass="buttonClass"
+ listClass="listClass"
+ value="#{bean.state}"
+ valueChangeListener="#{bean.selectionChanged}"
+ suggestionValues="#{bean.suggestions}"
+ width = "#{bean.width}"
+ listWidth="#{bean.listWidth}"
+ listHeight="#{bean.listHeight}"
+ enableManualInput="#{bean.enableManualInput}"
+ selectFirstOnUpdate="#{bean.selectFirstOnUpdate}"
+ filterNewValues="#{bean.filterNewValues}"
+ directInputSuggestions="#{bean.directInputSuggestions}"
+ defaultLabel="#{bean.defaultMessage}"
+ inputSize="#{bean.inputSize}"
+ onchange="#{bean.onchangeScript}"
+ onlistcall="#{bean.onlistcallScript}"
+ onitemselected="#{bean.onitemselectedScript}">
+ <f:selectItems value="#{bean.selectItems}"/>
+ <f:selectItem itemValue="Oregon"/>
+ <f:selectItem itemValue="Pennsylvania"/>
+ <f:selectItem itemValue="Rhode Island gsdfgsdgdsgdsgdsgdsggdsgsdgdsgdsgdsgdsgdsgdsgdsgds"/>
+ <f:selectItem itemValue="South Carolina"/>
+
+ </cmb:comboBox>
+
+ <br/>
+ <h:commandButton action="none" value="submit"></h:commandButton>
+ <br/>
+ <h:outputText value="Selected state is: #{bean.state}"></h:outputText>
+ </h:form>
+ </f:view>
+ </body>
</html>
\ No newline at end of file
16 years, 2 months
JBoss Rich Faces SVN: r5789 - trunk/sandbox/ui/pickList/src/main/templates.
by richfaces-svn-commits@lists.jboss.org
Author: vmolotkov
Date: 2008-02-04 11:28:46 -0500 (Mon, 04 Feb 2008)
New Revision: 5789
Modified:
trunk/sandbox/ui/pickList/src/main/templates/htmlPickList.jspx
Log:
component's layout is changed
Modified: trunk/sandbox/ui/pickList/src/main/templates/htmlPickList.jspx
===================================================================
--- trunk/sandbox/ui/pickList/src/main/templates/htmlPickList.jspx 2008-02-04 16:08:07 UTC (rev 5788)
+++ trunk/sandbox/ui/pickList/src/main/templates/htmlPickList.jspx 2008-02-04 16:28:46 UTC (rev 5789)
@@ -148,24 +148,26 @@
</div>
</td>
</tr>
- <script type="text/javascript">
- var clientId = '#{clientId}';
- Event.onReady(function() {
- var cotrolsIdPrefix = [['up', 'disup'], ['down', 'disdown'], ['last', 'dislast'], ['first','disfirst']];
- var listShuttleCotrolsIdPrefix = [['copy', 'discopy'], ['copyAll', 'discopyAll'], ['remove', 'disremove'], ['removeAll','disremoveAll']];
-
- var sourceLayoutManager = new LayoutManager('#{clientId}internal_header_tab', '#{clientId}internal_tab');
- var targetLayoutManager = new LayoutManager('#{clientId}tlInternal_header_tab', '#{clientId}tlInternal_tab');
-
- var listShuttle = new Richfaces.PickList(new Richfaces.PickList.Target('#{clientId}', '#{clientId}tlInternal_tab', '#{clientId}tlInternal_header_tab', '#{clientId}tlFocusKeeper', undefined, Richfaces.PickList.Target.SelectItem, #{this:getColumnClassesAsJSArray(context, component)}, #{this:getRowClassesAsJSArray(context, component)}),
- new Richfaces.PickList.Source('#{clientId}', '#{clientId}internal_tab', '#{clientId}internal_header_tab', '#{clientId}focusKeeper', undefined, Richfaces.PickList.Source.SelectItem, #{this:getColumnClassesAsJSArray(context, component)}, #{this:getRowClassesAsJSArray(context, component)}),
- "#{clientId}", listShuttleCotrolsIdPrefix, "#{switchByClick}", sourceLayoutManager, targetLayoutManager, #{this:getAsEventHandler(context, component, "onlistchanged")},
- "#{clientId}valueKeeper");
- sourceLayoutManager.widthSynchronization();
- targetLayoutManager.widthSynchronization();
- });
- </script>
</vcp:body>
</tbody>
</table>
+ <f:clientId var="clientId"/>
+ <script type="text/javascript">
+
+ var clientId = '#{clientId}';
+ Event.onReady(function() {
+ var cotrolsIdPrefix = [['up', 'disup'], ['down', 'disdown'], ['last', 'dislast'], ['first','disfirst']];
+ var listShuttleCotrolsIdPrefix = [['copy', 'discopy'], ['copyAll', 'discopyAll'], ['remove', 'disremove'], ['removeAll','disremoveAll']];
+
+ var sourceLayoutManager = new LayoutManager('#{clientId}internal_header_tab', '#{clientId}internal_tab');
+ var targetLayoutManager = new LayoutManager('#{clientId}tlInternal_header_tab', '#{clientId}tlInternal_tab');
+
+ var listShuttle = new Richfaces.PickList(new Richfaces.PickList.Target('#{clientId}', '#{clientId}tlInternal_tab', '#{clientId}tlInternal_header_tab', '#{clientId}tlFocusKeeper', undefined, Richfaces.PickList.Target.SelectItem, #{this:getColumnClassesAsJSArray(context, component)}, #{this:getRowClassesAsJSArray(context, component)}),
+ new Richfaces.PickList.Source('#{clientId}', '#{clientId}internal_tab', '#{clientId}internal_header_tab', '#{clientId}focusKeeper', undefined, Richfaces.PickList.Source.SelectItem, #{this:getColumnClassesAsJSArray(context, component)}, #{this:getRowClassesAsJSArray(context, component)}),
+ "#{clientId}", listShuttleCotrolsIdPrefix, "#{switchByClick}", sourceLayoutManager, targetLayoutManager, #{this:getAsEventHandler(context, component, "onlistchanged")},
+ "#{clientId}valueKeeper");
+ sourceLayoutManager.widthSynchronization();
+ targetLayoutManager.widthSynchronization();
+ });
+ </script>
</f:root>
\ No newline at end of file
16 years, 2 months
JBoss Rich Faces SVN: r5788 - trunk/sandbox/ui/pickList/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: vmolotkov
Date: 2008-02-04 11:08:07 -0500 (Mon, 04 Feb 2008)
New Revision: 5788
Modified:
trunk/sandbox/ui/pickList/src/main/resources/org/richfaces/renderkit/html/scripts/PickList.js
Log:
style's names are changed
Modified: trunk/sandbox/ui/pickList/src/main/resources/org/richfaces/renderkit/html/scripts/PickList.js
===================================================================
--- trunk/sandbox/ui/pickList/src/main/resources/org/richfaces/renderkit/html/scripts/PickList.js 2008-02-04 16:07:45 UTC (rev 5787)
+++ trunk/sandbox/ui/pickList/src/main/resources/org/richfaces/renderkit/html/scripts/PickList.js 2008-02-04 16:08:07 UTC (rev 5788)
@@ -64,36 +64,36 @@
Richfaces.PickList.Source.SelectItem = Class.create(Richfaces.PickListSI);
Richfaces.PickList.Source.SelectItem.prototype.CLASSES = {
ROW : {
- ACTIVE : "rich-pickList-source-row-active",
- SELECTED : "rich-pickList-source-row-selected",
- DISABLED : "rich-pickList-source-row-disabled",
- NORMAL : "rich-pickList-source-row"
+ ACTIVE : "rich-picklist-source-row-active",
+ SELECTED : "rich-picklist-source-row-selected",
+ DISABLED : "rich-picklist-source-row-disabled",
+ NORMAL : "rich-picklist-source-row"
},
CELL : {
- ACTIVE : "rich-pickList-source-cell-active",
- SELECTED : "rich-pickList-source-cell-selected",
- DISABLED : "rich-pickList-source-cell-disabled",
- NORMAL : "rich-pickList-source-cell",
- BEGIN: " rich-pickList-source-cell-first",
- END: " rich-pickList-source-cell-last"
+ ACTIVE : "rich-picklist-source-cell-active",
+ SELECTED : "rich-picklist-source-cell-selected",
+ DISABLED : "rich-picklist-source-cell-disabled",
+ NORMAL : "rich-picklist-source-cell",
+ BEGIN: " rich-picklist-source-cell-first",
+ END: " rich-picklist-source-cell-last"
}
};
Richfaces.PickList.Target.SelectItem = Class.create(Richfaces.PickListSI);
Richfaces.PickList.Target.SelectItem.prototype.CLASSES = {
ROW : {
- ACTIVE : "rich-pickList-target-row-active",
- SELECTED : "rich-pickList-target-row-selected",
- DISABLED : "rich-pickList-target-row-disabled",
- NORMAL : "rich-pickList-target-row"
+ ACTIVE : "rich-picklist-target-row-active",
+ SELECTED : "rich-picklist-target-row-selected",
+ DISABLED : "rich-picklist-target-row-disabled",
+ NORMAL : "rich-picklist-target-row"
},
CELL : {
- ACTIVE : "rich-pickList-target-cell-active",
- SELECTED : "rich-pickList-target-cell-selected",
- DISABLED : "rich-pickList-target-cell-disabled",
- NORMAL : "rich-pickList-target-cell",
- BEGIN: " rich-pickList-target-cell-first",
- END: " rich-pickList-target-cell-last"
+ ACTIVE : "rich-picklist-target-cell-active",
+ SELECTED : "rich-picklist-target-cell-selected",
+ DISABLED : "rich-picklist-target-cell-disabled",
+ NORMAL : "rich-picklist-target-cell",
+ BEGIN: " rich-picklist-target-cell-first",
+ END: " rich-picklist-target-cell-last"
}
};
16 years, 2 months
JBoss Rich Faces SVN: r5787 - in trunk/sandbox/ui/pickList/src/main: resources/org/richfaces/renderkit/html/css and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: vmolotkov
Date: 2008-02-04 11:07:45 -0500 (Mon, 04 Feb 2008)
New Revision: 5787
Modified:
trunk/sandbox/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java
trunk/sandbox/ui/pickList/src/main/resources/org/richfaces/renderkit/html/css/picklist.xcss
trunk/sandbox/ui/pickList/src/main/templates/htmlPickList.jspx
Log:
style's names are changed
Modified: trunk/sandbox/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java
===================================================================
--- trunk/sandbox/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java 2008-02-04 16:03:27 UTC (rev 5786)
+++ trunk/sandbox/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java 2008-02-04 16:07:45 UTC (rev 5787)
@@ -191,11 +191,11 @@
StringBuffer rowClassName = new StringBuffer();
StringBuffer cellClassName = new StringBuffer();
if (source) {
- rowClassName.append("rich-pickList-source-row");
- cellClassName.append("rich-pickList-source-cell");
+ rowClassName.append("rich-picklist-source-row");
+ cellClassName.append("rich-picklist-source-cell");
} else {
- rowClassName.append("rich-pickList-target-row");
- cellClassName.append("rich-pickList-target-cell");
+ rowClassName.append("rich-picklist-target-row");
+ cellClassName.append("rich-picklist-target-cell");
}
/*
@@ -379,7 +379,7 @@
for (int i = 0; i < SHUTTLE_HELPERS.length; i++) {
encodeControlFacet(context, component, SHUTTLE_HELPERS[i], clientId, writer, true,
- "rich-list-pickList-button", " rich-pickList-control");
+ "rich-list-picklist-button", " rich-picklist-control");
}
}
Modified: trunk/sandbox/ui/pickList/src/main/resources/org/richfaces/renderkit/html/css/picklist.xcss
===================================================================
--- trunk/sandbox/ui/pickList/src/main/resources/org/richfaces/renderkit/html/css/picklist.xcss 2008-02-04 16:03:27 UTC (rev 5786)
+++ trunk/sandbox/ui/pickList/src/main/resources/org/richfaces/renderkit/html/css/picklist.xcss 2008-02-04 16:07:45 UTC (rev 5787)
@@ -5,15 +5,15 @@
<f:verbatim><![CDATA[
-.rich-pickList-controls {
+.rich-picklist-controls {
padding : 0px 8px 5px 8px;
}
-.rich-pickList-list-content {
+.rich-picklist-list-content {
overflow: auto;
}
-.rich-pickList-internal-tab {
+.rich-picklist-internal-tab {
width:100%;
}
@@ -23,13 +23,13 @@
]]>
</f:verbatim>
-<u:selector name=".rich-pickList-list">
+<u:selector name=".rich-picklist-list">
<u:style name="background-color" skin="tableBackgroundColor"/>
<u:style name="border-width" value="0px" />
<u:style name="border-style" value="none" />
</u:selector>
-<u:selector name=".rich-pickList-source-cell, .rich-pickList-target-cell, .rich-pickList-source-cell *, .rich-pickList-target-cell *">
+<u:selector name=".rich-picklist-source-cell, .rich-picklist-target-cell, .rich-picklist-source-cell *, .rich-picklist-target-cell *">
<u:style name="color" skin="generalTextColor"/>
<u:style name="font-size" skin="generalSizeFont"/>
<u:style name="font-family" skin="generalFamilyFont"/>
@@ -38,92 +38,92 @@
<f:verbatim><![CDATA[
-.rich-pickList-control-disabled, .rich-pickList-control-top, .rich-pickList-control-bottom,
-.rich-pickList-control-up, .rich-pickList-control-down, .rich-pickList-control-copyall,
-.rich-pickList-control-copy, .rich-pickList-control-remove, .rich-pickList-control-removeall {
+.rich-picklist-control-disabled, .rich-picklist-control-top, .rich-picklist-control-bottom,
+.rich-picklist-control-up, .rich-picklist-control-down, .rich-picklist-control-copyall,
+.rich-picklist-control-copy, .rich-picklist-control-remove, .rich-picklist-control-removeall {
border : 1px solid;
margin-bottom : 3px;
}
-.rich-list-pickList-button, .rich-list-pickList-button-disabled {
+.rich-list-picklist-button, .rich-list-picklist-button-disabled {
background : top left repeat-x;
padding : 2px;
}
-.rich-list-pickList-button {
+.rich-list-picklist-button {
cursor : pointer;
}
-.rich-list-pickList-button-light {
+.rich-list-picklist-button-light {
background : top left repeat-x;
border-style: solid;
cursor : pointer;
padding: 1px;
}
-.rich-list-pickList-button-press {
+.rich-list-picklist-button-press {
background : top left repeat-x;
border-style: solid;
padding : 2px 0px 0px 2px;
}
-.rich-list-pickList-button-valign {
+.rich-list-picklist-button-valign {
vertical-align : middle;
}
-.rich-list-pickList-button-layout {
+.rich-list-picklist-button-layout {
padding : 15px 8px 15px 0px;
}
-.rich-list-pickList-button-content {
+.rich-list-picklist-button-content {
padding : 0px 4px 0px 1px;
text-align : left;
white-space: nowrap;
}
-.rich-list-pickList-button-content img {
+.rich-list-picklist-button-content img {
margin-right: 2px;
vertical-align: middle;
}
-a.rich-list-pickList-button-selection:visited,
-a.rich-list-pickList-button-selection:link {
+a.rich-list-picklist-button-selection:visited,
+a.rich-list-picklist-button-selection:link {
color: inherit;
}
-.rich-list-pickList-button-a-disabled {
+.rich-list-picklist-button-a-disabled {
cursor: default;
text-decoration: none;
}
-.rich-pickList-source-items {
+.rich-picklist-source-items {
margin: 0px 0px 8px 8px;
}
-.rich-pickList-target-items {
+.rich-picklist-target-items {
margin: 0px 0px 8px 0px;
}
-.rich-pickList-source-row-active, .rich-pickList-target-row-active {
+.rich-picklist-source-row-active, .rich-picklist-target-row-active {
background : transparent none repeat-x scroll left top;
}
-.rich-pickList-source-row-selected, .rich-pickList-target-row-selected {
+.rich-picklist-source-row-selected, .rich-picklist-target-row-selected {
background : transparent none repeat-x scroll left top;
}
-.rich-pickList-source-cell, .rich-pickList-target-cell {
+.rich-picklist-source-cell, .rich-picklist-target-cell {
padding : 2px;
white-space: nowrap;
border: 0px;
}
-.rich-pickList-source-cell-selected, .rich-pickList-target-cell-selected {
+.rich-picklist-source-cell-selected, .rich-picklist-target-cell-selected {
padding : 2px;
white-space: nowrap;
}
-.rich-pickList-source-cell-active, .rich-pickList-target-cell-active {
+.rich-picklist-source-cell-active, .rich-picklist-target-cell-active {
padding: 1px 2px;
white-space: nowrap;
border-top: 1px dotted;
@@ -133,7 +133,7 @@
]]>
</f:verbatim>
- <u:selector name=".rich-list-pickList">
+ <u:selector name=".rich-list-picklist">
<!--u:style name="background-color" skin="additionalBackgroundColor" />
<u:style name="border-color" skin="tableBorderColor" />
<u:style name="border-width" skin="tableBorderWidth" />
@@ -141,7 +141,7 @@
<u:style name="-moz-user-select" value="-moz-none" />
</u:selector>
-<u:selector name=".rich-list-pickList-button">
+<u:selector name=".rich-list-picklist-button">
<u:style name="background-image">
<f:resource f:key="org.richfaces.renderkit.html.gradientimages.OrderingListButtonGradient" />
</u:style>
@@ -151,7 +151,7 @@
<u:style name="font-size" skin="headerSizeFont"/>
</u:selector>
-<u:selector name=".rich-list-pickList-button-disabled">
+<u:selector name=".rich-list-picklist-button-disabled">
<u:style name="background-image">
<f:resource f:key="org.richfaces.renderkit.html.gradientimages.OrderingListButtonGradient" />
</u:style>
@@ -161,7 +161,7 @@
<u:style name="font-size" skin="headerSizeFont"/>
</u:selector>
- <u:selector name=".rich-list-pickList-button-light">
+ <u:selector name=".rich-list-picklist-button-light">
<u:style name="background-image">
<f:resource f:key="org.richfaces.renderkit.html.gradientimages.OrderingListButtonGradient" />
</u:style>
@@ -173,7 +173,7 @@
<u:style name="color" skin="generalTextColor"/>
</u:selector>
- <u:selector name=".rich-list-pickList-button-press">
+ <u:selector name=".rich-list-picklist-button-press">
<u:style name="background-image">
<f:resource f:key="org.richfaces.renderkit.html.gradientimages.OrderingListClickedGradient" />
</u:style>
@@ -185,52 +185,52 @@
<u:style name="color" skin="generalTextColor"/>
</u:selector>
- <u:selector name=".rich-pickList-source-cell-last, .rich-pickList-target-cell-last">
+ <u:selector name=".rich-picklist-source-cell-last, .rich-picklist-target-cell-last">
<u:style name="border-right-color" skin="selectControlColor" />
</u:selector>
- <u:selector name=".rich-pickList-source-items, .rich-pickList-target-items">
+ <u:selector name=".rich-picklist-source-items, .rich-picklist-target-items">
<u:style name="background-color" skin="generalBackgroundColor" />
<u:style name="border-color" skin="tableBorderColor" />
<u:style name="border-width" skin="tableBorderWidth" />
<u:style name="border-style" value="solid" />
</u:selector>
- <u:selector name=".rich-pickList-source-cell-selected, .rich-pickList-target-cell-selected, .rich-pickList-source-cell-selected *, .rich-pickList-target-cell-selected *">
+ <u:selector name=".rich-picklist-source-cell-selected, .rich-picklist-target-cell-selected, .rich-picklist-source-cell-selected *, .rich-picklist-target-cell-selected *">
<u:style name="color" skin="generalTextColor"/>
<u:style name="font-family" skin="generalFamilyFont" />
<u:style name="font-size" skin="generalSizeFont" />
</u:selector>
- <u:selector name=".rich-pickList-source-cell-active, .rich-pickList-target-cell-active, .rich-pickList-source-cell-active *, .rich-pickList-target-cell-active *">
+ <u:selector name=".rich-picklist-source-cell-active, .rich-picklist-target-cell-active, .rich-picklist-source-cell-active *, .rich-picklist-target-cell-active *">
<u:style name="font-size" skin="generalSizeFont" />
<u:style name="font-family" skin="generalFamilyFont" />
</u:selector>
- <u:selector name=".rich-pickList-source-cell-active, .rich-pickList-target-cell-active" >
+ <u:selector name=".rich-picklist-source-cell-active, .rich-picklist-target-cell-active" >
<u:style name="border-top-color" skin="generalTextColor" />
<u:style name="border-bottom-color" skin="generalTextColor" />
</u:selector>
- <u:selector name=".rich-pickList-control-disabled, .rich-pickList-control-top, .rich-pickList-control-bottom, .rich-pickList-control-up, .rich-pickList-control-down, .rich-pickList-control-copyall, .rich-pickList-control-copy, .rich-pickList-control-remove, .rich-pickList-control-removeall">
+ <u:selector name=".rich-picklist-control-disabled, .rich-picklist-control-top, .rich-picklist-control-bottom, .rich-picklist-control-up, .rich-picklist-control-down, .rich-picklist-control-copyall, .rich-picklist-control-copy, .rich-picklist-control-remove, .rich-picklist-control-removeall">
<u:style name="border-color" skin="tableBorderColor" />
</u:selector>
- <u:selector name=".rich-list-pickList-button-content">
+ <u:selector name=".rich-list-picklist-button-content">
<u:style name="font-family" skin="headerFamilyFont" />
<u:style name="font-size" skin="headerSizeFont" />
</u:selector>
- <u:selector name=".rich-list-pickList-button-selection">
+ <u:selector name=".rich-list-picklist-button-selection">
<u:style name="color" skin="generalTextColor" />
<u:style name="text-decoration" value="none" />
<u:style name="display" value="block" />
</u:selector>
- <u:selector name="a.rich-list-pickList-button-a-disabled a">
+ <u:selector name="a.rich-list-picklist-button-a-disabled a">
<u:style name="color" skin="tabDisabledTextColor"/>
</u:selector>
- <u:selector name=".rich-pickList-source-row-selected, .rich-pickList-target-row-selected">
+ <u:selector name=".rich-picklist-source-row-selected, .rich-picklist-target-row-selected">
<u:style name="background-color" skin="additionalBackgroundColor" />
</u:selector>
}
Modified: trunk/sandbox/ui/pickList/src/main/templates/htmlPickList.jspx
===================================================================
--- trunk/sandbox/ui/pickList/src/main/templates/htmlPickList.jspx 2008-02-04 16:03:27 UTC (rev 5786)
+++ trunk/sandbox/ui/pickList/src/main/templates/htmlPickList.jspx 2008-02-04 16:07:45 UTC (rev 5787)
@@ -29,7 +29,7 @@
<f:clientId var="clientId"/>
- <table id="#{clientId}" class="rich-list-pickList #{component.attributes['styleClass']}"
+ <table id="#{clientId}" class="rich-list-picklist #{component.attributes['styleClass']}"
cellspacing="0" cellpadding="0"
x:passThruWithExclusions="id, class, styleClass">
<tbody>
@@ -55,14 +55,14 @@
<tr>
<td>
- <div class="rich-pickList-source-items #{component.listClass}">
+ <div class="rich-picklist-source-items #{component.listClass}">
<input id="#{clientId}focusKeeper" type="button" value="" style="width: 1px; position: absolute; left: -32767px;"/>
- <table id="#{clientId}table" cellpadding="0" cellspacing="0" class="rich-pickList-body">
+ <table id="#{clientId}table" cellpadding="0" cellspacing="0" class="rich-picklist-body">
<tbody>
<tr>
<td style="border:0px;padding : 0px;">
- <div id="#{clientId}headerBox" class="rich-pickList-list">
+ <div id="#{clientId}headerBox" class="rich-picklist-list">
<jsp:scriptlet>
<![CDATA[
String contentContainerStyle = "";
@@ -82,8 +82,8 @@
}
]]>
</jsp:scriptlet>
- <div id="#{clientId}contentBox" class="rich-pickList-list-content" style="#{contentContainerStyle}">
- <table id="#{clientId}internal_tab" class="rich-pickList-internal-tab" cellpadding="0" cellspacing="0">
+ <div id="#{clientId}contentBox" class="rich-picklist-list-content" style="#{contentContainerStyle}">
+ <table id="#{clientId}internal_tab" class="rich-picklist-internal-tab" cellpadding="0" cellspacing="0">
<tbody id="#{clientId}tbody">
<f:call name="encodeSourceRows" />
</tbody>
@@ -97,7 +97,7 @@
</div>
</td>
<td style="vertical-align: #{component.moveControlsVerticalAlign};" >
- <div class="rich-pickList-controls">
+ <div class="rich-picklist-controls">
<jsp:scriptlet><![CDATA[
encodePickListControlsFacets(context, component);
]]></jsp:scriptlet>
@@ -105,16 +105,16 @@
</td>
<td>
- <div class="rich-pickList-target-items #{component.listClass}" >
+ <div class="rich-picklist-target-items #{component.listClass}" >
<input type="hidden" value=":" style="display: none;" name="#{baseClientId}" />
<f:call name="encodeHiddenField" />
<input id="#{clientId}tlFocusKeeper" type="button" value="" style="width: 1px; position: absolute; left: -32767px;"/>
- <table id="#{clientId}tlTable" cellpadding="0" cellspacing="0" class="rich-pickList-body">
+ <table id="#{clientId}tlTable" cellpadding="0" cellspacing="0" class="rich-picklist-body">
<tbody>
<tr>
<td style="border:0px;padding : 0px;">
- <div id="#{clientId}tlHeaderBox" class="rich-pickList-list">
+ <div id="#{clientId}tlHeaderBox" class="rich-picklist-list">
<jsp:scriptlet>
<![CDATA[
String trContentContainerStyle = "";
@@ -133,8 +133,8 @@
}
]]>
</jsp:scriptlet>
- <div id="#{clientId}tlContentBox" class="rich-pickList-list-content" style="#{trContentContainerStyle}">
- <table id="#{clientId}tlInternal_tab" class="rich-pickList-internal-tab" cellpadding="0" cellspacing="0">
+ <div id="#{clientId}tlContentBox" class="rich-picklist-list-content" style="#{trContentContainerStyle}">
+ <table id="#{clientId}tlInternal_tab" class="rich-picklist-internal-tab" cellpadding="0" cellspacing="0">
<tbody id="#{clientId}tlTbody">
<f:call name="encodeTargetRows" />
</tbody>
16 years, 2 months