Hello Helmut,

thank you for your reply. Yes, the was the bad side effect of copy and
paste... :-(

Attached is a sand box test about the sheet: I still cannot populate the
sheet.

What am I missing?

Thanks,
Giovanni

On Fri, Dec 12, 2008 at 1:33 PM, Helmut Swaczinna <[email protected]>wrote:

>  Hi,
>
> you're using a wrong variable name in the tc:out on the sheet column. It
> should be item, not channel.
>
> Regards
> Helmut
>
> ----- Original Message -----
> *From:* Giovanni De Stefano <[email protected]>
> *To:* [email protected]
> *Sent:* Friday, December 12, 2008 12:57 PM
> *Subject:* Re: [Tobago] Unable to populate Sheet
>
> Apparently I was not supposed to attach the jsp...it was filtered out by
> the mail server.
>
> Here it is:
>
>
> --------------------------------------------------------------------------------------------------------------------------------------------------------------
> <%@ taglib uri="http://myfaces.apache.org/tobago/component"; prefix="tc"%>
> <%@ taglib uri="http://myfaces.apache.org/tobago/extension"; prefix="tx"%>
> <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
>
> <f:view>
>     <tc:page width="800">
>         <tc:box label="Radio channel list">
>             <f:facet name="layout">
>                 <tc:gridLayout rows="*" />
>             </f:facet>
>             <f:facet name="toolBar">
>                 <tc:toolBar>
>                     <tc:toolBarCommand label="New"
> action="newChannel"></tc:toolBarCommand>
>                     <tc:toolBarCommand label="Edit"
> action="editChannel"></tc:toolBarCommand>
>                     <tc:toolBarCommand label="Delete"
> action="deleteChannel">
>                         <f:facet name="confirmation">
>                             <tc:out
>                                 value="Are you sure you want to delete the
> selected channel(s)?" />
>                         </f:facet>
>                     </tc:toolBarCommand>
>                 </tc:toolBar>
>             </f:facet>
>             <tc:sheet columns="*" value="#{listBean.items}" var="item"
>                 state="#{listBean.selectedItems}" showRowRange="left"
>                 showPageRange="right" showDirectLinks="center">
>                 <tc:column id="name" label="Name" sortable="true"
> rendered="true">
>                     <tc:out value="#{channel.name}" />
>                 </tc:column>
>             </tc:sheet>
>         </tc:box>
>     </tc:page>
> </f:view>
>
> --------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>
> On Fri, Dec 12, 2008 at 12:15 PM, Giovanni De Stefano <
> [email protected]> wrote:
>
>> Hello all,
>>
>> I have to admit I am a total noobie with MyFaces but I believe Tobago is a
>> very powerful framework.
>>
>> Having said this, I cannot populate a Sheet :-(
>>
>> Attached are the beans, the web.xml (tobago-config.xml is pretty
>> standard), and the JSP page that creates the Sheet.
>>
>> In faces-config I declare the beans:
>>
>> ...
>>     <managed-bean>
>>         <description>Item bean</description>
>>         <managed-bean-name>itemBean</managed-bean-name>
>>         <managed-bean-class>test.ItemBean</managed-bean-class>
>>         <managed-bean-scope>request</managed-bean-scope>
>>     </managed-bean>
>>
>>     <managed-bean>
>>         <description>List bean</description>
>>         <managed-bean-name>listBean</managed-bean-name>
>>         <managed-bean-class>test.ListBean</managed-bean-class>
>>         <managed-bean-scope>session</managed-bean-scope>
>>     </managed-bean>
>> ...
>>
>> I have the following jars in WEB-INF/lib folder:
>>
>> avalon-framework-4.1.3.jar
>> tobago-core-1.1.0-SNAPSHOT.jar
>> commons-beanutils-1.7.0.jar
>> jstl-1.1.0.jar
>> tobago-jsf-compat-1.1.0-SNAPSHOT.jar
>> commons-collections-3.1.jar
>> log4j-1.2.11.jar
>> tobago-taglib-extension-1.1.0-SNAPSHOT.jar
>> commons-digester-1.8.jar
>> logkit-1.0.1.jar
>> tobago-theme-charlotteville-1.1.0-SNAPSHOT.jar
>> commons-el-1.0.jar
>> myfaces-api-1.1.6.jar
>>  tobago-theme-richmond-1.1.0-SNAPSHOT.jar
>> commons-fileupload-1.2.jar
>> myfaces-impl-1.1.6.jar
>> tobago-theme-scarborough-1.1.0-SNAPSHOT.jar
>> commons-io-1.1.jar
>> mysql-connector-java-5.1.7-bin.jar
>> tobago-theme-speyside-1.1.0-SNAPSHOT.jar
>> commons-lang-2.1.jar
>>  tobago-theme-standard-1.1.0-SNAPSHOT.jar
>> commons-logging-1.1.jar
>> standard-1.1.2.jar
>>
>> The result is that I see the box title and the empty sheet skeleton. No
>> helpful logs.
>>
>> What am I missing?
>>
>> Thank you all in advance!
>>
>> Giovanni
>>
>
>

Attachment: test.tar.gz
Description: GNU Zip compressed data

Reply via email to