You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Kamal Bhatt <kb...@tt.com.au> on 2008/05/06 02:37:40 UTC

Re: [2.1] Forcing full submission of Ajax CForms

Hi,
I have given up trying to use bu:replace. Instead, I am going to do what 
is suggested here:

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

And force the "final" submission to be non-ajax. At least, that is my 
plan, but Dojo is obfuscating too much and I am having a hard time 
forcing this to happen. Can someone help me here? I can't even work out 
how this page currently isn't doing a full submission. I mean, there is 
no onsubmit on the form and there is an action.

> Sorry,
> I deluded myself, this doesn't work :( . I think I am going to have to 
> load the form on final submission.
>> Hi,
>> I am using 2.1.11 and I would like the fi:validation-errors to work.
>>
>> As such, I thought if I wrap the fi:validation-errors in a div and 
>> then wrap that div with a bu:replace. Like so:
>>
>>      <bu:replace id="brand.errors">
>>        <div id="brand.errors">
>>          <jx:if test="${cocoon.request.getAttribute('statusMsg')}">
>>            <div class="validation-error-box">
>>              <p>
>>                <strong>
>>                  <jx:out 
>> value="${cocoon.request.getAttribute('statusMsg')}" />
>>                </strong>
>>              </p>
>>            </div>
>>          </jx:if>
>>          <jx:if test="${cocoon.request.getAttribute('errorMsg')}">
>>            <div class="validation-error-box">
>>              <p>
>>                <strong>
>>                  <jx:out 
>> value="${cocoon.request.getAttribute('errorMsg')}" />
>>                </strong>
>>              </p>
>>            </div>
>>          </jx:if>
>>          <fi:validation-errors />
>>          <b> </b>
>>        </div>
>>    </bu:replace>
>>
>> Now, this works in 2.2, but it doesn't seem to work in 2.1.11. Any 
>> thoughts?
>>
>> Thanks.
>>
>
>


-- 
Kamal Bhatt


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