我有一個JSF組件index.jsp
JSP文件:java.lang.IllegalStateException:組件javax.faces.component.UIViewRoot預計不會式
<body>
<h:form prependId="false">
<h:panelGrid id="panelLogin" columnClasses="colLabel,colValor" columns="2">
<f:facet name="header">
<h:outputText value="Panel de Log-In" />
</f:facet>
<h:outputLabel value="Usuario" for="txtNombre" />
<h:inputText id="txtNombre" value="#{manejadorLogin.usuario}" />
<h:outputLabel value="Password" for="txtPassword" />
<h:inputText id="txtPassword" value="#{manejadorLogin.password}" />
<f:facet name="footer">
<h:panelGrid columns="2">
<h:commandButton value="Login" action="#{manejadorLogin.loginUsuario}" />
<h:commandButton value="Limpiar" type="reset" />
</h:panelGrid>
</f:facet>
</h:panelGrid>
</h:form>
</body>
當我按下「登錄」按鈕,我得到這個錯誤:
An Error Occurred: java.lang.IllegalStateException: Component [email protected] not expected type. Expected: javax.faces.component.UIOutput. Perhaps you're missing a tag?
這是怎麼回事,我該如何解決呢?
太感謝你了;!現在我在另一臺電腦上,但明天當我醒來時我會嘗試它!...再次感謝您的時間...... – Agustin