Re: NPE

2010-02-04 Thread Lukasz Lenart
2010/2/5 Saeed Iqbal : > Looks like Google has fixed the OGNL issue however this is the new issue I > saw. Take a look here http://code.google.com/p/struts2-jquery/source/browse/#svn/showcase The showcase is here http://struts2-jquery.appspot.com/home.action Regards -- Łukasz http://www.lenart

RE: Dynamic values for rows attribute of s:textarea

2010-02-04 Thread Jim Talbut
That's it, thank you. Jim -Original Message- From: Wes Wannemacher [mailto:w...@wantii.com] Sent: 04 February 2010 20:08 To: Struts Users Mailing List Subject: Re: Dynamic values for rows attribute of s:textarea If you're calculating your value with s:s

Re: NPE

2010-02-04 Thread Saeed Iqbal
Looks like Google has fixed the OGNL issue however this is the new issue I saw. Please help. On Thu, Feb 4, 2010 at 7:14 PM, Saeed Iqbal wrote: > Any ideas why my application is throwing this error on Google App Engine > > Uncaught exception from servlet > java.lang.NullPointerException >

Re: array list validation

2010-02-04 Thread Stephen Ince
Okay. It looks like struts2 does not have collection validation. Does anyone know how to add it manually from Xworks? This is not posted on the struts2 site at all. It should be posted to a FAQ. This is my workaround? workspaces.{#this.name.length() > 0}.{? #this == false }.size

Re: array list validation

2010-02-04 Thread Stephen Ince
Okay. It looks what I want is a collection validator but it does not seem to work with struts2. Question. Does anyone know if the Xwork collection validator is bundled with struts2. I tried the following but it failed. workspaces.name Steve On Thu, Feb 4, 2010 at 6

Re: array list validation

2010-02-04 Thread Stephen Ince
Okay. In struts 1 they have an indexedListProperty attribute. Question. Does struts2 validation work for indexed lists? . I looked at the dtd and could not find it. I tried the following but it failed. Is it possible to use the struts1 validation frame works with struts2. Steve

Re: Problem with Exception Interceptor

2010-02-04 Thread Cimballi
Hum, it's strange because in fact at fatal level you should only have fatal log messages... On Thu, Feb 4, 2010 at 5:33 PM, DavidZaz wrote: > > As an update, I changed the level in my struts.xml to FATAL and the logging > started working. This behavior confuses me since I don't have any loggers

Re: how to customize the rendering of a tabbedpanel? struts2, dojo plugin

2010-02-04 Thread Stephen Ince
Jake, The sx: tags are based on the .4 dojo tags. I would just use the dojo tags themselves. The dojo plugin is also being depricated. The new dojo tags are at 1.4. I solved a similiar height problem on dojo 1.4 by doing the following. body, html { height: 99%;overflow:hidden; margin-

Re: Problem with Exception Interceptor

2010-02-04 Thread DavidZaz
As an update, I changed the level in my struts.xml to FATAL and the logging started working. This behavior confuses me since I don't have any loggers set higher than DEBUG/INFO in my log4j.xml file. However, this does lead me to believe that log4j and not struts is the problem. Cimballi-2 wrote:

Re: Problem with Exception Interceptor

2010-02-04 Thread Cimballi
:D Ok, I just noticed than the mailing list engine, or maybe google, removes the < param > tag... Cimballi On Thu, Feb 4, 2010 at 4:40 PM, DavidZaz wrote: > > I actually had the interceptor-ref configured like that in my source code. It > looks like my code didn't paste from eclipse very well.

Re: Problem with Exception Interceptor

2010-02-04 Thread DavidZaz
I actually had the interceptor-ref configured like that in my source code. It looks like my code didn't paste from eclipse very well. Sorry about that. Does the logCategory need to start with com.packageName? Can it start with error or org or something else? Cimballi-2 wrote: > > You intercept

Re: Problem with Exception Interceptor

2010-02-04 Thread Cimballi
You interceptor declaration should be like that : true com.xxx ERROR Cimballi On Thu, Feb 4, 2010 at 4:14 PM, DavidZaz wrote: > > I have an exception interceptor declared in my struts.xml, but no log > messages ever appear in the log category that

Problem with Exception Interceptor

2010-02-04 Thread DavidZaz
I have an exception interceptor declared in my struts.xml, but no log messages ever appear in the log category that I specified. In my struts.xml, I have the following: true error.unhandled WARN In my log4j.xml file, I have the followin

Re: Dynamic values for rows attribute of s:textarea

2010-02-04 Thread Wes Wannemacher
If you're calculating your value with s:set and setting a variable called, "len" did you try the following - On Thu, Feb 4, 2010 at 2:27 PM, Jim Talbut wrote: > Hi, > > I have: >                     name="requestDefinition" labelSeparator="" labelposition="left" > readonly="true" cols="80" row

Dynamic values for rows attribute of s:textarea

2010-02-04 Thread Jim Talbut
Hi, I have: Sometimes I have a LOT of data to display in the box, other times I have none at all. I'd like the box to resize based on the amount of data. My best effort involved getting the length of requestDefinition (using s:set), calculating a decent row count based on t

Re: Struts 2 - Global Validation

2010-02-04 Thread wild_oscar
As for the topic, I don't know the answer. As for the chinese address, I believe everyone in the mailing list gets those annoying mails. Can't someone just remove the address from the list? Stephen Turner wrote: > > Hello Arul, > > No worries - welcome to the list. > > The message you got

Re: dynamic i18n

2010-02-04 Thread Peter Symoens
Works fine. Why didn't I think of that? Thank you! Peter On 04/02/2010 17:14, Brian Thompson wrote: What do you get when you try ? -Brian On Thu, Feb 4, 2010 at 10:09 AM, Peter Symoenswrote: Sorry, my message was incorrect. prints out the (non-i18nzed) property value. prints

Re: dynamic i18n

2010-02-04 Thread Brian Thompson
What do you get when you try ? -Brian On Thu, Feb 4, 2010 at 10:09 AM, Peter Symoens wrote: > Sorry, my message was incorrect. > > prints out the (non-i18nzed) > property value. > > > prints out nothing. > > > > > > > On 04/02/2010 16:59, Lukasz Lenart wrote: > >> 2010/2/4 Peter Symoens: >>

Re: dynamic i18n

2010-02-04 Thread Peter Symoens
Sorry, my message was incorrect. prints out the (non-i18nzed) property value. prints out nothing. On 04/02/2010 16:59, Lukasz Lenart wrote: 2010/2/4 Peter Symoens: doesn't seem to do the trick. Did you try Regards ---

Re: dynamic i18n

2010-02-04 Thread Lukasz Lenart
2010/2/4 Peter Symoens : > doesn't seem to do the trick. Did you try Regards -- Łukasz http://www.lenart.org.pl/ Kapituła Javarsovia 2010 http://javarsovia.pl - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For

Re: Struts 2 - Global Validation

2010-02-04 Thread mailtolouis2020-struts
Hi, I've similar problem with you and posted the similar question just not long ago, but still not found any solution yet. Look like struts2 not supporting this feature anymore :( Pls let me know if you find any solution. Thanks. LV From: Arulmani V A To:

dynamic i18n

2010-02-04 Thread Peter Symoens
Hello, I need to iterate over a list of objects, and the name property of each object needs to be i18nzed. doesn't seem to do the trick. It just prints out the property value. Can someone tell which is the proper way to accomplish this? Could e.g. changing the place of the i18n interceptor

how to customize the rendering of a tabbedpanel? struts2, dojo plugin

2010-02-04 Thread Jake Vang
i'm using the in the struts2-dojo-plugin. i have a few questions on controlling the display/rendering of this component. 1. can i make the expand 100% in height? i've tried several things: a) place the inside a and set the height of the table to 100%, b) set the height to 100%, c) set the he

Re: NPE

2010-02-04 Thread Saeed Iqbal
Thanks. On Thu, Feb 4, 2010 at 7:17 PM, Cimballi wrote: > Look here, there are 2 tips, about security and swing, you will need : > > > http://whyjava.wordpress.com/2009/08/30/creating-struts2-application-on-google-app-engine-gae/ > > Cimballi > > > On Thu, Feb 4, 2010 at 9:14 AM, Saeed Iqbal wro

Re: NPE

2010-02-04 Thread Saeed Iqbal
That archetype doesnt exist anymore. On Thu, Feb 4, 2010 at 7:17 PM, Lukasz Lenart wrote: > 2010/2/4 Saeed Iqbal : > > Any ideas why my application is throwing this error on Google App Engine > > Take a look on struts2-convention-archetype > > > Regards > -- > Łukasz > http://www.lenart.org.pl/ >

Re: Struts 2 - Global Validation

2010-02-04 Thread Brian Thompson
On Thu, Feb 4, 2010 at 6:10 AM, Arulmani V A wrote: > Hi, > > Apologies for having posted the same query 5 times - it was purely > UNINTENTIONAL. I'm new to this list and when I posted my query for the > first > time, I got the following reply : > > Hi. This is the deliver program at bjtu.edu.cn.

Re: NPE

2010-02-04 Thread Lukasz Lenart
2010/2/4 Saeed Iqbal : > Any ideas why my application is throwing this error on Google App Engine Take a look on struts2-convention-archetype Regards -- Łukasz http://www.lenart.org.pl/ Kapituła Javarsovia 2010 http://javarsovia.pl --

Re: NPE

2010-02-04 Thread Cimballi
Look here, there are 2 tips, about security and swing, you will need : http://whyjava.wordpress.com/2009/08/30/creating-struts2-application-on-google-app-engine-gae/ Cimballi On Thu, Feb 4, 2010 at 9:14 AM, Saeed Iqbal wrote: > Any ideas why my application is throwing this error on Google App

Re: Struts 2 - Global Validation

2010-02-04 Thread Stephen Turner
Hello Arul, No worries - welcome to the list. The message you got was from a list subscriber's email system, not from the struts mailing list so it's outside the list admins' control. They happen from time to time - best to ignore those messages. Don't get discouraged - this is a good plac

NPE

2010-02-04 Thread Saeed Iqbal
Any ideas why my application is throwing this error on Google App Engine Uncaught exception from servlet java.lang.NullPointerException at org.apache.struts2.dispatcher.mapper.DefaultActionMapper.getUriFromActionMapping(DefaultActionMapper.java:533) at org.apache.struts2.dispatch

array list validation

2010-02-04 Thread Stephen Ince
I am using struts 2 and I am trying to use the validation framework. I am having difficulty trying to validate a list. e.g workspaces[0].name workspaces[1].name workspaces[2].name workspaces[3].name workspaces[4].name workspaces[5].name I would like to require name. I have tried the following bu

array list validation

2010-02-04 Thread Stephen Ince
I am using struts 2 and I am trying to use the validation framework. I am having difficulty trying to validate a list. e.g workspaces[0].name workspaces[1].name workspaces[2].name workspaces[3].name workspaces[4].name workspaces[5].name I would like to require name. I have tried the following bu

array list validation

2010-02-04 Thread Stephen Ince
I am using struts 2 and I am trying to use the validation framework. I am having difficulty trying to validate a list. e.g workspaces[0].name workspaces[1].name workspaces[2].name workspaces[3].name workspaces[4].name workspaces[5].name I would like to require name. I have tried the following but

RE: Struts 2 - Global Validation

2010-02-04 Thread Arulmani V A
Hi, Apologies for having posted the same query 5 times - it was purely UNINTENTIONAL. I'm new to this list and when I posted my query for the first time, I got the following reply : Hi. This is the deliver program at bjtu.edu.cn. I'm afraid I wasn't able to deliver your message to the following a

Struts 2.1.8.1 custom freemarker template path

2010-02-04 Thread GF
Hello. is anyone using successfully Struts 2.1.8.1 using a CUSTOM freemarker template path (placed in the Web Application and not in the classpath)? I mean: It seems that if I just extract the themes from the struts jar and I put it in the Web Application paths it stops work. T