function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Marco Paulucci 1Marco Paulucci 1 

<Table> bug with InputText

hey all,

I'm basically doing a table with <repeat> tags, using a HTML <table> as a base.
The problem is that inputText tag doesn't want to fit inside <td> tags.

Here is a screenshot (sorry for size, I'm using offseted dual monitors)
http://i.imgur.com/HTqSc86.jpg

on left screen you can see the code. And on right screen, the buggy result.

Help appreciated
Best Answer chosen by Marco Paulucci 1
Marco Paulucci 1Marco Paulucci 1
It wasn't anything from my side, as I've checked the code before posting.

I found the problem however. The inputText / etc. tags are set to colspan=2 inside <apex:pageBlock> , regardless of whether you're using that extra cell for the label or not. I did not manage to get a workaround on this using extra <th/> tags, so I just removed the pageblock.

All Answers

robdobbyrobdobby
Hi!  It looks like there is an extra <th>Desc1 Lines</th> somewhere.  I don't see it in your Visualforce, but there is an extra column in the output.  Are you sure the browser screen cap matches the code you show there?
Grazitti TeamGrazitti Team
I would suggest using firebug to inspect your generated html (Right click -> Inspect element  If you are using chrome).



Marco Paulucci 1Marco Paulucci 1
It wasn't anything from my side, as I've checked the code before posting.

I found the problem however. The inputText / etc. tags are set to colspan=2 inside <apex:pageBlock> , regardless of whether you're using that extra cell for the label or not. I did not manage to get a workaround on this using extra <th/> tags, so I just removed the pageblock.
This was selected as the best answer