Hi Niklas,
I think the reason may be that the code generated by the 'tablePages' component ends up not being in a <tr><td> and the browser may thus render it at the beginning of the table (just curious, do you guys think I should put it in a <caption> tag in the Table component template?).
One quick fix would be placing the component within a <tr><td>:
<tr><td colspan="..."><span jwcid="tablePages"/></td></tr>
You can also align it left or right here by adding an align="..." attribute to the <td>.
Alternatively, you can place it outside the table entirely. To do that, define the 'element' binding in the 'tableView' component so that it does not generate a 'table' tag, but generates 'span' instead:
<static-binding name="element">span</static-binding>
Then rearrange things in the following way:
<span jwcid
="tableView" width="90%"><table>
<tr> <td jwcid="tableColumns"/> </tr> <tr jwcid="tableRows"> <td jwcid="tableValues" align="center"/> </tr></table>
<span jwcid="tablePages"/></span>
I hope this helps.
Best regards,
-mb
Niklas Ekman <[EMAIL PROTECTED]> wrote:
HelloI've finally succeeded in using the Table component with our java API (after excellent help from Mindbridge) and I must say it's a great component. The final clue of how to implement it was when I saw the SQL table model, which is sort of what we have but not quite.Now, when I've managed to get it running I have a question:I tried to put the navigation below the table instead of above using this html template:<table jwcid
="tableView" width="90%"> <tr> <td jwcid="tableColumns"/> </tr> <tr jwcid="tableRows"> <td jwcid="tableValues" align="center"/> </tr> <span jwcid="tablePages"/></table>
The problem is that the navigation still is on the top of the table. Am I doing anything the wrong way here?thanks,Niklasniklas.ekman
citat solutions | phone +46 (0)31 710 72 12
kronhusgatan 9, SE-411 05 g�teborg, sweden,
[EMAIL PROTECTED]
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
