You need to sign in to do that
Don't have an account?

Visualforce display issue
I have a pageblock table and multiple columns in it. I need to display a input text and an image (based on rendered condition) in a column but i have issues with white spaces when i use a panel grid inside column.
Here is the code

Here is the code
<apex:column headerValue="Sample"> <apex:panelGrid columns="2"> <apex:inputSecret styleClass="pwd" style="width:90px; height:25px;" rendered="{!testcondition}"/> <apex:image url="{!URLFOR($Resource.Images, 'sample.png')}" title="Click here.." rendered="{testcondition1}"/> </apex:panelGrid> <apex:image url="{!URLFOR($Resource.Images, 'sample1.png')}" title="#2.." rendered="{testcondition2}"/> <apex:image url="{!URLFOR($Resource.Images, 'sample2.png')}" title="#3.." rendered="{testcondition3}"/> </apex:column>
All Answers
For whatever is giving you the white space, you could wrap it (like the grid) in an outputPanel so the grid will not show up unless there is something there.
thx.
Can you send the whole code? it's hard to help you debug if I can see a little snippet of it.
What you can do is to expand the output panel include the images and other items too.
Once you figure out he culprit, it's easy to take take of.
NOTE you can create as many outputpanel as you like, one for the pwd, one for the images etc.
Thx.