zwwcn

Just another WordPress.com site

a4j hide/show button


<c:if test="#{inv.quote}">
<div>
<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>
</h:selectOneMenu>
</div>
</c:if>








<a4j:outputPanel id="saveAndCompletePanel">
<fieldset>
<div>
<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"/>
</div>
</fieldset>
</a4j:outputPanel>




 

 

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: