Hey,

back to this, if someone is interested, I found two options (as directed by 
Gavin)

1) using factory method for outjecting the selected entity, but since I already 
have too much factory methods I passed away
2) outjecting the selected object by handling the ID of the selected object as 
a parameter:

1) in the datatable list, add an '<f:param> tag, specifying the ID of the 
entity"
2) add under META-INF/pages.xml file the view-id of the page related for 
editing/handling the selected entity with an action on a bean to outject the 
selected entity by using '@RequestParameter("paramName')

The 'blog' sample works with an MVC style and makes a usage of pages.xml and 
parameters, so you can take a look at it.


Cheers.

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

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

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
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to