[JBoss JIRA] Created: (RF-5617) a4j:jsFunction in IE6/7 breaks when html:form's prependId="false"
by yagish sharma (JIRA)
a4j:jsFunction in IE6/7 breaks when html:form's prependId="false"
-----------------------------------------------------------------
Key: RF-5617
URL: https://jira.jboss.org/jira/browse/RF-5617
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Environment: Windows XP, IE6/7
Reporter: yagish sharma
a4j:jsFunction in IE6/7 breaks when html:form's prependId="false".
In RichFaces3.2.2SR1, a4j:jsFunction generates an HTML script, which breaks in IE6/7, but works in FireFox. The issue is the way the jsFunction is rendered.
Here is a sample of how the script is rendered in Ajax4JSF and in RichFaces when html:form's prependId attribute is false.
<a4j:jsFunction name="func1" and id="func1" action="doSomething()"/>
Notice that the name and id fields are kept same.
In Ajax4JSF, this will render as -
script id="func1" type="text/javascript"
function func1(){.........};
/script
In RichFaces, this renders as -
script id="func1" type="text/javascript">
func1 = function(){.........};
/script
Having the id of script tag and the func1 prototype name as same creates the problem. IE6/7 while parsing the script tag gives an error - "Object does not supports this property".
In RichFaces the renderer for jsFunction is AjaxFunctionRendererBase. This renderer's getFunction() method has changed from Ajax4JSF and generates this inappropriate javascript code.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 10 months
[JBoss JIRA] Created: (RF-7234) Bean Validation doesn't work without groups
by Juergen Zimmermann (JIRA)
Bean Validation doesn't work without groups
-------------------------------------------
Key: RF-7234
URL: https://jira.jboss.org/jira/browse/RF-7234
Project: RichFaces
Issue Type: Patch
Affects Versions: 3.3.1
Reporter: Juergen Zimmermann
When using Bean Validation for POJO classes without groups I get the stacktrace below. This fix is related to line 83 in the file org/richfaces/validator/BeanValidator.java
ADD TO THE IF STATEMENT THIS ELSE BRANCH:
else groups = new Class<?>[0];
Stacktrace when having no group:
Caused by: java.lang.IllegalArgumentException: null passed as group name
at org.hibernate.validation.engine.ValidatorImpl.determineGroupExecutionOrder(ValidatorImpl.java:161)
at org.hibernate.validation.engine.ValidatorImpl.validateProperty(ValidatorImpl.java:124)
at org.richfaces.validator.BeanValidator.validate(BeanValidator.java:41)
at org.richfaces.validator.ObjectValidator$ValidationResolver.setValue(ObjectValidator.java:411)
at org.apache.el.parser.AstValue.setValue(AstValue.java:142)
at org.apache.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:249)
at com.sun.facelets.el.TagValueExpression.setValue(TagValueExpression.java:93)
at org.richfaces.validator.ObjectValidator.validate(ObjectValidator.java:117)
at org.richfaces.validator.FacesBeanValidator.validate(FacesBeanValidator.java:101)
at org.richfaces.component.html.HtmlInputText.validateValue(HtmlInputText.java:52)
at javax.faces.component.UIInput.validate(UIInput.java:875)
at javax.faces.component.UIInput.executeValidate(UIInput.java:1072)
at javax.faces.component.UIInput.processValidators(UIInput.java:672)
at org.ajax4jsf.component.UIAjaxRegion$2.invokeContextCallback(UIAjaxRegion.java:59)
at org.ajax4jsf.component.ContextCallbackWrapper.invokeContextCallback(ContextCallbackWrapper.java:44)
at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:711)
... 47 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 10 months
[JBoss JIRA] Created: (RF-7264) tab: Process attribute doesn't work
by Vadim Mikovoz (JIRA)
tab: Process attribute doesn't work
-----------------------------------
Key: RF-7264
URL: https://jira.jboss.org/jira/browse/RF-7264
Project: RichFaces
Issue Type: Bug
Components: component-output
Affects Versions: 3.3.2.CR1
Environment: all provided browsers
v.3.3.2-SNAPSHOT
Reporter: Vadim Mikovoz
Assignee: Nick Belaevski
Add code to your test page:
<h:form id="formID">
<rich:tabPanel switchType="ajax">
<rich:tab label="first" ajaxSingle="true"></rich:tab>
<rich:tab label="second" ajaxSingle="true" process="myInputID"></rich:tab>
<rich:tab label="third"></rich:tab>
</rich:tabPanel>
<br/>
<h:inputText id="myInputID" value="" required="true" />
<br/>
<rich:messages></rich:messages>
</h:form>
1. Open your test page
2. Try to navigate to the second tab
------------------------------------------------
The first tab is active as before (it's good), but there isn't an error validation message
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 10 months