That looks good, thanks!

On 5/17/06, Benj Fayle <[EMAIL PROTECTED]> wrote:
I used something like the code shown below. If you changed the
setRowfocus method to use a regular expression you may get the effect
you want.

/**
 * @author bfayle
 *
 */
public class ExplorerTabPanelBean {
        private List treeModelData;
        private TabMenuModel menuModel;

        public TabMenuModel getMenuModel() {
                return menuModel;
        }

        public void setMenuModel(TabMenuModel menuModel) {
                this.menuModel = menuModel;
        }

        public void setTreeModelData(List treeModelData) throws
IntrospectionException {
                this.treeModelData = treeModelData;
            menuModel = new TabMenuModel(treeModelData);
        }

        public class TabMenuModel extends BaseMenuModel {
                Object focusRowKey;
                public TabMenuModel(Object arg0) {
                        super(arg0);
                }

                public void setRowFocus(TabNodeImpl currentTab) {
                        int index = treeModelData.indexOf(currentTab);
                        setRowIndex(index);
                        focusRowKey = getRowKey();
                }

                @Override
                public Object getFocusRowKey() {
                        return focusRowKey;
                }

        }

}

-----Original Message-----
From: Thomas Spiegl [mailto:[EMAIL PROTECTED]
Sent: Friday, May 12, 2006 2:30 AM
To: [email protected]
Subject: menuTabs and MenuModel

I'm using the menuTabs component and I want to set the focus path for
the MenuModel by using a regular expression. Is there a way to achieve
this?

Thomas



--
http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Reply via email to