[prev in list] [next in list] [prev in thread] [next in thread] 

List:       groovy-jsr
Subject:    [groovy-jsr] Re: [groovy-dev] Re: [groovy-jsr] Compilationerror for using "it"
From:       Russel Winder <russel () russel ! org ! uk>
Date:       2006-01-30 16:33:17
Message-ID: 1138638797.25894.183.camel () carados ! russel ! org ! uk
[Download RAW message or body]


On Mon, 2006-01-30 at 16:07 +0000, Graeme Rocher wrote:

> Essentially grails supports dynamic tag libraries (see
> grails.codehaus.org/Dynamic+Tag+Libraries) these allow you to create
> tags as if they were just javabean setters....
> 
> The body of the tag gets passed to the tag as a closure.. the tag then
> can optionally pass a value to the closure which may be used for
> things like iterative tags.. in addition they support both JSP and GSP
> views and JSP requires you to declare the variable passed to the body
> in the taglib TLD. Hence I declared it as "it".
> 
> You can then do iterative tags like:
> 
> <gr:each in="${people}">
>       <p>${it.firstName}</p>
> </gr:each>
> 
> Hope that helps you to understand :-)

'Fraid not, it blew my head in.  I think I need more paracetamol to
fight this viral infection -- programming Groovy isn't doing the job :-)

I guess I need to play with Ruby on Rails and Grails from scratch toi
see how this computational model works currently it just looks like
overly convoluted mixing of XML and Groovy.  My problem though.

I have a need of creating a small database / finance transaction related
Web site to try out a business idea.  It took me 3ns to reject PHP, the
job is not big enough for Java per se so I had decided to use Ruby on
Rails.  Perhaps I should use Grails? 
-- 
Russel.
====================================================
Dr Russel Winder                +44 20 7585 2200
41 Buckmaster Road              +44 7770 465 077
London SW11 1EN, UK             russel@russel.org.uk

["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic