![]() |
![]() |
||||||
|
|||||||
| Tags: |
![]() |
|
|||
|
I created jsp pages and enbeded Flex application within these pages. I do use
HTTPService to pass the data between the Flex components and the back bean. I ran into two major problems though. I couldn't get FacesContext consistantly meaning that I got null when the servlet tries to call FacesContext.getCurrentInstance() or FacesContextFactory contextFactory = (FacesContextFactory) FactoryFinder.getFactory(FactoryFinder.FACES_CONTE XT_FACTORY); LifecycleFactory lifecycleFactory = (LifecycleFactory) FactoryFinder.getFactory(FactoryFinder.LIFECYCLE_F ACTORY); Lifecycle lifecycle = lifecycleFactory.getLifecycle(LifecycleFactory.DEF AULT_LIFECYCLE); facesContext = contextFactory.getFacesContext( this.getServletContext(), request, response, lifecycle); I may have solved this problem by getting the bean directly from the HttpServletRequest. But if the back bean tries to use other faces context such as ExternalContext, then it gets null. The second problem I ran into is that I can seem to create two instances of the same Flex application. I try to use SWFObject to create two instances of the same Flex application. The HTTPService is not called for the second page. It appears that the application re-uses the same data for the second page. I asked this question in this Forum before but I didn't get any answer. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
- Contact Us
-|-
Adobe Dreamweaver Forums -|-
Archive -|-
Top -|-Rules/Disclaimer-|-Help/Support-|-Advertise