Flex, Grails Security over HTTP - How to example? - apache-flex

I'm writing an application, Flex front-end & Grails back-end, in which I need to integrate security. All the information around Grails gives me the impression to be well suited for when your client is written in HTML but how can I use Flex's HTTPService to integrate into it? Could anybody point me into the right direction?
Regards,
Lars

Hi Lars
I'd suggest having a read of Mike Hugo's article on writing Grails plug-ins in Groovymag
http://www.groovymag.com/main.issues.description/id=6/
This will give you an insight as to how to gain access to the application context etc.
Also have a look out for Sebastien Arbogast's blog and this article:
http://www.pubbs.net/201002/grails/49092-grails-user-grails-flex-blazeds-and-spring-security-integration.html
Combine this with some articles like this:
http://www.gridshore.nl/2008/07/14/integration-spring-security-acegi-and-flex-3-the-sequel/
Also have a look at the Spring-Flex project.
http://www.springsource.org/spring-flex
Christophe Coenraets and Jeremy Grelle's blogs are worth taking a look at too.
http://coenraets.org/blog/2010/03/new-spring-blazeds-test-drive-available-flex-4-blazeds-4-and-spring-blazeds-integration-1-0-3/
http://blog.springsource.com/author/jgrelle/
This is probably what I'd look at first:
http://tv.adobe.com/watch/max-2009-develop/integrating-spring-with-blazeds-and-livecycle-data-services/
Also:
http://tv.adobe.com/watch/adc-presents/integrating-spring-and-flex/

There are many options for returning XML from a Grails Controller, which can then be consumed by Flex's HTTPService.
For security, check out the Spring Security Core Plugin.

Related

How to handle routing in a DukeScript web application

DukeScript looks like a life saver for we Java guys! I am considering it for a serious project. Was curious to know whether it's production ready and well documented. Also, liked to know what would be the best way to support routing in a web application.
I asked this question at the official google forum, but didn't get a reply. So, thought to re-ask here.
Here's a blog post with a little example. It shows a simple integration of location hash based routing with knockout templates. The full example code is available on github.
You might also use one of the javascript libraries like sammy or pagerjs, which would require integration with these frameworks, but I wanted to keep it simple.

Adding Funscript to an existing ASP.NET MVC project

I really like the FunScript's idea of writing F# instead of Javascript, but I cannot find any samples on how to integrate FunScript int an existing ASP.NET MVC solution.
Is it even possible? A "real-world example" would be really useful.
Igor, you can check out the blog post that I have written and the solution that accompanies on it on Github.
http://namelessinteractive.com/FullStackFSharpLongVersion_Part1
Essentially it is an MVC application with FunScript integration.
F# is for server not for the Client
so i think use f# is not a good idea
if you do not like Javascript
use TypeScript is a good idea

Perform service interception with Fabric3

I´m doing a POC with Fabric3 (Service Component Architecture Framework) and would like to know if there is some native way to proceed interception in my Services? Something like #Interceptors of EJB or a Filter of a web environment.
There are a couple of ways to do this depending on your requirements. One is via binding handlers and the other is by writing a custom interceptor.
We'd be happy to help you further and walk you through this. Could you post a brief description of your requirements to the user list? Instructions for doing so can be found on our support page: http://fabric3.org/support.html
Thanks,
Jim

I need help integrating and using elFinder with ASP.NET

I have been playing with this for a day and cannot seem to get it to work.
elFinder has many options for connections, such as PHP and Python among others. Someone made a third party ASP.NET connector for it and it was reported that it worked.
Here is the page for the DLL for it:
http://elfinderconnectornet.codeplex.com/releases/view/55319
I am having tremendous trouble figuring out how to hook the existing elFinder to ASP.NET.
I hope to find someone who has had some experience with this and can assist me. I'm not sure what other information I can give you.
Any help is appreciated.
There's an even better option right now called ElFinder.Net Connector hosted at CodePlex. The coordinator and main developer of the port Evgeny Noskov is a super considerate person and he listens to feedback and acts as you can read here in a discussion I posted:
Add startPath and uploadMaxSize to connector options
I liked elFinder.Net so much that I wrote a post to showcase a simple use case that is a great fit for it:
Manage folders & files in your ASP.NET MVC app with elFinder.Net
Hope it helps.
See here: http://elfinderaspnet.codeplex.com/
For now it provides some basic functionality but seems to be usable.
ElFinder is very easy to configure and use.
I did some research on 'Implementing ElFinder on multiple pages using MVC' and found "ElFinder.Net Connector" NOT AVAILABLE.
Download the simple MVC sample project from here

NHibernate conversation with ASP.NET+IoC+PostSharp?

Does anybody know a good example of how an NHibernate conversation can be used in a Web context (ASP.NET or ASP.NET MVC) using an IoC container and AOP? Personally, I use Castle/Windsor and PostSharp, but I will appreciate everything that points me to the right direction.
Fabio Maulo has talked about this in some blog posts, and I think there is some relevant code in the uNhAddins project. Dario Quintana has a downloadable example. Furthermore, there is an AOP category on the NHibernate community site.
HTH!

Resources