                  </p:commandButton>
                            </div>
                        </f:facet>

                        <h:panelGroup id="gpBillPreview" >

                            <h:panelGroup
                                rendered="#{pharmacyBillSearch.showAllBillFormats 
                                            or (sessionController.loggedPreference.pharmacyBillPaperType eq 'A4Paper' 
                                            and not sessionController.loggedPreference.grnBillDetail