Application View States -vs- Windows

Hello,
I'm a new Flex user, and have just gotten started using Flex
2. I have lots of experience developing web apps using ASP.NET. I
have poured over all the downloadable documentation, and most of
what I see in the docs are single window samples. I have a flex
application to develop that will probably end up being about 25
different screens. I am wondering what the proper way to partition
the source code should be. Do I need to create one "MXML
Applicaton" per screen? If so, that would result in a different SWF
file for each screen, right? When I move from screen to screen, is
it going to keep the same session object so I can retain the
context of the user's actions? Or, is it the standard practice to
try to cram all of the screens into a single MXML Application file
as different "View States" and have the entire application load up
when they hit the huge single SWF file?

I have the same question !!
I too have to develop a rather complex
Ordering-Production-Shipping-Billing application. Many screens and
lots of business logic.
I will use ColdFusion for the backend and lots of data logic
will be in the database and CFC. Flex will handle the user
interface part.
But I am not quite sure how to handle the windows part and
also the "modal" aspect of the interface.
For now my prototype uses ViewStacks and some panels uses
states depending on customer type or product type selected. The
user needs to be at the top most view of a main function to access
other main functions like Production or Shipping. If a user digs
into a main function I remove the options (using states) to jump to
other main functions.I want them to close the transactions before
jumping to other things in the application.
The main MXML file contains the application bar and
MainViewStack. Each main function is in a separate MXML file (as
per examples in the documentation).
The swf is likely to be large but I do not mind so much, it
will be used on the Intranet on a 1gb network.
Steve

Similar Messages

  • Javax.faces.application.ViewExpiredException: viewId:/folderUpload.jspx - ADF_FACES-30107:The view state of the page has expired.  Reload the page.

    Hi,
    I am developing a utility for multiple file upload. I am getting some error here. First i want to explain my case.
    I am using JDeveloper 11.1.1.7,
    InputFile Properties:  maximumFiles="150"    uploadType="auto"
    web.xml change:  org.apache.myfaces.trinidad.UPLOAD_MAX_DISK_SPACE =5368709120   (For 5GB)
                                    org.apache.myfaces.trinidad.UPLOAD_MAX_MEMORY = 5368709120
                                    org.apache.myfaces.trinidad.CLIENT_STATE_MAX_TOKEN = 3
                                    session time out = 30 minute   
    Here when i am uploading upto 5 files its working fine but when i am selecting more than 15 files its always coming below error.
    Error Log
    AdfcExceptionHandler>  ADFc: While handling an exception the application's exception handler threw a new exception.
    javax.faces.application.ViewExpiredException: viewId:/folderUpload.jspx - ADF_FACES-30107:The view state of the page has expired.  Reload the page.
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._restoreView(LifecycleImpl.java:819)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:422)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:207)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:128)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
      at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
      at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
      at java.security.AccessController.doPrivileged(Native Method)
      at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)
      at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
      at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
      at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
      at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:163)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
      ADFc: While attempting to handle this exception the application's exception handler failed.
    javax.faces.application.ViewExpiredException: viewId:/folderUpload.jspx - ADF_FACES-30107:The view state of the page has expired.  Reload the page.
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._restoreView(LifecycleImpl.java:819)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:422)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:207)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:128)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
      at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
      at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
      at java.security.AccessController.doPrivileged(Native Method)
      at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)
      at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
      at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
      at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
      at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:163)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
      ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RESTORE_VIEW 1
    javax.faces.application.ViewExpiredException: viewId:/folderUpload.jspx - ADF_FACES-30107:The view state of the page has expired.  Reload the page.
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._restoreView(LifecycleImpl.java:819)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:422)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:207)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:128)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
      at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
      at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
      at java.security.AccessController.doPrivileged(Native Method)
      at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)
      at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
      at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
      at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
      at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:163)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    [Application termination requested.  Undeploying application DMSMultipleFileUploadUtility.]
    Why is session time out error is coming while 15 files(Small files in KBs) is taking 15-20 sec to upload, what configuration required for this error. Take a look Timo Hahn
    Thanks and Regards
    Maroof Ahmad

    Hi All,
    Finally i resolved my issue   for my case and working fine. Thanks Timo Hahn for kind help .
    Solution made by below changes.
    1. You should use valueChangeListener on inputFile for
    2.Changes in web.xml
    Changes in web.xml
    <context-param>
        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
        <param-value>client</param-value>
    </context-param>
    <context-param>
        <description>If this parameter is true, there will be an automatic check of the modification date of your JSPs, and saved state will be discarded when JSP's change. It will also automatically check if your skinning css files have changed without you having to restart the server. This makes development easier, but adds overhead. For this reason this parameter should be set to false when your application is deployed.</description>
        <param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name>
        <param-value>false</param-value>
      </context-param>
    <context-param>
        <description>Whether the 'Generated by...' comment at the bottom of ADF Faces HTML pages should contain version number information.</description>
        <param-name>oracle.adf.view.rich.versionString.HIDDEN</param-name>
        <param-value>true</param-value>
      </context-param>
    <context-param>
        <description>Here Values is in bytes for file upload. This is for 5GB</description>
        <param-name>org.apache.myfaces.trinidad.UPLOAD_MAX_DISK_SPACE</param-name>
        <param-value>5368709120</param-value>
      </context-param>
    <context-param>
        <description>Here Values is in bytes for file upload. This is for 5GB</description>
        <param-name>org.apache.myfaces.trinidad.UPLOAD_MAX_MEMORY</param-name>
        <param-value>5368709120</param-value>
      </context-param>
      <context-param>
        <description>Session Time out solution 3600 here</description>
        <param-name>org.apache.myfaces.trinidad.CLIENT_STATE_MAX_TOKEN</param-name>
        <param-value>4000</param-value>
      </context-param>
    <context-param>
        <description>"all": stores all state in the client in a (potentially large) hidden form field. This matches the default behavior of the JSF reference implementation, and can be useful for developers avoiding any use of HttpSession.</description>
        <param-name>org.apache.myfaces.trinidad.CLIENT_STATE_METHOD</param-name>
        <param-value>all</param-value>
      </context-param>
    <context-param>
        <description>The &lt;uploaded-file-max-disk-space&gt; element is used to change the default location uploaded files are stored. This setting directly overrides the web.xml setting org.apache.myfaces.trinidad.UPLOAD_TEMP_DIR. This value can be hardcoded or can be explicitly configured with an EL expression that returns a String object.</description>
        <param-name>org.apache.myfaces.trinidad.UPLOAD_TEMP_DIR</param-name>
        <param-value>/tmp/TrinidadUploads/</param-value>
      </context-param>
    For detail configuration of trinidad see  APACHE MYFACES TRINIDAD
    If your are using large size file then you also increase Java heap size other wise you may get Out Bound Memory
    Maroof

  • Populate Flex Grids during view state?

    Hi, I am very new to Flex. I am working on a Flex project where I want to populate xml data in the two grids during viewstate. In my project, I have two grid which resides in the two discinct view state named as "Category" and "Topic". For these two view state, i have two disctinct grids.
    I am successfully able to populate one grid that is "Category" state grid but when i change the state on button click event another grid does not populate with the data.
    Can anyone help me with this?
    Please have a look on the code below for better idea:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="730" height="492" creationComplete="TopCategoryTopic()" currentState="HotCategory">
    <mx:states>
      <mx:State name="HotTopic">
          <mx:SetEventHandler target="{btnHotTopics}" name="click" handlerFunction="TopCategoryTopic">     
          </mx:SetEventHandler>
      <mx:SetProperty target="{btnHotTopics}" name="label" value="Top &quot;Hot&quot; Topic"/>
      <mx:RemoveChild target="{categoryGrid}"/>
      <mx:AddChild relativeTo="{canvas1}" position="lastChild">
        <mx:DataGrid id="topicGrid" x="10" y="27" width="601" height="263" color="#000000">   
        </mx:DataGrid>
      </mx:AddChild>
      <mx:AddChild relativeTo="{canvas1}" position="lastChild">
        <mx:Label x="10" y="10" text="Top &quot;Hot&quot; Topic" width="150" color="#000000" fontWeight="bold" fontFamily="Verdana" fontSize="11" id="label0"/>
      </mx:AddChild>
      </mx:State>
      <mx:State name="HotCategory">
        <mx:SetEventHandler target="{btnHotCategories}" name="click" handlerFunction="TopCategoryTopic">     
          </mx:SetEventHandler>
          <mx:SetProperty target="{btnHotCategories}" name="label" value="Top &quot;Hot&quot; Categories"/>
      <mx:RemoveChild target="{categoryGrid}"/>
      <mx:AddChild relativeTo="{canvas1}" position="lastChild">
        <mx:DataGrid id="categoryGrid"  x="10" y="27" width="601" height="263" color="#000000">   
        </mx:DataGrid>
      </mx:AddChild>
      <mx:AddChild relativeTo="{canvas1}" position="lastChild">
        <mx:Label x="10" y="10" text="Top &quot;Hot&quot; Category" width="159" color="#000000" fontWeight="bold" fontFamily="Verdana" fontSize="11" id="label2"/>
      </mx:AddChild>
      </mx:State>
    </mx:states>
    <mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml"
      width="730" height="492" headerHeight="20"
          showCloseButton="true" borderColor="#000000"
      layout="absolute" fontSize="12" verticalScrollPolicy="off"
      horizontalScrollPolicy="off" title="Customer Success &amp; Strategy - Q4 Hot Topics/Categories"
      themeColor="#0E4463" horizontalCenter="0"
      verticalCenter="0" id="CSSTopPresenter" cornerRadius="0" alpha="1.0"
      backgroundColor="#FFFFFF" borderThickness="0" close="CloseWindow()"
      color="#FFFFFF" borderThicknessLeft="3" borderThicknessRight="3" borderThicknessBottom="3">
        <mx:Script>
            <![CDATA[
                import mx.controls.dataGridClasses.DataGridColumn;
          import mx.collections.XMLListCollection;
            import mx.managers.PopUpManager;
                import mx.rpc.events.FaultEvent;
      import mx.rpc.events.ResultEvent;
      import mx.rpc.http.HTTPService;
      import mx.events.FlexEvent;
      import mx.controls.Alert;
      import flash.events.MouseEvent;
                [Bindable]
                private var _xmlData:XMLList;
                private function TopCategoryTopic():void
                    var httpService:HTTPService = new HTTPService();
                httpService.url = "http://ri/co.UI/CtSS/Rsources/Hgory.aspx?Month=January&Year=2009";
                httpService.resultFormat = "e4x";
        httpService.addEventListener(ResultEvent.RESULT, onResultHttpService);
        httpService.send();
                //funtion to receive Http Service Response as XML Document         
              private function onResultHttpService(e:ResultEvent):void
        //var xmlData:XMLList = e.result.CategoryTopic;
        var category:XMLList = e.result.categories;
        var topic:XMLList= e.result.topics;
        if(currentState=="HotCategory")
            categoryGrid.dataProvider = category;
            for each (var node:XML in category[0].children())
                addDataGridColumn1(node.name());
        else if(currentState=="HotTopic")
          topicGrid.dataProvider = topic;
          for each (var node1:XML in topic[0].children())
            addDataGridColumn2(node1.name());
        //function to add Categories column dynamically
      private function addDataGridColumn1(dataField:String):void
        var dgc:DataGridColumn=new DataGridColumn(dataField);
        var cols:Array=categoryGrid.columns;
        cols.push(dgc);
        categoryGrid.columns=cols;
        categoryGrid.validateNow(); 
                //function to add Topic column dynamically
      private function addDataGridColumn2(dataField:String):void
        var dgc:DataGridColumn=new DataGridColumn(dataField);
        var cols:Array=topicGrid.columns;
        cols.push(dgc);
        topicGrid.columns=cols;
        topicGrid.validateNow(); 
          //funtion to remove grid window
      private function CloseWindow():void
        PopUpManager.removePopUp(this);
        ]]>
        </mx:Script>
        <mx:Button id="btnHotCategories" label="Top &quot;Hot&quot; Categories" width="173" height="37" borderColor="#2673A9" cornerRadius="6" labelPlacement="left" color="#000000" click="currentState='HotCategory'" x="45" y="23" fillAlphas="[1.0, 1.0]" fillColors="[#4D8F8D, #CCD3DE]"/>
        <mx:Button id="btnHotTopics" label="Top &quot;Hot&quot; Topic"  width="172" height="38" cornerRadius="6" borderColor="#000000"  color="#000000" click="currentState='HotTopic'"  x="46" y="78" fillAlphas="[1.0, 1.0]" fillColors="[#4D8F8D, #CCD3DE]"/>
        <mx:Canvas width="621" height="302" borderStyle="solid" borderColor="#0092F9" y="155" x="46" cornerRadius="9"  alpha="0.61" backgroundColor="#0092f9" id="canvas1">
        </mx:Canvas> 
        <mx:Image x="294" y="0" width="373" height="147" source="assets/CategoryTopic.gif"/>
    </mx:TitleWindow>
    </mx:Canvas>
    Thanks in advance.
    Vivek Jain
    Software Engineer

    I simplified the problem to it's essence and came up with this:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal"
        creationComplete="init()">
        <mx:Script>
            <![CDATA[
                import mx.collections.ArrayCollection;
                [Bindable]
                public var lProvider:ArrayCollection;
                private function init():void
                    var la:Array = [{label: "Conference", checked: true},
                                    {label: "Tickets", checked: false}];
                    lProvider = new ArrayCollection(la);
            ]]>
        </mx:Script>
        <mx:List id="cList" width="200" dataProvider="{lProvider}" itemClick="lProvider.refresh()">
            <mx:itemRenderer>
                <mx:Component>
                    <mx:HBox width="100%">
                        <mx:CheckBox selected="{data.checked}" click="data.checked = event.target.selected"/>
                        <mx:Label text="{data.label}"/>
                    </mx:HBox>
                </mx:Component>
            </mx:itemRenderer>
        </mx:List>
        <mx:VBox width="600">
            <mx:Panel title="Conference component" width="100%" height="200"
                    visible="{lProvider.getItemAt(0).checked}"
                    includeInLayout="{lProvider.getItemAt(0).checked}"/>
            <mx:Panel title="Ticket component" width="100%" height="200"
                    visible="{lProvider.getItemAt(1).checked}"
                    includeInLayout="{lProvider.getItemAt(1).checked}"/>
        </mx:VBox>
    </mx:Application>
    Does this help?
    Dany

  • Application view creation in WLI SERVER

              Hi folks,
              w,r.to my previous mail,Iam getting the following errors while i try to login
              to the Application view console in WLI
              Server.pl. anyone try to help me to sort this problem.Iam new to WLI Server.
              <Cannot startup connection pool "wliPool" java.sql.SQLException: No suitable driver>
              <Jun 13, 2003 5:02:45 PM IST> <Error> <JDBC> <001059> <Error during Data Source
              creation: weblogic.common.ResourceException: DataSource(WLAI_DataSource) can't
              be created with non-existent Pool (connection or multi) (wliPool)
              at weblogic.jdbc.common.internal.JdbcInfo.validateConnectionPool(JdbcInfo.java:127)
              at weblogic.jdbc.common.internal.JdbcInfo.startDataSource(JdbcInfo.java:260)
              at weblogic.jdbc.common.internal.JDBCService.addDeploymentx(JDBCService.java:293)
              at weblogic.jdbc.common.internal.JDBCService.addDeployment(JDBCService.java:270)
              <Jun 13, 2003 5:02:49 PM IST> <Alert> <JMS> <040052> <JMSServer "WLIJMSServer",
              store failed to open, java.io.IOException: JMS JDBC store, connection pool = <wliPool>,
              prefix = <myserver___PBPUBLIC>: connection pool does not exist.
              java.io.IOException: JMS JDBC store, connection pool = <wliPool>, prefix = <myserver___PBPUBLIC>:
              connection pool does not exist
              >
              <Jun 13, 2003 5:02:52 PM IST> <Error> <Connector> <190024> << Calumma LDAP JCA
              Resource Adapter_LdapConnector > Error making initial connections for pool. Reason:
              CreateManagedConnection Error: 192.168.66.144:389>
              <Jun 13, 2003 5:03:04 PM IST> <Error> <AI> <000000> <Failed to initialize the
              WLI-Application Integration enterprise application due to an exception while initializing
              JMS resources.
              com.bea.wlai.JMSResourceException: Failed to initialize the WLAI asynchronous
              service request JMS Queue 'WLAI_ASYNC_REQUEST_QUEUE' bound at JNDI context 'com.bea.wlai.ASYNC_REQUEST_QUEUE'.
              Root Cause: javax.naming.NameNotFoundException: Unable to resolve 'com.bea.wlai.ASYNC_REQUEST_QUEUE'
              Resolved: 'com.bea.wlai' Unresolved:'ASYNC_REQUEST_QUEUE' ; remaining name 'ASYNC_REQUEST_QUEUE'
              at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:174)
              at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:263)
              at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:230)
              at weblogic.jndi.internal.ServerNamingNode_WLStub.lookup(Unknown Source)
              at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:337)
              at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:332)
              at javax.naming.InitialContext.lookup(InitialContext.java:347)
              at com.bea.wlai.JMSHelper.initQueue(Unknown Source)
              <Jun 13, 2003 5:03:05 PM IST> <Critical> <WebLogicServer> <000286> <Failed to
              invoke startup class "LwcStartup", java.lang.ClassNotFoundException: com.bea.lwclient.Startup>
              <Jun 13, 2003 5:03:07 PM IST> <Notice> <Management> <141052> <Application Poller
              started for development server.>
              <Jun 13, 2003 5:03:11 PM IST> <Error> <HTTP> <101165> <Could not load user defined
              filter: com.bea.b2b.transport.http.TransportServletFilter
              java.lang.ClassNotFoundException: com.bea.b2b.transport.http.TransportServletFilter
              at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:179)
              at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:62)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
              at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:41)
              at weblogic.servlet.internal.WebAppServletContext.loadClass(WebAppServletContext.java:4714)
              at weblogic.servlet.internal.WebAppServletContext.registerFilter(WebAppServletContext.java:2446)
              at weblogic.servlet.internal.WebAppServletContext.initFilters(WebAppServletContext.java:2433)
              at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:2703)
              at weblogic.servlet.internal.HttpServer.preloadResources(HttpServer.java:563)
              at weblogic.servlet.internal.WebService.preloadResources(WebService.java:476)
              at weblogic.t3.srvr.ServletInitRunner$1.run(ServletInitRunner.java:50)
              at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:780)
              at weblogic.t3.srvr.ServletInitRunner.run(ServletInitRunner.java:46)
              at java.lang.Thread.run(Thread.java:536)
              >
              <Jun 13, 2003 5:03:11 PM IST> <Error> <socket> <000433> <Unable to load performance
              pack, using Java I/O instead.
              Please ensure that libmuxer library is in :'/home/tsuresh/j2sdk1.4.0/jre/lib/i386/client:/home/tsuresh/j2sdk1.4.0/jre/lib/i386:/home/tsuresh/j2sdk1.4.0/jre/../lib/i386'
              java.lang.UnsatisfiedLinkError: no muxer in java.library.path
              java.lang.UnsatisfiedLinkError: no muxer in java.library.path
              at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1410)
              at java.lang.Runtime.loadLibrary0(Runtime.java:772)
              at java.lang.System.loadLibrary(System.java:832)
              at weblogic.socket.PosixSocketMuxer.<init>(PosixSocketMuxer.java:180)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
              at java.lang.Class.newInstance0(Class.java:296)
              at java.lang.Class.newInstance(Class.java:249)
              at weblogic.socket.SocketMuxer.makeTheMuxer(SocketMuxer.java:54)
              at weblogic.socket.SocketMuxer.getMuxer(SocketMuxer.java:37)
              at weblogic.t3.srvr.ListenThread.run(ListenThread.java:205)
              >
              <Jun 13, 2003 5:03:12 PM IST> <Notice> <Management> <141030> <Starting discovery
              of Managed Server... This feature is on by default, you may turn this off by passing
              -Dweblogic.management.discover=false>
              <Jun 13, 2003 5:03:12 PM IST> <Notice> <WebLogicServer> <000354> <Thread "ListenThread.Default"
              listening on port 7010>
              <Jun 13, 2003 5:03:12 PM IST> <Notice> <WebLogicServer> <000331> <Started WebLogic
              Admin Server "myserver" for domain "ldap_adapterdomain" running in Development
              Mode>
              <Jun 13, 2003 5:03:15 PM IST> <Notice> <WebLogicServer> <000365> <Server state
              changed to RUNNING>
              <Jun 13, 2003 5:03:15 PM IST> <Notice> <WebLogicServer> <000360> <Server started
              in RUNNING mode>
              <Jun 13, 2003 5:04:18 PM IST> <Error> <AI> <000000> <Could not create NamespacePersistence
              Object.
              -------- Begin level 0 Exception Stack Trace --------
              com.bea.wlai.repository.PersistenceException: Failed to initialize WLI repository
              access layer for the Application Integration subcomponent because the JDBC data
              source was not found at JNDI name WLAI_DataSource due to Unable to resolve 'WLAI_DataSource'
              Resolved: '' Unresolved:'WLAI_DataSource'
              at com.bea.wlai.repository.NamespacePersistence.initDataSource(Unknown
              Source)
              at com.bea.wlai.repository.NamespacePersistence.<init>(Unknown Source)
              at com.bea.wlai.NamespaceManagerImpl.<init>(Unknown Source)
              at com.bea.wlai.NamespaceManagerImpl.getInstance(Unknown Source)
              at com.bea.wlai.client.bean.NamespaceManagerBean.establishImpl(Unknown
              Source)
              at com.bea.wlai.client.bean.NamespaceManagerBean.ejbCreate(Unknown Source)
              at com.bea.wlai.client.bean.NamespaceManagerBean_k6j0cj_Impl.ejbCreate(NamespaceManagerBean_k6j0cj_Impl.java:122)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at weblogic.ejb20.pool.StatelessSessionPool.createBean(StatelessSessionPool.java:151)
              at weblogic.ejb20.pool.StatelessSessionPool.getBean(StatelessSessionPool.java:101)
              at weblogic.ejb20.manager.StatelessManager.preInvoke(StatelessManager.java:142)
              at weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:127)
              at weblogic.ejb20.internal.StatelessEJBObject.preInvoke(StatelessEJBObject.java:61)
              at com.bea.wlai.client.bean.NamespaceManagerBean_k6j0cj_EOImpl.getRootNamespace(NamespaceManagerBean_k6j0cj_EOImpl.java:83)
              at jsp_servlet.__nshierarchy._jspService(__nshierarchy.java:115)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1058)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:401)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
              at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:543)
              at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:369)
              at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:136)
              at jsp_servlet.__display._jspService(__display.java:511)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1058)
              rgds
              Suresh.K
              

    1) http://commerce.bea.com/showproduct.jsp?family=WLP&major=8.1&minor=4
              2)Make sure you add your JDBC drivers to the beginning of CLASSPATH in either setDomainenv.cmd or setEnv.cmd
              3)What really helped was BEA support and playing with BEA's JDBC example that shows how to create and deploy and use a data source.
              http://dev2dev.bea.com/codelibrary/code/examples_jdbc.jsp

  • Deployment of JavaFX Web application on client machine(Windows OS.)

    Problem Statement:
    Deployment of JavaFX Web application on client machine(Windows OS.)
    Error: unable to load the native libarary(JNI Windows dll) i.e. throws java.lang.UnsatisfiedLinkError exception.
    Problem Description:
    I have create the JavaFX application which have dependency on Native library written in Java Native Interface(JNI).
    When the application is deployed on Apache 6.0 Tomcat Server(Copied .html file *.jnlp file and .jar file) and when client machine hit the html page in internet explorer version 8.0 its throws the following error(java.lang.UnsatisfiedLinkError: no JNIHelloWorld in java.library.path)
    Note:
    I have created the jar file which have my "JNIHelloWorld' native library dll in root directory. I have signed the jar with same signature which i have used for signing for my application Jar file.
    I have mentioned the native library jar in JNLP file resource keyword as follows:
    <resources os=Windows>
    <nativelib href="JNIHelloWorld.jar" download="eager" />
    </resources>
    The complete jnlp file content is in "JavaFXApplication.jnlp file:" section below.
    The description of error is as follows:
    Match: beginTraversal
    Match: digest selected JREDesc: JREDesc[version 1.6+, heap=-1--1, args=null, href=http://java.sun.com/products/autodl/j2se, sel=false, null, null], JREInfo: JREInfo for index 0:
    platform is: 1.7
    product is: 1.7.0_07
    location is: http://java.sun.com/products/autodl/j2se
    path is: C:\Program Files\Java\jre7\bin\javaw.exe
    args is: null
    native platform is: Windows, x86 [ x86, 32bit ]
    JavaFX runtime is: JavaFX 2.2.1 found at C:\Program Files\Java\jre7\
    enabled is: true
    registered is: true
    system is: true
         Match: ignoring maxHeap: -1
         Match: ignoring InitHeap: -1
         Match: digesting vmargs: null
         Match: digested vmargs: [JVMParameters: isSecure: true, args: ]
         Match: JVM args after accumulation: [JVMParameters: isSecure: true, args: ]
         Match: digest LaunchDesc: http://10.187.143.68:8282/KPIT/JavaFXApplication20.jnlp
         Match: digest properties: []
         Match: JVM args: [JVMParameters: isSecure: true, args: ]
         Match: endTraversal ..
         Match: JVM args final:
         Match: Running JREInfo Version match: 1.7.0.07 == 1.7.0.07
         *Match: Running JVM args match: have:<> satisfy want:<>*
    *java.lang.UnsatisfiedLinkError: no JNIHelloWorld in java.library.path*
    *     at java.lang.ClassLoader.loadLibrary(Unknown Source)*
    *     at java.lang.Runtime.loadLibrary0(Unknown Source)*
    *     at java.lang.System.loadLibrary(Unknown Source)*     at javafxapplication20.JavaFXApplication20.<clinit>(JavaFXApplication20.java:41)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at com.sun.javafx.applet.FXApplet2.init(FXApplet2.java:63)
         at com.sun.deploy.uitoolkit.impl.fx.FXApplet2Adapter.init(FXApplet2Adapter.java:207)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Java Plug-in 10.7.2.11
    Using JRE version 1.7.0_07-b11 Java HotSpot(TM) Client VM
    User home directory = C:\Users\io839
    Please find my native library code and JavaFX application code:
    Native library JNI Code:
    JavaFXApplication.java:
    JNIEXPORT jstring JNICALL Java_javafxapplication_SampleController_printString(JNIEnv *env, jobject envObject)
         string str = "hello JNI";
         jstring jniStr = env->NewStringUTF(str.c_str());
         return jniStr;
    JavaFX Application code:
    JavaFXApplication.java:
    package javafxapplication;
    import javafx.application.Application;
    import javafx.fxml.FXMLLoader;
    import javafx.scene.Parent;
    import javafx.scene.Scene;
    import javafx.stage.Stage;
    public class JavaFXApplication extends Application {
    @Override
    public void start(Stage stage) throws Exception {
    Parent root = FXMLLoader.load(getClass().getResource("Sample.fxml"));
    Scene scene = new Scene(root);
    stage.setScene(scene);
    stage.show();
    * The main() method is ignored in correctly deployed JavaFX application.
    * main() serves only as fallback in case the application can not be
    * launched through deployment artifacts, e.g., in IDEs with limited FX
    * support. NetBeans ignores main().
    * @param args the command line arguments
    public static void main(String[] args) {
    launch(args);
    static{
    System.loadLibrary("JNIHelloWorld");
    SampleController.java file:
    package javafxapplication;
    import java.net.URL;
    import java.util.ResourceBundle;
    import javafx.event.ActionEvent;
    import javafx.fxml.FXML;
    import javafx.fxml.Initializable;
    import javafx.scene.control.Label;
    public class SampleController implements Initializable {
    @FXML
    private Label label;
    private native String printString();
    @FXML
    private void handleButtonAction(ActionEvent event) {
    System.out.println("You clicked me!");
    String str = printString();
    label.setText(str);
    @Override
    public void initialize(URL url, ResourceBundle rb) {
    // TODO
    //String str = printString();
    JavaFXApplication.jnlp file:
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp spec="1.0" xmlns:jfx="http://javafx.com" href="JavaFXApplication.jnlp">
    <information>
    <title>JavaFXApplication20</title>
    <vendor>io839</vendor>
    <description>Sample JavaFX 2.0 application.</description>
    <offline-allowed/>
    </information>
    <resources>
    <jfx:javafx-runtime version="2.2+" href="http://javadl.sun.com/webapps/download/GetFile/javafx-latest/windows-i586/javafx2.jnlp"/>
    </resources>
    <resources>
    <j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
    <jar href="JavaFXApplication.jar" size="20918" download="eager" />
    </resources>
    <resources os=Windows>
    <nativelib href="JNIHelloWorld.jar" download="eager" />
    </resources>
    <security>
    <all-permissions/>
    </security>
    <applet-desc width="800" height="600" main-class="com.javafx.main.NoJavaFXFallback" name="JavaFXApplication" >
    <param name="requiredFXVersion" value="2.2+"/>
    </applet-desc>
    <jfx:javafx-desc width="800" height="600" main-class="javafxapplication.JavaFXApplication" name="JavaFXApplication" />
    <update check="always"/>
    </jnlp>

    No problem.
    Make sure your resources are set at the proper location. Could be that tje jni.jar is under a 'lib' folder?
    Normally you don't have to worry about deployment a lot if you are using like Netbeans 7.2 or higher.
    When you press 'Clean and build' it creates your deployed files in the 'dist' folder.
    You can change specification by adapting the build.xml file.
    Of course lot of different possibilities are available for deployment!
    You can find lot of info here:
    [http://docs.oracle.com/javafx/2/deployment/jfxpub-deployment.htm|http://docs.oracle.com/javafx/2/deployment/jfxpub-deployment.htm]
    Important to know is if you want to work with
    - a standalone application (self-contained or not)
    - with webstart
    - or with applets
    (In my case I'm using webstart, but also Self-Contained Application Packaging (jre is also installed!)

  • One View in multiple Windows

    Hi,
    This is rather a note than a question and written purely in the hope of Google finding it if I (or someone else) ever need it again:
    Situation: (V = view; W = window)
    is displaying a table
    has a view container with embedded in it
    opens as a popup
    contains
    also has a view container with embedded in it
    contains
    --> as a picture: [Link to ImageShack|http://imageshack.us/photo/my-images/684/constellation.png/]
    in words:
    A view showing a table is used in two other views . One of the using views is called in a popup window by the other using view .
    What happens in this situation is a dump with this error message in the browser:
    View Is Already Displayed in Window of Component {..}
    Details:
    As the error message says, may not be displayed by two windows at the same time. One might think that not displaying by making it invisible (either by using a parent container or other suitable element) should solve the problem...
    Let me tell you before: IT DOES NOT!
    Solution:
    To really "hide" you need to display a different view instead of it in its View Container element.
    The easiest way to do this is to add an EmptyView to the ViewContainer in , together with plugs to call the EmptyView and seperately.
    Now you have to fire the plug for the EmptyView just before opening the popup . After closing the popup you have to fire the plug for . -> Voila, the same view is used in both windows!
    Negatives:
    1. Obviously you really cannot show the view in both windows at the same time, but as a popup with more than a yes/no question usually hides most things below it, this should not be the biggest issue.
    2. When firing the plug for the view is built anew, meaning the whole WDDOINIT, ... running. Apart from having impact on your implementation of these methods, this might also be a pain in respect to performance.
    Hope this helps! If anyone has helpful comments or wants to create a picture for the solution, please post!
    Kind Regards
    Robert Schulz

    Finally got it-
    This is a new security feature added in version 9.3.3.
    Currently, when /workspace and /workspace/index.jsp commands are issued, a new instance of EPM Workspace is launched in a separate browser window. With the single instance feature, subsequent invocations of /workspace/ and /workspace/index.jsp opens items in EPM Workspace tabs, even when launched from an external URL. Single instance also prevents extra EPM Workspace windows from closing existing session(s) where multiple EPM Workspace windows were previously allowed.
    URL Parameter to Override Single Instance Behavior:
    By default, there can only be one instance of EPM Workspace on a client machine. However, there are instances where multiple sessions of EPM Workspace must remain open. For example, Financial Management may need to do a side by side comparison of applications. You can override the default setting to allow multiple window names with the URL parameter, multi_process=true appended to the EPM Workspace URL.
    TL;DR Use /workspace/index.jsp?multi_process=true to utilize multiple sessions of Workspace.

  • How to get the print logs to appear in the application logs folder of windows server 2008 r2

    Dear All,
    I am a SIEM professional at an IT firm. i am facing a problem. My SIEM solution has an agent for windows. this agent reads only logs from the application, security and system folder of windows event viewer. In server 2008 r2 the printer logs are clustered
    in and application and services/microsoft/windows/print services folder. The requirement of my management is that the siem solution should also be able to montior compliance of print policies. that can only be done once the the print logs are viewable in any
    of the three event vieweer folders i.e application, system.security. how can i configure windows to make its print logs visible in any of these three folders ?

    this may be helpful...
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/fe8892cc-fb6d-49c7-8b2d-c1f17df8e085/2008-r2-use-advanced-security-audit-policy-to-log-print-jobs?forum=winserverprint
    or post here...
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=winserverprint
    Best,
    Howtoto

  • C#/SharePoint -View State related issue while exporting data to excel

    We have web application based on SharePoint. We have a list view to display data based on Search Criteria. We have total of around 16000 data. When we try to export all data to excel it gives an error. The cause of the issue is:
    View State is used to save the state of page i.e. the previous state. When the export to excel link is clicked, the data present in the grid is actually saved in view state so that the overhead of again generating
    the data(as per the selection criteria) can be avoided. Now, this View state has a limitation of storage of these records. When we put in some selection criteria, the no. of records is less hence no problem in actually storing the view state. But when there
    is no selection criteria, 16306 records are too much to be stored in view state. Hence the error occurs.
    We tried to solve this issue by creating a compressor class and overriding two methods:
     LoadPageStateFromPersistenceMedium
    SavePageStateToPersistenceMedium
    This has resolved the issue with Export to Excel. However, there is now some issue in the paging of the list view. The list view has a column with hyperlink which opens related data in a form. While we click on the link in 2<sup>nd</sup>
    page of the list view, it displays data for the link in the 1<sup>st</sup> page at same row.
    Please suggest how to resolve this issue or any workaround for this

    We have web application based on SharePoint. We have a list view to display data based on Search Criteria. We have total of around 16000 data. When we try to export all data to excel it gives an error. The cause of the issue is:
    View State is used to save the state of page i.e. the previous state. When the export to excel link is clicked, the data present in the grid is actually saved in view state so that the overhead of again generating
    the data(as per the selection criteria) can be avoided. Now, this View state has a limitation of storage of these records. When we put in some selection criteria, the no. of records is less hence no problem in actually storing the view state. But when there
    is no selection criteria, 16306 records are too much to be stored in view state. Hence the error occurs.
    We tried to solve this issue by creating a compressor class and overriding two methods:
     LoadPageStateFromPersistenceMedium
    SavePageStateToPersistenceMedium
    This has resolved the issue with Export to Excel. However, there is now some issue in the paging of the list view. The list view has a column with hyperlink which opens related data in a form. While we click on the link in 2<sup>nd</sup>
    page of the list view, it displays data for the link in the 1<sup>st</sup> page at same row.
    Please suggest how to resolve this issue or any workaround for this

  • Flex 3 :Help needed in implementing View States

    Hi 
    I am new to Flex , i am trying to understand View States , tried for one hour but got confused .
    (Basically by seeing the examples i understood the concept , but failed to implement ) 
    Please help .
    Assume my requirement is at the load of the page , i want to show an Login Button and a Chnage State Button (common button) only .and when the Change State button is clicked on ,i want to show the Register Button .
    So for this i made two Forms , and a common button .
           <mx:Form id="RegForm">
                <mx:Button label="RegFormButton" id="RegFormButton"/>
            </mx:Form>
            <mx:Form id="loginForm">
                        <mx:Button label="LoginButton" id="loginButton"/>
            </mx:Form>
    <!-- A common button for both the States-->
      <mx:Button label="Change State"
                  click=""/>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" currentState="Register">
    <mx:states>
    <mx:State name="Register">         
    <mx:SetProperty   target="RegForm"   value="Register"/>
    </mx:State>
    <mx:State name="loginForm">
    <mx:SetProperty   target="loginForm"   value="Login"/>
    </mx:State>
    </mx:states>
    ( I think some how i can write the Logic to chnage to the current state to loginForm when user clicks with some inline code , but please tell me At the start of the page please tell me why I am not able to show the Register.

    sorry for posting a dumb question .
    I realized my mistake .

  • Jdev 11.1.2 - Getting view state of the page has expired. Reload the page.

    Hi All,
         I am Using Studio Edition Version 11.1.2.0.0 (11g Release2).
         Whenever I do some changes to Jspx file and
         trying to perform some operations in the Form Session got Timeout.
         In the JDEV Log recorded the message as:
         Do we need to do any changes in settings?.
         [01:23:15 PM] Updated /C:/Users/arenuk/AppData/Roaming/JDeveloper/system11.1.2.0.38.60.17/o.j2ee/drs/TestSample/ViewControllerWebApp.war
         <LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RESTORE_VIEW 1
         javax.faces.application.ViewExpiredException: viewId:/view/src/jspx/Countries.jspx - ADF_FACES-30107:The view state of the page has expired. Reload the page.
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._restoreView(LifecycleImpl.java:718)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:341)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:204)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         And in one of my earlier threads I got solution (fast-swap Option need to be selected)
         for Null Pointer exception after Recompilation of Java classes in Debug Mode.
         Durga.

    Hi Arun,
         The word Form misleads you i think so its not Form. Jspx only.
         I have created a small sample application using HR database.
         Created CountriesEO using countries table.
         Created Countries.jspx, in that created one filterable table using CountriesVO.
         Run the Countries.jspx page is rendered on the Browser.
         Now if I do any change say for Ex: Given editingMode="editAll" to the Table Save and
         now come to the page already Running on the Browser and applied Filter for
         Country Name column this Error comes.
         1. Are you running the App in Debug mode? -- In Both Run & Debug Modes it comes.
         2. Is there any backing bean for the jspx page? -- no backing Bean created.
         Durga.
    Edited by: Durga on Aug 26, 2011 3:22 AM

  • Change base view state from a custom component

    I'm pretty new to flex and I'm having a small issue in change the view state from a component.
    My Application have 2 custom components called userlogin and main menu. In the main application page I have userlogin component in one state and the main menu component in another. I'm trying to change the state if the login in successful from user login to main menu. I have the following function written inside the login component.
    private function IsUserLoggedIn(evt:ResultEvent):void
                    if (evt.result.islogin.toString() == "true")
                        currentState = "MainMenu";
                    else
                        Alert.show("Login failed, please try again.", "Login Failed");
    This code worked when I had all the controls in the main page. But then I created components and included them in to components and now when the login is success, its giving the following error.
    ArgumentError: Undefined state 'MainMenu'.
        at mx.core::UIComponent/getState()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UI Component.as:9908]
        at mx.core::UIComponent/findCommonBaseState()[E:\dev\4.0.0\frameworks\projects\framework\src \mx\core\UIComponent.as:9928]
        at mx.core::UIComponent/commitCurrentState()[E:\dev\4.0.0\frameworks\projects\framework\src\ mx\core\UIComponent.as:9750]
        at mx.core::UIComponent/setCurrentState()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\ core\UIComponent.as:9701]
        at mx.core::UIComponent/set currentState()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:6087 ]
        at components::UserLoginForm/__btnSubmit_click()[C:\Projects\WarrantyAutomation\src\componen ts\UserLoginForm.mxml:60]
    I'm sure this has something to do with accessing the states from a custom component, but I do not know how to change the state to the main menu. Please help me with this. Any help is greatly appriciated.

    Hi dasun1981,
    private function IsUserLoggedIn(evt:ResultEvent):void
                    if (evt.result.islogin.toString() == "true")
                        currentState = "MainMenu";
                    else
                        Alert.show("Login failed, please try again.", "Login Failed");
    If I am right the above function is in your userlogin component and the two components "userlogincomponent" and "maincomponent" are in main application file and the states were also defined in main application file.
    But in the function above the currentState refers to the state of the userlogin component and not the main application ...but the states are defined in main application file...that's the reason why the exception was thrown...
    Instead you replace the line in the above function with the below line:
    Application.application.currentState = "MainMenu";
    Please mark it as answer if it helped you.
    Thanks,
    Bhasker Chari

  • Issue with : Stateful BSP Applications: New State Management Option

    Reference:weblog by Thomas Jung -  /people/thomas.jung3/blog/2004/11/09/updated-stateful-bsp-applications-new-state-management-option
    I see a comment by one user to send the complete code... I am not sure what else can be sent   - try it out rather than getting spoon-fed. - getting offline - sorry...
    I had two issues with this ITSM way of session handling.
    First - if you are using an SP42 environment, check CL_BSP_RUNTIME=>ON_SESSION_CMD() to see if CANCEL is defined as an option. If not make sure that you use &sap-sessioncmd=CLOSE" instead of the &sap-sessioncmd=CANCEL" . If CANCEL is not defined , it will give you shortdumps...
    Second - when I closed the window, the session was not terminated. I used onbeforeUnLoad="exitBSPApplication(); instead of onUnLoad="exitBSPApplication(); and it worked fine. Not sure if it has any other issues.
    But now I am facing a new issue... all but one application is not ending... I have no clue on why this is happening.. I am still checking..
    Thanks Thomas, you are the best, as always...

    Thanks for checking the code in your system.
    After some investigation, I found the behavior as explained below.
    If the actual url has any fields passed as parameters, e.g.. /default.htm?var1=a&var2=2 ...
    - if I use CANCEL as the option, a shortdump is created and the session is not closed. if I use CLOSE, Session is terminated and no shortdump happens.
    If the actual url does not have any parameters, e.g.. /default.htm ...
    - CANCEL does the work, but CLOSE does not exit the session.
    In my applications I used request->get_form_fields to see if there are any parameters, and if there are, then I use CLOSE as the option and else, I use CANCEL. So now, the session
    management works beautifully...
    There is a good chance that I am doing something wrong here too.

  • Reload data when chaning view state

    Hi all,
    I have a main application ("MTF.mxml") and two view states in
    the application (myChallenges) and (responses). In the view states,
    I have inserted two customized components.
    The MyChallenges-component is a list of challenges and when a
    challenge is selected, I switch from the myChallenges-view state to
    the responses-view state using a costum event dispatcher.
    So far so good,
    The problem is that when I change to the responses-view state
    and therefore to my responses-component, the data loading on the
    panel of the component is only the request that I get when I for
    the first time enter the responses-component. When I go forward in
    my application from the responses-view state to the
    myChallenges-viewstate to pick a new challenge, the responses-view
    state does not reload with the new challenge id - actually, no
    action script code in the responses-component is processed at all!
    I figure it has something to do with the component's loading
    events.
    I use the creationComplete-tag property in the component to
    activate an init()-function to handle my ActionScript code. But
    this seems to activate the function only when the component is
    created for the first time!
    How do I handle this? I tried using the enterState-property,
    but with no succes!
    Please help me, if anyone knows the answer!

    Thank you for the quick feedback.
    The enterState-property works fine, it seems that the Action
    Script code loads every time.
    Actually, what I really wish is that the component "reloads"
    every time. The problem is that my actionscript code adds elements
    to the scene, edits properties and so forth, everything depending
    on what challengeId there is given to the component. When the
    component has completed the code once, variable-values, elements
    and so forth are still kept until the state is entered again. Is it
    not possible to actually reload the component - not just making
    "show/hide" it, as I do now?

  • Error when deploy the Planning SampAp application view

    When deploying, the job console shows:
    Started Time : 2008年3月4日 13:23:49
    Submitted Time : 2008年3月4日 13:23:49
    Last Updated Time : 2008年3月4日 13:23:52
    User Name : admin
    Process Name :
    Thread : 0
    Server : DimServer
    Detail : Initiating Product Action...
    Inspecting Deployment History...
    Generating Headers and Callback Information...
    Generating Application Data...
    Preparing Product Request...
    Posting Product Request...
    Product Response:200...
    Waiting For Status Updates...
    and it was stocked at 9%. After a while, the job console showed:
    Started Time : 2008年3月4日 11:41:34
    Submitted Time : 2008年3月4日 11:41:34
    Last Updated Time : 2008年3月4日 11:46:45
    User Name : admin
    Process Name :
    Thread : 0
    Server : DimServer
    Detail : App Creation failed with Exceptioncom.hyperion.planning.HspRuntimeException: Unable to locate dimension information to load. Dimension: Currency     at com.hyperion.planning.HspDimensionLoader.parseModelForPlanningDimen(Unknown Source)     at com.hyperion.planning.HspDimensionLoader.parseModelForPlanningDimen(Unknown Source)     at com.hyperion.planning.HspDimensionLoader.parse(Unknown Source)     at com.hyperion.planning.HspDimensionLoader.load(Unknown Source)     at com.hyperion.planning.HspDimensionLoader.load(Unknown Source)     at com.hyperion.planning.utils.HspApplicationCreator.loadOutline(Unknown Source)     at com.hyperion.planning.utils.HspApplicationCreator.load(Unknown Source)     at com.hyperion.planning.utils.HspApplicationCreator.createApplication(Unknown Source)     at com.hyperion.planning.appdeploy.HspAppDefinition.deployAppFromXML(Unknown Source)     at com.hyperion.planning.appdeploy.HspAppDefinition.access$000(Unknown Source)     at com.hyperion.planning.appdeploy.HspAppDefinition$1.run(Unknown Source)
    I've created a new datasource for this app, but still faced the same problem.
    PS: I also found some error when validate the SampAp application view, so I've changed it a little. I don't know if the application view design may cause this problem. Thanks for your reply.

    Hi,
    From another post which I think relates to same sort of issue the solution was :-
    On your server > Change your "Standards and formats" into English(United States) in "Regional and Language Options".
    This was due to the currency format being in chinese.
    Cheers
    John

  • Change View State Based On Screen Orientation?

    I'd like my app to change layouts based on the current screen orientation.  I believe this is done through view states.  I have three questions...
    1) How do I check the current orientation?
    2) Is there an event listener that will tell me when the orientation changes?
    3) How do I toggle between view states?
    Thank in advance!
    UPDATE: I figured out the answer to question 3...
    currentState = 'yourStateName';
    UPDATE II: I figured out the answer to question 1 as well.  I simply used the Capabilities object to determine the screens current width & height, then compare the two.  All of this is in a function that gets called when the app launches:
    public function checkOrientation():void
         var screenWidth:Number = Capabilities.screenResolutionX;
         var screenHeight:Number = Capabilities.screenResolutionY;
         if (screenWidth > screenHeight) {currentState='yourStateName1';}
         else if (screenWidth < screenHeight) {currentState='yourStateName2';}
    Now all I have to do is figure out how to call this function when there is an orientation change.  I tried the code below but get the included error:
    stage.addEventListener(Event.RESIZE, checkOrientation); // ERROR: Access of undefined property stage
    Why can't access the "stage" property???

    Hi,
    I work on platform using flash bulider 4, later i finsh the platform but i meeting one problem is resize project to work with diffrent size screen, but i can't solve the problem, i need platform work with diffrent Screen Orientation without problem could some help  please, this that what i done in code please help.
    Thanks,
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:rtc="http://ns.adobe.com/rtc" width="100%" height="100%" backgroundColor="#51575D">
           <fx:Style source="Client.css"/>
             <fx:Script>
            <![CDATA[
                import mx.events.FlexEvent;
                import flash.events.FullScreenEvent;
                protected function txtUsername_enterHandler(event:FlexEvent):void
                    // TODO Auto-generated method stub
                    connectRoom.login();
                    labelUsername.visible = false;
                    txtUsername.visible = false;
                function fullScreenRedraw(event:FullScreenEvent):void
                    if (event.fullScreen)
                        width  = Capabilities.screenResolutionX;
                        height = Capabilities.screenResolutionY;
                    else
                        width = stage.stageWidth;
                        height = stage.stageHeight;
            ]]>
        </fx:Script>
           <fx:Declarations>
             <s:Move duration="500" id="moveEffect"/>
            <s:Resize duration="500" id="resizeEffect"/>
        </fx:Declarations>
                  <mx:Image x="0" y="0" width="100%"  height="100%" scaleContent="false" autoLoad="true" source="greenbackground.png"/>
                                     <rtc:ConnectSessionContainer horizontalScrollPolicy="off" verticalScrollPolicy="off" id="connectRoom" autoLogin="false"
                                           roomURL="https://collaboration.adobelivecycle.com/account/yourroom"
                                           y="20" width="95%" height="90%" backgroundColor="#212D4B" contentBackgroundColor="#F6F6F0" borderAlpha="1.0" cornerRadius="30" contentBackgroundAlpha="1.0" backgroundAlpha="0.4" x="33" dropShadowVisible="true" borderVisible="true">
                        <rtc:authenticator>
                                <rtc:AdobeHSAuthenticator userName="{txtUsername.text}"/>
                     </rtc:authenticator>
                          <rtc:SimpleChat width="293" height="258" x="2" y="165" chromeColor="#384D91"/>
                           <rtc:WebcamSubscriber y="4" displayUserBars="true"  width="292" height="158" x="2"/>
                     <rtc:AudioSubscriber id="audioSub" width="0" height="0"/>
                                         <rtc:FileShare height="135" width="290" x="5" y="425" chromeColor="#284C79"/>
                        <rtc:ScreenShareSubscriber id="scrShare" width="81%" height="99%" y="4" x="299"/>
        </rtc:ConnectSessionContainer>
        <s:Label id="labelUsername" y="230" text="   Enter a username and press Enter:&#xd;" color="#B5C40D" fontWeight="bold" horizontalCenter="0"/>
        <s:TextInput y="250" width="229" textAlign="center" id="txtUsername" enter="txtUsername_enterHandler(event)" color="#090909"
    horizontalCenter="0" height="27" fontWeight="bold" borderAlpha="0.99" contentBackgroundColor="#989A9C"/>
    </s:Application>

Maybe you are looking for

  • How to set-up a wireless system for Mac and Windows?

    In a few weeks I will visit my brother in Tennessee, USA who has a cable modem (very good speed - "Comcast") connected to one desktop PC (Windows XP I believe). I want to spend 2-3 weeks at his home using my MacBook core duo (May 2006 version) via wi

  • File path as argument

    I need to pass the file path as argument to my java code. when i execute the code: java myJavaClass c:\folder\filename.txtWhen i use the above command i get an error message saying filename.txt does not exist. but such a file exist in the folder spec

  • Conversion of an Adobe XSTRING to XML

    Hi All, I m working on an Interactive Adobe form and I have bound the pdf_source of the Interactive Form to an attribute which is of type XSTRING. Is there a function module through which I can convert this binary form of data to an XML. I am current

  • Problems with importing in FCPX

    I am having problems with importing my recent holiday video intoFCPX  I have copied all the files from my Panasonic camera into my separate hard drive and they all appear there correctly. When I connect the camera to the computer it automatically ope

  • Why is there unwanted white space added to all .jpg/.png when "inserted" into Dreamweaver CS4?

    I have two seperate sites/seperate root folders that I am building right now and every image that I insert into Dreamweaver has an extra white space added to the left of every image. Please help, I must have checked/unchecked something in my preferen