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)
- Tooltip: autoHide="false" does not work HOT 18
- DataTable: Handling of Columns in column group differs from body HOT 6
- TabMenu: Generalize such that no explicit index setting is required HOT 13
- Splitter: panel is not draggable by touch to resize on the android tablet.
- Menu: JS recursion error 14.0.1 HOT 8
- Tooltip: autoHide="false" never gets hidden
- Media: Navigating to a given page number in a multi-page PDF file HOT 1
- `updateExpansionAria` called on wrong `this` HOT 1
- CommandLink: Tabindex gets removed HOT 5
- TextEditor doesn't detect change of contents HOT 2
- Menu: not working in PF 14.0.1 HOT 3
- JavaEE JAR contains JakartaEE URN taglib HOT 1
- Picklist: "An error occurred when processing your submitted information" HOT 12
- CSP: primefaces.nonce from request not validated HOT 24
- MenuButton: not disappearing after clicking in PF 14.0.1 HOT 3
- WidgetVar: not available after updating version from 14.0.0 to 14.0.1 HOT 7
- Sticky effect: problem when combine with menu/datatable and dialog HOT 18
- Sticky effect: problem when combine with menu/datatable and dialog HOT 1
- DatePicker: Add `viewDate` property HOT 4
- autoComplete: highlight not working for custom content when removing style of the outputText HOT 1
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.