Re: Interceptors with Ajax Actions

2008-02-27 Thread Grish
I tried what you suggested, I placed an empty div but I got the same result, still undefined with IE. I looked at the debug output and it parses the proper javascript code just that it doesn't execute. The debug output is practically the same between firefox and IE. I'll try reserching in the Doj

Re: Interceptors with Ajax Actions

2008-02-27 Thread Grish
ages/URLs or by inspecting the http header; > > How can you know it is an ajax request by inspecting the http header? > I looked in my request headers and I can´t know whether it is ajax or not. > > Thanks. > > Jeromy Evans escribió: >> Grish wrote: >>> Is there

Re: Interceptors with Ajax Actions

2008-02-27 Thread Grish
in IE I simply get "undefined" in my div area. I tried out something simple and had a result page with this javascript: <!-- window.location.href = "/newbie/login.action"; //--> Unfortunately it doesn't work. Any suggestions? Grish wrote: > > Thank

Re: Interceptors with Ajax Actions

2008-02-27 Thread Grish
inds wrote: > > > Grish wrote: >> I'm using the ajax theme with my struts tags, based on the struts 2 >> tutorial, to implement ajax functionality. Where can I define my code to >> catch the result and perform a redirect? I apologize for my inexperience. >> >> I&#

Re: Interceptors with Ajax Actions

2008-02-26 Thread Grish
me with my struts tags, based on the struts 2 tutorial, to implement ajax functionality. Where can I define my code to catch the result and perform a redirect? I apologize for my inexperience. I'm a little unclear on how to Jeromy Evans - Blue Sky Minds wrote: > > Grish wrote: >>

Interceptors with Ajax Actions

2008-02-26 Thread Grish
In my attempt to learn about interceptors, I tried creating a login interceptor using Mark Menard's awesome cookbook. So I managed to make my own login interceptor and everything is working fine. I realized though that I will encounter a problem when I intercept ajax actions and direct the user

Re: Using il8n text in an interceptor

2008-02-13 Thread Grish
the proper text, but when my interceptor needs to access the resource bundle it can't seem to find it. Anyone encountered a similar problem and figured it out? :( Grish wrote: > > Thanks for the suggestion! I tried integrating it to my code but the > problem is findDefaultText alway

Re: Using il8n text in an interceptor

2008-02-12 Thread Grish
i18Name = name; > } > > return i18Name; > } > > Grish escribió: >> I'm studying how interceptors work and made a login interceptor based on >> Mark >> Menard's great tutorial: >> http://www.vitarara.org/cms

Using il8n text in an interceptor

2008-02-11 Thread Grish
I'm studying how interceptors work and made a login interceptor based on Mark Menard's great tutorial: http://www.vitarara.org/cms/struts_2_cookbook/creating_a_login_interceptor I managed to integrate the interceptor in my sample application but I want to access my resource bundle for the localiz

Re: [S2] Problems loading applet in Struts 2

2007-12-11 Thread Grish
e class files in the same directory as the page and jsut placed the class names. Unfortunately I get the same error and my browser has to be killed in order to retry cuz it seems to be in some kind of loop or hang. Laurie Harper wrote: > > Grish wrote: >> Hi, >> >> I just l

[S2] Problems loading applet in Struts 2

2007-12-11 Thread Grish
Hi, I just learned how to create applets and made my own ticker. It works fine but when I try to integrate it to my struts 2 project I have problems loading the page with the applet. It seems like my browser hangs and I need to kill the process. I first did was package my applet and its files i

Re: [S2] Change updateFreq in a DIV

2007-11-07 Thread Grish
I did what you suggested and i saw the setInterval() function; which works! Thanks for pointing me to the right direction and the learning experience! Jeromy Evans - Blue Sky Minds wrote: > > Grish wrote: >> So I ended up with the following code: >> >> var myDiv = d

Re: [S2] Change updateFreq in a DIV

2007-11-07 Thread Grish
pproach although I haven't > tried it. > > Try a simple script: > > var myWidget = dojo.widget.byId("myDivId"); > myWidget.updateFreq = 10; > > Use a breakpoint in FireBug to ensure the widget is found and that the > updateFreq member is public. >

[S2] Change updateFreq in a DIV

2007-11-06 Thread Grish
hing is working except the change to the updateFreq. When the timer starts it still keeps with the 5 second interval Is it possible to access this property and change it? Grish wrote: > > Hi, > > I'm having a hard time trying to implement this - I want to have a select > box conta

Triggering a topics

2007-10-30 Thread Grish
Hi, I'm having a hard time trying to implement this - I want to have a select box containing options for the user to select the update frequency of my div tag. So my select box has "no refresh", "30 seconds", "60 seconds", "120 seconds" and depending on what the user selects the frequency will ch

Re: [S2] Access a SiteMesh Object in a Struts tag

2007-10-21 Thread Grish
After going through the OGNL documents and trial and error I was able to get the properties from the page object from sitemesh using the following code: Hope this is of some use to someone out there :) Grish wrote: > > So I tried the following: > > > &l

Re: [S2] Access a SiteMesh Object in a Struts tag

2007-10-19 Thread Grish
27;t seem to get that property. Is my syntax incorrect? Grish wrote: > > Hi, > > I was wondering if this is possible, I want to access a SiteMesh object in > a struts tag like the set tag: > > I want to access the Page object from SiteMesh and get a propert

Access a SiteMesh Object in a Struts tag

2007-10-18 Thread Grish
Hi, I was wondering if this is possible, I want to access a SiteMesh object in a struts tag like the set tag: I want to access the Page object from SiteMesh and get a property from that object and assign it a value where value would be myPage.getProperty("meta.curentPage"). I have a feelin

Re: [S2] Issues with AJAX in IE

2007-09-18 Thread Grish
uot; works. :) > Let me know if it works for you too, i hope so. Bye. > > > > > Grish wrote: >> >> >> But in IE, when I hit enter button instead of clicking on my submit >> button the whole jsp for that ajax call is displayed instead of returning >&g

Re: [S2] Issues with AJAX in IE

2007-09-12 Thread Grish
red I could add a javascript where I check if the user hits the enter key and then just submit the form, but then I'll have to do that for every ajax form. Has anyone encountered this issue before or is there something wrong with my code. It works fine though in firefox. Grish wrote: >

RE: [S2] using the AJAX theme

2007-09-11 Thread Grish
p Jason! jjoz wrote: > > Hi Grish, > > We faced the similar problem... we wanted to use ajax tabbedPanels, which > needed ajax-themed struts2 submit buttons. The submit buttons were > producing > additional html wrapping for the 2 columns. > > We just extracted the su

[S2] using the AJAX theme

2007-09-10 Thread Grish
I've been trying out ajax with s2 and I like how the ajax theme and the s2 tags allow me to do more with less code. Usually the 2 column table layout works for most of my needs but there are some forms that I rather not have the additional code (like a form with one field and I want the submit b

[S2] Issues with AJAX in IE

2007-08-02 Thread Grish
I'm not so sure if this is some bug, but I noticed an odd behaviour with my AJAX forms in IE. For Firefox, if I hit the submit button for my form, my output is displayed in my DIV area as exepcted. Same for IE. But in IE, when I hit enter button instead of clicking on my submit button the whole j

Re: [S2] Parameterized File Downloading

2007-08-02 Thread Grish
Ok, I finally see the error of my ways: I originally defined my parameter like this: when it should be like this: now the proper string is passed. Thanks so much for the help! DNewfield wrote: > > Grish wrote: >> >> >> >> Get image > > So does t

Re: [S2] Parameterized File Downloading

2007-08-01 Thread Grish
putPath in my action definition like in the Struts 2 showcase example, it works fine. Any ideas? DNewfield wrote: > > Grish wrote: >> Hmmm good point. So does this mean that the only secure way of having >> downloads is to have specific actions for each download? Or is there a >>

Re: [S2] Parameterized File Downloading

2007-07-31 Thread Grish
Isn't it closed with the /> in the end? I just copied the examples in the tutorials and url examples: http://struts.apache.org/2.x/docs/url.html nuwan chandrasoma-2 wrote: > > Hi, > > Is it a typo, I dont see a tag in ur code? > > Thanks, > > Nuwan &g

Re: [S2] Parameterized File Downloading

2007-07-31 Thread Grish
Hmmm good point. So does this mean that the only secure way of having downloads is to have specific actions for each download? Or is there a better approach? DNewfield wrote: > > Grish wrote: >> I studied the struts showcase sample of file downloading. I wanted to do >> som

[S2] Parameterized File Downloading

2007-07-31 Thread Grish
I studied the struts showcase sample of file downloading. I wanted to do something similar but instead of setting the inputPath paremeter in struts.xml I wanted to pass it in the url. I was thinking of using the same action for several downloads and I would just pass the inputPath. But when I trie

Re: [S2] AJAX with Sitemesh

2007-07-30 Thread Grish
07, Mark Menard <[EMAIL PROTECTED]> wrote: >> On 7/30/07 2:06 AM, "Grish" <[EMAIL PROTECTED]> wrote: >> >> > >> > I tried taking a modified version of the Struts 2 + Spring 2 + JPA + >> AJAX >> > tutorial that I've done and inte

[S2] AJAX with Sitemesh

2007-07-29 Thread Grish
I tried taking a modified version of the Struts 2 + Spring 2 + JPA + AJAX tutorial that I've done and integrated it with Sitemesh. I realized that if i have div tags with the ajax theme, Sitemesh will decorate that area so I will end up with and embedded decorator in the main page. I need to excl

Re: [S2] Multiple Submits with different actions in a Form

2007-07-25 Thread Grish
action="myAction3"'/>; >document.getElementById("formId").submit(); > > } > > then in your struts.xml: > > > . > . > . > > > > > . > . > . > > > > > . > . > . > > > You don&

Re: [S2] Multiple Submits with different actions in a Form

2007-07-25 Thread Grish
action. But it seems the action in the form overrides my button. David Durham, Jr. wrote: > > On 7/25/07, Grish <[EMAIL PROTECTED]> wrote: >> My problem though is I have a form with multiple submit buttons. I tried >> specifying the action on each submit button but the ac

Re: [S2] Validation error messages pile up

2007-07-25 Thread Grish
I have the same problem. Error messages on one form are piling up. Were you able to resolve this probelm? It only occurs in Firefox as well. I notice it occurs when you have multiple forms. Rafael Dittberner wrote: > > The first one. > > Rafael Dittberner > > > Musachy Barroso escreveu: >>

[S2] Multiple Submits with different actions in a Form

2007-07-24 Thread Grish
I'm still in the process of learning S2 and I was curious on what's the best practice in implementing a form with multiple submit buttons I've read that there are multiple way to implement this. One way is here: http://struts.apache.org/2.0.8/docs/multiple-submit-buttons.html Although I was thin