Grzegorz Kossakowski wrote:

I don't think so it is going to work without minor adjustments. You will need 
to wrap fi:* you are
generating manually with bu:replace tags according to a widget value change. 
You just need to add
construct like:
<jx:if test="form.updatedWidgetIds.contains('label')">
  <bu:replace>
     <fi:label>
       <jx:out
value="${form.getChild('styles').getRow(style_idx).getChild('style_flds').getRow(repeaterLoop.index).getChild('label').value}"/>
     </fi:label>
  </bu:replace>
</jx:if>

It must be done that way so update of label is performed only if widget that 
label value relies on
was changed. Construct shown above will work in non-AJAX mode, also.

I must admit I was typing from my head so there may be some minor details 
missing.
Am I correct in assuming that if we don't use ajax then the bu:replace in not necessary? Is there anywhere I can find documentation on the "bu" namespace?

Yep, it has been discussed a long time ago. I found a good response from 
Sylvain on this topic:
http://article.gmane.org/gmane.text.xml.cocoon.devel/35520

Reading from that, your solution is not a hack really. You only need to adopt 
it to AJAX techniques.

I hope that helps you a bit.

Thanks for that. I personally disagree with the statement that this shouldn't be done dynamically. The next thread suggests that the concept may be revisited if someone could come up with a usecase. Does my scenario count?

Thanks for the reply.

Kamal.


--
Kamal Bhatt


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to