JBoss Rich Faces SVN: r15355 - in root: examples/trunk/components/core-demo/src/main/java/org/richfaces/demo and 6 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2009-08-27 12:39:02 -0400 (Thu, 27 Aug 2009)
New Revision: 15355
Modified:
root/cdk/trunk/plugins/generator/src/main/java/org/richfaces/builder/templates/BaseTemplateConsumer.java
root/examples/trunk/components/core-demo/src/main/java/org/richfaces/demo/CommandBean.java
root/examples/trunk/components/core-demo/src/main/webapp/button.xhtml
root/examples/trunk/components/core-demo/src/main/webapp/link.xhtml
root/examples/trunk/components/core-demo/src/main/webapp/mediaOutput.xhtml
root/examples/trunk/components/core-demo/src/main/webapp/status.xhtml
root/framework/trunk/impl/src/main/java/org/ajax4jsf/renderkit/HandlersChain.java
root/framework/trunk/impl/src/main/java/org/ajax4jsf/renderkit/RendererUtils.java
root/ui/trunk/components/core/src/main/java/org/richfaces/component/html/HtmlAjaxStatus.java
root/ui/trunk/components/core/src/main/java/org/richfaces/component/html/HtmlCommandButton.java
root/ui/trunk/components/core/src/main/java/org/richfaces/component/html/HtmlCommandLink.java
root/ui/trunk/components/core/src/main/java/org/richfaces/component/html/HtmlMediaOutput.java
root/ui/trunk/components/core/src/main/java/org/richfaces/renderkit/AjaxCommandRendererBase.java
root/ui/trunk/components/core/src/main/java/org/richfaces/renderkit/html/AjaxCommandButtonRendererBase.java
root/ui/trunk/components/core/src/main/java/org/richfaces/renderkit/html/AjaxStatusRenderer.java
root/ui/trunk/components/core/src/main/templates/org/ajax4jsf/renderkit/html/button.template.xml
root/ui/trunk/components/core/src/main/templates/org/ajax4jsf/renderkit/html/log.template.xml
Log:
RF-7758
Modified: root/cdk/trunk/plugins/generator/src/main/java/org/richfaces/builder/templates/BaseTemplateConsumer.java
===================================================================
--- root/cdk/trunk/plugins/generator/src/main/java/org/richfaces/builder/templates/BaseTemplateConsumer.java 2009-08-27 16:15:31 UTC (rev 15354)
+++ root/cdk/trunk/plugins/generator/src/main/java/org/richfaces/builder/templates/BaseTemplateConsumer.java 2009-08-27 16:39:02 UTC (rev 15355)
@@ -218,8 +218,6 @@
elementName)));
Map<String, String> attributes = new LinkedHashMap<String, String>();
- boolean usePassThrough = false;
- Set<String> passThroughSkip = new HashSet<String>();
Iterator<Attribute> attributesItr = startElement.getAttributes();
while (attributesItr.hasNext()) {
@@ -231,12 +229,9 @@
attributes.put(attributeName.getLocalPart(), value);
} else if (isCdkNamespace(attributeName)) {
if ("passThroughWithExclusions".equals(attributeName.getLocalPart())) {
- usePassThrough = true;
if (!"#none".equals(value)) {
- String[] split = value.split(",");
- for (String s : split) {
- passThroughSkip.add(s.trim());
- }
+ rootStatement.addToBody(new MethodBodyStatement(MessageFormat
+ .format("getUtils().encodePassThruWithExclusions(context, component, \"{0}\", null);", value)));
}
} else {
throw new IllegalArgumentException(attributeName.toString());
@@ -246,24 +241,6 @@
}
}
- if (usePassThrough) {
- Set<String> schemaAttributes = elementsAttributes.get(elementName);
- if (schemaAttributes != null) {
- for (String schemaAttribute : schemaAttributes) {
- if (passThroughSkip.contains(schemaAttribute)) {
- continue;
- }
-
- if (attributes.containsKey(schemaAttribute)) {
- continue;
- }
-
- attributes.put(schemaAttribute,
- MessageFormat.format("#'{'component.attributes[{0}]'}'", schemaAttribute));
- }
- }
- }
-
for (Entry<String, String> attributeEntry : attributes.entrySet()) {
//TODO add check for default values
rootStatement.addToBody(new MethodBodyStatement(
Modified: root/examples/trunk/components/core-demo/src/main/java/org/richfaces/demo/CommandBean.java
===================================================================
--- root/examples/trunk/components/core-demo/src/main/java/org/richfaces/demo/CommandBean.java 2009-08-27 16:15:31 UTC (rev 15354)
+++ root/examples/trunk/components/core-demo/src/main/java/org/richfaces/demo/CommandBean.java 2009-08-27 16:39:02 UTC (rev 15355)
@@ -3,6 +3,7 @@
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
+import javax.faces.event.AjaxBehaviorEvent;
@ManagedBean(name="commandBean")
@SessionScoped
@@ -30,4 +31,8 @@
public Date getDate() {
return new Date();
}
+
+ public void listener(AjaxBehaviorEvent event) {
+ System.out.println("CommandBean.listener()");
+ }
}
Modified: root/examples/trunk/components/core-demo/src/main/webapp/button.xhtml
===================================================================
--- root/examples/trunk/components/core-demo/src/main/webapp/button.xhtml 2009-08-27 16:15:31 UTC (rev 15354)
+++ root/examples/trunk/components/core-demo/src/main/webapp/button.xhtml 2009-08-27 16:39:02 UTC (rev 15355)
@@ -18,6 +18,9 @@
<a4j:commandButton action="#{commandBean.submit}" render="out" value="Say Hello" />
<a4j:commandButton action="#{commandBean.submit}" render="out" value="Say Hello with limitRender" limitRender="true"/>
<a4j:commandButton action="#{commandBean.reset}" render="out" value="Reset" />
+ <a4j:commandButton value="Test AjaxBehavior">
+ <f:ajax event="action" listener="#{commandBean.listener}" />
+ </a4j:commandButton>
</h:form>
<br />
<h:panelGroup id="out">
Modified: root/examples/trunk/components/core-demo/src/main/webapp/link.xhtml
===================================================================
--- root/examples/trunk/components/core-demo/src/main/webapp/link.xhtml 2009-08-27 16:15:31 UTC (rev 15354)
+++ root/examples/trunk/components/core-demo/src/main/webapp/link.xhtml 2009-08-27 16:39:02 UTC (rev 15355)
@@ -24,6 +24,10 @@
<a4j:commandLink action="#{commandBean.reset}" render="out">
<h:outputText value="Reset" />
</a4j:commandLink>
+ <a4j:commandLink>
+ <f:ajax event="action" listener="#{commandBean.listener}" />
+ <h:outputText value="Test AjaxBehavior" />
+ </a4j:commandLink>
</h:form>
<br />
<h:panelGroup id="out">
Modified: root/examples/trunk/components/core-demo/src/main/webapp/mediaOutput.xhtml
===================================================================
--- root/examples/trunk/components/core-demo/src/main/webapp/mediaOutput.xhtml 2009-08-27 16:15:31 UTC (rev 15354)
+++ root/examples/trunk/components/core-demo/src/main/webapp/mediaOutput.xhtml 2009-08-27 16:39:02 UTC (rev 15355)
@@ -11,8 +11,12 @@
<h:body>
<a4j:mediaOutput createContent="#{mediaOutputBean.createContent}" value="richfaces.jpg"
element="img" /><br />
- <a4j:mediaOutput createContent="#{mediaOutputBean.createContent}" value="richfaces-twitter.jpg"
- element="img" /><br />
+ <h:form>
+ <a4j:mediaOutput createContent="#{mediaOutputBean.createContent}" value="richfaces-twitter.jpg"
+ element="img" >
+ <f:ajax event="dblclick" listener="#{commandBean.listener}" />
+ </a4j:mediaOutput><br />
+ </h:form>
</h:body>
</f:view>
</html>
\ No newline at end of file
Modified: root/examples/trunk/components/core-demo/src/main/webapp/status.xhtml
===================================================================
--- root/examples/trunk/components/core-demo/src/main/webapp/status.xhtml 2009-08-27 16:15:31 UTC (rev 15354)
+++ root/examples/trunk/components/core-demo/src/main/webapp/status.xhtml 2009-08-27 16:39:02 UTC (rev 15355)
@@ -30,6 +30,7 @@
<a4j:status startStyle="color: green">
<f:facet name="start">...start...</f:facet>
<f:facet name="stop">stop</f:facet>
+ <f:ajax event="error" listener="#{commandBean.listener}" />
</a4j:status>
<h:form>
Modified: root/framework/trunk/impl/src/main/java/org/ajax4jsf/renderkit/HandlersChain.java
===================================================================
--- root/framework/trunk/impl/src/main/java/org/ajax4jsf/renderkit/HandlersChain.java 2009-08-27 16:15:31 UTC (rev 15354)
+++ root/framework/trunk/impl/src/main/java/org/ajax4jsf/renderkit/HandlersChain.java 2009-08-27 16:39:02 UTC (rev 15355)
@@ -54,10 +54,6 @@
private Collection<Parameter> parameters;
- private boolean skipSubmittingBehaviors = false;
-
- private boolean behaviorsHandled = false;
-
//TODO: review for optimization
private List<String> handlers = new ArrayList<String>(2);
@@ -75,9 +71,7 @@
this.parameters = parameters;
}
- private final List<ClientBehavior> getBehaviorsList(String behaviorName) {
- behaviorsHandled = true;
-
+ private final List<ClientBehavior> getBehaviorsList(String behaviorName) {
List<ClientBehavior> behaviors = null;
if (component instanceof ClientBehaviorHolder) {
ClientBehaviorHolder clientBehaviorHolder = (ClientBehaviorHolder) component;
@@ -115,23 +109,24 @@
addInlineHandlerAsValue(context, (String) component.getAttributes().get(attributeName));
}
- public void addBehaviors(FacesContext context, String behaviorName) {
- List<ClientBehavior> behaviorsList = getBehaviorsList(behaviorName);
+ public void addBehaviors(FacesContext context, String evantName) {
+ addBehaviors(context, evantName, null);
+ }
+ public void addBehaviors(FacesContext context, String evantName, String defaultEventName) {
+ String name = evantName;
+ List<ClientBehavior> behaviorsList = getBehaviorsList(evantName);
+ if (behaviorsList == null && defaultEventName != null) {
+ behaviorsList = getBehaviorsList(defaultEventName);
+ name = defaultEventName;
+ }
if (behaviorsList != null) {
ClientBehaviorContext behaviorContext = ClientBehaviorContext.createClientBehaviorContext(
- context, component, behaviorName, null, getParameters(context));
+ context, component, name, null, getParameters(context));
for (ClientBehavior clientBehavior : behaviorsList) {
String behaviorScript = clientBehavior.getScript(behaviorContext);
if (isNotEmpty(behaviorScript)) {
if (clientBehavior.getHints().contains(ClientBehaviorHint.SUBMITTING)) {
- if (skipSubmittingBehaviors) {
-
- //TODO: discuss this - it is not ok to skip submitting behaviors completely
- log.info("Submitting behavior '" + behaviorScript + "' has been skipped");
- continue;
- }
-
hasSubmittingBehavior = true;
}
@@ -166,14 +161,4 @@
return parameters;
}
-
- /**
- * @param ignoreSubmittingBehaviors the ignoreSubmittingBehaviors to set
- */
- public void setSkipSubmittingBehaviors() {
- assert (!behaviorsHandled) : "Some behaviors were already processed by this chain!";
-
- this.skipSubmittingBehaviors = true;
- }
-
}
\ No newline at end of file
Modified: root/framework/trunk/impl/src/main/java/org/ajax4jsf/renderkit/RendererUtils.java
===================================================================
--- root/framework/trunk/impl/src/main/java/org/ajax4jsf/renderkit/RendererUtils.java 2009-08-27 16:15:31 UTC (rev 15354)
+++ root/framework/trunk/impl/src/main/java/org/ajax4jsf/renderkit/RendererUtils.java 2009-08-27 16:39:02 UTC (rev 15355)
@@ -389,12 +389,12 @@
return parameters;
}
- public void encodeBehaviors(FacesContext context, ClientBehaviorHolder behaviorHolder,
+ private void encodeBehaviors(FacesContext context, ClientBehaviorHolder behaviorHolder,
String defaultHtmlEventName, String[] attributesExclusions) throws IOException {
- if (attributesExclusions != null && attributesExclusions.length != 0) {
- assert false : "Not supported yet";
- }
+// if (attributesExclusions != null && attributesExclusions.length != 0) {
+// assert false : "Not supported yet";
+// }
//TODO: disabled component check
String defaultEventName = behaviorHolder.getDefaultEventName();
@@ -411,13 +411,15 @@
}
String htmlEventName = "on" + behaviorEventName;
- HandlersChain handlersChain = new HandlersChain(component, parametersList);
- handlersChain.addInlineHandlerFromAttribute(context, htmlEventName);
- handlersChain.addBehaviors(context, behaviorEventName);
- String handlerScript = handlersChain.toScript();
-
- if (!isEmpty(handlerScript)) {
- writer.writeAttribute(htmlEventName, handlerScript, htmlEventName);
+ if(attributesExclusions == null || Arrays.binarySearch(attributesExclusions, htmlEventName) < 0) {
+ HandlersChain handlersChain = new HandlersChain(component, parametersList);
+ handlersChain.addInlineHandlerFromAttribute(context, htmlEventName);
+ handlersChain.addBehaviors(context, behaviorEventName);
+ String handlerScript = handlersChain.toScript();
+
+ if (!isEmpty(handlerScript)) {
+ writer.writeAttribute(htmlEventName, handlerScript, htmlEventName);
+ }
}
}
}
Modified: root/ui/trunk/components/core/src/main/java/org/richfaces/component/html/HtmlAjaxStatus.java
===================================================================
--- root/ui/trunk/components/core/src/main/java/org/richfaces/component/html/HtmlAjaxStatus.java 2009-08-27 16:15:31 UTC (rev 15354)
+++ root/ui/trunk/components/core/src/main/java/org/richfaces/component/html/HtmlAjaxStatus.java 2009-08-27 16:39:02 UTC (rev 15355)
@@ -21,18 +21,30 @@
package org.richfaces.component.html;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.LinkedHashSet;
+
+import javax.faces.component.behavior.ClientBehaviorHolder;
+
import org.richfaces.component.UIAjaxStatus;
/**
* @author Nick Belaevski
*
*/
-public class HtmlAjaxStatus extends UIAjaxStatus {
+public class HtmlAjaxStatus extends UIAjaxStatus implements ClientBehaviorHolder {
public static final String COMPONENT_TYPE = "org.richfaces.Status";
public static final String COMPONENT_FAMILY = "org.richfaces.Status";
+ private static final Collection<String> EVENT_NAMES = Collections.unmodifiableCollection(
+ new LinkedHashSet<String>(
+ Arrays.asList("start", "stop", "error", "success"))
+ );
+
public HtmlAjaxStatus() {
setRendererType("org.richfaces.StatusRenderer");
}
@@ -41,4 +53,8 @@
return COMPONENT_FAMILY;
}
+ @Override
+ public Collection<String> getEventNames() {
+ return EVENT_NAMES;
+ }
}
Modified: root/ui/trunk/components/core/src/main/java/org/richfaces/component/html/HtmlCommandButton.java
===================================================================
--- root/ui/trunk/components/core/src/main/java/org/richfaces/component/html/HtmlCommandButton.java 2009-08-27 16:15:31 UTC (rev 15354)
+++ root/ui/trunk/components/core/src/main/java/org/richfaces/component/html/HtmlCommandButton.java 2009-08-27 16:39:02 UTC (rev 15355)
@@ -21,14 +21,20 @@
package org.richfaces.component.html;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.LinkedHashSet;
+
import javax.faces.component.UICommand;
+import javax.faces.component.behavior.ClientBehaviorHolder;
/**
* @author Konstantin Mishin
*
*/
-public class HtmlCommandButton extends UICommand {
+public class HtmlCommandButton extends UICommand implements ClientBehaviorHolder {
public final static String COMPONENT_TYPE = "org.richfaces.CommandButton";
@@ -36,6 +42,12 @@
style, styleClass, limitRender
}
+ private static final Collection<String> EVENT_NAMES = Collections.unmodifiableCollection(
+ new LinkedHashSet<String>(
+ Arrays.asList("click", "mousemove", "dblclick", "keydown", "keypress",
+ "keyup", "mousedown", "mouseout", "mouseover", "mouseup", "action"))
+ );
+
public HtmlCommandButton(){
setRendererType("org.richfaces.CommandButtonRenderer");
}
@@ -63,4 +75,14 @@
public void setLimitRender(boolean limitRender) {
getStateHelper().put(PropertyKeys.limitRender, limitRender);
}
+
+ @Override
+ public Collection<String> getEventNames() {
+ return EVENT_NAMES;
+ }
+
+ @Override
+ public String getDefaultEventName() {
+ return "action";
+ }
}
Modified: root/ui/trunk/components/core/src/main/java/org/richfaces/component/html/HtmlCommandLink.java
===================================================================
--- root/ui/trunk/components/core/src/main/java/org/richfaces/component/html/HtmlCommandLink.java 2009-08-27 16:15:31 UTC (rev 15354)
+++ root/ui/trunk/components/core/src/main/java/org/richfaces/component/html/HtmlCommandLink.java 2009-08-27 16:39:02 UTC (rev 15355)
@@ -21,7 +21,13 @@
package org.richfaces.component.html;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.LinkedHashSet;
+
import javax.faces.component.UICommand;
+import javax.faces.component.behavior.ClientBehaviorHolder;
/**
* @author Konstantin Mishin
@@ -29,7 +35,7 @@
*/
-public class HtmlCommandLink extends UICommand {
+public class HtmlCommandLink extends UICommand implements ClientBehaviorHolder {
public final static String COMPONENT_TYPE = "org.richfaces.CommandLink";
@@ -37,6 +43,12 @@
style, styleClass, limitRender
}
+ private static final Collection<String> EVENT_NAMES = Collections.unmodifiableCollection(
+ new LinkedHashSet<String>(
+ Arrays.asList("click", "mousemove", "dblclick", "keydown", "keypress",
+ "keyup", "mousedown", "mouseout", "mouseover", "mouseup", "action"))
+ );
+
public HtmlCommandLink() {
setRendererType("org.richfaces.CommandLinkRenderer");
}
@@ -64,4 +76,14 @@
public void setLimitRender(boolean limitRender) {
getStateHelper().put(PropertyKeys.limitRender, limitRender);
}
+
+ @Override
+ public Collection<String> getEventNames() {
+ return EVENT_NAMES;
+ }
+
+ @Override
+ public String getDefaultEventName() {
+ return "action";
+ }
}
Modified: root/ui/trunk/components/core/src/main/java/org/richfaces/component/html/HtmlMediaOutput.java
===================================================================
--- root/ui/trunk/components/core/src/main/java/org/richfaces/component/html/HtmlMediaOutput.java 2009-08-27 16:15:31 UTC (rev 15354)
+++ root/ui/trunk/components/core/src/main/java/org/richfaces/component/html/HtmlMediaOutput.java 2009-08-27 16:39:02 UTC (rev 15355)
@@ -1,12 +1,17 @@
package org.richfaces.component.html;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
import java.util.Date;
+import java.util.LinkedHashSet;
import javax.el.MethodExpression;
+import javax.faces.component.behavior.ClientBehaviorHolder;
import org.richfaces.component.UIMediaOutput;
-public class HtmlMediaOutput extends UIMediaOutput {
+public class HtmlMediaOutput extends UIMediaOutput implements ClientBehaviorHolder {
static public final String COMPONENT_FAMILY = "org.richfaces.MediaOutput";
@@ -21,6 +26,12 @@
session, expires
}
+ private static final Collection<String> EVENT_NAMES = Collections.unmodifiableCollection(
+ new LinkedHashSet<String>(
+ Arrays.asList("click", "mousemove", "dblclick", "keydown", "keypress",
+ "keyup", "mousedown", "mouseout", "mouseover", "mouseup"))
+ );
+
public HtmlMediaOutput() {
setRendererType("org.richfaces.MediaOutputRenderer");
}
@@ -411,5 +422,9 @@
public String getFamily() {
return COMPONENT_FAMILY;
}
-
+
+ @Override
+ public Collection<String> getEventNames() {
+ return EVENT_NAMES;
+ }
}
Modified: root/ui/trunk/components/core/src/main/java/org/richfaces/renderkit/AjaxCommandRendererBase.java
===================================================================
--- root/ui/trunk/components/core/src/main/java/org/richfaces/renderkit/AjaxCommandRendererBase.java 2009-08-27 16:15:31 UTC (rev 15354)
+++ root/ui/trunk/components/core/src/main/java/org/richfaces/renderkit/AjaxCommandRendererBase.java 2009-08-27 16:39:02 UTC (rev 15355)
@@ -80,16 +80,16 @@
StringBuffer onClick = new StringBuffer();
if (!getUtils().isBooleanAttribute(component, "disabled")) {
HandlersChain handlersChain = new HandlersChain(component);
- handlersChain.setSkipSubmittingBehaviors();
handlersChain.addInlineHandlerFromAttribute(context, "onclick");
- handlersChain.addBehaviors(context, "click");
-
- JSFunction ajaxFunction = buildAjaxFunction(context, component, AJAX_FUNCTION_NAME);
- AjaxEventOptions eventOptions = buildEventOptions(context, component);
- if (!eventOptions.isEmpty()) {
- ajaxFunction.addParameter(eventOptions);
+ handlersChain.addBehaviors(context, "click", "action");
+ if(!handlersChain.hasSubmittingBehavior()) {
+ JSFunction ajaxFunction = buildAjaxFunction(context, component, AJAX_FUNCTION_NAME);
+ AjaxEventOptions eventOptions = buildEventOptions(context, component);
+ if (!eventOptions.isEmpty()) {
+ ajaxFunction.addParameter(eventOptions);
+ }
+ handlersChain.addInlineHandlerAsValue(context, ajaxFunction.toScript());
}
- handlersChain.addInlineHandlerAsValue(context, ajaxFunction.toScript());
String handlerScript = handlersChain.toScript();
if (handlerScript != null) {
Modified: root/ui/trunk/components/core/src/main/java/org/richfaces/renderkit/html/AjaxCommandButtonRendererBase.java
===================================================================
--- root/ui/trunk/components/core/src/main/java/org/richfaces/renderkit/html/AjaxCommandButtonRendererBase.java 2009-08-27 16:15:31 UTC (rev 15354)
+++ root/ui/trunk/components/core/src/main/java/org/richfaces/renderkit/html/AjaxCommandButtonRendererBase.java 2009-08-27 16:39:02 UTC (rev 15355)
@@ -52,7 +52,7 @@
if(null != type ){
writer.writeAttribute("type",type.toLowerCase(),"type");
} else {
- writer.writeAttribute("type","button","type");
+ writer.writeAttribute("type","submit","type");
}
}
}
Modified: root/ui/trunk/components/core/src/main/java/org/richfaces/renderkit/html/AjaxStatusRenderer.java
===================================================================
--- root/ui/trunk/components/core/src/main/java/org/richfaces/renderkit/html/AjaxStatusRenderer.java 2009-08-27 16:15:31 UTC (rev 15354)
+++ root/ui/trunk/components/core/src/main/java/org/richfaces/renderkit/html/AjaxStatusRenderer.java 2009-08-27 16:39:02 UTC (rev 15355)
@@ -33,6 +33,7 @@
import javax.faces.render.Renderer;
import org.ajax4jsf.javascript.JSFunction;
+import org.ajax4jsf.renderkit.HandlersChain;
import org.ajax4jsf.renderkit.RendererUtils;
import org.ajax4jsf.renderkit.RendererUtils.HTML;
import org.ajax4jsf.renderkit.RendererUtils.ScriptHashVariableWrapper;
@@ -53,8 +54,8 @@
private static final String STOP = "stop";
private static final String ERROR = "error";
- private static final String[] EVENT_ATTRIBUTES = {
- "onstart", "onstop", "onerror", "onsuccess"
+ private static final String[] EVENT_NAMES = {
+ "start", "stop", "error", "success"
};
private static enum StatusState {
@@ -198,9 +199,13 @@
Map<String, Object> options = new HashMap<String, Object>();
Map<String, Object> attributes = ajaxStatus.getAttributes();
- for (String eventAttribute : EVENT_ATTRIBUTES) {
+ for (String eventName : EVENT_NAMES) {
+ String eventAttribute = "on" + eventName;
+ HandlersChain handlersChain = new HandlersChain(component);
+ handlersChain.addInlineHandlerFromAttribute(context, eventAttribute);
+ handlersChain.addBehaviors(context, eventName);
rendererUtils.addToScriptHash(options, eventAttribute,
- (String) attributes.get(eventAttribute), null,
+ handlersChain.toScript(), null,
ScriptHashVariableWrapper.EVENT_HANDLER);
}
Modified: root/ui/trunk/components/core/src/main/templates/org/ajax4jsf/renderkit/html/button.template.xml
===================================================================
--- root/ui/trunk/components/core/src/main/templates/org/ajax4jsf/renderkit/html/button.template.xml 2009-08-27 16:15:31 UTC (rev 15354)
+++ root/ui/trunk/components/core/src/main/templates/org/ajax4jsf/renderkit/html/button.template.xml 2009-08-27 16:39:02 UTC (rev 15355)
@@ -13,6 +13,7 @@
name="#{clientId}"
cdk:passThroughWithExclusions="name onclick type id class"
onclick="#{this.getOnClick(context,component)}"
+ value="#{component.attributes['value']}"
class="#{component.attributes['styleClass']}"
>
<cdk:call expression="encodeTypeAndImage(context,component);" />
Modified: root/ui/trunk/components/core/src/main/templates/org/ajax4jsf/renderkit/html/log.template.xml
===================================================================
--- root/ui/trunk/components/core/src/main/templates/org/ajax4jsf/renderkit/html/log.template.xml 2009-08-27 16:15:31 UTC (rev 15354)
+++ root/ui/trunk/components/core/src/main/templates/org/ajax4jsf/renderkit/html/log.template.xml 2009-08-27 16:39:02 UTC (rev 15355)
@@ -3,7 +3,7 @@
<cdk:root xmlns="http://richfaces.org/xhtml-el" xmlns:cdk="http://richfaces.org/cdk"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
class="org.richfaces.renderkit.html.AjaxLogRenderer"
- superclass="javax.faces.render.Renderer"
+ superclass="org.ajax4jsf.renderkit.RendererBase"
componentclass="org.richfaces.component.UIAjaxLog">
<!-- f:clientid var="clientId"/ >
@@ -30,7 +30,7 @@
</cdk:otherwise>
</cdk:choose-->
<div id="richfaces.log" class="rich-log #{component.attributes['styleClass']}"
- cdk:passThroughWithExclusions="class">
+ cdk:passThroughWithExclusions="id class">
<script type="text/javascript">
RichFaces.log.setLevel("#{component.attributes['level']}");
</script>
15 years, 4 months
JBoss Rich Faces SVN: r15354 - branches/community/3.3.X/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2009-08-27 12:15:31 -0400 (Thu, 27 Aug 2009)
New Revision: 15354
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_hotKey.xml
Log:
RF-7756: Rich Miscellaneous component group description review --> rich:hotKey
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_hotKey.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_hotKey.xml 2009-08-27 16:12:28 UTC (rev 15353)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_hotKey.xml 2009-08-27 16:15:31 UTC (rev 15354)
@@ -206,8 +206,7 @@
<section>
<title>Relevant Resources Links</title>
<para>
- <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/hotKey.jsf?c=hotKey">On RichFaces LiveDemo page </ulink> you can see an example of <emphasis role="bold">
- <property><rich:hotKey></property>
- </emphasis> usage and sources for the given example. </para>
+ Visit the <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/hotKey.jsf?c=hotKey">HotKey page</ulink> at RichFaces LiveDemo for examples of component usage and their sources.
+ </para>
</section>
</section>
15 years, 4 months
JBoss Rich Faces SVN: r15353 - branches/community/3.3.X/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2009-08-27 12:12:28 -0400 (Thu, 27 Aug 2009)
New Revision: 15353
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_hotKey.xml
Log:
RF-7756: Rich Miscellaneous component group description review --> rich:hotKey
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_hotKey.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_hotKey.xml 2009-08-27 16:08:52 UTC (rev 15352)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_hotKey.xml 2009-08-27 16:12:28 UTC (rev 15353)
@@ -1,102 +1,69 @@
<section role="NotInToc" id="rich_hotKey">
- <title>
- <
- rich:hotKey
- >
- <emphasis role="since">
- <superscript> available since <emphasis role="version">3.2.2</emphasis>
- </superscript>
- </emphasis>
- </title>
- <section>
- <title>Description</title>
- <para>The <emphasis role="bold">
- <property><rich:hotKey></property>
- </emphasis> component allows to register hot keys for the page or particular elements and to define client-side processing functions for these keys.
- </para>
- </section>
- <section>
- <title>Key Features</title>
- <itemizedlist>
- <listitem>
- <para>
- Includes all features of the <ulink url="http://code.google.com/p/js-hotkeys/">Javascript jQuery Hotkeys Plugin</ulink>
- </para>
- </listitem>
- <listitem>
- <para>
- Hot key registration by request through JavaScript API
- </para>
- </listitem>
- <listitem>
- <para>
- Possibility to attach <emphasis role="bold">
- <property><rich:hotKey></property>
- </emphasis> to a whole page or
- to a particular element using <emphasis>
- <property>"selector"</property>
- </emphasis> attribute
- </para>
- </listitem>
- <listitem>
- <para>
- Hot key registration timing
- </para>
- </listitem>
+ <title> < rich:hotKey > <emphasis role="since">
+ <superscript> available since <emphasis role="version">3.2.2</emphasis>
+ </superscript>
+ </emphasis>
+ </title>
+ <section>
+ <title>Description</title>
+ <para>
+ The <emphasis role="bold"><property><rich:hotKey></property></emphasis> component allows to register hot keys for the page or particular elements and to define client-side processing functions for these keys.
+ </para>
+ </section>
+ <section>
+ <title>Key Features</title>
+ <itemizedlist>
+ <listitem>
+ <para>Includes all features of the <ulink url="http://code.google.com/p/js-hotkeys/">Javascript jQuery Hotkeys Plugin</ulink>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Hot key registration by request through JavaScript API
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Possibility to attach <emphasis role="bold"><property><rich:hotKey></property></emphasis> to a whole page or to a particular element using <emphasis><property>"selector"</property></emphasis> attribute
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Hot key registration timing
+ </para>
+ </listitem>
- <listitem>
- <para>
- Enabling/disabling the <emphasis role="bold">
- <property><rich:hotKey></property>
- </emphasis> using JavaScript API
- </para>
- </listitem>
- </itemizedlist>
- </section>
- <section>
- <title>Details of Usage</title>
- <para>
- There are two ways to register <emphasis role="bold">
- <property><rich:hotKey></property>
- </emphasis>:
- </para>
- <itemizedlist>
- <listitem>
- <para>
- just place it anywhere on the page. In this case the <emphasis role="bold">
- <property><rich:hotKey></property>
- </emphasis>
- component is attached to the whole page (<property>html[0] element</property>). This is default scenario.
- </para>
- </listitem>
- <listitem>
- <para>
- attach it with <emphasis>
- <property>"selector"</property>
- </emphasis> attribute to all the elements defined using this selector.
- This attribute uses defined by <ulink url="http://www.w3.org">w3c consortium</ulink> syntax for CSS rule selector with some jQuery extensions.
- </para>
- </listitem>
- </itemizedlist>
- <para>
- The <emphasis>
- <property>"key"</property>
- </emphasis> attribute defines the hot key itself
- which is processed by the component.
- </para>
- <para>
- After the hot key has been registered and defined you could set the <emphasis>
- <property>"handler"</property>
- </emphasis>
- attribute which determines a JavaScript function to be called every time when corresponding keys are pressed.
- </para>
- <para>
- <emphasis role="bold">
- Example:
- </emphasis>
- </para>
- <programlisting role="XML">...
-<rich:listShuttle var="cap" sourceValue="#{capitalsBean.capitals}" id="ls">
+ <listitem>
+ <para>
+ Enabling/disabling the <emphasis role="bold"><property><rich:hotKey></property></emphasis> using JavaScript API
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
+ <section>
+ <title>Details of Usage</title>
+ <para>
+ There are two ways to register <emphasis role="bold"><property><rich:hotKey></property></emphasis>:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ place it anywhere on the page. In this case the <emphasis role="bold"><property><rich:hotKey></property></emphasis> component is attached to the whole page (<code>html[0] element</code>). This is default scenario.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ attach it with <emphasis><property>"selector"</property></emphasis> attribute to all the elements defined using this selector. This attribute uses defined by <ulink url="http://www.w3.org">w3c consortium</ulink> syntax for CSS rule selector with some jQuery extensions.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The <emphasis><property>"key"</property></emphasis> attribute defines the hot key itself which is processed by the component.
+ </para>
+ <para>
+ After the hot key has been registered and defined you could set the <emphasis><property>"handler"</property></emphasis> attribute which determines a JavaScript function to be called every time when corresponding keys are pressed.
+ </para>
+ <programlisting role="XML"><rich:listShuttle var="cap" sourceValue="#{capitalsBean.capitals}" id="ls">
<rich:column>
<f:facet name="header">
<h:outputText value="State flag"/>
@@ -110,172 +77,137 @@
<h:outputText value="#{cap.name}"/>
</rich:column>
</rich:listShuttle>
-<rich:hotKey selector="#ls" key="right" handler="#{rich:component('ls')}.copy()"/>
-<rich:hotKey selector="#ls" key="left" handler="#{rich:component('ls')}.remove()"/>
-<rich:hotKey selector="#ls" key="end" handler="#{rich:component('ls')}.copyAll()"/>
-<rich:hotKey selector="#ls" key="home" handler="#{rich:component('ls')}.removeAll()"/>
-...</programlisting>
- <para>
- In the example above the <emphasis>
- <property>"selector"</property>
- </emphasis> attribute is used.
- So the keys work only if <emphasis role="bold">
- <property><rich:listShuttle></property>
- </emphasis> component is focused.
- </para>
- <para>
- You could press <property>Right</property> or <property>Left</property> keys in order to move some selected items between lists.
- You could press <property>Home</property> or <property>End</property> buttons in order to move all items between lists.
- </para>
- <para>
- With the help of the <emphasis>
- <property>"timing"</property>
- </emphasis> attribute
- you could manage <emphasis role="bold">
- <property><rich:hotKey></property>
- </emphasis> registration timing.
- There are three possible values of this attribute:
- </para>
- <itemizedlist>
- <listitem>
- <para>
- "immediate" - the component is rendered in browser immediately (by default)
- </para>
- </listitem>
- <listitem>
- <para>
- "onload" - the component is rendered after the page is fully loaded
- </para>
- </listitem>
- <listitem>
- <para>
- "onregistercall" - the component is rendered only after JavaScript API for the key registration is used.
- </para>
- </listitem>
- </itemizedlist>
- <para>
- The <emphasis>
- <property>"type"</property>
- </emphasis> attribute defines the type of keyboard event. Possible values are:
- "onkeyup", "onkeypress" and "onkeydown".
- </para>
- <!--EXAMPLE -->
- <para>
- The <emphasis>
- <property>"disableInInput"</property>
- </emphasis> attribute disables the <emphasis role="bold">
- <property><rich:hotKey></property>
- </emphasis> if it is activated on input elements and the value of this attribute is "true".
- </para>
- <para>
- The <emphasis>
- <property>"checkParent"</property>
- </emphasis> attribute defines the hotkey handling of events generated by child components nested into the parent component to which the <emphasis role="bold">
- <property><rich:hotKey></property>
- </emphasis> is attached.
- </para>
- <para>
- The <emphasis role="bold">
- <property><rich:hotKey></property>
- </emphasis> component also provides a number of JavaScript API functions. There is an example below.
- </para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML">...
-<h:form id="myForm">
+<rich:hotKey selector="#ls" key="right" handler="#{rich:component('ls')}.copy()"/>
+<rich:hotKey selector="#ls" key="left" handler="#{rich:component('ls')}.remove()"/>
+<rich:hotKey selector="#ls" key="end" handler="#{rich:component('ls')}.copyAll()"/>
+<rich:hotKey selector="#ls" key="home" handler="#{rich:component('ls')}.removeAll()"/></programlisting>
+ <para> In the example above the <emphasis>
+ <property>"selector"</property>
+ </emphasis> attribute is used. So the keys work only if <emphasis role="bold">
+ <property><rich:listShuttle></property>
+ </emphasis> component is focused. </para>
+ <para> You could press <property>Right</property> or <property>Left</property> keys in order to move some selected items between lists. You could press <property>Home</property> or <property>End</property> buttons in order to
+ move all items between lists. </para>
+ <para> With the help of the <emphasis>
+ <property>"timing"</property>
+ </emphasis> attribute you could manage <emphasis role="bold">
+ <property><rich:hotKey></property>
+ </emphasis> registration timing. There are three possible values of this attribute: </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <code>immediate</code> — the component is rendered in browser immediately (default value);
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <code>onload</code> — the component is rendered after the page is fully loaded;
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <code>onregistercall</code> — the component is rendered only after JavaScript API for the key registration is used.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>The <emphasis><property>"type"</property></emphasis> attribute defines the type of keyboard event. Possible values are: <code>onkeyup</code>, <code>onkeypress</code> and <code>onkeydown</code>.
+ </para>
+ <!--EXAMPLE -->
+ <para> The <emphasis>
+ <property>"disableInInput"</property>
+ </emphasis> attribute disables the <emphasis role="bold">
+ <property><rich:hotKey></property>
+ </emphasis> if it is activated on input elements and the value of this attribute is <code>true</code>. </para>
+ <para> The <emphasis>
+ <property>"checkParent"</property>
+ </emphasis> attribute defines the hotkey handling of events generated by child components nested into the parent component to which the <emphasis role="bold">
+ <property><rich:hotKey></property>
+ </emphasis> is attached. </para>
+ <para> The <emphasis role="bold">
+ <property><rich:hotKey></property>
+ </emphasis> component also provides a number of JavaScript API functions. There is an example below. </para>
+ <programlisting role="XML"><h:form id="myForm">
<rich:hotKey id="myKey" key="ctrl+g" handler="alert('Ctrl+G is pressed')" />
<button onclick="${rich:component('myKey')}.enable(); return false;">Turn Ctrl+G On</button>
<button onclick="${rich:component('myKey')}.disable(); return false;">Turn Ctrl+G Off</button>
-</h:form>
-...</programlisting>
- <para>
- In the example above the <property>Ctrl+G</property> is registered as a global hotkey,
- so if you press this key combination the alert window with the <property>"Ctrl+G is pressed"</property> text appears. With the help
- of <property>enable()</property>, <property>disable()</property> JavaScript API fucntions you could enable or disable registered hotkey.
- </para>
- </section>
- <section>
- <title>Reference Data</title>
- <para>
- <ulink url="&tlddoc;rich/hotKey.html">Table of
- <rich:hotKey>
- attributes</ulink>.
- </para>
- <table>
- <title>Component Identification Parameters</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Name</entry>
- <entry>Value</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>component-type</entry>
- <entry>org.richfaces.HotKey</entry>
- </row>
- <row>
- <entry>component-class</entry>
- <entry>org.richfaces.component.html.HtmlHotKey</entry>
- </row>
- <row>
- <entry>component-family</entry>
- <entry>org.richfaces.HotKey</entry>
- </row>
- <row>
- <entry>renderer-type</entry>
- <entry>org.richfaces.HotKeyRenderer</entry>
- </row>
- <!--row>
+</h:form></programlisting>
+ <para>
+ In the example above the <code>Ctrl+G</code> is registered as a global hotkey, so if you press this key combination the alert window with the <code>"Ctrl+G is pressed"</code> text appears.
+ With the help of <code>enable()</code>, <code>disable()</code> JavaScript API fucntions you could enable or disable registered hotkey.
+ </para>
+ </section>
+ <section>
+ <title>Reference Data</title>
+ <para>
+ <ulink url="&tlddoc;rich/hotKey.html">Table of <rich:hotKey> attributes</ulink>. </para>
+ <table>
+ <title>Component Identification Parameters</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Name</entry>
+ <entry>Value</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>component-type</entry>
+ <entry>org.richfaces.HotKey</entry>
+ </row>
+ <row>
+ <entry>component-class</entry>
+ <entry>org.richfaces.component.html.HtmlHotKey</entry>
+ </row>
+ <row>
+ <entry>component-family</entry>
+ <entry>org.richfaces.HotKey</entry>
+ </row>
+ <row>
+ <entry>renderer-type</entry>
+ <entry>org.richfaces.HotKeyRenderer</entry>
+ </row>
+ <!--row>
<entry>tag-class</entry>
<entry></entry>
</row-->
- </tbody>
- </tgroup>
- </table>
- <table>
- <title>JavaScript API</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Function</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>
- add(selector, key, handler)
- </entry>
- <entry>
- Adds the hotkey(from key param) for elements targeted by selector. it assigns a handler function to the key
- </entry>
- </row>
- <row>
- <entry>remove()</entry>
- <entry>Removes hotkey registration</entry>
- </row>
- <row>
- <entry>enable()</entry>
- <entry>Enables registered hotkey</entry>
- </row>
- <row>
- <entry>disable()</entry>
- <entry>Disables registered hotkey</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- </section>
- <section>
- <title>Relevant Resources Links</title>
- <para>
- <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/hotKey.jsf?c=hotKey">On RichFaces LiveDemo page </ulink> you can see an example of
- <emphasis role="bold">
- <property><rich:hotKey></property>
- </emphasis> usage and sources for the given example.
- </para>
- </section>
-</section>
\ No newline at end of file
+ </tbody>
+ </tgroup>
+ </table>
+ <table>
+ <title>JavaScript API</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Function</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry> add(selector, key, handler) </entry>
+ <entry> Adds the hotkey(from key param) for elements targeted by selector. it assigns a handler function to the key </entry>
+ </row>
+ <row>
+ <entry>remove()</entry>
+ <entry>Removes hotkey registration</entry>
+ </row>
+ <row>
+ <entry>enable()</entry>
+ <entry>Enables registered hotkey</entry>
+ </row>
+ <row>
+ <entry>disable()</entry>
+ <entry>Disables registered hotkey</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </section>
+ <section>
+ <title>Relevant Resources Links</title>
+ <para>
+ <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/hotKey.jsf?c=hotKey">On RichFaces LiveDemo page </ulink> you can see an example of <emphasis role="bold">
+ <property><rich:hotKey></property>
+ </emphasis> usage and sources for the given example. </para>
+ </section>
+</section>
15 years, 4 months
JBoss Rich Faces SVN: r15352 - root/framework/trunk/impl/src/main/java/org/ajax4jsf/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2009-08-27 12:08:52 -0400 (Thu, 27 Aug 2009)
New Revision: 15352
Modified:
root/framework/trunk/impl/src/main/java/org/ajax4jsf/renderkit/RendererBase.java
Log:
Fixed potential NPE in RendererBase
Modified: root/framework/trunk/impl/src/main/java/org/ajax4jsf/renderkit/RendererBase.java
===================================================================
--- root/framework/trunk/impl/src/main/java/org/ajax4jsf/renderkit/RendererBase.java 2009-08-27 15:45:42 UTC (rev 15351)
+++ root/framework/trunk/impl/src/main/java/org/ajax4jsf/renderkit/RendererBase.java 2009-08-27 16:08:52 UTC (rev 15352)
@@ -90,7 +90,7 @@
if (null != behaviorEvent) {
List<ClientBehavior> behaviorsForEvent = behaviors.get(behaviorEvent);
- if (behaviors.size() > 0) {
+ if (behaviors != null && behaviors.size() > 0) {
String behaviorSource = params.get("javax.faces.source");
String clientId = component.getClientId();
if (null != behaviorSource && behaviorSource.equals(clientId)) {
15 years, 4 months
JBoss Rich Faces SVN: r15351 - root/framework/trunk/impl/src/main/resources/META-INF/resources.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2009-08-27 11:45:42 -0400 (Thu, 27 Aug 2009)
New Revision: 15351
Modified:
root/framework/trunk/impl/src/main/resources/META-INF/resources/richfaces-jsf-log.js
Log:
Log: added check for jsf global variable
Modified: root/framework/trunk/impl/src/main/resources/META-INF/resources/richfaces-jsf-log.js
===================================================================
--- root/framework/trunk/impl/src/main/resources/META-INF/resources/richfaces-jsf-log.js 2009-08-27 15:43:07 UTC (rev 15350)
+++ root/framework/trunk/impl/src/main/resources/META-INF/resources/richfaces-jsf-log.js 2009-08-27 15:45:42 UTC (rev 15351)
@@ -1,102 +1,103 @@
-(function(jQuery, richfaces, jsf) {
-
- //JSF log adapter
- var identifyElement = function(elt) {
- var identifier = '<' + elt.tagName.toLowerCase();
- var e = jQuery(elt);
- if (e.attr('id')) {
- identifier += (' id=' + e.attr('id'));
+if (typeof jsf != 'undefined') {
+ (function(jQuery, richfaces, jsf) {
+
+ //JSF log adapter
+ var identifyElement = function(elt) {
+ var identifier = '<' + elt.tagName.toLowerCase();
+ var e = jQuery(elt);
+ if (e.attr('id')) {
+ identifier += (' id=' + e.attr('id'));
+ }
+ if (e.attr('class')) {
+ identifier += (' class=' + e.attr('class'));
+ }
+
+ identifier += ' ...>';
+
+ return identifier;
}
- if (e.attr('class')) {
- identifier += (' class=' + e.attr('class'));
+
+ var formatPartialResponseElement = function(logElement, responseElement) {
+ var change = jQuery(responseElement);
+
+ logElement.append("Element <b>" + responseElement.nodeName + "</b>");
+ if (change.attr("id")) {
+ logElement.append(document.createTextNode(" for id=" + change.attr("id")));
+ }
+
+ jQuery(document.createElement("br")).appendTo(logElement);
+ jQuery("<span style='color:dimgray'></span>").appendTo(logElement).text(change.toXML());
+ jQuery(document.createElement("br")).appendTo(logElement);
}
-
- identifier += ' ...>';
-
- return identifier;
- }
-
- var formatPartialResponseElement = function(logElement, responseElement) {
- var change = jQuery(responseElement);
-
- logElement.append("Element <b>" + responseElement.nodeName + "</b>");
- if (change.attr("id")) {
- logElement.append(document.createTextNode(" for id=" + change.attr("id")));
+
+ var formatPartialResponse = function(partialResponse) {
+ var logElement = jQuery(document.createElement("span"));
+
+ partialResponse.children().each(function() {
+ var responseElement = jQuery(this);
+ if (responseElement.is('changes')) {
+ logElement.append("Listing content of response <b>changes</b> element:<br />");
+ responseElement.children().each(function() {
+ formatPartialResponseElement(logElement, this);
+ });
+ } else {
+ formatPartialResponseElement(logElement, this);
+ }
+ });
+
+ return logElement;
}
-
- jQuery(document.createElement("br")).appendTo(logElement);
- jQuery("<span style='color:dimgray'></span>").appendTo(logElement).text(change.toXML());
- jQuery(document.createElement("br")).appendTo(logElement);
- }
-
- var formatPartialResponse = function(partialResponse) {
- var logElement = jQuery(document.createElement("span"));
-
- partialResponse.children().each(function() {
- var responseElement = jQuery(this);
- if (responseElement.is('changes')) {
- logElement.append("Listing content of response <b>changes</b> element:<br />");
- responseElement.children().each(function() {
- formatPartialResponseElement(logElement, this);
- });
- } else {
- formatPartialResponseElement(logElement, this);
- }
- });
-
- return logElement;
- }
-
- var jsfAjaxLogAdapter = function(data) {
- try {
- var log = richfaces.log;
-
- var source = data.source;
- var type = data.type;
-
- var responseCode = data.responseCode;
- var responseXML = data.responseXML;
- var responseText = data.responseText;
-
- if (type != 'error') {
- log.info("Received '" + type + "' event from " + identifyElement(source));
-
- if (type == 'beforedomupdate') {
- var partialResponse;
-
- if (responseXML) {
- partialResponse = jQuery(responseXML).children("partial-response");
+
+ var jsfAjaxLogAdapter = function(data) {
+ try {
+ var log = richfaces.log;
+
+ var source = data.source;
+ var type = data.type;
+
+ var responseCode = data.responseCode;
+ var responseXML = data.responseXML;
+ var responseText = data.responseText;
+
+ if (type != 'error') {
+ log.info("Received '" + type + "' event from " + identifyElement(source));
+
+ if (type == 'beforedomupdate') {
+ var partialResponse;
+
+ if (responseXML) {
+ partialResponse = jQuery(responseXML).children("partial-response");
+ }
+
+ var responseTextEntry = jQuery("<span>Server returned responseText: </span><span style='color:dimgray'></span>").eq(1).text(responseText).end();
+
+ if (partialResponse && partialResponse.length) {
+ log.debug(responseTextEntry);
+ log.info(formatPartialResponse(partialResponse));
+ } else {
+ log.info(responseTextEntry);
+ }
}
-
- var responseTextEntry = jQuery("<span>Server returned responseText: </span><span style='color:dimgray'></span>").eq(1).text(responseText).end();
-
- if (partialResponse && partialResponse.length) {
- log.debug(responseTextEntry);
- log.info(formatPartialResponse(partialResponse));
- } else {
- log.info(responseTextEntry);
- }
+ } else {
+ var status = data.status;
+ log.error("Received '" + type + '@' + status + "' event from " + identifyElement(source));
+ log.error("[" + data.responseCode + "] " + data.errorName + ": " + data.errorMessage);
}
- } else {
- var status = data.status;
- log.error("Received '" + type + '@' + status + "' event from " + identifyElement(source));
- log.error("[" + data.responseCode + "] " + data.errorName + ": " + data.errorMessage);
+ } catch (e) {
+ //ignore logging errors
}
- } catch (e) {
- //ignore logging errors
- }
- };
+ };
+
+ var eventsListener = richfaces.createJSFEventsAdapter({
+ begin: jsfAjaxLogAdapter,
+ beforedomupdate: jsfAjaxLogAdapter,
+ success: jsfAjaxLogAdapter,
+ complete: jsfAjaxLogAdapter,
+ error: jsfAjaxLogAdapter
+ });
- var eventsListener = richfaces.createJSFEventsAdapter({
- begin: jsfAjaxLogAdapter,
- beforedomupdate: jsfAjaxLogAdapter,
- success: jsfAjaxLogAdapter,
- complete: jsfAjaxLogAdapter,
- error: jsfAjaxLogAdapter
- });
-
- jsf.ajax.addOnEvent(eventsListener);
- jsf.ajax.addOnError(eventsListener);
- //
-}(jQuery, RichFaces, jsf));
-
+ jsf.ajax.addOnEvent(eventsListener);
+ jsf.ajax.addOnError(eventsListener);
+ //
+ }(jQuery, RichFaces, jsf));
+};
\ No newline at end of file
15 years, 4 months
JBoss Rich Faces SVN: r15350 - in branches/community/3.3.X: archetypes and 17 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: prabhat.jha(a)jboss.com
Date: 2009-08-27 11:43:07 -0400 (Thu, 27 Aug 2009)
New Revision: 15350
Added:
branches/community/3.3.X/archetypes/
branches/community/3.3.X/archetypes/richfaces-facelets/
branches/community/3.3.X/archetypes/richfaces-facelets/pom.xml
branches/community/3.3.X/archetypes/richfaces-facelets/src/
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/META-INF/
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/META-INF/maven/
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/META-INF/maven/archetype-metadata.xml
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/META-INF/maven/archetype.xml
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/pom.xml
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/java/
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/java/Bean.java
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/META-INF/
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/META-INF/MANIFEST.MF
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/.faces-config.xml.jsfdia
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/lib/
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/index.jsp
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/pages/
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/pages/home.xhtml
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/pages/polling.xhtml
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/pages/static.xhtml
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/templates/
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/templates/template.xhtml
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/test/
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/test/java/
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/test/java/BeanTest.java
Log:
archetype for richfaces and facelet project
Added: branches/community/3.3.X/archetypes/richfaces-facelets/pom.xml
===================================================================
--- branches/community/3.3.X/archetypes/richfaces-facelets/pom.xml (rev 0)
+++ branches/community/3.3.X/archetypes/richfaces-facelets/pom.xml 2009-08-27 15:43:07 UTC (rev 15350)
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces.archetypes</groupId>
+ <artifactId>richfaces-facelets</artifactId>
+ <version>3.3.2-SNAPSHOT</version>
+ <name>maven-archetype-rf-facelets</name>
+ <packaging>maven-archetype</packaging>
+ <build>
+ <extensions>
+ <extension>
+ <groupId>org.apache.maven.archetype</groupId>
+ <artifactId>archetype-packaging</artifactId>
+ <version>2.0-alpha-4</version>
+ </extension>
+ </extensions>
+ <plugins>
+ <plugin>
+ <artifactId>maven-archetype-plugin</artifactId>
+ <version>2.0-alpha-4</version>
+ <extensions>true</extensions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Added: branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/META-INF/maven/archetype-metadata.xml
===================================================================
--- branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/META-INF/maven/archetype-metadata.xml (rev 0)
+++ branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/META-INF/maven/archetype-metadata.xml 2009-08-27 15:43:07 UTC (rev 15350)
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?><archetype-descriptor name="myproject">
+ <fileSets>
+ <fileSet filtered="true" packaged="true" encoding="UTF-8">
+ <directory>src/main/java</directory>
+ <includes>
+ <include>**/*.java</include>
+ </includes>
+ </fileSet>
+ <fileSet filtered="true" encoding="UTF-8">
+ <directory>src/main/webapp</directory>
+ <includes>
+ <include>**/*.jsp</include>
+ <include>**/*.xhtml</include>
+ <include>**/*.xml</include>
+ </includes>
+ </fileSet>
+ <fileSet encoding="UTF-8">
+ <directory>src/main/webapp</directory>
+ <includes>
+ <include>**/*.MF</include>
+ </includes>
+ </fileSet>
+ <fileSet filtered="true" packaged="true" encoding="UTF-8">
+ <directory>src/test/java</directory>
+ <includes>
+ <include>**/*.java</include>
+ </includes>
+ </fileSet>
+ </fileSets>
+</archetype-descriptor>
\ No newline at end of file
Added: branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/META-INF/maven/archetype.xml
===================================================================
--- branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/META-INF/maven/archetype.xml (rev 0)
+++ branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/META-INF/maven/archetype.xml 2009-08-27 15:43:07 UTC (rev 15350)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?><archetype>
+ <id>myproject</id>
+ <sources>
+ <source>src/main/java/Bean.java</source>
+ </sources>
+ <testSources>
+ <source>src/test/java/BeanTest.java</source>
+ </testSources>
+ <resources>
+ <resource>src/main/webapp/WEB-INF/web.xml</resource>
+ <resource>src/main/webapp/WEB-INF/faces-config.xml</resource>
+ <resource>src/main/webapp/META-INF/MANIFEST.MF</resource>
+ <resource>src/main/webapp/templates/template.xhtml</resource>
+ <resource>src/main/webapp/pages/static.xhtml</resource>
+ <resource>src/main/webapp/pages/polling.xhtml</resource>
+ <resource>src/main/webapp/pages/home.xhtml</resource>
+ <resource>src/main/webapp/index.jsp</resource>
+ </resources>
+</archetype>
\ No newline at end of file
Added: branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/pom.xml
===================================================================
--- branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/pom.xml (rev 0)
+++ branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/pom.xml 2009-08-27 15:43:07 UTC (rev 15350)
@@ -0,0 +1,39 @@
+<?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/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>${groupId}</groupId>
+ <artifactId>${artifactId}</artifactId>
+ <name>${artifactId}</name>
+ <version>${version}</version>
+ <packaging>war</packaging>
+ <build>
+ <finalName>${artifactId}</finalName>
+ <plugins>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.ui</groupId>
+ <artifactId>richfaces-ui</artifactId>
+ <version>3.3.2-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.facelets</groupId>
+ <artifactId>jsf-facelets</artifactId>
+ <version>1.1.15.B1</version>
+ </dependency>
+ </dependencies>
+</project>
Added: branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/java/Bean.java
===================================================================
--- branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/java/Bean.java (rev 0)
+++ branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/java/Bean.java 2009-08-27 15:43:07 UTC (rev 15350)
@@ -0,0 +1,9 @@
+package ${package};
+
+import java.util.Date;
+
+public class Bean {
+ public Date getCurrentDate() {
+ return new Date();
+ }
+}
\ No newline at end of file
Added: branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/META-INF/MANIFEST.MF
===================================================================
--- branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/META-INF/MANIFEST.MF (rev 0)
+++ branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/META-INF/MANIFEST.MF 2009-08-27 15:43:07 UTC (rev 15350)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Added: branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/.faces-config.xml.jsfdia
===================================================================
--- branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/.faces-config.xml.jsfdia (rev 0)
+++ branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/.faces-config.xml.jsfdia 2009-08-27 15:43:07 UTC (rev 15350)
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<PROCESS model-entity="JSFProcess"/>
Added: branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml (rev 0)
+++ branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml 2009-08-27 15:43:07 UTC (rev 15350)
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
+<faces-config>
+ <application>
+ <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
+ </application>
+ <managed-bean>
+ <managed-bean-name>bean</managed-bean-name>
+ <managed-bean-class>${package}.Bean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
===================================================================
--- branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml (rev 0)
+++ branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml 2009-08-27 15:43:07 UTC (rev 15350)
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+ <display-name>Archetype Created Web Application</display-name>
+ <context-param>
+ <param-name>javax.faces.CONFIG_FILES</param-name>
+ <param-value>/WEB-INF/faces-config.xml</param-value>
+ </context-param>
+ <context-param>
+ <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+ <param-value>server</param-value>
+ </context-param>
+ <context-param>
+ <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
+ <param-value>.xhtml</param-value>
+ </context-param>
+ <context-param>
+ <param-name>facelets.VIEW_MAPPINGS</param-name>
+ <param-value>*.xhtml</param-value>
+ </context-param>
+ <filter>
+ <display-name>RichFaces Filter</display-name>
+ <filter-name>richfaces</filter-name>
+ <filter-class>org.ajax4jsf.Filter</filter-class>
+ </filter>
+ <filter-mapping>
+ <filter-name>richfaces</filter-name>
+ <servlet-name>Faces Servlet</servlet-name>
+ <dispatcher>REQUEST</dispatcher>
+ <dispatcher>FORWARD</dispatcher>
+ <dispatcher>INCLUDE</dispatcher>
+ </filter-mapping>
+ <servlet>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>/faces/*</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>*.jsf</url-pattern>
+ </servlet-mapping>
+ <login-config>
+ <auth-method>BASIC</auth-method>
+ </login-config>
+</web-app>
Added: branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/index.jsp
===================================================================
--- branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/index.jsp (rev 0)
+++ branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/index.jsp 2009-08-27 15:43:07 UTC (rev 15350)
@@ -0,0 +1,11 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+
+<html>
+
+<head></head>
+
+ <body>
+ <jsp:forward page="/pages/home.jsf" />
+ </body>
+
+</html>
\ No newline at end of file
Added: branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/pages/home.xhtml
===================================================================
--- branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/pages/home.xhtml (rev 0)
+++ branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/pages/home.xhtml 2009-08-27 15:43:07 UTC (rev 15350)
@@ -0,0 +1,32 @@
+<!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:c="http://java.sun.com/jsp/jstl/core"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+<head>
+<title></title>
+</head>
+<body>
+
+<ui:composition template="/templates/template.xhtml">
+
+ <ui:define name="panels">
+
+ <rich:tabPanel switchType="ajax">
+ <rich:tab label="Static">
+ <ui:include src="static.xhtml" />
+ </rich:tab>
+
+ <rich:tab label="Polling">
+ <ui:include src="polling.xhtml" />
+ </rich:tab>
+ </rich:tabPanel>
+ </ui:define>
+
+</ui:composition>
+
+</body>
+</html>
Added: branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/pages/polling.xhtml
===================================================================
--- branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/pages/polling.xhtml (rev 0)
+++ branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/pages/polling.xhtml 2009-08-27 15:43:07 UTC (rev 15350)
@@ -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:c="http://java.sun.com/jsp/jstl/core"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+<body>
+
+<ui:composition>
+
+ <a4j:region>
+ <h:form>
+ <a4j:poll id="poll" interval="500" enabled="true"
+ reRender="poll,grid" />
+ </h:form>
+ </a4j:region>
+ <h:form>
+ <h:panelGrid id="grid" columns="2">
+ <h:outputText value="Periodically updated most recent date:" />
+ <h:outputText id="pollingDate" value="#{bean.currentDate}" />
+ </h:panelGrid>
+ </h:form>
+
+</ui:composition>
+</body>
+</html>
Added: branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/pages/static.xhtml
===================================================================
--- branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/pages/static.xhtml (rev 0)
+++ branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/pages/static.xhtml 2009-08-27 15:43:07 UTC (rev 15350)
@@ -0,0 +1,20 @@
+<!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:c="http://java.sun.com/jsp/jstl/core"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+<body>
+
+<ui:composition>
+
+ <h:panelGrid columns="2">
+ <h:outputText value="Current date is" />
+ <h:outputText value="#{bean.currentDate}" />
+ </h:panelGrid>
+
+</ui:composition>
+</body>
+</html>
Added: branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/templates/template.xhtml
===================================================================
--- branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/templates/template.xhtml (rev 0)
+++ branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/templates/template.xhtml 2009-08-27 15:43:07 UTC (rev 15350)
@@ -0,0 +1,19 @@
+<!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:c="http://java.sun.com/jsp/jstl/core"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+<head>
+<title></title>
+</head>
+<body>
+
+<ui:insert name="panels">
+ <p>System of panels</p>
+</ui:insert>
+
+</body>
+</html>
Added: branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/test/java/BeanTest.java
===================================================================
--- branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/test/java/BeanTest.java (rev 0)
+++ branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/test/java/BeanTest.java 2009-08-27 15:43:07 UTC (rev 15350)
@@ -0,0 +1,13 @@
+package ${package};
+
+import junit.framework.TestCase;
+
+public class BeanTest extends TestCase {
+ public BeanTest(String testName) {
+ super(testName);
+ }
+
+ public void testStub() throws Exception {
+
+ }
+}
15 years, 4 months
JBoss Rich Faces SVN: r15349 - root/examples/trunk/components/core-demo/src/main/webapp.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2009-08-27 11:25:07 -0400 (Thu, 27 Aug 2009)
New Revision: 15349
Added:
root/examples/trunk/components/core-demo/src/main/webapp/index.jsp
root/examples/trunk/components/core-demo/src/main/webapp/welcome.xhtml
Log:
https://jira.jboss.org/jira/browse/RF-7752
Added: root/examples/trunk/components/core-demo/src/main/webapp/index.jsp
===================================================================
--- root/examples/trunk/components/core-demo/src/main/webapp/index.jsp (rev 0)
+++ root/examples/trunk/components/core-demo/src/main/webapp/index.jsp 2009-08-27 15:25:07 UTC (rev 15349)
@@ -0,0 +1,7 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head></head>
+ <body>
+ <jsp:forward page="/welcome.jsf" />
+ </body>
+</html>
\ No newline at end of file
Added: root/examples/trunk/components/core-demo/src/main/webapp/welcome.xhtml
===================================================================
--- root/examples/trunk/components/core-demo/src/main/webapp/welcome.xhtml (rev 0)
+++ root/examples/trunk/components/core-demo/src/main/webapp/welcome.xhtml 2009-08-27 15:25:07 UTC (rev 15349)
@@ -0,0 +1,45 @@
+<!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:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+<h:head>
+</h:head>
+<h:body>
+<center>
+<h1>Welcome To RichFaces 4.x Core Demo</h1>
+<ul>
+<li>
+<h:outputLink value="#{facesContext.externalContext.requestContextPath}/support.jsf">a4j:ajax</h:outputLink>
+</li>
+<li>
+<h:outputLink value="#{facesContext.externalContext.requestContextPath}/button.jsf">a4j:commandButton</h:outputLink>
+</li>
+<li>
+<h:outputLink value="#{facesContext.externalContext.requestContextPath}/link.jsf">a4j:commandLink</h:outputLink>
+</li>
+<li>
+<h:outputLink value="#{facesContext.externalContext.requestContextPath}/log.jsf">a4j:log</h:outputLink>
+</li>
+<li>
+<h:outputLink value="#{facesContext.externalContext.requestContextPath}/mediaOutput.jsf">a4j:mediaOutput</h:outputLink>
+</li>
+<li>
+<h:outputLink value="#{facesContext.externalContext.requestContextPath}/outputPanel.jsf">a4j:outputPanel</h:outputLink>
+</li>
+<li>
+<h:outputLink value="#{facesContext.externalContext.requestContextPath}/push.jsf">a4j:push</h:outputLink>
+</li>
+<li>
+<h:outputLink value="#{facesContext.externalContext.requestContextPath}/function.jsf">a4j:jsFunction</h:outputLink>
+</li>
+<li>
+<h:outputLink value="#{facesContext.externalContext.requestContextPath}/status.jsf">a4j:status</h:outputLink>
+</li>
+<li>
+<h:outputLink value="#{facesContext.externalContext.requestContextPath}/dynamicExecute.jsf">Server side execute/render</h:outputLink>
+</li>
+</ul>
+</center>
+</h:body>
+</html>
\ No newline at end of file
15 years, 4 months
JBoss Rich Faces SVN: r15348 - in root/examples/trunk/richfaces-demo: src/main/webapp/richfaces and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2009-08-27 11:14:11 -0400 (Thu, 27 Aug 2009)
New Revision: 15348
Modified:
root/examples/trunk/richfaces-demo/readme.txt
root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/mediaOutput.xhtml
Log:
Modified: root/examples/trunk/richfaces-demo/readme.txt
===================================================================
--- root/examples/trunk/richfaces-demo/readme.txt 2009-08-27 15:07:55 UTC (rev 15347)
+++ root/examples/trunk/richfaces-demo/readme.txt 2009-08-27 15:14:11 UTC (rev 15348)
@@ -0,0 +1,6 @@
+This demo application should be built using Maven 2.1.0
+type "mvn install" in root folder
+
+deploy to tomcat 6.x or just run using maven on jetty using "mvn jetty:run-war"
+
+type http://localhost:8080/richfaces-demo in your browser command line.
\ No newline at end of file
Modified: root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/mediaOutput.xhtml
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/mediaOutput.xhtml 2009-08-27 15:07:55 UTC (rev 15347)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/mediaOutput.xhtml 2009-08-27 15:14:11 UTC (rev 15348)
@@ -32,10 +32,12 @@
<legend>Image output</legend>
<ui:include src="/richfaces/mediaOutput/imgUsage.xhtml" />
</fieldset>
+ <ui:remove>
<fieldset>
<legend>Flash output</legend>
<ui:include src="/richfaces/mediaOutput/flashUsage.xhtml" />
</fieldset>
+ </ui:remove>
</ui:define>
</ui:composition>
15 years, 4 months
JBoss Rich Faces SVN: r15347 - in root/examples/trunk/richfaces-demo/src/main: java/org/richfaces/demo/outputPanel and 10 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2009-08-27 11:07:55 -0400 (Thu, 27 Aug 2009)
New Revision: 15347
Added:
root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/outputPanel/
root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/outputPanel/OutputPanelBean.java
root/examples/trunk/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml
root/examples/trunk/richfaces-demo/src/main/webapp/resources/rich/css/message.css
root/examples/trunk/richfaces-demo/src/main/webapp/resources/rich/css/messages.css
root/examples/trunk/richfaces-demo/src/main/webapp/resources/rich/message.xhtml
root/examples/trunk/richfaces-demo/src/main/webapp/resources/rich/messages.xhtml
root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/ajax.xhtml
root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/ajax/
root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/ajax/ajax.xhtml
root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/outputPanel/compositemessages.xhtml
root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/status/referencedusage.xhtml
Modified:
root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/push/ChoicesBean.java
root/examples/trunk/richfaces-demo/src/main/webapp/resources/rich/css/page.css
root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/commandButton.xhtml
root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/commandLink.xhtml
root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/jsFunction.xhtml
root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/log.xhtml
root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/mediaOutput.xhtml
root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/outputPanel.xhtml
root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/outputPanel/usage.xhtml
root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/push.xhtml
root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/push/usage.xhtml
root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/status.xhtml
root/examples/trunk/richfaces-demo/src/main/webapp/templates/includes/navigation.xhtml
Log:
Added: root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/outputPanel/OutputPanelBean.java
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/outputPanel/OutputPanelBean.java (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/outputPanel/OutputPanelBean.java 2009-08-27 15:07:55 UTC (rev 15347)
@@ -0,0 +1,13 @@
+package org.richfaces.demo.outputPanel;
+
+public class OutputPanelBean {
+ private String text;
+
+ public String getText() {
+ return text;
+ }
+
+ public void setText(String text) {
+ this.text = text;
+ }
+}
Modified: root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/push/ChoicesBean.java
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/push/ChoicesBean.java 2009-08-27 15:06:55 UTC (rev 15346)
+++ root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/push/ChoicesBean.java 2009-08-27 15:07:55 UTC (rev 15347)
@@ -98,7 +98,7 @@
}
System.out.println("New Event!");
listener.onEvent(new EventObject(this));
- Thread.sleep(10000);
+ Thread.sleep(5000);
} catch (InterruptedException e) {
e.printStackTrace();
}
Added: root/examples/trunk/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml 2009-08-27 15:07:55 UTC (rev 15347)
@@ -0,0 +1,25 @@
+<?xml version='1.0' encoding='UTF-8'?>
+
+<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
+ version="2.0">
+
+ <application>
+ <!-- system-event-listener>
+ <system-event-listener-class>org.richfaces.resource.MapBasedResourceCodecListener</system-event-listener-class>
+ <system-event-class>javax.faces.event.PostConstructApplicationEvent</system-event-class>
+ </system-event-listener -->
+ </application>
+
+ <managed-bean>
+ <managed-bean-name>opBean1</managed-bean-name>
+ <managed-bean-class>org.richfaces.demo.outputPanel.OutputPanelBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>opBean2</managed-bean-name>
+ <managed-bean-class>org.richfaces.demo.outputPanel.OutputPanelBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+
+</faces-config>
\ No newline at end of file
Added: root/examples/trunk/richfaces-demo/src/main/webapp/resources/rich/css/message.css
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/resources/rich/css/message.css (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/resources/rich/css/message.css 2009-08-27 15:07:55 UTC (rev 15347)
@@ -0,0 +1,3 @@
+rich-message{
+ color:red;
+}
\ No newline at end of file
Added: root/examples/trunk/richfaces-demo/src/main/webapp/resources/rich/css/messages.css
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/resources/rich/css/messages.css (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/resources/rich/css/messages.css 2009-08-27 15:07:55 UTC (rev 15347)
@@ -0,0 +1,3 @@
+rich-messages{
+ color:red;
+}
\ No newline at end of file
Modified: root/examples/trunk/richfaces-demo/src/main/webapp/resources/rich/css/page.css
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/resources/rich/css/page.css 2009-08-27 15:06:55 UTC (rev 15346)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/resources/rich/css/page.css 2009-08-27 15:07:55 UTC (rev 15347)
@@ -3,6 +3,9 @@
background: #FFFFFF;
margin:0px;
}
+*{
+ font-size:11px;
+}
.header_bg{
background-image:url(#{resource['rich/img/header_background.png']});
border-bottom:1px solid;
Added: root/examples/trunk/richfaces-demo/src/main/webapp/resources/rich/message.xhtml
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/resources/rich/message.xhtml (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/resources/rich/message.xhtml 2009-08-27 15:07:55 UTC (rev 15347)
@@ -0,0 +1,30 @@
+<!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:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:c="http://java.sun.com/jsp/jstl/core"
+ xmlns:composite="http://java.sun.com/jsf/composite"
+ xmlns:a4j="http://richfaces.org/a4j">
+<head>
+<title>panel</title>
+</head>
+<body>
+
+<composite:interface>
+ <composite:attribute name="for" required="true" />
+ <composite:attribute name="style" required="false" />
+ <composite:attribute name="styleClass" required="false" />
+</composite:interface>
+
+<composite:implementation>
+ <h:outputStylesheet name="rich/css/message.css" />
+ <a4j:outputPanel ajaxRendered="true" layout="none">
+ <h:message for="#{cc.attrs.for}" showDetail="#{cc.attrs.showDetails}"
+ showSummary="#{cc.attrs.showSummary}" style="#{cc.attrs.style}"
+ styleClass="rich-message #{cc.attrs.styleClass}" />
+ </a4j:outputPanel>
+</composite:implementation>
+</body>
+</html>
Added: root/examples/trunk/richfaces-demo/src/main/webapp/resources/rich/messages.xhtml
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/resources/rich/messages.xhtml (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/resources/rich/messages.xhtml 2009-08-27 15:07:55 UTC (rev 15347)
@@ -0,0 +1,29 @@
+<!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:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:c="http://java.sun.com/jsp/jstl/core"
+ xmlns:composite="http://java.sun.com/jsf/composite"
+ xmlns:a4j="http://richfaces.org/a4j">
+<head>
+<title>panel</title>
+</head>
+<body>
+
+<composite:interface>
+ <composite:attribute name="style" required="false" />
+ <composite:attribute name="styleClass" required="false" />
+</composite:interface>
+
+<composite:implementation>
+ <h:outputStylesheet name="rich/css/messages.css" />
+ <a4j:outputPanel ajaxRendered="true" layout="none">
+ <h:messages layout="#{cc.attrs.layout}"
+ showSummary="true" style="#{cc.attrs.style}"
+ styleClass="rich-message #{cc.attrs.styleClass}" />
+ </a4j:outputPanel>
+</composite:implementation>
+</body>
+</html>
Added: root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/ajax/ajax.xhtml
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/ajax/ajax.xhtml (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/ajax/ajax.xhtml 2009-08-27 15:07:55 UTC (rev 15347)
@@ -0,0 +1,17 @@
+<!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:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:a4j="http://richfaces.org/a4j">
+
+ <ui:composition>
+ <h:form>
+ <h:inputText value="#{userBean.name}">
+ <a4j:ajax event="keyup" render="out"/>
+ </h:inputText>
+ <h:outputText value="#{userBean.name}" id="out"/>
+ </h:form>
+ </ui:composition>
+
+</html>
\ No newline at end of file
Added: root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/ajax.xhtml
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/ajax.xhtml (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/ajax.xhtml 2009-08-27 15:07:55 UTC (rev 15347)
@@ -0,0 +1,20 @@
+<!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:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+
+ <ui:composition template="/templates/main.xhtml">
+ <ui:define name="body">
+ <p>
+ The behavior that adds javascript call for sending Ajax request
+ to specified event on parent component
+ </p>
+ <fieldset>
+ <legend>Simple sample</legend>
+ <ui:include src="/richfaces/ajax/ajax.xhtml" />
+ </fieldset>
+ </ui:define>
+ </ui:composition>
+
+</html>
\ No newline at end of file
Modified: root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/commandButton.xhtml
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/commandButton.xhtml 2009-08-27 15:06:55 UTC (rev 15346)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/commandButton.xhtml 2009-08-27 15:07:55 UTC (rev 15347)
@@ -7,7 +7,8 @@
<ui:composition template="/templates/main.xhtml">
<ui:define name="body">
<p>
- Description for commandButton goes there.
+ The combination similar to h:commandButton with f:ajax. Inherits all
+ a4j:ajax special options.
</p>
<fieldset>
<legend>commandButton Sample</legend>
Modified: root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/commandLink.xhtml
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/commandLink.xhtml 2009-08-27 15:06:55 UTC (rev 15346)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/commandLink.xhtml 2009-08-27 15:07:55 UTC (rev 15347)
@@ -7,7 +7,8 @@
<ui:composition template="/templates/main.xhtml">
<ui:define name="body">
<p>
- Description for commandLink goes there.
+ The combination similar to h:commandLink with f:ajax. Inherits all
+ a4j:ajax special options.
</p>
<fieldset>
<legend>commandLink Sample</legend>
Modified: root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/jsFunction.xhtml
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/jsFunction.xhtml 2009-08-27 15:06:55 UTC (rev 15346)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/jsFunction.xhtml 2009-08-27 15:07:55 UTC (rev 15347)
@@ -6,9 +6,14 @@
<ui:composition template="/templates/main.xhtml">
<ui:define name="body">
- <p>
- Description for JS Function goes there.
- </p>
+
+ <p><b>a4j:jsFunction</b> component also designed to send Ajax requests, but allows to perform
+ an the requests from a Javascript code directly. The component sends a request using
+ a standard JSF approach, so the JSF form is required. The following example
+ shows how the part of a page is re-rendered when a user hovers over the names.
+ </p>
+
+
<fieldset>
<legend>JS Function Sample</legend>
<ui:include src="/richfaces/jsFunction/usage.xhtml" />
Modified: root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/log.xhtml
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/log.xhtml 2009-08-27 15:06:55 UTC (rev 15346)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/log.xhtml 2009-08-27 15:07:55 UTC (rev 15347)
@@ -6,8 +6,10 @@
<ui:composition template="/templates/main.xhtml">
<ui:define name="body">
- <p>
- Description for log goes there.
+ <p>
+ Log component allows you to inspect client side activities
+ during an Ajax request. It shows reuqest data, response data, DOM
+ tree changes on update and other useful debug information.
</p>
<fieldset>
<legend>log Sample</legend>
Modified: root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/mediaOutput.xhtml
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/mediaOutput.xhtml 2009-08-27 15:06:55 UTC (rev 15346)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/mediaOutput.xhtml 2009-08-27 15:07:55 UTC (rev 15347)
@@ -6,9 +6,28 @@
<ui:composition template="/templates/main.xhtml">
<ui:define name="body">
- <p>
- Description for Media output goes there.
- </p>
+ <p>a4j:mediaOutput allows to generate images, video, sounds and other binary
+ resources defined by a user on-the-fly.
+ </p>
+ <p><b>createContent</b> attribute references to the method that will be used
+ for content creating. The method accepts two parameters. The first parameter
+ has an OutputStream type. It is a reference to the steam that should be used for output.
+ The second parameter is a reference to a 'value' attribute of the component.
+ </p>
+ <p>
+ <b>value</b> attribute references to data that can be used as input data for a content
+ creator method. The data should be serializable because it is encoded to the URL
+ of the resource.
+ </p>
+ <p>
+ <b>mimeType</b> attribute defines the type of output content. It is used to define
+ the corresponded type in the header of an HTTP response.
+ </p>
+ <p>
+ <b>cacheable</b> attribute is a flag that defines the caching strategy. If 'cacheable'
+ is set to false, the response will not be cached. If it is set to true, it will be cached
+ and the serialized value of 'value' attribute plays the role of a cache key.
+ </p>
<fieldset>
<legend>Image output</legend>
<ui:include src="/richfaces/mediaOutput/imgUsage.xhtml" />
Added: root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/outputPanel/compositemessages.xhtml
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/outputPanel/compositemessages.xhtml (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/outputPanel/compositemessages.xhtml 2009-08-27 15:07:55 UTC (rev 15347)
@@ -0,0 +1,34 @@
+<!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:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://java.sun.com/jsf/composite/rich">
+
+ <ui:composition>
+ <h:form>
+ <rich:panel id="psnel">
+ <f:facet name="header">
+ <h:outputText value="User Details Panel" />
+ </f:facet>
+ <h:panelGrid columns="2">
+ <h:panelGrid columns="2">
+ <h:outputText value="User name:" />
+ <h:inputText value="#{userBean.name}" required="true" label="Name">
+ <f:validateLength minimum="3" maximum="12"/>
+ </h:inputText>
+ <h:outputText value="Adress:" />
+ <h:inputTextarea value="#{userBean.address}" label="Adress" required="true">
+ <f:validateLength maximum="100"/>
+ </h:inputTextarea>
+ </h:panelGrid>
+ <rich:messages/>
+ </h:panelGrid>
+ <a4j:commandButton value="Submit" type="button" action="#{userBean.store}" render="out"/>
+ <h:outputText value="#{userBean.recordStatus}" id="out"/>
+ </rich:panel>
+ </h:form>
+ </ui:composition>
+
+</html>
\ No newline at end of file
Modified: root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/outputPanel/usage.xhtml
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/outputPanel/usage.xhtml 2009-08-27 15:06:55 UTC (rev 15346)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/outputPanel/usage.xhtml 2009-08-27 15:07:55 UTC (rev 15347)
@@ -7,49 +7,64 @@
xmlns:a4j="http://richfaces.org/a4j">
<ui:composition>
- <h:form>
- <rich:panel>
- <f:facet name="header">
- <h:outputText value="Register form" />
- </f:facet>
- <h:panelGrid columns="3">
- <h:outputText value="Name:" />
- <h:inputText value="#{userBean.name}" required="true"
- validatorMessage="Nickname should countains of at least 3 characters"
- id="name">
- <a4j:ajax event="blur" execute="@this" render="namemessage"/>
- <f:validateLength minimum="3" />
- </h:inputText>
- <a4j:outputPanel layout="block" id="namemessage">
- <h:message for="name" style="color:red"/>
- </a4j:outputPanel>
- <h:outputText value="Password" />
- <h:inputSecret value="#{userBean.password}" id="pass" required="true"
- validatorMessage="Password should consist of at least 6 characters" >
- <a4j:ajax event="blur" execute="@this" render="passmessage"/>
- <f:validateLength minimum="6"/>
- </h:inputSecret>
- <a4j:outputPanel layout="block" id="passmessage">
- <h:message for="pass" style="color:red"/>
- </a4j:outputPanel>
- <h:outputText value="Age:" />
- <h:inputText value="#{userBean.age}" id="age" required="true"
- validatorMessage="You must be 21 or older to register">
- <f:validateLongRange minimum="21" />
- <a4j:ajax event="blur" execute="@this" render="agemessage"/>
- </h:inputText>
- <a4j:outputPanel layout="block" id="agemessage">
- <h:message for="age" style="color:red"/>
- </a4j:outputPanel>
- </h:panelGrid>
- <h:commandButton action="#{userBean.store}" value="Register" type="button">
- <a4j:ajax execute="@form"/>
- </h:commandButton>
- <a4j:outputPanel ajaxRendered="true">
- <h:outputText value="#{userBean.recordStatus}" id="out" style="color:green;"/>
- </a4j:outputPanel>
- </rich:panel>
- </h:form>
+ <style type="text/css">
+ .col {
+ width:50%;
+ padding:10px;
+ padding: 0px 30px 0px 0px;
+ vertical-align: top;
+ }
+ </style>
+ <h:panelGrid columns="2" width="100%" columnClasses="col">
+
+ <f:verbatim>
+ This code does not work as expected. The expected echo text does not appear
+ below even the condition for <code>'renderer'</code> returns <code>true</code>.
+ Also, the error message does not appear when the length of the text reaches the limit.
+ </f:verbatim>
+ <f:verbatim>
+ This code works properly. The <code>h:message</code> is marked for update during
+ each Ajaxrequest/response. The place for bottom label is reserved with
+ <code>outputPanel</code> while the component is not rendered.
+ </f:verbatim>
+
+ <a4j:outputPanel layout="block">
+
+
+ <a4j:outputPanel layout="block">
+ <h:form>
+ <h:message for="text1" style="color:red" />
+
+ <h:outputText style="font-weight: bold;" value="Enter Text: "/>
+ <h:inputText id="text1" label="text1" value="#{opBean1.text}">
+ <f:validateLength maximum="10"/>
+ <a4j:ajax event="keyup" execute="@this" render="out1" onerror="function(){return false}"/>
+ </h:inputText>
+
+ <h:outputText id="out1" rendered="#{not empty opBean1.text}" value="Approved Text: #{opBean1.text}" />
+ </h:form>
+ </a4j:outputPanel>
+
+ </a4j:outputPanel>
+
+ <a4j:outputPanel layout="block">
+ <h:form>
+ <a4j:outputPanel ajaxRendered="true" layout="block">
+ <h:message for="text2" style="color:red" />
+ </a4j:outputPanel>
+
+ <h:outputText style="font-weight: bold;" value="Enter Text: "/>
+ <h:inputText id="text2" label="text2" value="#{opBean2.text}">
+ <f:validateLength maximum="10"/>
+ <a4j:ajax event="keyup" execute="@this" render="out2" />
+ </h:inputText>
+
+ <a4j:outputPanel id="out2" layout="block">
+ <h:outputText rendered="#{not empty opBean2.text}" value="Approved Text: #{opBean2.text}" />
+ </a4j:outputPanel>
+ </h:form>
+ </a4j:outputPanel>
+ </h:panelGrid>
</ui:composition>
</html>
\ No newline at end of file
Modified: root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/outputPanel.xhtml
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/outputPanel.xhtml 2009-08-27 15:06:55 UTC (rev 15346)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/outputPanel.xhtml 2009-08-27 15:07:55 UTC (rev 15347)
@@ -21,15 +21,18 @@
<li></li>
</ul>
</p>
+ <fieldset>
+ <legend>Sample</legend>
+ <ui:include src="/richfaces/outputPanel/usage.xhtml" />
+ </fieldset>
<p>
- In the sample you could see how <b>h:message components inserted dynamically</b> if exist.
- Also user record <b>storing status updated automatically</b> after request without mentioning
- in <b>render</b> property.
-
+ Next sample shows how you could simply create composite component from
+ standard h:messages and a4j:outputPanel in order to get them updated
+ for any ajax request without render definition.
</p>
<fieldset>
<legend>Sample</legend>
- <ui:include src="/richfaces/outputPanel/usage.xhtml" />
+ <ui:include src="/richfaces/outputPanel/compositemessages.xhtml" />
</fieldset>
</ui:define>
</ui:composition>
Modified: root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/push/usage.xhtml
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/push/usage.xhtml 2009-08-27 15:06:55 UTC (rev 15346)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/push/usage.xhtml 2009-08-27 15:07:55 UTC (rev 15347)
@@ -38,9 +38,9 @@
rendered="#{choicesBean.enabled}" />
</a4j:outputPanel>
- <a4j:push enabled="#{choicesBean.enabled}" interval="3000"
+ <a4j:push enabled="#{choicesBean.enabled}" interval="1000"
eventProducer="#{choicesBean.addListener}" id="push" action="#{choicesBean.processUpdates}">
- <f:ajax render="choiceVotes push tempResults" />
+ <a4j:ajax render="choiceVotes push tempResults" />
</a4j:push>
</h:form>
</ui:composition>
Modified: root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/push.xhtml
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/push.xhtml 2009-08-27 15:06:55 UTC (rev 15346)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/push.xhtml 2009-08-27 15:07:55 UTC (rev 15347)
@@ -6,8 +6,17 @@
<ui:composition template="/templates/main.xhtml">
<ui:define name="body">
- <p>push description</p>
- <fieldset>
+ <p>The <b><a4j:push></b> periodically perform AJAX request to
+ server, to simulate 'push' data.</p>
+ <p><b><a4j:push></b> makes request to
+ minimal code only (not to JSF tree) in order to check the presence of
+ messages in the queue. If the message exists the complete request will
+ be performed. The component doesn't poll registered beans but
+ registers EventListener which receives messages about events.</p>
+ <p>Attribute '<b>interval</b>' is used as for poll component. It
+ specifies the interval in ms. for call push request. Simple example of
+ usage:</p>
+ <fieldset>
<legend>
Push Sample
</legend>
Added: root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/status/referencedusage.xhtml
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/status/referencedusage.xhtml (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/status/referencedusage.xhtml 2009-08-27 15:07:55 UTC (rev 15347)
@@ -0,0 +1,37 @@
+<!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:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://java.sun.com/jsf/composite/rich">
+<ui:composition>
+ <h:panelGrid columns="3" width="300px;">
+ <rich:panel>
+ <f:facet name="header">
+ <h:outputText value="User Details Panel" />
+ </f:facet>
+ <h:panelGrid columns="3">
+ <h:outputText value="User name:" />
+ <h:inputText value="#{userBean.name}" >
+ <a4j:ajax statusId="nameStatus" event="keyup"/>
+ </h:inputText>
+ <a4j:status name="nameStatus">
+ <f:facet name="start">
+ <h:graphicImage value="/images/ai.gif"/>
+ </f:facet>
+ </a4j:status>
+ <h:outputText value="Adress:" />
+ <h:inputText value="#{userBean.address}">
+ <a4j:ajax statusId="adressStatus" event="keyup"/>
+ </h:inputText>
+ <a4j:status name="adressStatus">
+ <f:facet name="start">
+ <h:graphicImage value="/images/ai.gif"/>
+ </f:facet>
+ </a4j:status>
+ </h:panelGrid>
+ </rich:panel>
+ </h:panelGrid>
+</ui:composition>
+</html>
\ No newline at end of file
Modified: root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/status.xhtml
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/status.xhtml 2009-08-27 15:06:55 UTC (rev 15346)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/status.xhtml 2009-08-27 15:07:55 UTC (rev 15347)
@@ -6,22 +6,38 @@
<ui:composition template="/templates/main.xhtml">
<ui:define name="body">
+ <p>a4j:status is an indicator of an Ajax request. It has two states - start and stop. The start
+ state indicates that an Ajax request is in progress. When Ajax Response comes back,
+ the component switches to the stop stage.
+ </p>
+ <p> Status could be defined:
+ <ul>
+ <li>Default for View</li>
+ <li>Default for form</li>
+ <li>Referenced explicity from the component which sends request</li>
+ </ul>
+ </p>
<p>
- Description for Status goes there.
+ Example of View scoped status
</p>
<fieldset>
+ <legend>Default view status sample</legend>
+ <ui:include src="/richfaces/status/viewusage.xhtml" />
+ </fieldset>
+ <p>
+ Example of form scoped status
+ </p>
+ <fieldset>
<legend>Default form status sample</legend>
<ui:include src="/richfaces/status/usage.xhtml" />
</fieldset>
+ <p>
+ Example of status which referenced from the components
+ </p>
<fieldset>
- <legend>Default view status sample</legend>
- <ui:include src="/richfaces/status/viewusage.xhtml" />
- </fieldset>
- <fieldset>
<legend>Referenced status sample</legend>
<ui:include src="/richfaces/status/referencedusage.xhtml" />
</fieldset>
</ui:define>
</ui:composition>
-
</html>
\ No newline at end of file
Modified: root/examples/trunk/richfaces-demo/src/main/webapp/templates/includes/navigation.xhtml
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/templates/includes/navigation.xhtml 2009-08-27 15:06:55 UTC (rev 15346)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/templates/includes/navigation.xhtml 2009-08-27 15:07:55 UTC (rev 15347)
@@ -10,6 +10,8 @@
</f:facet>
<h:panelGrid columns="1">
<h:outputLink
+ value="#{facesContext.externalContext.requestContextPath}/richfaces/ajax.jsf">a4j:ajax</h:outputLink>
+ <h:outputLink
value="#{facesContext.externalContext.requestContextPath}/richfaces/jsFunction.jsf">a4j:jsFunction</h:outputLink>
<h:outputLink
value="#{facesContext.externalContext.requestContextPath}/richfaces/mediaOutput.jsf">a4j:mediaOutput</h:outputLink>
15 years, 4 months
JBoss Rich Faces SVN: r15346 - in root: examples/trunk/components/core-demo and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: Alex.Kolonitsky
Date: 2009-08-27 11:06:55 -0400 (Thu, 27 Aug 2009)
New Revision: 15346
Modified:
root/examples/trunk/components/core-demo/pom.xml
root/examples/trunk/richfaces-demo/pom.xml
root/pom.xml
Log:
Update 4.0 ALPHA1 assembler for new structure
https://jira.jboss.org/jira/browse/RF-7745
Modified: root/examples/trunk/components/core-demo/pom.xml
===================================================================
--- root/examples/trunk/components/core-demo/pom.xml 2009-08-27 15:04:02 UTC (rev 15345)
+++ root/examples/trunk/components/core-demo/pom.xml 2009-08-27 15:06:55 UTC (rev 15346)
@@ -14,6 +14,30 @@
<example.componentName>core</example.componentName>
</properties>
+ <repositories>
+ <repository>
+ <id>repository.jboss.org</id>
+ <name>Jboss Repository for Maven</name>
+ <url>http://repository.jboss.org/maven2/</url>
+ </repository>
+ <repository>
+ <id>snapshots.jboss.org</id>
+ <name>Jboss Snapshots Repository for Maven</name>
+ <url>http://snapshots.jboss.org/maven2/</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>
+ <repository>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <id>maven-repository2.dev.java.net</id>
+ <name>Java.net Repository for Maven 2</name>
+ <url>http://download.java.net/maven/2</url>
+ </repository>
+ </repositories>
+
<modelVersion>4.0.0</modelVersion>
<groupId>org.richfaces.examples.components</groupId>
<artifactId>${example.componentName}-demo</artifactId>
@@ -72,6 +96,31 @@
</plugins>
</build>
</profile>
+
+ <profile>
+ <id>server</id>
+
+ <dependencies>
+ <dependency>
+ <groupId>com.sun.faces</groupId>
+ <artifactId>jsf-api</artifactId>
+ <version>2.0.0-SNAPSHOT</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.faces</groupId>
+ <artifactId>jsf-impl</artifactId>
+ <version>2.0.0-SNAPSHOT</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.transaction</groupId>
+ <artifactId>jta</artifactId>
+ <version>1.1</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+ </profile>
</profiles>
</project>
\ No newline at end of file
Modified: root/examples/trunk/richfaces-demo/pom.xml
===================================================================
--- root/examples/trunk/richfaces-demo/pom.xml 2009-08-27 15:04:02 UTC (rev 15345)
+++ root/examples/trunk/richfaces-demo/pom.xml 2009-08-27 15:06:55 UTC (rev 15346)
@@ -14,9 +14,33 @@
<groupId>org.richfaces.examples</groupId>
<artifactId>richfaces-demo</artifactId>
<packaging>war</packaging>
- <name>richfaces demo application </name>
+ <name>richfaces demo application </name>
-<dependencies>
+ <repositories>
+ <repository>
+ <id>repository.jboss.org</id>
+ <name>Jboss Repository for Maven</name>
+ <url>http://repository.jboss.org/maven2/</url>
+ </repository>
+ <repository>
+ <id>snapshots.jboss.org</id>
+ <name>Jboss Snapshots Repository for Maven</name>
+ <url>http://snapshots.jboss.org/maven2/</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>
+ <repository>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <id>maven-repository2.dev.java.net</id>
+ <name>Java.net Repository for Maven 2</name>
+ <url>http://download.java.net/maven/2</url>
+ </repository>
+ </repositories>
+
+ <dependencies>
<dependency>
<groupId>org.richfaces.ui.components</groupId>
<artifactId>core-ui</artifactId>
@@ -69,5 +93,30 @@
</plugins>
</build>
</profile>
+
+ <profile>
+ <id>server</id>
+
+ <dependencies>
+ <dependency>
+ <groupId>com.sun.faces</groupId>
+ <artifactId>jsf-api</artifactId>
+ <version>2.0.0-SNAPSHOT</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.faces</groupId>
+ <artifactId>jsf-impl</artifactId>
+ <version>2.0.0-SNAPSHOT</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.transaction</groupId>
+ <artifactId>jta</artifactId>
+ <version>1.1</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+ </profile>
</profiles>
</project>
Modified: root/pom.xml
===================================================================
--- root/pom.xml 2009-08-27 15:04:02 UTC (rev 15345)
+++ root/pom.xml 2009-08-27 15:06:55 UTC (rev 15346)
@@ -21,6 +21,12 @@
<!--<module>doc/${doc.svn.dir}</module>-->
</modules>
+ <properties>
+ <snapshotRepository>
+ dav:https://snapshots.jboss.org/maven2
+ </snapshotRepository>
+ </properties>
+
<profiles>
<profile>
<id>trunk</id>
15 years, 4 months