JBoss Rich Faces SVN: r10358 - trunk/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-09-08 12:52:36 -0400 (Mon, 08 Sep 2008)
New Revision: 10358
Modified:
trunk/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js
Log:
https://jira.jboss.org/jira/browse/RF-4418
Modified: trunk/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js
===================================================================
--- trunk/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js 2008-09-08 16:51:20 UTC (rev 10357)
+++ trunk/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js 2008-09-08 16:52:36 UTC (rev 10358)
@@ -162,8 +162,9 @@
ffcheck: function(relTarg)
{
+ var parentTagName = this.parent.tagName.toLowerCase();
// FF fix [Exception... "'Permission denied to get property HTMLDivElement.parentNode' when calling method...]
- if (this.parent.tagName.toLowerCase()=="input" && relTarg) {
+ if ((parentTagName == "input" || parentTagName == "textarea") && relTarg) {
var className;
try {
className = relTarg.className;
16 years, 3 months
JBoss Rich Faces SVN: r10357 - branches/3.2.x/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-09-08 12:51:20 -0400 (Mon, 08 Sep 2008)
New Revision: 10357
Modified:
branches/3.2.x/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js
Log:
https://jira.jboss.org/jira/browse/RF-4418
Modified: branches/3.2.x/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js
===================================================================
--- branches/3.2.x/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js 2008-09-08 16:38:59 UTC (rev 10356)
+++ branches/3.2.x/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js 2008-09-08 16:51:20 UTC (rev 10357)
@@ -162,8 +162,9 @@
ffcheck: function(relTarg)
{
+ var parentTagName = this.parent.tagName.toLowerCase();
// FF fix [Exception... "'Permission denied to get property HTMLDivElement.parentNode' when calling method...]
- if (this.parent.tagName.toLowerCase()=="input" && relTarg) {
+ if ((parentTagName == "input" || parentTagName == "textarea") && relTarg) {
var className;
try {
className = relTarg.className;
16 years, 3 months
JBoss Rich Faces SVN: r10356 - trunk/samples/richfaces-demo/src/main/webapp/richfaces/tree/examples.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-09-08 12:38:59 -0400 (Mon, 08 Sep 2008)
New Revision: 10356
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/tree/examples/simpleDnd.xhtml
Log:
Small DnD demo enhancements
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/tree/examples/simpleDnd.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/tree/examples/simpleDnd.xhtml 2008-09-08 16:36:55 UTC (rev 10355)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/tree/examples/simpleDnd.xhtml 2008-09-08 16:38:59 UTC (rev 10356)
@@ -14,8 +14,7 @@
border:none;
}
.indicatorPicture {
- width: 50px;
- height: 50px;
+ width: 80px;
}
</style>
@@ -36,6 +35,8 @@
<h:outputText value="#{item}"/>
</rich:treeNode>
<rich:treeNode type="leaf" dragType="pic">
+ <rich:dndParam name="label" type="drag">#{item}</rich:dndParam>
+
<h:outputText value="#{item}"/>
</rich:treeNode>
</rich:tree>
16 years, 3 months
JBoss Rich Faces SVN: r10355 - branches/3.2.x/samples/richfaces-demo/src/main/webapp/richfaces/tree/examples.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-09-08 12:36:55 -0400 (Mon, 08 Sep 2008)
New Revision: 10355
Modified:
branches/3.2.x/samples/richfaces-demo/src/main/webapp/richfaces/tree/examples/simpleDnd.xhtml
Log:
Small DnD demo enhancements
Modified: branches/3.2.x/samples/richfaces-demo/src/main/webapp/richfaces/tree/examples/simpleDnd.xhtml
===================================================================
--- branches/3.2.x/samples/richfaces-demo/src/main/webapp/richfaces/tree/examples/simpleDnd.xhtml 2008-09-08 16:33:05 UTC (rev 10354)
+++ branches/3.2.x/samples/richfaces-demo/src/main/webapp/richfaces/tree/examples/simpleDnd.xhtml 2008-09-08 16:36:55 UTC (rev 10355)
@@ -14,8 +14,7 @@
border:none;
}
.indicatorPicture {
- width: 50px;
- height: 50px;
+ width: 80px;
}
</style>
@@ -36,6 +35,8 @@
<h:outputText value="#{item}"/>
</rich:treeNode>
<rich:treeNode type="leaf" dragType="pic">
+ <rich:dndParam name="label" type="drag">#{item}</rich:dndParam>
+
<h:outputText value="#{item}"/>
</rich:treeNode>
</rich:tree>
16 years, 3 months
JBoss Rich Faces SVN: r10354 - in trunk/samples: glassX/src/main/resources/org/richfaces/skins/glassx/css and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-09-08 12:33:05 -0400 (Mon, 08 Sep 2008)
New Revision: 10354
Modified:
trunk/samples/darkX/src/main/resources/org/richfaces/skins/darkx/css/toolBar.xcss
trunk/samples/glassX/src/main/resources/org/richfaces/skins/glassx/css/tool-bar.xcss
trunk/samples/laguna/src/main/resources/org/richfaces/skins/laguna/css/toolBar.xcss
Log:
https://jira.jboss.org/jira/browse/RF-4353
Modified: trunk/samples/darkX/src/main/resources/org/richfaces/skins/darkx/css/toolBar.xcss
===================================================================
--- trunk/samples/darkX/src/main/resources/org/richfaces/skins/darkx/css/toolBar.xcss 2008-09-08 16:30:24 UTC (rev 10353)
+++ trunk/samples/darkX/src/main/resources/org/richfaces/skins/darkx/css/toolBar.xcss 2008-09-08 16:33:05 UTC (rev 10354)
@@ -6,7 +6,6 @@
<u:selector name=".rich-toolbar">
<u:style name="padding" value="0px 5px 0px 5px" />
- <u:style name="height" value="0px" />
<u:style name="border-color" skin="newBorder" />
<u:style name="background-position" value="0% 50%" />
Modified: trunk/samples/glassX/src/main/resources/org/richfaces/skins/glassx/css/tool-bar.xcss
===================================================================
--- trunk/samples/glassX/src/main/resources/org/richfaces/skins/glassx/css/tool-bar.xcss 2008-09-08 16:30:24 UTC (rev 10353)
+++ trunk/samples/glassX/src/main/resources/org/richfaces/skins/glassx/css/tool-bar.xcss 2008-09-08 16:33:05 UTC (rev 10354)
@@ -6,7 +6,6 @@
<u:selector name=".rich-toolbar">
<u:style name="padding" value="0px 5px 0px 5px" />
- <u:style name="height" value="0px" />
<u:style name="border-color" skin="newBorder" />
<u:style name="background-position" value="0% 50%" />
Modified: trunk/samples/laguna/src/main/resources/org/richfaces/skins/laguna/css/toolBar.xcss
===================================================================
--- trunk/samples/laguna/src/main/resources/org/richfaces/skins/laguna/css/toolBar.xcss 2008-09-08 16:30:24 UTC (rev 10353)
+++ trunk/samples/laguna/src/main/resources/org/richfaces/skins/laguna/css/toolBar.xcss 2008-09-08 16:33:05 UTC (rev 10354)
@@ -6,7 +6,6 @@
<u:selector name=".rich-toolbar">
<u:style name="padding" value="0px 5px 0px 5px" />
- <u:style name="height" value="0px" />
<u:style name="border-color" skin="newBorder" />
<u:style name="background-position" value="0% 50%" />
16 years, 3 months
JBoss Rich Faces SVN: r10353 - in branches/3.2.x/samples: glassX/src/main/resources/org/richfaces/skins/glassx/css and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-09-08 12:30:24 -0400 (Mon, 08 Sep 2008)
New Revision: 10353
Modified:
branches/3.2.x/samples/darkX/src/main/resources/org/richfaces/skins/darkx/css/toolBar.xcss
branches/3.2.x/samples/glassX/src/main/resources/org/richfaces/skins/glassx/css/tool-bar.xcss
branches/3.2.x/samples/laguna/src/main/resources/org/richfaces/skins/laguna/css/toolBar.xcss
Log:
https://jira.jboss.org/jira/browse/RF-4353
Modified: branches/3.2.x/samples/darkX/src/main/resources/org/richfaces/skins/darkx/css/toolBar.xcss
===================================================================
--- branches/3.2.x/samples/darkX/src/main/resources/org/richfaces/skins/darkx/css/toolBar.xcss 2008-09-08 14:55:46 UTC (rev 10352)
+++ branches/3.2.x/samples/darkX/src/main/resources/org/richfaces/skins/darkx/css/toolBar.xcss 2008-09-08 16:30:24 UTC (rev 10353)
@@ -6,7 +6,6 @@
<u:selector name=".rich-toolbar">
<u:style name="padding" value="0px 5px 0px 5px" />
- <u:style name="height" value="0px" />
<u:style name="border-color" skin="newBorder" />
<u:style name="background-position" value="0% 50%" />
Modified: branches/3.2.x/samples/glassX/src/main/resources/org/richfaces/skins/glassx/css/tool-bar.xcss
===================================================================
--- branches/3.2.x/samples/glassX/src/main/resources/org/richfaces/skins/glassx/css/tool-bar.xcss 2008-09-08 14:55:46 UTC (rev 10352)
+++ branches/3.2.x/samples/glassX/src/main/resources/org/richfaces/skins/glassx/css/tool-bar.xcss 2008-09-08 16:30:24 UTC (rev 10353)
@@ -6,7 +6,6 @@
<u:selector name=".rich-toolbar">
<u:style name="padding" value="0px 5px 0px 5px" />
- <u:style name="height" value="0px" />
<u:style name="border-color" skin="newBorder" />
<u:style name="background-position" value="0% 50%" />
Modified: branches/3.2.x/samples/laguna/src/main/resources/org/richfaces/skins/laguna/css/toolBar.xcss
===================================================================
--- branches/3.2.x/samples/laguna/src/main/resources/org/richfaces/skins/laguna/css/toolBar.xcss 2008-09-08 14:55:46 UTC (rev 10352)
+++ branches/3.2.x/samples/laguna/src/main/resources/org/richfaces/skins/laguna/css/toolBar.xcss 2008-09-08 16:30:24 UTC (rev 10353)
@@ -6,7 +6,6 @@
<u:selector name=".rich-toolbar">
<u:style name="padding" value="0px 5px 0px 5px" />
- <u:style name="height" value="0px" />
<u:style name="border-color" skin="newBorder" />
<u:style name="background-position" value="0% 50%" />
16 years, 3 months
JBoss Rich Faces SVN: r10352 - trunk/ui/contextMenu/src/main/java/org/richfaces/renderkit/html.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-09-08 10:55:46 -0400 (Mon, 08 Sep 2008)
New Revision: 10352
Modified:
trunk/ui/contextMenu/src/main/java/org/richfaces/renderkit/html/ContextMenuRendererBase.java
Log:
https://jira.jboss.org/jira/browse/RF-4421
Modified: trunk/ui/contextMenu/src/main/java/org/richfaces/renderkit/html/ContextMenuRendererBase.java
===================================================================
--- trunk/ui/contextMenu/src/main/java/org/richfaces/renderkit/html/ContextMenuRendererBase.java 2008-09-08 14:45:58 UTC (rev 10351)
+++ trunk/ui/contextMenu/src/main/java/org/richfaces/renderkit/html/ContextMenuRendererBase.java 2008-09-08 14:55:46 UTC (rev 10352)
@@ -111,12 +111,16 @@
writer.writeAttribute(HTML.id_ATTRIBUTE, component.getClientId(context), "id");
}
+ private boolean isEmpty(String s) {
+ return s == null || s.trim().length() == 0;
+ }
+
private void ensureParentPresent(UIComponent component) {
UIComponent parent = component.getParent();
UIContextMenu menu = (UIContextMenu) component;
if (parent != null) {
- if (!HtmlUtil.shouldWriteId(parent) && menu.isAttached()) {
+ if (!HtmlUtil.shouldWriteId(parent) && menu.isAttached() && isEmpty(menu.getAttachTo())) {
throw new FacesException(
"Context menu cannot be attached to the component with id = "
+ parent.getId()
16 years, 3 months
JBoss Rich Faces SVN: r10351 - branches/3.2.x/ui/contextMenu/src/main/java/org/richfaces/renderkit/html.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-09-08 10:45:58 -0400 (Mon, 08 Sep 2008)
New Revision: 10351
Modified:
branches/3.2.x/ui/contextMenu/src/main/java/org/richfaces/renderkit/html/ContextMenuRendererBase.java
Log:
https://jira.jboss.org/jira/browse/RF-4421
Modified: branches/3.2.x/ui/contextMenu/src/main/java/org/richfaces/renderkit/html/ContextMenuRendererBase.java
===================================================================
--- branches/3.2.x/ui/contextMenu/src/main/java/org/richfaces/renderkit/html/ContextMenuRendererBase.java 2008-09-08 13:52:35 UTC (rev 10350)
+++ branches/3.2.x/ui/contextMenu/src/main/java/org/richfaces/renderkit/html/ContextMenuRendererBase.java 2008-09-08 14:45:58 UTC (rev 10351)
@@ -111,12 +111,16 @@
writer.writeAttribute(HTML.id_ATTRIBUTE, component.getClientId(context), "id");
}
+ private boolean isEmpty(String s) {
+ return s == null || s.trim().length() == 0;
+ }
+
private void ensureParentPresent(UIComponent component) {
UIComponent parent = component.getParent();
UIContextMenu menu = (UIContextMenu) component;
if (parent != null) {
- if (!HtmlUtil.shouldWriteId(parent) && menu.isAttached()) {
+ if (!HtmlUtil.shouldWriteId(parent) && menu.isAttached() && isEmpty(menu.getAttachTo())) {
throw new FacesException(
"Context menu cannot be attached to the component with id = "
+ parent.getId()
16 years, 3 months
JBoss Rich Faces SVN: r10350 - branches/3.2.x/samples/richfaces-demo/src/main/webapp/richfaces/gmap/examples.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-09-08 09:52:35 -0400 (Mon, 08 Sep 2008)
New Revision: 10350
Modified:
branches/3.2.x/samples/richfaces-demo/src/main/webapp/richfaces/gmap/examples/mapUsage.xhtml
Log:
https://jira.jboss.org/jira/browse/RF-4374
Modified: branches/3.2.x/samples/richfaces-demo/src/main/webapp/richfaces/gmap/examples/mapUsage.xhtml
===================================================================
--- branches/3.2.x/samples/richfaces-demo/src/main/webapp/richfaces/gmap/examples/mapUsage.xhtml 2008-09-08 13:35:22 UTC (rev 10349)
+++ branches/3.2.x/samples/richfaces-demo/src/main/webapp/richfaces/gmap/examples/mapUsage.xhtml 2008-09-08 13:52:35 UTC (rev 10350)
@@ -10,11 +10,17 @@
.optionList {
height:30px;
}
- </style>
+ </style>
<h:panelGrid columns="2">
<rich:gmap gmapVar="map" zoom="#{gmBean.zoom}" style="width:400px;height:400px" gmapKey="#{gmBean.gmapkey}" id="gmap"/>
<h:panelGroup>
+ <h:form>
+ <a4j:jsFunction name="showPlace" data="#{gmBean.currentPlace}" reRender=":zoom"
+ oncomplete="map.setCenter(new GLatLng(data.lat, data.lng),data.zoom)">
+ <a4j:actionparam name="id" assignTo="#{gmBean.currentId}"></a4j:actionparam>
+ </a4j:jsFunction>
+
<rich:tabPanel switchType="ajax" width="350" height="400">
<rich:tab label="Using Google Map API">
<h:panelGrid columns="2" columnClasses="optionList">
@@ -48,14 +54,7 @@
</rich:tabPanel>
+ </h:form>
</h:panelGroup>
- </h:panelGrid>
- <h:form>
- <a4j:jsFunction name="showPlace" data="#{gmBean.currentPlace}" reRender=":zoom"
- oncomplete="map.setCenter(new GLatLng(data.lat, data.lng),data.zoom)">
- <a4j:actionparam name="id" assignTo="#{gmBean.currentId}"></a4j:actionparam>
- </a4j:jsFunction>
- </h:form>
-
-
+ </h:panelGrid>
</ui:composition>
\ No newline at end of file
16 years, 3 months
JBoss Rich Faces SVN: r10349 - trunk/samples/richfaces-demo/src/main/webapp/richfaces/gmap/examples.
by richfaces-svn-commits@lists.jboss.org
Author: dmorozov
Date: 2008-09-08 09:35:22 -0400 (Mon, 08 Sep 2008)
New Revision: 10349
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/gmap/examples/mapUsage.xhtml
Log:
https://jira.jboss.org/jira/browse/RF-4374
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/gmap/examples/mapUsage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/gmap/examples/mapUsage.xhtml 2008-09-08 13:16:01 UTC (rev 10348)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/gmap/examples/mapUsage.xhtml 2008-09-08 13:35:22 UTC (rev 10349)
@@ -10,11 +10,17 @@
.optionList {
height:30px;
}
- </style>
+ </style>
<h:panelGrid columns="2">
<rich:gmap gmapVar="map" zoom="#{gmBean.zoom}" style="width:400px;height:400px" gmapKey="#{gmBean.gmapkey}" id="gmap"/>
<h:panelGroup>
+ <h:form>
+ <a4j:jsFunction name="showPlace" data="#{gmBean.currentPlace}" reRender=":zoom"
+ oncomplete="map.setCenter(new GLatLng(data.lat, data.lng),data.zoom)">
+ <a4j:actionparam name="id" assignTo="#{gmBean.currentId}"></a4j:actionparam>
+ </a4j:jsFunction>
+
<rich:tabPanel switchType="ajax" width="350" height="400">
<rich:tab label="Using Google Map API">
<h:panelGrid columns="2" columnClasses="optionList">
@@ -48,14 +54,7 @@
</rich:tabPanel>
+ </h:form>
</h:panelGroup>
- </h:panelGrid>
- <h:form>
- <a4j:jsFunction name="showPlace" data="#{gmBean.currentPlace}" reRender=":zoom"
- oncomplete="map.setCenter(new GLatLng(data.lat, data.lng),data.zoom)">
- <a4j:actionparam name="id" assignTo="#{gmBean.currentId}"></a4j:actionparam>
- </a4j:jsFunction>
- </h:form>
-
-
+ </h:panelGrid>
</ui:composition>
\ No newline at end of file
16 years, 3 months