So your example did not have a "mask" in it. The above code looks like you only want to apply the mask if its not readonly or disabled. Can you verify that the mask is the problem in this Calendar case? Because your original example did not have a mask in it. I would juts like to be able to reproduce the issue in a PrimeFaces Test before submitting any fixes.
Let me know!
p:calendar in version 10.0.0 and 10.0.2
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
-
- Posts: 26
- Joined: 28 Oct 2014, 15:21
Melloware I think there is a relationship. But I also think it goes beyond that. As it had "worked", I continued to make the migration to version 10. When continuing the tests I noticed that both the calendar and the datepicker when clicked, do not open the popup. Very strange. I feel tied up for not mastering the technology and being able to provide more details about the error to help you.Melloware wrote: ↑07 Jun 2021, 20:19So your example did not have a "mask" in it. The above code looks like you only want to apply the mask if its not readonly or disabled. Can you verify that the mask is the problem in this Calendar case? Because your original example did not have a mask in it. I would juts like to be able to reproduce the issue in a PrimeFaces Test before submitting any fixes.
Let me know!
I apologize for that.
Code: Select all
<p:datePicker id="data" value="#{acompanhamentoInfantilMB.dataco}"
pattern="dd/MM/yyyy" mask="true" readonlyInput="true" locale="pt"
required="true" mode="popup" navigator="true" autoWidth="false"
style="max-width: 100px;" showButtonPanel="true"
mindate="#{acompanhamentoInfantilMB.minDate}"
maxdate="#{acompanhamentoInfantilMB.maxDate}">
<p:ajax event="dateSelect"
listener="#{acompanhamentoInfantilMB.selecionarData}"
update=":form:pg" />
</p:datePicker>
Code: Select all
<p:outputLabel for="basic" value="Data" />
<p:datePicker id="basic" value="#{acompanhamentoInfantilMB.dataco}" />
You are right I should apply the same fix for 7362. I reopened your ticket and will apply the same to Calendar and DatePicker.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
-
- Posts: 26
- Joined: 28 Oct 2014, 15:21
I'm still learning to use these forum and git for opening to report problems. It's actually been a good learning experience, first using git instead of SVN, then Maven, anyway. I made this comment below at https://github.com/primefaces/primefaces/pull/7400 I will also do it here because I'm not sure if the comment there will have the meaning of a problem report.
I downloaded the source code from the master. Generated primefaces-11.0.0-SNAPSHOT.jar. I installed it in my project and the components still have problems, not opening the popup to select the date and other features such as selecting the hour and minute. The previous problem, which was a problem with the use of a mask, has apparently been solved. It remains these problems that I reported.
Yep still waiting on a PrimeFaces Test reproducer from you that works with `mvn clean jetty:run` so I can see your exact problem.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
-
- Posts: 26
- Joined: 28 Oct 2014, 15:21
I discovered the problem, in part, in version 10 there was that problem in the inputmask that prevented the action from working. Similar problem was demonstrated in calendar and datepicker components. You implemented the solution in version 11 only, you didn't provide the script to work in version 10. What I did was delete the javascripts and download the snapshot of 11 that already had these implementations and delete the scripts below.
Code: Select all
<script type="text/javascript">
//<![CDATA[
if (PrimeFaces.widget.InputMask) {
PrimeFaces.widget.InputMask.prototype.init = function(cfg) {
PrimeFaces.widget.BaseWidget.prototype.init.call(this, cfg);
if (this.cfg.mask && !this.jq.is('[readonly]') && !this.jq.is(':disabled')) {
this.jq.inputmask('remove').inputmask(this.cfg);
}
PrimeFaces.skinInput(this.jq);
}
};
if (PrimeFaces.widget.Calendar) {
PrimeFaces.widget.Calendar.prototype.init = function(cfg) {
PrimeFaces.widget.BaseWidget.prototype.init.call(this, cfg);
if (this.cfg.mask && !this.jq.is('[readonly]') && !this.jq.is(':disabled')) {
this.jq.inputmask('remove').inputmask(this.cfg);
}
PrimeFaces.skinInput(this.jq);
}
};
if (PrimeFaces.widget.DatePicker) {
PrimeFaces.widget.DatePicker.prototype.init = function(cfg) {
PrimeFaces.widget.BaseWidget.prototype.init.call(this, cfg);
if (this.cfg.mask && !this.jq.is('[readonly]') && !this.jq.is(':disabled')) {
this.jq.inputmask('remove').inputmask(this.cfg);
}
PrimeFaces.skinInput(this.jq);
}
};
//]]>
</script>
Code: Select all
if (PrimeFaces.widget.InputMask) {
PrimeFaces.widget.InputMask.prototype.init = function(cfg) {
PrimeFaces.widget.BaseWidget.prototype.init.call(this, cfg);
if (this.cfg.mask && !this.jq.is('[readonly]') && !this.jq.is(':disabled')) {
this.jq.inputmask('remove').inputmask(this.cfg);
}
PrimeFaces.skinInput(this.jq);
}
};
Code: Select all
if (PrimeFaces.widget.Calendar) {
PrimeFaces.widget.Calendar.prototype.init = function(cfg) {
PrimeFaces.widget.BaseWidget.prototype.init.call(this, cfg);
if (this.cfg.mask && !this.jq.is('[readonly]') && !this.jq.is(':disabled')) {
this.jq.inputmask('remove').inputmask(this.cfg);
}
PrimeFaces.skinInput(this.jq);
}
};
if (PrimeFaces.widget.DatePicker) {
PrimeFaces.widget.DatePicker.prototype.init = function(cfg) {
PrimeFaces.widget.BaseWidget.prototype.init.call(this, cfg);
if (this.cfg.mask && !this.jq.is('[readonly]') && !this.jq.is(':disabled')) {
this.jq.inputmask('remove').inputmask(this.cfg);
}
PrimeFaces.skinInput(this.jq);
}
};
Another question, is there much to the release of a minimally stable version of version 11?
As I commented in another post, I don't really master this technology. It could be that my javascript implementation is incorrect.
Thank you very much.
You can always build 11.0.0 yourself just checkout from GitHub and run "mvn clean install" it builds 11.0.0_SNAPSHOT intou your .m2 folder so you can use. You can always not make it a snapshot too if you want to use it for Production.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
-
- Posts: 26
- Joined: 28 Oct 2014, 15:21
If I can't use the snapshot for production because of instability, it's in development after all. We need a solution for version 10 that solves the issue of calendar and datepicker components. It would not be possible for you to build an interim solution as it was in this case for the inputmask problem https://github.com/primefaces/primeface ... -848955036?
My attempt to create this script didn't work very well, it hindered the opening and selection of date and time.
I don't work for PrimeTek so I don't control the release schedule of v11. I am just an open source volunteer.
Your other choice is to pay for PRO support and ask for those 3 fixes to be rolled into Elite 10.0.4 release.
Your other choice is to pay for PRO support and ask for those 3 fixes to be rolled into Elite 10.0.4 release.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
-
- Posts: 26
- Joined: 28 Oct 2014, 15:21
-
- Information
-
Who is online
Users browsing this forum: Google [Bot] and 7 guests