Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

datepicker error message show id #287

Closed
lyahim opened this issue Feb 10, 2016 · 4 comments
Closed

datepicker error message show id #287

lyahim opened this issue Feb 10, 2016 · 4 comments
Assignees
Milestone

Comments

@lyahim
Copy link
Contributor

lyahim commented Feb 10, 2016

Hello All,

When datepicker validation failing the message generated wring because its shown the component id instead of label.
I think the buggy code is on DatePicker.java

/* / public String getLabel(FacesContext context)
/
/ {
/
562 / Object o = getAttributes().get("label");
/
563 / if ((o == null) || (((o instanceof String)) && (((String)o).length() == 0))) {
/
564 / ValueExpression vex = getValueExpression("label");
/
565 / if (null != vex) {
/
566 / return (String)vex.getValue(context.getELContext());
/
/ }
/
/ }
/
569 / return getClientId(context);
/
/ }
/
*/ }

Best Regards,
Mihaly

@stephanrauh
Copy link
Collaborator

I think you're right. I'd like to refactor the component, anyways. getAttributes().get("label"); doesn't conform to the JSF coding conventions, and in some corner cases, JSF doesn't support this coding style. However, as a first step, I've fixed the bug. Would you like to test it? I've uploaded a developer snapshot to Maven Central (see #151 on how to get it). Feel free to reopen the ticket if something's wrong.

@stephanrauh stephanrauh added this to the v0.8.2 milestone Feb 10, 2016
@stephanrauh stephanrauh self-assigned this Feb 10, 2016
@lyahim
Copy link
Contributor Author

lyahim commented Feb 11, 2016

Hello Stephan,

I've checked the changes, and looks good.
Where can I reopen a ticket?

@stephanrauh
Copy link
Collaborator

Hi Mihaly,

if you can reopen the ticket, there's a button below the comment field (see screenshot). Sometime people do reopen our tickets, so I believed this option is available to everybody. If you, you can always ask us to open it again :).

image

@lyahim
Copy link
Contributor Author

lyahim commented Feb 11, 2016

I have no right to reopen an issue :( Not shown the button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants