very quick shot:

I had this problem a time because I forgot to add the taglib or used a
wrong prefix.
<%@ taglib uri="http://myfaces.apache.org/sandbox"; prefix="s"%>

Subforms are working well in my app.
Your code looks ok to me.


-----Original Message-----
From: Andrew Robinson [mailto:[EMAIL PROTECTED] 
Sent: Dienstag, 13. Juni 2006 15:39
To: MyFaces Discussion
Subject: Does SubForm do anything?

I attempted to use the subForm sandbox component with absolutely no
luck.

I had a page like:

<f:form>
  <t:panelGrid>
    <t:panelGroup>
      <t:inputText required="true"><f:validateLength minimum="15"
maximum="30"/></t:inputText>
    </t:panelGroup>
    <t:panelGroup>
      <s:subForm id="clickMeForm">
        <t:commandLink value="clickMe" />
      </s:subForm>
    </t:panelGroup>
  </t:panelGrid>
</f:form>

When I click the command link, I get validation errors from the input
text outside of the subform. Correct me if I am wrong, but I thought
the whole point of the subform was to stop validation and updating
outside of that component.

What am I doing wrong?

Tomahawk 1.1.2
Sandbox snapshot 2006-05-13

Thanks,
Andrew




Reply via email to