« Glassfish and OpenID | Main | Generate MS-Word... »

RichFaces - Feature will not work in IE ...?

As I am working with RichFaces I run in a situation where a realy cool Drag&Drop feature supported by RichFaces works fine in Firefox but did not work in Internet Explorer. 

First I thougt it was a Bug from RichFaces and opend a new issue in the JBoss RichFacess Issue tracker.

But it is a known issue. Following the issue you can see that my problem is well known in a lot of other situations. Finally the problem occures if a RichFaces/Ajax JavaScript event trigers a page reload. For example after a DropEvent in my case. But it seems it can happen also in a lot of other situations. This is like my code looks that generated the bug in IE:

 <rich:dropSupport id="myprojects" acceptedTypes="project"
dropListener="#{myProfileMB.processDropEventAdd}"
reRender="sidebar_menu_id, myprimprojects_menu_id"
action="mydrop_action">
</rich:dropSupport>

The  problem was that the action "mydrop_action" seems not to be processed in IE but works fine in Firefox. If you have same problem the solution would be easy. You simply need to change the navigation rule in your faces-config.xml file. You only need to add a <redirect /> tag to the corresponding navigatino rule. So I changed my rule to:

 <navigation-case>
<from-outcome>mydrop_action</from-outcome>
<to-view-id>/pages/projects/myprojects.xhtml
</to-view-id>
<redirect/>
</navigation-case>

And this soved the problem. Now the code works in firefox and IE. And RichFaces are really cool!