I want to check a form in a modal if its inputText is correct and update the form when it's not, but my solution makes my modal un-close-able. Has anyone a workaround that works with BootsFaces and the Java classes only?
<b:modal id="setBackupPeriodM" title="Backup-Periode verändern" styleClass="modalPseudoClass"
closable="false"
closeOnEscape="true">
<b:form id="setBackupPeriodF">
<p>Legen Sie fest in welchen Abständen automatische Backups erstellt werden sollen</p>
<b:inputText id="backupPeriodInput"
value="#{backupConfig.backupPeriod}"
label="Tage"
required="true"
requiredMessage="Bitte geben Sie eine Zeit ein."
large-screen="two-thirds">
<f:convertNumber integerOnly="true"/>
<f:validateLongRange minimum="1"/>
</b:inputText>
<b:row>
<b:column>
<b:button largeScreen="half" value="Abbrechen"
dismiss="modal" onclick="return false;"/>
<b:commandButton largeScreen="half" update="@form"
dismiss="modal"
value="Speichern" look="success"/>
</b:column>
</b:row>
</b:form>
</b:modal>