Archive for category Ropardo Software Development

Dynamically generate ENUMs through assembly

In C# ENUMs are storage efficient data structure acting at run-time just like primitive types. The following presents one way to generate an enumeration class within a dynamic assembly using database data. Read the rest of this entry »

Tags: , , , , ,

Porting applications from Oracle to PostgreSQL

If you are planning to migrate a database application from Oracle to PostgreSQL, this article can help you to understand and solve some of the issues occurring in such a process. PostgreSQL has recently become feature-complete in many areas and therefore porting projects from Oracle might be a feasible option in much more cases. Oracle and PostgreSQL both conform to standard SQL. However, they contain several extensions and implementation details that differentiate one from the other. Here is table with some of the differences and how to deal with them. Read the rest of this entry »

Tags: ,

Django schema migration using South

Over the developing period of Django web application the models change a lot. Managing these changes in a team environment working on a Django project can become complicated. Unfortunately Django doesn’t capture the changes in the existing models. Until Django will provide an solution to this problem, you will need to use a schema migration tool. After I have browsed for such tools, I decided to use South. This post will explain how to use South. Read the rest of this entry »

Tags: , , , , , ,

Two options for showing properties from a .properties file

Task: Show in a jsp file some properties you have declared in a .properties file in the project
Solution1:
Use the Jquery Plugin for internationalization. Think of this as using the ResourseBundle of Java. Loading and parsing the information from the .properties files and showing them in the jsp page.
Read the rest of this entry »

Tags: ,

Adding error messages in JSF

When developing applications with JSF, there is the need to display error messages back to the user, if a user submitted form contains errors, or if the processing of the data went wrong.

For this request, JSF meets the <h:message/> tag.
Read the rest of this entry »

Tags: , , ,

osCommerce jQuery price calculator

Let’s assume that we have to build a price calculator for a osCommerce website, that needs to have price based on dimensions(input from user – length, width), attributes, for each attribute there are more than 1 options with different prices for each option.

Read the rest of this entry »

Tags: , , ,

Uncaught System Error:org/apache/jaxme/JMElement in JNLP

Wanting to implement a .jnlp jar for an application i run into this error that popped out in an error dialog “Uncaught System Error:org/apache/jaxme/JMElement” and after this, that project was blocked.

Read the rest of this entry »

Tags: , ,

SQL Transactions in Java

1. Rollback all data on import from a table if a row is corrupted. You have a list of sql queries as a parameter:
Read the rest of this entry »

Tags: , , , ,

Tips and Tricks for programming in Liferay Extended Environment – Part 1

Hi there,

As my journey with Liferay continues I thought it would be a good idea to write down some.. let’s say, miscellaneous stuff that were apparently trivial, but turned out to consume much more time than expected. So, there is one for today (actually happened last week) and I will keep updating this blog with new ones that I find (or remember :P ).

Use EntityLocalServiceUtil instead of EntityUtil wherever possible

For example use UserLocalServiceUtil instead of UserUtil if you need to programmatically update user details. Read the rest of this entry »

Windows Application interaction with a Web Page

Displaying a web page inside a widows form application and interact with the content it’s very simple using System.Windows.Forms.WebBrowser.
This way you can easily create a panel containing ads in to your application or even communicate with a 3rd Party web component for displaying data. In our case we needed to integrate an enterprise application with an applet provided by Oracle that was capable of displaying and comparing 3d models.
Read the rest of this entry »

Tags: , , ,