Okay, I've seen the recent OWB (or CDI) topics, so I thought I might
introduce a separate thread based on my experience today.
Months ago, I migrated from JSF managed beans to CDI manageds (and migrated
from Glassfish to TomEE/OpenWebBeans), two birds with one stone. During
that migration, I
Howard,
When were you recommended to use @Typed?
@Typed (in that thread) was being used to *remove* objects from being
installed via CDI.
If you want to use @Typed you need to use it as @Typed(pf_
OrderCustomerPointOfContactController.class)
On Mon, May 20, 2013 at 9:08 AM, Howard W. Smith, Jr.
There was a separate thread in PrimeFaces forum, where I was suggested to
use @Typed instead of my user-defined @Descendant. :)
I will try @Typed as you recommended and report back, ASAP. Thanks.
On Mon, May 20, 2013 at 9:13 AM, John D. Ament john.d.am...@gmail.comwrote:
Howard,
When were
Care to link to it, so we all have a frame of reference? I don't
immediately see it on their forums.
On Mon, May 20, 2013 at 9:15 AM, Howard W. Smith, Jr.
smithh032...@gmail.com wrote:
There was a separate thread in PrimeFaces forum, where I was suggested to
use @Typed instead of my
Start here[1] and go to the next page.
[1] http://forum.primefaces.org/viewtopic.php?f=3t=30309#p97538
On Mon, May 20, 2013 at 9:17 AM, John D. Ament john.d.am...@gmail.comwrote:
Care to link to it, so we all have a frame of reference? I don't
immediately see it on their forums.
On Mon,
As you suggested, I just added/modified the code, so the code now is as
follows:
@Inject @Typed(pf_OrderCustomerPointOfContactController.class)
private pf_OrderCustomerPointOfContactController
orderCustomerPointOfContactController;
which still results in the following (which prevents OWB
Just because another developer tells you they don't know what your
qualifier means, doesn't mean they are right :-)
I would recommend that you switch off of @Typed, it's not what you're
looking for.
@Named should correctly identify your specific bean. As long as you are
never referencing the
@Typed isn't a qualifier. It goes on the class definition, not on the
injection point.
@Typed(pf_OrderCustomerPointOfContactController.class)
public class pf_OrderCustomerPointOfContactController extends
WhateverBaseClass {
..
}
On Mon, May 20, 2013 at 9:23 AM, Howard W. Smith, Jr.
Okay, that is what I was doing wrong. maybe, just before you clicked the
Send button and sent your last response (below), I thought about checking
the class definition. Here is the class definition below.
@Typed
@Named(pf_orderCustomerPointOfContactController)
@SessionScoped
public class
When you do this..
@Typed
@Named(pf_orderCustomerPointOfContactController)
@SessionScoped
public class pf_OrderCustomerPointOfContactController extends
pf_PointOfContactController {
The injection point should be
@Inject @Named(pf_orderCustomerPointOfContactController)
private Object obj;
The
responses inline, below...
On Mon, May 20, 2013 at 9:41 AM, John D. Ament john.d.am...@gmail.comwrote:
When you do this..
@Typed
@Named(pf_orderCustomerPointOfContactController)
@SessionScoped
public class pf_OrderCustomerPointOfContactController extends
pf_PointOfContactController {
You get these errors in NetBeans or in TomEE? Or both?
On Mon, May 20, 2013 at 10:06 AM, Howard W. Smith, Jr.
smithh032...@gmail.com wrote:
responses inline, below...
On Mon, May 20, 2013 at 9:41 AM, John D. Ament john.d.am...@gmail.com
wrote:
When you do this..
@Typed
NetBeans (compiler-related messages). With that said, I didn't even try to
compile and/or generate the WAR, because I'm sure NetBeans (v7.3) would not
have generated the WAR with those errors.
I think I know where you going with that though. I wonder if you about to
question NetBean's conformance
you can't rely on IDEs ATM, basically Idea has false warnings too, eclipse
is far to be perfect etc...
instead of relying on the IDE it is always better to know what we write ;)
*Romain Manni-Bucau*
*Twitter: @rmannibucau https://twitter.com/rmannibucau*
*Blog:
Agreed on all counts, but I am 'far' from being a user of the 'perfect'
eclipse. lol :)
I am learning what 'we' (tomee) writes by asking questions on the list or
listening to your/tomee responses. :)
I just had to write and entertain this topic, since I saw recent discussion
about using @Typed.
And thanks for that. It's useful and as important as providing tons of
lines of code.
JLouis
2013/5/20 Howard W. Smith, Jr. smithh032...@gmail.com
Agreed on all counts, but I am 'far' from being a user of the 'perfect'
eclipse. lol :)
I am learning what 'we' (tomee) writes by asking
Really, tons? Wow. Trust me, I have written tons of code too. :-)
Usually, tons of code to decipher through can be a bit intimidating when
trying to help others.
On May 20, 2013 2:38 PM, Jean-Louis MONTEIRO jeano...@gmail.com wrote:
And thanks for that. It's useful and as important as providing
17 matches
Mail list logo