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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T07:34:33+00:00 2026-05-15T07:34:33+00:00

This is my Phase Listener public class AdminPhaseListener implements PhaseListener { private static final

  • 0

This is my Phase Listener

public class AdminPhaseListener implements PhaseListener {

private static final long serialVersionUID = -1161541721597667238L;

    public void afterPhase(PhaseEvent e) {
        System.out.println("after Phase " + e.getPhaseId());
    }

    public void beforePhase(PhaseEvent e) {
        System.out.println("before Phase " + e.getPhaseId());
        if(e.getPhaseId()== PhaseId.RESTORE_VIEW)
        {

        }

    }

    public PhaseId getPhaseId() {
        return PhaseId.ANY_PHASE;
    }
}

On click of a Command Button in my page, i call an action method and do some processing but the action method is not called at all, but in the server log , i could see the messages printed by my PhaseListener for all the Phases.

If my view was not changed, It would have stopped after the RESTORE_VIEW Phase right?

any thoughts?

Adding the code for How I display the Command Button :

<table width="100%">
    <h:column rendered="#{adminBean.displayResultsSize > 0}">

        <tr>
            <td colspan="14" height="5" nowrap="nowrap" class="WhiteRow"></td>
        </tr>
        <tr>
            <td colspan="14" height="1" nowrap="nowrap" align="center"
                bgcolor="#999999"></td>

        </tr>
        <h:inputHidden  id="removeUserId" value="#{adminBean.removeUserId}"/>
        <h:inputHidden  id="removeIBD" value="#{adminBean.removeIBD}"/>
        <h:inputHidden  id="removeAPA" value="#{adminBean.removeAPA}"/>
        <tr>
            <td colspan="14" height="30" nowrap="nowrap"
                class="FilterColumnGrayHeader" align="center">&nbsp;&nbsp;&nbsp;
            <input type="button" disabled="disabled" id="button_edit"
                value="Edit Details" class="disabledfield"
                onclick="populateEditRow();">
            </input> <h:commandButton type="submit" class="disabledfield" immediate="true"
                id="button_remove" value="Remove" onclick="populateRemoveRow();" action="#{adminBean.remove}">
            </h:commandButton> &#160;

            </td>
        </tr>
        <tr bgcolor="#000000">
            <td colspan="14" height="1" nowrap="nowrap" align="center"
                bgcolor="#999999"></td>
        </tr>
        <tr>
            <td height="10"></td>
        </tr>
    </h:column>
</table>
  • 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-15T07:34:34+00:00Added an answer on May 15, 2026 at 7:34 am

    I’m citing from this answer:

    Whenever an UICommand component fails to invoke the associated action, verify the following:

    1. UICommand components must be placed inside an UIForm component (e.g. h:form).
    2. You cannot nest multiple UIForm components in each other (watch out with include files!).
    3. No validation/conversion error should have been occurred (use h:messages to get them all).
    4. If UICommand components are placed inside an UIData component, ensure that exactly the same DataModel (the object behind the UIData‘s value attribute) is preserved.
    5. The rendered and disabled attributes of the component and all of the parent components should not evaluate to false during apply request values phase.
    6. Be sure that no PhaseListener or any EventListener in the request-response chain has changed the JSF lifecycle to skip the invoke action phase.
    7. Be sure that no Filter or Servlet in the same request-response chain has blocked the request fo the FacesServlet somehow.

    Another cause can be that you’re not running the code you think you’re running.

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

Sidebar

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.