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 Chrome JSF Actions Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Chrome JSF Actions Problem" Watch "Chrome JSF Actions Problem" New topic
Author

Chrome JSF Actions Problem

fernando aguilera
Greenhorn

Joined: Apr 10, 2010
Posts: 2
Hello,

I have a problem using JSF <CommandLink> actions in Chrome Navigator. It works perfectly in Firefox and IE.



When i redirect to a .jspx page using a navigation-rule i get in Chrome and Safari this error:

¬°Oh no!
'An error produced showing the webpage. To continue ...'

This is my:

faces-config.xml
------------------



web.xml:
----------



Can anyone help me?

Thanks!!
fernando aguilera
Greenhorn

Joined: Apr 10, 2010
Posts: 2
I got the solution!

You must put the contentType in the <f:view> tag in each .jspx page you have.



Chrome needs to know this information.

If warning appears, don't worry, it works correctly
S Martin
Greenhorn

Joined: Dec 08, 2010
Posts: 2

Excellent! I was trying to figure out why Chrome was giving me an error re: xml in my document when using JSF templating. Putting <f:view contentType="text/html" /> fixed that problem. Thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Chrome JSF Actions Problem