JBoss Rich Faces SVN: r3764 - trunk/cdk/generator/src/main/resources/META-INF/schema/entities.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-11-05 10:57:44 -0500 (Mon, 05 Nov 2007)
New Revision: 3764
Modified:
trunk/cdk/generator/src/main/resources/META-INF/schema/entities/draggable_attributes.ent
trunk/cdk/generator/src/main/resources/META-INF/schema/entities/dropzone_attributes.ent
Log:
http://jira.jboss.com/jira/browse/RF-696 -fixed some errors in description drop and drag attributes.
Modified: trunk/cdk/generator/src/main/resources/META-INF/schema/entities/draggable_attributes.ent
===================================================================
--- trunk/cdk/generator/src/main/resources/META-INF/schema/entities/draggable_attributes.ent 2007-11-05 15:54:49 UTC (rev 3763)
+++ trunk/cdk/generator/src/main/resources/META-INF/schema/entities/draggable_attributes.ent 2007-11-05 15:57:44 UTC (rev 3764)
@@ -2,12 +2,12 @@
<property >
<name>dragValue</name>
<classname>java.lang.Object</classname>
- <description><![CDATA[Data to be sent to the drop zone after a drop event]]></description>
+ <description><![CDATA[Data to be sent to a drop zone after a drop event]]></description>
</property>
<property>
<name>dragType</name>
<classname>java.lang.String</classname>
- <description><![CDATA[Defines a drag zone type that is used for definition of a dragged element, which can be accepted by a drop zone]]></description>
+ <description><![CDATA[A drag zone type that is used for zone definition, which elements can be accepted by a drop zone]]></description>
</property>
<property>
<name>dragIndicator</name>
@@ -17,7 +17,7 @@
<property >
<name>ondragstart</name>
<classname>java.lang.String</classname>
- <description>A JavaScript event handler called before drag object</description>
+ <description>A JavaScript event handler called before drag operation</description>
</property>
<property>
<name>ondragend</name>
@@ -28,7 +28,7 @@
<name>dragListener</name>
<classname>javax.faces.el.MethodBinding</classname>
<description>
- MethodBinding representing an listener method that will be notified afrer drag operation.
+ A listener that processes a drag event
</description>
<methodargs>org.ajax4jsf.event.DragEvent</methodargs>
</property>
Modified: trunk/cdk/generator/src/main/resources/META-INF/schema/entities/dropzone_attributes.ent
===================================================================
--- trunk/cdk/generator/src/main/resources/META-INF/schema/entities/dropzone_attributes.ent 2007-11-05 15:54:49 UTC (rev 3763)
+++ trunk/cdk/generator/src/main/resources/META-INF/schema/entities/dropzone_attributes.ent 2007-11-05 15:57:44 UTC (rev 3764)
@@ -13,7 +13,7 @@
<property>
<name>acceptedTypes</name>
<classname>java.lang.Object</classname>
- <description><![CDATA[List of drag types to be processed by the current drop zone]]></description>
+ <description><![CDATA[A list of drag zones types, which elements are accepted by a drop zone]]></description>
<!-- <defaultvalue><![CDATA[]]></defaultvalue> -->
</property>
<property >
@@ -40,7 +40,7 @@
<name>dropListener</name>
<classname>javax.faces.el.MethodBinding</classname>
<description><![CDATA[
- MethodBinding representing an action listener method that will be notified afrer drop operation
+ A listener that processes a drop event
]]>
</description>
<methodargs>org.ajax4jsf.event.DropEvent</methodargs>
16 years, 7 months
JBoss Rich Faces SVN: r3763 - trunk/docs/userguide/en/src/main/docbook/modules.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-11-05 10:54:49 -0500 (Mon, 05 Nov 2007)
New Revision: 3763
Modified:
trunk/docs/userguide/en/src/main/docbook/modules/RFCtechreqs.xml
Log:
http://jira.jboss.com/jira/browse/RF-391 - Updated guide according to information from the forum (compability with servers and JavaServer Faces Implementations)
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCtechreqs.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCtechreqs.xml 2007-11-05 15:45:57 UTC (rev 3762)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCtechreqs.xml 2007-11-05 15:54:49 UTC (rev 3763)
@@ -83,9 +83,11 @@
<itemizedlist>
<listitem>Sun JSF 1.1 RI - 1.2</listitem>
- <listitem>MyFaces 1.1.1 - 1.1.5</listitem>
+ <listitem>MyFaces 1.1.1 - 1.2</listitem>
<listitem>Facelets JSF 1.1.1 - 1.2</listitem>
+
+ <listitem>Seam 1.2. - 2.0</listitem>
</itemizedlist>
</section>
@@ -111,7 +113,7 @@
<listitem>Glassfish (J2EE 5)</listitem>
- <listitem>JBoss 3.2 - 4.0.x</listitem>
+ <listitem>JBoss 3.2 - 4.2.x</listitem>
<listitem>Sybase EAServer 6.0.1</listitem>
</itemizedlist>
16 years, 7 months
JBoss Rich Faces SVN: r3762 - in trunk/ui/calendar/src/main: java/org/richfaces/component and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2007-11-05 10:45:57 -0500 (Mon, 05 Nov 2007)
New Revision: 3762
Modified:
trunk/ui/calendar/src/main/config/component/calendar.xml
trunk/ui/calendar/src/main/java/org/richfaces/component/UICalendar.java
trunk/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java
Log:
Calendar refactoring
Modified: trunk/ui/calendar/src/main/config/component/calendar.xml
===================================================================
--- trunk/ui/calendar/src/main/config/component/calendar.xml 2007-11-05 15:33:44 UTC (rev 3761)
+++ trunk/ui/calendar/src/main/config/component/calendar.xml 2007-11-05 15:45:57 UTC (rev 3762)
@@ -463,7 +463,7 @@
<property>
<name>cellWidth</name>
- <classname>int</classname>
+ <classname>java.lang.String</classname>
<description>
attribute to set fixed cells width
</description>
@@ -471,7 +471,7 @@
<property>
<name>cellHeight</name>
- <classname>int</classname>
+ <classname>java.lang.String</classname>
<description>
attribute to set fixed cells height
</description>
Modified: trunk/ui/calendar/src/main/java/org/richfaces/component/UICalendar.java
===================================================================
--- trunk/ui/calendar/src/main/java/org/richfaces/component/UICalendar.java 2007-11-05 15:33:44 UTC (rev 3761)
+++ trunk/ui/calendar/src/main/java/org/richfaces/component/UICalendar.java 2007-11-05 15:45:57 UTC (rev 3762)
@@ -171,13 +171,13 @@
public abstract void setIsDayEnabled(String isDayEnabled);
- public abstract int getCellHeight();
+ public abstract String getCellHeight();
- public abstract void setCellHeight(int cellHeight);
+ public abstract void setCellHeight(String cellHeight);
- public abstract int getCellWidth();
+ public abstract String getCellWidth();
- public abstract void setCellWidth(int cellWidth);
+ public abstract void setCellWidth(String cellWidth);
// TODO onclick add users onclick
Modified: trunk/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java
===================================================================
--- trunk/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java 2007-11-05 15:33:44 UTC (rev 3761)
+++ trunk/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java 2007-11-05 15:45:57 UTC (rev 3762)
@@ -207,42 +207,48 @@
public void dayCellClass(FacesContext context, UIComponent component)
throws IOException {
// if cellWidth/Height is set send dayCellClass to script
- Integer cellwidth = (Integer) component.getAttributes()
- .get("cellWidth");
- Integer cellheight = (Integer) component.getAttributes().get(
- "cellHeight");
+ String cellwidth = (String) component.getAttributes().get("cellWidth");
+ String cellheight = (String) component.getAttributes()
+ .get("cellHeight");
ResponseWriter writer = context.getResponseWriter();
String clientId = component.getClientId(context);
- String divStyle="";
- if (cellwidth != null && cellwidth.intValue() > 0){
- divStyle = divStyle + "width:"+ cellwidth.toString() + "px;";
- }
- if(cellheight != null
- && cellheight.intValue() > 0){
- divStyle = divStyle +"height:"+ cellheight.toString() + "px;";
+ String divStyle = "";
+ if (cellwidth != null && cellwidth.length() != 0) {
+ if (cellwidth.contains("px") || cellwidth.contains("%")) {
+ divStyle = divStyle + "width:" + cellwidth + ";";
+ } else {
+ divStyle = divStyle + "width:" + cellwidth + "px;";
+ }
}
-
- if(divStyle.length()!=0){
+ if (cellheight != null && cellheight.length() != 0) {
+ if (cellheight.contains("px") || cellheight.contains("%")) {
+ divStyle = divStyle + "height:" + cellheight.toString() + ";";
+ } else {
+ divStyle = divStyle + "height:" + cellheight.toString() + "px;";
+ }
+ }
+
+ if (divStyle.length() != 0) {
writer.startElement("style", component);
getUtils().writeAttribute(writer, "type", "text/css");
- writer.writeText("." + clientId.replace(':', '_') + "DayCell{"+divStyle+"}", null);
+ writer.writeText("." + clientId.replace(':', '_') + "DayCell{"
+ + divStyle + "}", null);
writer.endElement("style");
}
}
- public void writeDayCellClass(FacesContext context, UIComponent component)
+ public void writeDayCellClass(FacesContext context, UIComponent component)
throws IOException {
- Integer cellwidth = (Integer) component.getAttributes()
- .get("cellWidth");
- Integer cellheight = (Integer) component.getAttributes().get(
- "cellHeight");
+ String cellwidth = (String) component.getAttributes().get("cellWidth");
+ String cellheight = (String) component.getAttributes()
+ .get("cellHeight");
ResponseWriter writer = context.getResponseWriter();
- if (cellwidth != null && cellwidth.intValue() > 0 || cellheight != null
- && cellheight.intValue() > 0) {
-
+ if (cellwidth != null && cellwidth.length() != 0 || cellheight != null
+ && cellheight.length() != 0) {
String clientId = component.getClientId(context);
- writer.writeText(",\n dayCellClass: '" + clientId.replace(':', '_') + "DayCell'", null);
+ writer.writeText(",\n dayCellClass: '" + clientId.replace(':', '_')
+ + "DayCell'", null);
}
}
16 years, 7 months
JBoss Rich Faces SVN: r3761 - management/design/contextMenu.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2007-11-05 10:33:44 -0500 (Mon, 05 Nov 2007)
New Revision: 3761
Modified:
management/design/contextMenu/Context Menu - Vision.doc
Log:
Modified: management/design/contextMenu/Context Menu - Vision.doc
===================================================================
(Binary files differ)
16 years, 7 months
JBoss Rich Faces SVN: r3760 - in management/design: contextMenu and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2007-11-05 10:28:04 -0500 (Mon, 05 Nov 2007)
New Revision: 3760
Added:
management/design/contextMenu/
management/design/contextMenu/Context Menu - Vision.doc
Log:
Added: management/design/contextMenu/Context Menu - Vision.doc
===================================================================
(Binary files differ)
Property changes on: management/design/contextMenu/Context Menu - Vision.doc
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
16 years, 7 months
JBoss Rich Faces SVN: r3759 - in trunk/ui: datascroller/src/main/config/component and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2007-11-05 10:15:32 -0500 (Mon, 05 Nov 2007)
New Revision: 3759
Modified:
trunk/ui/dataTable/src/main/config/component/dataGrid.xml
trunk/ui/dataTable/src/main/config/component/dataList.xml
trunk/ui/dataTable/src/main/config/component/dataTable.xml
trunk/ui/dataTable/src/main/config/component/subTable.xml
trunk/ui/datascroller/src/main/config/component/datascroller.xml
trunk/ui/drag-drop/src/main/config/component/dragSupport.xml
trunk/ui/drag-drop/src/main/config/component/dropSupport.xml
trunk/ui/scrollableDataTable/src/main/config/component/scrollable-data-table.xml
Log:
RF-1285
Modified: trunk/ui/dataTable/src/main/config/component/dataGrid.xml
===================================================================
--- trunk/ui/dataTable/src/main/config/component/dataGrid.xml 2007-11-05 13:06:54 UTC (rev 3758)
+++ trunk/ui/dataTable/src/main/config/component/dataGrid.xml 2007-11-05 15:15:32 UTC (rev 3759)
@@ -116,7 +116,7 @@
</property>
<property>
<name>rowKey</name>
- <classname>java.lang.String</classname>
+ <classname>java.lang.Object</classname>
<description>
RowKey is a representation of an identifier for a specific data row
</description>
Modified: trunk/ui/dataTable/src/main/config/component/dataList.xml
===================================================================
--- trunk/ui/dataTable/src/main/config/component/dataList.xml 2007-11-05 13:06:54 UTC (rev 3758)
+++ trunk/ui/dataTable/src/main/config/component/dataList.xml 2007-11-05 15:15:32 UTC (rev 3759)
@@ -44,7 +44,7 @@
</property>
<property>
<name>rowKey</name>
- <classname>java.lang.String</classname>
+ <classname>java.lang.Object</classname>
<description>RowKey is a representation of an identifier for a specific data row</description>
</property>
@@ -121,16 +121,6 @@
<description>This attribute defines rows that are updated after an AJAX request</description>
</property>
<property>
- <name>rowKey</name>
- <classname>java.lang.String</classname>
- <description>RowKey is a representation of an identifier for a specific data row</description>
- </property>
- <property>
- <name>rowKeyVar</name>
- <classname>java.lang.String</classname>
- <description>The attribute provides access to a row key in a Request scope</description>
- </property>
- <property>
<name>value</name>
<classname>java.lang.Object</classname>
<description>The current value for this component</description>
@@ -204,17 +194,8 @@
<classname>java.util.Set</classname>
<description>This attribute defines rows that are updated after an AJAX request</description>
</property>
+
<property>
- <name>rowKey</name>
- <classname>java.lang.String</classname>
- <description>RowKey is a representation of an identifier for a specific data row</description>
- </property>
- <property>
- <name>rowKeyVar</name>
- <classname>java.lang.String</classname>
- <description>The attribute provides access to a row key in a Request scope</description>
- </property>
- <property>
<name>value</name>
<classname>java.lang.Object</classname>
<description>The current value for this component</description>
Modified: trunk/ui/dataTable/src/main/config/component/dataTable.xml
===================================================================
--- trunk/ui/dataTable/src/main/config/component/dataTable.xml 2007-11-05 13:06:54 UTC (rev 3758)
+++ trunk/ui/dataTable/src/main/config/component/dataTable.xml 2007-11-05 15:15:32 UTC (rev 3759)
@@ -104,7 +104,7 @@
</property>
<property>
<name>rowKey</name>
- <classname>java.lang.String</classname>
+ <classname>java.lang.Object</classname>
<description>
RowKey is a representation of an identifier for a specific data row
</description>
Modified: trunk/ui/dataTable/src/main/config/component/subTable.xml
===================================================================
--- trunk/ui/dataTable/src/main/config/component/subTable.xml 2007-11-05 13:06:54 UTC (rev 3758)
+++ trunk/ui/dataTable/src/main/config/component/subTable.xml 2007-11-05 15:15:32 UTC (rev 3759)
@@ -68,7 +68,7 @@
</property>
<property>
<name>rowKey</name>
- <classname>java.lang.String</classname>
+ <classname>java.lang.Object</classname>
<description>
RowKey is a representation of an identifier for a specific data row
</description>
Modified: trunk/ui/datascroller/src/main/config/component/datascroller.xml
===================================================================
--- trunk/ui/datascroller/src/main/config/component/datascroller.xml 2007-11-05 13:06:54 UTC (rev 3758)
+++ trunk/ui/datascroller/src/main/config/component/datascroller.xml 2007-11-05 15:15:32 UTC (rev 3759)
@@ -79,13 +79,14 @@
<property>
<name>scrollerListener</name>
+ <classname>javax.el.MethodExpression</classname>
<description>MethodBinding representing an action listener method that will be notified after scrolling
</description>
</property>
<property>
<name>rendered</name>
- <classname>java.lang.String</classname>
+ <classname>boolean</classname>
<description>If "false", this component is not rendered</description>
</property>
<property>
Modified: trunk/ui/drag-drop/src/main/config/component/dragSupport.xml
===================================================================
--- trunk/ui/drag-drop/src/main/config/component/dragSupport.xml 2007-11-05 13:06:54 UTC (rev 3758)
+++ trunk/ui/drag-drop/src/main/config/component/dragSupport.xml 2007-11-05 15:15:32 UTC (rev 3759)
@@ -42,7 +42,7 @@
-->
<property elonly="true" attachedstate="true">
<name>dragListener</name>
- <classname>javax.el.MethodExpression</classname>
+ <classname>javax.faces.el.MethodBinding</classname>
<description>
MethodBinding representing an action listener method that will be notified after drag operation
</description>
Modified: trunk/ui/drag-drop/src/main/config/component/dropSupport.xml
===================================================================
--- trunk/ui/drag-drop/src/main/config/component/dropSupport.xml 2007-11-05 13:06:54 UTC (rev 3758)
+++ trunk/ui/drag-drop/src/main/config/component/dropSupport.xml 2007-11-05 15:15:32 UTC (rev 3759)
@@ -34,7 +34,7 @@
<property elonly="true" attachedstate="true">
<name>dropListener</name>
- <classname>javax.el.MethodExpression</classname>
+ <classname>javax.faces.el.MethodBinding</classname>
<description><![CDATA[
MethodBinding representing an action listener method that will be notified after drop operation.
]]>
Modified: trunk/ui/scrollableDataTable/src/main/config/component/scrollable-data-table.xml
===================================================================
--- trunk/ui/scrollableDataTable/src/main/config/component/scrollable-data-table.xml 2007-11-05 13:06:54 UTC (rev 3758)
+++ trunk/ui/scrollableDataTable/src/main/config/component/scrollable-data-table.xml 2007-11-05 15:15:32 UTC (rev 3759)
@@ -185,7 +185,7 @@
<property>
<name>rowKey</name>
- <classname>java.lang.String</classname>
+ <classname>java.lang.Object</classname>
<description>The attribute is a representation of an identifier for a specific data row</description>
</property>
16 years, 7 months
JBoss Rich Faces SVN: r3758 - trunk/ui/dataTable/src/test/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2007-11-05 08:06:54 -0500 (Mon, 05 Nov 2007)
New Revision: 3758
Modified:
trunk/ui/dataTable/src/test/java/org/richfaces/component/DataGridComponentTest.java
Log:
commented System.out.print
Modified: trunk/ui/dataTable/src/test/java/org/richfaces/component/DataGridComponentTest.java
===================================================================
--- trunk/ui/dataTable/src/test/java/org/richfaces/component/DataGridComponentTest.java 2007-11-05 12:59:39 UTC (rev 3757)
+++ trunk/ui/dataTable/src/test/java/org/richfaces/component/DataGridComponentTest.java 2007-11-05 13:06:54 UTC (rev 3758)
@@ -140,7 +140,7 @@
HtmlPage page = renderView();
assertNotNull(page);
- System.out.println(page.asXml());
+ //System.out.println(page.asXml());
HtmlElement table = page.getHtmlElementById(dataGrid
.getClientId(facesContext));
16 years, 7 months
JBoss Rich Faces SVN: r3757 - in trunk/sandbox/ui/orderingList/src/main: templates/org/richfaces and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: vmolotkov
Date: 2007-11-05 07:59:39 -0500 (Mon, 05 Nov 2007)
New Revision: 3757
Modified:
trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/LayoutManager.js
trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/OrderingList.js
trunk/sandbox/ui/orderingList/src/main/templates/org/richfaces/htmlOrderingList.jspx
Log:
fixed bug for IE
Modified: trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/LayoutManager.js
===================================================================
--- trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/LayoutManager.js 2007-11-05 12:44:15 UTC (rev 3756)
+++ trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/LayoutManager.js 2007-11-05 12:59:39 UTC (rev 3757)
@@ -29,7 +29,7 @@
if (i == contentCells.length - 1) {
width = width + LayoutManager.SCROLL_WIDTH;
headerCells[i].firstChild.style.width = width;
- headerCells[i].style.width = width;
+ headerCells[i].style.width = width;
} else {
headerCells[i].firstChild.style.width = width;
headerCells[i].style.width = width;
@@ -40,4 +40,8 @@
LayoutManager.prototype.scrollHandler = function(obj) {
obj.headerDiv.scrollLeft = obj.contentDiv.scrollLeft;
+}
+
+LayoutManager.isIE = function() {
+ return (/MSIE/.test(navigator.userAgent) && !window.opera);
}
\ No newline at end of file
Modified: trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/OrderingList.js
===================================================================
--- trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/OrderingList.js 2007-11-05 12:44:15 UTC (rev 3756)
+++ trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/OrderingList.js 2007-11-05 12:59:39 UTC (rev 3757)
@@ -29,6 +29,10 @@
this.focusKeeper.onkeydown = function(e) {
obj.onkeydownHandler(window.event || e);
}
+
+ //FIXME
+ var layoutManager = new LayoutManager('internal_header_tab', 'internal_tab');
+ layoutManager.widthSynchronization();
}
Shuttle.ASC = "acs";
Modified: trunk/sandbox/ui/orderingList/src/main/templates/org/richfaces/htmlOrderingList.jspx
===================================================================
--- trunk/sandbox/ui/orderingList/src/main/templates/org/richfaces/htmlOrderingList.jspx 2007-11-05 12:44:15 UTC (rev 3756)
+++ trunk/sandbox/ui/orderingList/src/main/templates/org/richfaces/htmlOrderingList.jspx 2007-11-05 12:59:39 UTC (rev 3757)
@@ -19,14 +19,12 @@
<script type="text/javascript">
function init() {
var shuttle = new Shuttle('#{clientId}', 'internal_tab', '#{clientId}focusKeeper', '#{clientId}valueKeeper');
- var layoutManager = new LayoutManager('internal_header_tab', 'internal_tab');
- layoutManager.widthSynchronization();
Shuttle.setFocus('#{clientId}focusKeeper');
document.getElementById('up').onclick = function() {shuttle.moveSelectedItems('up');};
document.getElementById('down').onclick = function() {shuttle.moveSelectedItems('down');};
document.getElementById('first').onclick = function() {shuttle.moveSelectedItems('first');};
document.getElementById('last').onclick = function() {shuttle.moveSelectedItems('last');};
- document.getElementById('#{clientId}table').onclick = function(e) {shuttle.onclickHandler(window.event || e);}
+ document.getElementById('#{clientId}table').onclick = function(e) {shuttle.onclickHandler(window.event || e);};
}
</script>
@@ -64,8 +62,9 @@
<a id="last" href="#" >last</a>
</div>
<script type="text/javascript">
- document.body.onselectstart = function() {return false;};
+ //document.body.onselectstart = function() {return false;};
document.body.className = "body";
- document.body.onload = init();
+ if(LayoutManager.isIE()) document.body.onload = init;
+ else document.body.onload = init();
</script>
</f:root>
\ No newline at end of file
16 years, 7 months
JBoss Rich Faces SVN: r3756 - branches/3.1.x/test-applications/facelets/src/main/webapp/pages/Rich.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2007-11-05 07:44:15 -0500 (Mon, 05 Nov 2007)
New Revision: 3756
Modified:
branches/3.1.x/test-applications/facelets/src/main/webapp/pages/Rich/Rich.xhtml
Log:
fix js bug for IE
Modified: branches/3.1.x/test-applications/facelets/src/main/webapp/pages/Rich/Rich.xhtml
===================================================================
--- branches/3.1.x/test-applications/facelets/src/main/webapp/pages/Rich/Rich.xhtml 2007-11-05 12:31:58 UTC (rev 3755)
+++ branches/3.1.x/test-applications/facelets/src/main/webapp/pages/Rich/Rich.xhtml 2007-11-05 12:44:15 UTC (rev 3756)
@@ -10,9 +10,19 @@
<title></title>
<script type="text/javascript">
- function print(info, text){
- window.document.getElementById(info).value = text;
- window.document.getElementById(info).type = "text";
+ function print(elementID, value) {
+ var oldObject = window.document.getElementById(elementID);
+ var newObject = window.document.createElement('input');
+ newObject.type = "text";
+ newObject.size = oldObject.size;
+ newObject.value = value;
+ newObject.id = oldObject.id;
+ //if(oldObject.size) newObject.size = oldObject.size;
+ //if(oldObject.value) newObject.value = value;
+ //if(oldObject.id) newObject.id = oldObject.id;
+ //if(oldObject.name) newObject.name = oldObject.name;
+ //if(oldObject.className) newObject.className = oldObject.className;
+ oldObject.parentNode.replaceChild(newObject,oldObject);
}
</script>
<link rel="stylesheet"
@@ -33,11 +43,11 @@
<f:facet name="controls">
<h:graphicImage value="/pics/error.gif" onclick="Richfaces.hideModalPanel('eventInfoID');"/>
</f:facet>
+
<ui:include src="/pages/Action/EventInfo.xhtml" />
-
+
</rich:modalPanel>
<a4j:commandButton value="Show event" onclick="Richfaces.showModalPanel('eventInfoID');return false;"></a4j:commandButton>
-
</body>
</f:view>
</html>
16 years, 7 months
JBoss Rich Faces SVN: r3755 - trunk/ui/drag-drop/src/test/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2007-11-05 07:31:58 -0500 (Mon, 05 Nov 2007)
New Revision: 3755
Modified:
trunk/ui/drag-drop/src/test/java/org/richfaces/component/DragDropTest.java
Log:
commented System.out.print
Modified: trunk/ui/drag-drop/src/test/java/org/richfaces/component/DragDropTest.java
===================================================================
--- trunk/ui/drag-drop/src/test/java/org/richfaces/component/DragDropTest.java 2007-11-05 12:27:26 UTC (rev 3754)
+++ trunk/ui/drag-drop/src/test/java/org/richfaces/component/DragDropTest.java 2007-11-05 12:31:58 UTC (rev 3755)
@@ -163,7 +163,7 @@
assertNotNull(page);
List scripts = page.getDocumentElement().getHtmlElementsByTagName(
"script");
- System.out.println(page.asXml());
+ //System.out.println(page.asXml());
for (Iterator it = scripts.iterator(); it.hasNext();) {
HtmlScript item = (HtmlScript) it.next();
String srcAttr = item.getSrcAttribute();
16 years, 7 months