Re: Implementing Hibernate Open session per view in Apache MyFaces

2008-09-11 Thread Ayub Khan
Hi Hazem, Attached is the hibernate.cfg.xml file for your reference. Thank you Regards Ayub On Fri, Sep 12, 2008 at 3:38 PM, Hazem Saleh <[EMAIL PROTECTED]> wrote: > Please send me the (Hibernate.cfg.xml) file content. > Thank you. > > > On Fri, Sep 12, 2008 at 2:03 AM, Ayub Khan <[EMAIL PROTEC

Re: Implementing Hibernate Open session per view in Apache MyFaces

2008-09-11 Thread Hazem Saleh
Please send me the (Hibernate.cfg.xml) file content. Thank you. On Fri, Sep 12, 2008 at 2:03 AM, Ayub Khan <[EMAIL PROTECTED]> wrote: > Hi Hazem, > I have implemented as per your suggestion using a single PL. > > The PL is registered in facesConfig.xml and the hibernateconfig file has > > thread

Re: Implementing Hibernate Open session per view in Apache MyFaces

2008-09-11 Thread Ayub Khan
Hi Hazem, I have implemented as per your suggestion using a single PL. The PL is registered in facesConfig.xml and the hibernateconfig file has thread still I am getting "org.hibernate.LazyInitializationException: could not initialize proxy - no Session" error Any clues ? ===

Re: Global error page question

2008-09-11 Thread Leonardo Uribe
On Thu, Sep 11, 2008 at 5:12 PM, Leonardo Uribe <[EMAIL PROTECTED]> wrote: > > > On Thu, Sep 11, 2008 at 5:03 PM, laredotornado <[EMAIL PROTECTED]>wrote: > >> >> Thanks for your reply. So am I reading that I should not be following the >> JSF instructions on the wiki page? Since I already embark

Re: Global error page question

2008-09-11 Thread Leonardo Uribe
On Thu, Sep 11, 2008 at 5:03 PM, laredotornado <[EMAIL PROTECTED]>wrote: > > Thanks for your reply. So am I reading that I should not be following the > JSF instructions on the wiki page? Since I already embarked on that path, > I'll ask another question. Right now, when the error page is getti

Re: Global error page question

2008-09-11 Thread laredotornado
Thanks for your reply. So am I reading that I should not be following the JSF instructions on the wiki page? Since I already embarked on that path, I'll ask another question. Right now, when the error page is getting invoked, the JSF is not getting rendered -- i.e what is sent to my browser is

Re: Global error page question

2008-09-11 Thread Leonardo Uribe
On Thu, Sep 11, 2008 at 4:27 PM, laredotornado <[EMAIL PROTECTED]>wrote: > > Hi, > > I'm trying to create a JSF error page to which 500 server errors are > redirected. I thought I'd use the MyFaces wiki -- > http://wiki.apache.org/myfaces/Handling_Server_Errors, but I have a couple > of questions

Global error page question

2008-09-11 Thread laredotornado
Hi, I'm trying to create a JSF error page to which 500 server errors are redirected. I thought I'd use the MyFaces wiki -- http://wiki.apache.org/myfaces/Handling_Server_Errors, but I have a couple of questions. The page above does not list what changes, if any need to be made to faces-config.

Re: [Tobago] core compilation problems

2008-09-11 Thread Bernd Bohmann
Hello Salvador, please check the url it should be: http://svn.apache.org/repos/asf/myfaces/tobago/tags/tobago-1.0.17 maybe a proxy problem please check your subversion configuration and you can try the https link https://svn.apache.org/repos/asf/myfaces/tobago/tags/tobago-1.0.17 If this doesn't

RE: [Tobago] core compilation problems

2008-09-11 Thread Bravo Villegas Salvador Francisco
SVN Send me an error. svn: OPTIONS de 'http://svn.apache.org/repos/asf/myfaces/tobago/tags/tobago-1.0.17': Could not read status line: Se ha forzado la interrupciĆ³n de una conexiĆ³n existente por el host remoto. (http://svn.apache.org) -Mensaje original- De: Bernd Bohmann [mailto:[EMAIL

Re: [Trinidad] Validator

2008-09-11 Thread Matthias Wessendorf
On Wed, Sep 10, 2008 at 3:02 AM, Stefan Kogler <[EMAIL PROTECTED]> wrote: > > Hi all, > > i have a problem with validators in Trinidad. > > I wrote a custom validator for an integer. > > Now when i type in my field a valid Integer like '1' und submit my form > everything works fine -> my custom val

[Trinidad] Validator

2008-09-11 Thread Stefan Kogler
Hi all, i have a problem with validators in Trinidad. I wrote a custom validator for an integer. Now when i type in my field a valid Integer like '1' und submit my form everything works fine -> my custom validator is called. When i type in a not valid value like 'A' i get an faces message 'Not

Re: [Tobago] core compilation problems

2008-09-11 Thread Bernd Bohmann
Hello Salvador, maybe a complete checkout of 1.0.17 would be easier. svn co http://svn.apache.org/repos/asf/myfaces/tobago/tags/tobago-1.0.17/ tobago-1.0.17 Regards Bernd Bravo Villegas Salvador Francisco schrieb: > Hi Bernd > > The version is the 1.0.17 > > -Mensaje original- > De

RE: [Tobago] core compilation problems

2008-09-11 Thread Bravo Villegas Salvador Francisco
Hi Bernd The version is the 1.0.17 -Mensaje original- De: Bernd Bohmann [mailto:[EMAIL PROTECTED] Enviado el: Jueves, 11 de Septiembre de 2008 12:48 a.m. Para: MyFaces Discussion Asunto: Re: [Tobago] core compilation problems Hello Salvador, which version of tobago are you trying to co

Problem with the JMeter HTTP Proxy

2008-09-11 Thread Felix.Becker
Hi! We are currently testing our application frontends with Jakarta JMeter 2.3.2. We are activating the JMeter proxy for creating our Tests. This worked fine until we switched the to in our jsf documents. With the Internet Explorer it works without the proxy. When the request is send through

Re: [tobago] actionListener on tab selection

2008-09-11 Thread Zied Hamdi
Thanks Volker. The question is : will #{controller} be resolved against eh local context in which tabChangeListener is inserted? In my case I have the same xhtml snippet two times, every one is included with a ... Will the created method binding search for "controller" in the request scope or

Re: Implementing Hibernate Open session per view in Apache MyFaces

2008-09-11 Thread Hazem Saleh
I updated the blog entry by the single working PL. http://www.jroller.com/HazemBlog/entry/implementing_hibernate_open_session_per *Here it is:* public class OSPVFPL implements PhaseListener { public void beforePhase(PhaseEvent event) { SessionFactory sessionFactory = HibernateSe

Re: Implementing Hibernate Open session per view in Apache MyFaces

2008-09-11 Thread Hazem Saleh
I will provide the new proper way soon to the wiki as well + a working sample to make everything clear. On Thu, Sep 11, 2008 at 12:27 PM, Hazem Saleh <[EMAIL PROTECTED]> wrote: > Just a small note, I think you do not need two transactions as the SELECT > operations do not transactions. > > If you

Re: Implementing Hibernate Open session per view in Apache MyFaces

2008-09-11 Thread Hazem Saleh
Just a small note, I think you do not need two transactions as the SELECT operations do not transactions. If you implemented a single INVOKE_APPLICATION PL that will be enough. Thank you. On Thu, Sep 11, 2008 at 11:48 AM, Ayub Khan <[EMAIL PROTECTED]> wrote: > Thank you Simon !!! I will try imp

Re: [tobago] actionListener on tab selection

2008-09-11 Thread Volker Weber
Hi Zied, 2008/9/11 Zied Hamdi <[EMAIL PROTECTED]>: > Hi all, > > I need to load data on a tab click (having the switchMode="reloadTab" or > "reloadPage"), I notice there is no action, actionListener attributes is > there a way to be notified on the server about a tab change. The other > solution

Re: is tomahawk dying?

2008-09-11 Thread Hazem Saleh
Yes, we really appreciate this view, Thanks much! On Thu, Sep 11, 2008 at 9:09 AM, Zied Hamdi <[EMAIL PROTECTED]> wrote: > Hi Hazem and Felix, > > OK Tomahawk is alive!! and sorry for the monstrous thing I said ;-). > > But there's no download link in its dedicated pages (we must search it > :-))

Re: Implementing Hibernate Open session per view in Apache MyFaces

2008-09-11 Thread Ayub Khan
Thank you Simon !!! I will try implementing the transactions around the listeners and check if it resolves the issue. Regards Ayub On Thu, Sep 11, 2008 at 9:35 PM, Simon Kitching <[EMAIL PROTECTED]>wrote: > Ayub Khan schrieb: > >> Hi, >> >> I have impleted the phaseListener using the idea present

Re: Implementing Hibernate Open session per view in Apache MyFaces

2008-09-11 Thread Hazem Saleh
Hi Ayub, I tried this code before and it worked fine. You should check your hibernate configuration, and make sure that: 1. You are registered your PLs. 2. thread. Another better idea, I got later, you can use only one PL on the (INVOKE_APPLICATION) phase to implement the OSPVP. Thank you. On T

Re: Implementing Hibernate Open session per view in Apache MyFaces

2008-09-11 Thread Simon Kitching
Ayub Khan schrieb: Hi, I have impleted the phaseListener using the idea presented on http://www.jroller.com/HazemBlog/entry/implementing_hibernate_open_session_per I am getting "org.hibernate.HibernateException: createQuery is not valid without active transaction" error message. Below is

Implementing Hibernate Open session per view in Apache MyFaces

2008-09-11 Thread Ayub Khan
Hi, I have impleted the phaseListener using the idea presented on http://www.jroller.com/HazemBlog/entry/implementing_hibernate_open_session_per I am getting "org.hibernate.HibernateException: createQuery is not valid without active transaction" error message. Below is the code of phase listeners

Re: [tobago] actionListener on tab selection

2008-09-11 Thread Zied Hamdi
By the way, Did anyone try to use a4j with tobago? Any info is very welcome. Regards, Zied 2008/9/11 Zied Hamdi <[EMAIL PROTECTED]> > Hi all, > > I need to load data on a tab click (having the switchMode="reloadTab" or > "reloadPage"), I notice there is no action, actionListener attributes is

[tobago] actionListener on tab selection

2008-09-11 Thread Zied Hamdi
Hi all, I need to load data on a tab click (having the switchMode="reloadTab" or "reloadPage"), I notice there is no action, actionListener attributes is there a way to be notified on the server about a tab change. The other solution I see is to check on every page load the state of the tabGroup,

Re: is tomahawk dying?

2008-09-11 Thread Zied Hamdi
Hi Hazem and Felix, OK Tomahawk is alive!! and sorry for the monstrous thing I said ;-). But there's no download link in its dedicated pages (we must search it :-)), nightly builds are 8 months old (this must be because build procedure fails somewhere I understand it completely). For an extern ey