Re: How can I notice if there are facesmessages via ajax

2010-06-14 Thread Luca Graf (Inxmail GmbH)
I use this approach to decide if an dialog should be closed or keeped open (to show validation errors). form that holds the max Severity: value="#{facesContext.maximumSeverity.ordinal}"/> In my js callbacks i use this function to decide: function requestContainsErrors() { return docume

Re: no events firing - trinidad???

2009-10-08 Thread Luca Graf (Inxmail GmbH)
Which MyFaces/Trinidad version do you use? There was an issue in MyFaces-1.1.6 in combination with Trinidad 1.1.x that prevented commadButtons to fire there action (https://issues.apache.org/jira/browse/MYFACES-2160). Luca Richard Yee wrote: The method signature for putOneBack is wrong. It

Re: How to Configure Search results using JSF/MyFaces

2009-01-18 Thread Luca Graf
You can use DISTINCT in HQL or an ResultTransFormer (Criteria.DISTINCT_ROOT_ENTITY) in HQL to get no duplicates if an join involved. Greetings, Luca Simon Kitching schrieb: On an almost-off-topic subject: I've always found Hibernate's maxResult facility to be quite useless. It limits the num

Input components with disabled=true

2009-01-15 Thread Luca Graf
Hello together, I got an problem with input components like when i use the attribute disabled=true. My scenario is that i have two checkboxes. The second is initially set to disabled=true. Now the user should only get access to the second if he changed the value of the first before. My approa