"Resetting" a component

Hi,
I have a WD component with two views A and B. The other view B has actually another WD component embedded. I can navigate between these two views.
Now I would like to somehow "reset" the other component (in view B) when leaving it (=navigating back to A). By resetting I mean that all the context nodes would be empty and cotroller attributes initial.
Is there some easy way to reset the other component?
Regards,
Pa

I finally decided to invalidate the root node of my main controller. I am still a bit unclear that how to handle all the view contexts also (since they have their own complex contexts). But I think that I will manage this by myself. Thanks for help.

Similar Messages

  • Reset custom component

    Hello!
    I have an app with some states.
    Each state shows a different custom component.
    My problem is that if someone types somthing in one of the states then changes state and then comes back the text will still be there.
    Is there a way to reintitialize the custom component on each state chage or do I have to create functions to reset everything myself?
    Thank you!

    Ok, thank you.
    Were they only Form fileds it would have been nice and easy.
    I have some AMF calls etc.
    I could probably remove the component with removeChild and add it when it's accessed again I guess, but that doesn't seem too elegant.

  • Reset TextArea Component

    Hi All ... Ok thi smay be a simple question, but being new,
    i'm still finding my way around Flex/Actionscript.
    OK...I have a component with a ComboBox and a TextArea. I
    make an HTTP call to an xml file which loads the "name" into the
    combo and the "description" into the textArea. I have a function
    that sets the selectedIndex=0 every time the page is shown. But how
    can i set the textArea back to the top of the text that is shown.
    <mx:Script>
    <![CDATA[
    import mx.rpc.events.ResultEvent;
    [Bindable]
    private var xmlWTFacts:XMLList;
    [Bindable]
    private var xmlWTC:XMLList;
    private function initXML(event:Event):void {
    wtFacts.send();
    wtCourses.send();
    private function resetWhitetime(event:Event):void {
    vsWhitetime.selectedIndex = 0;
    private function resetFacts(event:Event):void {
    cbWTFacts.selectedIndex = 0;
    private function resetTraining(event:Event):void {
    cbWTCourses.selectedIndex = 0;
    private function wtfRH(event:ResultEvent):void {
    xmlWTFacts=event.result.fact as XMLList;
    private function wtCRH(event:ResultEvent):void {
    xmlWTC=event.result.level as XMLList;
    ]]>
    </mx:Script>
    <mx:HTTPService id="wtFacts" url="./xml/wtfacts.xml"
    result="wtfRH(event)" resultFormat="e4x"/>
    <mx:HTTPService id="wtCourses" url="./xml/wtcourses.xml"
    result="wtCRH(event)" resultFormat="e4x"/>
    <mx:LinkBar id="lbWhitetime" x="10" y="5" height="30"
    dataProvider="vsWhitetime"/>
    <mx:ViewStack id="vsWhitetime" y="40" width="100%"
    height="100%">
    <mx:Canvas label="Facts About White Time" height="510"
    width="860" show="resetFacts(event)">
    <mx:HBox x="10" y="10" width="840" height="450"
    horizontalAlign="center" verticalAlign="middle">
    <mx:VBox width="300" height="430"
    horizontalAlign="center" verticalAlign="middle">
    <mx:Label width="250" styleName="myWTLbl" enabled="true"
    textAlign="center" text="A Short List Of Facts"/>
    <mx:Label width="250" styleName="myWTLbl" enabled="true"
    textAlign="center" text="About White Time"/>
    <mx:ComboBox id="cbWTFacts" width="250"
    styleName="myWTLbl" dataProvider="{xmlWTFacts}" labelField="number"
    />
    </mx:VBox>
    <mx:VBox width="500" height="430"
    horizontalAlign="center" verticalAlign="middle">
    <mx:Text width="300" height="200" styleName="myWTTxt"
    text="{cbWTFacts.selectedItem.description}" />
    </mx:VBox>
    </mx:HBox>
    </mx:Canvas>
    <mx:Canvas label="Training Course" height="510"
    width="860" show="resetTraining(event)">
    <mx:HBox x="10" y="10" width="840" height="450"
    horizontalAlign="center" verticalAlign="middle">
    <mx:VBox width="300" height="430"
    horizontalAlign="center" verticalAlign="middle">
    <mx:ComboBox id="cbWTCourses" width="250"
    styleName="myWTLbl" dataProvider="{xmlWTC}" labelField="name"/>
    <mx:Spacer height="200"/>
    <mx:Text width="200" styleName="myWTTxt" enabled="true"
    height="30" text="{cbWTCourses.selectedItem.cost}"/>
    <mx:Text width="200" styleName="myWTTxt" enabled="true"
    height="30" text="{cbWTCourses.selectedItem.duration}"/>
    </mx:VBox>
    <mx:VBox width="500" height="430"
    horizontalAlign="center" verticalAlign="middle">
    <mx:Label width="400" styleName="myWTLbl" enabled="true"
    text="{cbWTCourses.selectedItem.name}" height="30"/>
    <mx:TextArea id="ta1" width="400" styleName="myWTTxt"
    editable="false" wordWrap="true" enabled="true" height="125"
    text="{cbWTCourses.selectedItem.description}"/>
    <mx:TextArea id="ta2" width="400" styleName="myWTTxt"
    editable="false" wordWrap="true" enabled="true" height="250"
    text="{cbWTCourses.selectedItem.outline}"/>
    </mx:VBox>
    </mx:HBox>
    </mx:Canvas>
    </mx:ViewStack>
    </mx:Canvas>
    Many thanks for your help
    Shihan67

    Thanks Jobinesh.I got the solution from this thread
    Re: fields not getting cleared on rollback

  • Possible to reset component metrics in OEM?

    Is it possible to reset the component metrics in OEM for a given composite app?
    I'd like to run a baseline performance test, reset the metrics, then do a revised run & profile the change.
    This is straightforward in OSB, but I haven't seen a way of doing it in OEM.
    thanks
    Garret

    Hi...
    If you are referring to a MobileMe account, try this support article  >  Mac OS X: Resetting the SyncServices folder
    If instead you are referring to restarting the AMDS, for Mac OS X v10.6.8 or earlier > iTunes: How to remove and reinstall the Apple Mobile Device Service on Mac OS X

  • Reset the UI component

    Hi
    i wrote my own method in session bean(JPA application) to insert record in tables. and i bind the method in jspx page. if i click to save its working fine.if i click cancel i want to reset the component i tried by using this code
    inputText1.resetValue();
    but it is not reseting the values. its show the values what i entered.
    i tried the same code in simple page with out binding the values or button its working fine
    Thanks and Regards
    purush

    hi
    I used this code to reset the values in text box.
    what i did is right ? please give suggestion
    FacesContext ctx = FacesContext.getCurrentInstance();
    Application app = ctx.getApplication();
    ValueBinding bind = app.createValueBinding("#{bindings.id.inputValue}");
    ValueBinding bind1 = app.createValueBinding("#{bindings.userName.inputValue}");
    ValueBinding bind2 = app.createValueBinding("#{bindings.id1.inputValue}");
    ValueBinding bind3 = app.createValueBinding("#{bindings.firstName.inputValue}");
    ValueBinding bind4 = app.createValueBinding("#{bindings.lastName.inputValue}");
    bind.setValue(ctx,null);
    bind1.setValue(ctx,null);
    bind2.setValue(ctx,null);
    bind3.setValue(ctx,null);
    bind4.setValue(ctx,null);

  • Colorista II not reseting parameters when double clicking in PP CS6

    I'm using Colorista II in Premiere Pro CS6 for the first time. Everything seems to operating properly except for the reset function within the tools - as opposed to the global reset, which does work.
    From the tutorial, I understand that double clicking within whatever tool you're using will reset the component.
    Bumming me out, no way to possibly work without this functionality.
    Anyone have this problem or better yet, know how to fix it?
    Thank you,
    Greg 

    This only works in AE, apparently it's the way PP handles stuff is why it won't work. But you should send a feature request/bug report to Adobe.

  • Component Usage

    Hello all.
    I am currently building a prototype application. I have a menu on the left side with links. When I click on the link the embedded interface views of the used components gets displayed on the right side. Now when i switch back to a component i "visited" before i can see that the state of this component was maintained (e.g not the starting view of this embedded component is shown but the third view).
    I want to reset the component when I navigate to another one via the links. How can I do this?
    Thanks in advance.
    Sascha

    Hi Alex.
    I already tried this. But a bit different. One of my component should have different entry views. So I defined multiple interface inbound plugs in the window of the subcomponent. In the corresponding (inbound) handler methods of the window I fired corresponding outbound plugs which were connected to different views. The main component had different links which were connected to the corresponding interface inbound plugs of the embedded component.
    When I clicked the first link, the correct view of the subcomponent was shown. When I then clicked the next link which should show another view of the same subcomponent the corresponding inbound handler was called but no navigation was done.
    Now when I rest the component before navigating everything works fine.
    But thanks for the hint.
    Cheers,
    Sascha

  • How to reset the calendar from myfaces?

    I want to realize a "logoff" feature on my main jsp page. And that page contains a calendar component.
    I simply "redirect" main page to the login page by return a string, however when I login again, the calendar is still like the one of the last login action. Eg: in first login action, I change the current month in the calendar to January, and then I log off. After next login, the month stays January, instead of the current month!
    I tried to reset the members of backing bean, it remains the same.
    I use the component calendar from myfaces, does anyone know how to solve this problem, or simply, how to reset the component calendar?
    Thanks!
    db

    let the thread die, i got it......

  • Reset module command in cisco -6509

    Hi Team,
    We need to reset/reload one of the module of our core switch i.e.WS-C6509-E. Moreover, we have tried the command reset 4 (module no.) but it's not working. Please provide us the command to reset the module.

    Hello Saurabh,
    it should be
    hw-module module 4 reset
    given in SWitch# privileged mode
    Switch#hw-module module 4 ?
    boot Specify boot options for the module through Power Management Bus control register
    reset Reset specified component
    simulate Simulate options for the module
    some specific service modules like CSM or other can require different approach
    This is good for normal linecards
    Hope to help
    Giuseppe

  • Error occuring while checking for updates in windows 7

    i have tried your solution of subinacl but still an error ocurred while checking updates in windows 7.how to i solve this problem

    Hi,
    You can try windows update rediness tool, pick the correct version you are running.
    System Update Readiness Tool for Windows 7 for x64-based Systems (KB947821) [May 2014]
    System Update Readiness Tool for Windows 7 (KB947821) [May 2014]
    If it didn't help, please try to reset update component:
    http://support2.microsoft.com/kb/971058

  • Disk Utility Crashing and Disk Images Not Opening Properly?

    Hi,
    I got a new G-Tech 500GB external drive that I've got into three partitions. All of them have Tiger on them but the main one I'm using is giving me problems. I have Stuffit Expander 11 on here and when I try to open a disk image it looks like it's opening but doesn't. Also I try and open Disk Utility and it crashes on me. I did a repair disk permissions a few hours ago after restarting up again and it seemed to be fine but now the problem is back.
    The other problem I have on and off is that out of the three partitions I'm supposed to put them in the trash before shutting down and sometimes the two not in use won't go in the trash.
    Any ideas? The two other partitions I have right now I'm using for recovery stuff from my internal drive.
    S.

    Its the improper unmount of the firewire drive which is the problem. Try to reset all.
    1. Shut-down your Mac, and unplug the power cord
    2. Turn the power off on your external FireWire devices
    3. Unplug the FireWire devices from the Mac
    4. Wait for 5 min.
    5. Plug the power cord to your Mac only
    6. Restart the Mac while holding the Option-Apple-O-F, and keep holding until you get the ">" prompt, then release the keys
    7. At the ">" prompt type:
          reset-nvram and hit the Return key
          set-defaults and hit the Return key
          reset-all and hit the Return key
    the last command will restart your mac
    8. Shut down your Mac
    9. Connect all your FireWire devices to the Mac and turn them on
    10. Restart your Mac.
    All your FireWire devices should reapear, if not repeat the procedure
    How to avoid the issue :
    The only really proven way to avoid burning up a FireWire port is to connect all devices and to turn them on PRIOR turning on the Mac. Likely, one must unplug them and turn them off AFTER the Mac has been turned off. If you need to connect another device, then you're on for a shutdown of your machine... 
It's a tad annoying but it guarantees that the FW ports won't be damaged. 
Be careful when using self powered devices such as webcams, iPods, hard drives or hubs, as they can destroy the port pretty easily. Another thing is to avoid daisy-chaining hard drives.
    When the FW port doesn't respond anymore :
    In this case, peripherals won't be mounted upon plugging, and won't be displayed in Apple's System Profiler. The self powered devices will still be fed by the port, but won't respond either. 
It happens that the PHY just hangs after a surge or a random problem. Once hung, the port will not respond any longer, it is possible to reset the component by going through the following steps :
    1° boot the mac in Open Firmware by holding [ Apple key - Option - O - F ] after the startup chime. 
2° you'll get to a command prompt. the keyboard mapping will be QWERTY, so pay attention when you type the following : 
RESET-NVRAM (enter) 
RESET-ALL (enter) 
3° Now the mac should restart itself and the port should function properly again. 
If it still doesn't work, then it means that the PHY is damaged.
    http://www.hardmac.com/articles/16/

  • How to get new and updated data into LO Excel in Xcelsius

    Dear Experts,
    I have created dashboard on top of webi report by using Live-Office connection. Latest data of webi report is imported into excel and mapped data with components and generated SWF file and exported into server.
    To day my webi report has latest instance with new and updated data. But until unless by clicking "Refresh All Objects" i am not getting updated data into excel.
    When i am trying to open dashboard in BI Launch Pad/CMC it is showing data whatever exist in excel(i.e yesterday data). But here we need to show data of latest instance of webi report.(i.e New and updated data as of now).
    I have selected option "Latest instance: From latest instance scheduled by" in "refresh options".
    My Question & Doubts:
    1) Is it mandatory to open dashboard every day and need to click on "Refresh All Objects" to get updated data into excel or dashboard.
    2) Is there any option to automate this process.
    Regards,
    PRK.

    Hi,
    Schedule the webi report to get the latest data from the source. To answer your query no is doesn't require to open the dashboard every time to refresh the excel to get the latest data.
    Please use the Refresh Before Components are Loaded: Select this option to refresh the data each time the model loads and to use that data as the initial data for the model (using a Reset Button component, it will reset the data to the values from the last time the model was loaded).
    You are using the Live Office  so here automatic refresh is not possible without touch the swf file, you need to use the refresh but to get the latest data. If you are using QAAWS, Web Service & XML then automatic refresh is possible.
    For more information please check the below document for in-depth idea on the design pattern.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b02e31fb-3568-2e10-e78f-92412c3c0a96?overridelayout=t…
    Kindly revert for more clarification!!!
    --SumanT

  • How to remove the WiSM2 from the Catalyst 6500 series switch?

    Hello, can you explain to me how to safely remove the WiSM2 from the Catalyst 6500 series switch?
    According to the documentation "Catalyst 6500 Series Wireless Services Module 2 Installation and Verification Note":
    To remove the WiSM2, perform these steps:
    Step1     Shut down the module by one of these methods:
    In privileged mode from the router prompt, enter the hw-mod module mod shutdown command. NoteIf you enter this command to shut down the module, you must enter the following commands in global configuration mode to restart (power down, and then power up) the module:
    Router# no power enable module modRouter# power enable module mod
    If the module does not respond to any commands, press the SHUTDOWN button located on the front panel of the module.
    Step2     Verify that the WiSM2 shuts down. Do not remove the module from the switch until the POWER LEDis off.
    But, in the case of Step1 (1st methods) I do not see a option "shutdown"  in the command "hw-mod module 3"...
    All I prompted to enter is:
    c6500#hw-module module 3 ?
    boot           Specify boot options for the module through Power Management Bus control register
    reset          Reset specified component
    simulate  Simulate options for the module
    Is it hidden options? IOS version of c6500 is 12.2(33)SXJ1
    In the case of Step2 (2nd methods) there is not any button on the front panel of the module?
    And yet, it is better to remove the module configuration manually or use the command module clear-config prior to removing the module?

    Good catch.
    Which one is true, will get back to you on this if i've something soon.
    http://www.cisco.com/en/US/docs/wireless/module/wism2/installation/note/WiSM_2.html#wp34727
    The above link is procedure to remove wism2. This procedure doesn’t look like wism2 is hot swapable.
    http://www.cisco.com/en/US/docs/wireless/module/wism2/installation/note/WiSM_2.html#wp34621
    All modules, including the supervisor engine (if you have redundant supervisor engines), support hot swapping. You can add, replace, or remove modules without interrupting the system power or causing other software or interfaces to shut down. For more information about hot-swapping modules, see the Catalyst 6500 Series Switch Module Installation Guide.

  • Still no Firewire

    Posted this last week
    http://discussions.apple.com/thread.jspa?threadID=1387036&tstart=0
    If anyone has any suggestions it would be greatly appreciated. The only thing I can think of is to reinstall the OS.
    Is there any other means of resetting the Firewire - shutting down/unplugging had no effect. Could find no Prefs to toss - could a Firewire extension be corrupted?
    Are the FW 400 and 800 ports on the same board? The 400 is still working. Is it possible the CF reader fried my 800 port when I plugged it in? Is there any other way to test the port other than buying another 800 component? Would resetting the PMU help/hurt/or make no difference.
    Any thoughts or suggestions...thanks a bunch.
    Randy

    1. Shut-down your Mac, and unplug the power cord
    2. Turn the power off on your external FireWire devices
    3. Unplug the FireWire devices from the Mac
    4. Wait for 5 min.
    5. Plug the power cord to your Mac only
    6. For PPC Macs: Restart the Mac while holding the Option-Apple-O-F, and keep holding until you get the ">" prompt, then release the keys
    7. At the ">" prompt type:
          reset-nvram and hit the Return key
          set-defaults and hit the Return key
          reset-all and hit the Return key
    the last command will restart your mac
    8. Shut down your Mac
    9. Connect all your FireWire devices to the Mac and turn them on
    10. Restart your Mac.
    All your FireWire devices should reapear, if not repeat the procedure
    How to avoid the issue :
    The only really proven way to avoid burning up a FireWire port is to connect all devices and to turn them on PRIOR turning on the Mac. Likely, one must unplug them and turn them off AFTER the Mac has been turned off. If you need to connect another device, then you're on for a shutdown of your machine... 
It's a tad annoying but it guarantees that the FW ports won't be damaged. 
Be careful when using self powered devices such as webcams, iPods, hard drives or hubs, as they can destroy the port pretty easily. Another thing is to avoid daisy-chaining hard drives.
    When the FW port doesn't respond anymore :
    In this case, peripherals won't be mounted upon plugging, and won't be displayed in Apple's System Profiler. The self powered devices will still be fed by the port, but won't respond either. 
It happens that the PHY just hangs after a surge or a random problem. Once hung, the port will not respond any longer, it is possible to reset the component by going through the following steps :
    1° boot the PPC mac in Open Firmware by holding [ Apple key - Option - O - F ] after the startup chime. 
2° you'll get to a command prompt. the keyboard mapping will be QWERTY, so pay attention when you type the following : 
RESET-NVRAM (enter) 
RESET-ALL (enter) 
3° Now the mac should restart itself and the port should function properly again. 
If it still doesn't work, then it means that the PHY is damaged.
    http://www.hardmac.com/articles/16/
    From Kappy post:
    922 is only used in dual drive cases to provide a "build-in firmware RAID support"
    912 or 912+ is FW800, the "+" means USB2
    911 is FW400
    924 adds eSATA support along with FW400/800
    MacSales, OWC Tech Support library is where I would go first, as they do tend to have or links to, firmware updates for Oxford.
    From Wiebetech:
    I just upgraded my Mac OS, and now I'm having trouble with my FireWire device. What can I do?
    A: With nearly every OS update Apple releases, some external drives are not recognized after the update. The typical symptom is that the device will not mount but the volume is visible and grayed out in Disk Utility. This means that the device is working properly, but the OS does not recognize the volume as mountable. Sometimes the drive does not show up at all.
    The first thing to do is to see if repairing Permissions with Apple's Disk Utility First Aid feature solves the problem. If not, try repairing the disk with First Aid. Another possible solution is to zap the PRAM. This is done with a keyboard command while rebooting. Restart your computer and hold down the Command, Option, P and R keys. Consult the Apple web site for details.
    If this does not work, then try pushing the PMMU reset button on the logic board. Consult the Apple web site for locations of the button for your Mac. If the drive still does not show up, shut down, disconnect all peripheral devices, and boot from the Mac OS Installation CD. The later the OS version, the better. Do not reinstall the OS, but when the Installer is loaded up and ready to begin, go to the File menu and use the Disk Utility program. Connect the drive that is having problems, then start the Disk Utility application. If you see the external drive and it is not grayed out, you know the drive is okay. Run Disk First Aid on it anyway. Then run it on your internal boot drive while you are at it. When done, unmount the external drive and UNPLUG it! Then restart the Mac.
    When the Mac has restarted and is running on the internal boot drive, reconnect the external drive.

  • JSplitPane problem with JTextArea

    The following piece of code has the problem in it. When you resize the splitpane you won't be able to decrease the size because of the setLineWrap(true).
    I am also wondering why the button in the bottom moves (and how do I stop it from moving) when the splitpane is made bigger.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.border.*;
    public class HMI extends JFrame {
         private JPanel map;
         private LeftMenu leftMenu;
         private JSplitPane split;
         public HMI(String title) {
              try {
                   UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
                   SwingUtilities.updateComponentTreeUI(this);
              catch (Exception ex) {System.out.println("Look and feel does not exist");}
              map = new JPanel();
              leftMenu = new LeftMenu();
              split = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,leftMenu,map);
              setLayout(new BorderLayout());
              add(split, BorderLayout.CENTER);
              split.setOneTouchExpandable(true);
              split.setBorder(BorderFactory.createEmptyBorder());
              setSize(1024,768);
              setLocationRelativeTo(null);
              setVisible(true);
              setDefaultCloseOperation(EXIT_ON_CLOSE);
    //NESTED
    public class LeftMenu extends JTabbedPane {
         TabLogg logg;
         public LeftMenu() {
              logg = new TabLogg();
              addTab("Logg",null,logg,"Visar loggar av information f�r kartan");
    //NESTED
    public class TabLogg extends JPanel {
         private JButton reset = new JButton("Clear logg");
         private TitledBorder border = BorderFactory.createTitledBorder("Logg");
         private JTextArea text = new JTextArea();
         public TabLogg() {
              setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
              text.setLineWrap(true);
              text.setEditable(false);
              reset.setAlignmentX(Component.RIGHT_ALIGNMENT);
              add(text);
              add(reset);
              text.setText("testststg sd sdgs gsdg sd gs gsdgsdg");
         public static void main (String[] arg) {
              HMI human = new HMI("V�ltnavigeringssystem Interface - Ny");
    }

    I want the button to stay alligned to the very left. Read the Swing tutorial on [How to Use Box Layout|http://java.sun.com/docs/books/tutorial/uiswing/TOC.html] for an explanation and example of how the alignment of components works.
    Also, use the following to maximize the frame:
    //setSize(1024,768);
    setExtendedState(JFrame.MAXIMIZED_BOTH);

Maybe you are looking for