Re: [Stripes-users] Why can I visit /jspname.action ?

2013-11-04 Thread Freddy Daoud
This is documented in the Javadoc for NameBasedActionResolver[1]: Another useful feature of the NameBasedActionResolver is that when a request arrives for a URL that is not bound to an ActionBean the resolver will attempt to map the request to a view and return a 'dummy' ActionBean that will take

Re: [Stripes-users] using encrypted parameters

2013-10-03 Thread Freddy Daoud
Hi Chris, To get the URL, you can simply use stripes:url beanclass=... var=someVarstripes:param ...//stripes:url, and then in JavaScript, get it with ${someVar}. No need to hide the link nor extract the href. To get just the ID, you can have, on your action bean, public String getEncryptedId() {

[Stripes-users] Stripes paper book on sale

2013-09-04 Thread Freddy Daoud
Hi all, Just wanted to mention, for those who might be interested, that The Pragmatic Programmers are having a sale on selected titles, including the Stripes book, in paper format for $9.95: http://pragprog.com/book/fdstr/stripes Full list of books on sale: http://pragprog.com/promotions

Re: [Stripes-users] BeanFirstPopulationStrategy problem

2013-08-02 Thread Freddy Daoud
Hi Chris, I think the reason is, generally, if you submit a form with values and there are validation errors, those values are blocked from being bound on the action bean (validation is about disallowing invalid values, after all). When redisplaying the form and telling the user about the errors,

Re: [Stripes-users] how to check if error collections not empty

2013-07-30 Thread Freddy Daoud
Hi Chris, Perhaps use the hasErrors() JSP function from the Stripes taglib? http://stripes.sourceforge.net/docs/current/taglib/stripes/hasErrors.fn.html Hope that helps, Freddy On Tue, Jul 30, 2013, at 02:36 PM, Chris Cheshire wrote: In my JSP page, how do I check if the errors for a field

Re: [Stripes-users] Binding issue

2013-07-20 Thread Freddy Daoud
Hi eminene, I am very new in Stripes.I am not able to bind textbox with actionbean attributes. Enter Name: s:text name=userName value=${actionBean.userName}name/s:text Value doesn't seems to bind with updated vaue of userName. You do not need the value= attribute. Try: Enter

Re: [Stripes-users] current page url?

2013-01-05 Thread Freddy Daoud
this week, and got stuck on this bit of the redirect after login until I found this thread. Cheers, Chris On Sun, Oct 11, 2009 at 12:11 AM, Freddy Daoud xf2...@fastmail.fm wrote: Hi Rusty, How do I get the url for the current page? I need it for a redirect back to the current page

Re: [Stripes-users] Date Formatting with 2 vs 4 Year Dates

2012-12-26 Thread Freddy Daoud
Hi Matt, Gah. I sweat this out for an hour, post something on the mailing list, and then figure it out on my own a few minutes later. That's quite alright--score another one for the Rubber Duck: http://en.wikipedia.org/wiki/Rubber_duck_debugging Cheers, Freddy

Re: [Stripes-users] Stripes and Angular.js

2012-09-17 Thread Freddy Daoud
Heh, I too looked at Angular because of this thread, it looks pretty cool. Definitely going to try it out. Freddy On Mon, Sep 17, 2012, at 09:58 AM, Adam Stokar wrote: Hi Joe, If you don't mind telling me, what type of datasource are you using with Angular.js? I just watched the video and

Re: [Stripes-users] Stripes and Angular.js

2012-09-14 Thread Freddy Daoud
Hi Joe, Stripes comes with a dynamic attributes version of its tag library. You can use it by declaring the following in your JSP (notice the -dynattr part): %@ taglib prefix=stripes uri=http://stripes.sourceforge.net/stripes-dynattr.tld; % You can use both the regular and the dynattr versions

Re: [Stripes-users] Strange bug with stripes forms - all hidden inputs with same names are duplicated on validation error.

2012-02-20 Thread Freddy Daoud
Since Stripes is capable of rendering a collection of values with its hidden tag, you are better off using one tag per input name. Cheers, Freddy On Sun, Feb 19, 2012, at 11:21 PM, Anthony DePalma wrote: I can confirm that its happening because of Stripes, I just downloaded the QuickStart

Re: [Stripes-users] collapsing a bunch of required field missing errors down to one

2012-02-12 Thread Freddy Daoud
Got the Stripes book? The answer is in there ;-) Freddy On Sun, Feb 12, 2012, at 03:41 PM, Mike McNally wrote: I realize this is kind of Stripes 101, but I guess I skipped that class. I'd like to use the code that drops the error class into the field tag class strings as the primary way to

Re: [Stripes-users] Checkboxes

2012-02-08 Thread Freddy Daoud
The 'checked' attribute is also useful when it refers to a Collection. In the Stripes book I show an example where you have a table with a list of users, and one of the columns shows the roles that the user has. All roles are rendered as checkboxes, and the ones that the user has are checked by

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

2012-01-31 Thread Freddy Daoud
Hi Moritz, Your code looks right to me. What error are you getting? Another way is to use a JSP .tag file: /tags/address.jsp: %@ tag body-content=scriptless % %@ attribute name=address required=true rtexprvalue=true type=com.example.model.Address % %@ include file=/jsp/taglibs.jsp %

Re: [Stripes-users] Two dimensional arrays in actions

2011-11-29 Thread Freddy Daoud
Hi Nathan, A few comments below. Hope that helps. [...] s:form beanclass=${actionBean.class.name} name=frmExam p(Q1). In which country were you born?/p ps:radio name=answer[1] value=1/Australia/p ps:radio name=answer[1] value=2/Other/p pnbsp;/p p(Q2). Do you speak any of these

Re: [Stripes-users] Two way type conversion possible?

2011-11-17 Thread Freddy Daoud
You need field=startTime instead of field=event.startTime, same for endTime. Cheers, Freddy On Wednesday, November 16, 2011 10:37 PM, ted_smith2...@comcast.net wrote: Now I am working on a custom date type convert and set in action bean class MyActionBean { private Event _event;

[Stripes-users] Stripes article in Java Tech Journal

2011-10-11 Thread Freddy Daoud
Hi all, This month's issue of Java Tech Journal has an article about Stripes: http://jaxenter.com/java-tech-journal/JTJ-2011-08 Cheers, Freddy -- All the data continuously generated in your IT infrastructure contains

Re: [Stripes-users] What is the proper empty resolution for an ajax update?

2011-09-29 Thread Freddy Daoud
You could also return the 204 status code, which means success with No Content. Freddy On Friday, September 30, 2011 2:39 AM, Samuel Santos sama...@gmail.com wrote: Are you expecting a JSON object? If so, you can return a JavaScriptResolution(null) or a

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

2011-08-15 Thread Freddy Daoud
Hi, Try adding a public getter method and a public setter method for the 'design' property. Hope that helps. Freddy http://www.pragprog.com/titles/fdstr On Tue, 16 Aug 2011 02:32 +, Cefn Hoile tryanotherem...@cefn.com wrote: I've tried so many combinations and I'm now totally stuck.

Re: [Stripes-users] encrypt

2011-07-11 Thread Freddy Daoud
On Mon, 11 Jul 2011 16:21 -0700, Joaquin Valdez joaquinfval...@gmail.com wrote: Hello! I am wondering how to encrypt an Integer value the same way stripes does with this syntax. Is this possible? @Validate(encrypted = true) private Integer memID; Something like this: String encrypted_value =

Re: [Stripes-users] Basic Authentification

2011-06-16 Thread Freddy Daoud
But before you can create the example WAR file, you have to fix two syntax errors in the LoginInterceptor class. Please see the attached patch for this. Aw, wish you'd told me about this earlier.. I sent this to the Prags so that hopefully they fix it on the site and you don't have to do this

Re: [Stripes-users] Basic Authentification

2011-06-16 Thread Freddy Daoud
But before you can create the example WAR file, you have to fix two syntax errors in the LoginInterceptor class. The errors are fixed in the bundles on the pragprog site now. Cheers, Freddy -- EditLive Enterprise is

Re: [Stripes-users] Basic Authentification

2011-06-15 Thread Freddy Daoud
Hi Nicolas, You could try this article, it includes an example along those lines. http://www.theserverside.com/news/1363758/A-Stripes-15-Test-Drive Cheers, Freddy On Wed, 15 Jun 2011 20:15 +, nicolas savoini nicolas.savo...@mac.com wrote: Hello I'am just starting with Stripes, so don't

Re: [Stripes-users] Basic Authentification

2011-06-15 Thread Freddy Daoud
, 15 Jun 2011 21:25 +, nicolas savoini nicolas.savo...@mac.com wrote: Thomas Menke stripesml@... writes: 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

Re: [Stripes-users] Basic Authentification

2011-06-15 Thread Freddy Daoud
Sorry, I don't seem to have the article in my archives. Boo to TSS for not displaying the article correctly and the invalid link to source code for the article :( Freddy -- EditLive Enterprise is the world's most

Re: [Stripes-users] plugin strategies?

2011-04-19 Thread Freddy Daoud
Hi Samuel, 2. Validate what belongs to core and what doesn't, I do believe that: 3. Stripes Security should be moved from plugin to core (Security and JAAS integration is a fundamental feature in any Java web framework). I disagree with that. By your logic of not

Re: [Stripes-users] Calling methods from JSP

2011-04-02 Thread Freddy Daoud
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. Something along the lines of: stripes:select

Re: [Stripes-users] Question on why stripes error is displayed duplicated in JSP page

2011-03-22 Thread Freddy Daoud
Hi Melinda, ValidationErrors is simply [1]HashMap[2]String,[3]List[4]ValidationError so you can iterate through the keys and have the list of corresponding ValidationError, each of which has a getFieldName() method. For the duplication, I would remove mapError from your exception classes. You

Re: [Stripes-users] stripes+yui

2011-02-10 Thread Freddy Daoud
Hi Joaquin, Wondering if anyone has any resources on using stripes with Yui? Saw an article by Freddy, but it looks like a broken link. Sorry about that. When someone inquires about an article that was on the defunct blog, I usually find it and post it. But alas, I cannot find this

Re: [Stripes-users] HTTPS to HTTP switching

2011-01-31 Thread Freddy Daoud
Very nicely explained, Nikolaos! Freddy On Mon, 31 Jan 2011 17:00 -0500, Adam Stokar ajsto...@gmail.com wrote: Appreciate your help Nikolaos, this is exactly what I was looking for. Thanks! - Adam On Mon, Jan 31, 2011 at 1:52 PM, Nikolaos Giannopoulos [1]nikol...@brightminds.org wrote:

Re: [Stripes-users] lost information after Validation error

2011-01-29 Thread Freddy Daoud
Hi, The table on the jsp page gets the data from ${actionBean.object.children}. When it is submitted and its get validation error, it goes back to getContext().getSourcePageResolution(). The defaultHandler method was not executed and the actionBean was not populated with its children.

Re: [Stripes-users] MockRoundTrip:: ActionBean Testing UrlBinding and ActionBeanContext

2011-01-25 Thread Freddy Daoud
Nikolaos Giannopoulos nikolaos@... writes: Would Stripes favor  TLActionBeanContextTest  over  TLActionBeanContext  for the ActionBeanContext??? Hi Nikolaos, There is no favoring of one custom action bean context class over another. There should only be one, otherwise, Stripes will throw an

Re: [Stripes-users] Disabling the flash scope feature?

2011-01-13 Thread Freddy Daoud
Hi John, Should I look at using flash scope because I’m missing how powerful it is? (I haven’t seen a need for it yet). Well, it's not so much that you would use the flash scope directly, but it is used implicitly in some useful ways. One common example that comes to mind is when you submit

Re: [Stripes-users] decode

2011-01-11 Thread Freddy Daoud
+1 on Apache Shiro, it's a good alternative. Thanks Janne for the writeup! Cheers, Freddy On Tue, 11 Jan 2011 15:03 +0200, Janne Jalkanen janne.jalka...@ecyrd.com wrote: BTW, this reminds me... If your Stripes app needs security, using Apache Shiro together with Stripes is a breeze.

Re: [Stripes-users] 1.5.5 Release

2010-12-29 Thread Freddy Daoud
Forgive me if I missed something, and I don't mean to cause any trouble, but I need to ask: what happened to all the up in arms from a few months ago where a bunch of enthusiasts wanted to help out with Stripes? People were saying please let us in, we want to help? People wanted to help out to

Re: [Stripes-users] Matt Raible's JVM Web Framework matrix

2010-11-30 Thread Freddy Daoud
Must be joking. Tapestry 5 gets 0.00 for learning curve, developer availability, job trends, and documentation. On Wed, 1 Dec 2010 03:05:53 +, Samuel Santos sama...@gmail.com said: quoteAfter updating my JVM Web Framework matrix based on community feedback, Tapestry Vaadin tied for 5th.

Re: [Stripes-users] Smarter RedirectResolution To Clean URL?

2010-11-20 Thread Freddy Daoud
This came up a while back when a typo in Freddy's book resulted in code that didn't work. By the way, the typo has been corrected for current and future owners of the ebook. Freddy -- Beautiful is writing same

Re: [Stripes-users] Comparing JVM Web Frameworks

2010-11-20 Thread Freddy Daoud
Hi all,I came across this comparison on Devoxx, by Matt Raible Interesting, thanks for the links! Freddy -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1,

Re: [Stripes-users] [JIRA] Created: (STS-779) Release 1.5.4 (also to Maven Repo)]

2010-11-10 Thread Freddy Daoud
Hi Nikolaos, The point wasn't that anyone got offended... but rather that some got alarmed by the comment w.r.t. disaster and started jumping all over it. As I mentioned in another post... I don't think that is what Remi intended to say... . The unfortunate thing is that the nested

Re: [Stripes-users] [JIRA] Created: (STS-779) Release 1.5.4 (also to Maven Repo)]

2010-11-09 Thread Freddy Daoud
While nothing you say is overtly wrong, you need to understand the tone and candor of your comments are alarming to some... ...unless know Rémi, and then you know not to get offended :) Seriously people, unless someone calls you a !(*$? !*$?!, don't get offended. At least not on the Stripes

Re: [Stripes-users] [JIRA] Created: (STS-779) Release 1.5.4 (also to Maven Repo)]

2010-11-09 Thread Freddy Daoud
:-) On Tue, 9 Nov 2010 22:01:49 -0500, Dimension123 dimension...@gmail.com said: Im offended your book isn't here yet. On topic...release this bad boy! -Original Message- From: Freddy Daoud xf2...@fastmail.fm Sent: Tuesday, November 09, 2010 9:48 PM To: nikol

Re: [Stripes-users] Source forge description: It's stripey and itdoesn't suck

2010-11-02 Thread Freddy Daoud
, 2010 1:57 PM To: Stripes Users List Subject: Re: [Stripes-users] Source forge description: It's stripey and itdoesn't suck Stripes: Do Stuff! On Oct 29, 2010, at 10:49 AM, Freddy Daoud wrote: Stripes: Ditch the configuration. Harness the intuitiveness. Enjoy the productivity

Re: [Stripes-users] Source forge description: It's stripey and itdoesn't suck

2010-10-29 Thread Freddy Daoud
Stripes: Ditch the configuration. Harness the intuitiveness. Enjoy the productivity. Freddy -- Nokia and ATT present the 2010 Calling All Innovators-North America contest Create new apps games for the Nokia N8 for

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

2010-10-28 Thread Freddy Daoud
You are both correct. Indeed perhaps something like {#event} would have been better. Hindsight is always 20-20. I realize I'm probably the only one who would like this, but I would have used {_eventName} because that special request parameter is already being used for the event name. So,

Re: [Stripes-users] Using language specific displaytag.properties files

2010-10-11 Thread Freddy Daoud
Hi Rick, Freddy, I re-read chapter 11 and scanned the book again, and I can't seem to find a reference to displaytag_fr.properties. I meant in the code examples, which you can download from http://www.pragprog.com/titles/fdstr/code Also, do you have this in web.xml under the Stripes filter

Re: [Stripes-users] Using language specific displaytag.properties files

2010-10-11 Thread Freddy Daoud
Hi Rick, Glad you figured out what the problem was! Cheers, Freddy - Freddy Samuel, - Thanks for all your assistance.  I have figured out my problem.  It - was an installation problem.  Apparently, I was using a very - down-level version of displaytag.  Updating my displaytag

Re: [Stripes-users] Associating Parameters to Specific Actions

2010-10-08 Thread Freddy Daoud
Anyway, I guess it wouldn't hurt to have choice of the method (property or parameter binding) as long as it didn't need bending all the framework. But if someone would go on and implement this, I believe that would be quite difficult to do so that it doesn't break current Stripes-based code.

Re: [Stripes-users] Using language specific displaytag.properties files

2010-10-08 Thread Freddy Daoud
Hi Rick, straightforward (and works great), however, I want to provide language support for my displaytag tables too. It appears the default displaytag.properties file is being found, but I can't seem to find the language specific displaytag properties file, such as,

Re: [Stripes-users] Using language specific displaytag.properties files

2010-10-08 Thread Freddy Daoud
Hi Rick, Thanks for the quick reply. I really appreciate that. By the way, love your book. I highly recommend it for anyone wanting to learn Stripes. You and Tim did a great job! Thank you for the nice comments! It's great to read that, it makes me very happy that you like the book!

Re: [Stripes-users] Finally, 1.5.3 available from maven central !

2010-10-03 Thread Freddy Daoud
Hi Aurangzeb, It's not really a Maven tutorial, but if you want to look at an example, you could try Rayures[1]. Click on Try it out, follow the instructions, but download from http://www.fdaoud.com/rayures-quickstart.jar. You will have a Maven/Stripes project set up and ready to run with the

Re: [Stripes-users] IMPORTANT:: Developing stripes (Future... Part DEUX)

2010-09-21 Thread Freddy Daoud
Just my 2c, I hope this doesn't make things worse in terms of misunderstandings. I am not interested in taking a leading role, I am interested in taking *the lead*. Yes, I am aware of how this comes across and no I will not apologize for it. As I have stated before, what Stripes needs most is

Re: [Stripes-users] IMPORTANT:: Developing stripes (Future... Part DEUX)

2010-09-19 Thread Freddy Daoud
Hi Nikolaos, Simply put, I agree with what you've said. However, I haven't the power (in terms of user permissions, nor in terms of authority) to hand over the keys to the Stripes framework to someone who is willing and able to take over the role. I do agree that someone actively involved needs

Re: [Stripes-users] Stripes Development and its Future... (long)

2010-09-19 Thread Freddy Daoud
On Fri, 17 Sep 2010 20:48:44 -0700 (PDT), Barry Davies barry.davi...@yahoo.com said many interesting things and had useful suggestions for the future of Stripes. BD aka RJ! Nice to see you again :) Thanks for sharing your thoughts! Cheers, Freddy

Re: [Stripes-users] List of Stripes Extensions for StripesWebsite

2010-09-05 Thread Freddy Daoud
On Sun, 5 Sep 2010 19:35:00 + (UTC), Aurangzeb Agha Freddy, lots of of the extensions listed are owned you (I think). Do you sites up for them? What exactly are you referring to? Freddy -- This SF.net Dev2Dev

Re: [Stripes-users] Stripes Development and its Future... (long)

2010-09-03 Thread Freddy Daoud
Hi Joel, We are 99% sure we are going to go with Spring MVC.  We are still implementing the JPA/Spring based back end, so right now the UI is simply hello world, but it was pretty simple to get at least something put together. The other consideration was JSF 2.  I've been using JSF at my full

Re: [Stripes-users] New Stripes Website Google Group (Repost)

2010-09-03 Thread Freddy Daoud
Rick Grashel writes: My preference would be to see a tighter integration of Stripes alongside other up-and-coming, popular stack and development components.  Basically, making Stripes even cooler by integrating it with other cool things.  Off the top of my head -- in no particular order: *

Re: [Stripes-users] The New Stripes Website - WAS: Re: Stripes Development and its Future... (this on e is long too)

2010-09-02 Thread Freddy Daoud
Hi Aurangzeb, Like you, I think it's fantastic that several people, including yourself, have shown their support for helping Stripes getting some momentum back in terms of marketing and visibility. For blogs, perhaps we should set up a separate site where people can post. Someone mentioned

Re: [Stripes-users] applying fn:toUpperCase() to Disp layTag column entity

2010-09-02 Thread Freddy Daoud
On Thu, Sep 2, 2010 at 3:56 PM, Aaron Porter aa...@... wrote: Looks like you should be using ${fn:toUpperCase(employee.name)} instead of ${fn:toUppercase(name)} yes! thank you. Hmm, that is what I initially suggested.. why didn't it work then? ;) Cheers, Freddy

Re: [Stripes-users] DisplayTag vs. JMesa

2010-09-01 Thread Freddy Daoud
I have experience with both. They are both good. I now prefer JMesa because I like the API better. I like being able to create tables in Java code. Also, JMesa is a more active project, if that is a factor to you. Cheers, Freddy On Wed, 1 Sep 2010 16:33:42 -0500, Lev d...@plektos.com said: hi,

Re: [Stripes-users] applying fn:toUpperCase() to DisplayTag column entity

2010-09-01 Thread Freddy Daoud
Hi Lev, i am using DisplayTag to generate tables. i have an object for which i want to display one of the fields in capital letters. i have tried doing so using JSTL fn:toUpperCase, such as: d:table name=${actionBean.employees} id=employee requestURI=

Re: [Stripes-users] Stripes Development and its Future... (long)

2010-09-01 Thread Freddy Daoud
Hi Joel, stripes. The answers were good, but still not enough to get myself and my friend to go with Stripes. We've since chosen another framework and are just starting implementation. I'm very curious and interested to know, which framework did you choose? By the way, this discussion is

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

2010-09-01 Thread Freddy Daoud
Hi all, I have been thinking about this topic for quite some time now and, admittedly, have been avoiding it.. but now that the discussion has been sparked, I can't hide my head in the sand anymore. I am happy to see the responses to Nikolaos's post. Some very good points are made. Most of

Re: [Stripes-users] Nested Layout Grief and 1.5.4 Snapshot

2010-08-30 Thread Freddy Daoud
. It took me a while to figure that one out the first time I saw it. -Ben On Sun, Aug 29, 2010 at 2:09 PM, Freddy Daoud xf2...@fastmail.fm wrote: Either something is seriously broken with Nested Layout Components in 1.5.4 OR I am seriously confused. Well, I can tell you that your

Re: [Stripes-users] Nested Layout Grief and 1.5.4 Snapshot

2010-08-29 Thread Freddy Daoud
Either something is seriously broken with Nested Layout Components in 1.5.4 OR I am seriously confused. Well, I can tell you that your example works as expected with 1.5.2 and with the trunk. I think you are correct -- something is broken in the 1.5.x branch. I don't get the (unexpected)

Re: [Stripes-users] Database backed Resource Bundle Blog Entry

2010-08-23 Thread Freddy Daoud
Looking under the bed, behind the couch, etc. of my hard disk drive, I found the article (maybe not identical to the original posting). http://www.fdaoud.com/database_resource_bundle.html Cheers, Freddy -- Sell apps to

Re: [Stripes-users] stripes/jmesa

2010-08-22 Thread Freddy Daoud
Anyone have an example of Stripes and Jmesa to display table data? I'm currently using JMesa with Stripes in a project, but I can't share the code. However, I can tell you that there's not much to integrate JMesa with Stripes. Meaning, if you follow the JMesa documentation to create tables, in

Re: [Stripes-users] Validation question

2010-08-12 Thread Freddy Daoud
Hi Aaron, When validation fails, for example, passphrase is not entered, the page is redisplayed with the the offending field and the message, but that is the only element on that page. All the images, question list, radio buttons are not redrawn . All the elements are generated from the

Re: [Stripes-users] Validation errors

2010-08-12 Thread Freddy Daoud
Aaron, It appears that errors added to the ValidationErrors within event handlers are not rendered. Is that true? I that related to life cycle? Again, when a validation error occurs, the target event handler is *not* invoked and the Resolution that is returned by

Re: [Stripes-users] Validation errors

2010-08-12 Thread Freddy Daoud
On Thu, 12 Aug 2010 21:57:15 -0400, Aaron Stromas passog...@gmail.com said: On 12 August 2010 16:00, Freddy Daoud xf2...@fastmail.fm wrote: Aaron, It appears that errors added to the ValidationErrors within event handlers are not rendered. Is that true? I that related to life cycle

Re: [Stripes-users] Wrong class/not class initialized during binding

2010-08-11 Thread Freddy Daoud
Hi Simon, Could you provide an SSCCE (http://sscce.org/)? Cheers, Freddy -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge

Re: [Stripes-users] Database backed Resource Bundle Blog Entry

2010-08-09 Thread Freddy Daoud
http://www.stripesbook.com/blog/index.php?/archives/35-Using-a-database-backed-resource-bundle-with-Stripes.html But unfortunately that site is not available any more? Sorry about that. A malicious attack caused problems with the Stripes Book Blog and I was unable to recover the content. If

Re: [Stripes-users] wizards,jquery,ajax

2010-08-05 Thread Freddy Daoud
Hi Joaquin, I am trying to do a ajax call inside a wizard form and I get this error message: Unhandled exception caught by the Stripes default exception handler. net.sourceforge.stripes.exception.StripesRuntimeException: Submission of a wizard form in Stripes absolutely requires that the

Re: [Stripes-users] wizards,jquery,ajax

2010-08-05 Thread Freddy Daoud
Hi again Joaquin, Thanks Freddy! Always a pleasure to help. When it's not a pleasure, I don't help. ;-) I am trying to do a ajax call inside a wizard form and I get this error message: Unhandled exception caught by the Stripes default exception handler.

Re: [Stripes-users] Redirecting to external ULR

2010-08-04 Thread Freddy Daoud
Resolution will transfer control to resources within application. How about transferring control to another website? return new RedirectResolution(http://www.gc.ca/;, false); Cheers, Freddy -- The Palm PDK Hot Apps

Re: [Stripes-users] Unit test fails with quot; must be a valid numberquot;

2010-07-30 Thread Freddy Daoud
Hi Erik, So after much documentation reading, example following, and head banging. I have seem to come to a dead end on trying to make unit tests work with stripes. I have one working fine and one not working fine and I really can't figure out why the one fails. The problem is that your

Re: [Stripes-users] DisplayTag and Stripes formatPattern

2010-07-29 Thread Freddy Daoud
Hi Lev, along those lines, is there a way to add formatting to the 'title' within a s:layout-render tag? for example: s:layout-render name=/WEB-INF/jsp/common/layout_main.jsp title=Matchups -- ${actionBean.date} is there a way for me add a formatPattern to

Re: [Stripes-users] DisplayTag and Stripes formatPattern

2010-07-28 Thread Freddy Daoud
Hi Lev, i'm using DisplayTag with Stripes. on occasion, i want to format a field sent to a DisplayTag table. for instance, consider: d:table name=${actionBean.entries} id=entry requestURI= defaultsort=1 d:column title=ID property=id sortable=true/

Re: [Stripes-users] Stripersist.getEntityManager() -- NullPointerException

2010-07-07 Thread Freddy Daoud
I use TestNG and have Stripersist, Stripes, Spring, etc... running in a test without issues. It takes quite a bit of work to model the key parts of your web.xml to get Stripersist to work. Once its done it works great. FWIW, with Rayures[1], you can subclass TestWithMockContainer and

[Stripes-users] latest Stripes build for Maven users

2010-06-28 Thread Freddy Daoud
I've made the latest Stripes 1.6 build available for Maven users. Previously, I had named it 1.6-SNAPSHOT. That is appropriate for snapshots of the trunk, but it bothers me because the snapshot can change at any time and which build you are using is not immmediately obvious. This time, I've given

Re: [Stripes-users] Stripes book maven repo is dead

2010-06-24 Thread Freddy Daoud
Hi Remi, Sorry, I should have announced the change here. Now use: http://www.fdaoud.com/maven2 Cheers, Freddy On Thu, 24 Jun 2010 16:17:44 +0200, VANKEISBELCK Remi r...@rvkb.com said: Hi folks, Freddy, the maven repo for 1.6 snapshot is down : http://www.stripesbook.com/maven2 Will it

Re: [Stripes-users] Stripes book maven repo is dead

2010-06-24 Thread Freddy Daoud
-SNAPSHOT.pom Cheers Remi 2010/6/24 Brandon Atkinson brandon.n.atkin...@gmail.com: that gave me a 404 On Thu, Jun 24, 2010 at 10:34 AM, Freddy Daoud xf2...@fastmail.fm wrote: Hi Remi, Sorry, I should have announced the change here. Now use: http://www.fdaoud.com/maven2 Cheers

Re: [Stripes-users] Spring @configurable on Action Beans? (run-time code weaving)

2010-06-21 Thread Freddy Daoud
I also like having Spring manage Stripes action beans. For this purpose I use Stripes 1.6's ObjectFactory and Rayures 2.0[1]. Of course, both are code from the trunk and are unreleased. [1]:http://code.google.com/p/rayures/source/checkout Cheers, Freddy On Mon, 21 Jun 2010 22:29:39 +0200,

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

2010-06-21 Thread Freddy Daoud
What exactly is all this hype around this ObjectFactory? Can some one please explain what it is and why it is so useful??? It basically lets you hook in to the creation of Stripes objects: action beans, type converters, formatters, etc. so that you can take control of how these objects are

Re: [Stripes-users] Database backed ResourceBundle

2010-06-09 Thread Freddy Daoud
Hi Daniel, I found a few links to the stripes book's (which I own -- good book) blog, but those have been removed. Thanks for the comment, I'm glad you like the book. As for the blog, unfortunately I had to take it down for security issues and I did not have a chance to retrieve the archives

[Stripes-users] amusing license

2010-06-04 Thread Freddy Daoud
A little comic relief I'm on the last couple of chapters of Flexible Rails[1], and was reading about using AMF with Rails (if you don't know what that is, don't bother looking it up, it's not important here.) Basically, there are two competing frameworks for achieving this, A and B. The fun

Re: [Stripes-users] amusing license

2010-06-04 Thread Freddy Daoud
I need to clarify some things What's up with this: (It's too late now, they already copied Tim's code.), is Struts 2 just a bad copy of Stripes? First, of course I am referring to Tim Fennell, creator of Stripes. Second, Struts 2 is not a Stripes clone. They did not copy Stripes. But in

Re: [Stripes-users] Testing an action that returns a JavacriptResolution

2010-05-31 Thread Freddy Daoud
Hi Daryl, As you said, it might get tricky to test the response like this. AJAX-based testing is outside the scope of the Stripes mock framework; however, I'd recommend HtmlUnit[1] and do higher-level AJAX/JavaScript testing, i.e. test for the ultimate result on the page that you want to verify.

Re: [Stripes-users] I Picked Templating Engine X... O ver JSPs and Stripes TLDs... and This is WHY? ??

2010-05-27 Thread Freddy Daoud
Will Hartung writes well: I picked up Velocity, and mind I've been using it off and on since inception which was, like, 2001. The group I was working with had their own scheme all worked out and I beat them over the head to convince them that Velocity was a better choice than rolling our

Re: [Stripes-users] I Picked Templating Engine X... Over JSPs and Stripes TLDs... and This is WHY???

2010-05-27 Thread Freddy Daoud
Nikolaos, I needed to load templates from the classpath. I also needed to process templates in a somewhat 'standalone' mode. Both were easier with Velocity than JSPs. I also needed a templating solution for another framework (another language, even!) that just merged a map of key-value pairs

Re: [Stripes-users] JSP for Templating... Simplicity .. BUT for Email Templating???

2010-05-25 Thread Freddy Daoud
Morten that's excellent.. Just wanted to add that Velocity[1] is another good choice in my opinion. I've used it a lot with good results, it's well-suited as a standalone templating solution. [1]:http://velocity.apache.org Cheers, Freddy

Re: [Stripes-users] Multiple event parameters error after StreamingResolution

2010-03-26 Thread Freddy Daoud
Try putting @DefaultHandler on the event handler that you want to be the default for the Action Bean. Cheers, Freddy On Fri, 26 Mar 2010 13:21:38 + (UTC), Daniel Cane daniel.c...@gmail.com said: Greets, I have an ActionBean with multiple Resolutions - one of which is a

Re: [Stripes-users] UTF-8 Resource Bundles

2010-03-09 Thread Freddy Daoud
Another possibility is to use XML: The loadFromXML(InputStream) and storeToXML(OutputStream, String, String) methods load and store properties in a simple XML format. By default the UTF-8 character encoding is used, however a specific encoding may be specified if required. Source:

Re: [Stripes-users] Numeric Indexed Properties using Lists Not Working

2010-03-05 Thread Freddy Daoud
Hi Phil, - DefaultActionBeanPropertyBinder - Running binding for property with - name: people[0].email - DefaultActionBeanPropertyBinder - Converting 1 value(s) using - converter net.sourceforge.stripes.validation.StringTypeConverter - DefaultActionBeanPropertyBinder - Could not bind property

Re: [Stripes-users] Numeric Indexed Properties using Lists Not Working

2010-03-05 Thread Freddy Daoud
Hi Phil, Just got a working example. Things for you to try out: * the @ValidateNestedProperties({...}) belongs on the private ListPerson people field, the getter method, or the setter method, not on the event handler; * make sure that you have a public no-args constructor, public Person() {},

Re: [Stripes-users] Numeric Indexed Properties using Lists Not Working

2010-03-04 Thread Freddy Daoud
Hi Phil, net.sourceforge.stripes.controller.DefaultActionBeanPropertyBinder is where the magic happens :-) Cheers, Freddy On Thu, 4 Mar 2010 11:22:08 +, phillip darley phillip.dar...@googlemail.com said: Hi, I've created a simple actionBean and jsp based on the example given @

Re: [Stripes-users] Re ading JSON in an ActionBean

2010-03-01 Thread Freddy Daoud
Hi Luther, How about just binding to a property? Javascript (jQuery): $.post(url, {jsonString: '[[0,2],[2,-1]]'}); Java: public String jsonString; // could also use private field with public getter and setter if you prefer @HandlesEvent(update) @DefaultHandler public Resolution updateState() {

Re: [Stripes-users] Nested Validation Annotation: one or more fields required

2010-02-17 Thread Freddy Daoud
Hi Phil, Actually, the simplest way is to use a List with indexed properties, and make the field required: @Validate(required=true) private ListString inputs; /* getter and setter */ In your JSP, use a loop to generate your fields so that you end up with s:text name=inputs[0]/ s:text

Re: [Stripes-users] Stripes Request Lifecycle

2010-02-02 Thread Freddy Daoud
Hi Arnab, I my application I have created a Class called BaseAction which extends ActionBean. All my Action classes extends this BaseAction. So will the BaseAction will also get instantiated with every request? Yes, that is correct. Cheers, Freddy http://www.stripesbook.com

Re: [Stripes-users] Rayures and Security

2010-01-23 Thread Freddy Daoud
Hi Farouk, Yes, you can use stripes security as described in the book with Rayures. Cheers, Freddy On Sat, 23 Jan 2010 04:58:12 -0800 (PST), farouk alhassan osbert252...@yahoo.com said: How does Rayures handle access control. Does it use the support the anotations as used in the stripes book?

Re: [Stripes-users] Does stripes officially support Maven 2?

2010-01-13 Thread Freddy Daoud
I've created the upload request. Please vote for it: http://jira.codehaus.org/browse/MAVENUPLOAD-2716 Cheers, Freddy http://www.stripesbook.com On Wed, 13 Jan 2010 09:26:01 -0500, Brandon Atkinson brandon.n.atkin...@gmail.com said: I'm taking the lack of a response as a 'no, stripes doesn't

  1   2   3   >