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. s:textfield dojoType=dijit.form.ValidationTextBox theme=simple placeholder=%{getText('placeHolder.Username')} id=j_username name=j_username

Re: ognl and getText for s:textfield/placeholder

2011-06-07 Thread Stephen Ince
cssStyle=width:180px / Steve - Original Message - From: Lukasz Lenart lukasz.len...@googlemail.com To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, June 07, 2011 5:57 AM Subject: Re: ognl and getText for s:textfield/placeholder 2011/6/7 Stephen Ince stephenpi...@gmail.com

Re: ognl and getText for s:textfield/placeholder

2011-06-07 Thread Stephen Ince
(localName, 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 stephenpi...@gmail.com: Lukasz, Thx for your response. A resource key. I tried that. It seems that strut2 will only ognl

Re: ognl and getText for s:textfield/placeholder

2011-06-07 Thread Stephen Ince
: ognl and getText for s:textfield/placeholder https://issues.apache.org/jira/browse/WW 2011/6/7 Stephen Ince stephenpi...@gmail.com: 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

Re: ognl and getText for s:textfield/placeholder

2011-06-07 Thread Stephen Ince
a bit, SNAPSHOT version 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 stephenpi...@gmail.com: Lukasz, I reported the issue. Thx again for you time. Steve https

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 davelnew...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday,

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 input

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. s:textfield name=time dojoType=dijit.form.TimeTextBox value=now

Re: Struts Users Mailing List user@struts.apache.org - 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 user@struts.apache.org - question

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. input type=text name=searchResults[${i}].resource.name .. validation.xml validator

Struts Users Mailing List user@struts.apache.org

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. input type=text name=searchResults[${i}].resource.name .. validation.xml validator

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. input type=text name=searchResults[${i}].resource.name .. validation.xml validator

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

Re: retrieve i18n application messages.

2010-03-24 Thread Stephen Ince
@struts.apache.org Sent: Wednesday, 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

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. s:textfield required=true / generates input type=text required=true / Any help would be appreciated. Steve

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 lukasz.len...@googlemail.com wrote: 2010/2/21 Stephen Ince stephenpi...@gmail.com: Okay I found the problem. I find it hard to believe that anyone is using css_xhtml theme

Re: ajax validation with IE8

2010-02-22 Thread Stephen Ince
, Stephen Ince stephenpi...@gmail.com wrote: Here is the link. https://issues.apache.org/jira/browse/WW-3393 On Mon, Feb 22, 2010 at 1:05 AM, Lukasz Lenart lukasz.len...@googlemail.com wrote: 2010/2/21 Stephen Ince stephenpi...@gmail.com: Okay I found the problem. I find it hard to believe

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 stephenpi...@gmail.com 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

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: ajax validation with IE8

2010-02-21 Thread Stephen Ince
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 Ince stephenpi...@gmail.com wrote: Hi,  I am trying to do client-side ajax

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

2010-02-05 Thread Stephen Ince
programming (Java or JavaScript) right on the page. On Thu, Feb 4, 2010 at 6:10 PM, Stephen Ince stephenpi...@gmail.com 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 depricated. The new dojo tags are at 1.4.  I

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

2010-02-05 Thread Stephen Ince
are referenced 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 stephenpi...@gmail.com wrote: Jake,  I actually ran into a lot problems accessing dojo from other servers. They all went away when I

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

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

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

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. style type=text/css body, html { height:

Re: array list validation

2010-02-04 Thread Stephen Ince
Is it possible to use the struts1 validation frame works with struts2. Steve On Thu, Feb 4, 2010 at 7:45 AM, Stephen Ince stephenpi...@gmail.com 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

Re: array list validation

2010-02-04 Thread Stephen Ince
param name=propertyworkspaces.name/param Steve On Thu, Feb 4, 2010 at 6:34 PM, Stephen Ince stephenpi...@gmail.com 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

Re: array list validation

2010-02-04 Thread Stephen Ince
.{#this.name.length() gt; 0}.{? #this == false }.size() lt;= 0 /param message key=workspace.name.required / /validator Steve On Thu, Feb 4, 2010 at 8:19 PM, Stephen Ince stephenpi...@gmail.com wrote: Okay. It looks what I want is a collection validator but it does not seem to work

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.

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

2010-01-17 Thread Stephen Ince
Lenart lukasz.len...@googlemail.com wrote: 2010/1/13 Stephen Ince stephenpi...@gmail.com:    bean type=org.apache.struts2.dispatcher.multipart.MultiPartRequest name=jakartax class=org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequestx scope=default/    constant name

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

Re: adding UploadProgressListener to a struts2 upload

2010-01-17 Thread Stephen Ince
wrote: Hi, Have 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:57, Stephen Ince wrote: Hi,    I

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

2010-01-13 Thread Stephen Ince
=struts.multipart.parser value=jakartax / constant name=struts.devMode value=false / include file=loadgeneral.xml/ On Wed, Jan 13, 2010 at 2:16 AM, Lukasz Lenart lukasz.len...@googlemail.com wrote: 2010/1/13 Stephen Ince stephenpi...@gmail.com: WEB-INF/classes/struts.xml    constant name

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 constant name=struts.multipart.parser