Re: [Stripes-users] Liferay portlets

2012-10-05 Thread Thomas Menke
On 10/04/2012 08:26 PM, Grzegorz Krugły wrote: > In the project I'm on right now I'm forced to develop Liferay projects. > It's a road through pain. I am wondering if anyone tried and was > successful in using Stripes for portlet development? Is there some kind > of integration available? I faced

Re: [Stripes-users] Fwd: auto

2012-05-06 Thread Thomas Menke
On 03/09/2012 05:42 PM, VANKEISBELCK Remi wrote: > v2.0 : https://github.com/vankeisb/woko2/wiki (will soon be relased, we're > in beta) 404 Thomas -- Live Security Virtual Conference Exclusive live event will cover all

Re: [Stripes-users] Stripes:select: force to use the value attribute?

2012-02-11 Thread Thomas Menke
On 02/10/2012 02:55 PM, Poitras Christian wrote: > Hi, > > To answer to your questions: > 1. Yes, it's the intended behaviour. As it's specified in most Stripes' tags > like text > (http://stripes.sourceforge.net/docs/current/taglib/stripes/text.html), > Stripes tag uses the value attribute on

[Stripes-users] Stripes:select: force to use the value attribute?

2012-02-09 Thread Thomas Menke
Hi @ll, I have a JSP page that contains: After spending a good while trying to figure out why stripes would not set the selected="selected" flag even though simply adding ${someValue} next to the select revealed that the value passed to stripes was correct, I discovered that stripes wou

Re: [Stripes-users] Layout reuse "like a component"

2012-01-31 Thread Thomas Menke
On 01/31/2012 10:13 AM, Moritz Petersen wrote: > Hello everyone, > > maybe I'm missing something, but I have trouble doing the following: > > The idea is to define a piece of reusable JSP code, that can be > embedded into other JSP pages. I thought it should be quite simple > with Stripes' layout t

Re: [Stripes-users] Cannot get simple validation to work

2011-08-16 Thread Thomas Menke
On 08/16/2011 04:09 PM, Cefn Hoile wrote: > Poitras Christian writes: > > However, whilst I can see there's a good argument for _not_ considering all > GET > and POST parameters to be owned by Stripes, (on the submission side) I don't > see > the argument for a tag like<@s.text name="design.fea

Re: [Stripes-users] Cannot get simple validation to work

2011-08-16 Thread Thomas Menke
On 08/16/2011 05:19 AM, Cefn Hoile wrote: > Cefn Hoile writes: > > Once the getters and setters were there everything went swimmingly. This > leaves > a couple of questions in my mind... > > 1) Why does the validation reference at... > http://www.stripesframework.org/display/stripes/Validation+Re

[Stripes-users] Accessing an uploaded file as file

2011-08-12 Thread Thomas Menke
Hi @ll, I have a FileUpload in form and I need random access to that file (because it is a zip file that I need to process). After processing the file I don't need the file anymore and can delete it. Stripes' FileBean does not let me do this. I need to move the file to somewhere else first and

Re: [Stripes-users] Simple Stripes Example

2011-07-24 Thread Thomas Menke
On 07/24/2011 12:43 PM, Chris Molozian wrote: > Hey all, > > Welcome, ${actionBean.user.getName()} That should be ${actionBean.user.name}, which is internally converted to actionBean.getUser().getName(). (This has nothing to do with stripes, this is a Java EL feature ;-)). I am wondering thoug

[Stripes-users] Validation errors in handler method + ValidationErrorMethod

2011-07-21 Thread Thomas Menke
Hi, I have a handler method that creates a validation error just like here: http://www.stripesframework.org/display/stripes/Validation+Reference#ValidationReference-PerformingValidationinHandlerMethods Additionally the ActionBean implements the ValidationErrorHandlder. If I just return a source

Re: [Stripes-users] HTTPS support and/or Stripes 1.6?

2011-07-20 Thread Thomas Menke
On 07/20/2011 10:31 PM, Ulf Dittmer wrote: > Hello- > > We're using Stripes on most of our web sites, and were just now hit > by the lack of full HTTPS support > (http://www.stripesframework.org/jira/browse/STS-239). Seeing that > that issue, and the 1.6 Release of which it is part, have been a l

[Stripes-users] Use Stripes' Validation stuff apart from the rest of stripes?

2011-06-25 Thread Thomas Menke
Hi, in a project I am working on I am forced to use a library that requires me to extend a class of that library that in turn extends HttpServlets. For luck I need this only for very few pages with certain special content, for most pages I can use Stripes as usual. What I miss most in these se

[Stripes-users] ActionBean -> JSP communication

2011-06-20 Thread Thomas Menke
Hi, coming from the PHP world I am starting to get practice with Stripes. And I wonder how to best communicate between JSP and my ActionBean. In PHP I liked to use "smarty". There one just saves all the data the template needs into a large HashMap und the template will work with this map, afte

Re: [Stripes-users] Indexed property

2011-06-16 Thread Thomas Menke
On 06/16/2011 04:50 AM, nicolas wrote: > > > Hey again > > thanks for the first answer but i still have some issue > > Here what i have in the code source of my webpage : > > > items="[com.nsa.n74.tvshowtrackerweb.hibernate.TvShow@3652ac26, > com.nsa.n74.tvshowtrackerweb.hibernate.TvSho

Re: [Stripes-users] Indexed property

2011-06-15 Thread Thomas Menke
On 06/16/2011 01:45 AM, nicolas savoini wrote: > Hello > > I'am starting to try to use indexed property. > But i got an error. > > Here what i have > - The manager > package com.nsa.n74.tvshowtrackerweb.servlet.stripes; > public class TvshowManager > public List getAllTvShows() > { > List tvsho

Re: [Stripes-users] Basic Authentification

2011-06-15 Thread Thomas Menke
On 06/15/2011 10:58 PM, Freddy Daoud wrote: > Hi Nicolas, Hi Freddy, > > You could try this article, it includes an example along those > lines. > > http://www.theserverside.com/news/1363758/A-Stripes-15-Test-Drive Why are all the code snippets without any line feeds etc? It is very hard to read

Re: [Stripes-users] altering content of a bean

2011-06-08 Thread Thomas Menke
On 06/07/2011 02:58 PM, Michael Weber wrote: Hello! I have a problem which might sound trivial to most of you, but I fail at figuring out a solution myself. I have a bean which stores some information from a database in a Collection. The content of the Collection is shown on a JSP page. Now I w

Re: [Stripes-users] Stripersist + Composed Primary Key

2011-04-10 Thread Thomas Menke
On 04/10/2011 03:36 PM, Thomas Menke wrote: > > I thought about just creating a second Map String>> and then create a validation method that will iterate through > the map, loading entities from the database and saving them into the > other map again. But then I need this addi

[Stripes-users] Stripersist + Composed Primary Key

2011-04-10 Thread Thomas Menke
Hi, I have a form that works with items that have a composed primary key. Say I have a table "score" where scores of students of assessments are saved. The primary key is composed from a student-id and a assessment-id. In the form I just wrote: And my action bean has a Map> that holds the sc

Re: [Stripes-users] Calling methods from JSP

2011-04-03 Thread Thomas Menke
On 04/02/2011 11:42 PM, Freddy Daoud wrote: > Nice writeup Joel and good to have for a quick reference. > > Thomas, I know your question was about JSP functions, but I just > wanted to mention that for the actual example you mentioned, you > can probably get Stripes to do the work for you. > > Some

[Stripes-users] Calling methods from JSP

2011-04-02 Thread Thomas Menke
Hi @ll, in one of my JSP files I want to do somthing that looks like this (simplified): selected="selected>${fn:escapeXml(p.name)} As you can see I am trying to call the isSelected method which is as I know (and as far as error messages and google tell me) not possible in EL. B

[Stripes-users] Character encoding of parameter values

2011-04-02 Thread Thomas Menke
Hi @ll, I just noticed that in the application that I have just started parameter values did not end up correctly in my database if the parameter values contained non-ascii characters (tested with german umlauts). It looks like my browser (Opera) passed the parameter unicode encoded and stripe

[Stripes-users] IndexedProperty + Map + validate key

2011-02-05 Thread Thomas Menke
Hi, if I want to use indexed properties (using a Map) as parameter (by the way: Thank you so badly for this feature. It just works so amazingly easy and great). Is it possible to validate the key? In my case the key is a string and I would like to validate it by testing with a simple regex if it'

Re: [Stripes-users] Security and Authentication

2011-01-22 Thread Thomas Menke
On 09/18/2010 06:17 PM, Thomas Menke wrote: > Hi @ll, > > I am currently trying to implement an authentication system for a small > web application. The article "Security Interceptor for custom > authorization" sounds promising to me but unfortunately it says "On how

Re: [Stripes-users] Security and Authentication

2010-09-22 Thread Thomas Menke
Grzegorz Krugły wrote: > What app server are You using? Current release of Stripes failed for me > like that on Glassfish 3, I had to download the newest code from SVN's > 1.5.4 branch where this has been resolved. I am using Tomcat 6.0.24 (installed from Ubuntu repository). Thomas --

Re: [Stripes-users] Security and Authentication

2010-09-21 Thread Thomas Menke
On 09/18/2010 10:06 PM, Grzegorz Krugły wrote: > > > I'm not sure about this, but try removing dispatcherservlet from web.xml > and use dynamicmappingfilter as described in > http://stripes.sourceforge.net/docs/current/javadoc/net/sourceforge/stripes/controller/DynamicMappingFilter.html > like th

Re: [Stripes-users] Security and Authentication

2010-09-18 Thread Thomas Menke
On 09/18/2010 09:28 PM, Grzegorz Krugły wrote: > >>> I originally did not. I did not even implement the SecurityHandler >>> interface. I do now, but it did not change anything. >>> Stripesstuff library is there and both-tags are there es well. >>> > If it's not top secret, ZIP your whole project

Re: [Stripes-users] Security and Authentication

2010-09-18 Thread Thomas Menke
On 09/18/2010 09:05 PM, Grzegorz Krugły wrote: > > > W dniu 18.09.2010 20:54, Thomas Menke pisze: > >>> I did as you said and I added simply "return false" to hasRole() and >>> isUserAuthenticated() and I added a @RolesAllowed annotation to a method >

Re: [Stripes-users] Security and Authentication

2010-09-18 Thread Thomas Menke
On 09/18/2010 06:35 PM, Nikolaos Giannopoulos wrote: > Thomas, > > The way I read the article is that the section you quote applies if you > want to create *your own* security manager that simply extends the > Stripes Stuff plug-in interface. Is that what you want to do? > > Have you tried obtai

Re: [Stripes-users] Security and Authentication

2010-09-18 Thread Thomas Menke
On 09/18/2010 06:31 PM, Grzegorz Krugły wrote: Hi Grzegorz, > After having security interceptor in place, just write a class and > implement those 3 methods: > > public class SecurityManager extends J2EESecurityManager implements > SecurityHandler { > protected Boolean hasRole(ActionBean

[Stripes-users] Security and Authentication

2010-09-18 Thread Thomas Menke
Hi @ll, I am currently trying to implement an authentication system for a small web application. The article "Security Interceptor for custom authorization" sounds promising to me but unfortunately it says "On how to setup security authorization/authentication for org.stripesstuff.plugin.secur

Re: [Stripes-users] Stripes Development and its Future... (this one is long too)

2010-09-02 Thread Thomas Menke
My 2 cent for the discussion: I really like and appreciate the simple design of the homepage. But it could be better structured and there could be more documentation and more detail in the documentation. I have lots of experience in developing web applications in PHP and I have a lot of experie

Re: [Stripes-users] Indexed property validation

2010-07-22 Thread Thomas Menke
Aaron Stromas wrote: > I did and I still I don't get it :-( . What can be the value of field? > > @ValidateNestedProperties({ > @Validate(filed=??? , ) > }) > > List list; Well, I have to admit that I don't know for sure and I did not try, but intuitively I'd say just don't specify a f

Re: [Stripes-users] Indexed property validation

2010-07-22 Thread Thomas Menke
Aaron Stromas wrote: > Greetings, experts! > > Is it possible to use annotation to validate lists or arrays of strings? > Say, I want to validate that the elements are not empty. I know that I can > write the validation method, I'm just curious about using annotations. > Thanks! Check this arti

Re: [Stripes-users] stripersist: recreating (drop/create) a database

2010-07-21 Thread Thomas Menke
Lev wrote: >> There is no limitation that I can see. >> >> The reason one drops a table is because its table structure has changed. >> And if its structure has changed and you are using JPA annotations then >> you need to recompile your changed classes anyways and restart your >> application - wh

Re: [Stripes-users] stripersist: recreating (drop/create) a database

2010-07-20 Thread Thomas Menke
Lev wrote: >> I use this property in my persistance.xml to update tables when I deploy >> my application: >> >> >> > > i have tried setting the property "hibernate.hbm2ddl.auto" to > both "update" and "create-drop". > > however, in both cases, if i drop a table and then subsequently > try to

Re: [Stripes-users] stripersist: recreating (drop/create) a database

2010-07-13 Thread Thomas Menke
On 07/13/2010 08:22 AM, Lev wrote: > hi, > > would anybody happen to know how to recreate (drop, then > create) a database with stripersist? > > further, do you know how to drop/create a specific table > within a database? > > i'm using hibernate with stripersist. Do you want to change the struc

Re: [Stripes-users] Model Initialization: Action Bean Populate vs. JPA Load

2010-07-04 Thread Thomas Menke
Nikolaos Giannopoulos wrote: > Hi, > > > Unfortunately we can't have the same zero argument constructor coded 2 > different ways... Yes, you can: If you derive from your class class UserInitialized extends User { public UserInitialized() { super(); /* Do some initialization */} } That might

Re: [Stripes-users] Bind nested values to abstract class

2010-06-28 Thread Thomas Menke
On 06/27/2010 06:27 PM, Nikolaos Giannopoulos wrote: > Thomas Menke wrote: >> For the record I answer my own question: >> >> Thomas Menke wrote: >> >>> Problem is: I need to instantiate customer based on the information in >>> customerType. But befor

Re: [Stripes-users] Bind nested values to abstract class

2010-06-25 Thread Thomas Menke
For the record I answer my own question: Thomas Menke wrote: > Hi, > > if have the following classes: > > abstract class Customer > { >public String name; >abstract public getMaximumAllowedBooks(); > } > > class NormalCustomer extends Customer >

Re: [Stripes-users] New to stripes- facing an issue

2010-06-25 Thread Thomas Menke
Ravinder Kumar wrote: > hi, > yes i know that, but still i have to do this. please tell me how can i do > this. Two possibilities: a) code your own web browser that does not have this security restriction and make the users of your application use that browser b) A more realistic idea is to call

[Stripes-users] Bind nested values to abstract class

2010-06-07 Thread Thomas Menke
Hi, if have the following classes: abstract class Customer { public String name; abstract public getMaximumAllowedBooks(); } class NormalCustomer extends Customer { public getMaximumAllowedBooks() { return 5; } } class VIPCustomer extends Customer { public String name; public get

Re: [Stripes-users] Autopopulating forms with values from... where?

2010-06-06 Thread Thomas Menke
On 06/06/2010 09:50 AM, Will Hartung wrote: > Hi. > > The population from the http parameters is actually used by the > validation system. And by parameters, it really means the request. > Specifically, say you have a field bound to an Integer, and you put > "Fred" in the field. The Binding will

[Stripes-users] Autopopulating forms with values from... where?

2010-06-05 Thread Thomas Menke
Hi, if I have a textfield: , stripes can automatically populate this field with a value. But I don't really understand what it is doing. The documentation says that stripes will first look for http Parameters to populate the form. The idea that stripes automatically processes those unchecked v