JBoss Rich Faces SVN: r9773 - in trunk/ui/core/src/main: java/org/ajax4jsf/renderkit and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-07-24 12:25:23 -0400 (Thu, 24 Jul 2008)
New Revision: 9773
Modified:
trunk/ui/core/src/main/config/component/loadStyle.xml
trunk/ui/core/src/main/java/org/ajax4jsf/renderkit/LoadResourceRendererBase.java
Log:
https://jira.jboss.org/jira/browse/RF-3687
Modified: trunk/ui/core/src/main/config/component/loadStyle.xml
===================================================================
--- trunk/ui/core/src/main/config/component/loadStyle.xml 2008-07-24 16:25:11 UTC (rev 9772)
+++ trunk/ui/core/src/main/config/component/loadStyle.xml 2008-07-24 16:25:23 UTC (rev 9773)
@@ -38,6 +38,9 @@
]]>
</description>
</property>
-
+ <property>
+ <name>media</name>
+ <classname>java.lang.String</classname>
+ </property>
</component>
</components>
Modified: trunk/ui/core/src/main/java/org/ajax4jsf/renderkit/LoadResourceRendererBase.java
===================================================================
--- trunk/ui/core/src/main/java/org/ajax4jsf/renderkit/LoadResourceRendererBase.java 2008-07-24 16:25:11 UTC (rev 9772)
+++ trunk/ui/core/src/main/java/org/ajax4jsf/renderkit/LoadResourceRendererBase.java 2008-07-24 16:25:23 UTC (rev 9773)
@@ -21,76 +21,75 @@
package org.ajax4jsf.renderkit;
-import java.util.LinkedHashSet;
+import java.io.IOException;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.Map;
import javax.faces.FacesException;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import org.ajax4jsf.component.UIResource;
+import org.ajax4jsf.renderkit.RendererUtils.HTML;
import org.ajax4jsf.resource.InternetResource;
+import org.ajax4jsf.resource.InternetResourceBuilder;
+import org.ajax4jsf.resource.ResourceRenderer;
+import org.ajax4jsf.resource.URIInternetResource;
/**
* @author shura
*
*/
-public class LoadResourceRendererBase extends RendererBase implements UserResourceRenderer {
+public class LoadResourceRendererBase extends RendererBase implements UserResourceRenderer2 {
private static final String SCRIPT_COMPONENT_FAMILY="org.ajax4jsf.LoadScript";
private static final String STYLE_COMPONENT_FAMILY="org.ajax4jsf.LoadStyle";
/* (non-Javadoc)
- * @see org.ajax4jsf.renderkit.HeaderResourceProducer#getHeaderScripts(javax.faces.context.FacesContext, javax.faces.component.UIComponent)
- */
- public LinkedHashSet getHeaderScripts(FacesContext context, UIComponent component) {
- UIResource resource = (UIResource) component;
- if (SCRIPT_COMPONENT_FAMILY.equals(resource.getFamily())) {
- return getResources(context, resource);
- }
- return null;
- }
-
- /* (non-Javadoc)
- * @see org.ajax4jsf.renderkit.HeaderResourceProducer#getHeaderStyles(javax.faces.context.FacesContext, javax.faces.component.UIComponent)
- */
- public LinkedHashSet getHeaderStyles(FacesContext context, UIComponent component) {
- UIResource resource = (UIResource) component;
- if (STYLE_COMPONENT_FAMILY.equals(resource.getFamily())) {
- return getResources(context, resource);
- }
- return null;
- }
-
- /* (non-Javadoc)
* @see org.ajax4jsf.renderkit.RendererBase#getComponentClass()
*/
protected Class getComponentClass() {
return UIResource.class;
}
- private LinkedHashSet getResources(FacesContext context, UIResource resource) {
+ public void encodeToHead(FacesContext context, UIComponent component) throws IOException {
+ UIResource resource = (UIResource) component;
Object src = resource.getSrc();
- if(null == src){
+ if(null == src) {
throw new FacesException("Source for resource is null for component "+resource.getClientId(context));
}
- LinkedHashSet set = new LinkedHashSet(1);
- String uri = null ;
- if(src instanceof InternetResource){
- uri=((InternetResource)src).getUri(context, resource);
+
+ String family = resource.getFamily();
+ ResourceRenderer renderer = null;
+ InternetResource internetResource = null;
+ Map<String, Object> attributes = Collections.EMPTY_MAP;
+
+ if (SCRIPT_COMPONENT_FAMILY.equals(family)) {
+ renderer = InternetResourceBuilder.getInstance().getScriptRenderer();
+ } else if (STYLE_COMPONENT_FAMILY.equals(family)) {
+ renderer = InternetResourceBuilder.getInstance().getStyleRenderer();
+ String media = (String) resource.getAttributes().get(HTML.media_ATTRIBUTE);
+ if (media != null && media.length() != 0) {
+ attributes = new HashMap<String, Object>();
+ attributes.put(HTML.media_ATTRIBUTE, media);
+ }
+ }
+
+ if (src instanceof InternetResource) {
+ internetResource = (InternetResource) src;
} else {
- // Process as ordinary url, same as for h:graphicsImage.
if(resource.isRendered()){
- uri=context.getApplication().getViewHandler().
- getResourceURL(context, src.toString());
- uri=context.getExternalContext().encodeResourceURL(uri);
- }
+ String uri = context.getApplication().getViewHandler().
+ getResourceURL(context, src.toString());
+ uri = context.getExternalContext().encodeResourceURL(uri);
+ internetResource = new URIInternetResource(uri);
+ }
}
-
- if (uri != null) {
- set.add(uri);
- }
- return set;
+ if (internetResource != null) {
+ renderer.encode(internetResource, context, null, attributes);
+ }
}
}
16 years, 5 months
JBoss Rich Faces SVN: r9772 - in trunk/framework/impl/src/main/java/org/ajax4jsf: renderkit and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-07-24 12:25:11 -0400 (Thu, 24 Jul 2008)
New Revision: 9772
Added:
trunk/framework/impl/src/main/java/org/ajax4jsf/resource/URIInternetResource.java
Modified:
trunk/framework/impl/src/main/java/org/ajax4jsf/context/RenderPhaseViewResourcesVisitor.java
trunk/framework/impl/src/main/java/org/ajax4jsf/renderkit/HeaderResourcesRendererBase.java
trunk/framework/impl/src/main/java/org/ajax4jsf/resource/ResourceBuilderImpl.java
Log:
https://jira.jboss.org/jira/browse/RF-3687
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/context/RenderPhaseViewResourcesVisitor.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/context/RenderPhaseViewResourcesVisitor.java 2008-07-24 16:25:03 UTC (rev 9771)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/context/RenderPhaseViewResourcesVisitor.java 2008-07-24 16:25:11 UTC (rev 9772)
@@ -32,10 +32,10 @@
import org.ajax4jsf.renderkit.UserResourceRenderer2;
import org.ajax4jsf.renderkit.RendererUtils.HTML;
import org.ajax4jsf.resource.InternetResource;
-import org.ajax4jsf.resource.InternetResourceBase;
import org.ajax4jsf.resource.InternetResourceBuilder;
import org.ajax4jsf.resource.ResourceNotFoundException;
import org.ajax4jsf.resource.ResourceRenderer;
+import org.ajax4jsf.resource.URIInternetResource;
import org.ajax4jsf.util.ELUtils;
import org.ajax4jsf.webapp.BaseFilter;
import org.apache.commons.logging.Log;
@@ -151,27 +151,11 @@
private HeadResponseWriter user;
private InternetResourceBuilder resourceBuilder;
- private ResourceRenderer scriptRenderer;
- private ResourceRenderer styleRenderer;
private boolean useSkinning;
private boolean ajaxRequest;
private Skin skin;
- protected ResourceRenderer getScriptRenderer() {
- if (scriptRenderer == null) {
- scriptRenderer = resourceBuilder.getRenderer(".js");
- }
- return scriptRenderer;
- }
-
- protected ResourceRenderer getStyleRenderer() {
- if (styleRenderer == null) {
- styleRenderer = resourceBuilder.getRenderer(".css");
- }
- return styleRenderer;
- }
-
protected HeadResponseWriter getComponentWriter() {
return component;
}
@@ -403,25 +387,10 @@
return result;
}
- public static final class InternetResourceImpl extends InternetResourceBase {
- public String getUri() {
- return getKey();
- }
-
- public void setUri(String uri) {
- setKey(uri);
- }
-
- @Override
- public String getUri(FacesContext context, Object data) {
- return getUri();
- }
- };
-
private void encodeResources(FacesContext context, ResourceRenderer renderer, Set<String> set) throws IOException {
if (set != null) {
- InternetResourceImpl resourceImpl = new InternetResourceImpl();
+ URIInternetResource resourceImpl = new URIInternetResource();
for (String uri : set) {
resourceImpl.setUri(uri);
@@ -450,16 +419,17 @@
if (renderer instanceof HeaderResourceProducer2) {
HeaderResourceProducer2 producer = (HeaderResourceProducer2) renderer;
- producer.encodeToHead(context, state.processStyles, state.processScripts);
+ producer.encodeToHead(context, component, state.processStyles,
+ state.processScripts);
} else if (renderer instanceof HeaderResourceProducer) {
HeaderResourceProducer producer = (HeaderResourceProducer) renderer;
if (state.processScripts) {
- encodeResources(context, state.getScriptRenderer(), producer.getHeaderScripts(context,
+ encodeResources(context, state.resourceBuilder.getScriptRenderer(), producer.getHeaderScripts(context,
component));
}
if (state.processStyles) {
- encodeResources(context, state.getStyleRenderer(), producer.getHeaderStyles(context,
+ encodeResources(context, state.resourceBuilder.getStyleRenderer(), producer.getHeaderStyles(context,
component));
}
}
@@ -467,16 +437,16 @@
context.setResponseWriter(state.getUserWriter());
UserResourceRenderer2 producer = (UserResourceRenderer2) renderer;
- producer.encodeToHead(context);
+ producer.encodeToHead(context, component);
} else if (renderer instanceof UserResourceRenderer) {
context.setResponseWriter(state.getUserWriter());
UserResourceRenderer producer = (UserResourceRenderer) renderer;
- encodeResources(context, state.getScriptRenderer(), producer.getHeaderScripts(context,
+ encodeResources(context, state.resourceBuilder.getScriptRenderer(), producer.getHeaderScripts(context,
component));
- encodeResources(context, state.getStyleRenderer(), producer.getHeaderStyles(context,
+ encodeResources(context, state.resourceBuilder.getStyleRenderer(), producer.getHeaderStyles(context,
component));
}
} catch (IOException e) {
@@ -530,9 +500,9 @@
.getViewHandler().getResourceURL(context,
skinStyleSheetUri);
- InternetResourceImpl resourceImpl = new InternetResourceImpl();
+ URIInternetResource resourceImpl = new URIInternetResource();
resourceImpl.setUri(resourceURL);
- resourceImpl.setRenderer(state.getStyleRenderer());
+ resourceImpl.setRenderer(state.resourceBuilder.getStyleRenderer());
resourceImpl.encode(context, null);
useSkinning = true;
@@ -542,9 +512,9 @@
String resourceURL = context.getApplication().getViewHandler().getResourceURL(context,
skinExtendedStyleSheetUri);
- InternetResourceImpl resourceImpl = new InternetResourceImpl();
+ URIInternetResource resourceImpl = new URIInternetResource();
resourceImpl.setUri(resourceURL);
- resourceImpl.setRenderer(state.getStyleRenderer());
+ resourceImpl.setRenderer(state.resourceBuilder.getStyleRenderer());
resourceImpl.encode(context, null, EXTENDED_SKINNING);
useSkinning = true;
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/renderkit/HeaderResourcesRendererBase.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/renderkit/HeaderResourcesRendererBase.java 2008-07-24 16:25:03 UTC (rev 9771)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/renderkit/HeaderResourcesRendererBase.java 2008-07-24 16:25:11 UTC (rev 9772)
@@ -41,7 +41,7 @@
*
*/
public abstract class HeaderResourcesRendererBase extends RendererBase
- implements HeaderResourceProducer2 {
+ implements HeaderResourceProducer2, HeaderResourceProducer {
/*
* (non-Javadoc)
@@ -146,8 +146,8 @@
}
}
- public void encodeToHead(FacesContext context, boolean processStyles,
- boolean processScripts) throws IOException {
+ public void encodeToHead(FacesContext context, UIComponent component,
+ boolean processStyles, boolean processScripts) throws IOException {
if (processScripts) {
InternetResource[] scripts = getScripts();
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/resource/ResourceBuilderImpl.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/resource/ResourceBuilderImpl.java 2008-07-24 16:25:03 UTC (rev 9771)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/resource/ResourceBuilderImpl.java 2008-07-24 16:25:11 UTC (rev 9772)
@@ -90,6 +90,10 @@
private Codec codec;
+ private static final ResourceRenderer scriptRenderer = new ScriptRenderer();
+
+ private static final ResourceRenderer styleRenderer = new StyleRenderer();
+
static {
renderers = new HashMap<String, ResourceRenderer>();
// append known renderers for extentions.
@@ -98,8 +102,8 @@
renderers.put(".jpeg", renderer);
renderers.put(".jpg", renderer);
renderers.put(".png", new PngRenderer());
- renderers.put(".js", new ScriptRenderer());
- renderers.put(".css", new StyleRenderer());
+ renderers.put(".js", scriptRenderer);
+ renderers.put(".css", styleRenderer);
renderers.put(".log", new LogfileRenderer());
renderers.put(".html", new HTMLRenderer());
renderers.put(".xhtml", new MimeRenderer("application/xhtml+xml"));
@@ -605,7 +609,12 @@
}
@Override
- public ResourceRenderer getRenderer(String name) {
- return renderers.get(name);
+ public ResourceRenderer getScriptRenderer() {
+ return scriptRenderer;
}
+
+ @Override
+ public ResourceRenderer getStyleRenderer() {
+ return styleRenderer;
+ }
}
Added: trunk/framework/impl/src/main/java/org/ajax4jsf/resource/URIInternetResource.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/resource/URIInternetResource.java (rev 0)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/resource/URIInternetResource.java 2008-07-24 16:25:11 UTC (rev 9772)
@@ -0,0 +1,51 @@
+/**
+ * License Agreement.
+ *
+ * JBoss RichFaces - Ajax4jsf Component Library
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.ajax4jsf.resource;
+
+import javax.faces.context.FacesContext;
+
+
+public class URIInternetResource extends InternetResourceBase {
+
+ public URIInternetResource() {
+ super();
+ }
+
+ public URIInternetResource(String uri) {
+ super();
+
+ setUri(uri);
+ }
+
+ public String getUri() {
+ return getKey();
+ }
+
+ public void setUri(String uri) {
+ setKey(uri);
+ }
+
+ @Override
+ public String getUri(FacesContext context, Object data) {
+ return getUri();
+ }
+}
\ No newline at end of file
16 years, 5 months
JBoss Rich Faces SVN: r9771 - in trunk/framework/api/src/main/java/org/ajax4jsf: resource and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-07-24 12:25:03 -0400 (Thu, 24 Jul 2008)
New Revision: 9771
Modified:
trunk/framework/api/src/main/java/org/ajax4jsf/renderkit/HeaderResourceProducer2.java
trunk/framework/api/src/main/java/org/ajax4jsf/renderkit/UserResourceRenderer2.java
trunk/framework/api/src/main/java/org/ajax4jsf/resource/InternetResourceBuilder.java
Log:
https://jira.jboss.org/jira/browse/RF-3687
Modified: trunk/framework/api/src/main/java/org/ajax4jsf/renderkit/HeaderResourceProducer2.java
===================================================================
--- trunk/framework/api/src/main/java/org/ajax4jsf/renderkit/HeaderResourceProducer2.java 2008-07-24 15:44:47 UTC (rev 9770)
+++ trunk/framework/api/src/main/java/org/ajax4jsf/renderkit/HeaderResourceProducer2.java 2008-07-24 16:25:03 UTC (rev 9771)
@@ -24,6 +24,7 @@
import java.io.IOException;
import java.util.Set;
+import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import org.ajax4jsf.resource.InternetResource;
@@ -35,8 +36,8 @@
* @author nbelaevski(a)exadel.com
*
*/
-public interface HeaderResourceProducer2 extends HeaderResourceProducer {
+public interface HeaderResourceProducer2 {
- public void encodeToHead(FacesContext context, boolean processStyles,
- boolean processScripts) throws IOException;
+ public void encodeToHead(FacesContext context, UIComponent component,
+ boolean processStyles, boolean processScripts) throws IOException;
}
Modified: trunk/framework/api/src/main/java/org/ajax4jsf/renderkit/UserResourceRenderer2.java
===================================================================
--- trunk/framework/api/src/main/java/org/ajax4jsf/renderkit/UserResourceRenderer2.java 2008-07-24 15:44:47 UTC (rev 9770)
+++ trunk/framework/api/src/main/java/org/ajax4jsf/renderkit/UserResourceRenderer2.java 2008-07-24 16:25:03 UTC (rev 9771)
@@ -1,7 +1,9 @@
package org.ajax4jsf.renderkit;
+import java.io.IOException;
import java.util.Set;
+import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import org.ajax4jsf.resource.InternetResource;
@@ -14,7 +16,7 @@
* @author nbelaevski(a)exadel.com
*
*/
-public interface UserResourceRenderer2 extends UserResourceRenderer {
+public interface UserResourceRenderer2 {
- public void encodeToHead(FacesContext context);
+ public void encodeToHead(FacesContext context, UIComponent component) throws IOException;
}
Modified: trunk/framework/api/src/main/java/org/ajax4jsf/resource/InternetResourceBuilder.java
===================================================================
--- trunk/framework/api/src/main/java/org/ajax4jsf/resource/InternetResourceBuilder.java 2008-07-24 15:44:47 UTC (rev 9770)
+++ trunk/framework/api/src/main/java/org/ajax4jsf/resource/InternetResourceBuilder.java 2008-07-24 16:25:03 UTC (rev 9771)
@@ -197,5 +197,7 @@
super();
}
- public abstract ResourceRenderer getRenderer(String name);
+ public abstract ResourceRenderer getStyleRenderer();
+
+ public abstract ResourceRenderer getScriptRenderer();
}
\ No newline at end of file
16 years, 5 months
JBoss Rich Faces SVN: r9770 - trunk/ui/contextMenu/src/main/java/org/richfaces/renderkit/html.
by richfaces-svn-commits@lists.jboss.org
Author: amarkhel
Date: 2008-07-24 11:44:47 -0400 (Thu, 24 Jul 2008)
New Revision: 9770
Modified:
trunk/ui/contextMenu/src/main/java/org/richfaces/renderkit/html/ContextMenuRendererBase.java
Log:
Fix bug RF 3946 Add check if context menu have parent with id - otherwise throw exception
Modified: trunk/ui/contextMenu/src/main/java/org/richfaces/renderkit/html/ContextMenuRendererBase.java
===================================================================
--- trunk/ui/contextMenu/src/main/java/org/richfaces/renderkit/html/ContextMenuRendererBase.java 2008-07-24 15:32:29 UTC (rev 9769)
+++ trunk/ui/contextMenu/src/main/java/org/richfaces/renderkit/html/ContextMenuRendererBase.java 2008-07-24 15:44:47 UTC (rev 9770)
@@ -42,6 +42,7 @@
import org.ajax4jsf.renderkit.RendererUtils.HTML;
import org.ajax4jsf.resource.InternetResource;
import org.richfaces.component.UIContextMenu;
+import org.richfaces.component.util.HtmlUtil;
import org.richfaces.renderkit.TemplateEncoderRendererBase;
import org.xml.sax.ContentHandler;
@@ -105,15 +106,39 @@
protected void doEncodeBegin(ResponseWriter writer, FacesContext context,
UIComponent component) throws IOException {
+ ensureParentPresent(component);
writer.startElement(HTML.DIV_ELEM, component);
writer.writeAttribute(HTML.id_ATTRIBUTE, component.getClientId(context), "id");
}
+
+ private void ensureParentPresent(UIComponent component) {
+ UIComponent parent = component.getParent();
+ if (parent != null) {
+ if (HtmlUtil.shouldWriteId(parent)) {
+ return;
+ } else {
+ throw new FacesException(
+ "Context menu cannot be attached to the component with id = "
+ + parent.getId()
+ + ", because a client identifier of the component won't be rendered onto the page. Please, set the identifier.");
+ }
+ } else {
+ throw new FacesException(
+ "Parent component is null for ContextMenu "
+ + component.getId());
+ }
+ }
/**
- * Perform validation of the contextMenu configuration. Throws FacesException in case validation fails.
- * @param clientId - id of the component
- * @param name - component name
- * @param attachTiming - timing options
+ * Perform validation of the contextMenu configuration. Throws
+ * FacesException in case validation fails.
+ *
+ * @param clientId -
+ * id of the component
+ * @param name -
+ * component name
+ * @param attachTiming -
+ * timing options
*/
protected void checkValidity(String clientId, String name, String attachTiming) {
if (!ON_LOAD.equals(attachTiming) && !IMMEDIATE.equals(attachTiming) && !ON_AVAILABLE.equals(attachTiming)) {
16 years, 5 months
JBoss Rich Faces SVN: r9769 - trunk/framework/impl/src/main/java/org/ajax4jsf/org/w3c/tidy.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-07-24 11:32:29 -0400 (Thu, 24 Jul 2008)
New Revision: 9769
Modified:
trunk/framework/impl/src/main/java/org/ajax4jsf/org/w3c/tidy/PPrint.java
Log:
https://jira.jboss.org/jira/browse/RF-3981
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/org/w3c/tidy/PPrint.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/org/w3c/tidy/PPrint.java 2008-07-24 13:59:04 UTC (rev 9768)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/org/w3c/tidy/PPrint.java 2008-07-24 15:32:29 UTC (rev 9769)
@@ -1877,7 +1877,7 @@
return false;
}
- int len = node.end - node.start + 1;
+ int len = node.end - node.start;
String start = TidyUtils.getString(node.textarray, node.start, len);
int indexOfCData = start.indexOf(CDATA_START);
16 years, 5 months
JBoss Rich Faces SVN: r9768 - trunk/ui/core/src/main/config/resources.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-07-24 09:59:04 -0400 (Thu, 24 Jul 2008)
New Revision: 9768
Modified:
trunk/ui/core/src/main/config/resources/resources-config.xml
Log:
Skinning resources added to config file
Modified: trunk/ui/core/src/main/config/resources/resources-config.xml
===================================================================
--- trunk/ui/core/src/main/config/resources/resources-config.xml 2008-07-24 13:57:45 UTC (rev 9767)
+++ trunk/ui/core/src/main/config/resources/resources-config.xml 2008-07-24 13:59:04 UTC (rev 9768)
@@ -9,6 +9,11 @@
<path>org/richfaces/renderkit/html/css/basic_classes.xcss</path>
</resource>
<resource>
+ <name>org/richfaces/renderkit/html/css/basic_both.xcss</name>
+ <path>org/richfaces/renderkit/html/css/basic_both.xcss</path>
+ </resource>
+
+ <resource>
<name>org/richfaces/renderkit/html/css/extended.xcss</name>
<path>org/richfaces/renderkit/html/css/extended.xcss</path>
</resource>
@@ -16,6 +21,10 @@
<name>org/richfaces/renderkit/html/css/extended_classes.xcss</name>
<path>org/richfaces/renderkit/html/css/extended_classes.xcss</path>
</resource>
+ <resource>
+ <name>org/richfaces/renderkit/html/css/extended_both.xcss</name>
+ <path>org/richfaces/renderkit/html/css/extended_both.xcss</path>
+ </resource>
<resource>
<name>org/richfaces/skin-bas-both.xcss</name>
16 years, 5 months
JBoss Rich Faces SVN: r9767 - trunk/test-applications/seleniumTest/src/test/java/org/richfaces/testng.
by richfaces-svn-commits@lists.jboss.org
Author: dsvyatobatsko
Date: 2008-07-24 09:57:45 -0400 (Thu, 24 Jul 2008)
New Revision: 9767
Modified:
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/testng/InplaceInputTest.java
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/testng/InplaceSelectTest.java
Log:
inplaceInput/Select tests are fixed and extended
Modified: trunk/test-applications/seleniumTest/src/test/java/org/richfaces/testng/InplaceInputTest.java
===================================================================
--- trunk/test-applications/seleniumTest/src/test/java/org/richfaces/testng/InplaceInputTest.java 2008-07-24 13:56:35 UTC (rev 9766)
+++ trunk/test-applications/seleniumTest/src/test/java/org/richfaces/testng/InplaceInputTest.java 2008-07-24 13:57:45 UTC (rev 9767)
@@ -76,7 +76,7 @@
writeStatus("Stop editing second component being tested");
- selenium.fireEvent(inplaceInputDOk, "mousedown");
+ selenium.mouseDown(inplaceInputDOk);
AssertTextEquals(inplaceInputD + "_view", EVENT_TEST_RESULT_PASSED_TEXT, "onviewactivated event is not fired");
}
@@ -104,6 +104,40 @@
AssertVisible(inplaceInputDInput);
}
+ @Test
+ public void testInplaceInputComponentCore(Template template) {
+ renderPage(template);
+
+ String inplaceInputD = getParentId() + "_form:" + INPLACE_INPUT_DECORATED;
+ String inplaceInputDInput = inplaceInputD + INPLACE_INPUT_FIELD_POSTFIX;
+ String inplaceInputDOk = getParentId() + "_form:" + INPLACE_INPUT_DECORATED_OK;
+ String inplaceInputDCancel = getParentId() + "_form:" + INPLACE_INPUT_DECORATED_CANCEL;
+
+ writeStatus("Check component's core functionality");
+
+ writeStatus("Double-click the second component and type an initial text");
+ selenium.doubleClick(inplaceInputD);
+ type(inplaceInputDInput, "Sun");
+
+ writeStatus("Stop editing with ok. The input has to be saved");
+ selenium.mouseDown(inplaceInputDOk);
+ String sun = invokeFromComponent(inplaceInputD, "getValue", null);
+ Assert.assertEquals(sun, "Sun", "An inputted text has not been saved with ok");
+ //AssertTextEquals(inplaceInputD, "Sun", "An inputted text has not been saved with ok");
+
+ writeStatus("Double-click the second component again and type a new text");
+ selenium.doubleClick(inplaceInputD);
+ type(inplaceInputDInput, "Sky");
+
+ writeStatus("Stop editing with cancel. The input has not to be saved");
+ selenium.mouseDown(inplaceInputDCancel);
+
+ sun = invokeFromComponent(inplaceInputD, "getValue", null);
+ Assert.assertEquals(sun, "Sun", "An inputted text has not to be saved with cancel");
+ //AssertTextEquals(inplaceInputD, "Sun", "An inputted text has not to be saved with cancel");
+
+ }
+
@Override
public String getTestUrl() {
return "pages/inplaceInput/inplaceInputTest.xhtml";
Modified: trunk/test-applications/seleniumTest/src/test/java/org/richfaces/testng/InplaceSelectTest.java
===================================================================
--- trunk/test-applications/seleniumTest/src/test/java/org/richfaces/testng/InplaceSelectTest.java 2008-07-24 13:56:35 UTC (rev 9766)
+++ trunk/test-applications/seleniumTest/src/test/java/org/richfaces/testng/InplaceSelectTest.java 2008-07-24 13:57:45 UTC (rev 9767)
@@ -36,7 +36,7 @@
writeStatus("Select second element"); //Birch
selenium.mouseMove("xpath=//div[@id='list" + inplaceSelectId + "']/span[2]");
- selenium.fireEvent(okButton, "mousedown");
+ selenium.mouseDown(okButton);
writeStatus("Check that a new element is selected");
@@ -47,7 +47,7 @@
selenium.doubleClick(inplaceSelectId);
selenium.mouseMove("xpath=//div[@id='list" + inplaceSelectId + "']/span[3]");
- selenium.fireEvent(cancelButton, "mousedown");
+ selenium.mouseDown(cancelButton);
writeStatus("Cancel selected value.");
AssertValueEquals(inplaceSelectId + "inplaceValue", "Birch", "A value has not to be changed");
@@ -62,11 +62,11 @@
Assert.assertEquals(runScript("theLatestEvent"), "editactivated", "editactivated event has not been triggered");
writeStatus("Stop editing with ok");
- selenium.fireEvent(okButton, "mousedown");
+ selenium.mouseDown(okButton);
Assert.assertEquals(runScript("theLatestEvent"), "viewactivated", "viewactivated event has not been triggered");
writeStatus("Stop editing with cancel");
- selenium.fireEvent(cancelButton, "mousedown");
+ selenium.mouseDown(cancelButton);
Assert.assertEquals(runScript("theLatestEvent"), "viewactivated", "viewactivated event has not been triggered");
}
16 years, 5 months
JBoss Rich Faces SVN: r9766 - trunk/test-applications/facelets/src/main/java/util/event.
by richfaces-svn-commits@lists.jboss.org
Author: adubovsky
Date: 2008-07-24 09:56:35 -0400 (Thu, 24 Jul 2008)
New Revision: 9766
Modified:
trunk/test-applications/facelets/src/main/java/util/event/Event.java
Log:
Modify id's of input fields for events.
Modified: trunk/test-applications/facelets/src/main/java/util/event/Event.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/util/event/Event.java 2008-07-24 13:13:12 UTC (rev 9765)
+++ trunk/test-applications/facelets/src/main/java/util/event/Event.java 2008-07-24 13:56:35 UTC (rev 9766)
@@ -128,124 +128,124 @@
// showEvent('onkeypressInputID', 'onkeypress work!')
public Event() {
- onitemclick = "showEvent('formID:infoFormID:infoSubview:onitemclickInputID', 'onitemclick work!')";
- onitemdblclick = "showEvent('formID:infoFormID:infoSubview:onitemdblclickInputID', 'onitemdblclick work!')";
- onitemkeydown = "showEvent('formID:infoFormID:infoSubview:onitemkeydownInputID', 'onitemkeydown work!')";
- onitemkeypress = "showEvent('formID:infoFormID:infoSubview:onitemkeypressInputID', 'onitemkeypress work!')";
- onitemkeyup = "showEvent('formID:infoFormID:infoSubview:onitemkeyupInputID', 'onitemkeyup work!')";
- onitemmousedown = "showEvent('formID:infoFormID:infoSubview:onitemmousedownInputID', 'onitemmousedown work!')";
- onitemmousemove = "showEvent('formID:infoFormID:infoSubview:onitemmousemoveInputID', 'onitemmousemove work!')";
- onitemmouseout = "showEvent('formID:infoFormID:infoSubview:onitemmouseoutInputID', 'onitemmouseout work!')";
- onitemmouseover = "showEvent('formID:infoFormID:infoSubview:onitemmouseoverInputID', 'onitemmouseover work!')";
- onitemmouseup = "showEvent('formID:infoFormID:infoSubview:onitemmouseupInputID', 'onitemmouseup work!')";
+ onitemclick = "showEvent('formID:infoSubview:onitemclickInputID', 'onitemclick work!')";
+ onitemdblclick = "showEvent('formID:infoSubview:onitemdblclickInputID', 'onitemdblclick work!')";
+ onitemkeydown = "showEvent('formID:infoSubview:onitemkeydownInputID', 'onitemkeydown work!')";
+ onitemkeypress = "showEvent('formID:infoSubview:onitemkeypressInputID', 'onitemkeypress work!')";
+ onitemkeyup = "showEvent('formID:infoSubview:onitemkeyupInputID', 'onitemkeyup work!')";
+ onitemmousedown = "showEvent('formID:infoSubview:onitemmousedownInputID', 'onitemmousedown work!')";
+ onitemmousemove = "showEvent('formID:infoSubview:onitemmousemoveInputID', 'onitemmousemove work!')";
+ onitemmouseout = "showEvent('formID:infoSubview:onitemmouseoutInputID', 'onitemmouseout work!')";
+ onitemmouseover = "showEvent('formID:infoSubview:onitemmouseoverInputID', 'onitemmouseover work!')";
+ onitemmouseup = "showEvent('formID:infoSubview:onitemmouseupInputID', 'onitemmouseup work!')";
/* --- */
- onobjectchange = "showEvent('formID:infoFormID:infoSubview:onobjectchangeInputID', 'onobjectchange work!')";
- onLoadMap = "showEvent('formID:infoFormID:infoSubview:onLoadMapInputID', 'onLoadMap work!')";
- opened = "showEvent('formID:infoFormID:infoSubview:openedInputID', 'opened work!')";
- onRowClick = "showEvent('formID:infoFormID:infoSubview:onRowClickInputID', 'onRowClick work!')";
- onRowDblClick = "showEvent('formID:infoFormID:infoSubview:onRowDblClickInputID', 'onRowDblClick work!')";
- onRowMouseDown = "showEvent('formID:infoFormID:infoSubview:onRowMouseDownInputID', 'onRowMouseDown work!')";
- onRowMouseMove = "showEvent('formID:infoFormID:infoSubview:onRowMouseMoveInputID', 'onRowMouseMove work!')";
- onRowMouseOut = "showEvent('formID:infoFormID:infoSubview:onRowMouseOutInputID', 'onRowMouseOut work!')";
- onRowMouseOver = "showEvent('formID:infoFormID:infoSubview:onRowMouseOverInputID', 'onRowMouseOver work!')";
- onRowMouseUp = "showEvent('formID:infoFormID:infoSubview:onRowMouseUpInputID', 'onRowMouseUp work!')";
- onbeforedomupdate = "showEvent('formID:infoFormID:infoSubview:onbeforedomupdateInputID', 'onbeforedomupdate work!')";
- onblur = "showEvent('formID:infoFormID:infoSubview:onblurInputID', 'onblur work!')";
- onbottomclick = "showEvent('formID:infoFormID:infoSubview:onbottomclickInputID', 'onbottomclick work!')";
- onchange = "showEvent('formID:infoFormID:infoSubview:onchangeInputID', 'onchange work!')";
- onchanged = "showEvent('formID:infoFormID:infoSubview:onchangedInputID', 'onchanged work!')";
- onclick = "showEvent('formID:infoFormID:infoSubview:onclickInputID', 'onclick work!')";
- oncollapse = "showEvent('formID:infoFormID:infoSubview:oncollapseInputID', 'oncollapse work!')";
- oncomplete = "showEvent('formID:infoFormID:infoSubview:oncompleteInputID', 'oncomplete work!')";
- oncontextmenu = "showEvent('formID:infoFormID:infoSubview:oncontextmenuInputID', 'oncontextmenu work!')";
- onclear = "showEvent('formID:infoFormID:infoSubview:onclearInputID', 'onclear work!')";
- oncurrentdateselect = "showEvent('formID:infoFormID:infoSubview:oncurrentdateselectInputID', 'oncurrentdateselect work!')";
- ondatemouseout = "showEvent('formID:infoFormID:infoSubview:ondatemouseoutInputID', 'ondatemouseout work!')";
- ondatemouseover = "showEvent('formID:infoFormID:infoSubview:ondatemouseoverInputID', 'ondatemouseover work!')";
- ondateselect = "showEvent('formID:infoFormID:infoSubview:ondateselectInputID', 'ondateselect work!')";
- ondateselected = "showEvent('formID:infoFormID:infoSubview:ondateselectedInputID', 'ondateselected work!')";
- ondblclick = "showEvent('formID:infoFormID:infoSubview:ondblclickInputID', 'ondblclick work!')";
- ondownclick = "showEvent('formID:infoFormID:infoSubview:ondownclickInputID', 'ondownclick work!')";
- ondragend = "showEvent('formID:infoFormID:infoSubview:ondragendInputID', 'ondragend work!')";
- ondragenter = "showEvent('formID:infoFormID:infoSubview:ondragenterInputID', 'ondragenter work!')";
- ondragexit = "showEvent('formID:infoFormID:infoSubview:ondragexitInputID', 'ondragexit work!')";
- ondragstart = "showEvent('formID:infoFormID:infoSubview:ondragstartInputID', 'ondragstart work!')";
- ondrop = "showEvent('formID:infoFormID:infoSubview:ondropInputID', 'ondrop work!')";
- ondropend = "showEvent('formID:infoFormID:infoSubview:ondropendInputID', 'ondropend work!')";
- ondropout = "showEvent('formID:infoFormID:infoSubview:ondropoutInputID', 'ondropout work!')";
- ondropover = "showEvent('infoFormID:infoSubview:ondropoverInputID', 'ondropover work!')";
- onerror = "showEvent('formID:infoFormID:infoSubview:onerrorInputID', 'onerror work!')";
- onexpand = "showEvent('formID:infoFormID:infoSubview:onexpandInputID', 'onexpand work!')";
- onfocus = "showEvent('formID:infoFormID:infoSubview:onfocusInputID', 'onfocus work!')";
- ongroupactivate = "showEvent('formID:infoFormID:infoSubview:ongroupactivateInputID', 'ongroupactivate work!')";
- ongroupexpand = "showEvent('formID:infoFormID:infoSubview:ongroupexpandInputID', 'ongroupexpand work!')";
- onheaderclick = "showEvent('formID:infoFormID:infoSubview:onheaderclickInputID', 'onheaderclick work!')";
- onhide = "showEvent('formID:infoFormID:infoSubview:onhideInputID', 'onhide work!')";
- oninit = "showEvent('formID:infoFormID:infoSubview:oninitInputID', 'oninit work!')";
- oninputblur = "showEvent('formID:infoFormID:infoSubview:oninputblurInputID', 'oninputblur work!')";
- oninputchange = "showEvent('formID:infoFormID:infoSubview:oninputchangeInputID', 'oninputchange work!')";
- oninputclick = "showEvent('formID:infoFormID:infoSubview:oninputclickInputID', 'oninputclick work!')";
- oninputfocus = "showEvent('formID:infoFormID:infoSubview:oninputfocusInputID', 'oninputfocus work!')";
- oninputkeydown = "showEvent('formID:infoFormID:infoSubview:oninputkeydownInputID', 'oninputkeydown work!')";
- oninputkeypress = "showEvent('formID:infoFormID:infoSubview:oninputkeypressInputID', 'oninputkeypress work!')";
- oninputkeyup = "showEvent('formID:infoFormID:infoSubview:oninputkeyupInputID', 'oninputkeyup work!')";
- oninputselect = "showEvent('formID:infoFormID:infoSubview:oninputselectInputID', 'oninputselect work!')";
- onitemchange = "showEvent('formID:infoFormID:infoSubview:onitemchangeInputID', 'onitemchange work!')";
- onitemhover = "showEvent('formID:infoFormID:infoSubview:onitemhoverInputID', 'onitemhover work!')";
- onitemselect = "showEvent('formID:infoFormID:infoSubview:onitemselectInputID', 'onitemselect work!')";
- onitemselected = "showEvent('formID:infoFormID:infoSubview:onitemselectedInputID', 'onitemselected work!')";
- onkeydown = "showEvent('formID:infoFormID:infoSubview:onkeydownInputID', 'onkeydown work!')";
- onkeypress = "showEvent('formID:infoFormID:infoSubview:onkeypressInputID', 'onkeypress work!')";
- onkeyup = "showEvent('formID:infoFormID:infoSubview:onkeyupInputID', 'onkeyup work!')";
- onlistcall = "showEvent('formID:infoFormID:infoSubview:onlistcallInputID', 'onlistcall work!')";
- onmaskclick = "showEvent('formID:infoFormID:infoSubview:onmaskclickInputID', 'onmaskclick work!')";
- onmaskcontextmenu = "showEvent('formID:infoFormID:infoSubview:onmaskcontextmenuInputID', 'onmaskcontextmenu work!')";
- onmaskdblclick = "showEvent('formID:infoFormID:infoSubview:onmaskdblclickInputID', 'onmaskdblclick work!')";
- onmaskmousedown = "showEvent('formID:infoFormID:infoSubview:onmaskmousedownInputID', 'onmaskmousedown work!')";
- onmaskmousemove = "showEvent('formID:infoFormID:infoSubview:onmaskmousemoveInputID', 'onmaskmousemove work!')";
- onmaskmouseout = "showEvent('formID:infoFormID:infoSubview:onmaskmouseoutInputID', 'onmaskmouseout work!')";
- onmaskmouseover = "showEvent('formID:infoFormID:infoSubview:onmaskmouseoverInputID', 'onmaskmouseover work!')";
- onmaskmouseup = "showEvent('formID:infoFormID:infoSubview:onmaskmouseupInputID', 'onmaskmouseup work!')";
- onmousedown = "showEvent('formID:infoFormID:infoSubview:onmousedownInputID', 'onmousedown work!')";
- onmousemove = "showEvent('formID:infoFormID:infoSubview:onmousemoveInputID', 'onmousemove work!')";
- onmouseout = "showEvent('formID:infoFormID:infoSubview:onmouseoutInputID', 'onmouseout work!')";
- onmouseover = "showEvent('formID:infoFormID:infoSubview:onmouseoverInputID', 'onmouseover work!')";
- onmouseup = "showEvent('formID:infoFormID:infoSubview:onmouseupInputID', 'onmouseup work!')";
- onmove = "showEvent('formID:infoFormID:infoSubview:onmoveInputID', 'onmove work!')";
- onorderchanged = "showEvent('formID:infoFormID:infoSubview:onorderchangedInputID', 'onorderchanged work!')";
- onresize = "showEvent('formID:infoFormID:infoSubview:onresizeInputID', 'onresize work!')";
- onselect = "showEvent('formID:infoFormID:infoSubview:onselectInputID', 'onselect work!')";
- onselected = "showEvent('formID:infoFormID:infoSubview:onselectedInputID', 'onselected work!')";
- onselectionchange = "showEvent('formID:infoFormID:infoSubview:onselectionchangeInputID', 'onselectionchange work!')";
- onshow = "showEvent('formID:infoFormID:infoSubview:onshowInputID', 'onshow work!')";
- onslide = "showEvent('formID:infoFormID:infoSubview:onslideInputID', 'onslide work!')";
- onsubmit = "showEvent('formID:infoFormID:infoSubview:onsubmitInputID', 'onsubmit work!')";
- ontabenter = "showEvent('formID:infoFormID:infoSubview:ontabenterInputID', 'ontabenter work!')";
- ontableave = "showEvent('formID:infoFormID:infoSubview:ontableaveInputID', 'ontableave work!')";
- ontimeselect = "showEvent('formID:infoFormID:infoSubview:ontimeselectInputID', 'ontimeselect work!')";
- ontimeselected = "showEvent('formID:infoFormID:infoSubview:ontimeselectedInputID', 'ontimeselected work!')";
- ontopclick = "showEvent('formID:infoFormID:infoSubview:ontopclickInputID', 'ontopclick work!')";
- onupclick = "showEvent('formID:infoFormID:infoSubview:onupclickInputID', 'onupclick work!')";
- ongroupcollapse = "showEvent('formID:infoFormID:infoSubview:ongroupcollapseInputID', 'ongroupcollapse work!')";
- onSlideSubmit = "showEvent('formID:infoFormID:infoSubview:onSlideSubmitInputID', 'onSlideSubmit work!')";
- oneditactivated = "showEvent('formID:infoFormID:infoSubview:oneditactivatedInputID', 'oneditactivated work!')";
- oneditactivation = "showEvent('formID:infoFormID:infoSubview:oneditactivationInputID', 'oneditactivation work!')";
- oninputdblclick = "showEvent('formID:infoFormID:infoSubview:oninputdblclickInputID', 'oninputdblclick work!')";
- oninputmousedown = "showEvent('formID:infoFormID:infoSubview:oninputmousedownInputID', 'oninputmousedown work!')";
- oninputmousemove = "showEvent('formID:infoFormID:infoSubview:oninputmousemoveInputID', 'oninputmousemove work!')";
- oninputmouseout = "showEvent('formID:infoFormID:infoSubview:oninputmouseoutInputID', 'oninputmouseout work!')";
- oninputmouseover = "showEvent('formID:infoFormID:infoSubview:oninputmouseoverInputID', 'oninputmouseover work!')";
- oninputmouseup = "showEvent('formID:infoFormID:infoSubview:oninputmouseupInputID', 'oninputmouseup work!')";
- onsizerejected = "showEvent('formID:infoFormID:infoSubview:onsizerejectedInputID', 'onsizerejected work!')";
- ontyperejected = "showEvent('formID:infoFormID:infoSubview:ontyperejectedInputID', 'ontyperejected work!')";
- onupload = "showEvent('formID:infoFormID:infoSubview:onuploadInputID', 'onupload work!')";
- onuploadcanceled = "showEvent('formID:infoFormID:infoSubview:onuploadcanceledInputID', 'onuploadcanceled work!')";
- onuploadcomplete = "showEvent('formID:infoFormID:infoSubview:onuploadcompleteInputID', 'onuploadcomplete work!')";
- onviewactivated = "showEvent('formID:infoFormID:infoSubview:onviewactivatedInputID', 'onviewactivated work!')";
- onviewactivation = "showEvent('formID:infoFormID:infoSubview:onviewactivationInputID', 'onviewactivation work!')";
- onbeforehide = "showEvent('formID:infoFormID:infoSubview:onbeforehideInputID', 'onbeforehide work!')";
- onbeforeshow = "showEvent('formID:infoFormID:infoSubview:onbeforeshowInputID', 'onbeforeshow work!')";
- onadd = "showEvent('formID:infoFormID:infoSubview:onaddInputID', 'onadd work!')";
+ onobjectchange = "showEvent('formID:infoSubview:onobjectchangeInputID', 'onobjectchange work!')";
+ onLoadMap = "showEvent('formID:infoSubview:onLoadMapInputID', 'onLoadMap work!')";
+ opened = "showEvent('formID:infoSubview:openedInputID', 'opened work!')";
+ onRowClick = "showEvent('formID:infoSubview:onRowClickInputID', 'onRowClick work!')";
+ onRowDblClick = "showEvent('formID:infoSubview:onRowDblClickInputID', 'onRowDblClick work!')";
+ onRowMouseDown = "showEvent('formID:infoSubview:onRowMouseDownInputID', 'onRowMouseDown work!')";
+ onRowMouseMove = "showEvent('formID:infoSubview:onRowMouseMoveInputID', 'onRowMouseMove work!')";
+ onRowMouseOut = "showEvent('formID:infoSubview:onRowMouseOutInputID', 'onRowMouseOut work!')";
+ onRowMouseOver = "showEvent('formID:infoSubview:onRowMouseOverInputID', 'onRowMouseOver work!')";
+ onRowMouseUp = "showEvent('formID:infoSubview:onRowMouseUpInputID', 'onRowMouseUp work!')";
+ onbeforedomupdate = "showEvent('formID:infoSubview:onbeforedomupdateInputID', 'onbeforedomupdate work!')";
+ onblur = "showEvent('formID:infoSubview:onblurInputID', 'onblur work!')";
+ onbottomclick = "showEvent('formID:infoSubview:onbottomclickInputID', 'onbottomclick work!')";
+ onchange = "showEvent('formID:infoSubview:onchangeInputID', 'onchange work!')";
+ onchanged = "showEvent('formID:infoSubview:onchangedInputID', 'onchanged work!')";
+ onclick = "showEvent('formID:infoSubview:onclickInputID', 'onclick work!')";
+ oncollapse = "showEvent('formID:infoSubview:oncollapseInputID', 'oncollapse work!')";
+ oncomplete = "showEvent('formID:infoSubview:oncompleteInputID', 'oncomplete work!')";
+ oncontextmenu = "showEvent('formID:infoSubview:oncontextmenuInputID', 'oncontextmenu work!')";
+ onclear = "showEvent('formID:infoSubview:onclearInputID', 'onclear work!')";
+ oncurrentdateselect = "showEvent('formID:infoSubview:oncurrentdateselectInputID', 'oncurrentdateselect work!')";
+ ondatemouseout = "showEvent('formID:infoSubview:ondatemouseoutInputID', 'ondatemouseout work!')";
+ ondatemouseover = "showEvent('formID:infoSubview:ondatemouseoverInputID', 'ondatemouseover work!')";
+ ondateselect = "showEvent('formID:infoSubview:ondateselectInputID', 'ondateselect work!')";
+ ondateselected = "showEvent('formID:infoSubview:ondateselectedInputID', 'ondateselected work!')";
+ ondblclick = "showEvent('formID:infoSubview:ondblclickInputID', 'ondblclick work!')";
+ ondownclick = "showEvent('formID:infoSubview:ondownclickInputID', 'ondownclick work!')";
+ ondragend = "showEvent('formID:infoSubview:ondragendInputID', 'ondragend work!')";
+ ondragenter = "showEvent('formID:infoSubview:ondragenterInputID', 'ondragenter work!')";
+ ondragexit = "showEvent('formID:infoSubview:ondragexitInputID', 'ondragexit work!')";
+ ondragstart = "showEvent('formID:infoSubview:ondragstartInputID', 'ondragstart work!')";
+ ondrop = "showEvent('formID:infoSubview:ondropInputID', 'ondrop work!')";
+ ondropend = "showEvent('formID:infoSubview:ondropendInputID', 'ondropend work!')";
+ ondropout = "showEvent('formID:infoSubview:ondropoutInputID', 'ondropout work!')";
+ ondropover = "showEvent('FormID:infoSubview:ondropoverInputID', 'ondropover work!')";
+ onerror = "showEvent('formID:infoSubview:onerrorInputID', 'onerror work!')";
+ onexpand = "showEvent('formID:infoSubview:onexpandInputID', 'onexpand work!')";
+ onfocus = "showEvent('formID:infoSubview:onfocusInputID', 'onfocus work!')";
+ ongroupactivate = "showEvent('formID:infoSubview:ongroupactivateInputID', 'ongroupactivate work!')";
+ ongroupexpand = "showEvent('formID:infoSubview:ongroupexpandInputID', 'ongroupexpand work!')";
+ onheaderclick = "showEvent('formID:infoSubview:onheaderclickInputID', 'onheaderclick work!')";
+ onhide = "showEvent('formID:infoSubview:onhideInputID', 'onhide work!')";
+ oninit = "showEvent('formID:infoSubview:oninitInputID', 'oninit work!')";
+ oninputblur = "showEvent('formID:infoSubview:oninputblurInputID', 'oninputblur work!')";
+ oninputchange = "showEvent('formID:infoSubview:oninputchangeInputID', 'oninputchange work!')";
+ oninputclick = "showEvent('formID:infoSubview:oninputclickInputID', 'oninputclick work!')";
+ oninputfocus = "showEvent('formID:infoSubview:oninputfocusInputID', 'oninputfocus work!')";
+ oninputkeydown = "showEvent('formID:infoSubview:oninputkeydownInputID', 'oninputkeydown work!')";
+ oninputkeypress = "showEvent('formID:infoSubview:oninputkeypressInputID', 'oninputkeypress work!')";
+ oninputkeyup = "showEvent('formID:infoSubview:oninputkeyupInputID', 'oninputkeyup work!')";
+ oninputselect = "showEvent('formID:infoSubview:oninputselectInputID', 'oninputselect work!')";
+ onitemchange = "showEvent('formID:infoSubview:onitemchangeInputID', 'onitemchange work!')";
+ onitemhover = "showEvent('formID:infoSubview:onitemhoverInputID', 'onitemhover work!')";
+ onitemselect = "showEvent('formID:infoSubview:onitemselectInputID', 'onitemselect work!')";
+ onitemselected = "showEvent('formID:infoSubview:onitemselectedInputID', 'onitemselected work!')";
+ onkeydown = "showEvent('formID:infoSubview:onkeydownInputID', 'onkeydown work!')";
+ onkeypress = "showEvent('formID:infoSubview:onkeypressInputID', 'onkeypress work!')";
+ onkeyup = "showEvent('formID:infoSubview:onkeyupInputID', 'onkeyup work!')";
+ onlistcall = "showEvent('formID:infoSubview:onlistcallInputID', 'onlistcall work!')";
+ onmaskclick = "showEvent('formID:infoSubview:onmaskclickInputID', 'onmaskclick work!')";
+ onmaskcontextmenu = "showEvent('formID:infoSubview:onmaskcontextmenuInputID', 'onmaskcontextmenu work!')";
+ onmaskdblclick = "showEvent('formID:infoSubview:onmaskdblclickInputID', 'onmaskdblclick work!')";
+ onmaskmousedown = "showEvent('formID:infoSubview:onmaskmousedownInputID', 'onmaskmousedown work!')";
+ onmaskmousemove = "showEvent('formID:infoSubview:onmaskmousemoveInputID', 'onmaskmousemove work!')";
+ onmaskmouseout = "showEvent('formID:infoSubview:onmaskmouseoutInputID', 'onmaskmouseout work!')";
+ onmaskmouseover = "showEvent('formID:infoSubview:onmaskmouseoverInputID', 'onmaskmouseover work!')";
+ onmaskmouseup = "showEvent('formID:infoSubview:onmaskmouseupInputID', 'onmaskmouseup work!')";
+ onmousedown = "showEvent('formID:infoSubview:onmousedownInputID', 'onmousedown work!')";
+ onmousemove = "showEvent('formID:infoSubview:onmousemoveInputID', 'onmousemove work!')";
+ onmouseout = "showEvent('formID:infoSubview:onmouseoutInputID', 'onmouseout work!')";
+ onmouseover = "showEvent('formID:infoSubview:onmouseoverInputID', 'onmouseover work!')";
+ onmouseup = "showEvent('formID:infoSubview:onmouseupInputID', 'onmouseup work!')";
+ onmove = "showEvent('formID:infoSubview:onmoveInputID', 'onmove work!')";
+ onorderchanged = "showEvent('formID:infoSubview:onorderchangedInputID', 'onorderchanged work!')";
+ onresize = "showEvent('formID:infoSubview:onresizeInputID', 'onresize work!')";
+ onselect = "showEvent('formID:infoSubview:onselectInputID', 'onselect work!')";
+ onselected = "showEvent('formID:infoSubview:onselectedInputID', 'onselected work!')";
+ onselectionchange = "showEvent('formID:infoSubview:onselectionchangeInputID', 'onselectionchange work!')";
+ onshow = "showEvent('formID:infoSubview:onshowInputID', 'onshow work!')";
+ onslide = "showEvent('formID:infoSubview:onslideInputID', 'onslide work!')";
+ onsubmit = "showEvent('formID:infoSubview:onsubmitInputID', 'onsubmit work!')";
+ ontabenter = "showEvent('formID:infoSubview:ontabenterInputID', 'ontabenter work!')";
+ ontableave = "showEvent('formID:infoSubview:ontableaveInputID', 'ontableave work!')";
+ ontimeselect = "showEvent('formID:infoSubview:ontimeselectInputID', 'ontimeselect work!')";
+ ontimeselected = "showEvent('formID:infoSubview:ontimeselectedInputID', 'ontimeselected work!')";
+ ontopclick = "showEvent('formID:infoSubview:ontopclickInputID', 'ontopclick work!')";
+ onupclick = "showEvent('formID:infoSubview:onupclickInputID', 'onupclick work!')";
+ ongroupcollapse = "showEvent('formID:infoSubview:ongroupcollapseInputID', 'ongroupcollapse work!')";
+ onSlideSubmit = "showEvent('formID:infoSubview:onSlideSubmitInputID', 'onSlideSubmit work!')";
+ oneditactivated = "showEvent('formID:infoSubview:oneditactivatedInputID', 'oneditactivated work!')";
+ oneditactivation = "showEvent('formID:infoSubview:oneditactivationInputID', 'oneditactivation work!')";
+ oninputdblclick = "showEvent('formID:infoSubview:oninputdblclickInputID', 'oninputdblclick work!')";
+ oninputmousedown = "showEvent('formID:infoSubview:oninputmousedownInputID', 'oninputmousedown work!')";
+ oninputmousemove = "showEvent('formID:infoSubview:oninputmousemoveInputID', 'oninputmousemove work!')";
+ oninputmouseout = "showEvent('formID:infoSubview:oninputmouseoutInputID', 'oninputmouseout work!')";
+ oninputmouseover = "showEvent('formID:infoSubview:oninputmouseoverInputID', 'oninputmouseover work!')";
+ oninputmouseup = "showEvent('formID:infoSubview:oninputmouseupInputID', 'oninputmouseup work!')";
+ onsizerejected = "showEvent('formID:infoSubview:onsizerejectedInputID', 'onsizerejected work!')";
+ ontyperejected = "showEvent('formID:infoSubview:ontyperejectedInputID', 'ontyperejected work!')";
+ onupload = "showEvent('formID:infoSubview:onuploadInputID', 'onupload work!')";
+ onuploadcanceled = "showEvent('formID:infoSubview:onuploadcanceledInputID', 'onuploadcanceled work!')";
+ onuploadcomplete = "showEvent('formID:infoSubview:onuploadcompleteInputID', 'onuploadcomplete work!')";
+ onviewactivated = "showEvent('formID:infoSubview:onviewactivatedInputID', 'onviewactivated work!')";
+ onviewactivation = "showEvent('formID:infoSubview:onviewactivationInputID', 'onviewactivation work!')";
+ onbeforehide = "showEvent('formID:infoSubview:onbeforehideInputID', 'onbeforehide work!')";
+ onbeforeshow = "showEvent('formID:infoSubview:onbeforeshowInputID', 'onbeforeshow work!')";
+ onadd = "showEvent('formID:infoSubview:onaddInputID', 'onadd work!')";
}
public String getOncontextmenu() {
16 years, 5 months
JBoss Rich Faces SVN: r9765 - trunk/docs/userguide/en/src/main/docbook/modules.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2008-07-24 09:13:12 -0400 (Thu, 24 Jul 2008)
New Revision: 9765
Modified:
trunk/docs/userguide/en/src/main/docbook/modules/AUGWADParams.xml
Log:
RF-3677 - described this functionality.
Modified: trunk/docs/userguide/en/src/main/docbook/modules/AUGWADParams.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/AUGWADParams.xml 2008-07-24 12:23:28 UTC (rev 9764)
+++ trunk/docs/userguide/en/src/main/docbook/modules/AUGWADParams.xml 2008-07-24 13:13:12 UTC (rev 9765)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<section id="WebApplicationDescriptorParameters">
- <?dbhtml filename="WebApplicationParameters.html"?>
+<?dbhtml filename="WebApplicationParameters.html"?>
<title>Web Application Descriptor Parameters</title>
@@ -146,7 +146,25 @@
Defines in seconds how long streamed back to browser resources can be cached
</entry>
</row>
-
+
+ <row>
+ <entry>org.ajax4jsf.SERIALIZE_SERVER_STATE</entry>
+ <entry>false</entry>
+ <entry>
+ If enabled the component state (not the tree) will be
+ serialized before being stored in the session. This
+ may be desirable for applications that may have issues
+ with view state being sensitive to model changes.
+ Instead of this parameter can use
+ <code>com.sun.faces.serializeServerState</code>
+ and
+ <code>
+ org.apache.myfaces.SERIALIZE_STATE_IN_SESSION
+ </code>
+ parameters for corresponding environments.
+ </entry>
+ </row>
+
</tbody>
</tgroup>
</table>
16 years, 5 months
JBoss Rich Faces SVN: r9764 - trunk/ui/dropdown-menu/src/main/templates/org/richfaces.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-07-24 08:23:28 -0400 (Thu, 24 Jul 2008)
New Revision: 9764
Modified:
trunk/ui/dropdown-menu/src/main/templates/org/richfaces/htmlDropDownMenu.jspx
Log:
https://jira.jboss.org/jira/browse/RF-3832
Modified: trunk/ui/dropdown-menu/src/main/templates/org/richfaces/htmlDropDownMenu.jspx
===================================================================
--- trunk/ui/dropdown-menu/src/main/templates/org/richfaces/htmlDropDownMenu.jspx 2008-07-24 11:30:15 UTC (rev 9763)
+++ trunk/ui/dropdown-menu/src/main/templates/org/richfaces/htmlDropDownMenu.jspx 2008-07-24 12:23:28 UTC (rev 9764)
@@ -33,19 +33,19 @@
<jsp:scriptlet>
<![CDATA[ } if (menu.isDisabled() &&
(component.getFacet("labelDisabled")!=null && component.getFacet("labelDisabled").isRendered())) {]]>
- </jsp:scriptlet> <span class="dr-label-text-decor rich-label-text-decor"> <u:insertFacet
- name="labelDisabled" /> </span> <jsp:scriptlet>
+ </jsp:scriptlet> <div class="dr-label-text-decor rich-label-text-decor"> <u:insertFacet
+ name="labelDisabled" /> </div> <jsp:scriptlet>
<![CDATA[} else if(component.getFacet("label")!=null && component.getFacet("label").isRendered()) {]]>
- </jsp:scriptlet> <span class="dr-label-text-decor rich-label-text-decor"> <u:insertFacet
- name="label" /> </span> <jsp:scriptlet>
+ </jsp:scriptlet> <div class="dr-label-text-decor rich-label-text-decor"> <u:insertFacet
+ name="label" /> </div> <jsp:scriptlet>
<![CDATA[} else {]]>
- </jsp:scriptlet> <span id="#{clientId}_span" class="dr-label-text-decor rich-label-text-decor">#{component.attributes['value']}</span>
+ </jsp:scriptlet> <div id="#{clientId}_span" class="dr-label-text-decor rich-label-text-decor">#{component.attributes['value']}</div>
<jsp:scriptlet>
<![CDATA[}]]>
</jsp:scriptlet>
<div
- style="margin: 0px; padding: 0px; border: 0px; position: relative; z-index: 100;">
+ style="margin: 0px; padding: 0px; border: 0px; position: absolute; z-index: 100;">
<vcp:body>
<f:call name="renderChildren" />
</vcp:body></div>
16 years, 5 months