thank you for your replies,guys,i'll try that
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4125973#4125973
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4125973
___
when i create a object using id whick is already in database when i press
the create button i check if it exists,but i got my message age,why
| try {
|
| Kokyaku k = (Kokyaku)
getEntityManager().createQuery(
|
what shows me in pages is
anonymous wrote : kokyaku 11already exist kokyaku 11already exist
and i retrieve my message like this
| h:messages globalOnly=true styleClass=message
id=globalMessages
| showDetail=true layout=table /
|
also in console
In order not to use auto search,i make some change to the resultList,in my
action i print the resultList info,there are datas,but when it comes to the
page,the list becomes empty,why?
list
|package org.domain.demo.session;
|
| import org.domain.demo.entity.*;
| import
also navigation file
| page xmlns=http://jboss.com/products/seam/pages;
| xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
| xsi:schemaLocation=http://jboss.com/products/seam/pages
http://jboss.com/products/seam/pages-2.0.xsd;
|
|
i change a little about my getList()
| public List getList() {
| if(list != null)
| System.out.println(list.size() + ***);
| else
| System.out.println(sss);
| return
i find the reason.
| rule if-outcome=success
| redirect view-id=/KokyakuList.xhtml /
| /rule
|
because of redirect just like a new request,different instance.
View the original post :
hi,eveyone.
i got 3 pages.list,edit and confirm.In the list page there are some search
conditions,i generate my project using seam-gen and i find the search are all
passed using page paramters.And i also try to put the list into
conversation,but it seems to be not the best way to