cocoon-users mailing list archives

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

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

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:

   	<fd:javascript>
   		var success = true;
   		var titleName = widget.lookupWidget("titleName");

		forEach var="orderitem" items="${neworder.getOrderItems()}"
		  if (${orderitem.getStock().getItemTitle()} == titleName){
			success = false
           }
		}
		.......
   	</fd:javascript>

I hope this is clear?

Uzo


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


Mime
View raw message