]
George Gastaldi closed FORGE-2054.
----------------------------------
Resolution: Won't Fix
Closing it as Won't fix. An enumeration should be used instead
UIInput<Boolean> is always defaulted (making requiring it as an
input impossible)
---------------------------------------------------------------------------------
Key: FORGE-2054
URL:
https://issues.jboss.org/browse/FORGE-2054
Project: Forge
Issue Type: Bug
Components: UI - Shell
Affects Versions: 2.10.1.Final
Reporter: Jess Sightler
If you set a UIInput<Boolean> as follows:
@WithAttributes(label = "fake", required = true, description = "just put
something")
It will never require the user to enter a value. This is because the default is
"false" even though no default was specified and the field is labelled as
required. This should support tri-state booleans, and it should be possible to have a
required boolean.