RE: List of directives

"Christian Cryder" <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
Line 500 of TemplateHelper...if Get_Data returns null the node containing
this directive should be skipped.

Note that a _better_ way to do this is to use a custom directive, like this:

In the markup...
 <td class="Dir::IsVisible.ContractModel">
    ...
 <td>

In the model...

   //process any custom directives
   public boolean processDirective_SQL(TemplateDirective td) throws
SQLException {
       if (td.getCommand().equals(IS_ADD_MODE)) {
           return isAddMode;
       } else {
           return true;
       }
   }

This approach has the advantage that if the directive returns false,
everything below that node is skipped (not processed).

Christian

----------------------------------------------
Christian Cryder [[email protected]]
Internet Architect, ATMReports.com
Barracuda - http://barracudamvc.org
----------------------------------------------
"Coffee? I could quit anytime, just not today"

> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]On Behalf Of Ron Alsobrook
> Sent: Monday, May 19, 2003 5:48 PM
> To: [email protected]
> Subject: [Barracuda] List of directives
>
>
> Maybe I overlooked it, but is there a list somewhere of all the
> directives that you can use in a template?  (Get_Data, Set_Attr,
> etc.)  I'm specifically looking for the one that drops an HTML
> element on NULL.  Thanks.
>
> Ron
> _______________________________________________
> Barracuda mailing list
> [email protected]
> http://barracudamvc.org/lists/listinfo/barracuda
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.