The simplest thing - why it doesn't work?????

I develop a big application with lots of different panes containing all these controls...
I want the user to click a menu item and then the corresponding pane will appear, replacing completely in view any pane that appeard before that. I've tried everything - using JFrmae, JPane, JLayeredPane, rootpane, nothing seems to work perfectly .There's always a glitch and the previous pane somehow appears underneath under some circumstances.
I didn't find anything on that in the java tutorial or in the forums. I hope you guys could help me. Thanks in advance!

Thanks, that worked!
I now have all these different classes of panels that I can call from the frame class, but I can't call the frame class from any of the panes...
This is the error message that I get when I try to call a public method of the frame class from the pane class:
java.lang.NullPointerException
        at Pane1.workWithFrame(Pane1.java:76)
        at MyFrame$3.actionPerformed(MyFrame.java:137)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:17
86)
        at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstra
ctButton.java:1839)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
.java:420)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258
        at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
        at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1
113)
        at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseRelease
d(BasicMenuItemUI.java:943)
        at java.awt.Component.processMouseEvent(Component.java:5100)
        at java.awt.Component.processEvent(Component.java:4897)
        at java.awt.Container.processEvent(Container.java:1569)
        at java.awt.Component.dispatchEventImpl(Component.java:3615)
        at java.awt.Container.dispatchEventImpl(Container.java:1627)
        at java.awt.Component.dispatchEvent(Component.java:3477)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
        at java.awt.Container.dispatchEventImpl(Container.java:1613)
        at java.awt.Window.dispatchEventImpl(Window.java:1606)
        at java.awt.Component.dispatchEvent(Component.java:3477)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:201)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:151)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)This is my frame class:
import java.util.*;
import java.util.Locale;
import java.util.ResourceBundle;
import java.util.ArrayList;
import java.util.Date;
import java.text.NumberFormat;
import java.text.DateFormat;
import java.io.File;
import java.io.RandomAccessFile;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.math.BigDecimal;
import java.awt.*;
import java.awt.event.*;
import java.awt.GridLayout;
import java.awt.Color;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowListener;
import java.awt.event.WindowEvent;
import java.awt.event.KeyEvent;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.rmi.PortableRemoteObject;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.table.*;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JMenuBar;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JOptionPane;
public class MyFrame extends JFrame{
        protected Dimension defaultSize = new Dimension(200, 200);
          public String frameString = "Santa";
          protected static MyFrame frame;
protected static Pane1 contentPane;
        JScrollPane scrollPane;
        public MyFrame(){
            setDefaultCloseOperation(DISPOSE_ON_CLOSE);
contentPane = new Pane1(frame);
     scrollPane = new JScrollPane(contentPane,
ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,
ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS
//Make it the content pane.
contentPane.setOpaque(true);
setContentPane(scrollPane);
            JMenu menu = new JMenu("Window");
            menu.setMnemonic(KeyEvent.VK_W);
            JMenuItem item = null;
            //close
            item = new JMenuItem("Close");
            item.setMnemonic(KeyEvent.VK_C);
            item.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    System.out.println("Close window");
                    MyFrame.this.setVisible(false);
                    MyFrame.this.dispose();
            menu.add(item);
            //new
            item = new JMenuItem("New");
            item.setMnemonic(KeyEvent.VK_N);
            item.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                     setNewContentPane(contentPane.getPane2());
               contentPane.getPane2().addButtons(contentPane.getPane2().toolBar);
            menu.add(item);
            //quit
            item = new JMenuItem("Quit");
            item.setMnemonic(KeyEvent.VK_Q);
            item.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
setNewContentPane(contentPane);
contentPane.workWithFrame();
            menu.add(item);
        // Create the menu bar
        JMenuBar menuBar = new JMenuBar();
        // Create a menu
        JMenu servicesMenu = new JMenu("�������-�����");
        menuBar.add(servicesMenu);
       JMenu reportsMenu = new JMenu("�����");
        menuBar.add(reportsMenu);
       JMenu clientsMenu = new JMenu("������");
        menuBar.add(clientsMenu);
       JMenu jobsMenu = new JMenu("�����");
        menuBar.add(jobsMenu);
       JMenu candidatesMenu = new JMenu("�������");
        menuBar.add(candidatesMenu);
        menuBar.add(menu);
       // Create a menu item
        JMenuItem candidateInterviewSubpeneaMenuItem = new JMenuItem("����� �����");
       // item.addActionListener(actionListener);
        candidatesMenu.add(candidateInterviewSubpeneaMenuItem);
        JMenuItem interviewMenuItem = new JMenuItem("�����");
       // item.addActionListener(actionListener);
        candidatesMenu.add(interviewMenuItem);
        JMenuItem changeIntervieweeDetailsMenuItem = new JMenuItem("����� ���� �����");
       // item.addActionListener(actionListener);
        candidatesMenu.add(changeIntervieweeDetailsMenuItem);
        JMenuItem scanResumeMenuItem = new JMenuItem("����� ����� ����");
       // item.addActionListener(actionListener);
        candidatesMenu.add(scanResumeMenuItem);
        JMenuItem buildResumeMenuItem = new JMenuItem("����� ����� ���� �����");
       // item.addActionListener(actionListener);
        candidatesMenu.add(buildResumeMenuItem);
        JMenuItem updatePlacementMenuItem = new JMenuItem("����� ����");
       // item.addActionListener(actionListener);
        candidatesMenu.add(updatePlacementMenuItem);
        JMenuItem newClientMenuItem = new JMenuItem("���� ���");
       // item.addActionListener(actionListener);
        clientsMenu.add(newClientMenuItem);
        JMenuItem updateClientMenuItem = new JMenuItem("����� ���� ����");
       // item.addActionListener(actionListener);
        clientsMenu.add(updateClientMenuItem);
        JMenuItem newJobMenuItem = new JMenuItem("���� ����");
       // item.addActionListener(actionListener);
        jobsMenu.add(newJobMenuItem);
        JMenuItem updateJobMenuItem = new JMenuItem("����� ���� ����");
       // item.addActionListener(actionListener);
        jobsMenu.add(updateJobMenuItem);
        JMenuItem findMatchForJobMenuItem = new JMenuItem("����� ������� �����");
       // item.addActionListener(actionListener);
        jobsMenu.add(findMatchForJobMenuItem);
       JMenuItem interviewsReportMenuItem = new JMenuItem("��� �������");
       // item.addActionListener(actionListener);
        reportsMenu.add(interviewsReportMenuItem);
       JMenuItem candidatesReportMenuItem = new JMenuItem("��� �������");
       // item.addActionListener(actionListener);
        reportsMenu.add(candidatesReportMenuItem);
       JMenuItem clientsReportMenuItem = new JMenuItem("��� ������");
       // item.addActionListener(actionListener);
        reportsMenu.add(clientsReportMenuItem);
       JMenuItem jobsReportMenuItem = new JMenuItem("��� �����");
       // item.addActionListener(actionListener);
        reportsMenu.add(jobsReportMenuItem);
       JMenuItem phonebookReportMenuItem = new JMenuItem("��� �����");
       // item.addActionListener(actionListener);
        reportsMenu.add(phonebookReportMenuItem);
       JMenuItem placementReportMenuItem = new JMenuItem("��� �����");
       // item.addActionListener(actionListener);
        reportsMenu.add(placementReportMenuItem);
       JMenuItem statsReportMenuItem = new JMenuItem("��� ������");
       // item.addActionListener(actionListener);
        reportsMenu.add(statsReportMenuItem);
       JMenuItem evaluationReportMenuItem = new JMenuItem("��� �����");
       // item.addActionListener(actionListener);
        reportsMenu.add(evaluationReportMenuItem);
       JMenuItem rakazReportMenuItem = new JMenuItem("��� �����");
       // item.addActionListener(actionListener);
        reportsMenu.add(rakazReportMenuItem);
       JMenuItem hoursReportMenuItem = new JMenuItem("��� ����");
       // item.addActionListener(actionListener);
        reportsMenu.add(hoursReportMenuItem);
       JMenuItem callsReportMenuItem = new JMenuItem("��� �����");
       // item.addActionListener(actionListener);
        reportsMenu.add(callsReportMenuItem);
       JMenuItem settingsMenuItem = new JMenuItem("������");
       // item.addActionListener(actionListener);
        servicesMenu.add(settingsMenuItem);
       JMenuItem backupsMenuItem = new JMenuItem("�������");
       // item.addActionListener(actionListener);
        servicesMenu.add(backupsMenuItem);
       JMenuItem paperAdsMenuItem = new JMenuItem("������ ������");
       // item.addActionListener(actionListener);
        servicesMenu.add(paperAdsMenuItem);
       JMenuItem todoMsgsMenuItem = new JMenuItem("�����/������");
       // item.addActionListener(actionListener);
        servicesMenu.add(todoMsgsMenuItem);
       JMenuItem todoMsgsLogMenuItem = new JMenuItem("����");
       // item.addActionListener(actionListener);
        servicesMenu.add(todoMsgsLogMenuItem);
       JMenuItem chargeMenuItem = new JMenuItem("�����");
       // item.addActionListener(actionListener);
        servicesMenu.add(chargeMenuItem);
       JMenuItem marketingMenuItem = new JMenuItem("�����");
       // item.addActionListener(actionListener);
        servicesMenu.add(marketingMenuItem);
       JMenuItem reminderMenuItem = new JMenuItem("�������");
       // item.addActionListener(actionListener);
        servicesMenu.add(reminderMenuItem);
       JMenuItem phonebookMenuItem = new JMenuItem("�����");
       // item.addActionListener(actionListener);
        servicesMenu.add(phonebookMenuItem);
       JMenuItem statsMenuItem = new JMenuItem("������ ���������");
       // item.addActionListener(actionListener);
        servicesMenu.add(statsMenuItem);
       JMenuItem diallerMenuItem = new JMenuItem("�����");
       // item.addActionListener(actionListener);
        servicesMenu.add(diallerMenuItem);
       JMenuItem exitMenuItem = new JMenuItem("�����");
       // item.addActionListener(actionListener);
        servicesMenu.add(exitMenuItem);
        // Install the menu bar in the frame
            setJMenuBar(menuBar);
            setSize(defaultSize);
              pack();
              setVisible(true);
        public void displayPane2()
             System.out.println ("********************************************hello***********************************");       }
        public void setNewContentPane(JPanel pane)
                  scrollPane = new JScrollPane(pane,
ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,
ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS
//Make it the content pane.
pane.setOpaque(true);
setContentPane(scrollPane);
validate();
repaint();
        public static void main(String[] args)
              MyFrame frame = new MyFrame();
    }And this is my pane class:
import javax.swing.JToolBar;
import javax.swing.JButton;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JTextArea;
import javax.swing.JScrollPane;
import javax.swing.JPanel;
import java.net.URL;
import java.awt.*;
import java.awt.event.*;
public class Pane1 extends JPanel
                         implements ActionListener {
    protected JTextArea textArea;
    protected String newline = "\n";
    static final private String PREVIOUS = "previous";
    static final private String UP = "up";
    static final private String NEXT = "next";
    private static MyFrame frame;
    private Pane2 pane2;
    public Pane1(MyFrame frame) {
        super(new BorderLayout());
          frame = frame;
//          frame.displayPane2();
          pane2 = new Pane2(frame);
        //Create the toolbar.
        JToolBar toolBar = new JToolBar();
        addButtons(toolBar);
        //Create the text area used for output.  Request
        //enough space for 5 rows and 30 columns.
        textArea = new JTextArea(5, 30);
        textArea.setEditable(false);
        JScrollPane scrollPane = new JScrollPane(textArea);
        //Lay out the main panel.
        setPreferredSize(new Dimension(150, 110));
        add(toolBar, BorderLayout.PAGE_START);
       add(scrollPane, BorderLayout.CENTER);
    protected void addButtons(JToolBar toolBar) {
        JButton button = null;
        //first button
        button = makeNavigationButton("Back24", PREVIOUS,
                                      "Back to previous something-or-other",
                                      "Previous");
        toolBar.add(button);
        //second button
        button = makeNavigationButton("Up24", UP,
                                      "Up to something-or-other",
                                      "Up");
        toolBar.add(button);
        //third button
        button = makeNavigationButton("Forward24", NEXT,
                                      "Forward to something-or-other",
                                      "Next");
        toolBar.add(button);
public Pane2 getPane2()
     return pane2;
public void workWithFrame()
        String fString = frame.frameString;
        System.out.println (fString);
    protected JButton makeNavigationButton(String imageName,
                                           String actionCommand,
                                           String toolTipText,
                                           String altText) {
        //Look for the image.
        String imgLocation = "toolbarButtonGraphics/navigation/"
                             + imageName
                             + ".gif";
        URL imageURL = Pane1.class.getResource(imgLocation);
        //Create and initialize the button.
        JButton button = new JButton();
        button.setActionCommand(actionCommand);
        button.setToolTipText(toolTipText);
        button.addActionListener(this);
        if (imageURL != null) {                      //image found
            button.setIcon(new ImageIcon(imageURL));
        } else {                                     //no image found
            button.setText(altText);
            System.err.println("Resource not found: "
                               + imgLocation);
        return button;
    public void actionPerformed(ActionEvent e) {
        String cmd = e.getActionCommand();
        String description = null;
        // Handle each button.
        if (PREVIOUS.equals(cmd)) { //first button clicked
            description = "taken you to the previous <something>.";
        } else if (UP.equals(cmd)) { // second button clicked
            description = "taken you up one level to <something>.";
        } else if (NEXT.equals(cmd)) { // third button clicked
            description = "taken you to the next <something>.";
  //      displayResult("If this were a real app, it would have "
  //                      + description);
//       frame.displayPane2();
    protected void displayResult(String actionDescription) {
        textArea.append(actionDescription + newline);
    public static void main(String[] args) {
        //Create and set up the content pane.
        Pane1 newContentPane = new Pane1();
        newContentPane.setOpaque(true);
}Why can I call the panes from the frame but not the other way around???
Thanks in advance!

Similar Messages

  • Firefox will not fully load and run anymore just out of the blue when I click to run it it just sits and does not respond I have totally uninstalled and reinstalled this many times and it still does the same thing why would it stop working?

    When I booted my computer up from cold and click firefox to run it sat there and tryed to load instead it sits there and does the nor responding thing. I have totally uninstalled the program a few times and re installed a new download and the same thing happen. I can not run firefox any longer and i have run it everyday for a very long time. This seems to be the only program with an issue.

    None of the stuff in " http://kb.mozillazine.org/Locked_or_damaged_places.sqlite " helps. I have tried and tried and I have even wipe the computer clean still didn't help. I got the same problem as he/she has got in the first posted. Can add some web pages but not all the web pages I want.. I should have never updated to 3.6.13... That's when it all started for me, from that version..... Now Version 3.6.14 is out, I was hoping the version 3.6.14 might would fix the problem wrong again....
    Funny thing is i can not even Bookmark Firefox.com!!!!!...lol
    So any ideas on how to fix it other than the link giving would help.
    Thanks.

  • Hi, can someone please tell me why the spell check in pages doesn't work. I went to preferences and enabled this auto spell checker and have set the language to british english. But still it doesn't work while it works perfectly in TextEdit.

    Hi, can someone please tell me why the spell check in pages doesn't work. I went to preferences and enabled this auto spell checker and have set the language to british english. But still it doesn't work while it works perfectly in TextEdit.

    Inspector > Text > More > Language
    Only applies to selected text, like making it a particular font.
    It is not a setting that sticks. If you continue to paste in text from elsewhere particularly the Internet it will have a different or None language set to it. You need to select it and make it B.E.
    Peter

  • HT5312 When I click on the rescue email stuff it doesn't work. Why?

    When I click on the rescue email stuff it doesn't work. Why?

    I have the same problem. Basically when I try to manage my Apple ID I'm asked to answer my security questions. Only problem is I don't know the answers. I don't want to lock my account. I click "Forgot your answers? Send reset security info email to......". I never recieve anything from apple though. I know the email is valid it's my work email I literally use it everyday. I've heard of people having to answer their security questions to purchase apps or music. I'd like to get this resolved before that happens to me.

  • Why is my diabled login greyed out after i unlock it? I have tried to remove the library file but it doesn't work

    Why is my diabled login greyed out after i unlock it? I have tried to remove the library file but it doesn't work. It worked the first time and than all of a sudden it was greyed out.

    Where do you see a disabled login? In system preferences? In Login screen?

  • I am getting the error message "could not copy to requested location" to a drive i have been using for over a year... when I do the same thing to another drive - it works just fine. why?

    i am getting the error message "could not copy to requested location" to a drive i have been using for over a year... when I do the same thing to another drive - it works just fine. why?

    Possibly the drive is full
    Possibly the permissions are not set to WRITE permission
    Possibly there has been a "user mistake" and you think you are copying to a drive you have been using for over a year but something has accidentally changed and you're copying to a different location

  • Since Lion installation the remote control first generation, doesn't work as usually. On Leopard when I pushed the menu button, it opened a menu that showed music, films, photo. Now it doesn't work anymore. Is there anyone to explain me why this happen?

    Since Lion installation the remote control first generation, doesn't work as usually. On Leopard when I pushed the menu button, it opened a menu that showed music, films, photo. Now it doesn't work anymore. Is there anyone to explain me why this happen? Thank you.

    Sadly Snow Leopard was the last OS X to have Front Row and it is no longer offered in Lion or Mountain.
    see > Farewell Front Row | Macworld
    If you want, you can get it back with some tweaking.
    see > Get Front Row for Mac OS X 10.7 Lion
    or > Use Front Row In OS X Lion
    Also note: that your remote should still be working for waking the Mac, volume control and iTunes...? If it is not, let us know for help with it.

  • One reason why commandLink doesn't work in dataTable

    Ok, so I think I've got an explanation why commandLink doesn't work in dataTable when the model bean is request scoped. Maybe somebody can tell me if I'm wrong.
    I have a model bean that generates table rows based on some input criteria (request parameters).
    So, we validate the inputs, apply them to the bean and render the page. Once the inputs have been applied to the bean, a request for table rows returns rows, no problem.
    However, we put a commandLink in each row, so we can expand the details. Maybe we even get smart and repeat the input row-generating criteria as a hidden field in the page.
    Unfortunately, when the user hits the commandLink, the list page simply refreshes, maybe even w/out table rows. The user doesn't get the details page as expected.
    Why not?
    Because: in the DECODE phase (even before validation and before "immediate" values have had their valueChangeListeners called), we ask the model bean for the table rows, so we can decode the commandLinks. Unfortunately, in "decode" phase, the request-scoped model bean has not had its row-generating criteria updated (that happens in the "update model" normally, or at the END of the decode phase if we got cute by (1) setting the "immediate" attribute on the row-generating criteria to "true" AND (2) set a valueChangeListener to allow us to update the model bean early. The END of the decode phase isn't good enough -- in the middle of that phase, when we're attempting to deocde commandLinks, the model bean has no citeria, so there's no row data. No row data means no iteration over commandLinks to decode them and queue ActionEvents. So, we march through the rest of the phases, process no events, and return to the screen of origin (the list screen) with no errors.
    So, what's the solution?
    One solution is to make the model bean session-scoped. Fine, maybe we can store a tiny bit of data in it (the search criteria), so it's not such a memory drag to have it live in the session forever. How do we get that data in? A managed property in faces-config.xml with value #{param.PARENT_KEY} won't work because it's assigning request-scoped data to a session-scoped holder. JBoss balks, and rightly so. Do we write code in the model bean that pulls the request parameter out of thin air? (FacesContext.getExternalContext()....) I don't really like to code the name of a specific http request parameter into the bean, I think it's the job of the JSP or faces-config.xml to achieve that binding (request parameter to model propery). Plus, I'd be sad to introduce a dependency on Faces in what was previously just a bean.
    Is there a better way?
    In my particular situation, we're grafting some Faces pages onto an already-existing non-Faces application. I don't get the luxury of presenting the user an input field and binding it to a bean. All I've got to work with is a request parameter.
    Hmm, I guess I just answered my own question. if all I've got to work with is a request parameter, some ugliness is inevitable, I guess.
    I guess the best fix is to cheat and have the bean constructor look for a request parameter. If it finds it, it initializes the criteria field (which, in my case, is the key of an object that has a bunch of associated objects (the rows data), but could be more-general d/b search criteria).
    (I looked at the "repeater" example code in the RI, but it basically statically-generates its data and then uses 100% Faces (of course) to manage the paging (where "page number" is essentially the "criteria").
    Comments? Did I miss something obvious?
    John.

    ...or I could just break down and do the thing I was hoping to avoid (outputLink instead of commandLink):
    <h:outputLink value="/faces/Detail.jsp">
      <f:param name="PARENT_KEY" value="#{bean.parentKey}"/>
      <h:outputText value="#{bean.label}"/>
    </h:outputLink>It's still a "hardcoded" parameter name, but at least the binding is in the JSP and faces-config.xml, not the bean Java code.

  • I'm using a Dell Inspiron 7520 ... pretty new. Sometimes when I download a CD / album to my library acouple of tracks get separated away from the main group. I've tried to click and drag the stragglers over to the main group but it doesn't work. Any Ideas

    .When installing a CD/album into my library some of the tracks get separated away from the main group of tracks. I try to click and drag the stragglers to the main group but it doesn't work. My laptop is using Windows 8. My old XP laptop didn't have this problem. I'm not sure if that has any thing to do with it. Any ideas would be appreciated. It's more of an irritation than a problem but if it can be solved, it would be a good thing. Thanks!         Paul 

    Hey Paul,
    If I understand correctly, it sounds like iTunes is not grouping the songs from a particular CD together. The cause could be something as minor as a misspelling or slight variations. For more information, see the following resource:
    Why aren't songs with the same album art grouped together?
    http://support.apple.com/kb/TS1468
    Thanks,
    Matt M.

  • Why EL doesn't work with custom tags ?!

    I don't know why expression lang. doesn't work with me.
    here's an example, and please tell me why :
    --- the jsp page with EL ==> doesn't work :
    <%-- In the name of ALLAH most gacious most merciful --%>
    <%@ page language="java" %>
    <%@ taglib uri="/cartlib" prefix="cart" %>
    <html>
    <jsp:useBean id="product" class="ch16.cart.ProductCatalog" scope="application" />
    <cart:showCatalog productCatalog="${product}" addToShoppingCartUri="<%= response.encodeURL("AddToShoppingCart.jsp") %>" />
    </html>
    when using expressions instead, the page works .
    the new page is :
    <%-- In the name of ALLAH most gacious most merciful --%>
    <%@ page language="java" %>
    <%@ taglib uri="/cartlib" prefix="cart" %>
    <html>
    <jsp:useBean id="product" class="ch16.cart.ProductCatalog" scope="application" />
    <cart:showCatalog productCatalog="<%= product %>"
    addToShoppingCartUri="<%=
    response.encodeURL("AddToShoppingCart.jsp") %>" />
    </html>
    The error was :
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: jsp.error.beans.property.conversion
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper
    .java:512)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    org.apache.jasper.JasperException: jsp.error.beans.property.conversion
    org.apache.jasper.runtime.JspRuntimeLibrary.getValueFromPropertyEditorManager(Js
    pRuntimeLibrary.java:885)
    org.apache.jsp.ShowProductCatalog_jsp._jspService(ShowProductCatalog_jsp.java:77
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs.

    Regarding setup, see this post reply #6
    http://forum.java.sun.com/thread.jspa?threadID=629437&tstart=0
    Other potential things to check: make sure you are getting the right value passed in
    productCatalog="${applicationScope.product}"
    ${product} by preference would take a pageContext, request or session attribute before the application level one (it uses pageContext.findAttribute).
    What do you get if you just print out ${product} on the screen?
    It should call a toString() on it for rendering purposes.

  • Why FaceTime doesn't work in Saudi Arabia ?

    why FaceTime doesn't work in Saudi Arabia ?

    we have stores sell apple products some of them sell with faetime at a high rate,
    and some other sell apple products without facetime at a normal price.
    finaly we need apple stores in Saudi Arabia to prevent this fraud.
    thank you
    what you're saying here is that some people parallel import apple products around the normal channels and they are from other countries so they havent got facetime blocked
    and others normally import apple products and they are blocked
    and then you go on believing that if apple had a store in saudi things would be better rest asured that if they did they would sell products with facetime blocked

  • Getting rpm values from the fans on the MSI NEO2-FIR motherboard doesn't work

    I currently have 6 Noctua NF-S12-1200 120mm fans spinning in my computer but i am unable to get rpm values from them except the cpu-fan. It doesn't work to get a readout from the others with either, BIOS, Dual Core Center or Speedfan. Regarding Speedfan is it true it don't support the SuperIO Chip on the Neo2, the FINTEK F71882F? It's not currently listed in their supported temperature sensors list.
    So whats the problem? Shouldn't atleast DualCore Center atleast show the rpm's from the other chassis fans?
    Or the fans don't support sensor readings?
    Thanks!

    Quote from: Jack on 13-October-10, 00:15:36
    Well, there is nothing that can be done about.  SysFAN 1 & 4 support sensor readings,  #2,#3 and #5 don't.  You can also see that in BIOS Setup.  #1&#4 are the only ones that show up there (H/W Monitor section).  This is not a malfunction or a bug.  You have to live with no fan sensor readings or be creative about the wiring.
    The problem is that i use the UNLA cables from Noctua which half the speed of the NF-S12 fans i run with. And it blocks the rpm readouts in Speedfan and BIOS.
    http://www.noctua.at/main.php?show=productview&products_id=5&lng=en
    Strange thing is that the CPU fan reads fine with the ULNA cable attached but the SYSFANS will not read the rpm with the ULNA cables.
    What is wrong?

  • How do i copy content from one hard rive to another through my macbook air? the copy and paste option doesn't work

    How do i copy content from one hard rive to another through my macbook air? the copy and paste option doesn't work

    It's because of the extension of the hard drive is a Windows extension ( most likely MSDOS or Ex-FAT), meaning you can only read but not write. If there are no important files (or you can copy the whole thing to your computer/mac) you can just reformat the hard drive and change the extension to NTFS (readable and writable on both windows and mac) or Mac OS Extended (readable and writable on Mac, readable on windows).
    Go to DISK UTILITY
    Choose the Hard Disk you intended
    ERASE
    You can choose either
              (I personally prefer this one, you know just in case)

  • I just downlouded the latest version of the Muse CC and it doesn't work well, it freezes all the time, in particular with the tools. Example the selection tool doesen't wor at all.

    I just downlouded the latest version of the Muse CC and it doesn't work well, it freezes all the time, in particular with the tools. Example the selection tool doesn't wor at all. Is there any solution for this problem?

    Hi!
    I restarted the computer, but the same issue happens again. When I move my mouse over some object or tool, it doesn’t come active at all (only some of the tools works) When I try to change “site properties”, I can’t choose tablet or phone mode or even I can’t select the checkboxes, only thing what I can do is change the numbers (high and width) . After all the main problem is that I can’t select some of the items or functions by mouse, but only by the keyboard.

  • I bought an external hard drive for backups to use with Time Machine, but however when I try to connect it with the other windows laptop it doesn't work ? intact it doesn't work on any other device except my MAC ?

    I bought an external hard drive for backups to use with Time Machine, but however when I try to connect it with the other windows laptop it doesn't work ? intact it doesn't work on any other device except my MAC ?

    Do not worry about it.
    Time Machine needs that your external drive is formatted in HFS+, or better known as "Mac OS Extended (Journaled)". This filesystem is used by Apple on Macs and Windows cannot read or write drives formatted with this filesystem, being this the reason why all your devices do not read the external drive except your Mac.
    You can only use your external drive to make Time Machine drives. If you store anything different, you may damage the Time Machine structure, so it is better not to use it as a drive to store other data. Instead, get another external drive to do it or create a second partition on the external drive formatted in FAT32 by using Disk Utility > http://pondini.org/OSX/DU3.html FAT32 can be read by Windows PCs

Maybe you are looking for

  • How do I install Adobe Reader onto a computer with no internet?

    I have a computer running Windows 8 with no internet connection. Is there a way to install Adobe Reader onto the machine with either CD or a USB drive? Also, would there be a simple way to keep Adobe Reader updated offline?

  • Modify the Buttons of a TitleBar of a windowedApplication

    Hi all, I'd like to modify the button of my title bar of my windowed application (it's an AIR application). At first, I wanted to change the title rendrer so I modify my application-app.xml and add the following lign : [code]<systemChrome>none</syste

  • HI all..Please help

    HI Gurus,   I have 3 radio buttons on the screen in SE80. If the user checks a radio option and clicks the Submit button, table updation will be done in the background and a success message will be displayed.   Now, the problem is, once the Submit bu

  • BitmapData.draw fails to capture webcam

    I am trying take a snapshot from a webcam. I'm using BitmapData.draw(video). This works fine on my desktop but when I try to do it in the browser it fails. Apparently this is some kind of security restriction. Is there a way to get around it?

  • Como actualizar el ios del iphone 3g

    como puedo actualizar el ios del iphone 3g