[jboss-cvs] jboss-seam/doc/reference/en/modules ...
Peter Muir
peter at bleepbleep.org.uk
Fri Oct 19 08:37:56 EDT 2007
User: pmuir
Date: 07/10/19 08:37:56
Modified: doc/reference/en/modules controls.xml
Log:
Can't use injection here
Revision Changes Path
1.53 +2 -4 jboss-seam/doc/reference/en/modules/controls.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: controls.xml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/doc/reference/en/modules/controls.xml,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -b -r1.52 -r1.53
--- controls.xml 11 Oct 2007 22:28:18 -0000 1.52
+++ controls.xml 19 Oct 2007 12:37:56 -0000 1.53
@@ -1241,10 +1241,9 @@
@Converter
public class FooConverter implements Converter {
- @In EntityManager entityManager;
-
@Transactional
public Object getAsObject(FacesContext context, UIComponent cmp, String value) {
+ EntityManager entityManager = (EntityManager) Component.getInstance("entityManager");
entityManager.joinTransaction();
// Do the conversion
}
@@ -1273,10 +1272,9 @@
@Validator
public class BarValidator implements Validator {
- @In FooController fooController;
-
public void validate(FacesContext context, UIComponent cmp, Object value)
throws ValidatorException {
+ FooController fooController = (FooController) Component.getInstance("fooController");
return fooController.validate(value);
}
More information about the jboss-cvs-commits
mailing list