Menu

Dots in the bean id

Users
2006-01-02
2013-04-08
  • Thomas Werthmüller

    Hi

    We migrating an application from struts to jsf. At the moment, we use dots in the bean id's (every module has a prefix):

    <bean id="usermanager.userSignUp"
          class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
          ...
    </bean>

    It there a way to use this id's instead of an id without dots? Is this possible in a the JSF Expression Language?

    <managed-bean>
        ....
        <managed-property>
            <property-name>manager</property-name>
            <value>#{usermanager.userSignUp}</value>
        </managed-property>
    </managed-bean>

    Thanks
    Thomas

     
    • Thomas Jachmann

      Thomas Jachmann - 2006-01-02

      Haven't tried this, but it shouldn't work, since the expression #{usermanager.userSignUp} is interpreted as "the property userSignUp of a bean with the id/name usermanager".

      This is not an issue with jsf-spring, though, but purely jsf related.

      HTH,
      Thomas

       
    • Thomas Werthmüller

      It is interpreted as a property... thats the problem. I hoped there is a easy way to handle this, like #{'usermanager.userSignUp'}... :-)

      It seems that we have to change every bean id name.

       
      • Mike Kienenberger

        You could write and plug in your own EL parser, but it seems like it'd be a lot easier to just change your bean names.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.