Re: z3cform Inline validation failures on schema.Bool, possibly others

Sean Upton <[email protected]>
Newsgroups gmane.comp.web.zope.plone.devel
Message-ID <CANjV-2NK6MwOr3Q+sPXdXnigqX2K1VrW3gSaay747Si_BbLeZg@mail.gmail.com>
On Fri, Sep 20, 2013 at 11:01 AM, David Glick (Plone)
<david.glick-z4DKO/[email protected]> wrote:
> On 9/20/13 9:56 AM, Sean Upton wrote:
>>
>> plone.app.z3cform.inline_validation.InlineValidationView chokes with
>> BadRequest on any widget that does not define a data-fieldname
>> attribute in the DOM, which breaks on schema.Bool, and possibly other
>> field/widget types.
>>
>> See:  https://dev.plone.org/ticket/13741
>>
>> Any objections to my proposed solution of making validation (in both
>> JS in Products.CMFPlone and the view in plone.app.z3cform) ignore the
>> case of no fieldname as a non-error condition?
>
>
> Sounds fine. We should also fix the checkbox ploneform-render-widget view in
> plone.app.z3cform to specify the fieldname.

Agreed; I have added such as a distinct ticket, as I would like to
solve the former problem more expeditiously:

https://dev.plone.org/ticket/13742

>
>>
>> Also, it seems reasonable for inline validation to ignore blur events
>> on checkboxes, no?
>
> Why? It's common to have a checkbox that must be checked (e.g. "I hereby
> give my approval and signature." sort of thing)

Good point, I have adjusted the ticket description accordingly.

Thanks for the input.

Sean

------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.