Re: [Stripes-users] Maven convention

2010-11-07 Thread dimension123 dimension123
I am curious if there are any things related to security that are going into
1.5.4.
I think the only thing lacking with stripes is security and while i
understand the argument that there are other frameworks that handle security
well, i feel large corporate tech shops turn down proposals from architects
pushing stripes because of its lack of security consideration ...security is
perhaps one of the most important factors when it comes to IT heads adopting
a new framework;  if they have to use say spring security with stripes, then
they are going to go spring all the way in many cases i think as the
impression is that it will be more economical to pour resources into
learning/adopting a single framework rather than two.
Just my 2 pennies...

On Sun, Nov 7, 2010 at 9:09 PM, Nikolaos Giannopoulos <
nikol...@brightminds.org> wrote:

>  Samuel,
>
> I am very much in favour of Maven on any project to the point that I have
> been very vocal about Stripes and Maven support.
>
> However, I would agree with Ben that for 1.5.4 that we just keep things as
> they are.  In fact, I think 1.5.4 has stewed long enough and should be
> officially released as we are approaching a year since the release of
> 1.5.3.  As I have mentioned a number of times "perception" is key in
> software IMHO and a release of 1.5.4 trumps internal project changes - at
> least for me.
>
> Speaking of which:
>
> Ben:  Any idea when 1.5.4 will be released?  It contains a lot of key fixes
> and it has baked long enough?  No???
>
> --Nikolaos
>
>
>
>
>
> Samuel Santos wrote:
>
> Ben,
>
> Consider this as an excuse to optimize our code structure ;)
>
> Cheers,
>
> --
> Samuel Santos
> http://www.samaxes.com/
>
>
> On Fri, Nov 5, 2010 at 2:04 PM, Ben Gunter  wrote:
>
>> This is something we can consider after the release of 1.5.4. I didn't
>> feel the need to add a Maven build in the first place, and I surely don't
>> like the idea of having to move stuff all around to accommodate it so there
>> will be resistance.
>>
>> -Ben
>>
>>
>> On Sun, Oct 31, 2010 at 11:17 AM, VANKEISBELCK Remi wrote:
>>
>>> Hi Nathan,
>>>
>>> In order to keep the current tooling (ant, ide settings, scripts, etc)
>>> working, and to get the first maven build working smoothly without being
>>> intrusive, it has been agreed that nothing had to be changed.
>>>
>>> Now that it works, I already talked about some refactoring of the folders
>>> to allow less config in poms, and more importantly, to allow tests to be in
>>> the same module than the core code.
>>>
>>> For the moment, due to the folder layout that was imposed, I had to
>>> create a specific module for the unit tests. This means that the core module
>>> is built (and deployed if you do mvn deploy) even when tests fail. It only
>>> has to compile to get installed/deployed into maven repos. That sucks (not
>>> that word again...) a lot, and IMHO is the main reason to so some small
>>> refactorings.
>>>
>>> Ben ? Have you thought about it a little ? Would you mind if I do some
>>> small surgery in 1.5.x and trunk so that we have the tests in the core
>>> module ?
>>>
>>> Cheers
>>>
>>> Remi
>>>
>>>
>>> 2010/10/31 Nathan Maves 
>>>
 Just curious if anyone has thought to migrate the current layout of the
 stripes code to use more Maven conventions?

  Nathan

>>>
>>
>>
>> --
>> The Next 800 Companies to Lead America's Growth: New Video Whitepaper
>> David G. Thomson, author of the best-selling book "Blueprint to a
>> Billion" shares his insights and actions to help propel your
>> business during the next growth cycle. Listen Now!
>> http://p.sf.net/sfu/SAP-dev2dev
>> ___
>> Stripes-users mailing list
>> Stripes-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>>
>>
>
>
> --
> The Next 800 Companies to Lead America's Growth: New Video Whitepaper
> David G. Thomson, author of the best-selling book "Blueprint to a
> Billion" shares his insights and actions to help propel your
> business during the next growth cycle. Listen Now!
> http://p.sf.net/sfu/SAP-dev2dev
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
--
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] ActionBean and "PageOnLoad"

2010-11-06 Thread dimension123 dimension123
Nice. I had actually ordered that book this morning before even posting my
question.  I was hoping for a solution before the book gets here however.
In my case i'm not really trying to build a menu, but rather tabs.  To do
that, i feel i need a way to be able to reference an actionbean from the
layout component that is always visible and when pages are loaded rather
than submitted.  That way i can either call a method on the actionbean to
determine if the current user is entitled or not to view certain areas of
the page.
Not quite sure yet how to do it.

On Sat, Nov 6, 2010 at 8:29 PM, Nikolaos Giannopoulos <
nikol...@brightminds.org> wrote:

> Mike,
>
> What you are looking for and more is covered in Freddy Daoud's book on
> Stripes.
>
> The mechanism you are looking for is as follows:
>
> beanclass="org.test.ui.web.action.view.support.MenuViewHelper"
> prependContext="false">
>
>
>
>
> There is a lot happening there so have fun... and get the book (it goes
> into more detail on how the sections can be represented using enums and
> localization and more)... its well worth it... .
>
> --Nikolaos
>
>
>
> dimension123 dimension123 wrote:
> > Hi,
> >
> > I am using stripes layout to create a 'master page' of sorts.  One of
> > the layout component (the 'header' layout) is responsible for rending
> > the horizontal tab menu on the page.  Since this is the header, it
> > appears for all pages of course.  I need the tabs that are displayed
> > to be dynamic based on user roles.  For instance,  If a user is Guest
> > vs a Registered User, the tabs will be different.  If a user is an
> > "Administrator", an Admin tab will show. etc.
> >
> > My base actionbean has a method that that delegates to a
> > SecurityService that can determine which roles a user has.  The issue
> > i'm having is how to do this the 'right' way. Right now, when you
> > first land on a page, it does not appear as though there is a way to
> > invoke an actionbean method.  This seems to happen only if you submit
> > the page or if you use a url that is bound to the actionbean (i.e.
> > /MyActionBean.action).  It seems as though the ActionBean does not
> > really come into scope until that happens.
> >
> > Is there away to make an actionbean come into scope when a page is
> > first loaded?
> > Is there away to bind an actionbean to a stripes layout component such
> > that, in the case described above, that action bean will always be
> > available to the web application (given that the header is always
> > displayed)?
> > If i can do that, i figure i would have what i need to solve the problem.
> >
> > Are there other ways anyone can recommend to solve this problem?
> >
> > thanks,
> > Mike
> > 
> >
> >
> --
> > The Next 800 Companies to Lead America's Growth: New Video Whitepaper
> > David G. Thomson, author of the best-selling book "Blueprint to a
> > Billion" shares his insights and actions to help propel your
> > business during the next growth cycle. Listen Now!
> > http://p.sf.net/sfu/SAP-dev2dev
> > 
> >
> > ___
> > Stripes-users mailing list
> > Stripes-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/stripes-users
> >
>
>
>
> --
> The Next 800 Companies to Lead America's Growth: New Video Whitepaper
> David G. Thomson, author of the best-selling book "Blueprint to a
> Billion" shares his insights and actions to help propel your
> business during the next growth cycle. Listen Now!
> http://p.sf.net/sfu/SAP-dev2dev
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
--
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


[Stripes-users] ActionBean and "PageOnLoad"

2010-11-06 Thread dimension123 dimension123
Hi,

I am using stripes layout to create a 'master page' of sorts.  One of the
layout component (the 'header' layout) is responsible for rending the
horizontal tab menu on the page.  Since this is the header, it appears for
all pages of course.  I need the tabs that are displayed to be dynamic based
on user roles.  For instance,  If a user is Guest vs a Registered User, the
tabs will be different.  If a user is an "Administrator", an Admin tab will
show. etc.

My base actionbean has a method that that delegates to a SecurityService
that can determine which roles a user has.  The issue i'm having is how to
do this the 'right' way. Right now, when you first land on a page, it does
not appear as though there is a way to invoke an actionbean method.  This
seems to happen only if you submit the page or if you use a url that is
bound to the actionbean (i.e. /MyActionBean.action).  It seems as though the
ActionBean does not really come into scope until that happens.

Is there away to make an actionbean come into scope when a page is first
loaded?
Is there away to bind an actionbean to a stripes layout component such that,
in the case described above, that action bean will always be available to
the web application (given that the header is always displayed)?
If i can do that, i figure i would have what i need to solve the problem.

Are there other ways anyone can recommend to solve this problem?

thanks,
Mike
--
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users