p:数据表对齐素面

时间:2013-09-02 02:37:26

标签: jsf jsf-2 primefaces

我有一个问题p:表格对齐下面是图片(图片一)当第一次加载这个p:table使用p:commandbutton如果我点击方案二选项卡然后单击返回方案一个选项卡我得到了右对齐表见图二。

图片一 enter image description here

图片二 enter image description here

这是我第一次点击时的按钮,表格加载

<p:commandButton id="isFinancialYearSubmitId" value="submit" update="panelGridId scenarioTabViewId:budgetAnalysisDataTableId scenarioTabViewId:selectColumnId scenarioTabViewId:isApprovedBooleanId_checkBox " action="#{budgetAnalysisAction.isFinancialYearOpened}" oncomplete="handleComplete(xhr, status, args); isFinancialYearOpenedOnComplete('analysisTheBudgetForm');"/>

这是表

<p:dataTable id="budgetAnalysisDataTableId"
rowIndexVar="index" editable="true"
resizableColumns="true"
value="#{budgetAnalysisAction.budgetScenarioHescoProposalBean.budgetScenarioHescoProposalListBean}"
var="budgetScenarioHescoProposalList"
scrollWidth="800" scrollHeight="250" scrollable="true"
>
<p:ajax event="rowEdit" process=":analysisTheBudgetForm:scenarioTabViewId:scenarioOneId_tab :analysisTheBudgetForm:scenarioTabViewId:isApprovedBooleanId_checkBox :analysisTheBudgetForm:scenarioTabViewId:budgetAnalysisDataTableId" listener="#{budgetAnalysisAction.analysisTheBudgetRowEditOnAjax}" />

<p:column headerText="Edit" width="20">
<p:rowEditor />
</p:column>

<p:column headerText="Sub Head Of Accounts" width="150">
<h:outputText value="#{index}" />
<h:outputText value="#{budgetScenarioHescoProposalList.budgetSubHeadOfAccountsBean.subHeadOfAccountNameBean}" />
</p:column>

<p:column width="60">
// 11 other columns with same width(width="60") but different data. 
</p:column>

这是图片的检查元素

enter image description here

这是图二的检查元素

enter image description here

0 个答案:

没有答案