(FRIDAY) Struts in Action Live

2009-04-03 Thread Ted Husted
Hey, I posted a blog the other day about Gliffy, which I use all the time now. Turns out, it's based on Struts! A great example of "what goes around comes around" ... but in a good way. * http://tedhusted.blogspot.com/2009_03_01_archive.html Keep the faith, Ted. http://twitter.com/tedhusted

OT - No Joke - Ted's Going Emeritus

2009-04-01 Thread Ted Husted
Those of you long-in-the-tooth will have noticed that I've been inactive in the Apache Struts project for some time now, and I've requested a change of my Struts PMC status to emeritus. Although others have now taken my place, I'd like to mention that serving on the PMC has been both a pleasure an

How to Contribute Selenium Tests to Struts (was Re: confirm unsubscribe from user@struts.apache.org)

2009-01-07 Thread Ted Husted
Apache open source projects, like Struts, communicate through the public mailing lists. Be sure to take the time to carefully read the Struts Mailing List page. (I wish it could be shorter, but every point on the page is important.) When looking for development work, the best place to ask is the "

[OT] Looking for a Team-Based Solution for Storing Account Credentials

2008-12-23 Thread Ted Husted
Please forgive the off-topic post, but a lot of web development teams might run into this situation. In the course of working on various development projects for various clients, it's not uncommon to need to store a number of account credentials that need to be shared with various members of a team

[ANNOUNCE] Stuts @ Ajax Experience

2008-07-25 Thread Ted Husted
s session, some familiarity with an Ajax library, like YUI or Dojo, is helpful. To register for the conference, visit the Ajax Experience site <http://ajaxexperience.techtarget.com/html/index.html>. Ted Husted is a software engineer and team mentor. He offers Struts 2, JPA/Hiber

[OT] What slows you down?

2008-06-20 Thread Ted Husted
Since it's friday, let me pose a question to the group ... Even with rock-solid frameworks like Apache Struts, it still seems like web application development takes longer than it should. Some frameworks, like Ruby on Rails, speak directly to "time to market" concerns and have been gathering many

[OT] What do you code today?

2008-04-04 Thread Ted Husted
While outward facing web application get the most publicity, I know that most of us are heads-down on internally-facing applications designed for fellow employees to use over the corporate intranet. I'm trying to put together a list of the typical types of applications that enterprise developer w

[ANN] Apache Struts Tops OpenLogic Open Source Leaders List with a 71% Share

2008-01-25 Thread Ted Husted
"Hibernate and Struts topped the list with more than 71 % of customers using each. JasperReports is the only newcomer to the list this year ..." * http://press-releases.techwhack.com/15764/openlogic-5/ More marketing than statistical science, but it's nice to hear that Struts is still on top. :)

Re: Struts2+MyEclipse

2008-01-25 Thread Ted Husted
On Jan 24, 2008 11:15 PM, aum strut <[EMAIL PROTECTED]> wrote: > Hi All, > > Please tell me is it possible to develop Struts2 applications using latest > version of MyEclipse as i came to know that even the latest version of > eclipse support only Struts 1.3. > > Any Guidance in this regard is muc

Re: Struts framework design question: Type Converters and Tags

2008-01-22 Thread Ted Husted
I'm not sure how difficult it would be to have the tags look for a type converter first, but if you can come up with a working patch, I'd be happy to review it. HTH, Ted On Jan 22, 2008 9:41 AM, jimski <[EMAIL PROTECTED]> wrote: > > I recently ran into an issue where I noticed that a custom type

Re: using YUI with struts 2

2008-01-21 Thread Ted Husted
Does this count as being documented * http://struts.apache.org/2.x/docs/ajax.html or do we need something more specific? -Ted. On Jan 20, 2008 5:56 AM, ravi_eze <[EMAIL PROTECTED]> wrote: > > hi Jeromy Evans, > Thanks for the quick reply. The YUI is working with the html tags also. I > dont kn

Re: [S2+AJAX]Which ajax libray did you use?

2008-01-18 Thread Ted Husted
AIL PROTECTED]> wrote: > is there a tutorial that shows how to set up struts 2 to use YUI. just > a simple hello world. > > thanks > -bhaarat > > > On Jan 18, 2008 7:10 AM, Ted Husted <[EMAIL PROTECTED]> wrote: > > Under the heading, does Ajax need a web framework, t

Re: [S2+AJAX]Which ajax libray did you use?

2008-01-18 Thread Ted Husted
Under the heading, does Ajax need a web framework, there's an interesting "nope" blog here: * http://unclescript.blogspot.com/2008/01/alternatives-to-server-side-web.html Though, it's interesting to note that the author equates web frameworks with server-side page rendering. That's one thing tha

Re: [S2+AJAX]Which ajax libray did you use?

2008-01-18 Thread Ted Husted
On Jan 17, 2008 10:20 PM, Tony Zhang <[EMAIL PROTECTED]> wrote: > For YUI + struts2, do you prefer to use YUI plugin for struts2 or just use > YUI directly? Do we need to use DWR to transfter data? You can just use YUI directly. Essentially, what's being replaced is the JSPs. With Ajax, we can sta

Re: [S2+AJAX]Which ajax libray did you use?

2008-01-17 Thread Ted Husted
On Jan 17, 2008 7:07 AM, tzhang <[EMAIL PROTECTED]> wrote: > > Thanks to Jeromy and Ted , your comments definitely help me a lot. > > I looked through the YUI website, the widgets are quite rich. > I still concern about if I want to use the Struts2 + YUI, I have to know > pretty much about the YUI

Re: Struts 2 Validation Error

2008-01-17 Thread Ted Husted
If you haven't solved this, here are the things I would try. * Check that the that the Validation files seem like valid XML. A quick way to do that is to open them in IE. * Deploy the MailReader example to the same environment, to be sure its validation works. * Deploy your application to anot

Re: [S2+AJAX]Which ajax libray did you use?

2008-01-16 Thread Ted Husted
I'm a fan of YUI myself. A good way to go with Struts/Ajax integration is to make an ordinary request to an action, and then return a JSON response. This provides the benefits of JSON, but avoid some of the overhead of a JSON/RPC call. I actually did a presentation at the Boston Ajax Experience o

Re: [struts2] Redirecting to different pages on validate method

2008-01-16 Thread Ted Husted
One of the results to the action stanza should be named "input". The "input" result is the one that is selected when validation fails. For an individual action, it looks something like this: /Login.jsp A default input result can also be set for an entire package, and then ch

Re: Struts 2 and Container resources

2008-01-14 Thread Ted Husted
The container's resources can be access from an Action via the HttpServletRequest object. To obtain the HttpServletRequest object, see * http://struts.apache.org/2.x/docs/how-can-we-access-the-httpservletrequest.html HTH, Ted * On Jan 10, 2008 5:55 PM, Filipe

Re: Wildcard mappings/templates need to refer to a package name

2008-01-14 Thread Ted Husted
I think you make a good case. The best thing might be to file with XWork, since I believe that's where the code would need to be changed. * http://jira.opensymphony.com/secure/Dashboard.jspa If you had a time to review the code and suggest a patch, all the better. HTH, Ted

Re: struts 2.1 release date

2008-01-12 Thread Ted Husted
I don't believe 2.1.0 is going to be rated more than a test-build. Usually, we start with a test-build, and then vote whether to release the build as a beta. If the feedback is good, we might then raise the quality of that version to General Availability. Hopefully, this will happen with 2.1.1 (tho

Re: struts 2.1 release date

2008-01-11 Thread Ted Husted
There's a test-build available, * http://www.nabble.com/-S2--2.1.0-Test-Build-Available-tf4712874.html#a13471367 But, there are still a lot of outstanding patches to apply, and no one seems to have time to commit them right now. Sadly, despite being the most popular Java web framework on the p

Re: Validation question

2008-01-11 Thread Ted Husted
On Jan 11, 2008 8:10 AM, Martin Braure de Calignon <[EMAIL PROTECTED]> wrote: > Of course yes :-). But I need a validate() per method. I haven't used it myself, but the syntax validate-action is suppose to work, in the same way that it works for the validation framework. HTH, Ted *

Re: Validation question

2008-01-11 Thread Ted Husted
Rather than use the validation framework, I'd probably go with a Validate method (by implementing Validatable). Then, instead of using an OGNL expression, you can loop through the list using Java, and call addFieldError if there's a problem. Alternatively, a custom type converter that turned the

Re: Struts training...

2008-01-10 Thread Ted Husted
On Jan 9, 2008 5:42 PM, Jack Haynes <[EMAIL PROTECTED]> wrote: > > Hey Ted, > > Thanks. What do you charge for training through your site? All the details are on the Struts Mentor site, and the materials are hosted at . HTH, Ted ---

Re: Struts 1 or Struts 2

2008-01-10 Thread Ted Husted
On Jan 9, 2008 11:31 PM, aum strut <[EMAIL PROTECTED]> wrote: > is there much diffreence between Struts1 and Struts2? The implementation details are different (in a good way!), but both use the same architectural paradigms. Struts 1 uses an ActionForm for input value and a singleton Action to pro

Re: Struts training...

2008-01-09 Thread Ted Husted
ATM, I don't think there are any public Struts 2 training courses being offered anywhere. (Except maybe India!) I believe Ian is researching venues for public courses, so if anyone is interested in a public course, ping Ian with your locale. A few of us do offer private on-site trainings. I belie

Re: Struts 1 or Struts 2

2008-01-09 Thread Ted Husted
In this case, I'd suggest Struts 2. HTH, Ted * On Jan 9, 2008 6:32 AM, aum strut <[EMAIL PROTECTED]> wrote: > Hi All, > > I have a small query and hope that here i can get the best answer of my > query. ihave just started learning Struts 2. > the purpose of learnin

Re: Struts training...

2008-01-08 Thread Ted Husted
As Dave says, if you're trying to get hired, or trying to hire people, then Struts 1 is the still the safe choice. More job postings mention Struts (as in Struts 1) than all other Java web frameworks combined (including JSF). But, if you're asking which framework will make it easier to create eleg

[S2] Building Struts 2 Apps without XML GlueCode

2008-01-08 Thread Ted Husted
TheServerSide has kindly published an article I wrote some time ago about the SmartURLs plugin. * http://www.theserverside.com/tt/articles/article.tss?l=SmartURLs I'll be updating this piece for the new Conventions plugin, now in the sandbox, which merges ZeroConfig and CodeBehind with SmartURLs

Re: [S2] Form Select

2008-01-07 Thread Ted Husted
Hmmm, did you try selectedModules as an array of String? HTH, Ted * On Jan 7, 2008 1:58 AM, carmi_cd <[EMAIL PROTECTED]> wrote: > > i have a form select.. my problem is i dont know how can i get the selected > values in the form select box. > > here is my code.. >

Re: getting namespace of action through OGNL

2008-01-07 Thread Ted Husted
I could see an argument for exposing the namespace as an attribute in the normal course. If nothing else, I wonder if we should roll this functionality into the SiteMesh plugin. -Ted. On Jan 7, 2008 3:39 PM, Wes Wannemacher <[EMAIL PROTECTED]> wrote: > > On Mon, 2008-01-07 at 15:2

Re: getting namespace of action through OGNL

2008-01-07 Thread Ted Husted
The Action (or an Interceptor) could set it as a property that a tag could then access. We can set properties directly to the stack from an Interceptor. (This is how the validators expose bad input to a typed field.) As a general rule, pages should be as dumb as possible, and only know what the v

Re: Struts 2: Multiple methods in an action Class

2008-01-07 Thread Ted Husted
What happens if you use a method name other than "do". There's actually a feature in Struts 2 where we can name a method "doDefault" and then refer to it as "default" elsewhere. Naming a method "do" might be confusing. HTH, Ted * On Jan 7, 2008 9:11 AM, zuquirio <

Re: Is there a way to use Spring to inject objects to a Struts 2 Interceptor?

2008-01-07 Thread Ted Husted
Hmmm, it's an interesting idea. I take it you already tried defining a property in the Interceptor, the same way we would for an Action, and a Spring bean was not injected into the Interceptor property? (I never tried it myself.) -- HTH, Ted * On Jan 4, 2008 4:51

Re: Interceptor best practices ...

2008-01-04 Thread Ted Husted
The best use of interceptors is for behavior that will be shared by several Actions. If there are several different places where a client might be authenticated, then, in that case, a login interceptor (and a custom interceptor stack) can be a good idea. When coding an Interceptor, you can just re

[ANN] Struts on Ajax: Retrofitting Struts with Ajax Taglibs presentation online

2007-12-24 Thread Ted Husted
Just in time for the holidays, TheServerSide has posted a recording of one of my Ajax Experience talks: "Struts on Ajax: Retrofitting Struts with Ajax Taglibs presentation". * http://w.on24.com/r.htm?e=98875&s=1&k=1866520B3A2C334E7169D424A04B2F2D "In this session, we stir some Ajax wizardry into

Re: struts 2 vs struts 1+spring

2007-12-24 Thread Ted Husted
On Dec 22, 2007 3:57 PM, Joe Yuen <[EMAIL PROTECTED]> wrote: > Thank you. It's nice to get a gracious, useful answer. I am not familiar with > Struts 2 yet but >am trying to learn as much as I can. > > Is it possible to run both Struts 1 and 2 together so that I can do the > migration slowly rath

Re: struts 2 vs struts 1+spring

2007-12-22 Thread Ted Husted
On Dec 22, 2007 2:21 AM, Joe Yuen <[EMAIL PROTECTED]> wrote: > Thanks that was a good analogy. I have used Spring and and I like it but then > let me turn the > question around, what do we gain by adding Struts 2 to be used with Spring? Spring MVC is a capable framework, and I wouldn't hesitate t

Re: struts 2 vs struts 1+spring

2007-12-22 Thread Ted Husted
On Dec 21, 2007 9:23 PM, Alberto A. Flores <[EMAIL PROTECTED]> wrote: > If you are following the typical scenario, here are some of the things > you would lose (that no Struts release will do): > > - Transaction Management (if you are using Spring for this) > - AOP support > - Dependency Injection

Re: struts 2 vs struts 1+spring

2007-12-21 Thread Ted Husted
On Dec 21, 2007 4:12 PM, Joe Yuen <[EMAIL PROTECTED]> wrote: > I have an application that currently is implemented using struts 1.2.8 + > spring 1.2.8 + > hibernate. What would be the advantages to migrate this to a struts 2 + > hibernate solution? The Spring integration in Struts 2 is simpler t

Re: OpenSessionInView with Struts 2.x

2007-12-18 Thread Ted Husted
ich I'm not even sure > where can I find one), I would probably consider writing one myself to > handle this case. I also notice that the validate() method is triggered > before the prepare() method (which makes total sense), however I would > like to guess that this scenario is

Re: OpenSessionInView with Struts 2.x

2007-12-18 Thread Ted Husted
There's a brief page with some links regarding Hibernate integration * http://struts.apache.org/2.x/docs/does-the-framework-integrate-with-hibernate.html which may have been it. -Ted. On Dec 18, 2007 6:43 AM, Jeromy Evans <[EMAIL PROTECTED]> wrote: > > Ted Husted wrote: >

Re: OpenSessionInView with Struts 2.x

2007-12-18 Thread Ted Husted
On Dec 17, 2007 4:24 PM, Jeromy Evans <[EMAIL PROTECTED]> wrote: > Personally I think writing to attached entities from the view is a bad > idea precisely due to this issue (and exception handling, and others), > even though it's recommended practice on the struts2 wiki. Where? -T. -

Re: OpenSessionInView with Struts 2.x

2007-12-18 Thread Ted Husted
When a workflow automatically opens and closes a transaction, so that it can cover multiple operations, and something goes wrong during the course of the transaction, then we need to rollback the transaction. In the case of validation, sometimes changes are made to a property which causes it to be

Re: [OT] RE: Is Struts2 ready for prime time?

2007-12-18 Thread Ted Husted
At this point, I'd suggest that we are all just "preaching to the choir" :) S1 and S2 are similar, and anything we can do with S2 we can do with S1. But the elegant, flexible S2 design makes many things a lot easier to do. It's great that S2 is working well for you, Raja, and I hope you'll post a

Re: Is Struts2 ready for prime time?

2007-12-13 Thread Ted Husted
On Dec 13, 2007 5:46 AM, Ian Roughley <[EMAIL PROTECTED]> wrote: > Like Ted, I'm also putting together training options - specifically a > "quick start" for s1 developers who want to get up and running with s2. > So it would cover all the basics, as well as the more advanced > features. I'm also c

Re: Is Struts2 ready for prime time?

2007-12-13 Thread Ted Husted
On Dec 12, 2007 9:28 PM, Jeromy Evans <[EMAIL PROTECTED]> wrote: > Finally, in terms of education, there's some good books out now and > there's a lot of sites providing tutorials (that reminds me, I'm going > to order Ian's book today[1]). However, I don't know of any > professional training cour

Re: Automatic form submission using javascript in struts2

2007-12-13 Thread Ted Husted
In production, it's better to set the logging level to ERROR, so that all the OGNL warnings aren't recorded. Once it doesn't find the property on ServletRedirectResult, the system should append systemId as a parameter to the redirect URL. -- HTH, Ted * On Dec 13,

Re: What are latest updates on Struts2.1?

2007-12-11 Thread Ted Husted
All the development discussions happen on the dev list, and all of the changes to the codebase are reflected on the commit list, and in JIRA (issues@). * http://struts.apache.org/mail.html Right now, that's as close as we are to "one place". When we get closer to a 2.0.1 release, there would be

Re: Result Annotations and parameters

2007-12-09 Thread Ted Husted
Is the property actually "ID", as in "String getID()" ? Or is it getId() ? In the JPA MailReader code (see the sandbox), @Results like this one are working: @Result(name = Index.SUCCESS, value = Index.INDEX, type =ServletActionRedirectResult.class, params = {Index.USER, Index.USER_USERNAME }) w

Re: [S2] Webapps with different action extension

2007-12-07 Thread Ted Husted
First, it's important to note that regardless of how many frameworks, servlets, filters, or anything else we use, if it's under the same application-root, and shares the same web.xml, then it's all one web app. If we like, we can run Tapestry, Wicket, and Struts all in the same web application. All

Re: Automatic form submission using javascript in struts2

2007-12-07 Thread Ted Husted
There doesn't appear to be anything wrong with the script. You might try it from another workstation. As to the underlying use case, it appears that we would like to open a PHP page form a Struts Action. Another way to do that in Struts 2 would be to redirect with parameters. Something like this

Re: Modal Dialog in Struts2

2007-12-06 Thread Ted Husted
The Struts tags aren't designed to provide a modal dialog. Though, any modal dialog from any JavaScript library should work just fine. Simply indicate the Struts action as the form's action. -- HTH, Ted * On Dec 6, 2007 4:03 AM, quinquin2209 <[EMAIL PROTECTED]> wro

Re: combining Struts1 and Struts2

2007-12-06 Thread Ted Husted
On Dec 6, 2007 7:51 AM, Paul Benedict <[EMAIL PROTECTED]> wrote: > Unlike Struts 1, Struts 2 wants your struts.xml in your > src/main/resources -- top of the classpath, not in WEB-INF. To load both configurations from WEB-INF/classes, change the config parameter to the S1 servlet: action o

Re: Struts 2.0.11 localization issue

2007-11-30 Thread Ted Husted
The request_local functionality is part of the Interceptor stack, and so the request has to go through as a Struts Action. An ordinary JSP isn't processed as a Action, any more than a HTML page would be. Otherwise, once the locale is changed, it should stick as part of the session. The two things

Re: 2.x GA estimate

2007-11-30 Thread Ted Husted
Much depends on feedback from the community. We distribute the builds for wider testing, and if the feedback is positive, then we decide on a quality grade. It usually takes between four to six builds to reach a new GA. We've cut one test build so far. Right now, there's a backlog of outstanding p

Re: [S2] Struts/JPA Design Practices

2007-11-29 Thread Ted Husted
On Nov 16, 2007 11:09 AM, Adam Hardy <[EMAIL PROTECTED]> wrote: > To answer your question, I haven't had to do much to plug in OpenJPA and > Struts2 > together - in fact, I haven't had to do anything apart from decide whether I > wanted to have a filter or a Struts2 interceptor or a Spring interce

Re: [s2] download 2.1?

2007-11-29 Thread Ted Husted
On the site, there is a link labeled "Struts 2.x Draft Docs", which leads to "http://struts.apache.org/2.x/";. This link is in the "Development" section of the menu, and it's intended for people who are collaborating on the next version of the framework. The other Struts 2 documentation links lead

Re: [OT] session state (was Re: Wizard like Screens)

2007-11-29 Thread Ted Husted
Just to emphasize what Jeromy is saying, the key words are "scalable" and "cluster". In the case of an intranet application with a set user base that won't be clustered, *not* using session could be evil, since the alternatives tend to be more work to implement and maintain. In physics, we have v

Re: WW-1677 not working (was Re: WW-167 )

2007-11-29 Thread Ted Husted
It's true that the inner text of the JSP tag is not rendering as the inner text of the HTML tag, and so I reopened the issue. If anyone had a patch, I'd be happy to apply it. -Ted. On Nov 28, 2007 11:36 PM, Eric Martin <[EMAIL PROTECTED]> wrote: > > Martin, > > Yes, there is a problem with the o

Re: Configuring Struts to use UTF-8 character encoding

2007-11-28 Thread Ted Husted
On Nov 28, 2007 10:53 AM, Adam Gordon <[EMAIL PROTECTED]> wrote: > What about the use of a filter to set the character encoding? Is this > the only way to go for Struts? I'd say so. It might be possible to add something to the ActionServlet, but the solution wouldn't be any less "heavy handed" th

Re: [S2] Image Generation

2007-11-27 Thread Ted Husted
There's also an example on the Ajax page. * http://struts.apache.org/2.x/docs/ajax.html The Ajax example is returning text, but it could just as easily stream back a PDF. -- HTH, Ted On Nov 27, 2007 6:37 AM, Omkar Patil <[EMAIL PROTECTED]> wrote: > > I'm sorr

Re: S2: Struts2 @SkipValidation does not work

2007-11-27 Thread Ted Husted
How is the validation for the list alias being declared? Is there also an XML file? -Ted. On Nov 27, 2007 3:16 AM, Bionicoder <[EMAIL PROTECTED]> wrote: > > Hi, > > I want to disable validation for certain Struts 2 method. For example, in > the following action class, > > public class CustomerAct

Re: combining Struts-2 with Struts-1 application.

2007-11-21 Thread Ted Husted
ly option I > saw is calling by URL only such as http://localhost/app2/action.do . > > Leena > > > On Nov 21, 2007 10:25 AM, Ted Husted <[EMAIL PROTECTED]> wrote: > > > First make sure it's an issue with using the S1 Action. Try porting > > just one S1 Ac

Re: [ANN] Practical Apache Struts2 Web 2.0 Projects

2007-11-21 Thread Ted Husted
Amazon is showing the book as available now! If you order through this link, the commission on the sale will be donated to the ASF. * http://opensource.atlassian.com/confluence/oss/display/BOOKS/ISBN-1590599039 Ian, any word on whether Apress will be making their books available for the Kindle

Re: S2/SmartURLs: parameterized results...

2007-11-21 Thread Ted Husted
Let me take that back. The proper idiom is to use the params attribute. > @Result(name="success",location="/competitions/admin", > params={"id","${compId}"}) If there is more than one parameter, we can continue to add more name/value pairs to t

Re: Naming convention

2007-11-21 Thread Ted Husted
only occur in the > mapping file(s) and leave code out of it. > > Given my underlying mistrust of DB developers I've > almost always had, or created, a layer between what > they do and what I do, to the point of having maps of > interface impls that actually do the DB

Re: S2/SmartURLs: parameterized results...

2007-11-21 Thread Ted Husted
Leave out the get :) @Result(name="success",location="/competitions/admin?id=${compId}", should work just fine, if compId is an Action class property, or otherwise on the value stack. -Ted. On Nov 18, 2007 12:20 AM, Eric D Nielsen <[EMAIL PROTECTED]> wrote: > I've been trying to understand how

Re: combining Struts-2 with Struts-1 application.

2007-11-21 Thread Ted Husted
First make sure it's an issue with using the S1 Action. Try porting just one S1 Action to S2, to test whether the same thing happens or not. If it is only the actions that need to invoked, then the Struts 1 plugin might help. It doesn't let us run Struts 1 taglibs from Struts 2, but it can wrap th

Re: Naming convention

2007-11-21 Thread Ted Husted
Given the refactoring tools in IDEs today, I'd probably go with keeping the names in synch as opposed to keeping some other form of documentation in synch; since, if the classes are not named then same, then you might have to otherwise document which class calls which stored procedure. One counter

Re: jQuery plugin for Struts 2?

2007-11-20 Thread Ted Husted
On Nov 20, 2007 1:53 PM, wrote: > I've been working with Struts 2 for a few months and have some questions that > I was hoping you would be interested in discussing with me. > > I see that Struts 2 uses Dojo for it's Ajax capabilities. I prefer jQuery and > have contemplated > making a jQuery p

Re: [S2] Struts/JPA Design Practices

2007-11-20 Thread Ted Husted
ject (automatic lazy instantiation). Elegant indeed :) -Ted. On Nov 17, 2007 1:00 AM, Gary Affonso <[EMAIL PROTECTED]> wrote: > Ted Husted wrote: > > I know the JPA is growing in popularlity among Struts developers. I > > was wondering if there are certain Struts 2 feature

Re: Form Submission Question

2007-11-16 Thread Ted Husted
Patches are always welcome (once you get it figured out) :) On Nov 15, 2007 2:22 PM, Hernandez, David <[EMAIL PROTECTED]> wrote: > > Thanks guys. The bootstrap should have an example where the fields are > populated by the Action Class's member variables. But I figured it out, > I think . . . ---

Re: Form Submission Question

2007-11-16 Thread Ted Husted
Just to further Dave is saying. If the class is a proper JavaBean with a zero-argument constructor, if it is null during autopopulation, then the framework will automatically instantiate it. For fancier implementations, we can even provide a custom type converter for a class, that could do someth

[S2] Struts/JPA Design Practices

2007-11-16 Thread Ted Husted
Over on dev@, a couple of us are working on a JPA MailReader. Rather than just try and port the old version, we're also refactoring the internal design so that it's more in line with the JPA overall. I know the JPA is growing in popularlity among Struts developers. I was wondering if there are cer

Re: Migration from S2.0.x to S2.1.x

2007-11-14 Thread Ted Husted
While the paperwork clears, you can always start a "Migrating From 2.0 to 2.1" page in the Struts 2 community wiki, and we can move the page over later. * http://cwiki.apache.org/S2WIKI/home.html Then, to point people to it, add a comment to the Migration Guide page. HTH, Ted

Re: [s2] LabelValueBean

2007-11-11 Thread Ted Husted
e built-in support for dealing with maps. > Is there a specific use case that you've encountered where you needed that? > Tom > > > > Ted Husted wrote: > > > > Is there a corollary to the Struts 1 LabelValueBean in Struts 2? > > > > * > > h

[s2] LabelValueBean

2007-11-11 Thread Ted Husted
Is there a corollary to the Struts 1 LabelValueBean in Struts 2? * http://svn.apache.org/viewvc/struts/struts1/trunk/core/src/main/java/org/apache/struts/util/LabelValueBean.java -Ted. - To unsubscribe, e-mail: [EMAIL PROTECTE

Re: Is directly setting the Action's fieldErrors map OK?

2007-11-11 Thread Ted Husted
Submit a patch :) On Nov 11, 2007 1:14 PM, Gary Affonso <[EMAIL PROTECTED]> wrote: > Now, if only the internal FieldErrors map was genericised. One of two > isn't bad, though. :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: dojo version in struts 2.0.11?

2007-11-11 Thread Ted Husted
Please keep in mind that the "Ajax-as-Theme" approach taken in Struts 2.0.x has been tagged "end of life" by the development group. In Struts 2.1.x, the Ajax JSP tags are being expressed as a plugin. We do welcome everyone's help, but the best place to put a significant amount of effort would be t

Re: dojo version in struts 2.0.11?

2007-11-09 Thread Ted Husted
I wonder if it would be possible to retrofit the 2.1 Dojo plugin for 2.0? -Ted. On Nov 9, 2007 8:25 AM, Antonio Petrelli <[EMAIL PROTECTED]> wrote: > 2007/11/9, Sami Dalouche <[EMAIL PROTECTED]>: > > If anyone is interested, I have created my own dojo 1.0.0 theme for > > standard Struts 2 tags. (

Re: Struts 2.1 release date?

2007-11-08 Thread Ted Husted
And it will probably stay that way. We just wanted to get something out for people to try, while we work toward applying the rest of the outstanding patches. So far, we're about half-way through that process. * https://issues.apache.org/struts/browse/WW/fixforversion/21863 Of course even with al

Re: ajax integration with struts

2007-11-08 Thread Ted Husted
On Nov 7, 2007 7:54 PM, Lalchandra Rampersaud <[EMAIL PROTECTED]> wrote: > I would like to integrate ajax within a struts app, but I have no idea how > to go about doing that. The key point is that when a script makes an "Ajax request" (XHR), the server doesn't know it came from a script, and han

How Many Methods Must an Action Walk Down (was Re: Annotation Validation, per method?)

2007-11-07 Thread Ted Husted
that address input preparation without using method invocation. -T. On Nov 6, 2007 8:10 PM, Gary Affonso <[EMAIL PROTECTED]> wrote: > Ted Husted wrote: > > Of course, if you use one-action-method per Action-class, then all the > > annotations work just fine. > > +1 on one-

Re: Annotation Validation, per method?

2007-11-06 Thread Ted Husted
There's a setting that you can change, but when you do, you lose inherited property validations. * https://issues.apache.org/struts/browse/WW-2191 So, it's still not an optimal situation. :( Ideally, we should be able to have per-method validations and inherit methods placed on properties. Of

Re: S2: EL in tags 2.0.11

2007-11-01 Thread Ted Husted
That's great, Chris! I opened a ticket to track the feature. Let us know when you have something to show! * https://issues.apache.org/struts/browse/WW-2284 -Ted. On Oct 31, 2007 11:01 AM, Chris Pratt <[EMAIL PROTECTED]> wrote: > On 10/30/07, Ted Husted <[EMAIL PROTECTED]>

Re: S2: EL in tags 2.0.11

2007-10-30 Thread Ted Husted
A better long-term solution might be to create a standard JSP 2.0 taglib for Struts 2 that follows the same external API as the Struts 1 EL tags, and didn't use OGNL at all. * http://struts.apache.org/1.3.8/struts-el/index.html This would mean doing without templates, but I think many people are

Re: RE [ANN] Struts 2.0.11 GA release available

2007-10-30 Thread Ted Husted
For news on the 2.1 front, drop by the dev list. * http://www.nabble.com/-S2--2.1.0-Test-Build-Available-p13471367.html -Ted. On Oct 29, 2007 10:43 PM, Jeromy Evans <[EMAIL PROTECTED]> wrote: > No, that improvement is included in the struts-dojo-plugin used by only > 2.1.x. > > But you can do i

[ANN] Struts 2.0.11 GA release available

2007-10-28 Thread Ted Husted
ruts framework, please post your comments to the user list, and, if appropriate, file a tracking ticket at <https://issues.apache.org/struts/secure/Dashboard.jspa> Ted Husted, on behalf of the Apache Struts Project Management Committee * http://struts.apache.org/kickstart.html * http://

Re: Struts2 version 2.1

2007-10-26 Thread Ted Husted
On 10/25/07, someone> wrote: > Hi, > > Having been a long time developer with Struts, I love working with Struts 2x. > So far it has >been a pleasure and you guys have done a great job. It seems like all the things I did not >like about Struts have been address in Struts2. > Do you know when 2.1 w

Re: JSON RPC

2007-10-19 Thread Ted Husted
I've been doing some work with Struts and JSON, but I don't know anything about using JSON RPC with Swing. For Struts, you don't really need to use full-blown JSON RPC. You can use an ordinary XHR submit, and then use the JSON plugin for the result. The tricky part is handling exceptions. Without

Re: Manually obtain previous action parameters after action "chaining"?

2007-10-11 Thread Ted Husted
ULL-Session-object-after-execAndWait-interceptor.-Why--tf4600442.html > about session object and strange behavior after execAndWait interceptor > > > Ted Husted wrote: > > > > The Action itself is not copied over, the PROPERTIES are copied. If > > the properties in common ar

Re: Manually obtain previous action parameters after action "chaining"?

2007-10-11 Thread Ted Husted
The Action itself is not copied over, the PROPERTIES are copied. If the properties in common are copied forward, then there should be no need to address the prior Action class directly. Any methods that need to be called by more than one Action should be moved to a base support class that the Actio

Re: [S2] Send a request AJAX in JS

2007-10-10 Thread Ted Husted
You don't need to do anything special to make the request. Any standard Ajax approach will work just fine. The request can be to a servlet or other resource, or to a Struts 2 Action. If it's to a Struts 2 Action, it should return a HTML/Text result, or use the JSON plugin. * http://struts.apache.

Re: Manually obtain previous action parameters after action "chaining"?

2007-10-10 Thread Ted Husted
The use case for the chain result is that JavaBean properties on ActionTwo that match JavaBean properties on ActionOne are copied forward. This sounds like the same use case that you describe, and it's unclear why it isn't working, or why you would need to do anything manually. The most helpful th

Re: Ajax Call from a html link

2007-10-10 Thread Ted Husted
I believe this exact example is included with the AjaxParts Taglib, which works well with Struts (1 or 2). If anyone is going to be using Ajax and JSP tags together, AjaxParts is a great way to go (and easy to learn!). * http://www.omnytex.com/articles/apt/ HTH, Ted.

Documentation versus Community Wiki (was Re: How to improve dojo performance in Struts 2.0.9)

2007-10-10 Thread Ted Husted
Since projects like Struts wear our code "on our sleeve", there's always a discussion over whether the website should represent the latest documentation or the documentation for the "best available" release. Over the years, we've done it one way and the another, and now we do it both ways :) The l

Re: [s2] Struts head tag KILLS (> 10s) page load time

2007-10-08 Thread Ted Husted
On 10/8/07, chengas123 <[EMAIL PROTECTED]> wrote: > > There's not a link anywhere on the page to add a comment: > http://struts.apache.org/2.x/docs/autocompleter.html > Is there some other way I need to access that functionality? > > Thanks, > Ben > > >

Re: [s2] Struts head tag KILLS (> 10s) page load time

2007-10-08 Thread Ted Husted
To edit a page in the main documentation wiki, we need a CLA on file first. * http://struts.apache.org/2.x/docs/editing-the-documentation.html But, if you open a Confluence account, you should still be able to add a comment. -Ted. On 10/8/07, chengas123 <[EMAIL PROTECTED]> wrote: > > Ahh! Tha

  1   2   3   4   5   6   7   8   >