Author: alexsmirnov
Date: 2010-09-13 19:04:21 -0400 (Mon, 13 Sep 2010)
New Revision: 19180
Added:
branches/RF-8742/examples/template/
branches/RF-8742/examples/template/pom.xml
branches/RF-8742/examples/template/src/
branches/RF-8742/examples/template/src/main/
branches/RF-8742/examples/template/src/main/java/
branches/RF-8742/examples/template/src/main/java/org/
branches/RF-8742/examples/template/src/main/java/org/richfaces/
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/ContentBean.java
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/PageDescriptionBean.java
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/Pages.java
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/ParsingException.java
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/PhaseTracker.java
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/SkinBean.java
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/TimeBean.java
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/XMLBody.java
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/XMLBodySerializer.java
branches/RF-8742/examples/template/src/main/resources/
branches/RF-8742/examples/template/src/main/resources/META-INF/
branches/RF-8742/examples/template/src/main/resources/META-INF/faces-config.xml
branches/RF-8742/examples/template/src/main/resources/META-INF/resources/
branches/RF-8742/examples/template/src/main/resources/META-INF/resources/org.richfaces.template/
branches/RF-8742/examples/template/src/main/resources/META-INF/resources/org.richfaces.template/grids-min.css
branches/RF-8742/examples/template/src/main/resources/META-INF/resources/org.richfaces.template/grids.css
branches/RF-8742/examples/template/src/main/resources/META-INF/resources/org.richfaces.template/reset-fonts-grids.css
branches/RF-8742/examples/template/src/main/resources/META-INF/resources/qunit/
branches/RF-8742/examples/template/src/main/resources/META-INF/resources/qunit/qunit.css
branches/RF-8742/examples/template/src/main/resources/META-INF/resources/qunit/qunit.js
branches/RF-8742/examples/template/src/main/resources/META-INF/resources/qunit/richfaces-qunit.js
branches/RF-8742/examples/template/src/main/webapp/
branches/RF-8742/examples/template/src/main/webapp/WEB-INF/
branches/RF-8742/examples/template/src/main/webapp/WEB-INF/web.xml
branches/RF-8742/examples/template/src/main/webapp/index.jsp
branches/RF-8742/examples/template/src/main/webapp/layout/
branches/RF-8742/examples/template/src/main/webapp/layout/pagesList.xhtml
branches/RF-8742/examples/template/src/main/webapp/layout/template.xhtml
branches/RF-8742/examples/validator-demo/
branches/RF-8742/examples/validator-demo/pom.xml
branches/RF-8742/examples/validator-demo/src/
branches/RF-8742/examples/validator-demo/src/main/
branches/RF-8742/examples/validator-demo/src/main/java/
branches/RF-8742/examples/validator-demo/src/main/java/org/
branches/RF-8742/examples/validator-demo/src/main/java/org/richfaces/
branches/RF-8742/examples/validator-demo/src/main/java/org/richfaces/example/
branches/RF-8742/examples/validator-demo/src/main/webapp/
branches/RF-8742/examples/validator-demo/src/main/webapp/WEB-INF/
branches/RF-8742/examples/validator-demo/src/main/webapp/WEB-INF/faces-config.xml
branches/RF-8742/examples/validator-demo/src/main/webapp/examples/
branches/RF-8742/examples/validator-demo/src/main/webapp/qunit/
branches/RF-8742/examples/validator-demo/src/main/webapp/resources/
branches/RF-8742/examples/validator-demo/src/main/webapp/resources/tests/
branches/RF-8742/svnmerge-commit-message.txt
branches/RF-8742/ui/common/api/src/main/java/META-INF/
branches/RF-8742/ui/common/api/src/main/java/META-INF/MANIFEST.MF
branches/RF-8742/ui/validator/
branches/RF-8742/ui/validator/api/
branches/RF-8742/ui/validator/api/pom.xml
branches/RF-8742/ui/validator/api/src/
branches/RF-8742/ui/validator/api/src/main/
branches/RF-8742/ui/validator/api/src/main/java/
branches/RF-8742/ui/validator/api/src/main/java/META-INF/
branches/RF-8742/ui/validator/api/src/main/java/META-INF/MANIFEST.MF
branches/RF-8742/ui/validator/impl/
branches/RF-8742/ui/validator/impl/pom.xml
branches/RF-8742/ui/validator/impl/src/
branches/RF-8742/ui/validator/impl/src/main/
branches/RF-8742/ui/validator/impl/src/main/java/
branches/RF-8742/ui/validator/impl/src/test/
branches/RF-8742/ui/validator/impl/src/test/java/
branches/RF-8742/ui/validator/impl/src/test/resources/
branches/RF-8742/ui/validator/pom.xml
branches/RF-8742/ui/validator/ui/
branches/RF-8742/ui/validator/ui/pom.xml
branches/RF-8742/ui/validator/ui/src/
branches/RF-8742/ui/validator/ui/src/main/
branches/RF-8742/ui/validator/ui/src/main/java/
branches/RF-8742/ui/validator/ui/src/test/
branches/RF-8742/ui/validator/ui/src/test/java/
Modified:
branches/RF-8742/bom/pom.xml
branches/RF-8742/examples/pom.xml
branches/RF-8742/ui/pom.xml
Log:
RESOLVED - issue RF-9214: CSV: create project in sandbox
https://jira.jboss.org/browse/RF-9214
Modified: branches/RF-8742/bom/pom.xml
===================================================================
--- branches/RF-8742/bom/pom.xml 2010-09-13 17:48:35 UTC (rev 19179)
+++ branches/RF-8742/bom/pom.xml 2010-09-13 23:04:21 UTC (rev 19180)
@@ -111,6 +111,21 @@
<version>${project.version}</version>
</dependency>
<dependency>
+ <groupId>org.richfaces.ui.validator</groupId>
+ <artifactId>richfaces-ui-validator-api</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.ui.validator</groupId>
+ <artifactId>richfaces-ui-validator-impl</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.ui.validator</groupId>
+ <artifactId>richfaces-ui-validator-ui</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
<groupId>org.richfaces.ui</groupId>
<artifactId>richfaces-components-api</artifactId>
<version>${project.version}</version>
Modified: branches/RF-8742/examples/pom.xml
===================================================================
--- branches/RF-8742/examples/pom.xml 2010-09-13 17:48:35 UTC (rev 19179)
+++ branches/RF-8742/examples/pom.xml 2010-09-13 23:04:21 UTC (rev 19180)
@@ -40,6 +40,7 @@
<modules>
<module>parent</module>
+ <module>template</module>
<module>core-demo</module>
<module>misc-demo</module>
<module>output-demo</module>
@@ -47,7 +48,7 @@
<module>repeater-demo</module>
<module>iteration-demo</module>
<module>richfaces-showcase</module>
- <!--<module>dist</module>-->
+ <module>validator-demo</module>
</modules>
<scm>
Property changes on: branches/RF-8742/examples/template
___________________________________________________________________
Name: svn:ignore
+ target
.settings
.project
.classpath
.clover
.externalToolBuilders
Added: branches/RF-8742/examples/template/pom.xml
===================================================================
--- branches/RF-8742/examples/template/pom.xml (rev 0)
+++ branches/RF-8742/examples/template/pom.xml 2010-09-13 23:04:21 UTC (rev 19180)
@@ -0,0 +1,31 @@
+<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>
+ <groupId>org.richfaces.examples</groupId>
+ <artifactId>richfaces-example-parent</artifactId>
+ <version>4.0.0-SNAPSHOT</version>
+ <relativePath>../parent/pom.xml</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces.examples</groupId>
+ <artifactId>template</artifactId>
+ <packaging>war</packaging>
+ <version>4.0.0-SNAPSHOT</version>
+ <name>examples template</name>
+ <dependencies>
+ </dependencies>
+ <build>
+ <finalName>template</finalName>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Property changes on: branches/RF-8742/examples/template/pom.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/ContentBean.java
===================================================================
---
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/ContentBean.java
(rev 0)
+++
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/ContentBean.java 2010-09-13
23:04:21 UTC (rev 19180)
@@ -0,0 +1,53 @@
+/**
+ *
+ */
+package org.richfaces.example;
+
+import javax.faces.FacesException;
+import javax.faces.context.FacesContext;
+
+
+/**
+ * @author leo
+ *
+ */
+public class ContentBean {
+
+ private static final String PRELUDE="<html
xmlns=\"http://www.w3.org/1999/xhtml\"\n" +
+ "
xmlns:f=\"http://java.sun.com/jsf/core\"\n" +
+ "
xmlns:h=\"http://java.sun.com/jsf/html\"\n" +
+ "
xmlns:a4j=\"http://richfaces.org/a4j\"\n" +
+ "
xmlns:rich=\"http://richfaces.org/rich\"\n" +
+ "
xmlns:c=\"http://java.sun.com/jsp/jstl/core\">\n";
+
+ private static final String TAIL="\n</html>";
+
+ private String
xpath="//*[local-name()='define'][@name='content']/*";
+
+ public String getContent() {
+ FacesContext context = FacesContext.getCurrentInstance();
+ String viewId = context.getViewRoot().getViewId();
+ XMLBody xmlBody = new XMLBody();
+ try {
+ xmlBody.loadXML(context.getExternalContext().getResourceAsStream(viewId),false);
+ return PRELUDE+xmlBody.getContent(getXpath())+TAIL;
+ } catch (ParsingException e) {
+ throw new FacesException(e);
+ }
+ }
+
+ /**
+ * @param xpath the xpath to set
+ */
+ public void setXpath(String xpath) {
+ this.xpath = xpath;
+ }
+
+ /**
+ * @return the xpath
+ */
+ public String getXpath() {
+ return xpath;
+ }
+
+}
Property changes on:
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/ContentBean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/PageDescriptionBean.java
===================================================================
---
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/PageDescriptionBean.java
(rev 0)
+++
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/PageDescriptionBean.java 2010-09-13
23:04:21 UTC (rev 19180)
@@ -0,0 +1,64 @@
+/**
+ *
+ */
+package org.richfaces.example;
+
+import javax.faces.context.FacesContext;
+
+/**
+ * @author leo
+ *
+ */
+public class PageDescriptionBean implements Comparable<PageDescriptionBean> {
+
+ private String _path;
+
+ private String _title;
+
+ /**
+ * @return the path
+ */
+ public String getPath() {
+ return _path;
+ }
+
+ /**
+ * @param path the path to set
+ */
+ public void setPath(String path) {
+ _path = path;
+ }
+
+ /**
+ * @return the title
+ */
+ public String getTitle() {
+ return _title;
+ }
+
+ /**
+ * @param title the title to set
+ */
+ public void setTitle(String title) {
+ _title = title;
+ }
+
+ public String navigate() {
+ return getPath();
+ }
+
+ public String getUrl(){
+ FacesContext context = FacesContext.getCurrentInstance();
+ String actionURL = context.getApplication().getViewHandler().getActionURL(context,
getPath());
+ return context.getExternalContext().encodeActionURL(actionURL);
+ }
+
+ /* (non-Javadoc)
+ * @see java.lang.Comparable#compareTo(java.lang.Object)
+ */
+ public int compareTo(PageDescriptionBean o) {
+ // compare paths
+ return getPath().compareToIgnoreCase(o.getPath());
+ }
+
+}
Property changes on:
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/PageDescriptionBean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: branches/RF-8742/examples/template/src/main/java/org/richfaces/example/Pages.java
===================================================================
--- branches/RF-8742/examples/template/src/main/java/org/richfaces/example/Pages.java
(rev 0)
+++
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/Pages.java 2010-09-13
23:04:21 UTC (rev 19180)
@@ -0,0 +1,159 @@
+/**
+ *
+ */
+package org.richfaces.example;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Set;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+
+import javax.faces.FacesException;
+import javax.faces.context.ExternalContext;
+import javax.faces.context.FacesContext;
+
+/**
+ * @author leo
+ *
+ */
+
+public class Pages {
+
+ public static final String DEFAULT_TITLE_PATTERN =
"<h2>(.*)</h2>";
+
+ private static final Pattern JSP_PATTERN = Pattern.compile(".*\\.jspx?");
+
+ private static final Pattern XHTML_PATTERN = Pattern.compile(".*\\.xhtml");
+
+ private Pattern titlePattern = compilePattern(DEFAULT_TITLE_PATTERN);
+
+ private volatile List<PageDescriptionBean> _jspPages;
+
+ private Object jspMutex = new Object();
+
+ private String _path = "/pages";
+
+ private volatile List<PageDescriptionBean> _xhtmlPages;
+
+ private Object xhtmlMutex = new Object();
+
+ /**
+ * @return the path
+ */
+ public String getPath() {
+ return _path;
+ }
+
+ public Pattern compilePattern(String titlePattern) {
+ return Pattern.compile(titlePattern, Pattern.CASE_INSENSITIVE
+ | Pattern.MULTILINE);
+ }
+
+ /**
+ * @param path
+ * the path to set
+ */
+ public void setPath(String path) {
+ _path = path;
+ }
+
+ public List<PageDescriptionBean> getJspPages() {
+ if (_jspPages == null && null != getExternalContext()) {
+ synchronized (jspMutex) {
+ if (_jspPages == null) {
+ _jspPages = getPagesByPattern(JSP_PATTERN);
+ }
+ }
+ }
+
+ return _jspPages;
+ }
+
+ private ExternalContext getExternalContext() {
+ FacesContext facesContext = FacesContext.getCurrentInstance();
+
+ ExternalContext externalContext = null;
+ if (null != facesContext) {
+ externalContext = facesContext.getExternalContext();
+ }
+ return externalContext;
+ }
+
+ public List<PageDescriptionBean> getXhtmlPages() {
+ if (_xhtmlPages == null && null != getExternalContext()) {
+ synchronized (xhtmlMutex) {
+ if (_xhtmlPages == null) {
+ _xhtmlPages = getPagesByPattern(XHTML_PATTERN);
+ }
+ }
+ }
+
+ return _xhtmlPages;
+ }
+
+ /**
+ *
+ */
+ private List<PageDescriptionBean> getPagesByPattern(Pattern pattern) {
+ List<PageDescriptionBean> jspPages = new ArrayList<PageDescriptionBean>();
+ Set<String> resourcePaths = getExternalContext().getResourcePaths(
+ getPath());
+ for (Iterator<String> iterator = resourcePaths.iterator(); iterator
+ .hasNext();) {
+ String page = iterator.next();
+ if (pattern.matcher(page).matches()) {
+ PageDescriptionBean pageBean = new PageDescriptionBean();
+ pageBean.setPath(page);
+ InputStream pageInputStream = getExternalContext()
+ .getResourceAsStream(page);
+ if (null != pageInputStream) {
+ byte[] head = new byte[1024];
+ try {
+ int readed = pageInputStream.read(head);
+ String headString = new String(head, 0, readed);
+ Matcher titleMatcher = titlePattern.matcher(headString);
+ if (titleMatcher.find()
+ && titleMatcher.group(1).length() > 0) {
+ pageBean.setTitle(titleMatcher.group(1));
+ } else {
+ pageBean.setTitle(page);
+ }
+ } catch (IOException e) {
+ throw new FacesException(
+ "can't read directory content", e);
+ } finally {
+ try {
+ pageInputStream.close();
+ } catch (IOException e) {
+ // ignore it.
+ }
+ }
+ }
+ jspPages.add(pageBean);
+ }
+ }
+ Collections.sort(jspPages);
+ return jspPages;
+ }
+
+ /**
+ * @param titlePattern
+ * the titlePattern to set
+ */
+ public void setTitlePattern(String titlePattern) {
+ this.titlePattern = compilePattern(titlePattern);
+ }
+
+ /**
+ * @return the titlePattern
+ */
+ public String getTitlePattern() {
+ return titlePattern.toString();
+ }
+
+}
Property changes on:
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/Pages.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/ParsingException.java
===================================================================
---
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/ParsingException.java
(rev 0)
+++
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/ParsingException.java 2010-09-13
23:04:21 UTC (rev 19180)
@@ -0,0 +1,44 @@
+/**
+ *
+ */
+package org.richfaces.example;
+
+/**
+ * @author leo
+ *
+ */
+public class ParsingException extends Exception {
+
+ /**
+ *
+ */
+ public ParsingException() {
+ // TODO Auto-generated constructor stub
+ }
+
+ /**
+ * @param message
+ */
+ public ParsingException(String message) {
+ super(message);
+ // TODO Auto-generated constructor stub
+ }
+
+ /**
+ * @param cause
+ */
+ public ParsingException(Throwable cause) {
+ super(cause);
+ // TODO Auto-generated constructor stub
+ }
+
+ /**
+ * @param message
+ * @param cause
+ */
+ public ParsingException(String message, Throwable cause) {
+ super(message, cause);
+ // TODO Auto-generated constructor stub
+ }
+
+}
Property changes on:
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/ParsingException.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/PhaseTracker.java
===================================================================
---
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/PhaseTracker.java
(rev 0)
+++
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/PhaseTracker.java 2010-09-13
23:04:21 UTC (rev 19180)
@@ -0,0 +1,66 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2010, Red Hat, Inc. and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.richfaces.example;
+
+import java.text.MessageFormat;
+
+import javax.faces.event.PhaseEvent;
+import javax.faces.event.PhaseId;
+import javax.faces.event.PhaseListener;
+
+import org.richfaces.log.LogFactory;
+import org.richfaces.log.Logger;
+
+/**
+ * @author Nick Belaevski
+ *
+ */
+public class PhaseTracker implements PhaseListener {
+
+ private static final long serialVersionUID = 6358081870120864332L;
+
+ private Logger logger = LogFactory.getLogger(PhaseTracker.class);
+
+ private ThreadLocal<Long> phaseTimer = new ThreadLocal<Long>();
+
+ public void afterPhase(PhaseEvent event) {
+ Long phaseStartTime = phaseTimer.get();
+
+ long measuredTime = 0;
+ if (phaseStartTime != null) {
+ measuredTime = System.currentTimeMillis() - phaseStartTime.longValue();
+ }
+
+ logger.debug(MessageFormat.format("Phase {0} completed by {1}ms",
event.getPhaseId(), measuredTime));
+ phaseTimer.set(null);
+ }
+
+ public void beforePhase(PhaseEvent event) {
+ logger.debug(MessageFormat.format("Phase {0} started",
event.getPhaseId()));
+ phaseTimer.set(System.currentTimeMillis());
+ }
+
+ public PhaseId getPhaseId() {
+ return PhaseId.ANY_PHASE;
+ }
+
+}
Property changes on:
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/PhaseTracker.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/SkinBean.java
===================================================================
--- branches/RF-8742/examples/template/src/main/java/org/richfaces/example/SkinBean.java
(rev 0)
+++
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/SkinBean.java 2010-09-13
23:04:21 UTC (rev 19180)
@@ -0,0 +1,61 @@
+package org.richfaces.example;
+
+import java.io.Serializable;
+
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.SessionScoped;
+import javax.faces.model.SelectItem;
+
+@ManagedBean(name = "skinBean")
+@SessionScoped
+public class SkinBean implements Serializable {
+
+ private static final long serialVersionUID = 2744605279708632184L;
+
+ private SelectItem[] skinSetItems = {
+ new SelectItem("blueSky"),
+ new SelectItem("classic"),
+ new SelectItem("deepMarine"),
+ new SelectItem("DEFAULT"),
+ new SelectItem("emeraldTown"),
+ new SelectItem("japanCherry"),
+ new SelectItem("NULL"),
+ new SelectItem("plain"),
+ new SelectItem("ruby"),
+ new SelectItem("wine")
+ };
+
+ private String skin = "classic";
+
+ private boolean enableElementsSkinning = true;
+
+ private boolean enableClassesSkinning = false;
+
+ public String getSkin() {
+ return skin;
+ }
+
+ public void setSkin(String skin) {
+ this.skin = skin;
+ }
+
+ public boolean isEnableElementsSkinning() {
+ return enableElementsSkinning;
+ }
+
+ public void setEnableElementsSkinning(boolean enableElementsSkinning) {
+ this.enableElementsSkinning = enableElementsSkinning;
+ }
+
+ public boolean isEnableClassesSkinning() {
+ return enableClassesSkinning;
+ }
+
+ public void setEnableClassesSkinning(boolean enableClassesSkinning) {
+ this.enableClassesSkinning = enableClassesSkinning;
+ }
+
+ public SelectItem[] getSkinSetItems() {
+ return skinSetItems;
+ }
+}
Property changes on:
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/SkinBean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/TimeBean.java
===================================================================
--- branches/RF-8742/examples/template/src/main/java/org/richfaces/example/TimeBean.java
(rev 0)
+++
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/TimeBean.java 2010-09-13
23:04:21 UTC (rev 19180)
@@ -0,0 +1,49 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * 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.example;
+
+import java.text.SimpleDateFormat;
+
+import java.util.Date;
+
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.RequestScoped;
+
+/**
+ * @author Nick Belaevski
+ *
+ */
+@ManagedBean(name = "timeBean")
+@RequestScoped()
+public class TimeBean {
+ private String formattedDate = null;
+
+ public String getDateString() {
+ if (formattedDate == null) {
+ formattedDate = new SimpleDateFormat("HH:mm:ss SSSS").format(new
Date());
+ }
+
+ return formattedDate;
+ }
+}
Property changes on:
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/TimeBean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/XMLBody.java
===================================================================
--- branches/RF-8742/examples/template/src/main/java/org/richfaces/example/XMLBody.java
(rev 0)
+++
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/XMLBody.java 2010-09-13
23:04:21 UTC (rev 19180)
@@ -0,0 +1,219 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * 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.example;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.StringReader;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Set;
+
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.xpath.XPath;
+import javax.xml.xpath.XPathConstants;
+import javax.xml.xpath.XPathExpressionException;
+import javax.xml.xpath.XPathFactory;
+
+import org.w3c.dom.Document;
+import org.w3c.dom.DocumentType;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+import org.xml.sax.EntityResolver;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+
+/**
+ * This class must read XML file from input stream and can extract body of root
+ * element for include into target in generation.
+ *
+ * @author shura
+ *
+ */
+public class XMLBody {
+ private Document xmlDocument;
+
+ private Element rootElement;
+
+ /**
+ * Load XML document and parse it into DOM.
+ *
+ * @param input
+ * @throws ParsingException
+ */
+ public void loadXML(InputStream input) throws ParsingException {
+ loadXML(input,false);
+ }
+
+
+ /**
+ * Load XML document and parse it into DOM.
+ *
+ * @param input
+ * @throws ParsingException
+ */
+ public void loadXML(InputStream input, boolean namespaceAware) throws ParsingException
{
+ try {
+ // Create Document Builder Factory
+ DocumentBuilderFactory docFactory = DocumentBuilderFactory
+ .newInstance();
+ docFactory.setIgnoringElementContentWhitespace(true);
+ docFactory.setValidating(false);
+ docFactory.setNamespaceAware(namespaceAware);
+ // Create Document Builder
+ DocumentBuilder docBuilder = docFactory.newDocumentBuilder();
+ //docBuilder.
+ //docBuilder.isValidating();
+
+ // Disable loading of external Entityes
+ docBuilder.setEntityResolver(new EntityResolver() {
+ // Dummi resolver - alvays do nothing
+ public InputSource resolveEntity(String publicId, String systemId)
+ throws SAXException, IOException {
+ return new InputSource(new StringReader(""));
+ }
+
+ });
+
+ // open and parse XML-file
+ xmlDocument = docBuilder.parse(input);
+
+ // Get Root xmlElement
+ rootElement = xmlDocument.getDocumentElement();
+ } catch (Exception e) {
+ throw new ParsingException("Error load XML ", e);
+ }
+
+ }
+
+ /**
+ * Check name of root element is as expected.
+ *
+ * @param name
+ * @return
+ */
+ public boolean isRootName(String name) {
+ return rootElement.getNodeName().equals(name);
+ }
+
+ public String getDoctype() {
+ DocumentType doctype = xmlDocument.getDoctype();
+ if (null != doctype) {
+ return doctype.getName();
+ }
+ return null;
+ }
+
+ public String getPiblicId() {
+ DocumentType doctype = xmlDocument.getDoctype();
+ if (null != doctype) {
+ return doctype.getPublicId();
+ }
+ return null;
+ }
+
+ public String getRootTypeName() {
+ return rootElement.getSchemaTypeInfo().getTypeName();
+ }
+
+ public String getContent() throws ParsingException {
+ NodeList childNodes = rootElement.getChildNodes();
+ return serializeNodes(childNodes);
+ }
+
+ private String serializeNodes(NodeList childNodes) throws ParsingException {
+ try {
+ return new XMLBodySerializer().serialize(childNodes, xmlDocument);
+ } catch (Exception e) {
+ throw new ParsingException(e);
+ }
+ }
+
+ public String getContent(String xpath) throws ParsingException{
+ return serializeNodes(getByXpath(xpath));
+ }
+
+ public NodeList getByXpath(String xpath) throws ParsingException {
+ XPath path = XPathFactory.newInstance().newXPath();
+ NodeList childNodes;
+ try {
+ childNodes = (NodeList) path.evaluate(xpath, xmlDocument, XPathConstants.NODESET);
+ } catch (XPathExpressionException e) {
+ throw new ParsingException("Error evaluate xpath",e);
+ }
+ return childNodes;
+ }
+
+ public NodeList getByXpathUnique(String xpath, String keyXPath, Set<String>
keySet) throws ParsingException {
+ if (keyXPath == null) {
+ return getByXpath(xpath);
+ } else {
+ XPath path = XPathFactory.newInstance().newXPath();
+ NodeList childNodes;
+ try {
+ childNodes = getByXpath(xpath);
+
+ List<Node> nodeSet = new ArrayList<Node>();
+
+ for (int i = 0; i < childNodes.getLength(); i++) {
+ Node node = childNodes.item(i).cloneNode(true);
+
+ String key = serializeNodes((NodeList) path.evaluate(keyXPath, node,
XPathConstants.NODESET));
+ if (!keySet.contains(key)) {
+ keySet.add(key);
+ nodeSet.add(node);
+ }
+ }
+ return new ArrayNodeList(nodeSet.toArray(new Node[nodeSet.size()]));
+ } catch (XPathExpressionException e) {
+ throw new ParsingException("Error evaluate xpath",e);
+ }
+
+ }
+ }
+ public String getContentUnique(String xpath, String keyXPath, Set<String> keySet)
throws ParsingException{
+ return serializeNodes(getByXpathUnique(xpath, keyXPath, keySet));
+ }
+}
+
+class ArrayNodeList implements NodeList {
+ private Node[] nodes;
+
+ public ArrayNodeList(Node[] nodes) {
+ super();
+ this.nodes = nodes;
+ }
+
+ public int getLength() {
+ return nodes.length;
+ }
+
+ public Node item(int index) {
+ if (index < nodes.length) {
+ return this.nodes[index];
+ }
+
+ return null;
+ }
+}
Property changes on:
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/XMLBody.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/XMLBodySerializer.java
===================================================================
---
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/XMLBodySerializer.java
(rev 0)
+++
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/XMLBodySerializer.java 2010-09-13
23:04:21 UTC (rev 19180)
@@ -0,0 +1,77 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * 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.example;
+
+import java.io.StringWriter;
+
+import javax.xml.transform.ErrorListener;
+import javax.xml.transform.Transformer;
+import javax.xml.transform.TransformerException;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.transform.stream.StreamResult;
+
+import org.w3c.dom.Document;
+import org.w3c.dom.DocumentFragment;
+import org.w3c.dom.NodeList;
+
+
+/**
+ * @author Maksim Kaszynski
+ *
+ */
+public class XMLBodySerializer {
+ public String serialize(NodeList childNodes, Document xmlDocument) throws
ParsingException {
+ try {
+ StringWriter out;
+ DocumentFragment fragment = xmlDocument.createDocumentFragment();
+ for (int i = 0; i < childNodes.getLength(); i++) {
+ fragment.appendChild(childNodes.item(i).cloneNode(true));
+ }
+ TransformerFactory transformerFactory = TransformerFactory.newInstance();
+ Transformer transformer = transformerFactory.newTransformer();
+ transformer.setErrorListener(new ErrorListener(){
+
+ public void error(TransformerException exception)
+ throws TransformerException {
+ }
+
+ public void fatalError(TransformerException exception)
+ throws TransformerException {
+ }
+
+ public void warning(TransformerException exception)
+ throws TransformerException {
+ }
+
+ });
+ transformer.setOutputProperty("indent", "yes");
+ transformer.setOutputProperty("omit-xml-declaration", "yes");
+ out = new StringWriter();
+ StreamResult result = new StreamResult(out);
+ transformer.transform(new DOMSource(fragment), result);
+ return out.toString();
+ } catch (Exception e) {
+ throw new ParsingException(e);
+ }
+ }
+}
Property changes on:
branches/RF-8742/examples/template/src/main/java/org/richfaces/example/XMLBodySerializer.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: branches/RF-8742/examples/template/src/main/resources/META-INF/faces-config.xml
===================================================================
--- branches/RF-8742/examples/template/src/main/resources/META-INF/faces-config.xml
(rev 0)
+++
branches/RF-8742/examples/template/src/main/resources/META-INF/faces-config.xml 2010-09-13
23:04:21 UTC (rev 19180)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faces-config
xmlns="http://java.sun.com/xml/ns/javaee"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
+ version="2.0">
+ <managed-bean>
+ <managed-bean-name>pages</managed-bean-name>
+ <managed-bean-class>org.richfaces.example.Pages</managed-bean-class>
+ <managed-bean-scope>application</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>content</managed-bean-name>
+ <managed-bean-class>org.richfaces.example.ContentBean</managed-bean-class>
+ <managed-bean-scope>none</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Property changes on:
branches/RF-8742/examples/template/src/main/resources/META-INF/faces-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
branches/RF-8742/examples/template/src/main/resources/META-INF/resources/org.richfaces.template/grids-min.css
===================================================================
---
branches/RF-8742/examples/template/src/main/resources/META-INF/resources/org.richfaces.template/grids-min.css
(rev 0)
+++
branches/RF-8742/examples/template/src/main/resources/META-INF/resources/org.richfaces.template/grids-min.css 2010-09-13
23:04:21 UTC (rev 19180)
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2008, Yahoo! Inc. All rights reserved.
+Code licensed under the BSD License:
+http://developer.yahoo.net/yui/license.txt
+version: 2.5.2
+*/
+body{text-align:center;}#ft{clear:both;}#doc,#doc2,#doc3,#doc4,.yui-t1,.yui-t2,.yui-t3,.yui-t4,.yui-t5,.yui-t6,.yui-t7{margin:auto;text-align:left;width:57.69em;*width:56.25em;min-width:750px;}#doc2{width:73.076em;*width:71.25em;}#doc3{margin:auto
10px;width:auto;}#doc4{width:74.923em;*width:73.05em;}.yui-b{position:relative;}.yui-b{_position:static;}#yui-main
.yui-b{position:static;}#yui-main{width:100%;}.yui-t1 #yui-main,.yui-t2 #yui-main,.yui-t3
#yui-main{float:right;margin-left:-25em;}.yui-t4 #yui-main,.yui-t5 #yui-main,.yui-t6
#yui-main{float:left;margin-right:-25em;}.yui-t1
.yui-b{float:left;width:12.30769em;*width:12.00em;}.yui-t1 #yui-main
.yui-b{margin-left:13.30769em;*margin-left:13.05em;}.yui-t2
.yui-b{float:left;width:13.8461em;*width:13.50em;}.yui-t2 #yui-main
.yui-b{margin-left:14.8461em;*margin-left:14.55em;}.yui-t3
.yui-b{float:left;width:23.0769em;*width:22.50em;}.yui-t3 #yui-main
.yui-b{margin-left:24.0769em;*margin-left:23.62em;}.yui-t4 .yui-b{float:right!
;width:13.8456em;*width:13.50em;}.yui-t4 #yui-main
.yui-b{margin-right:14.8456em;*margin-right:14.55em;}.yui-t5
.yui-b{float:right;width:18.4615em;*width:18.00em;}.yui-t5 #yui-main
.yui-b{margin-right:19.4615em;*margin-right:19.125em;}.yui-t6
.yui-b{float:right;width:23.0769em;*width:22.50em;}.yui-t6 #yui-main
.yui-b{margin-right:24.0769em;*margin-right:23.62em;}.yui-t7 #yui-main
.yui-b{display:block;margin:0 0 1em 0;}#yui-main .yui-b{float:none;width:auto;}.yui-gb
.yui-u,.yui-g .yui-gb .yui-u,.yui-gb .yui-g,.yui-gb .yui-gb,.yui-gb .yui-gc,.yui-gb
.yui-gd,.yui-gb .yui-ge,.yui-gb .yui-gf,.yui-gc .yui-u,.yui-gc .yui-g,.yui-gd
.yui-u{float:left;}.yui-g .yui-u,.yui-g .yui-g,.yui-g .yui-gb,.yui-g .yui-gc,.yui-g
.yui-gd,.yui-g .yui-ge,.yui-g .yui-gf,.yui-gc .yui-u,.yui-gd .yui-g,.yui-g .yui-gc
.yui-u,.yui-ge .yui-u,.yui-ge .yui-g,.yui-gf .yui-g,.yui-gf .yui-u{float:right;}.yui-g
div.first,.yui-gb div.first,.yui-gc div.first,.yui-gd div.first,.yui-ge div.first,.yui-gf
div.first,.y!
ui-g .yui-gc div.first,.yui-g .yui-ge div.first,.yui-gc div.fi!
rst div.
first{float:left;}.yui-g .yui-u,.yui-g .yui-g,.yui-g .yui-gb,.yui-g .yui-gc,.yui-g
.yui-gd,.yui-g .yui-ge,.yui-g .yui-gf{width:49.1%;}.yui-gb .yui-u,.yui-g .yui-gb
.yui-u,.yui-gb .yui-g,.yui-gb .yui-gb,.yui-gb .yui-gc,.yui-gb .yui-gd,.yui-gb
.yui-ge,.yui-gb .yui-gf,.yui-gc .yui-u,.yui-gc .yui-g,.yui-gd
.yui-u{width:32%;margin-left:1.99%;}.yui-gb .yui-u{*margin-left:1.9%;*width:31.9%;}.yui-gc
div.first,.yui-gd .yui-u{width:66%;}.yui-gd div.first{width:32%;}.yui-ge div.first,.yui-gf
.yui-u{width:74.2%;}.yui-ge .yui-u,.yui-gf div.first{width:24%;}.yui-g .yui-gb
div.first,.yui-gb div.first,.yui-gc div.first,.yui-gd div.first{margin-left:0;}.yui-g
.yui-g .yui-u,.yui-gb .yui-g .yui-u,.yui-gc .yui-g .yui-u,.yui-gd .yui-g .yui-u,.yui-ge
.yui-g .yui-u,.yui-gf .yui-g .yui-u{width:49%;*width:48.1%;*margin-left:0;}.yui-g .yui-gb
div.first,.yui-gb .yui-gb div.first{*margin-right:0;*width:32%;_width:31.7%;}.yui-g
.yui-gc div.first,.yui-gd .yui-g{width:66%;}.yui-gb .yui-g div.first{*margin!
-right:4%;_margin-right:1.3%;}.yui-gb .yui-gc div.first,.yui-gb .yui-gd
div.first{*margin-right:0;}.yui-gb .yui-gb .yui-u,.yui-gb .yui-gc
.yui-u{*margin-left:1.8%;_margin-left:4%;}.yui-g .yui-gb .yui-u{_margin-left:1.0%;}.yui-gb
.yui-gd .yui-u{*width:66%;_width:61.2%;}.yui-gb .yui-gd
div.first{*width:31%;_width:29.5%;}.yui-g .yui-gc .yui-u,.yui-gb .yui-gc
.yui-u{width:32%;_float:right;margin-right:0;_margin-left:0;}.yui-gb .yui-gc
div.first{width:66%;*float:left;*margin-left:0;}.yui-gb .yui-ge .yui-u,.yui-gb .yui-gf
.yui-u{margin:0;}.yui-gb .yui-gb .yui-u{_margin-left:.7%;}.yui-gb .yui-g div.first,.yui-gb
.yui-gb div.first{*margin-left:0;}.yui-gc .yui-g .yui-u,.yui-gd .yui-g
.yui-u{*width:48.1%;*margin-left:0;}s .yui-gb .yui-gd div.first{width:32%;}.yui-g .yui-gd
div.first{_width:29.9%;}.yui-ge .yui-g{width:24%;}.yui-gf .yui-g{width:74.2%;}.yui-gb
.yui-ge div.yui-u,.yui-gb .yui-gf div.yui-u{float:right;}.yui-gb .yui-ge div.first,.yui-gb
.yui-gf div.first{float:left;}.yui-gb!
.yui-ge .yui-u,.yui-gb .yui-gf div.first{*width:24%;_width:20!
%;}.yui-
gb .yui-ge div.first,.yui-gb .yui-gf .yui-u{*width:73.5%;_width:65.5%;}.yui-ge div.first
.yui-gd .yui-u{width:65%;}.yui-ge div.first .yui-gd
div.first{width:32%;}#bd:after,.yui-g:after,.yui-gb:after,.yui-gc:after,.yui-gd:after,.yui-ge:after,.yui-gf:after{content:".";display:block;height:0;clear:both;visibility:hidden;}#bd,.yui-g,.yui-gb,.yui-gc,.yui-gd,.yui-ge,.yui-gf{zoom:1;}
\ No newline at end of file
Property changes on:
branches/RF-8742/examples/template/src/main/resources/META-INF/resources/org.richfaces.template/grids-min.css
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
branches/RF-8742/examples/template/src/main/resources/META-INF/resources/org.richfaces.template/grids.css
===================================================================
---
branches/RF-8742/examples/template/src/main/resources/META-INF/resources/org.richfaces.template/grids.css
(rev 0)
+++
branches/RF-8742/examples/template/src/main/resources/META-INF/resources/org.richfaces.template/grids.css 2010-09-13
23:04:21 UTC (rev 19180)
@@ -0,0 +1,283 @@
+/*
+Copyright (c) 2008, Yahoo! Inc. All rights reserved.
+Code licensed under the BSD License:
+http://developer.yahoo.net/yui/license.txt
+version: 2.5.2
+*/
+/*
+ Note: Throughout this file, the *property filter is used to
+ give a value to IE that other browsers do not see.
+*/
+
+/*
+ Section: General Rules
+*/
+
+ body {
+ text-align:center;
+ }
+
+ #ft {
+ clear:both;
+ }
+
+/*
+ Section: Page Width Rules (#doc, #doc2, #doc3, #doc4)
+*/
+
+ /*
+ Subsection: General
+ */
+
+ #doc,#doc2,#doc3,#doc4,.yui-t1,.yui-t2,.yui-t3,.yui-t4,.yui-t5,.yui-t6,.yui-t7 {
+ margin:auto;
+ text-align:left;
+ width:57.69em;*width:56.25em;
+ min-width:750px;
+ }
+ /*
+ Subsection: 950 Centered (doc2)
+ */
+ #doc2 {
+ width:73.076em;*width:71.25em;
+ }
+
+ /*
+ Subsection: 100% (doc3)
+ */
+ #doc3 {
+ /* Left and Right margins are not a structural part of Grids. Without them Grids
+ works fine, but content bleeds to the very edge of the document, which often
+ impairs readability and usability. They are
+ provided because they prevent the content from "bleeding" into the
browser's chrome.*/
+ margin:auto 10px;
+ width:auto;
+ }
+
+ /*
+ Subsection: 974 Centered (doc4)
+ */
+ #doc4 {
+ width:74.923em;*width:73.05em;
+ }
+
+/*
+ Section: Preset Template Rules (.yui-t[1-6])
+*/
+
+ /*
+ Subsection: General
+ */
+
+ /* to preserve source-order independence for Gecko */
+ .yui-b{position:relative;}
+ .yui-b{_position:static;}
+ .yui-main .yui-b{position:static;}
+
+ .yui-main {width:100%;}
+
+ .yui-t1 .yui-main,
+ .yui-t2 .yui-main,
+ .yui-t3 .yui-main{float:right;margin-left:-25em;/* IE: preserve layout at narrow widths
*/}
+
+ .yui-t4 .yui-main,
+ .yui-t5 .yui-main,
+ .yui-t6 .yui-main{float:left;margin-right:-25em;/* IE: preserve layout at narrow widths
*/}
+
+ /*
+ Subsection: For Specific Template Presets
+ */
+
+ .yui-t1 .yui-b {float:left;width:12.30769em;*width:12.00em;}
+ .yui-t1 .yui-main .yui-b{margin-left:13.30769em;*margin-left:13.05em;}
+
+ .yui-t2 .yui-b {float:left;width:13.8461em;*width:13.50em;}
+ .yui-t2 .yui-main .yui-b {margin-left:14.8461em;*margin-left:14.55em;}
+
+ .yui-t3 .yui-b {float:left;width:23.0769em;*width:22.50em;}
+ .yui-t3 .yui-main .yui-b {margin-left:24.0769em;*margin-left:23.62em;}
+
+ .yui-t4 .yui-b {float:right;width:13.8456em;*width:13.50em;}
+ .yui-t4 .yui-main .yui-b {margin-right:14.8456em;*margin-right:14.55em;}
+
+ .yui-t5 .yui-b {float:right;width:18.4615em;*width:18.00em;}
+ .yui-t5 .yui-main .yui-b {margin-right:19.4615em;*margin-right:19.125em;}
+
+ .yui-t6 .yui-b {float:right;width:23.0769em;*width:22.50em;}
+ .yui-t6 .yui-main .yui-b {margin-right:24.0769em;*margin-right:23.62em;}
+
+ .yui-t7 .yui-main .yui-b {
+ display:block;margin:0 0 1em 0;
+ }
+ .yui-main .yui-b {float:none;width:auto;}
+
+/*
+ Section: Grids and Nesting Grids
+*/
+
+ /*
+ Subsection: Children generally take half the available space
+ */
+
+ .yui-gb .yui-u,
+ .yui-g .yui-gb .yui-u,
+ .yui-gb .yui-g,
+ .yui-gb .yui-gb,
+ .yui-gb .yui-gc,
+ .yui-gb .yui-gd,
+ .yui-gb .yui-ge,
+ .yui-gb .yui-gf,
+ .yui-gc .yui-u,
+ .yui-gc .yui-g,
+ .yui-gd .yui-u {float:left;}
+
+ /*Float units (and sub grids) to the right */
+ .yui-g .yui-u,
+ .yui-g .yui-g,
+ .yui-g .yui-gb,
+ .yui-g .yui-gc,
+ .yui-g .yui-gd,
+ .yui-g .yui-ge,
+ .yui-g .yui-gf,
+ .yui-gc .yui-u,
+ .yui-gd .yui-g,
+ .yui-g .yui-gc .yui-u,
+ .yui-ge .yui-u,
+ .yui-ge .yui-g,
+ .yui-gf .yui-g,
+ .yui-gf .yui-u{float:right;}
+
+ /*Float units (and sub grids) to the left */
+ .yui-g div.first,
+ .yui-gb div.first,
+ .yui-gc div.first,
+ .yui-gd div.first,
+ .yui-ge div.first,
+ .yui-gf div.first,
+ .yui-g .yui-gc div.first,
+ .yui-g .yui-ge div.first,
+ .yui-gc div.first div.first {float:left;}
+
+ .yui-g .yui-u,
+ .yui-g .yui-g,
+ .yui-g .yui-gb,
+ .yui-g .yui-gc,
+ .yui-g .yui-gd,
+ .yui-g .yui-ge,
+ .yui-g .yui-gf {width:49.1%;}
+
+ .yui-gb .yui-u,
+ .yui-g .yui-gb .yui-u,
+ .yui-gb .yui-g,
+ .yui-gb .yui-gb,
+ .yui-gb .yui-gc,
+ .yui-gb .yui-gd,
+ .yui-gb .yui-ge,
+ .yui-gb .yui-gf,
+ .yui-gc .yui-u,
+ .yui-gc .yui-g,
+ .yui-gd .yui-u {width:32%;margin-left:1.99%;}
+
+ /* Give IE some extra breathing room for 1/3-based rounding issues */
+ .yui-gb .yui-u {*margin-left:1.9%;*width:31.9%;}
+
+ .yui-gc div.first,
+ .yui-gd .yui-u {width:66%;}
+ .yui-gd div.first {width:32%;}
+
+ .yui-ge div.first,
+ .yui-gf .yui-u{width:74.2%;}
+
+ .yui-ge .yui-u,
+ .yui-gf div.first {width:24%;}
+
+ .yui-g .yui-gb div.first,
+ .yui-gb div.first,
+ .yui-gc div.first,
+ .yui-gd div.first {margin-left:0;}
+
+ /*
+ Section: Deep Nesting
+ */
+ .yui-g .yui-g .yui-u,
+ .yui-gb .yui-g .yui-u,
+ .yui-gc .yui-g .yui-u,
+ .yui-gd .yui-g .yui-u,
+ .yui-ge .yui-g .yui-u,
+ .yui-gf .yui-g .yui-u {width:49%;*width:48.1%;*margin-left:0;}
+
+ .yui-g .yui-gb div.first,
+ .yui-gb .yui-gb div.first {*margin-right:0;*width:32%;_width:31.7%;}
+
+ .yui-g .yui-gc div.first,
+ .yui-gd .yui-g {width:66%;}
+
+ .yui-gb .yui-g div.first {*margin-right:4%;_margin-right:1.3%;}
+
+ .yui-gb .yui-gc div.first,
+ .yui-gb .yui-gd div.first {*margin-right:0;}
+
+ .yui-gb .yui-gb .yui-u,
+ .yui-gb .yui-gc .yui-u {*margin-left:1.8%;_margin-left:4%;}
+
+ .yui-g .yui-gb .yui-u {_margin-left:1.0%;}
+
+ .yui-gb .yui-gd .yui-u {*width:66%;_width:61.2%;}
+ .yui-gb .yui-gd div.first {*width:31%;_width:29.5%;}
+
+ .yui-g .yui-gc .yui-u,
+ .yui-gb .yui-gc .yui-u {width:32%;_float:right;margin-right:0;_margin-left:0;}
+ .yui-gb .yui-gc div.first {width:66%;*float:left;*margin-left:0;}
+
+ .yui-gb .yui-ge .yui-u,
+ .yui-gb .yui-gf .yui-u {margin:0;}
+
+ .yui-gb .yui-gb .yui-u {_margin-left:.7%;}
+
+ .yui-gb .yui-g div.first,
+ .yui-gb .yui-gb div.first {*margin-left:0;}
+
+ .yui-gc .yui-g .yui-u,
+ .yui-gd .yui-g .yui-u {*width:48.1%;*margin-left:0;}s
+
+ .yui-gb .yui-gd div.first {width:32%;}
+ .yui-g .yui-gd div.first {_width:29.9%;}
+
+ .yui-ge .yui-g {width:24%;}
+ .yui-gf .yui-g {width:74.2%;}
+
+ .yui-gb .yui-ge div.yui-u,
+ .yui-gb .yui-gf div.yui-u {float:right;}
+ .yui-gb .yui-ge div.first,
+ .yui-gb .yui-gf div.first {float:left;}
+
+ /* Width Accommodation for Nested Contexts */
+ .yui-gb .yui-ge .yui-u,
+ .yui-gb .yui-gf div.first {*width:24%;_width:20%;}
+
+ /* Width Accommodation for Nested Contexts */
+ .yui-gb .yui-ge div.first,
+ .yui-gb .yui-gf .yui-u{*width:73.5%;_width:65.5%;}
+
+ /* Patch for GD within GE */
+ .yui-ge div.first .yui-gd .yui-u {width:65%;}
+ .yui-ge div.first .yui-gd div.first {width:32%;}
+
+/*
+ Section: Clearing
+*/
+
+#bd:after,
+.yui-g:after,
+.yui-gb:after,
+.yui-gc:after,
+.yui-gd:after,
+.yui-ge:after,
+.yui-gf:after{content:".";display:block;height:0;clear:both;visibility:hidden;}
+#bd,
+.yui-g,
+.yui-gb,
+.yui-gc,
+.yui-gd,
+.yui-ge,
+.yui-gf{zoom:1;}
Property changes on:
branches/RF-8742/examples/template/src/main/resources/META-INF/resources/org.richfaces.template/grids.css
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
branches/RF-8742/examples/template/src/main/resources/META-INF/resources/org.richfaces.template/reset-fonts-grids.css
===================================================================
---
branches/RF-8742/examples/template/src/main/resources/META-INF/resources/org.richfaces.template/reset-fonts-grids.css
(rev 0)
+++
branches/RF-8742/examples/template/src/main/resources/META-INF/resources/org.richfaces.template/reset-fonts-grids.css 2010-09-13
23:04:21 UTC (rev 19180)
@@ -0,0 +1,8 @@
+/*
+Copyright (c) 2008, Yahoo! Inc. All rights reserved.
+Code licensed under the BSD License:
+http://developer.yahoo.net/yui/license.txt
+version: 2.5.2
+*/
+html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym
{border:0;font-variant:normal;}sup {vertical-align:text-top;}sub
{vertical-align:text-bottom;}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;}input,textarea,select{*font-size:100%;}legend{color:#000;}body
{font:13px/1.231 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;}table
{font-size:inherit;font:100%;}pre,code,kbd,samp,tt{font-family:monospace;*font-size:108%;line-height:100%;}
+body{text-align:center;}#ft{clear:both;}#doc,#doc2,#doc3,#doc4,.yui-t1,.yui-t2,.yui-t3,.yui-t4,.yui-t5,.yui-t6,.yui-t7{margin:auto;text-align:left;width:57.69em;*width:56.25em;min-width:750px;}#doc2{width:73.076em;*width:71.25em;}#doc3{margin:auto
10px;width:auto;}#doc4{width:74.923em;*width:73.05em;}.yui-b{position:relative;}.yui-b{_position:static;}#yui-main
.yui-b{position:static;}#yui-main{width:100%;}.yui-t1 #yui-main,.yui-t2 #yui-main,.yui-t3
#yui-main{float:right;margin-left:-25em;}.yui-t4 #yui-main,.yui-t5 #yui-main,.yui-t6
#yui-main{float:left;margin-right:-25em;}.yui-t1
.yui-b{float:left;width:12.30769em;*width:12.00em;}.yui-t1 #yui-main
.yui-b{margin-left:13.30769em;*margin-left:13.05em;}.yui-t2
.yui-b{float:left;width:13.8461em;*width:13.50em;}.yui-t2 #yui-main
.yui-b{margin-left:14.8461em;*margin-left:14.55em;}.yui-t3
.yui-b{float:left;width:23.0769em;*width:22.50em;}.yui-t3 #yui-main
.yui-b{margin-left:24.0769em;*margin-left:23.62em;}.yui-t4 .yui-b{float:right!
;width:13.8456em;*width:13.50em;}.yui-t4 #yui-main
.yui-b{margin-right:14.8456em;*margin-right:14.55em;}.yui-t5
.yui-b{float:right;width:18.4615em;*width:18.00em;}.yui-t5 #yui-main
.yui-b{margin-right:19.4615em;*margin-right:19.125em;}.yui-t6
.yui-b{float:right;width:23.0769em;*width:22.50em;}.yui-t6 #yui-main
.yui-b{margin-right:24.0769em;*margin-right:23.62em;}.yui-t7 #yui-main
.yui-b{display:block;margin:0 0 1em 0;}#yui-main .yui-b{float:none;width:auto;}.yui-gb
.yui-u,.yui-g .yui-gb .yui-u,.yui-gb .yui-g,.yui-gb .yui-gb,.yui-gb .yui-gc,.yui-gb
.yui-gd,.yui-gb .yui-ge,.yui-gb .yui-gf,.yui-gc .yui-u,.yui-gc .yui-g,.yui-gd
.yui-u{float:left;}.yui-g .yui-u,.yui-g .yui-g,.yui-g .yui-gb,.yui-g .yui-gc,.yui-g
.yui-gd,.yui-g .yui-ge,.yui-g .yui-gf,.yui-gc .yui-u,.yui-gd .yui-g,.yui-g .yui-gc
.yui-u,.yui-ge .yui-u,.yui-ge .yui-g,.yui-gf .yui-g,.yui-gf .yui-u{float:right;}.yui-g
div.first,.yui-gb div.first,.yui-gc div.first,.yui-gd div.first,.yui-ge div.first,.yui-gf
div.first,.y!
ui-g .yui-gc div.first,.yui-g .yui-ge div.first,.yui-gc div.fi!
rst div.
first{float:left;}.yui-g .yui-u,.yui-g .yui-g,.yui-g .yui-gb,.yui-g .yui-gc,.yui-g
.yui-gd,.yui-g .yui-ge,.yui-g .yui-gf{width:49.1%;}.yui-gb .yui-u,.yui-g .yui-gb
.yui-u,.yui-gb .yui-g,.yui-gb .yui-gb,.yui-gb .yui-gc,.yui-gb .yui-gd,.yui-gb
.yui-ge,.yui-gb .yui-gf,.yui-gc .yui-u,.yui-gc .yui-g,.yui-gd
.yui-u{width:32%;margin-left:1.99%;}.yui-gb .yui-u{*margin-left:1.9%;*width:31.9%;}.yui-gc
div.first,.yui-gd .yui-u{width:66%;}.yui-gd div.first{width:32%;}.yui-ge div.first,.yui-gf
.yui-u{width:74.2%;}.yui-ge .yui-u,.yui-gf div.first{width:24%;}.yui-g .yui-gb
div.first,.yui-gb div.first,.yui-gc div.first,.yui-gd div.first{margin-left:0;}.yui-g
.yui-g .yui-u,.yui-gb .yui-g .yui-u,.yui-gc .yui-g .yui-u,.yui-gd .yui-g .yui-u,.yui-ge
.yui-g .yui-u,.yui-gf .yui-g .yui-u{width:49%;*width:48.1%;*margin-left:0;}.yui-g .yui-gb
div.first,.yui-gb .yui-gb div.first{*margin-right:0;*width:32%;_width:31.7%;}.yui-g
.yui-gc div.first,.yui-gd .yui-g{width:66%;}.yui-gb .yui-g div.first{*margin!
-right:4%;_margin-right:1.3%;}.yui-gb .yui-gc div.first,.yui-gb .yui-gd
div.first{*margin-right:0;}.yui-gb .yui-gb .yui-u,.yui-gb .yui-gc
.yui-u{*margin-left:1.8%;_margin-left:4%;}.yui-g .yui-gb .yui-u{_margin-left:1.0%;}.yui-gb
.yui-gd .yui-u{*width:66%;_width:61.2%;}.yui-gb .yui-gd
div.first{*width:31%;_width:29.5%;}.yui-g .yui-gc .yui-u,.yui-gb .yui-gc
.yui-u{width:32%;_float:right;margin-right:0;_margin-left:0;}.yui-gb .yui-gc
div.first{width:66%;*float:left;*margin-left:0;}.yui-gb .yui-ge .yui-u,.yui-gb .yui-gf
.yui-u{margin:0;}.yui-gb .yui-gb .yui-u{_margin-left:.7%;}.yui-gb .yui-g div.first,.yui-gb
.yui-gb div.first{*margin-left:0;}.yui-gc .yui-g .yui-u,.yui-gd .yui-g
.yui-u{*width:48.1%;*margin-left:0;}s .yui-gb .yui-gd div.first{width:32%;}.yui-g .yui-gd
div.first{_width:29.9%;}.yui-ge .yui-g{width:24%;}.yui-gf .yui-g{width:74.2%;}.yui-gb
.yui-ge div.yui-u,.yui-gb .yui-gf div.yui-u{float:right;}.yui-gb .yui-ge div.first,.yui-gb
.yui-gf div.first{float:left;}.yui-gb!
.yui-ge .yui-u,.yui-gb .yui-gf div.first{*width:24%;_width:20!
%;}.yui-
gb .yui-ge div.first,.yui-gb .yui-gf .yui-u{*width:73.5%;_width:65.5%;}.yui-ge div.first
.yui-gd .yui-u{width:65%;}.yui-ge div.first .yui-gd
div.first{width:32%;}#bd:after,.yui-g:after,.yui-gb:after,.yui-gc:after,.yui-gd:after,.yui-ge:after,.yui-gf:after{content:".";display:block;height:0;clear:both;visibility:hidden;}#bd,.yui-g,.yui-gb,.yui-gc,.yui-gd,.yui-ge,.yui-gf{zoom:1;}
\ No newline at end of file
Property changes on:
branches/RF-8742/examples/template/src/main/resources/META-INF/resources/org.richfaces.template/reset-fonts-grids.css
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
branches/RF-8742/examples/template/src/main/resources/META-INF/resources/qunit/qunit.css
===================================================================
---
branches/RF-8742/examples/template/src/main/resources/META-INF/resources/qunit/qunit.css
(rev 0)
+++
branches/RF-8742/examples/template/src/main/resources/META-INF/resources/qunit/qunit.css 2010-09-13
23:04:21 UTC (rev 19180)
@@ -0,0 +1,119 @@
+
+ol#qunit-tests {
+ font-family:"Helvetica Neue Light", "HelveticaNeue-Light",
"Helvetica Neue", Calibri, Helvetica, Arial;
+ margin:0;
+ padding:0;
+ list-style-position:inside;
+
+ font-size: smaller;
+}
+ol#qunit-tests li{
+ padding:0.4em 0.5em 0.4em 2.5em;
+ border-bottom:1px solid #fff;
+ font-size:small;
+ list-style-position:inside;
+}
+ol#qunit-tests li ol{
+ box-shadow: inset 0px 2px 13px #999;
+ -moz-box-shadow: inset 0px 2px 13px #999;
+ -webkit-box-shadow: inset 0px 2px 13px #999;
+ margin-top:0.5em;
+ margin-left:0;
+ padding:0.5em;
+ background-color:#fff;
+ border-radius:15px;
+ -moz-border-radius: 15px;
+ -webkit-border-radius: 15px;
+}
+ol#qunit-tests li li{
+ border-bottom:none;
+ margin:0.5em;
+ background-color:#fff;
+ list-style-position: inside;
+ padding:0.4em 0.5em 0.4em 0.5em;
+}
+
+ol#qunit-tests li li.pass{
+ border-left:26px solid #C6E746;
+ background-color:#fff;
+ color:#5E740B;
+ }
+ol#qunit-tests li li.fail{
+ border-left:26px solid #EE5757;
+ background-color:#fff;
+ color:#710909;
+}
+ol#qunit-tests li.pass{
+ background-color:#D2E0E6;
+ color:#528CE0;
+}
+ol#qunit-tests li.fail{
+ background-color:#EE5757;
+ color:#000;
+}
+ol#qunit-tests li strong {
+ cursor:pointer;
+}
+h1#qunit-header{
+ background-color:#0d3349;
+ margin:0;
+ padding:0.5em 0 0.5em 1em;
+ color:#fff;
+ font-family:"Helvetica Neue Light", "HelveticaNeue-Light",
"Helvetica Neue", Calibri, Helvetica, Arial;
+ border-top-right-radius:15px;
+ border-top-left-radius:15px;
+ -moz-border-radius-topright:15px;
+ -moz-border-radius-topleft:15px;
+ -webkit-border-top-right-radius:15px;
+ -webkit-border-top-left-radius:15px;
+ text-shadow: rgba(0, 0, 0, 0.5) 4px 4px 1px;
+}
+h2#qunit-banner{
+ font-family:"Helvetica Neue Light", "HelveticaNeue-Light",
"Helvetica Neue", Calibri, Helvetica, Arial;
+ height:5px;
+ margin:0;
+ padding:0;
+}
+h2#qunit-banner.qunit-pass{
+ background-color:#C6E746;
+}
+h2#qunit-banner.qunit-fail, #qunit-testrunner-toolbar {
+ background-color:#EE5757;
+}
+#qunit-testrunner-toolbar {
+ font-family:"Helvetica Neue Light", "HelveticaNeue-Light",
"Helvetica Neue", Calibri, Helvetica, Arial;
+ padding:0;
+ /*width:80%;*/
+ padding:0em 0 0.5em 2em;
+ font-size: small;
+}
+h2#qunit-userAgent {
+ font-family:"Helvetica Neue Light", "HelveticaNeue-Light",
"Helvetica Neue", Calibri, Helvetica, Arial;
+ background-color:#2b81af;
+ margin:0;
+ padding:0;
+ color:#fff;
+ font-size: small;
+ padding:0.5em 0 0.5em 2.5em;
+ text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px;
+}
+p#qunit-testresult{
+ font-family:"Helvetica Neue Light", "HelveticaNeue-Light",
"Helvetica Neue", Calibri, Helvetica, Arial;
+ margin:0;
+ font-size: small;
+ color:#2b81af;
+ border-bottom-right-radius:15px;
+ border-bottom-left-radius:15px;
+ -moz-border-radius-bottomright:15px;
+ -moz-border-radius-bottomleft:15px;
+ -webkit-border-bottom-right-radius:15px;
+ -webkit-border-bottom-left-radius:15px;
+ background-color:#D2E0E6;
+ padding:0.5em 0.5em 0.5em 2.5em;
+}
+strong b.fail{
+ color:#710909;
+ }
+strong b.pass{
+ color:#5E740B;
+ }
Property changes on:
branches/RF-8742/examples/template/src/main/resources/META-INF/resources/qunit/qunit.css
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
branches/RF-8742/examples/template/src/main/resources/META-INF/resources/qunit/qunit.js
===================================================================
---
branches/RF-8742/examples/template/src/main/resources/META-INF/resources/qunit/qunit.js
(rev 0)
+++
branches/RF-8742/examples/template/src/main/resources/META-INF/resources/qunit/qunit.js 2010-09-13
23:04:21 UTC (rev 19180)
@@ -0,0 +1,1043 @@
+/*
+ * QUnit - A JavaScript Unit Testing Framework
+ *
+ *
http://docs.jquery.com/QUnit
+ *
+ * Copyright (c) 2009 John Resig, Jörn Zaefferer
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ */
+
+(function(window) {
+
+var QUnit = {
+
+ // Initialize the configuration options
+ init: function() {
+ config = {
+ stats: { all: 0, bad: 0 },
+ moduleStats: { all: 0, bad: 0 },
+ started: +new Date,
+ blocking: false,
+ autorun: false,
+ assertions: [],
+ filters: [],
+ queue: []
+ };
+
+ var tests = id("qunit-tests"),
+ banner = id("qunit-banner"),
+ result = id("qunit-testresult");
+
+ if ( tests ) {
+ tests.innerHTML = "";
+ }
+
+ if ( banner ) {
+ banner.className = "";
+ }
+
+ if ( result ) {
+ result.parentNode.removeChild( result );
+ }
+ },
+
+ // call on start of module test to prepend name to all tests
+ module: function(name, testEnvironment) {
+ config.currentModule = name;
+
+ synchronize(function() {
+ if ( config.currentModule ) {
+ QUnit.moduleDone( config.currentModule, config.moduleStats.bad,
config.moduleStats.all );
+ }
+
+ config.currentModule = name;
+ config.moduleTestEnvironment = testEnvironment;
+ config.moduleStats = { all: 0, bad: 0 };
+
+ QUnit.moduleStart( name, testEnvironment );
+ });
+ },
+
+ asyncTest: function(testName, expected, callback) {
+ if ( arguments.length === 2 ) {
+ callback = expected;
+ expected = 0;
+ }
+
+ QUnit.test(testName, expected, callback, true);
+ },
+
+ test: function(testName, expected, callback, async) {
+ var name = testName, testEnvironment, testEnvironmentArg;
+
+ if ( arguments.length === 2 ) {
+ callback = expected;
+ expected = null;
+ }
+ // is 2nd argument a testEnvironment?
+ if ( expected && typeof expected === 'object') {
+ testEnvironmentArg = expected;
+ expected = null;
+ }
+
+ if ( config.currentModule ) {
+ name = config.currentModule + " module: " + name;
+ }
+
+ if ( !validTest(name) ) {
+ return;
+ }
+
+ synchronize(function() {
+ QUnit.testStart( testName );
+
+ testEnvironment = extend({
+ setup: function() {},
+ teardown: function() {}
+ }, config.moduleTestEnvironment);
+ if (testEnvironmentArg) {
+ extend(testEnvironment,testEnvironmentArg);
+ }
+
+ // allow utility functions to access the current test environment
+ QUnit.current_testEnvironment = testEnvironment;
+
+ config.assertions = [];
+ config.expected = expected;
+
+ try {
+ if ( !config.pollution ) {
+ saveGlobal();
+ }
+
+ testEnvironment.setup.call(testEnvironment);
+ } catch(e) {
+ QUnit.ok( false, "Setup failed on " + name + ": " + e.message );
+ }
+
+ if ( async ) {
+ QUnit.stop();
+ }
+
+ try {
+ callback.call(testEnvironment);
+ } catch(e) {
+ fail("Test " + name + " died, exception and test follows", e,
callback);
+ QUnit.ok( false, "Died on test #" + (config.assertions.length + 1) +
": " + e.message );
+ // else next test will carry the responsibility
+ saveGlobal();
+
+ // Restart the tests if they're blocking
+ if ( config.blocking ) {
+ start();
+ }
+ }
+ });
+
+ synchronize(function() {
+ try {
+ checkPollution();
+ testEnvironment.teardown.call(testEnvironment);
+ } catch(e) {
+ QUnit.ok( false, "Teardown failed on " + name + ": " + e.message
);
+ }
+
+ try {
+ QUnit.reset();
+ } catch(e) {
+ fail("reset() failed, following Test " + name + ", exception and reset
fn follows", e, reset);
+ }
+
+ if ( config.expected && config.expected != config.assertions.length ) {
+ QUnit.ok( false, "Expected " + config.expected + " assertions, but
" + config.assertions.length + " were run" );
+ }
+
+ var good = 0, bad = 0,
+ tests = id("qunit-tests");
+
+ config.stats.all += config.assertions.length;
+ config.moduleStats.all += config.assertions.length;
+
+ if ( tests ) {
+ var ol = document.createElement("ol");
+ ol.style.display = "none";
+
+ for ( var i = 0; i < config.assertions.length; i++ ) {
+ var assertion = config.assertions[i];
+
+ var li = document.createElement("li");
+ li.className = assertion.result ? "pass" : "fail";
+ li.appendChild(document.createTextNode(assertion.message || "(no
message)"));
+ ol.appendChild( li );
+
+ if ( assertion.result ) {
+ good++;
+ } else {
+ bad++;
+ config.stats.bad++;
+ config.moduleStats.bad++;
+ }
+ }
+
+ var b = document.createElement("strong");
+ b.innerHTML = name + " <b style='color:black;'>(<b
class='fail'>" + bad + "</b>, <b
class='pass'>" + good + "</b>, " +
config.assertions.length + ")</b>";
+
+ addEvent(b, "click", function() {
+ var next = b.nextSibling, display = next.style.display;
+ next.style.display = display === "none" ? "block" :
"none";
+ });
+
+ addEvent(b, "dblclick", function(e) {
+ var target = e && e.target ? e.target : window.event.srcElement;
+ if ( target.nodeName.toLowerCase() === "strong" ) {
+ var text = "", node = target.firstChild;
+
+ while ( node.nodeType === 3 ) {
+ text += node.nodeValue;
+ node = node.nextSibling;
+ }
+
+ text = text.replace(/(^\s*|\s*$)/g, "");
+
+ if ( window.location ) {
+ window.location.href = window.location.href.match(/^(.+?)(\?.*)?$/)[1] +
"?" + encodeURIComponent(text);
+ }
+ }
+ });
+
+ var li = document.createElement("li");
+ li.className = bad ? "fail" : "pass";
+ li.appendChild( b );
+ li.appendChild( ol );
+ tests.appendChild( li );
+
+ if ( bad ) {
+ var toolbar = id("qunit-testrunner-toolbar");
+ if ( toolbar ) {
+ toolbar.style.display = "block";
+ id("qunit-filter-pass").disabled = null;
+ id("qunit-filter-missing").disabled = null;
+ }
+ }
+
+ } else {
+ for ( var i = 0; i < config.assertions.length; i++ ) {
+ if ( !config.assertions[i].result ) {
+ bad++;
+ config.stats.bad++;
+ config.moduleStats.bad++;
+ }
+ }
+ }
+
+ QUnit.testDone( testName, bad, config.assertions.length );
+
+ if ( !window.setTimeout && !config.queue.length ) {
+ done();
+ }
+ });
+
+ if ( window.setTimeout && !config.doneTimer ) {
+ config.doneTimer = window.setTimeout(function(){
+ if ( !config.queue.length ) {
+ done();
+ } else {
+ synchronize( done );
+ }
+ }, 13);
+ }
+ },
+
+ /**
+ * Specify the number of expected assertions to gurantee that failed test (no assertions
are run at all) don't slip through.
+ */
+ expect: function(asserts) {
+ config.expected = asserts;
+ },
+
+ /**
+ * Asserts true.
+ * @example ok( "asdfasdf".length > 5, "There must be at least 5
chars" );
+ */
+ ok: function(a, msg) {
+ QUnit.log(a, msg);
+
+ config.assertions.push({
+ result: !!a,
+ message: msg
+ });
+ },
+
+ /**
+ * Checks that the first two arguments are equal, with an optional message.
+ * Prints out both actual and expected values.
+ *
+ * Prefered to ok( actual == expected, message )
+ *
+ * @example equal( format("Received {0} bytes.", 2), "Received 2
bytes." );
+ *
+ * @param Object actual
+ * @param Object expected
+ * @param String message (optional)
+ */
+ equal: function(actual, expected, message) {
+ push(expected == actual, actual, expected, message);
+ },
+
+ notEqual: function(actual, expected, message) {
+ push(expected != actual, actual, expected, message);
+ },
+
+ deepEqual: function(a, b, message) {
+ push(QUnit.equiv(a, b), a, b, message);
+ },
+
+ notDeepEqual: function(a, b, message) {
+ push(!QUnit.equiv(a, b), a, b, message);
+ },
+
+ strictEqual: function(actual, expected, message) {
+ push(expected === actual, actual, expected, message);
+ },
+
+ notStrictEqual: function(actual, expected, message) {
+ push(expected !== actual, actual, expected, message);
+ },
+
+ start: function() {
+ // A slight delay, to avoid any current callbacks
+ if ( window.setTimeout ) {
+ window.setTimeout(function() {
+ if ( config.timeout ) {
+ clearTimeout(config.timeout);
+ }
+
+ config.blocking = false;
+ process();
+ }, 13);
+ } else {
+ config.blocking = false;
+ process();
+ }
+ },
+
+ stop: function(timeout) {
+ config.blocking = true;
+
+ if ( timeout && window.setTimeout ) {
+ config.timeout = window.setTimeout(function() {
+ QUnit.ok( false, "Test timed out" );
+ QUnit.start();
+ }, timeout);
+ }
+ },
+
+ /**
+ * Resets the test setup. Useful for tests that modify the DOM.
+ */
+ reset: function() {
+ if ( window.jQuery ) {
+ jQuery("#main").html( config.fixture );
+ jQuery.event.global = {};
+ jQuery.ajaxSettings = extend({}, config.ajaxSettings);
+ }
+ },
+
+ /**
+ * Trigger an event on an element.
+ *
+ * @example triggerEvent( document.body, "click" );
+ *
+ * @param DOMElement elem
+ * @param String type
+ */
+ triggerEvent: function( elem, type, event ) {
+ if ( document.createEvent ) {
+ event = document.createEvent("MouseEvents");
+ event.initMouseEvent(type, true, true, elem.ownerDocument.defaultView,
+ 0, 0, 0, 0, 0, false, false, false, false, 0, null);
+ elem.dispatchEvent( event );
+
+ } else if ( elem.fireEvent ) {
+ elem.fireEvent("on"+type);
+ }
+ },
+
+ // Safe object type checking
+ is: function( type, obj ) {
+ return Object.prototype.toString.call( obj ) === "[object "+ type
+"]";
+ },
+
+ // Logging callbacks
+ done: function(failures, total) {},
+ log: function(result, message) {},
+ testStart: function(name) {},
+ testDone: function(name, failures, total) {},
+ moduleStart: function(name, testEnvironment) {},
+ moduleDone: function(name, failures, total) {}
+};
+
+// Backwards compatibility, deprecated
+QUnit.equals = QUnit.equal;
+QUnit.same = QUnit.deepEqual;
+
+// Maintain internal state
+var config = {
+ // The queue of tests to run
+ queue: [],
+
+ // block until document ready
+ blocking: true
+};
+
+// Load paramaters
+(function() {
+ var location = window.location || { search: "", protocol: "file:"
},
+ GETParams = location.search.slice(1).split('&');
+
+ for ( var i = 0; i < GETParams.length; i++ ) {
+ GETParams[i] = decodeURIComponent( GETParams[i] );
+ if ( GETParams[i] === "noglobals" ) {
+ GETParams.splice( i, 1 );
+ i--;
+ config.noglobals = true;
+ } else if ( GETParams[i].search('=') > -1 ) {
+ GETParams.splice( i, 1 );
+ i--;
+ }
+ }
+
+ // restrict modules/tests by get parameters
+ config.filters = GETParams;
+
+ // Figure out if we're running the tests from a server or not
+ QUnit.isLocal = !!(location.protocol === 'file:');
+})();
+
+// Expose the API as global variables, unless an 'exports'
+// object exists, in that case we assume we're in CommonJS
+if ( typeof exports === "undefined" || typeof require === "undefined"
) {
+ extend(window, QUnit);
+ window.QUnit = QUnit;
+} else {
+ extend(exports, QUnit);
+ exports.QUnit = QUnit;
+}
+
+if ( typeof document === "undefined" || document.readyState ===
"complete" ) {
+ config.autorun = true;
+}
+
+addEvent(window, "load", function() {
+ // Initialize the config, saving the execution queue
+ var oldconfig = extend({}, config);
+ QUnit.init();
+ extend(config, oldconfig);
+
+ config.blocking = false;
+
+ var userAgent = id("qunit-userAgent");
+ if ( userAgent ) {
+ userAgent.innerHTML = navigator.userAgent;
+ }
+
+ var toolbar = id("qunit-testrunner-toolbar");
+ if ( toolbar ) {
+ toolbar.style.display = "none";
+
+ var filter = document.createElement("input");
+ filter.type = "checkbox";
+ filter.id = "qunit-filter-pass";
+ filter.disabled = true;
+ addEvent( filter, "click", function() {
+ var li = document.getElementsByTagName("li");
+ for ( var i = 0; i < li.length; i++ ) {
+ if ( li[i].className.indexOf("pass") > -1 ) {
+ li[i].style.display = filter.checked ? "none" : "";
+ }
+ }
+ });
+ toolbar.appendChild( filter );
+
+ var label = document.createElement("label");
+ label.setAttribute("for", "qunit-filter-pass");
+ label.innerHTML = "Hide passed tests";
+ toolbar.appendChild( label );
+
+ var missing = document.createElement("input");
+ missing.type = "checkbox";
+ missing.id = "qunit-filter-missing";
+ missing.disabled = true;
+ addEvent( missing, "click", function() {
+ var li = document.getElementsByTagName("li");
+ for ( var i = 0; i < li.length; i++ ) {
+ if ( li[i].className.indexOf("fail") > -1 &&
li[i].innerHTML.indexOf('missing test - untested code is broken code') > - 1 )
{
+ li[i].parentNode.parentNode.style.display = missing.checked ? "none" :
"block";
+ }
+ }
+ });
+ toolbar.appendChild( missing );
+
+ label = document.createElement("label");
+ label.setAttribute("for", "qunit-filter-missing");
+ label.innerHTML = "Hide missing tests (untested code is broken code)";
+ toolbar.appendChild( label );
+ }
+
+ var main = id('main');
+ if ( main ) {
+ config.fixture = main.innerHTML;
+ }
+
+ if ( window.jQuery ) {
+ config.ajaxSettings = window.jQuery.ajaxSettings;
+ }
+
+ QUnit.start();
+});
+
+function done() {
+ if ( config.doneTimer && window.clearTimeout ) {
+ window.clearTimeout( config.doneTimer );
+ config.doneTimer = null;
+ }
+
+ if ( config.queue.length ) {
+ config.doneTimer = window.setTimeout(function(){
+ if ( !config.queue.length ) {
+ done();
+ } else {
+ synchronize( done );
+ }
+ }, 13);
+
+ return;
+ }
+
+ config.autorun = true;
+
+ // Log the last module results
+ if ( config.currentModule ) {
+ QUnit.moduleDone( config.currentModule, config.moduleStats.bad, config.moduleStats.all
);
+ }
+
+ var banner = id("qunit-banner"),
+ tests = id("qunit-tests"),
+ html = ['Tests completed in ',
+ +new Date - config.started, ' milliseconds.<br/>',
+ '<span class="passed">', config.stats.all - config.stats.bad,
'</span> tests of <span class="total">', config.stats.all,
'</span> passed, <span class="failed">',
config.stats.bad,'</span> failed.'].join('');
+
+ if ( banner ) {
+ banner.className = (config.stats.bad ? "qunit-fail" :
"qunit-pass");
+ }
+
+ if ( tests ) {
+ var result = id("qunit-testresult");
+
+ if ( !result ) {
+ result = document.createElement("p");
+ result.id = "qunit-testresult";
+ result.className = "result";
+ tests.parentNode.insertBefore( result, tests.nextSibling );
+ }
+
+ result.innerHTML = html;
+ }
+
+ QUnit.done( config.stats.bad, config.stats.all );
+}
+
+function validTest( name ) {
+ var i = config.filters.length,
+ run = false;
+
+ if ( !i ) {
+ return true;
+ }
+
+ while ( i-- ) {
+ var filter = config.filters[i],
+ not = filter.charAt(0) == '!';
+
+ if ( not ) {
+ filter = filter.slice(1);
+ }
+
+ if ( name.indexOf(filter) !== -1 ) {
+ return !not;
+ }
+
+ if ( not ) {
+ run = true;
+ }
+ }
+
+ return run;
+}
+
+function push(result, actual, expected, message) {
+ message = message || (result ? "okay" : "failed");
+ QUnit.ok( result, result ? message + ": " + expected : message + ",
expected: " + QUnit.jsDump.parse(expected) + " result: " +
QUnit.jsDump.parse(actual) );
+}
+
+function synchronize( callback ) {
+ config.queue.push( callback );
+
+ if ( config.autorun && !config.blocking ) {
+ process();
+ }
+}
+
+function process() {
+ while ( config.queue.length && !config.blocking ) {
+ config.queue.shift()();
+ }
+}
+
+function saveGlobal() {
+ config.pollution = [];
+
+ if ( config.noglobals ) {
+ for ( var key in window ) {
+ config.pollution.push( key );
+ }
+ }
+}
+
+function checkPollution( name ) {
+ var old = config.pollution;
+ saveGlobal();
+
+ var newGlobals = diff( old, config.pollution );
+ if ( newGlobals.length > 0 ) {
+ ok( false, "Introduced global variable(s): " + newGlobals.join(",
") );
+ config.expected++;
+ }
+
+ var deletedGlobals = diff( config.pollution, old );
+ if ( deletedGlobals.length > 0 ) {
+ ok( false, "Deleted global variable(s): " + deletedGlobals.join(",
") );
+ config.expected++;
+ }
+}
+
+// returns a new Array with the elements that are in a but not in b
+function diff( a, b ) {
+ var result = a.slice();
+ for ( var i = 0; i < result.length; i++ ) {
+ for ( var j = 0; j < b.length; j++ ) {
+ if ( result[i] === b[j] ) {
+ result.splice(i, 1);
+ i--;
+ break;
+ }
+ }
+ }
+ return result;
+}
+
+function fail(message, exception, callback) {
+ if ( typeof console !== "undefined" && console.error &&
console.warn ) {
+ console.error(message);
+ console.error(exception);
+ console.warn(callback.toString());
+
+ } else if ( window.opera && opera.postError ) {
+ opera.postError(message, exception, callback.toString);
+ }
+}
+
+function extend(a, b) {
+ for ( var prop in b ) {
+ a[prop] = b[prop];
+ }
+
+ return a;
+}
+
+function addEvent(elem, type, fn) {
+ if ( elem.addEventListener ) {
+ elem.addEventListener( type, fn, false );
+ } else if ( elem.attachEvent ) {
+ elem.attachEvent( "on" + type, fn );
+ } else {
+ fn();
+ }
+}
+
+function id(name) {
+ return !!(typeof document !== "undefined" && document &&
document.getElementById) &&
+ document.getElementById( name );
+}
+
+// Test for equality any JavaScript type.
+// Discussions and reference:
http://philrathe.com/articles/equiv
+// Test suites:
http://philrathe.com/tests/equiv
+// Author: Philippe Rathé <prathe(a)gmail.com>
+QUnit.equiv = function () {
+
+ var innerEquiv; // the real equiv function
+ var callers = []; // stack to decide between skip/abort functions
+
+
+ // Determine what is o.
+ function hoozit(o) {
+ if (QUnit.is("String", o)) {
+ return "string";
+
+ } else if (QUnit.is("Boolean", o)) {
+ return "boolean";
+
+ } else if (QUnit.is("Number", o)) {
+
+ if (isNaN(o)) {
+ return "nan";
+ } else {
+ return "number";
+ }
+
+ } else if (typeof o === "undefined") {
+ return "undefined";
+
+ // consider: typeof null === object
+ } else if (o === null) {
+ return "null";
+
+ // consider: typeof [] === object
+ } else if (QUnit.is( "Array", o)) {
+ return "array";
+
+ // consider: typeof new Date() === object
+ } else if (QUnit.is( "Date", o)) {
+ return "date";
+
+ // consider: /./ instanceof Object;
+ // /./ instanceof RegExp;
+ // typeof /./ === "function"; // => false in IE and Opera,
+ // true in FF and Safari
+ } else if (QUnit.is( "RegExp", o)) {
+ return "regexp";
+
+ } else if (typeof o === "object") {
+ return "object";
+
+ } else if (QUnit.is( "Function", o)) {
+ return "function";
+ } else {
+ return undefined;
+ }
+ }
+
+ // Call the o related callback with the given arguments.
+ function bindCallbacks(o, callbacks, args) {
+ var prop = hoozit(o);
+ if (prop) {
+ if (hoozit(callbacks[prop]) === "function") {
+ return callbacks[prop].apply(callbacks, args);
+ } else {
+ return callbacks[prop]; // or undefined
+ }
+ }
+ }
+
+ var callbacks = function () {
+
+ // for string, boolean, number and null
+ function useStrictEquality(b, a) {
+ if (b instanceof a.constructor || a instanceof b.constructor) {
+ // to catch short annotaion VS 'new' annotation of a declaration
+ // e.g. var i = 1;
+ // var j = new Number(1);
+ return a == b;
+ } else {
+ return a === b;
+ }
+ }
+
+ return {
+ "string": useStrictEquality,
+ "boolean": useStrictEquality,
+ "number": useStrictEquality,
+ "null": useStrictEquality,
+ "undefined": useStrictEquality,
+
+ "nan": function (b) {
+ return isNaN(b);
+ },
+
+ "date": function (b, a) {
+ return hoozit(b) === "date" && a.valueOf() ===
b.valueOf();
+ },
+
+ "regexp": function (b, a) {
+ return hoozit(b) === "regexp" &&
+ a.source === b.source && // the regex itself
+ a.global === b.global && // and its modifers (gmi) ...
+ a.ignoreCase === b.ignoreCase &&
+ a.multiline === b.multiline;
+ },
+
+ // - skip when the property is a method of an instance (OOP)
+ // - abort otherwise,
+ // initial === would have catch identical references anyway
+ "function": function () {
+ var caller = callers[callers.length - 1];
+ return caller !== Object &&
+ typeof caller !== "undefined";
+ },
+
+ "array": function (b, a) {
+ var i;
+ var len;
+
+ // b could be an object literal here
+ if ( ! (hoozit(b) === "array")) {
+ return false;
+ }
+
+ len = a.length;
+ if (len !== b.length) { // safe and faster
+ return false;
+ }
+ for (i = 0; i < len; i++) {
+ if ( ! innerEquiv(a[i], b[i])) {
+ return false;
+ }
+ }
+ return true;
+ },
+
+ "object": function (b, a) {
+ var i;
+ var eq = true; // unless we can proove it
+ var aProperties = [], bProperties = []; // collection of strings
+
+ // comparing constructors is more strict than using instanceof
+ if ( a.constructor !== b.constructor) {
+ return false;
+ }
+
+ // stack constructor before traversing properties
+ callers.push(a.constructor);
+
+ for (i in a) { // be strict: don't ensures hasOwnProperty and go
deep
+
+ aProperties.push(i); // collect a's properties
+
+ if ( ! innerEquiv(a[i], b[i])) {
+ eq = false;
+ break;
+ }
+ }
+
+ callers.pop(); // unstack, we are done
+
+ for (i in b) {
+ bProperties.push(i); // collect b's properties
+ }
+
+ // Ensures identical properties name
+ return eq && innerEquiv(aProperties.sort(), bProperties.sort());
+ }
+ };
+ }();
+
+ innerEquiv = function () { // can take multiple arguments
+ var args = Array.prototype.slice.apply(arguments);
+ if (args.length < 2) {
+ return true; // end transition
+ }
+
+ return (function (a, b) {
+ if (a === b) {
+ return true; // catch the most you can
+ } else if (a === null || b === null || typeof a === "undefined" ||
typeof b === "undefined" || hoozit(a) !== hoozit(b)) {
+ return false; // don't lose time with error prone cases
+ } else {
+ return bindCallbacks(a, callbacks, [b, a]);
+ }
+
+ // apply transition with (1..n) arguments
+ })(args[0], args[1]) && arguments.callee.apply(this, args.splice(1,
args.length -1));
+ };
+
+ return innerEquiv;
+
+}();
+
+/**
+ * jsDump
+ * Copyright (c) 2008 Ariel Flesler - aflesler(at)gmail(dot)com |
http://flesler.blogspot.com
+ * Licensed under BSD (
http://www.opensource.org/licenses/bsd-license.php)
+ * Date: 5/15/2008
+ * @projectDescription Advanced and extensible data dumping for Javascript.
+ * @version 1.0.0
+ * @author Ariel Flesler
+ * @link {http://flesler.blogspot.com/2008/05/jsdump-pretty-dump-of-any-javascript.html}
+ */
+QUnit.jsDump = (function() {
+ function quote( str ) {
+ return '"' + str.toString().replace(/"/g, '\\"') +
'"';
+ };
+ function literal( o ) {
+ return o + '';
+ };
+ function join( pre, arr, post ) {
+ var s = jsDump.separator(),
+ base = jsDump.indent(),
+ inner = jsDump.indent(1);
+ if ( arr.join )
+ arr = arr.join( ',' + s + inner );
+ if ( !arr )
+ return pre + post;
+ return [ pre, inner + arr, base + post ].join(s);
+ };
+ function array( arr ) {
+ var i = arr.length, ret = Array(i);
+ this.up();
+ while ( i-- )
+ ret[i] = this.parse( arr[i] );
+ this.down();
+ return join( '[', ret, ']' );
+ };
+
+ var reName = /^function (\w+)/;
+
+ var jsDump = {
+ parse:function( obj, type ) { //type is used mostly internally, you can fix a
(custom)type in advance
+ var parser = this.parsers[ type || this.typeOf(obj) ];
+ type = typeof parser;
+
+ return type == 'function' ? parser.call( this, obj ) :
+ type == 'string' ? parser :
+ this.parsers.error;
+ },
+ typeOf:function( obj ) {
+ var type;
+ if ( obj === null ) {
+ type = "null";
+ } else if (typeof obj === "undefined") {
+ type = "undefined";
+ } else if (QUnit.is("RegExp", obj)) {
+ type = "regexp";
+ } else if (QUnit.is("Date", obj)) {
+ type = "date";
+ } else if (QUnit.is("Function", obj)) {
+ type = "function";
+ } else if (QUnit.is("Array", obj)) {
+ type = "array";
+ } else if (QUnit.is("Window", obj) || QUnit.is("global", obj)) {
+ type = "window";
+ } else if (QUnit.is("HTMLDocument", obj)) {
+ type = "document";
+ } else if (QUnit.is("HTMLCollection", obj) || QUnit.is("NodeList",
obj)) {
+ type = "nodelist";
+ } else if (/^\[object HTML/.test(Object.prototype.toString.call( obj ))) {
+ type = "node";
+ } else {
+ type = typeof obj;
+ }
+ return type;
+ },
+ separator:function() {
+ return this.multiline ? this.HTML ? '<br />' : '\n' : this.HTML
? ' ' : ' ';
+ },
+ indent:function( extra ) {// extra can be a number, shortcut for
increasing-calling-decreasing
+ if ( !this.multiline )
+ return '';
+ var chr = this.indentChar;
+ if ( this.HTML )
+ chr = chr.replace(/\t/g,' ').replace(/ /g,' ');
+ return Array( this._depth_ + (extra||0) ).join(chr);
+ },
+ up:function( a ) {
+ this._depth_ += a || 1;
+ },
+ down:function( a ) {
+ this._depth_ -= a || 1;
+ },
+ setParser:function( name, parser ) {
+ this.parsers[name] = parser;
+ },
+ // The next 3 are exposed so you can use them
+ quote:quote,
+ literal:literal,
+ join:join,
+ //
+ _depth_: 1,
+ // This is the list of parsers, to modify them, use jsDump.setParser
+ parsers:{
+ window: '[Window]',
+ document: '[Document]',
+ error:'[ERROR]', //when no parser is found, shouldn't happen
+ unknown: '[Unknown]',
+ 'null':'null',
+ undefined:'undefined',
+ 'function':function( fn ) {
+ var ret = 'function',
+ name = 'name' in fn ? fn.name : (reName.exec(fn)||[])[1];//functions never
have name in IE
+ if ( name )
+ ret += ' ' + name;
+ ret += '(';
+
+ ret = [ ret, this.parse( fn, 'functionArgs' ),
'){'].join('');
+ return join( ret, this.parse(fn,'functionCode'), '}' );
+ },
+ array: array,
+ nodelist: array,
+ arguments: array,
+ object:function( map ) {
+ var ret = [ ];
+ this.up();
+ for ( var key in map )
+ ret.push( this.parse(key,'key') + ': ' + this.parse(map[key]) );
+ this.down();
+ return join( '{', ret, '}' );
+ },
+ node:function( node ) {
+ var open = this.HTML ? '<' : '<',
+ close = this.HTML ? '>' : '>';
+
+ var tag = node.nodeName.toLowerCase(),
+ ret = open + tag;
+
+ for ( var a in this.DOMAttrs ) {
+ var val = node[this.DOMAttrs[a]];
+ if ( val )
+ ret += ' ' + a + '=' + this.parse( val, 'attribute' );
+ }
+ return ret + close + open + '/' + tag + close;
+ },
+ functionArgs:function( fn ) {//function calls it internally, it's the arguments
part of the function
+ var l = fn.length;
+ if ( !l ) return '';
+
+ var args = Array(l);
+ while ( l-- )
+ args[l] = String.fromCharCode(97+l);//97 is 'a'
+ return ' ' + args.join(', ') + ' ';
+ },
+ key:quote, //object calls it internally, the key part of an item in a map
+ functionCode:'[code]', //function calls it internally, it's the content of
the function
+ attribute:quote, //node calls it internally, it's an html attribute value
+ string:quote,
+ date:quote,
+ regexp:literal, //regex
+ number:literal,
+ 'boolean':literal
+ },
+ DOMAttrs:{//attributes to dump from nodes, name=>realName
+ id:'id',
+ name:'name',
+ 'class':'className'
+ },
+ HTML:true,//if true, entities are escaped ( <, >, \t, space and \n )
+ indentChar:' ',//indentation unit
+ multiline:true //if true, items in a collection, are separated by a \n, else just a
space.
+ };
+
+ return jsDump;
+})();
+
+})(this);
Property changes on:
branches/RF-8742/examples/template/src/main/resources/META-INF/resources/qunit/qunit.js
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
branches/RF-8742/examples/template/src/main/resources/META-INF/resources/qunit/richfaces-qunit.js
===================================================================
---
branches/RF-8742/examples/template/src/main/resources/META-INF/resources/qunit/richfaces-qunit.js
(rev 0)
+++
branches/RF-8742/examples/template/src/main/resources/META-INF/resources/qunit/richfaces-qunit.js 2010-09-13
23:04:21 UTC (rev 19180)
@@ -0,0 +1,30 @@
+window.RichFaces = window.RichFaces || {};
+RichFaces.QUnit = (function(){
+ var setTestHeader = function (header) {
+ var e = document.getElementById("qunit-header");
+ e.innerHTML = header;
+ };
+
+ return {
+ appendDomElements: function (parent, html) {
+ var element = document.createElement("div");
+ element.innerHTML = html;
+ var elements = [], e;
+ while (e = element.firstChild) {
+ elements.push(e);
+ parent.appendChild(e);
+ }
+ return elements;
+ },
+ removeDomElements: function (elements) {
+ var element;
+ while (elements.length>0) {
+ element = elements.pop();
+ element.parentNode.removeChild(element);
+ }
+ },
+ run: function (f) {
+ jQuery(document).ready(f);
+ }
+ };
+}());
\ No newline at end of file
Property changes on:
branches/RF-8742/examples/template/src/main/resources/META-INF/resources/qunit/richfaces-qunit.js
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Property changes on: branches/RF-8742/examples/template/src/main/webapp
___________________________________________________________________
Name: svn:ignore
+ META-INF
Added: branches/RF-8742/examples/template/src/main/webapp/WEB-INF/web.xml
===================================================================
--- branches/RF-8742/examples/template/src/main/webapp/WEB-INF/web.xml
(rev 0)
+++ branches/RF-8742/examples/template/src/main/webapp/WEB-INF/web.xml 2010-09-13 23:04:21
UTC (rev 19180)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID"
version="2.5">
+ <display-name>validator-demo</display-name>
+ <welcome-file-list>
+ <welcome-file>index.html</welcome-file>
+ <welcome-file>index.htm</welcome-file>
+ <welcome-file>index.jsp</welcome-file>
+ <welcome-file>default.html</welcome-file>
+ <welcome-file>default.htm</welcome-file>
+ <welcome-file>default.jsp</welcome-file>
+ </welcome-file-list>
+</web-app>
\ No newline at end of file
Property changes on: branches/RF-8742/examples/template/src/main/webapp/WEB-INF/web.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: branches/RF-8742/examples/template/src/main/webapp/index.jsp
===================================================================
--- branches/RF-8742/examples/template/src/main/webapp/index.jsp
(rev 0)
+++ branches/RF-8742/examples/template/src/main/webapp/index.jsp 2010-09-13 23:04:21 UTC
(rev 19180)
@@ -0,0 +1,11 @@
+<!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
Property changes on: branches/RF-8742/examples/template/src/main/webapp/index.jsp
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: branches/RF-8742/examples/template/src/main/webapp/layout/pagesList.xhtml
===================================================================
--- branches/RF-8742/examples/template/src/main/webapp/layout/pagesList.xhtml
(rev 0)
+++ branches/RF-8742/examples/template/src/main/webapp/layout/pagesList.xhtml 2010-09-13
23:04:21 UTC (rev 19180)
@@ -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"
+ >
+ <ui:composition>
+ <h:form>
+ <h:dataTable value="#{pages.xhtmlPages}" var="page">
+ <h:column>
+ <h:outputLink value="#{page.url}"
>#{page.title}</h:outputLink>
+ </h:column>
+ </h:dataTable>
+ </h:form>
+ </ui:composition>
+</html>
\ No newline at end of file
Property changes on:
branches/RF-8742/examples/template/src/main/webapp/layout/pagesList.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: branches/RF-8742/examples/template/src/main/webapp/layout/template.xhtml
===================================================================
--- branches/RF-8742/examples/template/src/main/webapp/layout/template.xhtml
(rev 0)
+++ branches/RF-8742/examples/template/src/main/webapp/layout/template.xhtml 2010-09-13
23:04:21 UTC (rev 19180)
@@ -0,0 +1,28 @@
+<!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:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+ >
+<f:view contentType="text/html">
+<h:head>
+ <title>#{title}</title>
+</h:head>
+<h:body>
+ <h:outputStylesheet name="reset-fonts-grids.css"
library="com.exadel.template"/>
+ <div id="doc3" class="yui-t2">
+ <div id="hd"><ui:insert name="header" /></div>
+ <div id="bd">
+ <div id="yui-main">
+ <div class="yui-b">
+ <div class="yui-g"><!-- YOUR DATA GOES HERE --> <ui:insert
+ name="content" /></div>
+ </div>
+ </div>
+ <div class="yui-b"><!-- YOUR NAVIGATION GOES HERE --></div>
+ <ui:include src="/layout/pagesList.xhtml" /></div>
+ <div id="ft">(C) Exadel Inc. 2010</div>
+ </div>
+</h:body>
+</f:view>
+</html>
\ No newline at end of file
Property changes on:
branches/RF-8742/examples/template/src/main/webapp/layout/template.xhtml
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ text/plain
Property changes on: branches/RF-8742/examples/validator-demo
___________________________________________________________________
Name: svn:ignore
+ target
.settings
.project
.classpath
.clover
.externalToolBuilders
Added: branches/RF-8742/examples/validator-demo/pom.xml
===================================================================
--- branches/RF-8742/examples/validator-demo/pom.xml (rev 0)
+++ branches/RF-8742/examples/validator-demo/pom.xml 2010-09-13 23:04:21 UTC (rev 19180)
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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/xsd/maven-4.0.0.xsd">
+
+ <parent>
+ <groupId>org.richfaces.examples</groupId>
+ <artifactId>richfaces-example-parent</artifactId>
+ <version>4.0.0-SNAPSHOT</version>
+ <relativePath>../parent/pom.xml</relativePath>
+ </parent>
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.richfaces.examples</groupId>
+ <artifactId>validator-demo</artifactId>
+ <version>4.0.0-SNAPSHOT</version>
+ <name>Richfaces Examples: Outputs</name>
+ <packaging>war</packaging>
+
+ <properties>
+ </properties>
+
+ <build>
+ <finalName>validator-demo</finalName>
+ <plugins>
+ <plugin>
+ <artifactId>maven-war-plugin</artifactId>
+ <configuration>
+ <webResources>
+ <resource>
+ <directory>${basedir}/src/main/java</directory>
+ <targetPath>/WEB-INF/src</targetPath>
+ </resource>
+ </webResources>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+
+ <dependencies>
+ <dependency>
+ <groupId>org.richfaces.ui.validator</groupId>
+ <artifactId>richfaces-ui-validator-ui</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.examples</groupId>
+ <artifactId>template</artifactId>
+ <version>4.0.0-SNAPSHOT</version>
+ <type>war</type>
+ </dependency>
+ </dependencies>
+</project>
Property changes on: branches/RF-8742/examples/validator-demo/pom.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Property changes on: branches/RF-8742/examples/validator-demo/src/main/webapp
___________________________________________________________________
Name: svn:ignore
+ META-INF
Added: branches/RF-8742/examples/validator-demo/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- branches/RF-8742/examples/validator-demo/src/main/webapp/WEB-INF/faces-config.xml
(rev 0)
+++
branches/RF-8742/examples/validator-demo/src/main/webapp/WEB-INF/faces-config.xml 2010-09-13
23:04:21 UTC (rev 19180)
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<faces-config version="2.0"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xi="http://www.w3.org/2001/XInclude"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd">
+
+
+</faces-config>
Property changes on:
branches/RF-8742/examples/validator-demo/src/main/webapp/WEB-INF/faces-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: branches/RF-8742/svnmerge-commit-message.txt
===================================================================
--- branches/RF-8742/svnmerge-commit-message.txt (rev 0)
+++ branches/RF-8742/svnmerge-commit-message.txt 2010-09-13 23:04:21 UTC (rev 19180)
@@ -0,0 +1,8 @@
+Merged revisions 19176 via svnmerge from
+https://svn.jboss.org/repos/richfaces/trunk
+
+........
+ r19176 | alexsmirnov | 2010-09-13 10:42:47 -0700 (Mon, 13 Sep 2010) | 1 line
+
+ ignore working files in svn
+........
Property changes on: branches/RF-8742/svnmerge-commit-message.txt
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: branches/RF-8742/ui/common/api/src/main/java/META-INF/MANIFEST.MF
===================================================================
--- branches/RF-8742/ui/common/api/src/main/java/META-INF/MANIFEST.MF
(rev 0)
+++ branches/RF-8742/ui/common/api/src/main/java/META-INF/MANIFEST.MF 2010-09-13 23:04:21
UTC (rev 19180)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Property changes on: branches/RF-8742/ui/common/api/src/main/java/META-INF/MANIFEST.MF
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: branches/RF-8742/ui/pom.xml
===================================================================
--- branches/RF-8742/ui/pom.xml 2010-09-13 17:48:35 UTC (rev 19179)
+++ branches/RF-8742/ui/pom.xml 2010-09-13 23:04:21 UTC (rev 19180)
@@ -16,8 +16,7 @@
write to the Free Software Foundation, Inc., 51 Franklin St,
Fifth Floor, Boston, MA 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
--->
-<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/xsd/maven-4.0.0.xsd">
+--><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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<!-- This aggregator pom, is not released, and is only used to make it easy to
build all of the
@@ -45,6 +44,6 @@
<module>output</module>
<module>input</module>
<module>dist</module>
- </modules>
+ <module>validator</module>
+ </modules>
</project>
-
Property changes on: branches/RF-8742/ui/validator
___________________________________________________________________
Name: svn:ignore
+ target
.settings
.project
.classpath
.clover
.externalToolBuilders
Property changes on: branches/RF-8742/ui/validator/api
___________________________________________________________________
Name: svn:ignore
+ target
.settings
.project
.classpath
.clover
.externalToolBuilders
Added: branches/RF-8742/ui/validator/api/pom.xml
===================================================================
--- branches/RF-8742/ui/validator/api/pom.xml (rev 0)
+++ branches/RF-8742/ui/validator/api/pom.xml 2010-09-13 23:04:21 UTC (rev 19180)
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ JBoss, Home of Professional Open Source Copyright 2010, Red Hat,
+ Inc. and individual contributors by the @authors tag. See the
+ copyright.txt in the distribution for a full listing of
+ individual contributors. This is free software; you can
+ redistribute it and/or modify it under the terms of the GNU
+ Lesser General Public License as published by the Free Software
+ Foundation; either version 2.1 of the License, or (at your
+ option) any later version. This software 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 software; if not,
+ write to the Free Software Foundation, Inc., 51 Franklin St,
+ Fifth Floor, Boston, MA 02110-1301 USA, or see the FSF site:
+
http://www.fsf.org.
+-->
+
+<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/xsd/maven-4.0.0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.richfaces.ui</groupId>
+ <artifactId>richfaces-ui-parent</artifactId>
+ <version>4.0.0-SNAPSHOT</version>
+ <relativePath>../../parent/pom.xml</relativePath>
+ </parent>
+
+ <groupId>org.richfaces.ui.validator</groupId>
+ <artifactId>richfaces-ui-validator-api</artifactId>
+ <name>Richfaces UI Components: validator api</name>
+ <packaging>jar</packaging>
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.richfaces.core</groupId>
+ <artifactId>richfaces-core-api</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.ui.common</groupId>
+ <artifactId>richfaces-ui-common-api</artifactId>
+ </dependency>
+ </dependencies>
+
+ <scm>
+
<
connection>scm:svn:http://anonsvn.jboss.org/repos/richfaces/trunk/ui/v...
+
<
developerConnection>scm:svn:https://svn.jboss.org/repos/richfaces/trun...
+ <
url>http://fisheye.jboss.org/browse/richfaces</url>
+ </scm>
+
+</project>
Property changes on: branches/RF-8742/ui/validator/api/pom.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: branches/RF-8742/ui/validator/api/src/main/java/META-INF/MANIFEST.MF
===================================================================
--- branches/RF-8742/ui/validator/api/src/main/java/META-INF/MANIFEST.MF
(rev 0)
+++ branches/RF-8742/ui/validator/api/src/main/java/META-INF/MANIFEST.MF 2010-09-13
23:04:21 UTC (rev 19180)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Property changes on: branches/RF-8742/ui/validator/api/src/main/java/META-INF/MANIFEST.MF
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Property changes on: branches/RF-8742/ui/validator/impl
___________________________________________________________________
Name: svn:ignore
+ target
.settings
.project
.classpath
.clover
.externalToolBuilders
Added: branches/RF-8742/ui/validator/impl/pom.xml
===================================================================
--- branches/RF-8742/ui/validator/impl/pom.xml (rev 0)
+++ branches/RF-8742/ui/validator/impl/pom.xml 2010-09-13 23:04:21 UTC (rev 19180)
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ JBoss, Home of Professional Open Source Copyright 2010, Red Hat,
+ Inc. and individual contributors by the @authors tag. See the
+ copyright.txt in the distribution for a full listing of
+ individual contributors. This is free software; you can
+ redistribute it and/or modify it under the terms of the GNU
+ Lesser General Public License as published by the Free Software
+ Foundation; either version 2.1 of the License, or (at your
+ option) any later version. This software 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 software; if not,
+ write to the Free Software Foundation, Inc., 51 Franklin St,
+ Fifth Floor, Boston, MA 02110-1301 USA, or see the FSF site:
+
http://www.fsf.org.
+-->
+
+<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/xsd/maven-4.0.0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.richfaces.ui</groupId>
+ <artifactId>richfaces-ui-parent</artifactId>
+ <version>4.0.0-SNAPSHOT</version>
+ <relativePath>../../parent/pom.xml</relativePath>
+ </parent>
+
+ <groupId>org.richfaces.ui.validator</groupId>
+ <artifactId>richfaces-ui-validator-impl</artifactId>
+ <name>Richfaces UI Components: validator impl</name>
+ <packaging>jar</packaging>
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <!-- todo remove this dependency or move to test scope -->
+ <groupId>org.richfaces.core</groupId>
+ <artifactId>richfaces-core-impl</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.ui.common</groupId>
+ <artifactId>richfaces-ui-common-ui</artifactId>
+ </dependency>
+
+
+ <dependency>
+ <groupId>org.richfaces.ui.validator</groupId>
+ <artifactId>richfaces-ui-validator-api</artifactId>
+ </dependency>
+ </dependencies>
+
+ <scm>
+
<
connection>scm:svn:http://anonsvn.jboss.org/repos/richfaces/trunk/ui/v...
+
<
developerConnection>scm:svn:https://svn.jboss.org/repos/richfaces/trun...
+ <
url>http://fisheye.jboss.org/browse/richfaces</url>
+ </scm>
+</project>
Property changes on: branches/RF-8742/ui/validator/impl/pom.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: branches/RF-8742/ui/validator/pom.xml
===================================================================
--- branches/RF-8742/ui/validator/pom.xml (rev 0)
+++ branches/RF-8742/ui/validator/pom.xml 2010-09-13 23:04:21 UTC (rev 19180)
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ JBoss, Home of Professional Open Source Copyright 2010, Red Hat,
+ Inc. and individual contributors by the @authors tag. See the
+ copyright.txt in the distribution for a full listing of
+ individual contributors. This is free software; you can
+ redistribute it and/or modify it under the terms of the GNU
+ Lesser General Public License as published by the Free Software
+ Foundation; either version 2.1 of the License, or (at your
+ option) any later version. This software 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 software; if not,
+ write to the Free Software Foundation, Inc., 51 Franklin St,
+ Fifth Floor, Boston, MA 02110-1301 USA, or see the FSF site:
+
http://www.fsf.org.
+-->
+
+<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/xsd/maven-4.0.0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.richfaces</groupId>
+ <artifactId>richfaces-root-parent</artifactId>
+ <version>4.0.0-SNAPSHOT</version>
+ <relativePath>../../parent/pom.xml</relativePath>
+ </parent>
+ <groupId>org.richfaces.ui.validator</groupId>
+ <artifactId>richfaces-ui-validator-aggregator</artifactId>
+ <packaging>pom</packaging>
+ <name>Richfaces UI Components: validator-aggregator</name>
+
+ <modules>
+ <module>api</module>
+ <module>impl</module>
+ <module>ui</module>
+ </modules>
+
+ <scm>
+
<
connection>scm:svn:http://anonsvn.jboss.org/repos/richfaces/trunk/ui/v...
+
<
developerConnection>scm:svn:https://svn.jboss.org/repos/richfaces/trun...
+ <
url>http://fisheye.jboss.org/browse/richfaces</url>
+ </scm>
+</project>
Property changes on: branches/RF-8742/ui/validator/pom.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Property changes on: branches/RF-8742/ui/validator/ui
___________________________________________________________________
Name: svn:ignore
+ target
.settings
.project
.classpath
.clover
.externalToolBuilders
Added: branches/RF-8742/ui/validator/ui/pom.xml
===================================================================
--- branches/RF-8742/ui/validator/ui/pom.xml (rev 0)
+++ branches/RF-8742/ui/validator/ui/pom.xml 2010-09-13 23:04:21 UTC (rev 19180)
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+ <!--
+ JBoss, Home of Professional Open Source Copyright 2010, Red Hat, Inc.
+ and individual contributors by the @authors tag. See the copyright.txt
+ in the distribution for a full listing of individual contributors.
+ This is free software; you can redistribute it and/or modify it under
+ the terms of the GNU Lesser General Public License as published by the
+ Free Software Foundation; either version 2.1 of the License, or (at
+ your option) any later version. This software 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 software; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
+ USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+<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/xsd/maven-4.0.0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.richfaces.ui</groupId>
+ <artifactId>richfaces-ui-parent</artifactId>
+ <version>4.0.0-SNAPSHOT</version>
+ <relativePath>../../parent/pom.xml</relativePath>
+ </parent>
+
+ <groupId>org.richfaces.ui.validator</groupId>
+ <artifactId>richfaces-ui-validator-ui</artifactId>
+ <name>Richfaces UI Components: validator ui</name>
+ <packaging>jar</packaging>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.richfaces.cdk</groupId>
+ <artifactId>maven-cdk-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <!-- runtime -->
+ <dependency>
+ <groupId>org.richfaces.ui.validator</groupId>
+ <artifactId>richfaces-ui-validator-impl</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.ui.common</groupId>
+ <artifactId>richfaces-ui-common-ui</artifactId>
+ </dependency>
+ </dependencies>
+
+ <scm>
+ <
connection>scm:svn:http://anonsvn.jboss.org/repos/richfaces/trunk/ui/v...
+ <
developerConnection>scm:svn:https://svn.jboss.org/repos/richfaces/trun...
+ <
url>http://fisheye.jboss.org/browse/richfaces</url>
+ </scm>
+</project>
Property changes on: branches/RF-8742/ui/validator/ui/pom.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain