immediate being true causes a whole bunch of issues. It is what
started me looking at subForm in the first place.

On 6/16/06, Conway. Fintan (IT Solutions) <[EMAIL PROTECTED]> wrote:
Hi Andrew / Matthias,

Just a wild guess, would immediate="true" in the subform, cause
validation to be skipped like you want?

HTH,

Fintan

-----Original Message-----
From: Andrew Robinson [mailto:[EMAIL PROTECTED]
Sent: 16 June 2006 01:18
To: MyFaces Discussion
Subject: Re: Does SubForm do anything?


My problem is that I would have to put a subForm around every input
component, since the only parent component that I could wrap multiple
elements contains the commandLink that I wouldn't want to trigger the
validations from. Can a link in a subform NOT validate the sub for it is
in? IOW is this possible?

<s:subForm id="helperForm">
  <t:inputText />
  <t:commandLink actionFor="nothingForm" />
</s:subForm>

<s:subForm id="nothingForm" />

Clicking on the link should not include helperForm - is this true?

-Andrew

On 6/15/06, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:
> Andrew-
>
> you may take a look at [1].
> This example uses two <s:subForm/> component's and the
> <t:commandButton for="idOfSubForm"/> when you are outside of any
> subform. When you click the first button (Show current values of
> Person) - on a empty form_page - you'll get validations messages for
> "First name" and "last name".
>
> For the second button (Show current values of Vehicle) you'll only get

> the validation messages for "Type" and "Make".
>
> The example has no "global" input component (like yours).
>
>
> -Matthias
>
> [1] http://www.irian.at/myfaces-sandbox/subForm.jsf
>
> On 6/15/06, Adam Winer <[EMAIL PROTECTED]> wrote:
> > Andrew,
> >
> > I don't know the subform sandbox component specifically (just the
> > Trinidad component that partly inspired it);  but I suspect that
> > components that are outside of any subform will always process.
> > Components that are in a subform other than the one that was
> > submitted will not.
> >
> > -- Adam
> >
> >
> > On 6/13/06, Andrew Robinson <[EMAIL PROTECTED]> wrote:
> > > 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
> > >
> >
>
>
> --
> Matthias Wessendorf
> Aechterhoek 18
> 48282 Emsdetten
> blog: http://jroller.com/page/mwessendorf
> mail: mwessendorf-at-gmail-dot-com
>


* ** *** ** * ** *** ** * ** *** ** *
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed.
Any views or opinions presented are solely those of the author, and do not 
necessarily  represent those of ESB.
If you have received this email in error please notify the sender.

Although ESB scans e-mail and attachments for viruses, it does not guarantee
that either are virus-free and accepts no liability for any damage sustained
as a result of viruses.

* ** *** ** * ** *** ** * ** *** ** *


Reply via email to