Re: [Trinidad] Backing Bean Caching issue

2010-02-17 Thread baeschtu baeschtu
I tried query.setCacheable(false); in my dao but no change. But also when I try to add the second record, I get a: org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: What confuses me, It works with an other entity

AW: [Trinidad] Backing Bean Caching issue

2010-02-17 Thread Günther, Rene - Innflow AG
Like Jakob asked already: Are you sure your entity is saved in your database? After adding the object from your add object - page can you look into the table directly. Eg. if you use MySQL you could check in the MySQL query browser. Also what session pattern do you use?

Configuration problem?

2010-02-17 Thread Jozef Dropco
I have following problem that I am not able to solve, I think I made somewhere mistake. Code: jsp:root xmlns:jsp=http://java.sun.com/JSP/Page; version=2.0 xmlns:tr=...trinidad... jsp:directive.page contentType=text/html;charset=utf-8/jsp:directive.page This I have in xhtml file. Problem is

[JSF 1.2] How to track a validation error

2010-02-17 Thread Anton Gavazuk
Hi all, stuck with a problem - have a form with several input components: selectOneMenu and inputText; and commandButton. Input components dont have any validators and required atrributes are not set. But when form is being submitted I'm getting standart Validation error message in message queue,

Re: [JSF 1.2] How to track a validation error

2010-02-17 Thread Cagatay Civici
selectOneMenu's can cause this if the selectitems collection of this component does not contain the submittedconverted value. Also if you set h:messages showDetail=true, that would help to identify the problematic component info. On Wed, Feb 17, 2010 at 2:17 PM, Anton Gavazuk

[Trinidad]Problem with generated HTML

2010-02-17 Thread Jozef Dropco
Hi all, I have following code: jsp:root xmlns:jsp=http://java.sun.com/JSP/Page; xmlns:f=http://java.sun.com/jsf/core; xmlns:h=http://java.sun.com/jsf/html; xmlns:trh=http://myfaces.apache.org/trinidad/html; xmlns:tr=http://myfaces.apache.org/trinidad;

Re: [JSF 1.2] How to track a validation error

2010-02-17 Thread Anton Gavazuk
Hi Cagatay, you are right - selectOneMeny is causing error, value is selected, so is being submitted, - reason is in converter, please, correct me if I'm wrong - Long value doesnt require converter, does it? Thanks, Anton 2010/2/17 Cagatay Civici cagatay.civ...@gmail.com selectOneMenu's

Re: [JSF 1.2] How to track a validation error

2010-02-17 Thread Cagatay Civici
Anton, can you provide your code? On Wed, Feb 17, 2010 at 2:50 PM, Anton Gavazuk antongava...@gmail.comwrote: Hi Cagatay, you are right - selectOneMeny is causing error, value is selected, so is being submitted, - reason is in converter, please, correct me if I'm wrong - Long value

Re: [JSF 1.2] How to track a validation error

2010-02-17 Thread Anton Gavazuk
Cagatay, please, look below java snippet private Long currentRoomCategory; public ListSelectItem getRoomCategories() { ListSelectItem items = new ArrayListSelectItem(roomCategories.size()); for (RoomCategory room : roomCategories) { items.add(new

Re: Configuration problem?

2010-02-17 Thread Michael Kurz
Hi Jozef, you mention that you have jsp content in xhtml files. There might be a problem with the context parameter javax.faces.DEFAULT_SUFFIX and/or your servlet mapping. Can you supply these infos (from your web.xml)? Have you tried renaming your file from *.xhtml to *.jsp? regards

Re: Configuration problem?

2010-02-17 Thread Michael Kurz
OK, I see your problem. You use Facelets which does not know how to deal with jsp tags. Therefore they are rendered as is. - Michael Am 17.02.2010 20:49, schrieb Jozef Dropco: Hi Michael, here is whole web.xml ?xml version=1.0 encoding=UTF-8? web-app version=2.4