I saw that being able to specify a transition effect (i.e. BlindDown, BlindUp) on an existing component was requested and gained some fans from the community.
I am currently using:
RichFaces 3.2.0.SR1
MyFaces 1.2.2
Tomahawk 1.1.6
Facelets 1.1.14
I have a PanelMenu built programmatically from a data structure in a database. It works great. However, I'd like to BlindDown/BlindUp the expand/collapse transitions when a Menu Group is clicked by the user. I have tried several combinations, including using a <rich:effect> tag as a child to both the menu (assigned to event 'ongroupexpand' or 'ongroupcollapse') and to the group (assigned to event 'onexpand' or 'oncollapse') and they did not result in the desired behavior.
I assumed that something like the following would work:
HtmlEffect effect = new HtmlEffect(); effect.setEvent("oncollapse"); effect.setType("BlindUp"); effect.setParams("duration:0.9"); effect.setParent(group);
group.setOncollapse("this.doCollapse() {transition: BlindUp {duration:0.9})}");