Re: Struts 2 Radio Button for show and hide fields

2010-12-30 Thread Kushan Jayathilake
That's totally relates to java scripts, use on click event to call a java script function and apply "style = display: none;" & "style = display: block;" (retrieve the element before you apply this, hope you know how to do that) On 30 Dec 2010 20:48, wrote: > Hi, > I want to create two struts 2 rad

Re: Struts 2 Radio Button for show and hide fields

2010-12-30 Thread tito
do you want to selectively show/hide certain fields on the page while selecting the radio button ? In tat case you can use a div tag and use display/block styles.The solution is not at all related to struts though and is purely javascript. As you work in Wipro,which is a software giant,guess it ha

Re: Precedence

2010-12-30 Thread Dave Newton
So, what might happen if you called it (super()) in validate()? I mean, I apologize for not just outright telling you, but I really like it when people puzzle through stuff like this themselves, because it is *the* most important skill you can have as a developer (or anything else, for that matter

Re: Precedence

2010-12-30 Thread Anjib Mulepati
The reason I want to do it in two place is I am hoping I can do simple validation in xml file and other custom validation in validate() method. This is all because in my file uploading program if I try to upload large file I get null in other text box which otherwise works fine with smaller fil

Re: Precedence

2010-12-30 Thread Dave Newton
... So, what might happen if you called it in validate()? Dave On Thu, Dec 30, 2010 at 2:01 PM, Anjib Mulepati wrote: > Not in validate but in constructor. > > On 12/30/2010 1:56 PM, Dave Newton wrote: > >> Are you calling super() in your validate() method? >> >> On Thu, Dec 30, 2010 at 1:38 P

Re: Precedence

2010-12-30 Thread Anjib Mulepati
Not in validate but in constructor. On 12/30/2010 1:56 PM, Dave Newton wrote: Are you calling super() in your validate() method? On Thu, Dec 30, 2010 at 1:38 PM, Anjib Mulepati wrote: I am using 1.3.8. I try with simple one and seems that validate() has the precedence. In fact rules in .xml f

Re: Precedence

2010-12-30 Thread Dave Newton
Are you calling super() in your validate() method? On Thu, Dec 30, 2010 at 1:38 PM, Anjib Mulepati wrote: > I am using 1.3.8. I try with simple one and seems that validate() has the > precedence. In fact rules in .xml file is never checked even my class is > extended from ValidatorForm. > > >>>D

Re: Struts 2 Radio Button for show and hide fields

2010-12-30 Thread Dave Newton
While I'm not entirely sure what you're asking, it sounds like trivial JavaScript, and unrelated to Struts. Dave On Thu, Dec 30, 2010 at 10:17 AM, wrote: > Hi, > I want to create two struts 2 radio button one for delegate,one for pull, > if i click delegate and submit only some of the fields i

Re: Precedence

2010-12-30 Thread Anjib Mulepati
I am using 1.3.8. I try with simple one and seems that validate() has the precedence. In fact rules in .xml file is never checked even my class is extended from ValidatorForm. Anjib On 12/30/2010 12:39 PM, Dave Newton wrote: Which version of struts? Do you call super () (S1)? Did you just try

Re: Precedence

2010-12-30 Thread Dave Newton
Which version of struts? Do you call super () (S1)? Did you just try it? On Dec 30, 2010 11:10 AM, "Anjib Mulepati" wrote: > When using both validation.xml and validate() method for form validation > which one have precedence? > > Anjib > > -

Re: Problem with SessionAware across a redirect

2010-12-30 Thread Greg Akins
On Thu, Dec 30, 2010 at 10:42 AM, Greg Akins wrote: > I have an action which implements SessionAware  When that action is > redirected to, the session map is null. Nevermind.. I'm an idiot. Forgot to include the default-stack when I added an interceptor. -- Greg Akins http://insomnia-consulti

Precedence

2010-12-30 Thread Anjib Mulepati
When using both validation.xml and validate() method for form validation which one have precedence? Anjib - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Problem with SessionAware across a redirect

2010-12-30 Thread Greg Akins
I have an action which implements SessionAware When that action is redirected to, the session map is null. I know that request information isn't persisted across redirects, but don't expect to lose Session information. Maybe it's something stupid I'm doing? Any advice? Struts 2.2.1 and Tomcat

Struts 2 Radio Button for show and hide fields

2010-12-30 Thread karthick.gunasekaran
Hi, I want to create two struts 2 radio button one for delegate,one for pull, if i click delegate and submit only some of the fields i will show and some of the fileds i will hide same like pull also. any body help my problem. Thanks and Regards, Karthick G Mobile:8971318927 Please do not print

Re: Problem with browser or Struts file upload code.

2010-12-30 Thread Anjib Mulepati
I don't have session timeout problem and no error in the log itself. Also memory space is enough to load 2.5 GB file. I did put some log info inside form validation(), getter and setter methods. After that i can see that validation(), getter and setter method is called several times with null