What Chris has said is right.
But what Jose Luis asked for is a inject mechanism likes
ParameterAware which takes all the request params through one Map, but
not through several property.
So I think the simpler (also more Quick And Dirty) way is:
(1)Create a interface, likes:
public interface
My way to solve this kind of problem:
(1) Use a DTO class as the data modal for columns of each row.
Every column is represented by one property of the DTO class.
For example:
public class Info {
private boolean use;
private String name;
private int id;
// getter
Hi,
I had the same problem, but it was time ago.
I asume from your code that you followed this:
http://displaytag.sourceforge.net/1.2/export_filter.html
and using Struts 1.
If using this with Struts2 you should have to change the url-pattern to
*.action or whatever extension you are using.
On Tue, Oct 26, 2010 at 4:32 AM, Li Ying wrote:
I think this is a better design, because the data modal is more
compliant with OO principles.
Better than what?
(And as an aside, there's nothing particularly OO about what's
essentially a struct, although from a pragmatic viewpoint,
particularly
I mean:
Representing associated data by a DTO class and then holding DTO
instances in one List
is better than
Holding data in several separated Lists each represent one column.
2010/10/26 Dave Newton davelnew...@gmail.com:
On Tue, Oct 26, 2010 at 4:32 AM, Li Ying wrote:
I think this is a
Oh, I understand. Definitely agree; I think the OP just isn't aware of
some S2 functionality and/or best practices, that's all.
Dave
On Tuesday, October 26, 2010, Li Ying liying.cn.2...@gmail.com wrote:
I mean:
Representing associated data by a DTO class and then holding DTO
instances in one
Listen I googled quite a while before I asked here and all I saw was sea of
lost souls asking same question dating back to 2007...but NOT answers...if
it is so simple and obvious then why docs for checkbox are not mentioning
this trivial case. .. BTW would you please point me to the site where
Thanks for your time but what you show me is exactly what I was already
doing but inputted changes are NOT being seen in that list when I tried
to post it. That was my question or rather problem
On Tue, Oct 26, 2010 at 4:32 AM, Li Ying liying.cn.2...@gmail.com wrote:
My way to solve this
This question has been asked and answered quite a few times. I agree
the documentation should reflect this; as we're a volunteer group all
assistance is appreciated. Feel free to file a CLA and update the docs
to accurately reflect current behavior, and add entries to the FAQ if
it addresses a
As I've said I am using pretty much same approach as it was suggested above
by the other poster.
I have list.
On Tue, Oct 26, 2010 at 12:20 PM, Dave Newton davelnew...@gmail.com wrote:
This question has been asked and answered quite a few times. I agree
the documentation should reflect
On Tue, Oct 26, 2010 at 12:50 PM, Peter Bliznak wrote:
As I've said I am using pretty much same approach as it was suggested above
by the other poster. I have list.
Well, both Ying and I do it in a way that works, so I'd suggest
there's at least *some* difference in our approaches. Without any
Opps...damn gmail.
As I've said I am using pretty much same approach as it was suggested above
by the other poster.
I have list:
private ListWorkOrderTask workOrderTaskList;
with getter and setter'
EAch : WorkOrderTask have :
Long id;
boolean completed ;// checkbox
with getters and setter's
R u by any chance creating the new list in the action class. If so it won't
work and u will get null.
Sent from my iPhone
On Oct 26, 2010, at 10:23 AM, Peter Bliznak pbliz...@gmail.com wrote:
Opps...damn gmail.
As I've said I am using pretty much same approach as it was suggested above
Nopebasically first line in the action is to call getter on that
list and it is already null . man :-(
On Tue, Oct 26, 2010 at 2:33 PM, satyanarayana katta
saty.pra...@gmail.comwrote:
R u by any chance creating the new list in the action class. If so it
won't work and u will get
Your names are wrong; if you're trying to reference a property of a
member in a list, you need to reference the list--how else would it
know what it's supposed to set? Think of OGNL names the exact same way
you'd use a Java name.
The type conversion documentation covers this (somewhat obliquely,
In the email above I was typing fast ans made mistakes but in code I have
everything OK.
As I`ve said I can load list and show all records and column with checkboxes
is displayed correctly as well.
It is only when I try to get list back after submit I have problem.
On Tue, Oct 26, 2010 at 3:05
And I told you why you're having that problem. The difference between
your code (doesn't work) and Ying's code (does work) tells you the
same thing. And if you understand how things like the s:iterator...
tag work, you understand why it displays correctly, even though it
fails on the submit. Yes?
Yep, got it ... I really didn't realize that method of referring to stuff on
OLGN stack could make such a difference.
All works now, thanks Dave!
On Tue, Oct 26, 2010 at 3:23 PM, Dave Newton davelnew...@gmail.com wrote:
And I told you why you're having that problem. The difference between
No problem! It's always a mystery until it isn't :)
Dave
On Tue, Oct 26, 2010 at 3:42 PM, Peter Bliznak pbliz...@gmail.com wrote:
Yep, got it ... I really didn't realize that method of referring to stuff on
OLGN stack could make such a difference.
All works now, thanks Dave!
On Tue, Oct
Hi y'all,
I am looking for an answer to the question What do you recommend
a newbie read to get started with Struts 2. Of course the canonical
documentation is the Wiki but what do you have at your desk or are
expecting to get? I have the Struts 2 in Action (Don Brown, Chad Michael
Dave/Peter,
Was the issue resolved due to names of methods and properties not matching?
Curious,
Ashlon
On Tue, Oct 26, 2010 at 2:42 PM, Peter Bliznak pbliz...@gmail.com wrote:
Yep, got it ... I really didn't realize that method of referring to stuff
on
OLGN stack could make such a
On 10/26/2010 4:03 PM, Dave Newton wrote:
I know of nothing currently in progress, except for my nascent Inside
Struts 2 (IS2) which I don't expect to see before early Spring.
Dave
On Tue, Oct 26, 2010 at 4:00 PM, Chris Mawata
chris_mawata_str...@mathcove.net wrote:
Hi y'all,
I am
Dave/Peter,
Was the issue resolved due to names of methods and properties not matching?
Curious,
Ashlon
On Tue, Oct 26, 2010 at 2:42 PM, Peter Bliznak pbliz...@gmail.com wrote:
Yep, got it ... I really didn't realize that method of referring to stuff
on
OLGN stack could make such a
Actually, I have tested these sample codes before I sent it to you,
and it worked very well.
If it not working on your environment, maybe something else is getting wrong.
Does any exception message appeared?
2010/10/27 Peter Bliznak pbliz...@gmail.com:
Thanks for your time but what you show me
I think so.
In the final, if you want to submit any data to member of a list, the
[name] of the HTML element should be something like:
listName[indexNumber].propertyName
Or strust2 can not know where this parameter should be applied to.
If your code can work, the first thing should check is:
If
25 matches
Mail list logo