reRender und rendered-Attribut in visualforce

Schreibe ich eine visualforce-Seite mit dem Quellcode

<apex:page controller="MyController1">
<apex:form>
<apex:pageBlock >
<apex:pageBlockSection  id="search">
<apex:commandLink action="{!commandLinkAction}" value="Advance Search"  reRender="thePanel" id="theCommandLink"/>
<apex:outputPanel id="thePanelWrapper">
<apex:outputPanel id="thePanel" rendered="{! rend}" layout="block">My div</apex:outputPanel>
</apex:outputPanel>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>

und die MyController1 Klasse ist

public class MyController1{
public Boolean rend{get;set;}
public PageReference commandLinkAction(){
rend=true;
return null;
}

}

wenn ich auf link "Erweiterte Suche" nichts passiert, aber ich hatte erwartet, outputPanel mit der id "thePanel" darstellen soll.warum ist es nicht Rendern bitte jemand erklären??

Schreibe einen Kommentar