Jsf 2 在p:dialog中查看支持bean中的流量
我有一个方法a(),它在单击按钮时执行。这是在backingBean(在服务器上)和View(客户端)上显示的,我显示了一个p:对话框。 方法A()包含一个for循环,那么在这个循环的每个循环中,我都知道这个循环的步骤是谁 BackingBean代码:Jsf 2 在p:dialog中查看支持bean中的流量,jsf-2,primefaces,Jsf 2,Primefaces,我有一个方法a(),它在单击按钮时执行。这是在backingBean(在服务器上)和View(客户端)上显示的,我显示了一个p:对话框。 方法A()包含一个for循环,那么在这个循环的每个循环中,我都知道这个循环的步骤是谁 BackingBean代码: @ManagedBean(name = "generationBean") @SessionScoped public class GenerationBean implements Serializable { @ManagedProper
@ManagedBean(name = "generationBean")
@SessionScoped
public class GenerationBean implements Serializable {
@ManagedProperty(value = "#{appBean}")
private AppBean applicationBean;
@ManagedProperty(value = "#{login}")
private Login loginB;
@EJB
private UserFacadeLocal userFacade;
@EJB
private GeneralSettingsFacadeLocal generalSettingFacade;
@EJB
private GenerationHistoryFacadeLocal generationHistoryFacade;
@EJB
private GenerationSiteFacadeLocal generationSiteFacade;
@EJB
private HistorySiteGenerationFacadeLocal historySiteGenerationFacade;
@PostConstruct
public void init() {
selectedRegion = "choix";
setLabelBoutonGen("Générer");
loadDirectoryRegion();
generatedSites = new ArrayList();
}
public void genererDPT() throws InterruptedException, FileNotFoundException {
generatedSites = new ArrayList();
String formatTime = "H_mm_ss";
for (Iterator it = sitesDest.iterator(); it.hasNext();) {
String obj = it.next().toString();
currentSite = obj;
if (selectedTypeOt.equals("OT IUB enchaîné (BBB+ATM+ATM RNC+ATM NodeB+DCN NodeB)")) {
currentStatus = jh.callExcelMacroOtEnchaine(newRecordingPath, csvPath.replace("/", "\\") + "\\", selectedRegion, file, equivalentOT, obj, isChechBoxGSMValue(), isChechBoxDCSValue(), isChechBoxU900Value(), isChechBoxUMTSValue(), userName + "." + userFirstName + "\\" + genFolder, selectedTechnology);
} else {
currentStatus = jh.callExcelMacro(newRecordingPath, csvPath.replace("/", "\\") + "\\", selectedRegion, file, equivalentOT, obj, isChechBoxGSMValue(), isChechBoxDCSValue(), isChechBoxU900Value(), isChechBoxUMTSValue(), userName + "." + userFirstName + "\\" + genFolder);
}
generatedSites.add(new GeneratedSiteStatus(currentSite, currentStatus));
context.update("genDialog");
RequestContext.getCurrentInstance().update(":blockA:initGenPan:sitesDataList");
}
}`
在此对话框中更改时,我希望显示生成的站点列表:
<p:dialog id="genDialog" header="Opération de génération" closable="false" modal="true" widgetVar="dlg1">
<h:form id="dialogForm">
<p:panel style="border-spacing: 0px;" >
<h:panelGrid columns="1">
<h:outputText value="le traitement de la génération est en cours..." />
<p:dataList id="sitesDataList" value="#{generationBean.generatedSites}" var="siteStatus" itemType="square" >
#{siteStatus.site} #{' '}------------- #{' '}#{siteStatus.status}
</p:dataList>
<!--<p:poll global="false" update="sitesDataList"/>-->
<p:commandButton value="Valider" actionListener="#{generationBean.updateGeneratedSites()}" style=" font: -moz-button; left: 90px; width: 90px;"/>
</h:panelGrid>
</p:panel>
</h:form>
</p:dialog>
#{siteStatus.site}{''}---------{'}}{siteStatus.status}
我在JSF2中使用primefaces 3.5,在glassfish3.0中运行
欢迎任何建议。显示backingbean代码以及xhtml。
不存在。你在说什么?SSCCE风格中的一些具体代码将有助于您真正理解您试图实现的目标,而不是如此糟糕的表述。@BalusC我为这个错误感到抱歉。我混淆了VBA上的对话框和p:素数面对话框。