cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From beyaRecords <>
Subject for each statement in fd:javascript
Date Fri, 14 Jan 2005 07:14:57 GMT
I have the following code in my jx file:

	<jx:forEach var="orderitem" items="${neworder.getOrderItems()}">
class="normaltext">${orderitem.getStock().getItemTitle()}</td>	</tr>

which I want to replicate in my form validation. how would I do a for 
each statement in javascript? What I want to do is:

   		var success = true;
   		var titleName = widget.lookupWidget("titleName");

		forEach var="orderitem" items="${neworder.getOrderItems()}"
		  if (${orderitem.getStock().getItemTitle()} == titleName){
			success = false

I hope this is clear?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message