On Mon, 2006-12-11 at 09:17 -0700, Andrew Robinson wrote:
> It is not recommended to do any business logic code in the RENDER
> phase, keep all your code in the ACTION phase. Use shale or JBoss Seam
> or jsf-comp to execute any "on load" functionality of your page. 
> 
> If you must put your code in the render phase (like property getters),
> then you will need to put your messages component at the bottom of
> your page. Then use CSS to move it to wherever you want on the page. 
Good idea, thanx!

Cheers,
Martin


> 
> On 12/11/06, Martin Grotzke <[EMAIL PROTECTED]> wrote:
>         Hi all,
>         
>         I have a case where I perform some logic during the
>         RENDER_RESPONSE
>         phase where an error might occurs and I want to display some
>         error
>         message - which is unfortunately not displayed directly. But
>         with the 
>         next request/response the error message is displayed. I asume
>         that this
>         is the case because the h:messages component is already
>         rendered - so
>         the behavior should basically be correct.
>         
>         Do you have any suggestions how to handle this? 
>         
>         The concrete case is when the details of a dataTable (facet
>         detailStamp)
>         are displayed - just comes into my mind to use a
>         CustomHtmlDataTable
>         component that overrides the toggleDetail method... What do
>         you think? 
>         
>         Thanx in advance,
>         cheers,
>         Martin
>         
>         
>         
>         
>         
> 
-- 
Martin Grotzke
http://www.javakaffee.de/blog/

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to