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 change.

[S2] Change updateFreq in a DIV

2007-11-06 Thread Grish
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 containing options for the user to select the update frequency of my div tag. So my select box has no refresh

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 = dojo.widget.byId(myDivId

Re: [S2] Change updateFreq in a DIV

2007-11-07 Thread Grish
: 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. Hope that helps, Jeromy Evans Grish wrote: Ok I've made some progress but now i'm stuck. What I did was have a a div

[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

Re: [S2] Problems loading applet in Struts 2

2007-12-11 Thread Grish
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 learned how to create applets and made my own ticker

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

Re: Using il8n text in an interceptor

2008-02-12 Thread Grish
; } 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/struts_2_cookbook/creating_a_login_interceptor I managed to integrate the interceptor in my

Re: Using il8n text in an interceptor

2008-02-13 Thread Grish
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 always returns null. I traced

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: Interceptors with Ajax Actions

2008-02-26 Thread Grish
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: Is there a way to intercept

Re: Interceptors with Ajax Actions

2008-02-27 Thread Grish
Thanks Jeromy! Yeah that helped a lot! It seems that making a topic for all ajax operations a little more tedious than the basic approaches you've suggested. Although, I'm going to try them all out for the learning experience! Thanks Again! Jeromy Evans - Blue Sky Minds wrote: Grish

Re: Interceptors with Ajax Actions

2008-02-27 Thread Grish
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 a way to intercept these ajax actions and properly direct my users to the login page? Or is my

Re: Interceptors with Ajax Actions

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

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

[S2] Multiple Submits with different actions in a Form

2007-07-25 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

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: On

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

2007-07-25 Thread Grish
above) to have the form submit to another 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

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

2007-07-25 Thread Grish
the DOJO library your self. All the nessary files are included when you use the s:head tag On 7/25/07, Grish [EMAIL PROTECTED] wrote: 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

[S2] AJAX with Sitemesh

2007-07-30 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

Re: [S2] AJAX with Sitemesh

2007-07-30 Thread Grish
) to have 2 forms in one page calling different actions? Thanks again for the help! Musachy Barroso wrote: Another way (I like the pattern exclusion better) is to set a request attribute decorator to none musachy On 7/30/07, Mark Menard [EMAIL PROTECTED] wrote: On 7/30/07 2:06 AM, Grish

[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

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 something similar but instead

Re: [S2] Parameterized File Downloading

2007-07-31 Thread Grish
? Thanks, Nuwan Grish wrote: 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

Re: [S2] Parameterized File Downloading

2007-08-01 Thread Grish
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 better approach? I don't claim to know

Re: [S2] Parameterized File Downloading

2007-08-02 Thread Grish
! DNewfield wrote: Grish wrote: s:url id=downloadUrl action=download namespace=/filedownload s:param name=inputPath value=/images/test.gif / /s:url s:a href=%{downloadUrl}Get image/s:a So does this generate a link relative to your webapp of filedownload/download.action?inputPath=/images

[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

[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

RE: [S2] using the AJAX theme

2007-09-11 Thread Grish
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 submit.ftl template code into a web\template\ajax

Re: [S2] Issues with AJAX in IE

2007-09-12 Thread Grish
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: I'm not so

Re: [S2] Issues with AJAX in IE

2007-09-18 Thread Grish
. 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 the output in the DIV area. With Firefox there is no issue. I've noticed this in IE 6 and 7. -- View

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 decorator:usePage id=myPage / s:set name=currentPage value= / where value

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

2007-10-19 Thread Grish
and make it accessible to my s2 tags. I was reading about OGNL and the syntax but i can'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

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

2007-10-21 Thread Grish
out there :) Grish wrote: So I tried the following: decorator:usePage id=myPage / % String current = myPage.getProperty(meta.current); % s:set name=currentPage value=#attr.current / !-- s:property value=#currentPage / -- but this displays blank. What I want to do is get the property