Re: [core] dynamic script before /body (an equivalent for DialogRequest from Trinidad)

2011-08-04 Thread Werner Punz
There is no direct way to do that. I would love to have some kind of h:outputScript which could render against the body end. The reason for this is, you can get a significant performance boost if you push the script includes to the bottom of the page. But anyway, the way to do this

Re: [core] dynamic script before /body (an equivalent for DialogRequest from Trinidad)

2011-08-03 Thread Jakob Korherr
Hi, Nope, I don't think so. Maybe you can achieve it via a javascript event-handler on the client, but I actually don't know for sure. Maybe Werner can help you out! Regards, Jakob 2011/8/2 Martin Koci martin.kocicak.k...@gmail.com: Hi, has JSF an official API to achieve similar

Re: [core] dynamic script before /body (an equivalent for DialogRequest from Trinidad)

2011-08-03 Thread Çağatay Çivici
Maybe you can override BodyRenderer to implement this. On Aug 3, 2011, at 11:39 AM, Jakob Korherr wrote: Hi, Nope, I don't think so. Maybe you can achieve it via a javascript event-handler on the client, but I actually don't know for sure. Maybe Werner can help you out! Regards, Jakob

Re: [core] dynamic script before /body (an equivalent for DialogRequest from Trinidad)

2011-08-03 Thread Jakob Korherr
Hi, Maybe you can override BodyRenderer to implement this. For normal request: sure. For AJAX requests: whole body re-rendering would be necessary, thus not really usable. Regards, Jakob 2011/8/3 Çağatay Çivici cagatay.civ...@gmail.com: Maybe you can override BodyRenderer to implement this.

Re: [core] dynamic script before /body (an equivalent for DialogRequest from Trinidad)

2011-08-03 Thread Martin Koci
I'll try solution with a mock component before /body. Component fetchs all script requests from facesContext.attributes and renders them. Also that component is autoRender=true so it is re-rendered in every partial response. Jakob Korherr píše v St 03. 08. 2011 v 11:10 +0200: Hi, Maybe you

[core] dynamic script before /body (an equivalent for DialogRequest from Trinidad)

2011-08-02 Thread Martin Koci
Hi, has JSF an official API to achieve similar functionality as [1] ? Purpose and use case: 1) JSF process partially view 2) JSF artifact creates and queues a request render this script ... before /body 3) new element script is created and rendered before /body this is not same same