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

2006-05-07 Thread sander . vallaots
Quoting Hermod Opstvedt <[EMAIL PROTECTED]>: > 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 U

Re: Issue with checkboxes!

2006-05-07 Thread 王曾wang_zeng
The reason is that the form bean is configed to be saved in session scope, and the reset() method is not called when the form is submitted. -- Wang Zeng

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

2006-05-07 Thread Martin Gainty
Good Morning Sander- I found Log4j supports multiple implementations to log event activities Information and binaries are available at http://logging.apache.org/log4j/docs/ (2 cents from the wolf pack) Sverige Altid Martin Gainty __ Disclaimer and co

Re: Issue with checkboxes!

2006-05-07 Thread Rick Reumann
王曾wang_zeng wrote: The reason is that the form bean is configed to be saved in session scope, and the reset() method is not called when the form is submitted. Rizwan, Meaning... you need to override the ActionForm reset method and set any of your ActionForm booleans to false. Then you'll be a

Re: Issue with checkboxes!

2006-05-07 Thread Rizwan Merchant
Thanks for the responses guys! Please see end of message for follow up question :) So I get most of what you said about overriding the ActionForm. Since I am using DynaValidatorForm I will need to extend that class. Currently my form-bean definition is as follows type="org.apache.stru

Re: page validation in wizzard app

2006-05-07 Thread Ed Griebel
You could have the ActionForward mapped to an Action class in your struts_config.xml file just as easily as a JSP, e.g. and then just 'return ActionForward("validation_failed")' if validation failed on page1. HTH, -ed On 5/6/06, Jakub Milkiewicz <[EMAIL PROTECTED]> wrote: Hi Ed Thanks for an a

Re: page validation in wizzard app

2006-05-07 Thread Richard Yee
Jakub, Why can't you reset the page attribute to the appropriate value in your Action classes when validation fails. -Richard Richard Yee wrote: 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

Re: page validation in wizzard app

2006-05-07 Thread Jakub Milkiewicz
Hi I do not catch it: I do not think this synax is ok. The problem is that i use autovalidation. If validation fails i am forwarded to another action specified by input attribute.Let's call it action2. But action2 is never executed because before its execute() method is invoked.Form bean is

Re: page validation in wizzard app

2006-05-07 Thread Jakub Milkiewicz
Hi Richard. I can't because of autovalidation. Remember that all my action have the same actionForm which is storred in session. If validation fails i am forwarded to previous action but this action is not even executed cause before this previous action can be invoked validation process occurs. Pa

Re: Issue with checkboxes!

2006-05-07 Thread Rick Reumann
Rizwan Merchant wrote: and in ExtendedDynaValidatorForm I would have a reset() method as follows public void reset(ActionMapping mapping, HttpServletRequest request){ super.reset(); //not sure what goes here } So my next question is..how to I reset all the booleans in the form? Do I hav

Re: Issue with checkboxes!

2006-05-07 Thread Rizwan Merchant
Thanks Rick. I have 6 checkboxes in that session scope form and 5 of them behave fine (I can set or unset them), only one of them acts funny and cannot be reset to false. Any idea why this would be happening..just curious! Rick Reumann wrote: Rizwan Merchant wrote: and in ExtendedDynaValid

Insert into html based on passed URL paramter

2006-05-07 Thread Bryce Nesbitt
I have a tiles template: Which is involved from titles-defs.xml: On a jsp file <%@ taglib uri="struts-bean" prefix="bean" %> <%@ taglib uri="struts-html" prefix="html" %> <%@ taglib uri="struts-logic" prefix="logic" %> <%@ taglib uri="struts-tiles" pre

Re: page validation in wizzard app

2006-05-07 Thread Ed Griebel
On 5/7/06, Jakub Milkiewicz <[EMAIL PROTECTED]> wrote: Hi I do not catch it: > name="validation_failed" action="RepopulateAction"/> > I do not think this synax is ok. The is inside of a block in your struts-config.xml, the syntax is approximate and should be enough to give you the idea. T

Re: page validation in wizzard app

2006-05-07 Thread Richard Yee
Jakub, Even though you are using autovalidation, don't you still have a validate() method in your ActionForm that is getting called? Can you alter the page attribute appropriately there (ie. if (errors.size() > 0) page--; -Richard Jakub Milkiewicz wrote: Hi Richard. I can't because of autov

Re: Issue with checkboxes!

2006-05-07 Thread Richard Yee
Rizwan, Have you tried using a source level debugger to watch the value of the boolean in the reset method? You should also view the source of your page to make sure the checkbox has the right name. -Richard Rizwan Merchant wrote: Thanks Rick. I have 6 checkboxes in that session scope fo

Validation Problems

2006-05-07 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-07 Thread Quinn Stone
You can use the flow: POPULATE1-> JSP1 -> ACTION1 -> POPULATE2 -> JSP2 -> ACTION2 -> POPULATE3 -> JSP3 All of the POPULATE actions have "validate=false" in the config. So, if validation fails after JSP2 is submitted, it forwards to POPULATE2 (ACTION2 has input="POPULATE2" set), which won't try to

ERROR 500: javax.servlet.ServletException: Cannot retrieve definition for form bean

2006-05-07 Thread rajan pahuja
Hi I need your help.I have been getting this error for past 3 days and i have not been able to trace the reason. i m gettin ERROR 500: javax.servlet.ServletException: Cannot retrieve definition for form bean LoginForm on action /doLogin org.apache.jasper.runtime.PageContextI

RE: ERROR 500: javax.servlet.ServletException: Cannot retrieve definition for form bean

2006-05-07 Thread David G. Friedman
Rajan, Your form name "LoginForm.do" and the action's form name of "LoginForm" do not match exactly. I recommend you change your form-bean from: I expect the ".do you added to your form-bean name to be the problem: to: Regards, David -Original Message- From: rajan pahuja [mailto:[

RE: ERROR 500: javax.servlet.ServletException: Cannot retrieve definition for form bean

2006-05-07 Thread Pradyumna kumar, Jena \(J.\)
Hi, Why are u naming ur form bean as LoginForm.do?? instead of LoginForm. Keep both values of name attr in form bean and action tag same Thanks Pradyumna -Original Message- From: rajan pahuja [mailto:[EMAIL PROTECTED] Sent: Monday, May 08, 2006 9:34 AM To: user@st

Re: Validation Problems

2006-05-07 Thread Richard Yee
Sandeep, You can do complex validations in your ActionForm validate method. You can also still invoke Validator validations by calling super.validate() in your validation method if you are extending |org.apache.struts.validator.action.ValidatorForm I have found that there are many situations

Re: Issue with checkboxes!

2006-05-07 Thread 王曾wang_zeng
you can also override the reset() method like this: public void reset(ActionMapping mapping, HttpServletRequest request){ this.initialize(); } in the dynamic form class ,there is a initialize() method which will clear all the properties. The initialize() is called only when the bean is in

Re: Struts filter help

2006-05-07 Thread Stanislav
Thank you very much! This is what i was assking for ! :-))) Stanislav - Original Message Follows - > On Fri, 2006-05-05 at 15:19 +0200, Stanislav wrote: > > Hi! > > > > I want to do some check every time when java file "starts". How can i do > > this? I think that is > > posible with