I wanted to put this on the list for the next person who needs to get
tables with checkboxes in T4 with a IPrimaryKeyConverter working.

Some gotchas
1) The converter does not work when bound to a contrib:Table or
contrib:TableView.  You need to bind this parameter to the TableRows.
2) Form elements (i.e. checkboxes) do not render inside a contrib:Table
(even if the table was wrapped by a form)
3) it's "converter", not "convertor"  Past postings make this confusing.

Here is a snippet from my spec.


        <component id="table" type="contrib:TableView">
        <binding name="source" value="page.travelPackageSearchResults"/>
        <binding name="columns">
            'Name:tourPackageName,Create Date:createDateDisplay'
        </binding>
        </component>

        <component id="tableColumns" type="contrib:TableColumns"/>


        <component id="tableRows" type="contrib:TableRows">
                <binding name="row" value="currentTourPackage"/>
                <binding name="converter" value="page.primaryKeyConverter"/>
                <binding name="class" value="beans.rowClass.next"/>
        </component>
        <component id="tableValues" type="contrib:TableValues"/>


    <component id="checkboxGroup" type="contrib:CheckboxGroup"/>

    <component id="controlCheckbox" type="contrib:ControlCheckbox"/>

        <component id="checkbox" type="contrib:ControlledCheckbox">
                <binding name="value" value="checkboxSelected"/>
        </component>

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

Reply via email to