PrimeFaces commandButton doesn't navigate or update











up vote
38
down vote

favorite
5












I'am using Primefaces to make my app a little bit more beautiful. I noticed that p:commandButton and h:commandButton don't work the same way.



The p:commandButton calls the method and nothing else hapens. The h:commandButton calls the method and returns a navigation.



I have got trouble with redirecting after pressing the login button when using p:commandButton. How to deal with that?





I do have an update parameter:



<p:commandButton value="Login" action="#{login.login}" type="submit" update="msgs" />









share|improve this question




























    up vote
    38
    down vote

    favorite
    5












    I'am using Primefaces to make my app a little bit more beautiful. I noticed that p:commandButton and h:commandButton don't work the same way.



    The p:commandButton calls the method and nothing else hapens. The h:commandButton calls the method and returns a navigation.



    I have got trouble with redirecting after pressing the login button when using p:commandButton. How to deal with that?





    I do have an update parameter:



    <p:commandButton value="Login" action="#{login.login}" type="submit" update="msgs" />









    share|improve this question


























      up vote
      38
      down vote

      favorite
      5









      up vote
      38
      down vote

      favorite
      5






      5





      I'am using Primefaces to make my app a little bit more beautiful. I noticed that p:commandButton and h:commandButton don't work the same way.



      The p:commandButton calls the method and nothing else hapens. The h:commandButton calls the method and returns a navigation.



      I have got trouble with redirecting after pressing the login button when using p:commandButton. How to deal with that?





      I do have an update parameter:



      <p:commandButton value="Login" action="#{login.login}" type="submit" update="msgs" />









      share|improve this question















      I'am using Primefaces to make my app a little bit more beautiful. I noticed that p:commandButton and h:commandButton don't work the same way.



      The p:commandButton calls the method and nothing else hapens. The h:commandButton calls the method and returns a navigation.



      I have got trouble with redirecting after pressing the login button when using p:commandButton. How to deal with that?





      I do have an update parameter:



      <p:commandButton value="Login" action="#{login.login}" type="submit" update="msgs" />






      jsf jsf-2 primefaces






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 9 '11 at 13:39









      BalusC

      835k29430993184




      835k29430993184










      asked Jan 9 '11 at 12:56









      Sven

      3,0021960107




      3,0021960107
























          6 Answers
          6






          active

          oldest

          votes

















          up vote
          51
          down vote



          accepted










          <p:commandButton> needs one of the following to work correctly:




          • the update attribute to list id's of components to re-render (for AJAX requests)

          • the attribute ajax="false" to make a normal, non-ajax submit.


          If you have neither, the button does per default an AJAX request with no UI feedback.



          Additionally, I've had problems with neither option working when the surrounding <h:form> had an enctype attribute.






          share|improve this answer























          • I do have an update parameter. See updated question
            – Sven
            Jan 9 '11 at 13:23






          • 1




            You want ajax="false" if you want to have a synchronous request with a navigation. As to the update parameter, see my comment in one of your previous questions which you didn't respond to yet.
            – BalusC
            Jan 9 '11 at 13:39












          • Sry, just forgot about that -.-
            – Sven
            Jan 9 '11 at 13:56










          • As to the enctype="multipart/form-data" issue, for that you need to ensure that you've configured the PrimeFaces FileUploadFilter as per the instructions in their User Guide.
            – BalusC
            Jan 26 '11 at 19:42












          • @BalusC: Ah, and now I know where that enctype came from - the file upload turned out to be unnecessary, but the attribute stayed around to mess up things... Thanks!
            – Michael Borgwardt
            Jan 26 '11 at 21:11


















          up vote
          31
          down vote













          I think what Cagatay ment was:



          Does not navigate the page:



          <p:commandButton action="home.xhtml" value="Go Home"/>


          Works (redirects the page):



          <p:commandButton action="home.xhtml?faces-redirect=true" value="Go Home"/>


          Works (redirects the page)



          <p:commandButton action="home?faces-redirect=true" value="Go Home"/>


          if .xhtml is your default postfix defined in web.xml:



          <context-param>
          <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
          <param-value>.xhtml</param-value>
          </context-param>


          More info can be found in the primefaces forum, for example in this discussion about navigation



          I hope that helped a bit...






          share|improve this answer





















          • Nice conclusion!
            – Sven
            May 5 '11 at 9:24


















          up vote
          8
          down vote













          You must use redirect if you are doing navigation and request is done with ajax.






          share|improve this answer




























            up vote
            4
            down vote













            I am having a similar problem.



            I am using primefaces and primefaces mobile and the navigation fails in Firefox when using
            <p:commandButton> with ajax="false" and action="find.xhtml?faces-redirect=true".



            The only way I could make it work also in Firefox was by using <h:commandButton>:



            <h:commandButton value="#{msg.find}" process="find" 
            action="find.xhtml?faces-redirect=true" />





            share|improve this answer




























              up vote
              -1
              down vote













              none of the above solution worked for me.
              You can still go for simple javascript



              <p:commandButton onclick="window.location.href =home.xhtml"
              style="height: 20px" type="button" title="title" icon="ui-icon-transferthick-e-w"/>





              share|improve this answer




























                up vote
                -1
                down vote













                <h:commandButton 
                styleClass="btn btn-primary-active upgrade" data-dismiss="modal"
                value="Upgrade Account"
                action="profile.do?faces-redirect=true&amp;tab=plan"
                oncomplete="$('#freeGiftModal').hide();" process="@this" partialSubmit="true" immediate="true"/>


                I used the commandbutton to navigate to profile page, and its working fine for me.






                share|improve this answer





















                • Your answer isffectively not different from others and in a way it is worse. Besides it not beimg a p:commandButton, which with the right attributes 'just works' it containsttributes that are not valid for an h:commandButton, mor that one of the other answers
                  – Kukeltje
                  Nov 11 at 8:14











                Your Answer






                StackExchange.ifUsing("editor", function () {
                StackExchange.using("externalEditor", function () {
                StackExchange.using("snippets", function () {
                StackExchange.snippets.init();
                });
                });
                }, "code-snippets");

                StackExchange.ready(function() {
                var channelOptions = {
                tags: "".split(" "),
                id: "1"
                };
                initTagRenderer("".split(" "), "".split(" "), channelOptions);

                StackExchange.using("externalEditor", function() {
                // Have to fire editor after snippets, if snippets enabled
                if (StackExchange.settings.snippets.snippetsEnabled) {
                StackExchange.using("snippets", function() {
                createEditor();
                });
                }
                else {
                createEditor();
                }
                });

                function createEditor() {
                StackExchange.prepareEditor({
                heartbeatType: 'answer',
                convertImagesToLinks: true,
                noModals: true,
                showLowRepImageUploadWarning: true,
                reputationToPostImages: 10,
                bindNavPrevention: true,
                postfix: "",
                imageUploader: {
                brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                allowUrls: true
                },
                onDemand: true,
                discardSelector: ".discard-answer"
                ,immediatelyShowMarkdownHelp:true
                });


                }
                });














                 

                draft saved


                draft discarded


















                StackExchange.ready(
                function () {
                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f4639205%2fprimefaces-commandbutton-doesnt-navigate-or-update%23new-answer', 'question_page');
                }
                );

                Post as a guest















                Required, but never shown

























                6 Answers
                6






                active

                oldest

                votes








                6 Answers
                6






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes








                up vote
                51
                down vote



                accepted










                <p:commandButton> needs one of the following to work correctly:




                • the update attribute to list id's of components to re-render (for AJAX requests)

                • the attribute ajax="false" to make a normal, non-ajax submit.


                If you have neither, the button does per default an AJAX request with no UI feedback.



                Additionally, I've had problems with neither option working when the surrounding <h:form> had an enctype attribute.






                share|improve this answer























                • I do have an update parameter. See updated question
                  – Sven
                  Jan 9 '11 at 13:23






                • 1




                  You want ajax="false" if you want to have a synchronous request with a navigation. As to the update parameter, see my comment in one of your previous questions which you didn't respond to yet.
                  – BalusC
                  Jan 9 '11 at 13:39












                • Sry, just forgot about that -.-
                  – Sven
                  Jan 9 '11 at 13:56










                • As to the enctype="multipart/form-data" issue, for that you need to ensure that you've configured the PrimeFaces FileUploadFilter as per the instructions in their User Guide.
                  – BalusC
                  Jan 26 '11 at 19:42












                • @BalusC: Ah, and now I know where that enctype came from - the file upload turned out to be unnecessary, but the attribute stayed around to mess up things... Thanks!
                  – Michael Borgwardt
                  Jan 26 '11 at 21:11















                up vote
                51
                down vote



                accepted










                <p:commandButton> needs one of the following to work correctly:




                • the update attribute to list id's of components to re-render (for AJAX requests)

                • the attribute ajax="false" to make a normal, non-ajax submit.


                If you have neither, the button does per default an AJAX request with no UI feedback.



                Additionally, I've had problems with neither option working when the surrounding <h:form> had an enctype attribute.






                share|improve this answer























                • I do have an update parameter. See updated question
                  – Sven
                  Jan 9 '11 at 13:23






                • 1




                  You want ajax="false" if you want to have a synchronous request with a navigation. As to the update parameter, see my comment in one of your previous questions which you didn't respond to yet.
                  – BalusC
                  Jan 9 '11 at 13:39












                • Sry, just forgot about that -.-
                  – Sven
                  Jan 9 '11 at 13:56










                • As to the enctype="multipart/form-data" issue, for that you need to ensure that you've configured the PrimeFaces FileUploadFilter as per the instructions in their User Guide.
                  – BalusC
                  Jan 26 '11 at 19:42












                • @BalusC: Ah, and now I know where that enctype came from - the file upload turned out to be unnecessary, but the attribute stayed around to mess up things... Thanks!
                  – Michael Borgwardt
                  Jan 26 '11 at 21:11













                up vote
                51
                down vote



                accepted







                up vote
                51
                down vote



                accepted






                <p:commandButton> needs one of the following to work correctly:




                • the update attribute to list id's of components to re-render (for AJAX requests)

                • the attribute ajax="false" to make a normal, non-ajax submit.


                If you have neither, the button does per default an AJAX request with no UI feedback.



                Additionally, I've had problems with neither option working when the surrounding <h:form> had an enctype attribute.






                share|improve this answer














                <p:commandButton> needs one of the following to work correctly:




                • the update attribute to list id's of components to re-render (for AJAX requests)

                • the attribute ajax="false" to make a normal, non-ajax submit.


                If you have neither, the button does per default an AJAX request with no UI feedback.



                Additionally, I've had problems with neither option working when the surrounding <h:form> had an enctype attribute.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Jan 26 '11 at 15:52

























                answered Jan 9 '11 at 13:04









                Michael Borgwardt

                292k61423662




                292k61423662












                • I do have an update parameter. See updated question
                  – Sven
                  Jan 9 '11 at 13:23






                • 1




                  You want ajax="false" if you want to have a synchronous request with a navigation. As to the update parameter, see my comment in one of your previous questions which you didn't respond to yet.
                  – BalusC
                  Jan 9 '11 at 13:39












                • Sry, just forgot about that -.-
                  – Sven
                  Jan 9 '11 at 13:56










                • As to the enctype="multipart/form-data" issue, for that you need to ensure that you've configured the PrimeFaces FileUploadFilter as per the instructions in their User Guide.
                  – BalusC
                  Jan 26 '11 at 19:42












                • @BalusC: Ah, and now I know where that enctype came from - the file upload turned out to be unnecessary, but the attribute stayed around to mess up things... Thanks!
                  – Michael Borgwardt
                  Jan 26 '11 at 21:11


















                • I do have an update parameter. See updated question
                  – Sven
                  Jan 9 '11 at 13:23






                • 1




                  You want ajax="false" if you want to have a synchronous request with a navigation. As to the update parameter, see my comment in one of your previous questions which you didn't respond to yet.
                  – BalusC
                  Jan 9 '11 at 13:39












                • Sry, just forgot about that -.-
                  – Sven
                  Jan 9 '11 at 13:56










                • As to the enctype="multipart/form-data" issue, for that you need to ensure that you've configured the PrimeFaces FileUploadFilter as per the instructions in their User Guide.
                  – BalusC
                  Jan 26 '11 at 19:42












                • @BalusC: Ah, and now I know where that enctype came from - the file upload turned out to be unnecessary, but the attribute stayed around to mess up things... Thanks!
                  – Michael Borgwardt
                  Jan 26 '11 at 21:11
















                I do have an update parameter. See updated question
                – Sven
                Jan 9 '11 at 13:23




                I do have an update parameter. See updated question
                – Sven
                Jan 9 '11 at 13:23




                1




                1




                You want ajax="false" if you want to have a synchronous request with a navigation. As to the update parameter, see my comment in one of your previous questions which you didn't respond to yet.
                – BalusC
                Jan 9 '11 at 13:39






                You want ajax="false" if you want to have a synchronous request with a navigation. As to the update parameter, see my comment in one of your previous questions which you didn't respond to yet.
                – BalusC
                Jan 9 '11 at 13:39














                Sry, just forgot about that -.-
                – Sven
                Jan 9 '11 at 13:56




                Sry, just forgot about that -.-
                – Sven
                Jan 9 '11 at 13:56












                As to the enctype="multipart/form-data" issue, for that you need to ensure that you've configured the PrimeFaces FileUploadFilter as per the instructions in their User Guide.
                – BalusC
                Jan 26 '11 at 19:42






                As to the enctype="multipart/form-data" issue, for that you need to ensure that you've configured the PrimeFaces FileUploadFilter as per the instructions in their User Guide.
                – BalusC
                Jan 26 '11 at 19:42














                @BalusC: Ah, and now I know where that enctype came from - the file upload turned out to be unnecessary, but the attribute stayed around to mess up things... Thanks!
                – Michael Borgwardt
                Jan 26 '11 at 21:11




                @BalusC: Ah, and now I know where that enctype came from - the file upload turned out to be unnecessary, but the attribute stayed around to mess up things... Thanks!
                – Michael Borgwardt
                Jan 26 '11 at 21:11












                up vote
                31
                down vote













                I think what Cagatay ment was:



                Does not navigate the page:



                <p:commandButton action="home.xhtml" value="Go Home"/>


                Works (redirects the page):



                <p:commandButton action="home.xhtml?faces-redirect=true" value="Go Home"/>


                Works (redirects the page)



                <p:commandButton action="home?faces-redirect=true" value="Go Home"/>


                if .xhtml is your default postfix defined in web.xml:



                <context-param>
                <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
                <param-value>.xhtml</param-value>
                </context-param>


                More info can be found in the primefaces forum, for example in this discussion about navigation



                I hope that helped a bit...






                share|improve this answer





















                • Nice conclusion!
                  – Sven
                  May 5 '11 at 9:24















                up vote
                31
                down vote













                I think what Cagatay ment was:



                Does not navigate the page:



                <p:commandButton action="home.xhtml" value="Go Home"/>


                Works (redirects the page):



                <p:commandButton action="home.xhtml?faces-redirect=true" value="Go Home"/>


                Works (redirects the page)



                <p:commandButton action="home?faces-redirect=true" value="Go Home"/>


                if .xhtml is your default postfix defined in web.xml:



                <context-param>
                <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
                <param-value>.xhtml</param-value>
                </context-param>


                More info can be found in the primefaces forum, for example in this discussion about navigation



                I hope that helped a bit...






                share|improve this answer





















                • Nice conclusion!
                  – Sven
                  May 5 '11 at 9:24













                up vote
                31
                down vote










                up vote
                31
                down vote









                I think what Cagatay ment was:



                Does not navigate the page:



                <p:commandButton action="home.xhtml" value="Go Home"/>


                Works (redirects the page):



                <p:commandButton action="home.xhtml?faces-redirect=true" value="Go Home"/>


                Works (redirects the page)



                <p:commandButton action="home?faces-redirect=true" value="Go Home"/>


                if .xhtml is your default postfix defined in web.xml:



                <context-param>
                <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
                <param-value>.xhtml</param-value>
                </context-param>


                More info can be found in the primefaces forum, for example in this discussion about navigation



                I hope that helped a bit...






                share|improve this answer












                I think what Cagatay ment was:



                Does not navigate the page:



                <p:commandButton action="home.xhtml" value="Go Home"/>


                Works (redirects the page):



                <p:commandButton action="home.xhtml?faces-redirect=true" value="Go Home"/>


                Works (redirects the page)



                <p:commandButton action="home?faces-redirect=true" value="Go Home"/>


                if .xhtml is your default postfix defined in web.xml:



                <context-param>
                <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
                <param-value>.xhtml</param-value>
                </context-param>


                More info can be found in the primefaces forum, for example in this discussion about navigation



                I hope that helped a bit...







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered May 3 '11 at 10:11









                alfonx

                4,1973955




                4,1973955












                • Nice conclusion!
                  – Sven
                  May 5 '11 at 9:24


















                • Nice conclusion!
                  – Sven
                  May 5 '11 at 9:24
















                Nice conclusion!
                – Sven
                May 5 '11 at 9:24




                Nice conclusion!
                – Sven
                May 5 '11 at 9:24










                up vote
                8
                down vote













                You must use redirect if you are doing navigation and request is done with ajax.






                share|improve this answer

























                  up vote
                  8
                  down vote













                  You must use redirect if you are doing navigation and request is done with ajax.






                  share|improve this answer























                    up vote
                    8
                    down vote










                    up vote
                    8
                    down vote









                    You must use redirect if you are doing navigation and request is done with ajax.






                    share|improve this answer












                    You must use redirect if you are doing navigation and request is done with ajax.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Jan 9 '11 at 17:48









                    Cagatay Civici

                    5,86112034




                    5,86112034






















                        up vote
                        4
                        down vote













                        I am having a similar problem.



                        I am using primefaces and primefaces mobile and the navigation fails in Firefox when using
                        <p:commandButton> with ajax="false" and action="find.xhtml?faces-redirect=true".



                        The only way I could make it work also in Firefox was by using <h:commandButton>:



                        <h:commandButton value="#{msg.find}" process="find" 
                        action="find.xhtml?faces-redirect=true" />





                        share|improve this answer

























                          up vote
                          4
                          down vote













                          I am having a similar problem.



                          I am using primefaces and primefaces mobile and the navigation fails in Firefox when using
                          <p:commandButton> with ajax="false" and action="find.xhtml?faces-redirect=true".



                          The only way I could make it work also in Firefox was by using <h:commandButton>:



                          <h:commandButton value="#{msg.find}" process="find" 
                          action="find.xhtml?faces-redirect=true" />





                          share|improve this answer























                            up vote
                            4
                            down vote










                            up vote
                            4
                            down vote









                            I am having a similar problem.



                            I am using primefaces and primefaces mobile and the navigation fails in Firefox when using
                            <p:commandButton> with ajax="false" and action="find.xhtml?faces-redirect=true".



                            The only way I could make it work also in Firefox was by using <h:commandButton>:



                            <h:commandButton value="#{msg.find}" process="find" 
                            action="find.xhtml?faces-redirect=true" />





                            share|improve this answer












                            I am having a similar problem.



                            I am using primefaces and primefaces mobile and the navigation fails in Firefox when using
                            <p:commandButton> with ajax="false" and action="find.xhtml?faces-redirect=true".



                            The only way I could make it work also in Firefox was by using <h:commandButton>:



                            <h:commandButton value="#{msg.find}" process="find" 
                            action="find.xhtml?faces-redirect=true" />






                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Jul 5 '12 at 13:54









                            zzirna

                            5427




                            5427






















                                up vote
                                -1
                                down vote













                                none of the above solution worked for me.
                                You can still go for simple javascript



                                <p:commandButton onclick="window.location.href =home.xhtml"
                                style="height: 20px" type="button" title="title" icon="ui-icon-transferthick-e-w"/>





                                share|improve this answer

























                                  up vote
                                  -1
                                  down vote













                                  none of the above solution worked for me.
                                  You can still go for simple javascript



                                  <p:commandButton onclick="window.location.href =home.xhtml"
                                  style="height: 20px" type="button" title="title" icon="ui-icon-transferthick-e-w"/>





                                  share|improve this answer























                                    up vote
                                    -1
                                    down vote










                                    up vote
                                    -1
                                    down vote









                                    none of the above solution worked for me.
                                    You can still go for simple javascript



                                    <p:commandButton onclick="window.location.href =home.xhtml"
                                    style="height: 20px" type="button" title="title" icon="ui-icon-transferthick-e-w"/>





                                    share|improve this answer












                                    none of the above solution worked for me.
                                    You can still go for simple javascript



                                    <p:commandButton onclick="window.location.href =home.xhtml"
                                    style="height: 20px" type="button" title="title" icon="ui-icon-transferthick-e-w"/>






                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Apr 25 at 9:59









                                    Toumi

                                    8941415




                                    8941415






















                                        up vote
                                        -1
                                        down vote













                                        <h:commandButton 
                                        styleClass="btn btn-primary-active upgrade" data-dismiss="modal"
                                        value="Upgrade Account"
                                        action="profile.do?faces-redirect=true&amp;tab=plan"
                                        oncomplete="$('#freeGiftModal').hide();" process="@this" partialSubmit="true" immediate="true"/>


                                        I used the commandbutton to navigate to profile page, and its working fine for me.






                                        share|improve this answer





















                                        • Your answer isffectively not different from others and in a way it is worse. Besides it not beimg a p:commandButton, which with the right attributes 'just works' it containsttributes that are not valid for an h:commandButton, mor that one of the other answers
                                          – Kukeltje
                                          Nov 11 at 8:14















                                        up vote
                                        -1
                                        down vote













                                        <h:commandButton 
                                        styleClass="btn btn-primary-active upgrade" data-dismiss="modal"
                                        value="Upgrade Account"
                                        action="profile.do?faces-redirect=true&amp;tab=plan"
                                        oncomplete="$('#freeGiftModal').hide();" process="@this" partialSubmit="true" immediate="true"/>


                                        I used the commandbutton to navigate to profile page, and its working fine for me.






                                        share|improve this answer





















                                        • Your answer isffectively not different from others and in a way it is worse. Besides it not beimg a p:commandButton, which with the right attributes 'just works' it containsttributes that are not valid for an h:commandButton, mor that one of the other answers
                                          – Kukeltje
                                          Nov 11 at 8:14













                                        up vote
                                        -1
                                        down vote










                                        up vote
                                        -1
                                        down vote









                                        <h:commandButton 
                                        styleClass="btn btn-primary-active upgrade" data-dismiss="modal"
                                        value="Upgrade Account"
                                        action="profile.do?faces-redirect=true&amp;tab=plan"
                                        oncomplete="$('#freeGiftModal').hide();" process="@this" partialSubmit="true" immediate="true"/>


                                        I used the commandbutton to navigate to profile page, and its working fine for me.






                                        share|improve this answer












                                        <h:commandButton 
                                        styleClass="btn btn-primary-active upgrade" data-dismiss="modal"
                                        value="Upgrade Account"
                                        action="profile.do?faces-redirect=true&amp;tab=plan"
                                        oncomplete="$('#freeGiftModal').hide();" process="@this" partialSubmit="true" immediate="true"/>


                                        I used the commandbutton to navigate to profile page, and its working fine for me.







                                        share|improve this answer












                                        share|improve this answer



                                        share|improve this answer










                                        answered Nov 11 at 7:43









                                        shehraz490

                                        11




                                        11












                                        • Your answer isffectively not different from others and in a way it is worse. Besides it not beimg a p:commandButton, which with the right attributes 'just works' it containsttributes that are not valid for an h:commandButton, mor that one of the other answers
                                          – Kukeltje
                                          Nov 11 at 8:14


















                                        • Your answer isffectively not different from others and in a way it is worse. Besides it not beimg a p:commandButton, which with the right attributes 'just works' it containsttributes that are not valid for an h:commandButton, mor that one of the other answers
                                          – Kukeltje
                                          Nov 11 at 8:14
















                                        Your answer isffectively not different from others and in a way it is worse. Besides it not beimg a p:commandButton, which with the right attributes 'just works' it containsttributes that are not valid for an h:commandButton, mor that one of the other answers
                                        – Kukeltje
                                        Nov 11 at 8:14




                                        Your answer isffectively not different from others and in a way it is worse. Besides it not beimg a p:commandButton, which with the right attributes 'just works' it containsttributes that are not valid for an h:commandButton, mor that one of the other answers
                                        – Kukeltje
                                        Nov 11 at 8:14


















                                         

                                        draft saved


                                        draft discarded



















































                                         


                                        draft saved


                                        draft discarded














                                        StackExchange.ready(
                                        function () {
                                        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f4639205%2fprimefaces-commandbutton-doesnt-navigate-or-update%23new-answer', 'question_page');
                                        }
                                        );

                                        Post as a guest















                                        Required, but never shown





















































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown

































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown







                                        Popular posts from this blog

                                        Bressuire

                                        Vorschmack

                                        Quarantine