Navigating between different FocusTraversalPolicy

Ok, I've struggled with this for a bit. I can't quite figure out where I've gone wrong.
I have a window with some fields in the top of the window, and a JTabbedPane in the bottom. The tabbed pane includes several tabs implemented as separate panels. Each of these panels has a custom focus policy, which allows us to specify the exact order and components for tabbing. The custom policy starts like this:
public class MyTraversalPolicy extends FocusTraversalPolicy {
    private List componentList;
    public MyTraversalPolicy(Component[] components) {
        componentList = Arrays.asList(components);       
    }When the panel is created, we pass in an array of components in the proper tabbing order, and setFocusCycleRoot(true).
The window which contains this panel has a different tabbing policy (currently default). Where I'm hitting a problem is at the beginning and the end of my custom tabbing policy. I want to navigate to the appropriate location in the containing window, but can't seem to accomplish this.
My most recent attempt was to cycle through parent components until I found one with a focus policy, and try to use that to find the next component. It didn't work.
           Container c = focusCycleRoot.getParent();
            while (f == null) {
                f = c.getFocusTraversalPolicy();
                if (c.getParent() == null) break;
                c = c.getParent();
            if (f != null) { --do something here;}Is there an easy way to link focus policies together which I am missing?
Thanks,
-Dave

Thanks Frank. It worked. I have one more issue. I do have two pages http://localhost:7101/faces/test1 and http://localhost:7101/faces/test2 . test2 is a create form page. On submission of this form the page is frowarding to page1 using the action property. When I am accessing the page2 the url is : test2?_afrLoop=188792691646005&_afrWindowMode=0&_adf.ctrl-state=19nrptpqfx_189. On submission of this page the resulting page1 url is :test2?_adf.ctrl-state=19nrptpqfx_189.Is it possible to redirect to the url http://localhost:7101/faces/test1 after submission ?With out the ?_afr.ctr-state parameters .. Like jsp's send.redirect method rather that jsp: forward kind of action?
Thanks
Sunees

Similar Messages

  • Navigation between different componets in IC Web Client for CRM 7.0

    Once the user click save button in component ICCMP_BT_BUTTON I need to navigate to component ICCMP_BT_SVO that displays the Service Order Data and display the new Service Request that was created.
    How can I do navigation between different componets in IC Web Client for CRM 7.0?
    Thanks.
    Rodolfo Miã

    Hello,
    You can find detailed presentations in the learning maps available on the SAP Service Marketplace http://service.sap.com/rkt-crm for release CRM 2006s, CRM 2007, or CRM 7.0. In case I didn't mention it before, Intent-Driven Interaction (IDI) was first introduced and is only available starting with CRM 2006s and above. In the Interaction Center area, there is a presentation called "Rule Based Automation and Guidance" which covers IDI. I'm not sure if you can access the URL directly, but just in case here it is: [https://websmp104.sap-ag.de/~sapidb/011000358700001162852007E].
    Warm regards,
    John

  • Navigation between different pages is not getting recorded in opescript

    Hi,
    when i tried to record few different pages of an application at a time it wa snot happening in Openscript.Is there any settings that needs to be done to enable this in Openscript.I am using Tester perspective,it is OATS 9.3 version.
    Please help me on this.
    Thanks,
    sai.

    Hi,
    I just enabled a Navigation option for one object in another master and selected the same in the cube. I reactivated the master , cube and checked to see if this navigation values are pulled. But my cube is not pulling the navigation values for this object too.
    Do i need to delete the cube data and load it again in order to get the values of Navigation attribue object? or i just re activate the cube.
    Or there is some problem with my cube. I have copied the standard  cube and i am workin on it.
    Rgds,
    Anup

  • Navigating between different pages

    Hi ,
    I do have two pages test1.jspx and test2.jspx. How can I link these page . From test1.jspx I need to call test2.jspx and vice versa.I need to have multiple entry points to the pages means I can access test1.jspx or test2.jspx and navigate to other page. I guess in this case an unbounded task flow is ideal. Is there any example to create the unbounded task flow ? What will be the url to access the pages if i am defining an unbounded task flow?
    Thanks
    Suneesh

    Thanks Frank. It worked. I have one more issue. I do have two pages http://localhost:7101/faces/test1 and http://localhost:7101/faces/test2 . test2 is a create form page. On submission of this form the page is frowarding to page1 using the action property. When I am accessing the page2 the url is : test2?_afrLoop=188792691646005&_afrWindowMode=0&_adf.ctrl-state=19nrptpqfx_189. On submission of this page the resulting page1 url is :test2?_adf.ctrl-state=19nrptpqfx_189.Is it possible to redirect to the url http://localhost:7101/faces/test1 after submission ?With out the ?_afr.ctr-state parameters .. Like jsp's send.redirect method rather that jsp: forward kind of action?
    Thanks
    Sunees

  • Page navigation and send parameters between different projects (ADF Faces)

    Hi,
    I am using ADF Faces 11g and have an application which has multiple web projects, I want to navigate between different projects' pages and send form values as parameters. How can i do that?
    Thanks
    Edited by: user12227999 on 16.Şub.2010 01:43

    You'll need to use JavaScript to alter the action url on the form element to achieve that, but it's going to be complex and I'm not too positive on the resulting stability in a 11g environment that often need to send XHR to the server. What's your exact use case? It looks like a bad design to me. Normal external call would be using URL parameters, which is consistent to RESTful strategies. What you want to do is a POST to an external application from another which is quite horrible imho, how will you handle session management? Piping the response from the server could be another option.
    Regards,
    ~ Simon

  • How to navigating between layers?( as if they were pages of a book?)

    I need a good advice on design and navigating between some different layers.
    I am a Adobe Director user, and I am used to think of “navigating between frames”. also frames as pages of a book, while in flash time-frames.
    In Director one can navigate between different frames with each containing many components.
    And this does not make any conflict since the frames are some kind of pages of a book, you go to any page you want and back again.
    I am designing math training application in falsh-CS6, in which the user should be able to navigate from start-menu by choosing an
    exercise number and then go to the wanted exercise and then create an exercise by a create_excercise button, there back again to menu to choose another and so on. How I can do it clean in flash?
    As I see I have to place everything in the same “frame” in flash, and it becomes little practical and confusing since there
    are many things all gathered in the same frame, where they should instead appear in their respective “pages”.
    I have done some works in flash:  made 4 layers in flash with the following contents:
    layer 1: for my menu( contains 3 buttons, q1bt, q2bt, q3bt)
    layer 2: for question 1( contains 3 buttons  makeQ1bt, chekAns1bt, and  gotoMenuBtn)
    the same is for layer 3 and 4.
    I see no options rather than making different components visible or invisible whole way! but is there a better way?
    I appreciate any help.

    Flash does allow more than one frame - that is one of the foundations of working with it.  You can restrict yourself to using just one frame if you like, but it is not required and very often people use the timeline instead of keeping things in one place.
    I have no familiarity with Director, but what you just described sounds like designing using the timeline of Flash.  With Flash you can use the timeline in the fashion you just described where different pages occupy different frames of the timeline and you can navigate from one to another.  You are not stuck with one frame in Flash... you can create a new keyframe at any point along the timeline and add new/different content to it, while retaining a menu that exists across all pages (or not - it's your choice)..

  • Navigation between portlets

    I am using JSR168 portlet API.how to navigate between portlets

    Hi,
    Navigating between portlets on the same page or between portlets on different pages ?
    Could i know for what functionality you want to have navigation between portlets ?
    Please let me know.
    Thanks
    <Neeraj Sidhaye/>
    Try_Catch_Finally AT YAHOO DOT COM
    http://ExtremePortal.blog.co.uk

  • Retaining values when navigating between subtabs

    Hello everyone
    I have a subtab region with 3 tabs in my page. I have some form fields in each tab, when I enter some details in tab1 and click tab2, and then come back to tab1 , my details previously entered in tab1 gets cleared. is there a way to retain these values when navigating between subtabs. all the tabs are based on different VO's
    Thanks
    Ravi

    Here's how I do it...
    (1) I always use Sessions.  In the main form of my application, I set up the session and I store a single variable:  Session.Exists = True.  All other forms begin something like this:  (It's actually an include-file.)
    <cflock ...>
    <cfset SessionExists = StructKeyExists(Session, "Exists")>
    </cflock>
    <cfif NOT SessionExists>
       <cflocation ... send 'em back to the home 'cuz their session has expired>
       <cfabort>
    </cfif>
    (2) Now that we know that a session exists, we store various structs in the Session to contain the default or current values that have been used in a particular form.  If the Session scope does not contain a particular struct, it is automagically created with appropriate default values.)  This becomes "what we display," and when we capture the user's responses, we store them there, even before we validate them.  The session pool therefore becomes the vehicle for communication between the various forms.
    (3) If we reach a point where a particular piece of information is no longer useful, we delete the appropriate structure from the Session, thereby wiping out the entire set of values at once.
    (4) Structs and Arrays can, of course, contain other Structs and Arrays.  You can build data structures of arbitrary complexity.
    (5) As of late, I have found myself specifying individual CFCs for each logical "object" in my application.  This is true object-oriented programming, as best as ordinary CFC techniques can do without plunging headlong into the underlying nether-world of Java.  In those CFCs, I deliberately try to conceal just how information is maintained and stored, so that these necessary inter-dependencies within my application are concentrated in just one place.  "The structure is 'the object,' and the methods are found 'here and only here.' "

  • HT1203 iTunes: How to share music between different accounts on a single computer - I tried to use the instructions to configure 2 different windows users sharing the same iTunes library.  I could not get this to work per the instructions.

    I tried to configure 2 windows users accounts using a single library per the instructions in HT1203.  My iTunes library is on an external drive.  I cannot get this to work.  Any suggestions?

    To give other users read-only access to your iTunes library, use the Sharing features of iTunes. Sharing works over the local network as well as on the same computer. See the built-in help for details.
    If you want to give full read/write access to more than one user, see the support article linked below.
    iTunes: How to share music between different accounts on a single computer
    There is a way to share the library without moving it to a secondary volume. If you really need to do that, ask for instructions.

  • How to share music between different accounts on a single computer

    I am trying to share music on my Mac between two different iTunes accounts.  Can this be done?

    iTunes: How to share music between different accounts on a single computer - http://support.apple.com/kb/HT1203 - relocating iTunes' media folder to a shared area but leaving separate library files - extra tip at https://discussions.apple.com/message/17331189

  • Sharing iTunes library between different user accounts

    I recently purchased my imac and made the leap from the PC world. I set up another user account aside from the general administrator and followed the steps of having itunes folder go to the users/shared folder in an effort to be able to share files between users. I am able to now share the library between users but find that when I load new songs onto one user I then need to go into the other user's account and manually copy the new songs from the shared folder into itunes.
    Anyone know how I can have it so when I load songs into one users itunes they will automatically appear in library of the other user's itunes without having to take the step of copying/importing?
    Also when I was downloading and importing over 4000 songs my imac had the transparent black box which informed me I needed to shut down my computer at least twice. Should I be concerned? I'm assuming this notice is very similar to the "blue screen of death" known in the PC world so that can't be good especially when I paid the extra $ for fully loaded imac.
    Thanks for the help!

    DANMAC808, Welcome to the discussion area!
    See KB 93195, iTunes: How to share music between different accounts on a single computer.
    Also when I was downloading and importing over 4000 songs my imac had the transparent black box which informed me I needed to shut down my computer at least twice. Should I be concerned?
    That is not normal at all.

  • Sharing songs between different iTunes accounts on the same Mac

    Hello
    I am a newbie to Mac. My wife and I both have seperate iTunes accounts set up on our seperate user accounts on our MacBook. Can we share songs between our accounts?

    *BA Mack* wrote:
    Can we share songs between our accounts?
    Zevoneer wrote:
    You might find this article useful: iTunes: How to share music between different accounts on a single computer
    The process for sharing libraries is much [easier in iTunes 8|http://forums.macworld.com/thread/105366?tstart=0]. If you simply want to share a few songs, you are better off having a copy of those tracks in each of your libraries, but there is little point to that as you can access each other’s libraries in read-only fashion.

  • How can I sync/import/export bookmarks between different users on the same computer and both using the Firefox browser?

    All help instructions are for importing or exporting bookmarks/favourites between different brands of browsers.

    Many thanks twalker for your prompt and simplified explanation for resolving my problem which is much appreciated by this tarnished silver surfer. I will now arrange to download FX4 and follow your instructions.

  • Sharing iphoto library on the same computer between different users

    Can anyone tell me how (without having to write my own code) I can share photos easily (so I can teach my parents, who know nothing about mac, how to do it) between different users on the SAME COMPUTER?
    I am so frustrated! You can share with anyone else in the world, but when it is on the same computer I can't figure out how to share!

    Hi Mereditty,
    Here are all the links I have for sharing a couple of different ways.
    SHARING IPHOTO LIBRARIES
    Sharing libraries between users on the same local network
    You can also share a library on the same machine between users the same way.
    Sharing libraries between users on the same machine...
    -both users must have sharing enabled in their iPhoto Preferences
    -both users must be logged in and have iPhoto running
    -Remember that you can only view the other library. You can't edit the photos or play the saved slideshows or view the made books or burn them to CD or DVD. The books and slideshows will show up as an album. You can play that album as an "on the fly" slideshow. You can drag images from the sharing library to your library in the source column to import them to your library. You can then edit, add to albums, books, slideshow, etc.
    Sharing links from Apple....
    Sharing your photos between computers
    About shared photos
    Turning off photo sharing
    Looking for shared photos
    SHARING ONE IPHOTO LIBRARY BETWEEN USERS ON SAME MACHINE
    You can try one of these three methods:
    1- Use iPhoto Library Manager-the paid version
    The documentation page will give instructions on how it is done.
    2- Sharing one iPhoto library between several users on one machine
    3- Share an iPhoto Library in tiger Using ACL's
    4- I have also read about ShareAlike
    There is no other info on the site about how it works.
    I strongly urge anyone wanting to try any of the methods for sharing one iPhoto Library folder among more than one user to backup all iPhoto Library folders before attemptin anything.
    Lori

  • Sharing I tunes music library between different user logins on same PC

    Due to my computer crashing I recently bought a new PC running Microsoft Vista. I am attempting to set the PC up so that different members of the family can have their own login. I have downloaded I tunes 7 and it shows on each desktop. My problem is that I cannot figure out how to share the music library between each login.

    the following document may be of some assistance with that:
    iTunes: How to share music between different accounts on a single computer

Maybe you are looking for