且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我如何在 xpages 中添加样式类到表单标签

更新时间:2023-10-02 15:25:58

您可以将以下内容添加到您的主题中以更改表单标签的类:

You can add the following to your theme to change the class of the form tag:

<control mode="override">
    <name>Form</name>
    <property>
        <name>styleClass</name>
        <value>newclass otherclass</value> 
    </property>
</control>

更新:使用以下内容仅在名为 index.xsp 的 XPage 上使用它:

Update: use the following to only use this on an XPage called index.xsp:

<control mode="override">
    <name>Form</name>
    <property>
        <name>styleClass</name>
        <value>#{javascript:(view.getPageName() == '/index.xsp')?'newClass otherClass':'xspForm'}</value>
    </property>
</control>