[JBoss JIRA] (RFPL-1925) a4j:status doesn't work if there's a h:commandLink in the page
by Guillaume Lancelin (Created) (JIRA)
a4j:status doesn't work if there's a h:commandLink in the page
--------------------------------------------------------------
Key: RFPL-1925
URL: https://issues.jboss.org/browse/RFPL-1925
Project: RichFaces Planning
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 4.1.0.Milestone3
Reporter: Guillaume Lancelin
Hi all,
The a4j:status tag seems not to work when a h:commandLink tag is in the same page.
I made a little example to test it.
The bean :
{code:java}
package fr.mycompany.test;
import javax.enterprise.inject.Model;
import javax.inject.Inject;
import org.jboss.logging.Logger;
@Model
public class Test {
@Inject
private Logger logger;
public String launch() {
for (int i = 0; i < 20000; i++) {
logger.debug(i);
}
return null;
}
}
{code}
The page :
{code:xml}
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich"
xmlns:s="http://jboss.org/seam/faces" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head />
<h:body>
<a4j:status id="status" onstart="#{rich:component('processingPopup')}.show()" onstop="#{rich:component('processingPopup')}.hide()" startText="en cours" stopText="fini" />
<rich:popupPanel id="processingPopup" modal="true" styleClass="popupSouscription" autosized="true" show="false">
Traitement en cours ...
</rich:popupPanel>
<h:form id="leForm">
<a4j:commandLink value="a4j commandLink" action="#{test.launch}" id="a4jLink" /><br/>
<h:commandLink value="h commandLink" action="#{test.launch}" id="hLink" />
</h:form>
<a4j:log id="logs" style="width: 1400px; height: 600px; overflow: scroll;" />
</h:body>
</html>
{code}
When I click on the a4j:commandLink the a4j:status doesn't work and the following log appears :
{code}
info [18:25:14.390]: Received 'begin' event from <a id=leForm:a4jLink ...>
info [18:25:15.251]: Received 'beforedomupdate' event from <a id=leForm:a4jLink ...>
debug[18:25:15.252]: Server returned responseText: <?xml version='1.0' encoding='UTF-8'?> <partial-response><changes><update id="javax.faces.ViewState"><![CDATA[5271447831659883319:-888481348828354087]]></update></changes></partial-response>
info [18:25:15.253]: Listing content of response changes element:
Element update for id=javax.faces.ViewState
<update id="javax.faces.ViewState"><![CDATA[5271447831659883319:-888481348828354087]]></update>
info [18:25:15.255]: Received 'success' event from <a id=leForm:a4jLink ...>
info [18:25:15.256]: Received 'complete' event from <a id=leForm:a4jLink ...>
{code}
If I remove the line <h:commandLink value="h commandLink" action="#{test.launch}" id="hLink" /> and then click on the a4j:commandLink the a4j:status works and the following log appears :
{code}
debug[18:28:17.277]: New request added to queue. Queue requestGroupingId changed to leForm:a4jLink
debug[18:28:17.277]: Queue will wait 0ms before submit
debug[18:28:17.278]: richfaces.queue: will submit request NOW
info [18:28:17.282]: Received 'begin' event from <a id=leForm:a4jLink ...>
info [18:28:17.905]: Received 'beforedomupdate' event from <a id=leForm:a4jLink ...>
debug[18:28:17.906]: Server returned responseText: <?xml version='1.0' encoding='UTF-8'?> <partial-response><changes><update id="javax.faces.ViewState"><![CDATA[-4055820746262438471:-5740665287677042238]]></update></changes></partial-response>
info [18:28:17.908]: Listing content of response changes element:
Element update for id=javax.faces.ViewState
<update id="javax.faces.ViewState"><![CDATA[-4055820746262438471:-5740665287677042238]]></update>
debug[18:28:17.909]: richfaces.queue: ajax submit successfull
debug[18:28:17.910]: richfaces.queue: Nothing to submit
info [18:28:17.913]: Received 'success' event from <a id=leForm:a4jLink ...>
info [18:28:17.914]: Received 'complete' event from <a id=leForm:a4jLink ...>
{code}
I'm using Java 1.6.0_29, JBoss 6.1, mojarra 2.0.3_b5, RF 4.1.0-CR2 (but someone told me [here|http://community.jboss.org/thread/175872?tstart=0] that the problem appears with the milestone 3), Seam 3.0.0-Final.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 10 months
[JBoss JIRA] Created: (RFPL-1508) Getting started with RichFaces 4 & the mobile web
by Jay Balunas (JIRA)
Getting started with RichFaces 4 & the mobile web
-------------------------------------------------
Key: RFPL-1508
URL: https://issues.jboss.org/browse/RFPL-1508
Project: RichFaces Planning
Issue Type: Task
Security Level: Public (Everyone can see)
Components: doc, examples
Reporter: Jay Balunas
Assignee: Wesley Hales
Priority: Critical
Fix For: 4.1.0.Final
We need a series of wiki pages, and/or a document that describes how a developer can get started with RichFaces 4.0 for the mobile web.
It should walk the user through the basics of mobile web development, and show them how to get there own application started that supports orientation, device/feature detection, transitions, etc... with RichFaces.
The exact details of the example, and document should be discussed in the forums.
Depending on timing for RichFaces and Forge we should include info on using forge to give a kick start.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 10 months
[JBoss JIRA] (RFPL-1789) Metamer and rich:validator - sample with wrapping validator throws exception
by Jan Papousek (Created) (JIRA)
Metamer and rich:validator - sample with wrapping validator throws exception
----------------------------------------------------------------------------
Key: RFPL-1789
URL: https://issues.jboss.org/browse/RFPL-1789
Project: RichFaces Planning
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 4.1.0.Milestone4
Reporter: Jan Papousek
After submitting the form on http://localhost:8080/metamer/faces/components/richValidator/wrapping.xhtml by h:commandButton, the following error appears:
{code}
javax.servlet.ServletException: Unexpected exception during isValid call
javax.faces.webapp.FacesServlet.service(FacesServlet.java:606)
org.richfaces.tests.metamer.TestIdentityFilter.doFilter(TestIdentityFilter.java:93)
org.richfaces.webapp.PushFilter.doFilter(PushFilter.java:130)
root cause
javax.validation.ValidationException: Unexpected exception during isValid call
org.hibernate.validator.engine.ConstraintTree.validateSingleConstraint(ConstraintTree.java:281)
org.hibernate.validator.engine.ConstraintTree.validateConstraints(ConstraintTree.java:153)
org.hibernate.validator.engine.ConstraintTree.validateConstraints(ConstraintTree.java:117)
org.hibernate.validator.metadata.MetaConstraint.validateConstraint(MetaConstraint.java:84)
org.hibernate.validator.engine.ValidatorImpl.validatePropertyForDefaultGroup(ValidatorImpl.java:829)
org.hibernate.validator.engine.ValidatorImpl.validatePropertyForCurrentGroup(ValidatorImpl.java:742)
org.hibernate.validator.engine.ValidatorImpl.validateValueInContext(ValidatorImpl.java:699)
org.hibernate.validator.engine.ValidatorImpl.validateValue(ValidatorImpl.java:176)
javax.faces.validator.BeanValidator.validate(BeanValidator.java:306)
javax.faces.component.UIInput.validateValue(UIInput.java:1149)
javax.faces.component.UISelectMany.validateValue(UISelectMany.java:581)
javax.faces.component.UIInput.validate(UIInput.java:967)
javax.faces.component.UIInput.executeValidate(UIInput.java:1233)
javax.faces.component.UIInput.processValidators(UIInput.java:698)
javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214)
javax.faces.component.UIForm.processValidators(UIForm.java:253)
javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214)
javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214)
javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214)
javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:1172)
com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
org.richfaces.tests.metamer.TestIdentityFilter.doFilter(TestIdentityFilter.java:93)
org.richfaces.webapp.PushFilter.doFilter(PushFilter.java:130)
root cause
java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.util.Collection
org.hibernate.validator.constraints.impl.SizeValidatorForCollection.isValid(SizeValidatorForCollection.java:29)
org.hibernate.validator.engine.ConstraintTree.validateSingleConstraint(ConstraintTree.java:278)
org.hibernate.validator.engine.ConstraintTree.validateConstraints(ConstraintTree.java:153)
org.hibernate.validator.engine.ConstraintTree.validateConstraints(ConstraintTree.java:117)
org.hibernate.validator.metadata.MetaConstraint.validateConstraint(MetaConstraint.java:84)
org.hibernate.validator.engine.ValidatorImpl.validatePropertyForDefaultGroup(ValidatorImpl.java:829)
org.hibernate.validator.engine.ValidatorImpl.validatePropertyForCurrentGroup(ValidatorImpl.java:742)
org.hibernate.validator.engine.ValidatorImpl.validateValueInContext(ValidatorImpl.java:699)
org.hibernate.validator.engine.ValidatorImpl.validateValue(ValidatorImpl.java:176)
javax.faces.validator.BeanValidator.validate(BeanValidator.java:306)
javax.faces.component.UIInput.validateValue(UIInput.java:1149)
javax.faces.component.UISelectMany.validateValue(UISelectMany.java:581)
javax.faces.component.UIInput.validate(UIInput.java:967)
javax.faces.component.UIInput.executeValidate(UIInput.java:1233)
javax.faces.component.UIInput.processValidators(UIInput.java:698)
javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214)
javax.faces.component.UIForm.processValidators(UIForm.java:253)
javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214)
javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214)
javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214)
javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:1172)
com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
org.richfaces.tests.metamer.TestIdentityFilter.doFilter(TestIdentityFilter.java:93)
org.richfaces.webapp.PushFilter.doFilter(PushFilter.java:130)
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 10 months