4 Replies Latest reply on Aug 19, 2007 2:25 PM by matt.drees

    Newbie Get Question

    nynymike

      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