Re: Fw: primative boolean null?
Attila Szegedi <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Glad we could help :-) Attila. On Sep 25, 2008, at 3:59 PM, [email protected] wrote: > This mailing list is great. Without fail, I always find my typos just > after sending a plea for help. Keep up the good work. > > > ----- Forwarded by David McReynolds/Contractor/TotalSystem on > 09/25/2008 > 09:58 AM ----- > > David McReynolds/Contractor/TotalSystem > 09/25/2008 09:30 AM > > To > [email protected] > cc > > Subject > primative boolean null? > > > > > > I unable to explain why freemarker thinks this boolean primative is > null. > Any ideas? The method getCanDriveAccountNegative() returns boolean. > I've > tried isCanDriveAccountNegative(), too. Same result. I know that > feeSetup > is not null because the references before that all work. > > <tr><td>Account > Subtype:</td><td>${feeSetup.accountSubType}</td></tr> > <tr><td>Allow a fee to drive an account > negative:</td><td>${feeSetup.canDriveAccountNegative?string}</td></tr> > > > 09:26:56,272 line:271 ERROR [ContainerBase->invoke] > Servlet.service() for > servlet internaladmin threw exception > Expression feeSetup.canDriveAccountNegative is undefined on line 17, > column 77 in global/views/feeConfirm.ftl. > The problematic instruction: > ---------- > ==> ${feeSetup.canDriveAccountNegative?string} [on line 17, column > 75 in > global/views/feeConfirm.ftl] > in include content [on line 68, column 17 in global/views/shell.ftl] > ---------- > > Java backtrace for programmers: > ---------- > freemarker.core.InvalidReferenceException: Expression > feeSetup.canDriveAccountNegative is undefined on line 17, column 77 in > global/views/feeConfirm.ftl. > at freemarker.core.TemplateObject.assertNonNull( > TemplateObject.java:124) > at freemarker.core.TemplateObject.invalidTypeException( > TemplateObject.java:134) ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/