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

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

Projects

None yet

2 participants

@julianomqs

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

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

@BalusC
Member
BalusC commented Aug 9, 2016

Reasonable. Do the PR.

@BalusC BalusC added a commit that referenced this issue Aug 9, 2016
@BalusC BalusC #298 update javadoc de8f68c
@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