【发布时间】:2019-01-29 19:55:12
【问题描述】:
我的 input.xhtml 文件中有如下代码,它接受用户的输入。但是这个 BootsFaces 代码不起作用,如果有人遇到过这个问题,请有人帮我解决这个问题。
<b:form id="studentForm" styleClass="form-horizontal">
<h:panelGrid columns="1" cellpadding="5">
<b:inputText label="E-mail:" labelStyle="width:80px;">
<f:facet name="prepend">
<h:inputText value="#{studentBean.firstName}" styleClass="form-control" />
</f:facet>
</b:inputText>
</h:panelGrid>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<b:commandButton value="Create" action="#{studentBean.createStudentForm}" styleClass="btn btn-default" />
</div>
</div>
</b:form>
【问题讨论】:
-
要求我们推荐或查找书籍、工具、软件库、教程或其他场外资源的问题对于 Stack Overflow 来说是无关紧要的,因为它们往往会吸引固执己见的答案和垃圾邮件。相反,请描述问题以及迄今为止为解决该问题所做的工作。
-
嘿@JasperdeVries,如果你能帮助我解决我的问题,我将非常感谢你,因为我已经在我的问题中解释了真实场景,请建议我如何克服这个问题。
-
请提供minimal reproducible example。你现在给我们的工作不多。请定义“不工作”。
标签: jsf bootsfaces