Disable value for autocomplete expansion

I am trying to disable "No results found". I mean the user cannot select "No Results". I tried itemDisabled for this, but it doesn't work. Do you want to help?

 <div class="form-group">
                        <label>From <span class="text-red">*</span></label>
                        <p:autoComplete id="Source" styleClass="form-control" 
                                    minQueryLength="0" value="#{bean.source}"
                                    tabindex="1" maxlength="20" var="it"
                                    itemLabel="#{it.name}" itemDisabled="#{bean.source eq 'No Results Found'}" converter="${gec}" itemValue="#{it}"
                                    completeMethod="#{bean.completeSourceLocation}" scrollHeight="150"> 
                          <p:ajax event="itemSelect" onsuccess="destfocus();"></p:ajax>
                        </p:autoComplete>
                        <p:watermark for="Source" value="Source" />
                      </div>

      

+3
java xhtml jsf


source to share


No one has answered this question yet

Check out similar questions:

6170
Is Java "pass-by-reference" or "pass-by-value"?
2171
How to determine if an array contains a specific value in Java?
1818
How to get enum value from string value in Java?
1544
Sorting map <Key, value> by value
1492
Does Java support default parameter values?
996
What are the possible Hibernate hbm2ddl.auto config values โ€‹โ€‹and what do they do
651
How do I initialize the values โ€‹โ€‹of a HashSet by construction?
1
Disabling autocomplete doesn't work
1
JSF: Selecting a value in one dropdown allows more
1
JSF - populate dropdown based on value in another dropdown



All Articles
Loading...
X
Show
Funny
Dev
Pics