Tag Archives: appfuse

Simple Captcha in JSF with and without Acegi Security

At first, goto SimpleCaptcha and read all that they are saying.

Right now, I’m using captcha in JSF. I have an jsf application, I built that through Appfuse.

It has Acegi security 1.0.5  and spring 2.5, now i’m trying to integrate Simple captcha 1.2.1 in it.

Read more of this post

Removing Header And Footer For a certain page in Appfuse

I wanted to appfuse theme for a certain page. I just needed to design a pop up window. Upon a button click, a popup will be opened. The pop up will contain a a text field and a button. But problem is whatever i do, appfuse decorators adds default header and footer. In a small pop up window, it doesn’t look good with the big header and footer.
I wanted to remove these header and footer. Because, even if i call an empty page without any html or any other code, the decorator addes the header and footer.
Then I found ‘decorators.xml’ in ‘WEB-INF/decorators.xml’. What I did, i put my view page in directory named ‘popup’ in my webroot. added ‘ <pattern>/popup/*</pattern> ‘ this line under ‘<excludes>’ tag. after adding decorators.xml turned out like this….
<decorators defaultdir=”/decorators”>
<decorator name=”default” page=”default.jsp”>

Hunting for Appfuse War

I’m impressed with appfuse.

All I needed is the code in my working environment. But, the problem started that time. Maven was able to connect to its repository. But it failed to execute only one command. In the AppFuse QuickStart, I generated the maven command, that I have to execute from my working computer. I wanted a JSF project, so generated the command accordingly..

mvn archetype:generate -B -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-basic-jsf-archetype -DarchetypeVersion=2.1.0-M1 -DgroupId=com.mycompany -DartifactId=myproject

I was working on the internet behind a proxy. So, my maven wasn’t able to connect to its repo automatically. But, I configured it to connect to the internet, as i described it in my previous blog. But this time, I couldn’t execute the above command for unknown reason. It was showing connection timeout error.

So, I was looking for war, which is deploy able tomcat 6.

And I found it at http://www.jarvana.com/jarvana/inspect/org/appfuse/appfuse-jsf/2.0.2/appfuse-jsf-2.0.2.war

I have just got it. Lets see, whats in it.

Heading for Appfuse

I was assigned to develop a solution to manage customer applications.

I could have done it with simple solution with php on a simple cms.

But in past few year I worked in J2EE solutions. So headed for that.

But the problem is, when I worked on J2EE projects my seniors provided me the already structured Skeleton. What I didn’t have with me in my new workplace.

I have experienced with JSF, Spring and Hibernate.

So I wanted a skeleton with these three. Along with user management, session management and ready to use JSF-Spring-Hibernate  configuration. I studied and found that it will really painful job to connect them all, if I don’t have any previous experience doing that. Moreover, I will never know, if have done it perfectly and there is no one to check it. Do, I headed for Appfuse ( http://appfuse.org/ ). I was looking for some demo it can use it. I found http://demo.appfuse.org/ . There were four choices. They are –

* JSF + Spring + Hibernate
* Struts 2 + Spring + Hibernate
* Spring MVC + Spring + Hibernate
* Tapestry + Spring + Hibernate

As u can assume, I picked “JSF + Spring + Hibernate”. After spending some time I found that, It was really that, what I was looking for. It has JSF, Spring, Hibernate and ACEGI security already configured and ready to use stage. Now, just i want, to get the source code along with the dependency jars, and the hell working it out.

So I have started work on it, got some awesome facilities with some problem. I will share it on future.