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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T20:30:04+00:00 2026-05-17T20:30:04+00:00

Hi I am trying to implement drop feature of a4j with JSF Datatable. I

  • 0

Hi I am trying to implement drop feature of a4j with JSF Datatable. I have a datatable and I want to drop components into that data table. How do i do it.

The code for dropping it in a tree works fine:

Here’s is the code of dropping it to the tree, but when i try to drop the same into a data table it doesn’t work.

                        <rich:treeNodesAdaptor id="packageNodeAdaptor" nodes="#{target.packages}" var="package">

                            <rich:treeNode id="package" icon="/img/icons/Package_icon.png"
                                iconLeaf="/img/icons/Package_empty_icon.png" ajaxSingle="false"
                                acceptedTypes="dbObject">

                                <rich:dndParam name="label" value="Add to #{package.name}" />
                                <a4j:support event="ondrop"
                                    action="doAddDBObjectToPackage"
                                    reRender="targetsMaster,sourcesDetailPanel" status="waitStatus" >
                                    <f:setPropertyActionListener value="#{package}"
                                        target="#{workspace.selectedPackage}" />
                                </a4j:support><a4j:commandLink
                                    value="#{package.name}" id="commandLink#{package.name}" reRender="targetsDetailPanel">
                                    <f:setPropertyActionListener value="#{package}"
                                        target="#{workspace.selection}" />
                                </a4j:commandLink>

                            </rich:treeNode>
</rich:treeNodesAdaptor>

When I try to put the code in h:dataTable it doesnt work.

Here is the datatable part of it:

<rich:dndParam name="label" value="Add to #{package.name}" />

                            <a4j:support event="ondrop"
                                action="doAddDBObjectToPackage"
                                reRender="componentDetailInfoTab,sourcesDetailPanel" status="waitStatus" >
                                <f:setPropertyActionListener value="#{package}"
                                    target="#{workspace.selectedPackage}" />
                            </a4j:support>
                    </rich:dataTable>

Can you guide me how to resolve it.

Thanks,
Abdul

  • 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-17T20:30:04+00:00Added an answer on May 17, 2026 at 8:30 pm

    Placing the dropSupport code inside <rich:dataTable tag doesn’t work. Placing the code just outside the <rich:dataTable tag, and under the same form works perfectly fine.
    The dropSupport code for the tree in my post, works well when placed inside a form where the datatable is defined.

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

Sidebar

Related Questions

I'm trying to implement drag and drop capability into a custom data grid control.
I'm trying to implement drag/drop in my TreeView and have it all working except
I'm trying to implement drag and drop functionality in a Surface Application that is
I'm trying to implement a data compression idea I've had, and since I'm imagining
I have been trying to implement Win32's MessageBox using GTK. The app uses SDL/OpenGL,
I'm trying to implement something like this: <div> <table> <thead> <tr> <td>Port name</td> <td>Current
We are trying to implement a REST API for an application we have now.
I'm trying to implement a drop-in location manager subclass to allow me to pass
I'm trying to implement drag/drop/sort between 2 list elements: <ul id=first> <li>item 1</li> <li>item
I'm trying to implement drag and drop behaviour between a bunch of ListViews. I've

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.