I do not see how I could do the processing in the invoke application, because the detailStamp is shown via HtmlDataTable.toggleDetail, which is invoked during invoke-application, but there's no possibility of specifying a listener that is invoked when toggleDetail is invoked...
Ok, that's the real problem. Well I see two "easy" solutions: 1. Uses Trinidad as it allows a listener on detailDisclosure 2. During invoke application, get an ExternalContext instance and go read the request parameters to find out if a disclosure occured or not. It's more a hack than a solution, but it should work. Regards, ~ Simon On 12/11/06, Andrew Robinson <[EMAIL PROTECTED]> 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. 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 > > > > > >

