Grails3 Webflow - Is there any working example? - grails

I am currently working with grails trying to setup a webflow. I used this (quite) old example:
https://github.com/grails-samples/book-flow
When I run my grails app and want to start the flow, I just get the error:
Error: Page Not Found (404)
Path: /book/shoppingCart
Is this example app outdated? Can someone give me a hint to setup a simple webflow with grails?
Thanks

Related

Authentication using social-auth library in grails for facebook,google,twitter

I am following the example given in link https://code.google.com/p/socialauth/wiki/GettingStartedWithGrails but everytime it authenticates using google,its getting redirected to error page.I tried with localhost and also with domain they are providing in example.Plz help.
Can you try the latest Grails demo from SocialAuth 4.2 SDK
If it doesn't work then you can POST issue on https://code.google.com/p/socialauth/issues/list

Configure an Activiti BPM?

I want to know that how to configure/run Activiti BPM in Grails?? I'm using fedora as my OS, Grails 2.1 . If their is any tutorial websites are is plz mention it also..
There is a plugin for Grails applications that provides much of Activiti within a Grails app. http://grails.org/plugin/activiti However, development has sadly stopped on it by the main developer. The last update was for Activiti 5.9 and Grails 2.1, though much of the plugin content seems to be built for older versions of Grails; for example, actions in the plugin's TaskController are all closures, not methods. Also, someone did issue a pull request to update it to 5.10.
I've been trying to puzzle through the source for that plugin myself. I keep vacillating between simply setting up a standalone Activiti server and utilizing the RESTful API from within a Grails Service class, importing a few of the Activiti classes into my Grails app, or trying to re-engineer the plugin to suit my needs (my site is stuck on Grails 2.0.1 for the time being).

Grails with Comet working example

I'm trying to implement server Push technology in Grails application using Comet by working out few simple examples, but I'm struggling to make it really work. I've been trying out 2 examples from the below 2 links and it is not working. Not working in the sense, am not able to see the expected result, though I don't get any errors/exceptions.
Using Cometd 2.x with Grails
Grails-based Comet (Bayeux Protocol)
Any help in the form of working example, pointers, links, suggestions, etc. are really appreciated.
NOTE: As you can see from above posts, the article is 2-3 years old. Currently, I'm running Grails v2.1.0 and cometd plugin is v0.2.2. IDE is NetBeans v7.2.
I managed to find a solution for server push technology using Grails Events Push Plugin, though, instead of Cometd / Bayeux.
Following links were helpful in implementing server push technology:
Grails with Comet working example
Issue with grails events push plugin
Example of Events-Push in action in the SpringOne2GX Day 1 Keynote video by Graeme (goto 1:06 in the video)

How to access the project documentation pages created using Gdoc in grails

I followed the tutorial on the grails documentation was successfully able to create project specific documentation pages by running the following command
grails doc
I was able to view the HTML pages from my desktop and I found them on the following directory:
..\target\docs\index.html
I was wondering how to access these generated HTML pages from the server. What is the URL to view them from the server?
I tried the following URL but did not work?
http://localhost:8080//docs/index.html
Also, the grails documentation states that the command will output an docs/manual/index.html
page. Rather I found the index.html page on the following directory:
..\target\docs\index.html
Can anyone help me in this?
Thanks
They're not built to be viewed from the running application, so they're not automatically exposed as a url. But you can move them to the web-app folder and they'll be accessible.
You can also configure the build location to be under web-app. Add this line to grails-app/conf/BuildConfig.groovy:
grails.project.docs.output.dir = 'web-app/docs'

Grails portlet plugin problems

Wonder if anyone has come accross this problem. I have created a demo portlet using the grails portlet and liferay plugins.
After installing the grails plugins in a project i simply ran the following commands
grails create-portlet MyFirst
grails generate-portlet-views MyFirst
grails liferay-deploy
The portlet deploys fine. However when i try to add the portlet to a page then i get the following stacktrace. Anyone have any ideas ?
23:04:52,134 ERROR [jsp:165] javax.servlet.ServletException: File "/WEB-INF/grails-app/views/myfirst/render.jsp" not found
I am running liferay version 5.2.3 that has tomcat version 6.0.18 embedded. I am also using JVM 1.6
thanks in advance.
The current versjon of the Grails portlet plugin (0.7) doesn't support portletnames with capital cases. Change MyFirst to myfirst and it will work like a charm (well, almost ;)
Regards
Armaz
It looks like it's not able to find render.gsp (the default gsp for a porltet if no mode specific view is found).
What did generate-portlet-views generate for you?
Take a closer look to your stacktrace - it attempts to look for render.jsp, not gsp. render.jsp is the default template LR attempts to find if it does not find what it is looking for depending on the action.
Read Armaz's answer, he is correct. You must change template folder name to lower case: myFirst => myfirst.
The next problem you might experience is solved here: Grails Liferay portlet not invoking action ;)

Resources