Yeah I bumped into that as well. All the components you want to have validation "turned off" have to be in a sub form.

form
  subform
    some components
  subform
    other components

It would be nice to not have to do that, but I think there are good architectural reasons why this has to be the case. Also I am pretty sure this works:

form
  subform
     some components
     subform
        other components

then use the actionFor property on commandLink/Button to send only the inner subForm.

On 7/27/06, David Delbecq <[EMAIL PROTECTED]> wrote:
Thanks for this suggestion. I tried the subform. However, it does not
seem to disable global form validation. I have this hierarchy:

- form
   - <some components>
  ...
  - subform
    - DocumentEditor, a custom composite element made of:
       - 2 HtmlInputText
       - 1 file upload
       - 1 tomahawk htmlcommandbutton with an action listener
   - <some components>

I see from the html rendering that the subform  is taken into account
(it creates the _javascript_ mentioned in docs and allowing to manualy
submit the subform), however, it goes in validation (and fails) for
components outside the subform. Did i fail to notice some particular
trick i need to use with subforms?

Thanks for help.
Cagatay Civici wrote:
> Hi David,
>
> Check out the nightly builds;
>
> http://people.apache.org/builds/myfaces/nightly/
>
> Cagatay
>
> On 7/27/06, *David Delbecq* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:
>
>     Hi,
>
>     thanks for this information, that an interresting component.
>     However, i
>     can not find how to download sandbox extensions.  It's not present in
>     ibiblio's maven repository, neither on the apache download pages.
>
>     Thanks.
>
>     Conway. Fintan (IT Solutions) wrote:
>     > Hi David,
>     >
>     > It is possible the s:subform component in Tomahawk Sandbox will
>     do what
>     > you require.
>     >
>     > Regards,
>     >
>     > Fintan
>     >
>     > -----Original Message-----
>     > From: David Delbecq [mailto: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>]
>     > Sent: 26 July 2006 11:20
>     > To: MyFaces Discussion
>     > Subject: partial validation of value
>     >
>     >
>     > Hello,
>     >
>     > is it possible to handle partial validation of form content? I
>     need 1 or
>     >
>     > several items in a forms to be valid at a specific submit, but
>     as it is
>     > only a request for partial change in the form, it is most
>     probable the
>     > rest is not valid / finished. However, i need to keep information in
>     > rest of form even if it's not valid.
>     >
>     > Here is how my form must look like:
>     >
>     >
>     > data1 [.....]
>     > data2 [.....]
>     > data3 [.....]
>     >   subdata1.... (read-only)
>     >   subdata2.... (read-only)
>     >   subdata3.... (read-only)
>     >   subdata4 [......]  [add-subdata-button]
>     > data4 [.....]
>     > data5 [.....]
>     > [submit]
>     >
>     > when i click add-subdata-button, i need subdata4 to be validate, but
>     > textual content of data 1 -> 5  must be kept without any validation
>     > attempt.
>     > when i click submit, data 1->5 must be validated, but content of
>     > subdata4 ignored.
>     >
>     > I suppose the JSF framework has something for this, but am not sure
>     > what.
>     >
>     >
>     > * ** *** ** * ** *** ** * ** *** ** *
>     > 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