Autocomplete (multiple="true") Label not displaying properly

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
nova-usman
Posts: 5
Joined: 04 Feb 2016, 14:21

17 Mar 2018, 20:10

Hi,
My code is as follows:

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>
On opening of page, when the data is already retrieved from database, the label is Delivery Challan(s) * is being displayed on the input level. Difficult to describe in words but easy to show as displayed in the following screenshot
Image

Once I click on this autocomplete component, then the label becomes higher then the input and is displayed as it should, which can be seen from the screenshot below.
Image

Kindly please tell me how to rectify this issue.

Regards

huseyinT
Posts: 123
Joined: 27 Mar 2016, 13:05

17 Mar 2018, 21:14

The images do not appear.

Post Reply

Return to “Ultima - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest