Just another site

a4j hide/show button

<c:if test="#{inv.quote}">
<h:outputLabel styleClass="medium inline" id="leadStatusLabel" value="Change Status to" for="leadStatus"/>
<h:selectOneMenu id="leadStatus" value="#{leadStatusHome.leadStatus}" disabled="#{!statusChangeable}">
<f:selectItems  value="#{leadStatusHome.statusList}"/>
<a4j:support reRender="saveAndCompletePanel,saveAndComplete,savePanel,save" event="onchange" ajaxSingle="true" limitToList="true"></a4j:support>

<a4j:outputPanel id="saveAndCompletePanel">
<h:commandButton  id="saveAndComplete" action="#{actionBean[saveAndCompletion]}" value="Save and Completed"  rendered="#{inv.quote and inv.scheduleItem != null and !hideScheduleItem and not(leadStatusHome.leadStatus=='CO' or leadStatusHome.leadStatus=='PD')}" styleClass="btn alignright btn_green"/>




Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: