1

如果有一个 visualforce 元素,那么我们根据 redered 属性设置可见性。=但我必须根据html元素的数据设置visualforce的可见性

    <p style="display:{! IF(userSettings == null && $Profile.Name !='System Administrator','visible','hidden')}">Click on the authorize to authorize your self to Google GLASS Account &nbsp;<apex:commandButton value="Authorize" action="{! authorizeApp}"  />

我想设置可见性,但它在每种情况下都向我显示 p 元素。请指导如何做到这一点?

4

1 回答 1

3

Wrap the html with outputpanel and use rendered attribute to conditionally display or hide

于 2013-09-23T05:07:59.677 回答