Hi, sorry for the late reply, was spending the time doing up the
configuration handler over the rest of last week.



vmassol wrote
>> The part that worries me the most ATM is how to display nicely to the
>> user the result of the validation. I don’t see how we can do that for
>> now. Do you have an idea? I think this could go hand in hand with a
>> feature we’ve been wanting for a long time (can’t fine the jira right
>> now): the ability to capture logs when rendering a page and display them
>> as notifications in the UI.
>> 
>> So the idea could be the following:
>> * The RedPen listener would issue warnings for example in the logs
>> * In the future when we implement the feature I mentioned, the user will
>> be able to see them in the UI

I was looking around, and do you think for now, we could use a modal popup
to indicate the errors and validation messages, aside from issuing warnings
in the logs?



vmassol wrote
>> I also think you need to include the concept of Validation Severity (i.e.
>> warning, error). And when it’s a warning it should never stop saving the
>> page. Only errors would do that.

As far as I know, whether the validation is a warning or an error depends on
the ValidatorConfiguration object itself, for example, a SentenceLength
validator gives out a warning message while a SuccessiveWord validator gives
out an error. 
I will work on it right away to split the error-giving validators and the
warning-giving validators. For now, I'll just put all the validation
messages on the logs. Is that okay?



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/GSOC-Update-3-RedPen-Integration-tp7604255p7604287.html
Sent from the XWiki- Dev mailing list archive at Nabble.com.

Reply via email to