Re: Using DOJO in Struts2

2008-04-21 Thread umesh awasthi
Thanks Jeromy for the detailed Explanation you have mentioned the point on which we are also confused... we are on analysis phase of using any external ajax libraray with out coming struts2 based applications We have got lot of favourable comments for YUI over DOJO (Previously we haqve faced some

Is now a proper time for me to take use of Struts2.1?

2008-04-21 Thread Mingliang Liu
Half of a year is a long time for Struts2.1 developing and I just wonder whether it's proper to use struts2.1-from svn? thanks! -- View this message in context: http://www.nabble.com/Is-now-a-proper-time-for-me-to-take-use-of-Struts2.1--tp16822103p16822103.html Sent from the Struts - User maili

Re: Trouble executing scripts in returned ajax content

2008-04-21 Thread Jeromy Evans
Jukka Välimaa wrote: Thank you for your time Jeromy, I have confirmed that the problem with running javascript is actually related to ajax tags. I placed the following script on my page: alert('boo'); It refused to run until I removed the one section I had in the page: After

Re: Two resource bundles in the same page?

2008-04-21 Thread Jeromy Evans
Dave Newton wrote: --- Paranoid_Fabio <[EMAIL PROTECTED]> wrote: Hello. I've a problem with i18n resource bundles. I've a page "home.jsp" that uses a resoruce bundle "res1" for internationalization. home.jsp, like all the pages of my web app, includes "bar.jsp" which is a bar with some li

Re: Using DOJO in Struts2

2008-04-21 Thread tom tom
Hi, Instead of directly using DOJO 1.x, did you think about enhancing the ftl with a new theme type Thanks --- umesh awasthi <[EMAIL PROTECTED]> wrote: > Thanks Jeromy for the rply > we will try to impliment DOJO 1.x along with struts2 > > some point i want to confirm if u have any exp using

Re: Intenationalization questions

2008-04-21 Thread Jeromy Evans
Pranav wrote: Ok, so here's what I intend to prototype. Please let me know if this will work or not. ... What do you think? Any comments or warnings would be highly appreciated. This will work. As mentioned, it won't scale well. As warned by others, don't take this approach if the requi

Re: Using DOJO in Struts2

2008-04-21 Thread Jeromy Evans
umesh awasthi wrote: Thanks Jeromy for the rply we will try to impliment DOJO 1.x along with struts2 some point i want to confirm if u have any exp using dojo with struts2 I don't use Dojo in any production applications any more. After getting advice from others I have moved entirely to YU

Re: Using DOJO in Struts2

2008-04-21 Thread umesh awasthi
Thanks Jeromy for the rply we will try to impliment DOJO 1.x along with struts2 some point i want to confirm if u have any exp using dojo with struts2 1) IF we will replace the Struts2 ajax tag with dojo will there be any functional changes to struts2 lilke action automatically populate form bean

Re: Struts 2 AJAX editable grid

2008-04-21 Thread Jeromy Evans
tom tom wrote: Hi, They both look good, As I stated, I am looking for a one with Select box inside, none of them contains a select box inside the grid It does. Column 4: State http://developer.yahoo.com/yui/examples/datatable/dt_cellediting.html YUI allows you to create customer cell for

Re: Clearing form value

2008-04-21 Thread aum strut
ok i got that thks for helping me out On 4/21/08, Nils-Helge Garli Hegvik <[EMAIL PROTECTED]> wrote: > > By "redirect" I mean using the redirect action result type. > > Nils-H > > On Mon, Apr 21, 2008 at 6:40 AM, aum strut <[EMAIL PROTECTED]> wrote: > > Nils can u just describe a bit wat u mean

[RESOLVED] Help linking two autocompleters

2008-04-21 Thread Márcio Gurgel
Hi all, I resolved my problem using JSON. Some links: http://struts.apache.org/2.x/docs/ajax-and-javascript-recipes.html#AjaxandJavaScriptRecipes-Exampleaction http://cwiki.apache.org/S2PLUGINS/json-plugin.html Here's the code (Maybe it could help someone) Dont forget to include json.jar in your

Re: Struts 2 AJAX editable grid

2008-04-21 Thread tom tom
Hi, They both look good, As I stated, I am looking for a one with Select box inside, none of them contains a select box inside the grid Thanks --- Jeromy Evans <[EMAIL PROTECTED]> wrote: > I use YUI. > Have a look at Satyam's demo of the editable > datagrid to see if it's > suitable: > http:

Re: ActionMapper - obtaining it in a taglib

2008-04-21 Thread Adam Hardy
Dave Newton on 21/04/08 18:29, wrote: --- Adam Hardy <[EMAIL PROTECTED]> wrote: I want to obtain the ActionMapper so that I can get the URL for an action, in the same way that the Form taglib does it: Does the @Inject annotation not work for you? It works, but it doesn't light my fire. I jus

Re: ActionMapper - obtaining it in a taglib

2008-04-21 Thread Adam Hardy
Ralf Fischer on 21/04/08 18:24, wrote: On Mon, Apr 21, 2008 at 6:02 PM, Adam Hardy <[EMAIL PROTECTED]> wrote: Just had a long search through the struts source and can't see how this is done. I want to obtain the ActionMapper so that I can get the URL for an action, in the same way that the For

Re-use a form

2008-04-21 Thread Driv
Hi... I have a problem: I have an action that retrieve some results from a DB, puts them in a form and forwards it to a jsp. The problem is that I have to do (from the jsp) another search in th DB using the same FORM. the scope of the action that generates the form is session, but it does not

Re: Struts 2.x versions and documentation

2008-04-21 Thread Dave Newton
--- Chase <[EMAIL PROTECTED]> wrote: > Do you know if the documentation for Struts 2 is shared across > all 2.x versions? Yes. There's no real way to version the wiki; it's exported into the release, but information is modified on an ongoing basis regardless of the currently released version. >

Pre-checking items in checkboxlist (or multiple select box)

2008-04-21 Thread tristan_colson
I cannot for the life of me figure out how to pre-check/select items in a checkbox list or a multiple select box. As long as the input field is linked to exactly one value, like in a radio list or a single select box, it works fine, but I can't figure out how to pass a list of items to check and

Re: Struts 2.x versions and documentation

2008-04-21 Thread Piero Sartini
Am Montag, 21. April 2008 23:59:46 schrieb Chase: > Given that the doc in question was last edited July 2007 to include 2.1 > information has 2.1 been released already and I'm just not looking in > the right place? Struts 2.1 has no GA release yet. That said, I think it is very stable and possibl

Re: Struts 2.x versions and documentation

2008-04-21 Thread Chase
Do you know if the documentation for Struts 2 is shared across all 2.x versions? Should "var" be removed from the 2.0 docs or does it just need a version note added? I'd like to see about getting this fixed. Given that the doc in question was last edited July 2007 to include 2.1 information ha

Re: Struts 2.x versions and documentation

2008-04-21 Thread Dave Newton
--- Chase <[EMAIL PROTECTED]> wrote: > But my struts-tags.tld only has the "id" attribute and not the ?newer? > "var". Are the docs referring to a future version of Struts? or are they > referencing an older version and the addition of "var" was rolled back? "id" is for S2.0, "var" for S2.1. No

Struts 2.x versions and documentation

2008-04-21 Thread Chase
I'm confused by some of the documentation and hope someone can clarify things for me. I'm using what I think is the latest version of Strut 2. struts-2.0.11.1-all.zip (released Mar 04, 2008) I'm looking at the docs for the version of Struts I'm using. http://struts.apache.org/2.0.11.1/docs/acti

(SOLVED) Indexed nested beans

2008-04-21 Thread Scott Van Wart
I was missing the getPackages() method :( - Scott Scott Van Wart wrote: Hi all, I'm trying to get multiple levels of indexed, nested beans working. I've tried a variety of solutions but I keep getting xwork or ognl exceptions. Here's what I've tried (loosely): public class MyAction im

Re: Struts 2 & Dynamic Validation results

2008-04-21 Thread Volker Karlmeier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, in an action class, just use String[] params=new String[] {"/*your Parameter String*/0", "/*your Parameter String*/1",...,"/*your Parameter String*/n"}; addFieldError("a", getText("errors.required", params)); using the methods getText(String key,

Re: Problem with internationalization in addActionError

2008-04-21 Thread Volker Karlmeier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, fine that its solved. I think this is one of the mistakes you only make once ;) stan77 schrieb: > Hi Volker, > > thanks for your replies, i solved my problem today. It was really a > stupid mistake: > > I had an other package.properties one pa

Re: migration from struts 1 to 2

2008-04-21 Thread Nils-Helge Garli Hegvik
The section about migration in the documentation [1] would be a good place to start. [1] - http://struts.apache.org/2.0.11.1/docs/migration-guide.html Nils-H On Tue, Apr 22, 2008 at 1:17 AM, Lalchandra Rampersad <[EMAIL PROTECTED]> wrote: > How do I migrate from struts 1 to 2? > > > > Saludos >

Re: Problem with internationalization in addActionError

2008-04-21 Thread stan77
Hi Volker, thanks for your replies, i solved my problem today. It was really a stupid mistake: I had an other package.properties one package above, where the entries for the Logon form were registered too. Thanks for help anyway. Volker Karlmeier wrote: > > Hi Stan, > > mostly it's just a l

Re: Passing Action parameter in struts.xml

2008-04-21 Thread Tommy Becker
I really should read the documentation ;) http://struts.apache.org/2.x/docs/static-parameters-interceptor.html Tommy Becker wrote: I can't seem to get any parameters to actually pass to actions via struts.xml. Here's an example action config out of my struts.xml (

Passing Action parameter in struts.xml

2008-04-21 Thread Tommy Becker
I can't seem to get any parameters to actually pass to actions via struts.xml. Here's an example action config out of my struts.xml (ignore the slashes in the action name, we're using a third party container): class="/motricity/presentation/action/EndUserWMLHome" method="in

Indexed nested beans

2008-04-21 Thread Scott Van Wart
Hi all, I'm trying to get multiple levels of indexed, nested beans working. I've tried a variety of solutions but I keep getting xwork or ognl exceptions. Here's what I've tried (loosely): public class MyAction implements Action, StrutsStatics { private List packages; public Li

Struts 2 & Dynamic Validation results

2008-04-21 Thread JRD
I am try to migrate an app from struts 1 -> 2 I am trying to do basic validation on a form. Fields a and b are required. in the resource bundle I have errors.required={0} is required. How do you put dynamic values into these messages so that it shows

Re: Intenationalization questions

2008-04-21 Thread Pranav
Ok, so here's what I intend to prototype. Please let me know if this will work or not. 1) Define a message resource properties file like this: cust1.welcome.user = I want to live. cust2.welcome.user = I will not let you live. welcome.user = Welcome user cust1.bye = Go live bye = Good bye hello =

Re: ActionMapper - obtaining it in a taglib

2008-04-21 Thread Dave Newton
--- Adam Hardy <[EMAIL PROTECTED]> wrote: > I want to obtain the ActionMapper so that I can get the URL for an action, > in the same way that the Form taglib does it: Does the @Inject annotation not work for you? Dave - To unsu

Re: ActionMapper - obtaining it in a taglib

2008-04-21 Thread Ralf Fischer
Hi Adam, On Mon, Apr 21, 2008 at 6:02 PM, Adam Hardy <[EMAIL PROTECTED]> wrote: > Just had a long search through the struts source and can't see how this is > done. > > I want to obtain the ActionMapper so that I can get the URL for an action, > in the same way that the Form taglib does it: > > >

Re: Intenationalization questions

2008-04-21 Thread Ralf Fischer
Hi, On Mon, Apr 21, 2008 at 5:46 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- Pranav <[EMAIL PROTECTED]> wrote: > > No the message displayed by welcome.user would be entirely different. E.g. > > one could say "welcome to the world of Unlimited Skiing", while the other > > one could say "Are

Access requesting page info

2008-04-21 Thread Mitch_newbie
I am creating a site offered in both english and french. When the user clicks on the french language button the language.action is called. The result will be to load the same page that the user was viewing only the page will be displayed in french. I would like to code the action using wild card m

Notify Topics and Validation Errors

2008-04-21 Thread manishbel
Hello Is there way prevent notifyTopics from being triggered if there are any validation errors? Thanks Manish -- View this message in context: http://www.nabble.com/Notify-Topics-and-Validation-Errors-tp16808233p16808233.html Sent from the Struts - User mailing list archive at Nabble.com.

ActionMapper - obtaining it in a taglib

2008-04-21 Thread Adam Hardy
Just had a long search through the struts source and can't see how this is done. I want to obtain the ActionMapper so that I can get the URL for an action, in the same way that the Form taglib does it: ActionMapping mapping = new ActionMapping(action, namespace, actionMethod, parameters); St

Re: Intenationalization questions

2008-04-21 Thread Dave Newton
--- Pranav <[EMAIL PROTECTED]> wrote: > No the message displayed by welcome.user would be entirely different. E.g. > one could say "welcome to the world of Unlimited Skiing", while the other > one could say "Aren't you supposed to be working?" etc. You get the idea. > If it was just possible with a

Re: Intenationalization questions

2008-04-21 Thread Pranav
Hi Ralf, No the message displayed by welcome.user would be entirely different. E.g. one could say "welcome to the world of Unlimited Skiing", while the other one could say "Aren't you supposed to be working?" etc. You get the idea. If it was just possible with an args array, it would not be com

Re: Two resource bundles in the same page?

2008-04-21 Thread Dave Newton
--- Paranoid_Fabio <[EMAIL PROTECTED]> wrote: > Hello. I've a problem with i18n resource bundles. > > I've a page "home.jsp" that uses a resoruce bundle "res1" > for internationalization. > > home.jsp, like all the pages of my web app, includes "bar.jsp" which is a > bar with some links. The link

Two resource bundles in the same page?

2008-04-21 Thread Paranoid_Fabio
Hello. I've a problem with i18n resource bundles. I've a page "home.jsp" that uses a resoruce bundle "res1" for internationalization. home.jsp, like all the pages of my web app, includes "bar.jsp" which is a bar with some links. The links are also internationalized and this bar uses the resource

Re: Trouble executing scripts in returned ajax content

2008-04-21 Thread Jukka Välimaa
Thank you for your time Jeromy, I have confirmed that the problem with running javascript is actually related to ajax tags. I placed the following script on my page: alert('boo'); It refused to run until I removed the one section I had in the page: After I removed that, the scr

Re: Best practise for populating a select from database so that it works for all result types

2008-04-21 Thread Al Sutton
Toni, Isn't your bug a duplicate of https://issues.apache.org/struts/browse/WW-1963? Al. - Original Message - From: "Toni Lyytikäinen" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Monday, April 21, 2008 12:26 PM Subject: Re: Best practise for populating a select from d

Re: Best practise for populating a select from database so that it works for all result types

2008-04-21 Thread Adam Hardy
Did you see this: http://struts.apache.org/2.0.9/docs/why-didnt-my-action-tag-get-executed-when-i-have-validation-errors.html I stumbled across it on the wiki. Do you exclude the appropriate 'read' method on your validation interceptor config? You don't want struts to think that validation app

Re: Intenationalization questions

2008-04-21 Thread Ralf Fischer
Hi, On Mon, Apr 21, 2008 at 5:37 AM, Pranav <[EMAIL PROTECTED]> wrote: > Hi, > > I am new to struts 2 and trying to figure out a problem that I am having > w.r.t. I18n. My application is supposed to serve multiple clients per hosted > instance of the application and the requirement is to some

Re: Pagination in Struts2

2008-04-21 Thread balart
Hi Aarthy, you can use the displaytag to implement the pagination in struts2. kindly tell that, Pagination as in Google? how, you want the page no in google format or result in google format. Regards,' Bala Jaarthy wrote: > > Hi, > > How to implement pagination as in Google in Struts2?Any He

Re: [S2] IE 7 - Secure and non-secure pop up message when using https

2008-04-21 Thread Jeromy Evans
Simon Sew wrote: Hi, Can you provide me with the link on how to upgrade the dojo toolkit. Cant find a page that is simple enough for me to understand. Thanks. P.S: Already post my problem to dojo mailing list. Hope I can get some answers. Try this: http://cwiki.apache.org/S2WIKI/creating-a

Re: Best practise for populating a select from database so that it works for all result types

2008-04-21 Thread Toni Lyytikäinen
Yes it shouldn't be affected, but there seems to be a bug that affects this behaviour, see WW-2599. https://issues.apache.org/struts/browse/WW-2599 On Mon, Apr 21, 2008 at 2:20 PM, Adam Hardy < [EMAIL PROTECTED]> wrote: > Yes, I get the picture. If you haven't already, download the source bundl

Re: Best practise for populating a select from database so that it works for all result types

2008-04-21 Thread Adam Hardy
Yes, I get the picture. If you haven't already, download the source bundle and look at the examples. Actually I don't think I understood one thing you said. You're using an action taglib in the JSP, which invokes the list retrieval. Surely that's not affected by validation failure? I was under

Re: Best practise for populating a select from database so that it works for all result types

2008-04-21 Thread Toni Lyytikäinen
Well, for the retrieval I use stateless session bean injected to the action with Spring, like this (simplified): public User getUser() { return user; } public String edit() { user=dao.get(id); return SUCCESS; } So it's nothing special. The session approach of course isn't ideal, but more a

Re: Best practise for populating a select from database so that it works for all result types

2008-04-21 Thread Adam Hardy
I think so - the chain is just a forward inside the same request so you shouldn't lose the field errors. But I'm just setting up a new website now with this approach, so actually I'm as inexperienced as you are - my previous Struts2 project had a different approach entirely. You second questio

Getting field name associated with error

2008-04-21 Thread Charles Humble
Hi, Hope someone can help me with this - I've got rather stuck. I'm using Struts 1 and iterating the error collection: For accesibility reasons I need to be able to put a jump to the field from the href. I could save a lot of pain if I could access the field name associated with the error mess

Re: Best practise for populating a select from database so that it works for all result types

2008-04-21 Thread Toni Lyytikäinen
Thanks for the answer! Does the resultType="chain" approach preserve the fieldErrors and the values the user has already typed into the form? Also, how do you prevent the edit action from retrieving the entity from the database in the case the validation fails? I also thought about putting the lis

Re: Best practise for populating a select from database so that it works for all result types

2008-04-21 Thread Adam Hardy
Hi Toni there are several different approaches. The one I use has an Edit action and a Save action. The Edit action fetches the dropdown list and puts it in the request and results in the form jsp. The form submits to Save and if validation fails, the Input result is resultType="chain" and p

Re: Using DOJO in Struts2

2008-04-21 Thread Jeromy Evans
umesh awasthi wrote: Hi All, Our current version of Struts2 is using DOJO toolkit version 0.4.x(Correct me if i am wrong) Correct. Struts 2.0.x uses Dojo 0.4.0. Struts 2.1.x uses Dojo 0.4.3 at the moment. my point is as we have earlier experience of using DOJO with java (Not Struts2),we

Re: [S2] IE 7 - Secure and non-secure pop up message when using https

2008-04-21 Thread Simon Sew
Hi, Can you provide me with the link on how to upgrade the dojo toolkit. Cant find a page that is simple enough for me to understand. Thanks. P.S: Already post my problem to dojo mailing list. Hope I can get some answers. Jeromy Evans <[EMAIL PROTECTED]> wrote: Simon Sew wrote: > Hi, > > I have

insert multiple objects in same form

2008-04-21 Thread zakaria ghandour
Hi, in my struts form i have 2 to insert date and time. i want to insert more than one object in my "Struts action" (using iteration to display inputs in form). how can i name my to dont have conflict name, and how can i recover the values of these inputs in "struts action". : :

Re: Problem with internationalization in addActionError

2008-04-21 Thread stan77
Hi Volker, yes, I'm sure it must be a little stupid mistake, but can't find out. The key is defined in package_en.properties and recompiling the classes has the same result. perhaps you have a look to my code. package_en.properties: ... error.login.failed=Invalid username or password. Please tr

Best practise for populating a select from database so that it works for all result types

2008-04-21 Thread Toni Lyytikäinen
Hello, What is generally regarded as the best practise for populating a select element in a form from database so that it works regardless of the action and the result from which the form is displayed? I've tried this: action configuration: /WEB-INF/jsp/admin/userForm.jsp list /

Re: Converting action configuration from 2.0 to 2.1 - how to convert parameters to actions

2008-04-21 Thread Toni Lyytikäinen
I'm using 2.1.1-SNAPSHOT from the people.apache.org maven snapshot repository. I noticed 2.1.2-SNAPSHOT is already out, maybe I should try it. I have scope="prototype" in the actions that I've defined in the Spring configuration file. The problem also affects actions that are not in the Spring con

Using DOJO in Struts2

2008-04-21 Thread umesh awasthi
Hi All, We are using Struts2 for our development,currently we are using struts-2.0.11.1 As we know that struts2 is using DOJO toolkit internally for ajax support we have previously used DOJO toolkit for UI develoment and it is a gr8 toolkit for ajax based application,with the announcement of DOJO

Re: Problem with internationalization in addActionError

2008-04-21 Thread volker
Hi Stan, mostly it's just a little mistake, that makes you crazy Did you make sure that the key in the properties_en-file is existent and properly written (error.login.failed) ? I am using the same mechanism an it works without any trouble. Can only be a stupid mistake. If you are using ec