Announcement Announcement Module
Collapse
No announcement yet.
Spring Bean instead of Managed Bean in icefaces Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • guillermodl
    started a topic Spring Bean instead of Managed Bean in icefaces

    Spring Bean instead of Managed Bean in icefaces

    Hi,
    I am using icefaces with spring 2.5 and I was using Spring Bean to replace Managed bean so I wouldn't have to define them, just using

    PHP Code:
    <context:component-scan base-package="org.theproject.web"/> 
    with annotations, and also to use aop and in the web tier. I try this with tomahawk and its work fine but now that Im trying to use asynchronous updates of icefaces, and its not working.
    So maybe this it's no possible, any ideas??

    I find this link posting something similar
    http://forum.springframework.org/sho...ght=icefacesHe

  • guillermodl
    replied
    Not sure but...

    If I define a Spring Bean for the class ExamBackBean

    PHP Code:
    <bean id="examBackBean" 
      
    class="org.app.smbean.ExamBackBean" 
      
    scope="prototype" /> 
    and then I define the managed bean for icefaces

    HTML Code:
    <managed-bean>
          <managed-bean-name> examMBean </managed-bean-name >
          <managed-bean-class>org.app.smbean.ExamBackBean</managed-bean-class>
          <managed-bean-scope >request</managed-bean-scope>
          <managed-property><property-name >examBBean</property-name>
             <value>#{examBackBean}</value >
          </managed-property>
    </managed-bean>
    in the page I shoud be able to access the spring bean as #{examMBean.examBBean.anyMethod}

    while the request is handled by icefaces

    Leave a comment:

Working...
X