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
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
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
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
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
Or you can use Decorators :
public class MyDecorator extends TableDecorator {
public String getAttrNameNotInBean() {
MyBean bean = (MyBean) getCurrentRowObject();
return "";
}
}
Michaël
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.
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=""/>
>
>
>
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
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
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
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
Je serai absent(e) du 24/08/2007 au 12/09/2007.
>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
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
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
Delete
function delete(id) {
if(confirm('sure ?')) {
document.forms[0].bucket.value = id;
document.forms[0].action =
deletebucketaction.action;
document.forms[0].submit();
} else {
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
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
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
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"
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
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 ?
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
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
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
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
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';
> }
&
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,
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
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
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
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
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
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
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
Same with int validation.
generates :
// field name: familleProduit.chargeTravail
// validator name: int
if (form.elements['familleProduit.chargeTravail']) {
field = form.elements['familleProduit.chargeTravail'];
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
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.
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
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
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
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
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,
> 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
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"%>
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]>
Hi all,
I try to separate the modules of my app in differents xml files, but the
extends seems to have problems.
Struts.xml :
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 :
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
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 :
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
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.
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
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
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
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.
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=
58 matches
Mail list logo