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
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?
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
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,
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
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;
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
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
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
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
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
11 matches
Mail list logo