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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T22:15:46+00:00 2026-06-03T22:15:46+00:00

I have a RPC-generated list of widgets with headers and bodies. I would like

  • 0

I have a RPC-generated list of widgets with headers and bodies. I would like to display them vertically, with only the headers showing. When the user clicks a header, the corresponding body slides down into view, and any other open bodies slide out of view.

The accordion effect can be achieved with a StackPanel. However, I also want the ease of paging and accessing remote data afforded by CellList and AsyncDataProvider. It looks like the two will be available together in GWT 2.5, which unfortunately is not out yet.

Another idea I had was to just use a CellList, and use relative positioning on each cell to get the accordion effect. The logic is simple enough to implement, but grabbing the cells from the cell list and messing with their style attribute seems like a dirty hack.

Is there a better way to do this?

Followup: (I’m not sure if this should be a separate question.) The CellList’s structure looks something like this:

<div __gwtcellbasedwidgetimpldispatchingfocus="true" __gwtcellbasedwidgetimpldispatchingblur="true" class="GJOQRHCBPB GJOQRHCBMK">  

<div onclick="" __idx="0" class="GJOQRHCBLB" style="outline:none;" tabindex="0">
  <!-- my cell html -->
</div>
<div onclick="" __idx="1" class="GJOQRHCBLB" style="outline:none;" tabindex="1"> <!-- ... -->
<div onclick="" __idx="2" class="GJOQRHCBLB" style="outline:none;" tabindex="2"> <!-- ... -->
<!-- ... -->
</div></div>

Styling my cell is easy enough, and it displays correctly on the page. However, my styling of the cell doesn’t influence the parent divs (with __idx), and they still stretch out the entire original length. This means that if you click beneath where the cell list “should be”, selection events will be fired. This could be fixed if I could just access and style the __idx divs directly, but I’m afraid that’s a horribly dirty hack. Is there a better way to do this?

  • 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-03T22:15:48+00:00Added an answer on June 3, 2026 at 10:15 pm

    What GWT 2.5 will add is a way to build several rows for a single item in a CellTable (or DataGrid); it won’t change anything for CellLists. Also, you’ll still be in charge of handling the events to expand/collapse the rows, possibly animating them, and at most one expanded row won’t come for free either.

    All in all, it won’t change anything for your use-case.

    You need to bake this expand/collapse behavior in your cell’s rendering/event handling. As for collapsing other rows, you’ll have to process the DOM starting from the list level (i.e. find all collapsible elements and make sure they’re collapsed, then expand the row that needs it).
    Alternatively, you could use, say, a NoSelectionModel or SingleSelectionModel and simply render the selected/last-selected item as expanded, and others collapsed (triggering redraw from the SelectionHandler if needed). You’d probably lose animations though.

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

Sidebar

Related Questions

I have a MIDL generated C++ RPC interface from a client that defines two
I have used RPC for years but am now in a situation where we
I have a RPC encoded PHP webservice that returns a simple soap envelope with
I have a jax-rpc web service. When i try to pass xml to the
We have HTTP webservices that are RPC. They return XML representing the object the
I have an application that uses RPC for interprocess communications. Turns out that synchronous
I have a GWT app that makes an RPC call to a server to
I have a secured (https) XML-RPC server written in python, and I have tested
I have developed middleware that provides RPC functionality to multiple client applications on multiple
I have web application Project having RPC call. one RPC async is working fine.

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.