Java-Console-View icon indicating copy to clipboard operation
Java-Console-View copied to clipboard

Missing setInputErrorMessage on ViewConfig.Builder

Open JorgeVV opened this issue 7 years ago • 3 comments

The Builder class in ViewConfig has setter for Menu selection message, Pause message, Quit message... for all its private fields, except for Input error message, being impossible to change the "Invalid input. Please try again:" message.

JorgeVV avatar Jun 07 '17 07:06 JorgeVV

Can you provide a little bit more info please? I'll try to fix it.

thousandlemons avatar Jun 07 '17 09:06 thousandlemons

Edited.

JorgeVV avatar Jun 07 '17 10:06 JorgeVV

Indeed in ViewConfig the setInputErrorMessage is not available, so we can't customize the error message if we've downloaded trough maven and the IDE "blocks the code", but we can download the lib and make the changes by adding the missing method.

Also there is something I don't quite understand how to do.

Lets suppose we are validating a field. And the validation returns false. How can we go back to the menu ? currently it keeps saying that the entry is invalid, and I don't understand how to go back.

Thanks.

JTMMartins avatar Sep 18 '17 16:09 JTMMartins