Comments (7)
Yep i was going to say that but in PF14 this will be different as we removed the EmptyMesage property as labels got moved to the client side from the server side. So in 14 this would be either
MonkeyPatch:
if (PrimeFaces.widget.AutoComplete) {
PrimeFaces.widget.AutoComplete.prototype.configureLocale = function() {
this.emptyMessage = '';
this.resultsMessage = PrimeFaces.getLocaleLabel('searchMessage');
if (this.dropdown) {
this.dropdown.attr('aria-label', PrimeFaces.getLocaleLabel('choose'));
}
}
};
Or change your local to have an empty search label this.emptyMessage = PrimeFaces.getLocaleLabel('emptySearchMessage');
from primefaces.
i think for 14.0 we need to add showEmptyMessage
like PrimeReact has https://primereact.org/autocomplete/#api.AutoComplete.props.showEmptyMessage
from primefaces.
@pizzi80 can you be a little more clear on your scenario? Maybe a reproducer showing the issue.
PrimeFaces Test
from primefaces.
if the user is not forced to select an item from the suggested list of values
the empty message only brings confusion, for example
If you type something in the first input in the autocomple showcase,
the emptyMessage it's not what an user expect ...
https://www.primefaces.org/showcase/ui/input/autoComplete.xhtml?jfwid=d1c1b
from primefaces.
I've found that if you set
emptyMessage="#{null}"
or emptyMessage=""
the emptyMessage is not displayed
from primefaces.
only as a reminder ... the emptyMessage
attribute it's not documented at all
https://primefaces.github.io/primefaces/13_0_0/#/components/autocomplete?id=autocomplete
from primefaces.
probably it's better, in this way you'll cover all the situations ;)
from primefaces.
Related Issues (20)
- CSV: Test new bean validations
- TreeTable: After quick select deselect the checkboxes of the subtree are still selected HOT 20
- Float Label: Label Doesn't stay Above Field for DatePicker When Left Click Held on a Value HOT 4
- CSV: Date validation requires legacy Calendar
- Wrong Javadoc for InputMaskRenderer#translateMaskIntoRegex() HOT 6
- TabMenu: Incorrect border classes applied
- DatePicker: yearNavigator is no longer rendered as a dropdown HOT 5
- DataTable: Allow using custom icons for p:rowToggler HOT 3
- InputMask: slotChar as optional HOT 13
- Confirm: message facet HOT 5
- jakarta and facelet-taglib version HOT 5
- Confirm: event.currentTarget is the incorrect button HOT 2
- AutoComplete: Float label and multiple="true" not working
- Remove locales JS from datepicker showcase
- Auto detect HTML5_COMPLIANCE HOT 5
- Sticky: Filtering column in p:dataTable/p:column, using sticky feature, do not allow user input. Must use scrolling to activate HOT 10
- Showcase: Error when running locally after a few minutes HOT 14
- FileUpload component has dependency on Apache POI HOT 1
- OverlayPanel: Memory Leak on destroy HOT 1
- TabView: Memory leak on Tab close
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from primefaces.