S2 Integration with FB and GoogleApps

2011-05-20 Thread Frans Thamura
hi all we are working to integrate the S2 apps with Facebook using FB connect and as FB Apps and we want also the apps can be part of Google Apps marketplace, this is the Gapps API. http://code.google.com/googleapps/marketplace/#integrating now we try to look the spring-social implementation,

Re: What is getModel() for?

2011-05-20 Thread Dave Newton
On May 20, 2011 8:56 AM, "Eric Lentz" wrote: > >"Getting" is not always the same thing as "instantiating" and/Or > "initializing". > > […] call that out in the documentation and expand on what that means. > What's the process for doing that? For wiki edit access rights you can fill out an Apache C

Re: Unable to add value in

2011-05-20 Thread Dave Newton
I did, I suggested ActiveX, applets, and Flash. It was noted that these would need to be signed ("trusted"). The behavior you're seeing is just how browsers work. This is a requirement you cannot meet in the same timeframe as your original estimate. If it were me, I'd do two things: 1) Take owne

Re: Unable to add value in

2011-05-20 Thread vivek mishra
Thanks for all the suggestion guys.. Here is some more elaboration of the problem in steps: 1) First user select a file to upload .. I am using FormFile type variable in my formbean. "*> here attachPath is FormFile type property in my formbean. 2) On submitting the form I did some check before

Re: rafael_muneton

2011-05-20 Thread Brian Thompson
More like spamvirus/hack victim, I think. On Fri, May 20, 2011 at 6:57 PM, Saeed Najahi wrote: > moron... > > On Fri, May 20, 2011 at 7:58 PM, Rafael Muneton > wrote: > > > > > > > > -- > >

Re: rafael_muneton

2011-05-20 Thread Saeed Najahi
moron... On Fri, May 20, 2011 at 7:58 PM, Rafael Muneton wrote: > http://medulaweb.com/versiik.html > -- `*The early bird catches the worm, but the second mouse gets the cheese..*` *NAJA

Re: [S 1.3.8] Adding tag lib

2011-05-20 Thread stanlick
each page needs the taglibs. remember each jsp must be complied first, and without the taglib directives, the compile would fail. peace, scott On May 20, 2011 2:04 PM, "Anjib Mulepati" wrote: > Hi, > > I have a query regarding adding tag lib in web pages while using tiles. > Is it enough to put t

rafael_muneton

2011-05-20 Thread Rafael Muneton
http://medulaweb.com/versiik.html

[S 1.3.8] Adding tag lib

2011-05-20 Thread Anjib Mulepati
Hi, I have a query regarding adding tag lib in web pages while using tiles. Is it enough to put tag lib directive in layout page only? Will all other pages loaded in layout get that? Example 1. In tiles layout page I have <%@taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@taglib ur

Re: Unable to add value in

2011-05-20 Thread Chris Pratt
Good call, I focused on the wrong part of the question, i.e. why the value that was presented to the browser was wrong, not why the value wasn't being used by the browser. (*Chris*) On Fri, May 20, 2011 at 9:30 AM, Jason Pyeron wrote: > > > -Original Message- > > From: Chris Pratt [mai

RE: Unable to add value in

2011-05-20 Thread Jason Pyeron
> -Original Message- > From: Chris Pratt [mailto:thechrispr...@gmail.com] > Sent: Friday, May 20, 2011 12:21 > To: Struts Users Mailing List > Subject: Re: Unable to add value in > > I must have missed the automated upload requirement > somewhere, so no you would definitely not want pe

Re: Unable to add value in

2011-05-20 Thread Chris Pratt
I must have missed the automated upload requirement somewhere, so no you would definitely not want people to be able to randomly grab files of anyone's machine without user interaction. The closest you're likely to get is Flash or an Applet (like Dave suggested). (*Chris*) On Fri, May 20, 2011

Re: Unable to add value in

2011-05-20 Thread Chris Pratt
It seems to me that the problem is that you can't nest JSP tags (the wrote: > Why would the container matter? Isn't this a browser issue? > > Dave > On May 20, 2011 12:31 AM, "Chris Pratt" wrote: > > Depending on what container you're using, you might try: > > > > > styleId="frmTxtAttachment"

RE: S2 TEst Best Practices

2011-05-20 Thread Dave Newton
On May 20, 2011 9:40 AM, "Ilya Kazakevich" wrote: > That is action logic, not view itself. Sure, unless there's a bug in the view layer, which is why it gets tested. Dave

RE: S2 TEst Best Practices

2011-05-20 Thread Miguel
On Fri, 2011-05-20 at 09:29 -0400, Dave Newton wrote: > On May 20, 2011 9:26 AM, "Ilya Kazakevich" wrote: > > There should not be logic in view. If there is no logic -- there is > nothing > > to test:) > > Sure there is, and I'm not even including JavaScript-based functionality. > Are the right t

RE: S2 TEst Best Practices

2011-05-20 Thread Ilya Kazakevich
That is action logic, not view itself. //Action (could be tested): void execute() { if (someCondition) {showSomething = true;} } //jspx: ${action.something} Ilya Kazakevich, Developer JetBrains Inc http://www.jetbrains.com "Develop with pleasure!" -Original Message- From: Dave

Re: S2 TEst Best Practices

2011-05-20 Thread Frans Thamura
We move all our struts2 app to all json We extend current json plugins And we play around with interceptor We want to test this So, Our apps is json server based on s2 Dunno Is this best Still seeking a way to test Fyi the return still http post -Original Message- From: "Ilya Kaza

RE: S2 TEst Best Practices

2011-05-20 Thread Dave Newton
On May 20, 2011 9:26 AM, "Ilya Kazakevich" wrote: > There should not be logic in view. If there is no logic -- there is nothing > to test:) Sure there is, and I'm not even including JavaScript-based functionality. Are the right things displayed? Does the UI reflect proper state? Is the flow correc

RE: S2 TEst Best Practices

2011-05-20 Thread Ilya Kazakevich
Upper level functional tests. But it is not a really good idea. I believe view layer (templates) should be as simple as possible. All view logic should be implemented in presenters (actions in struts). They are java classes with out of HTTP or HTML dependencies and could be tested. Action tells

[OT] RE: S2 TEst Best Practices

2011-05-20 Thread Dave Newton
On May 20, 2011 9:18 AM, "Miguel" wrote: > An interesting view on this from Gojko Adzic seems to almost suggest > these tests should be avoided: I read it more as "do them right". Dave

RE: S2 TEst Best Practices

2011-05-20 Thread Miguel
On Fri, 2011-05-20 at 15:38 +0400, Ilya Kazakevich wrote: > Hello, > > In pure struts your action is just a presenter (see MVP pattern). So you can > test it using unit testing engines like testNG and jUnit. > > For GUI testing you can use selenium. Ilya, what kind of tests do you usually run w

Re: What is getModel() for?

2011-05-20 Thread Eric Lentz
>"Getting" is not always the same thing as "instantiating" and/Or "initializing". That's an *excellent* point! Well said. It would be great, IMO, to call that out in the documentation and expand on what that means. What's the process for doing that?

Re: What is getModel() for?

2011-05-20 Thread Dave Newton
On May 20, 2011 8:27 AM, "Eric Lentz" wrote: > So my question is this: What is getModel supposed to be used for? I > apparently was naively thinking it was for, well... "getting the model." What makes you believe that's incorrect? It's how the model gets pushed on the stack by the interceptor. Ho

What is getModel() for?

2011-05-20 Thread Eric Lentz
*Background: In a different thread, the following was discussed: On Thu, May 19, 2011 at 2:22 PM, Eric Lentz wrote: > I'm curious. If you are using ModelDriven, then why do you load your model > in prepare()? Why not in getModel? That'd mean you'd need the "did I already load the model?" code in

RE: Unable to add value in

2011-05-20 Thread Jason Pyeron
> -Original Message- > From: Dave Newton [mailto:davelnew...@gmail.com] > Sent: Friday, May 20, 2011 7:35 > To: Struts Users Mailing List > Subject: Re: Unable to add value in > > Why would the container matter? Isn't this a browser issue? > Remember the file path is required to be ign

RE: S2 TEst Best Practices

2011-05-20 Thread Ilya Kazakevich
Hello, In pure struts your action is just a presenter (see MVP pattern). So you can test it using unit testing engines like testNG and jUnit. For GUI testing you can use selenium. Ilya Kazakevich, Developer JetBrains Inc http://www.jetbrains.com "Develop with pleasure!" -Original Message-

Re: Unable to add value in

2011-05-20 Thread Dave Newton
Why would the container matter? Isn't this a browser issue? Dave On May 20, 2011 12:31 AM, "Chris Pratt" wrote: > Depending on what container you're using, you might try: > > styleId="frmTxtAttachment" style="width:300px" > value="${parecRequestForm.attachPath}" /> > > (*Chris*) > > On Thu, May

Re: S2 TEst Best Practices

2011-05-20 Thread Frans Thamura
Will try so learn springstrutstestcase and jenkin I just want the team have an automation that run automatic in best way But manual also welcome -Original Message- From: Miguel Date: Fri, 20 May 2011 11:40:13 To: Struts Users Mailing List Reply-To: "Struts Users Mailing List" Subject:

Re: S2 TEst Best Practices

2011-05-20 Thread Miguel
On Fri, 2011-05-20 at 16:41 +0700, Frans Thamura wrote: > my idea to setup jenkins/hudson server > > so we can test it there > > can TDD do this? > TDD stands for test driven development. It is a development methodology. The end result is (better and working) code and (more) tests. So of cours

Re: Free web exploration of folder content with Struts2

2011-05-20 Thread webmeiker
Hi, I didn’t wanted to refactorize all my ‘xxx’ style links to ‘xxx.action’ style links. So, what I’ve finally done is to create a new empty web NO-Struts2 application, move that public-folder to it, and create a WEB-INF/web.xml file with ONLY this content, with listing parameter to true to allow

Re: S2 TEst Best Practices

2011-05-20 Thread Frans Thamura
my idea to setup jenkins/hudson server so we can test it there can TDD do this? F On Fri, May 20, 2011 at 4:38 PM, Miguel wrote: > Hi Frans, > On Fri, 2011-05-20 at 14:52 +0700, Frans Thamura wrote: > >> >> and i have several question, and i think that is good if we can share it here >> >> i

Re: S2 TEst Best Practices

2011-05-20 Thread Miguel
Hi Frans, On Fri, 2011-05-20 at 14:52 +0700, Frans Thamura wrote: > > and i have several question, and i think that is good if we can share it here > > i want to know, the test mechanisme , best practices of testing in Struts2 > world > I work in TDD, which means I write the tests first and t

Re: Free web exploration of folder content with Struts2

2011-05-20 Thread Maurizio Cucchiara
This happens because the struts filter(s) intercepts your request. You could change your web.xml configuration such that the struts filter(s) ignores this kind of request: Take a look at your filter mapping and change the url-pattern in something like /*.action On 20 May 2011 10:10, webmeiker wro

Free web exploration of folder content with Struts2

2011-05-20 Thread webmeiker
Hi everybody, I want to publish some resources (folders and files) under a folder inside the WebContent folder of my Struts2 application and allow free directory exploration of that folder contents. WebContent/public-folder/*.* Does somebody know how to achieve this? All my attempts fai

S2 TEst Best Practices

2011-05-20 Thread Frans Thamura
hi all thx to john geppe that gave us a lot of example based on his jquery, esp to change the cimande project with total jquery plugins and i have several question, and i think that is good if we can share it here i want to know, the test mechanisme , best practices of testing in Struts2 world