Re: [Stripes-users] Accessing annotations directly from JSP/EL

2010-12-21 Thread Oscar Westra van Holthe - Kind
On 21-12-2010 at 12:32, Ross Sargant wrote:
> I think I'm running in to problems because instances of annotations are not
> actually java beans.
> As an example if the annotation is defined as
> *
> @Retention(RetentionPolicy.RUNTIME)
> @Target(ElementType.FIELD)
> public @interface SearchText{
> String name();
> String description();
> }*
> 
> I can't access the "name" value from EL using "${.name}".
> 
> Any suggestions for work arounds?  Is it really necessary to write bean
> style wrapper classes just to get this to work? I had a thought of dumping
> out all the annotation data into a  map so I could at least
> get to it from EL however that requires reflecting on the annotation class
> itself to get the map keys and just seems to crazy.

While it's not needed to write a wrapper class, you do need a java snippet.
Something along the lines of this:

<%
Object object = pageContext.findAttribute("annot instance name");
SearchText searchText = 
object.getClass().getAnnotation(SearchText.class);
String name = searchText == null ? null : searchText.name();
%>


Oscar

-- 
   ,-_  Oscar Westra van Holthe - Kind  http://www.xs4all.nl/~kindop/
  /() )
 (__ (  Simplicity is prerequisite for reliability.
=/  ()  -- Edsger Dijkstra, EWD498

--
Forrester recently released a report on the Return on Investment (ROI) of
Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
within 7 months.  Over 3 million businesses have gone Google with Google Apps:
an online email calendar, and document program that's accessible from your 
browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


[Stripes-users] Accessing annotations directly from JSP/EL

2010-12-21 Thread Ross Sargant
Hi There,
  I apologize in advance as this is not strictly a stripes related question
but I've searched online and can't seem to find an answer.

I'm playing around with using annotations to drive some reusable tags which
generate search forms in my applications. I want to markup fields in a
search request bean with annotations that specify a few options to the tag.
An instance of a search request bean will be passed to the tag and it will
spit out a search form for me.

I think I'm running in to problems because instances of annotations are not
actually java beans.
As an example if the annotation is defined as
*
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface SearchText{
String name();
String description();
}*

I can't access the "name" value from EL using "${.name}".

Any suggestions for work arounds?  Is it really necessary to write bean
style wrapper classes just to get this to work? I had a thought of dumping
out all the annotation data into a  map so I could at least
get to it from EL however that requires reflecting on the annotation class
itself to get the map keys and just seems to crazy.




-- 
Ross Sargant
Software Engineer
p: 954-623-6015 x2108
email: rsarg...@tvrc.com

TVR Communications LLC
541 S. State Road 7,Suite 5,Margate, Florida,33068

http://www.tvrc.com
--
Forrester recently released a report on the Return on Investment (ROI) of
Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
within 7 months.  Over 3 million businesses have gone Google with Google Apps:
an online email calendar, and document program that's accessible from your 
browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] job listings....

2010-12-21 Thread Joaquin Valdez
Thank you!

On Dec 21, 2010, at 12:41 AM, Morten Matras wrote:

> We have a stripes group in linkedIn. This is suitable for things like:
> 
> job postings
> non-technical discussions
> various notifications
> Examples of what has been built with stripes
> 
> http://www.linkedin.com/groups?gid=1266127&mostPopular=
> 
> I've just switched it to be open so that it will be indexed by search engines
> 
> 99 members so far.
> 
> There is a job board there. Let me know if you need help posting a job.
> 
> Morten
> 
> 2010/12/21 Joaquin Valdez 
> Hello!
> 
> Is there an appropriate place/site to list Stripes Job Opportunities?
> 
> Joaquin Valdez
> joaquinfval...@gmail.com
> 
> 
> 
> 
> --
> Lotusphere 2011
> Register now for Lotusphere 2011 and learn how
> to connect the dots, take your collaborative environment
> to the next level, and enter the era of Social Business.
> http://p.sf.net/sfu/lotusphere-d2d
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
> 
> 
> 
> -- 
>   Morten Matras
>   Consultant
>   Blob Communication ApS
>   Svendsagervej 42
>   DK-5240 Odense NØ
>   P: (+45) 76 6-5-4-3-2-1 / 61 71 11 03
>   W: www.blobcom.com
>   E: morten.mat...@gmail.com
> --
> Lotusphere 2011
> Register now for Lotusphere 2011 and learn how
> to connect the dots, take your collaborative environment
> to the next level, and enter the era of Social Business.
> http://p.sf.net/sfu/lotusphere-d2d___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users

Joaquin Valdez
joaquinfval...@gmail.com



--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Stripes and Groovy

2010-12-21 Thread Søren Pedersen
Whaow cool!
Thanks, Remi :)
This is going to be fun :)

Cheers
Søren

Den 21/12/2010 13.50 skrev "VANKEISBELCK Remi" :

Hi

Yes I understand : I hate to write Java code, so I'm Groovy-ing whenever I
can as well :)

If you use maven, you have almost nothing to do in order to integrate groovy
compilation : there's the gmaven plugin that does it all. It hooks in the
maven lifecycle to do the mixed java/groovy compilation for you. I'm using
it a lot, works great overall.

You just need to define the dep to groovy and configure gmaven plugin, like
this :
https://github.com/vankeisb/woko2/blob/master/pom.xml

Cheers

Remi


2010/12/21 Søren Pedersen 


>
> Hi Freddy and Remi
>
> Thanks alot for the article, Freddy.
> Will try it out :)
>
> I am looki...
--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Stripes and Groovy

2010-12-21 Thread VANKEISBELCK Remi
Hi

Yes I understand : I hate to write Java code, so I'm Groovy-ing whenever I
can as well :)

If you use maven, you have almost nothing to do in order to integrate groovy
compilation : there's the gmaven plugin that does it all. It hooks in the
maven lifecycle to do the mixed java/groovy compilation for you. I'm using
it a lot, works great overall.

You just need to define the dep to groovy and configure gmaven plugin, like
this :
https://github.com/vankeisb/woko2/blob/master/pom.xml

Cheers

Remi


2010/12/21 Søren Pedersen 

> Hi Freddy and Remi
>
> Thanks alot for the article, Freddy.
> Will try it out :)
>
> I am looking into this to see if we can use the syntactically sugar from
> Groovy. I understand what you are saying, Remi and I guess there might be
> more to it than just compile the action bean with Groovy. But anyway, we
> will play with it a little and see what happens.
>
> Thanks alot
>
> Cheers
>
> Søren
>
> Den 21/12/2010 13.16 skrev "VANKEISBELCK Remi" :
>
>
> Hi folks,
>
> Well, it's more an intro to Groovy than a real Groovy/Stripes
> integration... I think that back in the days someone had written a real
> ActionBeanResolver for Groovy, using GroovyClassLoader, that allowed hot
> class reload etc. It really leveraged some of the groovy features, not just
> allowed to write beans in another language (that finally compiles to Java
> bytecode).
>
> Otoh, as Stripes heavily relies on static type info to do the binding etc,
> using Groovy with Stripes doesn't totally pay off. Of course, you'll have
> all the sugar of Groovy (and don't make me wrong, I use it a lot and love
> it), but you'll be limited to the static world because of Stripe's nature.
> If you want more dynamic stuff to happen, you'll probably have to write
> your own property binder and a few other things...
>
> I already did some work on this (using dynamic obejcts - no classes - and
> NoSQLs in the back end). The idea was driven by CouchDb : when I saw this I
> really was impressed, those guys have invented a really different way to
> tackle webapps (with CouchApp etc). I even ended up with a MapPropertyBinder
> that binds request params on... maps :)
>
> This causes several, very high level issues (binding, validation, etc), but
> is definitly interesting. I don't really know if Stripes would fit well in
> this scenario. If anyone has ideas on the subject, I'd be happy to hear them
> !
>
> Cheers
>
> Remi
>
>
> 2010/12/21 Freddy Daoud 
>
>
> >
> > Hi Søren,
> >
> > I found the article in my archives and posted it here:
> > http://www.fdaoud.com/gr...
>
>
>
> --
> Lotusphere 2011
> Register now for Lotusphere 2011 and learn how
> to connect the dots, take your collaborative environment
> to the next level, and enter the era of Social Business.
> http://p.sf.net/sfu/lotusphere-d2d
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Stripes and Groovy

2010-12-21 Thread Søren Pedersen
Hi Freddy and Remi

Thanks alot for the article, Freddy.
Will try it out :)

I am looking into this to see if we can use the syntactically sugar from
Groovy. I understand what you are saying, Remi and I guess there might be
more to it than just compile the action bean with Groovy. But anyway, we
will play with it a little and see what happens.

Thanks alot

Cheers

Søren

Den 21/12/2010 13.16 skrev "VANKEISBELCK Remi" :

Hi folks,

Well, it's more an intro to Groovy than a real Groovy/Stripes integration...
I think that back in the days someone had written a real ActionBeanResolver
for Groovy, using GroovyClassLoader, that allowed hot class reload etc. It
really leveraged some of the groovy features, not just allowed to write
beans in another language (that finally compiles to Java bytecode).

Otoh, as Stripes heavily relies on static type info to do the binding etc,
using Groovy with Stripes doesn't totally pay off. Of course, you'll have
all the sugar of Groovy (and don't make me wrong, I use it a lot and love
it), but you'll be limited to the static world because of Stripe's nature.
If you want more dynamic stuff to happen, you'll probably have to write your
own property binder and a few other things...

I already did some work on this (using dynamic obejcts - no classes - and
NoSQLs in the back end). The idea was driven by CouchDb : when I saw this I
really was impressed, those guys have invented a really different way to
tackle webapps (with CouchApp etc). I even ended up with a MapPropertyBinder
that binds request params on... maps :)

This causes several, very high level issues (binding, validation, etc), but
is definitly interesting. I don't really know if Stripes would fit well in
this scenario. If anyone has ideas on the subject, I'd be happy to hear them
!

Cheers

Remi


2010/12/21 Freddy Daoud 


>
> Hi Søren,
>
> I found the article in my archives and posted it here:
> http://www.fdaoud.com/gr...


--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users
--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Stripes and Groovy

2010-12-21 Thread VANKEISBELCK Remi
Hi folks,

Well, it's more an intro to Groovy than a real Groovy/Stripes integration...
I think that back in the days someone had written a real ActionBeanResolver
for Groovy, using GroovyClassLoader, that allowed hot class reload etc. It
really leveraged some of the groovy features, not just allowed to write
beans in another language (that finally compiles to Java bytecode).

Otoh, as Stripes heavily relies on static type info to do the binding etc,
using Groovy with Stripes doesn't totally pay off. Of course, you'll have
all the sugar of Groovy (and don't make me wrong, I use it a lot and love
it), but you'll be limited to the static world because of Stripe's nature.
If you want more dynamic stuff to happen, you'll probably have to write your
own property binder and a few other things...

I already did some work on this (using dynamic obejcts - no classes - and
NoSQLs in the back end). The idea was driven by CouchDb : when I saw this I
really was impressed, those guys have invented a really different way to
tackle webapps (with CouchApp etc). I even ended up with a MapPropertyBinder
that binds request params on... maps :)

This causes several, very high level issues (binding, validation, etc), but
is definitly interesting. I don't really know if Stripes would fit well in
this scenario. If anyone has ideas on the subject, I'd be happy to hear them
!

Cheers

Remi


2010/12/21 Freddy Daoud 

> Hi Søren,
>
> I found the article in my archives and posted it here:
> http://www.fdaoud.com/groovy.html
>
> Cheers,
> Freddy
>
> On Tue, 21 Dec 2010 11:02:02 +0100, "Søren Pedersen"
>  said:
> > Hi guys
> >
> > I have read something about using Stripes and Groovy together and have
> > seen
> > some references around the web, but I can't seem to find a How-to
> > somewhere.
> > There is a reference to an article on DZone by Freddy, but it points to
> > nowhere.
> > Can anybody help?
>
>
> --
> Lotusphere 2011
> Register now for Lotusphere 2011 and learn how
> to connect the dots, take your collaborative environment
> to the next level, and enter the era of Social Business.
> http://p.sf.net/sfu/lotusphere-d2d
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Stripes and Groovy

2010-12-21 Thread Freddy Daoud
Hi Søren,

I found the article in my archives and posted it here:
http://www.fdaoud.com/groovy.html

Cheers,
Freddy

On Tue, 21 Dec 2010 11:02:02 +0100, "Søren Pedersen"
 said:
> Hi guys
> 
> I have read something about using Stripes and Groovy together and have
> seen
> some references around the web, but I can't seem to find a How-to
> somewhere.
> There is a reference to an article on DZone by Freddy, but it points to
> nowhere.
> Can anybody help?

--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


[Stripes-users] Stripes and Groovy

2010-12-21 Thread Søren Pedersen
Hi guys

I have read something about using Stripes and Groovy together and have seen
some references around the web, but I can't seem to find a How-to somewhere.
There is a reference to an article on DZone by Freddy, but it points to
nowhere.
Can anybody help?
--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] job listings....

2010-12-21 Thread Morten Matras
We have a stripes group in linkedIn. This is suitable for things like:


   - job postings
   - non-technical discussions
   - various notifications
   - Examples of what has been built with stripes


http://www.linkedin.com/groups?gid=1266127&mostPopular=

I've just switched
it to be open so that it will be indexed by search engines

99 members so far.

There is a job board there. Let me know if you need help posting a job.

Morten

2010/12/21 Joaquin Valdez 

> Hello!
>
> Is there an appropriate place/site to list Stripes Job Opportunities?
>
> Joaquin Valdez
> joaquinfval...@gmail.com
>
>
>
>
>
> --
> Lotusphere 2011
> Register now for Lotusphere 2011 and learn how
> to connect the dots, take your collaborative environment
> to the next level, and enter the era of Social Business.
> http://p.sf.net/sfu/lotusphere-d2d
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>



-- 
  Morten Matras
  Consultant
  Blob Communication ApS
  Svendsagervej 42
  DK-5240 Odense NØ
  P: (+45) 76 6-5-4-3-2-1 / 61 71 11 03
  W: www.blobcom.com
  E: morten.mat...@gmail.com
--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users