Re: dialog stuff (was) Re: Refresher for newbies...

2005-07-11 Thread Michael Jouravlev
I released Struts Dialogs 1.21. The biggest change is moving to net.jspcontrols.* package name. I wrote some docs on how to create wizards with WizardAction: http://struts.sourceforge.net/strutsdialogs/wizardaction.html Michael. ---

Re: dialog stuff (was) Re: Refresher for newbies...

2005-07-08 Thread Adam Hardy
Michael Jouravlev wrote the following on 7/7/2005 5:13 PM: > The good thing that company I currently work at is about to have > another web project and hopefully I will be able to use my own stuff. > On the other hand, I am not sure how I can use it at work, and still > keep it for myself and as o

Re: dialog stuff (was) Re: Refresher for newbies...

2005-07-08 Thread erikweber
Works great in Firefox on my Fedora box. Erik -Original Message- From: Michael Jouravlev <[EMAIL PROTECTED]> Sent: Jul 8, 2005 11:30 AM To: Struts Users Mailing List , Wendy Smoak <[EMAIL PROTECTED]> Subject: Re: dialog stuff (was) Re: Refresher for newbies... On 7

Re: dialog stuff (was) Re: Refresher for newbies...

2005-07-08 Thread Michael Jouravlev
On 7/8/05, Wendy Smoak <[EMAIL PROTECTED]> wrote: > From: "Michael Jouravlev" <[EMAIL PROTECTED]> > > Rick, check out this one: > > http://www.superinterface.com/strutsdialog/crudactionlite.do > > All CRUD operations in one web island. Check out your Back button ;-) > > Michael, check your link...

Re: dialog stuff (was) Re: Refresher for newbies...

2005-07-08 Thread Michael Jouravlev
On 7/7/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > Oh, I am sorry, you misunderstood me. What I did, is combined > ItemListAction with CRUDAction, so I show list from the same location. > It gives the usual benefits of web island. Basically, the whole thing, > list and edit and view forms, a

Re: dialog stuff (was) Re: Refresher for newbies...

2005-07-07 Thread Michael Jouravlev
On 7/7/05, Rick Reumann <[EMAIL PROTECTED]> wrote: > Michael Jouravlev wrote the following on 7/7/2005 5:13 PM: > > > So, tokens better than nothing, like Yugo comparing to bike. But it is > > still a Yugo. (I am not selling Lexus here, merely a Corolla). > > Yes, it does sound like your approach

Re: dialog stuff (was) Re: Refresher for newbies...

2005-07-07 Thread Rick Reumann
Michael Jouravlev wrote the following on 7/7/2005 5:13 PM: So, tokens better than nothing, like Yugo comparing to bike. But it is still a Yugo. (I am not selling Lexus here, merely a Corolla). Yes, it does sound like your approach to the whole 'back' issue problem handles things in a much nic

RE: Refresher for newbies (part 2)

2005-07-07 Thread Kent Boogaart
ing to do is fairly common and maybe point me in the right direction. Thanks, Kent -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Friday, 8 July 2005 1:45 AM To: Struts Users Mailing List Subject: Re: Refresher for newbies (part 2) After reading the initial ne

Re: dialog stuff (was) Re: Refresher for newbies...

2005-07-07 Thread Michael Jouravlev
On 7/7/05, Rick Reumann <[EMAIL PROTECTED]> wrote: > (moved to new topic heading, but keeping seem referenceID for those > threading).. > > Michael Jouravlev wrote the following on 7/7/2005 1:40 PM: > > > Ok, Rick, lets pull out and compare :-) But before I go into > > presenting my approach, cou

dialog stuff (was) Re: Refresher for newbies...

2005-07-07 Thread Rick Reumann
(moved to new topic heading, but keeping seem referenceID for those threading).. Michael Jouravlev wrote the following on 7/7/2005 1:40 PM: Ok, Rick, lets pull out and compare :-) But before I go into presenting my approach, could you tell me, what happens in your app when a user clicks Refres

Re: Refresher for newbies...

2005-07-07 Thread Michael Jouravlev
On 7/7/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: Just a clarification: > Now, bring up the login form, use guest/guest and log in. Now it shows > "Logged In" form with "Log Out" button. Check the address, it is the > same as for login form. Click Back browser button. You are not brought >

Re: Refresher for newbies...

2005-07-07 Thread Michael Jouravlev
On 7/7/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > I understand the PRG pattern. I don't see how it is relevant to the > Action vs. DispatchAction point. > > Perhaps I'm just being dense... Perhaps. Or perhaps I cannot explain my thoughts cleanly enough. Please, reread the email and pay a

Re: Refresher for newbies...

2005-07-07 Thread Frank W. Zammetti
I understand the PRG pattern. I don't see how it is relevant to the Action vs. DispatchAction point. Perhaps I'm just being dense... I am reviewing 3 gigs of server logs today and my eyes feel like they are about to explode, and my brain is about to turn to mush, moreso than usual I mean ;) --

Re: Refresher for newbies...

2005-07-07 Thread Michael Jouravlev
This is exactly what I mean. If you recall the definition, Location != URL. Instead, Location == URL + request params. Most browsers build up page history using locations, of the browsers known to me, only Opera uses actual responses. That means, that if you load the same page five times in Opera,

Re: Refresher for newbies...

2005-07-07 Thread Rick Reumann
Rick Reumann wrote the following on 7/7/2005 11:58 AM: // THE SET UP FOR EDIT Ok, this is the one you were asking about. Now you have to think about how you would get here? Typically you'd get to an edit page by clicking on a user record to say "Hey, I want to edit this guy's user informati

Re: Refresher for newbies...

2005-07-07 Thread Michael Jouravlev
Typo: I wrote "DispatchAction and its subclasses accepts input as form submission only (POST)". Must read as "DialogAction and its subclasses accepts input as form submission only (POST)" Also, two other methods for completeness. This one is called when a user submits new/updated item to persist i

Re: Refresher for newbies...

2005-07-07 Thread Frank W. Zammetti
I don't understand your argument Michael. Can you expand and/or clarify? Specifically, how is multiple Actions not serving from the same location? It's not the same URL, granted, is that what you meant? -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.o

Re: Refresher for newbies...

2005-07-07 Thread Michael Jouravlev
On 7/7/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > (For any newbies reading this, the difference that matters is that with a > DispatchAction, you have a single entry in struts-config, but you have to > pass a parameter with each request. With plain Actions, you would have > multiple mappin

Re: Refresher for newbies...

2005-07-07 Thread klute
Rick, Can you clarify how you give the dispatch action default "add" value? Is it meber attribute of "add" on the action itself? Thanks, James --- Rick Reumann <[EMAIL PROTECTED]> wrote: > Rick Reumann wrote the following on 7/7/2005 11:58 > AM: > > >This will have the following methods: >

Re: Refresher for newbies...

2005-07-07 Thread Michael Jouravlev
On 7/7/05, Rick Reumann <[EMAIL PROTECTED]> wrote: > I posted this in reply to Tony's post, but figured this stuff comes up > all the time and to those new to Struts, this below might help > > You can accomplish 99% of what you want with this simple design Ok, Rick, lets pull out and compare

Re: Refresher for newbies...

2005-07-07 Thread Rick Reumann
klute wrote the following on 7/7/2005 12:56 PM: UserActionForm userForm = (UserActionForm)form; //userID is set in this form when the user clicked on the link So, even though the jsp containing the list of users and the links to edit each of them doesnot contain a form tag, your userForm

Re: Refresher for newbies...

2005-07-07 Thread Rick Reumann
Frank W. Zammetti wrote the following on 7/7/2005 12:43 PM: Any reason in getUsers() that you are going directly to request to get the companyID parameter, as opposed to getting it from the form? For a full blown app, I'd probably have a "CompanyActionForm" which would hold companyID and I'd u

Re: Refresher for newbies...

2005-07-07 Thread klute
Thanks Rick, I'd like to clarify something here. >UserActionForm userForm = (UserActionForm)form; >//userID is set in this form when the user > clicked on the link So, even though the jsp containing the list of users and the links to edit each of them doesnot contain a form tag, your u

Re: Refresher for newbies...

2005-07-07 Thread Frank W. Zammetti
Any reason in getUsers() that you are going directly to request to get the companyID parameter, as opposed to getting it from the form? It might be worth noting that some people dislike the use of DispatchAction in most cases, me included. This is a fairly minor point as the actual code you wrote

Re: Refresher for newbies (part 2)

2005-07-07 Thread Rick Reumann
After reading the initial newbie post, you then might come across a situation where you need to have some things like "lists" on the page that aren't related to your ActionForm. For example, in the User example just given, imagine you need the person using the form to select a "Department" that

Re: Refresher for newbies...

2005-07-07 Thread Rick Reumann
Rick Reumann wrote the following on 7/7/2005 11:58 AM: This will have the following methods: (all with signature public ActionForward methodName (ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) setUpForEdit(..) setUpForAdd(..) S

Refresher for newbies...

2005-07-07 Thread Rick Reumann
I posted this in reply to Tony's post, but figured this stuff comes up all the time and to those new to Struts, this below might help You can accomplish 99% of what you want with this simple design For the sake of this discussion I'm going to assume you are using a DispatchAction. In case