-
1. Re: IE fail with ajax feature for richfaces 3.3.1
ilya_shaikovsky Jun 16, 2010 2:36 AM (in response to shmu80)works fine for us as you could see at livedemo.
show your code.
please use RichFaces space and not RichFaces development in future. This on for discussion of framework development. I will move it now.
-
2. Re: IE fail with ajax feature for richfaces 3.3.1
shmu80 Jun 17, 2010 3:41 AM (in response to ilya_shaikovsky)Here is my code
Ajax validation
-------------------------
JSF----------
<h:form>
<h:outputText value="#{lbl['gn.uid']}" />
<h:inputText value="#{loginBean.userId}" id="userId" required="true">
<rich:ajaxValidator event="onblur" />
</h:inputText>
<rich:message for="userId" styleClass="statusError" /><h:outputText value="#{lbl['gn.pwd']}" />
<h:inputSecret value="#{loginBean.pin}" id="pin" required="true">
<rich:ajaxValidator event="onblur" />
</h:inputSecret>
<rich:message for="pin" styleClass="statusError" /></h:form>
Bean--------------
@Length(min = 1, max = 30)private String userId;
@Length(min = 1, max = 30)private String pin;
Ajax support
-------------------
JSF-------------
<a4j:form>
<h:inputText value="testing" render="#{bean.check}" id="output">
</h:inputText>
<h:selectBooleanCheckbox value="#{bean.check}">
<a4j:support event="onchange" reRender="output"/>
</h:selectBooleanCheckbox>
</a4j:form>
Bean-----------
private boolean check = false;
The ajax validation is not working no matter how many character I key in into the field.
Anyway, this code work in firefox, but not IE, however, my IE also working well with the livedemo. So I just wondering what problem with my code. -
3. Re: IE fail with ajax feature for richfaces 3.3.1
ilya_shaikovsky Jun 17, 2010 5:13 AM (in response to shmu80)1) problem with validators. if there are any js errors reported in browser?
1.1) also please check a4j:log component output - if there are any errors also.
2) for a4j:support problem try please
<a4j:support ajaxSingle="true" event="onchange" reRender="output"/>general.. please if have some time - please try also under 3.3.3.Final to verify that this is not result of older version issus.
-
4. Re: IE fail with ajax feature for richfaces 3.3.1
shmu80 Jun 17, 2010 5:31 AM (in response to ilya_shaikovsky)The error as below:
Line: 6342
Error: 'elements' is null or not an object
Code: 0
But fyi, when I view source from tha page, the page only contains 162 line of source.
About the a4j:support, after I change to the code as you mention, the problem still the same. I would try with latest richfaces version. however, if there any additional efford is needed to upgrade the richfaces lib version, please let me know. Thanks
-
5. Re: IE fail with ajax feature for richfaces 3.3.1
ilya_shaikovsky Jun 17, 2010 5:32 AM (in response to shmu80)if there are any other js libraries used on the pages?
-
6. Re: IE fail with ajax feature for richfaces 3.3.1
shmu80 Jun 17, 2010 5:55 AM (in response to ilya_shaikovsky)No. I had tried with richfaces 3.3.3 library. Same problem still happen.
-
7. Re: IE fail with ajax feature for richfaces 3.3.1
ilya_shaikovsky Jun 17, 2010 6:08 AM (in response to shmu80)few more tries
try to clean browser cache and refres hthe page.
please verify that http://livedemo.exadel.com/richfaces-demo/richfaces/ajaxValidators.jsf works for you. in IE 7 (works for me)
if will found nothing - create simple sa mple war file and attachto thread or upload somewhere.
-
8. Re: IE fail with ajax feature for richfaces 3.3.1
ilya_shaikovsky Jun 17, 2010 6:09 AM (in response to ilya_shaikovsky)sorry.. wrong link posted in prev comment http://livedemo.exadel.com/richfaces-demo/richfaces/ajaxValidator.jsf