Often the most important part of the news is what they didn't tell.
Tim Holloway wrote:
There's absolutely no reason I can see why you should have this problem, but that's probably because of the things I'm not seeing.
Given your bean definitions and your faces-config snipper, a commandButton with an 'action="#{welcome.doSomething}"' should see the construction of a request-scope object of type Welcome and the firing of the action method.
The only flaw I can see is that you're using inheritance, and there are issues with inheriting annotations, but I don't think that applies in your case, since the annotation is on the inheriting object class.
Kavita Tipnis wrote:Might sound silly, but do you have an import for PostConstruct?
Kavita Tipnis wrote:Sorry, but happened to read that issue somewhere
here is something that might be helpful
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4187631#4187631
Kavita Tipnis wrote:Ok, it looks like this issue is still prevalent in JBoss, they have suggested an alternate import(org.jboss.seam.annotations.intercept.PostConstruct)
on the one of the issues, but not sure if it resolved the problem, and I don't see the point because you are not using seam anyways.
So you might be better off doing it the old way
Josh Peters wrote:My issue is solved! I had the JSR 250 api listed as a dependency in my Maven build, and I was distributing the JARs with the WAR project. Changing the scope of that dependency to provided solved my issue.
I've been chewing on that stupid issue for days!
Hope this helps someone else.
Attractive, successful people love this tiny ad:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
|