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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:27:24+00:00 2026-05-25T11:27:24+00:00

once again the combination of PrimeFaces and GAE drives me crazy. Inside a p:dataTable

  • 0

once again the combination of PrimeFaces and GAE drives me crazy. Inside a p:dataTable I want to click a image, call a bean method and set a parameter. The method is called, but the parameter does not work. Here is a simplified example (without the table):

<h:form id="f1">
  <h:outputText id="text" value="#{testBean.index}"/>
  <h:graphicImage url="/images/cut.png">
    <p:ajax event="click" process="@this" update="text"
            actionListener="#{testBean.test}" >
      <f:setPropertyActionListener target="#{testBean.index}" value="5" />
    </p:ajax>
  </h:graphicImage>
</h:form>

My TestBean looks like this:

@javax.faces.bean.ManagedBean @ViewScoped
public class TestBean implements Serializable{
  private int index; // getter/setter

  @PostConstruct public void init() {
    index = 0;log.log(Level.WARNING, "@PostConstruct");}

  public void test(ActionEvent ae){
    log.log(Level.WARNING, "Index: "+index);}
}

In the Logs I see one @PostConstruct and after clicking the image always Index: 0

Update The value update problem may be discussed here JSF GAE: Value Update Problem in managed bean method

  • 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-25T11:27:24+00:00Added an answer on May 25, 2026 at 11:27 am

    I don’t know much about GAE, so I can’t assume that it isn’t somehow interfering with your code. I don’t necessarily think that the <f:setPropertyActionListener> is the appropriate tag to use for a <p:ajax> tag however. I don’t believe it accepts that.

    Here is an example of how I implemented an ajax call to a viewscoped bean property using <p:commandLink> and an HTML <span> tag.

    <p:commandLink actionListener="#{listUsers.toModify}" oncomplete="userEditDlg.show()"
        update="addEditForm:editGrid addEditGrid:passwordChange addEditGrid:passwordGrid">
        <f:param name="userId" value="#{user.userId}" />
        <span class="ui-icon icoCogEdit" style="padding-right: 1.5em;" />
    </p:commandLink>
    <p:commandLink actionListener="#{listUsers.toDelete}" oncomplete="userDelDlg.show()"
        update="listUsersForm:dialogText">
        <f:param name="userId" value="#{user.userId}"/>
        <span class="ui-icon icoDelete" />
    </p:commandLink>
    

    I just set a CSS class to be a static image icon of my choosing, and then clicking on it would invoke a dialog.

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

Sidebar

Related Questions

Once again, I'm at a loss with IE7 on this one. I'm making a
Once again I'm receiving structs via UDP from a C++ programm, Now I ported
Once again, lists are boggling my mind. <div id=headbottom> <ul id=headnavbutton> <li id=button1 class=headnavbutton></li>
Once again my silliness has struck. I would like to thank everyone who helped
Once again a question about the garbage collector in actionscript-3: If I have a
Once again I'm doing Java graphics (Graphics2D) but I noticed there is no Polygon.Double
Once again I find myself failing at some really simple task in C++. Sometimes
Once again I was in a design review, and encountered the claim that the
Once again I need your Help, am thanking you as every time you helped
once again, IE is proving to be the biggest pain in the world, on

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.