p:autocomplete multiple="true" label covering text
Posted: 04 Oct 2018, 23:46
Hi,
In case if the data is retrieved from database before the rendering of the page, the <label>Delivery Challan(s) * </label> covers the itemLabel of the primefaces autocomplete. This is only the case if the p:autoComplete has multiple="true";
Will be grateful for the help
Code: Select all
<h:panelGroup styleClass="md-inputfield">
<p:autoComplete id="dcNo" value="#{saleInvoiceBean3.selectedDcs}"
readonly="#{not saleInvoiceBean3.editable}"
completeMethod="#{saleInvoiceBean3.autoCompleteDc}"
multiple="true" scrollHeight="200"
dropdown="true"
var="o" itemLabel="#{o.getPrefixDeliveryChallanId()}" itemValue="#{o}"
forceSelection="true"
converter="salesModuleConverter"
required="#{param['validateSaveButton']!=null}"
requiredMessage="Please select delivery challan!" >
<p:ajax event="itemSelect" listener="#{saleInvoiceBean3.handleDcSelect}" process="@this"
update="dcNo sipTable grossTotal taxAmount grandTotal subSaleInvoicePanel minSplitAmount"/>
<p:ajax event="itemUnselect" listener="#{saleInvoiceBean3.handleDcUnselect}"
update="dcNo sipTable grossTotal taxAmount grandTotal subSaleInvoicePanel minSplitAmount"/>
</p:autoComplete>
<label>Delivery Challan(s) * </label>
<p:message for="dcNo"/>
</h:panelGroup>
Will be grateful for the help