[jboss-user] [JBoss Seam] - Newbie Get Question
nynymike
do-not-reply at jboss.com
Sun Aug 19 09:43:47 EDT 2007
I'm getting an error when I try to process my GET request:
Invalid expression: '#(accountDao.mailbox)'. Parsed Expression of unexpected type java.lang.String
at org.apache.myfaces.el.ELParserHelper.parseExpression(ELParserHelper.j
ava:84)
at org.apache.myfaces.el.ValueBindingImpl$2.newInstance(ValueBindingImpl
.java:82)
at org.apache.myfaces.shared_impl.util.BiLevelCacheMap.get(BiLevelCacheM
ap.java:123)
at org.apache.myfaces.el.ValueBindingImpl.(ValueBindingImpl.java:1
15)
at org.apache.myfaces.application.ApplicationImpl$1.newInstance(Applicat
ionImpl.java:64)
at org.apache.myfaces.shared_impl.util.BiLevelCacheMap.get(BiLevelCacheM
ap.java:123)
at org.apache.myfaces.application.ApplicationImpl.createValueBinding(App
licationImpl.java:617)
at org.jboss.seam.jsf.SeamApplication11.createValueBinding(SeamApplicati
on11.java:143)
at org.jboss.seam.core.Expressions$1.getFacesValueBinding(Expressions.ja
va:119)
The url is:
http://localhost:8080/voicemail/viewAccount.seam?mailbox=2125551212&cid=1
|
My pages.xml is as follows:
| <page view-id="/viewAccount.xhtml">
| <param name="mailbox" value="#(accountDao.mailbox)"/>
| </page>
|
In components.xml I have:
| <factory name="account"
| value="#{accountDao.instance}"/>
| <fwk:entity-home name="accountDao"
| entity-class="us.ziacom.vm.model.Account">
| </fwk:entity-home>
|
| <component name="exampleAccount"
| class="us.ziacom.vm.model.Account"/>
|
My entity bean defines "mailbox" as a String:
| private String mailbox;
|
I must be missing something here... what am I doing wrong? I've tried everything in the last three hours...
thanks in advance!
Mike
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4075536#4075536
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4075536
More information about the jboss-user
mailing list