Visualforce Toolbar Rerender Firefox bug

时间:2012-10-04 18:29:21

标签: apex-code visualforce

我有一个Visualforce工具栏,当我仅在Firefox中重新渲染页面块时,整个栏会垂直扩展到一个大的工具栏块。

见下面的代码

<apex:toolbar id="theToolbar" style="background-color:#8d8d8d;background-image:none">
             <apex:toolbarGroup itemSeparator="line" location="left" id="toobarGroupForm">          
                  <apex:outputText style="color:#f8f8ff;font-weight:bold" value="Amount of Records"/>
                 <apex:selectList label="Record Amount" value="{!ShowAmountOfRecords}" size="1" required="false" >
                     <apex:actionSupport event="onchange" action="{!AmountOfRecordsAction}" reRender="innerblock" status="recordamountchange" />
                        <apex:outputPanel style="color:#f8f8ff;font-weight:bold">
                             <apex:actionStatus id="recordamountchange" startText="Showing more records..." stopText=""/>
                        </apex:outputPanel>
                     <apex:selectOptions value="{!AmountOfRecordsList}"/>
                  </apex:selectList>
                  <apex:outputText style="color:#f8f8ff;font-weight:bold" value="Filter By Document Type"/>
                  <apex:selectList label="Filter by Record Type" value="{!FilterByRecordType}" size="1" required="false" >
                     <apex:actionSupport event="onchange" action="{!FilterByRecordTypeAction}" reRender="innerblock" status="filterByRecordType" />
                         <apex:outputPanel style="color:#f8f8ff;font-weight:bold">
                             <apex:actionStatus id="filterByRecordType" startText="Filtering your records..." stopText=""/>
                        </apex:outputPanel>
                     <apex:selectOptions value="{!FilterByRecordTypeList}"/>
                  </apex:selectList>

              </apex:toolbarGroup>
            </apex:toolbar> 

这是Firefox中的已知错误吗?

1 个答案:

答案 0 :(得分:1)

问题是我有两个同一工具栏组的选项列表部分。确保将组件添加到不同的工具栏组。

<apex:toolbar id="theToolbar" style="background-color:#8d8d8d;background-image:none" rendered="true">
             <apex:outputText style="color:#f8f8ff;font-weight:bold" value="Amount of Records"/>
             <apex:toolbarGroup itemSeparator="line" location="left" id="toobarGroupForm" rendered="true">          
                 <apex:selectList label="Record Amount" value="{!ShowAmountOfRecords}" size="1" required="false" >
                     <apex:actionSupport event="onchange" action="{!AmountOfRecordsAction}" status="recordamountchange" reRender="innerblock" />
                        <apex:outputPanel style="color:#f8f8ff;font-weight:bold">
                             <apex:actionStatus id="recordamountchange" startText="Showing more records..." stopText=""/>
                        </apex:outputPanel>
                     <apex:selectOptions value="{!AmountOfRecordsList}"/>
                  </apex:selectList>
              </apex:toolbarGroup>
              <apex:outputText style="color:#f8f8ff;font-weight:bold" value="Filter By Document Type"/>
              <apex:toolbarGroup itemSeparator="line" location="left" id="toobarGroupForm2" rendered="true"> 
                  <apex:selectList label="Filter by Record Type" value="{!FilterByRecordType}" size="1" required="false"  >
                     <apex:actionSupport event="onchange" action="{!FilterByRecordTypeAction}" status="filterByRecordType" reRender="innerblock"/>
                         <apex:outputPanel style="color:#f8f8ff;font-weight:bold">
                             <apex:actionStatus id="filterByRecordType" startText="Filtering your records..." stopText=""/>
                        </apex:outputPanel>
                     <apex:selectOptions value="{!FilterByRecordTypeList}"/>
                  </apex:selectList>
              </apex:toolbarGroup>
            </apex:toolbar>