+ Start a Discussion

Using url parameter to set landing tab on tabPanel

Hi, I'm trying to get a tabpanel whose default landing tab can be set using url parameters, but setting selectedTab to {!$Currentpage.parameters.tab} is not working, I know it could be done using the value attribute and a controller, but I'm trying to avoid having a custom controller if it's at all possible.

Is there any other way to achieve this?


Thanks in advance.


Can't you use the value attribute with the expression {!$Currentpage.parameters.tab}  ???


Hi aballard, thanks for replying, I tried to use it with the value attribute and it works initially but it breaks when the user clicks on another tab, I suppose because it's looking for a setter on the property.