Problem solved......

thanks for your help


regards


Andrew
On 16 Nov 2004, at 12:41, beya! wrote:

<x-tad-bigger>Hi,
I have created a widget as so:</x-tad-bigger>


<x-tad-bigger><fd:widgets>
<fd:field id="quantity">
<fd:label>Quantity</fd:label>
<fd:datatype base="integer"/>
</fd:field>
</fd:widgets>

Quantity is an attribute of an orderitem, so what I want the validation to do is:

1. If neworder.getOrderItems() is null, submit the form only if the quantity field has an integer value.
2. If neworder.getOrderItems() is not null, submit the form if quantity has an integer value or not.

How do I represent this in my widget definition?

many thanks


Andrew




</x-tad-bigger>


<<inline: beya-email.gif>>


�+The home of urban music
+ http://www.beyarecords.com

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

Reply via email to