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
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
(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
: 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
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
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,
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
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
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
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
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
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
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
@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
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
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
, 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
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
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
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
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
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
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
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
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
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:
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
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
.{#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
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.
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
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
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
=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
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
35 matches
Mail list logo