Re: how to use ajax displaytag?

2009-11-12 Thread Ernesto Reinaldo Barreiro
Recently I just created a wrapper for jqgrid... Maybe it can be of some help to you http://code.google.com/p/antilia-struts/wiki/DemoApplication http://code.google.com/p/antilia-struts/wiki/SearchPage Ernesto On Thu, Nov 12, 2009 at 10:29

html:link submit with request parameters

2009-11-12 Thread fea jabi
I need to submit the form when the is clicked/pressed and also need to pass parameters. " transaction="true" > but this is not submitting the form. How can I submit the form and also pass the request params? Basically I want other values entered in the html form are set to

Struts2 + Spring/Hibernate

2009-11-12 Thread CRANFORD, CHRIS
I am in the process of implementing Struts2 along with integrated support with Spring and Hibernate. While I have found various examples on the web, I tend to find they vary. My application will primarily focus about 75% of the time on data queries and displaying this data to end users while a s

Re: how to use ajax displaytag?

2009-11-12 Thread Oscar
fireapple escribió: Here's my situation: I used a displaytag to show a table as an ajax result. It works fine. However, when I click "sort" or go to different page, it opens a new page with only the displaytag table. I saw something online that there's ajaxTags or ajaxAnywhere, but it seems the

Re: Catching: Unable to instantiate Action

2009-11-12 Thread Brian Thompson
I can only speculate, but it seems logical that the ClassNotFoundException is being thrown from outside the purview of Struts, in Tomcat's ClassLoaders - thus the Struts exception mapping never enters into it. My only suggestion for dealing with this is to configure your actions explicitly rather

how to use ajax displaytag?

2009-11-12 Thread fireapple
Here's my situation: I used a displaytag to show a table as an ajax result. It works fine. However, when I click "sort" or go to different page, it opens a new page with only the displaytag table. I saw something online that there's ajaxTags or ajaxAnywhere, but it seems they're both not good.

Re: Catching: Unable to instantiate Action

2009-11-12 Thread Roger
On Thursday 12 November 2009 12:35:25 Gustavo Felisberto wrote: > My toughts also. But in any case I tested and it did not help. > > If you find a solution please drop it here. > > Gustavo > Will do, but I've had even less response to my query than you. Regards

Can s:select multiple have a object.someList as name?

2009-11-12 Thread wild_oscar
I am trying to pass the multple selected items on a s:select onto a List that I have on an "some" object: Some{ List seriousness; ...} I am using spring to inject "some" in my action: Using a: I'm facing an issue: the some.seriousness is being injected with multiple Serious objects

Re: Localized key values in s:select

2009-11-12 Thread Brian Thompson
Try this: 2009/11/12 Ignacio de Córdoba > > Hello, > I wonder if it is possible to make s:select tag localize the content of > option elements. I am using: > > list="%{categories}" listKey="id" listValue="name" emptyOption="true"/> > > I'd like attribute listValue="name" property value if

Re: Localized key values in s:select

2009-11-12 Thread Paweł Wielgus
Hi Ignacio, it's possible, just use listValue="getText(name)", it should work just like that, just add to your properties file a key that match name value, so that getText will have something to show. Best greetings, Paweł Wielgus. El día 12 de noviembre de 2009 19:26, Ignacio de Córdoba escrib

Localized key values in s:select

2009-11-12 Thread Ignacio de Córdoba
Hello, I wonder if it is possible to make s:select tag localize the content of option elements. I am using: I'd like attribute listValue="name" property value if the objects iterated not to be shown "as is" but to be used as a key to the language property files... just like the "key" attribu

Struts/Dojo/Json question

2009-11-12 Thread Thomas Sattler
Hello all. I am working with some AJAX stuff in Struts 2.1.8, specifically the Dojo toolkit. I have a Grid widget, which is Dojo's row-and-column displayer. The Grid expects data as a properly-formed JSON string. The Grid gives the very helpful "Sorry, an error occured" messge if the dojo resul

Re: Property Mapping in a iterator

2009-11-12 Thread Musachy Barroso
FAQ added for it: http://cwiki.apache.org/confluence/display/WW/Make+Struts+throw+exceptions+on+missing+properties%2C+or+log+them On Thu, Nov 12, 2009 at 8:49 AM, Musachy Barroso wrote: > You need a couple of things: > > 1. set devMode to true > > if you want to get a log of the missing property

Re: Property Mapping in a iterator

2009-11-12 Thread Musachy Barroso
You need a couple of things: 1. set devMode to true if you want to get a log of the missing property, then 2. set if you want to get an exception (the page will break), then: 2. set musachy On Thu, Nov 12, 2009 at 5:58 AM, carl ballantyne wrote: > Hi Alex, > > I thought it was supposed t

Re: Confused about Drop down lists (database generated)

2009-11-12 Thread Brian Thompson
Just add something like the following to the methods that execute before JSP processing. this.roles = service.getRoles(); You might also look into the Preparable interface, depending on application design. -Brian On Thu, Nov 12, 2009 at 8:02 AM, Sommers, Elizabeth wrote: > All the drop dow

Confused about Drop down lists (database generated)

2009-11-12 Thread Sommers, Elizabeth
All the drop down lists in my application need to be generated from the database. Some of these lists will be needed for more than one JSP. So, in order to work with the tag I am building an action for each list. I know this has to be wrong. Especially because some JSP's will need multiple drop

Re: Property Mapping in a iterator

2009-11-12 Thread carl ballantyne
Hi Alex, I thought it was supposed to give you more debug information including when the property does not exist. Looks like I might be wrong then. Cheers, Carl. Quoting Alex Parvulescu : hello, I did it and got nothing :) Can you explain a bit what this property does?

Re: Trouble with struts2 validation

2009-11-12 Thread Brian Thompson
What does your JSP look like? Also, I'm not sure I understand your question. What error message are you getting? -Brian On Thu, Nov 12, 2009 at 6:16 AM, vikrant S wrote: > > Hi all, > In my login application I want to validate whether the textfield for > Usename > and password is not null a

Re: Property Mapping in a iterator

2009-11-12 Thread Alex Parvulescu
hello Martin and thanks for you reply the code works if I put in the 'name' property. However, if I put there 'pname' , or I miss spell by mistake, I get no error (or maybe a warning) saying that the property does not exist, and I should really check that code. I don't think this is related to th

RE: [Struts 2.1.8] Filter init parameter "actionPackages" fails on JBoss5.1.0: workaround ?

2009-11-12 Thread Fernandes Celinio
Thanks a lot Lukasz Lenart. It worked :) I cleaned up my lib folder, removed a lot of libraries and kept only the ones that are really needed. That means the ones in your list and also these one : struts2-tiles-plugin-2.1.8.jar commons-beanutils-1.7.0.jar commons-digester-2.0.jar -Message

RE: Property Mapping in a iterator

2009-11-12 Thread Martin Gainty
How are the person objects being populated? here is the sample configuration from showcase: enterPersonInfo.jsp showPersonInfo.jsp enterPersonInfo.jsp /conversion/enterPersonInfo.jsp

Re: Property Mapping in a iterator

2009-11-12 Thread Alex Parvulescu
hello, I did it and got nothing :) This is from the logs INFO : 2009-11-12 13:39:55,290: CommonsLogger: Parsing configuration file [struts-default.xml] INFO : 2009-11-12 13:39:55,385: CommonsLogger: Parsing configuration file [struts.xml] INFO : 2009-11-12 13:39:55,388: CommonsLogger: Overriding

and tag not working in IE

2009-11-12 Thread Rupesh Mankar
Hi all, I am new to struts2. I am using struts2's and for generation of tree components. It works fine in Mozilla firefox. But when I open same URL in Internet explorer and clicks on any tree node it throws javascript error: Message: Unspecified error. Line: 3546 Char: 1 Code: 0 URI: http://

Trouble with struts2 validation

2009-11-12 Thread vikrant S
Hi all, In my login application I want to validate whether the textfield for Usename and password is not null and also if some user enters some username say "admin" and password as "admin" it should get logged in. For this I am using postgresql database and I have already stored username and pass

Re: Property Mapping in a iterator

2009-11-12 Thread carl ballantyne
Hi Alex, I think you might need to add value="true" /> in your struts.xml file. Quoting Alex Parvulescu : hello, I have been looking at Struts2 for a couple of days now, it seems nice and easy to work with. I have a problem that I don't really understand, maybe I'm missing some config set

Trouble with struts2 validation

2009-11-12 Thread vikrant S
-- View this message in context: http://old.nabble.com/Trouble-with-struts2-validation-tp26316069p26316069.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts

Property Mapping in a iterator

2009-11-12 Thread Alex Parvulescu
hello, I have been looking at Struts2 for a couple of days now, it seems nice and easy to work with. I have a problem that I don't really understand, maybe I'm missing some config settings or something. Let's say that I want to display a list of persons, and for each person I want to see the nam

RE: Catching: Unable to instantiate Action

2009-11-12 Thread Gustavo Felisberto
My toughts also. But in any case I tested and it did not help. If you find a solution please drop it here. Gustavo -Mensagem original- De: Roger [mailto:roger.var...@googlemail.com] Enviada: quarta-feira, 11 de Novembro de 2009 21:02 Para: Struts Users Mailing List Assunto: Re: Catching

Re: Form wizard: how to manage state?

2009-11-12 Thread Robert Graf-Waczenski
Alex Siman schrieb: Suppose a state of the form wizard is stored in session. And ID of current wizard process is passed with every form submit. But if user unfinishes process and leaves the form wizard, then wizard data will pollute the session. What is the best way to manage form wizard state?