On Apr 4, 2005 4:21 AM, Vinod Singh <[EMAIL PROTECTED]> wrote:
Hi All,
I am using myfaces with tiles so all of my jsp pages are inside <f:subview
>. My problem is that the <h:message for="" /> tag does not work
for <h:form> tag meanwhile it works for other components. But <h:messages
/> works for <h:form> also.
A typical page is like below-
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<f:loadBundle basename="Message" var="Message"/>
<link rel="stylesheet" type="text/css" href="" />
<h:outputText value="CLIENT"/>
<h:form id="clientForm">
<h:message for="" errorClass="errMsgStyle" infoClass="
infoMsgStyle" showSummary="true" showDetail="true" />
<h:panelGrid columns="3">
<h:outputText value="#{Message.client_name_label}" />
<h:inputText id="client_id" value="#{Client.client_id}" required="
true" size="40">
<f:validateLength maximum="30" minimum="3" />
</h:inputText>
<h:message for="" />
<h:outputText value="#{Message.client_desc_label}" />
<h:inputText id="description" value="#{Client.description}"
required="true" size="40">
<f:validateLength maximum="50" minimum="1" />
</h:inputText>
<h:message for="" />
<h:commandButton id="submit" action="" value
="#{Message.client_submit_button}" />
</h:panelGrid>
</h:form>
Any clues.
Thanks
Vinod
--
-Heath Borders-Wing
[EMAIL PROTECTED]

