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 <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED]
>
>
>
> -----Original Message-----
> From: Andrew Robinson [mailto:[EMAIL PROTECTED]
> 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 <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]
> > 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 <[EMAIL PROTECTED]> 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?
> > >
> > > <[EMAIL PROTECTED] uri="http://java.sun.com/jsf/core"; prefix="f"%> 
> > > <[EMAIL PROTECTED]
> > > 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
> >
>

Reply via email to