Re: problem with deleting objects from a collection

2009-07-12 Thread Dimitrios Christodoulakis
I am starting to think that using embeddable might be more hassle than it sounds. i am considering switching to an entity object and dealing with a collection of entities instead. Given that I will not have any shared references anyway, it might solve the problem. I tried attaching a unique field

Re: Struts 2.1.6's bug? or my configuration error?

2009-07-12 Thread Yuan12345
Does anybody know? or who can make a simple trial? -- View this message in context: http://www.nabble.com/Struts-2.1.6%27s-bug--or-my-configuration-error--tp24437329p24454577.html Sent from the Struts - User mailing list archive at Nabble.com. -

Re: Struts2, JQuery and JSON result to create a dynamic ajax website

2009-07-12 Thread Wes Wannemacher
On Sunday 12 July 2009 03:49:54 pm GF wrote: > Hello all, > i wrote a simple guide that explains how to use together Struts2 and > JQuery to create dynamic content with Ajax and JSON. > > http://www.zulutown.com/blog/2009/07/12/ajax-dynamic-content-with-struts2-j >query-and-json-plugin/ > > I hope

Re: s:checkbox inside a s:iterator and values in a Integer[]

2009-07-12 Thread Ignacio de Córdoba
Thanks a lot for reply. It works OK that way. I had to make a getter for the Category objects as a List and maintain the setter for the categoryId Integer array. It would be great if s:checkbox could also check when to pre-check the checkbox in the same way as s:checkboxlist does (I think I used s

Re: s:checkbox inside a s:iterator and values in a Integer[]

2009-07-12 Thread Musachy Barroso
you need to specify the "value" attribute, which is the one that will make it checked or not, for example, assume "possibleValues" is the list of possible values, and "selectedValues" is the list of currently selected values, and both lists contain objects that have an int "id" field (same type of

Re: Struts2, JQuery and JSON result to create a dynamic ajax website

2009-07-12 Thread Frans Thamura
Cool. Can I have the full code? Frans --Original Message-- From: GF To: Struts Users ML ReplyTo: Struts Users Mailing List Subject: Struts2, JQuery and JSON result to create a dynamic ajax website Sent: Jul 13, 2009 02:49 Hello all, i wrote a simple guide that explains how to use together

s:checkbox inside a s:iterator and values in a Integer[]

2009-07-12 Thread Ignacio de Córdoba
Hello, I've browsed nabble, google, ... but can't find a simple example on how to do something very simple. I need to iterate through, let's say, a picture category list, showing each category as a s:checkbox. The picture belongs to some of these categories (and user can changed that, or course,

Re: problem with deleting objects from a collection

2009-07-12 Thread Dimitrios Christodoulakis
Thanks Dave, Yes, the isn't supposed to be there Thanks for pointing this out. Indeed, it has to be an object there, in order to do the remove from the collection. Since this value-type component (entry) does not have a primary key to look it up from, I am a bit at a loss how to continue fro

Re: problem with deleting objects from a collection

2009-07-12 Thread Dave Newton
Dimitrios Christodoulakis wrote: I tried adding one more column like this, hoping the entry property will be available to the DeleteEntry action via the mini-form. What's that supposed to be doing? It's not a form field; there's no entry reference being passed back. Even i

problem with deleting objects from a collection

2009-07-12 Thread Dimitrios Christodoulakis
Good afternoon, I am re-stating a problem I am facing, for which I provided a kind of complicated description before: Deleting objects from a collection. The owning, parent object is a hibernate persistent entity, which contains a collection of components (value-type objects). Such components don'

Struts2, JQuery and JSON result to create a dynamic ajax website

2009-07-12 Thread GF
Hello all, i wrote a simple guide that explains how to use together Struts2 and JQuery to create dynamic content with Ajax and JSON. http://www.zulutown.com/blog/2009/07/12/ajax-dynamic-content-with-struts2-jquery-and-json-plugin/ I hope someone can appreciate it Thank You -

Re: reachable valuestack properties exposed by previous actions?

2009-07-12 Thread Dimitrios Christodoulakis
Appreciate the warning. Thanks, I'll try to avoid that then. Alright, I'll take the chance to re-state my problem in a new thread. On Sun, Jul 12, 2009 at 11:15 AM, Dave Newton wrote: > Dimitrios Christodoulakis wrote: >> >> Thanks for the warning. Actually, I thought it might help me solve >> ano

Re: not displaying errors!

2009-07-12 Thread Dave Newton
Martin Gainty wrote: he's afraid someone from the list might yell at him for being "too verbose" I don't think anybody minds verbose when it's on-topic. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For ad

Re: reachable valuestack properties exposed by previous actions?

2009-07-12 Thread Dave Newton
Dimitrios Christodoulakis wrote: Thanks for the warning. Actually, I thought it might help me solve another issue I am facing: deleting objects from a collection. I tried to explain in my previous thread but, I think I might have not described the problem correctly. To paraphrase an old saying:

RE: not displaying errors!

2009-07-12 Thread Martin Gainty
he's afraid someone from the list might yell at him for being "too verbose" Martin __ Verzicht und Vertraulichkeitanmerkung Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilun

Re: reachable valuestack properties exposed by previous actions?

2009-07-12 Thread Dimitrios Christodoulakis
Thanks for the warning. Actually, I thought it might help me solve another issue I am facing: deleting objects from a collection. I tried to explain in my previous thread but, I think I might have not described the problem correctly. On Sun, Jul 12, 2009 at 10:14 AM, Dave Newton wrote: > Dimitrios

Re: not displaying errors!

2009-07-12 Thread Dave Newton
taj uddin wrote: My guess would be, u must be redirecting the action on success. Why do you only abbreviate the shortest words? Why not just type them out? Are you texting your mailing list messages? Dave - To unsubscribe,

Re: reachable valuestack properties exposed by previous actions?

2009-07-12 Thread Dave Newton
Dimitrios Christodoulakis wrote: Thanks, I will look into action chaining and see if it can help me in this situation. Oh, please don't; it just leads to maintenance nightmares. Dave - To unsubscribe, e-mail: user-unsubscr...

Re: not displaying errors!

2009-07-12 Thread taj uddin
Hi Kavitha,      The action error message will not be carried to the JSP page if u r doing the redirect-action. The Message will be lost. If so, then u have to store the error message in the session and retrieve it in the redirected action class. In case, if u r not doing the redirect-action

Re: reachable valuestack properties exposed by previous actions?

2009-07-12 Thread Dimitrios Christodoulakis
Thanks, I will look into action chaining and see if it can help me in this situation. On Sun, Jul 12, 2009 at 8:22 AM, Dave Newton wrote: > Dimitrios Christodoulakis wrote: >> >> This is a quick question that I am having, more on the theory side. >> So, what happens to properties exposed on the va

Re: Using Java Generics in Struts Actions

2009-07-12 Thread Laetitia DUBY
On Sun, Jul 12, 2009 at 3:20 PM, Dave Newton wrote: > You don't describe the circumstances under which you get the error, so it's > difficult to help. It might just be OGNL's result vs. action property thing, > which is ignorable. I am not sure what you mean by circumstances, so I'll add all the re

Re: reachable valuestack properties exposed by previous actions?

2009-07-12 Thread Dave Newton
Dimitrios Christodoulakis wrote: This is a quick question that I am having, more on the theory side. So, what happens to properties exposed on the valuestack by some action which was called in the past, meaning the application workflow has progressed and other actions were called after that. Is t

Re: Using Java Generics in Struts Actions

2009-07-12 Thread Dave Newton
You don't describe the circumstances under which you get the error, so it's difficult to help. It might just be OGNL's result vs. action property thing, which is ignorable. Dave Laetitia DUBY wrote: Hi all ! I'm new to Struts2 and I'm starting with implementing a simple app. So far, everythi

reachable valuestack properties exposed by previous actions?

2009-07-12 Thread Dimitrios Christodoulakis
Hello, This is a quick question that I am having, more on the theory side. So, what happens to properties exposed on the valuestack by some action which was called in the past, meaning the application workflow has progressed and other actions were called after that. Is that property somehow still

Using Java Generics in Struts Actions

2009-07-12 Thread Laetitia DUBY
Hi all ! I'm new to Struts2 and I'm starting with implementing a simple app. So far, everything was fine. But now I want to complexify a bit by introducing java generics (to prevent from repeating same treatments in several classes) and integrating with Spring. I tried writing a GenericAction whi

Re: Actions are not Garbage Collected

2009-07-12 Thread musomesa
It is unlikely but if your actions have a finalize() method they won't be collected by minor GCs Chris -Original Message- From: Anselmo To: user@struts.apache.org Sent: Sat, Jul 11, 2009 2:55 am Subject: Re: Actions are not Garbage Collected The only references I hav

Re: Struts 2 Plug-in and JSP 404

2009-07-12 Thread musomesa
JSP tags wont't funtion inside jars -- the "JSP"s you might have spotted in jars are probably using Freemarker tags which will work in jars. Chris -Original Message- From: Dale Newfield To: Struts Users Mailing List Sent: Fri, Jul 10, 2009 5:06 am Subject: Re: Struts 2 Plug-in