Trying JSF 2.0

125 views
Skip to first unread message

Mark Derricutt

unread,
Mar 24, 2012, 4:47:43 AM3/24/12
to java...@googlegroups.com
Hey all,

I thought I'd give JSF 2.0 a try and see what all the fuss, or hate is over, and I'm wondering what setup I should actually try to give it a valid try. So far I have a maven project based on one of the MyFaces archetypes and running under Jetty ( I suspect this may be where my current issue lies ) and simple things seem to work fine, except...

In one ManagedBean I have:

    @ManagedProperty("#{userProfile")
    public UserProfileBean userProfile;

along with a setter, but for some reason when running it seems to try and inject a String into the field, rather than the UserProfileBean I have elsewhere:

  java.lang.IllegalArgumentException: Cannot convert #{userProfile of type class java.lang.String to class com.talios.UserProfileBean

On startup I see:

[INFO] Starting scanner at interval of 5 seconds.
Mar 24, 2012 9:29:20 PM org.apache.myfaces.util.ExternalSpecifications isUnifiedELAvailable
INFO: MyFaces Unified EL support disabled

Looks like I might be hitting https://issues.apache.org/jira/browse/MYFACES-3464 but I'm not even sure if I should ask on a JSF list, a Jetty list, a MyFaces list, so you guys get my questions ;-)

Should I just give up using Jetty and use Glassfish or JBoss or something?  ( is there anything I can easilly fire up from maven? )

Ricky Clarkson

unread,
Mar 24, 2012, 12:38:39 PM3/24/12
to java...@googlegroups.com
Having never used JSF, I'd put a matching } inside the string and see
what happens.

> --
> You received this message because you are subscribed to the Google Groups
> "The Java Posse" group.
> To post to this group, send email to java...@googlegroups.com.
> To unsubscribe from this group, send email to
> javaposse+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/javaposse?hl=en.

Mark Derricutt

unread,
Mar 24, 2012, 4:02:14 PM3/24/12
to java...@googlegroups.com
Oh for $(#*&(#*&$)#Q(*'s sake ;-) Never code when tired. I sooo did
not spot that last night:( Now I feel like a newb to everyone :P

What didn't help was trying out both JSF2.0 -ant- Jetbrains Kotlin at
the same time, I started getting some cryptic compiler error so
converted the simple class back to Java, and totally overlooked that
missing }.

Gah. :)

Ed G

unread,
Mar 25, 2012, 10:52:28 AM3/25/12
to java...@googlegroups.com
Thanks for the LOL this morning. Although I like to bang out code late at nite, when I do make errors they get dumber and dumber the further it is after Midnite. 

-ed

Mark Derricutt

unread,
Mar 25, 2012, 3:37:00 PM3/25/12
to java...@googlegroups.com
I gladly fall on my sword to provide you endless LOLs at no charge :)

Vince O'Sullivan

unread,
Mar 26, 2012, 11:04:40 AM3/26/12
to java...@googlegroups.com
On Saturday, 24 March 2012 08:47:43 UTC, Mark Derricutt wrote:
Hey all,

I thought I'd give JSF 2.0 a try and see what all the fuss, or hate is over....

People mostly complained about xml hell that was JSF 1.n.  JSF 2.0 is a much leaner beast that barely uses any xml.

Mark Derricutt

unread,
Mar 26, 2012, 8:26:40 PM3/26/12
to java...@googlegroups.com
That seems to be the general feel I'm getting just reading thru stuff
and tinkering at the moment. So far I'm liking what I'm playing with,
but I've yet to actually write any form of 'app' yet - weekend project
number 34321231 coming up!
Reply all
Reply to author
Forward
0 new messages