Re: [S2] autocompleter, predefining initial value

2006-12-28 Thread Dariusz Wojtas
Hello, I am very happy with the changes being made. They really seem to help - on Firefox 2 :) I can see much better propagation of events in cascaded autocompleters, predefining seems to work on the simple test case that I made. But there are still problems, some of them seem to be very new. I

Problem with Tiles an ActionForms

2006-12-28 Thread Sebastian Marten
Hello List, I have a problem with Struts Tiles. First I wrote all sub-page's for a very little Web shop. Then i started with tiles and created a simple test layout. Nothing special, but it works. I have several normal pages, like the page katliste.jsp I click the link to the related action:

Struts 1.24 Implement Spring IOC

2006-12-28 Thread Jim Reynolds
Hello, I have a older application running under Struts 1.24. I would like to incorporate the Spring IOC for DAO to my database. Can this be done with struts 1.24? Any links, information would be appreciated. - To unsubscribe,

RE: Struts 1.24 Implement Spring IOC

2006-12-28 Thread Thai Dang Vu
Yes, it can. You can look at appfuse.dev.java.net to see how to do it. And this is the steps (copied from appfuse): - in web.xml: context-param param-namecontextConfigLocation/param-name param-value/WEB-INF/applicationContext-*.xml,/WEB-INF/security.xml/pa ram-value /context-param You can

[S2] Redirecting to another action with preserving error messages

2006-12-28 Thread Dariusz Wojtas
Hi, I have some action [/namespace/edit.action] which cannot be called without ID. In fact the ID parameter is needed under some conditions. Therefore if I do not have ID when it is needed I add error message and redirect to INPUT: addActionError(getText(some.id.not.set)); return INPUT

Re: [S2] autocompleter, predefining initial value

2006-12-28 Thread Musachy Barroso
Hi Dariusz I need to update the documentation with this info, the thing is that for each autocompleter, struts will create 2 fields, one for the text entered, with the name ${name} and another for the key, with the name ${name}Key, we need both to remember the values if there is a validation

Re: [S2] autocompleter, predefining initial value

2006-12-28 Thread Musachy Barroso
I forgot to mention the postfix was _selected before, from the Dojo widget, I changed it to Key to make it less cryptic, and it won't change anymore. musachy Musachy Barroso wrote: Hi Dariusz I need to update the documentation with this info, the thing is that for each autocompleter,

Re: [S2] autocompleter, predefining initial value

2006-12-28 Thread Dariusz Wojtas
Hi Musachy, I tried as you advised. Works, no more exceptions and the values are set as expected. But there is still some little problem with preloading. Now I have properties private String carMaker = AUDI; private Integer carMakerKey = 354; with hardcoded initial value, just for test. I

Re: [S2] autocompleter, predefining initial value

2006-12-28 Thread Musachy Barroso
Dariusz Wojtas wrote: But If I open such page [the same values preloaded] and just click somewhere in that autocompleter [no changes] and leave the field - the value is lost. Some event is generated that causes fresh reload of the field. Submitted form shows both properties empty. Are you

Re: [S2] autocompleter, predefining initial value

2006-12-28 Thread Dariusz Wojtas
Hi, These are excerpts from my JSP page: s:url id=markaPojazdowURL value=/listy/markiPojazdow.action / s:autocompleter name=carMaker theme=ajax href=%{markaPojazdowURL} cssStyle=width: 240px; dropdownHeight=200

Re: [S2] autocompleter, predefining initial value

2006-12-28 Thread Martin Gainty
can we see the autoCompleter code any relevant JS (setBeforeLoading,setAfterLoading) Thx, --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed

Validation Framework and DispatchAction

2006-12-28 Thread Andy Foster
Hi all, This is probably a common question but have struggled to find an answer so apologies if I have missed the obvious. Below is an example of issue: I have a page that uses a single form to hold all the display data but can perform the following multiple submit actions: Create - create as a

Re: Validation Framework and DispatchAction

2006-12-28 Thread Wendy Smoak
On 12/28/06, Andy Foster [EMAIL PROTECTED] wrote: This validates at the action mapping level so in the above case it validates on update as well as create. How do you validate just against the create submitaction of the DispatchAction mapping? I would suggest turning off the automatic

how to enable/disable validation

2006-12-28 Thread Aleksandar Matijaca
Hi there, I would like to be able to programatically control weather I am doing validation or not. For example, I have validate=true in my struts-config file, but, I would like to be able to decide myself in code (in a Filter, or controller??) if the validation should actually be done.. How

RE: Validation Framework and DispatchAction

2006-12-28 Thread Andy Foster
Thanks Wendy, Switching validation off in struts-config and invoking manually in each method where required will work. This can be done as follows: // validate ActionMessages errors = form.validate(mapping,request); if ( errors != null !errors.isEmpty() ) { saveErrors(request, errors);

[s2] Location of S2 v2.0.2 download

2006-12-28 Thread Christy Kudlac
All, I've been hunting around and can't seem to find the location of the latest 2.0.2 bundled S2. I am continually redirected back to the 2.0.1 which I have. Can someone please point me in the right direction/location? Thanks!! Christy Kudlac

Re: how to enable/disable validation

2006-12-28 Thread Gary VanMatre
From: Aleksandar Matijaca [EMAIL PROTECTED] Hi there, I would like to be able to programatically control weather I am doing validation or not. For example, I have validate=true in my struts-config file, but, I would like to be able to decide myself in code (in a Filter, or

Re: Validation Framework and DispatchAction

2006-12-28 Thread Ed Griebel
Use a page field in your form (set this in your action class before you call form.validate()) and set page=x in your validation.xml file. The example below shows using a HTML hidden field page, which is a different way to set this page variable.

[tiles2] Latest version and build

2006-12-28 Thread Christy Kudlac
All, I successfully have S2 (2.0.1) and Tiles2 working. I'm looking at the latest Tiles core source, and I see where some of the tld definitions have changed since the snapshot I have that was bundled with S2. Where are we at in Tiles2 stability? Are we still using snapshots or have we gone

Re: Validation Framework and DispatchAction

2006-12-28 Thread Wendy Smoak
On 12/28/06, Andy Foster [EMAIL PROTECTED] wrote: This should solve my problem as each submitaction that requires validation validates the same set of data. However this will not work if there are three methods create and update both need to validate but each validate against a different set

Re: [s2] Location of S2 v2.0.2 download

2006-12-28 Thread Wendy Smoak
On 12/28/06, Christy Kudlac [EMAIL PROTECTED] wrote: I've been hunting around and can't seem to find the location of the latest 2.0.2 bundled S2. I am continually redirected back to the 2.0.1 which I have. Can someone please point me in the right direction/location? That's because Struts

[S2] XSLT result params

2006-12-28 Thread Ian Roughley
I just noticed that the parameters for the XSLT result type in the javadocs are not those in the showcase example, or there may be some that are missing. Has anyone worked on these lately? /Ian - To unsubscribe, e-mail:

Re: [S2] autocompleter, predefining initial value

2006-12-28 Thread Dariusz Wojtas
On 12/28/06, Martin Gainty [EMAIL PROTECTED] wrote: can we see the autoCompleter code any relevant JS (setBeforeLoading,setAfterLoading) ok, the last question made me check the code again. I found an error in my code - an artefact from the yesterdays autocompleter usage.

Re: [S2] autocompleter, predefining initial value

2006-12-28 Thread Musachy Barroso
Is showcase working for you? On IE I'm getting a Error: System error: -1072896658. Some people have had the same problem due to encoding issues. The error message is really explicit :) musachy Dariusz Wojtas wrote: On 12/28/06, Martin Gainty [EMAIL PROTECTED] wrote: can we see the

Re: [S2] XSLT result params

2006-12-28 Thread David H. DeWolf
I noticed the same thing: https://issues.apache.org/struts/browse/WW-1550 For the short term, I've added a work around that works for my use case which allows you select only a single property from the action which will be exposed. David Ian Roughley wrote: I just noticed that the

InvalidCancelException

2006-12-28 Thread Hehl, Thomas
We just upgraded to struts 1.2.9 and started getting this message when I pressed the cancel button. I fixed it once before, but it's popped up on another screen. So I went through the docs again and did as they instructed, but the problem continues. Here's the problem code: action

Re: [S2] autocompleter, predefining initial value

2006-12-28 Thread Dariusz Wojtas
showcase, just built ans started on tomcat 5.5.17 1) Firefox Everything seems to work. About the preloaded aurocompletes at the bottom: Yes, the value is preloaded but entering and leaving the Autocompleter 1 makes it clear on blur. But filtering of Autocompleter 2 works as expected, even when I

[tiles2] Is there a workaround for SB-96?

2006-12-28 Thread Christy Kudlac
Just curious if anyone knows of a workaround for SB-96? http://issues.apache.org/struts/browse/SB-96 I'm converting a large, enterprise app from Struts 1.x (tiles of course) to S2 using Tiles2 Or at least I was trying until I ran into this issue. I'm still in the process of evaluating

Re: [tiles2] Is there a workaround for SB-96?

2006-12-28 Thread Wendy Smoak
On 12/28/06, Christy Kudlac [EMAIL PROTECTED] wrote: Just curious if anyone knows of a workaround for SB-96? http://issues.apache.org/struts/browse/SB-96 I'm converting a large, enterprise app from Struts 1.x (tiles of course) to S2 using Tiles2 Or at least I was trying until I ran into

RE: [tiles2] Is there a workaround for SB-96?

2006-12-28 Thread Christy Kudlac
I'm using Struts 2.0.1 and the tiles2 jar (the date on the tiles-core-2.0-SHANSHOT.jar is 10/10) that was bundled with the download. I attempted to upgrade tiles2 to the latest snapshot, but got even more errors so I reverted back. Thx. -Original Message- From: Wendy Smoak

Re: [tiles2] Is there a workaround for SB-96?

2006-12-28 Thread David H. DeWolf
Hi Christy, There are reports of people that have it working and others that obviously don't. The problem is that struts 2.0.1 was release against a tiles snapshot and the snapshot on that day is no longer available. I haven't had a chance to try to recreate the exact mix of dependencies to

RE: [tiles2] Is there a workaround for SB-96?

2006-12-28 Thread Christy Kudlac
David, Any specific daily build of Tiles2, or just head? I pulled out the latest Tiles 2 today, but didn't grabbed the latest Struts2. Thx. Christy -Original Message- From: David H. DeWolf [mailto:[EMAIL PROTECTED] On Behalf Of David H. DeWolf Sent: Thursday, December 28, 2006 3:52

Re: Struts 2 and Dojo

2006-12-28 Thread walidito
for those interested : https://issues.apache.org/struts/browse/WW-1477 Musachy Barroso-2 wrote: I was talking about this javascript code: dojo.io.bind({ url: @s.url action=updateCharacterAvailable namespace=/hangman/ajax /,

Re: [S2] autocompleter, predefining initial value

2006-12-28 Thread Musachy Barroso
This is what I found so far, there are 2 problems, one is that when there is a json array like: [ [A, B] , ] IE puts a null object in the array. That one is easy to fix. The other problem is that using freemaker, like in showcase to render the json array, the charset of the response is set

Re: [S2] autocompleter, predefining initial value

2006-12-28 Thread Dariusz Wojtas
I am not really sure if it worked before, both autcompleter and my code do evolve ;) I was always using JSP with UTF-8 encoding to generate my options. Is UTF-8 a problem here? You mean [ [A, B] , ] is problematical for IE, but [ [A, B] ] will work? Should I change something in the json

Re: [S2] autocompleter, predefining initial value

2006-12-28 Thread Musachy Barroso
I will fix it so it ignores that null value. UTF-8 works. regards musachy Dariusz Wojtas wrote: I am not really sure if it worked before, both autcompleter and my code do evolve ;) I was always using JSP with UTF-8 encoding to generate my options. Is UTF-8 a problem here? You mean [ [A, B]

Re: [tiles2] Latest version and build

2006-12-28 Thread Greg Reddin
On 12/28/06, Christy Kudlac [EMAIL PROTECTED] wrote: Where are we at in Tiles2 stability? Are we still using snapshots or have we gone to beta or rc yet? To answer this question, Tiles was just approved as an Apache top-level project. In the Struts sandbox it has no chance of getting past

Re: [s2] dropdowndatetimepicker

2006-12-28 Thread Musachy Barroso
I logged a ticket for this issue, with a patch: https://issues.apache.org/struts/browse/WW-1579 The tag was not reading the value from properties. Now it will get the value from the property specified in name, the value needs to be of type Date, or any object whose toString method returns an

Not able to pass value from jsp to request Processor

2006-12-28 Thread Sarry
Hi, I am tryin to extend request processor which basically tracks the session and does some routing stuff. but for that I need to pass a variable which is available on JSP and need to pass it to the request processor to check something. I tried hidden field in the form but gettin value of

Re: Not able to pass value from jsp to request Processor

2006-12-28 Thread Sandeep Gupta
Hi Sarry Try setting the variable using the request.setAttribute(Attribute key name as string, Value as Object); and then, access the value in the request processor using the (Cast to the desired object type) request.getAttribute(Attribute key name as string); Hope this helps. - Sandeep

Re: [tiles2] Is there a workaround for SB-96?

2006-12-28 Thread David H. DeWolf
Struts2 currently specifies Tiles 2.0-r488734-SNAPSHOT as it's dependency. This works. Make sure you include both tiles-core and tiles-api jars in your webapp. Look here: http://people.apache.org/repo/m2-snapshot-repository/org/apache/struts/tiles/ David Christy Kudlac wrote: David,

Re: Not able to pass value from jsp to request Processor

2006-12-28 Thread Sarry
HI Sandeep, This doesn't work since request is going from client to server so I can't set the request.getAttribute since when I submit the form it will be a fresh new request however had I tried settin thru request.setAttribute, it would have been a old request. getting parameters thru

Re: Problem with Tiles an ActionForms

2006-12-28 Thread Sebastian Marten
After several hours of searching i found the problem. All pages work, if I set validate=false in the struts config. So I can't use the validate method of the bean? Is there an alternative for this method? Best regards, Sebastian Marten Sebastian Marten schrieb: Hello List, I have a problem

Logic :if check key is true or false in messgeresouce bundle

2006-12-28 Thread nagesh.kumar
Hi all, I want to check a key value whether it is true or false in messageresource bundle in JSP. There is no tag to check the key value directly as logic:equal key=checkKey value=true /logic:equal checkKey=true Any help thanks Nagesh

error messages

2006-12-28 Thread Tom Jerry
Hello, Consider for eg, I have 5 fields. For the first 2 fields, the errors will be displayed by mentioning their property in the html:error tag. And I want to display the remaining errors at the end of the page. So, for this I use html:errors/. But I dont want to display all 5 error messages.