Hi all,
Suppose there exists an input type using NumbericField to validate.
<code>
<input jwcid="@contrib:NumericField" displayName="Sample Number"
type="Long" value="ognl:sampleVO.number" />
</code>
Here the defined type is Long ,cause I don't want the default value 0
of long displayed in the field. Long will initial null for the default
value , then this can solve above problem , but when later you want to
get the long if nothing is inputted then the following
<code>
Long.longValue()
</code>
method it will throw null pointer exception. If you initialized before
, then it will display a default value for that.
So my question is , is it possible to avoid display the default value
when type is long?
Second, if I use the second solution how can I set a default value for
this ? I don't want to check if nothing is inputted , cause there will
be tens of the fields need that kind of check.
Thanks for your concern.
Best regards,
Vincent
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]