Hi !
I have a program which used to work with seam rc.
| @Stateful
| @Name("accesendroitsbean")
| @Scope(ScopeType.EVENT)
| public class AccesEndroitsBean implements AccesEndroitsLocal, Serializable {
|
| List<Endroit> endroits;
| Map<String,Endroit> endroitsMap;
|
| @PersistenceContext
| EntityManager em;
|
| @Create
| public void loadData() {
|
| System.out.println("=====loaddata d'accesendroitbean");
| endroits = em.createQuery("from Endroit c")
| .setHint("org.hibernate.cacheable", true)
| .getResultList();
|
| Map<String,Endroit> results = new TreeMap<String,Endroit>();
|
| for (Endroit tf: endroits) {
| results.put(tf.getDescription(),tf);
| }
| endroitsMap = results;
| }
|
| public Converter getConverter() {
| return new EndroitConverter(endroits);
| }
|
| public Map<String, Endroit> getEndroits() {
| return endroitsMap;
| }
|
| public Endroit getNullEndroit() {
| return new Endroit();
| }
|
| static public class EndroitConverter
| implements Converter,
| Serializable
| {
| List<Endroit> tfs;
|
| public EndroitConverter(List<Endroit> tf) {
| this.tfs = tf;
| }
|
| public String getAsString(FacesContext facesContext,
| UIComponent component,
| Object obj)
| {
| if (obj == null) return null;
|
| String val = String.valueOf(((Endroit)obj).getId());
| return val;
| }
|
| public Object getAsObject(FacesContext facesContext,
| UIComponent component,
| String str)
| throws ConverterException
| {
| if (str == null || str.length()==0) {
| return null;
| }
|
| //String id = str;
| for (Endroit tfe : tfs) {
| String id = String.valueOf(tfe.getId());
| if (id.equals(str)) {
| return tfe;
| }
| }
|
| return null;
| }
| }
|
| @Remove @Destroy
| public void destroy() { }
|
| }
|
Now, when calling this bean, I get this message although a @Destroy annotated
method exists
[org.jboss.seam.contexts.Contexts] could not find destroy method
Could someone possibly help me ?
Kind regards,
Gerd
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954027#3954027
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954027
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user