Struts2+dojo+JasonArray

2008-09-16 Thread prashanth2

Could anybody give me a working sample to read back jsonarray from struts2
action class using dojo.
Say for example Iam having a ListCustomers objects converted into
JsonArray. My only problem is , how to retrieve the response using
dojo1.1.1. 

From my understanding i specified handleAs:jason, the response data
retrieval is the problem. Can somebody point me to an example or atleast
give a snippet that loop through the json response.

Thanks
-- 
View this message in context: 
http://www.nabble.com/Struts2%2Bdojo%2BJasonArray-tp19514650p19514650.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: DOJO Dialog Problem? Please help me

2008-08-19 Thread prashanth2

I would like to know how and if it is possible to call a dialog box from a
iframe? Or have the dialog box pop out from an iframe? and how can i pass
variables from dialog box to my struts action class, if so how to retrieve
them in my action, do i need to get the values using httpservletrequest?
inbuilt dojo0.4 with s2 is not supportive, so i started using dojo1.1.1. Is
this helpful. Your comments, questions anything would be appreciated?

Thanks
Prashanth
-- 
View this message in context: 
http://www.nabble.com/DOJO-Dialog-Problem--Please-help-me-tp18951580p19048300.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DOJO Dialog Problem? Please help me

2008-08-12 Thread prashanth2

Hi,
I am using s2 2.0.11 version, I am able to display the dojo dialog, but the
contents that supposed to appear on the dialog are appearing on the jsp that
iam calling from. I tried many possible ways but endup writing this question
here.
Well I have one more question, instead of displaying a div tag in the dojo
dialog, is there a way to call the server and pass some variables, and based
on the variables i would like to display some content on the dialog in a new
jsp. 
Please find the attached output, you can find name-text box, that actually
should appear on the Dialog.And also please help me in passing some
variables to the dialog, so that i can display a new jsp based on the server
response. http://www.nabble.com/file/p18951580/Doj-Dialog.JPG Doj-Dialog.JPG 
Here is my jsp as follows:
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;

%@ taglib prefix=s uri=/struts-tags%
html
head
titleDojo: Hello World!/title
script type=text/javascript src=s:url
value='/js/thickBox/jquery.js'//script
script type=text/javascript src=s:url
value='/js/thickBox/thickbox-compressed.js'//script

link href=s:url value='/theme/main.css'/ rel=stylesheet
type=text/css/
link rel=stylesheet href=s:url value='/theme/thickbox.css'/
type=text/css media=screen /
link
href=s:url value='/js/dojo-1.1.1/dijit/themes/tundra/tundra.css'/
rel=stylesheet type=text/css /
link href=s:url value='/js/dojo-1.1.1/dojo/resources/dojo.css'/
rel=stylesheet type=text/css /
!-- SECTION 1 --

script type=text/javascript src=js/dojo-1.1.1/dojo/dojo.js
djConfig=parseOnLoad: true/script
script type=text/javascript
   // Load Dojo's code relating to the Button widget
   dojo.require(dojo.parser);
   dojo.require(dijit.form.Button);
   dojo.require(dijit.Dialog);
   dojo.require(dijit.form.TextBox);
/script

/head
body class=tundra
s:form action=detailedInfo method=post
s:actionerror/
s:fielderror/
button dojoType=dijit.form.Button
onclick=dijit.byId('dialog1').show()Show Dialog/button

div dojoType=dijit.Dialog id=dialog1 title=First Dialog
 onfocus=console.log('user focus handler')
 onblur=console.log('user blur handler')
 execute=alert('submitted w/args:\n' + 
dojo.toJson(arguments[0],
true));
table
tr
tdlabel for=nameName: /label/td
tdinput dojoType=dijit.form.TextBox 
type=text name=name
id=name/td
/tr
/table
/div


/s:form
/body
/html
-- 
View this message in context: 
http://www.nabble.com/DOJO-Dialog-Problem--Please-help-me-tp18951580p18951580.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2] Is there a modal dialog component in the current impl?

2008-08-12 Thread prashanth2

Could u help me, in creating a dojo dialog.
and I would like pass some variables so that, i can submit to server and
response jsp needed to be shown on the dialog.
Is it possible to do that way? 



Dariusz Wojtas wrote:
 
 Hi,
 
 Is there a component in the current code to show a modal dialog or
 'Accordion' (as shown on the DojoTooklit website)?
 If not - I could try to help in this area.
 
 Dariusz Wojtas
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-S2--Is-there-a-modal-dialog-component-in-the-current-impl--tp7715113p18951625.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts2 and Jquery problem with LightBox or thickbox

2008-07-29 Thread prashanth2

THIS WORKS FINE NOW..:working:, BUT GUYS ANYBODY IMPLEMNTED THICKBOX/LIGHTBOX
USING AJAX(ANY) FRAMEWORK, if so ur help would be appreciatable.
The problem with jquery thickbox is , it is loading way slow..so i dont
think Jquery is the right solution..



prashanth2 wrote:
 
 I tried to implement thickbox functionality in a jsp ,to display iframe in
 a thickbox. If I use a simple a href using a jsp,thickbox works fine, but
 if i use s:url with *.action as the url ,and if i pass height,width
 attributes ,iam getting an error .I tried removing height and width, but
 iam getting an exception saying ParametersInterceptor exception using
 random .Random variable is used by jQuery.js internally.
 
 If i can not use Jquery 'thickbox, what other frameworks support thickbox
 kind of functionality, as i need thick box to show some dynamic
 content,such as user's information or it can be a form submit.
 
 
 Jul 2, 2008 3:39:54 PM
 com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
 SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
 caught setting 'height' on 'class com.hicom.web.action.UserSignupAction:
 Error setting expression 'height' with value
 '[Ljava.lang.String;@7a847a84' 
 

-- 
View this message in context: 
http://www.nabble.com/Struts2-and-Jquery-problem-with--LightBox-or-thickbox-tp18326073p18719822.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] Re: Struts2 and Jquery problem with LightBox or thickbox

2008-07-29 Thread prashanth2

Yes i can understand, though it is js problem..but iam integrating with s2,
and s2 behaves way differently with these frameworks..since s2 has
integrated with dojo..i wonder whether dojo has any support to thickbox.



newton.dave wrote:
 
 --- On Tue, 7/29/08, prashanth2 [EMAIL PROTECTED] wrote:
 THIS WORKS FINE NOW..:working:, BUT GUYS ANYBODY IMPLEMNTED
 THICKBOX/LIGHTBOX
 USING AJAX(ANY) FRAMEWORK, if so ur help would be
 appreciatable.
 The problem with jquery thickbox is , it is loading way
 slow..so i dont
 think Jquery is the right solution..
 
 It might make more sense to ask this question in a more JavaScript/client
 functionality-oriented mailing list, as this appears to have nothing to do
 with Struts.
 
 I haven't seen any loading performance issues with jQuery, though.
 
 Dave
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Struts2-and-Jquery-problem-with--LightBox-or-thickbox-tp18326073p18724166.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts2 and Jquery problem with LightBox or thickbox

2008-07-15 Thread prashanth2

CAN SOMEBODY HELP ME, HOW CAN I CREATE A LIGHT OR THICK BOX

prashanth2 wrote:
 
 I tried to implement thickbox functionality in a jsp ,to display iframe in
 a thickbox. If I use a simple a href using a jsp,thickbox works fine, but
 if i use s:url with *.action as the url ,and if i pass height,width
 attributes ,iam getting an error .I tried removing height and width, but
 iam getting an exception saying ParametersInterceptor exception using
 random .Random variable is used by jQuery.js internally.
 
 If i can not use Jquery 'thickbox, what other frameworks support thickbox
 kind of functionality, as i need thick box to show some dynamic
 content,such as user's information or it can be a form submit.
 
 
 Jul 2, 2008 3:39:54 PM
 com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
 SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
 caught setting 'height' on 'class com.hicom.web.action.UserSignupAction:
 Error setting expression 'height' with value
 '[Ljava.lang.String;@7a847a84' 
 

-- 
View this message in context: 
http://www.nabble.com/Struts2-and-Jquery-problem-with--LightBox-or-thickbox-tp18326073p18465058.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts2 and Jquery problem with LightBox or thickbox

2008-07-15 Thread prashanth2


I dont understand what u asked, anyways iam getting the below exception, and
thickbox/lightbox never opened for me.

Jul 2, 2008 3:39:54 PM
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception caught
setting 'height' on 'class com.hicom.web.action.UserSignupAction: Error
setting expression 'height' with value '[Ljava.lang.String;@7a847a84'

newton.dave wrote:
 
 DOES IT ACTUALLY NOT WORK OR DOES IT JUST LOG THE EXCEPTION
 
 
 --- On Tue, 7/15/08, prashanth2 [EMAIL PROTECTED] wrote:
 
 From: prashanth2 [EMAIL PROTECTED]
 Subject: Re: Struts2 and Jquery problem with  LightBox or thickbox
 To: user@struts.apache.org
 Date: Tuesday, July 15, 2008, 9:17 AM
 CAN SOMEBODY HELP ME, HOW CAN I CREATE A LIGHT OR THICK
 BOX
 
 prashanth2 wrote:
  
  I tried to implement thickbox functionality in a jsp
 ,to display iframe in
  a thickbox. If I use a simple a href using a
 jsp,thickbox works fine, but
  if i use s:url with *.action as the url ,and if i pass
 height,width
  attributes ,iam getting an error .I tried removing
 height and width, but
  iam getting an exception saying ParametersInterceptor
 exception using
  random .Random variable is
 used by jQuery.js internally.
  
  If i can not use Jquery 'thickbox, what other
 frameworks support thickbox
  kind of functionality, as i need thick box to show
 some dynamic
  content,such as user's information or it can be a
 form submit.
  
  
  Jul 2, 2008 3:39:54 PM
 
 com.opensymphony.xwork2.interceptor.ParametersInterceptor
 setParameters
  SEVERE: ParametersInterceptor - [setParameters]:
 Unexpected Exception
  caught setting 'height' on 'class
 com.hicom.web.action.UserSignupAction:
  Error setting expression 'height' with value
  '[Ljava.lang.String;@7a847a84' 
  
 
 -- 
 View this message in context:
 http://www.nabble.com/Struts2-and-Jquery-problem-with--LightBox-or-thickbox-tp18326073p18465058.html
 Sent from the Struts - User mailing list archive at
 Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Struts2-and-Jquery-problem-with--LightBox-or-thickbox-tp18326073p18471126.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts2 and Jquery problem with LightBox or thickbox

2008-07-15 Thread prashanth2

I tried removing the height and width attributes as URL parameters, but the
problem is JQuery internally uses a variable 'random', so s2 complains
ParametersInterceptor exception. Great to hear tht u have a working sample,
could u pl tell me, was that u were displaying dynamic content or static
content. And which ajax framework have u used for thick/light box.

In My case I need to get the data from DB, and display accordingly on the
THICKBOX.

An early  reply would be appreciatable.
Thanks

Ian Roughley wrote:
 
 I've used lightbox successfully without problem.  If this is the error 
 message it looks like you are passing the height and width attributes as 
 URL params and they are being applied against the action (hence the 
 error).  I bet (I don't have the code anymore) these are instead meant 
 to be passed to the jQuery plugin - perhaps as HTML attributes.
 
 /Ian
 
 prashanth2 wrote:
 I dont understand what u asked, anyways iam getting the below exception,
 and
 thickbox/lightbox never opened for me.

 Jul 2, 2008 3:39:54 PM
 com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
 SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
 caught
 setting 'height' on 'class com.hicom.web.action.UserSignupAction: Error
 setting expression 'height' with value '[Ljava.lang.String;@7a847a84'

 newton.dave wrote:
   
 DOES IT ACTUALLY NOT WORK OR DOES IT JUST LOG THE EXCEPTION


 --- On Tue, 7/15/08, prashanth2 [EMAIL PROTECTED] wrote:

 
 From: prashanth2 [EMAIL PROTECTED]
 Subject: Re: Struts2 and Jquery problem with  LightBox or thickbox
 To: user@struts.apache.org
 Date: Tuesday, July 15, 2008, 9:17 AM
 CAN SOMEBODY HELP ME, HOW CAN I CREATE A LIGHT OR THICK
 BOX

 prashanth2 wrote:
   
 I tried to implement thickbox functionality in a jsp
 
 ,to display iframe in
   
 a thickbox. If I use a simple a href using a
 
 jsp,thickbox works fine, but
   
 if i use s:url with *.action as the url ,and if i pass
 
 height,width
   
 attributes ,iam getting an error .I tried removing
 
 height and width, but
   
 iam getting an exception saying ParametersInterceptor
 
 exception using
   
 random .Random variable is
 
 used by jQuery.js internally.
   
 If i can not use Jquery 'thickbox, what other
 
 frameworks support thickbox
   
 kind of functionality, as i need thick box to show
 
 some dynamic
   
 content,such as user's information or it can be a
 
 form submit.
   
 Jul 2, 2008 3:39:54 PM

 
 com.opensymphony.xwork2.interceptor.ParametersInterceptor
 setParameters
   
 SEVERE: ParametersInterceptor - [setParameters]:
 
 Unexpected Exception
   
 caught setting 'height' on 'class
 
 com.hicom.web.action.UserSignupAction:
   
 Error setting expression 'height' with value
 '[Ljava.lang.String;@7a847a84' 

 
 -- 
 View this message in context:
 http://www.nabble.com/Struts2-and-Jquery-problem-with--LightBox-or-thickbox-tp18326073p18465058.html
 Sent from the Struts - User mailing list archive at
 Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
   
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 

   
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Struts2-and-Jquery-problem-with--LightBox-or-thickbox-tp18326073p18472124.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts2 and Jquery problem with LightBox or thickbox

2008-07-15 Thread prashanth2

I see the error on my console, my app never got halt.

Struts Two wrote:
 
 What was meant is:
 Does you applicaiton functionsas expected despite the exception you see on
 ur console or the exception brings your application (or some
 functionality) to a halt.
 
 - Original Message 
 From: prashanth2 [EMAIL PROTECTED]
 To: user@struts.apache.org
 Sent: Tuesday, July 15, 2008 1:46:49 PM
 Subject: Re: Struts2 and Jquery problem with LightBox or thickbox
 
 
 
 I dont understand what u asked, anyways iam getting the below exception,
 and
 thickbox/lightbox never opened for me.
 
 Jul 2, 2008 3:39:54 PM
 com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
 SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
 caught
 setting 'height' on 'class com.hicom.web.action.UserSignupAction: Error
 setting expression 'height' with value '[Ljava.lang.String;@7a847a84'
 
 newton.dave wrote:
 
 DOES IT ACTUALLY NOT WORK OR DOES IT JUST LOG THE EXCEPTION
 
 
 --- On Tue, 7/15/08, prashanth2 [EMAIL PROTECTED] wrote:
 
 From: prashanth2 [EMAIL PROTECTED]
 Subject: Re: Struts2 and Jquery problem with  LightBox or thickbox
 To: user@struts.apache.org
 Date: Tuesday, July 15, 2008, 9:17 AM
 CAN SOMEBODY HELP ME, HOW CAN I CREATE A LIGHT OR THICK
 BOX
 
 prashanth2 wrote:
  
  I tried to implement thickbox functionality in a jsp
 ,to display iframe in
  a thickbox. If I use a simple a href using a
 jsp,thickbox works fine, but
  if i use s:url with *.action as the url ,and if i pass
 height,width
  attributes ,iam getting an error .I tried removing
 height and width, but
  iam getting an exception saying ParametersInterceptor
 exception using
  random .Random variable is
 used by jQuery.js internally.
  
  If i can not use Jquery 'thickbox, what other
 frameworks support thickbox
  kind of functionality, as i need thick box to show
 some dynamic
  content,such as user's information or it can be a
 form submit.
  
  
  Jul 2, 2008 3:39:54 PM
 
 com.opensymphony.xwork2..interceptor.ParametersInterceptor
 setParameters
  SEVERE: ParametersInterceptor - [setParameters]:
 Unexpected Exception
  caught setting 'height' on 'class
 com.hicom.web.action.UserSignupAction:
  Error setting expression 'height' with value
  '[Ljava.lang.String;@7a847a84' 
  
 
 -- 
 View this message in context:
 http://www.nabble.com/Struts2-and-Jquery-problem-with--LightBox-or-thickbox-tp18326073p18465058.html
 Sent from the Struts - User mailing list archive at
 Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -- 
 View this message in context:
 http://www.nabble.com/Struts2-and-Jquery-problem-with--LightBox-or-thickbox-tp18326073p18471126.html
 Sent from the Struts - User mailing list archive at Nabble.com..
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
   __
 Connect with friends from any web browser - no download required. Try the
 new Yahoo! Canada Messenger for the Web BETA at
 http://ca.messenger.yahoo.com/webmessengerpromo.php
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Struts2-and-Jquery-problem-with--LightBox-or-thickbox-tp18326073p18472139.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts2 and Jquery problem with LightBox or thickbox

2008-07-07 Thread prashanth2

I tried to implement thickbox functionality in a jsp ,to display iframe in a
thickbox. If I use a simple a href using a jsp,thickbox works fine, but if i
use s:url with *.action as the url ,and if i pass height,width attributes
,iam getting an error .I tried removing height and width, but iam getting an
exception saying ParametersInterceptor exception using random .Random
variable is used by jQuery.js internally.

If i can not use Jquery 'thickbox, what other frameworks support thickbox
kind of functionality, as i need thick box to show some dynamic content,such
as user's information or it can be a form submit.


Jul 2, 2008 3:39:54 PM
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception caught
setting 'height' on 'class com.hicom.web.action.UserSignupAction: Error
setting expression 'height' with value '[Ljava.lang.String;@7a847a84' 
-- 
View this message in context: 
http://www.nabble.com/Struts2-and-Jquery-problem-with--LightBox-or-thickbox-tp18326073p18326073.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]