customising the input
Hi all, In case of validation failure or type conversion error the input result is returned. I would like to customize this so that for both cases, I could give the result that will be returned. Is it possible to do that ? thanks in advance. Meissa L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender.
struts zero configuration limitations and s2.1 availlability question
Hi all, I've tried to apply the zero configuration in an already well running struts2 application. I've been quickly facing to limitations because the zero configuration seems to ignore interceptors. The interceptors feature is a key concept of my application. I'd like to know if the this pattern (zero configuration) will support interceptor in the 2.1 release version ? And I'd like to know if there is a date about the availlability of the 2.1 release? Thanks in advance. Meissa L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender.
Result annotation and interceptors
Hi all, I'm trying to use the result annotation in some of my actions. I've a custom stack of interceptors that are defined in my struts config file. This stack of interceptors must be called by every action(including those that are not in the config file) actions. I've a strange behaviour while calling the actions whoses result are annotated. I would like to know if they are intercepted even if they are not defined in the struts config file (where the interceptors are stacked). Thanks in advance. Meissa L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. Let us mind the environment : let's print our mails only when necessary.
Re: application based annotations
In other world, do you mean that an action with an interceptor ref will not work with struts 2.0.11 ? An idea about the availlability of the 2.1 release ? thanks. Meissa Dave Newton [EMAIL PROTECTED] 04/03/2008 17:50 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A Struts Users Mailing List user@struts.apache.org cc Objet Re: application based annotations S2.0 doesn't have interceptor ref annotations [1]. This functionality may have been added in S2.1; I don't recall at the moment. Dave [1] http://struts.apache.org/2.x/docs/annotations.html --- [EMAIL PROTECTED] wrote: Hi all, I'm trying to build an application by applying ZERO configuration (only annotation) pattern. I have some actions that have some interceptors defined inside just like below:. action name=initLogin class=com.natixis.mediajpa.actions.InitLogin result/login.jsp/result interceptor-ref name=defaultMediaStack/ /action I would like to know if there is an action annotation feature covering this case. Is possible to build an application entirely with annotation? Is it possible to rewrite the mailreader entirely with annotation? Thanks in advance. Meissa L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender.
application based annotations
Hi all, I'm trying to build an application by applying ZERO configuration (only annotation) pattern. I have some actions that have some interceptors defined inside just like below:. action name=initLogin class=com.natixis.mediajpa.actions.InitLogin result/login.jsp/result interceptor-ref name=defaultMediaStack/ /action I would like to know if there is an action annotation feature covering this case. Is possible to build an application entirely with annotation? Is it possible to rewrite the mailreader entirely with annotation? Thanks in advance. Meissa L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender.
RE [ANN] Struts 2.0.11 GA release available
I've read the release notes to see if something has been done about the killing perfomance head tag. But I don't see anything about it. Can someone tells me if something has been done. thank in advance. Meissa Ted Husted [EMAIL PROTECTED] Envoyé par : [EMAIL PROTECTED] 29/10/2007 01:30 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A Struts Users Mailing List user@struts.apache.org cc Objet [ANN] Struts 2.0.11 GA release available The Apache Struts group is pleased to announce that Struts 2.0.11 is available as a General Availability release. The GA designation is our highest quality grade. Apache Struts may be downloaded from http://struts.apache.org/downloads.html. Apache Struts 2 is an elegant, extensible framework for creating enterprise-ready Java web applications. The framework is designed to streamline the full development cycle, from building, to deploying, to maintaining applications over time. This release includes a number of fixes and improvements since the 2.0.9 GA release. Struts 2.0.11 is available in a full distribution, or as separate library, source, example and documentation distributions. The release is also available through the central Maven repository under Group ID org.apache.struts. The release notes are available online at http://struts.apache.org/2.0.11/docs/release-notes-2011.html. The 2.0.x series of the Apache Struts framework has a minimum requirement of the following specification versions: Servlet API 2.4, JSP API 2.0, Java 5, Backported Java 4 JARs are also available. Should any issues arise with your use of any version of the Struts framework, please post your comments to the user list, and, if appropriate, file a tracking ticket at https://issues.apache.org/struts/secure/Dashboard.jspa Ted Husted, on behalf of the Apache Struts Project Management Committee * http://struts.apache.org/kickstart.html * http://struts.apache.org/roadmap.html * http://struts.apache.org/helping.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. Let us mind the environment : let's print our mails only when necessary.
Re: session expired
I have used the piece of code and it works. I can acces the HttpServletRequest object. But the the request.isRequestedSessionIdValid() always returns me false. I'm sure that the session is valid since I've put a flag object in it (the session) to initialize te session in the first Action that is called. This action is not intercepted (to prevent the SessionExpiredInterceptor interceptor beeing called inside it). In struts1, calling the request.isRequestedSessionIdValid() gives me true when the session is valid and false when not. Why won't we have the same thing in struts2. How can we simply test if a session is not expired (or is valid) in struts2. thank in advance. Wes Wannemacher [EMAIL PROTECTED] 08/10/2007 18:45 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A Struts Users Mailing List user@struts.apache.org cc Objet Re: session expired You can grab the request just like they do in the ServletConfigInterceptor - final Object action = invocation.getAction(); final ActionContext context = invocation.getInvocationContext(); HttpServletRequest request = (HttpServletRequest) context.get(HTTP_REQUEST); On 10/8/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'd like to write an interceptor that will redirect to a page when the session is expired. I know that I can acces to the session in the interceptor like that. public String intercept(ActionInvocation invocation) throws Exception { Map session = invocation.getInvocationContext().getSession(); } but I don't know how to test the validity of the session within the intercept method. the request.isRequestedSessionIdValid() upon the HttpServletRequest returns a boolean which tell me if the session is valid. But I don't know how to access to the HttpServletRequest within an interceptor. If someone has an idea about that. Meissa L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. -- Wesley Wannemacher President, Head Engineer/Consultant WanTii, Inc. http://www.wantii.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender.
Re: session expired
I was wrong on my test. It works. Meissa [EMAIL PROTECTED] 09/10/2007 09:41 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A Struts Users Mailing List user@struts.apache.org cc Objet Re: session expired I have used the piece of code and it works. I can acces the HttpServletRequest object. But the the request.isRequestedSessionIdValid() always returns me false. I'm sure that the session is valid since I've put a flag object in it (the session) to initialize te session in the first Action that is called. This action is not intercepted (to prevent the SessionExpiredInterceptor interceptor beeing called inside it). In struts1, calling the request.isRequestedSessionIdValid() gives me true when the session is valid and false when not. Why won't we have the same thing in struts2. How can we simply test if a session is not expired (or is valid) in struts2. thank in advance. Wes Wannemacher [EMAIL PROTECTED] 08/10/2007 18:45 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A Struts Users Mailing List user@struts.apache.org cc Objet Re: session expired You can grab the request just like they do in the ServletConfigInterceptor - final Object action = invocation.getAction(); final ActionContext context = invocation.getInvocationContext(); HttpServletRequest request = (HttpServletRequest) context.get(HTTP_REQUEST); On 10/8/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'd like to write an interceptor that will redirect to a page when the session is expired. I know that I can acces to the session in the interceptor like that. public String intercept(ActionInvocation invocation) throws Exception { Map session = invocation.getInvocationContext().getSession(); } but I don't know how to test the validity of the session within the intercept method. the request.isRequestedSessionIdValid() upon the HttpServletRequest returns a boolean which tell me if the session is valid. But I don't know how to access to the HttpServletRequest within an interceptor. If someone has an idea about that. Meissa L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. -- Wesley Wannemacher President, Head Engineer/Consultant WanTii, Inc. http://www.wantii.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender.
session expired
I'd like to write an interceptor that will redirect to a page when the session is expired. I know that I can acces to the session in the interceptor like that. public String intercept(ActionInvocation invocation) throws Exception { Map session = invocation.getInvocationContext().getSession(); } but I don't know how to test the validity of the session within the intercept method. the request.isRequestedSessionIdValid() upon the HttpServletRequest returns a boolean which tell me if the session is valid. But I don't know how to access to the HttpServletRequest within an interceptor. If someone has an idea about that. Meissa L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender.
ognl problem ?
I have an object named ticket in may Action class. this object has an attributes which has an attribute which has an attribute which has an attibute. When I want to display it in a textfield, I use the synthax below: td s:textfield onkeydown=return false; name= ticket.asset.underlying.reference cssClass=filtrebox size=16/ img width=5 src=images/pixel-transp.gif /td Nothing appears when the page is displayed. And the object value is clearly appearing (debugger shows me) to be not null in the action class. The problem appears each time whe have an object nested 4 times. Can someone explains me why my value can't be displayed in such situation. Meissa L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. Let us mind the environment : let's print our mails only when necessary.
Re: struts 2.1 beta
We did all of the things described in the performance-tuning tips. But we've been using intensively ajax tag (datetime picker and autocompleter). Theses two tags force us to include the killing head tag. When we removed them (removing the head tag in the same time) our pages are faster (a least 5 times). I think that if the head tag will still kill performance on 2.1. It should be told in the performance tip. It will surely help posting a link to a temporary struts 2.1 version. thank in advance. Meissa Ted Husted [EMAIL PROTECTED] Envoyé par : [EMAIL PROTECTED] 04/10/2007 13:08 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A Struts Users Mailing List user@struts.apache.org cc Objet Re: struts 2.1 beta For performance problems, be sure to follow the advice on this page. * http://struts.apache.org/2.x/docs/performance-tuning.html If you do all of these things, and still consider the performance unacceptable, then I doubt that Struts 2.1 will make a startling difference. If performance is the key concern, then Struts 1 is still the best choice. I also understand that Tapestry performs well. If it helps, I'll post a link to a temporary Struts 2.1 snapshot, with all the dependencies, on the developers list. As soon as XWork 2.1.0 is available, we'll roll a Struts 2.1.0 distribution for testing, which should be real soon now. * http://www.nabble.com/Struts---Dev-f205.html -- HTH, Ted Attend Migrating to Ajax at ApacheCon US 2007: * http://us.apachecon.com/us2007/program/talk/1883 On 9/25/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: That's exactly what I wanted. I new complete un-released version. But at this time, I'm giving up. To tired. I'll restart using struts when a version without the dreadfull performance impact will be around. I hope that we'll get it before the end of the century. Meissa Dave Newton [EMAIL PROTECTED] 25/09/2007 14:56 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A Struts Users Mailing List user@struts.apache.org cc Objet Re: struts 2.1 beta If you want a complete build of an un-released version then AFAIK you need to build it from source. The repository contains the dependent libraries. The nightly builds are just that, builds, not distributions (again, AFAIK). --- [EMAIL PROTECTED] wrote: I just need to grab the nightly version WITH DEPENDANTS LIBRAIRIES if it exist. the link below http://struts.apache.org/2.x/docs/building-the-framework-from-source.html drive me to that one http://people.apache.org/builds/struts/nightlies/2.x/ No librairies. Meissa Dave Newton [EMAIL PROTECTED] 25/09/2007 14:28 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A Struts Users Mailing List user@struts.apache.org cc Objet Re: struts 2.1 beta --- Oleg Mikheev [EMAIL PROTECTED] wrote: Dave Newton wrote: I have just renamed it to struts2-core.jar and replaced in my application that was working with 2.0.9 version. You can't just randomly replace libraries. You can replace 2.0.8 with 2.0.9, but you can't replace 2.0.9 with 2.1.0 You certainly *could*, but it would still make me nervous w/o testing since XWork revved also... I guess I always think that dropping in a new library revision w/o keeping track of library dependencies is risky. d. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents.
autocompleter
I would like set an initial value and key to the autocompleter with one of the list elements. can someone tells if it's possible. Thanks. Meissa L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender.
struts 2.1 beta
I'm trying to download and build a beta release. I have lot of problems about that. Maybe someone has tried successfully. If so, can someone put it somewhere so that people (like me) can share it. Do we still have no date about a beta version upon 2.1 We have serious performance problems with the 2.0.9 release and we need to go the full of promises 2.1 version. thank in advance. Meissa L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. Let us mind the environment : let's print our mails only when necessary.
datetime picker displayFormat question
I'm using the datetimepicker displayFormat attribute to render my dates as I want them to be displayed. I case of null dates values I would like the datetimepicker tag to display nothing. I'm having a parseException instead. Is it possible to handle this (no exception, simply displaying nothing in the date value). thank in advance. meissa L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender.
Re: struts 2.1 beta
when I download the struts2-core-2.1.0-SNAPSHOT-20070925.jar, it's about 630 ko size. The 2.0.9 struts-core version is about 2500 ko size. Why are those files sizes so differents ? Meissa Dave Newton [EMAIL PROTECTED] 24/09/2007 17:53 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A Struts Users Mailing List user@struts.apache.org cc Objet Re: struts 2.1 beta [EMAIL PROTECTED] wrote: I would like to build the struts 2.1 dev version. Can someone tells where I could find it. http://people.apache.org/builds/struts/nightlies/2.x/ d. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender.
Re: struts 2.1 beta
I have replaced the nightly build version with the 2.0.9 one. I'm getting the errors below at startup. Any idea about that ? meissa Unable to load bean: type:com.opensymphony.xwork2.conversion.ObjectTypeDeterminer class:com.opensymphony.xwork2.conversion.impl.DefaultObjectTypeDeterminer - bean - jar:file:/D:/Documents/developpements/workspace5/StrateWEB_ear/deploy/strateWEB_ear.ear/strate.war/WEB-INF/lib/struts2-core.jar!/struts-default.xml:36:164 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register( XmlConfigurationProvider.java:208) at org.apache.struts2.config.StrutsXmlConfigurationProvider.register( StrutsXmlConfigurationProvider.java:101) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload( DefaultConfiguration.java:131) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration( ConfigurationManager.java:52) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration( Dispatcher.java:389) at org.apache.struts2.dispatcher.Dispatcher.init( Dispatcher.java:443) at org.apache.struts2.dispatcher.FilterDispatcher.init( FilterDispatcher.java:203) Dave Newton [EMAIL PROTECTED] 25/09/2007 11:50 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A Struts Users Mailing List user@struts.apache.org cc Objet Re: struts 2.1 beta --- [EMAIL PROTECTED] wrote: when I download the struts2-core-2.1.0-SNAPSHOT-20070925.jar, it's about 630 ko size. The 2.0.9 struts-core version is about 2500 ko size. Why are those files sizes so differents ? Pseudo-shell: jar tf 2.0.8-core | sort 2.0.8-files jar tf 2.1-core | sort 2.1-files diff 2.0.8-files 2.1-files Nut-shell: Ajax is a plugin in 2.1, so Dojo is not included in core download. d. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender.
Re: struts 2.1 beta
I have picked the latest struts2-core version from here : http://people.apache.org/builds/struts/nightlies/2.x/ I have just renamed it to struts2-core.jar and replaced in my application that was working with 2.0.9 version. I wanted to test the new head tag. The 2.0.9 version is killing my application performance. Do I have to replace other librairies ? If so, where where could I find them. Meissa Dave Newton [EMAIL PROTECTED] 25/09/2007 12:22 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A Struts Users Mailing List user@struts.apache.org cc Objet Re: struts 2.1 beta --- [EMAIL PROTECTED] wrote: I have replaced the nightly build version with the 2.0.9 one. I'm getting the errors below at startup. What do you mean, replaced the nightly build version? In a 2.0.9 app? Are you using the correct versions of the support libraries for a 2.0.9 app? d. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. Let us mind the environment : let's print our mails only when necessary.
Re: struts 2.1 beta
I just need to grab the nightly version WITH DEPENDANTS LIBRAIRIES if it exist. the link below http://struts.apache.org/2.x/docs/building-the-framework-from-source.html drive me to that one http://people.apache.org/builds/struts/nightlies/2.x/ No librairies. Meissa Dave Newton [EMAIL PROTECTED] 25/09/2007 14:28 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A Struts Users Mailing List user@struts.apache.org cc Objet Re: struts 2.1 beta --- Oleg Mikheev [EMAIL PROTECTED] wrote: Dave Newton wrote: I have just renamed it to struts2-core.jar and replaced in my application that was working with 2.0.9 version. You can't just randomly replace libraries. You can replace 2.0.8 with 2.0.9, but you can't replace 2.0.9 with 2.1.0 You certainly *could*, but it would still make me nervous w/o testing since XWork revved also... I guess I always think that dropping in a new library revision w/o keeping track of library dependencies is risky. d. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender.
datetimepicker displayFormat AGAIN
I use the displayFormat attribute with the datetimepicker tag to render my dates. I need to apply the displayFormat only when date are non null. Is it possible to do that. Meissa L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. Let us mind the environment : let's print our mails only when necessary.
Re: struts 2.1 beta
That's exactly what I wanted. I new complete un-released version. But at this time, I'm giving up. To tired. I'll restart using struts when a version without the dreadfull performance impact will be around. I hope that we'll get it before the end of the century. Meissa Dave Newton [EMAIL PROTECTED] 25/09/2007 14:56 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A Struts Users Mailing List user@struts.apache.org cc Objet Re: struts 2.1 beta If you want a complete build of an un-released version then AFAIK you need to build it from source. The repository contains the dependent libraries. The nightly builds are just that, builds, not distributions (again, AFAIK). --- [EMAIL PROTECTED] wrote: I just need to grab the nightly version WITH DEPENDANTS LIBRAIRIES if it exist. the link below http://struts.apache.org/2.x/docs/building-the-framework-from-source.html drive me to that one http://people.apache.org/builds/struts/nightlies/2.x/ No librairies. Meissa Dave Newton [EMAIL PROTECTED] 25/09/2007 14:28 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A Struts Users Mailing List user@struts.apache.org cc Objet Re: struts 2.1 beta --- Oleg Mikheev [EMAIL PROTECTED] wrote: Dave Newton wrote: I have just renamed it to struts2-core.jar and replaced in my application that was working with 2.0.9 version. You can't just randomly replace libraries. You can replace 2.0.8 with 2.0.9, but you can't replace 2.0.9 with 2.1.0 You certainly *could*, but it would still make me nervous w/o testing since XWork revved also... I guess I always think that dropping in a new library revision w/o keeping track of library dependencies is risky. d. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender.
struts 2.1 beta
Hi all, I would like to build the struts 2.1 dev version. Can someone tells where I could find it. thank in advance. Meissa L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. Let us mind the environment : let's print our mails only when necessary.
Re: [struts] [s2] Struts head tag KILLS ( 10s) page load time
Does it mean that we'll still suffer from this even with the 2.1 version ? Having page load time over 40s is hard to diggest. Meissa Don Brown [EMAIL PROTECTED] 21/09/2007 08:51 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A Struts Users Mailing List user@struts.apache.org cc Objet Re: [struts] [s2] Struts head tag KILLS ( 10s) page load time Sadly, it was a change brought by the WebWork 2 incubation process, where we had to remove all LGPL Javascript libraries. The tooltip library used LGPL, so to get through the IP clearance, we changed the tags to use Dojo, hence the import. Unfortunately, this temporary fix was never revisited till the 2.1 branch. Don On 9/21/07, Dale Newfield [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: s:head theme=ajax / I don't even use ajax but rather xhtml. Why would it still include all the Dojo stuff? -Dale - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. Let us mind the environment : let's print our mails only when necessary.
Re: [Tangential] Re: [s2] Struts head tag KILLS ( 10s) page load time
If a undestand, there is no way to get rid of this problem with struts 2.0.9. There is still no date for the 2.1 release availability ? Meissa Musachy Barroso [EMAIL PROTECTED] 21/09/2007 16:52 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A Struts Users Mailing List user@struts.apache.org cc Objet Re: [Tangential] Re: [s2] Struts head tag KILLS ( 10s) page load time on any file that you are using the S2 ajax tags, you have to use the sx:head, so just set its cache attribute to true. 2.1 only :) musachy On 9/21/07, Pavel Sapozhnikov [EMAIL PROTECTED] wrote: Musachy where do you set this cache=true in what file exactly? On 9/21/07, Musachy Barroso [EMAIL PROTECTED] wrote: I could see making this an S2 plug-in if there was some interest in that, I've had that thought before. That would be a pretty good idea :) musachy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Pavel Sapozhnikov xFact, Inc [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. Let us mind the environment : let's print our mails only when necessary.
Re: can't cast an object back from session
Yes, when I try casting it like you this, User user=(User)getSession().get(Constantes.USER_SESSION_KEY); I'm getting a ClassCastException. The debugger clearly shows me the right name I'm waiting for. It's very strange. Meissa wild_oscar [EMAIL PROTECTED] 19/09/2007 17:36 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A user@struts.apache.org cc Objet Re: can't cast an object back from session Did you try casting it directly, like: User user=(User)getSession().get(Constantes.USER_SESSION_KEY); ? If not, try logging (or debug to it) the class name of the object you've got: getSession().getAttribute(aa).getClass().getCanonicalName() (or getName()) Loggers and debuggers are great for this... meissa.sakho-2 wrote: I'm troubleshooted with this starnge behaviour of the session. I have implemented SessionAware and have defined a session attribute of Map type with getter (and setter) as indicated to handle session. I'm putting a User objet to the session and want to retrieve it after some steps. The code below gives me an Object that is already well typed. Object user=getSession().get(Constantes.USER_SESSION_KEY); I'm seeing the object but when I try to Cast it, like that user=(User)user; I'm getting a ClasscastException. What am I missing here ? why can't we cast objects from the session. Meissa L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. Let us mind the environment : let's print our mails only when necessary. -- View this message in context: http://www.nabble.com/can%27t-cast-an-object-back-from-session-tf4481550.html#a12779996 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender.
Re: can't cast an object back from session
that's exaclty what happened. I was importing a wrong User. thank you. Meissa Dave Newton [EMAIL PROTECTED] 20/09/2007 13:47 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A Struts Users Mailing List user@struts.apache.org cc Objet Re: can't cast an object back from session --- [EMAIL PROTECTED] wrote: Yes, when I try casting it like you this, User user=(User)getSession().get(Constantes.USER_SESSION_KEY); I'm getting a ClassCastException. Make sure you're importing the correct User class; if the User class in session is the correct type then it's essentially impossible to get a class cast exception unless the User class on the left-hand side is the wrong type. d. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. Let us mind the environment : let's print our mails only when necessary.
excel export
Hi all, I would like to know if it possible to do extraction in mutiple format(cxv,rtf etc ...) just like display tag feature in s2. thank in advance. Meissa L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. Let us mind the environment : let's print our mails only when necessary.
Re: [s2] Struts head tag KILLS ( 10s) page load time
I have the same problem. I'm using ajax and the response time of my pages are over 40s sometimes with the s:head theme=ajax / include. Can someone tells me if this has been fixed in struts 2.1 ? Is there a work around to this problem ? Meissa Frank W. Zammetti [EMAIL PROTECTED] 21/09/2007 06:38 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A Struts Users Mailing List user@struts.apache.org cc Objet Re: [s2] Struts head tag KILLS ( 10s) page load time The OP should try that cache=true setting first obviously... I'd be surprised if that didn't get rid of all the requests... we had exactly the same experience in my current project, even though we're not using S2, and we found the custom build solved the problem (in addition to caching static content like JS files on the web server, but that's something else). Frank Don Brown wrote: Musachy, has this been fixed in 2.1? Are the number of requests happening because we are using Dojo's lazy import feature? Don On 9/21/07, Musachy Barroso [EMAIL PROTECTED] wrote: Only on 2.1 Frank, if you set cache=true it will use a custom build that includes the files needed by the S2 widgets. The first download will be big but it will be cached by the browser. To the OP: Are you using ajax? if not, don't set theme=ajax on head. regards musachy On 9/20/07, Frank W. Zammetti [EMAIL PROTECTED] wrote: If Dojo is being used for AJAX in this case, that's my guess. I know from experience that Dojo, can issue a TON of requests even if you think your only loading a small portion of it. Assuming this guess is correct, Musachy, does S2 use a custom build of Dojo? If not, that might be worth considering. Frank -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM/Yahoo: fzammetti MSN: [EMAIL PROTECTED] Author of Practical Ajax Projects With Java Technology (2006, Apress, ISBN 1-59059-695-1) and JavaScript, DOM Scripting and Ajax Projects (2007, Apress, ISBN 1-59059-816-4) Java Web Parts - http://javawebparts.sourceforge.net Supplying the wheel, so you don't have to reinvent it! chengas123 wrote: Hi, I am working on a Struts 2 page and page load times are way too high. I tracked it down to the Struts head tag, which I have as follows: s:head theme=ajax / Without the tag, my page issues 3 requests and takes 453ms to load. With the tag, the page issues 54 requests taking 12.24s to load. Is there something I am doing wrong here? Thanks, Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM/Yahoo: fzammetti MSN: [EMAIL PROTECTED] Author of Practical Ajax Projects With Java Technology (2006, Apress, ISBN 1-59059-695-1) and JavaScript, DOM Scripting and Ajax Projects (2007, Apress, ISBN 1-59059-816-4) Java Web Parts - http://javawebparts.sourceforge.net Supplying the wheel, so you don't have to reinvent it! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender.
can't cast an object back from session
I'm troubleshooted with this starnge behaviour of the session. I have implemented SessionAware and have defined a session attribute of Map type with getter (and setter) as indicated to handle session. I'm putting a User objet to the session and want to retrieve it after some steps. The code below gives me an Object that is already well typed. Object user=getSession().get(Constantes.USER_SESSION_KEY); I'm seeing the object but when I try to Cast it, like that user=(User)user; I'm getting a ClasscastException. What am I missing here ? why can't we cast objects from the session. Meissa L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. Let us mind the environment : let's print our mails only when necessary.
autocompleter resultList error
Hi all, I'm using the autocompleter tag. In order to display all matching options,I'm using setting the resultsLimit attribute to -1 like below s:autocompleter keyName=filter.Pf_Code key=value theme=simple list= #application.fonds listKey=reference listValue=name cssClass= selectbox cssStyle=width: 100px; templateCssPath= css/filtreComboBox.css resultsLimit=-1 forceValidOption=true dropdownHeight=200/ But when the tag renders, nothing is shown and the input select disabled. When I set the resultsLimit value to a high value, the select input is displayed correctly. Can someone tells me if I miss something. thank in advance. Meissa L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. Let us mind the environment : let's print our mails only when necessary.
autocompleter problem
Hi all, I'm using the autocompleter tag and I'm little bit troubleshooted by it's behaviour. I have a list the contains more than 100 items. When the page is loaded, the select box displayed within the autocompleter tag show only 30 elements. Why does this restriction take place ? Is it possible to make it load all items ? thank in advance. Meissa L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. Let us mind the environment : let's print our mails only when necessary.
struts 2.1 release availlability
Hi all, Can someone knows when struts 2.1 version will be released. thank in advance. Meissa L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender.
[S2] ClassCastException on getParameters
Hi all, I'm having big trouble while trying to acces to the parameters values. I'm simply trying to retrieve a parameter value from my interceptor class. The Action class that is intercepted implements the ParameterAware interface and has getter and setter method related to parameters attribute which is a Map. Here is the sample code. public String intercept(ActionInvocation invocation) throws Exception { ActionSupport action = (ActionSupport) invocation.getAction(); Map session = invocation.getInvocationContext().getSession(); Map parameters = invocation.getInvocationContext().getParameters(); String loginAttempt = (String)parameters.get(Constants.LOGIN_ATTEMPT_KEY); return invocation.invoke (); } When the line in bold is reached, I' getting a ClassCastException. Here is an extract of the stacktrace java.lang.ClassCastException: [Ljava.lang.String; at com.natixis.media.interceptors.AuthenticationInterceptor.intercept(AuthenticationInterceptor.java:42) at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224) at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223) at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221) at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:221) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86) at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224) at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223) at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221) at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:150) at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:48) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86) at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224) at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling Can someone tells me what I'm missing. Thank in advance. Meissa L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. Let us mind the environment : let's print our mails only when necessary.
RE S2: How to display exception stack?
make sure you have the Exception interceptor in you interceptors stack. Meissa Jiang, Jane (NIH/NCI) [C] [EMAIL PROTECTED] 30/07/2007 19:47 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A Struts Users Mailing List user@struts.apache.org cc Objet S2: How to display exception stack? I defined a jsp page in global-exception-mappings to catch all exceptions not handled by the application. The application is still in development. I tried to display the exception stack using s:property value=%{exceptionStack} / It never showed anything. The error page always came up with this section empty. I had to take out the global-exception-mappings to get exception information. I'd appreciate any suggestions on how to fix this problem. Thanks, Jane - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender.
optiontransferselect tag problem (again)
Hi all, I have a problem with the selected values by the optiontransferselect tag when my form is submitted. here is an extract of my jsp. The list is a map and I'm expecting to get a List of DummyKey in the doubleName. But I'm getting a ClassCastException when I try to iterate and cast the returned list. How could I manage to get the right typed list keys. TD width=15% height=25 align=leftnbsp;/TD TD align=left s:optiontransferselect headerKey=-1 headerValue=--- Selectionnez --- doubleHeaderKey=-1 id=leftId doubleId=rightId doubleHeaderValue=--- Selectionnez --- name=dummyFavoris size=5 doubleSize=5 list=#application.dummies doubleName=dummyFavorisChoisis doubleList=defaultDummy / /TD Any help is greetly appreciated. Meissa L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. Let us mind the environment : let's print our mails only when necessary.
optionstranferselect tag and converter
Hi all, I'm using the optionstranferselect tag in my webapps and I need to customize the listkey that are submitted by the form. In my action class, I have the defaultListSupport attribute corresponding to the listkey with its corresponding setter and getter just like below: public class OptionTransferSelectAction extends MediaActionSupport ListSupport defaultListSupport=new ArrayListSupport(); public ListSupport getDefaultListSupport() { return defaultListSupport; } public void setDefaultListSupport(ListSupport defaultListSupport) { this.defaultListSupport = defaultListSupport; } But it seem like that I have to make a converter class for struts to know about my Support class and make the action populate it as I expect it. Can someone give me an example about how writting such a converter. thank in advance. Meissa L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. Let us mind the environment : let's print our mails only when necessary.
Re: optionstransferselect tag
but the showcase sample example is working correctly. That's why I'm troubledshooted not to have my example working. Meissa Bill Johnson [EMAIL PROTECTED] 05/07/2007 17:56 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A Struts Users Mailing List user@struts.apache.org cc Objet Re: optionstransferselect tag I'm having the same problem and it appears to be because the default theme is requiring DOJO to automatically select all the select options before submitting the form. I'm not sure if there is a JIRA bug opened for this or not, but there probably should be. The default (non-ajax) theme should not require DOJO for the optionstransferselect tag to work. I think the way to fix this is to have the default theme use plain JavaScript to do the select all functionality and not DOJO. -Bill --- [EMAIL PROTECTED] wrote: Hi all, I have a problem with the optiontransferselect tag. When I click on the submit button,nothing is set on the listeSelectedKeys attribute of my updateActionClass. Can someone tells me what i've missed. here is an extract of my jsp. s:form action=updateExtraction s:optiontransferselect headerValue=--- Veuillez selectionner un compartiments --- headerKey=-1 emptyOption=false list=#application.vlisteCompartiments listValue=libelleCompartiment listKey=id buttonCssClass=bouton cssStyle=width: 350px; allowSelectAll=false doubleList=listeCompartiments doubleName=listSelectedKeys doubleHeaderValue=--- Veuillez selectionner un compartiments --- doubleHeaderKey=-1 doubleEmptyOption=false buttonCssStyle=bouton doubleCssStyle=width: 350px; / s:submit cssClass=bouton type=submit value=Modifier / /s:form thank in advance. meissa. L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. Let us mind the environment : let's print our mails only when necessary. Get the Yahoo! toolbar and be alerted to new email wherever you're surfing. http://new.toolbar.yahoo.com/toolbar/features/mail/index.php - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender.
Re: optionstransferselect tag
There is bug in optionstransferselect tag in struts 2.0.6. When the form is submitted,nothing is selected. Can someone tells me if this has been fixed in struts 2.0.8. thanks in advance. Meissa [EMAIL PROTECTED] 06/07/2007 09:25 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A Struts Users Mailing List user@struts.apache.org cc Objet Re: optionstransferselect tag but the showcase sample example is working correctly. That's why I'm troubledshooted not to have my example working. Meissa Bill Johnson [EMAIL PROTECTED] 05/07/2007 17:56 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A Struts Users Mailing List user@struts.apache.org cc Objet Re: optionstransferselect tag I'm having the same problem and it appears to be because the default theme is requiring DOJO to automatically select all the select options before submitting the form. I'm not sure if there is a JIRA bug opened for this or not, but there probably should be. The default (non-ajax) theme should not require DOJO for the optionstransferselect tag to work. I think the way to fix this is to have the default theme use plain JavaScript to do the select all functionality and not DOJO. -Bill --- [EMAIL PROTECTED] wrote: Hi all, I have a problem with the optiontransferselect tag. When I click on the submit button,nothing is set on the listeSelectedKeys attribute of my updateActionClass. Can someone tells me what i've missed. here is an extract of my jsp. s:form action=updateExtraction s:optiontransferselect headerValue=--- Veuillez selectionner un compartiments --- headerKey=-1 emptyOption=false list=#application.vlisteCompartiments listValue=libelleCompartiment listKey=id buttonCssClass=bouton cssStyle=width: 350px; allowSelectAll=false doubleList=listeCompartiments doubleName=listSelectedKeys doubleHeaderValue=--- Veuillez selectionner un compartiments --- doubleHeaderKey=-1 doubleEmptyOption=false buttonCssStyle=bouton doubleCssStyle=width: 350px; / s:submit cssClass=bouton type=submit value=Modifier / /s:form thank in advance. meissa. L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. Let us mind the environment : let's print our mails only when necessary. Get the Yahoo! toolbar and be alerted to new email wherever you're surfing. http://new.toolbar.yahoo.com/toolbar/features/mail/index.php - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. Let us mind the environment : let's print our mails only when necessary.
Re: optionstransferselect tag
I'm trying to use the onsubmit attribute in the s:submit tag but it fails. The exception is saying that the attribute onsubmit is not correct according to submit TLD. Can someone tell what I've done wrong. here is my jsp: %@ taglib prefix=s uri=/struts-tags % html head title Media - Tags - UI Tags - Optiontransferselect/title script language=JavaScript type=text/javascript function doSubmitSelect() { var selectObj = document.getElementById('leftId' );selectAllOptionsExceptSome(selectObj, 'key', ''); selectObj = document.getElementById('rightId' );selectAllOptionsExceptSome(selectObj, 'key', ''); } /script s:head theme=ajax / /head body center s:form action=optiontfSubmit method=post table width=50% border=0 align=center cellpadding=0 cellspacing= 0 TR TD width=15% height=25 align=leftnbsp;/TD TD align=left s:optiontransferselect tooltip=Selectionner vos support favoris headerKey=-1 headerValue=--- Selectionnez --- doubleHeaderKey=-1 id=leftId doubleId=rightId doubleHeaderValue=--- Selectionnez --- emptyOption=true doubleEmptyOption=true label=Support favoris leftTitle=Supports favoris rightTitle=support favoris Choisis name=supportsFavoris list=#application.supports listKey=codeSupport listValue=libelle doubleName=supportsFavorisChoisis doubleList=defaultListSupport / /TD /TR tr td/td td align=left colspan=2 s:submit value=Valider onsubmit=javascript:doSubmitSelect();//td /tr /TABLE /s:form /center /body /html Jeromy Evans [EMAIL PROTECTED] 06/07/2007 09:49 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A Struts Users Mailing List user@struts.apache.org cc Objet Re: optionstransferselect tag You can work-around this bug in 2.0.6 by adding the following javascript to the onsubmit attribute of optionstransferselect: onsubmit=var selectObj = document.getElementById('leftId');selectAllOptionsExceptSome(selectObj, 'key', '');selectObj = document.getElementById('rightId');selectAllOptionsExceptSome(selectObj, 'key', ''); where: leftId is the id of the first select (id value) rightId is the id of the second select (doubleId value) That is an exact copy of the javascript included in script by the tag, but adding it to onsubmit guarantees it executes. I can't comment on whether the problem was fixed in 2.0.8, or if the exact cause of the intermittent problem was ever identified as a bug. More details in this thread: http://www.nabble.com/-S2--Optiontransfertselect-tag-t3827911.html regards, Jeromy Evans [EMAIL PROTECTED] wrote: There is bug in optionstransferselect tag in struts 2.0.6. When the form is submitted,nothing is selected. Can someone tells me if this has been fixed in struts 2.0.8. thanks in advance. Meissa [EMAIL PROTECTED] 06/07/2007 09:25 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A Struts Users Mailing List user@struts.apache.org cc Objet Re: optionstransferselect tag but the showcase sample example is working correctly. That's why I'm troubledshooted not to have my example working. Meissa Bill Johnson [EMAIL PROTECTED] 05/07/2007 17:56 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A Struts Users Mailing List user@struts.apache.org cc Objet Re: optionstransferselect tag I'm having the same problem and it appears to be because the default theme is requiring DOJO to automatically select all the select options before submitting the form. I'm not sure if there is a JIRA bug opened for this or not, but there probably should be. The default (non-ajax) theme should not require DOJO for the optionstransferselect tag to work. I think the way to fix this is to have the default theme use plain JavaScript to do the select all functionality and not DOJO. -Bill --- [EMAIL PROTECTED] wrote: Hi all, I have a problem with the optiontransferselect tag. When I click on the submit button,nothing is set on the listeSelectedKeys attribute of my updateActionClass. Can someone tells me what i've missed. here is an extract of my jsp. s:form action=updateExtraction s:optiontransferselect headerValue=--- Veuillez selectionner un compartiments --- headerKey=-1 emptyOption=false list=#application.vlisteCompartiments listValue=libelleCompartiment listKey=id buttonCssClass=bouton cssStyle=width: 350px; allowSelectAll=false doubleList=listeCompartiments doubleName=listSelectedKeys doubleHeaderValue=--- Veuillez selectionner un compartiments --- doubleHeaderKey=-1 doubleEmptyOption=false buttonCssStyle=bouton doubleCssStyle=width: 350px; / s:submit cssClass=bouton type=submit
Re: optionstransferselect tag
I've corrected it. But when my form is submitted, values that are selected are still not submitted. I'm calling the function below: function doSubmitSelect() { var selectObj = document.getElementById('leftId'); selectAllOptionsExceptSome(selectObj, 'key', ''); selectObj = document.getElementById('rightId'); selectAllOptionsExceptSome(selectObj, 'key', ''); } the optiontransfertag definition is here: s:optiontransferselect tooltip=Selectionner vos support favoris headerKey=-1 headerValue=--- Selectionnez --- doubleHeaderKey=-1 id=leftId doubleId=rightId doubleHeaderValue=--- Selectionnez --- emptyOption=true doubleEmptyOption=true label=Support favoris leftTitle=Supports favoris rightTitle=support favoris Choisis name=supportsFavoris list=#application.supports listKey=codeSupport listValue=libelle doubleName=supportsFavorisChoisis doubleList=defaultListSupport / I wonder if I have to define the leftId and the rightId in the form. Meissa Bill Johnson [EMAIL PROTECTED] 06/07/2007 17:23 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A Struts Users Mailing List user@struts.apache.org cc Objet Re: optionstransferselect tag The onsubmit attribute is for the s:form tag, not the s:submit tag. -Bill --- [EMAIL PROTECTED] wrote: I'm trying to use the onsubmit attribute in the s:submit tag but it fails. The exception is saying that the attribute onsubmit is not correct according to submit TLD. Can someone tell what I've done wrong. here is my jsp: %@ taglib prefix=s uri=/struts-tags % html head title Media - Tags - UI Tags - Optiontransferselect/title script language=JavaScript type=text/javascript function doSubmitSelect() { var selectObj = document.getElementById('leftId' );selectAllOptionsExceptSome(selectObj, 'key', ''); selectObj = document.getElementById('rightId' );selectAllOptionsExceptSome(selectObj, 'key', ''); } /script s:head theme=ajax / /head body center s:form action=optiontfSubmit method=post table width=50% border=0 align=center cellpadding=0 cellspacing= 0 TR TD width=15% height=25 align=leftnbsp;/TD TD align=left s:optiontransferselect tooltip=Selectionner vos support favoris headerKey=-1 headerValue=--- Selectionnez --- doubleHeaderKey=-1 id=leftId doubleId=rightId doubleHeaderValue=--- Selectionnez --- emptyOption=true doubleEmptyOption=true label=Support favoris leftTitle=Supports favoris rightTitle=support favoris Choisis name=supportsFavoris list=#application.supports listKey=codeSupport listValue=libelle doubleName=supportsFavorisChoisis doubleList=defaultListSupport / /TD /TR tr td/td td align=left colspan=2 s:submit value=Valider onsubmit=javascript:doSubmitSelect();//td /tr /TABLE /s:form /center /body /html Jeromy Evans [EMAIL PROTECTED] 06/07/2007 09:49 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A Struts Users Mailing List user@struts.apache.org cc Objet Re: optionstransferselect tag You can work-around this bug in 2.0.6 by adding the following javascript to the onsubmit attribute of optionstransferselect: onsubmit=var selectObj = document.getElementById('leftId');selectAllOptionsExceptSome(selectObj, 'key', '');selectObj = document.getElementById('rightId');selectAllOptionsExceptSome(selectObj, 'key', ''); where: leftId is the id of the first select (id value) rightId is the id of the second select (doubleId value) That is an exact copy of the javascript included in script by the tag, but adding it to onsubmit guarantees it executes. I can't comment on whether the problem was fixed in 2.0.8, or if the exact cause of the intermittent problem was ever identified as a bug. More details in this thread: http://www.nabble.com/-S2--Optiontransfertselect-tag-t3827911.html regards, Jeromy Evans [EMAIL PROTECTED] wrote: There is bug in optionstransferselect tag in struts 2.0.6. When the form is submitted,nothing is selected. Can someone tells me if this has been fixed in struts 2.0.8. thanks in advance. Meissa [EMAIL PROTECTED] 06/07/2007 09:25 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A Struts Users Mailing List user@struts.apache.org cc Objet Re: optionstransferselect tag but the showcase sample example is working correctly. That's why I'm troubledshooted not to have my example working. Meissa Bill Johnson [EMAIL PROTECTED] 05/07/2007
Re: optionstransferselect tag
it's now working. the doSubmitSelect() was never called because of an error (the quote letft at the end). thank for all who replied. meissa Bill Johnson [EMAIL PROTECTED] 06/07/2007 18:22 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A Struts Users Mailing List user@struts.apache.org cc Objet Re: optionstransferselect tag You have to change the rightid and leftid values with the actual names assigned to the select tags generated by the S2 tags. Does that make sense? -Bill --- [EMAIL PROTECTED] wrote: I've corrected it. But when my form is submitted, values that are selected are still not submitted. I'm calling the function below: function doSubmitSelect() { var selectObj = document.getElementById('leftId'); selectAllOptionsExceptSome(selectObj, 'key', ''); selectObj = document.getElementById('rightId'); selectAllOptionsExceptSome(selectObj, 'key', ''); } the optiontransfertag definition is here: s:optiontransferselect tooltip=Selectionner vos support favoris headerKey=-1 headerValue=--- Selectionnez --- doubleHeaderKey=-1 id=leftId doubleId=rightId doubleHeaderValue=--- Selectionnez --- emptyOption=true doubleEmptyOption=true label=Support favoris leftTitle=Supports favoris rightTitle=support favoris Choisis name=supportsFavoris list=#application.supports listKey=codeSupport listValue=libelle doubleName=supportsFavorisChoisis doubleList=defaultListSupport / I wonder if I have to define the leftId and the rightId in the form. Meissa Bill Johnson [EMAIL PROTECTED] 06/07/2007 17:23 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A Struts Users Mailing List user@struts.apache.org cc Objet Re: optionstransferselect tag The onsubmit attribute is for the s:form tag, not the s:submit tag. -Bill --- [EMAIL PROTECTED] wrote: I'm trying to use the onsubmit attribute in the s:submit tag but it fails. The exception is saying that the attribute onsubmit is not correct according to submit TLD. Can someone tell what I've done wrong. here is my jsp: %@ taglib prefix=s uri=/struts-tags % html head title Media - Tags - UI Tags - Optiontransferselect/title script language=JavaScript type=text/javascript function doSubmitSelect() { var selectObj = document.getElementById('leftId' );selectAllOptionsExceptSome(selectObj, 'key', ''); selectObj = document.getElementById('rightId' );selectAllOptionsExceptSome(selectObj, 'key', ''); } /script s:head theme=ajax / /head body center s:form action=optiontfSubmit method=post table width=50% border=0 align=center cellpadding=0 cellspacing= 0 TR TD width=15% height=25 align=leftnbsp;/TD TD align=left s:optiontransferselect tooltip=Selectionner vos support favoris headerKey=-1 headerValue=--- Selectionnez --- doubleHeaderKey=-1 id=leftId doubleId=rightId doubleHeaderValue=--- Selectionnez --- emptyOption=true doubleEmptyOption=true label=Support favoris leftTitle=Supports favoris rightTitle=support favoris Choisis name=supportsFavoris list=#application.supports listKey=codeSupport listValue=libelle doubleName=supportsFavorisChoisis doubleList=defaultListSupport / /TD /TR tr td/td td align=left colspan=2 s:submit value=Valider onsubmit=javascript:doSubmitSelect();//td /tr /TABLE /s:form /center /body /html Jeromy Evans [EMAIL PROTECTED] 06/07/2007 09:49 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A Struts Users Mailing List user@struts.apache.org cc Objet Re: optionstransferselect tag You can work-around this bug in 2.0.6 by adding the following javascript to the onsubmit attribute of optionstransferselect: onsubmit=var selectObj = document.getElementById('leftId');selectAllOptionsExceptSome(selectObj, 'key', '');selectObj = document.getElementById('rightId');selectAllOptionsExceptSome(selectObj, 'key', ''); where: leftId is the id of the first select (id value) rightId is the id of the second select (doubleId value) That is an exact copy of the javascript included in script by the tag, but adding it to onsubmit guarantees it executes. I can't comment on whether the problem was fixed in === message truncated === Shape Yahoo! in
optionstransferselect tag
Hi all, I have a problem with the optiontransferselect tag. When I click on the submit button,nothing is set on the listeSelectedKeys attribute of my updateActionClass. Can someone tells me what i've missed. here is an extract of my jsp. s:form action=updateExtraction s:optiontransferselect headerValue=--- Veuillez selectionner un compartiments --- headerKey=-1 emptyOption=false list=#application.vlisteCompartiments listValue=libelleCompartiment listKey=id buttonCssClass=bouton cssStyle=width: 350px; allowSelectAll=false doubleList=listeCompartiments doubleName=listSelectedKeys doubleHeaderValue=--- Veuillez selectionner un compartiments --- doubleHeaderKey=-1 doubleEmptyOption=false buttonCssStyle=bouton doubleCssStyle=width: 350px; / s:submit cssClass=bouton type=submit value=Modifier / /s:form thank in advance. meissa. L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. Let us mind the environment : let's print our mails only when necessary.
RE stat.odd ? test
Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle Natixis Investor Servicing. Les adresses mails des collaborateurs ayant changé, veillez à la mise à jour de votre carnet d'adresses. here is an example that is working. s:iterator value=articles status=rowstatus tr nowrap class=s:if test=#rowstatus.odd == true datavalueblue/s:ifs:elsedatavaluewite/s:else s:url id=editUrl action=edit s:param name=codeArticle value=%{codeArticle} //s:url tds:a href=%{editUrl} s:property value=titre //s:a/td /tr /s:iterator And here is your example revisited: s:iterator value=aList status=stat tr class=s:if test=#stat.odd == true odd/s:ifs:elseeven/s:else/tr /s:iterator I hope this help. Meissa Mansour [EMAIL PROTECTED] 27/06/2007 03:34 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A Struts Users Mailing List user@struts.apache.org cc Objet stat.odd ? test I am trying to iterate over a list and display rows in different style: s:iterator value=aList status=stat id=row s:set name=foo value=${#stat.odd ? 'odd':'even'} / tr class=${foo} ... The resulting code have the class attribute always empty. Like this : tr class= Can any one advice what's wrong ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. Let us mind the environment : let's print our mails only when necessary.
RE interceptor call
Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle Natixis Investor Servicing. Les adresses mails des collaborateurs ayant changé, veillez à la mise à jour de votre carnet d'adresses. try this, http://struts.apache.org/2.x/docs/writing-interceptors.html L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender.
RE s:checkbox and generate tdtr
Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle Natixis Investor Servicing. Les adresses mails des collaborateurs ayant changé, veillez à la mise à jour de votre carnet d'adresses. the struts struts.ui.theme constant is set to xhtml by default in the struts.properties file. This cause the generation of html code(td,table,tr ...) whenever you call struts ui tags. You can override this value in your struts.xml file just like below. constant name=struts.ui.theme value=simple / This will disable code generation in all your tags calls. You can also set the theme value to simple in each tag call. Meissa Michał Letyński [EMAIL PROTECTED] 15/05/2007 12:17 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A user@struts.apache.org cc Objet s:checkbox and generate tdtr Hi. I put s:checkbox UI tah to my jsp: s:checkbox label=Label name=some name value=some value here / in my generated html i get: td valign=top align=right /td td valign=top align=left ... ... How to disable this generated code ? i just only want those two inputs without td's,tr's - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. Let us mind the environment : let's print our mails only when necessary.
struts2 exception handling
Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle Natixis Investor Servicing. Les adresses mails des collaborateurs ayant changé, veillez à la mise à jour de votre carnet d'adresses. Hi all, my business classes that are called in my action methods may throw specific exceptions. I would like to centralize exception handling in a one class instead of handling them in all action method. Just like the struts1 exception handling approach. I'm thinking about an interceptor to fulfill exception handling task. But, maybe the framework provide something similar that I could use. If someone has an idea about that, I'm greetly interested. thank in advance. Meissa L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. Let us mind the environment : let's print our mails only when necessary.
datetimepicker tag problem
Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle Natixis Investor Servicing. Les adresses mails des collaborateurs ayant changé, veillez à la mise à jour de votre carnet d'adresses. Hi all, I'm simply trying to use the datetime picker tag in my form exactly the same way in the showcase sample app. It works in the showcase app and fail in my example. Nothing appears. here is an extract of my code. s:form action=create table border=0 width=80% cellpadding=0 cellspacing=0 align=center tr nowrap class=datavaluewite tdnbsp;bAuteur : /td td align=left s:textfield name=article.auteur size=50/ /td /tr tr nowrap class=datavalueblue s:datetimepicker label=With initial date of 1969-04-25 and a custom format dd/MM/ name=dddp5 value=25/04/1969 displayFormat=dd/MM/ theme=xhtml/ /tr trtdnbsp;/td/tr tr td/td td input type=submit value=Ajouter input type=submit value=Annuler /td /tr /table /s:form can someone tells me if there is something to add in config files or somewhere else to make it works. thanks in advance. Meissa L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender.
Re: datetimepicker tag problem
Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle Natixis Investor Servicing. Les adresses mails des collaborateurs ayant changé, veillez à la mise à jour de votre carnet d'adresses. Good answer ! I was near to tear my heair off because of this problem. There is nowhere in the documentation that's telling that the ajax them is required for the datetimepicker. Thank you for your help. Meissa Julien Leonard [EMAIL PROTECTED] 11/05/2007 11:10 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A Struts Users Mailing List user@struts.apache.org cc Objet Re: datetimepicker tag problem Hi, I had the same problem. Did you put s:head theme=ajax / tag? In fact I think that the datetimepicker needs ajax includes. Julien 2007/5/11, [EMAIL PROTECTED] [EMAIL PROTECTED]: Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle Natixis Investor Servicing. Les adresses mails des collaborateurs ayant changé, veillez à la mise à jour de votre carnet d'adresses. Hi all, I'm simply trying to use the datetime picker tag in my form exactly the same way in the showcase sample app. It works in the showcase app and fail in my example. Nothing appears. here is an extract of my code. s:form action=create table border=0 width=80% cellpadding=0 cellspacing=0 align=center tr nowrap class=datavaluewite tdnbsp;bAuteur : /td td align=left s:textfield name=article.auteur size=50/ /td /tr tr nowrap class=datavalueblue s:datetimepicker label=With initial date of 1969-04-25 and a custom format dd/MM/ name=dddp5 value=25/04/1969 displayFormat=dd/MM/ theme=xhtml/ /tr trtdnbsp;/td/tr tr td/td td input type=submit value=Ajouter input type=submit value=Annuler /td /tr /table /s:form can someone tells me if there is something to add in config files or somewhere else to make it works. thanks in advance. Meissa L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender.
RE Beginners tutorial
Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle Natixis Investor Servicing. Les adresses mails des collaborateurs ayant changé, veillez à la mise à jour de votre carnet d'adresses. try the mailreader application. http://www.planetstruts.org/struts2-mailreader/Welcome.do Meissa [EMAIL PROTECTED] 09/05/2007 15:46 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A Struts Users Mailing List user@struts.apache.org cc Objet Beginners tutorial Hi, Does anyone know where there is a good tutorial covering the creation of ones first Struts application. One that doesn't care if I using Eclipse, Ant MySql ? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender.
Session Expiration Handling
Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle Natixis Investor Servicing. Les adresses mails des collaborateurs ayant changé, veillez à la mise à jour de votre carnet d'adresses. Hi all, I would like to write an Interceptor that will handle the session expiration. If somone has already written something like that, thanks to tell me how. If not here is my idea. my interceptor will retrieve the session. A private method will tell me if the session is still valid. here is an extract: public String intercept(ActionInvocation invocation) throws Exception { Map session = invocation.getInvocationContext().getSession(); if(isSessionExpired(session)) { return Constants.SESSION_EXPIRED_ACTION; } else { return invocation.invoke(); } } private boolean isSessionExpired(Map session) { return true; } When I put an object in the session (in the first action that is called for example), is there a way to test if the session is still valid ? any help is greetly appreciated. Meissa L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender.
Re: Session Expiration Handling
Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle Natixis Investor Servicing. Les adresses mails des collaborateurs ayant changé, veillez à la mise à jour de votre carnet d'adresses. I have a user Object that I could put in the session at Login Time. But I think that when that object is not in the session, It's not exactly as the session has expired. For me, a session has expired when the session timout is reached. Then all object that have been put in the session are not longer valid. My need is to test the validity of the session . We could get that with the HttpServletRequest.isRequestedSessionIdValid() method. meissa Shahak Nagiel [EMAIL PROTECTED] 09/05/2007 17:59 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A Struts Users Mailing List user@struts.apache.org cc Objet Re: Session Expiration Handling I've implemented a similar authenticator (which I called AuthenticationInterceptor, since it's verifying the user has been authenticated). The easiest way to handle this is to simply put some object in the HttpSession once the user is authenticated at login time, such as a User object. If that object isn't in session, you can assume either they haven't yet logged on or the session has expired (which are both really the same scenario anyway). - Original Message From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: user@struts.apache.org Sent: Wednesday, May 9, 2007 11:14:20 AM Subject: Session Expiration Handling Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle Natixis Investor Servicing. Les adresses mails des collaborateurs ayant changé, veillez à la mise à jour de votre carnet d'adresses. Hi all, I would like to write an Interceptor that will handle the session expiration. If somone has already written something like that, thanks to tell me how. If not here is my idea. my interceptor will retrieve the session. A private method will tell me if the session is still valid. here is an extract: public String intercept(ActionInvocation invocation) throws Exception { Map session = invocation.getInvocationContext().getSession(); if(isSessionExpired(session)) { return Constants.SESSION_EXPIRED_ACTION; } else { return invocation.invoke(); } } private boolean isSessionExpired(Map session) { return true; } When I put an object in the session (in the first action that is called for example), is there a way to test if the session is still valid ? any help is greetly appreciated. Meissa L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender.
formating the s:textfield tag value
Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle Natixis Investor Servicing. Les adresses mails des collaborateurs ayant changé, veillez à la mise à jour de votre carnet d'adresses. Hi all, I would like to format the value rendered by my texfield which is of date type. Here is the extract of my code: td align=left s:textfield name=article.dateEnreg size=12 value= %{article.dateEnreg}/ /td Can someone tells me what to do if I want the value to be formatted in dd/mm/. thanks in advance. Meissa L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. Let us mind the environment : let's print our mails only when necessary.
date conversion with s:textfield value tag
Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle Natixis Investor Servicing. Les adresses mails des collaborateurs ayant changé, veillez à la mise à jour de votre carnet d'adresses. I would like my date property to be rendered in a defined date format(dd/MM/). I try to insert the format expression by using the s:date tag just like below td align=left s:textfield name=article.dateEnreg size=12 value=%s:date name=article.dateEnreg format=dd/MM/// /td I'm getting parsing errors since the compiler can't get to evaluate the expression within date value. Can someone tells me what to do in order to format the value passed to the s:texfield tag. Is this kind of thing supported by the tag. thanks Meisssa L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender.
Re: ui tags behaviour aka overriding default theme
Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle Natixis Investor Servicing. Les adresses mails des collaborateurs ayant changé, veillez à la mise à jour de votre carnet d'adresses. Thank you for the url that you pointed me. I've read and searched a lot in the themes topic. But my problem is far to be solved. It seems to me that I have to extend or override the default form theme if I want to render my form elements as I want. The problem is that I that I've not found a simple sample that doing what I want. The code below describe my need. s:form action=delete table border=0 width=80% cellpadding=0 cellspacing=0 align=center tr nowrap class=datavalueblue tdnbsp;bTitre :/td td align=left s:textfield label=titre name=article.titre size=50/ /td /tr tr td/td td input type=submit value=Ajouter /td /tr /table /s:form The code generated by struts ignores all of my rendering needs. when I write it in a pure struts2 style like below: s:form action=create s:textfield label=titre name=article.titre size=50/ s:submit key=button.add/ /s:form The default html form theme is used and you can guest the result. Can someone explain me simply how I can set a style to the generated label instead of the default used by struts. Any meaningful help would be greetly appreciated. Meissa. Martin Gainty [EMAIL PROTECTED] 02/05/2007 19:20 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A Struts Users Mailing List user@struts.apache.org cc Objet Re: ui tags behaviour As in setting theme =cssxhtml-theme to incorporate your css classes..more information available at http://struts.apache.org/2.x/docs/cssxhtml-theme.html Anyone else? M This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: [EMAIL PROTECTED] To: user@struts.apache.org Sent: Wednesday, May 02, 2007 11:32 AM Subject: ui tags behaviour Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle Natixis Investor Servicing. Les adresses mails des collaborateurs ayant changé, veillez à la mise à jour de votre carnet d'adresses. Hi all, I'm using the textfield ui form inside an a form tag like below: s:form action=create s:textfield key=article.dateEnreg size=20/ /s:form I would like to apply my own class to the label. When i use the cssClass attribute, it goes to the input. Can someone tells me how to manage to give to the generated label a desired class. thank in advance. Meissa L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. Let us mind the environment : let's print our mails only when necessary. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. Let us mind the environment : let's print our mails only when necessary.
Re: ui tags behaviour aka overriding default theme
Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle Natixis Investor Servicing. Les adresses mails des collaborateurs ayant changé, veillez à la mise à jour de votre carnet d'adresses. I've used the simple theme and it's working as I expected. I'll try to write my own ... Thank you very much. Meissa Zoran Avtarovski [EMAIL PROTECTED] 04/05/2007 14:06 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A Struts Users Mailing List user@struts.apache.org cc Objet Re: ui tags behaviour aka overriding default theme I suggest you use the simple theme by specifying theme=simple in your form tag and then create your own labels and styling. Also, S2(WW) uses default styles which you can override in your local style sheet. I'm pretty sure these are the styles used for the default theme: .label {font-style:italic; } .errorLabel {font-style:italic; color:red; } .errorMessage {font-weight:bold; text-align: center; color:red; } .checkboxLabel {} .checkboxErrorLabel {color:red; } .required {color:red;} Other wise you write your own theme using velocity and the sky's the limit. Z. Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle Natixis Investor Servicing. Les adresses mails des collaborateurs ayant changé, veillez à la mise à jour de votre carnet d'adresses. Thank you for the url that you pointed me. I've read and searched a lot in the themes topic. But my problem is far to be solved. It seems to me that I have to extend or override the default form theme if I want to render my form elements as I want. The problem is that I that I've not found a simple sample that doing what I want. The code below describe my need. s:form action=delete table border=0 width=80% cellpadding=0 cellspacing=0 align=center tr nowrap class=datavalueblue tdnbsp;bTitre :/td td align=left s:textfield label=titre name=article.titre size=50/ /td /tr tr td/td td input type=submit value=Ajouter /td /tr /table /s:form The code generated by struts ignores all of my rendering needs. when I write it in a pure struts2 style like below: s:form action=create s:textfield label=titre name=article.titre size=50/ s:submit key=button.add/ /s:form The default html form theme is used and you can guest the result. Can someone explain me simply how I can set a style to the generated label instead of the default used by struts. Any meaningful help would be greetly appreciated. Meissa. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. Let us mind the environment : let's print our mails only when necessary.
ui tags behaviour
Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle Natixis Investor Servicing. Les adresses mails des collaborateurs ayant changé, veillez à la mise à jour de votre carnet d'adresses. Hi all, I'm using the textfield ui form inside an a form tag like below: s:form action=create s:textfield key=article.dateEnreg size=20/ /s:form I would like to apply my own class to the label. When i use the cssClass attribute, it goes to the input. Can someone tells me how to manage to give to the generated label a desired class. thank in advance. Meissa L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. Let us mind the environment : let's print our mails only when necessary.
simply getting plugin properties
I'm using struts 1.1 and need to set some parameters in my plugin definition. here is my plugin definition: plug-in className=com.bpam.mediatheque.plugins.MediathequePlugin set-property property=myProperty value/WEB-INF/myFile.xml/ /plug-in I would like to read the property in my plugin init method. can someone tell me how to do this. thanks in advance. ___ NATEXIS ASSET MANAGEMENT Meissa SAKHO 01 58 19 45 71. . . . . . . . . . . . (84571) [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natexis Banques Populaires ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. The integrity of this message cannot be guaranteed on the Internet. Natexis Banques Populaires can not therefore be considered responsible for the contents.Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender.
Réf. : Re: simply getting plugin properties
Thank you nicolas. there is something a little bit confusing in the struts documentation that led me in misunderstanding. I found the extract below in the struts documentation. plug-in className=org.apache.struts.tiles.TilesPlugin set-property property=definitions-config value=/WEB-INF/tiles-defs.xml/ /plug-in I could never imagine creating a javabean property named definition-config. ___ NATEXIS ASSET MANAGEMENT Meissa SAKHO 01 58 19 45 71. . . . . . . . . . . . (84571) [EMAIL PROTECTED] Nicolas De Loof [EMAIL PROTECTED] 08/07/2004 15:43 Veuillez répondre à Struts Users Mailing List Pour : Struts Users Mailing List [EMAIL PROTECTED] cc : Objet : Re: simply getting plugin properties Simply create a javabean property 'myProperty' in your plugin class : private String myProperty; public void setMyProperty(String str) ... public String getMyProperty() ... Nico. I'm using struts 1.1 and need to set some parameters in my plugin definition. here is my plugin definition: plug-in className=com.bpam.mediatheque.plugins.MediathequePlugin set-property property=myProperty value/WEB-INF/myFile.xml/ /plug-in I would like to read the property in my plugin init method. can someone tell me how to do this. thanks in advance. ___ NATEXIS ASSET MANAGEMENT Meissa SAKHO 01 58 19 45 71. . . . . . . . . . . . (84571) [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natexis Banques Populaires ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. The integrity of this message cannot be guaranteed on the Internet. Natexis Banques Populaires can not therefore be considered responsible for the contents.Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. Our name has changed. Please update your address book to the following format: [EMAIL PROTECTED]. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natexis Banques Populaires ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. The integrity of this message cannot be guaranteed on the Internet. Natexis Banques Populaires can not therefore be considered responsible for the contents.Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender.