Re: validations with selected option

2009-02-12 Thread Srikanth Goud

Hi,
   Still i don't have any idea for this.
   Could you pls provide a solution

 Srikanth



Srikanth Goud wrote:
 
 Hi Friends,
 
Iam writing validations in className-validation.xml file it is working
 fine.

But in the form there are Two Tables with some fields. And at a time
 only one table will be on page depedning on the user selected option.
 Written validations for all fields in the first table and second table.
 
 so, if user selects his option than for only those fields validations
 should fire.
 But here the validations are firing for the first table and second table.
 How should i stop the validations?
 
 

 
  Srikanth
 

-- 
View this message in context: 
http://www.nabble.com/validations-with-selected-option-tp21885572p21976047.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Need Information on s:table

2009-02-12 Thread Srikanth Goud

Hi,
  In a page there is a textField as soon user enter value like 2,3 and
soon..
  Creating table with Html with that many rows
Table
  trtd/td/tr /table and so on..

 Know My question is there any way to create a table with S:table ?
 If yes how can i do that? And how can i retreive the values in
action(associated bean)?.

Regards,
Srikanth

-- 
View this message in context: 
http://www.nabble.com/Need-Information-on-%3Cs%3Atable%3E-tp21991331p21991331.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Validation problem when navigating through pages

2009-02-10 Thread Srikanth Goud

Hi,

   I was using default theme before.But to gain full control on UI part i
chaged to simple theme.
   Know the problem is 
I performed business logic in one the screen. If it is success than the
next screen in cycle.
But the validations are firing in the next screen.It should not fire
when the page render for the first time.

 And my code is

 In jsp

tds:label value=Deposit with Bank //td 
  tds:textfield name=deposits /
s:fielderrors:paramdeposits/s:param/s:fielderror/td  and
so on...

struts.xml

 action name=internalDetails_* method={1}
class=com.ulms.action.BankInternalDetails
result name=input type=tiles internalDetails.def/result
result type=tilescustomerInfo.def/result
/action

these internalDetails.def and customerInfo.def are definations in tiles.xml

could u please tell what is the mistake?
and how to stop validations when page renders for first time?

regards
Srikanth.


   
-- 
View this message in context: 
http://www.nabble.com/Validation-problem-when-navigating-through-pages-tp21933765p21933765.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Validation problem when navigating through pages

2009-02-10 Thread Srikanth Goud


Sorry i have done blunder.There is no such issue

Srikanth



Srikanth Goud wrote:
 
 Hi,
 
I was using default theme before.But to gain full control on UI part i
 chaged to simple theme.
Know the problem is 
 I performed business logic in one the screen. If it is success than
 the next screen in cycle.
 But the validations are firing in the next screen.It should not fire
 when the page render for the first time.
 
  And my code is
 
  In jsp
 
 tds:label value=Deposit with Bank //td 
   tds:textfield name=deposits /
 s:fielderrors:paramdeposits/s:param/s:fielderror/td  and
 so on...
 
 struts.xml
 
  action name=internalDetails_* method={1}
 class=com.ulms.action.BankInternalDetails
   result name=input type=tiles internalDetails.def/result
   result type=tilescustomerInfo.def/result
 /action
 
 these internalDetails.def and customerInfo.def are definations in
 tiles.xml
 
 could u please tell what is the mistake?
 and how to stop validations when page renders for first time?
 
 regards
 Srikanth.
 
 

 

-- 
View this message in context: 
http://www.nabble.com/Validation-problem-when-navigating-through-pages-tp21933765p21934405.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



validations with selected option

2009-02-06 Thread Srikanth Goud

Hi,

   Iam writing validations in className-validation.xml file it is working
fine.
   But in the form there are two radio buttons
   1. If one is selected a new table appear on the form with 5 or 6 fields
and vice versa.
 
  I written the validaions for all the fields including the table which
is appending on selecting one of the option.So,these validations are fired
automatically when user clicks on next button.

Know my question how to stop firing validations for the table(with 5 or 6
fields)when the user has not selected the paritcular option.

 Srikanth
-- 
View this message in context: 
http://www.nabble.com/validations-with-selected-option-tp21885572p21885572.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Invoke popup after saving Data

2009-02-04 Thread Srikanth Goud

Hi,
  I have a requirement where after saving data in to database , show a popup
in the same page propmting Continue or ok.

For this i am planning to write a javascript for popUp.
But how to invoke the popup from the execute method?
And how to write the JavaScript in the Bean?

 Or  is there any another way ?

Srikanth.
-- 
View this message in context: 
http://www.nabble.com/Invoke-popup-after-saving-Data-tp21845666p21845666.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Invoke popup after saving Data

2009-02-04 Thread Srikanth Goud

Hi,
   How to invoke the javaScript from execute method?
   And i am not clear with the reply u send.

Srikanth
 


Srikanth Goud wrote:
 
 Hi,
   I have a requirement where after saving data in to database , show a
 popup in the same page propmting Continue or ok.
 
 For this i am planning to write a javascript for popUp.
 But how to invoke the popup from the execute method?
 And how to write the JavaScript in the Bean?
 
  Or  is there any another way ?
 
 Srikanth.
 

-- 
View this message in context: 
http://www.nabble.com/Invoke-popup-after-saving-Data-tp21845666p21846146.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: validation with simple theme

2009-01-31 Thread Srikanth Goud

Hi,
   I extended simple theme and defined my own theme.
  In that coreheadercontrol.ftl that i added and done some work

#assign hasFieldErrors = parameters.name?exists  fieldErrors?exists 
fieldErrors[parameters.name]?exists/  
#if hasFieldErrors  
div errorFor=${parameters.id}  
#list fieldErrors[parameters.name] as error  
div class=errorDiv  
${error?html}  
/div  
/#list  
/div  
/#if  

 i acheived little bit but the thing is 

 If i have two fields in td. When validation fires the second field is
automatically going to new row.
 And the labels are going on top of text field.

pls provide me a solution.ASAP

 Srikanth



Felipe Fraga wrote:
 
 Hi,
 
 It is possible to create a new theme extending the one you are using,
 overriding the template for the fielderror tag.
 
 http://struts.apache.org/2.0.14/docs/extending-themes.html
 
 Or, you can override the fielderror for the theme without creating a
 new one. You just need to create a template/themename in the classes
 directory and place the template of the modifield fielderror in there.
 Struts first looks for theme templates in the classes directory of the
 application.
 
 Felipe
 
 On Sat, Jan 31, 2009 at 5:53 AM, Srikanth Goud
 srikanth.vaddepa...@lntinfotech.com wrote:

 Hi,
   My requirement is fieldError should appear below/above respective
 fields.

  for that i written the following code:-
  td
  s:textfield name=first label=First 
 s:fielderror 
  s:paramfirst/s:param
  /s:fielderror 
  /s:textfield
 /td

  with this it is working fine but the thing is alignemt is disturbed
 completly


  when i looked the source code what i found was
 ul
lifirst is required/li
   /ul

input type=text name=first value= id=chk_first/


 these ulli are making alignemt disturb.

 I notice that s:fielderror.../s:fielderror is actually replaced
  by *ullierror
message/li/ul *in the code. Is there a way to let the
 s:fielderror
 tag
 only renders the error message instead of a list?

 Pls, help me out from this problem

  Srikanth
 --
 View this message in context:
 http://www.nabble.com/validation-with-simple-theme-tp21760841p21760841.html
 Sent from the Struts - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org


 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/validation-with-simple-theme-tp21760841p21772246.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



validation with simple theme

2009-01-30 Thread Srikanth Goud

Hi,
   My requirement is fieldError should appear below/above respective fields.
   
  for that i written the following code:-
  td
  s:textfield name=first label=First 
 s:fielderror 
  s:paramfirst/s:param
  /s:fielderror 
  /s:textfield
 /td

 with this it is working fine but the thing is alignemt is disturbed
completly


 when i looked the source code what i found was
 ul
lifirst is required/li
   /ul 

input type=text name=first value= id=chk_first/


these ulli are making alignemt disturb.

I notice that s:fielderror.../s:fielderror is actually replaced
 by *ullierror
message/li/ul *in the code. Is there a way to let the s:fielderror
tag
only renders the error message instead of a list?

Pls, help me out from this problem

 Srikanth
-- 
View this message in context: 
http://www.nabble.com/validation-with-simple-theme-tp21760841p21760841.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Problem with Dojo in struts2

2009-01-29 Thread Srikanth Goud



newton.dave wrote:
 
 Srikanth Goud wrote:
  I am presently working on struts 2.0.
  Whenever i use strutsUI tags(with theme=ajax) nothing is rendered on
 page.
  I have done like this:-
 In web.xml
  
filter 
 filter-namestruts-cleanup/filter-name 

 filter-classorg.apache.struts2.dispatcher.ActionContextCleanUp/filter-class
  
 /filter 
 
  filter 
filter-namesitemesh/filter-name 
   
 filter-classcom.opensymphony.module.sitemesh.filter.PageFilter/filter-class
  
  /filter 
 
 filter-mapping
 filter-namestruts-cleanup/filter-name
 url-pattern/*/url-pattern
 /filter-mapping
 filter-mapping
 filter-namesitemesh/filter-name
 url-pattern/*/url-pattern
 /filter-mapping
 
 Are those the *only* filters in your web.xml?
 
 Dave
 
 Hi Dave,
 
  filters in web.xml are:-
 
 
  filter 
   filter-namestruts-cleanup/filter-name  
  
 filter-classorg.apache.struts2.dispatcher.ActionContextCleanUp/filter-class
  
 /filter 
 
   filter 
  filter-namesitemesh/filter-name   
 
 filter-classcom.opensymphony.module.sitemesh.filter.PageFilter/filter-class
  
  /filter 
 
 filter
 filter-namestruts2/filter-name

 filter-classorg.apache.struts2.dispatcher.FilterDispatcher/filter-class
 /filter
 
 filter-mapping
 filter-namestruts-cleanup/filter-name
 url-pattern/*/url-pattern
  /filter-mapping
 
 filter-mapping
 filter-namesitemesh/filter-name
  url-pattern/*/url-pattern
 /filter-mapping
 
 filter-mapping
filter-namestruts2/filter-name
   url-pattern/*/url-pattern
 /filter-mapping
 
 these are the available filters in web.xml
 
  Srikanth
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Problem-with-Dojo-in-struts2-tp21722133p21741075.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Problem with Dojo in struts2

2009-01-28 Thread Srikanth Goud

Hi,

 I am presently working on struts 2.0.
 Whenever i use strutsUI tags(with theme=ajax) nothing is rendered on
page.
 I have done like this:-
In web.xml
 
   filter 
filter-namestruts-cleanup/filter-name 
   
filter-classorg.apache.struts2.dispatcher.ActionContextCleanUp/filter-class 
/filter 

 filter 
   filter-namesitemesh/filter-name 
  
filter-classcom.opensymphony.module.sitemesh.filter.PageFilter/filter-class 
 /filter 

filter-mapping
filter-namestruts-cleanup/filter-name
url-pattern/*/url-pattern
/filter-mapping
filter-mapping
filter-namesitemesh/filter-name
url-pattern/*/url-pattern
/filter-mapping

In jsp page

head
   s:head theme=ajax debug=true/
/head

s:tree theme=ajax
/s:tree

and added library file sitemash.
http://struts.apache.org/2.0.11.2/docs/sitemesh-plugin.html

As mentioned in this document i have done every thing but nothing is
displayed on bowser.
And i read about decorators.xml is it necessary?
I am using tiles 

could u help me out from this problem.

Srikanth.

-- 
View this message in context: 
http://www.nabble.com/Problem-with-Dojo-in-struts2-tp21722133p21722133.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org