You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Mike Kienenberger <mk...@gmail.com> on 2007/10/23 22:23:26 UTC

Re: not coming up

Are you sure that #{selectMappingBean.mappings} is non-empty at this point?

Try

<t:outputText value="Tomahawk table"/>
<t:outputText value="#{selectMappingBean.mappings}"/>
 <t:dataTable var="mapper" value="#{selectMappingBean.mappings}">
[...]


On 10/23/07, Palat, Anil <ap...@corbincapital.com> wrote:
>
>
> Hi,
>
> Iam working with tomcat 5.0.28, Myfaces 1.1.5 & JDK1.4.2_14
>
> When I run the following JSP Iam not getting the datatable displayed though
> the text "Tomahawk table" is displayed. Please let me know whether Iam
> missing anything.
> Is it due to any version incompatibilities?
>
> <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
> <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
> <%@ taglib uri="http://myfaces.apache.org/tomahawk"
> prefix="t"%>
>
>    <f:view>
>        <t:outputText value="Tomahawk table"/>
>        <t:dataTable var="mapper" value="#{selectMappingBean.mappings}">
>            <h:column>
>                <f:facet name="one">
>                    <t:outputText value="Manager Name"/>
>                </f:facet>
>                <t:outputText value="#{mapper.managerName}"/>
>            </h:column>
>        </t:dataTable>
>    </f:view>
>
>  thanks

Re: not coming up

Posted by Mike Kienenberger <mk...@gmail.com>.
That looks great.  Thanks.   The only other thing that might be
helpful is a simple example demonstrating the problem.   But at least
we have a record of it at this point.

On 10/24/07, Palat, Anil <ap...@corbincapital.com> wrote:
>
> I have added that. Could you please check this
> https://issues.apache.org/jira/browse/TOMAHAWK-1134 & let me know if
> more information is needed
> thanks
> -----Original Message-----
> From: Mike Kienenberger [mailto:mkienenb@gmail.com]
> Sent: Wednesday, October 24, 2007 11:13 AM
> To: MyFaces Discussion
> Subject: Re: <t:dataTable> not coming up
>
> Thanks, Anil.
>
> Can you also add to the JIRA issue which JSF implementations and
> versions you've tested this with?
>
> It makes a difference for determining which h:dataTable is the working
> h:dataTable.
>
>
> On 10/24/07, Palat, Anil <ap...@corbincapital.com> wrote:
> >
> > Since my application has limited database access, I thought not to
> > bring any ORM like hibernate instead use bit of JDBC.
> > Also we are using javax.faces.component.UIData & its getRowData()
> > method to map the table row between UI & managedbean
> >
> > I don't know to which JIRA I should report this. Kindly help
> > -----Original Message-----
> > From: Mike Kienenberger [mailto:mkienenb@gmail.com]
> > Sent: Wednesday, October 24, 2007 10:20 AM
> > To: MyFaces Discussion
> > Subject: Re: <t:dataTable> not coming up
> >
> > If it worked in Sun JSF RI and doesn't work in MyFaces (of the same
> > version -- 1.1 vs 1.1 and 1.2 vs 1.2, not 1.1 vs 1.2), please open a
> > JIRA issue.   It should work in both places.
> >
> > I don't know how many people really use ResultSets directly with
> > UIData components.   I know that I never do this as I always work with
> > an ORM rather than JDBC.   So it's possible that the ResultSet model
> > code hasn't been as well tested as other models.
> >
> > On 10/24/07, Palat, Anil <ap...@corbincapital.com> wrote:
> > > Thanks Mike, I changed the model from ResultSet to a custom java
> bean.
> > > It works.
> > > I was expecting the code which worked in Sun JSF RI to work in My
> > > faces+tomahawk. I still don't know why
> > >
> > > I had to make some code changes to incorporate my custom bean. I
> > > think
> >
> > > ResultSet maaping doesnot work with tomahawk
> > >
> > > -----Original Message-----
> > > From: Mike Kienenberger [mailto:mkienenb@gmail.com]
> > > Sent: Tuesday, October 23, 2007 6:01 PM
> > > To: MyFaces Discussion
> > > Subject: Re: <t:dataTable> not coming up
> > >
> > > I've never used a ResultSet as a backing model, so I'm not sure how
> > > it
> >
> > > should behave.
> > >
> > > Looking at the source for javax.faces.model.ResultSetDataModel, it
> > > looks like each row data object is a Map, so #{mapper} would be of
> > > type Map, and #{mapper.managerName}" would be the same as fetching
> > > the
> >
> > > key for 'managerName' from the map.  Furthermore, it looks like the
> > > keys are the column names of the database tables.   Are you sure you
> > > have a "managerName" database column name?
> > >
> > > Also, the test you did before doesn't prove that there's anything in
>
> > > the ResultSet, only that the ResultSet exists.
> > >
> > > Maybe you can try putting a breakpoint or debugging statement in
> > > your
> > > selectMappingBean.getMappings() method to test if there's at least
> > > one
> >
> > > row in the ResultSet.
> > >
> > > Also, I'm not sure what facet name="one" is supposed to do, but I'm
> > > pretty sure that t:column doesn't recognize "one" as a valid facet.
> > > You probably want "header" instead.
> > >
> > >
> > > On 10/23/07, Palat, Anil <ap...@corbincapital.com> wrote:
> > > >  The getter method is definitely getting called. I tried what Mike
>
> > > > had
> > >
> > > > suggested
> > > >
> > > > > <t:outputText value="Tomahawk table"/> <t:outputText
> > > > > value="#{selectMappingBean.mappings}"/>
> > > >
> > > > & Iam getting
> > > >
> > > > Tomahawk table oracle.jdbc.driver.ScrollableResultSet@197d20c
> > > >
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: Andrew Robinson [mailto:andrew.rw.robinson@gmail.com]
> > > > Sent: Tuesday, October 23, 2007 5:16 PM
> > > > To: MyFaces Discussion
> > > > Subject: Re: <t:dataTable> not coming up
> > > >
> > > > is the getter method being called for the data table model?
> > > >
> > > > if so, which phases is it being called for?
> > > >
> > > > anything interesting in the log file?
> > > >
> > > > have you completely removed all RI jar files from both your web
> > > > application WAR and from the container (if applicable)?
> > > >
> > > > are there any other JSF jars in the class path? (like an old
> > > > myfaces-all.jar for example)
> > > >
> > > > On 10/23/07, Palat, Anil <ap...@corbincapital.com> wrote:
> > > > > Thanks Sushama & Mike
> > > > > I think it's a different issue & nothing to do with managed bean
>
> > > > > or incoming data list .
> > > > > The reason being the same code works fine with JSF RI in the
> > > > > same environment. Also its just a part of an existing
> > > > > application, hence the managed beans are well established.
> > > > >
> > > > > To give you some more info, Iam using Tomahawk 1.1.6
> > > > >
> > > > > Any thoughts?
> > > > >
> > > > > -----Original Message-----
> > > > > From: Mike Kienenberger [mailto:mkienenb@gmail.com]
> > > > > Sent: Tuesday, October 23, 2007 4:23 PM
> > > > > To: MyFaces Discussion
> > > > > Subject: Re: <t:dataTable> not coming up
> > > > >
> > > > > Are you sure that #{selectMappingBean.mappings} is non-empty at
> > > > > this
> > >
> > > > > point?
> > > > >
> > > > > Try
> > > > >
> > > > > <t:outputText value="Tomahawk table"/> <t:outputText
> > > > > value="#{selectMappingBean.mappings}"/>
> > > > >  <t:dataTable var="mapper"
> > > > > value="#{selectMappingBean.mappings}">
> > > > > [...]
> > > > >
> > > > >
> > > > > On 10/23/07, Palat, Anil <ap...@corbincapital.com> wrote:
> > > > > >
> > > > > >
> > > > > > Hi,
> > > > > >
> > > > > > Iam working with tomcat 5.0.28, Myfaces 1.1.5 & JDK1.4.2_14
> > > > > >
> > > > > > When I run the following JSP Iam not getting the datatable
> > > > > > displayed
> > > >
> > > > > > though the text "Tomahawk table" is displayed. Please let me
> > > > > > know whether Iam missing anything.
> > > > > > Is it due to any version incompatibilities?
> > > > > >
> > > > > > <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
> > > > > > <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%> <%@
> > > > > > taglib uri="http://myfaces.apache.org/tomahawk"
> > > > > > prefix="t"%>
> > > > > >
> > > > > >    <f:view>
> > > > > >        <t:outputText value="Tomahawk table"/>
> > > > > >        <t:dataTable var="mapper"
> > > > > value="#{selectMappingBean.mappings}">
> > > > > >            <h:column>
> > > > > >                <f:facet name="one">
> > > > > >                    <t:outputText value="Manager Name"/>
> > > > > >                </f:facet>
> > > > > >                <t:outputText value="#{mapper.managerName}"/>
> > > > > >            </h:column>
> > > > > >        </t:dataTable>
> > > > > >    </f:view>
> > > > > >
> > > > > >  thanks
> > > > >
> > > >
> > >
> >
>

RE: not coming up

Posted by "Palat, Anil" <ap...@corbincapital.com>.
 
I have added that. Could you please check this
https://issues.apache.org/jira/browse/TOMAHAWK-1134 & let me know if
more information is needed
thanks
-----Original Message-----
From: Mike Kienenberger [mailto:mkienenb@gmail.com] 
Sent: Wednesday, October 24, 2007 11:13 AM
To: MyFaces Discussion
Subject: Re: <t:dataTable> not coming up

Thanks, Anil.

Can you also add to the JIRA issue which JSF implementations and
versions you've tested this with?

It makes a difference for determining which h:dataTable is the working
h:dataTable.


On 10/24/07, Palat, Anil <ap...@corbincapital.com> wrote:
>
> Since my application has limited database access, I thought not to 
> bring any ORM like hibernate instead use bit of JDBC.
> Also we are using javax.faces.component.UIData & its getRowData() 
> method to map the table row between UI & managedbean
>
> I don't know to which JIRA I should report this. Kindly help 
> -----Original Message-----
> From: Mike Kienenberger [mailto:mkienenb@gmail.com]
> Sent: Wednesday, October 24, 2007 10:20 AM
> To: MyFaces Discussion
> Subject: Re: <t:dataTable> not coming up
>
> If it worked in Sun JSF RI and doesn't work in MyFaces (of the same 
> version -- 1.1 vs 1.1 and 1.2 vs 1.2, not 1.1 vs 1.2), please open a
> JIRA issue.   It should work in both places.
>
> I don't know how many people really use ResultSets directly with
> UIData components.   I know that I never do this as I always work with
> an ORM rather than JDBC.   So it's possible that the ResultSet model
> code hasn't been as well tested as other models.
>
> On 10/24/07, Palat, Anil <ap...@corbincapital.com> wrote:
> > Thanks Mike, I changed the model from ResultSet to a custom java
bean.
> > It works.
> > I was expecting the code which worked in Sun JSF RI to work in My
> > faces+tomahawk. I still don't know why
> >
> > I had to make some code changes to incorporate my custom bean. I 
> > think
>
> > ResultSet maaping doesnot work with tomahawk
> >
> > -----Original Message-----
> > From: Mike Kienenberger [mailto:mkienenb@gmail.com]
> > Sent: Tuesday, October 23, 2007 6:01 PM
> > To: MyFaces Discussion
> > Subject: Re: <t:dataTable> not coming up
> >
> > I've never used a ResultSet as a backing model, so I'm not sure how 
> > it
>
> > should behave.
> >
> > Looking at the source for javax.faces.model.ResultSetDataModel, it 
> > looks like each row data object is a Map, so #{mapper} would be of 
> > type Map, and #{mapper.managerName}" would be the same as fetching 
> > the
>
> > key for 'managerName' from the map.  Furthermore, it looks like the
> > keys are the column names of the database tables.   Are you sure you
> > have a "managerName" database column name?
> >
> > Also, the test you did before doesn't prove that there's anything in

> > the ResultSet, only that the ResultSet exists.
> >
> > Maybe you can try putting a breakpoint or debugging statement in 
> > your
> > selectMappingBean.getMappings() method to test if there's at least 
> > one
>
> > row in the ResultSet.
> >
> > Also, I'm not sure what facet name="one" is supposed to do, but I'm 
> > pretty sure that t:column doesn't recognize "one" as a valid facet.
> > You probably want "header" instead.
> >
> >
> > On 10/23/07, Palat, Anil <ap...@corbincapital.com> wrote:
> > >  The getter method is definitely getting called. I tried what Mike

> > > had
> >
> > > suggested
> > >
> > > > <t:outputText value="Tomahawk table"/> <t:outputText 
> > > > value="#{selectMappingBean.mappings}"/>
> > >
> > > & Iam getting
> > >
> > > Tomahawk table oracle.jdbc.driver.ScrollableResultSet@197d20c
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: Andrew Robinson [mailto:andrew.rw.robinson@gmail.com]
> > > Sent: Tuesday, October 23, 2007 5:16 PM
> > > To: MyFaces Discussion
> > > Subject: Re: <t:dataTable> not coming up
> > >
> > > is the getter method being called for the data table model?
> > >
> > > if so, which phases is it being called for?
> > >
> > > anything interesting in the log file?
> > >
> > > have you completely removed all RI jar files from both your web 
> > > application WAR and from the container (if applicable)?
> > >
> > > are there any other JSF jars in the class path? (like an old 
> > > myfaces-all.jar for example)
> > >
> > > On 10/23/07, Palat, Anil <ap...@corbincapital.com> wrote:
> > > > Thanks Sushama & Mike
> > > > I think it's a different issue & nothing to do with managed bean

> > > > or incoming data list .
> > > > The reason being the same code works fine with JSF RI in the 
> > > > same environment. Also its just a part of an existing 
> > > > application, hence the managed beans are well established.
> > > >
> > > > To give you some more info, Iam using Tomahawk 1.1.6
> > > >
> > > > Any thoughts?
> > > >
> > > > -----Original Message-----
> > > > From: Mike Kienenberger [mailto:mkienenb@gmail.com]
> > > > Sent: Tuesday, October 23, 2007 4:23 PM
> > > > To: MyFaces Discussion
> > > > Subject: Re: <t:dataTable> not coming up
> > > >
> > > > Are you sure that #{selectMappingBean.mappings} is non-empty at 
> > > > this
> >
> > > > point?
> > > >
> > > > Try
> > > >
> > > > <t:outputText value="Tomahawk table"/> <t:outputText 
> > > > value="#{selectMappingBean.mappings}"/>
> > > >  <t:dataTable var="mapper" 
> > > > value="#{selectMappingBean.mappings}">
> > > > [...]
> > > >
> > > >
> > > > On 10/23/07, Palat, Anil <ap...@corbincapital.com> wrote:
> > > > >
> > > > >
> > > > > Hi,
> > > > >
> > > > > Iam working with tomcat 5.0.28, Myfaces 1.1.5 & JDK1.4.2_14
> > > > >
> > > > > When I run the following JSP Iam not getting the datatable 
> > > > > displayed
> > >
> > > > > though the text "Tomahawk table" is displayed. Please let me 
> > > > > know whether Iam missing anything.
> > > > > Is it due to any version incompatibilities?
> > > > >
> > > > > <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%> 
> > > > > <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%> <%@ 
> > > > > taglib uri="http://myfaces.apache.org/tomahawk"
> > > > > prefix="t"%>
> > > > >
> > > > >    <f:view>
> > > > >        <t:outputText value="Tomahawk table"/>
> > > > >        <t:dataTable var="mapper"
> > > > value="#{selectMappingBean.mappings}">
> > > > >            <h:column>
> > > > >                <f:facet name="one">
> > > > >                    <t:outputText value="Manager Name"/>
> > > > >                </f:facet>
> > > > >                <t:outputText value="#{mapper.managerName}"/>
> > > > >            </h:column>
> > > > >        </t:dataTable>
> > > > >    </f:view>
> > > > >
> > > > >  thanks
> > > >
> > >
> >
>

Re: not coming up

Posted by Mike Kienenberger <mk...@gmail.com>.
Thanks, Anil.

Can you also add to the JIRA issue which JSF implementations and
versions you've tested this with?

It makes a difference for determining which h:dataTable is the working
h:dataTable.


On 10/24/07, Palat, Anil <ap...@corbincapital.com> wrote:
>
> Since my application has limited database access, I thought not to bring
> any ORM like hibernate instead use bit of JDBC.
> Also we are using javax.faces.component.UIData & its getRowData() method
> to map the table row between UI & managedbean
>
> I don't know to which JIRA I should report this. Kindly help
> -----Original Message-----
> From: Mike Kienenberger [mailto:mkienenb@gmail.com]
> Sent: Wednesday, October 24, 2007 10:20 AM
> To: MyFaces Discussion
> Subject: Re: <t:dataTable> not coming up
>
> If it worked in Sun JSF RI and doesn't work in MyFaces (of the same
> version -- 1.1 vs 1.1 and 1.2 vs 1.2, not 1.1 vs 1.2), please open a
> JIRA issue.   It should work in both places.
>
> I don't know how many people really use ResultSets directly with
> UIData components.   I know that I never do this as I always work with
> an ORM rather than JDBC.   So it's possible that the ResultSet model
> code hasn't been as well tested as other models.
>
> On 10/24/07, Palat, Anil <ap...@corbincapital.com> wrote:
> > Thanks Mike, I changed the model from ResultSet to a custom java bean.
> > It works.
> > I was expecting the code which worked in Sun JSF RI to work in My
> > faces+tomahawk. I still don't know why
> >
> > I had to make some code changes to incorporate my custom bean. I think
>
> > ResultSet maaping doesnot work with tomahawk
> >
> > -----Original Message-----
> > From: Mike Kienenberger [mailto:mkienenb@gmail.com]
> > Sent: Tuesday, October 23, 2007 6:01 PM
> > To: MyFaces Discussion
> > Subject: Re: <t:dataTable> not coming up
> >
> > I've never used a ResultSet as a backing model, so I'm not sure how it
>
> > should behave.
> >
> > Looking at the source for javax.faces.model.ResultSetDataModel, it
> > looks like each row data object is a Map, so #{mapper} would be of
> > type Map, and #{mapper.managerName}" would be the same as fetching the
>
> > key for 'managerName' from the map.  Furthermore, it looks like the
> > keys are the column names of the database tables.   Are you sure you
> > have a "managerName" database column name?
> >
> > Also, the test you did before doesn't prove that there's anything in
> > the ResultSet, only that the ResultSet exists.
> >
> > Maybe you can try putting a breakpoint or debugging statement in your
> > selectMappingBean.getMappings() method to test if there's at least one
>
> > row in the ResultSet.
> >
> > Also, I'm not sure what facet name="one" is supposed to do, but I'm
> > pretty sure that t:column doesn't recognize "one" as a valid facet.
> > You probably want "header" instead.
> >
> >
> > On 10/23/07, Palat, Anil <ap...@corbincapital.com> wrote:
> > >  The getter method is definitely getting called. I tried what Mike
> > > had
> >
> > > suggested
> > >
> > > > <t:outputText value="Tomahawk table"/> <t:outputText
> > > > value="#{selectMappingBean.mappings}"/>
> > >
> > > & Iam getting
> > >
> > > Tomahawk table oracle.jdbc.driver.ScrollableResultSet@197d20c
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: Andrew Robinson [mailto:andrew.rw.robinson@gmail.com]
> > > Sent: Tuesday, October 23, 2007 5:16 PM
> > > To: MyFaces Discussion
> > > Subject: Re: <t:dataTable> not coming up
> > >
> > > is the getter method being called for the data table model?
> > >
> > > if so, which phases is it being called for?
> > >
> > > anything interesting in the log file?
> > >
> > > have you completely removed all RI jar files from both your web
> > > application WAR and from the container (if applicable)?
> > >
> > > are there any other JSF jars in the class path? (like an old
> > > myfaces-all.jar for example)
> > >
> > > On 10/23/07, Palat, Anil <ap...@corbincapital.com> wrote:
> > > > Thanks Sushama & Mike
> > > > I think it's a different issue & nothing to do with managed bean
> > > > or incoming data list .
> > > > The reason being the same code works fine with JSF RI in the same
> > > > environment. Also its just a part of an existing application,
> > > > hence the managed beans are well established.
> > > >
> > > > To give you some more info, Iam using Tomahawk 1.1.6
> > > >
> > > > Any thoughts?
> > > >
> > > > -----Original Message-----
> > > > From: Mike Kienenberger [mailto:mkienenb@gmail.com]
> > > > Sent: Tuesday, October 23, 2007 4:23 PM
> > > > To: MyFaces Discussion
> > > > Subject: Re: <t:dataTable> not coming up
> > > >
> > > > Are you sure that #{selectMappingBean.mappings} is non-empty at
> > > > this
> >
> > > > point?
> > > >
> > > > Try
> > > >
> > > > <t:outputText value="Tomahawk table"/> <t:outputText
> > > > value="#{selectMappingBean.mappings}"/>
> > > >  <t:dataTable var="mapper" value="#{selectMappingBean.mappings}">
> > > > [...]
> > > >
> > > >
> > > > On 10/23/07, Palat, Anil <ap...@corbincapital.com> wrote:
> > > > >
> > > > >
> > > > > Hi,
> > > > >
> > > > > Iam working with tomcat 5.0.28, Myfaces 1.1.5 & JDK1.4.2_14
> > > > >
> > > > > When I run the following JSP Iam not getting the datatable
> > > > > displayed
> > >
> > > > > though the text "Tomahawk table" is displayed. Please let me
> > > > > know whether Iam missing anything.
> > > > > Is it due to any version incompatibilities?
> > > > >
> > > > > <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
> > > > > <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%> <%@
> > > > > taglib uri="http://myfaces.apache.org/tomahawk"
> > > > > prefix="t"%>
> > > > >
> > > > >    <f:view>
> > > > >        <t:outputText value="Tomahawk table"/>
> > > > >        <t:dataTable var="mapper"
> > > > value="#{selectMappingBean.mappings}">
> > > > >            <h:column>
> > > > >                <f:facet name="one">
> > > > >                    <t:outputText value="Manager Name"/>
> > > > >                </f:facet>
> > > > >                <t:outputText value="#{mapper.managerName}"/>
> > > > >            </h:column>
> > > > >        </t:dataTable>
> > > > >    </f:view>
> > > > >
> > > > >  thanks
> > > >
> > >
> >
>

RE: not coming up

Posted by "Palat, Anil" <ap...@corbincapital.com>.
Mike,
You are right it works fine with  JSF RI1.1 + h:dataTable & Myfaces1.1.5
+ h:dataTable

I have reported this at http://issues.apache.org/jira/browse/TOMAHAWK

Thanks for you help

-----Original Message-----
From: Mike Kienenberger [mailto:mkienenb@gmail.com] 
Sent: Wednesday, October 24, 2007 10:42 AM
To: MyFaces Discussion
Subject: Re: <t:dataTable> not coming up

I am assuming that your application works with JSF RI + h:dataTable.

If you see the problem with MyFaces Core + h:dataTable, report it here:

http://issues.apache.org/jira/browse/MYFACES

If you do not see the problem with MyFaces Core + h:dataTable, but do
see it with MyFaces Tomahawk + t:dataTable, report it here:

http://issues.apache.org/jira/browse/TOMAHAWK

It's important to know where the problem lies since t:dataTable inherits
from h:dataTable.

I suspect it might be difficult to do so, but if you could provide a
simple example, that'd be helpful.   Maybe you could create a custom
ResultSet implementation and populate it with static data showing the
situation you're encountering?


On 10/24/07, Palat, Anil <ap...@corbincapital.com> wrote:
>
> Since my application has limited database access, I thought not to 
> bring any ORM like hibernate instead use bit of JDBC.
> Also we are using javax.faces.component.UIData & its getRowData() 
> method to map the table row between UI & managedbean
>
> I don't know to which JIRA I should report this. Kindly help 
> -----Original Message-----
> From: Mike Kienenberger [mailto:mkienenb@gmail.com]
> Sent: Wednesday, October 24, 2007 10:20 AM
> To: MyFaces Discussion
> Subject: Re: <t:dataTable> not coming up
>
> If it worked in Sun JSF RI and doesn't work in MyFaces (of the same 
> version -- 1.1 vs 1.1 and 1.2 vs 1.2, not 1.1 vs 1.2), please open a
> JIRA issue.   It should work in both places.
>
> I don't know how many people really use ResultSets directly with
> UIData components.   I know that I never do this as I always work with
> an ORM rather than JDBC.   So it's possible that the ResultSet model
> code hasn't been as well tested as other models.
>
> On 10/24/07, Palat, Anil <ap...@corbincapital.com> wrote:
> > Thanks Mike, I changed the model from ResultSet to a custom java
bean.
> > It works.
> > I was expecting the code which worked in Sun JSF RI to work in My
> > faces+tomahawk. I still don't know why
> >
> > I had to make some code changes to incorporate my custom bean. I 
> > think
>
> > ResultSet maaping doesnot work with tomahawk
> >
> > -----Original Message-----
> > From: Mike Kienenberger [mailto:mkienenb@gmail.com]
> > Sent: Tuesday, October 23, 2007 6:01 PM
> > To: MyFaces Discussion
> > Subject: Re: <t:dataTable> not coming up
> >
> > I've never used a ResultSet as a backing model, so I'm not sure how 
> > it
>
> > should behave.
> >
> > Looking at the source for javax.faces.model.ResultSetDataModel, it 
> > looks like each row data object is a Map, so #{mapper} would be of 
> > type Map, and #{mapper.managerName}" would be the same as fetching 
> > the
>
> > key for 'managerName' from the map.  Furthermore, it looks like the
> > keys are the column names of the database tables.   Are you sure you
> > have a "managerName" database column name?
> >
> > Also, the test you did before doesn't prove that there's anything in

> > the ResultSet, only that the ResultSet exists.
> >
> > Maybe you can try putting a breakpoint or debugging statement in 
> > your
> > selectMappingBean.getMappings() method to test if there's at least 
> > one
>
> > row in the ResultSet.
> >
> > Also, I'm not sure what facet name="one" is supposed to do, but I'm 
> > pretty sure that t:column doesn't recognize "one" as a valid facet.
> > You probably want "header" instead.
> >
> >
> > On 10/23/07, Palat, Anil <ap...@corbincapital.com> wrote:
> > >  The getter method is definitely getting called. I tried what Mike

> > > had
> >
> > > suggested
> > >
> > > > <t:outputText value="Tomahawk table"/> <t:outputText 
> > > > value="#{selectMappingBean.mappings}"/>
> > >
> > > & Iam getting
> > >
> > > Tomahawk table oracle.jdbc.driver.ScrollableResultSet@197d20c
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: Andrew Robinson [mailto:andrew.rw.robinson@gmail.com]
> > > Sent: Tuesday, October 23, 2007 5:16 PM
> > > To: MyFaces Discussion
> > > Subject: Re: <t:dataTable> not coming up
> > >
> > > is the getter method being called for the data table model?
> > >
> > > if so, which phases is it being called for?
> > >
> > > anything interesting in the log file?
> > >
> > > have you completely removed all RI jar files from both your web 
> > > application WAR and from the container (if applicable)?
> > >
> > > are there any other JSF jars in the class path? (like an old 
> > > myfaces-all.jar for example)
> > >
> > > On 10/23/07, Palat, Anil <ap...@corbincapital.com> wrote:
> > > > Thanks Sushama & Mike
> > > > I think it's a different issue & nothing to do with managed bean

> > > > or incoming data list .
> > > > The reason being the same code works fine with JSF RI in the 
> > > > same environment. Also its just a part of an existing 
> > > > application, hence the managed beans are well established.
> > > >
> > > > To give you some more info, Iam using Tomahawk 1.1.6
> > > >
> > > > Any thoughts?
> > > >
> > > > -----Original Message-----
> > > > From: Mike Kienenberger [mailto:mkienenb@gmail.com]
> > > > Sent: Tuesday, October 23, 2007 4:23 PM
> > > > To: MyFaces Discussion
> > > > Subject: Re: <t:dataTable> not coming up
> > > >
> > > > Are you sure that #{selectMappingBean.mappings} is non-empty at 
> > > > this
> >
> > > > point?
> > > >
> > > > Try
> > > >
> > > > <t:outputText value="Tomahawk table"/> <t:outputText 
> > > > value="#{selectMappingBean.mappings}"/>
> > > >  <t:dataTable var="mapper" 
> > > > value="#{selectMappingBean.mappings}">
> > > > [...]
> > > >
> > > >
> > > > On 10/23/07, Palat, Anil <ap...@corbincapital.com> wrote:
> > > > >
> > > > >
> > > > > Hi,
> > > > >
> > > > > Iam working with tomcat 5.0.28, Myfaces 1.1.5 & JDK1.4.2_14
> > > > >
> > > > > When I run the following JSP Iam not getting the datatable 
> > > > > displayed
> > >
> > > > > though the text "Tomahawk table" is displayed. Please let me 
> > > > > know whether Iam missing anything.
> > > > > Is it due to any version incompatibilities?
> > > > >
> > > > > <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%> 
> > > > > <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%> <%@ 
> > > > > taglib uri="http://myfaces.apache.org/tomahawk"
> > > > > prefix="t"%>
> > > > >
> > > > >    <f:view>
> > > > >        <t:outputText value="Tomahawk table"/>
> > > > >        <t:dataTable var="mapper"
> > > > value="#{selectMappingBean.mappings}">
> > > > >            <h:column>
> > > > >                <f:facet name="one">
> > > > >                    <t:outputText value="Manager Name"/>
> > > > >                </f:facet>
> > > > >                <t:outputText value="#{mapper.managerName}"/>
> > > > >            </h:column>
> > > > >        </t:dataTable>
> > > > >    </f:view>
> > > > >
> > > > >  thanks
> > > >
> > >
> >
>

Re: not coming up

Posted by Mike Kienenberger <mk...@gmail.com>.
I am assuming that your application works with JSF RI + h:dataTable.

If you see the problem with MyFaces Core + h:dataTable, report it here:

http://issues.apache.org/jira/browse/MYFACES

If you do not see the problem with MyFaces Core + h:dataTable, but do
see it with MyFaces Tomahawk + t:dataTable, report it here:

http://issues.apache.org/jira/browse/TOMAHAWK

It's important to know where the problem lies since t:dataTable
inherits from h:dataTable.

I suspect it might be difficult to do so, but if you could provide a
simple example, that'd be helpful.   Maybe you could create a custom
ResultSet implementation and populate it with static data showing the
situation you're encountering?


On 10/24/07, Palat, Anil <ap...@corbincapital.com> wrote:
>
> Since my application has limited database access, I thought not to bring
> any ORM like hibernate instead use bit of JDBC.
> Also we are using javax.faces.component.UIData & its getRowData() method
> to map the table row between UI & managedbean
>
> I don't know to which JIRA I should report this. Kindly help
> -----Original Message-----
> From: Mike Kienenberger [mailto:mkienenb@gmail.com]
> Sent: Wednesday, October 24, 2007 10:20 AM
> To: MyFaces Discussion
> Subject: Re: <t:dataTable> not coming up
>
> If it worked in Sun JSF RI and doesn't work in MyFaces (of the same
> version -- 1.1 vs 1.1 and 1.2 vs 1.2, not 1.1 vs 1.2), please open a
> JIRA issue.   It should work in both places.
>
> I don't know how many people really use ResultSets directly with
> UIData components.   I know that I never do this as I always work with
> an ORM rather than JDBC.   So it's possible that the ResultSet model
> code hasn't been as well tested as other models.
>
> On 10/24/07, Palat, Anil <ap...@corbincapital.com> wrote:
> > Thanks Mike, I changed the model from ResultSet to a custom java bean.
> > It works.
> > I was expecting the code which worked in Sun JSF RI to work in My
> > faces+tomahawk. I still don't know why
> >
> > I had to make some code changes to incorporate my custom bean. I think
>
> > ResultSet maaping doesnot work with tomahawk
> >
> > -----Original Message-----
> > From: Mike Kienenberger [mailto:mkienenb@gmail.com]
> > Sent: Tuesday, October 23, 2007 6:01 PM
> > To: MyFaces Discussion
> > Subject: Re: <t:dataTable> not coming up
> >
> > I've never used a ResultSet as a backing model, so I'm not sure how it
>
> > should behave.
> >
> > Looking at the source for javax.faces.model.ResultSetDataModel, it
> > looks like each row data object is a Map, so #{mapper} would be of
> > type Map, and #{mapper.managerName}" would be the same as fetching the
>
> > key for 'managerName' from the map.  Furthermore, it looks like the
> > keys are the column names of the database tables.   Are you sure you
> > have a "managerName" database column name?
> >
> > Also, the test you did before doesn't prove that there's anything in
> > the ResultSet, only that the ResultSet exists.
> >
> > Maybe you can try putting a breakpoint or debugging statement in your
> > selectMappingBean.getMappings() method to test if there's at least one
>
> > row in the ResultSet.
> >
> > Also, I'm not sure what facet name="one" is supposed to do, but I'm
> > pretty sure that t:column doesn't recognize "one" as a valid facet.
> > You probably want "header" instead.
> >
> >
> > On 10/23/07, Palat, Anil <ap...@corbincapital.com> wrote:
> > >  The getter method is definitely getting called. I tried what Mike
> > > had
> >
> > > suggested
> > >
> > > > <t:outputText value="Tomahawk table"/> <t:outputText
> > > > value="#{selectMappingBean.mappings}"/>
> > >
> > > & Iam getting
> > >
> > > Tomahawk table oracle.jdbc.driver.ScrollableResultSet@197d20c
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: Andrew Robinson [mailto:andrew.rw.robinson@gmail.com]
> > > Sent: Tuesday, October 23, 2007 5:16 PM
> > > To: MyFaces Discussion
> > > Subject: Re: <t:dataTable> not coming up
> > >
> > > is the getter method being called for the data table model?
> > >
> > > if so, which phases is it being called for?
> > >
> > > anything interesting in the log file?
> > >
> > > have you completely removed all RI jar files from both your web
> > > application WAR and from the container (if applicable)?
> > >
> > > are there any other JSF jars in the class path? (like an old
> > > myfaces-all.jar for example)
> > >
> > > On 10/23/07, Palat, Anil <ap...@corbincapital.com> wrote:
> > > > Thanks Sushama & Mike
> > > > I think it's a different issue & nothing to do with managed bean
> > > > or incoming data list .
> > > > The reason being the same code works fine with JSF RI in the same
> > > > environment. Also its just a part of an existing application,
> > > > hence the managed beans are well established.
> > > >
> > > > To give you some more info, Iam using Tomahawk 1.1.6
> > > >
> > > > Any thoughts?
> > > >
> > > > -----Original Message-----
> > > > From: Mike Kienenberger [mailto:mkienenb@gmail.com]
> > > > Sent: Tuesday, October 23, 2007 4:23 PM
> > > > To: MyFaces Discussion
> > > > Subject: Re: <t:dataTable> not coming up
> > > >
> > > > Are you sure that #{selectMappingBean.mappings} is non-empty at
> > > > this
> >
> > > > point?
> > > >
> > > > Try
> > > >
> > > > <t:outputText value="Tomahawk table"/> <t:outputText
> > > > value="#{selectMappingBean.mappings}"/>
> > > >  <t:dataTable var="mapper" value="#{selectMappingBean.mappings}">
> > > > [...]
> > > >
> > > >
> > > > On 10/23/07, Palat, Anil <ap...@corbincapital.com> wrote:
> > > > >
> > > > >
> > > > > Hi,
> > > > >
> > > > > Iam working with tomcat 5.0.28, Myfaces 1.1.5 & JDK1.4.2_14
> > > > >
> > > > > When I run the following JSP Iam not getting the datatable
> > > > > displayed
> > >
> > > > > though the text "Tomahawk table" is displayed. Please let me
> > > > > know whether Iam missing anything.
> > > > > Is it due to any version incompatibilities?
> > > > >
> > > > > <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
> > > > > <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%> <%@
> > > > > taglib uri="http://myfaces.apache.org/tomahawk"
> > > > > prefix="t"%>
> > > > >
> > > > >    <f:view>
> > > > >        <t:outputText value="Tomahawk table"/>
> > > > >        <t:dataTable var="mapper"
> > > > value="#{selectMappingBean.mappings}">
> > > > >            <h:column>
> > > > >                <f:facet name="one">
> > > > >                    <t:outputText value="Manager Name"/>
> > > > >                </f:facet>
> > > > >                <t:outputText value="#{mapper.managerName}"/>
> > > > >            </h:column>
> > > > >        </t:dataTable>
> > > > >    </f:view>
> > > > >
> > > > >  thanks
> > > >
> > >
> >
>

RE: not coming up

Posted by "Palat, Anil" <ap...@corbincapital.com>.
 
Since my application has limited database access, I thought not to bring
any ORM like hibernate instead use bit of JDBC. 
Also we are using javax.faces.component.UIData & its getRowData() method
to map the table row between UI & managedbean

I don't know to which JIRA I should report this. Kindly help 
-----Original Message-----
From: Mike Kienenberger [mailto:mkienenb@gmail.com] 
Sent: Wednesday, October 24, 2007 10:20 AM
To: MyFaces Discussion
Subject: Re: <t:dataTable> not coming up

If it worked in Sun JSF RI and doesn't work in MyFaces (of the same
version -- 1.1 vs 1.1 and 1.2 vs 1.2, not 1.1 vs 1.2), please open a
JIRA issue.   It should work in both places.

I don't know how many people really use ResultSets directly with
UIData components.   I know that I never do this as I always work with
an ORM rather than JDBC.   So it's possible that the ResultSet model
code hasn't been as well tested as other models.

On 10/24/07, Palat, Anil <ap...@corbincapital.com> wrote:
> Thanks Mike, I changed the model from ResultSet to a custom java bean.
> It works.
> I was expecting the code which worked in Sun JSF RI to work in My
> faces+tomahawk. I still don't know why
>
> I had to make some code changes to incorporate my custom bean. I think

> ResultSet maaping doesnot work with tomahawk
>
> -----Original Message-----
> From: Mike Kienenberger [mailto:mkienenb@gmail.com]
> Sent: Tuesday, October 23, 2007 6:01 PM
> To: MyFaces Discussion
> Subject: Re: <t:dataTable> not coming up
>
> I've never used a ResultSet as a backing model, so I'm not sure how it

> should behave.
>
> Looking at the source for javax.faces.model.ResultSetDataModel, it 
> looks like each row data object is a Map, so #{mapper} would be of 
> type Map, and #{mapper.managerName}" would be the same as fetching the

> key for 'managerName' from the map.  Furthermore, it looks like the
> keys are the column names of the database tables.   Are you sure you
> have a "managerName" database column name?
>
> Also, the test you did before doesn't prove that there's anything in 
> the ResultSet, only that the ResultSet exists.
>
> Maybe you can try putting a breakpoint or debugging statement in your
> selectMappingBean.getMappings() method to test if there's at least one

> row in the ResultSet.
>
> Also, I'm not sure what facet name="one" is supposed to do, but I'm 
> pretty sure that t:column doesn't recognize "one" as a valid facet.
> You probably want "header" instead.
>
>
> On 10/23/07, Palat, Anil <ap...@corbincapital.com> wrote:
> >  The getter method is definitely getting called. I tried what Mike 
> > had
>
> > suggested
> >
> > > <t:outputText value="Tomahawk table"/> <t:outputText 
> > > value="#{selectMappingBean.mappings}"/>
> >
> > & Iam getting
> >
> > Tomahawk table oracle.jdbc.driver.ScrollableResultSet@197d20c
> >
> >
> >
> > -----Original Message-----
> > From: Andrew Robinson [mailto:andrew.rw.robinson@gmail.com]
> > Sent: Tuesday, October 23, 2007 5:16 PM
> > To: MyFaces Discussion
> > Subject: Re: <t:dataTable> not coming up
> >
> > is the getter method being called for the data table model?
> >
> > if so, which phases is it being called for?
> >
> > anything interesting in the log file?
> >
> > have you completely removed all RI jar files from both your web 
> > application WAR and from the container (if applicable)?
> >
> > are there any other JSF jars in the class path? (like an old 
> > myfaces-all.jar for example)
> >
> > On 10/23/07, Palat, Anil <ap...@corbincapital.com> wrote:
> > > Thanks Sushama & Mike
> > > I think it's a different issue & nothing to do with managed bean 
> > > or incoming data list .
> > > The reason being the same code works fine with JSF RI in the same 
> > > environment. Also its just a part of an existing application, 
> > > hence the managed beans are well established.
> > >
> > > To give you some more info, Iam using Tomahawk 1.1.6
> > >
> > > Any thoughts?
> > >
> > > -----Original Message-----
> > > From: Mike Kienenberger [mailto:mkienenb@gmail.com]
> > > Sent: Tuesday, October 23, 2007 4:23 PM
> > > To: MyFaces Discussion
> > > Subject: Re: <t:dataTable> not coming up
> > >
> > > Are you sure that #{selectMappingBean.mappings} is non-empty at 
> > > this
>
> > > point?
> > >
> > > Try
> > >
> > > <t:outputText value="Tomahawk table"/> <t:outputText 
> > > value="#{selectMappingBean.mappings}"/>
> > >  <t:dataTable var="mapper" value="#{selectMappingBean.mappings}">
> > > [...]
> > >
> > >
> > > On 10/23/07, Palat, Anil <ap...@corbincapital.com> wrote:
> > > >
> > > >
> > > > Hi,
> > > >
> > > > Iam working with tomcat 5.0.28, Myfaces 1.1.5 & JDK1.4.2_14
> > > >
> > > > When I run the following JSP Iam not getting the datatable 
> > > > displayed
> >
> > > > though the text "Tomahawk table" is displayed. Please let me 
> > > > know whether Iam missing anything.
> > > > Is it due to any version incompatibilities?
> > > >
> > > > <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%> 
> > > > <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%> <%@ 
> > > > taglib uri="http://myfaces.apache.org/tomahawk"
> > > > prefix="t"%>
> > > >
> > > >    <f:view>
> > > >        <t:outputText value="Tomahawk table"/>
> > > >        <t:dataTable var="mapper"
> > > value="#{selectMappingBean.mappings}">
> > > >            <h:column>
> > > >                <f:facet name="one">
> > > >                    <t:outputText value="Manager Name"/>
> > > >                </f:facet>
> > > >                <t:outputText value="#{mapper.managerName}"/>
> > > >            </h:column>
> > > >        </t:dataTable>
> > > >    </f:view>
> > > >
> > > >  thanks
> > >
> >
>

Re: not coming up

Posted by Mike Kienenberger <mk...@gmail.com>.
If it worked in Sun JSF RI and doesn't work in MyFaces (of the same
version -- 1.1 vs 1.1 and 1.2 vs 1.2, not 1.1 vs 1.2), please open a
JIRA issue.   It should work in both places.

I don't know how many people really use ResultSets directly with
UIData components.   I know that I never do this as I always work with
an ORM rather than JDBC.   So it's possible that the ResultSet model
code hasn't been as well tested as other models.

On 10/24/07, Palat, Anil <ap...@corbincapital.com> wrote:
> Thanks Mike, I changed the model from ResultSet to a custom java bean.
> It works.
> I was expecting the code which worked in Sun JSF RI to work in My
> faces+tomahawk. I still don't know why
>
> I had to make some code changes to incorporate my custom bean. I think
> ResultSet maaping doesnot work with tomahawk
>
> -----Original Message-----
> From: Mike Kienenberger [mailto:mkienenb@gmail.com]
> Sent: Tuesday, October 23, 2007 6:01 PM
> To: MyFaces Discussion
> Subject: Re: <t:dataTable> not coming up
>
> I've never used a ResultSet as a backing model, so I'm not sure how it
> should behave.
>
> Looking at the source for javax.faces.model.ResultSetDataModel, it looks
> like each row data object is a Map, so #{mapper} would be of type Map,
> and #{mapper.managerName}" would be the same as fetching the key for
> 'managerName' from the map.  Furthermore, it looks like the
> keys are the column names of the database tables.   Are you sure you
> have a "managerName" database column name?
>
> Also, the test you did before doesn't prove that there's anything in the
> ResultSet, only that the ResultSet exists.
>
> Maybe you can try putting a breakpoint or debugging statement in your
> selectMappingBean.getMappings() method to test if there's at least one
> row in the ResultSet.
>
> Also, I'm not sure what facet name="one" is supposed to do, but I'm
> pretty sure that t:column doesn't recognize "one" as a valid facet.
> You probably want "header" instead.
>
>
> On 10/23/07, Palat, Anil <ap...@corbincapital.com> wrote:
> >  The getter method is definitely getting called. I tried what Mike had
>
> > suggested
> >
> > > <t:outputText value="Tomahawk table"/> <t:outputText
> > > value="#{selectMappingBean.mappings}"/>
> >
> > & Iam getting
> >
> > Tomahawk table oracle.jdbc.driver.ScrollableResultSet@197d20c
> >
> >
> >
> > -----Original Message-----
> > From: Andrew Robinson [mailto:andrew.rw.robinson@gmail.com]
> > Sent: Tuesday, October 23, 2007 5:16 PM
> > To: MyFaces Discussion
> > Subject: Re: <t:dataTable> not coming up
> >
> > is the getter method being called for the data table model?
> >
> > if so, which phases is it being called for?
> >
> > anything interesting in the log file?
> >
> > have you completely removed all RI jar files from both your web
> > application WAR and from the container (if applicable)?
> >
> > are there any other JSF jars in the class path? (like an old
> > myfaces-all.jar for example)
> >
> > On 10/23/07, Palat, Anil <ap...@corbincapital.com> wrote:
> > > Thanks Sushama & Mike
> > > I think it's a different issue & nothing to do with managed bean or
> > > incoming data list .
> > > The reason being the same code works fine with JSF RI in the same
> > > environment. Also its just a part of an existing application, hence
> > > the managed beans are well established.
> > >
> > > To give you some more info, Iam using Tomahawk 1.1.6
> > >
> > > Any thoughts?
> > >
> > > -----Original Message-----
> > > From: Mike Kienenberger [mailto:mkienenb@gmail.com]
> > > Sent: Tuesday, October 23, 2007 4:23 PM
> > > To: MyFaces Discussion
> > > Subject: Re: <t:dataTable> not coming up
> > >
> > > Are you sure that #{selectMappingBean.mappings} is non-empty at this
>
> > > point?
> > >
> > > Try
> > >
> > > <t:outputText value="Tomahawk table"/> <t:outputText
> > > value="#{selectMappingBean.mappings}"/>
> > >  <t:dataTable var="mapper" value="#{selectMappingBean.mappings}">
> > > [...]
> > >
> > >
> > > On 10/23/07, Palat, Anil <ap...@corbincapital.com> wrote:
> > > >
> > > >
> > > > Hi,
> > > >
> > > > Iam working with tomcat 5.0.28, Myfaces 1.1.5 & JDK1.4.2_14
> > > >
> > > > When I run the following JSP Iam not getting the datatable
> > > > displayed
> >
> > > > though the text "Tomahawk table" is displayed. Please let me know
> > > > whether Iam missing anything.
> > > > Is it due to any version incompatibilities?
> > > >
> > > > <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
> > > > <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%> <%@
> > > > taglib uri="http://myfaces.apache.org/tomahawk"
> > > > prefix="t"%>
> > > >
> > > >    <f:view>
> > > >        <t:outputText value="Tomahawk table"/>
> > > >        <t:dataTable var="mapper"
> > > value="#{selectMappingBean.mappings}">
> > > >            <h:column>
> > > >                <f:facet name="one">
> > > >                    <t:outputText value="Manager Name"/>
> > > >                </f:facet>
> > > >                <t:outputText value="#{mapper.managerName}"/>
> > > >            </h:column>
> > > >        </t:dataTable>
> > > >    </f:view>
> > > >
> > > >  thanks
> > >
> >
>

RE: not coming up

Posted by "Palat, Anil" <ap...@corbincapital.com>.
Thanks Mike, I changed the model from ResultSet to a custom java bean.
It works.
I was expecting the code which worked in Sun JSF RI to work in My
faces+tomahawk. I still don't know why 

I had to make some code changes to incorporate my custom bean. I think
ResultSet maaping doesnot work with tomahawk

-----Original Message-----
From: Mike Kienenberger [mailto:mkienenb@gmail.com] 
Sent: Tuesday, October 23, 2007 6:01 PM
To: MyFaces Discussion
Subject: Re: <t:dataTable> not coming up

I've never used a ResultSet as a backing model, so I'm not sure how it
should behave.

Looking at the source for javax.faces.model.ResultSetDataModel, it looks
like each row data object is a Map, so #{mapper} would be of type Map,
and #{mapper.managerName}" would be the same as fetching the key for
'managerName' from the map.  Furthermore, it looks like the
keys are the column names of the database tables.   Are you sure you
have a "managerName" database column name?

Also, the test you did before doesn't prove that there's anything in the
ResultSet, only that the ResultSet exists.

Maybe you can try putting a breakpoint or debugging statement in your
selectMappingBean.getMappings() method to test if there's at least one
row in the ResultSet.

Also, I'm not sure what facet name="one" is supposed to do, but I'm
pretty sure that t:column doesn't recognize "one" as a valid facet.
You probably want "header" instead.


On 10/23/07, Palat, Anil <ap...@corbincapital.com> wrote:
>  The getter method is definitely getting called. I tried what Mike had

> suggested
>
> > <t:outputText value="Tomahawk table"/> <t:outputText 
> > value="#{selectMappingBean.mappings}"/>
>
> & Iam getting
>
> Tomahawk table oracle.jdbc.driver.ScrollableResultSet@197d20c
>
>
>
> -----Original Message-----
> From: Andrew Robinson [mailto:andrew.rw.robinson@gmail.com]
> Sent: Tuesday, October 23, 2007 5:16 PM
> To: MyFaces Discussion
> Subject: Re: <t:dataTable> not coming up
>
> is the getter method being called for the data table model?
>
> if so, which phases is it being called for?
>
> anything interesting in the log file?
>
> have you completely removed all RI jar files from both your web 
> application WAR and from the container (if applicable)?
>
> are there any other JSF jars in the class path? (like an old 
> myfaces-all.jar for example)
>
> On 10/23/07, Palat, Anil <ap...@corbincapital.com> wrote:
> > Thanks Sushama & Mike
> > I think it's a different issue & nothing to do with managed bean or 
> > incoming data list .
> > The reason being the same code works fine with JSF RI in the same 
> > environment. Also its just a part of an existing application, hence 
> > the managed beans are well established.
> >
> > To give you some more info, Iam using Tomahawk 1.1.6
> >
> > Any thoughts?
> >
> > -----Original Message-----
> > From: Mike Kienenberger [mailto:mkienenb@gmail.com]
> > Sent: Tuesday, October 23, 2007 4:23 PM
> > To: MyFaces Discussion
> > Subject: Re: <t:dataTable> not coming up
> >
> > Are you sure that #{selectMappingBean.mappings} is non-empty at this

> > point?
> >
> > Try
> >
> > <t:outputText value="Tomahawk table"/> <t:outputText 
> > value="#{selectMappingBean.mappings}"/>
> >  <t:dataTable var="mapper" value="#{selectMappingBean.mappings}">
> > [...]
> >
> >
> > On 10/23/07, Palat, Anil <ap...@corbincapital.com> wrote:
> > >
> > >
> > > Hi,
> > >
> > > Iam working with tomcat 5.0.28, Myfaces 1.1.5 & JDK1.4.2_14
> > >
> > > When I run the following JSP Iam not getting the datatable 
> > > displayed
>
> > > though the text "Tomahawk table" is displayed. Please let me know 
> > > whether Iam missing anything.
> > > Is it due to any version incompatibilities?
> > >
> > > <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%> 
> > > <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%> <%@ 
> > > taglib uri="http://myfaces.apache.org/tomahawk"
> > > prefix="t"%>
> > >
> > >    <f:view>
> > >        <t:outputText value="Tomahawk table"/>
> > >        <t:dataTable var="mapper"
> > value="#{selectMappingBean.mappings}">
> > >            <h:column>
> > >                <f:facet name="one">
> > >                    <t:outputText value="Manager Name"/>
> > >                </f:facet>
> > >                <t:outputText value="#{mapper.managerName}"/>
> > >            </h:column>
> > >        </t:dataTable>
> > >    </f:view>
> > >
> > >  thanks
> >
>

Re: not coming up

Posted by Mike Kienenberger <mk...@gmail.com>.
I've never used a ResultSet as a backing model, so I'm not sure how it
should behave.

Looking at the source for javax.faces.model.ResultSetDataModel, it
looks like each row data object is a Map, so #{mapper} would be of
type Map, and #{mapper.managerName}" would be the same as fetching the
key for 'managerName' from the map.  Furthermore, it looks like the
keys are the column names of the database tables.   Are you sure you
have a "managerName" database column name?

Also, the test you did before doesn't prove that there's anything in
the ResultSet, only that the ResultSet exists.

Maybe you can try putting a breakpoint or debugging statement in your
selectMappingBean.getMappings() method to test if there's at least one
row in the ResultSet.

Also, I'm not sure what facet name="one" is supposed to do, but I'm
pretty sure that t:column doesn't recognize "one" as a valid facet.
You probably want "header" instead.


On 10/23/07, Palat, Anil <ap...@corbincapital.com> wrote:
>  The getter method is definitely getting called. I tried what Mike had
> suggested
>
> > <t:outputText value="Tomahawk table"/> <t:outputText
> > value="#{selectMappingBean.mappings}"/>
>
> & Iam getting
>
> Tomahawk table oracle.jdbc.driver.ScrollableResultSet@197d20c
>
>
>
> -----Original Message-----
> From: Andrew Robinson [mailto:andrew.rw.robinson@gmail.com]
> Sent: Tuesday, October 23, 2007 5:16 PM
> To: MyFaces Discussion
> Subject: Re: <t:dataTable> not coming up
>
> is the getter method being called for the data table model?
>
> if so, which phases is it being called for?
>
> anything interesting in the log file?
>
> have you completely removed all RI jar files from both your web
> application WAR and from the container (if applicable)?
>
> are there any other JSF jars in the class path? (like an old
> myfaces-all.jar for example)
>
> On 10/23/07, Palat, Anil <ap...@corbincapital.com> wrote:
> > Thanks Sushama & Mike
> > I think it's a different issue & nothing to do with managed bean or
> > incoming data list .
> > The reason being the same code works fine with JSF RI in the same
> > environment. Also its just a part of an existing application, hence
> > the managed beans are well established.
> >
> > To give you some more info, Iam using Tomahawk 1.1.6
> >
> > Any thoughts?
> >
> > -----Original Message-----
> > From: Mike Kienenberger [mailto:mkienenb@gmail.com]
> > Sent: Tuesday, October 23, 2007 4:23 PM
> > To: MyFaces Discussion
> > Subject: Re: <t:dataTable> not coming up
> >
> > Are you sure that #{selectMappingBean.mappings} is non-empty at this
> > point?
> >
> > Try
> >
> > <t:outputText value="Tomahawk table"/> <t:outputText
> > value="#{selectMappingBean.mappings}"/>
> >  <t:dataTable var="mapper" value="#{selectMappingBean.mappings}">
> > [...]
> >
> >
> > On 10/23/07, Palat, Anil <ap...@corbincapital.com> wrote:
> > >
> > >
> > > Hi,
> > >
> > > Iam working with tomcat 5.0.28, Myfaces 1.1.5 & JDK1.4.2_14
> > >
> > > When I run the following JSP Iam not getting the datatable displayed
>
> > > though the text "Tomahawk table" is displayed. Please let me know
> > > whether Iam missing anything.
> > > Is it due to any version incompatibilities?
> > >
> > > <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%> <%@taglib
> > > uri="http://java.sun.com/jsf/html" prefix="h"%> <%@ taglib
> > > uri="http://myfaces.apache.org/tomahawk"
> > > prefix="t"%>
> > >
> > >    <f:view>
> > >        <t:outputText value="Tomahawk table"/>
> > >        <t:dataTable var="mapper"
> > value="#{selectMappingBean.mappings}">
> > >            <h:column>
> > >                <f:facet name="one">
> > >                    <t:outputText value="Manager Name"/>
> > >                </f:facet>
> > >                <t:outputText value="#{mapper.managerName}"/>
> > >            </h:column>
> > >        </t:dataTable>
> > >    </f:view>
> > >
> > >  thanks
> >
>

RE: not coming up

Posted by "Palat, Anil" <ap...@corbincapital.com>.
 The getter method is definitely getting called. I tried what Mike had
suggested 

> <t:outputText value="Tomahawk table"/> <t:outputText 
> value="#{selectMappingBean.mappings}"/>

& Iam getting

Tomahawk table oracle.jdbc.driver.ScrollableResultSet@197d20c 



-----Original Message-----
From: Andrew Robinson [mailto:andrew.rw.robinson@gmail.com] 
Sent: Tuesday, October 23, 2007 5:16 PM
To: MyFaces Discussion
Subject: Re: <t:dataTable> not coming up

is the getter method being called for the data table model?

if so, which phases is it being called for?

anything interesting in the log file?

have you completely removed all RI jar files from both your web
application WAR and from the container (if applicable)?

are there any other JSF jars in the class path? (like an old
myfaces-all.jar for example)

On 10/23/07, Palat, Anil <ap...@corbincapital.com> wrote:
> Thanks Sushama & Mike
> I think it's a different issue & nothing to do with managed bean or 
> incoming data list .
> The reason being the same code works fine with JSF RI in the same 
> environment. Also its just a part of an existing application, hence 
> the managed beans are well established.
>
> To give you some more info, Iam using Tomahawk 1.1.6
>
> Any thoughts?
>
> -----Original Message-----
> From: Mike Kienenberger [mailto:mkienenb@gmail.com]
> Sent: Tuesday, October 23, 2007 4:23 PM
> To: MyFaces Discussion
> Subject: Re: <t:dataTable> not coming up
>
> Are you sure that #{selectMappingBean.mappings} is non-empty at this 
> point?
>
> Try
>
> <t:outputText value="Tomahawk table"/> <t:outputText 
> value="#{selectMappingBean.mappings}"/>
>  <t:dataTable var="mapper" value="#{selectMappingBean.mappings}">
> [...]
>
>
> On 10/23/07, Palat, Anil <ap...@corbincapital.com> wrote:
> >
> >
> > Hi,
> >
> > Iam working with tomcat 5.0.28, Myfaces 1.1.5 & JDK1.4.2_14
> >
> > When I run the following JSP Iam not getting the datatable displayed

> > though the text "Tomahawk table" is displayed. Please let me know 
> > whether Iam missing anything.
> > Is it due to any version incompatibilities?
> >
> > <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%> <%@taglib 
> > uri="http://java.sun.com/jsf/html" prefix="h"%> <%@ taglib 
> > uri="http://myfaces.apache.org/tomahawk"
> > prefix="t"%>
> >
> >    <f:view>
> >        <t:outputText value="Tomahawk table"/>
> >        <t:dataTable var="mapper"
> value="#{selectMappingBean.mappings}">
> >            <h:column>
> >                <f:facet name="one">
> >                    <t:outputText value="Manager Name"/>
> >                </f:facet>
> >                <t:outputText value="#{mapper.managerName}"/>
> >            </h:column>
> >        </t:dataTable>
> >    </f:view>
> >
> >  thanks
>

RE: not coming up

Posted by "Palat, Anil" <ap...@corbincapital.com>.
I only have the following jars in my app lib. Ofcourse there are default
libraries in /tomcat/server/lib

classes12_g.jar
commons-beanutils-1.7.0.jar
commons-codec-1.3.jar
commons-collections-3.1.jar 
commons-digester-1.6.jar
commons-lang-2.1.jar
commons-logging-1.0.4.jar
jstl-1.1.0.jar
myfaces-api-1.1.5.jar
myfaces-impl-1.1.5.jar
tomahawk-1.1.6.jar

Nothing serious in the log file, but please confirm as given below

Oct 23, 2007 5:27:24 PM
org.apache.myfaces.shared_impl.taglib.UIComponentBodyTag
Base doEndTag
WARNING: Component with id '_idJsp1:_idJsp4'
(org.apache.myfaces.taglib.html.Htm
lPanelGridTag tag) and path : {Component-Path : [Class:
javax.faces.component.UI
ViewRoot,ViewId: /web/login.jsp][Class:
javax.faces.component.html.HtmlForm,Id:
_idJsp1][Class: javax.faces.component.html.HtmlPanelGrid,Id:
_idJsp2][Class: jav
ax.faces.component.html.HtmlPanelGrid,Id: _idJsp4]}renders it's
children, but ha
s embedded JSP or HTML code. Use the <f:verbatim> tag for nested HTML.
For comme
nts use <%/* */%> style JSP comments instead of <!-- --> style HTML
comments.
 BodyContent:
<!--placeholder-->



                     <!--placeholder-->
Oct 23, 2007 5:27:24 PM
org.apache.myfaces.shared_impl.config.MyfacesConfig getB
ooleanInitParameter
INFO: No context init parameter 'org.apache.myfaces.PRETTY_HTML' found,
using de
fault value true
Oct 23, 2007 5:27:24 PM
org.apache.myfaces.shared_impl.config.MyfacesConfig getB
ooleanInitParameter
INFO: No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT'
found, usi
ng default value true
Oct 23, 2007 5:27:24 PM
org.apache.myfaces.shared_impl.config.MyfacesConfig getB
ooleanInitParameter
INFO: No context init parameter
'org.apache.myfaces.READONLY_AS_DISABLED_FOR_SEL
ECTS' found, using default value true
Oct 23, 2007 5:27:24 PM
org.apache.myfaces.shared_impl.config.MyfacesConfig getB
ooleanInitParameter
INFO: No context init parameter 'org.apache.myfaces.DETECT_JAVASCRIPT'
found, us
ing default value false
Oct 23, 2007 5:27:24 PM
org.apache.myfaces.shared_impl.config.MyfacesConfig getB
ooleanInitParameter
INFO: No context init parameter 'org.apache.myfaces.AUTO_SCROLL' found,
using de
fault value false
Oct 23, 2007 5:27:24 PM
org.apache.myfaces.shared_impl.config.MyfacesConfig getS
tringInitParameter
INFO: No context init parameter 'org.apache.myfaces.ADD_RESOURCE_CLASS'
found, u
sing default value
org.apache.myfaces.renderkit.html.util.DefaultAddResource
Oct 23, 2007 5:27:24 PM
org.apache.myfaces.shared_impl.config.MyfacesConfig getS
tringInitParameter
INFO: No context init parameter
'org.apache.myfaces.RESOURCE_VIRTUAL_PATH' found
, using default value /faces/myFacesExtensionResource
Oct 23, 2007 5:27:24 PM
org.apache.myfaces.shared_impl.config.MyfacesConfig getB
ooleanInitParameter
INFO: No context init parameter
'org.apache.myfaces.CHECK_EXTENSIONS_FILTER' fou
nd, using default value true
Oct 23, 2007 5:27:24 PM
org.apache.myfaces.shared_impl.config.MyfacesConfig getC
urrentInstance
INFO: Starting up Tomahawk on the MyFaces-JSF-Implementation
Oct 23, 2007 5:27:24 PM
org.apache.myfaces.shared_tomahawk.config.MyfacesConfig
getBooleanInitParameter
INFO: No context init parameter 'org.apache.myfaces.PRETTY_HTML' found,
using de
fault value true
Oct 23, 2007 5:27:24 PM
org.apache.myfaces.shared_tomahawk.config.MyfacesConfig
getBooleanInitParameter
INFO: No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT'
found, usi
ng default value true
Oct 23, 2007 5:27:24 PM
org.apache.myfaces.shared_tomahawk.config.MyfacesConfig
getBooleanInitParameter
INFO: No context init parameter
'org.apache.myfaces.READONLY_AS_DISABLED_FOR_SEL
ECTS' found, using default value true
Oct 23, 2007 5:27:24 PM
org.apache.myfaces.shared_tomahawk.config.MyfacesConfig
getBooleanInitParameter
INFO: No context init parameter 'org.apache.myfaces.DETECT_JAVASCRIPT'
found, us
ing default value false
Oct 23, 2007 5:27:24 PM
org.apache.myfaces.shared_tomahawk.config.MyfacesConfig
getBooleanInitParameter
INFO: No context init parameter 'org.apache.myfaces.AUTO_SCROLL' found,
using de
fault value false
Oct 23, 2007 5:27:24 PM
org.apache.myfaces.shared_tomahawk.config.MyfacesConfig
getStringInitParameter
INFO: No context init parameter 'org.apache.myfaces.ADD_RESOURCE_CLASS'
found, u
sing default value
org.apache.myfaces.renderkit.html.util.DefaultAddResource
Oct 23, 2007 5:27:24 PM
org.apache.myfaces.shared_tomahawk.config.MyfacesConfig
getStringInitParameter
INFO: No context init parameter
'org.apache.myfaces.RESOURCE_VIRTUAL_PATH' found
, using default value /faces/myFacesExtensionResource
Oct 23, 2007 5:27:24 PM
org.apache.myfaces.shared_tomahawk.config.MyfacesConfig
getBooleanInitParameter
INFO: No context init parameter
'org.apache.myfaces.CHECK_EXTENSIONS_FILTER' fou
nd, using default value true
Oct 23, 2007 5:27:24 PM
org.apache.myfaces.shared_tomahawk.config.MyfacesConfig
getCurrentInstance
INFO: Starting up Tomahawk on the MyFaces-JSF-Implementation
Oct 23, 2007 5:27:36 PM
org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRe
ndererBase renderChildren
WARNING: PanelGrid header:_idJsp4:header has not enough children. Child
count sh
ould be a multiple of the columns attribute.
Oct 23, 2007 5:27:36 PM
org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRe
ndererBase renderChildren
WARNING: PanelGrid header:_idJsp4:_idJsp5 has not enough children. Child
count s
hould be a multiple of the columns attribute.
Oct 23, 2007 5:27:37 PM
org.apache.myfaces.shared_impl.taglib.UIComponentBodyTag
Base doEndTag
WARNING: Component with id '_idJsp13:_idJsp14'
(org.apache.myfaces.taglib.html.H
tmlPanelGridTag tag) and path : {Component-Path : [Class:
javax.faces.component.
UIViewRoot,ViewId: /web/show_all.jsp][Class:
javax.faces.component.html.HtmlForm
,Id: _idJsp13][Class: javax.faces.component.html.HtmlPanelGrid,Id:
_idJsp14]}ren
ders it's children, but has embedded JSP or HTML code. Use the
<f:verbatim> tag
for nested HTML. For comments use <%/* */%> style JSP comments instead
of <!-- -
-> style HTML comments.
 BodyContent:
<h1>Show All Mappings</h1>
Oct 23, 2007 5:27:43 PM
org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRe
ndererBase renderChildren
WARNING: PanelGrid header:_idJsp4:header has not enough children. Child
count sh
ould be a multiple of the columns attribute.
Oct 23, 2007 5:27:43 PM
org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRe
ndererBase renderChildren
WARNING: PanelGrid header:_idJsp4:_idJsp5 has not enough children. Child
count s
hould be a multiple of the columns attribute.
Oct 23, 2007 5:27:43 PM
org.apache.myfaces.shared_impl.taglib.UIComponentBodyTag
Base doEndTag
WARNING: Component with id '_idJsp13:_idJsp14'
(org.apache.myfaces.taglib.html.H
tmlPanelGridTag tag) and path : {Component-Path : [Class:
javax.faces.component.
UIViewRoot,ViewId: /web/show_all.jsp][Class:
javax.faces.component.html.HtmlForm
,Id: _idJsp13][Class: javax.faces.component.html.HtmlPanelGrid,Id:
_idJsp14]}ren
ders it's children, but has embedded JSP or HTML code. Use the
<f:verbatim> tag
for nested HTML. For comments use <%/* */%> style JSP comments instead
of <!-- -
-> style HTML comments.
 BodyContent:
<h1>Show All Mappings</h1>

-----Original Message-----
From: Andrew Robinson [mailto:andrew.rw.robinson@gmail.com] 
Sent: Tuesday, October 23, 2007 5:16 PM
To: MyFaces Discussion
Subject: Re: <t:dataTable> not coming up

is the getter method being called for the data table model?

if so, which phases is it being called for?

anything interesting in the log file?

have you completely removed all RI jar files from both your web
application WAR and from the container (if applicable)?

are there any other JSF jars in the class path? (like an old
myfaces-all.jar for example)

On 10/23/07, Palat, Anil <ap...@corbincapital.com> wrote:
> Thanks Sushama & Mike
> I think it's a different issue & nothing to do with managed bean or 
> incoming data list .
> The reason being the same code works fine with JSF RI in the same 
> environment. Also its just a part of an existing application, hence 
> the managed beans are well established.
>
> To give you some more info, Iam using Tomahawk 1.1.6
>
> Any thoughts?
>
> -----Original Message-----
> From: Mike Kienenberger [mailto:mkienenb@gmail.com]
> Sent: Tuesday, October 23, 2007 4:23 PM
> To: MyFaces Discussion
> Subject: Re: <t:dataTable> not coming up
>
> Are you sure that #{selectMappingBean.mappings} is non-empty at this 
> point?
>
> Try
>
> <t:outputText value="Tomahawk table"/> <t:outputText 
> value="#{selectMappingBean.mappings}"/>
>  <t:dataTable var="mapper" value="#{selectMappingBean.mappings}">
> [...]
>
>
> On 10/23/07, Palat, Anil <ap...@corbincapital.com> wrote:
> >
> >
> > Hi,
> >
> > Iam working with tomcat 5.0.28, Myfaces 1.1.5 & JDK1.4.2_14
> >
> > When I run the following JSP Iam not getting the datatable displayed

> > though the text "Tomahawk table" is displayed. Please let me know 
> > whether Iam missing anything.
> > Is it due to any version incompatibilities?
> >
> > <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%> <%@taglib 
> > uri="http://java.sun.com/jsf/html" prefix="h"%> <%@ taglib 
> > uri="http://myfaces.apache.org/tomahawk"
> > prefix="t"%>
> >
> >    <f:view>
> >        <t:outputText value="Tomahawk table"/>
> >        <t:dataTable var="mapper"
> value="#{selectMappingBean.mappings}">
> >            <h:column>
> >                <f:facet name="one">
> >                    <t:outputText value="Manager Name"/>
> >                </f:facet>
> >                <t:outputText value="#{mapper.managerName}"/>
> >            </h:column>
> >        </t:dataTable>
> >    </f:view>
> >
> >  thanks
>

Re: not coming up

Posted by Andrew Robinson <an...@gmail.com>.
is the getter method being called for the data table model?

if so, which phases is it being called for?

anything interesting in the log file?

have you completely removed all RI jar files from both your web
application WAR and from the container (if applicable)?

are there any other JSF jars in the class path? (like an old
myfaces-all.jar for example)

On 10/23/07, Palat, Anil <ap...@corbincapital.com> wrote:
> Thanks Sushama & Mike
> I think it's a different issue & nothing to do with managed bean or
> incoming data list .
> The reason being the same code works fine with JSF RI in the same
> environment. Also its just a part of an existing application, hence the
> managed beans are well established.
>
> To give you some more info, Iam using Tomahawk 1.1.6
>
> Any thoughts?
>
> -----Original Message-----
> From: Mike Kienenberger [mailto:mkienenb@gmail.com]
> Sent: Tuesday, October 23, 2007 4:23 PM
> To: MyFaces Discussion
> Subject: Re: <t:dataTable> not coming up
>
> Are you sure that #{selectMappingBean.mappings} is non-empty at this
> point?
>
> Try
>
> <t:outputText value="Tomahawk table"/>
> <t:outputText value="#{selectMappingBean.mappings}"/>
>  <t:dataTable var="mapper" value="#{selectMappingBean.mappings}">
> [...]
>
>
> On 10/23/07, Palat, Anil <ap...@corbincapital.com> wrote:
> >
> >
> > Hi,
> >
> > Iam working with tomcat 5.0.28, Myfaces 1.1.5 & JDK1.4.2_14
> >
> > When I run the following JSP Iam not getting the datatable displayed
> > though the text "Tomahawk table" is displayed. Please let me know
> > whether Iam missing anything.
> > Is it due to any version incompatibilities?
> >
> > <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%> <%@taglib
> > uri="http://java.sun.com/jsf/html" prefix="h"%> <%@ taglib
> > uri="http://myfaces.apache.org/tomahawk"
> > prefix="t"%>
> >
> >    <f:view>
> >        <t:outputText value="Tomahawk table"/>
> >        <t:dataTable var="mapper"
> value="#{selectMappingBean.mappings}">
> >            <h:column>
> >                <f:facet name="one">
> >                    <t:outputText value="Manager Name"/>
> >                </f:facet>
> >                <t:outputText value="#{mapper.managerName}"/>
> >            </h:column>
> >        </t:dataTable>
> >    </f:view>
> >
> >  thanks
>

RE: not coming up

Posted by "Palat, Anil" <ap...@corbincapital.com>.
Thanks Sushama & Mike 
I think it's a different issue & nothing to do with managed bean or
incoming data list .
The reason being the same code works fine with JSF RI in the same
environment. Also its just a part of an existing application, hence the
managed beans are well established.

To give you some more info, Iam using Tomahawk 1.1.6

Any thoughts?  

-----Original Message-----
From: Mike Kienenberger [mailto:mkienenb@gmail.com] 
Sent: Tuesday, October 23, 2007 4:23 PM
To: MyFaces Discussion
Subject: Re: <t:dataTable> not coming up

Are you sure that #{selectMappingBean.mappings} is non-empty at this
point?

Try

<t:outputText value="Tomahawk table"/>
<t:outputText value="#{selectMappingBean.mappings}"/>
 <t:dataTable var="mapper" value="#{selectMappingBean.mappings}">
[...]


On 10/23/07, Palat, Anil <ap...@corbincapital.com> wrote:
>
>
> Hi,
>
> Iam working with tomcat 5.0.28, Myfaces 1.1.5 & JDK1.4.2_14
>
> When I run the following JSP Iam not getting the datatable displayed 
> though the text "Tomahawk table" is displayed. Please let me know 
> whether Iam missing anything.
> Is it due to any version incompatibilities?
>
> <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%> <%@taglib 
> uri="http://java.sun.com/jsf/html" prefix="h"%> <%@ taglib 
> uri="http://myfaces.apache.org/tomahawk"
> prefix="t"%>
>
>    <f:view>
>        <t:outputText value="Tomahawk table"/>
>        <t:dataTable var="mapper"
value="#{selectMappingBean.mappings}">
>            <h:column>
>                <f:facet name="one">
>                    <t:outputText value="Manager Name"/>
>                </f:facet>
>                <t:outputText value="#{mapper.managerName}"/>
>            </h:column>
>        </t:dataTable>
>    </f:view>
>
>  thanks