Re: Bug: getModel called twice - Status?

2007-12-06 Thread Gary Affonso
Wes Wannemacher wrote: In the past, the solution was to do the "work" using the prepareable interface then just returning the reference to your model. I could be remembering incorrectly, but I would avoid doing any work in a getter. Any reason you'd avoid it beyond the double-call bug? I've ge

Automatic form submission using javascript in struts2

2007-12-06 Thread jignesh(india)
Hi, I want to submit my http://24.practice.jad/www_new/merchantRespo.php"; id="frmid"> Each time page loaded it calls the script but giving javascript error message- Error:- doc

Validation "Mask": unicode characters

2007-12-06 Thread Pierre Thibaudeau
I am using Struts 1 (more specifically 1.3.8). I have a form for which I use the Struts Validator. One of the textual fields should be able to accept any alphabetic character, as well as spaces and apostrophes. By "alphabetic characters", I don't merely mean [a-zA-Z], but I am also interested in:

Re: Bug: getModel called twice - Status?

2007-12-06 Thread Wes Wannemacher
In the past, the solution was to do the "work" using the prepareable interface then just returning the reference to your model. I could be remembering incorrectly, but I would avoid doing any work in a getter. -Wes On 12/6/07, Gary Affonso <[EMAIL PROTECTED]> wrote: > Dave Newton wrote: > > That

Re: struts 1.2.9 and cancel button

2007-12-06 Thread Paul Benedict
Unless you actually have processing to do, there's no reason to forward to /landingPage.do. You should be forwarding straight to your JSP or Tile instead. The problem here is because you are chaining actions within one request. I don't know if it is a bug for Struts not to reset the cancel token a

struts 2.0.9 error /template/xhtml/tree.ftl not found.

2007-12-06 Thread akash agrawal
Hi, I am seeing an error while using tree tag and using struts 2.0.9. java.io.FileNotFoundException: Template /template/xhtml/tree.ftl not found. How do I fix this problem? Thanks, -Akash - Be a better friend, newshound, and know-it-all with Yahoo! Mobil

Re: Bug: getModel called twice - Status?

2007-12-06 Thread Gary Affonso
Dave Newton wrote: That depends on what happens in your getModel() call... if it doesn't matter that it's called twice then there aren't any issues. Let me add that the code for the ModelDrivenInterceptor is near-trivial. It would be easy to copy-and-paste it into a custom interceptor, fix t

Re: Bug: getModel called twice - Status?

2007-12-06 Thread Gary Affonso
Dave Newton wrote: That depends on what happens in your getModel() call... if it doesn't matter that it's called twice then there aren't any issues. One of my getModel() methods is sensitive to multiple calls so my solution was to code around the bug: private boolean isFirstGetModelCall = tr

Re: Modal Dialog in Struts2

2007-12-06 Thread Ted Husted
The Struts tags aren't designed to provide a modal dialog. Though, any modal dialog from any JavaScript library should work just fine. Simply indicate the Struts action as the form's action. -- HTH, Ted * On Dec 6, 2007 4:03 AM, quinquin2209 <[EMAIL PROTECTED]> wro

Re: Bug: getModel called twice - Status?

2007-12-06 Thread Dave Newton
That depends on what happens in your getModel() call... if it doesn't matter that it's called twice then there aren't any issues. d. --- Vinny <[EMAIL PROTECTED]> wrote: > So should we not being using ModelDriven until struts 2.1.x is released? > > On Dec 6, 2007 5:03 PM, Dave Newton <[EMAIL

Re: STRUTS Issue in IE

2007-12-06 Thread Jeromy Evans
manoharkundety wrote: I can be able to display the data in the Mozilla Firefox but I cant be able to display the same data in Internet Explorer(IE) Hi Manohar, I empathise with you but you'll need to be much more specific about what's not working to receive help.

Re: Bug: getModel called twice - Status?

2007-12-06 Thread Vinny
So should we not being using ModelDriven until struts 2.1.x is released? On Dec 6, 2007 5:03 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- Martin Gainty <[EMAIL PROTECTED]> wrote: > > any idea when the official xwork 2.1 GA will be available??? > > > From: "Wes Wannemacher" <[EMAIL PROTECTED

struts2-portlet in maven repository - war instead of jar

2007-12-06 Thread Aleksander Adamowski
Hi! I've noticed that when downloading struts2-portlet dependency, Maven looks for struts2-portlet-X.Y.Z.jar file and fails. But in the repository there is a WAR archive (struts2-portlet-X.Y.Z.war) instead. When I download the WAR archive by hand, place it in my local repository and change exten

Struts 2.0.11 not visible in Eclipse with M2Maven plugin ("Add Dependency")

2007-12-06 Thread Aleksander Adamowski
Hi! I'm using the M2Eclipse plugin (version 0.0.12.20071107-2300 org.maven.ide.eclipse). When I'm adding some struts libraries to my project (right click on project -> Maven -> Add Dependency), then search for "struts", for struts2-core (and related libraries) I can only see versions 2.0.5, 2.0.6

RE: struts 1.2.9 and cancel button

2007-12-06 Thread Garner, Shawn
Yeah, I had to step through. Alright I found the problem and if you ask me it is a bug with struts request processor. It does read in the cancellable on the action for the page I press the cancel button on, skips validation, hits the action and I see it. Now when I return my forward I'm going to a

Re: struts 1.2.9 and cancel button

2007-12-06 Thread Paul Benedict
Have you attempted to set a breakpoint in the Controller and step through the cancellable check? On Dec 6, 2007 4:17 PM, Garner, Shawn <[EMAIL PROTECTED]> wrote: > name="reportForm" > parameter="action" >type="my.comp.Action" >

RE: struts 1.2.9 and cancel button

2007-12-06 Thread Garner, Shawn
And there is only one defined in the struts config. -Original Message- From: Alberto A. Flores [mailto:[EMAIL PROTECTED] Sent: Thursday, December 06, 2007 2:46 PM To: Struts Users Mailing List Subject: Re: struts

Re: Bug: getModel called twice - Status?

2007-12-06 Thread Dave Newton
--- Martin Gainty <[EMAIL PROTECTED]> wrote: > any idea when the official xwork 2.1 GA will be available??? > From: "Wes Wannemacher" <[EMAIL PROTECTED]> >> It was patched for XWork 2.1, which will coincide with the >> Struts 2.1 release. d.

Re: Bug: getModel called twice - Status?

2007-12-06 Thread Martin Gainty
http://svn.opensymphony.com/fisheye/browse/~raw,r=1659/xwork/tags/xwork_2-1- 0/trunk is offline any idea when the official xwork 2.1 GA will be available??? M-- - Original Message - From: "Wes Wannemacher" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, December 06, 2

Re: [struts] How to solve the limitation of tag

2007-12-06 Thread Dale Newfield
DJR wrote: I think it better that the Struts2 framework add some additional attributes for tag of optiontransferselect. For instance, buttonCssStyle2 for one of the select button and buttonCssStyleAll, buttonCssStyleAll2 for the selectAll buttons. Feel free to develop patches for that, create a

Re: struts 1.2.9 and cancel button

2007-12-06 Thread mgainty
can you display the form and display the configuration for your Action class M- - Original Message - Wrom: ZAAFXISHJEXXIMQZUIVOTQNQEMSFDULHPQQWOYIYZUNN To: "Struts Users Mailing List" Sent: Thursday, December 06, 2007 2:27 PM Subject: RE: struts 1.2.9 and cancel button I wonder if it i

Re: Bug: getModel called twice - Status?

2007-12-06 Thread Gary Affonso
Wes Wannemacher wrote: It was patched for XWork 2.1, which will coincide with the Struts 2.1 release. Exactly what I wanted to know. Thanks! - Gary - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: struts 1.2.9 and cancel button

2007-12-06 Thread Alberto A. Flores
Can you confirm that your form is pointing to the right path? Also, check that you are not overriding the same path (in struts config) with a similar path are overrideable. Garner, Shawn wrote: From the stack track it looks like the Mapping.isCancellable is returning false. How can this b

RE: struts 1.2.9 and cancel button

2007-12-06 Thread Garner, Shawn
>From the stack track it looks like the Mapping.isCancellable is returning false. How can this be? It is in the struts-config.xml under the right action. Shawn -Original Message- From: Garner, Shawn Sent: Thursday, December 06, 2007 1:27 PM To: Struts Users Mailing List Subject: RE: str

Re: Bug: getModel called twice - Status?

2007-12-06 Thread Wes Wannemacher
It was patched for XWork 2.1, which will coincide with the Struts 2.1 release. -Wes On 12/6/07, Gary Affonso <[EMAIL PROTECTED]> wrote: > I got bit yesterday by the getModel double-call bug (wherein the > ModelDriven interceptor calls getModel twice). > > Some googling revealed that a patch has b

Bug: getModel called twice - Status?

2007-12-06 Thread Gary Affonso
I got bit yesterday by the getModel double-call bug (wherein the ModelDriven interceptor calls getModel twice). Some googling revealed that a patch has been submitted to the Xwork folks. Does anybody know what the status of a rollout/release containing this patch might be? I'm coding around

RE: struts 1.2.9 and cancel button

2007-12-06 Thread Garner, Shawn
Looks to me like you are using once constant and checking for a different one. Looks like a bug to me. That you meant it to be org.apache.struts.action.CANCEL instead of org.apache.struts.taglib.html.CANCEL Is -Original Message- From: Garner, Shawn Sent: Thursday, December 06, 2007 12

Re: Struts 2.0.11 + Tiles

2007-12-06 Thread Dave Newton
--- Rodrigo Pereira <[EMAIL PROTECTED]> wrote: > I am facing an issue trying to use struts 2.0.11 + tiles. > > When I insert the following information in my web.xml I get an exception: > > > org.apache.struts2.tiles.StrutsTilesListener > Any particular exception? You have the Tiles plugin? You

RE: struts 1.2.9 and cancel button

2007-12-06 Thread Garner, Shawn
I wonder if it is because we are using ValidatorPlugin or LookupDispatchAction. Seems like it isn't getting past the validations so it never gets to the action: 2007,org.apache.struts.action.InvalidCancelException org.apache.struts.action.InvalidCancelException,E3,, ,,, org.ap

Re: Struts 2.0.11 + Tiles

2007-12-06 Thread Mike Jennings
What is the exception that you are getting? Rodrigo Pereira wrote: Hi, I am facing an issue trying to use struts 2.0.11 + tiles. When I insert the following information in my web.xml I get an exception: org.apache.struts2.tiles.StrutsTilesListener Have anybody faced the same issue here befo

Struts 2.0.11 + Tiles

2007-12-06 Thread Rodrigo Pereira
Hi, I am facing an issue trying to use struts 2.0.11 + tiles. When I insert the following information in my web.xml I get an exception: org.apache.struts2.tiles.StrutsTilesListener Have anybody faced the same issue here before? Thanks, Rodrigo Pereira ---

RE: struts 1.2.9 and cancel button

2007-12-06 Thread Garner, Shawn
I verified it was the right action, the one in the JSP form matches the action config in the struts config. Shawn -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Benedict Sent: Thursday, December 06, 2007 9:59 AM To: Struts Users Mailing List Subject

RE: struts 1.2.9 and cancel button

2007-12-06 Thread Garner, Shawn
Which there is no bCancel variable in the source Shawn -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Benedict Sent: Thursday, December 06, 2007 12:24 PM To: Struts Users Mailing List Subject: Re: struts 1.2.9 and cancel button And what does the

Re: struts 1.2.9 and cancel button

2007-12-06 Thread Paul Benedict
And what does the rendered HTML look like for the cancel button?

RE: struts 1.2.9 and cancel button

2007-12-06 Thread Garner, Shawn
Wer'e doing something like this: -Original Message- From: Alberto A. Flores [mailto:[EMAIL PROTECTED] Sent: Thursday, December 06, 2007 10:19 AM To: Struts Users Mailing List Subject: Re: struts 1.2.9 and cancel button Can you post the snippet of the way you are using The "

Re: struts 1.2.9 and cancel button

2007-12-06 Thread Alberto A. Flores
Can you post the snippet of the way you are using The "html:cancel" (Struts 1.x) tag still submits with interesting behavior: - If the "property" attribute is "set", then the isCancelled() method will not pick it up. Validation will still occurs (submission is attempted). - If the "property" a

Re: struts 1.2.9 and cancel button

2007-12-06 Thread Paul Benedict
Did you add to the correct action mapping? On Dec 6, 2007 9:42 AM, Garner, Shawn <[EMAIL PROTECTED]> wrote: > We trying to use the htm:cancel button but it is not working. > > I've followed the instructions here > > http://wiki.apache.org/struts/StrutsUpgradeNotes128to129#head-e417741603 > dac43

Re: STRUTS Issue in IE

2007-12-06 Thread Martin Gainty
which tag? how are you implementing ? which version IE are you using? M-- - Original Message - From: "manoharkundety" <[EMAIL PROTECTED]> To: Sent: Thursday, December 06, 2007 8:47 AM Subject: STRUTS Issue in IE > > Hi Guys , > I am Manohar , I am working on a Web based application in

struts 1.2.9 and cancel button

2007-12-06 Thread Garner, Shawn
We trying to use the htm:cancel button but it is not working. I've followed the instructions here http://wiki.apache.org/struts/StrutsUpgradeNotes128to129#head-e417741603 dac43bb4fbde589271c568309643e4 but we are still getting a org.apache.struts.action.InvalidCancelException We're using

RE: STRUTS Issue in IE

2007-12-06 Thread David Harland
Haven't you got the mind reading plugin for struts 2. lol -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: 06 December 2007 14:28 To: Struts Users Mailing List Subject: Re: STRUTS Issue in IE --- manoharkundety <[EMAIL PROTECTED]> wrote: > I am working on a Web based

Re: I18N problem

2007-12-06 Thread Angel Gruev
As in most cases, the problem was so stupid ... and I lost about a day in testing :) in struts.properties I have added struts.custom.i18n.resources=ApplicationResources.properties but should be: struts.custom.i18n.resources=ApplicationResources (without the properties extention) Arg!

Re: STRUTS Issue in IE

2007-12-06 Thread Dave Newton
--- manoharkundety <[EMAIL PROTECTED]> wrote: > I am working on a Web based application in that I am displaying some data > using the tag from STRUTS2. I can be able to display the data in the Mozilla > Firefox but I cant be able to display the same data in Internet Explorer(IE). > So please hel

Re: combining Struts1 and Struts2

2007-12-06 Thread Ted Husted
On Dec 6, 2007 7:51 AM, Paul Benedict <[EMAIL PROTECTED]> wrote: > Unlike Struts 1, Struts 2 wants your struts.xml in your > src/main/resources -- top of the classpath, not in WEB-INF. To load both configurations from WEB-INF/classes, change the config parameter to the S1 servlet: action o

Re: I18N problem

2007-12-06 Thread Angel Gruev
I thing that ActionSupport.getText(..) does not check the global property file for some reason. It only check the class hierarchy of the action. Using does not help either. Any other ideas ? I'm about to write my own method in the base action class that does the i18n and check the global resource,

Re: Struts input sends < > encoded as < and > to form bean. Help!

2007-12-06 Thread Antonio Petrelli
2007/12/6, zargarf <[EMAIL PROTECTED]>: > > I was wondering, if there's anyway to automatically convert these back to > the original < > characters before they are set to the form attributes. Probably you are interested in Commons Lang StringEscapeUtils.unescapeXml: http://commons.apache.org/lan

STRUTS Issue in IE

2007-12-06 Thread manoharkundety
Hi Guys , I am Manohar , I am working on a Web based application in that I am displaying some data using the tag from STRUTS2. I can be able to display the data in the Mozilla Firefox but I cant be able to display the same data in Internet Explorer(IE) .So please help in this as it plays a

Problem showing ExpressionValidator message

2007-12-06 Thread romanws
I have the following code for validation: @Validations( expressions = { @ExpressionValidator ( key = "error.general",

Some problem with the showcase app

2007-12-06 Thread Vencent Chen
Hi, I got problem when I test the showcase app.It is in the "Use a button as submit (custom text)" of "ajax/remotebutton/" example.When I input some Chinese,and send it.I got part of my input back.Means I lost some characters(English work correctly).See the attachement.When I debug ,in the Aj

Struts input sends < > encoded as < and > to form bean. Help!

2007-12-06 Thread zargarf
Hi Got a problem. We're using the struts portlet framework for websphere portal and are encountering an issue whereby if a user inputs the following characters, < > or £, then the form bean receives the values as < > etc. As this problem has only been noticed a year down the line, the informati

Re: combining Struts1 and Struts2

2007-12-06 Thread Paul Benedict
Unlike Struts 1, Struts 2 wants your struts.xml in your src/main/resources -- top of the classpath, not in WEB-INF. KWilmink wrote: Hello, I got a project that i want to migrate from Struts1 to Struts2. The project is quite a complex project though. I started adding the jar files: * struts2-

Re: dynamic form action

2007-12-06 Thread Paul Benedict
Kate, You can embed forms but they must not be dynamic. I do this myself with good success. Paul Kate Fox wrote: I have a lot of pages that have the same form fields included on them. I would like this to be very simple and for it to be simple to add more pages like this. I was thinking t

Re: Configuring Struts to use UTF-8 character encoding

2007-12-06 Thread Mark McLaren
To muddy the waters a little further! If for some reason (e.g. you are writing a JSR168 portlet) you cannot use a servlet filters to force UTF-8 encoding, you can alternatively use a ServletRequestListener. HTH Mark Adam Gordon wrote: So, for posterity, we finally got this working. After se

Re: S2.1.x declarative validation and primitive types: is this a bug?

2007-12-06 Thread Giovanni Azua
Hi Jeromy, Many thanks for your thoughtful feedback on this issue. Jeromy Evans wrote: Personally, I never expose primitives as properties of an action because null values are always legal over this interface. In the special case of Boolean which can easily accidentally cause an NPE, I alway

Re: DisplayTag - show image by condition

2007-12-06 Thread quinquin2209
Thanks. This work fine for me. Richard Sayre wrote: > > You have to make your own decorator: > > I assume your table is populated with a 'Member' list or something > similar. In your table decorator create a method that returns the > image based on the condition: > > > public class MemberL

Result Annotations and parameters

2007-12-06 Thread Johannes Geppert
Hello, i try to use the Result Annotations in my new Project, this works fine for me. But when I try to use parameters I become an Exception. Config: @Namespace(value="/") @Results( { @Result(value = "myresult.action", type = ServletActionRedirectResult.class, params={"ID","${ID}"}), @R

combining Struts1 and Struts2

2007-12-06 Thread KWilmink
Hello, I got a project that i want to migrate from Struts1 to Struts2. The project is quite a complex project though. I started adding the jar files: * struts2-core-2.0.11.jar * ognl-2.6.11.jar * commons-logging.jar * freemarker-2.3.8.jar Then i changed my web.xml file, i mapped actions wich e

Modal Dialog in Struts2

2007-12-06 Thread quinquin2209
Hi All, Is there any way to make modal dialog as that provided by dojo? Is that we don't need to put the dojo package to the /js folder as it is include in struts2? Can you please provide some example to achieve it? Thanks in advance. Queenie -- View this message in context: http://www.nabble

example code [s2]

2007-12-06 Thread slideharmony
Could anyone give me a working example code of setting request parameters with the tag param?(Jsp and action please!) thanks in advance riccardo -- View this message in context: http://www.nabble.com/example-code-%3Ctag-param%3E--s2--tf4954827.html#a14188704 Sent from the Struts - User mailing l

Re: How to solve the limitation of tag

2007-12-06 Thread DJR
I think it better that the Struts2 framework add some additional attributes for tag of optiontransferselect. For instance, buttonCssStyle2 for one of the select button and buttonCssStyleAll, buttonCssStyleAll2 for the selectAll buttons. DJR wrote: > > As is know to all, tag has a "buttonCssStyl