Hi,

I am trying to create a component using the contrib:Table component. Basically in my application, there is a student resultSet that I display many number of times. Only the source of the contrib:Table keeps changing and so I decided to make a StudentTable component, accepting a list of students as a parameter. But I keep getting a runtime error:

org.apache.tapestry.ApplicationRuntimeException
Either the tableModel parameter or both source and columns parameters must be specified by component StartPage/stuentsRegisteredForCourses.tableStudentList.tableView

.jwc:

<parameter name="studentList" type="java.util.List" required="yes"/>
<property-specification name="student" type="edu.reg.hb.Student"/>

<component id="tableStudentList" type="contrib:Table">
        <binding name="source" expression="studentList"/>
        <static-binding name="columns" value="student:Name:name" />
</component>

.java has the respecitive getter/setter for studentList and student

-----

now trying to use this comp in a page:

.page:

<property-specification name="students" type="java.util.List" persistent="yes"/>

<component id="stuentsRegisteredForCourses" type="TableStudentList">
       <binding name="studentList" expression="students"/>
</component>

.html:

<table jwcid="stuentsRegisteredForCourses" />

---

i dont know when the component gets loaded, but i suspect that it gets called before the pageBeginRender(), which actually sets the students list with some value.

i cant fig out what am i doing wrong :(

Thanks,
-Dan

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to