CF 8 not rendering page, displays a blank page

Okay I have something that started to happen today and it
seems others have seen it happening on IE. I try to go to a page on
our site it doesn't display anything, just a blank page. If you hit
refresh it works fine and continues to work as it should until you
close the browser. If you close the browser and try to access the
page again you will get a blank screen, refresh fixes it. Nothing
in the code or on the server has changed since yesterday. But we
have had similar reports of this happening to users hitting a
submit button and getting a blank screen. This however is the first
time I have been able to replicate the issue. I have tried this
issue on IE, Firefox, and Flock and all give the same issue. Also
there are no errors and any log files. Anyone know what may be
causing this???

We resolved our problem by adding memory to our server. We
had a number of strange problems including the one noted above that
were only resolved by restarting CF services regularly. The
problems all went away after we noticed our server's physical
memory was insufficient and increased it substantially. The
application we have running on this server is pretty memory
intensive (storing a lot of very large queries in APPLICATION scope
variables).

Similar Messages

  • Live View Not Rendering Page Properly

    Can someone explain why the LIVE VIEW in DW5.5 wouldnt render the page properly?  I have a site that I developed, and when I view it in every browser... FF, IE, Opera, Safari, etc there are no errors and the page renders properly.  However, when I view a page in the Live View, my footer section (which is done by a server side include) renders skewed far to the right.  It must have something to do with that SSI, because I have other SSI's on the page and they are fine. It's just that one single one (the footer).
    As I said, the site renders perfectly in all browsers, just not in Design View.  I am evaluating DW5.5 for use using the trial period, so perhaps there is some feature that's turned off?  The code for the site is a bit too much to put here, but right now I'm just looking for reasons that there would be such a drastic difference.
    Thanks.

    To paste code, go to the web forum (email doesn't work for this). 
    Click on 'Use advanced editor'
    >> (insert icon)  > Syntax highlighting > plain.
    Paste your CSS & HTML code into the box.
    Code looks like this........
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Firefox not rendering page correctly

    My email account is with dishmail.net which is handled by google. My start page renders coorectly but if I go to my email page I am given a 2 x 3 window at the top left of the page with scroll bars to the right and bottom.
    I am working with a fresh install of FF due to hard drive probelms. I did not have this problem before the HD change. IE will correctly show the page.
    == URL of affected sites ==
    http://

    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. <br />
    http://forums.mozillazine.org/viewforum.php?f=25 <br />
    You'll need to register and login to be able to post in that forum.

  • H:panelGrid width or style attribute not rendering

    Hi
    I am currently experiencing a weird problem. I use a panel grid to align inputs in a form.
    when I try to set the width of the panel grid using the width or style attribute, the HTML equivalent is not rendered when displaying the web page.
    Here is what I try to do:
    <h:panelGrid columns="2" styleClass="patient-problem-form" style="width: 300px;">
    No style attribute is rendered on the table tag...
    Anyone knows what could case this issue?
    I am using
    facelets - 1.1.14
    seam - 2.0.1.CR1
    richfaces - 3.1.3.GA
    just updated glassfish 2-b58c with JSF 1.07 but did not make any difference
    Thanks.

    This will occur if you're using JSF impl newer than 1.2_05, but are using JSF api of 1.2_05 or older. Your classpath may be a mess with duplicated JAR's of different versions. Clean up your classpath. It may be good to know that Glassfish ships with javaee.jar which also contains JSF API. You need to upgrade it as well, you can get a Glassfish updater tool or read the instruactions at Mojarra homepage.

  • JSP Dynpage not rendering UI

    Hi..
    I have a HTML page that refers to some javascript files to render a table view for a calendar .The html page along with the Javascript files are put together in one folder.
    The HTML renders the Calender UI when run from the local system.
    Now i have created a JSP Dynpage application and given proper reference to the  javascript files from the JSP.
    I created an iview out of this. But on preview the Calendar UI is not rendered.Its all a blank page.
    Please suggest as to what could be missing in the application or any possible reasons for this not working.
    Regards
    Smita

    Chandramohan,
    By JSP Page are you referring to JTF JSP page or an OA Framework page. In either case if sometimes the page is not coming up it might be related to the initialization logic/instance/data. Please check on these fronts.
    Regards
    Sumit

  • Safari not rendering a page correctly

    A webpage I created in Dreamweaver uses drop down menus that are supposed to display just to the left of the link they drop from. In all other browsers they work correctly, but since the latest upgrade in Safari to 3.0.4 as a part of OS 10.4.11 on my Macbook, they are not rendering correctly. Instead they are appearing much further to the left where it's difficult to move the cursor to them before they disappear. Until I changed the color of the drop downs they were disappearing into the background. Any ideas why Safari is not rendering them correctly? I'd like to keep Safari as my primary browser, but if it won't render my own page correctly, what other pages might it be messing up? Address of the page is http://www.montgomeryschoolsmd.org/schools/woottonhs/ The drop downs are connected to the central column list that has small arrows beside the words. They will probably work correctly for you, but won't for me in Safari. What can I do to fix it?
    Thanks,
    KWolfrey

    Hi,
    I'm running 10.4.11 with Safari 3.0.4 and as far as I can see the menus seem to work just fine here.
    Do you have a custom stylesheet set in Safaris advanced preferences? (Some Safari enhancer applications set one even if you didn't manually set one so double check to make sure.)
    Also, do you use PithHelmet?
    One quick test you can do to help narrow down things is to try Safari in another user account. This will help us to know whether your problem is local to your account or system wide. If you don't have another account you can use System Preferences -> Accounts -> \[+\] to create a test one (and \[-\] to remove it if needed)
    Lastly, I doubt these [errors|http://validator.w3.org/check?uri=http%3A%2F%2Fwww.montgomeryschoolsmd. org%2Fschools%2Fwoottonhs%2F&charset=%28detect+automatically%29&doctype=Inline&g roup=0] have anything to do with your problem since it seems to work fine for me, but you might want to look into them at some point.

  • 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?

  • 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

  • Struts -- LogonView.jsp Displays A Blank Page

    I am using the Struts. My LogonView.jsp displays a blank page. I have no idea why nothing is written while the MessageResources.properties file is found. (I would have gotton HTTP Status 500 if the MessageResources.properties is not found or the value of the corresponding key in the bean:message tag cannot be picked up.)
    Here is my MessageResources.properties file:
    button.submit=Send for Verification
    button.reset=Clear the Form
    logonForm.userId=User Name
    logonForm.password=Password
    logonForm.confirm_password=Confirm Password
    logonForm.emailAddress=E-mail Address
    logonForm.hear_from_us=How did you hear about the StudentScholar.org?
    logonForm.subscriber=Subscribe to the StudentScholar.org newsletter
    logonForm.send_updates=Occassionally send me updates
    logonForm.fname=First Name
    logonForm.lname=Last name
    logonForm.streetAddress=Street Address
    logonForm.city=City
    logonForm.state=State
    logonForm.zip=Zip Code
    logonForm.country=Country
    logonForm.phone=Telephone
    logonForm.degree_type=Degree Type(s)
    logonForm.major=Majoring Field(s)
    logonForm.cumulativeGPA=Cumulative GPA
    logonForm.collegeID=College ID
    logonForm.permissionID=Permission ID
    logonForm.last_logon_date=Last Logon Date
    heading.logon=<H2>Enter your user information</H2>
    title.logon=Logon Screen
    error.invalid.logon=<li>The User ID and/or Password are invalid. Please try again.</li>
    errors.header=<h3><font color="red">Validation Error</font></h3>You must correct the following error(s) before proceeding:<ul>
    title.mainmenu=Welcome
    heading.mainmenu=<H1>Welcome!</H1>
    label.userType=<H2>You are authorized to use this system as a</H2>
    errors.prefix=<LI>
    errors.suffix=</LI>
    errors.footer=</UL><hr>
    errors.minlength={0} can not be less than {1} characters.
    errors.required={0} is required.
    errors.date={0} is not a date.
    errors.double={0} must be an double.
    errors.email={0} is an invalid e-mail address.Here is my LogonView.jsp:
    <!-- LogonView.jsp -->
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <html>
    <head><title><bean:message key="title.logon" /></title>
    <html:javascript formName="logon" />
    </head>
    <body bgcolor="white">
    <bean:message key="heading.logon" />
    <html:errors />
    <html:form action="/logon" onsubmit="return validateLogon(this)" >
    <table border="0" width="100%">
        <tr>
            <th aligh="right">
               <bean:message key="logonForm.userId" />:
            </th>
            <td align="left">
            <html:text property="userId" size="10" />
         </td>
        </tr>
        <tr>
            <th aligh="right">
               <bean:message key="logonForm.password" />:
            </th>
            <td align="left">
            <html:password property="password" size="10" />
         </td>
        </tr>
        <tr>
            <th aligh="right">
               <bean:message key="logonForm.confirm_password" />:
            </th>
            <td align="left">
            <html:password property="confirm_password" size="10" />
         </td>
        </tr>
        <tr>
            <th aligh="right">
            <bean:message key="logonForm.emailAddress" />:
            </th>
            <td align="left">
            <html:text property="emailAddress" size="25" />
         </td>
        </tr>
        <tr>
            <th aligh="right">
            <bean:message key="logonForm.hear_about_us" />:
            </th>
            <td align="left">
               <html:text property="hear_about_us" size="25" />
         </td>
        </tr>
        <tr>
            <th aligh="right">
               <bean:message key="logonForm.subscriber" />:
            </th>
            <td align="left">
               <html:checkbox property="subscriber" />
         </td>
        </tr>
        <tr>
            <th aligh="right">
            <bean:message key="logonForm.send_updates" />:
            </th>
            <td align="left">
               <html:checkbox property="send_updates" />
         </td>
        </tr>
        <tr>
            <th aligh="right">
               <bean:message key="logonForm.fname" />:
            </th>
            <td align="left">
            <html:text property="fname" size="15" />
         </td>
        </tr>
        <tr>
            <th aligh="right">
            <bean:message key="logonForm.lname" />:
            </th>
            <td align="left">
            <html:text property="lname" size="15" />
         </td>
        </tr>
        <tr>
            <th aligh="right">
            <bean:message key="logonForm.streetAddress" />:
            </th>
            <td align="left">
            <html:text property="streetAddress" size="50" />
         </td>
        </tr>
        <tr>
            <th aligh="right">
            <bean:message key="logonForm.city" />:
            </th>
            <td align="left">
            <html:text property="city" size="15" />
         </td>
        </tr>
        <tr>
            <th aligh="right">
            <bean:message key="logonForm.state" />:
            </th>
            <td align="left">
               <html:text property="state" size="25" />
         </td>
        </tr>
        <tr>
            <th aligh="right">
            <bean:message key="logonForm.zip" />:
            </th>
            <td align="left">
            <html:text property="zip" size="10" />
         </td>
        </tr>
        <tr>
            <th aligh="right">
            <bean:message key="logonForm.country" />:
            </th>
            <td align="left">
            <html:text property="country" size="25" />
         </td>
        </tr>
        <tr>
            <th aligh="right">
            <bean:message key="logonForm.phone" />:
            </th>
            <td align="left">
            <html:text property="phone" size="15" />
         </td>
        </tr>
        <tr>
            <th aligh="right">
            <bean:message key="logonForm.degree_type" />:
            </th>
            <td align="left">
            <html:textarea property="degree_type" rows="9" cols="90" />
         </td>
        </tr>
        <tr>
            <th aligh="right">
            <bean:message key="logonForm.major" />:
            </th>
            <td align="left">
            <html:text property="major" size="15" />
         </td>
        </tr>
        <tr>
            <th aligh="right">
            <bean:message key="logonForm.cumulativeGPA" />:
            </th>
            <td align="left">
            <html:text property="cumulativeGPA" size="4" />
         </td>
        </tr>
        <tr>
            <th aligh="right">
            <bean:message key="logonForm.collegeID" />:
            </th>
            <td align="left">
            <html:text property="collegeID" size="5" />
         </td>
        </tr>
        <tr>
            <th aligh="right">
            <bean:message key="logonForm.permissionID" />:
            </th>
            <td align="left">
            <html:text property="permissionID" size="5" />
         </td>
        </tr>
        <tr>
            <th aligh="right">
            <bean:message key="logonForm.last_logon_date" />:
            </th>
            <td align="left">
            <html:text property="last_logon_date" size="15" />
         </td>
        </tr>
        <tr>
            <td align="right">
                <html:submit>
                    <bean:message key="button.submit" />
                </html:submit>
            </td>
            <td align="right">
                <html:reset>
                    <bean:message key="button.reset" />
                </html:reset>
            </td>
        </tr>
    </table>
    </html:form>
    </body>
    </html>

    Any feedback. Your help would be much appreciated.

  • Safari displays white blank page

    I'm using OSX 10.8.5 on Macbook pro Intel Core 2 Duo.
    Since almost a year ago, I didn't see pages in Safari, it display white blank screen but it has contents.
    Safari loaded contents, but it didn't render contents into page.
    I found that, Safari update entry of 'com.apple.afari.plist' file in the Preference folder and it cause Safari fail to render pages.
    When Safari start, it changes
              <key>com.apple.Safari.ContentPageGroupIdentifier.WebKit2AcceleratedCompositingEnabled</key>
    entry to
    <false/>
    and next time I start Safari, white blank page displayed.
    If I change
              <key>com.apple.Safari.ContentPageGroupIdentifier.WebKit2AcceleratedCompositingEnabled</key>
    entry to
    <true/>
    and start Safari, I can see pages well, but I can't stop Safari to update the value to false.
    Any solutions to solve this issue ?

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, or by corruption of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled on some models, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output and Wi-Fi on certain models.  The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

  • JSF Pages are not rendering correctly when  loaded using Non JSF actions

    Hi All,
    This problem is irritating me and I am posting the same query for the third time here.
    When I come from non jsf actions such as page submitting using Javascript, clicking anchor link, clicking normal Html submit button and so on my page is not rendering correctlly .
    In other words, My first GET method/Post method works perfectly for the first time when the page is loaded.
    But when we try to access the page for the second time, although logical work is perfect in bean, I am getting same old page.
    How to resolve this issue?
    or
    Is this Bug of Sun's Implementation of JSF Framework.
    Thanks,
    Sudhakar

    Hi Sudhakar,
    There is a discussion about refreshing a page, Take a look at the below thread
    http://swforum.sun.com/jive/thread.jspa?threadID=55660
    Hope this what you are looking for
    MJ

  • Web Page is not filling Mac Display - ene when maximized

    web pages are not completing filling the mac book display. Maximize does not fill the display, I am still able to see my screen saver on about 25 percent of the display. I downloaded the battery update last night and this problem appeared.
    Thank You

    Hi jbpdap,
    Do the following> on you right hand down corner there are a view ///// dashed lines. Now place the mouse pointer on it an drag the Safari window to the size (maximum size) you like.
    Reload the open Safari window (any web page is OKAY). Now quite Safari application> Relaunch Safari.
    If this is not working right a way do the above again ...
    Good luck ...
    Dimaxum

  • Page is not rendering as per requirement request

    Hi All,
    Basically Here is the scenario.
    Based on selectoin of particular service item from combo box(dropdown list), We are creating the JSF controls dynamically on new page for further process.
    We are maintaining the controls information in database that need to be created dynamically and rendered for each service.
    And I am able to create the controls dynamically and able to place them on page perfectly.
    Until here everything looks ok for me.
    But main problem I have identified is when I go for new request, I am getting the same old page when I select the other service.
    Initially I though this could be a problem of caching and I have placed meta info in order to expire the page. But that was no use.
    So I logged all the data that is coming from database and logged the information where I have created the controls dynamically..
    What I have identified is I am getting the right data on paricular service selection and even I am able to see that methods execution is correct. I was stunned and not able to understand why the JSF is not able to show the controls.
    So I searched the JavaDoc for solution. I though I could use FacesContext.release() method. But that does not help me. Even I tried to clear the parent objects using gridpanel1.getChildren().clear(). Even that does not supported me :(
    In order to understand my problem, here I am pating the code.
    Please help me why the hell my page is not rendering
    Below is code in constructor
    javax.faces.context.ExternalContext ec = context.getExternalContext();
                javax.servlet.http.HttpServletRequest request=(javax.servlet.http.HttpServletRequest)ec.getRequest();
                String service=request.getParameter("form1:cmbServices");
                int serviceid=-1;
                if(service!=null) {
                    serviceid=Integer.parseInt(service);
                gridPanel1.getChildren().clear();
                controls =getControls(serviceid);
                HtmlControl[] controlArray =controls.getHtmlControls();
                //log(controlArray.length+" Length");
                for (int i =0;i<controlArray.length;i++) {
                    HtmlControl control =controlArray;
    //log(control+" Control");
    //log(controlArray.length+" Length");
    if (control.isRadio()) {
    addRadio(control);
    //log("Entered here in adding radio");
    else if (control.isCheckBox()) {
    addCheckBox(control);
    //log("Entered here in adding checkbox");
    else if (control.isTextBox()) {
    addTextBox(control);
    //log("Entered here in adding textbox");
    here is the code for dynamic creation of controls
    private void addRadio(HtmlControl control) {
            HtmlPanelGrid gridPanel = new HtmlPanelGrid();
            UIComponent parent = gridPanel1;
            HtmlOutputText outputText = new HtmlOutputText();
            outputText.setValue(control.getDescription());
            String desc =control.getDescription();
            desc=desc.replaceAll(" ", "_");
            outputText.setId(desc);
            outputText.setStyleClass("bodyText");
            HtmlSelectOneRadio radio = new HtmlSelectOneRadio();
            radio.setBorder(0);
            radio.setLayout("pageDirection");
            //radio.setId("Radio_"+control.getId());
            radio.setId(control.getName()+"__"+control.getId());
            UISelectItems items = new UISelectItems();
            Radio objRadio =(Radio)control;
            //  vectDefaultSelectItemsArray
            DefaultSelectItemsArray objArray =new DefaultSelectItemsArray();
            vectDefaultSelectItemsArray.add(objArray);
            //log("vectDefaultSelectItemsArray :"+vectDefaultSelectItemsArray.size());
            arrays=(DefaultSelectItemsArray[])vectDefaultSelectItemsArray.toArray(new DefaultSelectItemsArray[vectDefaultSelectItemsArray.size()]);
            int size =arrays.length;
            arrays[size - 1].clear();
            for (int i =0;i<objRadio.getValues().size();i++) {
                arrays[size - 1].add(new SelectItem(objRadio.getValues().get(i)+"",""+objRadio.getTexts().get(i)));
            // array.setItems(new String[] {"Yes","No" });
            items.setValueBinding("value",getValueBinding("#{consumer$jobInfo.arrays["+(size-1)+"]}"));
            radio.setStyleClass("bodyText");
            radio.getChildren().add(items);
            gridPanel.getChildren().add(outputText);
            gridPanel.getChildren().add(radio);
            parent.getChildren().add(gridPanel);
        private void addCheckBox(HtmlControl control) {
            HtmlPanelGrid gridPanel = new HtmlPanelGrid();
            UIComponent parent = gridPanel1;
            HtmlOutputText outputText = new HtmlOutputText();
            outputText.setValue(control.getDescription());
            outputText.setStyleClass("bodyText");
            String desc =control.getDescription();
            desc=desc.replaceAll(" ", "_");
            outputText.setId(desc);
            HtmlSelectManyCheckbox checkBox = new HtmlSelectManyCheckbox();
            checkBox.setBorder(0);
            checkBox.setLayout("pageDirection");
            //checkBox.setId("CheckBox_"+control.getId());
            checkBox.setId(control.getName()+"__"+control.getId());
            UISelectItems items = new UISelectItems();
            CheckBox objcheckBox =(CheckBox)control;
            //  arrays[0]=new DefaultSelectItemsArray();
            //arrays[0].clear();
            DefaultSelectItemsArray objArray =new DefaultSelectItemsArray();
            vectDefaultSelectItemsArray.add(objArray);
            //log("vectDefaultSelectItemsArray :"+vectDefaultSelectItemsArray.size());
            arrays=(DefaultSelectItemsArray[])vectDefaultSelectItemsArray.toArray(new DefaultSelectItemsArray[vectDefaultSelectItemsArray.size()]);
            int size =arrays.length;
            arrays[size - 1].clear();
            //  array.clear();
            for (int i =0;i<objcheckBox.getValues().size();i++) {
                arrays[size - 1].add(new SelectItem(objcheckBox.getValues().get(i)+"",""+objcheckBox.getTexts().get(i)));
                //     array.add(new SelectItem(objcheckBox.getValues().get(i)+"",""+objcheckBox.getTexts().get(i)));
            // array.setItems(new String[] {"Yes","No" });
            items.setValueBinding("value",getValueBinding("#{consumer$jobInfo.arrays["+(size-1)+"]}"));
            checkBox.setStyleClass("bodyText");
            checkBox.getChildren().add(items);
            gridPanel.getChildren().add(outputText);
            gridPanel.getChildren().add(checkBox);
            parent.getChildren().add(gridPanel);
        private void addTextBox(HtmlControl control) {
            HtmlPanelGrid gridPanel = new HtmlPanelGrid();
            UIComponent parent = gridPanel1;
            HtmlOutputText outputText = new HtmlOutputText();
            outputText.setValue(control.getDescription());
            String desc =control.getDescription();
            desc=desc.replaceAll(" ", "_");
            outputText.setId(desc);
            outputText.setStyleClass("bodyText");
            HtmlInputText textField = new HtmlInputText();
            //  textField.setId("textField_"+control.getId());
            textField.setId(control.getName()+"__"+control.getId());
            HtmlOutputText outputText1 = new HtmlOutputText();
            outputText1.setValue(" ");
            outputText1.setStyleClass("bodyText");
            textField.setStyleClass("frmObjects");
            gridPanel.setColumns(3);
            gridPanel.getChildren().add(outputText);
            gridPanel.getChildren().add(outputText1);
            gridPanel.getChildren().add(textField);
            parent.getChildren().add(gridPanel);
    here is my after render response method
    protected void afterRenderResponse() {
            //job_selection_templateRowSet.close();
            jiya_html_controlRowSet.close();
            FacesContext.getCurrentInstance().release();
    here is my getValueBinding method
    private ValueBinding getValueBinding(String expression) {
            return     FacesContext.getCurrentInstance().getApplication().createValueBinding(expression);
        }Thanks
    Sudhakar.

    Hi,
    You can try the following to debug and provide us more details.
    1. I am assuming you are trying to navigate by using a commandLink/Command Button ? If so, is the action handler for the command getting called ?
    2. Do you have input components in the page with Validators/converters attached to them ? If so, you may not watch for validation/conversion errors. If there are errors, the same page will be redisplayed. In that case you would need to associate message component to get more details on what went wrong.
    3. Have you set up the necessary navigation rules to navigate to the right page ?
    4. When you are adding components programatically, its better to assign explicit id's to your components, to avoid any unexpected behavior.
    Hope this helps.
    Regards
    -Jayashri

  • PanelGrid with binding attribute not rendering when event on page fires

    I am having a similar issue with my components not being rendered from a dynamic binding attribute as described by this post:http://forum.java.sun.com/thread.jspa?threadID=671672 but for different reason. I have combed the forum and other sources for a week now, tried numerous variations of this based on suggestions I've read for rendering dynamic components and am unable to find the problem. I would appreciate guidance as I don't know what else to do and I imagine there is something basic about the JSF flow layout or component classes I am not doing correctly.
    From a high level, I have a page with two panel groups. The first contains a list of command links (like a menu) that have an actionlistener that populates a list of QueryVariable objects called filterCriteria in the backing bean based on the selection made and then calls a function to update components in the second panel. The second panelGroup contains a panelGrid with a binding attribute that constructs a dynamic set of input fields based on the content of the filterCriteria list. When I first naviagate to this page from another page, the fields are rendered properly. However, if I then select a commandLink from the menu, the panelGrid disappears and is not rendered.
    I've stepped through the code in a debugger and my actionlistener is called when I select a command link. However, the binding attribute method is not called at this time, so I added a direct call to it from the action listener. I know the actionlistener is working because I've verified it in the debugger and if I navigate away and come back to the page, then the binding method is called and the new selection is reflected in a rendered panelGrid. Why is it not rendering though when I first select the commandLink and the page is updated. Also, fyi, there is an action method for the commandlinks but it returns null;
    FWIW, I'm using MyFaces and Facelets in my application.
    Below is my code. This is inside a managed session bean:
    JSF Snippet:
    <h:panelGrid id="inputVarsTable" columns="3" binding="#{query.table}"/>
         public HtmlPanelGrid getTable() {
              if(table == null)
                   table = new HtmlPanelGrid();
              return constructSearchInputTable();               
         public void setTable(HtmlPanelGrid table) {
              this.table = table;
      // Updates table component to reflect filterCriteria
         public HtmlPanelGrid constructSearchInputTable()
              HtmlOutputLabel outLabel;
              HtmlOutputText outText;
              HtmlInputText  inText;
              HtmlMessage message;
              List<UIComponent> children;
              ValueBinding vb;
              FacesContext facesContext = FacesContext.getCurrentInstance();
              UIViewRoot uIViewRoot = facesContext.getViewRoot();
            Application application = facesContext.getApplication();
              children = table.getChildren();
        children.clear();
              try {
                   for (int i = 0; i < getFilterCriteria().size(); i++) {
                        QueryVariable var = getFilterCriteria().get(i);
                        String id = "var" + i;
                        //<h:outputLabel for="#{var.name}" styleClass="label">
                        outLabel = new HtmlOutputLabel();               
                        outLabel.setFor(id);
                        outLabel.setStyleClass("label");
                        //  <h:outputText value="#{var.name}" />
                        outText = new HtmlOutputText();
                        outText.setValue(var.getName());
                        outText.setParent(outLabel);
                        outLabel.getChildren().add(outText);
                        outLabel.setParent(table);
                        children.add(outLabel);
                        //<h:inputText id="#{var.name}" value="#{var.value}" required="true" />
                        inText = new HtmlInputText();
                        inText.setId(id);
                        String bind = "#{query.filterValues['" + var.getName() + "']}";
                        inText.setValueBinding("value", application.createValueBinding(bind));
                        if(var.getDefaultValue() == null)
                             inText.setRequired(true);
                        inText.setParent(table);
                        children.add(inText);
                        //<h:message for="#{var.name}" styleClass="errorText"/>
                        message = new HtmlMessage();
                        message.setFor(id);
                        message.setStyleClass("errorText");
                        message.setParent(table);
                        children.add(message);     
              } catch (Exception e) {
                   log.error(e);
              return table;
      // Command Link Menu ActionListener
         public void structuredQuerySelection(ActionEvent e) {
              queryType = QueryType.StructuredQuery;
              UICommand cmd = (UICommand) e.getSource();
              filterSelection = (String) cmd.getValue();
              Map<String, SearchRequestCtx> queries = pdp.getGenericMetadata().savedQueries;
              SearchRequestCtx ctx = queries.get(filterSelection);
              filterCriteria = new ArrayList<QueryVariable>();
              filterCriteria.addAll(ctx.getVariables());
              constructSearchInputTable();
         // Command Link Menu Action
         public String selectStructuredQuery()
              return null;
         }BTW, this is my first post and I don't really know how that Duke Dollar thing works but I'm happy to offer some to anyone that can solve this issue for me.
    Thanks,
    Ken

    Glad to hear I am not the only one struggling with this type of issue.
    I tried your suggestion but it caused a NoSuchElementException when the page tried to render. Stepping through the code, the init function is always called after my panelGrid is constructed. I even commented out the logic to clear the children and confirmed that in the constructed page, the outputText component that binds to init is the first element on the page - right after the opening body tag. Maybe, JSF doesn't necessarily construct the page in top to bottom order? Also, the exception makes me think that this gets called too late in the lifecycle to work. Were you able to get this to work?
    java.util.NoSuchElementException
         at java.util.AbstractList$Itr.next(AbstractList.java:427)
         at com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:515)
         at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:445)
         at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:110)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:595)Ken

  • JSF Page is not  rendering correctly on NON JSF Action

    Hi All,
    When I go from JSF actions (clicking HtmlCommandButton HtmlActionLink), I am getting the correct page. But when I come from non jsf actions say if I come through by clicking normal anchor tag or javascript action or normal html submit button, I am getting same old rendered page. How can I overcome this problem??
    Thanks
    Sudhakar

    I am getting same old rendered pageIn otherwords, page is not getting refreshed and contains old data

Maybe you are looking for