+ Start a Discussion
Pooja05Pooja05 

Rendering a row within a PageBlockTable

Product          LineType      Removal Reason

    x                      y            

    a                      b          input Field shoul appear

    r                       s     

 

 

I want to be able to show the inputField in Removal Reason Column only if the user selects b in the line Type column.

 

Is there any way in which I can make particular row within a table appear based on what the user selects?

 

 

 

Thanks,

Pooja

Cool_DevloperCool_Devloper

Hi Pooja,

 

In this case you have to set a Boolean Variable in your controller whenever the user selects a particular LineType.

 

Also, re-render the inputField after that so that it gets the refreshed value from the controller. This field's rendering will depend on that Boolean Variable'e value.

 

Hope this helps!!

 

Cool_D

Message Edited by Cool_Devloper on 03-27-2009 10:48 PM
souvik9086souvik9086

Hi Cool_Developer,

                                      I have a similar problem like this. After clicking a commandLink in a particular row in the pageblocktable a datatable will appear in that particular row only. But after clicking on the link the datatable is appearing in all the rows instead of that particular row. i have tried what u have written. But still it is coming in all the rows. Please do you have any other suggestion?

 

thanks in advance,

Souvik