Re: Random ClassCastException : I'm expecting Long, Struts gives me String on some servers...

2009-01-30 Thread mleneveut
I put some @Conversion(), @Element(value = java.lang.Long.class) and @TypeConversion(rule = ConversionRule.COLLECTION, converter = "java.lang.Long") in my Action and it's not working better. So I set the convertion in a properties file with : Element_idsCommerciaux=java.lang.Long and it is worki

Re: Random ClassCastException : I'm expecting Long, Struts gives me String on some servers...

2009-01-29 Thread mleneveut
Hi, Thanks for your reply. What I can't understand is why it works in some environments, and no others. The war is the same. And why do you say that the "generic type of the idsCommerciaux list is not available at runtime" ? I defined it as a List in the Action. So Struts should know that it ha

Random ClassCastException : I'm expecting Long, Struts gives me String on some servers...

2009-01-29 Thread mleneveut
Hi all, I have a very strange thing. I have a multiple select in my JSP, and a List of ids in my Action. When I submit the form, I iterate on that List of Long, and I have this error : java.lang.ClassCastException: java.lang.String Struts has String in the List instead of Long. The strange thin

Re: Firefox 3 and JSON random errors

2008-10-30 Thread mleneveut
Sometimes I got this errors to : symbol 'dojo.rpc' is not defined after loading '__package__.js' Fichier Source : http://localhost:8080/crm/struts/dojo/dojo.js Ligne : 1 -- View this message in context: http://www.nabble.com/Firefox-3-and-JSON-random-errors-tp20249211p20249553.html Sent from

Firefox 3 and JSON random errors

2008-10-30 Thread mleneveut
Hi all, I'm getting erros with my Struts 2 web application using Firefox 3. Everything is ok with others navigators. With FF3, it shows randomly javascript errors saying my JS var is undefined. here is a sample of code : // Dojo configuration

Re: [S2] Display Tag? (2.0.11)

2007-11-01 Thread MLENEVEUT
Or you can use Decorators : public class MyDecorator extends TableDecorator { public String getAttrNameNotInBean() { MyBean bean = (MyBean) getCurrentRowObject(); return ""; } } Michaël

Re: datetimepicker tag

2007-10-15 Thread MLENEVEUT
In the lasts versions (since 2.0.9 I guess), all AJAX are in dojo plugin. So you need to include <%@ taglib uri="/struts-dojo-tags" prefix="sx"%> and and call : Michaël dipti RealSoftInc <[EMAIL PROTECTED]> 16/10/2007 08:09 Veuillez répondre à "Struts Users Mailing List" A user@struts.

Re: [S2] How to apply a Java method on a ${myVarInStack} in a JSP ?

2007-10-10 Thread mleneveut
Ok sorry for stupid question, I have found :) mleneveut wrote: > > Thanks for your answer. > > The s:date tag is fine, but how to pass it to a s:textfield tag ? > >size="10" maxlength = "10" > value=""/> > > >

Re: [S2] How to apply a Java method on a ${myVarInStack} in a JSP ?

2007-10-10 Thread mleneveut
Thanks for your answer. The s:date tag is fine, but how to pass it to a s:textfield tag ? "/> maxmil wrote: > > You can call a static method using the OGNL syntax. > > . > > (More info can be found here > http://www.opensymphony.com/ognl/html/LanguageGuide/) > > However i suggest you hav

[S2] How to apply a Java method on a ${myVarInStack} in a JSP ?

2007-10-10 Thread mleneveut
Hi all, I just give up the datetimepicker component, due to a 2s more page load time. I put anoter JS calendar (YUI calendar), but the problem is that in my Actions I have java.util.Date attributes. So I need to format my Date into a String that the calendar will understand (dd/MM/ in my case

Re: [S2] Conditional Validation (test if field is present in JSP)

2007-09-17 Thread MLENEVEUT
rib in ('a','list','of','values') (this is just an example stating that you can check for the existence of the variable in the parameter and then execute an expression like you normally would ) mleneveut wrote: > > Hi all, > > We have an Actio

[S2] Conditional Validation (test if field is present in JSP)

2007-09-17 Thread MLENEVEUT
Hi all, We have an Action redirecting to several JSP, depending on the customer. But the forms of these JSP are different : some fields are added/removed in some JSP. So the automatic validation fails for those fields not existing in some JSP. We bypass the problem by copying the Action metho

CN=Michaël LENEVEUT/OU=DEVELOPPEMENT/OU=GUNDER /O=ABW/C=FR is out of the office.

2007-08-24 Thread MLENEVEUT
Je serai absent(e) du 24/08/2007 au 12/09/2007.

RE Sending value stack from Action A to Action B

2007-08-22 Thread MLENEVEUT
>1) How can values in the value stack be sent among actions, so that they are >available in the final web page? Put your values in HttpSession wild_oscar <[EMAIL PROTECTED]> 22/08/2007 16:48 Veuillez répondre à "Struts Users Mailing List" A user@struts.apache.org cc Objet Sending value

RE how to use confirm dialog box

2007-08-22 Thread MLENEVEUT
Google ? Search in nabble's forum ? http://www.nabble.com/how-to-use-confirmdialog-box-tf4303548.html#a12249806 kushi <[EMAIL PROTECTED]> 22/08/2007 08:56 Veuillez répondre à "Struts Users Mailing List" A user@struts.apache.org cc Objet how to use confirm dialog box Hello experts

Re: RE Action within Action result

2007-08-21 Thread MLENEVEUT
lt Thanks mleneveut, Its working for simple action calling, But I have a request variable in my URL and if I simply redirect to the specified action then I lost the variable. E.G.. I have following URL http://localhost:8080/Action1.action?Argument=Sawan Now if simply call the action th

RE how to use confirmdialog box

2007-08-21 Thread MLENEVEUT
Delete function delete(id) { if(confirm('sure ?')) { document.forms[0].bucket.value = id; document.forms[0].action = deletebucketaction.action; document.forms[0].submit(); } else {

RE Action within Action result

2007-08-20 Thread MLENEVEUT
Add the result type : action2 ... (redirect-action if you are in version before 2.0.9) Sawan <[EMAIL PROTECTED]> 21/08/2007 08:50 Veuillez répondre à "Struts Users Mailing List" A user@struts.apache.org cc Objet Action within Action result Hello Experts, I want to

RE Evaluating a javascript expression in order to set the readonly attribute

2007-08-13 Thread MLENEVEUT
In your Action, add an String attribute named editingFlag with a getter and a setter. Set the value ("true" or "false") of editingFlag in the method forwarding to your JSP. In the JSP : "Session A Mwamufiya" <[EMAIL PROTECTED]> 13/08/2007 12:46 Veuillez répondre à "Struts Users Mailing Lis

RE [S2] autowiring with hand rolled factory

2007-08-13 Thread MLENEVEUT
Did you set this in your struts.xml ? or For Autowiring, it's enable by default. But you can customise it : http://struts.apache.org/2.0.9/docs/spring-plugin.html The framework enables "autowiring" by default. (Autowiring means to look for objects defined in Spring with the same name as yo

RE taking control of the struts 2 layout in a jsp

2007-08-13 Thread MLENEVEUT
Hi, Copy the struts.jar templates into your application (at the root, WebContent/templates for exemple), and modify the WebContent/template/simple/*.ftl files at your convenience. "Session A Mwamufiya" <[EMAIL PROTECTED]> 13/08/2007 08:57 Veuillez répondre à "Struts Users Mailing List"

RE Preventing validation when form is first displayed

2007-08-13 Thread MLENEVEUT
Hi, I had the same problem, and added in my struts.xml : execute, input,back,cancel,browse, detail, delete, goAdd, goModif, view execute,input,back,cancel,browse, detail, delete, goAdd, goModif, view So

[S2] ExecAndWait interceptor : request.getSession() null

2007-08-10 Thread mleneveut
Hi, I try to add the execAndWait interceptor in my application. But now the request.getSession() returns null so my app crash in the first Action. What did I miss ?

RE: RE

2007-08-09 Thread MLENEVEUT
By setting the requestURI="myAction.action" pointing to your current action (which you used to come to this page), you will have no problem. DisplayTag will just add some parameters (page, sort, ...). You just have to map this action method to this div/tab/... (so one action or method for each

RE

2007-08-09 Thread MLENEVEUT
I use displaytag too. All works fine. Did you set the requestUri param ? Regards, "Manuel Correa" <[EMAIL PROTECTED]> 09/08/2007 17:54 Veuillez répondre à "Struts Users Mailing List" A "Struts Users Mailing List" cc Objet

Re: [S2] Error datetimepicker when erase input and click again calendar

2007-08-06 Thread mleneveut
Here is a sample application containing the test pages : http://oughacom.free.fr/Java/Test.war mleneveut wrote: > > The whole string. > > If I clicked the date 06/08/2007, I have "06/08/2007" in the input, I > delete all to have an empty string "", I click

Re: [S2] Bug v2.1.0 for double and int validation

2007-08-06 Thread mleneveut
Here is a sample application containing the test pages : http://oughacom.free.fr/Java/Test.war mleneveut wrote: > > Hi, > > I try to validate a double, but it generates this in my JSP : > > // field name: familleProduit.chargeTravail > // validator name

Re: [S2] Problem of validation with a select in my form

2007-08-06 Thread mleneveut
Here is a sample application containing the test pages : http://oughacom.free.fr/Java/Test.war mleneveut wrote: > > The Change() method is rather doing nothing, just modifying a flag : > > function Change(){ > document.forms[0].change.value = '1'; > } &

Re: [S2] Error datetimepicker when erase input and click again calendar

2007-08-06 Thread MLENEVEUT
Veuillez répondre à "Struts Users Mailing List" A "Struts Users Mailing List" cc Objet Re: [S2] Error datetimepicker when erase input and click again calendar When you delete the date in the input, do you delete the whole thing? or juts a part of it? musachy On 8/6/07,

[S2] Error datetimepicker when erase input and click again calendar

2007-08-06 Thread mleneveut
Hi, When I click the calendar picture of my datetimepicker tag (the input is empty), the calendar shows up normally. I pick a date, all is ok. But if I then delete the choosen date in the input, and click again on the calendar, all the dates are NaN. As if the displayFormat was in trouble. Is t

Re: populating input fields on page load

2007-08-06 Thread mleneveut
You could do redirection after your first action. myFirstAction.jsp : form + submit buton to MyFirstAction.process() MyFirstAction { private String myAttribute; execute() : initialize myAttribute and redirect to "success" = myFirstAction.jsp process() : do stuff on myAtrribute submitted in myF

[S2] Submitting a Double => problem of Locale

2007-08-06 Thread mleneveut
Hi, When I submit a numeric in a form, the validation accepts only comma numbers (12,34) (I'm with a French locale). If a set 12.34, the validation failed and I have the message : "Invalid field value for field "xx"" But when a submit 12,34 and another field has an error, it comes back to my JSP

[S2] Bug v2.1.0 for double and int validation

2007-08-06 Thread mleneveut
Hi, I try to validate a double, but it generates this in my JSP : // field name: familleProduit.chargeTravail // validator name: double if (form.elements['familleProduit.chargeTravail']) { field = form.elements['familleProduit.chargeTravail']; var

Re: [S2] Problem of validation with a select in my form

2007-08-05 Thread MLENEVEUT
The Change() method is rather doing nothing, just modifying a flag : function Change(){ document.forms[0].change.value = '1'; } My validattion xml is simple, it is just a requiredstring on the select item : true

[S2] Problem of validation with a select in my form

2007-08-03 Thread MLENEVEUT
Hi, I have a select list in my form, and when I submit the form, the javascript client validation passes, but the server validation failed. It comes back to my JSP with the "required field" error message. The weird thing is that in my action the field is well filled (I put a breakpoint in an e

[S2] Submitting a Double => pb of locale

2007-08-03 Thread MLENEVEUT
Hi, When I submit a numeric in a form, the validation accepts only dotted numbers (12,34) (I'm with a French locale). If a set 12.34, the validation failed and I have the message : "Invalid field value for field "xx"" But when a submit 12,34 and another field has an error, I come back to my JS

RE [S2] Bug v2.1.0 for double and int validation

2007-08-02 Thread MLENEVEUT
Same with int validation. generates : // field name: familleProduit.chargeTravail // validator name: int if (form.elements['familleProduit.chargeTravail']) { field = form.elements['familleProduit.chargeTravail'];

[S2] Bug v2.1.0 double validation

2007-08-02 Thread MLENEVEUT
Hi, I try to validate a double, but it generates this in my JSP : // field name: familleProduit.chargeTravail // validator name: double if (form.elements['familleProduit.chargeTravail']) { field = form.elements['familleProduit.chargeTravail']; var e

[S2] No more Tabbedpanel in v2.1.0 ?

2007-08-02 Thread MLENEVEUT
Hi, There is a Tabbedpanel in the UI Tag's doc (http://struts.apache.org/2.x/docs/tabbedpanel.html) but this seems to have disappeard in v2.1.0. Is there a new "packaged" way of handeling tabs in JSP ? Thanks.

RE How to display the ' character from a .properties file

2007-07-12 Thread MLENEVEUT
I had the same problem, and I put ’ instead of ' in my .properties. Ragards, Michaël TonyD <[EMAIL PROTECTED]> 12/07/2007 14:29 Veuillez répondre à "Struts Users Mailing List" A user@struts.apache.org cc Objet How to display the ' character from a .properties file If in my .prope

Re: [S2 v2.1.0] DateTimePicker : Dojo javascript error

2007-05-25 Thread MLENEVEUT
I have some kind of errors in the showcase app I just cleaned/recompiled : in IE 6 : DEBUG: DEPRECATED: dojo.event replaced by dojo.event.* -- will be removed in version: 0.5 DEBUG: DEPRECATED: dojo.io replaced by dojo.io.* -- will be removed in version: 0.5 DEBUG: failed loading /struts2-showc

Re: [S2 v2.1.0] DateTimePicker : Dojo javascript error

2007-05-24 Thread MLENEVEUT
Hi, I updated the source code, done a "mvn clean" and recompile ("mvn")/redeploy the jars, and I have the same errors : XP/IE 6 : DEBUG: DEPRECATED: dojo.event replaced by dojo.event.* -- will be removed in version: 0.5 DEBUG: DEPRECATED: dojo.io replaced by dojo.io.* -- will be removed in vers

Re: [S2 v2.1.0] DateTimePicker : Dojo javascript error

2007-05-23 Thread MLENEVEUT
I get all the SVN workspace this morning, I didn't have it before... I resolved the javascript bug saying "unterminated string" by modifing the head.ftl : I set the "," before each parameter, elsewhere whe have a "," for the last parameter. // Dojo configuration djConfig = { isD

Re: [S2 v2.1.0] DateTimePicker : Dojo javascript error

2007-05-23 Thread MLENEVEUT
In Firefox I have this : DEBUG: DEPRECATED: dojo.event replaced by dojo.event.* -- will be removed in version: 0.5 DEBUG: DEPRECATED: dojo.io replaced by dojo.io.* -- will be removed in version: 0.5 But nothing in IE. Just to say, the datepicker is working fine (it opens, I can choose a date,

Re: [S2 v2.1.0] DateTimePicker : Dojo javascript error

2007-05-23 Thread MLENEVEUT
> Maybe with this : instead of theme is not in the DTD of sx:head > Check to see if you have scriptaculos.js included as well as you dojo > scripts...I was getting a problem with firefox in relation to this. > Andrew Where do I have to have this scriptaculos.js ? Declared in my JSP ? I don't se

[S2 v2.1.0] DateTimePicker : Dojo javascript error

2007-05-23 Thread MLENEVEUT
Hi all, I try to insert a datetimepicker tag in my JSP, and I have the following javascript error : symbol 'struts.widget' is not defined after loading '__package__.js' here is my JSP : <%@ taglib uri="/struts-dojo-tags" prefix="sx"%>

RE Displaytag

2007-05-16 Thread MLENEVEUT
Hi, With this declaration, your server has to have acces to the Internet, to download the tld and so one. If you don't have this acces, try to download the tld file, add it in your WEB-INF/tld folder, and add the mapping in your web.xml. Regards, Michaël Balazs Michnay <[EMAIL PROTECTED]>

[s2] break up a large struts.xml file into smaller pieces : extends problem

2007-05-16 Thread MLENEVEUT
Hi all, I try to separate the modules of my app in differents xml files, but the extends seems to have problems. Struts.xml :

Re: [S2] Creating my own tag/theme/template

2007-05-10 Thread MLENEVEUT
Kikoolol. Thanks for your help, but if you had read my question, you will have understood that we don't care what will be in my tag. In do know that displayTag is not Struts... By the way, I found my mistake. Tags does'nt more exist, it is themes and templates. So here is my JSP :

[S2] Creating my own tag

2007-05-10 Thread MLENEVEUT
Hi all, I don't find any documentation on that, so I post here. I would like to create my own tag (in Struts 1 I extend org.apache.struts.taglib.html.BaseFieldTag for example) to display a table. In fact I would like to put some HTML around displayTag. How could I do ? Where are the new "baseF

Re: [s2] Extending struts.xml

2007-04-26 Thread MLENEVEUT
Hi, I have some errors too, in 2.1.0 (build 25/04) version. I had to add the tiles type () in the default-struts.xml, because it was not inherite from my struts.xml The bad configuration : struts.xml :

[S2][interceptors]Inserted my own interceptor => no more params value

2007-04-22 Thread MLENEVEUT
Hi all, I try to insert my "AuthentificatedInterceptor" in the stack, but now nothing works. First, I had a login page, with login/password fields, and the LoginAction getted well the parameters' value. Now, with my new Interceptor, the LoginAction gets empty values from my login and passwor

Re: RE [S2] How to have validation message using localization ?

2007-04-18 Thread MLENEVEUT
bel" of the input, to get the localized message printed at the user, not the fieldName... Can't we do that ? Regards, Michaël Just to make sure, did you tried %{getText('login.login')} ? because fieldName you give you the fieldName, that is loginInput.

RE [S2] How to have validation message using localization ?

2007-04-18 Thread MLENEVEUT
Anyone ? :( Michaël Hi all, With Struts 2.0.6, I try to have validation message with localization. For example, I have a "login" form, with a "loginInput" input text : I have a validation on it : And the "errors.required" is in my package.prop

Re: [s2]Would like each action to go throught my parent class

2007-04-18 Thread MLENEVEUT
I was talking about a "dynamic" mecanism. In Struts 1, I never called super.dispathMethod() : the CRMAction.dispatchMethod() was first called by Struts, then my "return super.dispatchMethod()" was returning the ActionForward returned by my called Action. public class CRMAction extends DispatchA

[s2]Would like each action to go throught my parent class

2007-04-18 Thread MLENEVEUT
Hi all, I would like to do as in Struts 1 with DispathAction : create a parent Action, which each other action extends, and each request/action passes by this parent action, and I could so add there the generic validations (user logged, etc...) How could I do ? I tried this : My parent Actio

[s2]How to customize the errors prefix, suffix, ... ?

2007-04-18 Thread MLENEVEUT
Hi all, I tried to customize the errors.prefix, suffix, header and footer, but they are not taken into account. How to do in Struts 2 ? I just put this in my package.properties : errors.footer= errors.header= errors.prefix= errors.suffix= Thanks, Regards, Michaël.

[S2] How to have validation message using localization ?

2007-04-17 Thread MLENEVEUT
Hi all, With Struts 2.0.6, I try to have validation message with localization. For example, I have a "login" form, with a "loginInput" input text : I have a validation on it : And the "errors.required" is in my package.properties : errors.required=