Re: [Stripes-users] Autoreload StripesResources.properties?

2008-04-09 Thread Nathan Maves
You could always use an app server that reloads it for you :)

I think resin can do this.

On Wed, Apr 9, 2008 at 7:10 PM, Iwao AVE! <[EMAIL PROTECTED]> wrote:

> Hi Roland,
>
> Haven't tried with JBoss, but I use the following class and JSP to
> reload resource bundles.
> After updating .properties files, I call the JSP with my browser.
>
> It is a kind of hack (and not 'auto'), but useful during development.
>
> - Java class -
>
> package util;
>
> import java.lang.reflect.Field;
> import java.lang.reflect.InvocationTargetException;
> import java.lang.reflect.Method;
> import java.util.ResourceBundle;
>
> public class ReloadBundle
> {
> public static void reloadBundles()
> {
> try
> {
>  clearMap(ResourceBundle.class, null, "cacheList");
>  clearTomcatCache();
> }
> catch (Exception e)
> {
>  System.out.println("Could not reload resource bundles" + e.getMessage
> ());
> }
> }
>
> private static void clearTomcatCache()
> {
> ClassLoader loader = Thread.currentThread().getContextClassLoader();
> Class cl = loader.getClass();
>
> try
> {
>  if ("org.apache.catalina.loader.WebappClassLoader".equals(cl.getName
> ()))
>  {
>clearMap(cl, loader, "resourceEntries");
>  }
>  else
>  {
>System.out.println("class loader " + cl.getName() + " is not
> tomcat loader.");
>  }
> }
> catch (Exception e)
> {
>  System.out.println("couldn't clear tomcat cache" + e.getMessage());
> }
> }
>
> private static void clearMap(Class cl, Object obj, String name)
> throws NoSuchFieldException, IllegalAccessException,
> NoSuchMethodException,
> InvocationTargetException
> {
> Field field = cl.getDeclaredField(name);
> field.setAccessible(true);
>
> Object cache = field.get(obj);
> Class ccl = cache.getClass();
> Method clearMethod = ccl.getMethod("clear", (Class[])null);
> clearMethod.invoke(cache, (Object[])null);
> }
> }
>
> - JSP -
>
> <[EMAIL PROTECTED] import="util.ReloadBundle"%>
> <%
> ReloadBundle.reloadBundles();
> %>
> 
> Reload ResourceBundle
> Done
> 
>
> --
> Hope this helps,
> Iwao
>
> 2008/4/9 Roland Bali <[EMAIL PROTECTED]>:
> > Hi,
> >
> > I'm using Eclipse and JBoss for my development and everything
> > is updated automagically during development except the
> > StripesResources.properties file that require a restart.
> >
> > Is there a way of making StripesResources.properties reloadable
> > during development?
> >
> > Kind regards,
> > Roland
>
>
> -
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
>
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


[Stripes-users] Retrotranslator with the current 1.5 code base

2008-06-09 Thread Nathan Maves
On the following site it states that it will work perfect for 1.3.2 but I
was curious if anyone have tried this on the latest code base.


http://www.stripesframework.org/display/stripes/Java+1.4+and+Stripes
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


[Stripes-users] RESTful controls

2008-07-03 Thread Nathan Maves
I am just getting into this so excuse my ignorance.


I fully understand and use the new URLBinding in 1.5 and love it.

I am trying to find a way to redirect control based on the HTTP request type
(PUT DELETE ...).  I want to be able to have an action mapping like /person
which maps to the PersonActionBean which has all for the available actions.

What would be the best way to accomplish this in stripes?

Nathan
-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] UrlBinding("/")?

2008-08-23 Thread Nathan Maves
yeah throw an index.jsp that redirects to /home

On Sat, Aug 23, 2008 at 11:26 AM, Ray Tsang <[EMAIL PROTECTED]> wrote:

> I am trying to bind an action to the root, but it doesn't seem to work.
>
> If I do UrlBinding("/"), I can only access it if I use "//", such as
> "http://localhost/myContext//";
>
> Is there a way around this?
>
> Thanks,
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


[Stripes-users] Custom URL mapper

2008-08-30 Thread Nathan Maves
I am not sure which class I need to extend to get the following
functionality.

I am using 1.5 and the clean url brinding.

I want to have a dynamic binding that will first look down the standard
paths for standard URLBindings, like /home.  If none are found I want to
look to see if the url is a specific type, maybe something like /12345,  and
if so issue a redirect.  If still nothing is found issue a 404.

Where should I start to look to extend stripes to achieve this.

nathan
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


[Stripes-users] Option tag

2008-09-17 Thread Nathan Maves
This may be the most simple request ever seen on the list :)

for the option tag I would think that it should work as state below...

bar == bar
 == bar
 == foo


what do the rest of you think :)
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


[Stripes-users] Default values in domain object not being use in form fields

2008-09-17 Thread Nathan Maves
based on the jsp and class below why does the form field not get defaulted
by the value in the domain model?

*jsp*
<[EMAIL PROTECTED] prefix="s" uri="http://stripes.sourceforge.net/stripes.tld"%>

<[EMAIL PROTECTED] prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<[EMAIL PROTECTED] contentType="text/html" pageEncoding="UTF-8"%>
http://www.w3.org/TR/html4/loose.dtd";>




JSP Page


Hello World!


Name 





*class*
@UrlBinding("/test")
public class TestAction implements ActionBean {
private ActionBeanContext context;

public ActionBeanContext getContext() {
return context;
}

public void setContext(ActionBeanContext context) {
this.context = context;
}

private Person person;

public Person getPerson() {
return person;
}

public void setPerson(Person person) {
this.person = person;
}

public Resolution view() {
return new ForwardResolution("test.jsp");
}

class Person {
private String name = "nathan";

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}
}
}
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Option tag

2008-09-18 Thread Nathan Maves
you are correct... not sure how that changes the request in my first email
:)


On Wed, Sep 17, 2008 at 11:52 PM, Leonard Gestrin <
[EMAIL PROTECTED]> wrote:

>  Stripes:option works as inner tag of stripes:select.
>
>
>
>
>  --
>
> *From:* [EMAIL PROTECTED] [mailto:
> [EMAIL PROTECTED] *On Behalf Of *Nathan Maves
> *Sent:* Wednesday, September 17, 2008 9:30 PM
> *To:* Stripes Users List
> *Subject:* [Stripes-users] Option tag
>
>
>
> This may be the most simple request ever seen on the list :)
>
> for the option tag I would think that it should work as state below...
>
> bar ==  value="foo">bar
>  ==  value="foo">bar
>  == foo
>
>
> what do the rest of you think :)
>
>
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Default values in domain object not being use inform fields

2008-09-18 Thread Nathan Maves
I thought that as well but stripes normally does a great job at creating
objects for you.  Other wise I would think the form tag would have thrown a
NPE.



On Wed, Sep 17, 2008 at 11:50 PM, Leonard Gestrin <
[EMAIL PROTECTED]> wrote:

>  Could it because you did not create instance of the class Person?
>
>
>  --
>
> *From:* [EMAIL PROTECTED] [mailto:
> [EMAIL PROTECTED] *On Behalf Of *Nathan Maves
> *Sent:* Wednesday, September 17, 2008 10:42 PM
> *To:* Stripes Users List
> *Subject:* [Stripes-users] Default values in domain object not being use
> inform fields
>
>
>
> based on the jsp and class below why does the form field not get defaulted
> by the value in the domain model?
>
> *jsp*
> <[EMAIL PROTECTED] prefix="s" 
> uri="http://stripes.sourceforge.net/stripes.tld"%>
>
> <[EMAIL PROTECTED] prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
>
> <[EMAIL PROTECTED] contentType="text/html" pageEncoding="UTF-8"%>
> "http://www.w3.org/TR/html4/loose.dtd";>
>
> 
> 
> 
> JSP Page
> 
> 
> Hello World!
>
> 
> Name 
> 
> 
> 
>
>
> *class*
> @UrlBinding("/test")
> public class TestAction implements ActionBean {
> private ActionBeanContext context;
>
> public ActionBeanContext getContext() {
> return context;
> }
>
> public void setContext(ActionBeanContext context) {
> this.context = context;
> }
>
> private Person person;
>
> public Person getPerson() {
> return person;
> }
>
> public void setPerson(Person person) {
> this.person = person;
> }
>
> public Resolution view() {
> return new ForwardResolution("test.jsp");
> }
>
> class Person {
> private String name = "nathan";
>
> public String getName() {
> return name;
> }
>
> public void setName(String name) {
> this.name = name;
> }
> }
> }
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Default values in domain object not being use inform fields

2008-09-18 Thread Nathan Maves
To answer your question, just look at my constructor.  Some of the values of
the domain object are being initialized in there.

Based on your second paragraph, I would think simply creating a new Person
object would work.

private Person person = new Person();

To my surprise it does not. Nor does

public Resolution view() {
setPerson(new Person());
return new ForwardResolution("test.jsp");
}

Which leads me to believe that I must be doing something else wrong.

Any other ideas?  I just want to have a few of my select boxes have default
values.

Nathan

On Thu, Sep 18, 2008 at 8:36 AM, Tim Fennell <[EMAIL PROTECTED]> wrote:

> Stripes creates objects on the fly during binding, but won't instantiate
> objects on the fly when it's just trying to read information.  From Stripes'
> perspective you've asked to display "person.name" but person is null - why
> would Stripes make up a person and then try to display their name?
> The input tags only read data - they won't instantiate or change the
> ActionBean or model objects hanging off it in any way.  So if you want the
> name to show you'll have to add setPerson(new Person()) to your view()
> method.
>
> -t
>
> On Sep 18, 2008, at 10:30 AM, Nathan Maves wrote:
>
> I thought that as well but stripes normally does a great job at creating
> objects for you.  Other wise I would think the form tag would have thrown a
> NPE.
>
>
>
> On Wed, Sep 17, 2008 at 11:50 PM, Leonard Gestrin <
> [EMAIL PROTECTED]> wrote:
>
>>  Could it because you did not create instance of the class Person?
>>
>>  --
>>
>> *From:* [EMAIL PROTECTED] [mailto:
>> [EMAIL PROTECTED] *On Behalf Of *Nathan Maves
>> *Sent:* Wednesday, September 17, 2008 10:42 PM
>> *To:* Stripes Users List
>> *Subject:* [Stripes-users] Default values in domain object not being use
>> inform fields
>>
>>
>> based on the jsp and class below why does the form field not get defaulted
>> by the value in the domain model?
>>
>> *jsp*
>> <[EMAIL PROTECTED] prefix="s" 
>> uri="http://stripes.sourceforge.net/stripes.tld"%>
>>
>> <[EMAIL PROTECTED] prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
>>
>> <[EMAIL PROTECTED] contentType="text/html" pageEncoding="UTF-8"%>
>> >"http://www.w3.org/TR/html4/loose.dtd";>
>>
>> 
>> 
>> 
>> JSP Page
>> 
>> 
>> Hello World!
>>
>> 
>> Name 
>> 
>> 
>> 
>>
>>
>> *class*
>> @UrlBinding("/test")
>> public class TestAction implements ActionBean {
>> private ActionBeanContext context;
>>
>> public ActionBeanContext getContext() {
>> return context;
>> }
>>
>> public void setContext(ActionBeanContext context) {
>> this.context = context;
>> }
>>
>> private Person person;
>>
>> public Person getPerson() {
>> return person;
>> }
>>
>> public void setPerson(Person person) {
>> this.person = person;
>> }
>>
>> public Resolution view() {
>> return new ForwardResolution("test.jsp");
>> }
>>
>> class Person {
>> private String name = "nathan";
>>
>> public String getName() {
>> return name;
>> }
>>
>> public void setName(String name) {
>> this.name = name;
>> }
>> }
>> }
>>
>> -
>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>> challenge
>> Build the coolest Linux based applications with Moblin SDK & win great
>> prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the
>> world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> ___
>> Stripes-users mailing list
>> Stripes-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>>
>>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize

[Stripes-users] Roles based authentication

2008-09-21 Thread Nathan Maves
After read both articles on the site and the security chapter in the
upcoming book I am still questioning what the best practice is for roles
based authentication.

I am looking for a good way to make roles based decisions inside of an
actions execution method.

Any one have any good ideas or examples?

Nathan
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Roles based authentication

2008-09-21 Thread Nathan Maves
Being that I am not using spring in my stack I was hoping for other
suggestions :) but thanks

On Sun, Sep 21, 2008 at 6:33 PM, Chris Herron <[EMAIL PROTECTED]> wrote:

> Nathan,
> Spring 
> Security<http://static.springframework.org/spring-security/site/index.html> 
> (previously
> Acegi) is an option for role-based authorization. Acegi had a reputation for
> being very complex. Spring Security is significantly less so for typical use
> cases. However, it probably only makes sense to use it if you're interested
> in using other Spring facilities also.
>
> Out of the box, you can have authentication, role-based authorization at
> the URL level, business method @Secured annotations on Spring-managed
> objects, and JSP tags providing conditionals based on authentication and
> authorization. Its also straightforward to make role-based decisions within
> your code.
>
> Besides the Spring Security docs, for a more concrete example, you could
> take a look at AppFuse <http://appfuse.org> and Matt Raible's blog to see
> how he implemented Spring Security.
>
> There's no specific integration with Stripes required. As usual, Stripes
> just does its thing and doesn't get in the way.
>
> Hope this helps,
>
> Chris.
>
> On Sep 21, 2008, at 7:42 PM, Nathan Maves wrote:
>
> After read both articles on the site and the security chapter in the
> upcoming book I am still questioning what the best practice is for roles
> based authentication.
>
> I am looking for a good way to make roles based decisions inside of an
> actions execution method.
>
> Any one have any good ideas or examples?
>
> Nathan
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
>
> http://moblin-contest.org/redirect.php?banner_id=100&url=/___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Incremental Development?

2008-10-14 Thread Nathan Maves
all in all this sounds like a hack job when we could just make that
exception into a warning.

On Mon, Oct 13, 2008 at 9:49 PM, Will Hartung <[EMAIL PROTECTED]>wrote:

>
> On Oct 13, 2008, at 12:46 PM, Freddy Daoud wrote:
>
> > As Chris said, normally you would switch back to beanclass once you
> > wrote the action bean. In the meantime, as you said, the href would
> > point directly to the JSP. This would break the preaction pattern,
> > and wouldn't work if you're placing your JSPs under WEB-INF. You
> > could always point the href attribute to a static page in the
> > meantime,
> > since you are prototyping at this point.
>
> Or simply do:
>
> 
>
> Since the link is bad no matter what you do, here you only have to
> change "href" to "beanclass" to convert it over.
>
> You won't get any errors until you click the link.
>
> You could even do:
>
> 
>
> and follow it with a global search and replace:
>
> :s/href="fixme/beanclass="/g
>
> Makes it even simpler to clean up your pages after you get the beans
> implemented.
>
> Regards,
>
> Will Hartung
>
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


[Stripes-users] Interceptor that forwards to the original request

2008-11-11 Thread Nathan Maves
I have a authentication inteceptor based on the one from the stripes
book.  I want a way to forward onto the original action that was
requested once the login is complete.  Is there a slick way with
stripes to get this done or am I stuck with splicing together the
requested URI + query string and passing it to the Login action and
then redirecting.

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


[Stripes-users] checkbox with Boolean not populating correctly

2008-11-17 Thread Nathan Maves
So I am a bit confused on the use of a checkbox with a Boolean attribute.

>From the taglib docs...

"When the value attribute is omitted, as above, the checkbox defaults
to the simple behaviour of sending "true" to the server when checked
and nothing to the server when unchecked. For this reason it is best
to use boolean values, or Boolean values initialized to
Boolean.FALSE."

In my action I have a custom domain object with a Boolean attribute
contained in it.  When the chekbox is not selcted the value of the
field is set to Null.  In the default constructor of my domain object
I initialized the Boolean field to Boolean.FALSE.

Everything work fine if I use boolean instead of Boolean.  What more
am I expected to "initialize" when using a Boolean or is this a bug?

Nathan

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


[Stripes-users] POST vs GET issue with pre-population

2008-11-17 Thread Nathan Maves
I have an action event method that checks if there is a value in the
domain object in the action.  If there is the object is pulled from a
db and I want to prepoulate the form.

Eveything works great if I use a GET url parameter like

/need/art?criteria.reportId=24359304

but if I issue a post with that same parameter the data is pull but
the form fields are not pre-populated.

my form is defined as with one of the fields as an example





--NOTE  if I print out ${actionBean.criteria.reportName} next to the
field the value is correct

and here is the action event method

@DefaultHandler
public Resolution form() {
if ((criteria != null) && (criteria.getReportId() != null)) {
setCriteria(reportsDao.fetch(criteria.getReportId()));
} else {
if(getCriteria() == null)
setCriteria(new NeedReportCriteria());
getCriteria().setMode(ReportType.ART.getId());
}
reports = 
reportsDao.getListByUser(getContext().getUser().getUsername(),
criteria.getMode());

return new ForwardResolution(VIEW_FORM);
}

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] checkbox with Boolean not populating correctly

2008-11-17 Thread Nathan Maves
how about we deprecate the check box and force radio buttons :) jk

On Mon, Nov 17, 2008 at 3:49 PM, Mike McNally <[EMAIL PROTECTED]> wrote:
>
>
> On Mon, Nov 17, 2008 at 4:43 PM, Gregg Bolinger <[EMAIL PROTECTED]>
> wrote:
>>
>> So what's wrong with my suggestion to write a type converter?  It's not
>> exactly what they are normally used for because you wouldn't really be
>> converting the type.  But couldn't you check the value to see if it is null
>> or not and simply return a Boolean.FALSE if it is null?  I haven't tried
>> this but in theory it sounds like it should work.
>
> This is just my opinion, but I think it'd be architecturally backwards for
> the Action to be in control of that interpretation. I'd like for the page to
> be in control, or something else (don't know what) outside the Action, in
> some configuration domain maybe.
>
> To put it another way, I don't want the action to assume that I've got a
> checkbox on my form.
>
>
>
>
> --
> Turtle, turtle, on the ground,
> Pink and shiny, turn around.
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


[Stripes-users] Radio buttons and null strings

2008-11-19 Thread Nathan Maves
When using the stripes radio button should a null string mark a radio
button with the value set to "" as checked?

Not sure why this app I am working on has actual values of "" but I am
stuck on trying to show that the radio but is actually checked.

Nathan

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Radio buttons and null strings

2008-11-19 Thread Nathan Maves
well it is not being selected on my end.  I even tried checked="" to no avail.



On Wed, Nov 19, 2008 at 9:48 AM, Oscar Westra van Holthe - Kind
<[EMAIL PROTECTED]> wrote:
> On 19-11-2008 at 09:34, Nathan Maves wrote:
>> When using the stripes radio button should a null string mark a radio
>> button with the value set to "" as checked?
>
> I think it should, because "" is parsed to null. I don't know what the
> actual behaviour is though.
>
>
> Oscar
>
> --
>   ,-_   Whoever originated the cliche that money is the root of all
>  /() )  evil knew hardly anything about the nature of evil and very
>  (__ (   little about human beings.
> =/  ()-- Eric Hoffer
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Interceptor invocation order

2008-12-03 Thread Nathan Maves
Interceptors loaded by the stripes extension package are not in any
order.  If you really need order then you need to move those
interceptors out of the extension package or mark them with
@DontAutoLoad and list them in the web.xml.

Nathan

On Wed, Dec 3, 2008 at 9:20 AM, Mike McNally <[EMAIL PROTECTED]> wrote:
> When Interceptors are picked up via the Extension feature, is it the
> case that ordering of invocation is determined by class name? I'll
> check the source but I get dizzy in there sometimes and I might get
> confused.
>
> --
> Turtle, turtle, on the ground,
> Pink and shiny, turn around.
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


[Stripes-users] 1.5.1 beta

2008-12-10 Thread Nathan Maves
Any idea on the release road map?

There are a few fixes that are in svn right now that we need to go to
production.  I can justify an actual beta release to the executives :)

Nathan

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Stripes tag library causing JSP parse error

2008-12-16 Thread Nathan Maves

Thank or just upgrade your app server :)


On Dec 16, 2008, at 4:18 AM, Taras Puchko wrote:

If you translate your application together with the Stripes jar, add  
the following class to your sources and run Retrotranslator with
backport 
= 
"javax 
.servlet 
.jsp.PageContext.include:mybackport.ExtendedPageContext.include"


package mybackport;
import javax.servlet.jsp.PageContext;
import javax.servlet.ServletException;
import java.io.IOException;

public class ExtendedPageContext {
public static void include(PageContext pageContext, String  
relativeUrlPath,
   boolean flush) throws IOException,  
ServletException {

pageContext.include(relativeUrlPath);
}
}

If you translate the Stripes jar separately, the compiled  
ExtendedPageContext must be in classpath of the Retrotranslator  
during the translation.


For more information see http://retrotranslator.sourceforge.net/#extension 
 or ask me :)


Cheers,
Taras


On Tue, Dec 16, 2008 at 12:26 PM, phil darley > wrote:

Thanks that worked a treat, however I have now hit another stumbling
block that may not be possible to over come. Maybe I should post this
under a new title, it's regarding JSP specification support...

Stripes now falls over when calling
pageContext.include(String,boolean), this is because it is a JSP 2.0
method and weblogic 8.1 sp6 only supports up to JSP 1.2.
http://e-docs.bea.com/wls/docs81/notes/new.html#1184292

My initial workaround idea was to download the jsp 2.0 jar file from
Apache and put this in the WEB-INF lib directory - this seems to have
worked for classes not found in the classpath i.e. new classes
introduced in version 2.0 however it seesm that JSP1.2 classes within
the weblogic.jar take presidence over classes in the WEB-INF lib.

Can stripes be supported in a JSP 1.2 Servlet container?  Or is it
possible to rebuild stripes without JSP 2.0 dependency? Or can a
Servlet container be updated to support version 2.0?

Cheers,
Phil




On Wed, Dec 10, 2008 at 6:14 PM, Taras Puchko  
 wrote:

> Hi!
>
> I think Weblogic is following the JSP spec but Tomcat is more  
permissive :)
> Try replacing java.lang.Boolean with booleantype>

>
> Cheers,
> Taras
>
>
> On Wed, Dec 10, 2008 at 6:16 PM, phil darley >

> wrote:
>>
>> I've made the change, the weblogic.servlet.jsp.StandardTagLib class
>> successfully parses that tag and then falls over when parsing
>> net.sourceforge.stripes.tag.UseActionBeanTag's 'validate' property.
>> It's moaning that the implementation class uses primitive boolean
>> whereas the TLD states it's java.lang.Boolean. Parse error:
>>
>> Parsing of JSP File '/index.jsp' failed: /index.jsp(1): Error in  
using
>> tag library uri='http://stripes.sourceforge.net/stripes- 
dynattr.tld'
>> prefix='stripes': type mismatch for property 'validate', for Tag  
class

>> 'net.sourceforge.stripes.tag.UseActionBeanTag': tld says
>> java.lang.Boolean, implementation type is boolean
>> probably occurred due to an error in /index.jsp line 1:
>> <%@ taglib prefix="stripes"
>> uri="http://stripes.sourceforge.net/stripes-dynattr.tld"%>
>>
>> Now I can't think of a way to reference primitive boolean in the  
TLD xml:

>>
>>  
>>
>>Determines whether validation is run on this
>> ActionBean. False by default.
>>
>>
>>  validatefalserequired>true
>>java.lang.Boolean <--need to reference  
primitive

>> here
>>  
>>
>> So the only workaround I can think of is to change the src to  
take a
>> Boolean parameter, however I'm reluctant to to do that as I think  
it's

>> not addressing the root problem.
>>
>> It seems that the 1.4 complier is not capable of casting the object
>> datatypes implicitly whereas the 1.5 complier is. Does this make
>> sense? Has anybody managed to get Stripe tags working in 1.4 or  
had a

>> similar issue?
>>
>> Cheers,
>> Phil
>>
>>
>>
>> On Tue, Dec 9, 2008 at 7:29 PM, phil darley
>>  wrote:
>> > Hi Tim,
>> >
>> > I've just made the assumption it will fix it. I will make the  
changes

>> > and get back to you with the results.
>> >
>> > Cheers,
>> > Phil
>> >
>> > On Tue, Dec 9, 2008 at 5:47 PM, Tim Fennell   
wrote:
>> >> Does changing the TLD fix the problem?  If it does, it sounds  
to me
>> >> like a minor bug that we should just fix in the TLD and be  
done with.

>> >> -t
>> >>
>> >> On Dec 9, 2008, at 11:50 AM, phil darley wrote:
>> >>
>> >>> Hi,
>> >>>
>> >>> I'm attempting to get stripes to run on a 1.4 jee application  
server,

>> >>> specifically Weblogic 8.1 with service pack 6.
>> >>>
>> >>> - Stripes: 1.5
>> >>> - Retrotranslator: backport-util-concurrent-3.1.jar,
>> >>> retrotranslator-runtime-1.2.7.jar &
>> >>> retrotranslator-transformer-1.2.7.jar
>> >>> - Ant: 1.7.0
>> >>> - JDK: I am using the default jdk for web modules, this is  
either

>> >>> sun's jdk (142_11) or  BEA JRockit(R) JDK 1.4.2_10
>> >>>
>> >>> I have followed the instructions on
>> >>> http://www.stripesframework.org/display/s

[Stripes-users] ScopedLocalizedMessage

2008-12-17 Thread Nathan Maves
is there a such thing?

is freddy book there is an example of using a SimpleMessage to display
to the user...

public Resolution delete() {
  Contact deleted = contactDao.read(contactId);
  contactDao.delete(contactId);
  getContext().getMessages().add(
new SimpleMessage("Deleted {0}.", deleted)
  );
  return new RedirectResolution(getClass());
}

I am looking for a clean way to keep this message, which is in my
stripes resources files, near the other messages/errors for this
action bean.

I was hoping that
http://stripes.sourceforge.net/docs/current/javadoc/net/sourceforge/stripes/validation/ScopedLocalizableError.html
had a brother :)

Nathan

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


[Stripes-users] Indexed radio buttons

2008-12-18 Thread Nathan Maves
Ok spent too much time on this already so I am looking for help :)

Action has two lists.

List availablePeople;
Interger[] selectedPeople;

The availablePeople is the complete list of people objects, say 50 of them.
The selectedPeople array is the subset of those people's ids who
should be selected by default.

Does not select the checkboxs but the index is correct.


${person.name}


Selects the right checkboxes but I lose my idexes..

 ${person.name}


--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


[Stripes-users] Indexed checkboxes : WAS Re: Indexed radio buttons

2008-12-18 Thread Nathan Maves
Wanted to correct the subject

On Thu, Dec 18, 2008 at 2:23 PM, Nathan Maves  wrote:
> Ok spent too much time on this already so I am looking for help :)
>
> Action has two lists.
>
> List availablePeople;
> Interger[] selectedPeople;
>
> The availablePeople is the complete list of people objects, say 50 of them.
> The selectedPeople array is the subset of those people's ids who
> should be selected by default.
>
> Does not select the checkboxs but the index is correct.
>  varStatus="status">
> value="${person.id}" checked="${actionBean.selectedIds}" />
> ${person.name}
> 
>
> Selects the right checkboxes but I lose my idexes..
>  varStatus="status">
> checked="${actionBean.selectedIds}" /> ${person.name}
> 
>

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Indexed checkboxes : WAS Re: Indexed radio buttons

2008-12-18 Thread Nathan Maves
Turns out that the whole issue is that we are using the

net.sourceforge.stripes.tag.BeanFirstPopulationStrategy

This overrides the value option in the checkbox.  My head seriously
hurts now.  Would you consider this a bug or works as intended?

Nathan

On Thu, Dec 18, 2008 at 2:26 PM, Nathan Maves  wrote:
> Wanted to correct the subject
>
> On Thu, Dec 18, 2008 at 2:23 PM, Nathan Maves  wrote:
>> Ok spent too much time on this already so I am looking for help :)
>>
>> Action has two lists.
>>
>> List availablePeople;
>> Interger[] selectedPeople;
>>
>> The availablePeople is the complete list of people objects, say 50 of them.
>> The selectedPeople array is the subset of those people's ids who
>> should be selected by default.
>>
>> Does not select the checkboxs but the index is correct.
>> > varStatus="status">
>>> value="${person.id}" checked="${actionBean.selectedIds}" />
>> ${person.name}
>> 
>>
>> Selects the right checkboxes but I lose my idexes..
>> > varStatus="status">
>>> checked="${actionBean.selectedIds}" /> ${person.name}
>> 
>>
>

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


[Stripes-users] Strange bug with tomcat and clean urls

2009-03-16 Thread Nathan Maves
We have an action that is bound to "/work".
On some deployments in tomcat we get a 404 error.  On others of the same
version of tomcat (6.0.18) it works fine.  We found an empty work directory
inside of the tomcat work directory.

/work//work

Would you consider this a tomcat bug?  Anyone else seen this?

Nathan
--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


[Stripes-users] Customize TypeConverter messages

2009-05-08 Thread Nathan Maves
I have a dynamic list of form fields that are bound to Intergers.  Therefore
I need to present a generic message that states that the values supplied
need to be a number.  I am not sure how to override the TypeConverter error
messages.
Nathan
--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


[Stripes-users] Select a radio button on a null value

2009-07-13 Thread Nathan Maves
Give the html below

Both
yes
no

n my action bean I have a property and the get/set methods for the
searchCriteria object.  In that object there is a Boolean property called
approved with valid get/set methods.  Every thing works fine save for the
time when that property is null.  I would expect that the "Both" radio
button would match the null value and select it.

By the way I am also using this configuration.


PopulationStrategy.Class

net.sourceforge.stripes.tag.BeanFirstPopulationStrategy


As a side not I am also experiencing this same situation when using
enumerated types.

Nathan
--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Select a radio button on a null value

2009-07-14 Thread Nathan Maves
Well I think it is a bug because if you submit "" it maps it to null in your
action class.  But when coming the other way it will not map null to "".
Nathan

On Tue, Jul 14, 2009 at 12:39 AM, Morten Matras wrote:

> The hack could be to create a new set of get and set methods in the
> actionbean that "hides" the boolean
>
> public String getApproved(){
>if (this.getSearchCriteria() == null){
>  return "";
>   }
>   else if(this.getSearchCriteria().getApproved() == null){
>  return "";
>  }
> else return ""+ this.getSearchCriteria().getApproved(); //returns "true" or
> "false".
> }
>
> Then you can shift your html to:
>
> Both
> yes
> no
>
> Regards
>
> Morten Matras
> http://www.blobcom.com
>
>
> 2009/7/13 Nathan Maves 
>
>>  Give the html below
>>
>> Both
>> yes
>> no
>>
>> n my action bean I have a property and the get/set methods for the
>> searchCriteria object.  In that object there is a Boolean property called
>> approved with valid get/set methods.  Every thing works fine save for the
>> time when that property is null.  I would expect that the "Both" radio
>> button would match the null value and select it.
>>
>> By the way I am also using this configuration.
>>
>> 
>> PopulationStrategy.Class
>>
>> net.sourceforge.stripes.tag.BeanFirstPopulationStrategy
>> 
>>
>> As a side not I am also experiencing this same situation when using
>> enumerated types.
>>
>> Nathan
>>
>>
>> --
>> Enter the BlackBerry Developer Challenge
>> This is your chance to win up to $100,000 in prizes! For a limited time,
>> vendors submitting new applications to BlackBerry App World(TM) will have
>> the opportunity to enter the BlackBerry Developer Challenge. See full
>> prize
>> details at: http://p.sf.net/sfu/Challenge
>> ___
>> 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
>  W: www.blobcom.com
>  E: morten.mat...@gmail.com
>
>
> --
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize
> details at: http://p.sf.net/sfu/Challenge
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Select a radio button on a null value

2009-07-15 Thread Nathan Maves
I was thinking more about this and you would also have to implement the
setApproved().  In there you would have to check if you "serachCriteria" was
null and if not create it.  You would have to do that on all three
parameters in this example case.  All of which you normally get for free
with stripes.

On Tue, Jul 14, 2009 at 12:39 AM, Morten Matras wrote:

> The hack could be to create a new set of get and set methods in the
> actionbean that "hides" the boolean
>
> public String getApproved(){
>if (this.getSearchCriteria() == null){
>  return "";
>   }
>   else if(this.getSearchCriteria().getApproved() == null){
>  return "";
>  }
> else return ""+ this.getSearchCriteria().getApproved(); //returns "true" or
> "false".
> }
>
> Then you can shift your html to:
>
> Both
> yes
> no
>
> Regards
>
> Morten Matras
> http://www.blobcom.com
>
>
> 2009/7/13 Nathan Maves 
>
>>  Give the html below
>>
>> Both
>> yes
>> no
>>
>> n my action bean I have a property and the get/set methods for the
>> searchCriteria object.  In that object there is a Boolean property called
>> approved with valid get/set methods.  Every thing works fine save for the
>> time when that property is null.  I would expect that the "Both" radio
>> button would match the null value and select it.
>>
>> By the way I am also using this configuration.
>>
>> 
>> PopulationStrategy.Class
>>
>> net.sourceforge.stripes.tag.BeanFirstPopulationStrategy
>> 
>>
>> As a side not I am also experiencing this same situation when using
>> enumerated types.
>>
>> Nathan
>>
>>
>> --
>> Enter the BlackBerry Developer Challenge
>> This is your chance to win up to $100,000 in prizes! For a limited time,
>> vendors submitting new applications to BlackBerry App World(TM) will have
>> the opportunity to enter the BlackBerry Developer Challenge. See full
>> prize
>> details at: http://p.sf.net/sfu/Challenge
>> ___
>> 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
>  W: www.blobcom.com
>  E: morten.mat...@gmail.com
>
>
> --
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize
> details at: http://p.sf.net/sfu/Challenge
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] stripes:options-enumeration

2009-08-03 Thread Nathan Maves
make that ordinal value part of the enum itself.  Then you can use it
in the tag.

On Mon, Aug 3, 2009 at 9:21 AM, Massive
Boisson wrote:
> Hi,
>
>
> The issue I have when using options-enumeration tag is that both value and 
> label
> are the same. The way to change that (with label attribute) do not seem to be
> suitable for me.
> What I would like is to have value of option tag to be ordinal (0, 1, 2, etc )
> and label actual enum value.
>
>
> Is that possible with opt-enum tag (my research indicates it is not) and what 
> is
> the best alternative (current idea is to transform enum to map, and use 
> opt-map
> tag).
>
> Any ideas/comments are welcome
>
> Thanks
> --MB
>
>
> --
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] stripes:options-enumeration

2009-08-03 Thread Nathan Maves
I would just make the enum like

public enum Flower {
  Black(0), Red(1);

  private int id;

  Flower(int id) {
this.id = id;
  }

  public int getId() { return this.id; }

}

Then do what you want with it in your action.  I would use the default
converter to get yourself the enum in your action.  Then user the
.getId() to get the ordinal value.

On Mon, Aug 3, 2009 at 2:46 PM,
massive.boisson wrote:
>
> Hi, I am not sure I follow what you suggested. No matter what I try, the end
> result is that the value attribute of option tag that is rendered in HTML is
> whatever enum attribute points to.
>
> As example, i have
> public enum Flower {
>    Black,      // 0
>    Red,          // 1
>    Green,        // 2
>    Purple        // 3
> }
>
> and
> 
> will yield
> Red
> etc
>
> What I want is
> Red
>
> and without changing actual values of the Enum class (which are used
> throughout the code).
>
> Thanks for help,
> --MB
>
>
>
> nmaves wrote:
>>
>> make that ordinal value part of the enum itself.  Then you can use it
>> in the tag.
>>
>>> The issue I have when using options-enumeration tag is that both value
>>> and label
>>> are the same. The way to change that (with label attribute) do not seem
>>> to be
>>> suitable for me.
>>> What I would like is to have value of option tag to be ordinal (0, 1, 2,
>>> etc )
>>> and label actual enum value.
>>
> --
> View this message in context: 
> http://www.nabble.com/stripes%3Aoptions-enumeration-tp24792797p24797507.html
> Sent from the stripes-users mailing list archive at Nabble.com.
>
>
> --
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] include a JSP template based on locale

2009-08-07 Thread Nathan Maves
why not put the content on those files into a resource bundle and
handle it like all other internationalized text.

nathan

On Fri, Aug 7, 2009 at 1:52 PM, Daniil Sosonkin wrote:
> Hi all,
>
> This isn't really a Stripes question, although if Stripes already provides a
> support for that it would be even better, but here it goes. Is there a way
> to conditionally include a .jsp file based on user's locale. For example, I
> would have files - agreement.jsp, agreement.ru.jsp, agreement.zh_CN.jsp. And
> then I would do something like:  localeBased="yes" />
>
> That tag would pick the most appropriate template based on the locale and
> availability of it and include it?
>
> Any help is appreciated!
>
> Thank you,
> Daniil
>
> --
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Stripes 1.6

2009-08-09 Thread Nathan Maves
no, in most setups trunk is never a release.  you can find the latest
release in the 1.5.1 tag in svn

On Sun, Aug 9, 2009 at 9:23 PM, Alamgir Kahn wrote:
>
> Freddy Daoud  writes:
>> I could have sworn someone asked where is Stripes 1.6, but I can't find
>> the message. Whomever you are, sorry for the late reply - yes indeed,
>> Stripes 1.6 is what is in the trunk of Subversion.
>>
>> Cheers,
>> Freddy
>> http://www.stripesbook.com
>
> Sorry for the confusion, but if 1.6 is on the trunk, does that mean the 
> release
> is "official"?
>
> If so, when will it hit the site?
>
> AK
>
>
> --
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Getting a constant value from an action bean in a link param

2009-08-13 Thread Nathan Maves
you need to provide simple getter methods for these constants.
i.e.

public String getAll() {
  return ALL;
}

On Thu, Aug 13, 2009 at 1:50 PM, M@ Hunter wrote:

> Hi,
>
> I'm trying to add the value of a constant from my action bean to a
> link - but I must be missing something.In my action bean I have:
>
> ...
> public static final int OPTIONAL = 2;
> public static final int ALL = 3;
> ...
>
> then in the corresponding jsp I have:
>
>  name="report" value="${actionBean.ALL}"/>Reports for All
>
> but this always generates the error:
>
> org.apache.jasper.JasperException: javax.el.PropertyNotFoundException:
> The class 'com.example.ExampleActionBean' does not have the property
> 'ALL'.
>
>
> I've tried making getALL() methods, etc - but it always fails.  I'm
> sure I'm just doing something stupid...
>
> Thanks :)
> M@
>
>
> --
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Getting a constant value from an action bean in a link param

2009-08-13 Thread Nathan Maves
an even better solution would be to use an enum

On Thu, Aug 13, 2009 at 1:50 PM, M@ Hunter wrote:

> Hi,
>
> I'm trying to add the value of a constant from my action bean to a
> link - but I must be missing something.In my action bean I have:
>
> ...
> public static final int OPTIONAL = 2;
> public static final int ALL = 3;
> ...
>
> then in the corresponding jsp I have:
>
>  name="report" value="${actionBean.ALL}"/>Reports for All
>
> but this always generates the error:
>
> org.apache.jasper.JasperException: javax.el.PropertyNotFoundException:
> The class 'com.example.ExampleActionBean' does not have the property
> 'ALL'.
>
>
> I've tried making getALL() methods, etc - but it always fails.  I'm
> sure I'm just doing something stupid...
>
> Thanks :)
> M@
>
>
> --
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Moving to Cloud

2009-09-07 Thread Nathan Maves
This is a stripes email list.  Please keep all questions aimed at the
intended topic.
Nathan

On Mon, Sep 7, 2009 at 1:59 AM, Morten Matras wrote:

> Our Stripes - Hibernate - MySQL application: http://www.redantenna.com is
> running on a "normal" windows/tomcat based dedicated server. It is causing
> some problems and we're ready to move to a cloud based environment to
> achieve:
>
>  - No more hardware issues
>  - Scaleability
>  - Low prices (At least compared to the prices we get now)
>  - Fast download from around the globe
>  - Tools for handling our deployment process automatic.
>
> I've looked into amazon EC2 and have seen others like gigaspaces and google
> app engine offer similar services.
>
> Now please advice on how to move on:
>
>  - How do we move from MySQL to a cloud based environment?
>  - How do we utilize the cloud stuff in a nice way instead of just using
> the architecture we are used to?
>  - What tools should we use?
>  - What service should we choose? (Any experience?)
>
>
> Thanks
>
> --
>  Morten Matras
>  Consultant
>  Blob Communication ApS
>  Svendsagervej 42
>  DK-5240 Odense NØ
>  P: (+45) 76 6-5-4-3-2-1
>  W: http://www.blobcom.com
>  E: morten.mat...@gmail.com
>
>
> --
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Moving to Cloud

2009-09-07 Thread Nathan Maves
Morten,
I just read your email once again to make sure but I did not see a Stripes
question.  The only question that I can think of that you might be asking is
if Stripes will work in a cloud environment.  The answer is yes :)

You are right that some of the people on this list might be knowledgeable in
various technologies in your email but the proper place to ask those
questions would be in those specific list/forums.

Nathan


On Mon, Sep 7, 2009 at 11:49 AM, Morten Matras  wrote:

> I think it is not out of line. I can't beleive I'm the only Stripes guy
> that will be facing this issue. Nevermind. I'll find someone else to ask.
>
> Sorry for sending the question.!
>
>
> Have a nice day
>
>
> Morten
>
>
>
> 2009/9/7 Nathan Maves 
>
> This is a stripes email list.  Please keep all questions aimed at the
>> intended topic.
>> Nathan
>>
>> On Mon, Sep 7, 2009 at 1:59 AM, Morten Matras wrote:
>>
>>> Our Stripes - Hibernate - MySQL application: http://www.redantenna.comis 
>>> running on a "normal" windows/tomcat based dedicated server. It is
>>> causing some problems and we're ready to move to a cloud based environment
>>> to achieve:
>>>
>>>  - No more hardware issues
>>>  - Scaleability
>>>  - Low prices (At least compared to the prices we get now)
>>>  - Fast download from around the globe
>>>  - Tools for handling our deployment process automatic.
>>>
>>> I've looked into amazon EC2 and have seen others like gigaspaces and
>>> google app engine offer similar services.
>>>
>>> Now please advice on how to move on:
>>>
>>>  - How do we move from MySQL to a cloud based environment?
>>>  - How do we utilize the cloud stuff in a nice way instead of just using
>>> the architecture we are used to?
>>>  - What tools should we use?
>>>  - What service should we choose? (Any experience?)
>>>
>>>
>>> Thanks
>>>
>>> --
>>>  Morten Matras
>>>  Consultant
>>>  Blob Communication ApS
>>>  Svendsagervej 42
>>>  DK-5240 Odense NØ
>>>  P: (+45) 76 6-5-4-3-2-1
>>>  W: http://www.blobcom.com
>>>  E: morten.mat...@gmail.com
>>>
>>>
>>> --
>>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>>> 30-Day
>>> trial. Simplify your report design, integration and deployment - and
>>> focus on
>>> what you do best, core application coding. Discover what's new with
>>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>>> ___
>>> Stripes-users mailing list
>>> Stripes-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>>>
>>>
>>
>>
>> --
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>> 30-Day
>> trial. Simplify your report design, integration and deployment - and focus
>> on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>> ___
>> 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
>   W: www.blobcom.com
>
>  E: morten.mat...@gmail.com
>
>
> --
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] https getting changed to http during RedirectResolution

2009-09-07 Thread Nathan Maves
There is no way that I know of to accomplish this using the
RedirectResolution(class) constructor.  I know that
RedirectResolution("https://..";) will work.  I know this is not clean
but I don't think stripes knows anything about what port is your secure
port.
I did find this issue that might help you.

http://www.stripesframework.org/jira/browse/STS-239

Nathan

On Thu, Sep 3, 2009 at 12:44 PM, M@ Hunter wrote:

> Hi,
>
> I have a RedirectResolution(Account.action) setup for after a form is
> submitted, and everything is running over https - but for whatever
> reason, Safari always gets redirected to http - causing it to show
> errors and stop working.  Can you specify https within the redirect
> resolution?
>
> Thanks,
> M@
>
>
> --
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


[Stripes-users] Multiple URL bindings per action

2009-10-04 Thread Nathan Maves
Any thoughts on implementing this?
Something like

@UrlBindings({
  @UrlBinding("/one"),
  @UrlBinding("/two")
})
--
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Multiple URL bindings per action

2009-10-05 Thread Nathan Maves
I figured that we could have a "default" option on the  bindings.  If one
was not defined as that it would just be the first binding in the group of
bindings.
The way I got around my original problem was to extend my original class and
give it a binding.

On Sun, Oct 4, 2009 at 11:26 PM, Levi Hoogenberg
wrote:

> There are a couple of Stripes classes that assume a one on one relationship
> between action beans and URL bindings. One example is the URL binding
> factory. This is a design choice that's probably hard to change - one
> implication of allowing multiple URL bindings per action bean is ambiguity
> when creating an URL for an action bean. How would you handle this case?
>
> On Mon, Oct 5, 2009 at 5:18 AM, Nathan Maves wrote:
>
>> Any thoughts on implementing this?
>> Something like
>>
>> @UrlBindings({
>>   @UrlBinding("/one"),
>>   @UrlBinding("/two")
>> })
>>
>>
>> --
>> Come build with us! The BlackBerry® Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9-12, 2009. Register
>> now!
>> http://p.sf.net/sfu/devconf
>> ___
>> Stripes-users mailing list
>> Stripes-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>>
>>
>
>
> --
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9-12, 2009. Register now!
> http://p.sf.net/sfu/devconf
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
--
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Improving startup time

2009-10-17 Thread Nathan Maves
Though it should never have to be said ensure that logging is turned off...

On Sat, Oct 17, 2009 at 3:37 AM, Oscar Westra van Holthe - Kind <
kin...@xs4all.nl> wrote:

> On 16-10-2009 at 22:04, nclemeur wrote:
> >
> > Currently, my startup time is around 5-6 secs.
> > So anyone would know of any tricks to try to reduce that startup time?
>
> One idea is to reduce classpath scanning as much as possible. So instead of
> automatically discovering your extensions, you can explicitly name them in
> the configuration of your StripesFilter.
>
> Then, set ActionResolver.Packages to the package containing your action
> beans, and ensure that there is only one location for this package.
>
> Assuming you've already tweaked your initialization code for lazy
> initialization and caching, I don't think there's much more to do.
>
>
> Oscar
>
> --
>   ,-_  Oscar Westra van Holthe - Kind  http://www.xs4all.nl/~kindop/
>  /() )
>  (__ (  Inequality is the inevitable consequence of liberty.
> =/  ()  -- Salvador De Madariaga - "Anarchy or Hierarchy" (1937)
>
>
> --
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Resources for learning/understanding stripersist

2009-10-25 Thread Nathan Maves
Freddy's book is a great way to start and help to support the community :)

On Sun, Oct 25, 2009 at 1:23 PM, Mike McNally  wrote:

> I found that the best way to understand it was to just look at the
> source code - it's surprisingly simple.
>
> On Sun, Oct 25, 2009 at 2:13 PM, Dan King  wrote:
> > Hi,
> >
> > I'm new to the stripes framework (and java web development for that
> > matter) and I'm looking for resources (books, websites, blogs, etc.)
> > that can help me better understand stripersist and how to use it.
> > Recommendations/suggestions are appreciated. Thanks.
> >
> > -Dan
> >
> >
> >
> >
> >
> --
> > Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> > is the only developer event you need to attend this year. Jumpstart your
> > developing skills, take BlackBerry mobile applications to market and stay
> > ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> > http://p.sf.net/sfu/devconference
> > ___
> > Stripes-users mailing list
> > Stripes-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/stripes-users
> >
>
>
>
> --
> Turtle, turtle, on the ground,
> Pink and shiny, turn around.
>
>
> --
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Nesting s:text inside s:label

2009-11-15 Thread Nathan Maves
use the standard jstl tag libs

2009/11/15 Grzegorz Krugły 

> Well, the obvious advantage of s:label over  is I18n -- is there
> a simple and syntactically concise way to get a string from resource
> bundle using html label tag in my JSP?
>
>
> Ben Gunter pisze:
> > I requested this myself prior to Stripes 1.5 and then closed it as
> > Won't Fix myself later. I don't recall the details, but apparently it
> > was complicated enough that I didn't bother attempting it.
> >
> > http://www.stripesframework.org/jira/browse/STS-372
> >
> > -Ben
> >
> > 2009/11/15 Grzegorz Krugły mailto:g...@karko.net>>
> >
> > Hi,
> >
> > Is there a reason why Stripes doesn't allow nesting s:text inside
> > s:label? Specs say that it is correct
> > http://www.w3.org/TR/html401/interact/forms.html#edef-LABEL to put
> > input
> > inside a label. I wanted to try it to make css styling easier, but
> > s:text put inside s:label is not rendered at all.
> >
> > Should I file a bug?
> >
> > Best regards,
> > Grzegorz
> >
> > 
> >
> >
> --
> > Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> 30-Day
> > trial. Simplify your report design, integration and deployment - and
> focus on
> > what you do best, core application coding. Discover what's new with
> > Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> > 
> >
> > ___
> > Stripes-users mailing list
> > Stripes-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/stripes-users
> >
>
>
>
> --
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Stripes wiki layout

2009-11-29 Thread Nathan Maves
I am not seeing these issues on my mac in any browser

On Fri, Nov 27, 2009 at 6:32 PM, Mike McNally  wrote:

> Firefox.  Try the "File Upload" page.  Attached is a screenshot.
>
> Note how everything spills out over the right-hand side of the ligher
> content box.  I understand that the code samples get wide sometimes,
> but they should "push" all the content out to the right.
>
> Even when there's not wide code sample boxes, there's a little bit of
> scroll because of some box model problems (excess padding in a couple
> of places.)
>
> As a really pick web designer these are not subtle problems :-)
>
>
> --
> Turtle, turtle, on the ground,
> Pink and shiny, turn around.
>
>
> --
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] populating forms, empty properties, default settings

2009-12-03 Thread Nathan Maves
This issue has pissed me off too many times to count.  There is another way
around it if you choose.  You can also add another choice to your enum like
Choice.NONE and it will select it.  I usually end up doing like you with a
classic html input and setting the checked value on my own.  This way I dont
have to decode it in an action.  I agree that this should be a fixable
issue.

Nathan

On Tue, Dec 1, 2009 at 11:02 PM, Mike McNally  wrote:

> I've probably asked this before, but the information refuses to stick
> to my brain.
>
> This pattern comes up a lot for me: I have an action bean for a form,
> and part of the form is a set of radio buttons corresponding to an
> enum for some modal behavior (say, an item type filter selector for a
> "query" action). The default setting for the radio buttons should be
> the "Any" or "Don't Care" option, which corresponds to an empty value
> - a null for the enum reference in the action bean, in other words.
>
> When I submit the form, the empty value for the "Don't Care" radio
> button does what I want: the action bean gets a null enum reference,
> so the query operation proceeds without including any filter for the
> item type. If another radio button is selected, then the field is
> correctly populated and things work fine.
>
> The problem comes up in the initial population of the form. The "Don't
> Care" radio button is given "value = ''" and "checked = 'true'"
> attributes, but Stripes leaves all the radio buttons unchecked. The
> action bean has no value for the enum property, but for some reason
> Stripes doesn't relate that empty value to the empty value on the
> default radio button.
>
> So my question is, why is that?  It's easy enough to work around by
> coding up a non-Stripes  element, but I don't
> understand what the "greater good" is from Stripes not deciding that
> the null enum value should correspond to the radio button with the
> empty value attribute, since that's exactly how things will be bound
> in the other direction.
>
>
> --
> Turtle, turtle, on the ground,
> Pink and shiny, turn around.
>
>
> --
> Join us December 9, 2009 for the Red Hat Virtual Experience,
> a free event focused on virtualization and cloud computing.
> Attend in-depth sessions from your desk. Your couch. Anywhere.
> http://p.sf.net/sfu/redhat-sfdev2dev
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


[Stripes-users] Best way to test redirects with url bindings

2009-12-14 Thread Nathan Maves
right now I have an action like

@UrlBinding("/settings")
public class SettingsMenuAction extends SettingsTabAction {
...
}

a second action redirects to the action via

public Resolution cancel() {
return new RedirectResolution(SettingsMenuAction.class);
 }

now in the unit test of the action that makes the redirect I can run the
following fine.

@Test
 public void cancel() throws Exception {
trip.execute("cancel");
 assertEquals("/settings", trip.getDestination());
}

The only issue I have is with the static "/settings" in the test assertion.
 Is there anyway to get that binding from the action class?

Nathan
--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Best way to test redirects with url bindings

2009-12-14 Thread Nathan Maves
Good call and this works perfect for simple UrlBinding.  I just ran into
this binding

@UrlBinding("/account/admin/branches/{$event}/{branch.id}")

Guess I am looking for a best practice on how most people unit test their
redirect actions in stripes.

Nathan
On Mon, Dec 14, 2009 at 4:43 PM, Levi Hoogenberg
wrote:

> Something like SettingsMenuAction.class.getAnnotation
> (UrlBinding.class).value() should do the trick.
>
>   Levi
>
> Op 14 dec 2009 om 23:49 heeft Nathan Maves 
> het volgende geschreven:\
>
> > right now I have an action like
> >
> > @UrlBinding("/settings")
> > public class SettingsMenuAction extends SettingsTabAction {
> > ...
> > }
> >
> > a second action redirects to the action via
> >
> >   public Resolution cancel() {
> >   return new RedirectResolution(SettingsMenuAction.class);
> >   }
> >
> > now in the unit test of the action that makes the redirect I can run
> > the following fine.
> >
> >   @Test
> >   public void cancel() throws Exception {
> >   trip.execute("cancel");
> >
> >   assertEquals("/settings", trip.getDestination());
> >   }
> >
> > The only issue I have is with the static "/settings" in the test
> > assertion.  Is there anyway to get that binding from the action class?
> >
> > Nathan
> > ---
> > ---
> > ---
> > -
> > Return on Information:
> > Google Enterprise Search pays you back
> > Get the facts.
> > http://p.sf.net/sfu/google-dev2dev
> > ___
> > Stripes-users mailing list
> > Stripes-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
> --
> Return on Information:
> Google Enterprise Search pays you back
> Get the facts.
> http://p.sf.net/sfu/google-dev2dev
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] 1.5.3 maven repository

2010-02-11 Thread Nathan Maves
I personally upload the ibatis.apache.org artifacts to the apache servers and 
it takes me about 5 minutes to do.  Apache only sync's out to the maven repos 
once a day so at the most it take me 24 hours to get the ibatis maven bits out 
there.

Nathan

On Feb 11, 2010, at 1:22 PM, Brandon Atkinson wrote:

> To be fair, this page says the estimated process time for manual upload is 
> four weeks.
> 
> http://maven.apache.org/guides/mini/guide-central-repository-upload.html#Manual_upload_of_artifacts
> 
> The process also relies on people; they are only occasionally reliable.
> 
> According to the same page, we could have the releases synced automatically 
> by using a Sonatype artifact repository. 
> http://nexus.sonatype.org/oss-repository-hosting.html apparently, it is free 
> of charge.
> 
> After the first sync, releases would only take around 120 minutes to appear 
> in repo1.
> 
> -Brandon
> 
> On Thu, Feb 11, 2010 at 2:08 PM, Rusty Wright  wrote:
> I can't believe that after all this time it's still not in the main maven 
> repos.
> 
> I was wondering if you could do something like the Reflections project has 
> done, and put the artifact in the source repo.  Sounds ugly until you see it 
> in action;
> 
> http://code.google.com/p/reflections/wiki/MavenRepo
> 
> Thanks!
> 
> 
> --
> 0x2B | ~0x2b  --  Hamlet
> 
> --
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
> 
> --
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev_______
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users

Nathan Maves
nathan.ma...@gmail.com



--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] 1.5.3 maven repository

2010-02-12 Thread Nathan Maves
Well it is about a 30 second process to install it locally into your maven 
repo.  Most companies have an internal team repository set up where you would 
only have to install it once and all of your developers would get it for free :)

30 secs vs. weeks I think you know the right choice

Nathan Maves
nathan.ma...@gmail.com



On Feb 12, 2010, at 7:34 AM, Brandon Atkinson wrote:

> If Stripes was an ASF project, we would have the same privilege.
> 
> The link I previously sent out listed Apache, Codehaus and Sonatype as the 
> three automatic repo1 sync sources.
> The Sonatype hosted repository is the only one listed as being open to any 
> open source project.  
> The other two require the project to be accepted by the parent organization.
> 
> I have no personal stake in which path is taken, besides selfishly wanting 
> the latest releases to be available through repo1 in a timely fashion.
> 
> Brandon
> 
> On Thu, Feb 11, 2010 at 10:07 PM, Nathan Maves  wrote:
> I personally upload the ibatis.apache.org artifacts to the apache servers and 
> it takes me about 5 minutes to do.  Apache only sync's out to the maven repos 
> once a day so at the most it take me 24 hours to get the ibatis maven bits 
> out there.
> 
> Nathan
> 
> On Feb 11, 2010, at 1:22 PM, Brandon Atkinson wrote:
> 
>> To be fair, this page says the estimated process time for manual upload is 
>> four weeks.
>> 
>> http://maven.apache.org/guides/mini/guide-central-repository-upload.html#Manual_upload_of_artifacts
>> 
>> The process also relies on people; they are only occasionally reliable.
>> 
>> According to the same page, we could have the releases synced automatically 
>> by using a Sonatype artifact repository. 
>> http://nexus.sonatype.org/oss-repository-hosting.html apparently, it is free 
>> of charge.
>> 
>> After the first sync, releases would only take around 120 minutes to appear 
>> in repo1.
>> 
>> -Brandon
>> 
>> On Thu, Feb 11, 2010 at 2:08 PM, Rusty Wright  
>> wrote:
>> I can't believe that after all this time it's still not in the main maven 
>> repos.
>> 
>> I was wondering if you could do something like the Reflections project has 
>> done, and put the artifact in the source repo.  Sounds ugly until you see it 
>> in action;
>> 
>> http://code.google.com/p/reflections/wiki/MavenRepo
>> 
>> Thanks!
>> 
>> 
>> --
>> 0x2B | ~0x2b  --  Hamlet
>> 
>> --
>> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
>> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
>> http://p.sf.net/sfu/solaris-dev2dev
>> ___
>> Stripes-users mailing list
>> Stripes-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>> 
>> --
>> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
>> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
>> http://p.sf.net/sfu/solaris-dev2dev___
>> Stripes-users mailing list
>> Stripes-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/stripes-users
> 
> Nathan Maves
> nathan.ma...@gmail.com
> 
> 
> 
> 
> --
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
> 
> 
> --
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users

--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Request for uploading Stripes 1.5.3 on http://repo1.maven.org/

2010-05-24 Thread Nathan Maves
For what it is worth I just went though all of this with the new mybatis
(formerly apache ibatis).  It was a complete breeze to setup with sonatype.

Being a stripes advocate as well I would love to help get stripes setup on
there as well.

Let me know,

Nathan Maves

On Fri, Apr 30, 2010 at 7:18 PM, Brandon Atkinson <
brandon.n.atkin...@gmail.com> wrote:

> Hi Nikolaos,
>
> I wish that the stripes guys were into maven, because I've reaped the
> benefits firsthand.
> My comment was just me voicing an observation.
>
> I agree with pretty much everything you said in your original post.
> I like the stripes API; I think it has a lot going for it.  However, not
> publishing your artifacts (with javadocs AND source jars)
> to repo1 is a faux pas these days.
>
> Even if you don't like maven 2, there are other build tools that are using
> repo1 to fetch dependencies, like Ivy and Buildr.
> By choosing not to publish your stuff to repo1, you are causing more work
> for developers to use your framework.  In the
> end, this means that the bar for adoption of your framework is pushed much
> higher, because the cost of setup is higher.
>
> As for needing explicit permisson to create the sonatype repo, I don't see
> anything in the docs that says I couldn't just
> request the repo as some random guy.  I just wouldn't feel comfortable
> hi-jacking the namespace without permission because it might cause problems
> in the future, if stripes changed their minds  and decided to go that way.
>
> Oh, and you're probably right about having this discussion on the dev
> mailing list.  It's just that I was pretty much shot down or ignored the
> last time
> I tried, so I'm not as motivated this time :)
>
> -Brandon
>
>
> On Fri, Apr 30, 2010 at 6:02 PM, Nikolaos Giannopoulos <
> nikol...@brightminds.org> wrote:
>
>>  Hi Brandon,
>>
>> Thanks for replying.  Comments in-line
>>
>>
>> Brandon Atkinson wrote:
>>
>>  There seems to be a bit of an anti-maven culture in the stripes
>> community, which is probably why it still hasn't been resolved.
>>
>> Hmmm Interesting.  I'm not sure what the anti-maven sentiment is but
>> as far as "many" Java developers are concerned it really is refreshing and
>> simplifies multi-project dependencies, external dependencies, etc... .  I
>> have never tried getting something submitted to a maven central repository
>> but a local repository is dirt simple to setup.
>>
>> The only real issue I have with Maven is that the artifact has to be in
>> repo before it can be accessed.  So until that happens I do agree that
>> making the software available for direct download is very useful and nice
>> BUT getting it into the repo after some reasonable time is also important
>> IMHO.
>>
>>
>>  There was a thread a little while back about this, and Freddy tried to
>> get the artifact deployed to repo1 through the codehaus manual upload
>> service.  The JIRA ticket showing the result is here
>> http://jira.codehaus.org/browse/MAVENUPLOAD-2716 .
>>
>>  The result was that the upload was rejected because no javadocs were
>> included, and no one replied when codehaus tried to bring this fact to the
>> submitters attention.
>>
>> I saw that thread today which also is over 2 months old and replied to it
>> before seeing this e-mail.  Seeing that the submit:
>> - a) Hasn't been done in well over 2 months
>> - b) Got rejected and not re-addressed
>> AND
>> - c) finally that the issue was closed without remedy...
>>
>> IS NOT the right message I would want to send potential and existing
>> consumers of any software.
>>
>>
>>  If we were really serious about it, we should probably sign up for the
>> freely available Sonatype service, which provides a pretty impressive
>> hosting service and handles uploads to repo1 automatically.
>>
>>  I could set it up if I had explicit permission to do so.
>>
>> If that would facilitate getting new releases into repo1 then I am all for
>> it.
>>
>> I'm not very familiar with the internal workings of OS software.  Who
>> would need to provide explicit permission?
>>
>> Perhaps this thread needs to be moved to the stripes-development mailing
>> list :-)
>>
>> Thanks,
>>
>> --Nikolaos
>>
>>  -Brandon
>>
>>
>> On Fri, Apr 30, 2010 at 4:28 PM, Richard Hauswald <
>> richard.hausw...@googlemail.com> wrote:
>>
>>> Just voted
>>>
>>> On Fri, Apr 30, 2010 at 10:12 PM,

Re: [Stripes-users] amusing license

2010-06-04 Thread Nathan Maves
It sure is and why we (MyBatis http://www.mybatis.org) have also
decided to use Tim's code as well.

http://code.google.com/p/mybatis/source/browse/trunk/src/main/java/org/apache/ibatis/io/ResolverUtil.java

We left the entire license in place and Tim's name is all over it :)

Great work Tim!

MyBatis Team

On Fri, Jun 4, 2010 at 6:54 AM, Nick Stuart  wrote:
> Heh, thats a good one, but what if framework B changes it name to B', by 
> different developers? Is it still valid?  ;)
>
> And imitation is the sincerest form of flattery right?
>
> On Jun 4, 2010, at 8:44 AM, Freddy Daoud wrote:
>
>> A little comic relief
>>
>> I'm on the last couple of chapters of "Flexible Rails"[1], and was reading
>> about using AMF with Rails (if you don't know what that is, don't bother
>> looking it up, it's not important here.) Basically, there are two competing
>> frameworks for achieving this, A and B.
>>
>> The fun part is that framework A has an "MIT license with an exception"[2],
>> which states that framework B may not use any of framework A's code for
>> releases of framework B!
>>
>> We should have had that exception, stating that Struts may not use source
>> code from Stripes ;-) (It's too late now, they already copied Tim's code.)
>>
>> Have a good Friday and a good weekend.
>>
>> Cheers,
>> Freddy
>>
>> [1]: http://manning.com/armstrong/
>> [2]: 
>> http://code.google.com/p/rubyamf/source/browse/branches/ruby19/LICENSE?r=1319
>>
>>
>> --
>> ThinkGeek and WIRED's GeekDad team up for the Ultimate
>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
>> lucky parental unit.  See the prize list and enter to win:
>> http://p.sf.net/sfu/thinkgeek-promo
>> ___
>> Stripes-users mailing list
>> Stripes-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
> --
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Stripes 1.6 Spring ObjectFactory....

2010-06-21 Thread Nathan Maves
I think one area that I lot of us are looking to use the new
ObjectFactory is for constructor injection of our action classes.
This was never possible in the current stripes version.

On Mon, Jun 21, 2010 at 6:57 PM, Freddy Daoud  wrote:
>> What exactly is all this "hype" around this ObjectFactory? Can some one
>> please explain what it is and why it is so useful???
>
> It basically lets you hook in to the creation of Stripes objects: action
> beans, type converters, formatters, etc. so that you can take control
> of how these objects are instantiated. For example, you can inject
> Spring dependencies. But really, you can do whatever you want.
>
>> We have no issues simply using the following to wire up @Autowired,
>> @Service, @Resource... annotated classes with Spring (along with a
>> handful of top level package component-scans):
>> SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(this);
>
> No problem. I was giving one possible solution, but certainly not the
> only solution, nor necessarily the best solution.
>
>> So what am I missing ;-) 
>
> Well, maybe nothing. That's up to you to decide ;)
>
> Cheers,
> Freddy
>
> --
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Validation errors

2010-08-16 Thread Nathan Maves
Just a heads up I think most of us would agree that the event method
is the last place we put validation.  I truly expect that all input
data is valid by the time it gets to an event handler.

Here is my preferred order

Field Level @Validate or @ValidateNestedProperties
Method @ValidationMethod
Finally if there is no other way custom validation code in the event handler.

My 2 cents
Nathan

On Thu, Aug 12, 2010 at 7:57 PM, Aaron Stromas  wrote:
>
> On 12 August 2010 16:00, Freddy Daoud  wrote:
>>
>> Aaron,
>>
>> > It appears that errors added to the ValidationErrors within event
>> > handlers are not rendered. Is that true? I that related to life
>> > cycle?
>>
>> Again, when a validation error occurs,
>> the target event handler is *not* invoked and the Resolution that is
>> returned by getContext().getSourcePageResolution() is used instead.
>>
>> So your event handler is not called unless all other validations
>> pass. Then, you can do further validations and add errors to
>> ValidationErrors, and return getContext().getSourcePageResolution()
>> which should render the errors that you added.
>>
>> Cheers,
>> Freddy
>>
> Hi Freddy,
>
> I did not make myself clear, there are no validation methods that interrupt
> the life cycle. I do my validation in the event handler. Something like
> this:
>
> public Resolution handle() {
>    if (isInvalid())
>   return new RedirectResolution(getClass());
>
>    ...
>    return new ForwardResolution(SOME_PAGE);
> }
>
> @DefaultHandler
> public Resolution view() {
> ...
> }
>
> private boolean isInvalid() {
>  getContext().getValidationErrors().add("foo", new LocalizedError(..));
>  return true;
> }
>
> Thanks,
>
> -a
>
> --
> Aaron Stromas
> Mobile: +1 703 203 9169
>
>
> --
> This SF.net email is sponsored by
>
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>

--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Maven project hosting, syncing to central (#2)

2010-09-08 Thread Nathan Maves
I have said in the past that I would help with this as well.  I use
Sonatype for my maven plugins that I write as well as the entire
MyBatis distribution.

Nathan

On Fri, Sep 3, 2010 at 8:25 PM, Samuel Santos  wrote:
> I agree with the Stripes mavenization and will gladly help.
>
> I'm already using Sonatype OSS with some projects (including Stripes EJB3
> and Stripes XSS Interceptors) and it's really not that hard.
>
> --
> Samuel Santos
> http://www.samaxes.com/
>
>
> On Fri, Sep 3, 2010 at 3:47 PM, Stone, Timothy 
> wrote:
>>
>> List,
>>
>> The intense interest in the future of Stripes is exciting.
>>
>> I’ve lost the specific email, but I want to touch on the Maven-ization of
>> the 1.5 and 1.6 release lines.
>>
>> Should this be completed by the project leads, instead of hosting a
>> project Maven repos (and the overhead involved), consider the OSSRH project
>> by the Nexus team.
>>
>> Two immediate reasons Stripes leads want to do this:
>>
>> The Nexus hosted OSSRH project is an approved forge for syncing to Maven
>> Central. Want adoption?
>>
>> Stripes *must* have Maven Central availability. I would call any Stripes
>> Maven-ization effort that did not have Maven Central availability a
>> non-starter.
>>
>>   2. The Maven Central is many times the only approved repository in large
>> organizations for mirroring though internal Nexus and Artifactory maven
>> repos.
>>
>> Without Maven Central syncs then updates to the library become manual.
>> Anything that can be automated, and is not, is weight on adoption rates.
>>
>> (sorry for spamming the list... Fat fingered the short cut for sending
>> email trying to line break my numbered list).
>>
>> Regards,
>> Tim
>> --
>> Timothy Stone   |   Director, Application Developer Technical Lead
>> Barclaycard   |    Business Technology Group, Solutions Delivery
>> 125 S. West Street   |   Wilmington, DE    |   19801
>> USA   |   www.barclaycardus.com
>> +1 302 255 8044 direct |   +1 410 441 9450 cell
>>
>> COMPANY CONFIDENTIAL
>>
>> P Before printing this e-mail, or any other document, ask yourself whether
>> you need a hard copy
>>
>>
>>
>> ___
>>
>> Barclays
>> www.barclaycardus.com
>> ___
>>
>> This e-mail and any files transmitted with it may contain confidential
>> and/or proprietary information. It is intended solely for the use of the
>> individual or entity who is the intended recipient. Unauthorized use of this
>> information is prohibited. If you have received this in error, please
>> contact the sender by replying to this message and delete this material from
>> any system it may be on.
>>
>> --
>> This SF.net Dev2Dev email is sponsored by:
>>
>> Show off your parallel programming skills.
>> Enter the Intel(R) Threading Challenge 2010.
>> http://p.sf.net/sfu/intel-thread-sfd
>> ___
>> Stripes-users mailing list
>> Stripes-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>>
>
>
> --
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>

--
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


[Stripes-users] CleanUrl bug from 1.5.1+ when using MockRoundtrip

2010-10-13 Thread Nathan Maves
We have multiple test cases where we are using UrlBinding with 1.5 and
everything works perfect.

Here is an example of one of our bindings

@UrlBinding("/admin/product/{$event}/{product.id}")

All versions (1.5.1, 1.5.2, 1.5.3) work fine outside of the test
fixture.  It is only within a test using the MockRoundTrip where we
get the error.  The error is a validation error where it claims to
have a conversion issue where the replacement parts are ["Product Id",
"{product.id}"].  We get this when passing in a parameter or not.

I did find the following change from 1.5 to 1.5.1 that might have
something to do with it.

http://www.stripesframework.org/jira/browse/STS-592


Nathan

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] CleanUrl bug from 1.5.1+ when using MockRoundtrip

2010-10-18 Thread Nathan Maves
Is there anyone else out here using UrlBinding with MockRoundTrip?
This is killing me that we can upgrade to the latest Stripes codebase.

Nathan

On Wed, Oct 13, 2010 at 11:32 AM, Nathan Maves  wrote:
> We have multiple test cases where we are using UrlBinding with 1.5 and
> everything works perfect.
>
> Here is an example of one of our bindings
>
> @UrlBinding("/admin/product/{$event}/{product.id}")
>
> All versions (1.5.1, 1.5.2, 1.5.3) work fine outside of the test
> fixture.  It is only within a test using the MockRoundTrip where we
> get the error.  The error is a validation error where it claims to
> have a conversion issue where the replacement parts are ["Product Id",
> "{product.id}"].  We get this when passing in a parameter or not.
>
> I did find the following change from 1.5 to 1.5.1 that might have
> something to do with it.
>
> http://www.stripesframework.org/jira/browse/STS-592
>
>
> Nathan
>

--
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] CleanUrl bug from 1.5.1+ when using MockRoundtrip

2010-10-18 Thread Nathan Maves
Ah  the tricky part is that these are no error messages nor
exceptions.  Just unit tests failing when we upgrade stripes.

This is because the url binding variables are not getting bound in the
MockRoundTrip properly (at all).

One thing I don't think I tested is removing the {$event} from the binding.

@UrlBinding("/admin/product/{$event}/{product.id}")


On Mon, Oct 18, 2010 at 7:45 PM, Nikolaos Giannopoulos
 wrote:
> Nathan,
>
> We have limited test cases for our Action Beans at this time.  So far no
> issues.
>
> Could you be more specific about the error that is being produced.
>
> --Nikolaos
>
>
>
>
> Nathan Maves wrote:
>> Is there anyone else out here using UrlBinding with MockRoundTrip?
>> This is killing me that we can upgrade to the latest Stripes codebase.
>>
>> Nathan
>>
>> On Wed, Oct 13, 2010 at 11:32 AM, Nathan Maves  
>> wrote:
>>
>>> We have multiple test cases where we are using UrlBinding with 1.5 and
>>> everything works perfect.
>>>
>>> Here is an example of one of our bindings
>>>
>>> @UrlBinding("/admin/product/{$event}/{product.id}")
>>>
>>> All versions (1.5.1, 1.5.2, 1.5.3) work fine outside of the test
>>> fixture.  It is only within a test using the MockRoundTrip where we
>>> get the error.  The error is a validation error where it claims to
>>> have a conversion issue where the replacement parts are ["Product Id",
>>> "{product.id}"].  We get this when passing in a parameter or not.
>>>
>>> I did find the following change from 1.5 to 1.5.1 that might have
>>> something to do with it.
>>>
>>> http://www.stripesframework.org/jira/browse/STS-592
>>>
>>>
>>> Nathan
>>>
>>>
>
>
> --
> Download new Adobe(R) Flash(R) Builder(TM) 4
> The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
> Flex(R) Builder(TM)) enable the development of rich applications that run
> across multiple browsers and platforms. Download your free trials today!
> http://p.sf.net/sfu/adobe-dev2dev
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>

--
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] CleanUrl bug from 1.5.1+ when using MockRoundtrip

2010-10-19 Thread Nathan Maves
Just tested this with logging on 1.5.3.  It looks like there is an
issue with the {$event} binding but I am not sure that is really an
issue or not.

Let me know if there is anything else I can do on my end to help out.

Here is the log for 1.5.3

 INFO 2010-10-19 21:46:10,991 net.sourceforge.stripes.util.Log.info():
Stripes Initialization Complete. Version: 1.5.3, Build: 1.5.3
DEBUG 2010-10-19 21:46:11,844
net.sourceforge.stripes.util.Log.debug(): LocalePicker selected
locale: en_US
DEBUG 2010-10-19 21:46:11,844
net.sourceforge.stripes.util.Log.debug(): LocalePicker did not pick a
character encoding, using default: UTF-8
DEBUG 2010-10-19 21:46:11,848
net.sourceforge.stripes.util.Log.debug(): Matched
/admin/product/{$event}/{product.id} to
/admin/product/{$event}/{product.id}
 INFO 2010-10-19 21:46:11,858 net.sourceforge.stripes.util.Log.info():
Expression validation will be performed using:
net.sourceforge.stripes.validation.expression.Jsp20ExpressionExecutor
DEBUG 2010-10-19 21:46:11,859
net.sourceforge.stripes.util.Log.debug(): Transitioning to lifecycle
stage RequestInit
DEBUG 2010-10-19 21:46:11,862
net.sourceforge.stripes.util.Log.debug(): Transitioning to lifecycle
stage ActionBeanResolution
DEBUG 2010-10-19 21:46:11,863
net.sourceforge.stripes.util.Log.debug(): Matched
/admin/product/{$event}/{product.id} to
/admin/product/{$event}/{product.id}
DEBUG 2010-10-19 21:46:11,866
net.sourceforge.stripes.util.Log.debug(): Matched
/admin/product/{$event}/{product.id} to
/admin/product/{$event}/{product.id}
DEBUG 2010-10-19 21:46:11,871
net.sourceforge.stripes.util.Log.debug(): Transitioning to lifecycle
stage HandlerResolution
DEBUG 2010-10-19 21:46:11,874
net.sourceforge.stripes.util.Log.debug(): Resolved event: edit; will
invoke: ProductEditAction.edit()
DEBUG 2010-10-19 21:46:11,876
net.sourceforge.stripes.util.Log.debug(): Transitioning to lifecycle
stage BindingAndValidation
DEBUG 2010-10-19 21:46:11,961
net.sourceforge.stripes.util.Log.debug(): Loaded validations for
ActionBean ProductEditAction:
product.title->ValidationMetadata{required=true},
product.sku->ValidationMetadata{required=true},
product.languageId->ValidationMetadata{required=true}
DEBUG 2010-10-19 21:46:11,963
net.sourceforge.stripes.util.Log.debug(): Running required field
validation on bean class
com.dreamscape.stripes.admin.products.ProductEditAction
DEBUG 2010-10-19 21:46:11,973
net.sourceforge.stripes.util.Log.debug(): Could not bind property with
name [{$event}] to bean of type: ProductEditAction : Bean class
com.dreamscape.stripes.admin.products.ProductEditAction does not
contain a property called '{$event}'. As a result the following
expression could not be evaluated: {$event}
DEBUG 2010-10-19 21:46:11,982
net.sourceforge.stripes.util.Log.debug(): Creating
net.sourceforge.stripes.controller.BindingPolicyManager for class
com.dreamscape.stripes.admin.products.ProductEditAction with default
policy null
DEBUG 2010-10-19 21:46:11,987
net.sourceforge.stripes.util.Log.debug(): Translated globs [] to regex
DEBUG 2010-10-19 21:46:11,987
net.sourceforge.stripes.util.Log.debug(): Translated globs [] to regex
DEBUG 2010-10-19 21:46:11,989
net.sourceforge.stripes.util.Log.debug(): Translated globs
[product.title, product.sku, product.languageId] to regex
product\.title|product\.sku|product\.languageId
DEBUG 2010-10-19 21:46:11,991
net.sourceforge.stripes.util.Log.debug(): Converting 2 value(s) using
converter net.sourceforge.stripes.validation.IntegerTypeConverter
DEBUG 2010-10-19 21:46:11,996
net.sourceforge.stripes.util.Log.debug(): Transitioning to lifecycle
stage CustomValidation
DEBUG 2010-10-19 21:46:11,999
net.sourceforge.stripes.util.Log.debug(): Looking up localized field
name with messageKey: product.id
DEBUG 2010-10-19 21:46:12,005
net.sourceforge.stripes.util.Log.debug(): The following validation
errors need to be fixed:
-> [product.id] invalid number
DEBUG 2010-10-19 21:46:12,008
net.sourceforge.stripes.util.Log.debug(): Transitioning to lifecycle
stage ResolutionExecution
DEBUG 2010-10-19 21:46:12,009
net.sourceforge.stripes.util.Log.debug(): Looking for HttpCache on
com.dreamscape.stripes.admin.products.ProductEditAction.edit()
DEBUG 2010-10-19 21:46:12,012
net.sourceforge.stripes.util.Log.debug(): No URL binding matches
_default_source_page_
DEBUG 2010-10-19 21:46:12,013
net.sourceforge.stripes.util.Log.debug(): No URL binding matches
_default_source_page_

On Tue, Oct 19, 2010 at 2:19 AM, VANKEISBELCK Remi  wrote:
> Hi Nathan,
>
> Try turning Stripes logs to debug and see what happens. The binding code is
> pretty verbose.
>
> I've been using clean URLs in mock trips without any problem so far.
>
> Cheers
>
> Remi
>
> 2010/10/19 Nathan Maves 
>>
>> Ah  the tricky part is that these are no error messages nor
>> exceptions.  Just unit tests failing when we upgrade stripes.
>>
>> This is because the url binding variables are

Re: [Stripes-users] CleanUrl bug from 1.5.1+ when using MockRoundtrip

2010-10-20 Thread Nathan Maves
Sure thing Remi.  The following example fails because the id is null.

Nathan


ACTION

package com.foo.stripes;

import net.sourceforge.stripes.action.ActionBean;
import net.sourceforge.stripes.action.ActionBeanContext;
import net.sourceforge.stripes.action.DefaultHandler;
import net.sourceforge.stripes.action.Resolution;
import net.sourceforge.stripes.action.UrlBinding;

@UrlBinding("/foo/{$event}/{id}")
public class TestAction implements ActionBean {
ActionBeanContext context;

Integer id;

@DefaultHandler
public Resolution bar() {

return null;
}

public Integer getId() {
return id;
}

public void setId(Integer id) {
this.id = id;
}

@Override
public void setContext(ActionBeanContext context) {
this.context = context;
}

@Override
public ActionBeanContext getContext() {
return this.context;
}
}

TEST

package com.foo.stripes;

import java.util.HashMap;
import java.util.Map;
import net.sourceforge.stripes.controller.DispatcherServlet;
import net.sourceforge.stripes.controller.StripesFilter;
import net.sourceforge.stripes.mock.MockRoundtrip;
import net.sourceforge.stripes.mock.MockServletContext;
import org.junit.Before;
import org.junit.Test;

import static org.junit.Assert.*;

public class ParameterTestAction {
MockServletContext context;

@Before
public void setup() {
context = new MockServletContext("test");

// Add the Stripes Filter
Map filterParams = new HashMap();
filterParams.put("ActionResolver.Packages", "com.foo.stripes");
context.addFilter(StripesFilter.class, "StripesFilter", 
filterParams);

// Add the Stripes Dispatcher
context.setServlet(DispatcherServlet.class, 
"StripesDispatcher", null);
}

@Test
public void testParameter() throws Exception {
final Integer id = 2;
MockRoundtrip trip = new MockRoundtrip(context, 
TestAction.class);
trip.setParameter("id", id.toString());
trip.execute();

TestAction action = trip.getActionBean(TestAction.class);
assertEquals(id, action.getId());

}
}

On Wed, Oct 20, 2010 at 2:56 AM, VANKEISBELCK Remi  wrote:
> Haven't looked yet, but the log might be "normal".
>
> Could you post a test case that reproduces your bug ? This way I'll have a
> closer look if you want.
>
> Cheers
>
> Remi
>
> 2010/10/20 Nathan Maves 
>>
>> Just tested this with logging on 1.5.3.  It looks like there is an
>> issue with the {$event} binding but I am not sure that is really an
>> issue or not.
>>
>> Let me know if there is anything else I can do on my end to help out.
>>
>> Here is the log for 1.5.3
>>
>>  INFO 2010-10-19 21:46:10,991 net.sourceforge.stripes.util.Log.info():
>> Stripes Initialization Complete. Version: 1.5.3, Build: 1.5.3
>> DEBUG 2010-10-19 21:46:11,844
>> net.sourceforge.stripes.util.Log.debug(): LocalePicker selected
>> locale: en_US
>> DEBUG 2010-10-19 21:46:11,844
>> net.sourceforge.stripes.util.Log.debug(): LocalePicker did not pick a
>> character encoding, using default: UTF-8
>> DEBUG 2010-10-19 21:46:11,848
>> net.sourceforge.stripes.util.Log.debug(): Matched
>> /admin/product/{$event}/{product.id} to
>> /admin/product/{$event}/{product.id}
>>  INFO 2010-10-19 21:46:11,858 net.sourceforge.stripes.util.Log.info():
>> Expression validation will be performed using:
>> net.sourceforge.stripes.validation.expression.Jsp20ExpressionExecutor
>> DEBUG 2010-10-19 21:46:11,859
>> net.sourceforge.stripes.util.Log.debug(): Transitioning to lifecycle
>> stage RequestInit
>> DEBUG 2010-10-19 21:46:11,862
>> net.sourceforge.stripes.util.Log.debug(): Transitioning to lifecycle
>> stage ActionBeanResolution
>> DEBUG 2010-10-19 21:46:11,863
>> net.sourceforge.stripes.util.Log.debug(): Matched
>> /admin/product/{$event}/{product.id} to
>> /admin/product/{$event}/{product.id}
>> DEBUG 2010-10-19 21:46:11,866
>> net.sourceforge.stripes.util.Log.debug(): Matched
>> /admin/product/{$event}/{product.id} to
>> /admin/product/{$event}/{product.id}
>> DEBUG 2010-10-19 21:46:11,871
>> net.sourceforge.stripes.util.Log.debug(): Transitioning to lifecycle
>> stage HandlerResolution
>> DEBUG 2010-10-19 21:46:11,874
>> net.sourceforge.stripes.util.Log.debug(): Resolved event: edit; will
>> invoke: ProductEditAction.edit()
>> D

Re: [Stripes-users] CleanUrl bug from 1.5.1+ when using MockRoundtrip

2010-10-20 Thread Nathan Maves
So I am not crazy!  Good to hear and thanks for the help.

N

On Wed, Oct 20, 2010 at 10:15 AM, VANKEISBELCK Remi  wrote:
> Hi Nathan,
>
> Just had a quick look to your test. Refactored to :
> http://pastebin.com/02nY8aWF
>
> The two test methods that use a string url for the binding work fine. The
> one using the beanclass doesn't work...
>
> As a workaround for now, you can use stringified urls in your tests. I'll
> try to understand what's going on as soon as I have a moment.
>
> Cheers
>
> Remi
>
> 2010/10/20 Nathan Maves 
>>
>> Sure thing Remi.  The following example fails because the id is null.
>>
>> Nathan
>>
>>
>> ACTION
>>
>> package com.foo.stripes;
>>
>> import net.sourceforge.stripes.action.ActionBean;
>> import net.sourceforge.stripes.action.ActionBeanContext;
>> import net.sourceforge.stripes.action.DefaultHandler;
>> import net.sourceforge.stripes.action.Resolution;
>> import net.sourceforge.stripes.action.UrlBinding;
>>
>> @UrlBinding("/foo/{$event}/{id}")
>> public class TestAction implements ActionBean {
>>        ActionBeanContext context;
>>
>>        Integer id;
>>
>>       �...@defaulthandler
>>        public Resolution bar() {
>>
>>                return null;
>>        }
>>
>>        public Integer getId() {
>>                return id;
>>        }
>>
>>        public void setId(Integer id) {
>>                this.id = id;
>>        }
>>
>>       �...@override
>>        public void setContext(ActionBeanContext context) {
>>                this.context = context;
>>        }
>>
>>       �...@override
>>        public ActionBeanContext getContext() {
>>                return this.context;
>>        }
>> }
>>
>> TEST
>>
>> package com.foo.stripes;
>>
>> import java.util.HashMap;
>> import java.util.Map;
>> import net.sourceforge.stripes.controller.DispatcherServlet;
>> import net.sourceforge.stripes.controller.StripesFilter;
>> import net.sourceforge.stripes.mock.MockRoundtrip;
>> import net.sourceforge.stripes.mock.MockServletContext;
>> import org.junit.Before;
>> import org.junit.Test;
>>
>> import static org.junit.Assert.*;
>>
>> public class ParameterTestAction {
>>        MockServletContext context;
>>
>>       �...@before
>>        public void setup() {
>>                context = new MockServletContext("test");
>>
>>                // Add the Stripes Filter
>>                Map filterParams = new
>> HashMap();
>>                filterParams.put("ActionResolver.Packages",
>> "com.foo.stripes");
>>                context.addFilter(StripesFilter.class, "StripesFilter",
>> filterParams);
>>
>>                // Add the Stripes Dispatcher
>>                context.setServlet(DispatcherServlet.class,
>> "StripesDispatcher", null);
>>        }
>>
>>       �...@test
>>        public void testParameter() throws Exception {
>>                final Integer id = 2;
>>                MockRoundtrip trip = new MockRoundtrip(context,
>> TestAction.class);
>>                trip.setParameter("id", id.toString());
>>                trip.execute();
>>
>>                TestAction action = trip.getActionBean(TestAction.class);
>>                assertEquals(id, action.getId());
>>
>>        }
>> }
>>
>> On Wed, Oct 20, 2010 at 2:56 AM, VANKEISBELCK Remi  wrote:
>> > Haven't looked yet, but the log might be "normal".
>> >
>> > Could you post a test case that reproduces your bug ? This way I'll have
>> > a
>> > closer look if you want.
>> >
>> > Cheers
>> >
>> > Remi
>> >
>> > 2010/10/20 Nathan Maves 
>> >>
>> >> Just tested this with logging on 1.5.3.  It looks like there is an
>> >> issue with the {$event} binding but I am not sure that is really an
>> >> issue or not.
>> >>
>> >> Let me know if there is anything else I can do on my end to help out.
>> >>
>> >> Here is the log for 1.5.3
>> >>
>> >>  INFO 2010-10-19 21:46:10,991 net.sourceforge.stripes.util.Log.info():
>> >> Stripes Initialization Complete. Version: 1.5.3, Build: 1.5.3
>> >> DEBUG 2010-10-19 21:46:11,844
>> >> net.sourceforge.stripes.util.Log.debug(

[Stripes-users] Nested indexed property question

2010-10-22 Thread Nathan Maves
Give the following parameter

foo[0].bar=abc
foo[1].bar=abc
foo[2].bar=
foo[3].bar=abc

I would expect the Collection in my action to have a size of 3.
 Instead I get a size of 4 where one of the items in the collection is null.

Is this the correct behavior?

Nathan
--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Nested indexed property question

2010-10-22 Thread Nathan Maves
In my case there are no required validations.

On Fri, Oct 22, 2010 at 3:16 PM, Joaquin Valdez wrote:

> Hello!
>
> I would say it depends on the validation being used on the List of Foo
> objects.
>
> For example:
>
> @ValidateNestedProperties({
>@Validate(field = "bar", required = true),
>@Validate(field = "bar1", required = true),
>@Validate(field = "bar2", required = true),
>@Validate(field = "bar3", required = true),
>@Validate(field = "bar4, required = true),
>@Validate(field = "bar5", required = true)
>})
>private List foos;
>
> Hope that helps!  The bazooky example shows this concept quite clearly.
>
> Joaquin
>
>
>
>
> On Oct 22, 2010, at 1:39 PM, Nathan Maves wrote:
>
> > Give the following parameter
> >
> > foo[0].bar=abc
> > foo[1].bar=abc
> > foo[2].bar=
> > foo[3].bar=abc
> >
> > I would expect the Collection in my action to have a size of 3.
>  Instead I get a size of 4 where one of the items in the collection is null.
> >
> > Is this the correct behavior?
> >
> > Nathan
> >
> --
> > Nokia and AT&T present the 2010 Calling All Innovators-North America
> contest
> > Create new apps & games for the Nokia N8 for consumers in  U.S. and
> Canada
> > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in
> marketing
> > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
> >
> http://p.sf.net/sfu/nokia-dev2dev___
> > Stripes-users mailing list
> > Stripes-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/stripes-users
>
> Joaquin Valdez
> joaquinfval...@gmail.com
>
>
>
>
>
> --
> Nokia and AT&T present the 2010 Calling All Innovators-North America
> contest
> Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in
> marketing
> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
> http://p.sf.net/sfu/nokia-dev2dev
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Error when running test suite using MockServletContext

2010-10-24 Thread Nathan Maves
though it may sound weird I think this will solve it

public void setUp() {
if (context == null) {
context = new MockServletContext("test");
// Add the Stripes Filter
Map filterParams = new HashMap();
filterParams.put("ActionResolver.Packages",
"au.com.secretsanta.web.action");
context.addFilter(StripesFilter.class, "StripesFilter",
filterParams);
context.addInitParameter("contextConfigLocation",
"/WEB-INF/applicationContext.xml test-jpaContext.xml
/WEB-INF/applicationContext-security.xml");

//bind your context with an initializer
ContextLoaderListener springContextListener = new
ContextLoaderListener();
springContextListener.contextInitialized(new
ServletContextEvent(context));
// Add the Stripes Dispatcher
context.setServlet(DispatcherServlet.class, "StripesDispatcher",
null);
}
}

On Sun, Oct 24, 2010 at 7:01 AM, Annie Lane  wrote:

> Hi everyone,
>
> I have a couple of JUnit tests that create a MockServletContext before each
> test runs, with an @Before that creates the MockServletContext for me. I
> notice when I run the entire suite of tests in this test class I get the
> following error:
>
> net.sourceforge.stripes.exception.StripesRuntimeException: Something is
> trying to access the current Stripes configuration but the current request
> was never routed through the StripesFilter! As a result the appropriate
> Configuration object cannot be located. Please take a look at the exact URL
> in your browser's address bar and ensure that any requests to that URL will
> be filtered through the StripesFilter according to the filter mappings in
> your web.xml.
>
> I've googled a lot and found that some other people have had trouble with
> this but couldn't find any solution other than this apparent bug fix:
> http://www.stripesframework.org/jira/browse/STS-714
>
> I don't understand the bug fix though, could someone explain to me what
> code I need to write in my @After JUnit method to make this happen?
>
> Here is my @Before method which runs before each unit test:
>
> public void setUp() {
> context = new MockServletContext("test");
> // Add the Stripes Filter
> Map filterParams = new HashMap();
> filterParams.put("ActionResolver.Packages",
> "au.com.secretsanta.web.action");
> context.addFilter(StripesFilter.class, "StripesFilter",
> filterParams);
> context.addInitParameter("contextConfigLocation",
> "/WEB-INF/applicationContext.xml test-jpaContext.xml
> /WEB-INF/applicationContext-security.xml");
>
> //bind your context with an initializer
> ContextLoaderListener springContextListener = new
> ContextLoaderListener();
> springContextListener.contextInitialized(new
> ServletContextEvent(context));
> // Add the Stripes Dispatcher
> context.setServlet(DispatcherServlet.class, "StripesDispatcher",
> null);
> }
>
> Thanks,
> Annie
>
>
> --
> Nokia and AT&T present the 2010 Calling All Innovators-North America
> contest
> Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in
> marketing
> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
> http://p.sf.net/sfu/nokia-dev2dev
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Stripes and GWT

2010-10-25 Thread Nathan Maves
Philip,

You should add Evernote to
http://www.stripesframework.org/display/stripes/Stripes+Around+The+Web

 I
would be a great reference!

On Mon, Oct 25, 2010 at 12:07 AM, Philip Constantinou <
pconstanti...@evernote.com> wrote:

> Evernote (4.7+ million users to date) uses both GWT and Stripes in our web
> app. We basically use them as two totally independent components -- they
> don't interact at all aside from using Stripes to generate the page that
> references the GWT resources.
>
> We haven't had any problems but generally they are two totally different
> approaches. Stripes generally assumes that the page reloads and GWT assumes
> that all the communications happens from a single page.
>
> We've used Stripes for all the registration, account management and
> commerce operations and GWT for the more dynamic UI elements. We also use
> Stripes for the mobile web (ie. non-Javascript) UI's.
>
> If we need to add some dynamic behavior (like checking if a username is
> taken or other real time client side validation) to the stripes pages we use
> jQuery and just return JSONObjects as a Resolution.
>
> Architecturally we have a service layer that both GWT and the Stripes
> action beans call into.
>
> This seems to work fine, no regrets but we haven't put a lot of thought
> into integrating the two technologies.
>
> On Oct 24, 2010, at 9:54 PM, farouk alhassan wrote:
>
> Hi all,
> Is it possible to use Stripes with GWT smoothly in the same project. If so
> what are some of the  gothas and work arounds one should anticipate in this
> aproach.
>
> If its not possible, what is the recommended approach to using a native
> component framework with stripes?
>
> Regards
> Farouk A
>
>
> --
>
> Nokia and AT&T present the 2010 Calling All Innovators-North America
> contest
> Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in
> marketing
> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
>
> http://p.sf.net/sfu/nokia-dev2dev___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
>
>
> --
> Nokia and AT&T present the 2010 Calling All Innovators-North America
> contest
> Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in
> marketing
> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
> http://p.sf.net/sfu/nokia-dev2dev
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] CleanUrl bug from 1.5.1+ when using MockRoundtrip

2010-10-26 Thread Nathan Maves
Should I put in a JIRA for this issue?

On Wed, Oct 20, 2010 at 10:15 AM, VANKEISBELCK Remi  wrote:

> Hi Nathan,
>
> Just had a quick look to your test. Refactored to :
> http://pastebin.com/02nY8aWF
>
> The two test methods that use a string url for the binding work fine. The
> one using the beanclass doesn't work...
>
> As a workaround for now, you can use stringified urls in your tests. I'll
> try to understand what's going on as soon as I have a moment.
>
> Cheers
>
> Remi
>
> 2010/10/20 Nathan Maves 
>
>> Sure thing Remi.  The following example fails because the id is null.
>>
>> Nathan
>>
>>
>> ACTION
>>
>> package com.foo.stripes;
>>
>> import net.sourceforge.stripes.action.ActionBean;
>> import net.sourceforge.stripes.action.ActionBeanContext;
>> import net.sourceforge.stripes.action.DefaultHandler;
>> import net.sourceforge.stripes.action.Resolution;
>> import net.sourceforge.stripes.action.UrlBinding;
>>
>> @UrlBinding("/foo/{$event}/{id}")
>> public class TestAction implements ActionBean {
>>ActionBeanContext context;
>>
>>Integer id;
>>
>>@DefaultHandler
>>public Resolution bar() {
>>
>>return null;
>>}
>>
>>public Integer getId() {
>>return id;
>>}
>>
>>public void setId(Integer id) {
>>this.id = id;
>>}
>>
>>@Override
>>public void setContext(ActionBeanContext context) {
>>this.context = context;
>>}
>>
>>@Override
>>public ActionBeanContext getContext() {
>>return this.context;
>>}
>> }
>>
>> TEST
>>
>> package com.foo.stripes;
>>
>> import java.util.HashMap;
>> import java.util.Map;
>> import net.sourceforge.stripes.controller.DispatcherServlet;
>> import net.sourceforge.stripes.controller.StripesFilter;
>> import net.sourceforge.stripes.mock.MockRoundtrip;
>> import net.sourceforge.stripes.mock.MockServletContext;
>> import org.junit.Before;
>> import org.junit.Test;
>>
>> import static org.junit.Assert.*;
>>
>> public class ParameterTestAction {
>>MockServletContext context;
>>
>>@Before
>>public void setup() {
>>context = new MockServletContext("test");
>>
>>// Add the Stripes Filter
>>Map filterParams = new
>> HashMap();
>>filterParams.put("ActionResolver.Packages",
>> "com.foo.stripes");
>>context.addFilter(StripesFilter.class, "StripesFilter",
>> filterParams);
>>
>>// Add the Stripes Dispatcher
>>context.setServlet(DispatcherServlet.class,
>> "StripesDispatcher", null);
>>}
>>
>>@Test
>>public void testParameter() throws Exception {
>>final Integer id = 2;
>>MockRoundtrip trip = new MockRoundtrip(context,
>> TestAction.class);
>>trip.setParameter("id", id.toString());
>>trip.execute();
>>
>>TestAction action = trip.getActionBean(TestAction.class);
>>assertEquals(id, action.getId());
>>
>>}
>> }
>>
>> On Wed, Oct 20, 2010 at 2:56 AM, VANKEISBELCK Remi  wrote:
>> > Haven't looked yet, but the log might be "normal".
>> >
>> > Could you post a test case that reproduces your bug ? This way I'll have
>> a
>> > closer look if you want.
>> >
>> > Cheers
>> >
>> > Remi
>> >
>> > 2010/10/20 Nathan Maves 
>> >>
>> >> Just tested this with logging on 1.5.3.  It looks like there is an
>> >> issue with the {$event} binding but I am not sure that is really an
>> >> issue or not.
>> >>
>> >> Let me know if there is anything else I can do on my end to help out.
>> >>
>> >> Here is the log for 1.5.3
>> >>
>> >>  INFO 2010-10-19 21:46:10,991 net.sourceforge.stripes.util.Log.info():
>> >> Stripes Initialization Complete. Version: 1.5.3, Build: 1.5.3
>> >> DEBUG 2010-10-19 21:46:11,844
>> >> net.sourceforge.stripes.util.Log.debug(): LocalePicker selected
>> >> locale: e

Re: [Stripes-users] Odd Clean URL Binding??? (1.5.4 Snapshot)

2010-10-28 Thread Nathan Maves
I believe you need to move the $ inside the curly braces.

{$event}

Nathan

On Thu, Oct 28, 2010 at 12:50 PM, Nikolaos Giannopoulos <
nikol...@brightminds.org> wrote:

> Hi,
>
> We have the following:
> @UrlBinding("/share/{id}/{titleUrlified}/${event}")
>
> Where "id" is a Long and "titleUrlified" is a String
>
> When we test the following url:
> /share/0/anything/edit
>
> We get the following binding:
> id=0
> titleUrlified=anything/edit
>
> and the @DefaultHandler view() method gets invoked vs. the edit() method
>
> Why is titleUrlified NOT set to "anything"?  Why is the binding so
> aggressive?
> Hopefully I am doing something silly.  Anyone
>
> --Nikolaos
>
> P.S.  I haven't tested 1.5.3 (yet)... as it is quite a pain to switch
> between the 2... (at the moment)
>
>
>
> --
> Nokia and AT&T present the 2010 Calling All Innovators-North America
> contest
> Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in
> marketing
> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
> http://p.sf.net/sfu/nokia-dev2dev
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Odd Clean URL Binding??? (1.5.4 Snapshot)

2010-10-29 Thread Nathan Maves
I don't see an issue adding this new magic name but we would need to keep
the old one as well to maintain backwards compatibility.

Nate

On Thu, Oct 28, 2010 at 6:59 PM, Samuel Santos  wrote:

> +1 for {_eventName}
>
> --
> Samuel Santos
> http://www.samaxes.com/
>
>
>
> On Fri, Oct 29, 2010 at 1:14 AM, Joaquin Valdez 
> wrote:
>
>> I have always been partial to the ~
>>
>> Joaquin
>>
>>
>> On Oct 28, 2010, at 5:11 PM, Freddy Daoud wrote:
>>
>> >> You are both correct.  Indeed perhaps something like  {#event}  would
>> >> have been better.  Hindsight is always 20-20.
>> >
>> > I realize I'm probably the only one who would like this, but I would
>> > have used {_eventName} because that special request parameter is
>> > already being used for the event name. So, one less "magical" thing
>> > to learn.
>> >
>> > Freddy
>> >
>> >
>> --
>> > Nokia and AT&T present the 2010 Calling All Innovators-North America
>> contest
>> > Create new apps & games for the Nokia N8 for consumers in  U.S. and
>> Canada
>> > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in
>> marketing
>> > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
>> > http://p.sf.net/sfu/nokia-dev2dev
>> > ___
>> > Stripes-users mailing list
>> > Stripes-users@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/stripes-users
>>
>> Joaquin Valdez
>> joaquinfval...@gmail.com
>>
>>
>>
>>
>>
>> --
>> Nokia and AT&T present the 2010 Calling All Innovators-North America
>> contest
>> Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
>> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in
>> marketing
>> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
>> http://p.sf.net/sfu/nokia-dev2dev
>> ___
>> Stripes-users mailing list
>> Stripes-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>>
>
>
>
> --
> Nokia and AT&T present the 2010 Calling All Innovators-North America
> contest
> Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in
> marketing
> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
> http://p.sf.net/sfu/nokia-dev2dev
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


[Stripes-users] Maven convention

2010-10-31 Thread Nathan Maves
Just curious if anyone has thought to migrate the current layout of the
stripes code to use more Maven conventions?

Nathan
--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Maven convention

2010-11-10 Thread Nathan Maves
For what it is worth I can personally tell you that we (MyBatis.org)
team are working hard to achieve this same goal.  We now have around 6
sub maven project along with the core maven project.  It has really
helped us deliver faster and more stable releases.  It has also
allowed us to engage more people from the community to help with
development.  I would love to see the Stripes community follow suit.

Just last week I was trying to find where the unit tests for Stripes
were located.  To my surprise they are not in the core module.  I also
just spent a few minutes trying to find the maven page on the website,
which I have found in the past, and I can't seem to find it again.  I
would love to see something as simple as
http://code.google.com/p/mybatis/wiki/DocMavenTutorial.

For those that are still using Ant you really just need to give it a
try.  I honestly have never seen someone who gives maven a try for
their build process ever go back to Ant.  For a product who believes
in convention over configuration I really think it is a perfect fit
for Stripes.

I am offering up any help or advice that you may need from myself or
the MyBatis team.

Nathan

On Wed, Nov 10, 2010 at 7:05 AM, Joaquin Valdez
 wrote:
>
> Thanks Ben!
> On Nov 10, 2010, at 5:54 AM, Ben Gunter wrote:
>
> Thanks. That's exactly what I did, and it must have worked!
>
> http://repo2.maven.org/maven2/net/sourceforge/stripes/stripes/1.5.4/
>
> On Wed, Nov 10, 2010 at 5:35 AM, VANKEISBELCK Remi  wrote:
>>
>> Not sure it's not too late, but anyway...
>>
>> The gpg thing is in the maven build if I remember well, there's a maven 
>> plugin for that. You just need pgp on the build machine, with a pubkey that 
>> you have distributed on the PGP network... then mvn clean deploy -Prelease 
>> if I'm right : this pushes everything on sonatype's repo.
>> Then, on sonatype, just close the staging request and release.
>>
>> Cheers
>>
>> Remi
>>
>> 2010/11/10 Ben Gunter 
>>>
>>> I'm working on releasing 1.5.4 now, but I can't promise I'll get it done 
>>> tonight. There's some stuff involved I've never done, like GPG signing the 
>>> artifacts and getting them synced to central through Sonatype. If I screw 
>>> something up, the release will be delayed.
>>>
>>> -Ben
>>>
>>> On Sun, Nov 7, 2010 at 9:09 PM, Nikolaos Giannopoulos 
>>>  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.
>>>>>>
>>>>&

Re: [Stripes-users] Stripes Hudson is public

2010-11-12 Thread Nathan Maves
This rocks!

On Fri, Nov 12, 2010 at 10:43 AM, Ben Gunter  wrote:

> In case anyone is interested, you can check out our Hudson instance here:
>
> http://www.stripesframework.org/hudson/
>
> -Ben
>
>
> --
> Centralized Desktop Delivery: Dell and VMware Reference Architecture
> Simplifying enterprise desktop deployment and management using
> Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
> client virtualization framework. Read more!
> http://p.sf.net/sfu/dell-eql-dev2dev
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
--
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


[Stripes-users] 1.5.5 Release

2010-12-14 Thread Nathan Maves
There are a few bug fixes that we are waiting on.  Is there any chance
that we can release 1.5.5 any time soon?

I am using the 1.5.5-SNAPSHOT from maven which I love that the Stripes
community now has!  Everything seems stable to me.

Nathan

--
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] 1.5.5 Release

2010-12-28 Thread Nathan Maves
Any word on this.  I would really like to see the team take a more
release early and release often approach on Stripes. So far there are
12 resolved issues scheduled for the 1.5.5 release.  That is enough in
my book to warrant a release.  How about we push the remaining 6 to
1.5.6?

I would just love to get off the snapshot build and make make maven
and my team happy :)

Thanks for the hard work.

PS we just changes our sample app on MyBatis.org to use Stripes!  Man
I love this framework!

Nathan

On Tue, Dec 14, 2010 at 1:57 PM, Nathan Maves  wrote:
> There are a few bug fixes that we are waiting on.  Is there any chance
> that we can release 1.5.5 any time soon?
>
> I am using the 1.5.5-SNAPSHOT from maven which I love that the Stripes
> community now has!  Everything seems stable to me.
>
> Nathan
>

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] 1.5.5 Release

2010-12-29 Thread Nathan Maves
Awesome Ben.  I do most of the releases for the MyBatis.org team.  We
have almost the exact same setup so if you are looking for help let me
know.

With the new release process we have really adapted a release early
and often approach.  Our community is really loving it.  Even if it is
only a few bugs fixes we push out a release.  Out team runs into the
same priority issue with real life, but the quick releases seem to
really help portray our progress to our users.

Thanks for all the hard work!

On Wed, Dec 29, 2010 at 2:42 PM, Ben Gunter  wrote:
> Nathan, I've finished all but two of the remaining 1.5.5 issues plus one or
> two more that hadn't been scheduled yet. The remaining two will likely get
> pushed to the next release so 1.5.5 is pretty much ready to roll.
> As the guy who does most of the coding and most of the work related to
> releases, when a release rolls out is really dependent on when I can find
> time to work on it. I've been very busy the last few weeks and haven't had
> time to finish up what I wanted done for 1.5.5. I never commit to a release
> date because there are many things in my life that have higher priority than
> Stripes. As such things related to Stripes tend to suffer delays when more
> important things crop up that I have to handle.
> It's great to hear you're using Stripes in your sample app! That kind of
> support from another popular framework can only help :)
> Look for 1.5.5 to be released in the next few days.
> -Ben
>
> On Tue, Dec 28, 2010 at 10:32 AM, Nathan Maves 
> wrote:
>>
>> Any word on this.  I would really like to see the team take a more
>> release early and release often approach on Stripes. So far there are
>> 12 resolved issues scheduled for the 1.5.5 release.  That is enough in
>> my book to warrant a release.  How about we push the remaining 6 to
>> 1.5.6?
>>
>> I would just love to get off the snapshot build and make make maven
>> and my team happy :)
>>
>> Thanks for the hard work.
>>
>> PS we just changes our sample app on MyBatis.org to use Stripes!  Man
>> I love this framework!
>>
>> Nathan
>>
>> On Tue, Dec 14, 2010 at 1:57 PM, Nathan Maves 
>> wrote:
>> > There are a few bug fixes that we are waiting on.  Is there any chance
>> > that we can release 1.5.5 any time soon?
>> >
>> > I am using the 1.5.5-SNAPSHOT from maven which I love that the Stripes
>> > community now has!  Everything seems stable to me.
>> >
>> > Nathan
>> >
>>
>>
>> --
>> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
>> to consolidate database storage, standardize their database environment,
>> and,
>> should the need arise, upgrade to a full multi-node Oracle RAC database
>> without downtime or disruption
>> http://p.sf.net/sfu/oracle-sfdevnl
>> ___
>> Stripes-users mailing list
>> Stripes-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
> --
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment,
> and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Stripes 1.5.5 released

2011-01-04 Thread Nathan Maves
You rock Ben!

P.S.

So does Stripes!

On Tue, Jan 4, 2011 at 11:17 AM, Ben Gunter  wrote:
> Stripes 1.5.5 is available for Download from Sourceforge. Maven users will
> find it in the central repository.
> For information on what has changed and what you need to know before you
> upgrade, see the Release Notes.
> Thanks to all who contributed to this release.
> -Ben
> --
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment,
> and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Stripes 1.5.6 released

2011-03-14 Thread Nathan Maves
Nice work Ben/Team!  I love seeing frequent releases, even though minor,
shows that the project is alive and kicking butt.

Nathan

On Mon, Mar 14, 2011 at 9:06 AM, Ben Gunter  wrote:

> Stripes 1.5.6 is available for download from Sourceforge. It should appear
> in the Maven central repository in the next hour or so. This is a minor bug
> fix release.
>
> Release notes:
>
> http://stripes.svn.sourceforge.net/viewvc/stripes/tags/1.5.6/ReleaseNotes.html
>
> Sourceforge download:
>
> http://sourceforge.net/projects/stripes/files/stripes/Stripes%201.5.6/stripes-1.5.6.zip/download
>
> -Ben
>
>
> --
> Colocation vs. Managed Hosting
> A question and answer guide to determining the best fit
> for your organization - today and in the future.
> http://p.sf.net/sfu/internap-sfd2d
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


[Stripes-users] Stripes Stuff Security manager

2011-10-04 Thread Nathan Maves
Not sure if anyone is still working on this project.  I just implemented it and 
it is working great except for one small issue.

I have created a ticket but know one has even looked at it.  Who maintains this 
project?

http://sourceforge.net/tracker/?func=detail&aid=3382420&group_id=217148&atid=1039392


--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Stripes Stuff Security manager

2011-10-04 Thread Nathan Maves
Sure!  I can do that.  In fact just built it locally with my fix.  

Here is what I came up with

if (element.isAnnotationPresent(DenyAll.class))
{
// The element denies access.

allowed = false;
}
else if (element.isAnnotationPresent(PermitAll.class))
{
// The element allows access to all security roles 
(i.e. any authenticated user).

allowed = isUserAuthenticated(bean, handler);
}
else
{
//Still need to check if the users is authorized
allowed = isUserAuthenticated(bean, handler);

RolesAllowed rolesAllowed = 
element.getAnnotation(RolesAllowed.class);
if (allowed.booleanValue()  && (rolesAllowed != null))
{
// The element allows access if the user has 
one of the specified roles.

allowed = false;

for (String role : rolesAllowed.value())
{
Boolean hasRole = hasRole(bean, 
handler, role);
if (hasRole != null && hasRole)
{
allowed = true;
break;
}
}
}
}


On Oct 4, 2011, at 11:28 AM, Poitras Christian wrote:

> Hi Nathan,
>  
> I can commit the change if you plan to build it from source.
>  
> Christian
>  
> De : Nathan Maves [mailto:nathan.ma...@gmail.com] 
> Envoyé : October-04-11 12:17 PM
> À : Stripes Users List
> Objet : [Stripes-users] Stripes Stuff Security manager
>  
> Not sure if anyone is still working on this project.  I just implemented it 
> and it is working great except for one small issue.
>  
> I have created a ticket but know one has even looked at it.  Who maintains 
> this project?
>  
> http://sourceforge.net/tracker/?func=detail&aid=3382420&group_id=217148&atid=1039392
>  
>  
> --
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2dcopy1___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


[Stripes-users] Stripes Stuff Security Inteceptor

2011-11-21 Thread Nathan Maves
I just ran into a small issue with the Security Interceptor.  We have some 
custom validation methods that require that the user be logged into to work 
properly. 

>From the docs I see the following.  Why do you need to intercept 
>BindingAndValidation?  Why would you allow a user that is not logged in to get 
>that far into an application before you kick them?  Is there a way to override 
>this?  Should I just extends the SecurityInterceptor myself?


/**
 * Security interceptor for the Stripes framework. Determines if handling the 
event for the current execution context
 * is allowed. Execution is allowed if there is no security manager, or if the 
security manager allows it. See the
 * documentation of the SecurityManager interface for more information.
 * 
 * The security manager is invoked between binding&validation and event 
handling, in a way to ensure annotations
 * like @DontValidate and @DontBind work as intended.
 *
 * @author mailto:kin...@xs4all.nl";>Oscar Westra van Holthe - Kind
 * @author mailto:xf2...@fastmail.fm";>Fred Daoud
 * @version $Id: SecurityInterceptor.java 203 2007-04-27 18:42:44Z oscar $
 * @see SecurityManager
 * @see SecurityHandler
 */

@Intercepts({
LifecycleStage.BindingAndValidation, LifecycleStage.CustomValidation, 
LifecycleStage.EventHandling,
LifecycleStage.ResolutionExecution
})
public class SecurityInterceptor



-- 
Nathan Maves

--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


[Stripes-users] Quickstart maven archetype

2012-04-02 Thread Nathan Maves
Looks like we need to update the page at
http://www.stripesframework.org/display/stripes/Maven2+Archetype+for+Stripes.
 The archetype:create is deprecated.

mvn archetype:create \
-DarchetypeArtifactId=stripes-archetype-quickstart \
-DarchetypeGroupId=net.sourceforge \
-DarchetypeVersion=1.0 \
-DgroupId=myGroup \
-DartifactId=stripesTest \
-DarchetypeRepository=http://sourceforge.net/projects/mvnstripes/files/stripes-quickstart-1.0/1.0

should now be

mvn archetype:generate \
-DarchetypeArtifactId=stripes-archetype-quickstart \
-DarchetypeGroupId=net.sourceforge \
-DarchetypeVersion=1.0 \
-DgroupId=myGroup \
-DartifactId=stripesTest \
-DarchetypeRepository=http://sourceforge.net/projects/mvnstripes/files/stripes-quickstart-1.0/1.0

--
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] StripesStuff 0.3 released

2012-05-01 Thread Nathan Maves
awesome news thanks!

On Tue, May 1, 2012 at 11:36 AM, Poitras Christian
 wrote:
> StripesStuff 0.3 is available for download from Sourceforge. This is a minor
> bug fix release.
>
> Sourceforge download:
> https://sourceforge.net/projects/stripes-stuff/files/StripesStuff/
>
>
>
> Christian
>
>
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Stripes UrlBinding - Parameter disappears on submit

2012-08-29 Thread Nathan Maves
I think you should be using  and not the form tag.

On Wed, Aug 29, 2012 at 8:52 PM, Derrick Chua  wrote:
> I use URL bindings on all my actionbeans and some of them requires a
> parameter, e.g. /admin/users/123.
>
> Taking this URL as an example, in my actionbean I am able to get the
> parameter 123 and display user information fine. The same page allows
> changes to user information and this is where the problem comes in.
>
> On submitting the updated user information, the URL becomes /admin/users.
>
> This is a problem because calling context.getRequest().getRequestURL()
> returns me /admin/users instead of /admin/users/123.
>
> I reckon this to be due to the way the tag is written in the jsp:
>
>  beanclass="com.name.ui.web.stripes.action.admin.UserActionBean">...
>
> which resolves to
>
> ...
>
> The corresponding actionbean is coded and annotated as such:
>
> @UrlBinding("/admin/users/{userId}")
> public class UserActionBean{
>   private long userId;
>   public long getUserId(){return userId;}
>   public void setUserId(long userId){this.userId=userId;}
> }
>
>
>
> Has anyone encountered the same problem and managed to solve it?
>
>
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Clustered webservers without sticky sessions

2012-10-15 Thread Nathan Maves
We have 50+ stripes applications load balanced in the AWS ElasticBeanstalk
env.  And yes you set the same key for each of your applications that will
be load balanced.  Each application can have it's own key.



On Mon, Oct 15, 2012 at 12:33 PM, Adam Stokar  wrote:

> We've been using AWS Elastic Beanstalk.  I come from an application
> development background and didn't have alot of experience configuring and
> managing servers.  This product lets you set up web servers, db servers and
> load balancers through a user interface.  It also gives you a clear way to
> monitor your application and define metrics when you should scale up or
> down.  It's got the job done so far and the setup was fast and easy.
>
>
> On Mon, Oct 15, 2012 at 2:24 PM, Brian McSweeney <
> brian.mcswee...@gmail.com> wrote:
>
>> If you could share a little more about your architecture I'd be
>> interested to hear about it Adam. Sounds like a good setup and I'm facing a
>> similar problem in trying to scale out the web tier without sticky sessions.
>>  On Oct 15, 2012 2:19 PM, "Adam Stokar"  wrote:
>>
>>> So if I set this value, then each server instance running my application
>>> will use the same key?  If so, that solves my problem.
>>>
>>> On Mon, Oct 15, 2012 at 2:13 PM, Levi Hoogenberg <
>>> levihoogenb...@gmail.com> wrote:
>>>
 You're looking for the Stripes.EncryptionKey parameter (see
 http://www.stripesframework.org/display/stripes/Configuration+Referencefor 
 details).

 Regards,
   Levi

 2012/10/15 Adam Stokar 

> Hi everyone,
>
> I'm working in a cloud environment where we are constantly adding /
> removing web servers based on the current load at any given time.  In 
> order
> to avoid people getting logged out randomly throughout the day, we decided
> to store our sessions in Redis (an in memory cache) so that requests can 
> go
> to any server and session information will be retrieved correctly.  The
> problem is with the Stripes CryptoUtil.  I see this warning all over the
> logs
>
> CryptoUtil:165 - Input was not encrypted with the current encryption
> key: 4qaa5tWDlC0=
>
> I'm assuming its happening because the server that generates the
> encryption key is not guaranteed to handle subsequent requests.  Is there
> any configuration I can use to also store this encryption key in the cache
> and have Stripes look there rather than in the web servers memory?
>
> Thanks,
>
> Adam
>
>
> --
> Don't let slow site performance ruin your business. Deploy New Relic
> APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>


 --
 Don't let slow site performance ruin your business. Deploy New Relic APM
 Deploy New Relic app performance management and know exactly
 what is happening inside your Ruby, Python, PHP, Java, and .NET app
 Try New Relic at no cost today and get our sweet Data Nerd shirt too!
 http://p.sf.net/sfu/newrelic-dev2dev
 ___
 Stripes-users mailing list
 Stripes-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/stripes-users


>>>
>>>
>>> --
>>> Don't let slow site performance ruin your business. Deploy New Relic APM
>>> Deploy New Relic app performance management and know exactly
>>> what is happening inside your Ruby, Python, PHP, Java, and .NET app
>>> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
>>> http://p.sf.net/sfu/newrelic-dev2dev
>>> ___
>>> Stripes-users mailing list
>>> Stripes-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>>>
>>>
>>
>> --
>> Don't let slow site performance ruin your business. Deploy New Relic APM
>> Deploy New Relic app performance management and know exactly
>> what is happening inside your Ruby, Python, PHP, Java, and .NET app
>> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
>> http://p.sf.net/sfu/newrelic-dev2dev
>> ___
>> Stripes-users mailing list
>> Stripes-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinf

Re: [Stripes-users] Guice is not injecting my TypeConverter

2013-03-03 Thread Nathan Maves
This is a know limitation of the current framework.

Nathan

On Mon, Feb 25, 2013 at 10:30 AM, Dan Kaplan  wrote:
> I'm using this library: http://bgoodin.github.com/stripes-guice/howto.html
>
> I've set it up somewhat correctly because my action beans seem to be
> injected with my DAOs.  But I have a TypeConverter  and I tried to @Inject
> it and it gets a null pointer exception when it uses the DAO.  Is this a
> known limitation?
>
> --
> Thanks,
> Dan
>
> CONFIDENTIALITY NOTICE: The information contained in this electronic
> transmission may be confidential. If you are not an intended recipient, be
> aware that any disclosure, copying, distribution or use of the information
> contained in this transmission is prohibited and may be unlawful. If you
> have received this transmission in error, please notify us by email reply
> and then erase it from your computer system.
> --
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Guice is not injecting my TypeConverter

2013-03-04 Thread Nathan Maves
Per Brandon,

I have deployed version 3.1 of stripes-guice. I have also updated the
documentation at http://bgoodin.github.com/stripes-guice/howto.html.
Version 3.1 should be available on maven by tomorrow morning.

I added an extension package and a GuiceTypeConverterFactory. If you
specify the extension directory it should add the support
automagically.

The important part to notice is the following little nugget to add to
your Stripes filter config:


Stripes Filter
StripesFilter

net.sourceforge.stripes.controller.StripesFilter
...

Extension.Packages
com.silvermindsoftware.sg.extension

...


After you add that you should be able to simply annotate your
TypeConverter with an @Inject on the constructor and have it work.

Brandon

On Mon, Mar 4, 2013 at 10:51 AM, Dan Kaplan  wrote:
> OK, thanks for the info. Any workarounds?  Here's what I did:
>
> public DeployTypeConverter() {
> deployDao = new
> CustomInjectorFactory().getInjector(null).getInstance(DeployDao.class);
> //Stripes limitation: Guice doesn't manage the TypeConverters so I need to
> manually inject code
> }
>
> That CustomInjectorFactory is described in on the Guice-stripes page.
> Here's my implementation of it:
>
> public class CustomInjectorFactory implements GuiceInjectorFactory {
>
> /**
>  * I've made this static so that every class that refers to this
> directly gets the same injector instance.
>  * Without this, I'd be worried that there could be two @Singletons in
> existence
>  */
> private final static Injector injector = Guice.createInjector(new
> DeployManagerModule());
>
> @Override
> public Injector getInjector(ServletContext servletContext) {
> return injector;
> }
> }
>
>
> On Sun, Mar 3, 2013 at 7:10 PM, Nathan Maves  wrote:
>>
>> This is a know limitation of the current framework.
>>
>> Nathan
>>
>> On Mon, Feb 25, 2013 at 10:30 AM, Dan Kaplan  wrote:
>> > I'm using this library:
>> > http://bgoodin.github.com/stripes-guice/howto.html
>> >
>> > I've set it up somewhat correctly because my action beans seem to be
>> > injected with my DAOs.  But I have a TypeConverter  and I tried to
>> > @Inject
>> > it and it gets a null pointer exception when it uses the DAO.  Is this a
>> > known limitation?
>> >
>> > --
>> > Thanks,
>> > Dan
>> >
>> > CONFIDENTIALITY NOTICE: The information contained in this electronic
>> > transmission may be confidential. If you are not an intended recipient,
>> > be
>> > aware that any disclosure, copying, distribution or use of the
>> > information
>> > contained in this transmission is prohibited and may be unlawful. If you
>> > have received this transmission in error, please notify us by email
>> > reply
>> > and then erase it from your computer system.
>> >
>> > --
>> > Everyone hates slow websites. So do we.
>> > Make your web apps faster with AppDynamics
>> > Download AppDynamics Lite for free today:
>> > http://p.sf.net/sfu/appdyn_d2d_feb
>> > ___
>> > Stripes-users mailing list
>> > Stripes-users@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/stripes-users
>> >
>>
>>
>> --
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_d2d_feb
>> ___
>> Stripes-users mailing list
>> Stripes-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
>
>
> --
> Thanks,
> Dan
>
> CONFIDENTIALITY NOTICE: The information contained in this electronic
> transmission may be confidential. If you are not an intended recipient, be
> aware that any disclosure, copying, distribution or use of the information
> contained in this transmission is prohibited and may be unlawful. If you
> have received this transmission in error, please notify us by email reply
> and then erase it from your computer system.
>
> --
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/app

Re: [Stripes-users] Stripes Ajax calls on error

2014-09-30 Thread Nathan Maves
Sure, you just need to have your action class
implement ValidationErrorHandler.  Then you can do what ever you want when
there are validation errors.

http://stripes.sourceforge.net/docs/current/javadoc/net/sourceforge/stripes/validation/ValidationErrorHandler.html

On Tue, Sep 30, 2014 at 9:11 AM, Janne Jalkanen 
wrote:

>
> I suppose you mean validation errors in particular?  We use something like
> this in our AbstractApiActionBean from which all our Api beans inherit from:
>
> /**
>  *  Normally Stripes turns validation errors into HTML, but since this
> is an API,
>  *  we turn it into JSON.  Returns a JSON or JSONP resolution with a
> single
>  *  field "error" which then contains a number of errors.
>  */
> @Override
> public Resolution handleValidationErrors( ValidationErrors errors )
> {
> JSONObject obj = new JSONObject();
>
>
> obj.put( "error", constructErrorObject(errors) );
>
>
> if( m_callback != null )
> return new JSONPResolution( m_callback, obj );
>
>
> return new JSONResolution( HttpServletResponse.SC_BAD_REQUEST,
> obj );
> }
>
> /Janne
>
> On 30 Sep 2014, at 17:01, Yann Bourdeau  wrote:
>
> Hello,
>
> I was wondering is it possible to have an Ajax Call in a Stripes handler
> to return an error code and specific body (like a JSON) instead of the
> default HTML error message in ErrorResolution. I use StreamingResolution
> for returning JSON on successful call and ErrorResolution to returns an
> error. However, ErrorResolution returns an html text body and i’d like to
> return a JSON containing the error. It will be easier to parse in JQuery.
> Any idea?
>
> thanks
>
> Yann Bourdeau, M. Ing.
> 514-219-4607
> ybourd...@mnubo.com
>
>
>
>
> --
>
>
> CONFIDENTIALITY: This e-mail message (including attachments, if any) is
> confidential and is intended only for the addressee. Any unauthorized use
> or disclosure is strictly prohibited. Disclosure of this e-mail to anyone
> other than the intended addressee does not constitute waiver of privilege.
> If you have received this communication in error, please notify us
> immediately and delete this. Thank you for your cooperation.  This message
> has not been encrypted.  Special arrangements can be made for encryption
> upon request.
>
> CONFIDENTIALITÉ:  Ce message courriel (y compris les pièces jointes, le
> cas
> échéant) est confidentiel et destiné uniquement à la personne ou  à
> l'entité à qui il est adressé. Toute utilisation ou divulgation non
> permise
> est strictement interdite.  L'obligation de confidentialité et de secret
> professionnel demeure malgré toute divulgation.  Si vous avez reçu le
> présent courriel et ses annexes par erreur, veuillez nous en informer
> immédiatement et le détruire.  Nous vous remercions de votre
> collaboration.  Le présent message n'a pas été crypté.  Le cryptage est
> possible sur demande spéciale.
>
>
> --
> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
>
> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
>
>
> --
> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
>
> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


[Stripes-users] Injectable ExceptionHandlers

2014-10-19 Thread Nathan Maves
I was curious how hard it would be to add an ExceptionHandlerFactory like
the TypeConverterFactory which would allow for plugins like the
stripes-guice framework to inject these ExceptionHandlers.

If there is a better way I am all ears and will update the current
stripes-guice project to use it.

Nathan
--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Injectable ExceptionHandlers

2014-10-20 Thread Nathan Maves
Nice!

I just started implementing this.  Will this still handle exception
handlers that are not annotated with AutoExceptionHandler?

On Mon, Oct 20, 2014 at 6:55 AM, Poitras Christian <
christian.poit...@ircm.qc.ca> wrote:

>  Hi,
>
>
>
> My bet is that it should be easy if exception handler classes are
> implementing AutoExceptionHandler. Then you only need to override the
> addHandler(Class) method in DelegatingExceptionHandler to get an actual
> instance of the exception handler using Guice’s injector before delegating
> the call to addHandler(Object).
>
>
>
> Christian
>
>
>
> *De :* Nathan Maves [mailto:nathan.ma...@gmail.com]
> *Envoyé :* October-20-14 1:55 AM
> *À :* Stripes Users List
> *Objet :* [Stripes-users] Injectable ExceptionHandlers
>
>
>
> I was curious how hard it would be to add an ExceptionHandlerFactory like
> the TypeConverterFactory which would allow for plugins like the
> stripes-guice framework to inject these ExceptionHandlers.
>
>
>
> If there is a better way I am all ears and will update the current
> stripes-guice project to use it.
>
>
>
> Nathan
>
>
> --
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://p.sf.net/sfu/Zoho
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Injectable ExceptionHandlers

2014-10-20 Thread Nathan Maves
All of this was fun but it turns out it is already injected :)
 Stripes-Guice already injects all ConfigurableComponent(s) which include
any ExceptionHandler(s).   I went looking for a fix that I did not have a
problem for :)



On Mon, Oct 20, 2014 at 10:31 AM, Poitras Christian <
christian.poit...@ircm.qc.ca> wrote:

>  I don’t think so.
>
>
>
> I suggested extending the DelegateExceptionHandler because I think that if
> you extend DefaultExceptionHandler and use stripes-guice Configuration
> class (GuiceRuntimeConfiguration), your exception handler gets
> dependencies already. I haven’t tried it though...
>
> The second reason is that stripes-guice lets Stripes find actions beans
> and context. So to copy that behaviour, using either
> DelegateExceptionHandler or DefaultExceptionHandler is the way to go.
>
>
>
> Now for the end user that tries to use stripes-guice, I would suggest him
> either to extends DefaultExceptionHandler in which case he must use
> stripes-guice Configuration class, or to implement AutoExceptionHandler in
> which case he must add stripes-guice as an extension package.
>
> In the end, as long as he adds stripes-guice as an extension package he
> should be fine with either choice.
>
>
>
> If you really want to pick up classes in a non Stripes related way, ask
> the user to register his exception handlers in a module and inject the list
> of exception handlers in your custom implementation of
> DefaultExceptionHandler.
>
> If you choice to go this way, I’ll give you more hints.
>
>
>
>
>
> *De :* Nathan Maves [mailto:nathan.ma...@gmail.com]
> *Envoyé :* October-20-14 12:05 PM
> *À :* Stripes Users List
> *Objet :* Re: [Stripes-users] Injectable ExceptionHandlers
>
>
>
> Nice!
>
>
>
> I just started implementing this.  Will this still handle exception
> handlers that are not annotated with AutoExceptionHandler?
>
>
>
> On Mon, Oct 20, 2014 at 6:55 AM, Poitras Christian <
> christian.poit...@ircm.qc.ca> wrote:
>
> Hi,
>
>
>
> My bet is that it should be easy if exception handler classes are
> implementing AutoExceptionHandler. Then you only need to override the
> addHandler(Class) method in DelegatingExceptionHandler to get an actual
> instance of the exception handler using Guice’s injector before delegating
> the call to addHandler(Object).
>
>
>
> Christian
>
>
>
> *De :* Nathan Maves [mailto:nathan.ma...@gmail.com]
> *Envoyé :* October-20-14 1:55 AM
> *À :* Stripes Users List
> *Objet :* [Stripes-users] Injectable ExceptionHandlers
>
>
>
> I was curious how hard it would be to add an ExceptionHandlerFactory like
> the TypeConverterFactory which would allow for plugins like the
> stripes-guice framework to inject these ExceptionHandlers.
>
>
>
> If there is a better way I am all ears and will update the current
> stripes-guice project to use it.
>
>
>
> Nathan
>
>
>
> --
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://p.sf.net/sfu/Zoho
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
>
>
> --
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://p.sf.net/sfu/Zoho
> ___
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users