• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Rich:tree and managing expand/collapse from first load

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello everyone!

I'm working on project based upon Seam 2.1.1 / Richfaces / Hibernate

i have to show in a rich:tree some entity bean wrappen in some utility classes. that's the easy part.

Now, i save the last used bean in order to load up the page with that information already there.
i'd like to have the tree expanded to that position as soon as the pages loads the first time.

i'm using switchType CLIENT because i needed as few calls as possible in order not to mess with the page general flow, so i'd like to stick with that, if possible.

here's some code.




this is the method i use to create the backer Bean



and this is the method i use to fill the tree



RichTreeBean is the utility class that wraps the entity and shows to the user some data.

i've tried to use adviseNodeOpened and changeExpandListener as suggested in other threads, but without success (that's why i cleaned them up).

Thanks for any suggestion and sorry for my bad English

Enrico.
 
Enrico Drusiani
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i forgot to add i get an exception

 
reply
    Bookmark Topic Watch Topic
  • New Topic