Tag: javascript

Data Persistence on ASP.NET MVC Applications with EntityFramework

Posted by – February 27, 2009

There’s no doubt, ASP.NET is an amazing technology, very productive and easy to use, but it isn’t perfect, his architecture doesn’t help enough when you need add unit tests in your project and you can’t see a clean separation of concerns, some of its urls used to access pages isn’t so intuitive, if you need pass some data over browser address bar it will only read by accessing the old QueryString object.

As completly opposite we have ASP.NET MVC, some of its urls are very intuitive, you don’t need use something like QueryString object to read parameters passed via GET method, you can see a clear separation between model, view and controller layers, all ASP.NET MVC applications can be easily tested using the most famous unit tests frameworks.

In this article I’ll give a small introduction to web development with ASP.NET MVC and data persistence using ADO.NET EntityFramework, a simple contacts application will show how to accomplish this.
More

Share

JBoss Seam and Richfaces

Posted by – December 25, 2008

Yesterday I started a small application using JBoss Seam and Richfaces, after some hours fixing configuration issues and incompatibilities I could finally get a simple crud working.

One of the problems that I had while trying to get the application running was a redirect loop when using seam with myfaces tomahawk, once I removed myfaces tomahawk libs and configuration entries in web.xml the error gone.

Now I have another problem related with Richfaces calendar component, the popup button image isn’t displayed and the javascript for calendar component isn’t loaded too.

Share

Compressing css and js files with yuicompressor-maven-plugin

Posted by – October 13, 2008

Today I started to be worried about the size of css and js files used by my current project, so I searched for some maven plugins that can do some compression on these resources for me, hopefully I found a nice one called yuicompressor-maven-plugin.

This plugin allows to compress both css and js files, you can compress all of js files into one big file and you can do the same for css files, you can also specify which files should be added as well ignored on compression step.
More

Share

How to add an JSF action for event handling to Chartcreator charts

Posted by – June 24, 2008

Chartcreator is a very cool charting component for JSF, it uses JFreeChart as rendering engine, chartcreator can render many kinds of charts, including 3D charts, but there are some circunstances where just render charts isn’t enougth and you need some interaction too, I’ll show in this article how can you and some user interaction with Chartcreator generated charts.

Our example is a small piece of JSF code where we have a chart, a script block and a form with a inputText and a commandLink, our idea is simple, the user clicks on any portion of chart image, a imagemap click event is triggered and in javascript code we collect the information about the imagemap portion that we clicked and then pass this data to our inputText, a click is fired on commandLink and the data stored on inputText is set on managedbean property, the managedbean action is called performing some aplication navigation of something else.

More

Share

dojo 0.4.0 com drag and drop bugado

Posted by – November 8, 2006

Mal lançaram essa versão e já encontrei um bug chato, todos os meus componentes de drag funcionam normalmente, porém a comunicação de eventos do dojo está meio estranha e os componentes de drop não percebem a presença de componentes sendo arrastado sobre eles.

Um exemplo típico disso é o test_nested_drop_targets.html presente na pasta tests da distribuição do dojo.

Share