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

  • Home
  • SEARCH
  • 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 6729555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:18:15+00:00 2026-05-26T10:18:15+00:00

I am passing an object from richface datatable like: <rich:column> <a4j:commandLink value=Transfer inside Group

  • 0

I am passing an object from richface datatable like:

<rich:column>
<a4j:commandLink
value="Transfer inside Group" 
actionListener="#{adminBean.init_machineTransferInsideGroup}"
reRender="transferInsideGroupMachinePanel"
oncomplete="#{rich:component('transferInsideGroupMachinePanel')}.show()">
    <f:setPropertyActionListener
            target="#{adminBean.machineToChange}"
        value="#{Machineassg3}" />
    </a4j:commandLink>
<rich:column>

What i am expecting from above code, when command link is clicked:

  1. assign object (Machineassg3) to bean’s variable (adminBean.machineToChange)
  2. then invoking actionlistener (init_machineTransferInsideGroup)
  3. after that richmodal panel

But steps that are happening is :

  1. Invoking actionlistener (init_machineTransferInsideGroup)
  2. assign object (Machineassg3) to bean’s variable (adminBean.machineToChange)
  3. after that richmodal panel

How to do expected steps (means assigning first and then invoking actionlistener)

  • 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-26T10:18:15+00:00Added an answer on May 26, 2026 at 10:18 am

    You could get the rows variable with a ValueExpression.

    Lets say you have in the dataTable declaration the attribute var="machine", then in the managed bean’s action method you could get like so

    FacesContext fCtx = FacesContext.getCurrentInstance();
    ELContext elCtx = fCtx.getELContext();
    ExpressionFactory ef = fCtx.getApplication().getExpressionFactory();
    ValueExpression ve = ef.createValueExpression(elCtx, "#{machine}", Machineassg3.class);
    machineassg3 = (Machineassg3)ve.getValue(elCtx);
    

    I don’t know the actual class of the machineassg3 variable and so I just had it like Machineassg3.

    I hope it helps.

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

Sidebar

Related Questions

I am passing an object from one asp.net page to another. I'm encoding the
I am passing one parameter/object to the function RefValTest(object oIn) by the value but
OK, I am passing a complex object from my .NET library to my Flex
I am passing an NSDictionary object from one view class to another as I
I'm passing this inside an each loop (DOM object) to another function but in
I am passing an object from the controller to the view. The object contains
Hi i'm passing a List object from my controller to Javascript where it is
I would like to access the session object without passing it to my static
I'm passing an object from activity to another. Then from that activity to another
I get an error passing back an object from function to calling function. What

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.