Portlet Factory, Version 6.1.2


 

About setting the selected tab

The Tab builder adds a method to your model to make it easier for you to set the selected tab. The name of the method is tabNameSetSelectedTab. If your tab builder call is named myTabs, the method name will be myTabsSetSelectedTab. The method takes one argument: the value to set. The method sets the input value into the variable that you specified as the Selected Tab variable input. You can also set this variable directly from your Java code as an alternative to using the method.The Tab builder creates tabNameSetSelectedTab method for you, but does not call the method. The method sets the variable that you identify in the Selected Tab variable input, but you have to arrange for the method to be called. In the Action input of the Tab builder, you specify a method that is to be called when the user clicks a tab. You have the following choices:

  • Call the tabNameSetSelectedTab method and pass it the ID. This choice does not invoke a page. Do the following:

    • In the Advanced input section, set the Rendering Mode input to Render outermost page after running action.

    • In the Evaluate Argument input, set As page is rendered.

    If you add an Inserted Page builder to get the page name from the xxxSelectedTab variable, the Tab builder behaves like the Page Tabs builder.

  • Write your own method or action list that takes a string argument, does some work, and eventually calls the tabNameSetSelectedTab method.

Parent topic: How the Tab builder works


Library | Support |