Re: [ANN] "Starting with Struts2" Book

2007-05-25 Thread Nova Yu
I can't download the mini-book, my network is too slowly, but i want read this book. who can send a copy to my email. thanks very much! 2007/5/26, Ian Roughley <[EMAIL PROTECTED]>: doh. Thanks. The issue with starting in ww and moving to struts :-) /Ian Al Sutton wrote: > Do I get a prize f

Re: [S2] Checkbox causes error on form submission.

2007-05-25 Thread WongTseng
It's so strange. If the hidden field is generated to solve the problem of submitting checkboxs' values unchecked , the filed should look like this: By the way, where is the "AsPayor" come from? What's the strategy used by S2 to generate the names of thses hidden fileds? 2007/5/26, Dave Newton <

eclipse struts2 projects "missing java project struts2-core"

2007-05-25 Thread David Durham, Jr.
Hi, I checked out the struts2 trunk from svn and imported the struts projects via import projects. I see a list of projects: api, core, struts2-codebehind-plugin, ... I have an M2_REPO variable setup. core and api build without errors, but all of the plugin projects fail to build because they'r

Re: Let me rephrase the problem slightly.

2007-05-25 Thread Dave Newton
--- "Peter L. Berghold" <[EMAIL PROTECTED]> wrote: > If I have an input box such that: > > > > is there a way for user input to that input box to > drive the dynamic creation (display? rendering?) of > other form elements such as: > > > ... etc. Sure... but you might want to create the HTML

Re: [newbie] "no getter method .."

2007-05-25 Thread Niniva Ray
No you need a getName() getter method in your ResultBean javabean class. Regards, Niniva probertm <[EMAIL PROTECTED]> wrote: Hi, all. Another newbie question on Struts. I am having an issue in getting my .jsp names to match with those in the ActionForm class and was after some help.

Let me rephrase the problem slightly.

2007-05-25 Thread Peter L. Berghold
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 ... let's pretend there are no nested forms involved in this. If I have an input box such that: is there a way for user input to that input box to drive the dynamic creation (display? rendering?) of other form elements such as: ... etc. If I

Re: S2 & AJAX question

2007-05-25 Thread Ray Clough
I don't think autocompleter will cut it for us, as we have to make the choices available in 2 drop-downs. I have an example, which I would be happy to post, but I don't know the how/where of that. I also have a very nifty menu using JSCookMenu populated from an xml file. This is (IMHO :~)) ) a

RE: Nested struts forms, dynamic allocation using javascript or ??

2007-05-25 Thread Jiang, Peiyun
I don't have any working code now, but I think you can do it like this: (1) add your list as an array on the form. private YourBean[] yourlist = null; public YourBean[] getYourlist() { return yourlist; } public void setYourlist(YourBean[] yourlist)

RE: Nested struts forms, dynamic allocation using javascript or ??

2007-05-25 Thread Forsberg, Mike
Something you might consider, the Date object not only contains the time, but also the date. Joda - http://joda-time.sourceforge.net/ - is a good API for time structures. Far superior to the Date class in Java, because it has: - LocalTime class that represents time only. - Period class for repres

Re: S2: Want to set autocompleter value

2007-05-25 Thread Scott Nesbitt
Say, now we are talking! This page says exactly how to do that: http://www.nabble.com/R%C3%A9f.-:-Re:-Initial-Value-of-a-ComboBox-t2641746.html I tried it and it works great. Thanks for the pointer, Musachy. Scott --- Musachy Barroso <[EMAIL PROTECTED]> wrote: > By the way the property "dat

Nested struts forms, dynamic allocation using javascript or ??

2007-05-25 Thread Peter L. Berghold
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi folks, I've taken more than a couple stabs at trying to do this and failed. Miserably enough that I'm not going to even attempt to post my efforts here.. they're really ugly. What I'm trying to create is a form that folks that are not all that com

[newbie] "no getter method .."

2007-05-25 Thread probertm
Hi, all. Another newbie question on Struts. I am having an issue in getting my .jsp names to match with those in the ActionForm class and was after some help. The error coming back from Tomcat is Exception in JSP: /search.jsp:56 53: 54: 55: 56: 57: 58: 59:

Re: [S2] Checkbox causes error on form submission.

2007-05-25 Thread Dave Newton
--- Skip Hollowell <[EMAIL PROTECTED]> wrote: > I get the first input, but the second hidden one? > That is obviously where the error is coming from, but > why/how? I do have validate turned on, so is that > how the extra field is getting generated for > checkboxes? > > OK Dave, feel free to

Re: S2 & AJAX question

2007-05-25 Thread Musachy Barroso
Can you use the autocompleter tag? You can link 2 of them easily. musachy On 5/25/07, Ray Clough <[EMAIL PROTECTED]> wrote: We've gotten it to work by having the action method write to the output stream and return null. This is by far the best solution I've seen yet, but it is a little unsat

Re: S2: Want to set autocompleter value

2007-05-25 Thread Musachy Barroso
By the way the property "dataProvider.data" in the widget is a hash of the key and the values, so you could find the right value, and then set it in the 2 inputs for the comobox (the visible and the hidden ones). I logged a ticket for it: https://issues.apache.org/struts/browse/WW-1945 musachy

Re: S2 & AJAX question

2007-05-25 Thread Ray Clough
We've gotten it to work by having the action method write to the output stream and return null. This is by far the best solution I've seen yet, but it is a little unsatisfying from an architectual point of view. It would be more satisfying to have a Topic-based solution, but I can't see how to d

Re: S2: Want to set autocompleter value

2007-05-25 Thread Musachy Barroso
2.1 is going to ship with 0.4.2 or 0.4.3, as for 0.9 we don't have any estimated time. musachy On 5/25/07, Scott Nesbitt <[EMAIL PROTECTED]> wrote: That does not seem to do anything for me. After reading this: http://trac.dojotoolkit.org/ticket/1451 It looks like setSelectedValue() is goin

Re: S2: Want to set autocompleter value

2007-05-25 Thread Scott Nesbitt
That does not seem to do anything for me. After reading this: http://trac.dojotoolkit.org/ticket/1451 It looks like setSelectedValue() is going away. I tried this: var t = dojo.widget.byId('states'); t.setValue('AZ'); And it sets the state to AZ instead of Arizona, perhaps because the

Re: S2: cannot access bean from dialog

2007-05-25 Thread Scott Nesbitt
Thanks for the response. I guess we will have to call another action. Scott --- Don Brown <[EMAIL PROTECTED]> wrote: > Those objects will only be accessible if the JSP is > "front-ended" by > an action. By this, I mean that the request is for > an action, which > executes said Action, then fo

Re: [ANN] "Starting with Struts2" Book

2007-05-25 Thread Ian Roughley
doh. Thanks. The issue with starting in ww and moving to struts :-) /Ian Al Sutton wrote: Do I get a prize for reporting the first typo :)... On Page 64 there's a code snippet which reads; Shouldn't th ww: be an s:? -Original Message- From: [EMAIL PROT

Re: S2: Want to set autocompleter value

2007-05-25 Thread Musachy Barroso
try: dojo.widget.byId("autocompleter_id").setSelectedValue("value"); I can't try it myself now, but that's the only method that seems to set a value in the autocompleter widget. musachy On 5/25/07, Scott Nesbitt <[EMAIL PROTECTED]> wrote: I have an autocompleter like this: In some JavaSc

Re: S2 & AJAX questions

2007-05-25 Thread Musachy Barroso
For 2.1, the documentation for each tag will be on its own page, and we'll just keep things that are common to all tags on that page(topics, configuration, etc), in the meantime feel free to edit it :) regards musachy On 5/25/07, Ray Clough <[EMAIL PROTECTED]> wrote: Actually, Dave, I think th

Post back with Struts

2007-05-25 Thread Mansour
Is there any way to get a behavior like post back in struts? If not, is there any interest in writing an interceptor that will emulate this ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[S2] Checkbox causes error on form submission.

2007-05-25 Thread Skip Hollowell
I am a wee bit confused on this one. I have my Account bean, with a boolean field: private boolean billerSame = false; along with a getter and setter, obviosuly. On my form I have: I submit the form and see this on the console for Tomcat: SEVERE: ParametersInterceptor - [setParameters]: U

Re: S2 & AJAX questions

2007-05-25 Thread Ray Clough
Actually, Dave, I think the page needs a lot more than reorganizing :~() It needs substantial re-writing and expansion with better/more examples and clearer/more complete descriptions. Especially the dojo.event.topic.xxx function parameters (this looks like function pointers, but I don't have

Difference between package and namespace

2007-05-25 Thread Charbel Abdul-Massih
I am having a hard time differentiating between when I need a package and when I need a namespace... Can anyone shed some light on this??? Thanks, Charbel

S2: Want to set autocompleter value

2007-05-25 Thread Scott Nesbitt
I have an autocompleter like this: In some JavaScript I would like to set the state to, say, Arizona. This is not working: var t = dojo.widget.byId('states'); t.value = 'AZ'; Any ideas? I also tried statesKey, no luck. Thanks, Scott __

RE: Struts2 Portlet support

2007-05-25 Thread Raghupathy, Gurumoorthy
Try struts tiles :) -Original Message- From: mjohnson [mailto:[EMAIL PROTECTED] Sent: 24 May 2007 22:59 To: user@struts.apache.org Subject: Struts2 Portlet support I also posted this in the WebWork forum. We have succesfully developed a large application that supports milllions of use

Re: [S2] s:include and jsp:include of Struts actions blank page

2007-05-25 Thread Josh Vickery
Well, I couldn't figure out why the include tags don't work, but I did find: which seems to do the trick. Josh On 5/25/07, Josh Vickery <[EMAIL PROTECTED]> wrote: I'm running into some strange behavior when using s:include and jsp:include with Struts actions as the include target. If I put

RE: Weird behavior - Struts 2 - Firefox vs. IE

2007-05-25 Thread Charbel Abdul-Massih
I am not using any tags... My output is valid HTML...I did a very simple test page with a couple of form fields...and still the same issue...h... -Original Message- From: Jordi Rubio Moreno [mailto:[EMAIL PROTECTED] Sent: Friday, May 25, 2007 2:54 AM To: Struts Users Mailing List Su

[S2] Accessing Properties

2007-05-25 Thread Hoying, Ken
I am new to Struts2 and have a question in regards to accessing properties from Java classes outside of the Action. If I would like to utilize the concept of package.properties property files. Is there already classes available that I can easily utilize to access these properties? Thanks in adva

[S2] s:include and jsp:include of Struts actions blank page

2007-05-25 Thread Josh Vickery
I'm running into some strange behavior when using s:include and jsp:include with Struts actions as the include target. If I put or I get a completely blank page with no error messages. It works fine if I include a jsp (/pages/somePage.jsp). I haven't spent much time trying to track down the s

Re: preInvokeJS in s:submit

2007-05-25 Thread Musachy Barroso
In show case there are, it is quite simple (not AJAX technically, but javascript) dojo.event.topic.subscribe("/topics", function(data, type, event)){ if (type == "before") { //do something //to cancel set event.cancel = true; } }); On 5/25/07, Roger Varley <[EMAIL PROTECTED]> wrot

Re: preInvokeJS in s:submit

2007-05-25 Thread Roger Varley
On 25/05/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: Use "notifyTopics" instead. I've been trying to do this for ages (display a confirmation dialog when the user is about to do something irrevokable) and it never occured to me to use Ajax :-( Is there any example code anywhere? Regards R

Re: preInvokeJS in s:submit

2007-05-25 Thread Musachy Barroso
Use "notifyTopics" instead. musachy On 5/25/07, Pedro Herrera <[EMAIL PROTECTED]> wrote: Hi, I´d like to show a warning message(alert) before erase a record . Is preInvokeJS deprecated ? I have to use : executeScripts="true" ? I need an example to do this ... Thanks -- View this

Re: S2 & AJAX question

2007-05-25 Thread Musachy Barroso
You could do it in S2, just like you said you would do it in S1, writing to the output stream, without requiring a page for it (not that I'm advising to do so ;) ). musachy On 5/25/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- Ray Clough <[EMAIL PROTECTED]> wrote: > [Ajaxy stuff] You may wan

Re: Re: [S2] Form handling life cycle with HTTP GET/POST

2007-05-25 Thread Gunnar Hillert
Hello Don, Thank you very much for your response and yes > As it is, yes and no. You can use the restful2 action mapper to have > struts "guess" what the method names should be based on the URI and > the HTTP method. However, outside that, I'm guessing you are really > wanting some sort of te

preInvokeJS in s:submit

2007-05-25 Thread Pedro Herrera
Hi, I´d like to show a warning message(alert) before erase a record . Is preInvokeJS deprecated ? I have to use : executeScripts="true" ? I need an example to do this ... Thanks -- View this message in context: http://www.nabble.com/preInvokeJS-in-s%3Asubmit-tf3815757.html#a10801

RE: [ANN] "Starting with Struts2" Book

2007-05-25 Thread Al Sutton
Do I get a prize for reporting the first typo :)... On Page 64 there's a code snippet which reads; Shouldn't th ww: be an s:? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ted Husted Sent: 25 May 2007 12:40 To: Struts Users

S2 fileupload interceptor resources

2007-05-25 Thread bob
When i was implementing the fileupload via the interceptor, using default settings ( i.e. the jakarta stuff as specified in default.properties ), I found that i had to go get two jar files for this to work, commons io and commons fileupload. I was just wondering why these wouldn't be distri

RE: [ANN] "Starting with Struts2" Book

2007-05-25 Thread Al Sutton
I couldn't even get to the site earlier, seems OK now. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ted Husted Sent: 25 May 2007 12:40 To: Struts Users Mailing List Subject: Re: [ANN] "Starting with Struts2" Book Is anyone else having trouble logging

Re: [ANN] "Starting with Struts2" Book

2007-05-25 Thread shadman
I was able to register and download it yesterday. Ted Husted wrote: > > Is anyone else having trouble logging into the InfoQ site? > > On 5/24/07, Ian Roughley <[EMAIL PROTECTED]> wrote: >> I am pleased to announce the release of the mini-book "Starting with >> Struts2" from InfoQ.com. >> >> "

Re: [ANN] "Starting with Struts2" Book

2007-05-25 Thread Ted Husted
Is anyone else having trouble logging into the InfoQ site? On 5/24/07, Ian Roughley <[EMAIL PROTECTED]> wrote: I am pleased to announce the release of the mini-book "Starting with Struts2" from InfoQ.com. "Starting with Struts2" is aimed at those who are new to Strut2, and those familiar with M

Re: S2 & AJAX questions

2007-05-25 Thread Dave Newton
--- Ray Clough <[EMAIL PROTECTED]> wrote: > [Ajaxy stuff] You may want to explore Dojo's listenTopics and notifyTopics; you can define quite a bit of behavior based on a DIV load etc. It's discussed in an S2 context at: http://struts.apache.org/2.x/docs/ajax-tags.html (That page needs reorganiz

S2 & AJAX questions

2007-05-25 Thread Ray Clough
I have a dual select box problem - Select control-A needs to trigger an event which update Select control-B. Using the s:div tag, I can get the desired result by having a separate page which contains just a duplicate of Select Control-B, and is updated by the Action-update method. Now I understa

Struts2 non-redirect

2007-05-25 Thread Jan Hornbøll Hansen
I am working on customer search function for my first struts2 webapp. My search page has a few option selection fields. In struts 1.x I would normally create a prepareCustomerSearchAction responsible for populating lists of options for selection fields and a searchCustomerAction that retrieved c

Re: Language in URL

2007-05-25 Thread Gert Vanthienen
L.S., I have managed to get this working by defining all actions in a base package and afterwards extending that base package to add the namespace (e.g. /nl). Is there a way to translate the namespace part for static resources (images, css, ...) so that nl/theme/main.css is actually being re

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