Question abourt Cairngorm framework?

Hi
I do not understand why we put the following line in main
page.
<control:myController id="controller" />
<business:Services id="services" />
but no code in main page use the IDs for control and
business.
Thanks
Mark

These are creating references to your service.mxml object and
your application controller object that the cairngorm objects use
in looking up events and executing services.
The service.mxml file has all the rpc or web service config
data like:
<mx:HTTPService id="ControlNavLoadService"
url="
http://localhost:8090/febatmon/XML/ControlNav.xml"
/>
The appController object should extend the FrontController
and is used as a central repository for event execution like this:
public class AppController extends FrontController {
public static const LOAD_CONTROL_NAV_EVENT : String =
"LOAD_CONTROL_NAV_EVENT";
public function AppController() {
addCommand( AppController.LOAD_CONTROL_NAV_EVENT,
ControlNavLoadCommand );

Similar Messages

  • 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 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.

  • 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/

  • 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 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.

  • 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

  • Code samples for using HTTPServices in Cairngorm framework

    Hello there,
    Does anyone have any samples for retrieving data through
    HTTPServices using the cairngorm framework model. All samples on
    the web, as far as I have searched, lead only to remote services
    mode of communication only.
    Any help here would be greatly appreciated.
    Thanks,
    Arun B
    [email protected]

    I wrote a sample code modifiying the Remote Object examples
    .. I got this working now . Please ignore this message, just incase
    anyone needs my sample just email me..

  • Question about Alert Framework in Solution Manager

    Hi all,
    We are planning to use Solution Manager as Central Monitoring Server, so I want to know what the advantage to use Solution Manager is, especially in Alerting.
    We can define auto-reaction methods for monitors to send CCMS alerts to Alert Framework where the alerts can be forwarded to the personal responsible via Email or CCMS.
    Is there any difference when using Solution Manager? Which additional functions dose Solution Manager provide in alerting?
    In normal SAP Alert Framework, you can only define one receipt for escalation. Can Solution Manager support multiple level escalation? For example, an alert is sent to A, if the Alert is not confirmed by A, then the alert is forwarded to B automatically. The same way the alert can be forwarded to further persons.
    Any idea?
    Thanks!
    Regards,
    Hui

    Hi Hui,
    On my opinion there is no any advantage in useíng SAP Solution Manager as central alerting systems in respect to RZ20. The arguments are as follows:
    - in SAP Solution Mnager you have performance restrictions on number of alerts to be displayed in one screen caused by the fact that the alerts are displayed in HTTP format
    - All the customizing in SAP Solution Manager for System Monitoring is Solution specific and not transportable. It means that if you have got corrupted your system monitoring session (that happens not seldom) your settings are lost. If you have created another Solution for the same systems you have to perform customizing from the scratch
    - Customizing is also not very esay to do. I would do recommend to use "User defined Alerts" Please have a look at the SAP Note 1023959 fro this topc
    - SAP Solution Manager does not provide alerting mechanism -> you have to relay to ALM in any case. Here by the way to your second question I would say that it is possible implement exactly process you have described. In the ALM category you can use button escallation to define another person that would be informed via e-mail in case the first Recipient have not completed alert from this category within predefined time
    + The only feature that is unique with System Monitoring with SAP Solution Mnager is the possibility to change threshold values for all the MTEs / MTE Classes that are defined in User Define Alerts an one button click
    At the conclussion I would say that there are some custommers that are using SM as monitoring platform But more pragmatical would be to configure RZ20 with help of Rule-based alerts and self- defined system groups and use ALM as alerting infrastructure. In this case you can save in plain XML file your Alert configuration and export it in any other system. ALM has on my opinion enogh functionality for alerting
    Best Regards
    Andrey

  • Question on Stripes framework

    Hi ,
    Stripes 1.4.3
    Please help me to clarify some doubts regarding the Stripes framework.
    * we can use ActionBeanContext to access the session,request objects,then y we need @sessionscope?
    thanks
    kris

    veechu wrote:
    Thanks for ur reply,but in the forum at http://stripesframework.org not getting better response,is there any other forums to get help?
    I am not aware of a forum over there. There's a mailing list on which you can subscribe and post questions to. Did you do that?
    And no, I wouldn't know a better place than there to ask Stripe's related questions.

  • How to use cairngorm framework in flex 4?

    Hi Everyone!
    Right now i am working with Flex 3.5 sdk using cairgorm architecture. Now i want to move to Flex 4 sdk with cairgorm architecture. I tried to use the cairngorm architecture in flex 4 sdk. But i did not get the output.
         Please anyone let me know how to use the cairngorm artchitecture in flex 4 sdk.
    Thanks in advance.!

    Read about Presentation Model. Refactor towards that and you should fine.
    C

  • Trying to learn Flashbuilder but using the cairngorm framework is tough

    i thought learning the oldest flex framework would be a good starting point on how to develop future flashbuilder/flex projects.
    i am going through the tutorials but the carnigorm tutorial is extremely painful. 
    i have never been buzzword compliant because my philosophy is to keep explanations very, very simple. 
    Is there a better way to learn a flex architecture?
    Please help if any of you have the same problems.

    May be you should start with the resources that are available on the developer center: http://www.adobe.com/devnet/flex/?view=gettingstarted
    Thanks,
    Gaurav Jain
    Flex SDK Team
    http://www.gauravj.com/blog

  • Quick Question about Folder Framework Services

    Ok so I set up and am learning how to use RIDC to talk to UCM, I don't really need help in that regard.  My question is I'm reading the Folders Services documentation and was reading "FLD_CREATE_FOLDER" and was at a loss.  One how would I find the GUID for the parent folder, and second I'm not seeing a way to add the name of the new folder.  I'm at a bit of a loss with this one hoping somone can point me in the right direction.

    Hi ,
    To get the GUID for parent folder you can use either the service FLD_INFO along with IsJava=1 parameter or run the DB query on FolderMetaDefaults table .
    1. Service part :
    From the browser use the following service call :
    http://ucmhostname:port/cs/idcplg?IdcService=FLD_INFO&path=/Folder1
    here path refers to the hierarchical structure for the actual one under which we need to create a new one .
    For eg : if Folder1 is created under root and under that we have to create a new sub-folder then path=/Folder1
    If under Folder1 we have subFolder1 then path =/Folder1/subFolder1.
    From that under ResultSet "FolderInfo" search for fFolderGUID and use that as the value for fParentGUID
    Sample code : https://forums.oracle.com/thread/2554885
    So the code would be like this :
               dataBinder.putLocal("IdcService","FLD_CREATE_FOLDER");
                dataBinder.putLocal("fParentGUID","FLD_ROOT");
                dataBinder.putLocal("fFolderName","RIDCFF1");
    Above example creates a new folder under root itself .
    Hope this helps .
    Thanks,
    Srinath

  • ArrayCollection question in cairngorm

    Hi,
    I have a simple cfc, the function is like this,it get a
    department list
    <cffunction name="getDept" displayname="getDept"
    access="remote" output="false" returntype="query">
    <cfquery name="getDepartment" datasource="bursary">
    SELECT Id, Dept
    FROM tlkpDept
    </cfquery>
    <cfreturn getDepartment />
    </cffunction>
    2.This is the modellocator .I want to save department list to
    the acDept (ArrayCollection)
    public class BursaryModel implements IModelLocator {
    private static var instance:CESFBursaryModel;
    public var acDept : ArrayCollection;
    3.This is the Delegate function. this builds a flex function
    getDept()
    public function getDept():void {
    var call:Object = this.service.getDept();
    call.addResponder(responder);
    4.This is part of the command class
    public function result( event:Object ):void {
    modelLocator.acDept = event.result;
    5 the view page, bind the
    private var modelLocator:BursaryModel =
    CESFBursaryModel.getInstance();
    <mx:ComboBox x="440" y="268" width="142"
    dataProvider="{modelLocator.acDept}" />
    my error is I get a list and it looks like.
    [object Object]
    [object Object]
    [object Object]
    [object Object]
    but I want to show the dapartment list,Please help me and
    give me a hit how to fix this.
    I do not know what the event.result is command class and how
    to convert is to a real department list.
    Thanks for your help
    Mark

    Hi. I am very new to FLEX, but I had something like this at
    one time. I found that if I added .toString(), it work. I was
    working with XML at the time.
    Gary

  • Question regarding homepage framework...

    Hi guys...
    My brain just died on me and I failed trying to achieve the following:
    Given:
    1. Workset with lots of fancy Portal objects
    2. Page_A
    3. Page_B
    4. Workset_A consisting of deltalinked (2), deltalinked to (1)
    5. Portal Role A, consisting of deltalinked (1) <-- this has all but PAGE_B (3)
    6. Portal Role B, consisting of deltalinked (1) whereas in the Role I have removed everything down to (4), I also removed the deltalinked Page_A (2) from it. Then I deltalinked Page_B to it (3).
    What I try to accomplish with this:
    I have an Area where there can be two sub areas. However some users may see only ONE of these subareas, some users may see BOTH of them. So I merged the Second Level Navigation of the two roles.
    Up to this point all is good.
    Now, we are using HPF, we don't use the Navigation Panel on the left hand side.
    HPF(draft for this problem):
    Area Group Page A --> Area Page A
    Area Page A --> Subarea A
    Area Page A --> Subarea B
    Service A --> Subarea A
    Service B --> Subarea B
    Ressource X for area page --> Pointing PCD to generic JAVA xss aregrp
    Ressource A --> Pointing to Page A of Portal Role A.
    Ressource B --> Pointing to Page B of Portal Role B.
    The user which is supposed to see both Portal objects can see them both and can use them both.
    The user which is supposed NOT TO SEE PAGE B can still see it in the Area Page, respective Subarea. If he clicks on it, he get's 'page not found' which is of course rirght; I didn't map the R3-Role for him so he's not supposed to see it. But the fact that he can still see the links in HPF messes it all up.
    Am I doing something wrong or can this not be accomplished?
    This looks to me like Role-based HPF is all void below Second Level navigation.... Eventually I'll just make an own workset and a separate HPF, but I reject to believe I did everything right and it still doesn't work the way I want it :-////
    regards...Lukas

    My brain was about to die, after reading so many lines  , but I am glad that I could survive :-).
    Coming back to your problem, This can be achieved.
    1. Check in HPF when you are defining a resource your path is pointing to portal_content/folder/Page This should always be configured like portal_content/folder/role/wokset/page. This will ensure that you can access only those pages for which you have the corresponding role assigned. Unfortunately it's not checked while the links are being generated and comes into play only when you click on the link it shows that page couldn't be found.
    2. To achieve what you want to achieve you have to use proxy classes. You can hide the links based on whatever criteria you choose to. Unfortunately you can control only this at service level and not on subarea (workset) level .
    Refer to this for proxy class implementation
    /people/amir.madani/blog/2007/01/05/create-dynamic-xss-homepages-with-static-services-using-a-simple-proxy-class
    Thanks
    Prashant

Maybe you are looking for