Archive

Archive for the ‘JBoss Seam’ Category

How to add change language option to JBoss Seam site?

September 4, 2008 Leave a comment

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:selectOneMenu>
<h:commandButton action=”#{localeSelector.select}” value=”#{messages['ChangeLanguage']}”/>
</h:form>

Categories: JBoss Seam

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

September 4, 2008 Leave a comment

This is annoying while working on site.

http://jira.jboss.com/jira/browse/JBSEAM-1832

Categories: JBoss Seam

error on console: Persistence not started

September 4, 2008 Leave a comment

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

Categories: JBoss Seam

MySQL Dialect and Numeric Problem

September 4, 2008 1 comment

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

Solution

http://opensource.atlassian.com/projects/hibernate/browse/HHH-2582

ABCDDialect.java

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()
{
super();
registerColumnType(Types.NUMERIC, “decimal($p,$s)”);
registerColumnType(Types.DECIMAL, “decimal($p,$s)”);

}
}

Categories: JBoss Seam

How to reverse engineer only specific tables?

September 4, 2008 Leave a comment

seam-gen.reveng.xml

<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

Categories: JBoss Seam

Reverse engineer with Oracle Tables – Hibernate – JBos Seam

September 4, 2008 Leave a comment

Buid.properties file

Correct
hibernate.default_schema.null=sechama_name
Wrong
hibernate.default_schema=sechama_name


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

Categories: JBoss Seam Tags:
Follow

Get every new post delivered to your Inbox.