JBoss Rich Faces SVN: r4207 - trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-11-22 13:14:23 -0500 (Thu, 22 Nov 2007)
New Revision: 4207
Modified:
trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
Log:
Modified: trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
===================================================================
--- trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2007-11-22 18:03:40 UTC (rev 4206)
+++ trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2007-11-22 18:14:23 UTC (rev 4207)
@@ -206,7 +206,7 @@
}
if (this.options.onhide && this.options.onhide != ""){
- this.eventOnHide = new Function("event",this.options.onhide).bindAsEventListener(this);
+ this.eventOnHide = new Function("event",this.options.onhide);
}
ModalPanel.panels.push(this);
18 years, 5 months
JBoss Rich Faces SVN: r4206 - trunk/ui/panelbar/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-11-22 13:03:40 -0500 (Thu, 22 Nov 2007)
New Revision: 4206
Modified:
trunk/ui/panelbar/src/main/resources/org/richfaces/renderkit/html/scripts/panelbar.js
Log:
fix onmouseover, onmouseout, onmousemove, onclick events processing
Modified: trunk/ui/panelbar/src/main/resources/org/richfaces/renderkit/html/scripts/panelbar.js
===================================================================
--- trunk/ui/panelbar/src/main/resources/org/richfaces/renderkit/html/scripts/panelbar.js 2007-11-22 17:58:07 UTC (rev 4205)
+++ trunk/ui/panelbar/src/main/resources/org/richfaces/renderkit/html/scripts/panelbar.js 2007-11-22 18:03:40 UTC (rev 4206)
@@ -21,6 +21,8 @@
this.ch=this.panel.clientHeight;
this.options = options;
this.onitemchange = options.onitemchange;
+ this.onclick = options.onclick;
+
this._attachBehaviors();
this.input=$(panelId+"_panelBarInput");
@@ -34,15 +36,15 @@
this.items = options.items;
if (this.mouseover && this.mouseover != ""){
- Event.observe(this.panel,'mouseover',new Function("event", "return " + this.mouseout + ";").bindAsEventListener(this));
+ Event.observe(this.panel,'mouseover',new Function("event",this.mouseout));
}
if (this.mouseout && this.mouseout != ""){
- Event.observe(this.panel,'mouseout',new Function("event", "return " + this.mouseout + ";").bindAsEventListener(this));
+ Event.observe(this.panel,'mouseout',new Function("event",this.mouseout));
}
if (this.mousemove && this.mousemove != ""){
- Event.observe(this.panel,'mousemove',new Function("event", "return " + this.mouseout + ";").bindAsEventListener(this));
+ Event.observe(this.panel,'mousemove',new Function("event", this.mouseout));
}
this.showSlide(this.slides[this.defaultIndex]);
@@ -135,7 +137,7 @@
return 0;
},
- invokeEvent: function(eventName, event, value, element, eventFunction) {
+ invokeEvent: function(eventName, event, leaveElement,enterElement, element, eventFunction, data) {
var result;
if (eventFunction) {
@@ -156,8 +158,9 @@
}
eventObj.rich = {component:this};
- eventObj.rich.value = value;
-
+ eventObj.rich.enterElement = leaveElement;
+ eventObj.rich.leaveElement = enterElement;
+
try
{
result = eventFunction.call(element, eventObj);
@@ -209,7 +212,7 @@
}
if (this.onclick && this.onclick != ""){
- this.onclickFunction = new Function("return " + this.onclick + ";").bindAsEventListener(this);
+ this.onclickFunction = new Function("event",this.onclick);
}
},
@@ -232,13 +235,13 @@
},
headerOnClick: function(event) {
- if (this.onclickFunction){
- var result = this.onclickFunction();
- if (result != undefined && !result) {
- return;
- }
- }
-
+ if (this.onclickFunction) {
+ var result = this.onclickFunction(event);
+ if (result == false) {
+ return false;
+ }
+ }
+
if (this.content.style.display=="block") return;
//this.header.style.display="none";
//this.header_act.style.display="";
@@ -255,15 +258,13 @@
}
}
- var ret;
- ret = this.slidePanel.invokeEvent("enter",event,enterItem,enterElement,enterItem.onenter);
- ret = this.slidePanel.invokeEvent("leave",event,leaveItem,leaveElement,leaveItem.onleave);
- ret = this.slidePanel.invokeEvent("change",event,this.slidePanel,this.slidePanel.panel,this.slidePanel.onitemchange);
-
- if (ret) {
- this.slidePanel.showSlide(this);
- }
-
+
+ if(!this.slidePanel.invokeEvent("onenter",event,leaveElement, enterElement,enterElement,enterItem.onenter)) return false;
+ if(!this.slidePanel.invokeEvent("onleave",event,leaveElement, enterElement,leaveElement,leaveItem.onleave)) return false;
+ if(!this.slidePanel.invokeEvent("onchangeitem",event,leaveElement, enterElement,this.slidePanel.panel,this.slidePanel.onitemchange)) return false;
+
+ this.slidePanel.showSlide(this);
+
this.slidePanel.panel.style.maxHeight="";
this.slidePanel.panel.style.minHeight="";
},
18 years, 5 months
JBoss Rich Faces SVN: r4205 - branches/3.1.x/samples/orderingListDemo/src/main/webapp/pages.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-11-22 12:58:07 -0500 (Thu, 22 Nov 2007)
New Revision: 4205
Modified:
branches/3.1.x/samples/orderingListDemo/src/main/webapp/pages/index.jsp
Log:
main orderingList uncommented in demo
Modified: branches/3.1.x/samples/orderingListDemo/src/main/webapp/pages/index.jsp
===================================================================
--- branches/3.1.x/samples/orderingListDemo/src/main/webapp/pages/index.jsp 2007-11-22 17:57:06 UTC (rev 4204)
+++ branches/3.1.x/samples/orderingListDemo/src/main/webapp/pages/index.jsp 2007-11-22 17:58:07 UTC (rev 4205)
@@ -37,7 +37,7 @@
<a4j:status startText="START" startStyle="color: red;"
stopText="STOP" stopStyle="color: green;" />
<br />
- <%--h:panelGrid columns="2" columnClasses="columnClass">
+ <h:panelGrid columns="2" columnClasses="columnClass">
<h:panelGroup>
<ol:orderingList id="orderingList1"
value="#{demoBean.items}" var="item"
@@ -180,7 +180,7 @@
</h:column>
</ol:orderingList>
</h:panelGroup>
- </h:panelGrid--%>
+ </h:panelGrid>
<h3>Ordering lists within a4j:repeat</h3>
<a4j:commandButton reRender="repeat" value="Rerender a4j:repeat" />
<h:commandButton value="Clear list" action="#{demoBean.clear}"></h:commandButton>
18 years, 5 months
JBoss Rich Faces SVN: r4204 - branches/3.1.x/ui/orderingList/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-11-22 12:57:06 -0500 (Thu, 22 Nov 2007)
New Revision: 4204
Modified:
branches/3.1.x/ui/orderingList/src/main/java/org/richfaces/renderkit/OrderingListRendererBase.java
Log:
http://jira.jboss.com/jira/browse/RF-1412
Modified: branches/3.1.x/ui/orderingList/src/main/java/org/richfaces/renderkit/OrderingListRendererBase.java
===================================================================
--- branches/3.1.x/ui/orderingList/src/main/java/org/richfaces/renderkit/OrderingListRendererBase.java 2007-11-22 17:50:15 UTC (rev 4203)
+++ branches/3.1.x/ui/orderingList/src/main/java/org/richfaces/renderkit/OrderingListRendererBase.java 2007-11-22 17:57:06 UTC (rev 4204)
@@ -145,7 +145,7 @@
CONTROL_ID_DOWN, ATTRIBUTE_CE_ONDOWNCLICK, true, "downControlLabel") {
public boolean isRendered(FacesContext context, UIOrderingList list) {
- return list.isFastOrderControlsVisible();
+ return list.isOrderControlsVisible();
}
},
@@ -154,7 +154,7 @@
DIS_CONTROL_ID_PREFIX.concat(CONTROL_ID_DOWN), null, false, "downControlLabel") {
public boolean isRendered(FacesContext context, UIOrderingList list) {
- return list.isFastOrderControlsVisible();
+ return list.isOrderControlsVisible();
}
},
@@ -163,7 +163,7 @@
CONTROL_ID_BOTTOM, ATTRIBUTE_CE_ONBOTTOMCLICK, true, "bottomControlLabel") {
public boolean isRendered(FacesContext context, UIOrderingList list) {
- return list.isOrderControlsVisible();
+ return list.isFastOrderControlsVisible();
}
},
@@ -172,7 +172,7 @@
DIS_CONTROL_ID_PREFIX.concat(CONTROL_ID_BOTTOM), null, false, "bottomControlLabel") {
public boolean isRendered(FacesContext context, UIOrderingList list) {
- return list.isOrderControlsVisible();
+ return list.isFastOrderControlsVisible();
}
}
18 years, 5 months
JBoss Rich Faces SVN: r4203 - branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/css.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-11-22 12:50:15 -0500 (Thu, 22 Nov 2007)
New Revision: 4203
Modified:
branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/css/orderingList.xcss
Log:
decoration for active item changed
Modified: branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/css/orderingList.xcss
===================================================================
--- branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/css/orderingList.xcss 2007-11-22 17:43:34 UTC (rev 4202)
+++ branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/css/orderingList.xcss 2007-11-22 17:50:15 UTC (rev 4203)
@@ -118,11 +118,12 @@
.ol_internal_tab tr.ol_select{background : #EAF0F8}
.ol_internal_tab tr.ol_active {
- background : #EAF0F8; color : #4A75B5;
+ /*background : #EAF0F8; color : #4A75B5;*/
}
.ol_internal_tab tr.ol_active td{
- color : #4A75B5;
+ font-weight: bold;
+ /*color : #4A75B5;*/
}
.ol_internal_tab tr.ol_normal {
@@ -239,9 +240,6 @@
</u:selector>
<u:selector name=".ol_internal_tab tr.ol_active">
- <u:style name="background-image">
- <f:resource f:key="org.richfaces.renderkit.html.gradientimages.OrderingListSelectGradient" />
- </u:style>
- <u:style name="background-color" skin="additionalBackgroundColor" />
+ <u:style name="font-weight" value="bold" />
</u:selector>
</f:template>
\ No newline at end of file
18 years, 5 months
JBoss Rich Faces SVN: r4202 - in trunk/sandbox/samples/fileUploadPOC/src/main/webapp: pages and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2007-11-22 12:43:34 -0500 (Thu, 22 Nov 2007)
New Revision: 4202
Added:
trunk/sandbox/samples/fileUploadPOC/src/main/webapp/pages/frame.xhtml
Modified:
trunk/sandbox/samples/fileUploadPOC/src/main/webapp/WEB-INF/web.xml
trunk/sandbox/samples/fileUploadPOC/src/main/webapp/pages/index.xhtml
Log:
New project: fileUploadPOC
Modified: trunk/sandbox/samples/fileUploadPOC/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/sandbox/samples/fileUploadPOC/src/main/webapp/WEB-INF/web.xml 2007-11-22 17:13:46 UTC (rev 4201)
+++ trunk/sandbox/samples/fileUploadPOC/src/main/webapp/WEB-INF/web.xml 2007-11-22 17:43:34 UTC (rev 4202)
@@ -10,6 +10,10 @@
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
+ <context-param>
+ <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
+ <param-value>.xhtml</param-value>
+ </context-param>
<!--
-->
<filter>
Added: trunk/sandbox/samples/fileUploadPOC/src/main/webapp/pages/frame.xhtml
===================================================================
--- trunk/sandbox/samples/fileUploadPOC/src/main/webapp/pages/frame.xhtml (rev 0)
+++ trunk/sandbox/samples/fileUploadPOC/src/main/webapp/pages/frame.xhtml 2007-11-22 17:43:34 UTC (rev 4202)
@@ -0,0 +1,16 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
+ xmlns:c="http://java.sun.com/jsp/jstl/core"
+ >
+ <body>
+ <form action="frame.jsf">
+ <input type="file"/>
+ <input type="file"/>
+ <input type="submit"/>
+ </form>
+ </body>
+</html>
\ No newline at end of file
Modified: trunk/sandbox/samples/fileUploadPOC/src/main/webapp/pages/index.xhtml
===================================================================
--- trunk/sandbox/samples/fileUploadPOC/src/main/webapp/pages/index.xhtml 2007-11-22 17:13:46 UTC (rev 4201)
+++ trunk/sandbox/samples/fileUploadPOC/src/main/webapp/pages/index.xhtml 2007-11-22 17:43:34 UTC (rev 4202)
@@ -6,7 +6,7 @@
xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
xmlns:c="http://java.sun.com/jsp/jstl/core"
>
- <f:view>
-
- </f:view>
+ <body>
+ <iframe src="pages/frame.jsf"/>
+ </body>
</html>
\ No newline at end of file
18 years, 5 months
JBoss Rich Faces SVN: r4201 - branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: vmolotkov
Date: 2007-11-22 12:13:46 -0500 (Thu, 22 Nov 2007)
New Revision: 4201
Modified:
branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/ListBase.js
branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/OrderingList.js
Log:
js files was corrected
Modified: branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/ListBase.js
===================================================================
--- branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/ListBase.js 2007-11-22 17:11:23 UTC (rev 4200)
+++ branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/ListBase.js 2007-11-22 17:13:46 UTC (rev 4201)
@@ -128,8 +128,6 @@
Richfaces.SelectItems.doActive(this.activeItem);
- this.saveState();
- //this.controlListManager();
this.setFocus();
}
},
@@ -153,9 +151,8 @@
Event.stop(event);
}
Richfaces.SelectItems.doActive(this.activeItem);
- this.saveState();
break;
- case 32 : this.invertSelection(event); this.saveState(); break; //blank
+ case 32 : this.invertSelection(event); break; //blank
}
},
@@ -180,9 +177,7 @@
this.changeActiveItems(rows[item.rowIndex + 1], item);
}
- this.saveState();
this.autoScrolling(action, event);
- //this.controlListManager();
},
changeActiveItems : function(newItem, item) {
Modified: branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/OrderingList.js
===================================================================
--- branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/OrderingList.js 2007-11-22 17:11:23 UTC (rev 4200)
+++ branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/OrderingList.js 2007-11-22 17:13:46 UTC (rev 4201)
@@ -59,7 +59,8 @@
},
moveActiveItem : function(action, event) {
- Richfaces.OrderingList.parentClass.method("moveActiveItem").call(this ,action, event);
+ Richfaces.OrderingList.parentClass.method("moveActiveItem").call(this ,action, event);
+ this.saveState();
this.controlListManager();
},
18 years, 5 months
JBoss Rich Faces SVN: r4200 - trunk/framework/impl/src/main/java/org/ajax4jsf/resource.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2007-11-22 12:11:23 -0500 (Thu, 22 Nov 2007)
New Revision: 4200
Modified:
trunk/framework/impl/src/main/java/org/ajax4jsf/resource/TemplateCSSRenderer.java
Log:
RF-1349 refactoring
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/resource/TemplateCSSRenderer.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/resource/TemplateCSSRenderer.java 2007-11-22 17:08:15 UTC (rev 4199)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/resource/TemplateCSSRenderer.java 2007-11-22 17:11:23 UTC (rev 4200)
@@ -68,7 +68,7 @@
CountingOutputWriter countingOutputWriter = new CountingOutputWriter();
template = getTemplate(base, context);
FacesContext facesContext = FacesContext.getCurrentInstance();
- boolean _CompressStyleOn = Boolean.valueOf(facesContext.getExternalContext()
+ boolean _CompressStyleOn = !"false".equals(facesContext.getExternalContext()
.getInitParameter(COMPRESS_STYLE_PARAMETER));
Writer writer = context.getWriter();
int bytesLength;
18 years, 5 months
JBoss Rich Faces SVN: r4199 - trunk/ui/tabPanel/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-11-22 12:08:15 -0500 (Thu, 22 Nov 2007)
New Revision: 4199
Modified:
trunk/ui/tabPanel/src/main/resources/org/richfaces/renderkit/html/scripts/tabPanel.js
Log:
add leftTabName, enteredTabName to the event object
Modified: trunk/ui/tabPanel/src/main/resources/org/richfaces/renderkit/html/scripts/tabPanel.js
===================================================================
--- trunk/ui/tabPanel/src/main/resources/org/richfaces/renderkit/html/scripts/tabPanel.js 2007-11-22 17:05:10 UTC (rev 4198)
+++ trunk/ui/tabPanel/src/main/resources/org/richfaces/renderkit/html/scripts/tabPanel.js 2007-11-22 17:08:15 UTC (rev 4199)
@@ -162,22 +162,28 @@
}
}
if (lastActive && newActive) {
+
+ if(event){
+ event.leftTabName = lastActive.name;
+ event.enteredTabName = newActive.name;
+ }
+
if (lastActive.ontableave && lastActive.ontableave != "") {
- var func = new Function("event", "leftTabName","enteredTabName",lastActive.ontableave);
- var result = func(event, lastActive.name,newActive.name);
+ var func = new Function("event",lastActive.ontableave);
+ var result = func(event);
if (typeof(result) == 'boolean' && !result) return false;
}
if (newActive.ontabenter && newActive.ontabenter != "") {
- var func = new Function("event", "leftTabName","enteredTabName",newActive.ontabenter);
- var result = func(event, lastActive.name,newActive.name);
+ var func = new Function("event",newActive.ontabenter);
+ var result = func(event);
if (typeof(result) == 'boolean' && !result) return false;
}
var tabPanel = RichFaces.tabPanel[pane];
if (tabPanel.ontabchange && tabPanel.ontabchange != "") {
- var func = new Function("event","leftTabName","enteredTabName",tabPanel.ontabchange);
- var result = func(event, lastActive.name,newActive.name);
+ var func = new Function("event",tabPanel.ontabchange);
+ var result = func(event);
if (typeof(result) == 'boolean' && !result) return false;
}
18 years, 5 months
JBoss Rich Faces SVN: r4198 - trunk/ui/scrollableDataTable/src/main/resources/org/richfaces/renderkit/html/css.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2007-11-22 12:05:10 -0500 (Thu, 22 Nov 2007)
New Revision: 4198
Modified:
trunk/ui/scrollableDataTable/src/main/resources/org/richfaces/renderkit/html/css/scrollable-data-table.xcss
Log:
RF-814
Modified: trunk/ui/scrollableDataTable/src/main/resources/org/richfaces/renderkit/html/css/scrollable-data-table.xcss
===================================================================
--- trunk/ui/scrollableDataTable/src/main/resources/org/richfaces/renderkit/html/css/scrollable-data-table.xcss 2007-11-22 17:04:20 UTC (rev 4197)
+++ trunk/ui/scrollableDataTable/src/main/resources/org/richfaces/renderkit/html/css/scrollable-data-table.xcss 2007-11-22 17:05:10 UTC (rev 4198)
@@ -95,8 +95,6 @@
*/
.dr-sdt-hcbody {
white-space: nowrap;
- position: relative;
- display: block;
overflow: hidden;
width: 100%;
font-weight: normal;
@@ -151,8 +149,6 @@
font-weight: normal;
padding: 3px 5px;
white-space: nowrap;
- position: relative;
- display: block;
overflow: hidden;
}
@@ -161,8 +157,6 @@
font-weight: normal;
padding: 0px 0px;
white-space: nowrap;
- position: relative;
- display: block;
overflow: hidden;
width: 100%;
}
@@ -212,9 +206,6 @@
cursor: default;
font-weight: normal;
white-space: nowrap;
- padding: 0px 0px;
- position: relative;
- display: block;
overflow: hidden;
-o-text-overflow: ellipsis;
text-overflow: ellipsis;
18 years, 5 months