[JBoss Seam] - data validation
by jamesjmp
hi,
in a form I want to validate that the code asigned in a field is one that already exists.
For instance, IÃÂôve a field for currencies. I have a table for them, and I want to check that the currency filled is already on the database to avoid foreign keys problems.
IÃÂôve found 2 solutions. The first is to override persist method and there by means of a query to check if that value is ok.
The second is to add a try-catch in the persist, and in the catch check if there has been an Exception like this
org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing:...
Is there a better "seam-way" of validating this?
thanks in advance!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107970#4107970
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107970
18 years, 5 months
[JBoss Portal] - Re: How do JBossPortal support multi lingual?
by Antoine_h
good support...
it is compliant to the standard of JSR-168, that have settled all that.
I have done a portal with 3 languages, and given consulting advice for another one in belgium : 3 languages too.
no problems.
you have to manage the way you want the language to be choosen (at first visit, with the user preference, or let the user choose it when he wants).
and manage the way you store the choice...
that is a business choice... not a portal requierement... so you have to do it.
but it is not difficult.
for arabic (or chinese), be carefull with the encoding, etc...
but that is not specific to a portal : it is something for all application (web application, desktop application)...
there are plenty of post and answer about that in the forum.
search with the word "locale".
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107968#4107968
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107968
18 years, 5 months