*/
protected void preValidate (final FacesContext context, final UIComponent component, final Object value, final String[] requiredFields) throws ValidatorException {
// Trace message
- this.getLogger().logTrace(MessageFormat.format("context={0},component={1},value={2},requiredFields={3} - CALLED!", context, component, value, Arrays.toString(requiredFields))); //NOI18N
+ this.getLogger().logTrace(MessageFormat.format("preValidate: context={0},component={1},value={2},requiredFields={3} - CALLED!", context, component, value, Arrays.toString(requiredFields))); //NOI18N
// Init message and key
FacesMessage facesMessage = null;
// Check component's id against required fields and find a match
for (final String field : requiredFields) {
// Get logger
- this.getLogger().logDebug(MessageFormat.format("field={0},clientId={1}", field, clientId)); //NOI18N
+ this.getLogger().logDebug(MessageFormat.format("preValidate: field={0},clientId={1}", field, clientId)); //NOI18N
// Is it the same?
if (clientId.endsWith(field)) {
}
// Debug message
- this.getLogger().logDebug(MessageFormat.format("isValidField={0}", isValidField)); //NOI18N
+ this.getLogger().logDebug(MessageFormat.format("preValidate: isValidField={0}", isValidField)); //NOI18N
// Valid field?
if (!isValidField) {
}
// Debug message
- this.getLogger().logDebug(MessageFormat.format("facesMessage={0}", facesMessage)); //NOI18N
+ this.getLogger().logDebug(MessageFormat.format("preValidate: facesMessage={0}", facesMessage)); //NOI18N
// Is it not null?
if (null != facesMessage) {
}
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLogger().logTrace("preValidate: EXIT!"); //NOI18N
}
/**
@Override
public void preValidate (final FacesContext context, final UIComponent component, final Object value, final String[] requiredFields) throws ValidatorException {
// Trace message
- this.getLogger().logTrace(MessageFormat.format("context={0},component={1},value={2},requiredFields={3} - CALLED!", context, component, value, Arrays.toString(requiredFields))); //NOI18N
+ this.getLogger().logTrace(MessageFormat.format("preValidate: context={0},component={1},value={2},requiredFields={3} - CALLED!", context, component, value, Arrays.toString(requiredFields))); //NOI18N
// Pre-validate
super.preValidate(context, component, value, requiredFields);
// So far all fine, no check if the field is fine
for (final String field : requiredFields) {
// Debug message
- this.getLogger().logDebug(MessageFormat.format("field={0},clientId={1}", field, clientId)); //NOI18N
+ this.getLogger().logDebug(MessageFormat.format("preValidate: field={0},clientId={1}", field, clientId)); //NOI18N
// Is it the same?
if (clientId.endsWith(field)) {
@Override
public void validate (final FacesContext context, final UIComponent component, final Object value) throws ValidatorException {
// Trace message
- this.getLogger().logTrace(MessageFormat.format("context={0},component={1},value={2} - CALLED!", context, component, value)); //NOI18N
+ this.getLogger().logTrace(MessageFormat.format("validate: context={0},component={1},value={2} - CALLED!", context, component, value)); //NOI18N
// All accepted, required fields
String[] requiredFileds = {"privacy", "terms"}; //NOI18N
super.preValidate(context, component, value, requiredFileds);
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLogger().logTrace("validate: EXIT!"); //NOI18N
}
}
@Override
protected void preValidate (final FacesContext context, final UIComponent component, final Object value, final String[] requiredFields) throws ValidatorException {
// Trace message
- this.getLogger().logTrace(MessageFormat.format("context={0},component={1},value={2},fields={3} - CALLED!", context, component, value, Arrays.toString(requiredFields))); //NOI18N
+ this.getLogger().logTrace(MessageFormat.format("preValidate: context={0},component={1},value={2},fields={3} - CALLED!", context, component, value, Arrays.toString(requiredFields))); //NOI18N
// Pre-validate (e.g. on null)
super.preValidate(context, component, value, requiredFields);
// So far all fine, no check if the field is fine
for (final String field : requiredFields) {
// Debug message
- this.getLogger().logDebug(MessageFormat.format("field={0},clientId={1}", field, clientId)); //NOI18N
+ this.getLogger().logDebug(MessageFormat.format("preValidate: field={0},clientId={1}", field, clientId)); //NOI18N
// Is it the same?
if (clientId.endsWith(field)) {
}
// Debug message
- this.getLogger().logDebug(MessageFormat.format("facesMessage={0}", facesMessage)); //NOI18N
+ this.getLogger().logDebug(MessageFormat.format("preValidate: facesMessage={0}", facesMessage)); //NOI18N
// Is it not null?
if (null != facesMessage) {
}
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLogger().logTrace("preValidate: EXIT!"); //NOI18N
}
}
@Override
public void validate (final FacesContext context, final UIComponent component, final Object value) throws ValidatorException {
// Trace message
- this.getLogger().logTrace(MessageFormat.format("context={0},component={1},value={2} - CALLED!", context, component, value)); //NOI18N
+ this.getLogger().logTrace(MessageFormat.format("validate: context={0},component={1},value={2} - CALLED!", context, component, value)); //NOI18N
// All accepted, required fields
String[] requiredFileds = {"firstName", "familyName", "city", "street"}; //NOI18N
super.preValidate(context, component, value, requiredFileds);
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLogger().logTrace("validate: EXIT!"); //NOI18N
}
}