JBoss Rich Faces SVN: r159 - trunk/richfaces/menu-components/src/main/java/org/richfaces/renderkit/html.
by richfaces-svn-commits@lists.jboss.org
Author: F.antonov
Date: 2007-03-26 10:49:50 -0400 (Mon, 26 Mar 2007)
New Revision: 159
Modified:
trunk/richfaces/menu-components/src/main/java/org/richfaces/renderkit/html/MenuItemRendererBase.java
Log:
Modified: trunk/richfaces/menu-components/src/main/java/org/richfaces/renderkit/html/MenuItemRendererBase.java
===================================================================
--- trunk/richfaces/menu-components/src/main/java/org/richfaces/renderkit/html/MenuItemRendererBase.java 2007-03-26 14:49:05 UTC (rev 158)
+++ trunk/richfaces/menu-components/src/main/java/org/richfaces/renderkit/html/MenuItemRendererBase.java 2007-03-26 14:49:50 UTC (rev 159)
@@ -24,10 +24,12 @@
import java.io.IOException;
import javax.faces.component.UIComponent;
+import javax.faces.component.UIForm;
import javax.faces.context.FacesContext;
import org.ajax4jsf.framework.renderer.ComponentVariables;
import org.ajax4jsf.framework.renderer.ComponentsVariableResolver;
+import org.ajax4jsf.framework.renderer.RendererUtils;
import org.richfaces.component.UIMenuItem;
import org.richfaces.component.util.ViewUtil;
import org.richfaces.renderkit.CompositeRenderer;
@@ -36,6 +38,8 @@
public class MenuItemRendererBase extends CompositeRenderer {
+ private static RendererUtils rendererUtils = new RendererUtils();
+
protected Class getComponentClass() {
return UIMenuItem.class;
}
@@ -52,6 +56,37 @@
if (resource != null) {
variables.setVariable("icon", resource);
}
+
+ resource = null;
+ String mode = menuItem.getMode();
+ if (mode.equalsIgnoreCase(UIMenuItem.MODE_AJAX)) {
+ resource = "alert('Ajax submit mode');";
+ } else if (mode.equalsIgnoreCase(UIMenuItem.MODE_SERVER)) {
+ UIForm form= rendererUtils.getNestingForm(context, menuItem);
+ resource = "document.getElementById('" + form.getId() + "').submit();";
+ }
+ if (resource != null) {
+ variables.setVariable("onclick", resource);
+ }
+
+ if (menuItem.isDisabled()) {
+ resource = "dr-menu-item dr-menu-item-disabled rich-menu-item rich-menu-item-disabled "
+ + (String) menuItem.getAttributes().get("styleClass");
+ } else {
+ resource = "this.className='dr-menu-item dr-menu-item-unselect rich-menu-item rich-menu-item-unselect "
+ + (String) menuItem.getAttributes().get("styleClass") + "'; "
+ + (String) menuItem.getAttributes().get("onmouseout");
+ variables.setVariable("onmouseout", resource);
+
+ resource = "this.className='dr-menu-item dr-menu-item-select rich-menu-item rich-menu-item-select "
+ + (String) menuItem.getAttributes().get("styleClass") + "'; "
+ + (String) menuItem.getAttributes().get("onmouseover");
+ variables.setVariable("onmouseover", resource);
+
+ resource = "dr-menu-item dr-menu-item-unselect rich-menu-item rich-menu-item-unselect "
+ + (String) menuItem.getAttributes().get("styleClass");
+ }
+ variables.setVariable("class", resource);
}
}
17 years, 1 month
JBoss Rich Faces SVN: r158 - trunk/richfaces/menu-components/src/main/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: F.antonov
Date: 2007-03-26 10:49:05 -0400 (Mon, 26 Mar 2007)
New Revision: 158
Modified:
trunk/richfaces/menu-components/src/main/java/org/richfaces/component/UIMenuItem.java
Log:
Modified: trunk/richfaces/menu-components/src/main/java/org/richfaces/component/UIMenuItem.java
===================================================================
--- trunk/richfaces/menu-components/src/main/java/org/richfaces/component/UIMenuItem.java 2007-03-26 14:11:24 UTC (rev 157)
+++ trunk/richfaces/menu-components/src/main/java/org/richfaces/component/UIMenuItem.java 2007-03-26 14:49:05 UTC (rev 158)
@@ -30,6 +30,10 @@
*/
public abstract class UIMenuItem extends UIOutput {
+ public static final String MODE_AJAX = "ajax";
+ public static final String MODE_SERVER = "server";
+ public static final String MODE_NONE = "none";
+
public abstract String getMode();
public abstract void setMode(String mode);
17 years, 1 month
JBoss Rich Faces SVN: r157 - trunk/richfaces/dropdown-menu/src/main/templates/org/richfaces.
by richfaces-svn-commits@lists.jboss.org
Author: d.bulahov
Date: 2007-03-26 10:11:24 -0400 (Mon, 26 Mar 2007)
New Revision: 157
Modified:
trunk/richfaces/dropdown-menu/src/main/templates/org/richfaces/htmlDropDownMenu.jspx
Log:
Modified: trunk/richfaces/dropdown-menu/src/main/templates/org/richfaces/htmlDropDownMenu.jspx
===================================================================
--- trunk/richfaces/dropdown-menu/src/main/templates/org/richfaces/htmlDropDownMenu.jspx 2007-03-26 14:02:57 UTC (rev 156)
+++ trunk/richfaces/dropdown-menu/src/main/templates/org/richfaces/htmlDropDownMenu.jspx 2007-03-26 14:11:24 UTC (rev 157)
@@ -29,6 +29,7 @@
style="width: #{component.attributes['popupWidth']};"
class="dr-menu-list-border dr-menu-list-position rich-menu-list-border rich-menu-list-position">
<div class="dr-menu-list-bg rich-menu-list-bg">
+ <f:call name="renderChildren" />
</div>
</div>
</div>
17 years, 1 month
JBoss Rich Faces SVN: r156 - trunk/richfaces/dropdown-menu/src/main/templates/org/richfaces.
by richfaces-svn-commits@lists.jboss.org
Author: d.bulahov
Date: 2007-03-26 10:02:57 -0400 (Mon, 26 Mar 2007)
New Revision: 156
Modified:
trunk/richfaces/dropdown-menu/src/main/templates/org/richfaces/htmlDropDownMenu.jspx
Log:
Modified: trunk/richfaces/dropdown-menu/src/main/templates/org/richfaces/htmlDropDownMenu.jspx
===================================================================
--- trunk/richfaces/dropdown-menu/src/main/templates/org/richfaces/htmlDropDownMenu.jspx 2007-03-26 13:30:52 UTC (rev 155)
+++ trunk/richfaces/dropdown-menu/src/main/templates/org/richfaces/htmlDropDownMenu.jspx 2007-03-26 14:02:57 UTC (rev 156)
@@ -21,11 +21,12 @@
<![CDATA[org.richfaces.component.util.FormUtil.throwEnclFormReqExceptionIfNeed(context,component);]]>
</jsp:scriptlet>
<div class="dr-menu-label dr-menu-label-unselect rich-menu-label rich-menu-label-unselect #{component.attributes['styleClass']}"
- style="width: #{component.attributes['popupWidth']}; #{component.attributes['style']};"
+ style="#{component.attributes['style']};"
onmouseover="this.className='dr-menu-label dr-menu-label-select rich-menu-label rich-menu-label-select'"
onmouseout="this.className='dr-menu-label dr-menu-label-unselect rich-menu-label rich-menu-label-unselect'">
- <span class="dr-label-text-decor rich-label-text-decor">#{component.attributes['Value']}</span>
+ <span class="dr-label-text-decor rich-label-text-decor">#{component.attributes['value']}</span>
<div id="#{clientId}" name="#{clientId}"
+ style="width: #{component.attributes['popupWidth']};"
class="dr-menu-list-border dr-menu-list-position rich-menu-list-border rich-menu-list-position">
<div class="dr-menu-list-bg rich-menu-list-bg">
</div>
17 years, 1 month
JBoss Rich Faces SVN: r155 - in trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces: tree/source and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-03-26 09:30:52 -0400 (Mon, 26 Mar 2007)
New Revision: 155
Modified:
trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/suggestionBox/source/usage.html
trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/tree/source/usage.html
Log:
Fixed "package" word misspelled in demo
Modified: trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/suggestionBox/source/usage.html
===================================================================
--- trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/suggestionBox/source/usage.html 2007-03-26 13:16:33 UTC (rev 154)
+++ trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/suggestionBox/source/usage.html 2007-03-26 13:30:52 UTC (rev 155)
@@ -106,7 +106,7 @@
<span class="normal">....</span>
<span class="normal">suggestionBox bean context:</span>
-<span class="normal">ackage org.richfaces.demo.sb;</span>
+<span class="normal">package org.richfaces.demo.sb;</span>
<span class="normal">import org.richfaces.renderkit.html.SuggestionBoxRenderer;</span>
Modified: trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/tree/source/usage.html
===================================================================
--- trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/tree/source/usage.html 2007-03-26 13:16:33 UTC (rev 154)
+++ trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/tree/source/usage.html 2007-03-26 13:30:52 UTC (rev 155)
@@ -70,7 +70,7 @@
<span class="normal">....</span>
<span class="normal">Library.java:</span>
-<span class="normal">ackage org.richfaces.demo.tree;</span>
+<span class="normal">package org.richfaces.demo.tree;</span>
<span class="normal">import java.io.ByteArrayOutputStream;</span>
<span class="normal">import java.io.IOException;</span>
17 years, 1 month
JBoss Rich Faces SVN: r154 - in trunk/richfaces-samples: dropdownmenu-sample and 10 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: A.Skokov
Date: 2007-03-26 09:16:33 -0400 (Mon, 26 Mar 2007)
New Revision: 154
Added:
trunk/richfaces-samples/dropdownmenu-sample/
trunk/richfaces-samples/dropdownmenu-sample/pom.xml
trunk/richfaces-samples/dropdownmenu-sample/src/
trunk/richfaces-samples/dropdownmenu-sample/src/main/
trunk/richfaces-samples/dropdownmenu-sample/src/main/java/
trunk/richfaces-samples/dropdownmenu-sample/src/main/java/org/
trunk/richfaces-samples/dropdownmenu-sample/src/main/java/org/richfaces/
trunk/richfaces-samples/dropdownmenu-sample/src/main/java/org/richfaces/samples/
trunk/richfaces-samples/dropdownmenu-sample/src/main/java/org/richfaces/samples/dropdownmenu/
trunk/richfaces-samples/dropdownmenu-sample/src/main/java/org/richfaces/samples/dropdownmenu/Bean.java
trunk/richfaces-samples/dropdownmenu-sample/src/main/webapp/
trunk/richfaces-samples/dropdownmenu-sample/src/main/webapp/WEB-INF/
trunk/richfaces-samples/dropdownmenu-sample/src/main/webapp/WEB-INF/faces-config.xml
trunk/richfaces-samples/dropdownmenu-sample/src/main/webapp/WEB-INF/web.xml
trunk/richfaces-samples/dropdownmenu-sample/src/main/webapp/index.jsp
trunk/richfaces-samples/dropdownmenu-sample/src/main/webapp/pages/
trunk/richfaces-samples/dropdownmenu-sample/src/main/webapp/pages/index.jsp
Log:
Added: trunk/richfaces-samples/dropdownmenu-sample/pom.xml
===================================================================
--- trunk/richfaces-samples/dropdownmenu-sample/pom.xml (rev 0)
+++ trunk/richfaces-samples/dropdownmenu-sample/pom.xml 2007-03-26 13:16:33 UTC (rev 154)
@@ -0,0 +1,35 @@
+<?xml version="1.0"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <artifactId>richfaces-samples</artifactId>
+ <groupId>org.richfaces</groupId>
+ <version>3.0.1-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces</groupId>
+ <artifactId>dropdownmenu-sample</artifactId>
+ <packaging>war</packaging>
+ <name>webapp Maven Webapp</name>
+ <build>
+ <finalName>dropdownmenu-sample</finalName>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>org.richfaces</groupId>
+ <artifactId>dropdown-menu</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces</groupId>
+ <artifactId>menu-components</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces</groupId>
+ <artifactId>skins</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file
Added: trunk/richfaces-samples/dropdownmenu-sample/src/main/java/org/richfaces/samples/dropdownmenu/Bean.java
===================================================================
--- trunk/richfaces-samples/dropdownmenu-sample/src/main/java/org/richfaces/samples/dropdownmenu/Bean.java (rev 0)
+++ trunk/richfaces-samples/dropdownmenu-sample/src/main/java/org/richfaces/samples/dropdownmenu/Bean.java 2007-03-26 13:16:33 UTC (rev 154)
@@ -0,0 +1,38 @@
+/**
+ * License Agreement.
+ *
+ * JBoss RichFaces 3.0 - Ajax4jsf Component Library
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.richfaces.samples.dropdownmenu;
+
+/**
+ * @author $Autor$
+ */
+public class Bean {
+
+ private String width = "300px";
+
+ public String getWidth() {
+ return width;
+ }
+
+ public void setWidth(String width) {
+ this.width = width;
+ }
+}
\ No newline at end of file
Added: trunk/richfaces-samples/dropdownmenu-sample/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/richfaces-samples/dropdownmenu-sample/src/main/webapp/WEB-INF/faces-config.xml (rev 0)
+++ trunk/richfaces-samples/dropdownmenu-sample/src/main/webapp/WEB-INF/faces-config.xml 2007-03-26 13:16:33 UTC (rev 154)
@@ -0,0 +1,15 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>bean</managed-bean-name>
+ <managed-bean-class>org.richfaces.samples.dropdownmenu.Bean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <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>
+</faces-config>
Added: trunk/richfaces-samples/dropdownmenu-sample/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/richfaces-samples/dropdownmenu-sample/src/main/webapp/WEB-INF/web.xml (rev 0)
+++ trunk/richfaces-samples/dropdownmenu-sample/src/main/webapp/WEB-INF/web.xml 2007-03-26 13:16:33 UTC (rev 154)
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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.SKIN</param-name>
+ <param-value>#{skinBean.skin}</param-value>
+ </context-param>
+ <context-param>
+ <param-name>javax.faces.CONFIG_FILES</param-name>
+ <param-value>/WEB-INF/faces-config.xml</param-value>
+ </context-param>
+ <context-param>
+ <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+ <param-value>server</param-value>
+ </context-param>
+ <context-param>
+ <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
+ <param-value>false</param-value>
+ </context-param>
+ <filter>
+ <display-name>Ajax4jsf Filter</display-name>
+ <filter-name>ajax4jsf</filter-name>
+ <filter-class>org.ajax4jsf.Filter</filter-class>
+ </filter>
+ <filter-mapping>
+ <filter-name>ajax4jsf</filter-name>
+ <servlet-name>Faces Servlet</servlet-name>
+ <dispatcher>REQUEST</dispatcher>
+ <dispatcher>FORWARD</dispatcher>
+ <dispatcher>INCLUDE</dispatcher>
+ </filter-mapping>
+ <servlet>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>/faces/*</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>*.jsf</url-pattern>
+ </servlet-mapping>
+ <login-config>
+ <auth-method>BASIC</auth-method>
+ </login-config>
+</web-app>
Added: trunk/richfaces-samples/dropdownmenu-sample/src/main/webapp/index.jsp
===================================================================
--- trunk/richfaces-samples/dropdownmenu-sample/src/main/webapp/index.jsp (rev 0)
+++ trunk/richfaces-samples/dropdownmenu-sample/src/main/webapp/index.jsp 2007-03-26 13:16:33 UTC (rev 154)
@@ -0,0 +1,8 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head></head>
+
+<body>
+<jsp:forward page="/pages/index.jsf"/>
+</body>
+</html>
\ No newline at end of file
Added: trunk/richfaces-samples/dropdownmenu-sample/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/richfaces-samples/dropdownmenu-sample/src/main/webapp/pages/index.jsp (rev 0)
+++ trunk/richfaces-samples/dropdownmenu-sample/src/main/webapp/pages/index.jsp 2007-03-26 13:16:33 UTC (rev 154)
@@ -0,0 +1,47 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
+<%@ taglib uri="http://richfaces.ajax4jsf.org/dropdown-menu" prefix="ddm" %>
+<%@ taglib uri="http://richfaces.ajax4jsf.org/menu-components" prefix="mc" %>
+<html>
+
+<head>
+ <style type="text/css">
+ </style>
+</head>
+
+<body>
+<f:view>
+ <h:form>
+ <h:messages style="color:red"/>
+ <h:selectOneRadio binding="#{skinBean.component}"/>
+ <h:commandLink action="#{skinBean.change}" value="set skin"/>
+
+ <ddm:dropDownMenu id="dropDownMenu" popupWidth="#{bean.width}" value="Label">
+ <mc:menuItem id="menuItem11" value="Active1"/>
+ <mc:menuItem id="menuItem12" value="Active1"/>
+ <mc:menuItem id="menuItem13" value="Active1"/>
+ <mc:menuItem id="menuItem14" value="Active1"/>
+
+ <mc:menuSeparator id="menuSeparator1"/>
+
+ <mc:menuItem id="menuItem15" value="Disable" disabled="true"/>
+ <mc:menuItem id="menuItem16" value="Active1"/>
+ </ddm:dropDownMenu>
+
+ <br/>
+ <br/>
+
+ <h:panelGroup>
+ <h:outputText value="Width:"/>
+ <h:selectOneRadio value="#{bean.width}" onclick="submit()">
+ <f:selectItem itemLabel="auto" itemValue="auto"/>
+ <f:selectItem itemLabel="200" itemValue="200px"/>
+ <f:selectItem itemLabel="300" itemValue="300px"/>
+ <f:selectItem itemLabel="400" itemValue="400px"/>
+ </h:selectOneRadio>
+ </h:panelGroup>
+
+ </h:form>
+</f:view>
+</body>
+</html>
17 years, 1 month
JBoss Rich Faces SVN: r153 - trunk/richfaces/dropdown-menu/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: A.Skokov
Date: 2007-03-26 09:11:18 -0400 (Mon, 26 Mar 2007)
New Revision: 153
Modified:
trunk/richfaces/dropdown-menu/src/main/config/component/dropdownmenu.xml
Log:
Modified: trunk/richfaces/dropdown-menu/src/main/config/component/dropdownmenu.xml
===================================================================
--- trunk/richfaces/dropdown-menu/src/main/config/component/dropdownmenu.xml 2007-03-26 13:08:00 UTC (rev 152)
+++ trunk/richfaces/dropdown-menu/src/main/config/component/dropdownmenu.xml 2007-03-26 13:11:18 UTC (rev 153)
@@ -9,7 +9,7 @@
<description>
<![CDATA[ ]]>
</description>
-
+
<renderer generate="true" override="true">
<name>org.richfaces.DropDownMenuRenderer</name>
<template>org/richfaces/htmlDropDownMenu.jspx</template>
@@ -63,7 +63,7 @@
</property>
<property>
- <name>Value</name>
+ <name>value</name>
<classname>java.lang.Object</classname>
<description>
Defines representation text for Label used for menu calls.
@@ -91,7 +91,7 @@
<name>jointPoint</name>
<classname>java.lang.String</classname>
<description>
- Set the corner of the label for the popup to be connected with. (aouto(default), tr, tl, bl, br, where tr – top-right)
+ Set the corner of the label for the popup to be connected with. (auto(default), tr, tl, bl, br, where tr – top-right)
</description>
</property>
@@ -118,56 +118,56 @@
Sets the vertical offset between popup list and label element conjunction point
</description>
</property>
-
+
&html_style_attributes;
<property>
<name>selectItemStyle</name>
<classname>java.lang. String</classname>
- <description>
+ <description>
</description>
</property>
<property>
<name>selectItemClass</name>
<classname>java.lang.String</classname>
- <description>
+ <description>
</description>
</property>
<property>
<name>disabledItemStyle</name>
<classname>java.lang.String</classname>
- <description>
+ <description>
</description>
</property>
<property>
<name>disabledItemClass</name>
<classname>java.lang.String</classname>
- <description>
+ <description>
</description>
</property>
<property>
<name>itemStyle</name>
<classname>java.lang.String</classname>
- <description>
+ <description>
</description>
</property>
<property>
<name>itemClass</name>
<classname>java.lang.String</classname>
- <description>
+ <description>
</description>
</property>
-
+
<property>
<name>oncollapse</name>
<classname>java.lang.String</classname>
<description>
- Event must occurs on menu closure
+ Event must occurs on menu closure
</description>
</property>
@@ -175,7 +175,7 @@
<name>onexpand</name>
<classname>java.lang.String</classname>
<description>
- Event must occurs on menu opening
+ Event must occurs on menu opening
</description>
</property>
@@ -195,7 +195,7 @@
HTML: script expression; a pointer was moved within.
</description>
</property>
-
+
<property>
<name>onmouseover</name>
<classname>java.lang.String</classname>
@@ -220,6 +220,6 @@
</description>
</property>
-
+
</component>
</components>
17 years, 1 month
JBoss Rich Faces SVN: r152 - trunk/richfaces/tree/src/main/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-03-26 09:08:00 -0400 (Mon, 26 Mar 2007)
New Revision: 152
Modified:
trunk/richfaces/tree/src/main/java/org/richfaces/component/UITree.java
Log:
Javadoc for getTreeNode() added
Modified: trunk/richfaces/tree/src/main/java/org/richfaces/component/UITree.java
===================================================================
--- trunk/richfaces/tree/src/main/java/org/richfaces/component/UITree.java 2007-03-26 13:04:20 UTC (rev 151)
+++ trunk/richfaces/tree/src/main/java/org/richfaces/component/UITree.java 2007-03-26 13:08:00 UTC (rev 152)
@@ -140,6 +140,12 @@
return defaultFacet;
}
+ /**
+ * Return the data object representing the node for the currently
+ * selected row key, if any
+ *
+ * @return {@link TreeNode} instance corresponding to the current row key
+ */
public TreeNode getTreeNode() {
return ((AbstractTreeDataModel) getExtendedDataModel()).getTreeNode();
}
17 years, 1 month
JBoss Rich Faces SVN: r151 - trunk/richfaces/menu-components/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: A.Skokov
Date: 2007-03-26 09:04:20 -0400 (Mon, 26 Mar 2007)
New Revision: 151
Modified:
trunk/richfaces/menu-components/src/main/config/component/menucomponents.xml
Log:
Modified: trunk/richfaces/menu-components/src/main/config/component/menucomponents.xml
===================================================================
--- trunk/richfaces/menu-components/src/main/config/component/menucomponents.xml 2007-03-26 12:54:26 UTC (rev 150)
+++ trunk/richfaces/menu-components/src/main/config/component/menucomponents.xml 2007-03-26 13:04:20 UTC (rev 151)
@@ -6,10 +6,12 @@
<family>org.richfaces.DropDownMenu</family>
<classname>org.richfaces.component.html.HtmlMenuGroup</classname>
<superclass>org.richfaces.component.UIMenuGroup</superclass>
- <description>
- <![CDATA[Defines expandable group of items inside popup list or another group. Should accept only “menuItem”, ”menuGroup” and ”menuSeparator” components as children.]]>
- </description>
-
+ <description>
+ <![CDATA[
+ Defines expandable group of items inside popup list or another group. Should accept only "menuItem", "menuGroup" and "menuSeparator" components as children.
+ ]]>
+ </description>
+
<renderer generate="true" override="true">
<name>org.richfaces.MenuGroupRenderer</name>
<template>org/richfaces/htmlMenuGroup.jspx</template>
@@ -36,7 +38,7 @@
<property>
<name>disabled</name>
<classname>boolean</classname>
- <description>If “true” sets state of the item to disabled state. “false” is default.</description>
+ <description>If "true" sets state of the item to disabled state. "false" is default.</description>
<defaultvalue>false</defaultvalue>
</property>
<property required="true">
@@ -118,7 +120,7 @@
</property>
&ui_component_attributes;
- &html_style_attributes;
+ &html_style_attributes;
</component>
<component>
<name>org.richfaces.MenuItem</name>
@@ -128,7 +130,7 @@
<description>
<![CDATA[ ]]>
</description>
-
+
<renderer generate="true" override="true">
<name>org.richfaces.MenuItemRenderer</name>
<template>org/richfaces/htmlMenuItem.jspx</template>
@@ -145,18 +147,18 @@
<!-- Standart component attributes -->
&ui_component_attributes;
-
+
<!-- Specific component attributes -->
<property>
<name>icon</name>
<classname>java.lang.String</classname>
<description>Path to the icon to be displayed for the enabled item state</description>
- </property>
+ </property>
<property>
<name>iconDisabled</name>
<classname>java.lang.String</classname>
<description>Path to the icon to be displayed for the disabled item state</description>
- </property>
+ </property>
<property>
<name>disabled</name>
<classname>boolean</classname>
@@ -174,15 +176,15 @@
<description>Set the submission mode (ajax, server(Default), none)</description>
<defaultvalue>"server"</defaultvalue>
</property>
-
+
<!-- Command attributes -->
- &ui_command_attributes;
+ &ui_command_attributes;
<property>
<name>target</name>
<classname>java.lang.Object</classname>
<description></description>
</property>
-
+
<!-- Events attributes -->
&html_events;
<property>
@@ -191,22 +193,22 @@
<description>HTML: script expression; The onselect event occurs when a user selects some menu item.</description>
</property>
<property hidden="true">
- <name>ondblclick</name>
- <classname>java.lang.String</classname>
+ <name>ondblclick</name>
+ <classname>java.lang.String</classname>
</property>
<property hidden="true">
- <name>onkeydown</name>
- <classname>java.lang.String</classname>
+ <name>onkeydown</name>
+ <classname>java.lang.String</classname>
</property>
<property hidden="true">
- <name>onkeypress</name>
- <classname>java.lang.String</classname>
+ <name>onkeypress</name>
+ <classname>java.lang.String</classname>
</property>
<property hidden="true">
<name>onkeyup</name>
- <classname>java.lang.String</classname>
+ <classname>java.lang.String</classname>
</property>
-
+
<!-- Style Attributes -->
&html_style_attributes;
<property>
@@ -229,7 +231,7 @@
<classname>java.lang.String</classname>
<description>CSS style rules to be applied to icon element</description>
</property>
-
+
&ajax_component_attributes;
</component>
<component>
@@ -240,7 +242,7 @@
<description><![CDATA[
A horizontal separator to use in the menu.
]]></description>
-
+
<renderer generate="true" override="true">
<name>org.richfaces.MenuSeparatorRenderer</name>
<template>org/richfaces/htmlMenuSeparator.jspx</template>
17 years, 1 month
JBoss Rich Faces SVN: r150 - trunk/richfaces-samples/richfaces-demo/src/main/webapp/WEB-INF.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-03-26 08:54:26 -0400 (Mon, 26 Mar 2007)
New Revision: 150
Modified:
trunk/richfaces-samples/richfaces-demo/src/main/webapp/WEB-INF/web.xml
Log:
Script compressor disabled for demo app
Modified: trunk/richfaces-samples/richfaces-demo/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/richfaces-samples/richfaces-demo/src/main/webapp/WEB-INF/web.xml 2007-03-26 12:51:14 UTC (rev 149)
+++ trunk/richfaces-samples/richfaces-demo/src/main/webapp/WEB-INF/web.xml 2007-03-26 12:54:26 UTC (rev 150)
@@ -35,6 +35,10 @@
<param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
<param-value>com.sun.facelets.FaceletViewHandler</param-value>
</context-param>
+ <context-param>
+ <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
+ <param-value>false</param-value>
+ </context-param>
<filter>
<display-name>Ajax4jsf Filter</display-name>
<filter-name>ajax4jsf</filter-name>
17 years, 1 month