Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7853315
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:38:49+00:00 2026-06-02T19:38:49+00:00

I have a ToolBar which contain a number of button. these button must be

  • 0

I have a ToolBar which contain a number of button. these button must be a link to other xhtml pages. But they don’t work. This is my code :

         <h:form>
            <p:toolbar>  
                <p:toolbarGroup align="left">  
                    <p:commandButton id="btn1" type="button" action="faces/Genseignant" value="Gestion Enseignants" icon="ui-icon-folder-open" />  

                    <p:commandButton id="btn2" type="button" action="Gclasse" value="Gestion Classes" icon="ui-icon-folder-open" />  

                    <p:commandButton id="btn3" type="button" action="Getudiant" value="Gestion Etudiants" icon="ui-icon-folder-open" />

                    <p:commandButton id="btn4" type="button" action="Gmatiere" value="Gestion Matières" icon="ui-icon-folder-open" />

                    <p:commandButton id="btn5" type="button" action="Gsalle" value="Gestion Salles" icon="ui-icon-folder-open" />

                    <p:commandButton id="btn6" type="button" value="Gestion Horaires" icon="ui-icon-folder-open" />

                    <p:separator />  

                </p:toolbarGroup>  

                <p:toolbarGroup align="right">  
                    <p:menuButton value="Options">  
                        <p:menuitem value="Acceuil" action="Genseignant"/>  
                        <p:menuitem value="Déconnectté(e)" />  
                    </p:menuButton>  
                </p:toolbarGroup>  

            </p:toolbar>
        </h:form>

When I try this with a MenuBar, It works properly.
Any suggetions please .

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T19:38:51+00:00Added an answer on June 2, 2026 at 7:38 pm

    Remove the type="button" attribute. Otherwise commandButtons cannot be used this way.

    The difference is evident from the browser source:

    This is the button with type="button":

    <button id="myform:btn1" type="button" role="button" aria-disabled="false">
    

    This is the button without type="button" which defaults to type="submit":

    <button id="myform:btn1"   
            onclick="PrimeFaces.ab({formId:'myform',source:'myform:btn1',
                                    process:'@all'}); return false;" 
            type="submit" role="button" 
            aria-disabled="false">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a hidden DIV which contains a toolbar-like menu. I have a number
I have a Toolbar whose ItemSource is a collection of toolbarItems which contain the
I have a screen with a button on a bottom toolbar which when the
I have a bottom toolbar button that contains a button which opens a UIWebView
I have a panel which consists of a toolbar and tabs. On each tab
I don't understand, I have a toolbar with buttons bind to custom commands. Also
I have an existing toolbar in my View... when I drag a Bar Button
I have a div which contains number of elements which user can drag and
I have a ToolBar WPF control which has a Stackpanel docked to right. I
I have a shell which looks like toolbar and defines my main region (a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.