Re: Type converters: please help!!! :(

2008-01-28 Thread ravi_eze
team any help??? :( ravi_eze wrote: > > hi, > The code is as follows. Do not get terrified by the length of the post. I > tried formatting the post for better readability. Hope this helps you... > to help me ;) > > @new.xml, this is included in struts.xml > > extends="s

Re: [STRUTS2] Error in Dojo / Howto update Dojo

2008-01-28 Thread ravi_eze
which version are u using?? i think u are getting error like dojo not defined. If yes then read the following u need to make dojo available do the following steps: 1. explode struts core.jar 2. create a folder in the war : struts 3. search for ajax,dojo,niftycorners,simple,xhtml in the explode

Re: AJAX approach

2008-01-28 Thread Jeromy Evans
Hi, You're asking a big question. What follows is the approach I would take. There's many other approaches you could also try and my solution may be too javascript-centric for you. First, the interface is stateless, so I'd probably have my action always accept two timestamp parameters and

best way to handle multiple buttons in a form?

2008-01-28 Thread Jason Dolinger
Hi all, I'm new to Struts 2 (and Struts in general), and I'm having a hard time figuring out how to handle the simple case of multiple buttons within a form. The method I'm trying to use is described in the Struts 2 cookbook here: http://struts.apache.org/2.x/docs/html-form-buttons-howto.html

Re: Pretty urls without .action

2008-01-28 Thread Jeromy Evans
Was putting your actions in a non-root namespace not a suitable work-around? Or did it not work for you? jignesh.patel wrote: Hi, I think you missed something struts.action.extension=action,, leads to not actions without ".action" but to the actions with (action-name suffix(.)). e.g http://l

[S2] Starter application in IE & Firefox

2008-01-28 Thread hezjing
Hi I created Struts2 starter application as shown below, mvn archetype:create -DgroupId=com.fdar.apress.s2 -DartifactId=app -DarchetypeGroupId=org.apache.struts -DarchetypeArtifactId=struts2-archetype-starter -DarchetypeVersion=2.0.9-SNAPSHOT -DremoteRepositories=http://peopl

Re: Pretty urls without .action

2008-01-28 Thread Zoran Avtarovski
In the simplest model you can take anything from your namespace and append a .action to it. We use it more to create SEF parameter laden URLs. I don't have a specific rule for what you're looking for but the documentation is pretty concise and you can also look at the Apache mod-rewrite rules (ht

Re: Struts 2: Can not set Action's property which is an array of Strings

2008-01-28 Thread Andriy Kharchuk
It helped. Thank you. 2008/1/28, Hernandez, David <[EMAIL PROTECTED]>: > > > Andriy, > > Try putting the array in an encapsulating object, i.e. an ArrayList. > > Regards, > > David Hernandez > > -Original Message- > From: Andriy Kharchuk [mailto:[EMAIL PROTECTED] > Sent: Monday, January 28

Re: tag writers resources?

2008-01-28 Thread Jeromy Evans
Darren James wrote: Hi Joachim, This gives me something to start with. Time to dig into the struts2 source code to help me grok the sample you've provided. thanks, That example creates a Struts2 component that can be used as a JSP tag. Also see usages of the org.apache.struts2.views.TagL

RE: Struts 2.1.1-SNAPSHOT upgrade

2008-01-28 Thread Keith Davis
As a temporary measure, this one works... \\ihfile3\shared\MIS_SALES_VOL3\Group\Mis\struts\ca\struts2-core-2.1.1-W SGC-20080101-1328.jar -keith -Original Message- From: Sanjeev Vijapurapu [mailto:[EMAIL PROTECTED] Sent: Monday, January 28, 2008 12:52 PM To: user@struts.apache.org Subjec

Re: Flash/wizard- scope

2008-01-28 Thread Martin Gainty
Hi Rikard Where is the redirect class ? Thanks M- - Original Message - From: "Rikard" <[EMAIL PROTECTED]> To: Sent: Monday, January 28, 2008 3:12 PM Subject: Flash/wizard- scope > > Hi all! i was wondering if there would be any plans on building an > interceptor that manages flash scop

AJAX approach

2008-01-28 Thread pvazquez
Hi! I would like to comment you a problem I have now when developing a web application using Struts 2. I have a collection of items, which I want to show in a table. Those items have some attributes that change with the time and I would like to show the updated state in the view layer. I

RE: Struts 2: Can not set Action's property which is an array of Strings

2008-01-28 Thread Hernandez, David
Andriy, Try putting the array in an encapsulating object, i.e. an ArrayList. Regards, David Hernandez -Original Message- From: Andriy Kharchuk [mailto:[EMAIL PROTECTED] Sent: Monday, January 28, 2008 4:15 PM To: Struts Users Mailing List Subject: Struts 2: Can not set Action's propert

Struts 2: Can not set Action's property which is an array of Strings

2008-01-28 Thread Andriy Kharchuk
Hi guys, My Action has property which is an array of Strings. I'm rendering html table using this property. What is correct way to update this property from jsp? I tried the following but it doesn't work: 1. JSP 2. Action private String[] selectedItems; public String[] getSelecte

Struts2 and CMS

2008-01-28 Thread Sanjeev Vijapurapu
Is there any content management support in struts2; like special tags or interceptors which reads the CMS markers from the result and fetches it before processing the result? Thanks -Sanjeev

FW: Struts 2.1.1-SNAPSHOT upgrade

2008-01-28 Thread Sanjeev Vijapurapu
I have upgraded from Struts 2.0.7 to 2.1.1-SNAPSHOT and my current working app doesn't work any more. Thru el mapping for my struts filters are "/*". 1. The welcome page is not being picked up from welcome file list as struts was acting on it and trying to find an action named "." in namesp

Flash/wizard- scope

2008-01-28 Thread Rikard
Hi all! i was wondering if there would be any plans on building an interceptor that manages flash scope or wizard scope? i was surfing around and saw this post http://blogs.opensymphony.com/plightbo/2006/03/webwork_flash_scope_support.html I have made an interceptor that with the help of annotati

Re: Changing the location of the ajax validation error

2008-01-28 Thread j alex
I'd implemented this by overriding the strutsValidator.onErrors function ; basically getting the list of errors and calling custom function to show the errorbox to the right of the field. Also, i needed to show only 1 error at a time - not all the errored fields ; and this was done using the DWR va

Re: [struts] tag writers resources?

2008-01-28 Thread Dale Newfield
Darren James wrote: What I was more interested in is some guidelines similar to what Joachim posted in writing a "struts2" tag. And by that I mean one of those generic, technology independent beasts that can be used in Freemarker and Velocity as well as JSP. I don't know how one writes freemar

Re: tag writers resources?

2008-01-28 Thread Darren James
Hi Joachim, This gives me something to start with. Time to dig into the struts2 source code to help me grok the sample you've provided. thanks, - Darren. Joachim Ansorg wrote: Hi Darren, writing a simple Struts2 tag is not that difficult. But getting started is. The documentation of the

Re: [struts] tag writers resources?

2008-01-28 Thread Darren James
Hi Dale, Yes, i'm familiar with writing JSP tags, although it's been quite some time since i've done so. It took me about 1/2 an hour to dust off the cobwebs and write a JSP tag extending BodyTagSupport that did what I wanted it to do. What I was more interested in is some guidelines similar to

Re: [struts] tag writers resources?

2008-01-28 Thread Dale Newfield
Joachim Ansorg wrote: writing a simple Struts2 tag is not that difficult. A Tag is simply a java interface: http://java.sun.com/javaee/5/docs/api/javax/servlet/jsp/tagext/Tag.html The life cycle of a tag is discussed in that javadoc. There are a number of classes that make implementing your o

[S2] How to allow escaping or HTML characters in ?

2008-01-28 Thread Gabriel Belingueres
Hi, I need a in my page for selecting an option, showing a tree-like structure, so I need to indent some way the option elements into the HTML , however, the tag doesn't allow me to use the HTML space ( ) for indentation, since it does escape it by default producing output like:  My de

Re: Type converters: convertToString not called

2008-01-28 Thread jimski
Hi Ravi- I think the problem here is how the struts2 tags were implemented. As far as I can see from the code base the type converter definition you're referring to is used by the XWork API and not OGNL. The XWork api is used by the Struts Tags which have the option to call the converter or not

Re: Conversion error gets printed twice

2008-01-28 Thread Dave Newton
--- TuomoS <[EMAIL PROTECTED]> wrote: > Date conversion prints out twice the error message when using s:fielderror. > > > > > > > Any ideas why this is happening ? Often it's because a conversion error will also create a validation error and the "conversionError" interceptor[1] will put

RE: how to make ajax validation works with s:tabbedPanel in struts 2.0.11

2008-01-28 Thread Wei, Mei
Is there anyway to work around this bug for now? Thanks, Mei -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Sunday, January 27, 2008 8:25 AM To: Struts Users Mailing List Subject: Re: how to make ajax validation works with s:tabbedPanel in struts 2.0.11 appears t

Re: [S2] dojo plugin - I don't find the resources

2008-01-28 Thread paulbrickell
Dave, I guess if use Dojo independantly of the S2 tags the Musachy point about ending up writing the same things all over my JSP's applies. I think if I want to do this in a grown up way the right thing to do would be to bite down hard and write some freemarker. I do REALLY want to do the right

Re: Struts Portlet

2008-01-28 Thread Nils-Helge Garli Hegvik
No. not unless you have some specific code/configuration/errors to show. Have you tried? What doesn't work? Do you get any error messages? Nils-H On Jan 28, 2008 5:15 PM, Frans Thamura <[EMAIL PROTECTED]> wrote: > On Jan 28, 2008 11:11 PM, Nils-Helge Garli Hegvik <[EMAIL PROTECTED]> wrote: >

Re: Struts Portlet

2008-01-28 Thread Frans Thamura
On Jan 28, 2008 11:11 PM, Nils-Helge Garli Hegvik <[EMAIL PROTECTED]> wrote: > A little bit more information would be nice. > > S2 Portlets should work in any JSR168 compliant portlet container. i try to make hibernate injected using spring, and the struts2 as the MVC any idea? F --

Re: [S2] dojo plugin - I don't find the resources

2008-01-28 Thread Dave Newton
--- paulbrickell <[EMAIL PROTECTED]> wrote: > Yes, but the freemarker templates for head and div (and I guess the others > too) are highly dependent on version 0.4.x of Dojo. So to make this work I > would have to rewrite said templates. > > uhm, I may just do that. If you do, keep people posted.

Re: Struts Portlet

2008-01-28 Thread Nils-Helge Garli Hegvik
A little bit more information would be nice. S2 Portlets should work in any JSR168 compliant portlet container. Nils-H On Jan 28, 2008 4:48 PM, Frans Thamura <[EMAIL PROTECTED]> wrote: > hi there > > anyone have success fully implements Struts2 with Spring and Hibernate > > can i have the ex

Conversion error gets printed twice

2008-01-28 Thread TuomoS
Date conversion prints out twice the error message when using s:fielderror. Any ideas why this is happening ? -- View this message in context: http://www.nabble.com/Conversion-error-gets-printed-twice-tp15138548p15138548.html Sent from the Struts - User mailing list archive at Nabble.

Re: [S2] dojo plugin - I don't find the resources

2008-01-28 Thread Musachy Barroso
yup, they are based on 0.4. If you are going to use dojo 1.0 you will end up putting the dojo stuff in your jsps, you might just do it in the templates and they will be reusable (for you :)) musachy On Jan 28, 2008 11:03 AM, paulbrickell <[EMAIL PROTECTED]> wrote: > > Yes, but the freemarker temp

Re: [S2] dojo plugin - I don't find the resources

2008-01-28 Thread paulbrickell
Yes, but the freemarker templates for head and div (and I guess the others too) are highly dependent on version 0.4.x of Dojo. So to make this work I would have to rewrite said templates. uhm, I may just do that. Cheers, Paul B. Musachy Barroso wrote: > > in 2.1 you can use your own dojo dist

Struts2 Portlet Bridge

2008-01-28 Thread Frans Thamura
hi all any info for JSR 301 like for Struts2 thx -- Frans Thamura Meruvian redefining civilization http://www.meruvian.com

Re: [S2] dojo plugin - I don't find the resources

2008-01-28 Thread Musachy Barroso
in 2.1 you can use your own dojo distribution by setting the "baseRelativePath" attr in the head tag. see http://cwiki.apache.org/WW/dojo-head.html for details. musachy On Jan 28, 2008 10:28 AM, paulbrickell <[EMAIL PROTECTED]> wrote: > > LOL. For an Englishman sometimes my English sucks. No I p

Struts Portlet

2008-01-28 Thread Frans Thamura
hi there anyone have success fully implements Struts2 with Spring and Hibernate can i have the example i try it here, and make my liferay crash is S2 work with Liferay? -- Frans Thamura Meruvian redefining civilization http://www.meruvian.com

Struts 2.0.11 Validation and Conversion

2008-01-28 Thread Filipe David Manana
Hi, I am getting errors from Parameters Interceptor while it tries to set a value for a property. My JSP is: The action is mapped to the method "String add()" of the following class: @Validation @Conversion public class AccountAction extends BaseAction { private Account

Re: [S2] dojo plugin - I don't find the resources

2008-01-28 Thread paulbrickell
LOL. For an Englishman sometimes my English sucks. No I probably dont want errors. What I meant was that this demonstrated to me the dependency on version 0.4.x of Dojo and thats a showstopper. I really want to use 1.0.x so I am going to have to choose between Struts 2.1 and its lovely stuff for D

Re: [S2] dojo plugin - I don't find the resources

2008-01-28 Thread paulbrickell
Yep, that works exactly like it says on wiki. out of curiosity just how does that automagic work? How on earth does the path "/whatever/struts/css_xhtml/validation.js" get resolved to a jar? Also I guess that the baseRelativePath attribute is a bit of red-herring. The restructuring between versio

The first DWR book has arrived!

2008-01-28 Thread Frank W. Zammetti
I know that lots of people use DWR with Struts, both S1 and S2, myself included, so I thought this might be of interest to folks here... Because ignoring my wife and kids for a few months is something I enjoy doing (whew, good thing she's not subscribed to this list!), I finally got around to writ

Re: [S2] dojo plugin - I don't find the resources

2008-01-28 Thread Dave Newton
--- paulbrickell <[EMAIL PROTECTED]> wrote: > 0.43 removes any javascript errors. > I think that's a bit of show-stopper for me. Wait, you have an actual requirement for JavaScript errors!? ;) > I still do not get a call to any action for the div. You should probably post at least the JSP sou

Re: [S2] dojo plugin - I don't find the resources

2008-01-28 Thread paulbrickell
Quick update, 0.43 removes any javascript errors. I think that's a bit of show-stopper for me. I still do not get a call to any action for the div. I do want to know why that is so I am going to try to track down the problem before I abandon all hope. Cheers, Paul B. paulbrickell wrote: > > D

Re: [S2] dojo plugin - I don't find the resources

2008-01-28 Thread Alexandru BARBAT
those resources are in 'struts2-core.jar' file. - Original Message - From: "paulbrickell" <[EMAIL PROTECTED]> To: Sent: Monday, January 28, 2008 4:21 PM Subject: Re: [S2] dojo plugin - I don't find the resources Dave, I hope you don't think you've taken on a lifetime commitment

Re: [S2] dojo plugin - I don't find the resources

2008-01-28 Thread Dave Newton
--- paulbrickell <[EMAIL PROTECTED]> wrote: > it appears that sx:head creates links for various resources... > > src="/application/struts/ajax/dojoRequire.js"> > type="text/css"/> > type="text/javascript"> > type="text/javascript"> > src="/application/struts/css_xhtml/validation.js" > type="t

Re: tag writers resources?

2008-01-28 Thread Joachim Ansorg
Hi Darren, writing a simple Struts2 tag is not that difficult. But getting started is. The documentation of the tag api is not very good, imho. The best start is in my opinion to get the Struts2 sources and read the source code of the existing struts2 tags. I'm posting a simple example with th

Re: [S2] dojo plugin - I don't find the resources

2008-01-28 Thread paulbrickell
Dave, I hope you don't think you've taken on a lifetime commitment here;-) I may be misunderstanding whats happening here, but here goes.. I have a really simple page that include the sx:head tag and an sx:div. Now I do not not see any call to the target action for the div tag. So I started loo

Re: [S2] dojo plugin - I don't find the resources

2008-01-28 Thread Dave Newton
--- paulbrickell <[EMAIL PROTECTED]> wrote: > what the head template outputs are some links (see my earlier post for the > details) to application/struts/* js and css files. > > So what I am trying to do is assemble the components that the head template > requires and put them in the right place.

Re: [S2] dojo plugin - I don't find the resources

2008-01-28 Thread Martin Gainty
Hi Paul any attempt to d/l the staging-plugin-1.0.0.zip displays invalid archive this is perhaps a tar or gzip? Thanks Martin - Original Message - From: "paulbrickell" <[EMAIL PROTECTED]> To: Sent: Monday, January 28, 2008 8:26 AM Subject: Re: [S2] dojo plugin - I don't find the resource

Re: [S2] dojo plugin - I don't find the resources

2008-01-28 Thread paulbrickell
Cant argue with that. I guess a little background on what I am up to would help. I am trying to build an application using the dojo plugin. So what I did was include a dependency on struts core 2.1.0 snapshot and the dojo-plugin 2.1.0 snapshot in my pom file added the http://people.apache.org/re

Re: [S2] dojo plugin - I don't find the resources

2008-01-28 Thread Dave Newton
--- paulbrickell <[EMAIL PROTECTED]> wrote: > OK Dave, for those of us who are interested in getting 2.1 working the > original poster's question seems entirely relevant. Sure, but I'm not entirely clear how I'd know what version they wanted to use if they don't tell me, and since 2.1 isn't relea

Re: Type converters: please help!!! :(

2008-01-28 Thread Dave Newton
--- ravi_eze <[EMAIL PROTECTED]> wrote: > public class newLongConverter extends StrutsTypeConverter { > public Object convertFromString(Map context, String[] values, Class > toClass) { > if (null == values || values.length == 0 || values[0]==null || > values[0].trim().length()==

Re: [S2] dojo plugin - I don't find the resources

2008-01-28 Thread paulbrickell
Thanks for the quick reply. I see the stuff now. However I don't think its gonna be that easy. When I use the sx:head element the template also gives me these... which seem to scattered amongst various files in the distribution. I guess I better start pulling them in. I hope I get compatib

Re: [S2] dojo plugin - I don't find the resources

2008-01-28 Thread Julien RICHARD
Hi, The dojo plugin is embedded in the source struts package. Look at struts2-core-2.0.11.jar\org.apache.struts2\static\dojo Regards On Jan 28, 2008 1:34 PM, paulbrickell <[EMAIL PROTECTED]> wrote: > > OK Dave, for those of us who are interested in getting 2.1 working the > original poster's q

Re: [S2] dojo plugin - I don't find the resources

2008-01-28 Thread paulbrickell
OK Dave, for those of us who are interested in getting 2.1 working the original poster's question seems entirely relevant. Just what does the line '- include the Dojo Plugin distributed with Struts 2 in your /WEB-INF/lib' mean. I cannot find any distribution or source for said plugin either. chee

Re: Struts 1.3.8: DTDs are gone?

2008-01-28 Thread Laurie Harper
Andreas Bachmann wrote: - In the past, I had to use also a validator-rules.xml with all the rules like "minlength", "maxlength" and "intRange", if I would like to use the Validator. Why is it not in the example projects? The file is now bundled within struts.jar. You no longer need to include

[STRUTS2] Error in Dojo / Howto update Dojo

2008-01-28 Thread Julien RICHARD
Hi, I'm new in the mailing list, so hi to all users. Little presentation : french java struts2 developer. I have a question. I want to use richtext box with dojo (textarea theme="ajax") but i cant. In fact, the embedded version of dojo have a error and i need to update the dojo version. How can i

Re: struts.objectTypeDeterminer

2008-01-28 Thread bjousse
Sure, I missed OGNL and Freemaker. Thnks a lot. Wes Wannemacher wrote: > > which jars do you have in WEB-INF/lib ? > > Could you be missing the other requirements (xwork2, freemarker, OGNL, > etc.)? > -- View this message in context: http://www.nabble.com/struts.objectTypeDeterminer-tp1512