tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Solis <h.jr72xeof...@gmail.com>
Subject Re: Tapestry's OGNL with Hibernate
Date Tue, 01 Mar 2005 17:16:41 GMT
We use something like this:

          <tr height="20" jwcid="@Conditional" condition="ognl:
account.regimen != null" element="tr">
           <th class="titlecell"><font class="title">Regimen</font></th>
           <td class="normalcell" colspan="3"><font
class="normal">&nbsp;<span jwcid="@Insert" value="ognl:



On Tue, 01 Mar 2005 09:43:48 -0500, Christopher Yates
<CAYates@co.stark.oh.us> wrote:
> Hello,
> My Tapestry application's model layer uses Hibernate for persistence.
> My view record page is passed an entity object which was populated with
> hibernate.  The problem is that for any fields that are null in the
> database, Hibernate makes them null in the class and then I get a
> ognlException, "Unable to resolve expression".
> For example,  MyClass.variable may be null, but ognl displays it fine
> either way.
> But, if MyClass.AnotherClass.variable is null, ognl bombs out.
> What is the best, most elegant, least coding required, way to deal with
> this?  Thank you.
> -
> Chris Yates
> Stark County Data Center
> 330-451-7432 x4405

To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org

View raw message