">

                            <h:panelGroup
                                rendered="#{pharmacyBillSearch.showAllBillFormats 
                                            or (sessionController.loggedPreference.pharmacyBillPaperType eq 'A4Paper' 
                                            and not sessionController.loggedPreference.grnBillDetailed)}"
                                styleClass="noBorder">
                                <h:panelGroup rendered="#{pharmacyBillSearch.showAllBillFormats}" >
   