webtier@glassfish.java.net

Error when using multiple view parameters?

From: <webtier_at_javadesktop.org>
Date: Tue, 04 May 2010 23:44:41 PDT

Hi all

I have the following navigation rules with multiple view parameters:

[i] <navigation-rule>
        <from-view-id>/Messages/Messages.xhtml</from-view-id>
        <navigation-case>
            <from-outcome>EDIT</from-outcome>
            <to-view-id>/Messages/MessageEdit.html</to-view-id>
            <redirect>
                <view-param>
                    <name>mode</name>
                    <value>UPDATE</value>
                </view-param>
                <view-param>
                    <name>key</name>
                    <value>#{MessagesList.urlEncodedSelection}</value>
                </view-param>
            </redirect>
        </navigation-case>
...
[/i]
I have multiple view parameters defined in the <redirect />. If I trigger the navigation rule by clicking the specific button, I see the following error in firefox:

[i]Error: not wellformed
<partial-response><redirect url="/fza/Messages/MessageEdit.html?mode=UPDATE&key=test"></redirect></partial-response>
[/i]

and nothing happens.
It seems that Mojarra does not correctly encode the & to a &amp; in the ajax response, so that its not a valid XML document...

Is this bug already solved or filed?

Regards Michael
[Message sent by forum member 'mszalay']

http://forums.java.net/jive/thread.jspa?messageID=403559