You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Duncan McLean <du...@blueyonder.co.uk> on 2006/03/16 16:50:44 UTC

One for the forms Ajax experts

Hi

We have a form that has several fields that are enabled/disabled through
on-change events in the form. This works fine, and with Ajax too...

We also have validation which includes a list of "validation-errors"
which displays all errors in the form at the top of the form (in this case).

The markup works as expected when Ajax is NOT enabled (including the list
of errors at the top of the screen). However, with Ajax turned on, these
messages (invoked by <validation-errors/> at the top of the form do NOT
appear. The other validation mark-up appears as expected.

I thought that this was just our mistake, but the examples that come with
cocoon exhibit this same behaviour (I had to add the <validation-errors/>
in the Ajax examples to prove this.

Is this a bug, or can the form styling xsl be changed to allow these to be
shown??
(We are using Cocoon v2.1.8)

Any help much appreciated

Thanks

Duncan


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: One for the forms Ajax experts

Posted by Antonio Gallardo <ag...@agssa.net>.
Duncan McLean wrote:

> Hi Jason
>
> Thanks for drawing my attention to this...
>
> Are there any workarounds, or will have to choose between 
> ajax-enabling our forms or having validation-errors work, for the time 
> being?

An optional "Turn off ajax" attribute per widget [1]. Please note, this 
patches didn't find a way into cocoon because the cforms ajax 
implementation in 2.1.9-dev uses dojo [2].

Best Regards,

Antonio Gallardo.

[1] https://issues.apache.org/jira/browse/COCOON-1570#action_12369852
[2] http://dojotoolkit.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: One for the forms Ajax experts

Posted by Duncan McLean <du...@blueyonder.co.uk>.
Hi Jason

Thanks for drawing my attention to this...

Are there any workarounds, or will have to choose between ajax-enabling 
our forms or having validation-errors work, for the time being?

Thanks

Duncan

Jason Johnston wrote:
>> We have a form that has several fields that are enabled/disabled through
>> on-change events in the form. This works fine, and with Ajax too...
>>
>> We also have validation which includes a list of "validation-errors"
>> which displays all errors in the form at the top of the form (in this
>> case).
>>
>> The markup works as expected when Ajax is NOT enabled (including the list
>> of errors at the top of the screen). However, with Ajax turned on, these
>> messages (invoked by <validation-errors/> at the top of the form do NOT
>> appear. The other validation mark-up appears as expected.
>>
>> I thought that this was just our mistake, but the examples that come with
>> cocoon exhibit this same behaviour (I had to add the <validation-errors/>
>> in the Ajax examples to prove this.
>>
>> Is this a bug, or can the form styling xsl be changed to allow these to be
>> shown??
>> (We are using Cocoon v2.1.8)
>>     
>
> This is a known issue:
>
> https://issues.apache.org/jira/browse/COCOON-1570
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>
>
>   



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: One for the forms Ajax experts

Posted by Jason Johnston <co...@lojjic.net>.
> We have a form that has several fields that are enabled/disabled through
> on-change events in the form. This works fine, and with Ajax too...
>
> We also have validation which includes a list of "validation-errors"
> which displays all errors in the form at the top of the form (in this
> case).
>
> The markup works as expected when Ajax is NOT enabled (including the list
> of errors at the top of the screen). However, with Ajax turned on, these
> messages (invoked by <validation-errors/> at the top of the form do NOT
> appear. The other validation mark-up appears as expected.
>
> I thought that this was just our mistake, but the examples that come with
> cocoon exhibit this same behaviour (I had to add the <validation-errors/>
> in the Ajax examples to prove this.
>
> Is this a bug, or can the form styling xsl be changed to allow these to be
> shown??
> (We are using Cocoon v2.1.8)

This is a known issue:

https://issues.apache.org/jira/browse/COCOON-1570



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org