Re: struts2 and dojo

2009-03-11 Thread Lukasz Lenart
2009/3/11 Mohan Radhakrishnan radhakrishnan.mo...@gmail.com: Are you supporting JQuery in the future ? There is work-in-progress on jquery-plugin I know I should be expecting only voluntary support from a open-source project. Will the developers who are still working on DOJO support in Struts

Re: Get jsp content in struts action

2009-03-11 Thread Nils-Helge Garli Hegvik
I don't know how to solve your problem, but you can look at this thread for some good advice: http://www.mail-archive.com/user@struts.apache.org/msg85536.html Maybe you'll find this useful as well: http://forums.sun.com/thread.jspa?threadID=730559messageID=4220069 Nils-H On Tue, Mar 10, 2009 at

Re: logic:iterate issue

2009-03-11 Thread Paweł Wielgus
Hi Joe, You can try to output authorId, without property set on, maybe these objects are empty inside. Also, did You imported logic tags into jsp? Best greetings, Pawel Wielgus. 2009/3/10, Russo, Joe rus...@cadmus.com: The following bean:write code outputs:

select problem

2009-03-11 Thread elyes sallem
Hello, i have a select component associated with a property selectedProject the problem is after calling the action (with an onchange event), in the action i get the correct project id , but i lost the project label so , after the action call, it displays the wrong project (as i said but the

addActionError will vanish Tree in JSP

2009-03-11 Thread sajidbigler
Hi I am using other fileds with Tree when we do submit i am checking whether the field is empty or not if empty i add action error and redirect it to same jsp.in this case tree vanish. so i tried to declare a variable (Category treeRootNode) in action class(where i evaluate the field)

Have a s:a href .. as the Label of a CheckBox

2009-03-11 Thread Ransika de Silva
Hi all, There is a requirement of having a http link as the label of Struts CheckBox, so the the user can either select the checkbox or click the label and go to a different page. Thanks, Ransika

Re: Have a s:a href .. as the Label of a CheckBox

2009-03-11 Thread Jim Kiley
...and so I have to guess that your question is: How can I make a hyperlink be the label for a checkbox? Sometimes it helps to actually ask a question in your question. Anyway: Don't have the hyperlink actually be the label per se. Give the checkbox no label and just put the hyperlink next to

Re: Have a s:a href .. as the Label of a CheckBox

2009-03-11 Thread Ransika de Silva
Yes, your assumption is absolutely correct. Thanks for the reply but sadly that technique is not good enough for us, we want the label to be a hyperlink. Regards, On Wed, Mar 11, 2009 at 6:32 PM, Jim Kiley jhki...@summa-tech.com wrote: ...and so I have to guess that your question is: How can I

Re: Have a s:a href .. as the Label of a CheckBox

2009-03-11 Thread Jim Kiley
Can you solve this problem with s:label? On Wed, Mar 11, 2009 at 9:07 AM, Ransika de Silva rans...@gmail.com wrote: Yes, your assumption is absolutely correct. Thanks for the reply but sadly that technique is not good enough for us, we want the label to be a hyperlink. Regards, On Wed,

RE: logic:iterate issue

2009-03-11 Thread Russo, Joe
Pawel, Thank you very much for responding. I tried the following and it worked. Thanks again, Joe logic:present name=summaryArchiveForm property=allAdditionalAuthors logic:iterate id=allAdditionalAuthors name=summaryArchiveForm property=allAdditionalAuthors tr bgcolor=#E6E6E6 td align=center

Re: [S2] Famoso Double conversion problem in S2 2.0.11.1!

2009-03-11 Thread Bert Van den Brande
I think this may be caused by this bug : https://issues.apache.org/struts/browse/WW-3018 On Sat, Feb 28, 2009 at 9:25 PM, Milan Milanovic milanmilanov...@yahoo.com wrote: No solutions ? Could maybe this be a problem, in this code: s:iterator ... ... s:url id=refUrl action=setValue        

Re: [OT] Authorization and Authentication Question

2009-03-11 Thread Ashish Kulkarni
HiThanks for the suggestion, this application which i need to do this is developed using Struts 1.2.6, can i add Spring Security to this, just as a drop in, is there any how to documents to add spring support to struts web application Ashish On Tue, Mar 10, 2009 at 7:43 PM, Jim Kiley

Re: [OT] Authorization and Authentication Question

2009-03-11 Thread Wes Wannemacher
Spring Security is it's own filter, and my experience is that it is pretty easy to integrate with just about any type of web-app. As far as existing tutorials, I'd say to check google. -Wes On Wed, Mar 11, 2009 at 9:52 AM, Ashish Kulkarni ashish.kulkarn...@gmail.com wrote: HiThanks for the

springOpenEntityManagerInViewFilter (with Hibernate)

2009-03-11 Thread fr Rouxel
Hi, do you know how this filter manage the rollback when a db error occurres? Is it simple to add an struts 2 error message? Right now, I'm using a struts 2 interceptor, and I can manage the error message. (If you are interesting by my code...just ask) And I wonder if it's better to use the

RE: [OT] Authorization and Authentication Question

2009-03-11 Thread Security Management
I got it working in less than a day using the docs. The petshop tutorial page got me going. -Original Message- From: Ashish Kulkarni [mailto:ashish.kulkarn...@gmail.com] Sent: Wednesday, March 11, 2009 9:53 AM To: Struts Users Mailing List Subject: Re: [OT] Authorization and

s:radio and s:checkboxlist - how to customize listValue property.

2009-03-11 Thread boraldo
When I use that 2 components in my form I need to set attributes listValue and listKey. That attributes as I understand require a field of a bean that is a member of collection represented by list attribute. Example: s:radio list=types name=type label=Type listValue=name listKey=id / That

Re: s:radio and s:checkboxlist - how to customize listValue property.

2009-03-11 Thread Jim Kiley
The easiest (I'm not going to say best) solution is to make a fake getter on your bean. Make a getListLabel() method that composes a String from the values that you want to display in the list label, and then set the listValue to be listLabel. This is the way I've done this in the past and it

Re: Mapping FreeMarker results in struts-rest-plugin

2009-03-11 Thread wkbutler
Thanks Bill - my action class is actually called SubdivisionController. Interesting you're getting responses for ftl requests. These URI's resolve for me: http://localhost:8080/lotmap/subdivision/id1 http://localhost:8080/lotmap/subdivision/id1.xml and these fail with a 404

Re: [OT] Authorization and Authentication Question

2009-03-11 Thread Ashish Kulkarni
HiThanks for the help, i will check and get back to this mail with the results On Wed, Mar 11, 2009 at 10:11 AM, Security Management list-subscripti...@secmgmt.com wrote: I got it working in less than a day using the docs. The petshop tutorial page got me going. -Original Message-

one action with two buttons

2009-03-11 Thread PEGASUS84
good evening, in my project i've to create a form with two buttons wich make two different process: i try this method: s:form id=configureform name=configureform SOME table here or some fields /s:form s:url id=configure value=Configure.action / s:a href=%{configure} showLoadingText=false

Re: s:radio and s:checkboxlist - how to customize listValue property.

2009-03-11 Thread boraldo
It isn't ideal if you want to keep your model carefully isolated from your UI Unfortunately it is the case, so I need another solution. Jim Kiley wrote: The easiest (I'm not going to say best) solution is to make a fake getter on your bean. Make a getListLabel() method that composes a

Struts 2 and GWT in Hosted Mode?

2009-03-11 Thread Stephan Schröder
Am i right in saying that if you use struts 2 as the server backend of gwt, you can't use the hosted mode browser!? The hosted mode browser seems only capable of launching gwt modules not normal webapps. I'm i right? Regards, Stephan -- View this message in context:

RE: one action with two buttons

2009-03-11 Thread Kra, Aime yao (TEK System)
Did you try the following sample. It works for me http://struts.apache.org/2.x/docs/multiple-submit-buttons.html Regards Aimé Kra -Original Message- From: PEGASUS84 [mailto:pegasu...@hotmail.it] Sent: Wednesday, March 11, 2009 10:52 AM To: user@struts.apache.org Subject: one action

Re: disadvantage by not using the default execute() method for ActionClass?

2009-03-11 Thread Greg Lindholm
Most of my action classes are CRUD style so they have multiple execute methods, doNew(), doCreate(), doEdit(), doUpdate(), etc. I prefix these methods with 'do' so they are easy to find and recognize (eclipse outline view sorts them alphabetically so the prefix keeps them together). Wick, Dan

Re: How do my Actions get to Hibernate so they can persist my objects?

2009-03-11 Thread Peterus Greatus
Wes Wannemacher wrote: Spring is not as hard as it appears. The Spring libraries are dauntingly big, but in reality, the core of spring is actually quite easy to understand, you just have to wrap your mind around Inversion of Control. It will come naturally if you've used it before,

Re: one action with two buttons

2009-03-11 Thread mitch gorman
PEGASUS84 wrote: good evening, in my project i've to create a form with two buttons wich make two different process: i try this method: s:form id=configureform name=configureform SOME table here or some fields /s:form s:url id=configure value=Configure.action / s:a href=%{configure}

RE: one action with two buttons

2009-03-11 Thread Martin Gainty
the assigned value to the submit button has to be unique as illustrated here http://struts.apache.org/2.x/docs/multiple-submit-buttons.html note the distinction of buttonName to compare to 'Submit' or 'Cancel' if (Submit.equals(buttonName))HTH Martin

Struts2 Standards, guidelines, recommendations

2009-03-11 Thread Norris Shelton
I am working to get Struts2 approved as a production technology. Can you point me to any standards or guidelines or implementation recommendations? Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Shelton Consulting, LLC ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton

Re: [OT] Authorization and Authentication Question

2009-03-11 Thread Ashish Kulkarni
HiI was able to configure LDAP to do authentication, but how do i use UserDetailsService, is there any example of how to use this and implement it in my project to get user and role from DB2 database On Wed, Mar 11, 2009 at 10:50 AM, Ashish Kulkarni ashish.kulkarn...@gmail.com wrote: HiThanks

Re: [OT] Authorization and Authentication Question

2009-03-11 Thread Wes Wannemacher
On Wed, Mar 11, 2009 at 3:23 PM, Ashish Kulkarni ashish.kulkarn...@gmail.com wrote: HiI was able to configure LDAP to do authentication, but how do i use UserDetailsService, is there any example of how to use this and implement it in my project to get user and role from DB2 database

Re: [OT] Authorization and Authentication Question

2009-03-11 Thread Lukasz Lenart
2009/3/11 Ashish Kulkarni ashish.kulkarn...@gmail.com: HiI was able to configure LDAP to do authentication, but how do i use UserDetailsService, is there any example of how to use this and implement it in my project to get user and role from DB2 database I did that like this, extended

this is driving me nucking futs!

2009-03-11 Thread mitch gorman
okay, can anyone (musachy, david, martin, i'm looking in your direction!) tell me how to do what i'm trying to do, here? i've got a list of items i'm iterating over. for each item, i want to have one or more links to actions, with parameterization from the item's data. this means, using

Struts 1: Window resizing issue

2009-03-11 Thread SanJ.SANJAY
When I resize the the IE explorer window, the JSP goes blank sometimes. Does anyone knows this issue? May be some blank call is going to action? -- View this message in context: http://www.nabble.com/Struts-1%3A-Window-resizing-issue-tp22463249p22463249.html Sent from the Struts - User

Re: this is driving me nucking futs!

2009-03-11 Thread mitch gorman
mitch gorman wrote: okay, can anyone (musachy, david, martin, i'm looking in your direction!) tell me how to do what i'm trying to do, here? i've got a list of items i'm iterating over. for each item, i want to have one or more links to actions, with parameterization from the item's

Re: this is driving me nucking futs!

2009-03-11 Thread Wes Wannemacher
It seems like you are created a variable variable name... I am assuming that there is a reason why you are using s:a / and wanting to refer to the constructed URL by id, rather than just doing the following - a href=s:url namespace=/ action=linkAction s:param name=count value=%{count} /

Re: this is driving me nucking futs!

2009-03-11 Thread Musachy Barroso
Ok, first, you don't need to define variable for each url, you can just do s:url id=myurl .. s:a href=%{#myurl} ... inside the iterator, that will make your life easier. Assuming the code was just an example, and you *really* need to create a bunch of URLs and then use them, you can do it like

okay, this is driving me nuts

2009-03-11 Thread mitch gorman
is there any syntactical construct that will allow me to do the following (in v2.0.14): s:iterator value=somelist status=rowstatus s:push value=#rowstatus / !-- just for convenience -- div s:url id=link-%{count} action=doSomething

Re: this is driving me nucking futs!

2009-03-11 Thread mitch gorman
Musachy Barroso wrote: Ok, first, you don't need to define variable for each url, you can just do s:url id=myurl .. s:a href=%{#myurl} ... this was the very first thing i attempted... it was the logical first attempt. unfortunately, what i ended up with when i did that was a set of

Re: this is driving me nucking futs!

2009-03-11 Thread mitch gorman
Wes Wannemacher wrote: It seems like you are created a variable variable name... I am assuming that there is a reason why you are using s:a / and wanting to refer to the constructed URL by id, rather than just doing the following - a href=s:url namespace=/ action=linkAction s:param

Re: this is driving me nucking futs!

2009-03-11 Thread Wes Wannemacher
On Wed, Mar 11, 2009 at 4:39 PM, mitch gorman mgor...@shadowtv.biz wrote: Musachy Barroso wrote: Ok, first, you don't need to define variable for each url, you can just do s:url id=myurl .. s:a href=%{#myurl} ...    this was the very first thing i attempted... it was the logical first

Re: this is driving me nucking futs!

2009-03-11 Thread Musachy Barroso
yeah, the for loop is just to illustrate the point. The #context thingie will work in any version. On Wed, Mar 11, 2009 at 4:39 PM, mitch gorman mgor...@shadowtv.biz wrote: Musachy Barroso wrote: Ok, first, you don't need to define variable for each url, you can just do s:url id=myurl .. s:a

Re: this is driving me nucking futs!

2009-03-11 Thread mitch gorman
Wes Wannemacher wrote: On Wed, Mar 11, 2009 at 4:39 PM, mitch gorman mgor...@shadowtv.biz wrote: Musachy Barroso wrote: Ok, first, you don't need to define variable for each url, you can just do s:url id=myurl .. s:a href=%{#myurl} ... this was the very first thing i

Re: this is driving me nucking futs!

2009-03-11 Thread Wes Wannemacher
On Wed, Mar 11, 2009 at 4:47 PM, mitch gorman mgor...@shadowtv.biz wrote:    thanks for your responses, wes! No problem, next time, include me in your list of gurus and I'll be happy. -Wes -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery,

Re: one action with two buttons

2009-03-11 Thread PEGASUS84
it doesnt work mean that the action go to a jsp page but the data in the form there aren't in the jsp page -- View this message in context: http://www.nabble.com/one-action-with-two-buttons-tp22456812p22464237.html Sent from the Struts - User mailing list archive at Nabble.com.

Re: this is driving me nucking futs!

2009-03-11 Thread mitch gorman
Musachy Barroso wrote: yeah, the for loop is just to illustrate the point. The #context thingie will work in any version okay, well, as i just noted in my response to wes, i clearly must've boneheaded something else when i tried it the first time, because the simple, un-overthought

Re: this is driving me nucking futs!

2009-03-11 Thread mitch gorman
Wes Wannemacher wrote: On Wed, Mar 11, 2009 at 4:47 PM, mitch gorman mgor...@shadowtv.biz wrote: thanks for your responses, wes! No problem, next time, include me in your list of gurus and I'll be happy lol! you got it! (i knew for sure i was probably inadvertently

Re: okay, this is driving me nuts

2009-03-11 Thread mitch gorman
doh... this one didn't show up in my business-gmail-thunderbird-filtered reader until just now. please ignore this thread... i re-asked the question in the nucking futs thread, and was quickly answered! - To unsubscribe,

Re: this is driving me nucking futs!

2009-03-11 Thread Chris Pratt
I guess one question I would ask is why s:a doesn't have an action paramter and allow nested s:param elements? That way there would be no need to create any variables. (*Chris*) On Wed, Mar 11, 2009 at 1:56 PM, mitch gorman mgor...@shadowtv.biz wrote: Wes Wannemacher wrote: On Wed, Mar 11,

Re: Struts2 Standards, guidelines, recommendations

2009-03-11 Thread Dave Newton
Norris Shelton wrote: I am working to get Struts2 approved as a production technology. Can you point me to any standards or guidelines or implementation recommendations? What kind of standards? What kind of guidelines or implementation recommendations are you looking for? Dave

Re: Struts 1: Window resizing issue

2009-03-11 Thread Dave Newton
SanJ.SANJAY wrote: When I resize the the IE explorer window, the JSP goes blank sometimes. Does anyone knows this issue? May be some blank call is going to action? Unlikely. You can find out, you know, by snooping the wire via a proxy or IE tool. Dave

Re: this is driving me nucking futs!

2009-03-11 Thread Musachy Barroso
That is something I have complained about for a long time, time to do something about it I guess. musachy On Wed, Mar 11, 2009 at 5:08 PM, Chris Pratt thechrispr...@gmail.com wrote: I guess one question I would ask is why s:a doesn't have an action paramter and allow nested s:param elements?  

Re: one action with two buttons

2009-03-11 Thread mitch gorman
PEGASUS84 wrote: it doesnt work mean that the action go to a jsp page but the data in the form there aren't in the jsp page okay, i just took another look through my code, and it looks like i incorrectly constructed the example in my response. what i *should* have suggested you try

Re: this is driving me nucking futs!

2009-03-11 Thread mitch gorman
Musachy Barroso wrote: That is something I have complained about for a long time, time to do something about it I guess. I AM AN INSTRUMENT OF CHANGE!!! ;) - To unsubscribe, e-mail:

Re: one action with two buttons

2009-03-11 Thread PEGASUS84
thanks but it doesn't take data from form yet -- View this message in context: http://www.nabble.com/one-action-with-two-buttons-tp22456812p22465024.html Sent from the Struts - User mailing list archive at Nabble.com. - To

Re: this is driving me nucking futs!

2009-03-11 Thread Jim Kiley
Musachy, I would refer to you as a cool dude if you did that. jk On Wed, Mar 11, 2009 at 5:10 PM, Musachy Barroso musa...@gmail.com wrote: That is something I have complained about for a long time, time to do something about it I guess. musachy On Wed, Mar 11, 2009 at 5:08 PM, Chris Pratt

Re: this is driving me nucking futs!

2009-03-11 Thread Musachy Barroso
my list of annoyances: 1. iterator tag no having begin and end 2. a not able to build a url 3. validateAnnotatedMethodOnly in validation interceptor should be true by default first one is down, I gotta tackle the other 2. musachy On Wed, Mar 11, 2009 at 5:32 PM, Jim Kiley

Re: struts2 and dojo

2009-03-11 Thread Wes Wannemacher
On Wednesday 11 March 2009 01:00:14 Mohan Radhakrishnan wrote: newton.dave wrote: pascal.gehr...@freenet.de wrote: So please don't say that dojo-support is deprecated. This is wrong. Dojo just has moved!! Dojo is most certainly deprecated: deprecated means that support still exists,