放置会话属性'范围'与价值图[' flashScope' - >地图[' messagesMemento' - >地图[[空]]]]

时间:2014-05-22 12:13:39

标签: spring jsf java-ee spring-webflow

file:compte-flow.xml

<view-state id="annonceColocation" view="mesAnnonces.xhtml">
 <on-render>
 <evaluate expression="userService.listMesAnnonceColocation(annonce,  user.getEmail())" result="flowScope.annonce"/>
 </on-render>
</view-state>

file:MesAnnonces.xhtml

<p:column>
<f:facet name="header">Titre de mon annonce</f:facet>
<h:outputText value="#{item.titre}" />
</p:column>
<p:column style="width:35%">
<f:facet name="header">Type de logement</f:facet>
<h:outputText value="#{item.categorie}" />
</p:column>

文件:service.java

public List<Annonce> listMesAnnonceColocation( Annonce annonce, String email ) {
    UserEntity user = userDao.loadUserByEmail( email );
    return annonceDao.listeAnnonceColocation( user, "Colocation" );
}

我无法恢复数据,但是当我在数据库中添加数据时,会显示但是一旦会话关闭,数据就不会显示。有什么想法吗?

0 个答案:

没有答案