Let Tapestry handle the getter/setter and use @Persist for the table model.
so
@Persist
public abstract List getProfiles();
public abstract void setProfiles(List profiles);
Then init setProfiles() in your pageBeginRender. Pretty sure you need to do
that for the column model too.
----- Original Message -----
From: "Daniele Dellafiore" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, February 28, 2006 6:29 AM
Subject: contrib:Table has source and columns specs but does not work
I am unable to make a @contrib:Table to run.
I have solved a lot of problems, following a tutorial for TP3 and adapting
it to TP4 that has no Table doc. Anyway, at the end I have a single page
where:
.html is:
<table class="mytable" jwcid="[EMAIL PROTECTED]:Table"
source="ognl:profiles"
columns="name"/>
.page has page-specification tag that contains:
<property name="profiles"/>
and the .java has
public List getProfiles(){
return profiles;
}
profiles instance is initialized during pageBeginRendering with beans that
have getName and setName, but I think this does not affect the program,
exceptions is raised before. Exception says:
"Either the tableModel parameter or both source and columns parameters
must be specified by component ProfilesSummary/table.tableView"
I have both source and columns and they are correct, as far as I know.
So... what's up?
Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]