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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:29:12+00:00 2026-05-23T22:29:12+00:00

Primefaces 2.2.1 Mojarra 2.1.2 I have a sophisticated method in my jsf bean :

  • 0

Primefaces 2.2.1

Mojarra 2.1.2

I have a sophisticated method in my jsf bean :

public void saySomething() {
   log.debug("SAY SOMETHING !");
}

And a simple button in the jsf :

<p:commandButton
   value="say something"
   process="@this" update="@none" action="#{timetableBean.saySomething}" />

Clicking on the button, results in my simple logging :

DEBUG PhaseTracker - BEFORE PHASE INVOKE_APPLICATION 5
DEBUG TimetableBean - SAY SOMETHING !
DEBUG PhaseTracker - AFTER PHASE INVOKE_APPLICATION 5

Let’s go to next simple case.
When placing that identical button inside a p:dataList like this :

<p:dataList id="groupUsers2" value="#{timetableBean.group.users}" var="user" itemType="circle" style="padding:0; margin: 0;">
   <p:commandButton
      value="#{user.data['selected'] ? 'V' : 'X'}"
      process="@this" update="@none" action="#{timetableBean.saySomething}" />
   <p:commandLink value="#{user.userId} - #{user.name}" process="@this" />
</p:dataList>

Clicking on the button, results in my simple logging :

DEBUG PhaseTracker - BEFORE PHASE INVOKE_APPLICATION 5
DEBUG PhaseTracker - AFTER PHASE INVOKE_APPLICATION 5

The method of saySomething() was not called !

What did i do wrong ?

  • 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-05-23T22:29:13+00:00Added an answer on May 23, 2026 at 10:29 pm

    Problem solved.

    Found the solution in here

    In order for listener to be invoked, the components inside the p:dataList should be encapsulated with p:column

    <p:dataList id="groupUsers2" value="#{timetableBean.group.users}" var="user" itemType="circle" style="padding:0; margin: 0;">
      <p:column>
       <p:commandButton
          value="#{user.data['selected'] ? 'V' : 'X'}"
          process="@this" update="@none" action="#{timetableBean.saySomething}" />
       <p:commandLink value="#{user.userId} - #{user.name}" process="@this" />
      </p:column>
    </p:dataList>
    

    Strange though, i didnt see this in the documentation, as it doesnt specify the p:column. Perhaps it’s in the errata for primefaces 2.2.1 doc ?

    Related problems here.

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

Sidebar

Related Questions

I have an jsf application (mojarra 2.1.8, primefaces 3.3) running on tomcat 6. While
I am writing a JSF 2.0 Mojarra application using Primefaces 3.3.1 on Tomcat 6.
I am working in primefaces 3.3 and jsf 2.0. I have problem in deleting
I use Primefaces 3.1, JSF 2.1.6 on Glassfish 3.1.1. I have loads of commandbuttons
I'm working on a JSF 2.0 project using Mojarra, PrimeFaces and Tomcat 6.x, but
I have a JSF / PrimeFaces 2.x UI with a check box (h:selectOneBooleanCheckbox) whose
I have a PrimeFaces checkbox on a JSF page that I'd like to check/uncheck
I am using JSF 2.0 and PrimeFaces 2.2.1. In my template.xhtml, I have a
I'm using JSF 2.0 and primefaces. I have one page with several inputs inside
I'm using Primefaces 3.3.1 and have question. I have p:commandButton inside p:column of p:dataTable.

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.