You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Dennis Byrne <de...@dbyrne.net> on 2005/07/19 03:06:13 UTC
validation ignored when target points to an iframe
The following works. If the commandButton is pressed when
the inputText control is empty, the update method is not
invoked because inputText[@required] = true.
<f:view>
<h:form>
<h:inputText id="test" required="true"/>
<x:message for="test" />
<h:commandButton action="#{waterbdyBacker.update}" />
</h:form>
</f:view>
<iframe name="iframe" ></iframe>
If I set h:form[@target] = 'iframe', validation is ignored
and the form is submitted to the iframe. Ideas?
Dennis Byrne