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

  • Spring Bean instead of Managed Bean in icefaces

    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

  • #2
    Not sure but...

    If I define a Spring Bean for the class ExamBackBean

    PHP Code:
    <bean id="examBackBean" 
    scope="prototype" /> 
    and then I define the managed bean for icefaces

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

    while the request is handled by icefaces