dynaactionform is getting null using struts tiles

2007-12-04 Thread NagsNags
Hi, your help in this regard is very much appreciated. my strutus-config entry is action path=/homePortalSelection type=com.eurobenefits.mybenefits.view.actions.HomePortalSelectionAction name=homePortalSelectionForm scope=request

[S2] problem with datetimepicker and locale

2007-12-04 Thread Desbois Arnaud
I have a web application localized with several languages (en, fr, es). My problem is: the DataTimePicker display the calendar with the locale of the system (a French Windows, the month is always written in French) under IE7 (which an English locale is defined). And under FireFox (with the Quick

[S2] s:property escape attribute

2007-12-04 Thread Laszlo Borsos
- The s:property tag escapes html markup characters, which is very nice. - On the other hand it creates html character entities of non-ascii characters, which is ugly and unnecessary, as I already have UTF-8 as character encoding of the page. escape=true does both, escape=false does neither. Is

DefaultObjectTypeDeterminer never invoked. Why??

2007-12-04 Thread Daniel Pfeifer
I've got a problem which I suspect depends on some issue with configuration. I have an Action-class: public class ClassifyFieldsAction extends ActionSupport { private String templateGroup; @KeyProperty(value = name) // have tried to have these annotations on the

about linking two autocompleters using topics [never surrender :)]

2007-12-04 Thread Giovanni Azua
hi, I have been recently asking how to achieve that changing the value of autocompleter A, triggers an Ajax reload of autocompleter B and make the only item returned as selected on B i.e. displayed in its textInputNode. I followed directions from:

Re: Problem developing a tag using Struts 2 Arch for Tags

2007-12-04 Thread victor sosa
Sorry about the while is just a code for test, because I don't know exactly how S2 work for the iterator tag. I am aware about the code ;) Yes, I did see the S2 iterator tag, I see that there isn't any while or for into the code, I suppose that the code repeat using the return of the method.

Datagrid in Struts2

2007-12-04 Thread quinquin2209
Hi All, I am using Struts 2 and I wanna develop a datagrid as that provided in Struts Layout. I have couple of questions: 1. Is that I can't use Struts Layout in Struts 2? If it can be used? How to set up? 2. If Struts Layout cannot be used in Struts 2, is there any similar plugin that provide

Re: about linking two autocompleters using topics [never surrender :)]

2007-12-04 Thread Jeromy Evans
Giovanni Azua wrote: hi, I have been recently asking how to achieve that changing the value of autocompleter A, triggers an Ajax reload of autocompleter B and make the only item returned as selected on B i.e. displayed in its textInputNode. I followed directions from:

Resolved! about linking two autocompleters using topics

2007-12-04 Thread Giovanni Azua
Hi Jeromy, Many thanks for your response! Jeromy Evans wrote: I don't use dojo's autocompleter myself, but after a quick look at the javascript source for the widget (ComboBox) I can see there's a public method setSelectedValue(value) which may help, although it's not clear to me which

Scrollbar problem with tabbed panel in Struts2

2007-12-04 Thread quinquin2209
Hi All, I have used the tabbed panel provided by Struts2. When the content within the current pane exceed the panel size, scrollbar is shown as expected. However, if I click on the tab-header of the currently opened tab, the scrollbar disappear. It appears again if i click that tab-header again.

[s2] Different Annotated Validations for different action methods

2007-12-04 Thread Thilo Ettelt
Hey all, I'm trying to figure out how to validate my action methods differently. For example I've got a modeldriven User bean with the following two annotated methods @Validations(...) - processLogin @Validations(...) - processSignup Now I want the first annotation to only check for the

Re: [s2] Different Annotated Validations for different action methods

2007-12-04 Thread Martin Gilday
I posted about this a while back. Nobody seemed to have an annotation based solution, only going back to XML. - Original message - From: Thilo Ettelt [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Date: Tue, 4 Dec 2007 13:01:15 +0100 Subject: [s2] Different

Re: Problem developing a tag using Struts 2 Arch for Tags

2007-12-04 Thread Dave Newton
--- victor sosa [EMAIL PROTECTED] wrote: Yes, I did see the S2 iterator tag, I see that there isn't any while or for into the code, I suppose that the code repeat using the return of the method. but How to uses it? I try twice but the code never iterate using the return value of the

Re: my execute method of action class is getting executed twice

2007-12-04 Thread giglian
Hi, I have the same problem, you can look at my message of November 30. However see below the bug I posted: my web app have an action to delete one row in a MS Access table (access though sun.jdbc.odbc.JdbcOdbcDriver). The method return the number of rows deleted. The first time it's executed,

Re: my execute method of action class is getting executed twice

2007-12-04 Thread Ing. Andrea Vettori
I think you should check if it's the browser that submits the form two times. I thought was a bug of my application, but now i'm thinking it's a bug of struts 2 framework. I hope will be fix very soon. Regards Andrea xniit2003 wrote: Hi, I am new in struts2. In my action class I

Re: my execute method of action class is getting executed twice

2007-12-04 Thread Dave Newton
--- giglian [EMAIL PROTECTED] wrote: The method return the number of rows deleted. What method does? A method being called by execute()? I thought was a bug of my application, but now i'm thinking it's a bug of struts 2 framework. I hope will be fix very soon. That's certainly possible,

R: my execute method of action class is getting executed twice

2007-12-04 Thread Gigliotti, Andrea
Below my configuration: O.S. Windows XP Pro (ITA) Tomcat 5.0.27 JDKL 1.5.0.12 IE 6.0 Action's code: - - - - - - - - - - - - - package it.kappapackaging.com.action.visits; import java.sql.Connection; import java.sql.DriverManager; import com.opensymphony.xwork2.ActionSupport; import

Re: Scrollbar problem with tabbed panel in Struts2

2007-12-04 Thread Martin Gainty
when current pane exceeds panel scrollbar is shown is correct please display code M-- - Original Message - From: quinquin2209 [EMAIL PROTECTED] To: user@struts.apache.org Sent: Tuesday, December 04, 2007 6:29 AM Subject: Scrollbar problem with tabbed panel in Struts2 Hi All, I have

Re: Scrollbar problem with tabbed panel in Struts2

2007-12-04 Thread Dave Newton
--- Martin Gainty [EMAIL PROTECTED] wrote: when current pane exceeds panel scrollbar is shown is correct I believe the issue is that the scrollbar appears and disappears when the tab is clicked. From: quinquin2209 However, if I click on the tab-header of the currently opened tab, the

R: R: my execute method of action class is getting executed twice

2007-12-04 Thread Gigliotti, Andrea
I tried to remove the javascript confirm message, and now it work fine! I still have the localization problem with the package_it.properties file. This is a bug for sure! Andrea -Messaggio originale- Da: Dave Newton [mailto:[EMAIL PROTECTED] Inviato: martedì 4 dicembre 2007 15.38 A:

Action call not calling action method

2007-12-04 Thread Henry Park
Hello everyone, I am having a really strange issue. In my application I have a menu bar and a main content area. The menu bar and main content area are populated separately using an Ajax call to their respective action methods. They are automatically called/populated when I log into my

Re: R: R: my execute method of action class is getting executed twice

2007-12-04 Thread Dave Newton
What JavaScript confirm message? *Please* post the complete code. And stop copying me; replying to the list is fine. d. --- Gigliotti, Andrea [EMAIL PROTECTED] wrote: I tried to remove the javascript confirm message, and now it work fine! I still have the localization problem with the

RE: DefaultObjectTypeDeterminer never invoked. Why??

2007-12-04 Thread Daniel Pfeifer
Maybe I should add that I also tried to do it the old-fashion way by the Action-conversion.properties-file and of course my Bean-class has a default no-arg constructor. -Original Message- From: Daniel Pfeifer [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 04, 2007 11:40 AM To:

localization issue for Italian language (package_it.properties)

2007-12-04 Thread Gigliotti, Andrea
If you have struts 2.0.11 or 2.0.9 you can deploy the struts2-blank-2.0.11.war file located into the apps folder (ex. C:\struts-2.0.11\apps). Before deploying the web app you have to rename the file package_es.properties in package_it.properties. In this way you will see the bug, that is you'll

Struts2: Nested Iterators

2007-12-04 Thread Marc Eckart
Hi, I have a common problem :-) I have a collection of Objects and these Objects also contains Collections. How can I iterate through the child collection? Something like this: s:iterator value=accountSearchResults.accounts status=rowstatus var=account s:iterator

Re: Struts2: Nested Iterators

2007-12-04 Thread Dave Newton
Sure. Did you try it and had an issue, or did you think it would be quicker to wait for a response on the list? d. --- Marc Eckart [EMAIL PROTECTED] wrote: Hi, I have a common problem :-) I have a collection of Objects and these Objects also contains Collections. How can I iterate

Re: [struts] [S2] SiteMesh: let the user choose to see a page undecorated

2007-12-04 Thread Dale Newfield
setecastronomy wrote: I want to give the user the possibility, for some result pages, to choose to see them undecorated. Easiest solution is to select a different decorator based on a parameter com.opensymphony.module.sitemesh.mapper.ParameterDecoratorMapper -Dale

Re: Struts2: Nested Iterators

2007-12-04 Thread Marc Eckart
I tried this with the var in the iterator tag and tomcat e.g. jasper complained about that var is not defined in the tag. Is it deprecated or new or something like this. Maybe I have to update my struts jar? Marc 2007/12/4, Dave Newton [EMAIL PROTECTED]: Sure. Did you try it and had an

Re: Struts2: Nested Iterators

2007-12-04 Thread Dave Newton
S2.0.mumble uses the id attribute to name the current iteration object. S2.1 uses var. Depends on what version you're using, I guess. d. --- Marc Eckart [EMAIL PROTECTED] wrote: I tried this with the var in the iterator tag and tomcat e.g. jasper complained about that var is not defined in

Re: Struts2: Nested Iterators

2007-12-04 Thread Marc Eckart
Ah perfect. I looked at the tag reference on the struts2 page and there was the var attribute. I'm actually using 2.0.8. So this can not work :-) Thank you very much :-) Marc 2007/12/4, Dave Newton [EMAIL PROTECTED]: S2.0.mumble uses the id attribute to name the current iteration object.

Struts2: tabbedPanel with no cssStyle bug?

2007-12-04 Thread elentz
Has anyone else had the experience that using a tabbedPanel with no cssStyle specifying width and height doesn't work? For example, this works: s:tabbedPanel id=scrntabpane theme=simple cssStyle=width: 450px; height: 576px; doLayout=true This doesn't work: s:tabbedPanel id=scrntabpane

Re: Struts2: tabbedPanel with no cssStyle bug?

2007-12-04 Thread elentz
Oh yeah, I'm using 2.0.11 -- View this message in context: http://www.nabble.com/Struts2%3A-tabbedPanel-with-no-cssStyle-bug--tf4944709.html#a14156081 Sent from the Struts - User mailing list archive at Nabble.com. - To

Question s:if and java variables in jsp scriplets

2007-12-04 Thread Marc Eckart
Hi, I have another Problem connected to the iterator problem :-) I have some java variables in my jsp side which do some counting for navigation purposes. I need these to decide if I want to render a tableheader (in case of the first element of the collection) or not. We can't put all entries

Re: Question s:if and java variables in jsp scriplets

2007-12-04 Thread Dave Newton
Just use the status variable; that's more or less one of the reasons it's there :) d. --- Marc Eckart [EMAIL PROTECTED] wrote: Hi, I have another Problem connected to the iterator problem :-) I have some java variables in my jsp side which do some counting for navigation purposes. I

Re: R: R: my execute method of action class is getting executed twice

2007-12-04 Thread Dave Newton
--- Gigliotti, Andrea [EMAIL PROTECTED] wrote: I tried to remove the javascript confirm message, and now it work fine! Btw, I'm in the camp of the other comment that said you're probably submitting it twice (without knowing, since you didn't post the complete code). If you're doing a submit from

Re: Struts2: tabbedPanel with no cssStyle bug?

2007-12-04 Thread Jeromy Evans
elentz wrote: Has anyone else had the experience that using a tabbedPanel with no cssStyle specifying width and height doesn't work? For example, this works: s:tabbedPanel id=scrntabpane theme=simple cssStyle=width: 450px; height: 576px; doLayout=true This doesn't work: s:tabbedPanel

Re: Action call not calling action method

2007-12-04 Thread Martin Gainty
Henry difficult to say without seeing the interceptor stack from struts-default.xml Please post to group M-- LA County ..465 square miles of constantly interfacing humanity - Dragnet quote from Dan Ackroyd - Original Message - From: Henry Park [EMAIL PROTECTED] To: Struts Users Mailing

Re: Struts2: tabbedPanel with no cssStyle bug?

2007-12-04 Thread elentz
If doLayout is true the height css attribute is mandatory. It applis cssStyle directly to every tab. If doLayout is false, the height is determined by the content and varies tab-to-tab. I'm not sure what you were hoping for by setting doLayout=true but not setting cssStyle. I presume

[S2] File upload in a tabbedpanel?

2007-12-04 Thread Jason Wyatt
I'm trying to implement a file upload tab in an ajax-themed tabbed panel, using the s:file tag. The file uploading works OK if I view the action directly instead of inside a tabbedpanel. However, if I view the file upload page inside an ajax tabbedpanel and try submitting, with or without a file

Re: Scrollbar problem with tabbed panel in Struts2

2007-12-04 Thread quinquin2209
Thanks for reply Yes. The content of the tab remains, just the scrollbar appears/disappears. I have tried an experiment in the tabbed panel example in struts2-showcase as follow: 1. Open file example2.jsp located at struts2-showcase-2.0.11\ajax\tabbedpanel 2. Edit the tab content of tab with

How to solve the limitation of s:optiontransferselect tag

2007-12-04 Thread DJR
As is know to all, s:optiontransferselect tag has a buttonCssStyle attribute, which will make all buttons look in a unified style. But how can we make each button in a different style just like the image showed below: http://www.nabble.com/file/p14163637/optiontransvertical.png -- View this

How my own Interceptor get the parameters from JSP

2007-12-04 Thread Ray
I tried to use getInvocationContext.getparameters this method return a Map. when I use Map's get method by keyusername I got a result like @1c98b2 what's going on? Thx -- Ray Chen(陈磊) Email:[EMAIL PROTECTED] Blog: http://clraychen.blogcn.com

Struts2 examples for request parameters

2007-12-04 Thread pavan kumargss
Hai i am working struts2 i used the ServletRequestAware,ServletResponseAware, SessionAware Interfaces .. But i don' t understand how to use the ParameterAwate interface i tryed it like using setParameters() and getParameters().. i get the null values only..

Re: How my own Interceptor get the parameters from JSP

2007-12-04 Thread Nuwan Chandrasoma
Hi, Its returning a string array. :) Thanks, Nuwan Ray wrote: I tried to use getInvocationContext.getparameters this method return a Map. when I use Map's get method by keyusername I got a result like @1c98b2 what's going on? Thx

Re: Struts2 examples for request parameters

2007-12-04 Thread Ray
pavan kumargss 写道: Hai i am working struts2 i used the ServletRequestAware,ServletResponseAware, SessionAware Interfaces .. But i don' t understand how to use the ParameterAwate interface i tryed it like using setParameters() and getParameters().. i get the null values only.. Maybe I

Re: How my own Interceptor get the parameters from JSP

2007-12-04 Thread Ray
Nuwan Chandrasoma Wrote: Hi, Its returning a string array. :) Thanks, Nuwan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] String array? And How can I get the username

DisplayTag - How to do sort?

2007-12-04 Thread quinquin2209
I have just downloaded the DisplayTag and try with the sort function. I do the following: display:table name=messages sort=list pagesize=8 display:column property=docId title=ID group=1 sortable=true headerClass=sortable / display:column property=sender title=Sender group=2 sortable=true

Re: How my own Interceptor get the parameters from JSP

2007-12-04 Thread Nuwan Chandrasoma
Hi, Some code like this. public String execute() throws Exception { String[] name = (String[])parameterMap.get(username); System.out.println(usernamein the page is:+name[0]); String[] datenow = (String[])parameterMap.get(dateNow); System.out.println(datenow in

Re: Struts2 examples for request parameters

2007-12-04 Thread Nuwan Chandrasoma
Hi, Have a look at this blog.. http://www.vitarara.org/cms/struts_2_cookbook/creating_a_login_interceptor Thanks to Mark :) Thanks, Nuwan Ray wrote: pavan kumargss 写道: Hai i am working struts2 i used the ServletRequestAware,ServletResponseAware, SessionAware Interfaces .. But i don' t

Re: [S2] File upload in a tabbedpanel?

2007-12-04 Thread Jeromy Evans
Jason Wyatt wrote: I'm trying to implement a file upload tab in an ajax-themed tabbed panel, using the s:file tag. The file uploading works OK if I view the action directly instead of inside a tabbedpanel. However, if I view the file upload page inside an ajax tabbedpanel and try submitting,