Re: [S2] Using ajax head tag makes entire application slow

2009-01-12 Thread matt.payne
You are paying the dojo penalty. Check out the net usage in firebug plugin for firefox. Your 30k request just became a 500k request by turning this on. I use ajax, but none of the built in functionality. jquery ftw Matt Neil Aggarwal wrote: Hello all: When I include this tag in the

Re: How to putt objects on the valuestack from INSIDE an action?

2008-10-28 Thread matt.payne
You should probably be doing this from an interceptor. Matt Alexander Baetz wrote: Hi, currently i'm trying to use my own Class to store configuration data for my application. To access the options from within the jsp page i want to use the struts 2 value stack. I somehow like the

Recommendations for Making Generic beans available to view layer

2008-10-28 Thread matt.payne
I would like a make a couple beans available to the view layer. I want to do this without modifying actions or customizing what they inherit from. I would like to do this in a generic way, without making something that is specific to one view technology. e.g. I know it could be done with a

Re: Captcha in Struts2

2008-10-01 Thread matt.payne
aarthy wrote: How Can I implement Captcha in Struts2? see http://code.google.com/p/kaptcha/ I put the logic in a KaptchInterceptor so actions don't need to be aware of this lib or validation. Here is the crux of the logic for that interceptor. interceptor name=captcha

Re: Struts 2 Ajax DateTime Picker compatibility with FireFox 3

2008-10-01 Thread matt.payne
Don't use it (or dojo). Some of the jquery date/time pickers are far better anyway. Matt Abhinav Sharma wrote: I am using inbuilt struts 2 ajax date time picker for my web application. It works fine with FireFox 2 but I face issues with rendering of these controls in FireFox 3. FireFox

Re: What is the best way to handle cancel, Update, Back Buttons in Struts2

2008-07-24 Thread matt.payne
Just set the value name to cancel/back. e.g. input type=submit class=submit cancel name=cancel id=cancelButton value=Cancel/ -- in struts.xml interceptor name=cancel

Re: Slow performance with Struts2

2008-07-07 Thread matt.payne
Use firebug to measure you http. Firebug will give you a detail view of what resources (e.g. dojo) are being pulled down with the http traffic. Matt yorlick kilroy-2 wrote: Hi, I was wondering if there is a way to tweak struts2 performance. I ported an old struts1 application to

Re: Firefox 3 and s:head theme=ajax/ render issues

2008-07-07 Thread matt.payne
georz1 wrote: I'm using Struts 2.0.11 and it seem with Firefox 3 only there are rendering issues on pages where I have s:head theme=ajax. I can see the page load fully and there is a quick flash of the browser and then a blank page with FF3 stuck in a loading state. On certain pages I

Re: Struts 2 + AjaxTags + DisplayTag

2008-04-14 Thread matt.payne
You could try struts2 + jquery + jgrid (http://trirand.com/jqgrid/jqgrid.html) If you need ajax, you need something that returns an json or xml response (insert you velocity, freemarker, json result, jsp result here). Matt Márcio Gurgel wrote: Hi all! Since this morning I'm having

Re: Can validation be evaluated ahead of time to paint JQuery validation rules?

2008-03-18 Thread matt.payne
I am using freemarker, but I do not think there would be an advantage to using JSP in this case. What I am looking for in and object graph of validation rules so I can paint my jquery validation rules from the the backend validation. Matt Laurie Harper wrote: matt.payne wrote: I really

Re: Multiple Actions for a single page. Is this possible

2008-03-18 Thread matt.payne
By chaining several actions together. All of the getters inside those actions are availible to the resulting .jsp/vm/or ftl. I have used chain in cases where I had a more generic action that supplied values for picklists and I needed those values supplied to several pages. The action

Re: Multiple Actions for a single page. Is this possible

2008-03-14 Thread matt.payne
chaining is one way to accomplish this. http://struts.apache.org/2.x/docs/action-chaining.html ravi_eze wrote: hi, We have two pages a.jsp and b.jsp developed with the action class mehods Ac.a() Ac.b() that render these pages. Now we need to develop a new page c.jsp which is

Re: Best practices to reduce execution time in struts

2008-03-14 Thread matt.payne
Also, include don't use Dojo or the Ajax theme unless you want to increase your request size by 400KB. Unfortunately for ajax, in the current form you need to roll your own if you want to avoid the Dojo penality. newton.dave wrote: --- Raghu varma bhupathiraju wrote: give me the list of

Re: should I learn struts 1 first before learning struts 2?

2008-03-14 Thread matt.payne
No, don't bother. Its not a chapter of book. Skip some of the stuff you don't need to know any longer and roll up your sleeves with struts 2. akoo wrote: Hi, forgive me if this has been asked before. I am just starting on struts and wondering if I should first learn Struts 1 or just

Can validation be evaluated ahead of time to paint JQuery validation rules?

2008-03-13 Thread matt.payne
I really like the treatment the JQuery http://jquery.bassistance.de/validate/demo/ validation plugin (not struts plugin), gives for a user experience. I would really like the rules to come from back end rules and decorate the form fields the same way if the back end bounces a validation error.

Re: validation with annotation

2008-03-13 Thread matt.payne
The current usage of Annotating methods seems broken. Its still applying all the validation rules to all methods despite methods having different validation requirements. The Struts Zero Config/Annotation/Auto Config needs help Hopefully, a http://jira.opensymphony.com/browse/XW-603

Does an Annotation exist to mark a setter as persist to session?

2008-03-05 Thread matt.payne
Same goes for getter. Does an Annotation exist to say get this value from session if not in the request? If these exist, it might take some boilerplate code way that would otherwise involve http request/session objects in an action Does this exist or anything on the roadmap? Matt -- View

Re: jQuery plugin for Struts 2?

2008-02-13 Thread matt.payne
-plugin-overview/ You mentioned writing the bulk of our JavaScript by hand, so a lot of the ajax/validation calls do not involve dojo? I'd be interested in chipping in a little if you would like. Matt newton.dave wrote: --- matt.payne [EMAIL PROTECTED] wrote: +1 here. Highly looking forward

Re: jQuery plugin for Struts 2?

2008-02-06 Thread matt.payne
+1 here. Highly looking forward to using this over current Dojo plugin. Any progress being made? Matt nuwan chandrasoma-2 wrote: i would like to see one :) emartin24 wrote: Ted Husted wrote: On Nov 20, 2007 1:53 PM, name withheld wrote: I've been working with Struts 2

Wildcard mappings/templates need to refer to a package name

2008-01-10 Thread matt.payne
I looked through all the combinations of wild card configurations, zero config, annotations and I can't find one that fits my work style and offers any benefit. I have a pattern to my development, it just doesn't fit the current proposed solutions. I often have a namespace per pojo(sometimes

Re: Struts2 Cookbook Question

2007-10-01 Thread matt.payne
I tend to just make my bean a getter/setter on the action and let the framework take care of it. However, if you are looking for the equivalent to setProperties/copy etc look at xwork's com.opensymphony.xwork2.util.OgnlUtil Matt Whitmire, Tracy Carroll wrote: I'd like to use some of the