Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Labels do not show up for Input #1203

Open
kvj2020 opened this issue Jan 23, 2025 · 0 comments
Open

Labels do not show up for Input #1203

kvj2020 opened this issue Jan 23, 2025 · 0 comments

Comments

@kvj2020
Copy link

kvj2020 commented Jan 23, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant