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

Add "@global" to showMessageFor attribute of multiple field validators to add global message #298

Closed
julianomqs opened this Issue Aug 9, 2016 · 2 comments

Comments

Projects
None yet
2 participants
@julianomqs

julianomqs commented Aug 9, 2016

I think it would be nice to have a option @global for showMessageFor attribute of multiple field validators.

This option will be used to add the error message as global, instead per component, to be shown in h:messages, p:messages, p:growl or similar.

Example:

<o:validateMultiple components="startMonth startYear endMonth endYear"
                    validator="#{myBean.validateMonthYearRange}"
                    message="The date ranges could not be the same."
                    showMessageFor="@global" />

What you think?

@julianomqs julianomqs changed the title from Add "@global" to showMessageFor attribute of multiple field validators to add message as global to Add "@global" to showMessageFor attribute of multiple field validators to add global message Aug 9, 2016

@julianomqs

This comment has been minimized.

Show comment
Hide comment
@julianomqs

julianomqs Aug 9, 2016

If you agree with the idea, I have the code ready, so I can make a pull request.
It worked well.

julianomqs commented Aug 9, 2016

If you agree with the idea, I have the code ready, so I can make a pull request.
It worked well.

@BalusC

This comment has been minimized.

Show comment
Hide comment
@BalusC

BalusC Aug 9, 2016

Member

Reasonable. Do the PR.

Member

BalusC commented Aug 9, 2016

Reasonable. Do the PR.

BalusC added a commit that referenced this issue Aug 9, 2016

@BalusC BalusC closed this Aug 9, 2016

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