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: Javascript: function processKey(e) { if (null == e) e

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 disabled

Re: select tag list listKey and listValue usage

2008-06-11 Thread akash agrawal
une 11, 2008, 12:52 PM > --- On Wed, 6/11/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 > element? > &g

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 unsubs

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 org.apache.catalina.connector.RequestFacade.setAttribute(RequestFacade.java:5

Re: freemarker error - Any ideas?

2008-04-22 Thread akash agrawal
s <[EMAIL PROTECTED]> > Subject: Re: freemarker error - Any ideas? > To: "Struts Users Mailing List" > Date: Tuesday, April 22, 2008, 9:14 PM > akash agrawal wrote: > > FreeMarker template error! > > > > > > Expression error is undefined on li

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: -- freemarker.cor

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 I get an error from framework: 2008-04-11 18:04:58.817 ERROR [StandardContext3638]: Exception

Re: Two buttons on same row

2008-04-11 Thread akash agrawal
?> > > > "-//Apache Software Foundation//DTD Struts > Configuration 2.0//EN" > > > "http://struts.apache.org/dtds/struts-2.0.dtd";> > > > > value="simple" /> > > ... > > ... > > > >

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 spa

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

2008-04-04 Thread akash agrawal
PROTECTED] > Date: Friday, 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

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

2008-04-04 Thread akash agrawal
yz() > To: "Struts Users Mailing List" > 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. is

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

2008-04-04 Thread akash agrawal
yz() > To: "Struts Users Mailing List" > Date: Friday, April 4, 2008, 10:47 AM > Struts 2(OGNL technically speaking) will call getX() or > isX() if one > of them exist, when "y.x" is evaluated. > > musachy > > On Fri, Apr 4, 2008 at 1:37 PM, akash ag

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 wi

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 Bl

Re: uploaded image file contentType (IE vs Firefox)

2008-03-17 Thread akash agrawal
]> wrote: --- akash agrawal wrote: > What can I do to resolve this conflict and not get different content types? Only use one browser? Can't you just do some processing/aggregation of content types on the server side? Dave

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 up

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
Dave, Thanks for the response. Could you give an example of how to use the approach you suggested? Here is my code: delete, getA, getB Thanks, -Akash Dave Newton <[EMAIL PROTECTED]> wrote: --- akash agrawal wrote: > I am using validation framework and woul

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 w

s:datetimepicker version 2.0.11 issue

2008-02-20 Thread akash agrawal
Hi, My code is: Issue: 1. Time cannot be edited by going straight to the text field and entering using keyboard. It only allows to pick up the time from the popup. However popup only gives minutes granularity in 5 minutes interval. Any workaround? Is there a better mailing lis

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 mi

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
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, > > I am seeing an error while using tree tag and using struts

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! Mobil

Re: Struts 2 tree tag question

2007-11-29 Thread akash agrawal
children nodes' 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 checkbo

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.

Re: struts.xml usage of element in element

2007-08-30 Thread akash agrawal
*Chris*) 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 prop

Re: struts.xml usage of element in 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

struts.xml usage of element in element

2007-08-30 Thread akash agrawal
Hi, Can someone explain me the usage of element under element? How to access it property inside java action? Is this a valid config? xyz, abc1, abc2 How to access roles property in an action class? Thanks, -Akash - Shape Yahoo! in your own image.

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 2.0.9 backward compatible with struts 1.x in respect to role on action mapping

2007-08-30 Thread akash agrawal
oesn't 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 > (essentiall

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 - Pinpoin

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 ---