Faces tags are not rendering

I am using JDeveloper 10.1.3.. I have a rather dynamic web page, so I decided to do everything in the servlet. I write out everything for the jsf page from the servlet. Here is what I have:
PrintWriter out = response.getWriter();
out.println("<%@ tablib uri='http://java.sun.com/jsf/html' prefix='h' %>");
out.println("<%@ tablib url='http://java.sun.com/jsf/core' prefix='f' %>");
out.println("<f:view>");
out.println("<html>");
out.println("<head><title>Servlet1</title></head>");
out.println("<body>");
out.println("Prompt1:  <h:inputText id='p1' value='hey' />");
out.println("<br>");
out.println("Prompt2:  <h:inputText id='p2' value='yohey' />");
out.println("</body></html></f:view>");
out.close();
I run the servlet with in JDeveloper.  The page is rendered but none of the jsf tags are rendered.  I have no input fields.  Why?
When I do a view source from my browser IE 6.0 I get the following:
<%@ tablib uri='http://java.sun.com/jsf/html' prefix='h' %>
<%@ tablib url='http://java.sun.com/jsf/core' prefix='f' %>
<f:view>
<html>
<head><title>Servlet1</title></head>
<body>
Prompt1:  <h:inputText id='p1' value='hey' />
<br>
Prompt2:  <h:inputText id='p2' value='yohey' />
</body></html></f:view>
[pre]
What am I doing wrong?  Why are the jsf tags not being rendered/converted/used?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

I am using JDeveloper 10.1.3.. I have a rather dynamic web page, so I decided to do everything in the servlet. I write out everything for the jsf page from the servlet. Here is what I have:
PrintWriter out = response.getWriter();
out.println("<%@ tablib uri='http://java.sun.com/jsf/html' prefix='h' %>");
out.println("<%@ tablib url='http://java.sun.com/jsf/core' prefix='f' %>");
out.println("<f:view>");
out.println("<html>");
out.println("<head><title>Servlet1</title></head>");
out.println("<body>");
out.println("Prompt1: <h:inputText id='p1' value='hey' />");
out.println("<br>");
out.println("Prompt2: <h:inputText id='p2' value='yohey' />");
out.println("</body></html></f:view>");
out.close();
I run the servlet with in JDeveloper. The page is rendered but none of the jsf tags are rendered. I have no input fields. Why? When I do a view source from my browser IE 6.0 I get the following:
<%@ tablib uri='http://java.sun.com/jsf/html' prefix='h' %>
<%@ tablib url='http://java.sun.com/jsf/core' prefix='f' %>
<f:view>
<html>
<head><title>Servlet1</title></head>
<body>
Prompt1: <h:inputText id='p1' value='hey' />
Prompt2: <h:inputText id='p2' value='yohey' />
</body>
</html>
</f:view>
What am I doing wrong? Why are the jsf tags not being rendered/converted/used?

Similar Messages

  • ADF Faces components are not rendered in Jdeveloper visual editor

    Hi!
    I'm using Jdeveloper 1013 Developer Preview. I found that the components of ADF Faces EA16 are not shown on the visual editor in Jdeveloper, but the ADF Faces EA15 components are shown. I'm just wondering if this is normal, and there is anything that can be done to fix this?
    Meen

    I know there's a recent release with a visual editor problem, but I'm not sure which one it is. This thread says you need a fresh install? Can you try that?
    Re: ADF Faces tutorial/code sample for data table?

  • JSF tags are not rendered in error page

    I have configured error page for HTTP 404 error in web.xml like this
    <error-page>
    <error-code>404</error-code>
    <location>/Common/error.jspx</location>
    </error-page>
    Faces Servlet is configured as follows
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    My error page (error.jspx) looks like this
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html" xmlns:trh="http://myfaces.apache.org/trinidad/html"
    xmlns:tr="http://myfaces.apache.org/trinidad" xmlns:c="http://java.sun.com/jsp/jstl/core">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <html>
    <head>
    <title>Error Page</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    </head>
    <body id="b1">
    <h4 style="color:red">An Error Occured. Please click Back button or Signout.</h4>
    <input type="button" value="Back" onclick="history.back()"/>
    <tr:commandButton id="cb1" text="SIGN OUT" action="exit" actionListener="#{Login.LogOut}"/>
    </body>
    </html>
    </jsp:root>
    When I deploy application and run into 404 error, page displays error message with only Back button. I don't see SingOut button. I have checked url and it follows /faces/* pattern. Still to double check, I made a change and configured servlet mapping in web.xml as
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    <url-pattern>*.jspx</url-pattern>
    </servlet-mapping>
    Still commandButton is not rendered. I understand that my error page don't have access to FacesContext or not going through Faces Servlet. I know this is a small issue, but couldn't figure out what can be done. I have also tried using .xhtml and .jsf as per googled suggestion. But no luck
    I have tried different solutions to my problem and googled for solutions. But I couldn't get it resolved.
    So can you please provide any suggestions...
    Edited by: user1818355 on May 22, 2013 2:29 PM

    I think my faces servlet is configured to handle URLs having /faces/* pattern. I don't have any folder named with faces but I can access all my web pages which have /faces/ in their url. All jspx pages in application are configured in task flows. So I think they have access in FacesContext. But error page is configured in only web.xml and some how it is missing access to FacesContext and not rendering JSF tags. Any help?

  • I have burned a DVD using I-DVD with pictures from Iphoto and I am wondering why the metadata that includes the Faces tags are not showing up in the original files on the burned DVD?

    Request for help

    Faces is not a standard and has no place to go in metadata - in iPhoto you can export including much of the metadata by chencking all of the boxes when you export - no idea at all what iDVD does - better to ask in the iDVD forum
    LN

  • Why ADF tags are not being renderered ?

    Hi,
    I am trying to create a jsp file with adf tags, but I am getting the following warnings in the server and as a result the tags are not renderered .
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for HtmlHtml[UIXFacesBeanImpl, id=_id0], rendererType = oracle.adf.Html
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for HtmlHtml[UIXFacesBeanImpl, id=_id0], rendererType = oracle.adf.Html
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for HtmlHead[UIXFacesBeanImpl, id=_id1], rendererType = oracle.adf.Head
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for HtmlHead[UIXFacesBeanImpl, id=_id1], rendererType = oracle.adf.Head
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for HtmlBody[UIXFacesBeanImpl, id=_id2], rendererType = oracle.adf.Body
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for HtmlBody[UIXFacesBeanImpl, id=_id2], rendererType = oracle.adf.Body
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for CoreForm[FormFacesBean, id=_id3], rendererType = oracle.adf.Form
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for CoreForm[FormFacesBean, id=_id3], rendererType = oracle.adf.Form
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for CoreMessages[MessagesFacesBean, id=_id4], rendererType = oracle.adf.Messages
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for CoreMessages[MessagesFacesBean, id=_id4], rendererType = oracle.adf.Messages
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for CorePanelGroup[UIXFacesBeanImpl, id=_id5], rendererType = oracle.adf.Group
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for CorePanelGroup[UIXFacesBeanImpl, id=_id5], rendererType = oracle.adf.Group
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for CoreCommandLink[CommandLinkFacesBean, id=_id7], rendererType = oracle.adf.Link
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for CoreCommandLink[CommandLinkFacesBean, id=_id7], rendererType = oracle.adf.Link
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for CoreCommandLink[CommandLinkFacesBean, id=_id8], rendererType = oracle.adf.Link
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for CoreCommandLink[CommandLinkFacesBean, id=_id8], rendererType = oracle.adf.Link
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for CoreOutputFormatted[UIXFacesBeanImpl, id=_id9], rendererType = oracle.adf.Formatted
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for CoreOutputFormatted[UIXFacesBeanImpl, id=_id9], rendererType = oracle.adf.Formatted
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for CoreTable[UIXFacesBeanImpl, id=_id10], rendererType = oracle.adf.Table
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for CoreTable[UIXFacesBeanImpl, id=_id25], rendererType = oracle.adf.Table
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for CoreOutputFormatted[UIXFacesBeanImpl, id=_id36], rendererType = oracle.adf.Formatted
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for CoreOutputFormatted[UIXFacesBeanImpl, id=_id36], rendererType = oracle.adf.Formatted
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for CoreTable[UIXFacesBeanImpl, id=_id37], rendererType = oracle.adf.Table
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for CoreOutputFormatted[UIXFacesBeanImpl, id=_id45], rendererType = oracle.adf.Formatted
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for CoreOutputFormatted[UIXFacesBeanImpl, id=_id45], rendererType = oracle.adf.Formatted
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for CoreTable[UIXFacesBeanImpl, id=_id46], rendererType = oracle.adf.Table
    Any help will be appreciated,
    Thanks.

    I Found the problem :)
    The faces-config.xml file was missing the following:
    <application>
    <default-render-kit-id>oracle.adf.core</default-render-kit-id>
    </application>

  • Command links are not rendering properly in panel collection toolbar facet

    Hi
    I am using jdev 11.1.2.3.0
    I added toolbar component to the toolbar Facet of panel collection component .
    Under the tool bar I added two command link components with name create and delete,
    the problem is at run time the buttons are not rendering properly,they are hiding,instead of links
    this symbol(>>) is displaying.
    On clicking the symbol,I am able to see the links,I used <af:spacer> after the links but not worked.
    what I have to do to render the links properly in the panel collection toolbar facet

    Hi Timo
    This is the code and I am using 11.1.2.3.0
         <f:facet name="toolbar">
                    <af:toolbar id="t1">
                            <af:commandImageLink icon="#{resource['images:create.png']}" text="Create" id="cbInsert">
                            <af:showPopupBehavior popupId="p1"/>
                        </af:commandImageLink>
              </af:toolbar>

  • Command links are not rendering properly in the toolbar facet of panel collection

    Hi
    I am using jdev 11.1.2.3.0
    I added toolbar component to the toolbar Facet of panel collection component .
    Under the tool bar I added two command link components with name create and delete,
    the problem is at run time the buttons are not rendering properly,they are hiding,instead of links
    this symbol(>>) is displaying.
    On clicking the symbol,I am able to see the links,I used <af:spacer> after the links but not worked.
    what I have to do to render the links properly in the panel collection toolbar facet

    Hi Timo
    This is the code and I am using 11.1.2.3.0
         <f:facet name="toolbar">
                    <af:toolbar id="t1">
                            <af:commandImageLink icon="#{resource['images:create.png']}" text="Create" id="cbInsert">
                            <af:showPopupBehavior popupId="p1"/>
                        </af:commandImageLink>
              </af:toolbar>

  • Some web fonts are not rendered

    When I visit some sites that use web fonts, the web fonts are not rendered. It does not render with the wrong font - the text is completely invisible.
    On other sites, web fonts work just fine, and I cannot understand why some web fonts work and some don't.
    Examples of non-working sites:
    http://blog.mailchimp.com/ (headers shown, article text missing)
    https://www.sbab.se/ (huge top header missing)
    http://onlinepizza.se/ (headers and button texts missing)
    Examples of working sites:
    http://www.google.com/fonts
    http://www.typetester.org/
    On the Network -> Fonts tab in the inspector, no downloads are shown on the broken sites. Is there a font cache that I can delete?
    I have tried uninstalling firefox, deleting all profiles and installing it again. Nothing changes.

    Works fine here on Linux.
    Right-click > "Inspect Element" > Font shows:
    *http://blog.mailchimp.com/ Copyright (C) H&FJ | typography.com (Whitney SSm B) & Copyright (C) H&FJ | typography.com (Whitney SSm A)
    *https://www.sbab.se/ SBABSansStencilBeta-Bold
    *http://onlinepizza.se/Stockholm/ MuseoSans-700
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Hold down the Shift key and left-click the Reload button
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (Mac)

  • Images are not rendered on the PIE03 Client

    Hi Team,
    I have a specific scenario where the Web Dynpro JAVA applications are deployed on Symbol Handheld devices (9090). The applications run fine on majority of the devices, but we have two handhelds where the PIE version 03 client is installed (we are passing the sap-wd-client=Pie03Client parameter). On these devices, the standard images pertaining to the table control UI like the paginator etc are not rendered. We are getting an "X" on the placeholder instead. Has someone faced this problem?
    Can you please provide some pointers? I have no clue as to what is missing here. Any help would be appreciated please.
    Thank you

    Hi Oliver,
    This is the online Mobile solution called "Mobile Webdynpro Online", it supports three clients.
    1. Pie03Client - for Windows Mobile devices.
    2. NokiaS80Client - for Nokia devices
    3. WMLClient - for Blackberry devices
    @Sanjay: can you check on your network speed?
    Best Regards,
    Karthik

  • Transitions are not rendering.  Help?

    I have used iMovie many times, but for some reason my transitions are not rendering now. I place them in and they do not render. I am also having a hard time gettin transition in because after I do one then it shows up as an error and asks me to close the program.
    Any ideas?

    I had a similar thing recently.
    For me the issue was that I'd put text on the clip it was transitioning too - as it can't render both the transition and the text it ignores the transition (it shows it's doing this by greying it out in the project browser).
    To get round it just drag the text a couple of seconds into the clip - essentially remove the overlap.

  • DHCP Option Tags are not being applied...

    Hi,
    About to loose my mind... basically we are working towards a small WYSE Thin Client deployment in our environment.  The WYSE clients require to receive certain DHCP Option Tags to find the WCM server of which they receive their configuration from.  Same
    applies to the WDM Server as well.  The problem is no matter what we do, our test client is not receiving the custom option tags we've defined in our DHCP server.  
    DHCP Servers:
    vlan41
    10.40.1.206
    10.40.1.207
    Test Client:
    vlan46 - ip helpers defined on the switch
    Set to receive the same ip address from the DHCP server through the reservation route.
    Option Tags:
    186 - WDM Server - 10.40.1.184
    195 - WCM Server - 10.40.1.185
    196 - WCM Path - / 
    I've installed Wire Shark on the test client to monitor the DHCP activity.  The above custom options tags are not being pushed on to the client.  
    The Router, DNS Server and Domain Tags are being pushed.  So it's working but also not working????!!!
    Anybody with some insight to this problem?

    Hi hpaul_p
    In all fairness I'm about to give up... the vendor is not coming up with a solution and constantly blaming Microsoft.  To further test and confirm this wasn't a network issue, I've setup a secondary test environment using a 4 port switch, a client and
    a DHCP server.  Same results!!!  I'm really running out of time, so my work around is this:  I've setup a SRV records pointing to the WCM server... in your case this would be SRV record for the WDM server.  I've disabled the auto
    discovery functionality of the WDM Agent, for some reason it seems to be clashing with the WCM agent.  Since you will be using WDM only, don't disable auto discovery, tick the DNS SRV record from the Discovery Settings under the client agent. 
    I'm going to add the clients to the WDM server manually through their ip addresses so don't need auto discovery. From what I gather from the manuals the WCM searches for the repository or conifg servers in this order:  1. SRV 2.DNS (A record)
    3.DHCP (Options), I bet it's the same with WDM.  Though SRV and DNS methods has their limitations, if you will be using the default paths and credentials it shouldn't be a problem.  This is all I have have.  Steven Song I've forwarded you the
    DHCP database, if you find any problems with it please let me know.

  • Help! Images are not rendering in any browser!

    When online, images are not rendering on any webpage. All other content is fine. Problem is across browsers, BUT, is limited to my user identity. When I create a new user and go online the problem id resolved. I do not want to lose all my user settings. Can anyone think of something I can do to troubleshoot this. Some file I may have deleted, some setting?

    Hi all, I am facing the same problems:
    Im using an UMTS card to connect to the internet.
    On various pages, no pictures are shown. The reason is, that my mobile carrier is using proxies to compress the pictures. Same thing worked fine, before updating to snow leopard. Now the pictures can show up. Safari says, that the pictures were not found.
    I tried the umts card on another computer, it worked fine, so t has to do with the update from Leo to Snow Leo....
    I already deleted the .plist, but it didnt solve the issue.
    Does anybody has an hint or solution??

  • Firefox OS is not displaying correctly. it appears that the CSS and JS are not rendering! Any help would be most appreciated!

    I would have preferred to show anyone a screenshot of the web pages, but there is not an attach file on this forum. Anyway, with only Firefox OS , not my other browsers, the web pages are not rendering correctly. For example on Facebook there is no header or footer. JS is active in the browser and as I said Chrome and Safari are NOT having any problems. I am surmising that the CSS and JS files are somehow not being displayed. I may be very wrong, but I would gratefully accept any help someone has to offer. Thank you and have a great day!
    Theresa

    Hi Lufte,
    I'm sorry to hear you are having issues with the rendering of some pages on your Firefox OS device.
    Please create a new question in the thread so that we can track your issue separately:
    * [https://support.mozilla.org/en-US/questions/new Ask a new question]
    Please also provide the device model and version that you're currently using, and whether this issue started recently. Please let us know if you also notice any issue with the time and date displayed in your device.
    Thanks,
    - Ralph

  • Nepomuk/Strigi: id3v2 tags are not indexed

    I'm using nepomuk to index my music collection, but I noticed that the id3v2 tags are not indexed: dolphin does not show the information from the tags neither do bangarang. However, id3v1 tags are present. I don't know where to look at in order to find out what's wrong. Here are the relevant id3 tag support libraries, which I have installed:
    $ pacman -Ss id3 | grep installed
    extra/id3lib 3.8.3-11 [installed]
    extra/id3v2 0.1.12-1 [installed]
    extra/libid3tag 0.15.1b-6 [installed]
    community/kid3 1.6-1 [installed]
    Any help is appreciated! Thanks.
    Dimitar
    Last edited by dimitar (2011-06-21 17:57:15)

    Ok, I tried with an empty $HOME and the problem is not present... obviously, my home directory is getting older and needs some clean-up But then, I removed my music folder from nepomuk several times and I expected that it will be reindexed... How can I force strigi/nepomuk to reread the meta data from the files??
    Last edited by dimitar (2011-06-21 19:28:32)

  • Graphics plain 2D objects are not rendered while an action occurred!!!

    Hi, I am designing a game in Swing. Currently I am designing the maze for this game. The maze is generated by using Depth First Search algorithm. In my main JFrame, I have some JPanel. One JPanel, named mazePanel contains the maze. There are some other JPanel also, which contains the JButton for controlling. Following is the mazePanel code.
    import java.awt.Graphics;
    import javax.swing.BorderFactory;
    import javax.swing.JPanel;
    public class MazePanel extends JPanel {
        private MazeGenerator mazeGenerator;
        private boolean startNewMaze = false;
        public MazePanel() {
            setBorder(BorderFactory.createTitledBorder("Maze"));
            setToolTipText("This is the maze");
        public void addNewMaze() {
            startNewMaze = true;
            mazeGenerator = new MazeGenerator();
        @Override
        public void paintComponent(Graphics g) {
            super.paintComponent(g);
            if (startNewMaze) {
                mazeGenerator.generate(g);
                startNewMaze = false;
    } There is one JButton, which calls the method mazePanel.addNewMaze() and set the Boolean startNewMaze to true. After setting the startNewMaze, maze should be generated. i.e. mazeGenerator.generate(g) is inside if() condition. Method mazeGenerator.generate(g) recursively draw the random maze. That is why I don’t want to run this method not more than once.
    Up to this everything is looking fine. But while I am running the main JFrame and clicks on the JButton, maze is not rendered in the mazePanel. Sometimes when I minimize and maximize the JFrame, maze rendered (might be because of repaint() occur). Even if I comment mazeGenerator.generate(g) inside if() condition and put some g.drawString(). The string is not rendered while action performed (i.e.Pressing JButton).
    Where is the problem? Please help.
    Thank you.
    Edited by: 889823 on Jan 28, 2012 3:28 PM (Code was not formatted correctly. I forgot to make use of tag)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    This kind of thing sounds simple but in reality is fairly tricky. I dealt with these kinds of situations for years while learning java, and still sometimes do.
    You only posted a snippet of your code, from which we can't go through and debug what your problem is, but I would just say that this is the general pattern
    1. Receive the event to create a new board. This can in reality be any event that will cause your UI to change
    2. Do whatever processing you need to do to get your Component ready to be painted again. You can do short jobs on the UI thread. For longer jobs, look at the SwingWorker class
    3. When you are done processing and ready to redisplay, call repaint() on your Component. Make sure after you call repaint() that any work being done on the UIThread finishes, so that this thread can then handle the repaint request
    Edited by: tjacobs01 on Jan 28, 2012 1:37 PM

Maybe you are looking for