On Fri, Apr 29, 2011 at 9:01 PM, Greg Akins wrote:
> In this case, the session has the right value when the setter is
> executed, but the OGNL expression #session.birthYearEnabled is null
> (or seem to be null)
Just as a sanity check, birthYearEnabled (above) and
birthYearDisplayed (original pos
On Fri, Apr 29, 2011 at 7:23 PM, Okan Özeren wrote:
>
> Hi,
>
> I didn't read all of these, but maybe there are some usefull tips in this
> article:
> http://www.opensymphony.com/xwork/wikidocs/ExpressionValidator%20Tips.html
Not quite. Thanks though.
That article is mostly about the Expres
Hi,
I didn't read all of these, but maybe there are some usefull tips in this
article:
http://www.opensymphony.com/xwork/wikidocs/ExpressionValidator%20Tips.html
Okan Özeren.
On Fri, Apr 29, 2011 at 9:40 PM, Greg Akins wrote:
> Can anyone help me understand how to use OGNL to capture session d
It appears that exception is occuring when Struts is attempting to set the
value. I'm betting the list is empty and it's calling .get(5) (or whatever
the first index happens to be), so it can call .setName() on it, and blowing
up because there ain't one. If youvare trying to update an existing li
I didn't think you'd even need to have the type conversion properties
file, but w/o generic accessors I'm not sure.
The above JSP still has parens instead of square brackets.
d.
On Fri, Apr 29, 2011 at 4:07 PM, Joe wrote:
> Dave Newton-6 wrote:
> Try the square brackets again.
>
> Chris Pratt w
Dave Newton-6 wrote:
Try the square brackets again.
Chris Pratt wrote:
Try: value="%{name}"
That gets the value into the textbox, but when I submit the form, I get either
nothing in the action (square brackets) or an exception (using curly brackets):
All my save action does is print out
Chris,
Thanks for the reply. I think this is the ValidationInterceptor rather than the
workflow interceptor. The stack trace is as follows:
ava.lang.NullPointerException
com.devcentre.yubi.application.action.NewSupplierAction.validate(NewSupplierAction.java:49)
sun.reflect.NativeMethodA
I don't use the those annotations, but from what I can tell, it only affects
the XML validation (validation interceptor) not the programmatic validation
(workflow interceptor). You can switch from execute to one of the
unvalidated method names (I think input, cancel, and two others I can't
think o
Try: value="%{name}"
(*Chris*)
On Apr 29, 2011 12:14 PM, "Dave Newton" wrote:
> Try the square brackets again.
>
> On Fri, Apr 29, 2011 at 2:52 PM, Joe wrote:
>> Chris Pratt wrote:
>>
>> Oh, duh, I'm not sure why I didn't see it before. You can either just
use
>> %{id} and then you don't need
Try the square brackets again.
On Fri, Apr 29, 2011 at 2:52 PM, Joe wrote:
> Chris Pratt wrote:
>
> Oh, duh, I'm not sure why I didn't see it before. You can either just use
> %{id} and then you don't need the id="bean" on the s:iterate tag. Or, you
> can use %{#bean.id}.
>
> No joy. If I use
Hi all,
I am having a few issues with some code which worked a few days ago but has
stopped working for some reason. I have no idea what has changed to cause this
but here are the symptoms.
I have an action class called NewSupplierAction which extends ActionSupport and
overrides the validate m
Chris Pratt wrote:
Oh, duh, I'm not sure why I didn't see it before. You can either just use
%{id} and then you don't need the id="bean" on the s:iterate tag. Or, you
can use %{#bean.id}.
No joy. If I use the tags like so:
the page source looks like what I'd expect, but no values in the
Can anyone help me understand how to use OGNL to capture session data in
this annotation?
I'm trying to use FieldExpressionValidator The Annotation has this
[expression = "!birthYearDisplayed || !birthYear.equals('')"]
birthYearDisplayed is on the session and set to true
When I execute the cod
Ah, older version of S2--yeah.
Dave
On Fri, Apr 29, 2011 at 1:57 PM, Chris Pratt wrote:
> Oh, duh, I'm not sure why I didn't see it before. You can either just use
> %{id} and then you don't need the id="bean" on the s:iterate tag. Or, you
> can use %{#bean.id}.
> (*Chris*)
> On Apr 29, 2011
Oh, duh, I'm not sure why I didn't see it before. You can either just use
%{id} and then you don't need the id="bean" on the s:iterate tag. Or, you
can use %{#bean.id}.
(*Chris*)
On Apr 29, 2011 10:18 AM, "Joe" wrote:
> Chris Pratt wrote:
>
> Shouldn't that be:
>
>
>
> I changed my JSP as ind
Ah, ok. So the SourceForge one is not the one I'm using then. I'm
extending org.apache.struts2.StrutsTestCase in the test I'm having
problems with. Thanks for your input!
On Fri, Apr 29, 2011 at 1:47 PM, Dave Newton wrote:
> On Fri, Apr 29, 2011 at 1:35 PM, Justin Robbins wrote:
>> Lastly, can
On Fri, Apr 29, 2011 at 1:35 PM, Justin Robbins wrote:
> Lastly, can anyone explain what the deal is with StrutsTestCase?
> There's a tutorial page for using it with Struts 2 on
> struts.apache.org but the SourceForge page
> (http://strutstestcase.sourceforge.net/) for it hasn't been updated
> sinc
Hi Folks,
This is my first post to user@struts.apache.org. I yesterday posed
this same question on stackoverflow but haven't garnered any responses
so I figured I'd give this list a try. Hope that's cool.
http://stackoverflow.com/questions/5823709/npe-in-strutstestcase-after-enabling-tiles
I
Chris Pratt wrote:
Shouldn't that be:
I changed my JSP as indicated and still didn't get values in the text boxes.
The source of the page looks like this:
which to me indicates that it is having a problem with the "bean.id" part of
the equation.
Wouldn't square brackets indicate an index
Yep.
Sometimes I don't use enough words :)
Dave
On Fri, Apr 29, 2011 at 1:01 PM, Chris Pratt wrote:
> Shouldn't that be:
>
>
>
> Is that what you meant Dave?
> (*Chris*)
>
> On Fri, Apr 29, 2011 at 9:07 AM, Dave Newton wrote:
>
>> Try with square brackets first; see what happens.
>>
>> Dave
Shouldn't that be:
Is that what you meant Dave?
(*Chris*)
On Fri, Apr 29, 2011 at 9:07 AM, Dave Newton wrote:
> Try with square brackets first; see what happens.
>
> Dave
>
> On Fri, Apr 29, 2011 at 12:04 PM, Joe wrote:
> >
> >
> > On Apr 29, 2011, Dave Newton-6 wrote:
> >>What does the JS
Try with square brackets first; see what happens.
Dave
On Fri, Apr 29, 2011 at 12:04 PM, Joe wrote:
>
>
> On Apr 29, 2011, Dave Newton-6 wrote:
>>What does the JSP look like?
>>Dave
>
> Sorry, it is the same as the example with the exception of fixing a minor
> typo in the textfield tag (the ex
On Apr 29, 2011, Dave Newton-6 wrote:
>What does the JSP look like?
>Dave
Sorry, it is the same as the example with the exception of fixing a minor typo
in the textfield tag (the example is missing a colon):
<%@ taglib prefix="s" uri="/struts-tags"%>
Experimenting with indexed
What does the JSP look like?
Dave
On Fri, Apr 29, 2011 at 11:02 AM, Joe wrote:
> private List beanList = new ArrayList();
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@s
I've been trying to get the Indexed List example from the Type Conversion
documentation
(http://struts.apache.org/2.0.14/docs/type-conversion.html#TypeConversion-AnadvancedexampleforindexedListsandMaps)
to work without success.
The action is as follows (note I initialize the List with some T
25 matches
Mail list logo