You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Albert Kwong <ma...@yahoo.com> on 2005/03/20 07:49:13 UTC

Spindle and code generation

Hi Geoff,

    Spindle is really cool.  Thanks for this great
piece of work.  I think it can be further enhanced
with some code generation.

    In using tapestry, I find it useful to generate a
PageInventory.java file from .application.  This java
file would contain constants for refering to defined
pages.  Then, all other Java classes can refer to
these constants for page loading and I can get compile
time validation on the page names.  It is especially
useful when I move pages around.

    Another piece of code generation I do is from
.page/.component files to interfaces.  I would use the
class attribute of <page-specifications> together with
<property-specification> to generate the getters and
setters in an interface.  My page classes can then
implement these interface and I don't need to worry
about creating abstract getters/setters manually.

    Right now I am doing these code generation with
maven & velocity.  If Spindle can do this
automatically, it would be even better. :)

Albert

--- Geoff Longman <gl...@gmail.com> wrote:
> thanks for the thanks!
> 
> This version is a "first cut". I did the min
> required to build it on
> both versions of Eclipse. My (albeit lacking)
> testing showed that the
> issues people identified first are working.
> 
> pls log bugs if you find any problems!
> 
> Geoff
> 
> 
> 
> On Sat, 19 Mar 2005 20:55:16 -0500, Kevin Menard
> <ni...@negativetwenty.net> wrote:
> > Thanks for the hard work Geoff.  Sorry I wasn't
> able deliver on getting it
> > to work with 3.1.  I look forward to trying this
> out on 3.1.18.  Maybe I can
> > use Java5 with my Tapestry stuff now :-)
> > 
> > --
> > Kevin
> > 
> > 
> > On 3/18/05 10:23 PM, "Geoff Longman"
> <glongman@gmail.com > wrote:
> > 
> > > Actually it works in both 3.0 and 3.1M5
> > >
> > > more info here:
> > >
> > >
>
http://www.jroller.com/page/glongman/20050318#spindle_3_1_18_first
> 
> > >
> > > Geoff
> > >
> > >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> tapestry-user-unsubscribe@jakarta.apache.org 
> > > For additional commands, e-mail:
> tapestry-user-help@jakarta.apache.org 
> > >
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> tapestry-user-unsubscribe@jakarta.apache.org 
> > For additional commands, e-mail:
> tapestry-user-help@jakarta.apache.org 
> > 
> >
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tapestry-user-help@jakarta.apache.org
> 
> 

Are you an MBA?  Check out http://www.mba.hk for value added services.

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


Re: Spindle and code generation

Posted by Geoff Longman <gl...@gmail.com>.
There is already a feature request for this. The last few months have
been tough personally so development has been somewhat stalled. Things
are looking up and I'm starting to do the work required to make
Spindle support Tapestry 3.1. That work will dominate my free time for
quite a while. After that I will be going down the rfe list for sure.

Geoff


On Sun, 20 Mar 2005 14:49:13 +0800 (CST), Albert Kwong
<ma...@yahoo.com> wrote:
> Hi Geoff,
> 
>     Spindle is really cool.  Thanks for this great
> piece of work.  I think it can be further enhanced
> with some code generation.
> 
>     In using tapestry, I find it useful to generate a
> PageInventory.java file from .application.  This java
> file would contain constants for refering to defined
> pages.  Then, all other Java classes can refer to
> these constants for page loading and I can get compile
> time validation on the page names.  It is especially
> useful when I move pages around.
> 
>     Another piece of code generation I do is from
> .page/.component files to interfaces.  I would use the
> class attribute of <page-specifications> together with
> <property-specification> to generate the getters and
> setters in an interface.  My page classes can then
> implement these interface and I don't need to worry
> about creating abstract getters/setters manually.
> 
>     Right now I am doing these code generation with
> maven & velocity.  If Spindle can do this
> automatically, it would be even better. :)
> 
> Albert
> 
> --- Geoff Longman <glongman@gmail.com > wrote:
> > thanks for the thanks!
> >
> > This version is a "first cut". I did the min
> > required to build it on
> > both versions of Eclipse. My (albeit lacking)
> > testing showed that the
> > issues people identified first are working.
> >
> > pls log bugs if you find any problems!
> >
> > Geoff
> >
> >
> >
> > On Sat, 19 Mar 2005 20:55:16 -0500, Kevin Menard
> > <nirvdrum@negativetwenty.net > wrote:
> > > Thanks for the hard work Geoff.  Sorry I wasn't
> > able deliver on getting it
> > > to work with 3.1.  I look forward to trying this
> > out on 3.1.18.  Maybe I can
> > > use Java5 with my Tapestry stuff now :-)
> > >
> > > --
> > > Kevin
> > >
> > >
> > > On 3/18/05 10:23 PM, "Geoff Longman"
> > <glongman@gmail.com > wrote:
> > >
> > > > Actually it works in both 3.0 and 3.1M5
> > > >
> > > > more info here:
> > > >
> > > >
> >
> http://www.jroller.com/page/glongman/20050318#spindle_3_1_18_first 
> >
> > > >
> > > > Geoff
> > > >
> > > >
> >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > tapestry-user-unsubscribe@jakarta.apache.org 
> > > > For additional commands, e-mail:
> > tapestry-user-help@jakarta.apache.org 
> > > >
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > tapestry-user-unsubscribe@jakarta.apache.org 
> > > For additional commands, e-mail:
> > tapestry-user-help@jakarta.apache.org 
> > >
> > >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > tapestry-user-unsubscribe@jakarta.apache.org 
> > For additional commands, e-mail:
> > tapestry-user-help@jakarta.apache.org 
> >
> >
> 
> Are you an MBA?  Check out http://www.mba.hk for value added services.
>

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


Hivemind and Hibernate Tutorial for Hiberclipse Plugin

Posted by sa...@women-at-work.org.
Hi there!

I found a good tutorial on Hibernate on the brownbag tutorials website.

I also found a small example on how to use hivemind, however it just showed
how to inject a value into a class and then to display the object within a
tapestry page. So it was just a simple introduction. I still dont know how
to just display data from a database or how to delete data from the database
or how to update data or do some queries. 

My situation is the following:

1. a installed the hiberclipe plugin and hibernate synchronizer
2. I installed the hivemind plugin

I am missing some information now about combining the hivemind and
hibernate, especially when I want to use the classes that are already
generated by the plugin.

I also dont know what options I need for the generation, e.g. whether to use
proxy classes or not.

Has anyone found a tutorial on how to work with tapestry, hivermind and
hibernate that is based on using the hiberclipse tool ?



Thanks!

Sarah

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