-
Notifications
You must be signed in to change notification settings - Fork 100
Open
Description
I have a SPA app migrated from bootsfaces 1.5 to 2.0.0 and 2.0.1. After the migration input labels no longer show up. After reviewing the html, I don't see any <label... tags for my components.
I am using java 21 and running in a TomEE 10.0.0 app server. I tried Jakarta Faces (TomEE plume) and myfaces (TomEE plus).
b:selectOneMenu example:
<h:body>
<ui:composition>
<h:form id="listForm" prependId="false">
<b:panel iconAwesome="laptop fa-1x" icon-align="left" id="panelId" title="My Solutions" look="primary">
<b:column styleClass="table-bordered">
<b:column col-md="4">
<b:selectOneMenu id="solutionType" label="Solution Filter"
value="#{solutionController.filter}"
onchange="ajax:solutionController.doFilterChange()"
update="tsDataTable @(.btn-row)">
<f:selectItem itemLabel="#{null}"/>
<f:selectItems value="#{solutionController.filterList}" />
</b:selectOneMenu>
b:inputText (inside a modal and form) example:
<b:inputText id="name" label="Name" styleClass="form-control"
required="true" maxlength="100"
value="#{solutionController.selected.name}"/>
Note: When running in TomEE plume 10.0.0 (Jakarta Faces) and rendering the first page, I received: javax.faces.FacesException: Cannot add the same component twice: ... The solution was to replace the app server's jakarta.faces-4.0.8 with jakarta.faces-4.0.9 found in 'tomee-plume-folder'/lib. Maybe this will help others.
Metadata
Metadata
Assignees
Labels
No labels