Having never used JSF, I'd put a matching } inside the string and see what happens.
On Sat, Mar 24, 2012 at 5:47 AM, Mark Derricutt <[email protected]> wrote: > 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? ) > > -- > You received this message because you are subscribed to the Google Groups > "The Java Posse" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/javaposse?hl=en. -- You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.
