Activate (or change focus) on ADF Paneltab using javascript

Hello,
I am trying to embed an oracle form inside ADF page. I need to activate or change focus on an adf panel tab when I click on a link. I need to use javascript for this as I cannot afford a trip to the server (and hence a backing bean is not an option), as every time the page refreshes the form loses its session. Is there a way to activate/disclose a paneltab using javascript?
Regards,
Anirban

This problem seems to be resolved. We can use javascript as well as a managed bean to do this. I was missing the setDisclosed(true/false) function. The best part is, even without a partial trigger or a partial submit, we can do this without refreshing the page when using a managed bean.
When using javascript, we can use the below method:
function f1(event) {
var v1 = event.getSource();
v1.setDisclosed(true);
}

Similar Messages

  • Multiple flash files change when a button click using javascript function

    hi.. am new in flsh...
    i want to multiple flash files change when a button click using a javascript

    <script>
    var count=0;
    function mafunct(newSrc){
        alert("hi");
    var path="a"+count+".swf"; 
    flash+='<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" WIDTH="100%" HEIGHT="100%">';         
        flash+='<PARAM NAME=movie VALUE="'+path+'">';         
        flash+='<PARAM NAME="PLAY" VALUE="false">'; 
        flash+='<PARAM NAME="LOOP" VALUE="false">';
        flash+='<PARAM NAME="QUALITY" VALUE="high">';
        flash+='<PARAM NAME="SCALE" VALUE="SHOWALL">';
        flash+='<EMBED NAME="testmovie" SRC="Menu.swf" WIDTH="100%" HEIGHT="100%"PLAY="false" LOOP="false" QUALITY="high" SCALE="SHOWALL"swLiveConnect="true"PLUGINSPAGE="http://www.macromedia.com/go/flashplayer/">';
        flash+='</EMBED>';
        flash+='</OBJECT>';    
    count++;
    alert(path+"aa");
    </script>
    <button onclick="mafunct()">next</button>

  • Problem to change the master page height using javascript

    Hi everyone,
    I've been trying it but no luck... appreciate any helps possible.. Thanks!
    I've a masterpage called 'UILayout':
    Long(Height)=100mm, Short(Width)=100mm
    I've a button click event with the script to set the Long to 160mm:
    ====================================
    //display current height
    var curHeight = xfa.form.form1.pageSet.UILayout.medium["long"];
    xfa.host.messageBox("Current Height = " + curHeight);
    //set height to 160mm
    xfa.form.form1.pageSet.UILayout.medium["long"]="160mm";
    //relayout the pageArea
    xfa.layout.relayoutPageArea(0);
    ====================================
    Doesn't work, I wrote another button click event to retrieve the height, and it returned 160mm. But the layout just doesn't refresh with the changed height....i'm using LC Designer 8.2, form saved as Dynamic XML PDF , compability set to 7.0.5, view in Acrobat Pro 7.1. Thanks...

    I do not think you will be able to adjust the Master page size as it is tied to the Content Area size as well. I tried to adjust the pageisze and the content size but it was ignored. I can get at the properties to change them but that is it.

  • Problem using javascript to submit jsf form, values not submitted

    Greetings!
    I have a t:selectOneMenu where I want the page to be submitted when they change the selected value. At this point, I am able to get the form to submit and reload the page, which is all fine. The problem is that none of the values from the page are not set in the backing bean. I have break points on the setter methods that are not being hit.
    I have tried a number of things from searching multiple forums, but here are snippets from my latest version...
    <h:form>
    <t:commandLink id="hiddenLink" forceId="true" value="test link"
    action="#{pc_PageX.doBtnHiddenLinkAction}"></t:commandLink>
    <t:selectOneMenu id="pageList_top" forceId="true" value="#{pc_PageX.ValueX}"
         onchange="jspellSync(); submitPageX();">
         <f:selectItems value="#{pc_PageX.ListX}" />
    </t:selectOneMenu>
    </h:form>
    function submitPageX(){
         var hiddenLink = document.getElementById("hiddenLink");
         hiddenLink.click();
    }Note that the <t:commandLink> is not hidden, though it will be in the final version if I can get this to work.
    If I click the commandLink myself, the page is submitted with all the page values as expected. If I change the list value, thus using javascript to fire the commandLink's click event, the page is submitted with NO values.
    Can anyone come up with an explanation for this behavior? Or better yet, a solution?
    A couple other things I've tried...
    - Not using a commandLink and using jsf's submit function -> onchange="jspellSync(); submit();"
    - Clicking the link using other ways -> hiddenLink.fireEvent('onclick');
    If all else fails, I'll just add a button that they have to click to submit the form.

    snotmare wrote:
    BalusC wrote:
    I recall this problem in one of the ancient JSF versions. Which JSF version do you use? Do you have any room to upgrade to latest? We're using an IBM implementation of JSF, which is at version 7.0. The IBM implementation appears to be built on the JSF base 1.1.That's not an IBM JSF implementation, they do not have any one, they just have some component libraries which runs on top of some JSF implementation. RAD/WSAD ships by default with Sun JSF RI. Try upgrading to at least 1.1_02 which you can download from the aforementioned link. There's a gap of 2 years (and inherently a lot of bugfixes) compared to 1.1. If the application server used supports Servlet 2.5, you could even upgrade to the latest 1.2.
    We've had other issues with the IBM implementation, which could be the cause in this case too. We've been talking about switching to MyFaces, but there is one feature of the IBM version that we like. It's basically a script collector (hx:scriptCollector) that allows us to do pre-processing on the page.As said before, IBM does not have a JSF implementation. So replacing RI by MyFaces wouldn't make any difference.

  • My phone was stolen, I have moved it in lost mode,but I can see that whoever has it,is changing phone name and can use it until I activate lost mode again.Can I do it permanently? How can I cancel ICloud back for the stolen phone,it blocks Cloud memory?

    My phone was stolen, I have moved it in lost mode,but I can see that whoever has it,is changing phone name and can use it until I activate lost mode again.Can I do it permanently? How can I cancel ICloud back for the stolen phone, as I cannot delete the stolen phone backup (says that backup is being in use) and this is keeping memory occupied in the Cloud and I cannot back-up the other devices.

    http://support.apple.com/kb/ht2526

  • Help required building ADF-Swing/ADF-Faces using ADF Business Components

    My question is in regards to how you can go about building a light swing application to an ADF model?
    In particular if I were to say that we were developing a 3-tier project whereby we had a database tier, a series of EJB-ADF façade session beans to the database (middle-tier), and a swing client communicating with the session beans (view-controller tier), how would you go about developing these screens?
    In particular can we develop these screens using ADF-Faces and also ADF-Swing?
    The EJB session façade beans of course are ADF app modules with customised methods. The methods would return back customised DTO objects. These DTO objects are wrappers to row objects ADF would create. This would be mainly due to making these facade beans web service enabled (Oracle state that these methods cannot return oracle.jbo objects if they are to be web service enabled).
    This would be typically deployed to an app server, like Oracle App Server 10G.
    Could you please have a look at this, as I am doing a lot of research into this.
    eg. Taking example from oracle magazine sept/oct 2006
    with slight enhancements
    package oramag.frameworks.example.common;
    import oracle.jbo.ApplicationModule;
    import oramag.frameworks.customdto.EmployeeDTO;
    public interface HRService extends ApplicationModule {
    void deleteCurrentEmpAndCommit();
    EmployeeDTO findEmployee(int employeeId); // new method
    import oramag.frameworks.customdto.EmployeeDTO;
    public class HRServiceImpl extends ApplicationModuleImpl {
    public void deleteCurrentEmpAndCommit() {
    Row empRow = getEmpView().getCurrentRow();
    if (empRow != null) {
    empRow.remove();
    getDBTransaction().commit();
    public EmployeeDTO findEmployee(int employeeId)() {
    EmployeeDTO employeeDTO = null;
    EmployeesImpl employees = getEmployees();
    employees.setNamedWhereClauseParam("EmployeeId", employeeId);
    employees.executeQuery();
    if(employees.hasNext()) {
    EmployeesRowImpl employee = (EmployeesRowImpl)employees.next();
    employeeDTO = new EmployeeDTO(employee);
    return employeeDTO;
    public EmployeesImpl getEmployees() {
    return (EmployeesImpl)findViewObject("Employees");
    Now given the above code snippet, how could you turn this into an ADF-Swing/ADF Faces application so that if a user using the swing application enters an employee id, then the application will execute the query on the app server, the app server in turn returns the results to the client, and the client finally display the results. Typical MVC example.
    Cheers
    Rodney

    The tutorial is for ADF BC used with JavaServer Faces.
    While the tutorial doesn't cover it, we also support drag and drop development for Swing and visual WYSIWYG layout for Swing panels and windows, too. For a very simple example, watch screencast #4 on my blog here:
    http://radio.weblogs.com/0118231/stories/2005/06/24/jdeveloperAdfScreencasts.html
    One thing I have noticed is that when using ADF business components, when the app module returns a custom DTO object like the above example, it returns the data in a element structure according to the data control palette.
    You don't generally ever need to create your own custom DTO's when working with ADF for use by client UI's. The only situation where can be necessary -- until we simplify this in the JDeveloper/ADF 11g release -- is when you desire to expose custom methods that can return sets/arrays of typed row structures through a web service. However, web services are not involved/required in building 3-tier Swing applications.
    When dropping onto a page it does so like a string and doesnt give option to display the data in a read only form etc. Is there anything we need to do, to get the functionality.
    It's more of what you don't need to do :-)
    Just leverage the active data model that the ADF application module provides. You can read more about it in section 4.5 "Understanding the Active Data Model" of the ADF Developer's Guide for Forms/4GL Developers on the ADF Learning Center at http://www.oracle.com/technology/products/adf/learnadf.html). Your UI's bind to view object instances in the data model, and your UI's are automatically kept up to date without needing to write methods that return data. I short article I wrote that preceeded my writing the ADF Developer Guide content on this topis is here:
    http://radio.weblogs.com/0118231/stories/2006/01/26/theAdfBusinessComponentsActiveDataModel.html
    I know that when dropping a view object you get this functionality. Also was wondering if we were to pass an object of thios type back to the model it might not give us the rich functionality like input forms, like what Oracle provides if we were to drop a enitity view object.
    Just use the active data model and everything becomes totally easy, with no changes required to switch between local or three-tier deployment configurations.
    Trying to do everything with hand-coded DTO beans is really going the hard way.
    Could you help us regarding this?

  • How to Redirect to another page Using JavaScript in ADF Faces?

    Hi Guys,
    I have a UI user case that has a af:menu which contains mutiple af:goMenuItem. When user click on the menu, the menu slides down and shows up the af:goMenuItem. As we know, you could define the page destinations in af:goMenuItem to go to another page when user clicked, but af:menu itself cannot be redirected to another page. Well, the user case wants the menu itself could be redirected if user click on it.
    So I am thinking using JavaScript to do this: when the af:menu gets clicked, redirect to another page. BUT, I looked over the ADF Faces Javascript API and was not able to find that piece of code to do this. Any help???
    Another work around for the user case scenario is to use HTML marks + CSS/JavaScript instead of af:menu and af:goMenuItem but this changes the scope of technology although it's not hard to do
    Any other idea to accomplish the user case other than what I could think of ?
    Thanks Guys!
    Jay

    Hi,
    1 - you can have a hidden command item to do the navigation based on a control flow case. In this case, you access the command component from JavaScript create a new ActionEvent and queue it
    2 - JavaScript can use an af:serverListener to call into a server side managed bean method to perform the navigation
    there is no JavaScript API for navigation in ADF Faces because navigation in JavaServer Faces is an event driven framework and we don't support developers fighting the framework.
    Frank

  • Change security of adf application on weblogic

    hi all,
    i am new in weblogic. i set oid in weblogic succesfully. But i couldn't change security of adf application. Is there any documantationof how change security of adf application?

    hi frank,
    i mean that i set oid in myrealm which is my default security realm. I change order of Authentication Providers. all of the users of oid are in myrealm . However my application does not use this ldap configuration. i couldn't change security of application, and i need help. Before i deploy my 10.1.3 adf application to oc4j and during deployment i can set the security of application but i couldnt see anything like oc4j in weblogic
    i configure my oid like below link
    http://www.oracle.com/technology/products/jdev/tips/fnimphius/oidconfig/index.html

  • ADF customization using MDS

    I have a few questions about ADF customization using MDS...
    1) Is it intended that this functionality will be part of the ADF Rich Faces Apache donation or is it going to be something licensed by Oracle?
    2) The old (or not so old) EBusiness OAF framework had lots of customization/personalisation stuff i.e. where you could add fields, remove fields, change table column orders and add a column via the browser. Is MDS functionally similar?
    3) Will using ADF customization mean that I have to use ADF Business Components.
    4) How many different data store options are there i.e. can the meta data be persisted to different types of database such as MySQL or SQLServer (sorry, my company needs to be database agnostic) or even the file system.
    Thanks,
    Peter.

    Hi,
    1) I haven't heard of a plan like that. MDS has nothing to do with ADF Faces directly and is a different set of technology.
    2) MDS is supposed to replace that, yes
    3) No.
    4) No idea about that.
    Frank

  • FaceTime and activate after changing operator?

    FaceTime and activate after changing operator?

    I recently changed my Apple ID and, initially hit all sorts of problems (ML & iOS5.1). AppleTV very confused, Calandar duplicating entries on an iPad, but losing them on the Mac (but being correct on iCloud.com).
    The solution ended up being straightforward, if unnecessarily annoying.
    On the Mac - in SysPrefs (iCloud) turn off all syncs and sign out. Delete items from the Mac (in response to the prompt).
    On the iPad - in settings do the same.
    On the ATV - turn off Home Sharing.
    In iTunes - log out of the Apple Store
    Sign out on iCloud.com and sign back in using a @me.com email address (not the Apple ID)
    Reestablish iCloud sync (etc) by signing in using the email address (not the ID).
    It appears that everything collects the new Apple ID using the email address and they all play nicely together again.

  • Changing focus when a value is selected in LOV

    Hi,
    I am JDeveloper 11.1.1.6.0.
    I have an LOV with auto-suggest. When the user types some characters and select some item in the list suggested, I want the focus to be on the next editable field.
    Is there any way of doing this without using Javascript?
    Thanks.

    Is there any way of doing this without using Javascript?
    Probably not.
    But maybe you can generate javascript on server side(in value change listener), similar to this: https://blogs.oracle.com/jdevotnharvest/entry/how_to_programmatically_set_focus
    Dario

  • Change Focus to Other Application?

    Hi
    I would like to know if there is some way to change the focus to other applications without using Robot to manually change the focus (like the user would do) or using native methods.
    This is because one of my friends has a problem with a program that keeps taking the focus. An application can then be used to bring the focus back to the program he was currently using.
    It would be nice if there was methods for this in standard Java so we don't have to use native methods, and it would be quite a cumbersome to use Robot)
    (I have searched for it, but the only help I could find so far was about changing focus between components within your own application)

    Yes. That is what I wrote, but isn't there a smart way to do it, like using excisting classes to change focus between applications? - Maybe a class which can also iconify the other applications or such?
    I doubt it exists since it would be hard to make platform independant, but I think it's worth to look for.

  • Changing focus - window issues and .chm

    Two questions:
    1) When choosing any mailto: or website link from a .chm, a
    new window opens, as expected, but the TOC changes to "hidden."
    When click anywhere in the Help window, the TOC shows. Going back
    and forth from the message window/website and the help file, you
    will see the behavior. Our QA flagged this as a potential issue.
    Is this the expected behavior? Or, is there a setting to
    prevent it from hiding? (I would like the Contents, Search, and
    Index tabs to show when the .chm is first opened.) However, I don't
    see the purpose of the Show/Hide being activated when changing
    focus.
    2) After opening a message window or web page from a .chm,
    the Help window remains on top of the message window/web page. The
    message window is indeed active for composing (is in focus), but it
    is often necessary to reposition the help window (which is
    annoyingly still on top of the new window) to be able to
    compose--same with being able to see the full web page.
    Again, is this expected? Is there a setting for having true
    focus -- not always having the .chm stay on top but go behind when
    you change focus to compose a message or view a web page that you
    have initiated from the .chm?
    Thank you very much for any tips you can suggest.
    -- Anne Jackson
    Sr. Technical Writer, SunGard
    Ann Arbor, MI

    Anne,
    There is a setting for a window to be "top-most." I may not
    be able to tell you how to get there in RH as I use an old version.
    In the project settings, window definitions, find
    properties/advanced/extended styles and be sure Top-most window is
    deselected.
    If you can't find it in RH, you can add 2 (hex) to the
    NavPaneStyle parameter in the window definition in your .hhp file
    John

  • Problem ADF Databinding using plain JavaBeans

    Hi,
    I rebuild the sample 'ADF Databinding using plain JavaBeans' available at http://otn.oracle.com/sample_code/products/jdev/index.html
    The sample works great. However when I change the content of the JavaBean (by calling setDeptsCollection) there doesn't seem to occur a resync with the DCIteratorBinding in the DCBindingContainer, which results in the old data being shown.
    The application where I implemented the example consists of two forms. The first allows you to set criteria and the second shows the result based on the entered criteria. When the results are shown and I go back to the first screen, I change some criteria and retrieve the second screen again. The data shown the first time are displayed again.
    Can anyone give me a clue how I can resync the DCIterator with the javaBeans.
    Thanks !!

    Since there is no automatic 'notification' of the updates to a collection from the bean, you have to force the RowSetIterator over your deptCOllection to refetch it's data.
    You could call :
    ((DCRowSetIteratorImpl)iteratorBinding.getRowSetIterator()).rebuildIteratorUpto(-1);
    The index -1 is as of now ignored, and an attempt is made to restore currency to where it was before (if the current row key is found in the new collection).

  • Changing Focus of JTabbedPanes

    Hai Friends,
    I am on the way of developing a QUERY ANALYSER. Mean while i got a problem. in my product I am using two JTabbedPanes(1 & 2).
    In TabbedPane1 i have a text area (to write the query) and the tabbedpane2 on which two panes( one for dispaying the result on a JTable and other for displaying messages.).
    The problem is Ilike to view(change Focus) the message if some error occurs and shift to other pane if some results obtained to JTable.
    i couldn't make it possible..
    some one help me.....
    Tino Simon.

    1) Because you are too impatient. Your question in no
    more important than anybody elses
    2) Because you've already been given the solution.I am extremely SORRY Mr.camickr.
    I was in a hurry to finish my module, which cause some troubles in my codes. The solution you've given really works. The problem was lack of my concentration.
    Any way THANK YOU very much.
    Once more I am begging Pardon.
    Tino Simon.
    .

Maybe you are looking for

  • X230T graphics performanc​e under Windows 8

    My Thinkpad originally came with Windows 7 Pro, but I have changed to Windows 8 in order to resolve problems with VSS.  OOB, both Windows 7 and Windows 8 gave me a "Desktop graphics performance" rating of 5.7.  Under Windows 7, upgrading to the lates

  • Raw 6.41 update issue blank white window

    Prior to Camera Raw 6.41 update, PSE9 Organize opened and performed as designed. Immediately after the update, and clicking Organize, it opens with an empty white square window appearing to mid right and half outside the PSE9 window. Organizer will e

  • IPad/iPhone 4s will not update

    I have a new ipad2 and iphone 4s running 5.0.1 I have just tried to update to ios 5.1 and iTunes fails to connect with the server to update. I have updated Itunes and rebooted but with no luck. Does anybody know what the problem could be? Barry

  • Speaker system for MacPro

    Hi All, Sorry if this is a basic question but I have not been able to find an answer... I just purchased a new MacPro and want to get some speakers for it so I can listen to music and watch DVD's. I was thinking 5.1 surround but read that Apple does

  • Install fails at "Generating public key and SQL Server certificate"

    I'm attempting to install a Child Primary Site and am running into an issue. Currently there is a CAS and another Child Primary Site already deployed and running fine. I've re-installed the SQL instance for the Site I'm having an issue with as well a