+ Start a Discussion

Conditional display of component


I have a component which I want to conditionally display (as a modal dialog). It is all working fine, but the second, thrid call etc do NOT reset the attributes, the component seems stuck with the attributes from the first call.

Here is the component:
<apex:page Controller="DemoModalController" >
    <apex:pageMessages />
	<apex:form id="theForm">
		<h1>Demo Modal</h1>
		<apex:pageBlock id="thePageBlock2" >	
			<apex:inputField value="{!meetingItem.Meeting__c}" required="false"/>
		<apex:outputPanel id="itemPanel"> 		
			<apex:commandButton value="Open Dialog"
           		 	title="Open the modal dialog"
	   		<apex:outputPanel id="CreateMeetingItem" " >	            		 	
				<c:CreateMeetingItem rendered="{!displayModal.displayCreateMeetingItem}"
					displayModalObj="{!displayModal}" meetId="{!meetingID}" attendeeList="{!attendees}" itemVoterList="{!itemVoters}"/>
Is there a way to force the component to refresh?

Thanks in advance