New Flex WebSite in Cairngorm Framework

Hello All,
I am a newbie to flex. Somehow i learnt flex technology, Cairngorm Framework and ActionSript 3.0. Now i am planning to start flex website.
My architecture,
FLEX[CairnGorm] --> .NET WEB-SERVICES --> MY-SQL 5.0
Now, i had the project set up. My only doubt is, what to use for the flex pages, Module or States or Componets ?????
I know the advantages and disadvantages of each.But i appreciate if any expert guides me ....
Also hwo to change the states of pages in Cairngorm framework..is this done in commad where we vhave the actual business process and get the results
from the web service ?
Please guide me...
Regards,
Ravie

WebOrb allows you to use AMF with .NET. You don't have to stick to web services / XML:
http://www.themidnightcoders.com/products/weborb-for-net/developer-den/technical-articles/ introduction-to-flex-and-net-integration.html
Concerning Modules, States and Components, you must be confused. They are not of the same nature.
- Modules are to break down an application into smaller chunks you can download as needed.
- Components are reusable (usually visual) classes that you can instantiate in MXML or ActionScript and that can themselves be written in MXML or ActionScript
- States represent the states of a given component
You can use all of these in a single project.
In addition, use the history manager and URL fragments for deep linking so users can bookmark you can link directly to a given section of your Flex website.
>>> Also, how do you change the state of pages with the Cairngorm framework ? Is it done in commands where we have the actual business process and get the results from the web service ?
You can use the presentation model pattern. The view state and view logic of each view are located in a corresponding presentation model. When a command calls a service and gets a result, it modifies the application model the presentation model binds to, thereby triggering a change of state in the UI trough data binding.
The view binds to the PM. The PM binds to the application object model. The command updates the latter. Via data binding, both the PM and the view are updated. For example, the view state that is maintained in a PM can correspond to an actual state in the view defined in the <mx:states> tag:
http://blogs.adobe.com/tomsugden/parsley/

Similar Messages

  • How to achieve modularize in flex using cairngorm framework?

    Hi,
    I have seen many articles on flex and cairngorm but haven't found enough information on how to achieve modularization in flex using cairngorm framework.
    Please let me know any information regarding this.
    Thanks in advance.
    Vishnu

    Hi Sumit,
    I am also working similar kind of requirement. In my case I tried to add new tab subtab using personalization , how ever the add new item button is not enable.
    So I created new stacklayout and tried to add this to new tab in the existing subtablayout by using co process form request code:
    public void processRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
    super.processRequest(oapagecontext, oawebbean);
    OracleCallableStatement oraclecallablestatement = null;
    OracleConnection oracleconnection = (OracleConnection)oapagecontext.getApplicationModule(oawebbean).getOADBTransaction().getJdbcConnection();
    try{
    oracleconnection.setAutoCommit(true);
    oraclecallablestatement = (OracleCallableStatement)oracleconnection.prepareCall("begin GLO_TMPVIJ_PRCV(:1); end;");
    oraclecallablestatement.setString(1,"In the custom co process request");
    oraclecallablestatement.execute();
    }catch(SQLException sqlexception)
    throw OAException.wrapperException(sqlexception);
    OASubTabLayoutBean subTabLayout =
    (OASubTabLayoutBean)oawebbean.findChildRecursive("ApplicationDetsTabLayout");
    OASubTabBarBean subtabbar = (OASubTabBarBean)oawebbean.findIndexedChildRecursive("subTabBar");
    OALinkBean link = (OALinkBean)oapagecontext.getWebBeanFactory().createWebBean(oapagecontext,
    OAWebBeanConstants.LINK_BEAN, null,
    "link");
    OAStackLayoutBean commentsRN =
    (OAStackLayoutBean)oapagecontext.getWebBeanFactory().createWebBean(oapagecontext,
    "/xxhr/oracle/apps/irc/candidateManagement/webui/CommentsRn",
    "CommentsRn", // always specify name
    true); // region created in Oracle9i JDeveloper OA Extension
    subTabLayout.addIndexedChild(commentsRN);
    subTabLayout.addIndexedChild(link);
    in this I am not ale to add the new tab.
    Regards,
    Vijay Reddy.

  • Cairngorm Framework Examples

    Iam new to Cairngorm Framework and we need to use this design pattern in our project.
    In our project Flex is calling webservice using action script and processing the result returned from webservice call.
    Can anybody advise me how i can start using  Cairngorm Framework in my project.
    Any sample code , links to websites and suggestions would be a great help.
    Thank You.

    Here is the list of some links:
    http://www.cairngormdocs.org/exampleApps/CairngormDiagram/index.html
    http://cairngormdocs.org/blog/?cat=6
    http://labs.adobe.com/wiki/index.php/Cairngorm#What_is_Cairngorm.3F
    http://cairngormdocs.org/blog/?p=13
    http://www.cairngormdocs.org/tools/CairngormDiagramExplorer.swf
    http://www.mail-archive.com/[email protected]/msg80957.html//www.mail-archive.com/[email protected]/msg80957.html
    http://labs.adobe.com/wiki/index.php/Cairngorm:Cairngorm2.2.1:Release_Notes
    http://labs.adobe.com/wiki/index.php/Cairngorm:Cairngorm2.2:Release_Notes
    http://translate.google.com/translate?hl=en&sl=de&u=http://www.flexforum.de/showthread.php %3Ft%3D188&sa=X&oi=translate&
    resnum=1&ct=result&prev=/search%3Fq%3Dcairngorm%2B%252B%2Blogging%2B%252B%2Berrors%26start %3D30%26hl%3Den%26sa%3DN
    Thanks.

  • VO in Cairngorm framework?

    Hi,
    Do you think if I can use object object in Flex to take place
    VO in cairngorm application? and I can use struct in cfc as input
    argument type.
    I try to use VO but I am not lucky to make it work with cfc.
    Thanks
    Mark

    WebOrb allows you to use AMF with .NET. You don't have to stick to web services / XML:
    http://www.themidnightcoders.com/products/weborb-for-net/developer-den/technical-articles/ introduction-to-flex-and-net-integration.html
    Concerning Modules, States and Components, you must be confused. They are not of the same nature.
    - Modules are to break down an application into smaller chunks you can download as needed.
    - Components are reusable (usually visual) classes that you can instantiate in MXML or ActionScript and that can themselves be written in MXML or ActionScript
    - States represent the states of a given component
    You can use all of these in a single project.
    In addition, use the history manager and URL fragments for deep linking so users can bookmark you can link directly to a given section of your Flex website.
    >>> Also, how do you change the state of pages with the Cairngorm framework ? Is it done in commands where we have the actual business process and get the results from the web service ?
    You can use the presentation model pattern. The view state and view logic of each view are located in a corresponding presentation model. When a command calls a service and gets a result, it modifies the application model the presentation model binds to, thereby triggering a change of state in the UI trough data binding.
    The view binds to the PM. The PM binds to the application object model. The command updates the latter. Via data binding, both the PM and the view are updated. For example, the view state that is maintained in a PM can correspond to an actual state in the view defined in the <mx:states> tag:
    http://blogs.adobe.com/tomsugden/parsley/

  • CairnGorm Framework

    Hi I am new to flex.
    Please explain me the flow of cairngorm framework. how we can
    use with java back end.
    I am very much interested to know the cairngorm Frame work.
    Thanks in adv.

    http://www.adobe.com/devnet/flex/articles/introducing_cairngorm.html

  • How to use generated code from "Import Web Services" with Cairngorm Framework

    I recently downloaded Flex Builder 3 beta 2 and tried out the
    wizard that lets you import web services. The code that is
    auto-generated makes if fairly straight forward to consume web
    services using the object types defined in the WSDL. No longer does
    the developer need to decode the XML payload! The only problem I am
    having is how does you integrate the auto- generated code with the
    Cairngorm framework? This seems like a huge question for anyone who
    might want to leverage Cairngorm and the auto-generated proxy code
    in the same project (like me).
    Here are the problems that I see so far.
    1) How do you configure the generated service class to work
    with the Cairngorm service locator? The service constructor only
    accepts a “LCDS destination string” which implies that
    you must use Lifecycle data services. Unfortunately, the project I
    am trying to retrofit currently uses a WebService and does not use
    data services. All I really need to do is change the endpoint URL
    (ie from local to a development server). This issue is noted in the
    bug https://bugs.adobe.com/jira/browse/FB-8456. What I think is
    needed is a way to set the endpointURI in the Services.mxml file.
    2) Even if I come up with a hack around #1, I do not receive
    a callback to my IResponder even though I register it immediately
    after the method call. I can register and listener function within
    my business delegate and receive the callback, but my Command
    object, which implements IResponder, does not receive the call back
    even though it is registered. From what I read in the ASDocs it
    should but it doesn’t for me!
    These are the issues I have observed in 3 hours of messing
    with this. I hope this makes sense. I would love to integrate
    auto-generated web service proxies into Cairngorm but I don’t
    see a straight forward way without re-architecting Cairngorm. Has
    any one else run across this issue? If so, do you have any insights
    on how to proceed? Any help is appreciated.

    Since I posted this question, I have abandoned the notion of
    auto-generated web services and embraced the good old FDS concept
    where the RemoteObject meta-tag does all the conversion work for
    me. We are now using the Granite DS package and it is working well
    for us. I would love to consume web services, but it just isn't
    worth the hassle when all you have to do with Granite (and FDS) is
    cast your return objects to the proper object type.
    BTW, since this posting, I have investigated competing Flex
    app frameworks. After my research, I checked out the PureMVC
    framework. Wow!! Cairngorm always left me with an uneasy feeling
    and I guess I am not alone. Apparently, Cliff Hall felt the same
    way. That is why he started the project. I like his approach alot
    more than Cairngorm especially since it includes notifications
    which allow me to broadcast my own app level events independent
    from the AS Event framework. Check out PureMVC. For what it is
    worth, it has my humble endorsement. Cliff was even gracious enough
    to acknowledge the other Adobe Consulting guys for their work. Good
    for you Cliff, I respect that. Check out a better way at
    http://www.puremvc.org/

  • How can I replace the Portal with completely new Flash website?

    Can I replace the Portal with completely new Flash website? My customer do not want the JSP UI. Instead, he wants a completely new designed Flash site. Is it possible to do it? How can I deploy a new portal to cover the current one?

    If you have a look at some of the code examples which do the equivalent of site maps, you could in theory replace the whole portal desktop with some sort of Flash framework which reads the user's role structure at run time.
    I think it is useful to remember that the SAP portal is primarily a business application launchpad. It does that very well. Trying to make it into a Flash launchpad will be challenging.

  • Incompatible signature after creating a new Flex mobile project in Flashbuilder 4.6

    When I create a new flex mobile project and try to build it right away it gives me this error
    1144: Interface method initialize in namespace mx.core:IUIComponent is implemented with an incompatible signature in class utest.
    I have tried reinstalling Flash Builder and even upgraded from 4.5 to 4.6 to try and resolve this problem.
    I have also tried using different versions of the Adobe Air sdk (I'm currently using Air 3.4).
    Here is the projects mxml file, if that helps although it doesnt have anything but the generated code.
    utest.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:ViewNavigatorApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                                xmlns:s="library://ns.adobe.com/flex/spark"
                                firstView="views.utestHomeView" applicationDPI="160">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
    </s:ViewNavigatorApplication>
    views.utestHomeView.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
    </s:View>
    Also I am running Flash Builder 4.6 on Windows 7 32-bit
    Thanks in advance for the help
    Edit:
    I have now tried the flash builder 4.7 trial and even 4.6 on a different machine, both were clean installs, and I have found that when i create a new project it does compile
    until I get an error, and this can be any error, then after I fix that error it gives me the same error as before
    1144: Interface method initialize in namespace mx.core:IUIComponent is implemented with an incompatible signature in class utest.

    Hi Gsaison,
    Do you have any progress on these issues? Im working on the same solution right now (SWV + GoogleMaps JS v3 ) I've got some weird issue when i try to spawn a StageWebView inside a View on IOS, it appears inside a scroller and is not open for finger interaction anymore. I use the eskimo framework, but then again, nothing fancy going on there for the rest. I've tried all of the the stage.stageScaleMode options but non of them work. Got any help?
    Kind regards,
    Roy

  • Help with project/folder setup for new flex project??

    Hello all,
      I need help deciding how to set up my projects for a new flex application we're developing.
    We have an in-house custom java/jsp "framework". This framework has JSP pages for administering applications that are built using this framework. One part of the framework generates all java base and model objects from our database tables to be used in the new application.
    The new application will have a back-office part (Adobe AIR) and a web facing part (Adobe Flex).  Both the AIR and Flex parts of the application need to access the java model objects via AS3 classes (I believe I'll do this using remoteobject).
    My questions are as follows:
    After I create the base and model AS3 classes that remoteobject with the java classes can I put these in a common library project so both my AIR and Flex app can access common AS3 code.  I feel I should do this to keep from duplicating code by copying the AS3 classes in both my AIR and Flex projects.  Can you give my any examples or links to information on how to do this??
    I plan to also create a common java project for all base and model objects generated from my db tables so that the common library project with AS3 classes could remoteobject interface with the java classes in the java project. I would like to keep all of my business logic in the java model classes.  Does this seem appropriate for the projects/setup listed above?
    Here are the projects I think I need in Flex Builder.
    FlexWebApp
    AIRBackOfficeApp
    JavaApp - Common
    AS3FlexLibraryApp - Common
    The FlexWebApp and AIRBackOfficeApp will reference the AS3FlexLibraryApp and the AS3FlexLibraryApp will remoteobject to the java classes in JavaApp.
    Any help or direction with this is greatly appreciated.
    Thanks,
    Whitney

    Hi,
    Please post only once (do not post same thread across multiple forums).
    help with Financials setup from very basics...
    Re: help with Financials setup from very basics...
    Regards,
    Hussein

  • Not able to run a program to extract news from news channel websites.

    Let me start with stating the fact that I am a super greenhorn, so please be ultra elaborate with the answers .
    This is my code, I copied it from Mr. Alvin Alexander (http://alvinalexander.com/java/edu/pj/pj010011?). I am trying to use it to extract news from news channel websites.
    I used the following URLs:
    1.http://in.reuters.com/
    2.http://timesofindia.indiatimes.com/
    3.http://www.hindustantimes.com/
    // JavaGetUrl.java: //
    // A Java program that demonstrates a procedure that can be //
    // used to download the contents of a specified URL. //
    // Code created by Developer's Daily //
    //  http://www.DevDaily.com  //
    import java.io.*;
    import java.net.*;
    public class JavaGetUrl {
      public static void main (String[] args) {
      // Step 1: Start creating a few objects we'll need.
      URL u;
      InputStream is = null;
      DataInputStream dis;
      String s;
      try {
      // Step 2: Create the URL. //
      // Note: Put your real URL here, or better yet, read it as a //
      // command-line arg, or read it from a file. //
      u = new URL("http://200.210.220.1:8080/index.html");
      // Step 3: Open an input stream from the url. //
      is = u.openStream(); // throws an IOException
      // Step 4: //
      // Convert the InputStream to a buffered DataInputStream. //
      // Buffering the stream makes the reading faster; the //
      // readLine() method of the DataInputStream makes the reading //
      // easier. //
      dis = new DataInputStream(new BufferedInputStream(is));
      // Step 5: //
      // Now just read each record of the input stream, and print //
      // it out. Note that it's assumed that this problem is run //
      // from a command-line, not from an application or applet. //
      while ((s = dis.readLine()) != null) {
      System.out.println(s);
      } catch (MalformedURLException mue) {
      System.out.println("Ouch - a MalformedURLException happened.");
      mue.printStackTrace();
      System.exit(1);
      } catch (IOException ioe) {
      System.out.println("Oops- an IOException happened.");
      ioe.printStackTrace();
      System.exit(1);
      } finally {
      // Step 6: Close the InputStream //
      try {
      is.close();
      } catch (IOException ioe) {
      // just going to ignore this one
      } // end of 'finally' clause
      } // end of main
    } // end of class definition
    This is the error i am getting, every time I run it on Eclipse:
    Oops- an IOException happened.
    java.net.ConnectException: Connection refused: connect
    at java.net.DualStackPlainSocketImpl.connect0(Native Method)
      at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
      at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
      at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
      at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
      at java.net.PlainSocketImpl.connect(Unknown Source)
      at java.net.SocksSocketImpl.connect(Unknown Source)
      at java.net.Socket.connect(Unknown Source)
      at java.net.Socket.connect(Unknown Source)
      at sun.net.NetworkClient.doConnect(Unknown Source)
      at sun.net.www.http.HttpClient.openServer(Unknown Source)
      at sun.net.www.http.HttpClient.openServer(Unknown Source)
      at sun.net.www.http.HttpClient.<init>(Unknown Source)
      at sun.net.www.http.HttpClient.New(Unknown Source)
      at sun.net.www.http.HttpClient.New(Unknown Source)
      at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
      at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
      at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
      at java.net.URL.openStream(Unknown Source)
      at JavaGetUrl.main(JavaGetUrl.java:33)
    Also, when I try a local server URL, the output screen goes blank, which I guess is due to lack of Text on the local URL. So, the little research that I did, made me believe that the code not running on external server was due to firewall on the server side. Please help me run it. Also : I work on a proxy network.( if that has something to do with this).
    P.S : Advanced gratitude for any assistance.

    any decently secured server would reject such a blatant attempt to steal its content.

  • Not able to create a new Flex project in Eclipse

    I am trying to use Flex Builder 3 eclipse plug-in for
    development. But while creating a new Flex project in eclipse, I'm
    getting the following error:
    Template template.jst.web has not bee defined.
    I am using Eclipse 3.3, and have installed the latest WTP
    updates. Can someone point out what I'm missing here?
    Thanks!

    Hi clsung,
    Do you get this error on every Flex Project you are trying to
    create or just on Java/J2EE projects? Flex Builder beta doesn't
    support WTP 2.0 but this shouldn't affect the other kind of
    projects.
    -Gelu

  • New flex field in "Gender and Marital Status"

    Hi Experts,
    Please Let me Know whether we would be able to add New Flex Field in "Gender and Marital Status" in Manage Person Page,.
    Thanks&Regards
    Prasanna Kesavan

    It sounds like you are trying to add a new value of "Significant Other" to the Marital Status drop down.  If that is what you are trying to do, the list is controlled through the MAR_STATUS lookup.  That Lookup is extensible so you can add new values if you like.
    To update the Lookup, navigate to Setup and Maintenance and query the Manage Common Lookups task.
    Then query the Lookup Type = MAR_STATUS
    From there you will be able to see all of the values available for different countries.
    If the options are greyed out, then you will not be able to alter them because they are delivered with the product.
    However, you have the option to add new values of your own here.
    If you only want to see the value for particular countries, you can add a value in the "Tag" column with the Country Code where the value should be visible (i.e. if the code is only applicable in the US then you would add "+US" in the tags, if the code is applicable everywhere except the US then you could add the tag "-US").
    Hope that is helpful,
    Karla

  • FLEX Builder Pro 3 New Flex Project cannot configure J2EE

    I have FLEX Builder Pro 3 installed on a Windows XP machine.  LiveCycle Data Services is installed (with Tomcat) on a Linux RHEL 5 machine.  When trying to create a new FLEX project and configuring a J2EE server am very confused on what to put in Root Folder and Root URL.  I have tried various paths on the Root Folder (with a drive mapped through windows and also with just using the servername) and keep getting the error message:
    Invalid root. The WEB-INF/flex folder must contain either flex-config.xml or services-config.xml.
    I've located the flex-confing file in the tomcat5\webapps\ROOT\WEB-INF directory, but still get the error.
    Please any help would be greatly appreciated.

    Are your new classes referenced from the old code? Mxmlc employs a questionable form of "as-needed" linking, so classes that are not referenced from the main application are not even compiled. This referencing requirement is recursive; that is, any classes that are to be included have to be referenced from the main application, or from classes referenced by the main application, or from classes referenced by classes referenced by the main application, and so on. But if your new classes are not referenced at all from the old code, they will be ignored.

  • Help Configuring PHP Server with new Flex project.

    Hi,
    I'm curious if someone can help me with a frustrating problem.
    While creating a new flex project, I can't seem to validate the configuration of the php server. I keep getting the message: "Cannot access the web server. The server may not be running, or the web root folder or root URL may be invalid."
    I'm running MySQL, PHP and Apache 2.2. These program have worked indepentally without flex, so I know the program isn't with the install of the stack.
    For my web root I entered: "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs" the location where I installed Apache
    And for root url I'm using "http://localhost"
    The other wierd part of this is that even though Flex would not validate this connection, I went ahead and started the project anyway and made a succesful connection to mysql, obviously though when I tried to launch the project it couldn't connect to the server.
    Any suggestions would be much appreciated because flex is pretty much useless to me unless I can figure out how to connect with php and mysql.
    Steve

    hey ya
    you were responding to like a real old post
    what exactly is your problem perhaps i can help

  • New Flex Data Services Project

    Hi all,
    When creating new Flex Data Services Project i found this
    error
    "Unexpected attribute 'url' found in 'endpoint' from file:
    services-config.xml."
    and i don't know what it means.

    Hi Nj,
    Thanks for you reply, I did point root folder to WEB-INF
    folder(which contains flex folder). My WEB-INF folder is in the
    weblogics "c://bea/userprojects/applications/appname/"
    this the value in the root folder field "
    C:\bea81SP5\user_projects\applications\dcgsaApplication\dcgsAdaptersWeb\WEB-INF\flex"
    Let me know if am doing anything wrong.
    thank you
    sun

Maybe you are looking for

  • Bars or Stripes in gradient

    My slides use a subtle gradient on the background. I noticed, however, in Keynote 6.1 all my gradients are no longer smooth with gradual transitions. Instead, I see bars, as illustrated by the attached example. The bars exist in horizontal, vertical,

  • Error while connecting to DB Schema from WebLogic

    1.     I have installed DB 11.2.0.1, run RCU utility to create the schema, IDP_OIF, and Weblogic 10.3.3 on windows 2008 64bit version. Then i installed OIM 11.1.1.2 and then applied the patch 11.1.1.3. Post that, i configured Weblogic and created a n

  • Importing from AECS5 to AECS4: Color issues:

    Hello, I have a logo created in vector graphics in AICS5. The RGB value of the blue I am using in AI is 0079c1. However, when I import the .AI file into AECS4, the blue turns into 095AA5. I tried to adjust the color management in AE but no luck. What

  • Uninstalling programs (again)

    So I dragged aim to the trash... that's seriously it??? It didn't even say anything... it was just like deleting any other file... and it didn't remove any of the other aim folders on my computer- are you sure this is correct?

  • Notification to the employee responsible upon assignment in account

    Hi, We would like to notify the employee responsible by means of an alert or e-mail, when ever he is assigned as the employee resposible to an account. Do we have a standard mechanism to acheive this? Can we use the rule modeller or any workflow to a