Re: [Stripes-users] Suggestions for a good widget frameworkforSTRIPES
[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 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
Re: [Stripes-users] Localization in action beans?
Gregg Bolinger wrote: > Would getContext().getLocale() not provide you with the same locale? > > LocalizationUtility.getErrorMessage(getContext().getLocale(), > "some.key"); > > Gregg I use this method in my base ActionBean: public String getMessage(String key, Object... parameters) { return new LocalizableMessage(key, parameters).getMessage(getContext().getRequest().getLocale()); } Is there a better way ? - 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
Re: [Stripes-users] Need feedback
+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, type conversion and binding has come up many times on this mailing list, and we have had several lengthy discussions about it on IRC as well. We need to make a decision about how to handle it, and we want to see how everybody feels about it before we commit one way or the other.- 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] Stripes float validation Locale
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 for dates inputs ? I guess I can override FloatTypeConverter to hardcode the locale, but is there another way ? - 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
Re: [Stripes-users] Prototype and Ajax submissions with s:button ands:submit
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 and if so what version of stripes and/or prototype it was > implemented in or the easiest way I can solve it. Thanks in advance. > Ken If you use the serialize funtion of prototype, you need to disable all buttons but the one clicked. Prototype serializes every active button. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users
Re: [Stripes-users] Prototype and Ajax submissions with s:button ands:submit
What if stripes took the first event found in the url even if multiple events are found ? (perhaps with an info log) "Ben Gunter" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] I think we've dealt with this problem for too long. I've logged a JIRA issue (http://www.stripesframework.org/jira/browse/STS-568) where I propose a simple fix in Stripes itself. Comments welcome. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users
Re: [Stripes-users] Stripes float validation Locale
Hi ! I still have my Locale and validation problem. I only use French locale in LocalePicker.Locales, but I want to validate numbers agains US locale (we usually use dot to input numbers, but coma to show them). The best would be to accept both US and French numbers. What is the best way to do this with stripes ? thanks Lionel wrote: > 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 for dates inputs ? > I guess I can override FloatTypeConverter to hardcode the locale, but > is there another way ? - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users
Re: [Stripes-users] Stripes float validation Locale
Tim Fennell wrote: > I think you're best bet would be to write either your own > FloatTypeConverter or your own TypeConverterFactory. > > The latter would probably be the easiest approach. In that case you > could probably just override and very simply add some logic to switch > the locale back to US regardless of what the requested locale is, when > a number type converter is requested. It works for validation, but when I display the field after submit, the value is formatted with french locale. If I submit it again, the value is misinterpreted. Example: input 100.2 click submit --> 100,2 is displayed click submit --> 1002 is displayed It seems the only solution is to replace comas with dots using onkeyPress. - 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
Re: [Stripes-users] Multiple Customer Application
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 - 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
Re: [Stripes-users] Multiple Customer Application
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 try to implement org.hibernate.classic.LifeCycle and check the customerId in doLoad. Throw an exception if it does not match. I don't now if it's the best approach, but it's easy to code and it seems to work. doLoad seems to be called before any action (load/insert/update/delete). - 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
Re: [Stripes-users] Multiple Customer Application
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 from its login and eventually store it in the Principal ? - 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
Re: [Stripes-users] Stripersist Getting Started Guide
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 = Thread.currentThread().getContextClassLoader().getResource("/META-INF/persistence.xml"); when deployed on tomcat by eclipse (using WTP) this doesn't work, "/" points to webinf/classes. Could you add the following line if URL is null after your getResource ? url = servletContext.getResource("/META-INF/persistence.xml") - 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
Re: [Stripes-users] Stripersist Getting Started Guide
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 :) - 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] Interceptors order
Hi ! I'm trying to write my first interceptor with stripes 1.5. My interceptor needs to run "inside" Stripersist: I want to activate hibernate statistics in requestInit after Stripersist has initialized the session, and log the statistics before Stripersist closes the session. Here is the annotion I used: @Intercepts({LifecycleStage.RequestInit, LifecycleStage.ResolutionExecution} ) If I don't specify the interceptors in web.xml, the are called in the wrong order (mine before stripersist). If I specify the order in web.xml, I get this warning : Interceptor class org.stripesstuff.stripersist.Stripersist is configured to run more than once for RequestComplete, which is right. Did I miss something ? Lionel - 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
Re: [Stripes-users] Interceptors order
Aaron Porter wrote: > I think you've got three options: > 1. You can your interceptor before ActionBeanResolution and after > ResolutionExecution. There is a possible problem doing that - if an > exception is thrown before ResolutionExecution completes the second > call won't be made to your interceptor. > 2. You can create a Hibernate interceptor which wouldn't require any > configuration in stripes. I'm not sure if you can set that up in > persistence.xml or if you have to use hibernate.cfg.xml. > 3. You can subclass Stripersist and override intercept. I'm lazy, so I choosed solution 4: move my interceptor to another package et remove com.striperstuff from Extension.packages :) - 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
Re: [Stripes-users] ACL based Security implementation Issue - Foundwhile testing.
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 the security. I have two roles in my application that are Administrator and User. I can control the access level in the JSP using tag. Even I have used @secure annotation at method level. (I refered, http://www.stripesframework.org/display/stripes/Securing+Stripes+With+ACLs) The senario I have tested is below. 1. Logged in as Administrator and executed a secure method. 2. Copy the URL from the browser after execution. 3. Open a new browser and login as a User. 4. After successful authentication past the URL that is copied from Administrator user and press enter. 5. The Result is, The user can also do the same action which can only be performed by administrator. Ideally user should take to notAuthorized.jsp as I specified this in web.xml but it is not happening Did anybody encountered this issue previously? I am just thinking of writing an Interceptor to check the roles just before executing the action. Is it a right way to do this? Could anybody suggest a solution to solve this issue? Cheers, Tissen Sebasian - 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] ACL based Security implementation Issue -Foundwhile testing.
I think it's not a configuration problem, your StripesSecurityManager implementation is probably wrong... "Tissen" <[EMAIL PROTECTED]> a écrit dans le message de news: . Do you have any idea about common mistake that I can come across on security configuration? - 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] Ajax Res and Large datasets
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 of) and stripes > (Streaming JSON or JavaScriptRes) back to the client so that the list > will be ready the fastest. Do you really need to use javascript to parse data ? A basic html table in a jsp with server sort will work way faster. You should try display tag. - 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] Ajax Res and Large datasets
Tim Fennell wrote: > Returning a 30K table as an HTML table in one single request will > actually have pretty poor rendering time in the browser. I agree, but if it's required by users... > We have > some pages at work that show 3-5K rows regularly (yes, it is useful > sometimes), I've tried to raise the page size I use up to 30k rows (instead of 30) for a table containing 15 columns. With IE6 the table was rendered and fully displayed after around 40s (gzipped over ssl) IE6 now uses 290Mo of RAM and used 100% of my cpu during that time. Same table with Firefox 3: 2min30, same amount of memory used. In both case, the table wasn't rendered until the end. I use hibernate -> stripes -> displaytag. > I think if you want a snappy solution you'll have to do what others > have recommended: send the first X rows down and then use AJAX to > dynamically load the rest either on-demand, or simply sequentially > after the page loads. Probably using JSON would lead to more compact > representation and faster parsing the JS layer as opposed to XML, but > I'm not sure how big a different that would make. I 'd also try to send CSV content with Excel content type, perharps will it be faster (and easier to sort after table display) - 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] Stripersist and dropdown menu / lazy loading
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 net.sourceforge.stripes.tag.InputTagSupport.isItemSelected(InputTagSupport.java:218) How can I avoid 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
Re: [Stripes-users] Stripersist and dropdown menu / lazy loading
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); Stripersist.getEntityManager().persist(user); httpSession.setAttribute("user", user); Stripersist.getEntityManager().getTransaction().commit(); } In the ActionBean: order = new Order(); order.setUser((User)httpSession.getAttribute("user")); In the JSP: Here is the class seen by Entityformatter: class com.package.User_$$_javassist_9 (or cglib) > The only time I've had problems with lazy loading was when I was > trying > to use entities that I had stored in the HttpSession on previous > requests. this is the case. - 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] Stripersist and dropdown menu / lazy loading
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 the user on each request, and would like to avoid second level cache... - 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] Stripersist and dropdown menu / lazy loading
I tried, but it didn't change. DEBUG EntityUtil:194 - Finding. @Id for com.package.User$$EnhancerByCGLIB$$d8977ea6 DEBUG EntityUtil:194 - Looking for @Id on field userLogin DEBUG EntityUtil:194 - Found @Id for com.package.User on field userLogin But the id value is still null. If I log user.getUserLogin() in the actionBean, I can see it's value. If I use a session.get(login) instead of a session.load(login) everything works fine so I will use that for now. By the way, your deproxyfication only works for cglib. With javassist (the new default with hibernate 3.3) the classname is not the same: com.package.User_$$_javassist_9 There an underscore that needs to be removed: Unable to deproxify CGLIB proxy: com.package.User_ not found ! "Aaron Porter" a écrit dans le OK. I've updated SVN. Give that a shot and let me know if it works. - 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] bug/issue? - include partial JSP, AJAX and ForwardResolution() does not render collections in thebean - only scalar fields
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 PROTECTED]> a écrit: --- Object ID: 1 Author List Object Reference: [EMAIL PROTECTED] id=4 payeeList=[] rapPayee=Jens Korse rapPayeeType= id= ], [EMAIL PROTECTED] id=5 payeeList=[] rapPayee=Oliver Zahle rapPayeeType= id= ]] (NO Iteration!) --- Code snippet. the Fragment JSP = Authors.jsp: ... Object ID: : ${actionBean.currentObject.id} Author List Object Reference: ${actionBean.currentObject.brikAuthors} aBrikAuthor: ${aBrikAuthorDebug.id} ... - 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] Stripersist and cglib proxified class
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 value is displayed. Did someone manage to use stripersist with lazy loaded @ManyToOne ? Hibernate 3.2.6 stripersist 1.0-a5 stripes 1.5 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
Re: [Stripes-users] Stripersist and cglib proxified class
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 value is displayed. > > Did someone manage to use stripersist with lazy loaded @ManyToOne ? Found a solution: invoking the getter of the property instead of getting its value solves the problem. this doesn't work: return ((Field) accessor).get(entity); this works: return org.apache.commons.beanutils.PropertyUtils.getProperty(entity, ((Field) accessor).getName()); I also had to remove the check for Entity annotation in entityFormatter.format(Object) (called before deproxification...) Lionel - 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] AutoComplete with Stripes and YUI
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 widgets. - 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] How to display many items from database withpaging, column sorting etc.
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 > xmlhttprequest. I also use Displaytag and ajaxtags to have ajax pagination. Using the PaginatedList interface, it scales very well with huge lists (depends only on database performances). - 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] Chart Libraries
Philip Constantinou wrote: > One other option is Google Charts: > > http://code.google.com/apis/chart/ > > I haven't done more than a few experiments but it's produced good > results. Your customers allow you to send their highly confidential reporting datas to google ? JFreechart is quite easy to use, but have a really ugly rendering quality compared to other solutions. I like the rendering of flash components (open flash chart 2) but have never used them yet. Did someone try them ? - 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] Session attributes
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 ? :) -- 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] Stripes fields localization
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 manage a CarEntity, which is a pretty common case. class ManageTruckActionBean { @ValidateNested( @validate(field="color", required="true") ) private TruckEntity myTruck; } class ManageCarActionBean { @ValidateNested( @validate(field="color", required="true") ) private CarEntity myCar; } My StripesResources.properties will have to contain: #main label, used in jsp color=color #duplicated used for ManageTruckActionBean validation myTruck.color=Color #duplicate used for ManageCarActionBean validation myCar.color=Color As ne name attribute of @Validate is not Localized, I can't use it. Is there a way to avoid having ten times each label because of @validation ? It would be great if getLocalizedFieldName could look for: -beanClassFQN.fieldName -actionPath.fieldName -fieldName (as said by the documentation) -"real" fieldName (=after last dot) Is there another way to avoid duplicated ? thanks -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users
Re: [Stripes-users] Need advice on dependent menu design
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 populated with all the cities in that state. > > What's the best way to do something like this (w/ Stripes)? Also, > anyone know where I can get this data?! Using any Javascript framework and a JavascriptResolution, it is really easy. Something like this will do the work with Prototype: new Ajax.Request(url, { parameters: $(idSourceDropdown).name+'='+$F(idSourceDropdown), onSuccess: function(request) { $(destDropdown).options.length=0; eval(request.responseText).each(function(item, i){ $(destDropdown).options[i] = new Option(item.label, item.value); }); }, method:'post' }); In your actionBean: Just populate a List and return new JavascriptResolution(theList) -- 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
Re: [Stripes-users] Stripes Security "now what" question
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 DataSourceRealm in context.xml - list roles in web.xml - add annotations on actionbeans If you have something less complex, I am very interested. I'd like to avoid having to list roles in web.xml, have the possibility to save last connection time and connection count, blacklist for several minutes users who try multiple passwords, have a "remember me" checkbox...without having to add a single line of code. Some of these are possible with Spring security, but found it a way too complex to perform such basic things. -- ___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users
[Stripes-users] EntityTypeConverter and encrypted values
Hello Aaron, I don't know if it is a stripes or a stripersist issue, but EntityTypeConverter crashes when using encrypted Id in the action bean. MyActionBean: @Validate(encrypted=true) private Entity myEntity; @DefaultHandler public Resolution init() { return "path/to/jsp";} jsp: When I open the url MyActionBean.action and click on the save button with at least one completed field, there is a null pointer in NumberTypeConverterSupport.preProcess because input is null. Input is null because EntityTypeConverter.convert(value...) never checks if value is null or not and tries to call the converter. Only encrypted values are concerned. Adding : if(value==null) {return null;} at the beginning of EntityTypeConverter.convert solved the problem. By the way, I had another issue with EntityUtil.getId() which prevents me from using 1.0 when using Id annotations on the fields: if accessor instanceof Field, you return : return ((Field) accessor).get(entity); but this doesn't work. I had to replace it with: return PropertyUtils.getProperty(entity, ((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 Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com ___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users
Re: [Stripes-users] EntityTypeConverter and encrypted values
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 Lionel! I've updated the source in the repository. It seems > like Stripes used to check for null values before calling > TypeConverters so I didn't check before but I should have had the > check in there anyway. >> >> By the way, I had another issue with EntityUtil.getId() which >> prevents me from using 1.0 when using Id annotations on the fields: >> >> >> >> if accessor instanceof Field, you return : >> >> return ((Field) accessor).get(entity); >> >> but this doesn't work. >> >> I had to replace it with: >> >> return PropertyUtils.getProperty(entity, ((Field) >> accessor).getName()); -- OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get ___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users
Re: [Stripes-users] EntityTypeConverter and encrypted values
There is no exception, it just returns null. I'm not an expert on how proxies work, but it seems that the fields are null and get initialized when you call the getter. Calling the getter when the field value is null (because of the proxy) will solve the problem, PropertyUtils was only a quick fix example.. Lionel "Aaron Porter" 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 or is it just returning null? I really don't want to introduce a dependency on PropertyUtils and I'm sure that it can be fixed without it. Aaron -- OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users
[Stripes-users] ValidateNestedProperties and required=true on optional collection
Hello all, I have an issue when I validate a property of a Collection of object. I don't want any error validation when the collection is empty, but if one line has been added, some properties are mandatory. Here is an example: @ValidateNestedProperties ({ @Validate(field = "regulationName", required=true, on = { "save" }), @Validate(...) }) private List regulations; When no "regulation" is submitted inside the form, there should not be any error message. To perform what I want, I need to have a huge unnecessary and unproductive validation method instead of the usual @validation annotation: @ValidationMethod(on={"save"}) public void validation(ValidationErrors errors) { int index=0; if(regulations!=null){ for(Regulation regulation : regulations){ if(regulation!=null && regulation.getRegulationName()==null){ errors.add("regulations["+ index +"].regulationName", new LocalizableError ("validation.required.valueNotPresent")); } if(other basic validation) {....} index++; } } } Is there some way to avoid this ? thanks. Lionel -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users
Re: [Stripes-users] Stripes Spring JPA
VANKEISBELCK Remi wrote: > Well, there is at least one guy using Stripes here in France ! And I'm > sure I'm not alone... I do too ! The main reason to choose Stripes: you'll develop twice as fast compared to struts 1, which means it's twice as cheap. I advertise for stripes when I have the opportunity. Everybody knows struts, but everybody is bored using struts... -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users
[Stripes-users] Data validation
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: stripes.dateTypeConverter.formatStrings=dd MM But it seems 01/01/9 is still valid and parsed as 01/01/0009. I think a missed something. I don't want to add a minlength=10 for all my dates. Is it possible to do what I want ? -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users
Re: [Stripes-users] Data validation
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 is given. -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users
Re: [Stripes-users] Stripes tag - disabled="true" will bind a nullvalue?
"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" a écrit dans le message de news: 856f41ce0906222324u2336beebi421c2f8a138ab...@mail.gmail.com... Hi, I have a tag. I just discovered that the disabled="true" is setting null to my actionBean object. Is that the intended behavior? Is there a way to disable it? Many thanks Yee -- Are you an open source citizen? Join us for the Open Source Bridge conference! Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. Need another reason to go? 24-hour hacker lounge. Register today! http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users
Re: [Stripes-users] Stripes tag - disabled="true" will bind a nullvalue?
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) - dropdown menus loaded using an ajax request Actually I didn't find any simple solution. I just hide the dropdown, create a div and use javascript to copy the label from the selected option inside the div. "Erik Lumpkin" a écrit dans le message de news: 260629.26491...@web51002.mail.re2.yahoo.com... I didn't think to specifiy it before, but I ran into the issue with a 'select.' And those don't have a readonly attribute. But I get your point. Basically just don't use 'disabled' for checkboxes and selects. I suspect I'll just not use a select in the case where I would've disabled it. My coworker has suggested creating a tag file that we can pass the necessary params to and it can either render a bit of text with the value (simulating the disabled functionality) or a typical s:select. I haven't created it yet so I don't know if I'll hit any unexpected trouble, but it seems pretty doable. All our science, measured against reality, is primitive and childlike - and yet it is the most precious thing we have. - A. Einstein -- ___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users
Re: [Stripes-users] RTL support for Integer Type Converter
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 floats. Who in france uses the coma as decimal separator ?? Nobody. This makes BigDecimal, Float, Double converters impossible to use as is. Could be usefull to have an alternative locale to parse numbers when the default fails. -- 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 Select List with Map + Collection
jack johnson wrote: > Hi there :-) > > I just tried to create a list out of a Map List> where the list looks like: > +option group = key 1 > -option 1 = value 1 of List 1 > -option 2 = value 2 of List 1 > ... > +option group = key n > -option 1 = value 1 of List n > -option 2 = value 2 of List n > > > Is this possible? Thank you :) It is possible with a Collection using the "group" attribute. I don't think it's possible using a Map. -- 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 Select List with Map + Collection
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 from a hashmap to create the options and optionsGroup, but is it the best solution ? Using a Collection with a group property means no tag, no code, and nothing to maintain: a single sql select, nothing to build a hashmap that will be unbuilt after. -- 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] OneToManyTypeConvertor
Do someone use OneToManyTypeConvertor on a form which forward back to the input JSP after submit ? If yes, how does it populate the field ? It seems it just does a toString on the collection. I post "1 , 2 , 3" in a text input mapped on a Liwt, and only see "1" inside the input after post. 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" a écrit dans le message de news: bafb48740909080738m244d12c5s9bd30c15b50b9...@mail.gmail.com... Hi, I'm using a OneToManyTypeConvertor to split a single input value containing multiple MAC addresses separated by a comma separator into a list of strings. I'd like to specify further validation rules on the format of each MAC address. Is there a simple way to do this with the OneToManyTypeConvertor? Can I specify an additional mask that applies to each element? I know I can create a MAC address type and then create a type convertor but I am wondering if there is a simpler way of doing this. Another example would be where the user enters a list of numbers and you want to range check each number entered. -- Ross Sargant Software Engineer p: 954-623-6018 x2108 email: rsarg...@tvrc.com TVR Communications LLC 541 S. State Road 7,Suite 5,Margate, Florida,33068 http://www.tvrc.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
[Stripes-users] Stripersist and spring - initialization order
Hi all ! I have a JMS receiver initialized by spring which starts to receive messages before the end of stripersist's initialisation. This makes all DB accesses crash when the messages tries to get the entity manager. Is there some way to initialize stripersist in a context listener ? Or to initialize spring after a filter, but this goes out of stripes ML scope. thanks. -- 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
[Stripes-users] Locale Picker and request interceptor
Hi all ! I would like to set the user locale as a thread local variable from an interceptor (based on the user account) and get this value from a custom LocalePicker. But it seems that the LocalePicker.getLocale() is called before interceptors. Is there some way to configurer the execution order to have muy interceptor called before the LocalePicker ? Thanks. Lionel -- 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] EntityTypeConverter and encrypted values
Thanks Aaron, I'll try to check next week. Lionel "Aaron Porter" 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 -- 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] cause of "Stripes validation error report" pageappearing?
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 ForwardResolution("/errorAjax.jsp"); } return null; } errorAjax.jsp contains . Alex Sarco wrote: > I have the same error, but the situation is a bit different. > I'm posting an Ajax request to the action, there are some validation > errors, and then Stripes returns this page. I understand why it > happens, but how can I avoid it? Since it's an Ajax request, I only > need the error messages to show them on screen using the Ajax > callback. -- 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] Stripersist and dropdown menu / lazy loading
Hi Aaron, I updated from svn and now everything works fine. Thanks for the update ! Lionel "Aaron Porter" 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 it into Stripersist. OK. I've updated SVN. Give that a shot and let me know if it works. Aaron -- 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] Stripersist and dropdown menu / lazy loading
Just a little issue with the last release: Stripersist now searches for persistance units in every loaded jar it finds. I have an activemq-all.jar in my tomcat/lib, and it crashes: No Persistence provider for EntityManager named activemq. Not a big deal, but on the production envrionment, it's not very nice to have such an exception when the server starts. Is there some way to avoid that ? "Lionel" a écrit dans le message de news: hcc7ub$bn...@ger.gmane.org... Hi Aaron, I updated from svn and now everything works fine. Thanks for the update ! Lionel-- 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] Stripes annotation validation error messages
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 duplicates in the resource bundle. example: UserActionBean uses: user.name In resource bundle: user.name=User name OrderActionBean users: order.user.userId In resource bundle: order.user.userId=User name InvoiceActionBean uses: invoice.user.userId In resource bundle: invoice.user.userId=User name 3 times the same label... Is there some way to override the key ? Would be great to override the resource bundle key in the Validate annotation. -- 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 annotation validation error messages
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". -- 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] Feature Request for label selection
Simon Keen wrote: > This could be easily achieved with: > > >... > > > > > >... > > > Did you try this: -- 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] Feature Request for label selection
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 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] How to handle exceptions in converters ? --> Stripersist and PersistenceException (org.hibernate.CallbackException)
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 DefaultActionBeanPropertyBinder. Is there some way to let it be propagated to my exception handler ? Thanks. -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users
[Stripes-users] Form population in JSP
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 remains empty. is empty also. Where should I look ? Everything looks fine... Thanks. -- 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] Form population in JSP
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... -- 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] Form population in JSP
"Lionel" 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 was stripernate's HibernateFormatter which returns null where the primaryKeyValue is not found... Fixed by returning object.toString() instead of null. -- 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] Advanced Field Error Handling
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 . I'd like to make my application user friendly on ipad. -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnmore_122712 ___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users
Re: [Stripes-users] Advanced Field Error Handling
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=" > http://stripes.sourceforge.net/stripes-dynattr.tld"; %> > > like Excellent ! I'll try this. I thought the type attribute would be overridden by a hardcoded type="text". -- Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much more. Get web development skills now with LearnDevNow - 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122812 ___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users
Re: [Stripes-users] [Stripes-dev] Stripes 1.6 Released!
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 support > 5/ Statically Typed templates > 6/ Full Java config (probably already doable, not sure) > 7/ Nested Validation (we do this already on 1.7 with Woko, but it's a bit > hackish) BeanValidatio JSR ? > 8/ Hot reload (JavaRebel ?) I vote for 1/ Async support. Being able to push data from stripes would be fantastic. I would add another useful feature: possibility to manage versioning and caching of static resources (by generating a timestamp based on last file update date for example) The equivalent of spring's VersionResourceResolver. But please, don't use cookies for anything and don't waste time on JavaRebel -- ___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users