rewrite prevent Primefaces dialog from showing up

Splash Forums Rewrite Users rewrite prevent Primefaces dialog from showing up

This topic contains 14 replies, has 3 voices, and was last updated by  Lincoln Baxter III 8 years, 3 months ago.

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
  • #25003


    Hello, I’m using primefaces-3.5 + Spring-security-3.1.2. After adding rewrite-2.0.7 my dialog <h:outputLink value="javascript:void(0)" onclick=";" /> doesn’t show up any more. I see just a javascript:null. Any hints?
    When I remove rewrite, it works fine.
    Thanks for your help.

    • This topic was modified 8 years, 4 months ago by  banifou.


    I had a look in the source html: <a href="javascript:null" onclick=";">. The value of the link changed from javascript:void(0) to javascript:null !!

    • This reply was modified 8 years, 4 months ago by  banifou.

    Seems like Rewrite tries to parse the address and fails.

    I think the simplest work around would be to use a plain HTML link for the dialog instead:

    <a href="javascript:void(0)" onclick=";" />

    There is really no good reason to use a JSF component in this case. Actually using a JSF component will increase your component tree size which has a negative impact on performance.

    An alternative would be to either change the value this way:

    <h:outputLink value="#" onclick=";" />

    Or just return false from onclick which will prevent the default action for the link. This is what I usually do:

    <h:outputLink value="javascript:void(0)" onclick="; return false;" />


    I created an issue report to track this:



    return false; helped! Thank u very much.


    Hey, could you tell me which container you are using? For some reason we cannot reproduce this issue on JBoss AS7.



    I’m using glassfish.


    And which version?






    Could u reproduce the issue on glassfish too?


    AFAIK Lincoln just tested in AS7. He also created an integration tests to verify that Rewrite behaves correctly for this. I’m currently working on getting our integration test suite to run on Glassfish:

    But this may take some time to complete.


    This test should have run on Travis –

    I believe the test passes, right? I wrote this test over a week ago.


    Yeah, that’s right. Seems like your test passes on Glassfish:

    @banifou Are you doing something differently? The test seems to run fine.



    Sorry for the late response. I’m not doing anything differently!


    Could you upload a sample maven application that reproduces your issue? We’ll take a look. Thanks!

Viewing 15 posts - 1 through 15 (of 15 total)

The forum ‘Rewrite Users’ is closed to new topics and replies.

Comments are closed.