Daniel Jue wrote:
>
> Hi,
>
> Perhaps I am not understanding your situation or perhaps my example
> failed to stimulate your creativity. ;-)
>
> If you don't know the class, at the minumum the class should implement
> something that will spit out the column names, and the way to get the
> elements of each row.
>
> For instance, if your model classes all implemented a method that gave
> the Contrib table the column metadata it was looking for, it could
> return a runtime generated string that looks like this:
>
> "data0:ID:getUserDetails('USERGUID'),data1:Email:getUserDetails('EMAIL'),data2:First
> Name:getUserDetails('FIRSTNAME'),data3:Last
> Name:getUserDetails('LASTNAME')";
>
>
My English is not perfect can be I don't understand your ideas well.
The above string I can generate ok. But in the html template I have to use
data0, data1 to override the column body but I don't know number of columns
It's kind of generic search component. Lets say the class name is a
parameter here. Based on additional class's properties attributies criteria
form is generated (not all properties are shown). Next after search button
is clicked page with results is shown as links (again not all columns are
shown). If you click on a link you are redirected to the requsted page. If
somebody knows peoplesoft it's more or less copied idea. I write except
result page. Eventually I can render results in the for loop
--
View this message in context:
http://www.nabble.com/links-in-a-table-tf2548557.html#a7105296
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]