+ Start a Discussion
jhelblingjhelbling 

apex:commandlink value disapear when another text is added next to it

Hi everyone,

 

I have a column that uses a facet to display a header as follow :

<apex:column >
   <apex:facet name="header">
       <apex:commandLink value="myvalue" action="..." rerender="..." style="...">
          <apex:param name="..." value="discount" ..."/>
       </apex:commandLink>
    </apex:facet>      
</apex:column>

 

This is working well.

 

Now if I add another text, like for example :

 

<apex:column >
   <apex:facet name="header">
       <apex:commandLink value="myvalue" action="..." rerender="..." style="...">
          <apex:param name="..." value="discount" ..."/>
       </apex:commandLink>
       <br/>
       test
    </apex:facet>      
</apex:column>

 

My header will only display "test", and I don't see anymore the value of the commandLink object.

 

Is it expected ?

 

Thanks.

Best Answer chosen by Admin (Salesforce Developers) 
jhelblingjhelbling

Ok the solution seems to be by using apex:outputtext, for example :

 

                        <apex:facet name="header">
                            
                            
                            <apex:outputtext value="myvalue">
                              <apex:commandLink value="..." action="..." rerender="...">
                                <apex:param name="..." value="..."/>
                              </apex:commandLink>
                              my other text if needed
                            </apex:outputtext>
                            
                        </apex:facet>      
                  
                    </apex:column>