Jsf 1.2_08 gives me blank page when i use h:panelGrid with binding attribut

I am using jsf 1.2_08 (Mojarra 1.2_08-b06-FCS) + jstl-1.2.jar + Apache Tomcat/6.0.6 + jdk1.5.0_08 on linux suse server. when i load a jsp page with a h:panelGrid, i get a blank page
my panelGrid is as follows
<h:panelGrid id="financialProjections" binding="#{veusSituationMonitorDisplayBean.financialProjections}" border="0" cellpadding="0" cellspacing="0" columnClasses="nspLabel w200,ra bl,ra bl,ra bl,ra bl,ra bld,ra bl,ra bl" columns="8" width="100%"/>
when i remove the binding attribute, rest of the page displays fine.
Thanks in Advance
my web.xml is
<?xml version="1.0"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd">
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>AJAXServlet</servlet-name>
<servlet-class>net.em.servlets.AJAXServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>InitialLizeApplicationbeansServlet</servlet-name>
<servlet-class>net.em.servlets.InitialLizeApplicationBeanServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AJAXServlet</servlet-name>
<url-pattern>/abc.ajax</url-pattern>
</servlet-mapping>
<filter>
<filter-name>ExtensionsFilter</filter-name>
<filter-class>
net.em.emrp.filters.EMExtensionsFilter
</filter-class>
<init-param>
<param-name>uploadMaxFileSize</param-name>
<param-value>10m</param-value>
</init-param>
<init-param>
<param-name>uploadThresholdSize</param-name>
<param-value>100k</param-value>
</init-param>
</filter>
<filter>
<filter-name>ResponseOverrideFilter</filter-name>
<filter-class>org.displaytag.filter.ResponseOverrideFilter</filter-class>
</filter>
<session-config>
<session-timeout>
720 <!-- minutes -->
</session-timeout>
</session-config>
<filter-mapping>
<filter-name>ExtensionsFilter</filter-name>
<servlet-name>Faces Servlet</servlet-name>
</filter-mapping>
<filter-mapping>
<filter-name>ResponseOverrideFilter</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>ResponseOverrideFilter</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<error-page>
<error-code>404</error-code>
<location>/error404.html</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/error500.html</location>
</error-page>
<taglib>
<taglib-uri>http://ajaxtags.org/tags/ajax</taglib-uri>
<taglib-location>/WEB-INF/ajaxtags.tld</taglib-location>
</taglib>
</web-app>

BalusC wrote:
I rather mean that you shouldn't instantiate the HtmlPanelGrid in the bean yourself, but just use the instance which is set through the setter during the restore_view phase.BalusC, why do you recommend this? The spec allows for the bean to create the component:
*JSF 1.2, section 3.1.5* says:
When a component instance is first created (typically by virtue of being referenced by a UIComponentELTag in a JSP page), the JSF implementation will retrieve the ValueExpression for the name binding, and call getValue() on it. If this call returns a non-null UIComponent value (because the JavaBean programmatically instantiated and configured a component already), that instance will be added to the component tree that is being created. If the call returns null, a new component instance will be created, added to the component tree, and setValue() will be called on the ValueBinding (which will cause the property on the JavaBean to be set to the newly created component instance).

Similar Messages

  • 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

  • When I open a new Tab the tab comes up as a blank page. It used to have Icone of thw las few pages visited. How can i get this back?

    I am on a PC with latest FireFox
    When I open a new Tab the tab comes up as a blank page. It used to open with Icons of the past pages visited.
    How can I get this beck?

    Did you previously had the Google Toolbar?
    Google has ended support for the Google Toolbar in Firefox 5.
    * http://googletoolbarhelp.blogspot.com/2011/07/update-on-google-toolbar-for-firefox.html
    Try:
    *Speed Dial: https://addons.mozilla.org/firefox/addon/speed-dial/
    *FoxTab: https://addons.mozilla.org/firefox/addon/foxtab/

  • Pressing Enter Button Gives a Blank Page while Cursor is in Text Field

    Hi,
    I have a problem on my jsp page that there is a text filed (input type="text") and a button (input type="button") to submit the page.
    When page loads the cursor blinks in the text field, and at the same moment if i hit the enter button of my keyboard it gives a blank page.
    Here the button on page does not clicked by this enter button, no script calls neither the page submitted to the given url.
    Kindly suggest what is going wrong.
    Thanks in Advance
    Rajiv K.

    I'd come across this issue a while back: [http://tipsandtricks.nogoodatcoding.com/2007/07/html-single-text-field-submit-caveat.html]; when there is only a single text field in a form, then pressing enter causes a submit with the text-field as the initiator. The submit button isn't invoked. This means any onsubmit actions will not be called. A simple way out is to put in a dummy text field in the form and set it's display to none (using CSS/styling)

  • How to avoid printing a blank page when there is 'no data' in the report.

    how to avoid printing a blank page when there is 'no data' in the report.

    try like this
    if@section:IND=1
    this template
    end ifsectionbreak
    if@section:IND=2
    this template
    end if

  • I noticed when I restart Firefox 4, it opens my previous tabs even I set the option "Open a blank page" and it opens blank page when I have "Show my windows and tabs from last time". Please ignore my question if you're already aware of this issue. Thanks.

    I noticed when I restart Firefox 4, it opens my previous tabs even I set the option "Open a blank page" and it opens blank page when I have "Show my windows and tabs from last time". Please ignore my question if you're already aware of this issue. Thanks.

    Your previous tabs will not re-open or be available to re-open when starting Firefox if:
    *your previous session was in Private Browsing mode; see --> http://support.mozilla.org/en-US/kb/Private+Browsing
    *you use Clear Recent History (''Firefox button > History > Clear Recent History'' or ''Tools > Clear Recent History''); see --> https://support.mozilla.org/en-US/kb/Clear%20Recent%20History#w_how-do-i-clear-my-history
    *you clear History automatically when closing Firefox; see --> https://support.mozilla.org/en-US/kb/Clear%20Recent%20History#w_how-do-i-make-firefox-clear-my-history-automatically
    NOTE: Your third-party Plugins (Add-ons > Plugins) are not in the "Application Basics" (Troubleshooting Information) in the "More system details" of your original post. Third-party Plugins are categorized separately in "Installed Plugins" under "More system details". You should review but not change the Plugins as detected automatically by the software on this forum when posting a question.
    If you problem still exists after checking the above, the problem could be caused by one or more of your Extensions or Plugins:
    *See --> [http://support.mozilla.org/en-US/kb/Troubleshooting+extensions+and+themes Troubleshooting extensions and themes]
    *See --> [http://support.mozilla.org/en-US/kb/Troubleshooting+plugins Troubleshooting plugins]
    *See --> [http://support.mozilla.org/en-US/kb/Basic+Troubleshooting Basic Troubleshooting]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • Blank page when trying to go to login from alliance-leicester site

    blank page when trying to login from alliance&leicester site
    == URL of affected sites ==
    http://alliance-leicester.co.uk

    Do you have any addons that may disable scripts?
    Try [[Safe Mode]]

  • Is there a way to Print one's Purchase History?  I just get a blank page when I click on Print and cannot copy to paste elsewhere.

    Is there a way to Print one's Purchase History?  I just get a blank page when I click on Print and cannot copy to paste elsewhere.

    davidfromloudon wrote:
    Is there a way to Print one's Purchase History?
    Take screen captures and print them.  PITA I know but that is all that is provided.
    I just get a blank page when I click on Print and cannot copy to paste elsewhere.
    Correct.

  • When I open a new tab it opens a Bing search windos instead og a blank page like it used to

    When I open a new tab it opens a Bing search window instead of a blank page like it used to.
    When FF starts it opens a blank page like it should, but if I click on the + to the right of the current tab is when the Bing tabs open. It's just a Bing search window not the Bing homepage. If needed I can submit a screenshot of the new page.
    I use 2 addons affecting tabs. Multiple Tab Handler, and Colorful Tabs.
    I think SlimBrowser is an IE based browser.
    I use Win pro 64 bi on a HP laptop and FF 3.6.8
    I've never had this problem all the years I used FF until now
    Any Ideas?
    Thanks
    Floyd

    This is not just an Add-on problem! It's not in my Add-ons. It isn't in my Program Files. Not one single solution I've found on any of the forums has resolved the problem for myself or many others. This is extremely aggravating, and I want it gone!

  • How do I set the blank tab (+) to go to my home page instead of blank page when opend?

    How do I set the blank tab (+) to go to my home page instead of blank page when opened?

    You can do that by using an add-on such as [https://addons.mozilla.org/firefox/addon/2221/ NewTabURL] or [https://addons.mozilla.org/firefox/addon/777/ New Tab Homepage].

  • Why does Dreamweaver upload a blank page when i "put" a .php or .html file that I just edited. It's

    Why does Dreamweaver upload a blank page when i "put" a .php or .html file that I just edited. It's like Dreamweaver isn't putting the complete file. So when i check my work (refresh the page), it is now blank. This happens about 50 percent of the time and can occur with any of the websites I maintain. (If I pull out my macbookpro, i can edit and upload the page, but the screen is smaller and i would rather be at my desktop). I am using CS5 on a MacPro, operating system 10.7.5.

    I've never heard of that type of error before. If it were happening to me, here are a few things I would do...
    Verify it's DW
         Download Filezilla (free and very nice in reality) and make sure it uploads correctly from there to rule out connection issues
    Rebuild Site Cache
         From the Files window of your site, click the menu and go to Site > Recreate Site Cache
    Delete DW File Cache
         If the above does nothing, I'd kill my DW Cache File: http://forums.adobe.com/thread/494811
    Uninstall, clean, reinstall
         Uninstall the program, use the cleaner tool here: http://www.adobe.com/support/contact/cscleanertool.html to kill everything (Adobe leaves behind things that are picked up again in a normal uninstall/reinstall) then reinstall it.

  • Office 2008 produces only blank page when opening files

    Under Lion, Microsoft Office 2008 products -- specifically Word and Excel -- will produce only "blank" pages when I open files I saved before I upgraded to Lion.  These are valid files which will open using Windows, or even using Preview.
    I put "blank" in quotes because the content is still there.  It is displayed, however, using the background color --- no matter what I set the foreground text color to, or highlight the background, it will never display my text!   So the default seems to be white text on a white background.   Setting the foreground text color to red or blue will have no effect; it will still be white.
    A workaround I'm currently using is to open the files in TextEdit, "Select All", copy & then paste into a new Word document, but the formatting doesn't always carry over.
    I posted a message on a Microsoft site and they said (go figure) "it's an Apple problem, not a problem with the software."
    Anyone else having this problem?
    How/when can it be fixed?

    I saw another post regarding font mismatches and I've learned that that is the problem in this case!
    If I open any of the documents I was having trouble with, do select-all, and then change the FONT (not the style, not the color) -- e.g. to Times, or Times New Roman -- suddenly all my text appears!

  • When I pin firefox to the taskbar in windows 7 the icon is a blank page (when set to small icons), but there if the small icon box is unchecked, how do I fix this

    when I pin firefox to the taskbar in windows 7 the icon is a blank page(when the taskbar properties is set to small), but the correct icon is there is the small incon box is unchecked

    Please see solution in http://kb.mozillazine.org/Problematic_extensions
    for "McAfee Site Advisor".
    (Windows): For best results you should uninstall '''McAfee Site Advisor''' from Control Panel > add/change programs (Programs and Features). Reboot the system. Then Reinstall from http://www.siteadvisor.com/ and reboot the system. When installing refuse other suggested (crapware) applications.
    <br><small>Please mark "Solved" one answer that will best help others with a similar problem -- hope this was it.</small>

  • I am directed to a blank page when I try to download Whatsapp. How can I get it?

    I am directed to a blank page when I try to download Whatsapp. How can I get it?
    Ive tried going to the App Store direct and also tried using the link on the Whatsapp site. Same problem each time - a blank page.

    Whatsapp is a phone app, however, look at these links:
    Install WhatsApp On iPad And iPod touch
    http://tinyurl.com/lp6tsud
    Install WhatsApp to the iPad
    http://ipadwhatsapp.com/
     Cheers, Tom 

  • How can I stop Firefox from changing Tabs/pages when I use the up/down arrows for scrolling?

    A recent update is causing the browser to switch between tabs, or even go on to other pages, when I use the keyboard navigation arrows to scroll down the page. This is aggravating, especially when filling out a form, which can submit before completion. The tab switching occurs mostly when the focus is not in a specific portion of the web page, such as when I have selected a tab. I I can find no way to disable this behavior.
    Win 7 Ultimate fully patched, Firefox version 35.0.1

    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

Maybe you are looking for

  • How to configure logs and trace files

    Hello people,    We have just implemented ESS-MSS, we have around 25000 people using this service and every 2 days my logs and trace file in server gets full and portal gets down. Please suggest how to solve this problem,how can i reduce trace and lo

  • Need to use business objects with a project, please guide on basics.

    Hello I am a dotnet developer (asp.net with C#). I am sorry I dont know much about Business objects. Our client a financial firm wants to use Business object with a web based application. I couldn't got a clear and good understanding of Business obje

  • RFC passing table parameters

    I am having difficulty passing tables as parameters using an RFC function defined in SE37 and an RPG ILE program running on a separate iSeries. I have successfully passed import/export parameters, however tables are proving to be difficult. The funct

  • Error in  removing Portal Tool Area from Theme

    Hi In my Portal theme i had a Portal Tool Area with Search options. My requirment is to removie it from the theme as we don't need it Go to Content Administration Portal Content--> Content Provided by SAP->End User Content-> Standar Portal Users You

  • My raw files wont open in pse8 or dng 6.4, why not?

    hi all, I've got a sony 580 and I cant get my raw files to open in either pse 8 or dng 6.4. I've updated the camera raw plug-in to 6.2.0.29, which i understand does not have support for the 580. But the troubleshoot says to try dng  instead which doe