Hi all,
I'm making a dbgrid component and now I do configuration in the class
rather then then the template. The configuration consists of a list of
objects.
I would like to do the configuration in the template. The idea behind it
is to clear the class from overhead and the arguments would (hopefully)
be pooled just like pages and components. That way some actions doesn't
have to be done every request.
I tried using components for parameters but i can't figure out exactly
how to get to the variables and it is just generating overhead by
wrapping them etc...
Is this possible and how ?
or is this not the way to go ..
<table t:type="dbgrid/dbgrid"
classname="literal:ssu.music.entities.Track" columns="columns"
constraints="constraints">
</table>
public List<Column> getColumns() {
List<Column> column= new ArrayList<Column>();
fields.add(new SimpleColumn("id","Id"));
fields.add(new SimpleColumn("field","label"));
return fields;
}
This is how i would like it to be.
<table t:type="dbgrid/dbgrid"
classname="literal:ssu.music.entities.Track"
constraints="constraints">
<t:parameter name="fields">
<t:object classname="someprefix.simpleColumn" name="id"
label="Id"/>
<t:object classname="someprefix.simpleColumn"
name="fieldName" label="Label"/>
</t:parameter>
</table>
Furthermore 2 other questions:
- In regard to earlier post 10-01-2007 "T5 Component libraries"
concerning the discussion about component path ambiguity and the idea
suggested by Kent what the status of this ?
Because dbgrid is such a common name I imagine more people might use
it.
- What is the status of the AJAX support ?
(eventually i would like to have some fancy extjs ajax grid component)
Hope you can help..
Regards,
Sander
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]