cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kamal Bhatt <kbh...@tt.com.au>
Subject Re: [2.1] bu:replace does not work
Date Mon, 05 May 2008 22:10:44 GMT
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


Mime
View raw message