Want to add an item at top of Pagelayout

Hi,
I want to add an item on top of PageLayout(programatically).I have tried it by making pageLayout bean but it adds the item at bottom.Please help me out.
Thnx

Hi,
If you will add the controls programatically then these will be added at the end of the page, there is one workaround for this.
Create a region and required controls in it as per your need, after using personalization create one stack layout, and set the path of your newly created region to "Extends" Property.
again do personalizatio reorder your stack Layout to come at the top.
I hope it will help.
Regards,
Reetesh Sharma

Similar Messages

  • Dropdown and data provider. I want to add an item to my dropdown

    Hi,
    here my problem. I've a downdrop. It is binded to a data provider. It works fine, all the db rows are displayed.
    Now I want to add an item to my downdrop, programmatically. This because, I need to put a new selection named "ALL" into the dropdown.
    This item should be the first in the dropdown list selections.
    I cant' work with an option array, because it is already binded to a data provider, so how can I add an item to my dropdown programmatically?
    Thank you

    No problem... you're helping me!!
    Well, about the data provider I just find the following code, but nothing about the "option" method. If you need I can provide you also the session bean code.
      private void _init() throws Exception {
            pers_categorieDataProvider.setCachedRowSet((javax.sql.rowset.CachedRowSet)getValue("#{SessionBean1.pers_categorieRowSet}"));
            private DropDown dropDownPersCat = new DropDown();
        public DropDown getDropDownPersCat() {
            return dropDownPersCat;
        public void setDropDownPersCat(DropDown dd) {
            this.dropDownPersCat = dd;
        private CachedRowSetDataProvider pers_categorieDataProvider = new CachedRowSetDataProvider();
        public CachedRowSetDataProvider getPers_categorieDataProvider() {
            return pers_categorieDataProvider;
        public void setPers_categorieDataProvider(CachedRowSetDataProvider crsdp) {
            this.pers_categorieDataProvider = crsdp;
        private LongConverter dropDownPersCatConverter = new LongConverter();
        public LongConverter getDropDownPersCatConverter() {
            return dropDownPersCatConverter;
        public void setDropDownPersCatConverter(LongConverter lc) {
            this.dropDownPersCatConverter = lc;
          public Indirizzario() {
          public void init() {
            // Perform initializations inherited from our superclass
            super.init();
            // Perform application initialization that must complete
            // *before* managed components are initialized
            // TODO - add your own initialiation code here
            // <editor-fold defaultstate="collapsed" desc="Managed Component Initialization">
            // Initialize automatically managed components
            // *Note* - this logic should NOT be modified
            try {
                _init();
            } catch (Exception e) {
                log("Indirizzario Initialization Failure", e);
                throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
            // </editor-fold>
            // Perform application initialization that must complete
            // *after* managed components are initialized
            // TODO - add your own initialization code here
         * <p>Callback method that is called after the component tree has been
         * restored, but before any event processing takes place.  This method
         * will <strong>only</strong> be called on a postback request that
         * is processing a form submit.  Customize this method to allocate
         * resources that will be required in your event handlers.</p>
        public void preprocess() {
         * <p>Callback method that is called just before rendering takes place.
         * This method will <strong>only</strong> be called for the page that
         * will actually be rendered (and not, for example, on a page that
         * handled a postback and then navigated to a different page).  Customize
         * this method to allocate resources that will be required for rendering
         * this page.</p>
        public void prerender() {
         * <p>Callback method that is called after rendering is completed for
         * this request, if <code>init()</code> was called (regardless of whether
         * or not this was the page that was actually rendered).  Customize this
         * method to release resources acquired in the <code>init()</code>,
         * <code>preprocess()</code>, or <code>prerender()</code> methods (or
         * acquired during execution of an event handler).</p>
        public void destroy() {
            pers_categorieDataProvider.close();
         * <p>Return a reference to the scoped data bean.</p>
        protected SessionBean1 getSessionBean1() {
            return (SessionBean1)getBean("SessionBean1");
         * <p>Return a reference to the scoped data bean.</p>
        protected RequestBean1 getRequestBean1() {
            return (RequestBean1)getBean("RequestBean1");
         * <p>Return a reference to the scoped data bean.</p>
        protected ApplicationBean1 getApplicationBean1() {
            return (ApplicationBean1)getBean("ApplicationBean1");
    }

  • Want to add an item to the Mail tool bar?

    In Mail I often find a need to toggle "Quote the text of the original message."  Each time I do this means a trip into Mail "preferences."  Is there some way to add this item to the Mail tool bar?
    Thanks,
    JimH

    In Mail I often find a need to toggle "Quote the text of the original message."  Each time I do this means a trip into Mail "preferences."  Is there some way to add this item to the Mail tool bar?
    Thanks,
    JimH

  • Oracle apex how the region title i want to add one items

    hi :
    i have one page .this is page have 1)search region 2) report
    in search region have the one select list contains the datas like a,b,c,d,e,f etc..
    if i selectd the a and click query button in the report region page title ..i want add like REPORT ON a ..if i selected b and click the query it should display the REPORT ON b ....like this i want out put pls ..tell me how will do as soon as possible...

    Sure it is possible. See this example:
    http://htmldb.oracle.com/pls/otn/f?p=31517:99
    There you have a select list and if you click on the button after choosing a value, you will
    get a report on it.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Want to add Custom text after Product Branding Image for application

    Hi
    Can we add any text after Product Branding Image for application
    By default it will show the responsibility function name
    My requirement is after company logo I want to add Text at the top of application
    with center align
    Need suggestions
    Regards
    Krishna

    Hi Anoop
    If I done what u suggested then the function responsibilty name will also come
    and the application will be disturbed
    Is their a way to edit the text at the top
    Regards
    Krishna

  • How to add new item in more options dialog box

    Hi all,
    Can anyone tell me how to add new item in more options dialog box(site actions -> more options). I want to add new item there to the new page layout which I created but I didn't find any way to do it. can anyone assist me for this.

    Good point, in order to add a Page into that area, you will need to define a Custom Action. You can learn more about creating Custom Actions here:
    http://msdn.microsoft.com/en-us/library/hh500259(v=office.14).aspx
    As an example, Microsoft uses the following Custom Action to add the "Publishing Page" to that Create Silverlight control when enabling the Publishing features:
    <CustomAction
    Id="CreatePublishingPage"
    GroupId="WebPages"
    Location="Microsoft.SharePoint.Create"
    Sequence="100"
    Title="$Resources:cmscore,Create_WebPages_PublishedPage;"
    Description="$Resources:cmscore,Create_WebPages_PublishedPage_Description;"
    ImageUrl="/_layouts/images/ltpp.png">
    <UrlAction Url="_Layouts/CreatePage.aspx" />
    </CustomAction>
    Dimitri Ayrapetov (MCSE: SharePoint)

  • How to add an item  in the combobox list at runtime

    i want to add an item to the list of items in the combobox. How can I do this? I tried to use the methods getselecteditem() and getitem() from the actionlistener but no success.
    so after i add an item, the next time when i run that frame, that item should be displayed in the list of items in the combobox. Can anybody help me with this?

    Thanks Encephalophathic.
    Let me explain you the whole design -
    I have a frame having textfields and comboboxes. Now in the combobox, i have added some fields during design time and some i want the user to add at runtime. After the user clicks the Save button, i want the new string if entered in the combobox by the user at runtime to be added in the list of items of the combobox. So the next time when that frame is run, the item added by the user at runtime previously should be there in the list of items displayed in the combobox.
    What I am trying to do in this code at the combobox is if the user enters a new string in the combobox, then if he presses enter key, the value entered in the list of the combobox should be entered in the list of items of the combobox. Actually i m just trying to get the item typed in by the user, so just testing with enter key, but really i want it on the button click. I tried to add the code for adding an item to the combobox in the actionperformed, but i m not able to add it so confused what to do. Please help me with this.
    Here's the whole code for that -
    import java.awt.BorderLayout;
    import java.awt.FlowLayout;
    import java.awt.GridLayout;
    import java.awt.event.ActionEvent;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.BorderFactory;
    import javax.swing.JButton;
    import javax.swing.JLabel;
    import javax.swing.JTextField;
    import javax.swing.JMenu;
    import javax.swing.JMenuBar;
    import javax.swing.JMenuItem;
    import javax.swing.JCheckBoxMenuItem;
    import javax.swing.JComboBox;
    import java.awt.event.ActionListener;
    import javax.swing.JOptionPane;
    import javax.swing.JDialog.*;
    import javax.swing.JComboBox;
    public  class EnterFD implements ActionListener{
      private JFrame frame;
       private JPanel mainpanel,menupanel,userinputpanel,buttonpanel;
       private JMenuBar menubar;
       private JMenu menu,submenu;
       private JMenuItem menuitem;
       private JCheckBoxMenuItem cbmenuitem;
       private JLabel fdnumber;
       private JLabel bankname;
       private JLabel beneficiaryname;
       private JLabel entereddate;
       private JLabel maturitydate;
       private JLabel rateofinterest;
       private JLabel amount;
       private JLabel maturityamount;
       private JTextField fdnumbertxtfield;
       private JComboBox banknamecombobox;
       private JTextField beneficiarynametxtfield;
       private JComboBox entereddatecombobox;
       private JComboBox maturitydatecombobox;
       private JTextField rateofinteresttxtfield;
       private JTextField amounttxtfield;
       private JTextField maturityamounttxtfield;
       private JButton savebutton;
       private JButton clearbutton;
    public EnterFD() {
            initComponents();}
        private final void initComponents(){
            fdnumber = new JLabel("FD Number:");
            bankname = new JLabel("Bank Name:");
            beneficiaryname = new JLabel("Beneficiary Name:");
            entereddate = new JLabel("Entered Date:");
            maturitydate = new JLabel("Maturity Date:");
            rateofinterest = new JLabel("Rate Of Interest:");
            amount = new JLabel("Amount:");
            maturityamount = new JLabel("Maturity Amount:");
            fdnumbertxtfield = new JTextField();
            banknamecombobox = new JComboBox();
            banknamecombobox.addItem("State Bank Of India");
            banknamecombobox.addItem("Bank Of Baroda");
            banknamecombobox.addItem("IDBI Bank");
            banknamecombobox.addItem("ICICI Bank");
            banknamecombobox.addItem("Punjab National Bank");
            banknamecombobox.setEditable(true);
            banknamecombobox.setSelectedIndex(-1);
            banknamecombobox.addKeyListener(new java.awt.event.KeyAdapter() {
                @Override
                public void keyTyped(java.awt.event.KeyEvent evt) {
                    banknamecomboboxKeyTyped(evt);
            banknamecombobox.addKeyListener(new java.awt.event.KeyAdapter() {
                @Override
                public void keyReleased(java.awt.event.KeyEvent evt) {
                    banknamecomboboxKeyReleased(evt);
            beneficiarynametxtfield = new JTextField();
            entereddatecombobox = new JComboBox();
            maturitydatecombobox = new JComboBox();
            rateofinteresttxtfield = new JTextField();
            amounttxtfield = new JTextField();
            maturityamounttxtfield = new JTextField();
            menubar = new JMenuBar();
             menu = new JMenu("File");
             menubar.add(menu);
             menuitem = new JMenuItem("New");
             menu.add(menuitem);
             menuitem.addActionListener(this);
             menuitem = new JMenuItem("Save");
             menu.add(menuitem);
             menuitem.addActionListener(this);
             menuitem = new JMenuItem("Close");
             menu.add(menuitem);
             menuitem.addActionListener(this);
             menuitem = new JMenuItem("Exit");
             menu.add(menuitem);
             menuitem.addActionListener(this);
             menu = new JMenu("Edit");
             menubar.add(menu);
             menuitem = new JMenuItem("View FD");
             menu.add(menuitem);
             menuitem.addActionListener(this);
            mainpanel = new JPanel(new BorderLayout());
            menupanel = new JPanel(new BorderLayout());
            menupanel.add(menubar);
             userinputpanel = new JPanel(new GridLayout(8,2,5,20));
            userinputpanel.setBorder(BorderFactory.createEmptyBorder(50,50,80,80));
            userinputpanel.add(fdnumber);
            userinputpanel.add(fdnumbertxtfield);
            fdnumbertxtfield.setColumns(50);
            userinputpanel.add(bankname);
            userinputpanel.add(banknamecombobox);
            userinputpanel.add(beneficiaryname);
            userinputpanel.add(beneficiarynametxtfield);
            beneficiarynametxtfield.setColumns(50);
            userinputpanel.add(rateofinterest);
            userinputpanel.add(rateofinteresttxtfield);
            rateofinteresttxtfield.setColumns(50);
            userinputpanel.add(amount);
            userinputpanel.add(amounttxtfield);
            amounttxtfield.setColumns(50);
            userinputpanel.add(maturityamount);
            userinputpanel.add(maturityamounttxtfield);
            maturityamounttxtfield.setColumns(50);
            savebutton = new JButton("Save");
            clearbutton = new JButton("Clear");
            JPanel buttonpanel = new JPanel(new FlowLayout(FlowLayout.CENTER));
            buttonpanel.add(savebutton);
            buttonpanel.add(clearbutton);
            savebutton.addActionListener(this);
            clearbutton.addActionListener(this);
            mainpanel.add(menupanel,BorderLayout.NORTH);
            mainpanel.add(userinputpanel,BorderLayout.CENTER);
            mainpanel.add(buttonpanel,BorderLayout.SOUTH);
            frame = new JFrame("Enter FD");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setSize(3000,3000);
            frame.setContentPane(mainpanel);
            frame.pack();
            frame.setVisible(true); }

  • Add Multiple Item in database on single click

    hi Friends,
    i have a problem :-
    i have a bill with multiple item eg . Apple (12), Banana (49), Badam (145) , Grapes(25) with there quantity and now i want to Add these item with quantity in my database
    when i finaly click on submit button .
    Actully I have been used tabular form but i am facing one problem when using tabular form ,in Tabular form i enter first item eg . Apple and there quantity eg. *12* in textfield and after click on Add Row Buttom entry went to the database . but i want Entry Shouldn't go in to the database. But only New Row Should Add there when i click on Add Row Button.
    I want all these 4 item should enter in to data base when i click on Final Submit.
    Manoj

    You have to study document [http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14303/advanc.htm#sthref2152] . Every case is other, you have to work hard : ). But it's good addition.
    Now I have no time, I will for 10 hours in forum, if you can't resolve your problem I will help you
    If I help you please grade HELPFUL or CORRECT: )
    Edited by: AndyPol on 2009-09-05 12:47

  • Add second item into PayPal express checkout list

    I want to add second item into PayPal express checkout list public void initPayPal() throws SSLConfigurationException, InvalidCredentialException, IOException, HttpErrorException, InvalidResponseDataException, ClientActionRequiredException, MissingCredentialException, InterruptedException, OAuthException, ParserConfigurationException, com.paypal.exception.SSLConfigurationException, com.paypal.exception.InvalidCredentialException, com.paypal.exception.HttpErrorException, com.paypal.exception.InvalidResponseDataException, com.paypal.exception.ClientActionRequiredException, com.paypal.exception.MissingCredentialException, com.paypal.sdk.exceptions.OAuthException, org.xml.sax.SAXException
    PaymentDetailsType paymentDetails = new PaymentDetailsType();
    paymentDetails.setPaymentAction(PaymentActionCodeType.SALE);
    PaymentDetailsItemType item = new PaymentDetailsItemType();
    BasicAmountType amt = new BasicAmountType();
    amt.setCurrencyID(CurrencyCodeType.fromValue("USD"));
    double itemAmount = 1.00;
    amt.setValue(String.valueOf(itemAmount));
    int itemQuantity = 1;
    item.setQuantity(itemQuantity);
    item.setName("item");
    item.setAmount(amt);
    List<PaymentDetailsItemType> lineItems = new ArrayList<PaymentDetailsItemType>();
    lineItems.add(item);
    paymentDetails.setPaymentDetailsItem(lineItems);
    BasicAmountType orderTotal = new BasicAmountType();
    orderTotal.setCurrencyID(CurrencyCodeType.fromValue("USD"));
    orderTotal.setValue(String.valueOf(itemAmount * itemQuantity));
    paymentDetails.setOrderTotal(orderTotal);
    List<PaymentDetailsType> paymentDetailsList = new ArrayList<PaymentDetailsType>();
    paymentDetailsList.add(paymentDetails);
    SetExpressCheckoutRequestDetailsType setExpressCheckoutRequestDetails = new SetExpressCheckoutRequestDetailsType();
    setExpressCheckoutRequestDetails.
    setExpressCheckoutRequestDetails.setReturnURL("http://devtools-paypal.com/guide/expresscheckout/java?success=true");
    setExpressCheckoutRequestDetails.setCancelURL("http://devtools-paypal.com/guide/expresscheckout/java?cancel=true");
    setExpressCheckoutRequestDetails.setPaymentDetails(paymentDetailsList);
    SetExpressCheckoutRequestType setExpressCheckoutRequest = new SetExpressCheckoutRequestType(setExpressCheckoutRequestDetails);
    setExpressCheckoutRequest.setVersion("104.0");
    SetExpressCheckoutReq setExpressCheckoutReq = new SetExpressCheckoutReq();
    setExpressCheckoutReq.setSetExpressCheckoutRequest(setExpressCheckoutRequest);
    Map<String, String> sdkConfig = new HashMap<String, String>();
    sdkConfig.put("mode", "sandbox");
    sdkConfig.put("acct1.UserName", "peter.penzov_api1.gmail.com");
    sdkConfig.put("acct1.Password", "5LQB5QHQJVKP9QKN");
    sdkConfig.put("acct1.Signature", "AFcWxV21C7fd0v3bYYYRCpSSRl31A6JqBNQNOE3.Jwxfs7nIV1jR7qcl");
    PayPalAPIInterfaceServiceService service = new PayPalAPIInterfaceServiceService(sdkConfig);
    SetExpressCheckoutResponseType setExpressCheckoutResponse = service.setExpressCheckout(setExpressCheckoutReq);
    String token = setExpressCheckoutResponse.getToken();
    String link = "https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=" + token;
    ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();
    externalContext.redirect(link);
    }   

    Help please?

  • When I want to add items to the bookmarks toolbar, for example: -Zoom toolbar. The zoom Toolbar appears on the bookmarks toolbar, but it shows the favicons aswell the underlined text. I only want the favicons. How to do this, please help!!

    I want to add items to the bookmarks toolbar. for example: the Zoom Toolbar addon. This works, but not only the favicons appear on the bookmarks toolbar, aswell as the underlined text. How to avoid this?
    I only want the favicons from an addon to appear on the bookmarks toolbar, not with the underlined text. How to do this?
    This problem doesn't happen with any other toolbar. And this problem didn't happen with an earlier version of firefox. Please Help!
    Thanx, BassMann.

    If you only want the favicons and not the names of the bookmarks on the bookmarks toolbar, you can do that with the [https://addons.mozilla.org/en-US/firefox/addon/4072/ Smart Bookmarks Bar] add-on.

  • UWL - I want to add the column "item type" in the UWL XML config file

    Hi,
    when personalizing a view in the default UWL iView, a user can add the column "Item Type", which shows the icon of the corresponding item.
    I want to add this column to a default view configuration in the XML file, so that all users have this column available by default. I guess the right attribute to do so would be the "columnOrder" attribute of a view. I tried to add the value itemType and objectType, but none of this worked, the column did not appear.
    From help.sap.com at
    http://help.sap.com/saphelp_nw70/helpdata/en/39/a1bb5c4c0d4ab4a417e87ef35f1efa/frameset.htm
    I found some attributes and I tried statusIcon, externalId and externalType. statusIcon does not show the item type icons and the other two don't work at all. The table shows that they have the attribute "Visible to user = NO".
    Does anybody know the correct value which I have to add to the columnOrder attribute or how I have to configure the XML file?
    Thanks a lot for any help,
    Fabian

    I found it myself, it's the attribute "itemTypeIcon" which has to be added to the columnOrder attribute.

  • I recently installed iTunes 11.0.  Now when I want to sync my iPhone 3GS the software wants to add 256 contacts and 1005 items to my calendar.  I would assume that these are duplications.  Is there some way to fix this?

    I recently installed iTunes 11.0.  Now when I want to sync my iPhone 3GS the software wants to add 256 contacts and 1005 items to my calendar, both on my Windows XP computer.  I would assume that these are duplications.  Is there some way to fix this?  Alternatively, how can I reinstall the previous version of iTunes?

    I have already authorized this computer with my Apple ID. I think this only allows me to re-download all purchased applications to the iTunes library again without re-purchasing them. However, iTunes still keeps asking me if I want to "erase and sync" or not.

  • Why won't my PC operating Windows 7 Home Premium not recognise my ancient iPod Shuffle - PC is sinqued to a proper Ipod but i want to add stuff to the Shuffle. I also tried it bon my lap top but still no joy. Help

    Why won't my Pc recognise my shuffle. It is already sinqued to my normal iPod but I want to add more stuff to the Shuffle. I have the same problem on my laptop
    John  in Barcelona

    Which shuffle model do you have?  This document shows the four types.
    http://support.apple.com/kb/HT1719
    If it's 2nd gen, are you using the USB cable that came with it, that has a mini-dock at the iPod end?

  • JComboBox takes ages to load/refresh when tried to add more items.

    Swing gurus ...
    Here is the test app generated from VA3.5 concept is the
    same - JComboBox takes long time to add data items to itself when added more items.
    In this senario, I tried to load about 500 items into the combo box, takes about 2+ minutes to load. I have an app which needs to show about 1K items in the pick list ( ComboBox ) - which takes any where from 4 - 10 min - this is not acceptable - are there any ways we can load more items into combo box ? Help is really appreciated.
    Example:
    * Insert the type's description here.
    * Creation date: (6/28/2001 11:23:26 AM)
    * @author: Administrator
    public class ComboTest extends javax.swing.JFrame {
         private javax.swing.JPanel ivjJFrameContentPane = null;
         private javax.swing.JButton ivjLoadBtn = null;
         private javax.swing.JComboBox ivjTestCombo = null;
    * ComboTest constructor comment.
    public ComboTest() {
         super();
         initialize();
    * ComboTest constructor comment.
    * @param title java.lang.String
    public ComboTest(String title) {
         super(title);
    * connEtoC1: (LoadBtn.action.actionPerformed(java.awt.event.ActionEvent) --> ComboTest.loadBtn_ActionPerformed(Ljava.awt.event.ActionEvent;)V)
    * @param arg1 java.awt.event.ActionEvent
    /* WARNING: THIS METHOD WILL BE REGENERATED. */
    private void connEtoC1(java.awt.event.ActionEvent arg1) {
         try {
              // user code begin {1}
              // user code end
              this.loadBtn_ActionPerformed(arg1);
              // user code begin {2}
              // user code end
         } catch (java.lang.Throwable ivjExc) {
              // user code begin {3}
              // user code end
              handleException(ivjExc);
    * Return the JFrameContentPane property value.
    * @return javax.swing.JPanel
    /* WARNING: THIS METHOD WILL BE REGENERATED. */
    private javax.swing.JPanel getJFrameContentPane() {
         if (ivjJFrameContentPane == null) {
              try {
                   ivjJFrameContentPane = new javax.swing.JPanel();
                   ivjJFrameContentPane.setName("JFrameContentPane");
                   ivjJFrameContentPane.setLayout(null);
                   getJFrameContentPane().add(getTestCombo(), getTestCombo().getName());
                   getJFrameContentPane().add(getLoadBtn(), getLoadBtn().getName());
                   // user code begin {1}
                   // user code end
              } catch (java.lang.Throwable ivjExc) {
                   // user code begin {2}
                   // user code end
                   handleException(ivjExc);
         return ivjJFrameContentPane;
    * Return the LoadBtn property value.
    * @return javax.swing.JButton
    /* WARNING: THIS METHOD WILL BE REGENERATED. */
    private javax.swing.JButton getLoadBtn() {
         if (ivjLoadBtn == null) {
              try {
                   ivjLoadBtn = new javax.swing.JButton();
                   ivjLoadBtn.setName("LoadBtn");
                   ivjLoadBtn.setText("Load");
                   ivjLoadBtn.setBounds(248, 41, 85, 25);
                   // user code begin {1}
                   // user code end
              } catch (java.lang.Throwable ivjExc) {
                   // user code begin {2}
                   // user code end
                   handleException(ivjExc);
         return ivjLoadBtn;
    * Return the TestCombo property value.
    * @return javax.swing.JComboBox
    /* WARNING: THIS METHOD WILL BE REGENERATED. */
    private javax.swing.JComboBox getTestCombo() {
         if (ivjTestCombo == null) {
              try {
                   ivjTestCombo = new javax.swing.JComboBox();
                   ivjTestCombo.setName("TestCombo");
                   ivjTestCombo.setDoubleBuffered(true);
                   ivjTestCombo.setBounds(78, 41, 164, 23);
                   // user code begin {1}
                   // user code end
              } catch (java.lang.Throwable ivjExc) {
                   // user code begin {2}
                   // user code end
                   handleException(ivjExc);
         return ivjTestCombo;
    * Called whenever the part throws an exception.
    * @param exception java.lang.Throwable
    private void handleException(java.lang.Throwable exception) {
         /* Uncomment the following lines to print uncaught exceptions to stdout */
         // System.out.println("--------- UNCAUGHT EXCEPTION ---------");
         // exception.printStackTrace(System.out);
    * Initializes connections
    * @exception java.lang.Exception The exception description.
    /* WARNING: THIS METHOD WILL BE REGENERATED. */
    private void initConnections() throws java.lang.Exception {
         // user code begin {1}
         // user code end
         getLoadBtn().addActionListener(new java.awt.event.ActionListener() {
              public void actionPerformed(java.awt.event.ActionEvent e) {
                   connEtoC1(e);
    * Initialize the class.
    /* WARNING: THIS METHOD WILL BE REGENERATED. */
    private void initialize() {
         try {
              // user code begin {1}
              // user code end
              setName("ComboTest");
              setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
              setSize(426, 131);
              setTitle("Test App");
              setContentPane(getJFrameContentPane());
              initConnections();
         } catch (java.lang.Throwable ivjExc) {
              handleException(ivjExc);
         // user code begin {2}
         // user code end
    * Comment
    public void loadBtn_ActionPerformed(java.awt.event.ActionEvent actionEvent)
         String val = "String Item: ";
         for ( int i=0; i<500; i++ )
              getTestCombo().addItem( val + i);
         return;
    * main entrypoint - starts the part when it is run as an application
    * @param args java.lang.String[]
    public static void main(java.lang.String[] args) {
         try {
              ComboTest aComboTest;
              aComboTest = new ComboTest();
              aComboTest.addWindowListener(new java.awt.event.WindowAdapter() {
                   public void windowClosing(java.awt.event.WindowEvent e) {
                        System.exit(0);
              aComboTest.show();
              java.awt.Insets insets = aComboTest.getInsets();
              aComboTest.setSize(aComboTest.getWidth() + insets.left + insets.right, aComboTest.getHeight() + insets.top + insets.bottom);
              aComboTest.setVisible(true);
         } catch (Throwable exception) {
              System.err.println("Exception occurred in main() of javax.swing.JFrame");
              exception.printStackTrace(System.out);

    The "Really fast combo boxes" thread referred to by lk555 can be summarized as follows:
    1. RegFish wrote a custom JComboBox that handles large numbers of elements better than a standard JComboBox does.
    2. You can download his code at http://www.reddfish.co.nz/freesoftware/PoliteComboBox.jar
    3. You may want to reconsider your design, since a JComboBox with more than a few dozen elements is usually too hard for the user to use (see various postings in the long thread).

  • Add new item wizard

    hi all
    i have to develop a page in an enterprise portal where employees can upload files. but the provided "Add new item" wizard seems too complicated and user-unfriendly to them, since it is not IT personel and they don't have a proper command of english.
    the question is: can i develop another kind interface for uploading files? is that possible to do by writing some pl/sql code or something else? can someone please give me some guide-lines or similar sample examples?

    hi,
    you can write your own custom add item wizard if you do not want to use the default one. the content management APIs allow you to do that. just create a UI on top of these APIs (in this particular case the add_item API).
    more information on the APIs can be found in the portals developers guide:
    http://download-uk.oracle.com/docs/cd/B14099_15/portal.1014/b14135/pdg_part3.htm
    regards,
    christian

Maybe you are looking for