Adobe Dreamweaver Forums



Last 10 THreads :         RoboHelp 7 Skins (Last Post : HelpDev - Replies : 7 - Views : 35 )           »          Code that can effect two movie clips (Last Post : Alessandroy - Replies : 0 - Views : 1 )           »          Clock .getUTC not working (Last Post : kglad - Replies : 3 - Views : 4 )           »          problems linking PDFs (Last Post : Alan - Replies : 1 - Views : 2 )           »          Changing RadioButton Label (Last Post : justintoflex - Replies : 2 - Views : 5 )           »          Table Borders MIssing in JavaHelp (Last Post : soxmann - Replies : 3 - Views : 8 )           »          cfimage error (Last Post : masoud_amen - Replies : 2 - Views : 3 )           »          Dragging components (Last Post : hsfrey - Replies : 2 - Views : 5 )           »          Is file too large? (Last Post : tweaked_eye - Replies : 0 - Views : 1 )           »          Could not find the included template (Last Post : azuro28 - Replies : 2 - Views : 3 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flex
 
Tags:



Reply
  #1 (permalink)  
Old 11-20-2008, 10:45 PM
dcflex
 
Posts: n/a
Diggs:
Default Do you use Java Faces with Flex?

I'm having problem getting the FacesContext because the faces serlvet does not process the mesages passed from Flex component.


Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-21-2008, 10:03 AM
SujitG
 
Posts: n/a
Diggs:
Default Re: Do you use Java Faces with Flex?

Hi,

How is the flow working? How are you invoking your JSF pages from Flex? are you using HTTPService component to send the request?
Reply With Quote
  #3 (permalink)  
Old 11-21-2008, 03:13 PM
dcflex
 
Posts: n/a
Diggs:
Default Re: Do you use Java Faces with Flex?

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.


Reply With Quote


Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 11:58 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Cheap Car Insurance - Compare Motor Insurance
Endsleigh Car Insurance Natwest Car Insurance
More Than Car Insurance Norwich Union Car Insurance
Prudential Car Insurance Zurich Car Insurance
Inactive Reminders By Mished.co.uk