SV: Shale's dialog manager is driving me nuts!

2006-05-06 Thread Hermod Opstvedt
Hi The bottom of the page might be a clue : id:"null" | type:"javax.faces.component.UIViewRoot" Hermod -Opprinnelig melding- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sendt: 7. mai 2006 01:48 Til: Struts Users Mailing List Emne: RE: Shale's dialog manager is driving me nuts!

RE: Counting ActionErrors from JSP

2006-05-06 Thread Ruben Cepeda
Philihp, If you want to get accesses to the ActionErrors class "size()" method from a JSP thru lets say JSTL. You will can extend the ActionErrors and makes the method "getSize()". The access the ActionErrors class in the page my its name (see http://struts.apache.org/struts-doc-1.2.x/api/in

RE: Shale's dialog manager is driving me nuts!

2006-05-06 Thread sander . vallaots
Quoting [EMAIL PROTECTED]: > Quoting "David G. Friedman" <[EMAIL PROTECTED]>: > > > Sounds like you need (da da da) Faces Trace: > > http://www.jroller.com/page/cagataycivici?entry=rise_of_the_faces_trace > > > > Okay, so I've never used it but it sounds like it might > > just help you figur

RE: Shale's dialog manager is driving me nuts!

2006-05-06 Thread sander . vallaots
Quoting "David G. Friedman" <[EMAIL PROTECTED]>: > Sounds like you need (da da da) Faces Trace: > http://www.jroller.com/page/cagataycivici?entry=rise_of_the_faces_trace > > Okay, so I've never used it but it sounds like it might > just help you figure out where, when and why your JSF + Shale

Issue with checkboxes!

2006-05-06 Thread Rizwan Merchant
Hi, I am having issue using checkboxes with the struts framework and DynaValidatorForm. I have a userForm that contains an object called "user" and another object called "userRestrictions" (which defined permissions for that user. When I access the page for the first time all permissions are d

RE: Shale's dialog manager is driving me nuts!

2006-05-06 Thread David G. Friedman
Sounds like you need (da da da) Faces Trace: http://www.jroller.com/page/cagataycivici?entry=rise_of_the_faces_trace Okay, so I've never used it but it sounds like it might just help you figure out where, when and why your JSF + Shale application is stuck. Regards, David -Original Messag

Re: Change Input parameter at run time

2006-05-06 Thread Michael Jouravlev
Frank's way is simple, declarative and it works. You can also try the one that I replied with two days ago: -- Forwarded message starts -- From: Michael Jouravlev <[EMAIL PROTECTED]> Date: May 4, 2006 12:25 PM Subject: Re: Change Input parameter at run time part 2... To: Struts Us

Re: Shale's dialog manager is driving me nuts!

2006-05-06 Thread sander . vallaots
> WOOHOO!!! Thanks Craig. Now I know the reason why it didn't forward to step > 2, > but I'm still stuck :( > It displays "Conversion error occurred."for string fields. > Errr...??? > > The person bean has all the fields with according getters/setters > private String firstName; >

Re: Shale's dialog manager is driving me nuts!

2006-05-06 Thread sander . vallaots
Quoting Craig McClanahan <[EMAIL PROTECTED]>: > On 5/6/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> > wrote: > > > Hi, > > > > I'm a software architect and we have a major project coming where I > > thought our > > dev team should try new things. So I decided to replace Struts (default > > option >

Re: Shale's dialog manager is driving me nuts!

2006-05-06 Thread Craig McClanahan
On 5/6/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi, I'm a software architect and we have a major project coming where I thought our dev team should try new things. So I decided to replace Struts (default option :P) with JSF and Shale. I thought that it would be good when I personally kn

Re: EventDispatchAction and wizard

2006-05-06 Thread Michael Jouravlev
Check out the wizard sample from Struts Dialogs 2.0 It uses EventActionDispatcher renamed to EventDispatcher, but you can use standard EventActionDispatcher with the same result: https://sourceforge.net/project/showfiles.php?group_id=49385&package_id=154597 It behaves like this one: http://www.su

Shale's dialog manager is driving me nuts!

2006-05-06 Thread sander . vallaots
Hi, I'm a software architect and we have a major project coming where I thought our dev team should try new things. So I decided to replace Struts (default option :P) with JSF and Shale. I thought that it would be good when I personally know the limits of JSF and Shale first before I put them into

Tiles without Struts

2006-05-06 Thread Klaus O K
Hi I am an experienced user of Struts and Tiles. Now I am trying to run Tiles without Struts, and I can not get it to work at all. The installation instructions say: "First, download a binary distribution of Tiles, currently distributed with the Struts Framework" I have not been able to find thi

Re: How do I insert a value from an id-iterate-bean into the value-tag of multibox?

2006-05-06 Thread Andreas Hartmann
Hello Rick, Rick Reumann wrote: > Andreas Hartmann wrote: >> Hello Tarun, >> >> Tarun Reddy wrote: >>> Hi, >>> You can do this way, >>> >>> >>> >>> >>> >>> >>> This should work. >> >> This produces an Unterminated > You sure you aren't missing the ?

EventDispatchAction and wizard

2006-05-06 Thread Jakub Milkiewicz
Hi I am creating wizzard application that contains 5 screens. It looks like: Action -> jsp ->Action -> jsp ->Action ->jsp ... I also use autovalidation. All my actions are setup actions (as Michael Jouravlev suggests). So if i submit a form from jsp to some Action and validation fails struts forwa

Re: Change Input parameter at run time

2006-05-06 Thread Frank W. Zammetti
Not sure if anyone said this already, but... if the validation failures are mutually exclusive, i.e., type 1 cannot occur when submission was from page 2, and type 2 cannot occur when submission was from page 1, then I think all you need to do is create another mapping in struts-config, both id

Re: Change Input parameter at run time

2006-05-06 Thread Jakub Milkiewicz
Hi I am not sure if you can do it easily. Maybe some plubing will be needed. Anyway concern validation in Action and then forward or redirect wherever you want. 2006/5/4, Troy Bull <[EMAIL PROTECTED]>: Greetings I have an application i have inherited. There is a situation where 2 jsp's submi

Re: FW: StrutsTestCase & Hibernate

2006-05-06 Thread Adam Hardy
I think unit tests on everything are always a good idea - the problem comes if you start making them 'more' than just unit tests. Ideally you should be able to unit test action classes quickly with mock objects or stubs for both the business tier below and the MVC controller tier above. Stru

validation problems

2006-05-06 Thread Sandeep Dhanuka
Hi Everyone, I am using struts validatior to valiate my form on JSP and dont want to take validation to my Action class. I have a check box and a text box on my JSP. I want to validate text box to have 19 characters when check box is not checked and 17 characters when checkbox is checked. How s

Re: page validation in wizzard app

2006-05-06 Thread Jakub Milkiewicz
Hi Ed Thanks for an answer. The problem with your idea is: IF validation fails i can not forward to previous JSP! I need to forward to previous action to prepare me a view - retireve something from DB and put it in . I have the same idea to put form.setPage(pageNo) as first thing in each action. M

Re: page validation in wizzard app

2006-05-06 Thread Jakub Milkiewicz
Hi Thanks for your answer but i do not understand what : hidden static 'page' variable in the JSP Please note that if i submit a form i sent it along with page parameter. And if form is not valid i do not go to any JSP page - i am forwarding to previous ACTION. Because of autovalidation i am

Re: page validation in wizzard app

2006-05-06 Thread Ed Griebel
Hi Jakub- I'm not sure if I fully understand your pageflow, but here goes. I would turn off automatic validation in struts_config.xml. In each action, one of the first things I would do is call form.setPage(pageNo) and then call form.validate(...), and if there are any errors I'd return an Action

RE: hibernate

2006-05-06 Thread Ramkumar.Sakthivel
Hi, http://www.gloegl.de/5.html will give you a jump start on hibernate. Thanks and Regards, S.Ramkumar Associate Consultant - Investment Banking PrimeSourcing(tm) "Add Value Reduce Risk" i-flex solutions limited, Bangalore Ph:+ 91-80- 22086000/57596000- extn 6873 E-Mail:[EMAIL PROTECTED] ---

Re: hibernate

2006-05-06 Thread Pavan Chillara
hi all please visit to www.allapplabs.com and also www.roseindia.net for J2EE tutorilas Thanks Pavan On 5/6/06, Manopriya Jagadeesan , Tidel Park - Chennai <[EMAIL PROTECTED]> wrote: Hi all, I need a good start for hibernate.Can anyone suggest some good links? -- Thanks Pa

Re: page validation in wizzard app

2006-05-06 Thread Richard Yee
Jakub, I think the more elegant solution is to do the validations in the ActionForm validate method and also use a hidden static 'page' variable in the JSP. Your Action.execute method should be fairly small and mainly have code that calls business delegates and that necessary for determining

Re: How do I insert a value from an id-iterate-bean into the value-tag of multibox?

2006-05-06 Thread Rick Reumann
Andreas Hartmann wrote: Hello Tarun, Tarun Reddy wrote: Hi, You can do this way, This should work. This produces an Unterminated

page validation in wizzard app

2006-05-06 Thread Jakub Milkiewicz
Hi I have a wizzard application with 5 screens. All user inputs are collected in one bean, which is named: viewBean and is stored in HTTP session. So each action has the same formBean - viewBean. I use commons-validator and viewBean properties to validate are present in validation.xml with page at

RE: Is Action Chaining Strongly Discouraged?

2006-05-06 Thread Tarek Nabil
Dave, I'm not sure if you really read my message thoroughly. When I meant population, I meant for things like drop down lists, not for edit pages that come pre-populated with existing data to edit. If you always go back to the same page, then populating the drop down list has to be done whether

Re: FW: StrutsTestCase & Hibernate

2006-05-06 Thread Jakub Milkiewicz
Hi If you are thinking of unit tests for action i do not think it is great idea. For me actions should be as dumb as possible and just delegate business processing to another layer. 2006/5/5, Stasica, Grzegorz <[EMAIL PROTECTED]>: hi, Basically I'm interested in testing struts actions (forw

[OT] Re: hibernate

2006-05-06 Thread Nikolaj Berntsen
Manopriya Jagadeesan , Tidel Park - Chennai wrote: >Hi all, > I need a good start for hibernate.Can anyone suggest some good links? > > 1. hibernate.org really has good info. 2. the documentation with myeclipse on hibernate is also pretty good (you can download the trial and

hibernate

2006-05-06 Thread Manopriya Jagadeesan , Tidel Park - Chennai
Hi all, I need a good start for hibernate.Can anyone suggest some good links?