How to destroy the component

Hi friends...
How to destroy the componenet.....
Is it possible?....
Thanks& regards
Mathi

hi,
How to destroy the window through coding....
Because
component1
view1--Nameis v1
view2--Nameis v2
component2
view1--Nameis v3
view2Nameis v2
The diagram flow is
view1>view2>view3>view1>view2-->view3
But my project is work Like
view1>view2>view3>view1>not go to view2-->again and again view1 to view3...
Is any Possiblilities to destroy the componenet through coding...
Thanks & regards
Mathi

Similar Messages

  • How to construct the component tree in my custom component?Help!

    Hi, i am writing a custom component like this:
    public class HtmlCategory extends HtmlPanelGrid
         public void processRestoreState(javax.faces.context.FacesContext context,
                java.lang.Object state)
              setColumns(1);
              HtmlCommandLink link=new HtmlCommandLink();
              link.setValue("Let's Bingo");
              MyUtil.setActionListener(context,link,"#{temp.mytest}");
              UIParameter param=new UIParameter();
              param.setName("name");
              param.setValue("Robin!");
              link.getChildren().add(param);
              param.setParent(link);
              getChildren().add(link);
              link.setParent(this);
              super.processRestoreState(context,state);
    }         you see, i want to construct the compont tree at Restore View phase this way,because the structure of the component tree will always be the same, so i don't the user to write extra code.
    But the children of the component are not rendered,the renderer of the HtmlCategory component just extends the HtmlGridRenderer(myfaces) directly,and always calls the "super" methods in the encode methods of the renderer.
    I got a message from the console:
    Wrong columns attribute for PanelGrid id0:id4: -2147483648
    but i have set the columns attribute in the code above, so what's happening? or please give some advice about how to render the component tree by myself in Restore View with the tree constructing code in the custom component class code,just lke the code above.
    Best Regards:)
    Robin

    Well, i don't know if i have got my question clear.
    usually, according to the tags you use in the jsf page, a component tree will be created at the Restore View phase,for example:
    <f:form>
      <h:panelGrid ...........>                         
              <h:dataTable ................>
              </h:dataTable>
       </h:panelGrid>
    </f:form>but because i am writing a component for my web app, all the child components and their attributes are not likely to change. so i want to reduce the tags into one custom tag, and construct the component tree internally by myself.But it is not the case of backing bean.So i wrote the the code in the method:
    public void processRestoreState(javax.faces.context.FacesContext context,java.lang.Object state)as it is shown in my orginal message.But it seems that it is not right way to construct my component tree.So where should i put the code that construct the component tree?Overriding the method :
    public void processRestoreState(javax.faces.context.FacesContext context,java.lang.Object state)is not the right way?
    Best Regards:)
    Robin

  • How to change the component styles (inside panelFormLayout.)

    Hello friends,
    Can anyone help me, How to change the component styles where components (af:inputtext) inside af:panelFormLayout.
    i changed all of the components one by one style, inlinestyle .. from the inspector. By result is nothing.
    how to extend blafplus-rich and override some of the components style?
    thanks for your helps

    thanks alright but i want to learn again after this.
    Which component has a content or border or how can i find list components attributes for change style?
    For example i want to change document content pane, what will i write to css. i am little knowledge about css.
    Thanks for help

  • How  we get the component at front or back in a Jpanel

    How we get the component at front or back in a Jpanel. I want to manage the Z-axis position of the components in the Jpanel.

    [url http://java.sun.com/docs/books/tutorial/uiswing/components/layeredpane.html]How to Use Layered Panes

  • F2 on Popups? (Or how to get the Component if F2 is not working)

    Hello Experts,
    I wonder if somebody has a tip how to get the component of popups?
    The F2 Help is not working there.
    The Popup I'm actually looking at is called by a button. Is it possible to find out the called component by looking at the button Event? (I have tried - but the source does not tell me any component)
    Thanks for answers...
    Regards
    Chris

    Chris,
    F2 should definitely work if it is a UI component.
    You see pop ups on button clicks and F4 value helps. F2 should work in these cases.
    For some attributes with F4 help, a DDIC search help is attached. Here F2 does not work.
    Anyhow to find out which component it is calling, you use this method
    check in the event handler(for button pop ups) or in the outbound plugs specifies in GET_V method(for F4 pop ups) if there is a code like
    CALL METHOD comp_controller->window_manager->create_popup etc.,
    A Component Usage will be passed to the method. You can check for the component usage in the Run Time Repository.
    You will get the component details.
    Regards,
    Masood Imrani S.

  • How to display the Component view in the Pop up

    HI.
    I created one Z Component.
    In that i put one Button name as a POPUP.
    when i press that Button i want open an another component View or Same Component another View.
    How it is possible.
    I am writing the code in Event Handler.
    CALL METHOD COMP_CONTROLLER->IF_BSP_WD_WINDOW_MANAGER~CREATE_POPUP
      EXPORTING
        IV_INTERFACE_VIEW_NAME = 'ZKRI_NAVIGATION/DetailsOV' 
        IV_USAGE_NAME          =  'ConfigStdAlone'
        IV_TITLE               = 'Hello'
      RECEIVING
        RV_RESULT              =  confirm_popup.
    confirm_popup->set_on_close_event( iv_event_name = 'POPUP_CLOSED' iv_view = me ).
      confirm_popup->open( ).
    But i did not get the Popup with the view.
    How it is possible. Please expalin how to call another view in pop up with in the Same Component.
    How to call another component view

    Hi,
    Did you create a component usage of the Z component in the Run time Repository ?
    You can look into any of the standard fields with an F4 help for sample code..like Business Partner etc.,
    Regards,
    Masood Imrani S.
    Edited by: Masood Imrani on May 12, 2009 4:23 PM

  • How to get the component name in webdynpro

    Hi all,
            how can i get the name of the webdynpro component. The component is being displayed in the portal. Now i need the component name for this.Can any one suggest of how to get this.
    Regards,
    Kalyan Chakravarthi.M

    Hi ,
    get the object of  IF_WD_COMPONENT , by calling the method wd_get_api( ) of wd_component attribute , then call the method GET_COMPONENT_INFO( ) ,it will return the object of IF_WD_RR_COMPONENT in that call the method GET_NAME( ) .
    Regards
    Yash

  • How to install the component to view its snap-in.

    hello,experts,
    as per my subject pls help me with this querry.install the component to view its snap-in.
    Regards
    Pankaj .

    Hi,
    As per my understanding you wanted to install a SAP Component so that you can view it in SAINT
    The Steps are as follows
    1. Download the Component from Service market place
    2. Uncar it and put it in EPS\in directory
    3. Use the transaction SAINT to install the  component

  • How to destroy the Vi

    I have the project which is having the 5 top level Vis and many sub vis.All the top vi's are running at the time.I want to destroy the one sub vi.
    Can you help me.
    Regards,
    Vijay

    Maybe he is trying to close one of the 5 top level Vis
    -FraggerFox!
    Certified LabVIEW Architect, Certified TestStand Developer
    "What you think today is what you live tomorrow"

  • In webdynpro for abap, how to set the component of "inputfield" resizable??

    hi,expert.
      there is a property 'resizable' both in components: TEXT and INPUTFIELD,  but it only effected in TEXT component,and not in INPUTFIELD component
      i don't know how to make inputfield resizable.....hope anyone can give  some suggestions.
    thanks in advanced.

    What release level are you working on? I checked my local 7.02 system and I checked SAP's internal developement system where Web Dynpro Froundation gets created and neither had a resizable property on the inputfield.
    What do you mean by TEXT?  There is no UI element called TEXT. We have TextView and TextEdit. Neither of those have a resizable property either.

  • How to identify the component is an assebly and Phantom component

    Hi ,
    I am working on BOM. If You see the transaction cs03 (go with any bom  ) inside we can see the componenets......
    These componenet having the check boxes for Assembly and Phantom componenet. If the check box is cheked we will consider as that component is Assembly Or Phantom....
    My question is how to identy this at table level..i don't see any field related to these check boxess in SRPO , STKO and MAST.
    Please do need full.
    Regards,
    Raja.K

    Hi Raja,
    If you can handle ABAP, please use FM 'CS_BOM_EXPL_MAT_V2' to explode your Bom
    Write something like this :
    *     Tables  "call CS_BOM_EXPL_MAT_V2 "
    DATA: BEGIN OF stb OCCURS 0.
            INCLUDE STRUCTURE stpox.
    DATA: END OF stb.
      CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
        EXPORTING
          auskz                 = ' '
          capid                 = 'PP01'
          datuv                 = sy-datum
          emeng                 = '1.000'
          stlan                 = '1'
          stlal                 = mast-stlal
          mtnrv                 = matnr
          mehrs                 = 'X'
          mmory                 = '1'
          stpst                 = '0'
          werks                 = werks
        IMPORTING
          topmat                = selpool
          dstst                 = dstst_flg
        TABLES
          stb                   = stb
          matcat                = matcat
        EXCEPTIONS
          material_not_found    = 4
          no_plant_data         = 8
          no_bom_found          = 12
          no_suitable_bom_found = 16.
      SORT stb BY idnrk.
    The field which will indicate you wether your component is either an Assembly or a Phantom is stb-dumps ( EQ space , for assembly ).
    Hope this helps,
    Erwan

  • How to access the component id from another mxml?

    I tried to set the data to a DataGrid in another mxml, but the complier said there's a problem, like this:
    the components/FileDataGrid.mxml:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
         xmlns:s="library://ns.adobe.com/flex/spark"
         xmlns:mx="library://ns.adobe.com/flex/mx" >
        <mx:DataGrid x="150" y="50" id="dgFile">       <mx:columns>
             <mx:DataGridColumn headerText="COL"/>
           </mx:columns>
        </mx:DataGrid>
    </s:Group>
    the main mxml:
    <?xml version="1.0" encoding="utf-8"?>
    <mx: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" minWidth="955" minHeight="600"
              xmlns:custom="components.*" layout="absolute">
         <fx:Declarations>
              <!-- Place non-visual elements (e.g., services, value objects) here -->
         </fx:Declarations>
         <fx:Script>
              <![CDATA[
                   private function loadDG():void
                        var arrFile:Array= new Array("abc","123");
                        dgFile.dataProvider = arrFile;
                        trace( "The data has successfully loaded" );
              ]]>
         </fx:Script>
         <s:Button  x="300" y="50" label="Load"  click="loadDG()" />
         <custom:FileDataGrid/>
    </mx:Application>
    The compiling error is :
    Multiple markers at this line:
    -1120: Access of undefined property dgFile.
    -arrFile
    Anybody can tell me, how to achieve it?
    Thanks a lot!

    Hi, You cant access it like this. To access, first give some id to the custom component you have added.
    i.e
    <custom:FileDataGrid id="custFDG"/>
    Then you can acces it from script,
    custFDG.dgFile.dataProvider = arrFile;
    Hope this shud work fine.
    Thanks.
    Abhinav

  • How to destroy the resource contained in resourcebundle.getBundle

    Hi
    I have one problem here.
    I m using ResourceBundle class to load the local values
    from portal_local.properties.
    well its works fine but when i make some changes in this file.The changes r not reflected in the result.Resourcebundle reflects the older values cached in it.
    is their any way so that we can destroy that cache contained in resourcebundle and then load the new file again.
    thanks for any help
    Map globalProperties = PropertyUtils.toMap(ResourceBundle.getBundle(global));
    the whole function is like that
    private static Map loadResources(String global, String local) {
    //getTimeStamp();
    Map globalProperties = PropertyUtils.toMap(ResourceBundle.getBundle(global));
    try {
    globalProperties.putAll(PropertyUtils.toMap(ResourceBundle.getBundle(local)));
    } catch (MissingResourceException e) {
    // We only bother with the local resources if the file's present. The
    // getBundle() will fail if portal_local is missing
    return globalProperties;

    My problem is also that the resource bundle cache cannot be cleared.
    1. you can load a propertyfile from classpath (resourcebundle), but it is cached, and read only once.
    2. you can load a propertyfile if there is where your class is, but then users should see java classes, which is not the best i think.
    At last somebody should tell me how to create a user friendly customizable app, which can be modofied by properties at runtime!

  • How to get the Component id (HTMLB id)

    Hi all,
    I created an application that has two list boxes and one commend button. While clicking the button I need to know how many list items in the list box. Is this possible?
    Anybody can guide me for this.
    Helpful answer will appreciate.
    Thanks & Regards,
    Kathiresan R

    hi,
    In case you are using HTMLB controls what you are looking for is posible...
    Do the below mentioned way...
    As you need to get the number of items inside the selected list box on action of a button, it means first you need to catch the action generated by the button...
    So inside your button, under button tage you can add/have a property called "OnClick("Method Name")"...
    so now you define the method inside your controller...
    public void method_Name(Event event)
    //first het the list box ID:
    ListBox lb=(ListBox)this.getComponentByName("Your_ListBox_Name");
    now with ID
    you can do,
    int size=lb.getSize() //Returns the number of elements inside the list box...
    for more information please have a look at the below thread...
    [ListBox|http://help.sap.com/javadocs/NW04S/SPS09/hb/com/sapportals/htmlb/ListBox.html]
    Regards,
    Srinivas.

  • How to destroy the worker thread

    My problem is I have a swing client which has 2 buttons, search and cancel. In search button I am creating a new worker thread which will be calling my EJBs method. Thus I have an event thread and a worker thread running. Now when I click cancel button I want to interrupt my worker thread and screen should enable the search button but what happens is when I click cancel button it still continues with the worker thread even though I am calling workerthread.interrupt() method and this results in showing the result of the EJB's method on the screen. how can I prevent the worker thread to stop executing the ejb's method and come back to normal mode.

    This application its a socket server, Im doing:
    main {
    Thread1 - createServer();
    Thread2 - createLogging();
    waitForServerShutDown();
    the createServer method must be placed in a thread, its must not blocks the application because createLogging(); must be executed just after the server was created and createLogging(); doesnt blocks the application then... I must block the main{} to keeps application running

Maybe you are looking for

  • Ebay app - Ebay email links wont open in ebay app

    Hello, I have new items on saved searches emailed to me daily. When I first used my iPhone when opening an item from an email it opened in the eBay app in mobile format, I disabled this and chose for them to open in full format in safari. How do I de

  • Getting LONG RAW from remote database

    Hi, I have a table in my local database that has a LONG RAW column . I have another table of similar structure in a remote database (so it has LONG RAW as well). I would like to transfer data including LONG RAW data from the remote database into the

  • I reinstalled Creative Suite 6 Design & Web Premium, now when I open a program it says error 213:19

    It says there is a problem with the licensing of the program. I reinstalled it on my laptop after it went for repairs and got a new hard drive.

  • PCI-7342 Digital I/O example

    Does anyone have an example of reading/writing to the Digital I/O ports on a PCI-7342? (2-Axis Stepper/Servo Controller with Digital I/O) I'm very new to Labview and am having difficulties using the labview environment commands. Right now I have a si

  • Import Windoze OL2000 PST mail into Mac OSx MS Entourage2004 or Osx Mail

    Anyone aware of any Mac based scripts/conversion utilities that will convert within the following caveats/parameters?: * Must run on OSx 10.4.10+ Intel C2D - (Yes I'm aware of Windoze based options to say re-export PST to CSV/Tab delim formats etc as