How to add change language option to JBoss Seam site?

Dummy form need to be surrounded by empty form tag

<h:form id=”dummy”>
<h:selectOneMenu value=”#{localeSelector.localeString}”>
<f:selectItems value=”#{localeSelector.supportedLocales}”/>
<h:commandButton action=”#{}” value=”#{messages[‘ChangeLanguage’]}”/>

error on console: The conversation ended, timed out or was processing another request

This is annoying while working on site.

error on console: Persistence not started

This will come if any of the entity classes modified.
1.    Stop the server
2.    Just remove temp, work folders
3.    Restart the system

MySQL Dialect and Numeric Problem

<property name=”hibernate.dialect” value=”com.pack.ABCDMySqlDialect”/>


After this don’t zip the folder, jar them with jar tool.

package com.abcd;

import java.sql.Types;

import org.hibernate.dialect.MySQL5InnoDBDialect;

public class ABCDDialect extends MySQL5InnoDBDialect

public ABCDDialect()
registerColumnType(Types.NUMERIC, “decimal($p,$s)”);
registerColumnType(Types.DECIMAL, “decimal($p,$s)”);


How to reverse engineer only specific tables?


<table-filter match-name=”table1″ />

<table-filter match-name=”table2″ />

<table-filter match-name=”table3″ />

This line help us to reverse engineer only this table.

Table name must be small letter for MYSQL

Reverse engineer with Oracle Tables – Hibernate – JBos Seam file


This stopped whole generation of files.
Also whenever you stuck up start new project and start again the whole process.