Andres, IN general I find it is quite useful to avoid primitives for attributes exposed in Stripes forms... and instead use their object versions as Samuel pointed out... which has the nice effect of a blank form field converting to a null value vs. being set to a primitive default value like 0.
IN this way by leveraging Objects null acts as if the user didn't supply a value which is very valuable... ;-) --Nikolaos Samuel Santos wrote: > Hi Andres, > > Define your field type as integer instead of int. > > -- > Samuel Santos > http://www.samaxes.com/ > > > On Wed, Jan 26, 2011 at 2:22 PM, andres <ispanand...@yahoo.es > <mailto:ispanand...@yahoo.es>> wrote: > > A question about the Stripes form variable. > > I have declared price variable as a int in the class. In the jsp > form stripes assigned to this field 0. My question is how to avoid > it then appears 0 in the field? > > Thank you very much for answers. > > > > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better > price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > Stripes-users mailing list > Stripes-users@lists.sourceforge.net > <mailto:Stripes-users@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/stripes-users > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > ------------------------------------------------------------------------ > > _______________________________________________ > Stripes-users mailing list > Stripes-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/stripes-users > -- Nikolaos Giannopoulos Director of Information Technology BrightMinds Software Inc. e. nikol...@brightminds.org w. www.brightminds.org t. 1.613.822.1700 c. 1.613.797.0036 f. 1.613.822.1915 ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users