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 8244635
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T21:55:10+00:00 2026-06-07T21:55:10+00:00

I have strange problem with p:commandLink tag when i use it with the ui:repeat

  • 0

I have strange problem with p:commandLink tag when i use it with the ui:repeat tag !

commandLink doesn’t work at all .

this my xhtml code :

<h:form>
    <ui:repeat varStatus="miteraionno" value="#{bussinessOwnerViewerMB.bOwner.bOBranches}" var="branch" >

        <div class="details" >       

        <ul class="services">
            <li>
               <p:commandLink actionListener="#{bussinessOwnerViewerMB.testMethod}" styleClass="nav_services" oncomplete="">
                    <h:outputText value="#{branch.branchName}"/>
               </p:commandLink>
            </li>
        </ul>
        </div>
    </ui:repeat>

the ActionListener is just test method :

public void testMethod(){
    System.out.println("BussinessOwnerViewerMB.changeMapListener()");
}

i try c:foreach but it gives me the same result !

any help will be appreciated ..

  • 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-07T21:55:11+00:00Added an answer on June 7, 2026 at 9:55 pm

    Change method signature into

    public void testMethod(ActionEvent event){
        System.out.println("BussinessOwnerViewerMB.changeMapListener()");
    } 
    

    Or change actionListener=... into action="...

    also take a look at following answer by BalusC

    Differences between action and actionListener


    EDIT

    Change the scope of your bean into View Scope (cause now its Request Scope)

    And read bullet N#4 at the h:commandLink / h:commandButton is not being invoked by BalusC

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a strange problem. I do this query in a node.js server using
I have strange problem: when I use mu repository stub I get strange exception:
I have a strange problem when using Entity Framework code first. When I return
I have a strange problem, I'm using the code below to test for a
I have strange problem. When I use @return Model\Article in the model-loading method then
I have a strange problem regarding null pointer exception. I'm posting the problematic code
I have this strange problem on my web page where if you click below
I have strange problem with XUL layouts. My current code: <xul:vbox> <xul:hbox> .. some
i have strange problem doing reporting: i have numerous clients with different issued invoices.
I have strange problem with receiving data from socket. On client im using air

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.