空格自动完成显示jsf

时间:2018-11-21 13:21:50

标签: jsf

在我当前的项目中,<p:autocomplete>在第一次单击时在行后显示空白,但是在第二次单击时,他显示一切正常。 我如何指定他计数我需要的行? 我有 属性scrollHeight=210 它是7行,但是当我只有2行时,有5行是空的

<p:autoComplete appendTo="@this" id="stcStatement"
                                        value="#{baseSearchDependet.contextData.claimType}"
                                        dropdown="true"
                                        completeMethod="#{baseSearchDependet.complete}"
                                        var="claimType" itemLabel="#{claimType.lex1}" itemValue="#{claimType}"
                                        scrollHeight="210" styleClass="fullAutoComplete"
                                        converter="KlUniConverter" forceSelection="true">
                            <f:attribute name="klType" value="#{KlTypes.STATEMENT.type}"/>
                            <f:attribute name="klParType"
                                         value="#{baseSearchDependet.contextData.basicStage.klUniPK.type}"/>
                            <f:attribute name="klParCode"
                                         value="#{baseSearchDependet.contextData.basicStage.klUniPK.code}"/>
                            <f:attribute name="completeType" value="#{CompleteCompareType.CONTAINS}"/>
                            <f:attribute name="beginWith" value="1"/>
                            <p:ajax event="itemSelect" process="@this" update="productionTypePanel mppTypePanel"
                                    listener="#{baseSearchDependet.checkSelected()}"/>
                        </p:autoComplete>

对不起,但我必须隐藏文字 first click second click

0 个答案:

没有答案