[JBoss Seam] - Re: error message & trinidad
by pete.muir@jboss.org
"ebu" wrote : it is indeed, otherwise there would be no InvalidStateException. The problem appeared to be quite obvious - this exception just was not catched. After reading validation part of seam ref i somehow decided that seam cares about catching validation exception itself.
No, completely wrong. The InvalidStateException is thrown by hibernate as it tries to persist the invalid entity. The ModelValidator checks for *potentially invalid* values *before* the entity is persisted. So the reason you get the InvalidStateException is that the ModelValidator isn't running during the JSF validation phase, the error, therefore isn't being reported to JSF and is instead thrown when you flush the persistence context.
anonymous wrote : the only problem i still have is that trinidads inputText tag doesn't want to show messages forcing me to use h:inputTag with h:message instead...
| Havn't somebody had some issues with using trinidad to display messages?
Try doing it properly using s:validate... As I said, check why the ModelValidator isn't being attached by s:validateAll.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115194#4115194
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115194
18 years, 3 months
[JBoss Portal] - locale For identity Portlet
by mnouwens@future-earth.eu
Hi everyone,
I have just upgraded to 2.6.3 and all my languages files are loading and handled as they should be. So most of poral is now in dutch. For the User indentity portlet however the locale always falls back to en and nl is never used. If i remove the en. The same nl file is loaded. I added the locale to the portlet and the title bar changes to the dutch language. So i wind up with a portal page where everything is dutch exept the identity portlet contents. I also noticed that the portlet does not react to the portlet config setttings. Only the title bar does. Has anybody an idea wat is happening. Do i have to add the locale somewhere else also.
Thanks
Marteijn Nouwens
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115188#4115188
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115188
18 years, 3 months