Jsf p内的按钮:contentFlow不工作
以下是我的代码:Jsf p内的按钮:contentFlow不工作,jsf,primefaces,contentflow,Jsf,Primefaces,Contentflow,以下是我的代码: <p:contentFlow value="#{fileOnDeskViewDlgBacking.filesContentFlowList}" var="row"> <p:panel styleClass="filePanel" > <p:outputLabel value="#{row.srNo}" /> <p:panelGrid styleClass="borderless" columns="2">
<p:contentFlow value="#{fileOnDeskViewDlgBacking.filesContentFlowList}" var="row">
<p:panel styleClass="filePanel" >
<p:outputLabel value="#{row.srNo}" />
<p:panelGrid styleClass="borderless" columns="2">
<p:graphicImage name="/dashboard/images/file_64px.png"/>
<p:panelGrid styleClass="borderless" columns="1">
<p:outputLabel value="(#{row.subject})" />
</p:panelGrid>
</p:panelGrid>
<p:outputLabel style="color:#3D83B5;" value="Files#{row.date}">
<f:convertDateTime pattern="dd/mm/yyy HH:mm" />
</p:outputLabel>
<h:panelGrid styleClass="borderless" columns="2">
<p:outputLabel value="FileId:" />
<p:outputLabel styleClass="wrapText" value="#{row.Id}" />
<p:outputLabel value="Description:" />
<p:outputLabel styleClass="wrapText" value="#{row.description}" />
<p:outputLabel value="Heading:" />
<p:outputLabel value="#{row.name}" />
<p:outputLabel value="Priority:" />
<p:outputLabel value="#{row.priorityName}" />
<p:outputLabel value="Type:" />
<p:outputLabel value="#{row.typeName}" />
<!-- <p:outputLabel value="Created By:" />
<p:outputLabel value="#{row.createdBy}" /> -->
</h:panelGrid>
<p:spacer height="5px" />
<p:separator />
<p:commandButton value="#{row.fileId}" action="#{fileOnDeskViewDlgBacking.fileNoting(row.fileId)}" />
</p:panel>
</p:contentFlow>
这里的问题是按钮上的方法没有传递fileId,它被解析为null,其中as{row.fileId}总是给出它的值
更多
它在p:dataTable中工作,我认为该组件存在任何问题。尝试用h:form标记包围您的代码,并将process=@这个添加到您的命令按钮中。它在h:form中,process=@这个没有任何问题