Help with ADF view

Hello,
I've learnt how to define the Entity Objects and View Objects in JDeveloper but I don´t know how to make the view....For example if i want to make an application to submit invoices into a database I should
1.- Make a connection to my database which has alredy been loaded with tables...let´s say: Invoice and InvoiceDetail
2.- I create the EO and VO in JDeveloper.
3.- (PLEASE HELP ME HERE) How do i make a page with a form to fill with all the data from the invoice....this is the header and the detail and then submit to the DB?
Thank You VERY much.

Try some of the tutorials we offer:
http://www.oracle.com/technology/obe/obe1013jdev/10131/masterdetail_adf_bc/master-detail_pagewith_adf_bc.htm
and then:
http://www.oracle.com/technology/obe/ADFBC_tutorial_1013/10131/index.htm

Similar Messages

  • [SOLVED :)] Need help with adf table row selection

    Hi,
    In my application I am displaying results in a table. The DisplayRow property of table is set to Selected
    There are Next and Back buttons which help user to view details associated to the next/previous rows.
    I am using ADF 11g
    When user clicks Next or Previous button, then the selection of the row should also gets updated
    To achieve this i wrote below piece of code:
    this.tblS.getSelectedRowKeys().clear();+
    this.tblS.setRowIndex(count);+
    RowKeySet rks =  tblS.getSelectedRowKeys();+
    rks.add(tblS.getRowKey());+
    rks =  tblS.getSelectedRowKeys();+
    ISSUE:_
    When i run application and click Next/Previous Button, all functionalities do take place properly, but a null pointer exception is also thrown._+
    If i remove DisplayRow property of table from Selected to Default, every thing works good and no Exception is thrown_+       
    But as records in my table are going to be around 50-60 everytime, i need to set DisplayRow property of table to Selected.
    Is there any way to achieve this? Solve this problem?
    Some more details:_
    I am using a POJO class to create DataController. This DataController is having a view Object which is used to create results table.
    I have defined Primary key for my POJO Data Controller.
    Here is code of xml file:*
    +<?xml version="1.0" encoding="UTF-8" ?>+
    +<JavaBean xmlns="http://xmlns.oracle.com/adfm/beanmodel" version="11.1.1.52.5"+
    id="ProductListBean" Package="xxadf.mm.resources"
    BeanClass="xxadf.mm.resources.ProductListBean"
    isJavaBased="true">
    +<Attribute Name="Product" Type="java.lang.String" PrimaryKey="true"/>+
    +<Attribute Name="Stock" Type="java.lang.String"/>+
    +<Attribute Name="Rate" Type="java.lang.String"/>+
    +<Attribute Name="Accuracy" Type="java.lang.String"/>+
    +<Attribute Name="Details" Type="java.lang.String"/>+
    +<ConstructorMethod IsCollection="true"+
    Type="xxadf.mm.resources.ProductListBean"
    BeanClass="xxadf.mm.resources.ProductListBean"
    id="ProductListBean"/>
    +</JavaBean>+
    Error Log:*
    SEVERE: Server Exception during PPR, #1
    java.lang.NullPointerException
    at oracle.adfinternal.view.faces.model.binding.RowDataManager.getRowIndex(RowDataManager.java:200)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.getRowIndex(FacesCtrlHierBinding.java:506)
    at org.apache.myfaces.trinidad.component.UIXIterator._fixupFirst(UIXIterator.java:414)
    at org.apache.myfaces.trinidad.component.UIXIterator.__encodeBegin(UIXIterator.java:392)
    at org.apache.myfaces.trinidad.component.UIXTable.__encodeBegin(UIXTable.java:168)
    at org.apache.myfaces.trinidad.component.UIXCollection.encodeBegin(UIXCollection.java:517)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:399)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer._encodeHorizontalChild(PanelGroupLayoutRenderer.java:458)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.access$100(PanelGroupLayoutRenderer.java:30)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:618)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:560)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:125)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:201)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:167)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:317)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer._encodeChild(PanelGroupLayoutRenderer.java:392)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.access$300(PanelGroupLayoutRenderer.java:30)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:641)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:560)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:125)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:201)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:167)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:317)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
    at oracle.adfinternal.view.faces.renderkit.rich.ShowDetailItemRenderer.access$100(ShowDetailItemRenderer.java:31)
    at oracle.adfinternal.view.faces.renderkit.rich.ShowDetailItemRenderer$ChildEncoderCallback.processComponent(ShowDetailItemRenderer.java:491)
    at oracle.adfinternal.view.faces.renderkit.rich.ShowDetailItemRenderer$ChildEncoderCallback.processComponent(ShowDetailItemRenderer.java:464)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:125)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:201)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:167)
    at oracle.adfinternal.view.faces.renderkit.rich.ShowDetailItemRenderer._encodeChildren(ShowDetailItemRenderer.java:406)
    at oracle.adfinternal.view.faces.renderkit.rich.ShowDetailItemRenderer.encodeAll(ShowDetailItemRenderer.java:114)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
    at oracle.adf.view.rich.render.RichRenderer.encodeStretchedChild(RichRenderer.java:1523)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelTabbedRenderer.access$500(PanelTabbedRenderer.java:38)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelTabbedRenderer$BodyEncoderCallback.processComponent(PanelTabbedRenderer.java:969)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelTabbedRenderer$BodyEncoderCallback.processComponent(PanelTabbedRenderer.java:920)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:125)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:201)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:167)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelTabbedRenderer._renderTabBody(PanelTabbedRenderer.java:519)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelTabbedRenderer.encodeAll(PanelTabbedRenderer.java:233)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:432)
    at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:221)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:432)
    at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:820)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.__encodeRecursive(UIXComponentBase.java:1494)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeAll(UIXComponentBase.java:771)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)
    at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:271)
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:202)
    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
    at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:685)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:261)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:193)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:54)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.wls.JpsWlsFilter$1.run(JpsWlsFilter.java:96)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
    at oracle.security.jps.wls.util.JpsWlsUtil.runJaasMode(JpsWlsUtil.java:146)
    at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:140)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3588)
    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:2200)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Please Help I have been struggling with this issue for long.
    Thanks and Regards
    Manav Ratra
    Edited by: user11255144 on Feb 8, 2010 5:33 AM

    Hi Arun,
    Thanks for replying.
    Actually in my application there is one result table and a section that is displaying complete details of the product selectd in result table.
    The next/previous buttons are not binded with result table.
    What I am doing is, I am puuliing data from VO and displaying it on form, whenever any of these buttons is clicked.
    As soon as these buttons are clicked data is coming up, but selection state of table is not getting updated.
    So to update selection state i wrote piece of code described in my previous post.
    Everything works fine if displayRow property of table is not set to selected.
    If i set display row property of table to selected, then i get a null pointer exception with message log defined in previous post.
    Although NPE is thrown, yet all data is properly fetched and table selection is also updated. But am not able to get how this NPE is coming and hpw to fix it .
    (I need to keep displayRow = selected, for all other cases NPE is not thrown)
    Please help..
    Thanks and Regards
    Manav Ratra

  • Need Help with Crystal viewer and ActiveX

    Hi !!
    I have a problem that i cant seem to be able to solve. I had alot of help from the forum but i think i got everything mixtup now...
    From my addon i can print with CrystalReport Viewer or i cant print a Crystal report directly to my default printer, so thats good and working well. The problem is with Crystal Viewer that drags on the SBO screen and stays on the task bar.
    It is strongly recommended to use an Activex to display my Crystal Viewer report. I tried so many differrent ways allways ending up with class id errors, or private class errors.
    My report is called c:\report.rpt
    My Working CrystalViewer form is called 'frmCRV'
    Can some one help me thru this last step...  I tried with the Activex sample in SDK but i think i dont have to use the Tree function ??? am i right ??
    I'm running on SBO 2005 SP1 PL3
    Crystal Report .net V10 and .net for code.
    Thanks you all for your patience.

    Hi Again !
    I can now open a form with an Activex part but i cant pass my CrystalViewer in it. Always says specified cast not valid.
    Thanks

  • Help with image viewer

    Would love some help with this one.. I am new so please bare with me. This app just reads contents of a txt file. What I am trying to add is the ability to display an image inside the program frame with scrolls bars.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.io.*;
    public class Viewer extends JFrame
       private JMenuBar menuBar;
       private JMenu fileMenu;
       private JMenu fontMenu;
       private JMenuItem newItem;
       private JMenuItem openItem;
       private JMenuItem saveItem;
       private JMenuItem saveAsItem;
       private JMenuItem exitItem;
       private JRadioButtonMenuItem monoItem;
       private JRadioButtonMenuItem serifItem;
       private JRadioButtonMenuItem sansSerifItem;
       private JCheckBoxMenuItem italicItem;
       private JCheckBoxMenuItem boldItem;
       private String filename;
       private JTextArea editorText;
         private JLabel label;
       private final int NUM_LINES = 20;
       private final int NUM_CHARS = 40;
       public Viewer()
          setTitle("Viewer");
          setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          editorText = new JTextArea(NUM_LINES, NUM_CHARS);
          editorText.setLineWrap(true);
          editorText.setWrapStyleWord(true);
          JScrollPane scrollPane = new JScrollPane(editorText);
          add(scrollPane);
          buildMenuBar();
          pack();
          setVisible(true);
       private void buildMenuBar()
          buildFileMenu();
          buildFontMenu();
          menuBar = new JMenuBar();
          menuBar.add(fileMenu);
          menuBar.add(fontMenu);
          setJMenuBar(menuBar);
       private void buildFileMenu()
          newItem = new JMenuItem("New");
          newItem.setMnemonic(KeyEvent.VK_N);
          newItem.addActionListener(new NewListener());
          openItem = new JMenuItem("Open");
          openItem.setMnemonic(KeyEvent.VK_O);
          openItem.addActionListener(new OpenListener());
          saveItem = new JMenuItem("Save");
          saveItem.setMnemonic(KeyEvent.VK_S);
          saveItem.addActionListener(new SaveListener());
          saveAsItem = new JMenuItem("Save As");
          saveAsItem.setMnemonic(KeyEvent.VK_A);
          saveAsItem.addActionListener(new SaveListener());
          exitItem = new JMenuItem("Exit");
          exitItem.setMnemonic(KeyEvent.VK_X);
          exitItem.addActionListener(new ExitListener());
          fileMenu = new JMenu("File");
          fileMenu.setMnemonic(KeyEvent.VK_F);
          fileMenu.add(newItem);
          fileMenu.add(openItem);
          fileMenu.addSeparator();
          fileMenu.add(saveItem);
          fileMenu.add(saveAsItem);
          fileMenu.addSeparator();
          fileMenu.add(exitItem);
       private void buildFontMenu()
          monoItem = new JRadioButtonMenuItem("Monospaced");
          monoItem.addActionListener(new FontListener());
          serifItem = new JRadioButtonMenuItem("Serif");
          serifItem.addActionListener(new FontListener());
          sansSerifItem =
                  new JRadioButtonMenuItem("SansSerif", true);
          sansSerifItem.addActionListener(new FontListener());
          ButtonGroup group = new ButtonGroup();
          group.add(monoItem);
          group.add(serifItem);
          group.add(sansSerifItem);
          italicItem = new JCheckBoxMenuItem("Italic");
          italicItem.addActionListener(new FontListener());
          boldItem = new JCheckBoxMenuItem("Bold");
          boldItem.addActionListener(new FontListener());
          fontMenu = new JMenu("Font");
          fontMenu.setMnemonic(KeyEvent.VK_T);
          fontMenu.add(monoItem);
          fontMenu.add(serifItem);
          fontMenu.add(sansSerifItem);
          fontMenu.addSeparator();
          fontMenu.add(italicItem);
          fontMenu.add(boldItem);
       private class NewListener implements ActionListener
          public void actionPerformed(ActionEvent e)
             editorText.setText("");
             filename = null;
       private class OpenListener implements ActionListener
          public void actionPerformed(ActionEvent e)
             int chooserStatus;
             JFileChooser chooser = new JFileChooser();
             chooserStatus = chooser.showOpenDialog(null);
             if (chooserStatus == JFileChooser.APPROVE_OPTION)
                File selectedFile = chooser.getSelectedFile();
                filename = selectedFile.getPath();
                if (!openFile(filename))
                   JOptionPane.showMessageDialog(null,
                                    "Error reading " +
                                    filename, "Error",
                                    JOptionPane.ERROR_MESSAGE);
          private boolean openFile(String filename)
             boolean success;
             String inputLine, editorString = "";
             FileReader freader;
             BufferedReader inputFile;
                   label = new JLabel();
                    add(label);
             try
                freader = new FileReader(filename);
                inputFile = new BufferedReader(freader);
                inputLine = inputFile.readLine();
                while (inputLine != null)
                   editorString = editorString +
                                  inputLine + "\n";
                   inputLine = inputFile.readLine();
                editorText.setText(editorString);
                inputFile.close(); 
                success = true;
             catch (IOException e)
                success = false;
             return success;
       private class SaveListener implements ActionListener
          public void actionPerformed(ActionEvent e)
             int chooserStatus;
             if (e.getActionCommand() == "Save As" ||
                 filename == null)
                JFileChooser chooser = new JFileChooser();
                chooserStatus = chooser.showSaveDialog(null);
                if (chooserStatus == JFileChooser.APPROVE_OPTION)
                   File selectedFile =
                                 chooser.getSelectedFile();
                   filename = selectedFile.getPath();
             if (!saveFile(filename))
                JOptionPane.showMessageDialog(null,
                                   "Error saving " +
                                   filename,
                                   "Error",
                                   JOptionPane.ERROR_MESSAGE);
          private boolean saveFile(String filename)
             boolean success;
             String editorString;
             FileWriter fwriter;
             PrintWriter outputFile;
             try
                fwriter = new FileWriter(filename);
                outputFile = new PrintWriter(fwriter);
                editorString = editorText.getText();
                outputFile.print(editorString);
                outputFile.close();
                success = true;
             catch (IOException e)
                 success = false;
             return success;
       private class ExitListener implements ActionListener
          public void actionPerformed(ActionEvent e)
             System.exit(0);
       private class FontListener implements ActionListener
          public void actionPerformed(ActionEvent e)
             Font textFont = editorText.getFont();
             String fontName = textFont.getName();
             int fontSize = textFont.getSize();
             int fontStyle = Font.PLAIN;
             if (monoItem.isSelected())
                fontName = "Monospaced";
             else if (serifItem.isSelected())
                fontName = "Serif";
             else if (sansSerifItem.isSelected())
                fontName = "SansSerif";
             if (italicItem.isSelected())
                fontStyle += Font.ITALIC;
             if (boldItem.isSelected())
                fontStyle += Font.BOLD;
             editorText.setFont(new Font(fontName,
                                    fontStyle, fontSize));
       public static void main(String[] args)
          Viewer ve = new Viewer();
    }I tried using JLabel() but I cant seem to make it work. Whenever i browse and select a .jpg it displays "�������t���o\�[��+�p��B3�+�p��B3�"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    In the future, Swing related questions should be posted in the Swing forum.
    Whenever i browse and select a .jpg it displays "�������t���o\�[��+�p��B3�+�p��B3�" You can read in a jpg file and treat it like a text file.
    Read the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/components/icon.html]How to Use Icons for the proper way to read images.

  • Help with Live View - Links Not Working

    Hello,
    I am having a problem with Live View.  It had been working just fine, until recently.  Now, when I load a site stored locally, the page looks normal and links highlight when I cursor over them, but when I click them no navigation takes place.  I just remain on the index page.  The site does test fine in IE8, Chrome, Firefox and used to test fine in Live View.  The same happens with all my sites.  No changes have been made to my system.  Maybe I changed a setting unknowingly?  Is there some type of setting that I am missing perhaps?  Any help would be appreciated.
    Jason

    Did you close and restart DW to see if that helps?
    E. Michael Brandt
    www.divahtml.com
    www.divahtml.com/products/scripts_dreamweaver_extensions.php
    Standards-compliant scripts and Dreamweaver Extensions
    www.valleywebdesigns.com/vwd_Vdw.asp
    JustSo PictureWindow
    JustSo PhotoAlbum, et alia

  • Help with CR Viewer XI

    Post Author: Lee XI
    CA Forum: General
    Hello all. I'm currently using CR XI (not server) and downloaded the Viewer yesterday to test on a spare pc. Reason for this is I want others to be able to view and set parameters I designed in the report(s). However, when you open the Viewer, no parameters that I set up are showing. (IE: date, State, Customer, etc) When I am in CR XI and I hit refresh it brings up all the parameters that should be available to the end users to adjust the report manually.The reason I'm trying to go this route is that our company is small and running CR server is out of the budget. Should the viewer allow for prompted params for those using the CR Viewer or not? I do not want to waste time with this if the Viewer cannot or will not allow end users to select a date range or state, or other params I want them to? I do not want to purchase another CR XI version because I do not want these users to have design access to the reports. I simply want them to be able to select certain params that I have set up for them. Thanks in advance! Lee

    Post Author: DRCL
    CA Forum: General
    I have discovered another issue with the viewer also.
    If a report is designed/saved in LANDSCAPE mode, but the recipient opens in the viewer and the printer default is PORTRAIT, then it automatically prints in Portrait. It scales to fit to the page.
    If the user overrides the default and changes it to LANDSCAPE, it still prints in Portrait.
    Any ideas on this or the linked OLE issues would be much appreciated.

  • URGENT!!! Java Gurus Please Help with adf issue!

    PLEASE SEE MY LATEST POST BELOW TIMO'S RESPONSE. THE REQUIREMENT HAS CHANGED. THAT IS THE ISSUE I AM LOOKING A SOLUTION FOR.
    Hello All,
    We have a requirement where our adf/jsf app needs to pick an EXCEL file from the server where the application is deployed. The sequence is :
    User comes to the page
    Clicks on "Open EXCEL" button
    EXCEL file located in the c:/ of the server opens up.
    How can this be done? I do not see any coding needed because the EXCEL file is being opened as is (and after user views it he closes the file) and the data is not being transferred to the jspx page.
    *We are totally flexible in how this is implemented - ie, using button, link , html etc etc. What ever works!!!!*
    Thanks,
    Edited by: user12054715 on Aug 17, 2010 8:54 PM
    Edited by: user12054715 on Aug 18, 2010 4:11 PM
    Edited by: user12054715 on Aug 18, 2010 4:13 PM

    Hello Timo,
    I am using 10.1.3g so your response is not going to help me.
    However, I have another question that I have already posted on the Forum. Please help me...
    Requirement:
    *1. Java application should be able to write "Hello World" in the excel file, when the user opens it.*
    I CAN DO THIS WITH THE FOLLOWING CODE:
    HSSFWorkbook wb = new HSSFWorkbook();
    HSSFSheet sheet = wb.createSheet("newSheet");
    HSSFRow row = sheet.createRow(1);
    row.createCell(1).setCellValue("HelloWorld!!!!!!!!!");
    *2. A "Write To Excel" button on jsf page opens a dialog asking user to Save or Open the excel file. (user can save the file anywhere on his machine)*
    I CAN DO THIS WITH THE FOLLOWING CODE:
    In jsf:
    <af:commandButton text="Download" action="#{myBackingBean.writeToExcel}" useWindow="true"/>
    In backing bean:
    public static void writeToExcel() throws IOException
    String filename = "workbook.xls";
    // //Setup the output
    String contentType = "application/vnd.ms-excel";
    FacesContext fc = FacesContext.getCurrentInstance();
    HttpServletResponse response = (HttpServletResponse)fc.getExternalContext().getResponse();
    response.setHeader("Content-disposition", "attachment; filename=" + filename);
    response.setContentType(contentType);
    PrintWriter out = response.getWriter();
    BOTTLENECK: When the user opens the excel how do I show "HelloWorld!!!!!!!!!" ?

  • Need help with ADF and Business Intelligence BI integration

    Hi All,
    I am using JDev 11.1.1.6.0.
    I am trying to integrate BI Dashboard into my ADF application.
    The BI Dashboard that I am integrating includes prompts, and using the prompt value, the table inside the dashboard is filtered. So, when I drag and drop the dashboard into the page, it asks me the the prompt value with Dashboard Prompts dialog.
    The problem is that even though I entered value into the prompt value (Value 1, Value 2) in the dialog, the table is not filtered. It's like it is not using the value that I entered.
    I also tried to bind the prompt value (in the dialog box) with the attribute binding in my page. But it's also not working.
    Could you please help me with this issue? Thanks.
    Best Regards,
    cmoster

    I have not done this myself , but thought that some tips here might help you -
    http://docs.tpu.ru/docs/oracle/en/fmw/11.1.1.6.0/bi.1111/e10545/embedding_adf.htm#autoId15

  • Help with HTML View

    Hi, I need help building VC Logic to display 1 of 4 reports (HTTP Links) in an HTML View.  Depending on the value of a incoming data field I want to feed the HTML View a different web page link.  It looks like you can't nest the logic of an if statement.  What's the best way to achieve this?
    Thanks!

    OK, I have my solution. 
    Just created 4 HTML IViews with a connection to my Web Service that provides the value I need. 
    Each link has a guard condition that activates the link depending on the incoming value and the link provides the hard coded input url as well. A simple condition on the HTML IView determines visibility. 
    I found sizing the HTML Views and placing them all on exactly the same position a real pain.

  • Help with live view new camera options...

    Hey guys...I have recently bought a hahnel remote shutter release so that I can take pics on the top of a mast around seven metres up.
    I have a 5 inch monitor at ground level to view the pictures taken, using an av cable from the camera. Problem is, I cant get a continuous "live view" image on the monitor, as you need to hold down the * button whilst in live view to auto focus, so I have to put up with just the shot thats been taken showing up after each shot instead!
    Does anyone know of a canon that would offer a continuous live view image on my monitor, without having to press the * button to auto focus?
    Ideally it would be one from the list below, as they are the cameras that my new hahnel wireless remote supports!
    I hope someone can help! cheers!
    List of supported cameras...would any of these offer live view without the need to press * to autofocus and take a shot:
    Compatible Camera Models:
    EOS 1200D / 1100D / 1000D / 650D / 600D / 550D /500D / 450D / 400D / 350D / 300D /
    70D / 60D / 50D / 40D / 30D / 20D / 20Ds /
    10D / 7D / 6D / 5D / 5D Mark II / 5D Mark III
    1D / 1DX / 1DC / 1Ds Mark III / 1Ds Mark IV
    SX50HS
    Powershot G10 / G11 / G12 / G15 / G1X Mk II
    Pentax Pentax K-5 II / K-5 IIs / K-5 / K-7 / K10 / K20 / K50 / K100 /
    K200 / K500
    Samsung GX10 / GX20

    What camera are you using?  Most "modern" Canon SLRs allow you to set focus during live view.   You move a little rectangle around to select your focus area.   But you need more than a monitor, you'd either need a computer (like a small netbook) running EOS Utility, or a tablet with DSLR Remote or equivilent on it.  The 70D and 6D both have WiFi ability, so you can do it from a smart phone, tablet, or computer, no wires needed.

  • Help with ADF BC and SQLite

    Looking for sample tutorial to build/deploy ADF BC with SQLLite.  Please help.

    try this link
    http://fr.slideshare.net/stevendavelaar/adf-mobile-implementing-data-caching-and-sunching-using-adf-mobile-adf-mobile-persistenceandsyncing
    Fakhri

  • Help with Creating Views

    Hi Gurus,
    There are 3 R/3 Tables for Plant Maintenance namely:
    1. ZPM_T_CONTRWO - Work Order Details for Contractor Payroll - ZIPY
    2. ZPM_T_WODETAILS - Work Order Details for ZIPY
    3. ZPM_T_ZIPYMASTER - Document Numbers for ZIPY
    The keys for the tables are:
    1. ZPM_T_CONTRWO: Document #, Order #, Operation/Activity #, Notification #
    2. ZPM_T_WODETAILS: Document #, Order #, Operation/Activity #, Notification #
    3. ZPM_T_ZIPYMASTER: Document #
    I'm thinking of creating 2 views, one b/w CONTRWO & ZIPYMASTER and the other b/w CONTRWO & WODETAILS.
    Please provide me guidelines & suggestions of doing this.
    Points will be rewarded.
    Thanks in advance,
    Manjesh
    NOTE: Below are the field names for each table ***
    ZPM_T_CONTRWO:
    Client, Document Number - ZIPY, Order Number, Operation/Activity Number
    Notification Number, Work Order Reference Number, Base quantity
    Base unit of measure, Total hours in selection period, Segment From
    Segment To, Offset From, Offset To, Checkbox, Last changed on, Time of entry
    User name
    ZPM_T_WODETAILS:
    Client, Document Number - ZIPY, Order Number, Operation/Activity Number
    Work Order Reference Number, Base quantity, Base unit of measure
    Total hours in selection period, Segment From, Segment To, Offset From
    Offset To, Checkbox, Page Number, Single-character flag, Confirmation number of operation, Confirmation counter, Single-character flag, Last changed on,
    Time of entry, User name
    ZPM_T_ZIPYMASTER:
    Client, Document Number - ZIPY, Date, Work center, Plant, Personnel number,
    Single-character flag, Time, Last changed on, Time of entry, User name

    Hi Manjesh,
    To create a view, you have to have atleast one common field in both tables to have the right join condition.
    You are meeting that condition with Document# for all tables.
    Refer this
    http://help.sap.com/saphelp_erp2005/helpdata/en/cf/21ec5d446011d189700000e8322d00/content.htm
    <b>for how to create the views?</b>
    R/3 side:
    1. Go to SE11 tcode.
    2. Enter the name of the view and create.
    3. Take common key fields of the tables to meet the Join Conditions ZPM_T_CONTRWO or ZPM_T_WODETAILS or ZPM_T_ZIPYMASTER
    ---> Document# will give correct join condition.
    4. add the fields from ZPM_T_CONTRWO or ZPM_T_WODETAILS or ZPM_T_ZIPYMASTER.
    Regards,
    BVC

  • Urgent!!! Need help with ADF 11g app deployment

    Hi,
    My application is designed using ADF 11g and am using adfc-config.xml for page flow.
    Through Jdev 11g integrated WLS server the application is running smoothly.
    But when i deployed application using EAR file on WLS 11g server and accessed the appliction, the page flow didnt worked.
    That is i tried opening login page of my application, it opened. Then i provided login credentials , they were successfully validated.
    But after that the application home page did not apperaed and application stuck at Login page only. The page flow didnt worked.
    Please help on this, its urgent...
    Thanks n Regards
    Manav Ratra

    Thanks Timo/Arun,
    The problem was same as figured by you. :)
    The application is running smoothly in IE7 but in Mozilla 3.0.15 it is not running.
    There it is throwing error:
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    +10.4.5 404 Not Found+
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
    Any pointers to this ...
    Thanks n Regards
    Manav Ratra
    Edited by: user11255144 on Nov 16, 2009 11:22 PM

  • Help with Paged view dataset!

    I'm new to Spry and not really a programmer, but I'm sure
    what I'm trying to do is pretty simple, can anyone help?
    Here's what I'm trying to do:
    - I have created a dataset (dsProjects) which contains 7 rows
    (one of the column values is 'Proj_id')
    - I have created a paged view dataset (pv1) based on
    dsProjects. The page count is 4 - so there are 2 pages I can
    navigate through.
    What I want is when there is a URL parameter (Proj_id), pv1
    will show the correct page containing the row that has the same
    column value for 'Proj_id'
    i.e. when I click on this link
    http://www.ollybaker.com/projects.php?Proj_id=11
    pv1 should display Page 2 of 2 because the row containing the
    Proj_id column value of 11 is on page 2.
    but this doesn't happen... any ideas what I'm doing wrong?
    The code is below:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml"
    xmlns:spry="
    http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=UTF-8" />
    <title>Untitled Document</title>
    <script src="SpryAssets/xpath.js"
    type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js"
    type="text/javascript"></script>
    <script src="SpryAssets/SpryURLUtils.js"
    type="text/javascript" ></script>
    <script src="SpryAssets/SpryPagedView.js"
    type="text/javascript"></script>
    <script type="text/javascript">
    var dsProjects = new
    Spry.Data.XMLDataSet("xml/recent_work.php", "export/row");
    dsProjects.setColumnType("Proj_id", "number");
    dsProjects.setColumnType("image", "image");
    //Set up pv variables to display information about the paged
    views
    var pv1 = new Spry.Data.PagedView( dsProjects ,{ pageSize: 4
    var pvInfo = pv1.getPagingInfo();
    var params = Spry.Utils.getLocationParamsAsObject();
    params == 1;
    //Set up pv variables to display information about the paged
    views
    pv1.addObserver({ onPostLoad: function(ds, type) {
    var row = pv1.findRowsWithColumnValues({"Proj_id":
    params.Proj_id}, true);
    // If we have a matching row, make it the current row for the
    data set.
    if (row)
    pv1.goToPageContainingItemNumber(row.ds_RowID);
    </script>
    </head>
    <body>
    <div spry:region="pv1">
    <table cellpadding="10" cellspacing="0">
    <tr>
    <th>Proj_id</th>
    <th>Image</th>
    </tr>
    <tr spry:repeat="pv1">
    <td>{Proj_id}</td>
    <td><img src="images/{image}" width="100"
    height="50"/></td>
    </tr>
    </table>
    </div>
    <p spry:region="pvInfo" spry:repeatchildren="pvInfo">
    <a spry:if="{ds_CurrentRowNumber} != {ds_RowNumber}"
    href="#"
    onclick="pv1.goToPage('{ds_PageNumber}')">{ds_PageFirstItemNumber}-{ds_PageLastItemNumber }</a>
    <span spry:if="{ds_CurrentRowNumber} == {ds_RowNumber}"
    class="currentPage">{ds_PageFirstItemNumber}-{ds_PageLastItemNumber}</span></p>
    <br /><br />
    </body>
    </html>

    You have to make 2 changes:
    - Tell findRowswithColumnValues() to include filtered items
    (items not in the current page) in your search. So change:
    var row = pv1.findRowsWithColumnValues({"Proj_id":
    params.Proj_id}, true);
    to:
    var row = pv1.findRowsWithColumnValues({"Proj_id":
    params.Proj_id}, true, true);
    - Lastly, you are calling the wrong function to show the
    page:
    pv1.goToPageContainingItemNumber(row.ds_RowID);
    It should be:
    pv1.goToPageContainingRowID(row.ds_RowID);
    --== Kin ==--

  • Can someone help with video viewing?

    I just got a new MacBook and downloaded some videos into it. When I play them they are playing full screen instead of in the little viewing box at the
    bottom corner. I expect there is a preference to select this but I can't find it.
    Can anyone help?
    Thanks,
    Judy

    Never mind....I found it. I should have looked harder before posting.
    Judy

Maybe you are looking for

  • New features for BSP since release 7.0

    Hi all! Could anyone just tell me what exactly are the new features since the 7.0 release for BSP-Programming (if any exist) or tell me where to get that information (am a little confused again searching through the SAP-Site-Universe). Thanks in adva

  • SMB Newbie: Accessing Linux Share

    I have my /etc/samba/smb.conf set up like so: # This is the main Samba configuration file. You should read the # smb.conf(5) manual page in order to understand the options listed # here. Samba has a huge number of configurable options (perhaps too #

  • How do I create a DVD with no theme, i.e., it plays what was recorded when inserted in the player?

    How do I create a DVD with no theme, i.e., it plays what was recorded when inserted in the player?  Nothing extra, just the recorded content.

  • CONNECTION CUT OFF MINUTES AFTER DOWNLOADING NEW ITUNES

    After downloading the "new and improved" download for Itunes, my connection was lost. I tried to reopen my connection many many times. Verizon Broadband didn't have any issues. My mother's computer worked fine--she still had access. I think something

  • SSRS Log shows Reporting web server started, was it closed before?

    Hi there:     During the weekend, one of our sql jobs that calls  a RSS script to create a SSRS PDF report failed     The job error says     " Could not connect to server: http://XXXXXXXXX/ReportServer/ReportService2005.asmx "     The command inside