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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:34:55+00:00 2026-06-13T03:34:55+00:00

i have a dataTble cotaining object of type Action , the user can choose

  • 0

i have a dataTble cotaining object of type Action , the user can choose ana action to modify it so i want to retrieve the old action before modifying it so i tried the onStart attribute to do it but i get this error:

oct. 15, 2012 11:42:12 AM 
 com.sun.faces.context.PartialViewContextImpl$PhaseAwareVisitCallback visit 
 Grave: javax.el.PropertyNotFoundException: /manageProjectTestsPage.xhtml @342,417       
 onstart="#{projectTestManagementMB.initOldAction}": Property 'initOldAction' not found 
 on type tn.talan.testFramework.managedBean.ProjectTestManagementMB

here’s the code :

    public String initOldAction(){
     String index=(String)    

     FacesContext.getCurrentInstance().getExternalContext().
     getRequestParameterMap().get("index");
 System.out.println("index "+index);

  oldSelectedAction =testActionList.get(Integer.parseInt(index));
  return null;

}

xhtml:

 <p:column headerText="Options">  

     <p:commandLink id="modifyManualActionBtn" style="margin-right:5px"     onstart="# 
     {projectTestManagementMB.initOldAction}"  actionListener="#
      {projectTestManagementMB.verifyTestDisponibilityActionModifying}"  
      title="modify" update=":form:growl :form:testTabView:confirmModifyActionDialog 
      :form:testTabView:addModifyActionDlg" disabled="#
       {projectTestManagementMB.modifyBtnFlag}">
       <h:graphicImage value="../images/cssImg/modify_icon.png" heigth="13"width="17"/>
       <f:param name="index" value="#{rowIndex}" />
      </p:commandLink>
  ....

So how to use the onstart attribute to retrieve the old action value before executing the actionListener actionListener="#
{projectTestManagementMB.verifyTestDisponibilityActionModifying}"

And if i can not use it ,Is there another solution ?

  • 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-13T03:34:56+00:00Added an answer on June 13, 2026 at 3:34 am

    You are retrieving this error because the onstart attribute is a value attribute that should be set to a Javascript expression to execute before the ajax request begins. You can use an EL expression here, however it is not like actionListener which expects a method expression.

    By not having the parenthesis in the EL expression for onstart, JSF assumes this a call to a Managed Property rather than a method. Try this instead:

    onstart="#{projectTestManagementMB.initOldAction()}"
    

    This isn’t your actual problem however as your method initOldAction() doesn’t return a String containing a Javascript expression. I don’t think this attribute does what you think it does, it is just a client side callback.

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

Sidebar

Related Questions

I have a datatable where I want to change the color of a cell
I have a datatable with user information and a column called 'Bits'. There is
This is tricky to explain. We have a DataTable that contains a user configurable
I have an asp.net page which needs to return an object with a one-to-many
I have a datatable containing 10 columns. I want to select only two columns
So I have a dataGridView and a textbox on a form. I want to
I have DataTable with two columns Author and Bookname . I want to check
I have a DataGrid with a DataGridComboBoxColumn and I want to bind it to
I have a problem retrieving items from a fairly large list. I can quickly
I have 3 sets of tabular data I want to display with a JavaScript

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.