Updating a panel within a container

I am attempting to update a panel within a container. I have tried to search the forum but couldn't find a solution. The codes are listed below. What am I doing wrong?
package test;
import java.awt.*;
import java.awt.Graphics;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;
import javax.swing.plaf.FontUIResource;
import javax.swing.plaf.ColorUIResource;
class Template1 extends JFrame {     
     private static final Dimension screenSize = Toolkit.getDefaultToolkit ().getScreenSize ();
     private JLabel numLockKey, capsLockKey, mode;
     protected Container pane;
     protected JPanel buttonPanel, basePanel;
     public Template1() {
          super("Soybean Candles -- Authorized Personnel Only");                
        buildLayout();       
          setSize(screenSize.width, screenSize.height);                    
             setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
             setResizable(false);             
          show();                              
     private void buildLayout() {
          pane = getContentPane();
          pane.setLayout(new BorderLayout());          
          basePanel = new JPanel(new BorderLayout());
          basePanel.add(new JLabel(new ImageIcon("C:/GUI/Images/plogo.jpg")), BorderLayout.CENTER);
            pane.add(panel_1(), BorderLayout.NORTH);
            pane.add(basePanel, BorderLayout.CENTER);            
     private JPanel panel_1() {
          buttonPanel = new JPanel(new FlowLayout(FlowLayout.LEFT, 20, 10));          
          buttonPanel.setBackground(Color.decode("#526dad"));
          JButton buttons[] = new JButton[3];
          buttonPanel.add(createButton(buttons[0], "TIME CLOCK", new TestAction()));
          buttonPanel.add(createButton(buttons[1], "LOGIN", new LoginAction()));
          buttonPanel.add(createButton(buttons[2], "EXIT", new TestAction()));
          return buttonPanel;
     private JButton createButton(JButton btn, String displayTxt, AbstractAction action) {
          Dimension dim = new Dimension(100, 40);
          btn = new JButton(action);
          btn.setText(displayTxt);          
          btn.setPreferredSize(dim);
          btn.setMaximumSize(dim);
          btn.setMinimumSize(dim);
          btn.setBorder(BorderFactory.createLineBorder(Color.white, 2));
          btn.setBackground(Color.decode("#3e4b84"));
          btn.setForeground(Color.white);          
          btn.setFocusPainted(false);
          btn.setActionCommand(displayTxt);
          return btn;          
     private JPanel panel_2() {          
          basePanel = new JPanel(new BorderLayout());
          basePanel.add(new JLabel(new ImageIcon("C:/GUI/Images/plogo.jpg")), BorderLayout.CENTER);
          return basePanel;
     public static void main(String args[]) {
          UIManager.put("Label.font", new FontUIResource(new Font("Arial", Font.PLAIN, 12)));
          UIManager.put("Button.font", new FontUIResource(new Font("Arial", Font.PLAIN, 12)));
          Template1 tpl = new Template1();
     class TestAction extends AbstractAction {             
             public void actionPerformed(ActionEvent e) {
                  System.out.println("button pressed");
        class LoginAction extends AbstractAction {
             public void actionPerformed(ActionEvent e) {
                  basePanel.invalidate();
                basePanel = new JPanel();
               basePanel.add(new JLabel("test"));
               basePanel.repaint();               
}

You're creating a new panel every time an action is performed. That panel is never going to be visible unless you add it to the frame.
Either remove the old panel and add the new panel or add the label to the panel you already have without creating a new one. Then call validate on the whole frame, and it should work.

Similar Messages

  • Form Guide - dynamic field within dynamic container.

    I have a form Guide using dynamic containers, but within the dynamic container on the Form Guide within the same Repeater Accordion Panel, I also need a dynamic Row (2 fields) that need to repeat within the repeating container. I have built this in Adobe Lifecycle ES and once the Form Guide is finished will be taking it to Adobe Workbench to render.
    Could you please assist in how to make the dynamic row repeat within a container/panel that is also already repeating?
    Thanks.

    Penny,
    I have a requirement for the same thing. Unfortunately it doesn't look like this is possible as there is only one dataProvider per Panel - based on the type of panel chosen, this dataProvider will be used to populate a control (accordion, grid or tab) in the panel or used to populate a number of repeated (static) panels.
    My workaround has been to create a set number (10) of repeatable control panels (accordian, grid, tab) and then use the panel display rules to hide those panels with no data in them. It is very tedious to do as the guide builder has no rebind feature (you have to create all 10 panels from scratch - you can't copy & paste the layout, then rebind the panel items to another field in the form).
    John.

  • Disable all the components of a panel ( panels within the main panel )

    Hi guys!
    I have a problem!
    i have to disable all the components of a panel. please note that i am also having panels within the main panel. please tell me how to do that!!!
    its urgent!!

    Hi guys!
    I have a problem!Wouldn't have figured that one out by myself ...
    its urgent!!No, it's not.
    You know, a panel is most often a subclass of Container, so all you need to do is recursively disable all child components. The methods getComponents and getComponent are very helpful when trying to access child components. Code likeif ( comp instanceof Container )
      // do soemthing
    }will help in determining whether a child component is yet another Container.

  • Panel within a Panel

    Hi,
    how can i add a panel within a Panel or to update the second panel within a panel having the same frame.
    pls advise.
    bunch of thks

    I don't know if this is what you're wondering, but this code adds a panel to a panel.
    JPanel panel = new JPanel();
    JPanel subPanel = new JPanel();
    panel.add(subPanel);Josh

  • Control multiple updates and queries within one transaction in JPA

    Hi,
    I have a question regarding control multiple updates and queries within one transaction. We are using EclipseLink 2.3.1. With below code, will I be able to:
    - have all insert, update, select queries committed in one transaction;
    - queryGetBalance will return the latest OrgBalance after update;
    - if one fails, everything rolls back.
    Thanks!
    Jeffrey
    PS: I realized that I cannot use em.getTransaction().begin() and em.getTransaction().commit(), since I am using JTA.
    =============
    @PersistenceContext(unitName="Test")
    EntityManager em;
    em.setFlushMode(FlushModeType.COMMIT);
    newTransaction.setAmount(1000);
    newTransaction.setType("check");
    em.persist(newTransaction);
    orgAudit.setUpdateUser("Joe")
    orgAudit.setupUpdateTime(time);
    em.merge(orgAudit);
    Query queryUpdateBalance = em.createQuery("update OrgBalance o set o.balance = o.balance + :amount where orgId = :myOrgId");
    queryUpdateBalance.setParameter("amount", 1000);
    queryUpdateBalance.setParameter("myOrgId", 1234);
    Query queryGetBalance = em.createQuery("select OrgBalance o where o.orgId = :myOrgId");
    queryGetBalance.setHint("javax.persistence.cache.storeMode", CacheStoreMode.REFRESH);
    queryGetBalance.setHint("javax.persistence.cache.retrieveMode", CacheRetrieveMode.BYPASS);
    queryGetBalance.getResultList();
    em.flush();
    Edited by: JeffreyW on Dec 12, 2011 10:34 AM

    Yes, the operation will be in a single transaction, assuming you are using a JTA managed SessionBean and the code is part of a SessionBean method.

  • "couldn't update this book because it contains no openable nongenerated files"

    I need help with an error message “couldn't update this book because it contains no openable nongenerated files” when trying to create a book in Framemaker 12. Not sure what is happening but I am a new framemaker user so it could be operator error.

    A book is a set of links to for a) .fm files you've written yourself; b) files FrameMaker has helpfully generated for you. In my installation, the two sorts of content are differentiated by the colour of the icon; as you get used to FM, you'll also recognise the three-letter suffixes such as TOC.
    My usual workflow is to write a few .fm files, then set up the .book file I want to include these chapters in: if you start a project with New > Book and then click on Update, you'll get the message you describe. Until you have populated the .book with some links to your own .fm files, FM has no way of knowing what you want to include in the generated files.

  • [svn:fx-4.0.0] 13638: update to ensure fat-swcs contain a proper packages. dita file.

    Revision: 13638
    Revision: 13638
    Author:   [email protected]
    Date:     2010-01-19 14:51:32 -0800 (Tue, 19 Jan 2010)
    Log Message:
    update to ensure fat-swcs contain a proper packages.dita file. 
    -removed all packages.dita files from all langs where it was checked in
    -at the end of asdoc task we now copy the packages.dita out to the en_US project dir being built.  This is where the fat-swc task will pick up this file and place it in the docs directory of the _rb.swc
    -had to change the order of the build process slightly - old order: ant clean main other.locales doc - new order: ant clean main doc other.locales
    - I removed other.locales from main in the root/build.xml and made it it's own task and also removed the property locales.  so to build other.locales, the doc target needs to run first (will add a depends at some point).
    -in the internal build.xml I have changed to use the new order
    QE notes: make sure FB code hinting still works
    Doc notes:
    Bugs:
    Reviewer:
    Tests run: limitied package testing
    Is noteworthy for integration:
    Modified Paths:
        flex/sdk/branches/4.0.0/build.xml
        flex/sdk/branches/4.0.0/frameworks/projects/airframework/build.xml
        flex/sdk/branches/4.0.0/frameworks/projects/airspark/build.xml
        flex/sdk/branches/4.0.0/frameworks/projects/automation/build.xml
        flex/sdk/branches/4.0.0/frameworks/projects/datavisualization/build.xml
        flex/sdk/branches/4.0.0/frameworks/projects/framework/build.xml
        flex/sdk/branches/4.0.0/frameworks/projects/playerglobal/build.xml
        flex/sdk/branches/4.0.0/frameworks/projects/rpc/build.xml
        flex/sdk/branches/4.0.0/frameworks/projects/spark/build.xml
    Removed Paths:
        flex/sdk/branches/4.0.0/frameworks/projects/airframework/bundles/de_DE/docs/packages.dita
        flex/sdk/branches/4.0.0/frameworks/projects/airframework/bundles/fr_FR/docs/packages.dita
        flex/sdk/branches/4.0.0/frameworks/projects/airframework/bundles/ja_JP/docs/packages.dita
        flex/sdk/branches/4.0.0/frameworks/projects/airframework/bundles/ru_RU/docs/packages.dita
        flex/sdk/branches/4.0.0/frameworks/projects/airframework/bundles/zh_CN/docs/packages.dita
        flex/sdk/branches/4.0.0/frameworks/projects/airspark/bundles/de_DE/docs/packages.dita
        flex/sdk/branches/4.0.0/frameworks/projects/airspark/bundles/fr_FR/docs/packages.dita
        flex/sdk/branches/4.0.0/frameworks/projects/airspark/bundles/ja_JP/docs/packages.dita
        flex/sdk/branches/4.0.0/frameworks/projects/airspark/bundles/ru_RU/docs/packages.dita
        flex/sdk/branches/4.0.0/frameworks/projects/airspark/bundles/zh_CN/docs/packages.dita
        flex/sdk/branches/4.0.0/frameworks/projects/framework/bundles/de_DE/docs/packages.dita
        flex/sdk/branches/4.0.0/frameworks/projects/framework/bundles/fr_FR/docs/packages.dita
        flex/sdk/branches/4.0.0/frameworks/projects/framework/bundles/ja_JP/docs/packages.dita
        flex/sdk/branches/4.0.0/frameworks/projects/framework/bundles/ru_RU/docs/packages.dita
        flex/sdk/branches/4.0.0/frameworks/projects/framework/bundles/zh_CN/docs/packages.dita
        flex/sdk/branches/4.0.0/frameworks/projects/rpc/bundles/de_DE/docs/packages.dita
        flex/sdk/branches/4.0.0/frameworks/projects/rpc/bundles/fr_FR/docs/packages.dita
        flex/sdk/branches/4.0.0/frameworks/projects/rpc/bundles/ja_JP/docs/packages.dita
        flex/sdk/branches/4.0.0/frameworks/projects/rpc/bundles/ru_RU/docs/packages.dita
        flex/sdk/branches/4.0.0/frameworks/projects/rpc/bundles/zh_CN/docs/packages.dita
        flex/sdk/branches/4.0.0/frameworks/projects/spark/bundles/de_DE/docs/packages.dita
        flex/sdk/branches/4.0.0/frameworks/projects/spark/bundles/fr_FR/docs/packages.dita
        flex/sdk/branches/4.0.0/frameworks/projects/spark/bundles/ja_JP/docs/packages.dita
        flex/sdk/branches/4.0.0/frameworks/projects/spark/bundles/ru_RU/docs/packages.dita
        flex/sdk/branches/4.0.0/frameworks/projects/spark/bundles/zh_CN/docs/packages.dita

    Also, I tried running another script from a different forum and it errased the whole drive.  There are no partitions.  Does this matter if I'm running this script: mkdir /mnt/usb                                              (Creates mount directory)mount -t vfat /dev/sdb1 /mnt/usb                (Mounts the thumbdrive with your 2 files)cd /mnt/usb                                                    (Enters USB directory)mdadm -S /dev/md0                                     (Stops SystemRescueCD soft-raid - REQUIRED for script to run)./debrick.sh rootfs.img /dev/sda destroy  (Script will rewrite the partition table of disk and DESTROY all data and debrick the drive) If it won't work, how do I rebuild the partitions and what are they?

  • Collapsible Panel within another Collapsible Panel HEIGHT ISSUE

    Having an issue with the height of a collapsible panel that has another collapsible panel within it not adjusting. I am using Dreamweaver CS5.
    When I try the fix of changing line 431 in .js  (where you change "px" to "auto" where it says this.content.style.height = this.toHeight + "auto";) it does not work in IE7 or Firefox. If I change  the height inferences in the .js on lines 392, 431, and 439--it  worksperfect in Firefox, however it throws an error in IE7. Anyone have a  clue???
    Here is my page: http://www.l-3choosewisely.com/dev/
    username: owl
    password: l3ae2011
    Help would be greatly appreciated. PLEASE PLEASE PLEASE help me!

    For right now I have "semi-fixed" the issue, by adding a min-height to my second collapsible panel set, but really am NOT HAPPY
    with it... please help me, it has to be something with the auto-height... I know I am looking right at it and just not seeing it.

  • Error when updating a multivalued property that contains nested types

    we cannnot update a CMS content that contains a multivalued property composed of nested types.
    our CMS content is made of a custom type "t4" and contains the following properties :
    - titre of type "String"
    - compose of type "t1" where t1 is a CMS type containing the property titre of type "String" and doc of type "Binary".
    we get the following stack trace when updating the "compose" property on the CMS document :
    com.bea.content.RepositoryRuntimeException: Error retrieving multivalued nested property via given beginning of indexedName: compose, please check for the complete and correct indexedName on the Property in question. at com.bea.content.Node.getProperty(Node.java:454) at com.bea.content.federated.internal.NodeManagerImpl.getStream(NodeManagerImpl.java:669) at com.bea.jsptools.content.node.properties.editor.BinaryEditor.getValues(BinaryEditor.java:134) at com.bea.jsptools.content.node.properties.editor.NestedPropertyEditor.getValues(NestedPropertyEditor.java:90) at com.bea.jsptools.content.node.properties.editor.NestedPropertyEditor.getValues(NestedPropertyEditor.java:90) at content.node.nodeSelected.properties.NodePropertiesController.saveProperty(NodePropertiesController.java:1018) at content.node.nodeSelected.properties.NodePropertiesController.saveProperties(NodePropertiesController.java:973) at content.node.nodeSelected.properties.NodePropertiesController.saveProperties(NodePropertiesController.java:768) at sun.reflect.GeneratedMethodAccessor524.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.beehive.netui.pageflow.FlowController.invokeActionMethod(FlowController.java:854) at org.apache.beehive.netui.pageflow.FlowController.getActionMethodForward(FlowController.java:793) at org.apache.beehive.netui.pageflow.FlowController.internalExecute(FlowController.java:463) at org.apache.beehive.netui.pageflow.PageFlowController.internalExecute(PageFlowController.java:290) at org.apache.beehive.netui.pageflow.FlowController.execute(FlowController.java:338) at org.apache.beehive.netui.pageflow.internal.FlowControllerAction.execute(FlowControllerAction.java:51) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419) at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.access$201(PageFlowRequestProcessor.java:96) at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor$ActionRunner.execute(PageFlowRequestProcessor.java:2025) at org.apache.beehive.netui.pageflow.interceptor.action.internal.ActionInterceptors.wrapAction(ActionInterceptors.java:90) at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processActionPerform(PageFlowRequestProcessor.java:2096) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224) at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processInternal(PageFlowRequestProcessor.java:550) at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:838) at org.apache.beehive.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:634) at org.apache.beehive.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:156) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at org.apache.beehive.netui.pageflow.PageFlowUtils.strutsLookup(PageFlowUtils.java:1177) at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.executeAction(ScopedContentCommonSupport.java:622) at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.processActionInternal(ScopedContentCommonSupport.java:140) at com.bea.portlet.adapter.scopedcontent.PageFlowStubImpl.processAction(PageFlowStubImpl.java:107) at com.bea.portlet.adapter.NetuiActionHandler.raiseScopedAction(NetuiActionHandler.java:99) at com.bea.netuix.servlets.controls.content.NetuiContent.raiseScopedAction(NetuiContent.java:177) at com.bea.netuix.servlets.controls.content.NetuiContent.raiseScopedAction(NetuiContent.java:165) at com.bea.netuix.servlets.controls.content.NetuiContent.handlePostbackData(NetuiContent.java:219) at com.bea.netuix.nf.ControlLifecycle$2.visit(ControlLifecycle.java:179) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:351) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:361) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:361) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:361) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:361) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:361) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:361) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:361) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:361) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:361) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:361) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:361) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:361) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:361) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:361) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:361) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:361) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:361) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:361) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:361) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:361) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:361) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:361) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:361) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:361) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:361) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:361) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:361) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:361) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:361) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:361) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:361) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:361) at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:128) at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361) at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:339) at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:330) at com.bea.netuix.nf.Lifecycle.runInbound(Lifecycle.java:162) at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:137) at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:370) at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:229) at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:183) at com.bea.netuix.servlets.manager.SingleFileServlet.service(SingleFileServlet.java:240) at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.java:574) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:273) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at com.bea.jsptools.servlet.PagedResultServiceFilter.doFilter(PagedResultServiceFilter.java:82) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:292) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3191) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1979) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1886) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1317) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209) at weblogic.work.ExecuteThread.run(ExecuteThread.java:181) Caused by: com.bea.content.RepositoryException: Error retrieving multivalued nested property via given beginning of indexedName: compose, please check for the complete and correct indexedName on the Property in question. at com.bea.content.internal.client.common.NestedHelper.getContainerIndex(NestedHelper.java:243) at com.bea.content.internal.client.common.NestedHelper.loopNested(NestedHelper.java:278) at com.bea.content.internal.client.common.NestedHelper.getNestedProperty(NestedHelper.java:162) at com.bea.content.internal.client.common.NestedHelper.getProperty(NestedHelper.java:102) at com.bea.content.internal.client.common.NestedHelper.getProperty(NestedHelper.java:126) at com.bea.content.Node.getProperty(Node.java:451) ... 98 more

    I was able to reproduce this issue in the beta also. The issue has since been fixed. For the time being, it looks like you can just clear (delete) that particular value and re-add it w/ the updated binary.

  • To contact 3rd party application from within EJB container

    What are the possible options to communicate with an external application from within EJB container? Options that I can think of are
    - RMI
    - JMS
    - Socket communication
    - HTTP
    - any other option???
    And if anyone can give the pros & cons of the different approaches, based on their experiences it will be great.

    Hi,
    There is one more.
    Web Services which is much powerful than any other.
    Ofcourse for this also u have to use socket communication and http protocol.
    SOAP(Simple Object Access Protocol).. I think u got it..
    I prefer SOAP as it has many adavantages over RMI and other.
    Thanks,
    All the best.
    What are the possible options to communicate with an
    external application from within EJB container?
    Options that I can think of are
    - RMI
    - JMS
    - Socket communication
    - HTTP
    - any other option???
    And if anyone can give the pros & cons of the
    different approaches, based on their experiences it
    will be great.

  • Updating the GRANTS of a Container: error ORACLE.FDK.ServerError

    Hi there,
    Am trying to update the grants of a container and adding new Users with admin roles using SecurityManagers.addGrants() method. But when ever i excute the method i recieve the following error, ORACLE.FDK.UnexpectedError:ORACLE.FDK.ServerError. Below is the code.
    First am preparing the GRANTS, as follows.
    private NamedValue[] prepareGrants() {
            NamedValue[] attributes = null;
            NamedValue[] roles1 = null;
            NamedValue[] roles2 = null;
            Item user1 = null;
            Item user2 = null;
            Item libAdminRole;
            Item quotaAdminRole;
            Item secAdminRole;
            try {
    //            sm.keepAlive();
                user2 = um.getUser("karthik.rajashekar",null);
                user1 = um.getUser("test.user1",null);
                libAdminRole = secm.getRoleByName("WorkspaceAdministrator",null);
                quotaAdminRole = secm.getRoleByName("QuotaAdministrator",null);
                roles1 = newNamedValueArray(new Object[][]{
                    {Attributes.GRANTEE,new Long(user1.getId())},
                    {Attributes.ROLES,new Long[]{new Long(libAdminRole.getId()),new Long(quotaAdminRole.getId())}},
                    {Attributes.PROPAGATING, new Boolean(true)},
                    {Attributes.HAS_ADMIN_ROLES,new Boolean(true)}
                secAdminRole = secm.getRoleByName("SecurityAdministrator",null);
                roles2 = newNamedValueArray(new Object[][]{
                    {Attributes.GRANTEE,new Long(user2.getId())},
                    {Attributes.ROLES,new Long[]{new Long(secAdminRole.getId())}},
                    {Attributes.PROPAGATING, new Boolean(true)},
                    {Attributes.HAS_ADMIN_ROLES,new Boolean(true)}
                NamedValueSet[] secConfig = new NamedValueSet[]{newNamedValueSet(roles1),newNamedValueSet(roles2)};
                attributes = newNamedValueArray(new Object[][]{
                    {Attributes.GRANTS,secConfig}
            } catch (RemoteException ex) {
                ex.printStackTrace();
                logout();
            return attributes;
        }Then am using calling addGrants() with the attributes i have prepared from the former function, Below is the code
    public void addGrants(String path, NamedValue[] grants) {
            try {
                Item mycontainer = fm.resolvePath(path,null);
    //            Long id = new Long(mycontainer.getId());
                secm.addGrants(mycontainer.getId(),grants,null);
            } catch (RemoteException ex) {
                ex.printStackTrace();
                logout();
            } catch (Exception ex) {
                ex.printStackTrace();
                logout();
        }Below using the log file entry, of OC4J_Content, related to the error,
    07/09/19 20:32:12 content:  [oracle.ifs.fdk.http.HttpAuthManager] [85] 1273949 orcladmin INFO: HTTP Login: User = orcladmin;
    IP = 192.9.200.7; UA = Axis/1.2
    07/09/19 20:32:13 content:  [oracle.ifs.fdk.ExceptionLogger] [85] 1273949 orcladmin SEVERE: Exception ID: 9-1190214133370
    ORACLE.FDK.UnexpectedError:ORACLE.FDK.ServerError
            at oracle.ifs.fdk.FdkException.getInstance(FdkException.java:181)
            at oracle.ifs.fdk.FdkException.getInstance(FdkException.java:74)
            at oracle.ifs.fdk.impl.SecurityManagerImpl.addGrants(SecurityManagerImpl.java:563)
            at sun.reflect.GeneratedMethodAccessor199.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:388)
            at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:283)
            at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:319)
            at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
            at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
            at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
            at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:453)
            at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
            at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
            at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
            at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
            at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
            at oracle.ifs.fdk.http.HttpServerManager.doFilter(HttpServerManager.java:103)
            at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
            at oracle.ifs.fdk.http.AxisSecurityFilter.doFilter(AxisSecurityFilter.java:83)
            at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:659)
            at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
            at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
            at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
            at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
            at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
            at java.lang.Thread.run(Thread.java:534)
    Caused by: java.lang.ClassCastException
            at oracle.ifs.fdk.impl.Utils.createSecurityConfigurationDefinition(Utils.java:624)
            at oracle.ifs.fdk.impl.SecurityManagerImpl.addGrants(SecurityManagerImpl.java:524)
            ... 28 more
    FdkException Details: oracle.ifs.fdk.FdkException: ErrorCode = ORACLE.FDK.UnexpectedError; DetailedErrorCode = ORACLE.FDK.Ser
    verError; Cause = null; ServerStackTraceId = 9-1190214133370; Info = null; Entries = nullCan anyone help me out on this?

    Hi there,
    Am trying to update the grants of a container and adding new Users with admin roles using SecurityManagers.addGrants() method. But when ever i excute the method i recieve the following error, ORACLE.FDK.UnexpectedError:ORACLE.FDK.ServerError. Below is the code.
    First am preparing the GRANTS, as follows.
    private NamedValue[] prepareGrants() {
            NamedValue[] attributes = null;
            NamedValue[] roles1 = null;
            NamedValue[] roles2 = null;
            Item user1 = null;
            Item user2 = null;
            Item libAdminRole;
            Item quotaAdminRole;
            Item secAdminRole;
            try {
    //            sm.keepAlive();
                user2 = um.getUser("karthik.rajashekar",null);
                user1 = um.getUser("test.user1",null);
                libAdminRole = secm.getRoleByName("WorkspaceAdministrator",null);
                quotaAdminRole = secm.getRoleByName("QuotaAdministrator",null);
                roles1 = newNamedValueArray(new Object[][]{
                    {Attributes.GRANTEE,new Long(user1.getId())},
                    {Attributes.ROLES,new Long[]{new Long(libAdminRole.getId()),new Long(quotaAdminRole.getId())}},
                    {Attributes.PROPAGATING, new Boolean(true)},
                    {Attributes.HAS_ADMIN_ROLES,new Boolean(true)}
                secAdminRole = secm.getRoleByName("SecurityAdministrator",null);
                roles2 = newNamedValueArray(new Object[][]{
                    {Attributes.GRANTEE,new Long(user2.getId())},
                    {Attributes.ROLES,new Long[]{new Long(secAdminRole.getId())}},
                    {Attributes.PROPAGATING, new Boolean(true)},
                    {Attributes.HAS_ADMIN_ROLES,new Boolean(true)}
                NamedValueSet[] secConfig = new NamedValueSet[]{newNamedValueSet(roles1),newNamedValueSet(roles2)};
                attributes = newNamedValueArray(new Object[][]{
                    {Attributes.GRANTS,secConfig}
            } catch (RemoteException ex) {
                ex.printStackTrace();
                logout();
            return attributes;
        }Then am using calling addGrants() with the attributes i have prepared from the former function, Below is the code
    public void addGrants(String path, NamedValue[] grants) {
            try {
                Item mycontainer = fm.resolvePath(path,null);
    //            Long id = new Long(mycontainer.getId());
                secm.addGrants(mycontainer.getId(),grants,null);
            } catch (RemoteException ex) {
                ex.printStackTrace();
                logout();
            } catch (Exception ex) {
                ex.printStackTrace();
                logout();
        }Below using the log file entry, of OC4J_Content, related to the error,
    07/09/19 20:32:12 content:  [oracle.ifs.fdk.http.HttpAuthManager] [85] 1273949 orcladmin INFO: HTTP Login: User = orcladmin;
    IP = 192.9.200.7; UA = Axis/1.2
    07/09/19 20:32:13 content:  [oracle.ifs.fdk.ExceptionLogger] [85] 1273949 orcladmin SEVERE: Exception ID: 9-1190214133370
    ORACLE.FDK.UnexpectedError:ORACLE.FDK.ServerError
            at oracle.ifs.fdk.FdkException.getInstance(FdkException.java:181)
            at oracle.ifs.fdk.FdkException.getInstance(FdkException.java:74)
            at oracle.ifs.fdk.impl.SecurityManagerImpl.addGrants(SecurityManagerImpl.java:563)
            at sun.reflect.GeneratedMethodAccessor199.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:388)
            at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:283)
            at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:319)
            at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
            at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
            at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
            at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:453)
            at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
            at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
            at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
            at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
            at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
            at oracle.ifs.fdk.http.HttpServerManager.doFilter(HttpServerManager.java:103)
            at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
            at oracle.ifs.fdk.http.AxisSecurityFilter.doFilter(AxisSecurityFilter.java:83)
            at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:659)
            at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
            at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
            at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
            at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
            at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
            at java.lang.Thread.run(Thread.java:534)
    Caused by: java.lang.ClassCastException
            at oracle.ifs.fdk.impl.Utils.createSecurityConfigurationDefinition(Utils.java:624)
            at oracle.ifs.fdk.impl.SecurityManagerImpl.addGrants(SecurityManagerImpl.java:524)
            ... 28 more
    FdkException Details: oracle.ifs.fdk.FdkException: ErrorCode = ORACLE.FDK.UnexpectedError; DetailedErrorCode = ORACLE.FDK.Ser
    verError; Cause = null; ServerStackTraceId = 9-1190214133370; Info = null; Entries = nullCan anyone help me out on this?

  • HTML content within a Container

    Hello.
    New to FLEX and wondering if there is anyway to provide HTML
    content within a container, sort of like iFrames or HTML frames? Is
    there anyway to do this with FLEX?

    Will this eventually be available in Flex Builder for use in
    web-based SWF applications? This is a huge requirement for us. We
    are currently using the 'iFrame' hack to get around this but are
    plagued with event handling issues to correctly hide the iFrame
    when needed. In large scale products, such we are working on, url
    integration with our components of our products is a must
    requirement. Any insight here would be great on what we can do in
    Flex Builder 2.01 for this.
    We also have a requirement that Linux, Windows (and secondary
    requirement MAC) systems can use our product.

  • [General Question] redrawing and updating front panel objects

    Hello,
    I have several questions on this topic.
    1)  Is there a difference between redrawing and updating the front panel? (I assume so, but when a control is updated it will be redrawn at the same time, right?)
    2)  Is redrawing = rendering? In the case of decorations I think they need only to be rendered once (if fix/static) and stay in memory so that it is available for the gfx-card...
    3)  Are decorations redrawn or updated by LabView with every loop?
    4) Is there a way to prevent LabView from redrawing and/or updating front panel objects (like controls, indicators and decorations)?
        When I put indicators into case-structures they are only updated when the case in which they are placed is executed but they will be obviously still redrawn.
        In another case when I disable visibility of those indicators they will not be redrawn anymore but be updated in the background.
        So when I put these indicators into a case-structure and combine it with toggling the visibility I could stop LabView from updating and redrawing them.
        Is this correct?
        Is there another way to prevent LabView from redrawing single objects? (at best leave them somehow visible)
    Many thanks in advance!

    Nocturn wrote:
    Hello,
    I have several questions on this topic.
    1)  Is there a difference between redrawing and updating the front panel? (I assume so, but when a control is updated it will be redrawn at the same time, right?)
    2)  Is redrawing = rendering? In the case of decorations I think they need only to be rendered once (if fix/static) and stay in memory so that it is available for the gfx-card...
    3)  Are decorations redrawn or updated by LabView with every loop?
    4) Is there a way to prevent LabView from redrawing and/or updating front panel objects (like controls, indicators and decorations)?
        When I put indicators into case-structures they are only updated when the case in which they are placed is executed but they will be obviously still redrawn.
        In another case when I disable visibility of those indicators they will not be redrawn anymore but be updated in the background.
        So when I put these indicators into a case-structure and combine it with toggling the visibility I could stop LabView from updating and redrawing them.
        Is this correct?
        Is there another way to prevent LabView from redrawing single objects? (at best leave them somehow visible)
    Many thanks in advance!
    redraw vs update
    Yes threr is a difference. A control is redrawn when LV decides to update the GUI. Look into "syncronous" setting for controls that forces update when value changed. These tags and thesse tags may help out abit.
    Q2
    Not sure about equality but decoartion may need redrawn if there is overlap of chanable objects.
    Q3
    i have observed decorations that failed to update on occation so I suspect they are only update when required.
    Q4
    LV will update the value for a hidden control but will not update its image. Same if the object is ona hidden tab page.
    No wawy that I know of to prevent an update of a single object with out going to extremes. The Front pnale property "DeferFPupdate" will inhibit FP updates while true and allow then when set false. I use this when doing a lot fast GUI updates so allow the changes to accumulate and be apllied only once.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to load an Applet on a panel, within another Applet

    Hi,
    I want to know if and how it is possible to load an applet/application on a Panel within another Applet/Apllication.
    Who can help me?
    tnx

    You want to use an applet inside an other applet?
    Applet extends Panel
    you can take the source of the second applet, and instead of extending Applet extends Panel, and call the init method from the first applet.
    Hope this help

  • Update display panel from last nvidia driver with MSI VGA OC display ...

    Hello,
    I have a MSI NX7600GS under windows XP and I've update the last nvidia driver for ...
    But I loose my original MSI VGA OC display tweaking panel in windows xp standard display panel ...
    How can I update display panel with MSI VGA OC display tweaking panel and the last nvidia driver ?
     ???

    Quote from: AaronYuri on 29-March-07, 23:19:28
    Easy. Manually update the drivers.
    Go:
    My Computer > Properties > Hardware tab > Device Manager > VGA card > Right click > Properties > Driver tab > Update driver find the folder with the ForceWare driver > Click OK. Your done.
    You'll have to extract the drivers out of the .exe that they come in firstly mind.
    I want to keep my latest downloaded nvidia drivers and add official MSI OC tweaking in windows xp display panel, so ... you asked me to find the folder with the ForceWare driver : last (from nvidia) or previous (from MSI's CD driver) ?
    And how can I extact the drivers out of the .exe without launching install procedure ?
    Thanks ... 

Maybe you are looking for