Hi Vladimir,

Sorry again about the delay, and thanks for the reminder. I just looked through your patch, and it looks like quite a useful feature. I have a few questions:

- You added this capability in for the "text with autocomplete" input type, but not for "textarea with autocomplete". Is there a reason for that, or you just didn't need it for textareas?

- Will this work for inputs that allow multiple values? It seems like it won't.

- It appears that this validation will only kick in if the field is declared as "mandatory". Is that true, and if so, is it on purpose?

-Yaron


On Wed, Dec 7, 2011 at 1:16 AM, Vladimir Kostyukov <vladimir.kostukov@gmail.com> wrote:
Hi Yaron,

Have you looked into my patch about validation. Could you please update status?


On Wed, Nov 30, 2011 at 12:35 AM, Yaron Koren <yaron@wikiworks.com> wrote:
Hi Vladimir,

Sorry about the delay - we've had the Thanksgiving break here, which has restricted my internet time significantly. This patch sounds very interesting, and I plan to look at it at some point soon, unless someone else does first.

-Yaron

On Tue, Nov 29, 2011 at 12:26 PM, Vladimir Kostyukov <vladimir.kostukov@gmail.com> wrote:
Hi All! I'veresent my mail about validation patch, because I haven't
got any feedback.

I've justsuccessfully implemented correct validation feature in
Semantic Forms (see attached).

Actually, when I've started use SMW I was surprised that it is not
support any validation mechanism (I mean one-to-many case).

Now, we can use "existing values only" property for "text with
autocompleteinput" and with "combobox" elements. But I've changed
behaviorof validation mechanism. Now incorrect fields are not
clearing when user input incorrect data. It is checking onsubmitting
phase.

Also my patch fixed bug with fields which edited last. For instance:
we can enable "existing values only" for combobox in current
implementation and it will not work for fields, in which we enter
incorrect data and than click submit (without changing focus) (see
"change" event of jQuery).

In current patch version there is not special message for "non
existing value". I am using "blank field" message.

I use my patch in our corporate project and it works fine. What do
think about it?

--
Thanks,
Vladimir Kostyukov

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel




--
WikiWorks MediaWiki Consulting http://wikiworks.com



--
Thanks,
Vladimir Kostyukov




--
WikiWorks MediaWiki Consulting http://wikiworks.com