Re: ognl and getText for s:textfield/placeholder

2011-06-07 Thread Stephen Ince
should be available soon ;-) Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ 2011/6/7 Stephen Ince : Lukasz, I reported the issue. Thx again for you time. Steve https://issues.apache.org/jira/browse/WW-3644 - Origina

Re: ognl and getText for s:textfield/placeholder

2011-06-07 Thread Stephen Ince
extfield/placeholder https://issues.apache.org/jira/browse/WW 2011/6/7 Stephen Ince : Sure. Can you point to the where I should report the issue? placeHolder will be an issue for HTML5 and anyone wanting to use resource keys. Steve - Original Message - From: "Lukasz Lenart"

Re: ognl and getText for s:textfield/placeholder

2011-06-07 Thread Stephen Ince
findString(value)); } Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ 2011/6/7 Stephen Ince : Lukasz, Thx for your response. A resource key. I tried that. It seems that strut2 will only ognl evaluate certains fields and "pla

Re: ognl and getText for s:textfield/placeholder

2011-06-07 Thread Stephen Ince
e - Original Message - From: "Lukasz Lenart" To: "Struts Users Mailing List" Sent: Tuesday, June 07, 2011 5:57 AM Subject: Re: ognl and getText for s:textfield/placeholder 2011/6/7 Stephen Ince : placeholder="%{getText('placeHolder.Username')}

ognl and getText for s:textfield/placeholder

2011-06-07 Thread Stephen Ince
I am trying to use ognl/getText to assign a placeholder attribute for a s:textfield. I can not seem to get it to work. I am using struts 2.2.3. e.g. My hunch is that the placeholder field is not being evaluated . I am using dojo with struts2 and would like to add placeholder attributes where n

Re: Struts2 + Dojo 1.5

2010-11-30 Thread Stephen Ince
I am currently using Struts2 + Dojo 1.5. Dojo documentation is getting better but the dojo user community is awesome. I would not use the dojo plugin. - Original Message - From: "Dave Newton" To: "Struts Users Mailing List" Sent: Tuesday, November 30, 2010 12:26 Subject: Re: Struts2 +

validation

2010-06-30 Thread Stephen Ince
I have to two regarding struts2 validation Does struts2 support actionName-methodName-validation.xml?. I know struts2 supports actionClass-alias-validation.xml but I am looking for validation on a method within a class. Is it possible to use xml validation on a collection of objects. e..g elem

Re: Struts time picker does not render in IE7/IE8

2010-06-29 Thread Stephen Ince
The struts2 dojo plugin is way behind the dojo release. I use the dojo frame all the time with struts2. The dojo frame work is at 1.4.and the struts2 dojo plugin is at .4. Just use the dojo 1.4 framework directly. cssStyle="width:90px" /> cssStyle="width:90px" /> Steve - Original Messa

Re: Struts Users Mailing List - question

2010-05-27 Thread Stephen Ince
I think you just have to subscribe with the new email. I don't think you can update your info. Steve - Original Message - From: Polakovic, Juraj To: stephenpi...@gmail.com Sent: Thursday, May 27, 2010 16:02 Subject: Struts Users Mailing List - question Hi Stephen, So

nested struts2 validation

2010-05-20 Thread Stephen Ince
Hi, I would like to do nested struts2 validation. I have two questions. 1) How do I specify the validation for the following field. Can some point me to some documenation for the expression validation. searchResults.{#this.resource.name.length() > 0}.{? #this == false }.size() <= 0 2) Ca

Struts Users Mailing List

2010-05-20 Thread Stephen Ince
Hi, I would like to do nested struts2 validation. I have two questions. 1) How do I specify the validation for the following field. Can some point me to some documenation for the expression validation. searchResults.{#this.resource.name.length() > 0}.{? #this == false }.size() <= 0 2) Ca

nested struts2 validation

2010-05-19 Thread Stephen Ince
Hi, I would like to do nested struts2 validation. I have two questions. 1) How do I specify the validation for the following field. Can some point me to some documenation for the expression validation. searchResults.{#this.resource.name.length() > 0}.{? #this == false }.size() <= 0 2)

Re: retrieve i18n application messages.

2010-03-24 Thread Stephen Ince
, March 24, 2010 7:12 AM Subject: Re: retrieve i18n application messages. S2 doesn't do anything special. It leverages the native Java resource bundles and locale. I would advise you to begin by looking at the Locale class. On Wed, Mar 24, 2010 at 4:01 AM, Stephen Ince wrote: Does any

retrieve i18n application messages.

2010-03-24 Thread Stephen Ince
Does anyone know how to programmatically retrieve the i18n messages outside the context of an action class. I know with the action you can call getText. I need similiar functionality. I have access to the http request headers. I assume I need the accept language request header. e.g. String acc

dojo dynamic attributes with struts2

2010-02-24 Thread Stephen Ince
Hi, I am trying t set a dynamic attribute "required" in my s:textfield input field. It seems struts is stripping it away. Is there a way to set a required attribute. e.g. generates Any help would be appreciated. Steve - To

Re: ajax validation with IE8

2010-02-22 Thread Stephen Ince
IE8 is a little stubborn, you have to delete temporary files. On Mon, Feb 22, 2010 at 6:12 AM, Stephen Ince wrote: > Does anyone know how I can I patch /struts/css_xhtml/validation.js?  I > tried replacing template/css_xhtml/validation.js in struts-core but > that does not seem to

Re: ajax validation with IE8

2010-02-22 Thread Stephen Ince
52 AM, Stephen Ince wrote: > Here is the link. > https://issues.apache.org/jira/browse/WW-3393 > > On Mon, Feb 22, 2010 at 1:05 AM, Lukasz Lenart > wrote: >> 2010/2/21 Stephen Ince : >>> Okay I found the problem. I find it hard to believe that anyone is >>> usi

Re: ajax validation with IE8

2010-02-22 Thread Stephen Ince
Here is the link. https://issues.apache.org/jira/browse/WW-3393 On Mon, Feb 22, 2010 at 1:05 AM, Lukasz Lenart wrote: > 2010/2/21 Stephen Ince : >> Okay I found the problem. I find it hard to believe that anyone is >> using css_xhtml theme with this bug. It doesn't work in IE

Re: ajax validation with IE8

2010-02-21 Thread Stephen Ince
("span"); for(i = 0; i < elems.length; ++i ) { if (elems[i].className && elems[i].className.match(/(wwlbl|wwctrl)/)) return elems[i]; } return enclosingDiv.getElementsByTagName("span")[0]; } On Sun, Feb 21, 2010 at 7:28 AM, Stephen

ajax validation with IE8

2010-02-21 Thread Stephen Ince
Hi, I am trying to do client-side ajax validation and I am failing. IE throws an error alert, "invalid argument". It seems that the error is really struts2. I also get weird behaviour with ff. The error message comes after the tag. I have a few questions. 1) How do you do client-side validation

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

2010-02-05 Thread Stephen Ince
ferenced by dojo.require(..) right? thanks for the heads up (i was > worried about those remote servers going away too). > > On Fri, Feb 5, 2010 at 9:40 AM, Stephen Ince wrote: >> Jake, >>  I actually ran into a lot problems accessing dojo from other >> servers. They all

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

2010-02-05 Thread Stephen Ince
gt; i didn't want to do programming (Java or JavaScript) right on the > page. > > On Thu, Feb 4, 2010 at 6:10 PM, Stephen Ince wrote: >> 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

Re: array list validation

2010-02-04 Thread Stephen Ince
lse }.size() <= 0 Steve On Thu, Feb 4, 2010 at 8:19 PM, Stephen Ince wrote: > 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 >

Re: array list validation

2010-02-04 Thread Stephen Ince
6:34 PM, Stephen Ince wrote: > 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

Re: array list validation

2010-02-04 Thread Stephen Ince
On Thu, Feb 4, 2010 at 7:45 AM, Stephen Ince wrote: >  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].n

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-

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: using a custom struts.multipart.parser in struts2.1.8.1

2010-01-27 Thread Stephen Ince
Brice, I went through a similiar issue. Here is how I resolved it. I spent days on it. You have do it via a plugin. This is not documented any where. create a plugin. e.g fileupload.jar and put in under WEB-INF/lib The jar file should have the classes and a struts-plugin.xml file. struts-plugi

Re: adding UploadProgressListener to a struts2 upload

2010-01-17 Thread Stephen Ince
you tried the Execute and Wait interceptor? > http://struts.apache.org/2.0.14/docs/execute-and-wait-interceptor.html > I propose you this solution, assuming that you want to accomplish the > "progress meter effect". > > Cheers, > Jorge > > > On 17-01-2010 18:5

adding UploadProgressListener to a struts2 upload

2010-01-17 Thread Stephen Ince
Hi, I would like to add a UploadProgressListener to a struts file upload. I tried setting the struts.multipart.parser property but I can't seem to override the setting. I also tried downloading the "Advance File upload plugin" but no download link. So I basically have 3 questions. 1) Is it poss

Re: where to set 'struts.multipart.parser' property in struts2?

2010-01-17 Thread Stephen Ince
Lenart wrote: > 2010/1/13 Stephen Ince : >>    > name="jakartax" >> class="org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequestx" >> scope="default"/> >>     > > Is that class exists > org.apache.struts2.dispatcher.mul

Re: where to set 'struts.multipart.parser' property in struts2?

2010-01-13 Thread Stephen Ince
parser" is not being set. Here is my configuration. Any help would be greatly appreciated. Steve WEB-INF/classes/struts.xml On Wed, Jan 13, 2010 at 2:16 AM, Lukasz Lenart wrote: > 2010/1/13 Stephen Ince : >> WEB-INF/classes/struts.xml

where to set 'struts.multipart.parser' property in struts2?

2010-01-12 Thread Stephen Ince
Hi, I am using struts2 version 2.1.8.1 and I am trying to set the struts.multipart.parser property. I can't seem to set it. I have tried every where, one place at a time. This is what I have tried. WEB-INF/classes/struts.xml WEB-INF/classes/struts.properties struts.multipart.parser=or