Re: S2 - s:submit method="value" has to be hard-coded?

2009-05-08 Thread Musomesa
There is bound to be some logic that determines what method the button would invoke. Why not put that logic in the action method and have it call appropriate helper methods? In other words move the fork from the view to inside the action method. Chris **Remember Mom this Mother's Da

Re: Struts Tag Library - Can I have a dropbox option disable a text field?

2009-05-08 Thread Dave Newton
spongebue wrote: Thanks, Dave. I played around, and got MOST of what I want going. However, I'd like to be able to hide the label (I decided to hide the field altogether, rather than disable editing). This was no problem with the text field, but the label does not get an id assigned by struts,

Re: Struts Tag Library - Can I have a dropbox option disable a text field?

2009-05-08 Thread spongebue
newton.dave wrote: > > spongebue wrote: >> Basically, I have an s:select list with a list of activities, which gets >> its >> content from the database, delivered via struts. I also have a >> s:textfield >> with the number of hours each activity takes up. What I'd like is for >> the >> text f

Re: Passing a value to JavaScript from a tag

2009-05-08 Thread cm132005
Thanks, Dave and Suhash. OGNL expression worked fine! newton.dave wrote: > > cm132005 wrote: >> How to pass a value from valueStack to a JavaScript function? >> >> This doesn't work: >> > onclick='"doEdit(\'\')"' /> > > You can't nest custom tags like that; that's not an S2 issue

RE: Problems setting attributes on my Action using Restful2ActionMapper

2009-05-08 Thread Martin Gainty
a guy named 'david' said he wanted to update the wiki..i thought it was u? Martin __ Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité This message is confidential. If you should not be the intend

Re: Problems setting attributes on my Action using Restful2ActionMapper

2009-05-08 Thread Dave Newton
Musachy Barroso wrote: On Fri, May 8, 2009 at 5:52 PM, David Rocks wrote: Anyway it's 11pm. Pizza and beer time. now that, sounds good :) musachy I'm so confused: I saw responses but never saw the messages they were in response to. Dave

Re: How to keep information when a auto-checked type is done by struts?

2009-05-08 Thread Dave Newton
Stefano Tranquillini wrote: i've a form. i've some field that are double type. if i put a string inside these fileds struts automatically check the incorrectness of the type. ok! but, inside this form i've a select that is created by a list. when the error comes out from struts, sruts goes back t

Re: Problems setting attributes on my Action using Restful2ActionMapper

2009-05-08 Thread Musachy Barroso
On Fri, May 8, 2009 at 5:52 PM, David Rocks wrote: > Anyway it's 11pm. Pizza and beer time. now that, sounds good :) musachy -- "Hey you! Would you help me to carry the stone?" Pink Floyd - To unsubscribe, e-mail: user-unsubsc

RE: Problems setting attributes on my Action using Restful2ActionMapper

2009-05-08 Thread Martin Gainty
we already have a david..mind if we use your middle name? thx, Martin Gainty __ Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité This message is confidential. If you should not be the intended re

RE: Problems setting attributes on my Action using Restful2ActionMapper

2009-05-08 Thread David Rocks
Cool, I will get that done on Monday, post a note to the dev list and get something working to document shortly after. Still messing about with the code, not 100% on all angles but getting there. Anyway it's 11pm. Pizza and beer time. David > Date: Fri, 8 May 2009 16:56:4

Re: Problems setting attributes on my Action using Restful2ActionMapper

2009-05-08 Thread Wes Wannemacher
You need to apply, you just need to sign it. It is an apache thing. It lets the foundation know you aren't going to claim copyright on code or documentation you create for us. Search for cla or icla on the main apache page. Once you fill it out and send it in make sure you post a message to d...@st

Re: Problems setting attributes on my Action using Restful2ActionMapper

2009-05-08 Thread Musachy Barroso
Take a look here: http://struts.apache.org/2.x/docs/editing-the-documentation.html, the CLA is a form that you need to fax, after that, drop an email in the dev@ user list asking for rights to edit the wiki. musachy On Fri, May 8, 2009 at 3:43 PM, David Rocks wrote: > > The documentation was pre

RE: Problems setting attributes on my Action using Restful2ActionMapper

2009-05-08 Thread David Rocks
The documentation was pretty misleading, I wasted a few hours just chasing stuff on the web, in the end it came down to just stepping through the code. I tried to get the convention plugin working first but could not work out how to get that to work with my application although I never looke

Re: Problems setting attributes on my Action using Restful2ActionMapper

2009-05-08 Thread Musachy Barroso
That part has always lacked good documentation. I have never used myself so I have no idea how it works. You can submit a CLA and get edit right to the wiki. musachy On Fri, May 8, 2009 at 1:00 PM, David Rocks wrote: > > Hi, > > > > managed to get this kind of working although I am constrained t

Re: OT: Good CSV export library

2009-05-08 Thread Greg Lindholm
I use Super CVS http://supercsv.sourceforge.net/ Sparecreative wrote: > > Hi guys, > > I¹m hoping somebody can help me. I need a java library that will take a > List > of POJOs and convert to CSV. I¹ve found a truck load that go the other > way, > CSV mapped to POJO but I can¹t find a good on

RE: Problems setting attributes on my Action using Restful2ActionMapper

2009-05-08 Thread David Rocks
Hi, managed to get this kind of working although I am constrained to callin in my action the the names of the methods hard coded in the Restful2ActionMapper class. Firstly I have to set... struts.mapper.alwaysSelectFullNamespace=false struts.mapper.idParameterName=entityName <-- th

RE: Dynamic property names

2009-05-08 Thread Martin Gainty
use of #variable(#object) may lead to ArrayIndexOutOfBoundsException as an alternative i would've suggested an ArrayList of Prop1 embedded within Prop2 this way your ognl ref is always referencing Prop2 (for outer loop) and then reference the Prop1 Array with a get(index) or indexOf(Object) whe

How to keep information when a auto-checked type is done by struts?

2009-05-08 Thread Stefano Tranquillini
The title is quite strange. but: i've a form. i've some field that are double type. if i put a string inside these fileds struts automatically check the incorrectness of the type. ok! but, inside this form i've a select that is created by a list. when the error comes out from struts, sruts goes ba

Re: Please help! Struts 2/Eclipse - List Object is not displaying in JSP

2009-05-08 Thread SofIAm
You're correct. That was exactly the problem. Thanks for responding! satyanarayana katta wrote: > > Take a close look at your getAllEmployees()method. You have declared the > list with same name myList, which is a local variable. You need to either > call setList and pass this or use the

Re: NoSuchPropertyException Warining.

2009-05-08 Thread Siddiq Syed
Thanks Satya, It works , below is the change that we need to do in jboss-log4j.xml file, In general , it will be In order to avoid the famous OgnlUtil.setProperty warning when doing a redirect-action with parameter. It seems there is pacth for this in struts 2

Re: Struts 2 UI Tags and OGNL self reference

2009-05-08 Thread stanlick
top returns the action! It appears the component stack is added to the value stack and is treated as a separate animal. This UI request life-cycle has me coiled up in the fetal position sucking my thumb! Nils-Helge Garli wrote: > > If I understand your question correctly, are you looking

Re: NoSuchPropertyException Warining.

2009-05-08 Thread satyanarayana katta
supress warn in the logger package you are using for this speicific package. It should work. On Fri, May 8, 2009 at 7:56 AM, Siddiq Syed wrote: > > Hi all, > > I want to avoid the waring displayed in the consloe when passing the > attributes in the redirect action. > > Below is the struts.xml w

Re: Please help! Struts 2/Eclipse - List Object is not displaying in JSP

2009-05-08 Thread satyanarayana katta
Take a close look at your getAllEmployees()method. You have declared the list with same name myList, which is a local variable. You need to either call setList and pass this or use the samelist. public String getAllEmployees() { //remove the List List myList = new Ar

NoSuchPropertyException Warining.

2009-05-08 Thread Siddiq Syed
Hi all, I want to avoid the waring displayed in the consloe when passing the attributes in the redirect action. Below is the struts.xml where the action is configured and so is the parameters ,stack trace of the waring and ongl exception -- setupForRevocati

RE: Dynamic property names

2009-05-08 Thread Jon Pearson
Well, I didn't get any responses to this, but luckily I managed to figure it out from the OGNL documentation (http://www.opensymphony.com/ognl/html/LanguageGuide/basicExpressions.ht ml): Under the 'Expression Evaluation' section, it describes how you can write this: #variable(#object) And have O

Re: Struts 2 UI Tags and OGNL self reference

2009-05-08 Thread stanlick
Actually, what I am trying to accomplish is to pass/receive the Component bean instance representing this tag as an argument to the OGNL expression. I am working with the component stack and would like to have this reference. Scott stanlick wrote: > > Sorry about that subject line, but I could

RE: Align issues in struts 2 UI atgs

2009-05-08 Thread Jon Pearson
If it's in a table, you need to place each of those elements in its own . Here's a version of your code that could work like this: ~Jonathan > -Original Message- > From: Murugesh [mailto:muruges...@gmail.com] > Sent: Friday, May 08, 2009 8:26 AM > To: Struts Users

Re: Align issues in struts 2 UI atgs

2009-05-08 Thread Murugesh
Thanks now it's getting in a row. but the new issue is its coming top of the other fields. like we have four fields while running this code snippet , i will get both button on top of username field. please suggest me to get it down? On Fri, May 8, 2009 at 5:16 PM, Dave Newton wrote: > Mu

Re: Please help! Struts 2/Eclipse - List Object is not displaying in JSP

2009-05-08 Thread SofIAm
That's great! I'll look into that. Thanks again. Jim Kiley wrote: > > The checkstyle, FindBugs, or PMD plugin does this for sure. > > On Thu, May 7, 2009 at 8:50 PM, Dave Newton wrote: > >> SofIAm wrote: >> >>> Thank YOU ALL! What a dumb JAVA 101 mistake! I was never populating the >>> class

RE: Date/time formatting

2009-05-08 Thread Jon Pearson
Nevermind, I was reading it wrong; when using those format strings, they belong in tags, not in . Sorry, and thanks! > -Original Message- > From: Jon Pearson > Sent: Friday, May 08, 2009 7:53 AM > To: Struts Users Mailing List > Subject: RE: Date/time formatting > > I've looked at tha

RE: Date/time formatting

2009-05-08 Thread Jon Pearson
I've looked at that, but it doesn't explain when format.time is used. I can see that format.date gets used when formatting dates using the tag, but since there is no tag, when is format.time used? > -Original Message- > From: Rene Gielen [mailto:gie...@it-neering.net] > Sent: Thursday

Re: Align issues in struts 2 UI atgs

2009-05-08 Thread Dave Newton
Murugesh wrote: i have tried out but not getting the solution. i need two buttons in a row like please give me a correct way to implemnt to get output in a single row.. Use the "simple" theme? Dave - To unsubscribe, e-m

Re: Align issues in struts 2 UI atgs

2009-05-08 Thread Denis Cabasson
Hi, I usually use ... /> which will generate the buttons only, allowing you to take care of the presentation your way. Denis. Murugesh a écrit : Hi guys i have tried out but not getting the solution. i need two buttons in a row like please give me a correct way to implemnt to get outp

Align issues in struts 2 UI atgs

2009-05-08 Thread Murugesh
Hi guys i have tried out but not getting the solution. i need two buttons in a row like please give me a correct way to implemnt to get output in a single row..

OT: Good CSV export library

2009-05-08 Thread Zoran Avtarovski
Hi guys, I¹m hoping somebody can help me. I need a java library that will take a List of POJOs and convert to CSV. I¹ve found a truck load that go the other way, CSV mapped to POJO but I can¹t find a good one going my way. I¹m looking for something that produces CSV¹s in the same way that xStrea

Is abort file upload possible from server?

2009-05-08 Thread Sushil Dive
Hi group. Is there any way in struts (or web container) to abort file upload request received from browser. If it is possible, please provide pointers where i could find some sample code to do that. Thanks and regards, Sushil Disclaimer: http://www.vertexsoft.com/corporate/email_disclaimer.h