It needs to be big decimal as I use other numbers that have no currency
information associated.
I've fixed it - I was not coverting Number to BigDecimal explicitly at the
end of the method, so somewhere in the middle of the OgnlRuntime class it
was swallowing up the illegal args or invalid param
Thanks, I will give it a try.
On 2/15/08, Jeromy Evans <[EMAIL PROTECTED]> wrote:
>
> I'm not sure if the validators can be applied to collections.
>
> You can validate it yourself:
> - either implement Validateable in your action and check the property
> in the corresponding method; or
> - ch
I'm not sure if the validators can be applied to collections.
You can validate it yourself:
- either implement Validateable in your action and check the property
in the corresponding method; or
- check the collection in your execute method and return "input" if its
invalid
If you action exten
Sounds great. Nothing stands out to me.
Maybe turn on developer mode to see if there's any errors logged when
trying to set the value (struts.devMode=true)
Is it possible it can't instantiate an AmountDTO object or call the
corresponding getter before setting the BigDecimal value?
Also try to
Hello Jeromy,
I do have getters for this property as well.
I am not been able to find a way out on this.
I have to check whether or not the selected list is empty.
I could not get any hints from the mailing list archive too.
On 2/15/08, Jeromy Evans <[EMAIL PROTECTED]> wrote:
>
> Prashant Khanal
I've implemented this now... but its not working correctly. I'm using Struts
2.0.9 (am aware of the new versions).
I have an AmountDTO which has a CurrencyCode (String), and a BigDecimal.
I have created an xwork-conversion.properties in the root of the classpath
which has the following line in
That was it Dave, thanks. I'm using Appfuse and it declares a StaticFilter in
the web.xml - adding /struts/* to the includes did the trick.
newton.dave wrote:
>
> --- wkbutler <[EMAIL PROTECTED]> wrote:
>> I'm trying to enable the OGNL debug console (using request param
>> 'debug=console'),
Prashant Khanal wrote:
@RequiredFieldValidator(key="sequence.selectedLevelsNotEmpty", message =
"one or more levels must be selected")
public void setSelectedLevels(List selectedLevels) {
this.selectedLevels = selectedLevels;
}
As i have to validate the right select element
I've got an anecdotal report of Spring MVC performance being *much*
better than Struts 2.
And zero data to back it up. ;) I'm trying to get the version numbers
that were used for testing (most likely the 2.0.11 GA release) and
more information on what the tests looked like. I'm told that it was
--- [EMAIL PROTECTED] wrote:
> It seems very odd that OGNL tried issuing chart.setHeight("${height}")
Why? It has a java.lang.String parameter; it's matching method signatures.
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
F
${height}
${width}
I double checked my configuration and I have
itJustHappens="true" :)
It seems very odd that OGNL tried issuing chart.setHeight("${height}")
Caused by: java.lang.NoSuchMethodException: setHeight(java.
Is it possible your decorator is missing the tag in
its head section?
daveck wrote:
It works if I put in the of the html.
daveck wrote:
Hi,
I am having problem using an ajax tabbedPanel with sitemesh.
If I don't decorate page.jsp, the tabbedPanel works fine.
As soon as I decorate it,
daveck wrote:
sitemesh is taking the content from the first pair of tags in the main.jsp
(my main decorator) and putting it in the
tag of the page it's trying to decorate!
Is it possible that you're using a remote tab and sitemesh is doing it's
job decorating the ajax html response?
is there any concrete example of how to modify an existing
template,
thanks!
--
View this message in context:
http://www.nabble.com/radio-tag---how-to-have-the-items-order-vertically--tp15468384p15492763.html
Sent from the Struts - User mailing list archive at Nabble.com.
--
When you use theme="simple" the radio buttons are rendered as plain html
inputs:
eg.
xianwinwin wrote:
you suggested:
Use theme="simple" on the radio then add breaks between each radio
button; or
Q: what do you mean by "add breaks between each radio
button"
Thank you!
---
--- xianwinwin <[EMAIL PROTECTED]> wrote:
> you suggested:
>
> Use theme="simple" on the radio then add breaks between each radio
> button; or
>
> Q: what do you mean by "add breaks between each radio
> button"
You'll probably need to either: modify an existing template,
create your own, or pl
you suggested:
Use theme="simple" on the radio then add breaks between each radio
button; or
Q: what do you mean by "add breaks between each radio
button"
Thank you!
--
View this message in context:
http://www.nabble.com/radio-tag---how-to-have-the-items-order-vertically--tp15468384p15492163
--- [EMAIL PROTECTED] wrote:
> Have you ever been asked to write children's books? :-)
Yes, and illustrate.
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
start here
http://struts.apache.org/2.0.11/docs/select.html
M-
- Original Message -
From: "Stanley, Eric" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Thursday, February 14, 2008 6:19 PM
Subject: and AJAX
All,
Need some help and or direction in how to chain together
--- [EMAIL PROTECTED] wrote:
> The ChartAction extends ActionSupport. Wouldn't the
> action-mapping-OGNL-parsing be looking for height/width getters on the
> ChartAction?
I think we're all talking past each other here.
It's the responsibility of the *result* to parse OGNL in its parameters: the
All,
Need some help and or direction in how to chain together tags using ajax. I understand the basics of how it works, but I cant
make it happen using struts 2. Does anyone have some examples or
something I can check out? I would be very appreciative.
E. Ryan Stanley
Phone: 720.578.3703
Pag
D --
Have you ever been asked to write children's books? :-)
S
On Thu, Feb 14, 2008 at 4:33 PM, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- [EMAIL PROTECTED] wrote:
> > I understand the quirky plug-in, but that does not explain
> > why OGNL is looking for a setHeight(String) on ChartResult!
>
Hey Dale --
The ChartAction extends ActionSupport. Wouldn't the
action-mapping-OGNL-parsing be looking for height/width getters on the
ChartAction?
Scott
On Thu, Feb 14, 2008 at 4:39 PM, Dale Newfield <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > I am puzzled at why S2 is not execu
[EMAIL PROTECTED] wrote:
I am puzzled at why S2 is not executing getHeight() on my ChartAction
and substituting the height and weight into these params.
This is done by StrutsResultSupport. I would guess that whatever class
is implementing your chart result does not extend/leverage that capab
--- [EMAIL PROTECTED] wrote:
> I understand the quirky plug-in, but that does not explain
> why OGNL is looking for a setHeight(String) on ChartResult!
Because parameters can be for the result (for example, FreeMarkerResult's
"contentType" parameter).
> I am puzzled at why S2 is not executing
I understand the quirky plug-in, but that does not explain why OGNL is
looking for a setHeight(String) on ChartResult! If I hardcode ints into
these two parms, life is good. I am puzzled at why S2 is not executing
getHeight() on my ChartAction and substituting the height and weight into
these par
--- wkbutler <[EMAIL PROTECTED]> wrote:
> I'm trying to enable the OGNL debug console (using request param
> 'debug=console'), and am receiving the error
>
>There is no Action mapped for namespace /struts and action name
> webconsole
>
> since struts is trying to map the URL. The webconsol
Hi -
Newbie question- I hope this isn't too obvious.
I'm trying to enable the OGNL debug console (using request param
'debug=console'), and am receiving the error
There is no Action mapped for namespace /struts and action name
webconsole
since struts is trying to map the URL. The webcon
I wonder if making your object implement serializable will have any affect
on the Xwork object. Have you tried to see what happens?
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
> From: Brian Relph <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List
> Date: T
--- [EMAIL PROTECTED] wrote:
> Anyone realize why this is not working? I have get/set methods in my
> ChartAction, but the getters are not fetching the values for the Result.
>
>
>
> ${height}
> ${width}
>
>
Probably bec
sitemesh is taking the content from the first pair of tags in the main.jsp
(my main decorator) and putting it in the
tag of the page it's trying to decorate!
The first pair of tags could be any html tag (, ,,
etc...).
The code is in a post I left earlier today.
Crazy... any help would b
:)
On Thu, Feb 14, 2008 at 3:42 PM, Dave Newton <[EMAIL PROTECTED]> wrote:
> Teach a man to fish...
>
>
>
> --- Musachy Barroso <[EMAIL PROTECTED]> wrote:
> > set includeParams = "'none'"
> >
> > On Thu, Feb 14, 2008 at 3:31 PM, Dave Newton <[EMAIL PROTECTED]> wrote:
> > > --- Paranoid_Fabio
Maybe this helps:
http://struts.apache.org/2.x/docs/jsf-plugin.html
Venkata Nagendra wrote:
Hello,
I'm new to Struts2 & JSF. Please help with the following questions.
Where can I find documentation for Struts2 JSF Integration.
What steps I should follow to create a web application using Str
Teach a man to fish...
--- Musachy Barroso <[EMAIL PROTECTED]> wrote:
> set includeParams = "'none'"
>
> On Thu, Feb 14, 2008 at 3:31 PM, Dave Newton <[EMAIL PROTECTED]> wrote:
> > --- Paranoid_Fabio <[EMAIL PROTECTED]> wrote:
> > >
> > > en_US
> > >
> > >
>
set includeParams = "'none'"
On Thu, Feb 14, 2008 at 3:31 PM, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- Paranoid_Fabio <[EMAIL PROTECTED]> wrote:
> >
> > en_US
> >
> >
> >
>
> > I'm using the "url" tag correctly.Am I?
>
> No.
>
>
> > What i'm doing wron
Anyone realize why this is not working? I have get/set methods in my
ChartAction, but the getters are not fetching the values for the Result.
${height}
${width}
--
Scott
[EMAIL PROTECTED]
--- Paranoid_Fabio <[EMAIL PROTECTED]> wrote:
>
> en_US
>
>
>
> I'm using the "url" tag correctly.Am I?
No.
> What i'm doing wrong?
You're using an unknown value for the "includeParams" attribute.
http://struts.apache.org/2.0.11/docs/url.html
Dave
---
Ok.I've read that but even using includeParams="none" params are shown in the
URL. My code is like this:
en_US
When the user clicks on the English flag, the "showAdminPage" is called
switching the Locale. I'm using the "url" tag correctly.Am I?
Cli
Yes, for my own objects, i am going to implement the serializable interface,
however, the xwork class, even if i were to rewrite/replace it, i would also
have to rewrite the interceptor to use the new object ...
On 2/14/08, Randy Burgess <[EMAIL PROTECTED]> wrote:
>
> That would be the first thin
I just re-ran my local version of the code without problems, and
verified that the base class does have a getModel() and setModel()
methods. If you contact me off-list I can supply another copy of the
code, that might be a resolution. Did you have any problems running the
code from chapter 5?
Hello,
In Chapter 6 of "Practical Apache Struts 2 Web 2.0 Projects", It explains how
to use the scope interceptor to create sort of wizard pages.
I've been trying to figure these out, but cannot get this to work.
Even the included example (downloadable from
http://www.apress.com/book/view/159059
Hello,
I'm new to Struts2 & JSF. Please help with the following questions.
Where can I find documentation for Struts2 JSF Integration.
What steps I should follow to create a web application using Struts2 & JSF.
Where can I get a good working example of Struts2 JSF Integration.
If anyone has a w
Ah-ha! The theme="ajax" attribute has to be on the head tag, not on the
picker. That is the ticket.
It works like a charm now!
Thank you Jeromy!
On Wed, Feb 13, 2008 at 5:17 PM, Jeromy Evans <
[EMAIL PROTECTED]> wrote:
> StrutsTimePicker is an extension of the dropdowndatepicker included with
http://struts.apache.org/2.0.11/docs/why-are-request-parameters-appended-to-our-hyperlinks.html
regards
musachy
On Thu, Feb 14, 2008 at 1:33 PM, Paranoid_Fabio <[EMAIL PROTECTED]> wrote:
>
> Hi, i'm new to struts. I'm developing a web application and I can't
> understand why parameters still in
Hi, i'm new to struts. I'm developing a web application and I can't
understand why parameters still in the url beetwen actions calls. I try to
explain it better (sorry for my poor english):
I call "myAction?paramx=valuex" and the url becomes
".../myAction?paramx=valuex" correctly.
Then, my new d
It works if I put in the of the html.
daveck wrote:
>
> Hi,
> I am having problem using an ajax tabbedPanel with sitemesh.
> If I don't decorate page.jsp, the tabbedPanel works fine.
> As soon as I decorate it, the in the
> section of page.jsp doesn't make it through to the final decorated
That would be the first thing I would do and generate a serialVersionUID for
the pojo.
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
> From: Brian Relph <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List
> Date: Thu, 14 Feb 2008 10:38:28 -0600
> To: Struts U
Just so it's clear, you not only don't need it, but it's presence would
probably cause subtle (well, maybe not so subtle) problems. Don't use
it in a JSP 2.x+ container.
> -Original Message-
> From: Antonio Petrelli [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 14, 2008 8:50 AM
>
Hi Antonio,
Thanks for the response. My answers are inline.
- Anup
-Original Message-
From: Antonio Petrelli [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 13, 2008 11:56 PM
To: Struts Users Mailing List
Subject: Re: Question on usage of EL in tiles:put name attribute
2008/2/14, A
Hi,
I am having problem using an ajax tabbedPanel with sitemesh.
If I don't decorate page.jsp, the tabbedPanel works fine.
As soon as I decorate it, the in the section
of page.jsp doesn't make it through to the final decorated page. As a
result, only the html is displayed.
Any help would be app
2008/2/14, javaskull <[EMAIL PROTECTED]>:
>
> I'm using RAD 7.0 and WAS 6.1 which is a JSP 2.0 container. If I'm
> using the Struts 1.38 version, should I not put Struts-EL in the WEB-
> INF\lib folder? I had read that Struts-EL won't work with JSP 2.0 and
> I should not use Struts-EL for that.
Hey everyone, I seem to be coming across two issues when running multiple
jvms with session sharing ... i have not run into this during my previous
testing, since i was not worried about a high-availability environment, and
did not test inside a cluster...
Anyways, i receive this exception when us
I'm using RAD 7.0 and WAS 6.1 which is a JSP 2.0 container. If I'm
using the Struts 1.38 version, should I not put Struts-EL in the WEB-
INF\lib folder? I had read that Struts-EL won't work with JSP 2.0 and
I should not use Struts-EL for that. Thanks,
-G
P.S. EL Expressions are not working in
Yea, I will do that.
But its still unsolved, so if anybody has got some solution, please
feel free to guide me.
Thank you..
On Thu, Feb 14, 2008 at 4:18 PM, Ian Roughley <[EMAIL PROTECTED]> wrote:
> This question will probably result in an answer / better solution if
> asked on the Spring forums.
Do you have the S2 filter defined in your web.xml?
The URL would be:
> http://localhost:8080/appContext/employeeAcct.action
where "appContext" is whatever context you're deploying to.
--- Arun <[EMAIL PROTECTED]> wrote:
> Is it needed that I use s:url[?]
It's easier and less error-prone.
Da
This question will probably result in an answer / better solution if
asked on the Spring forums.
/Ian
--
Ian Roughley
From Down & Around, Inc.
Consulting * Training / Mentoring * Agile Process * Open Source
web: http://www.fdar.com - email: [EMAIL PROTECTED]
Rushikesh Thakkar wrote:
Thank
2008/2/14, Matthew Seaborn <[EMAIL PROTECTED]>:
> We are currently trialling Struts 2 as a replacement as the framework of
> choice in the place of Struts 1 and was wondering how 'active' is the
> development on the current framework? I see that last year a new
> release came out every few mont
Sorry My web.xml was in wrong place.
Now I cannot start my app. It says ERROR: ListenerStart.
Why is this hyappening?
On 2/14/08, Arun <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I had been following the example in
> http://struts.apache.org/2.x/docs/struts-2-spring-2-jpa-ajax.html to build
> my own a
Hi,
I had been following the example in
http://struts.apache.org/2.x/docs/struts-2-spring-2-jpa-ajax.html to build
my own app.
But I do not want to use the custom library or tiles or ognl or struts tags
or dojo. I am using plain jsp and el.
I just want to hit the POJO action class thru url.
What u
I'll give you my opinion:
Yes, struts 2 development is active but the activity ebbs and flows with
the volunteers. The "stall" in a release is due to a number of
compounding factors:
- Struts 2.1 includes some major changes from 2.0.11. 2.0.11 is stable
and no *major* bugs are known to be affec
Hi Matthew,
The params interceptor is calling setId on ActionSupport (the default
action), not on your action that has the setId method, so an exception is
being thrown as there's no matching setter whatsoever. You may have a
config error.
All params are treated as arrays because its valid in HT
> Almost. Really it should be the other way around, since you don't want
> user-set parameters to override your static parameters.
I agree with you.
Thanks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
Thanks Ian and Laurie for looking into this.
Excuse me Laurie, for missing out an imp. info. that "web.xml also contains
spring ContextLoaderListener declaration".
I now feel that it is more a spring / tomcat issue and not a really a
struts2 issue.
I observed the tomcat's console logs while it was
Thanks for the prompt response. Having had a look at the code in Xwork
that comes as part of Struts 2 (included below) it seems to log it
regardless of the devMode.
This is the same for 2.0.4 and 2.1.0.
I cannot believe this hasn't been spotted before now, so I assume I am
doing something wrong.
On this page:
http://struts.apache.org/2.x/docs/crud-demo-i.html
It proposes this code to set the department of an employee.
In the case of an "Update", I think this code will map to a :
getEmployee.getDepartment().setDepartmentId(value)
Than I want to merge with JPA the employee, but of cour
Matthew Seaborn wrote:
Why is this happening and short of creating my own TypeConverter or
blocking it in the logger config, how can I stop this error being logged
for GET requests?
AFAIK this error is only logged in devMode.
---
This appears to have been mentioned a number of times in the Struts 2
and XWork forums but I cannot find a real answer:
Using Struts 2.0.11 I am experiencing the following problem.
I have an action with the method
setId(Integer id) { ... }
When this value is set via a HTTP request through
We are currently trialling Struts 2 as a replacement as the framework of
choice in the place of Struts 1 and was wondering how 'active' is the
development on the current framework? I see that last year a new
release came out every few months, but there has been nothing since
September.
_
68 matches
Mail list logo