You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Stephan K <st...@nexgo.de> on 2008/03/08 15:51:37 UTC
[trinidad] Problems with table/column sort and row banding
Hi
I've started converting the myfaces based program I have to trinidad.
I'm having problems with my former dataTable though. I would like to make
some columns sortable,
and keep the banding I had coded previously like this:
<table>
<tr>
<h:dataTable styleClass="tableStyle" rowClasses="white,grey"
value="#{taskBean.allTasks}" var="task" cellpadding="10" >
I changed this code to look like this but I don't get any banding!
<table>
<tr>
<tr:table summary="Tasks" rowBandingInterval="1"
value="#{taskBean.allTasks}" var="task" >
Also I tried to make several columns sortable but thats not working either,
e.g. dependsOn is a string.
<tr:column sortProperty="dependsOn" sortable="true">
<f:facet name="header"> <tr:outputText
value="#{messages.dependson}"/></f:facet>
<tr:outputText value="#{task.dependsOn}"></tr:outputText>
</tr:column>
Am I doing something wrong?
I presume I can mix in tr tags along with other tags e.g. f:form.
Also I'm not using jspx but jsp.
And I did not change my backing managed beans - so they don't use
CollectionModel.
Any help would be greatly appreciated!
Thanks.
Stephan
--
View this message in context: http://www.nabble.com/-trinidad--Problems-with-table-column-sort-and-row-banding-tp15913001p15913001.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: [trinidad] Problems with table/column sort and row banding
Posted by Matthias Wessendorf <ma...@apache.org>.
Hi,
On Fri, Mar 14, 2008 at 10:38 AM, Stephan K <st...@nexgo.de> wrote:
>
> Hi
>
> Well guys, it would have been helpfull if someone mentioned the jsp must
> include the tr:document tag.
or the trh:html, :head, :body
> Just one of those things a trinidad beginner stumbles on.
sorry, we really should add some sentences on that one in the web documentation.
Like "getting started"
-Matthias
>
>
>
> Stephan K wrote:
> >
> > Hi
> > I've started converting the myfaces based program I have to trinidad.
> > I'm having problems with my former dataTable though. I would like to make
> > some columns sortable,
> > and keep the banding I had coded previously like this:
> >
> > <table>
> > <tr>
> > <h:dataTable styleClass="tableStyle" rowClasses="white,grey"
> > value="#{taskBean.allTasks}" var="task" cellpadding="10" >
> >
> > I changed this code to look like this but I don't get any banding!
> >
> > <table>
> > <tr>
> > <tr:table summary="Tasks" rowBandingInterval="1"
> > value="#{taskBean.allTasks}" var="task" >
> >
> > Also I tried to make several columns sortable but thats not working
> > either, e.g. dependsOn is a string.
> >
> > <tr:column sortProperty="dependsOn" sortable="true">
> > <f:facet name="header"> <tr:outputText
> > value="#{messages.dependson}"/></f:facet>
> > <tr:outputText value="#{task.dependsOn}"></tr:outputText>
> > </tr:column>
> >
> > ...
> >
>
> --
> View this message in context: http://www.nabble.com/-trinidad--Problems-with-table-column-sort-and-row-banding-tp15913001p16047311.html
>
>
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>
--
Matthias Wessendorf
further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org
Re: [trinidad] Problems with table/column sort and row banding
Posted by Stephan K <st...@nexgo.de>.
Hi
Well guys, it would have been helpfull if someone mentioned the jsp must
include the tr:document tag.
Just one of those things a trinidad beginner stumbles on.
Stephan K wrote:
>
> Hi
> I've started converting the myfaces based program I have to trinidad.
> I'm having problems with my former dataTable though. I would like to make
> some columns sortable,
> and keep the banding I had coded previously like this:
>
> <table>
> <tr>
> <h:dataTable styleClass="tableStyle" rowClasses="white,grey"
> value="#{taskBean.allTasks}" var="task" cellpadding="10" >
>
> I changed this code to look like this but I don't get any banding!
>
> <table>
> <tr>
> <tr:table summary="Tasks" rowBandingInterval="1"
> value="#{taskBean.allTasks}" var="task" >
>
> Also I tried to make several columns sortable but thats not working
> either, e.g. dependsOn is a string.
>
> <tr:column sortProperty="dependsOn" sortable="true">
> <f:facet name="header"> <tr:outputText
> value="#{messages.dependson}"/></f:facet>
> <tr:outputText value="#{task.dependsOn}"></tr:outputText>
> </tr:column>
>
> ...
>
--
View this message in context: http://www.nabble.com/-trinidad--Problems-with-table-column-sort-and-row-banding-tp15913001p16047311.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.