I tryed to put my DataModel in PAGE scope as suggested n this thread using the 
following bean: 

  | @Stateful
  | @Scope(ScopeType.EVENT)
  | @Name("neLogic")
  | @Interceptors(SeamInterceptor.class)
  | 
  | public class NeLogicAction implements NeLogic, Serializable {
  | 
  | 
  |    private static Logger log =Logger.getLogger(NeLogicAction.class);
  | 
  |    @PersistenceContext(type= PersistenceContextType.EXTENDED)
  |     private EntityManager em;
  | 
  |     @DataModel(scope=ScopeType.PAGE)
  |     private List<BTS> btss;
  | 
  |     @DataModelSelectionIndex
  |     private int neIndex;
  | 
  |     private String searchString;
  | 
  |    public String findByName() {
  |         String searchPath  = new String();
  |         searchPath = (searchString == null) ? "%" : "%" + 
searchString.toLowerCase() + "%";
  |         log.info("finding ne  by name" + searchString);
  |         btss =em.createQuery(" from Ne n where lower(n.name) like :search")
  |                 .setParameter("search",searchPath)
  |                 .getResultList();
  |         searchString="";
  |         log.info("Bts found " + String.valueOf(btss.size()));
  |         return "nes";
  |     }
  | 
  |       public String getSearchString() {
  |         return searchString;
  |     }
  | 
  |     public void setSearchString(String searchString) {
  |         this.searchString = searchString;
  |     }
  | }
  | 

whithout success. btss is null in the render response phase.  

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3924133#3924133

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3924133


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to