Re: worth spending time in sitemesh?

2008-01-11 Thread bhaarat Sharma
thanks, this *one* jsp would have the stuff coming from DB but still will need to be included as wrote: > 2008/1/10, bhaarat Sharma <[EMAIL PROTECTED]>: > > We have a problem where we need to add a code snippet in all our > > printer friendly pages (current date and logged in user id). We have

Re: Validation question

2008-01-11 Thread Martin Braure de Calignon
Le vendredi 11 janvier 2008 à 15:46 -0800, Dave Newton a écrit : > The validation interceptor will look for, and call, validate${methodName} > (and validateDo${methodName}). > > d. Great ! thank you all :-) -- Martin Braure de Calignon signature.asc Description: Ceci est une partie de message

Re: Validation question

2008-01-11 Thread Dave Newton
The validation interceptor will look for, and call, validate${methodName} (and validateDo${methodName}). d. --- Martin Braure de Calignon <[EMAIL PROTECTED]> wrote: > > Le vendredi 11 janvier 2008 à 09:15 -0500, Ted Husted a écrit : > > On Jan 11, 2008 8:10 AM, Martin Braure de Calignon <[EMAIL

Re: ActionErrors - is there a way to manually look them up ? ...

2008-01-11 Thread Mufaddal Khumri
Okay that actually works , I had some problem else where that resulted in what I saw. So the solution to my original problem works if anybody needs it. On Jan 11, 2008, at 4:06 PM, Mufaddal Khumri wrote: Apparently thats not working any pointers as to how i could get my errors out manually

Re: ActionErrors - is there a way to manually look them up ? ...

2008-01-11 Thread Mufaddal Khumri
Apparently thats not working any pointers as to how i could get my errors out manually: In my action I am doing: this.addFieldError("email", "Please enter the email address.") and on my ftl: fieldErrors['key']?if_exists This is not working out , what am I missing. On Jan 11, 2008, at 3:38

Re: Validation question

2008-01-11 Thread Martin Braure de Calignon
Le vendredi 11 janvier 2008 à 09:15 -0500, Ted Husted a écrit : > On Jan 11, 2008 8:10 AM, Martin Braure de Calignon <[EMAIL PROTECTED]> wrote: > > Of course yes :-). But I need a validate() per method. > > I haven't used it myself, but the syntax validate-action is suppose to > work, in the same

Re: ActionErrors - is there a way to manually look them up ? ...

2008-01-11 Thread Mufaddal Khumri
Anyone who needs it: You can access ${fieldErrors['your-field-name']} -Mufaddal. On Jan 11, 2008, at 2:53 PM, Mufaddal Khumri wrote: I am using ftl templates for the view and want to have access to the collection that has all the error messages in the view. (<@s.actionerror/> just lists all

ActionErrors - is there a way to manually look them up ? ...

2008-01-11 Thread Mufaddal Khumri
I am using ftl templates for the view and want to have access to the collection that has all the error messages in the view. (<@s.actionerror/> just lists all the error messages one after the other.) So, if i have a form like such: Email: First Name: Last Nam

Progress Bar

2008-01-11 Thread fea jabi
Working a process which would take couple of mins to complete. Would like to use progress bar for this process. How to use a progress bar? using 1.2. struts. Thanks. _ Share life as it happens with the new Windows Live. http://

RE: Struts2 JSF Plugin

2008-01-11 Thread Sanjeev Vijapurapu
So you mean we should push all JSF actions onto OGNL stack? Shouldn't the jsf interceptor stack do it for us? I mean if you are using plain jsf, whatever backing beans you configure in faces-config, can be invoked from any jsf component from anywhere and not just the action which renders it which i

Re: Want to get the value of label key which is there in the ApplicationResources.properties in action class

2008-01-11 Thread ARCS
May be a better or more appropriate way to do this but this works. You can do this for any resource bundle you've created. ResourceBundle bundle = ResourceBundle.getBundle("MyResources"); bundle.getString("myResourceBundleKey")); -Andrew arunabh wrote: > > hi , > I have a requirement to get

S2 Spring Bean DI to an i18n ListResourceBundle

2008-01-11 Thread Shannon, Andrew
I'd like to use a ListResourceBundle that pulls message information from the database. The pieces include (see below for code): 1. a service that gets messages from the database. 2. a ListResourceBundle 3. applicationContext-struts.xml configuration to inject my service into the resource bund

Re: s2 : checkbox and checkboxlist : dynamic lists

2008-01-11 Thread Rubbinio
Actually you can do something like this And in the action class you can have: private String[] selectedGroup; Which will be populated back with what you have selected. It works fine in our application. -- View this message in context: http://www.nabble.com/s2-%3A-checkbox-and-checkboxlist-

Re: Want to get the value of label key which is there in the ApplicationResources.properties in action class

2008-01-11 Thread Dave Newton
I'm not exactly sure what you're asking. --- arunabh <[EMAIL PROTECTED]> wrote: > In my Jsp i get my label like > > > >Let me tell you I use Struts 2 in my application . I have tries with > . This does create a label First Name in the > UI . But again i am not able to access the same in t

Secure ajax call using prototype to a struts action ....

2008-01-11 Thread Mufaddal Khumri
I am using prototype with Struts2. One of my Ajax calls submits the login form (username and password) to a struts action like this: new Ajax.Updater( 'modal', '/blog/authentication/login.action', { method: 'post', parameters: Form.seria

s2 : checkbox and checkboxlist : dynamic lists

2008-01-11 Thread hernan gonzalez
Disclaimer: I'm fairly new to Struts2, so I may me wrong. But: I feel the behaviour of checkbox tag lacking. I dont think there is a straighforward way to do a common web-application case: a form with a dynamic list of N "records" (rows), each of which can be selected by the user by a checkbox. (E

Re: Application, Session, Request - Struts2 related ..

2008-01-11 Thread Joachim Ansorg
Hi, Que 2. Are their performance implications to be kept in mind since now action instances are not shared per request and each instance has its own copy of the attributes ? If you use the Struts2 spring-pugin it is possible to set the action scope to singleton, session, request and protype

Re: Struts 2.0.9 + Dojo

2008-01-11 Thread Martin Gainty
Nicolas- as dave mentioned previously dojo went to plugin in 2.1 Thanks/ Martin-- - Original Message - From: "Jeromy Evans" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Friday, January 11, 2008 8:34 AM Subject: Re: Struts 2.0.9 + Dojo > Starshy wrote: > > Hi! > > > > Stra

Re: struts 2.1 release date

2008-01-11 Thread Ted Husted
There's a test-build available, * http://www.nabble.com/-S2--2.1.0-Test-Build-Available-tf4712874.html#a13471367 But, there are still a lot of outstanding patches to apply, and no one seems to have time to commit them right now. Sadly, despite being the most popular Java web framework on the p

Re: Validation question

2008-01-11 Thread Ted Husted
On Jan 11, 2008 8:10 AM, Martin Braure de Calignon <[EMAIL PROTECTED]> wrote: > Of course yes :-). But I need a validate() per method. I haven't used it myself, but the syntax validate-action is suppose to work, in the same way that it works for the validation framework. HTH, Ted *

Re: struts 2.1 release date

2008-01-11 Thread Dave Newton
--- "Otto, Frank" <[EMAIL PROTECTED]> wrote: > is there a deadline for struts 2.1 release? No. > I have download the nightly build, but I can't find the new dojo plugin. IIRC the plugins are not bundled in the nightly build. They can, however, be built from source, which is pretty straight-forwa

Re: worth spending time in sitemesh?

2008-01-11 Thread Antonio Petrelli
2008/1/10, bhaarat Sharma <[EMAIL PROTECTED]>: > We have a problem where we need to add a code snippet in all our > printer friendly pages (current date and logged in user id). We have > over 30 printer friendly pages. > > I have not invested a lot of time with sitemesh but just browsed over > it

Re: Struts 2.0.9 + Dojo

2008-01-11 Thread Jeromy Evans
Starshy wrote: Hi! Strats 2.0.9 contains Dojo plugin. I needs to change Dojo version. Can I change it and how can I do that? good luck! Nicolas Struts2.0.9 includes some widgets written specifically for Dojo 0.4. When you use the ajax theme the tags render the dojo markup and some common

Re: worth spending time in sitemesh?

2008-01-11 Thread Jeromy Evans
If you just want to add, say, a header or footer (decoration) around the head or body content of the pages then sitemesh is absolutely perfect for the job. You won't need to modify the pages at all, it'll just decorate them based in your decorator template. You'd be able to have this working

struts 2.1 release date

2008-01-11 Thread Otto, Frank
hi, is there a deadline for struts 2.1 release? I have download the nightly build, but I can't find the new dojo plugin. kind regards Frank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL P

Re: Validation question

2008-01-11 Thread Martin Braure de Calignon
Le vendredi 11 janvier 2008 à 07:36 -0500, Ted Husted a écrit : > Rather than use the validation framework, I'd probably go with a > Validate method (by implementing Validatable). Firstly, thank you very much for your answer :) Ok then... That what I though... But my problem is that Validate() i

Re: Validation question

2008-01-11 Thread Ted Husted
Rather than use the validation framework, I'd probably go with a Validate method (by implementing Validatable). Then, instead of using an OGNL expression, you can loop through the list using Java, and call addFieldError if there's a problem. Alternatively, a custom type converter that turned the

Struts 2.0.9 + Dojo

2008-01-11 Thread Starshy
Hi! Strats 2.0.9 contains Dojo plugin. I needs to change Dojo version. Can I change it and how can I do that? good luck! Nicolas -- View this message in context: http://www.nabble.com/Struts-2.0.9-%2B-Dojo-tp14753659p14753659.html Sent from the Struts - User mailing list archive at Nabble.com.

Re: Catch the element param in a action class

2008-01-11 Thread Manoel Pimentel
Hi Chris! Good idea (why I never thought about this?), I will try this way, I think that this tip will be much useful. Tks, Manoel Pimentel www.visaoagil.com Chris Pratt wrote: > > One thing you can do is use the tag in struts.xml (along with > the staticParams interceptor from the defau

[S2] encode

2008-01-11 Thread GF
Hi all I'm using Struts 2.0.6 If I try to set "encode" to true and I pass in the URL get some bad characters.. such as '<', '>' it doesn't encode them when it generates the URL with Is this a bug? Has been fixed in recent version? Thanks ---

Re: TabbedPanel question

2008-01-11 Thread Pablo Vázquez Blázquez
It doesn´t work. I had to put a hidden iframe with an onload event to execute my javascript. A very poor solution... Jeromy Evans escribió: Put the code that sets up the styles into a function that's called when the onload event occurs. Use dojo.addOnLoad(function) function init() { ///

Want to get the value of label key which is there in the ApplicationResources.properties in action class

2008-01-11 Thread arunabh
hi , I have a requirement to get the value of label key , which is there in the ApplicationResources.properties file . Let me explain with an example :- In my Jsp i get my label like In my ApplicationResources.properties file i have mapped this key to some value as :- cust.firstName=

Re: worth spending time in sitemesh?

2008-01-11 Thread bhaarat Sharma
but do you think I will be able resolve my problem of 'not touching 30 different pages for the same thing. In tiles or sitemesh...is it possible to make a page, say A,add some stuff in it and then in an xml file or something.. give the name of pages to which 'A' should append to? hmm that sou