function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
JavierPJavierP 

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.

aballardaballard

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

JavierPJavierP

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.