issue with autocompleter tag

2008-10-16 Thread akash agrawal
Hi, I am trying to attach javascript event onkeypress with autocompleter tag but can't. I can't seem to attach any event for that matter. Can anyone throw any light on it? Please find my code details below. Thanks. My code: s:autocompleter showDownArrow=false

problem with checkbox (when using disabled property)

2008-07-09 Thread akash agrawal
Hi, Using struts tag for a checkbox. I disable my checkbox using disabled property so that user cannot change it. When the form is submitted, the value of the checkbox passed to the action comes out as false, even if the checkbox was selected (true). The weird thing is if I remove the

select tag list listKey and listValue usage

2008-06-11 Thread akash agrawal
Hi, 1. I have a list of objects which I use to populate select tag (using list attribute) 2. Use a property on that object for the listValue. How do I populate listKey with the object itself? Thx, -Akash - To

Re: select tag list listKey and listValue usage

2008-06-11 Thread akash agrawal
/08, akash agrawal [EMAIL PROTECTED] wrote: How do I populate listKey with the object itself? What would that mean? What are you expecting to see in the value attribute of the HTML option... element? Dave

execAndWait interceptor and setting request attribute throws NPException

2008-04-23 Thread akash agrawal
Hi, When I use execAndWait interceptor and set some request attribute in my action, I get NPE: java.lang.NullPointerException at org.apache.catalina.connector.Request.setAttribute(Request.java:1376) at

freemarker error - Any ideas?

2008-04-22 Thread akash agrawal
FreeMarker template error! Expression error is undefined on line 35, column 4 in template/simple/actionerror.ftl. The problematic instruction: -- == ${error} [on line 35, column 2 in template/simple/actionerror.ftl] -- Java backtrace for programmers: --

Re: freemarker error - Any ideas?

2008-04-22 Thread akash agrawal
] Subject: Re: freemarker error - Any ideas? To: Struts Users Mailing List user@struts.apache.org Date: Tuesday, April 22, 2008, 9:14 PM akash agrawal wrote: FreeMarker template error! Expression error is undefined on line 35, column 4 in template/simple/actionerror.ftl

Two buttons on same row

2008-04-11 Thread akash agrawal
Hi, s:submit creates a row for a button. I have two buttons and two submit appears on two different row. How do I put them on the same row? Can anyone give an example? Thanks, -Akash __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best

Re: Two buttons on same row

2008-04-11 Thread akash agrawal
on textfields though. In that case you just type it outside like: ... tr tdUser ID:/td tds:textfield name=account.login //td /tr ... -Original Message- From: akash agrawal [mailto:[EMAIL PROTECTED] Sent: Friday, April 11, 2008 3:51 PM To: user

How to use annotationWorkflow Interceptor

2008-04-11 Thread akash agrawal
Hi, I am looking at the example provided on this link: http://struts.apache.org/2.x/docs/annotationworkflowinterceptor.html I couldn't find annotationWorkflow in my struts-default.xml interceptor-ref name=annotationWorkflow/ I get an error from framework: 2008-04-11 18:04:58.817 ERROR

Struts2 tags behaviour customizable? isXyz() instead of getXyz()

2008-04-04 Thread akash agrawal
Hi, Struts 2 tags have value attribute where name of property is used to read the value from the bean. If the property is lets say xyz, tag looks for getXyz(). Is this possible to customize that so that instead of getXyz(), it looks for isXyz()? My boolean property has accessors which starts

Re: Struts2 tags behaviour customizable? isXyz() instead of getXyz()

2008-04-04 Thread akash agrawal
is evaluated. musachy On Fri, Apr 4, 2008 at 1:37 PM, akash agrawal [EMAIL PROTECTED] wrote: Hi, Struts 2 tags have value attribute where name of property is used to read the value from the bean. If the property is lets say xyz, tag looks for getXyz(). Is this possible to customize

Re: Struts2 tags behaviour customizable? isXyz() instead of getXyz()

2008-04-04 Thread akash agrawal
Mailing List user@struts.apache.org Date: Friday, April 4, 2008, 11:09 AM Are you sure that myBean is not null? musachy On Fri, Apr 4, 2008 at 2:05 PM, akash agrawal [EMAIL PROTECTED] wrote: Here is my JSP snippet. isXyz() does not work for me. What am I doing incorrectly? s:set name

Re: Struts2 tags behaviour customizable? isXyz() instead of getXyz()

2008-04-04 Thread akash agrawal
, April 4, 2008, 11:33 AM On Fri, Apr 4, 2008 at 1:17 PM, akash agrawal [EMAIL PROTECTED] wrote: myBean is not null, There are other field which are not boolean and I do get them fine. Is it boolean, or Boolean? I've seen situations where I was hoping isX would return a reference to a Boolean

xml based validation vs Annotations based validation

2008-04-02 Thread akash agrawal
Hi, Wanted to get opinion from the struts2 user community if there are any advantages/disadvantages of using one approach over another (Xml vs Annotation based validation). Thanks, -Akash - You rock. That's why Blockbuster's offering you one month of

uploaded image file contentType (IE vs Firefox)

2008-03-17 Thread akash agrawal
Hi, I am using fileuploadinterceptor which is part defaultStack. I upload an image *.jpg using IE and Firefox and get a different contentType in action for different browser. IE returns content type as image/pjpeg whereas Firefox returns content type as image/jpeg. Similary for a *.png image

Re: uploaded image file contentType (IE vs Firefox)

2008-03-17 Thread akash agrawal
different decoders and may get into some trouble down the road. I was wondering if this is an issue of combination of browser and struts framework and if there is access to more properties which can give more information about the uploaded images. Thanks. Dave Newton [EMAIL PROTECTED] wrote: --- akash

selective validation using validation.xml

2008-03-07 Thread akash agrawal
Hi, Is this possible to do selective validation using validation.xml? What I meant by this is that calling a different set of validation on each(different) invocation of same action and same method. Example: I call UpdateAction and update method and use UpdateAction-validation.xml and want to

Re: validation excludeMethods version 2.0.11

2008-03-06 Thread akash agrawal
Thanks, -Akash Dave Newton [EMAIL PROTECTED] wrote: --- akash agrawal wrote: I am using validation framework and would like to disable validation for all the query methods like getA(), getB(), getC(). There is a excludeMethods property using which I can turn off validation for above

validation excludeMethods version 2.0.11

2008-03-05 Thread akash agrawal
Hi, I am using validation framework and would like to disable validation for all the query methods like getA(), getB(), getC(). There is a excludeMethods property using which I can turn off validation for above methods by spelling out each method. 1. Is there a way to generalize this so that

s:datetimepicker version 2.0.11 issue

2008-02-20 Thread akash agrawal
Hi, My code is: s:datetimepicker label=Time name=validityTimeTime id=vtTime type=time displayFormat=HH:mm:ss staticDisplay=true value=%{#sr.validityTime}

struts 2.0.9 tooltip attribute problem

2008-01-08 Thread akash agrawal
Hi, I am using tooltip attribute on a textfield. The problem is that tooltip does not comes up completely. Is there a limit on the length of characters a tooltip can have? How can I fix/change this so the whole tooltip comes up? Thanks, -Akash - Never

Issue with Datetimepicker initialization (2.0.11)

2007-12-18 Thread akash agrawal
Hi, DateTimePicker with the time calendar not initializing the time passed to it. It always initializes to 12:00 AM no matter what time is passed to it. Looks like a struts bug to me. I am using 2.0.11. Does anyone has seen similar problem? Any workaround? Thanks, -Akash

struts 2.0.11 datetimepicker problem of type time

2007-12-12 Thread akash agrawal
Hi, I am displaying date and time separately gotten from server on a JSP using datetimepicker tag. My problem is that, the date shows up correctly but the time does not. Below is the snippet of the JSP code. Any help is appreciated. Thanks. -Akash This with the type=date shows up correctly.

Re: struts 2.0.9 error /template/xhtml/tree.ftl not found.

2007-12-07 Thread akash agrawal
, -Akash Martin Gainty [EMAIL PROTECTED] wrote: please display form and any config files to group M- - Original Message - From: akash agrawal To: Struts Users Mailing List Sent: Thursday, December 06, 2007 8:47 PM Subject: struts 2.0.9 error /template/xhtml/tree.ftl not found. Hi

struts 2.0.9 error /template/xhtml/tree.ftl not found.

2007-12-06 Thread akash agrawal
Hi, I am seeing an error while using tree tag and using struts 2.0.9. java.io.FileNotFoundException: Template /template/xhtml/tree.ftl not found. How do I fix this problem? Thanks, -Akash - Be a better friend, newshound, and know-it-all with Yahoo!

Re: Struts 2 tree tag question

2007-11-29 Thread akash agrawal
' checkboxes. I used the regular iterate and multibox tags and CSS to get this done really straight forward, without using tree tag. On 11/28/07, akash agrawal wrote: Hi, Trying to build a form having a tree where each node in the tree needs to have a checkbox to take input from the user. How can I

Struts 2 tree tag question

2007-11-28 Thread akash agrawal
Hi, Trying to build a form having a tree where each node in the tree needs to have a checkbox to take input from the user. How can I accomplish this using struts tree tag? Thanks, -Akash - Get easy, one-click access to your favorites. Make Yahoo! your

Tree ui component with each node having a checkbox (struts 2.0.9)

2007-11-27 Thread akash agrawal
Hi, Can someone tell me how to build a tree with each node having a check box, so that user can input their choices by selecting/unchecking each node in the tree and input can be collected in the action? Thanks in advance, -Akash - Be a better pen pal.

struts 2.0.9 backward compatible with struts 1.x in respect to role on action mapping

2007-08-30 Thread akash agrawal
Hi, Is role attribute supported in Struts 2? It was supported in Struts version 1.x. ( I would assume that Struts 2 is backward compatible) If it is supported how to use it? Is there any example or documentation related to this. Thanks, -Akash -

Re: struts 2.0.9 backward compatible with struts 1.x in respect to role on action mapping

2007-08-30 Thread akash agrawal
seem to be displaying properly at the moment, though?) --- Dave Newton wrote: --- akash agrawal wrote: (I would assume that Struts 2 is backward compatible) S2 is a *completely* different architecture and has (essentially) nothing to do with S1. d

location of DTD/schema for struts.xml Struts 2.0.9?

2007-08-30 Thread akash agrawal
Hi, Where is DTD/schema for struts.xml located in S2? I would like to check it DTD to find out what kind of tags are supported by S2. Thanks, -Akash - Pinpoint customers who are looking for what you sell.

Re: struts.xml usage of param element in action element

2007-08-30 Thread akash agrawal
Pratt [EMAIL PROTECTED] wrote: Just create a mutator in your action and Struts will populate the value for you automatically. I use this to set the Role into my base action admin (*Chris*) On 8/30/07, akash agrawal wrote: Hi, Can someone explain me the usage of element under element

Re: struts.xml usage of param element in action element

2007-08-30 Thread akash agrawal
*) On 8/30/07, akash agrawal wrote: Hi, Thanks for the reply Chris. Do you mean providing a setter like setRole(String role) or setRoles(String role) would do? When would this setter be called? If I define an interceptor, Can I check for this property inside interceptor before my execute

action mapping roles attribute in struts 2

2007-08-29 Thread akash agrawal
Hi, In struts 1.x there used to be roles attribute which can be used to associate role information for an action. Does Struts 2 also supports that? And if it does how do we use that in Struts 2? Basically I want to authorize action based on user role. Thanks in advance. -Akash