Re: [Stripes-users] [Stripes-dev] Stripes 1.6 Released!

2015-09-11 Thread Lionel
VANKEISBELCK Remi a formulé ce vendredi : > Anyway, here' my wish list for 2.0, inspired from Play! : > 1/ Async, non-blocking support > 2/ Dynamic action beans (ie that are resolved at run-time instead of > startup-time) > 3/ Better flash scope (using cookies for example) > 4/ Built-in JSON

Re: [Stripes-users] Advanced Field Error Handling

2013-01-04 Thread Lionel
Luis Tiago Rico vient de nous annoncer : Hi there, for html 5 attributes: Insted of using the Standard Tag Library%@ taglib prefix=stripes uri= http://stripes.sourceforge.net/stripes.tld; % Use DynAttr Tag Library%@ taglib prefix=stripes uri=

Re: [Stripes-users] Advanced Field Error Handling

2013-01-03 Thread Lionel
Matt White a exprimé avec précision : I am converting some old code from HTML4 to HTML5 to get better mobile support. Hello, Did you manage to handle html 5 new input types with stripes ? Like input type=number. I'd like to make my application user friendly on ipad.

[Stripes-users] Form population in JSP

2010-10-08 Thread Lionel
Hello, I have an issue I never had with stripes (1.5.3), probably due to configuration error, but it must be so obvious that I can't find it ! Fields and link parameters are not populated. ${actionBean.myObject.myField} shows the right value but s:text name=myObject.myField/ remains empty.

Re: [Stripes-users] Form population in JSP

2010-10-08 Thread Lionel
Lionel co...@free.fr a écrit dans le message de news: i8ni9u$hu...@dough.gmane.org... Looks like it happens only with strings, longs and dates are well populated. Really looks like a Converter issue. I guess it comes from stripernate as I don't have any converter in this project... I

[Stripes-users] How to handle exceptions in converters ? -- Stripersist and PersistenceException (org.hibernate.CallbackException)

2010-06-28 Thread Lionel
Hello, I usually throw CallbackExceptions using hibernate's Lifecycle when the application is asked to load an object on which access is restricted. This CallbackException is catched and not rethrown by Striperstist. Even if it wasn't caught, it would still be caught and hidden by

Re: [Stripes-users] Feature Request for label selection

2009-11-27 Thread Lionel
Iwao AVE! wrote: It wouldn't work, unfortunately. Please see: http://www.stripesframework.org/jira/browse/STS-679 It's strange: I used it once and works fine ! (with stripes 1.5.2) -- Let Crystal Reports handle

Re: [Stripes-users] Stripes annotation validation error messages

2009-11-16 Thread Lionel
Jan Künstler wrote: Maybe instead of: order.user.userId=User name invoice.user.userId=User name you can just use: userId=User name Would be great if it worked ;) Unfortunately, the last attempt made to find the label is fieldname and not fieldname after last dot.

Re: [Stripes-users] Stripes annotation validation error messages

2009-11-13 Thread Lionel
Jan Künstler wrote: Hi Abhi, yes you can. You need two entries in your resource bundle: One for a generic error message and one for the field name. validation.required.valueNotPresent = {0} is requierd fieldname = Field Name there is one issue with that behaviour: it creates lots of

Re: [Stripes-users] Stripersist and dropdown menu / lazy loading

2009-10-29 Thread Lionel
Hi Aaron, I updated from svn and now everything works fine. Thanks for the update ! Lionel Aaron Porter aa...@mongus.com a écrit dans le message de news: 48935194.6000...@mongus.com... Sounds like I need to dust of the old deproxify code that Remi wrote for Stripernate and stick

Re: [Stripes-users] EntityTypeConverter and encrypted values

2009-10-09 Thread Lionel
Thanks Aaron, I'll try to check next week. Lionel Aaron Porter aa...@mongus.com a écrit dans le message de news: 4acc30a6.1090...@mongus.com... Lionel, Sorry for taking so long on this one. I think I've got a fix in place if you'd like to test it. Aaron

Re: [Stripes-users] cause of Stripes validation error report pageappearing?

2009-10-09 Thread Lionel
You can make your actionBean implement ValidationErrorHandler and use something like this: public Resolution handleValidationErrors(ValidationErrors errors) throws Exception { if (XMLHttpRequest.equals(this.getContext().getRequest().getHeader(X-Requested-With))) { return new

[Stripes-users] Locale Picker and request interceptor

2009-09-24 Thread Lionel
order to have muy interceptor called before the LocalePicker ? Thanks. Lionel -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart

Re: [Stripes-users] OneToManyTypeConvertor

2009-09-11 Thread Lionel
. If I log the real value form the getter , it shows [1, 2, 3]. Is it possible to do what I want without repopulating the rigth value using javascript ? Thanks, Lionel Ross Sargant rsarg...@tvrc.com a écrit dans le message de news: bafb48740909080738m244d12c5s9bd30c15b50b9...@mail.gmail.com

Re: [Stripes-users] Stripes Select List with Map + Collection

2009-07-28 Thread Lionel
Mike McNally wrote: I have EL functions in my library to extract keys and values and Map.Entry lists out of a Map; they're really simple to do and they're very useful in such situations. The less code I write, the better I feel :) Of course, you can easily write a tag that will extract values

Re: [Stripes-users] RTL support for Integer Type Converter

2009-07-08 Thread Lionel
Newman, John W wrote: Stripes simply uses NumberFormat under the hood, that is where this behavior is coming from. So it's either a jdk bug or not a bug at all. It is not a bug, it's people who don't respect the standards. It's the same with the french locale which can't be used to parse

Re: [Stripes-users] Stripes tag - disabled=true will bind a nullvalue?

2009-06-23 Thread Lionel
disabled on the select tag generates a disabled=true on the html select tag, which behaviour is not to send any value. Either use readonly attribute or add a hidden value. Lionel CN Yee yeec...@gmail.com a écrit dans le message de news: 856f41ce0906222324u2336beebi421c2f8a138ab

Re: [Stripes-users] Stripes tag - disabled=true will bind a nullvalue?

2009-06-23 Thread Lionel
Select tags are the most difficult to manage, all other fields are quite easy. With selects, you'll face two major issues making it a little more complex: - get the label to show on the screen (yes, it seems easy, but try to manage option-collections, option-enumeration, simple options) -

[Stripes-users] Data validation

2009-06-17 Thread Lionel
Hi all, I'd like to force users to use the pattern dd/MM/ when they type a date. By default, stripes allows lots of patterns. To avoid mistakes, I want the same pattern for every user (I have french users on english or chinese computers) I added the following key in my properties file:

Re: [Stripes-users] Data validation

2009-06-17 Thread Lionel
Iwao AVE! wrote: Hi Lionel, As the Stripes' default DateTypeConverter is designed to be lenient, I would recommend creating your own DateTypeConverter implementation if you need a strict validation. Thanks. I will do that. This could have been the default implementation when a pattern

[Stripes-users] ValidateNestedProperties and required=true on optional collection

2009-06-09 Thread Lionel
+].regulationName, new LocalizableError (validation.required.valueNotPresent)); } if(other basic validation) {} index++; } } } Is there some way to avoid this ? thanks. Lionel

Re: [Stripes-users] EntityTypeConverter and encrypted values

2009-06-04 Thread Lionel
fix example.. Lionel Aaron Porter aa...@mongus.com a écrit dans le message de news: 4a26c7a6.4050...@mongus.com... Hi Lionel, I saw that the first time I read your message but I forgot about it when changing the code. Sorry about that. How is it failing - are you getting an exception

Re: [Stripes-users] EntityTypeConverter and encrypted values

2009-06-03 Thread Lionel
Thanks Aaron. Did you have a look a the last part of my mail ? I have an issue when the @Id is on the field on a proxified Entity. This is always null on a javassist proxy: ((Field) accessor).get(entity); You have to call the getter to get the value. Lionel Aaron Porter wrote: Thanks

[Stripes-users] EntityTypeConverter and encrypted values

2009-05-29 Thread Lionel
, ((Field) accessor).getName()); Lionel -- Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers brand creativity professionals. Meet the minds behind Google

Re: [Stripes-users] Stripes Security now what question

2009-03-31 Thread Lionel
Héctor López wrote: Unless required, I would stay away from container managed security, it's too complex for what it's really worth... I've been using the JSecurity project for a while and I love it. It's not integrated How I work with tomcat container managed security: - define a

Re: [Stripes-users] Need advice on dependent menu design

2009-03-17 Thread Lionel
AK wrote: This is not specifically a Stripes issue, but I suspect someone here has dealt with this problem and can provide some advice. I'm trying to build a set of dependent drop-down menus, State and City. When one of the 50 states is selected from the 1st drop-down, the City menu is

[Stripes-users] Stripes fields localization

2009-01-23 Thread Lionel
Hello, I have an issue with the way Stripes handles fields localization: it makes me create many duplicate items in the resource bundle. Let's say I have a TruckEntity having a ColorEntity and a CarEntity having a ColorEntity. I have two actionBeans, one to manage a TruckEntity, and one to

Re: [Stripes-users] Session attributes

2008-12-08 Thread Lionel
Oscar Westra van Holthe - Kind wrote: What does this return? this.getContext().getResponse().getSession().setAttribute(testAttribute, Hello World!); System.out.println(this.getContext().getResponse().getSession().getAttribute(Hello World!)); null ? :)

Re: [Stripes-users] How to display many items from database withpaging, column sorting etc.

2008-11-06 Thread Lionel
Toni Lyytikäinen wrote: No, but there are various hacks to make it work. AjaxTags has a tag for this, and you can also make your own javascript-based hack with e.g. YUI or Prototype, namely set the onclick property on the pagination links to some function where you retrieve the new list with

Re: [Stripes-users] AutoComplete with Stripes and YUI

2008-11-04 Thread Lionel
Freddy Daoud wrote: Gregg, thanks for posting the example. Could you include a link to the plugin? http://ui.jquery.com/ What I really miss is a good dependent combobox widget, as good as the one from ajaxtags which uses prototype. By the way, there are lots of much greater autocomplete

Re: [Stripes-users] Stripersist and cglib proxified class

2008-09-17 Thread Lionel
Lionel wrote: Hi Aaron I add logs to EntityUtil.java: I can see that the deproxifyCglibClass() works fine: the Field accessor containing the Id is found. But ((Field) accessor).get(entity) always return null. I've logged the value of entity.toString (which return the Id value): the right

Re: [Stripes-users] bug/issue? - include partial JSP, AJAX and ForwardResolution() does not render collections in thebean - only scalar fields

2008-08-05 Thread Lionel
bug/issue? - include partial JSP, AJAX and ForwardResolution() does not render collections in the bean - only scalar fieldsyou have to include the core taglib definition in the jsp. [EMAIL PROTECTED] uri=http://java.sun.com/jsp/jstl/core; prefix=c % Tayeb Taouti DR Tes Appl. Java [EMAIL

[Stripes-users] Stripersist and dropdown menu / lazy loading

2008-08-01 Thread Lionel
Hi, I get this Exception when I initialise a dropdown with a Proxied entity. ERROR EntityFormatter: 150 - The object passed in was not annotated with @Entity or @MappedSuperclass! java.lang.NullPointerException at

Re: [Stripes-users] Stripersist and dropdown menu / lazy loading

2008-08-01 Thread Lionel
Aaron Porter wrote: Hi Lionel, We'll probably need more than that to go on. Can you paste in some code? Here is what I to in a Filter before chaining the request to Stripersist: User user= (User)httpSession.getAttribute(user); if(user==null){ user.setUserNbConnect(user.getUserNbConnect()+1

Re: [Stripes-users] Stripersist and dropdown menu / lazy loading

2008-08-01 Thread Lionel
Lionel wrote: User user= (User)httpSession.getAttribute(user); if(user==null){ forgot: user = userDao.findById(principal.getName()); user.setUserNbConnect(user.getUserNbConnect()+1); } I need the user on each request for visibility filters and to display its name. I don't want to load

Re: [Stripes-users] Ajax Res and Large datasets

2008-07-21 Thread Lionel
Ken wrote: I need to render about 30,000 rows without pagination into a scrollable table with sorting capabilities. Right now it is set up so that the browser (IE) does all of the work using xml. What would be my best way if I wanted to use hibernate(caching blah blah I got that taken care

Re: [Stripes-users] ACL based Security implementation Issue - Foundwhile testing.

2008-07-08 Thread Lionel
Following the same scenario, I don't face this issue... Lionel Tissen [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] Dear All, I have ACL based Secuity in my application and the security works fine in all the happy flows. But I found an issue while testing

Re: [Stripes-users] Stripersist Getting Started Guide

2008-06-23 Thread Lionel
Aaron Porter wrote: If you haven't noticed yet the example app's web.xml is incorrect - the Extension.Packages should use org.stripersist instead of com.stripersist. It's org.stripesstuff. I'm trying to use stripersist with tomcat. To load the persistance.xml file, you do: URL url =

Re: [Stripes-users] Stripersist Getting Started Guide

2008-06-23 Thread Lionel
Gregg Bolinger wrote: Yea, META-INF/persistence.xml should be in your classpath (WEB-INF/classes). So its being loaded from the correct place. Sounds like you aren't putting the file in the right place. :) You're right. i made it work, I sent the mail too quickly :)

Re: [Stripes-users] Multiple Customer Application

2008-06-13 Thread Lionel
Alan Gutierrez wrote: Ultimately, I created an Interceptor. During ActionBeanResolution it takes the account slug from the path... http://domain.com/stripes/PublicationEdit.action?publication=5 I just wonder why you need to have a different path for each customer. Can't you know the customer

Re: [Stripes-users] Multiple Customer Application

2008-06-12 Thread Lionel
Lionel wrote: Etienne Bernard wrote: Hi Alan, Personnaly I would use hibernate filters to automatically add the where clause. Filters work fine for criterias and queries, but they are not applied on a session.get or session.load... You still have to check the customerId manually You can

Re: [Stripes-users] Prototype and Ajax submissions with s:button ands:submit

2008-05-19 Thread Lionel
Ken wrote: hello all, I am having the problem with the ajax submission from a page with both a stripes:button and stripes:submit on the same page and it always go to the default. Ive read whats on the web and the mailing list am I am wondering if there is a definite solution to this problem

[Stripes-users] Stripes float validation Locale

2008-05-06 Thread Lionel
Hi ! My applications need french locale to display values (dates and numbers) but English locale for Float and Double inputs (nobody use the coma separator to type decimal values) How can I configure Stripes to always use the US locale for Number validation but still use French for display and

Re: [Stripes-users] Need feedback

2008-05-05 Thread Lionel
+1 for trim=true by default maxLength is completely useless without trimming. If default is false, we'll have to add it on every field ! Ben Gunter [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] Hello, folks. The subject of trimming parameter values before validation,

Re: [Stripes-users] Suggestions for a good widget frameworkforSTRIPES

2008-04-21 Thread Lionel
[EMAIL PROTECTED] wrote: http://www.exttld.com/ Haven't used it but looks promising but needs to purchase an expensive per developper licence. - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't