myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prashant Gaikwad" <P.Gaik...@zensar.com>
Subject RE: HTML not rendred for <t:dataTable> within <s:pprPanelGroup>
Date Fri, 06 Apr 2007 05:44:32 GMT
Hi Gerald,

                I am facing problem is my <t:dataTable> in the JSP which is not refreshing
with the latest updates in corresponding database.  I wont to periodically refresh <t:dataTable>
 using AJAX <s:pprPanelGroup>

Below is the snippet. Please suggest how the view would be partially regenerated.

 

The datable is getting populated but HTML is not getting rendered. 

 

I think I am missing some ID definition as below is are warnings  thrown on console.

 

 

+++++++++++++++++++Inside getDataModel++++++++++++++++ 

Apr 5, 2007 5:16:56 PM org.apache.myfaces.renderkit.html.HtmlLabelRenderer encodeBegin

WARNING: Attribute 'for' of label component with id _idJsp0:_idJsp160:_idJsp164 is not defined

Apr 5, 2007 5:16:56 PM org.apache.myfaces.renderkit.html.HtmlLabelRenderer encodeBegin

WARNING: Attribute 'for' of label component with id _idJsp0:_idJsp160:_idJsp166 is not defined

Apr 5, 2007 5:16:56 PM org.apache.myfaces.renderkit.html.HtmlLabelRenderer encodeBegin

WARNING: Attribute 'for' of label component with id _idJsp0:_idJsp160:_idJsp170 is not defined

Apr 5, 2007 5:16:56 PM org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlGridRendererBase
renderChildren

WARNING: PanelGrid _idJsp0:_idJsp160:_idJsp165 has not enough children. Child count should
be a multiple of the columns attribute.

+++++++++++++++++++Inside getDataModel++++++++++++++++ 

+++++++++++++++++++Inside getDataModel++++++++++++++++ 

+++++++++++++++++++Inside getDataModel++++++++++++++++ 

 

 

Please help me in resolving this. 

 

Thanks

Prashant

 

 

<t:panelGrid >

<s:pprPanelGroup id="periodicalUpdatedArea" styleClass="general_font_datagrid" periodicalUpdate="1000">

               <t:dataTable    id="data"

                                                   styleClass="scrollerTable,standardTable"

                                                               headerClass="standardTable_Header"

                                                               footerClass="standardTable_Header"

                                                               rowClasses="standardTable_Row1,standardTable_Row2"

                                                                       columnClasses="standardTable_Column,standardTable_ColumnCentered"

                                       var="student"

                                                                               preserveDataModel="false"

                                                       binding="#{Student.data}"

                                               value="#{Student.dataModel.value}"

                                               rows="#{Student.dataModel.rows}"

                                       rowId="#{student.id}"

                                                       sortColumn="#{Student.dataModel.sortColumn}"

                                                               sortAscending="#{Student.dataModel.sortAscending}"

                                                               preserveSort="true">   
   

        

          <h:column >

             <f:facet name="header">

              <t:commandSortHeader columnName="studentid" immediate="false" arrow="true"
actionListener="#{Student.actionListener}" 

               onclick="if (!confirm(' Sort by Student Id?')) return false" styleClass="standardTable_SortHeader">

                       <h:outputText value="#{bundles.Student_id}"/>

              </t:commandSortHeader>

 

           </f:facet>

            <h:outputText value="#{student.id}"/>

          </h:column>

          <h:column>

            <f:facet name="header">

              <t:commandSortHeader columnName="name" immediate="false" arrow="true" actionListener="#{Student.actionListener}"

              onclick="if (!confirm(' Sort by Student Name ?')) return false" styleClass="standardTable_SortHeader"
>

                <h:outputText value="#{bundles.Name}"/>

              </t:commandSortHeader>

            </f:facet>

            <h:outputText value="#{student.name}"/>

          </h:column>

 

          <h:column>

            <f:facet name="header">

              <t:commandSortHeader columnName="grade" immediate="false" arrow="true" actionListener="#{Student.actionListener}"

              onclick="if (!confirm(' Sort by Grade ?')) return false"  styleClass="standardTable_SortHeader">

                <h:outputText value="#{bundles.Grade}"/>

              </t:commandSortHeader>

            </f:facet>

           <h:outputText value="#{student.grade}"/>

          </h:column>

        

            <h:column>

            <f:facet name="header">

              <t:commandSortHeader columnName="topic_news" immediate="false" arrow="true"
actionListener="#{Student.actionListener}"

              onclick="if (!confirm(' Sort by Topic ?')) return false" styleClass="standardTable_SortHeader">

                 <h:outputText value="#{bundles.topic}"/>

              </t:commandSortHeader>

            </f:facet>

            <h:outputText value="#{student.topic}"/>

          </h:column>

          

          

            <h:column>

            <f:facet name="header">

                <h:outputText value="#{bundles.Priority}"/>

                

            </f:facet>

                       <h:outputText value="#{student.priority}"/>

          </h:column>

          

          

           <h:column>

            <f:facet name="header" >

                <h:outputText value="#{bundles.Comment_Can_update_only_your_own_comment}"/>

            </f:facet>

                                    <t:inputTextarea cols="50" value="#{student.comments}"
></t:inputTextarea>

                                    <f:verbatim><br></br></f:verbatim>

                        

          </h:column>

          

        </t:dataTable>

                        </s:pprPanelGroup>

                        

            </t:panelGrid>        

-----Original Message-----
From: Gerald Müllan [mailto:bierbrauen@gmail.com] 
Sent: Thursday, April 05, 2007 6:27 PM
To: MyFaces Discussion
Subject: Re: HTML not rendred for <t:dataTable> within <s:pprPanelGroup>

Which tags are not rendered out in particular?

If you are using resource bundles you have to take the ones from
sandbox which are available in every phase of the lifecycle.

On 4/5/07, Prashant Gaikwad <P.Gaikwad@zensar.com> wrote:
>
>
>
>
> Hello All,
>
>                 I am facing problem is my <t:dataTable> in the JSP which is
> not refreshing with the latest updates in corresponding database.  I wont to
> periodically refresh <t:dataTable>  using AJAX <s:pprPanelGroup>
>
> Below is the snippet. Please suggest how the view would be partially
> regenerated.
>
>
>
> The datable is getting populated but HTML is not getting rendered.
>
>
>
> I think I am missing some ID definition as below is are warnings  thrown on
> console.
>
>
>
>
>
> +++++++++++++++++++Inside getDataModel++++++++++++++++
>
> Apr 5, 2007 5:16:56 PM
> org.apache.myfaces.renderkit.html.HtmlLabelRenderer
> encodeBegin
>
> WARNING: Attribute 'for' of label component with id
> _idJsp0:_idJsp160:_idJsp164 is not defined
>
> Apr 5, 2007 5:16:56 PM
> org.apache.myfaces.renderkit.html.HtmlLabelRenderer
> encodeBegin
>
> WARNING: Attribute 'for' of label component with id
> _idJsp0:_idJsp160:_idJsp166 is not defined
>
> Apr 5, 2007 5:16:56 PM
> org.apache.myfaces.renderkit.html.HtmlLabelRenderer
> encodeBegin
>
> WARNING: Attribute 'for' of label component with id
> _idJsp0:_idJsp160:_idJsp170 is not defined
>
> Apr 5, 2007 5:16:56 PM
> org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlGridRendererBase
> renderChildren
>
> WARNING: PanelGrid _idJsp0:_idJsp160:_idJsp165 has not enough children.
> Child count should be a multiple of the columns attribute.
>
> +++++++++++++++++++Inside getDataModel++++++++++++++++
>
> +++++++++++++++++++Inside getDataModel++++++++++++++++
>
> +++++++++++++++++++Inside getDataModel++++++++++++++++
>
>
>
>
>
> Please help me in resolving this.
>
>
>
> Thanks
>
> Prashant
>
>
>
>
>
> <t:panelGrid >
>
> <s:pprPanelGroup id="periodicalUpdatedArea"
> styleClass="general_font_datagrid" periodicalUpdate="1000">
>
>                <t:dataTable    id="data"
>
>
> styleClass="scrollerTable,standardTable"
>
>
>    headerClass="standardTable_Header"
>
>
>    footerClass="standardTable_Header"
>
>
>    rowClasses="standardTable_Row1,standardTable_Row2"
>
>
>
> columnClasses="standardTable_Column,standardTable_ColumnCentered"
>
>                                        var="student"
>
>
>                    preserveDataModel="false"
>
>
> binding="#{Student.data}"
>
>
> value="#{Student.dataModel.value}"
>
>
> rows="#{Student.dataModel.rows}"
>
>                                        rowId="#{student.id}"
>
>
> sortColumn="#{Student.dataModel.sortColumn}"
>
>
>    sortAscending="#{Student.dataModel.sortAscending}"
>
>
>    preserveSort="true">
>
>
>
>           <h:column >
>
>              <f:facet name="header">
>
>               <t:commandSortHeader columnName="studentid" immediate="false"
> arrow="true" actionListener="#{Student.actionListener}"
>
>                onclick="if (!confirm(' Sort by Student Id?')) return false"
> styleClass="standardTable_SortHeader">
>
>                        <h:outputText value="#{bundles.Student_id}"/>
>
>               </t:commandSortHeader>
>
>
>
>            </f:facet>
>
>             <h:outputText value="#{student.id}"/>
>
>           </h:column>
>
>           <h:column>
>
>             <f:facet name="header">
>
>               <t:commandSortHeader columnName="name" immediate="false"
> arrow="true" actionListener="#{Student.actionListener}"
>
>               onclick="if (!confirm(' Sort by Student Name ?')) return
> false" styleClass="standardTable_SortHeader" >
>
>                 <h:outputText value="#{bundles.Name}"/>
>
>               </t:commandSortHeader>
>
>             </f:facet>
>
>             <h:outputText value="#{student.name}"/>
>
>           </h:column>
>
>
>
>           <h:column>
>
>             <f:facet name="header">
>
>               <t:commandSortHeader columnName="grade" immediate="false"
> arrow="true" actionListener="#{Student.actionListener}"
>
>               onclick="if (!confirm(' Sort by Grade ?')) return false"
> styleClass="standardTable_SortHeader">
>
>                 <h:outputText value="#{bundles.Grade}"/>
>
>               </t:commandSortHeader>
>
>             </f:facet>
>
>            <h:outputText value="#{student.grade}"/>
>
>           </h:column>
>
>
>
>             <h:column>
>
>             <f:facet name="header">
>
>               <t:commandSortHeader columnName="topic_news" immediate="false"
> arrow="true" actionListener="#{Student.actionListener}"
>
>               onclick="if (!confirm(' Sort by Topic ?')) return false"
> styleClass="standardTable_SortHeader">
>
>                  <h:outputText value="#{bundles.topic}"/>
>
>               </t:commandSortHeader>
>
>             </f:facet>
>
>             <h:outputText value="#{student.topic}"/>
>
>           </h:column>
>
>
>
>
>
>             <h:column>
>
>             <f:facet name="header">
>
>                 <h:outputText value="#{bundles.Priority}"/>
>
>
>
>             </f:facet>
>
>                        <h:outputText value="#{student.priority}"/>
>
>           </h:column>
>
>
>
>
>
>            <h:column>
>
>             <f:facet name="header" >
>
>                 <h:outputText
> value="#{bundles.Comment_Can_update_only_your_own_comment}"/>
>
>             </f:facet>
>
>                                     <t:inputTextarea
> cols="50" value="#{student.comments}" ></t:inputTextarea>
>
>
> <f:verbatim><br></br></f:verbatim>
>
>
>
>           </h:column>
>
>
>
>         </t:dataTable>
>
>                         </s:pprPanelGroup>
>
>
>
>             </t:panelGrid>
>
>
>
>
>
>
>
>
>
>
>
> -----Original Message-----
>
> From: Zdeněk Sochor [mailto:zdenek.sochor@ataco.cz]
>
> Sent: Thursday, April 05, 2007 1:50 PM
>
> To: MyFaces Development
>
> Subject: Re: tomahawk-sandbox-1.1.6-SNAPSHOT-- DOJO
> error...
>
>
>
> Hi Prashant,
>
>
>
> Dojo is present in Tomahawk CORE 1.1.5 (and snapshot 1.1.6), NOT in 1.1.3.
>
>
>
> Download BOTH snapshots - Tomahawk CORE and sandbox to make it work.
>
>
>
> Regards,
>
>   Zdenek
>
>
>
> Prashant Gaikwad napsal(a):
>
>
>
> > Dear Developer friends,
>
> >
>
> >                                  Need small help to
> resolve problem I
>
> > am facing with  tomahawk-sandbox-1.1.6-SNAPSHOT.jar.
>
> >
>
> >
>
> >
>
> > I downloaded above jar file from nightly build link. I want to
>
> > implement <s:pprPanelGroup> for asynchronous (AJAX) refresh of
>
> > <t:dataTable>.  On implementing sample application from
>
> > http://www.irian.at/myfaces.jsf. I am getting following error message.
>
> > I have no clue what its searching for Dojo related stuff.
>
> >
>
> >
>
> >
>
> > Can anyone point me to latest updated .jar or other identified
>
> > solution to this problem?
>
> >
>
> >
>
> >
>
> > Many Thanks in Advance
>
> >
>
> > Prashant
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> > Apr 4, 2007 5:46:35 PM
> com.sun.faces.config.rules.ComponentRule end
>
> >
>
> > WARNING: [ComponentRule]{faces-config/component}
>
> > Merge(javax.faces.ViewRoot)
>
> >
>
> > Apr 4, 2007 5:46:38 PM
> org.apache.myfaces.config.FacesConfigurator
>
> > feedStandardConfig
>
> >
>
> > INFO: Reading standard config
>
> > org/apache/myfaces/resource/standard-faces-config.xml
>
> >
>
> > Apr 4, 2007 5:46:38 PM
> org.apache.myfaces.config.FacesConfigurator
>
> > feedClassloaderConfigurations
>
> >
>
> > INFO: Reading config
>
> >
> jar:file:/D:/apache-tomcat-5.5.20/webapps/Nagase_Todo/WEB-INF/lib/ajax
>
> > 4jsf.jar!/META-INF/faces-config.xml
>
> >
>
> > Apr 4, 2007 5:46:38 PM
> org.apache.myfaces.config.FacesConfigurator
>
> > feedClassloaderConfigurations
>
> >
>
> > INFO: Reading config
>
> >
> jar:file:/D:/apache-tomcat-5.5.20/webapps/Nagase_Todo/WEB-INF/lib/toma
>
> > hawk-1.1.3.jar!/META-INF/faces-config.xml
>
> >
>
> > Apr 4, 2007 5:46:38 PM
> org.apache.myfaces.config.FacesConfigurator
>
> > feedClassloaderConfigurations
>
> >
>
> > INFO: Reading config
>
> >
> jar:file:/D:/apache-tomcat-5.5.20/webapps/Nagase_Todo/WEB-INF/lib/toma
>
> >
> hawk-sandbox-1.1.6-SNAPSHOT.jar!/META-INF/faces-config.xml
>
> >
>
> > Apr 4, 2007 5:46:38 PM
> org.apache.myfaces.config.FacesConfigurator
>
> > feedWebAppConfig
>
> >
>
> > INFO: Reading config /WEB-INF/faces-config.xml
>
> >
>
> > Apr 4, 2007 5:46:39 PM
> org.apache.catalina.core.StandardContext
>
> > listenerStart
>
> >
>
> > SEVERE: Exception sending context initialized event to listener
>
> > instance of class
>
> > *org.apache.myfaces.webapp.StartupServletContextListener*
>
> >
>
> > *java.lang.NoClassDefFoundError:
>
> > org/apache/myfaces/custom/dojo/DojoWidget*
>
> >
>
> >       at java.lang.ClassLoader.defineClass0(_Native
> Method_)
>
> >
>
> >       at java.lang.ClassLoader.defineClass(Unknown
> Source)
>
> >
>
> >       at
> java.security.SecureClassLoader.defineClass(Unknown Source)
>
> >
>
> >       at
>
> >
> org.apache.catalina.loader.WebappClassLoader.findClassInternal(_Webapp
>
> > ClassLoader.java:1815_)
>
> >
>
> >       at
>
> >
> org.apache.catalina.loader.WebappClassLoader.findClass(_WebappClassLoa
>
> > der.java:869_)
>
> >
>
> >       at
>
> >
> org.apache.catalina.loader.WebappClassLoader.loadClass(_WebappClassLoa
>
> > der.java:1322_)
>
> >
>
> >       at
>
> >
> org.apache.catalina.loader.WebappClassLoader.loadClass(_WebappClassLoa
>
> > der.java:1201_)
>
> >
>
> >       at java.lang.ClassLoader.loadClassInternal(Unknown
> Source)
>
> >
>
> >       at java.lang.Class.forName0(_Native Method_)
>
> >
>
> >       at java.lang.Class.forName(Unknown Source)
>
> >
>
> >       at
>
> >
> org.apache.myfaces.shared_impl.util.ClassUtils.classForName(_ClassUtil
>
> > s.java:131_)
>
> >
>
> >       at
>
> >
> org.apache.myfaces.shared_impl.util.ClassUtils.simpleClassForName(_Cla
>
> > ssUtils.java:157_)
>
> >
>
> >       at
>
> >
> org.apache.myfaces.application.ApplicationImpl.addComponent(_Applicati
>
> > onImpl.java:269_)
>
> >
>
> >       at
>
> >
> org.apache.myfaces.config.FacesConfigurator.configureApplication(_Face
>
> > sConfigurator.java:479_)
>
> >
>
> >       at
>
> >
> org.apache.myfaces.config.FacesConfigurator.configure(_FacesConfigurat
>
> > or.java:141_)
>
> >
>
> >       at
>
> >
> org.apache.myfaces.webapp.StartupServletContextListener.initFaces(_Sta
>
> > rtupServletContextListener.java:69_)
>
> >
>
> >       at
>
> >
> org.apache.myfaces.webapp.StartupServletContextListener.contextInitial
>
> > ized(_StartupServletContextListener.java:52_)
>
> >
>
> >       at
>
> >
> org.apache.catalina.core.StandardContext.listenerStart(_StandardContex
>
> > t.java:3763_)
>
> >
>
> >       at
>
> >
> org.apache.catalina.core.StandardContext.start(_StandardContext.java:4
>
> > 211_)
>
> >
>
> >       at
>
> >
> org.apache.catalina.core.ContainerBase.start(_ContainerBase.java:1013_
>
> > )
>
> >
>
> >       at
>
> >
> org.apache.catalina.core.StandardHost.start(_StandardHost.java:718_)
>
> >
>
> >       at
>
> >
> org.apache.catalina.core.ContainerBase.start(_ContainerBase.java:1013_
>
> > )
>
> >
>
> >       at
>
> >
> org.apache.catalina.core.StandardEngine.start(_StandardEngine.java:442
>
> > _)
>
> >
>
> >       at
>
> >
> org.apache.catalina.core.StandardService.start(_StandardService.java:4
>
> > 50_)
>
> >
>
> >       at
>
> >
> org.apache.catalina.core.StandardServer.start(_StandardServer.java:709
>
> > _)
>
> >
>
> >       at
>
> >
> org.apache.catalina.startup.Catalina.start(_Catalina.java:551_)
>
> >
>
> >       at
> sun.reflect.NativeMethodAccessorImpl.invoke0(_Native
> Method_)
>
> >
>
> >       at
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>
> >
>
> >       at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>
> > Source)
>
> >
>
> >       at java.lang.reflect.Method.invoke(Unknown Source)
>
> >
>
> >       at
>
> >
> org.apache.catalina.startup.Bootstrap.start(_Bootstrap.java:294_)
>
> >
>
> >       at
>
> >
> org.apache.catalina.startup.Bootstrap.main(_Bootstrap.java:432_)
>
> >
>
> > Apr 4, 2007 5:46:39 PM
> org.springframework.web.context.ContextLoader
>
> > initWebApplicationContext
>
> >
>
> > INFO: Root WebApplicationContext: initialization started
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
>
>
>


-- 
http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Mime
View raw message