File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes f:ajax does not render in IE 8 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSF
Bookmark "f:ajax does not render in IE 8" Watch "f:ajax does not render in IE 8" New topic
Author

f:ajax does not render in IE 8

Gustavo Delgado
Greenhorn

Joined: Dec 06, 2011
Posts: 3
Hi i'm new at these.

I'm using JSF 2.0. I have a <h:inputText> with a valueChangeListener. It goes to the bean with the blur event and returns the data from a web service and renders 9 more fields.

This works fine on Firefox and Chrome, but on IE it goes to the bean find the data but it's not rendering the 9 other fields.

I have been searching everywhere and reRender with a4j supposedly works but i cant use RichFaces.

Here is the relevant part of the code:



How is this caused and how can I solve it?

Thanks!
Brendan Healey
Ranch Hand

Joined: May 12, 2009
Posts: 218
Code looks ok, I'd suggest adding an h:messages somewhere on the page (if not already) just to check that there
aren't any validation issues - but of course there shouldn't be if it's working ok on other browsers. So... I'd wipe
the IE browser cache and try again. I've had similar issues where this has helped (for reasons unknown!).

Is it possible to wrap all those render targets in a panelGroup and just render the panelGroup? You're using JSF
1 with which I have little experience but perhaps there's a limit or bug on the number of render targets? check the
JIRA, and try just rendering a single target component and working up from there.


Regards,
Brendan.
Kumaravadivel Subramani
Ranch Hand

Joined: Jul 05, 2008
Posts: 166

Brendan, its a absolutely great suggestion. Last time I've had the same problem of not submitting the form but no errors, but after added h:messages I seen the validation errors displayed.


No pain, No gain.
OCJP 1.6
Gustavo Delgado
Greenhorn

Joined: Dec 06, 2011
Posts: 3
Hi guys... thanks for the quick answers! i'd added the h:message and nothing... i'd removed the other 8 field to render and also try cleaning the browser cache... with no results...

Thanks for the suggestions! if you find something else please let me know... (Y)

Regards!
Brendan Healey
Ranch Hand

Joined: May 12, 2009
Posts: 218
You'll need h:messages, not h:message, unless you use for=.
Gustavo Delgado
Greenhorn

Joined: Dec 06, 2011
Posts: 3
sorry i meant, h:messages.. but the same result... i also try changing the Mojarra version from 2.04 to 2.0.6 and 2.0.3 and nothing...
 
GeeCON Prague 2014
 
subject: f:ajax does not render in IE 8