dev@jsftemplating.java.net

Re: JSFTemplating: DynamicColumnTableRowGroupFactory exception

From: Karam Singh Badesha <Karam.Badesha_at_Sun.COM>
Date: Thu, 20 Sep 2007 10:11:00 -0700

Thanks Ken. That fixed the problem.

-Karam

Ken Paulsen wrote:
>
> Hi Karam,
>
> The reason you're seeing this is b/c the tree is still being created
> after you call your redirect. When this happens, it does not have the
> information it needs to instatiate the table you have on the page.
>
> To get around this, you can probably throw a
> "javax.faces.event.AbortProcessingException" after your redirect,
> although I haven't tested this. I just committed a change to the
> LayoutViewHandler that will check for the responseComplete flag before
> creating the tree. This flag was already set when you call redirect.
> So now it should work as you want if you use this during initPage().
> During beforeCreate, it will still cause a problem, though. You'll
> need to checkout / build the JSFT source to get this change.
>
> I hope this helps!
>
> Ken
>
> Karam.Badesha_at_Sun.COM wrote:
>> Ken,
>> Any comments on this?
>>
>> thanks
>> Karam
>>
>> Karam Singh Badesha wrote:
>>
>>> Hi Ken,
>>> I have a if statement in the initPage/beforeCreate event (I tried
>>> putting the if statement under both of these) where I check if the
>>> user is logged in or not and depending upon that either I redirect
>>> to login page or just load the page. The pages where I have a
>>> dynamic table and the user is not logged in and tries to load that
>>> page, instead of redirecting to the login page it gives the
>>> following exception. Can this be fixed because this seems like a
>>> bug. On rest of pages where I have a regular table, the redirect
>>> works fine.
>>>
>>> *
>>> *
>>>
>>> *exception*
>>>
>>> javax.servlet.ServletException: DynamicColumnTableRowGroupFactory
>>> requires a valid 'columnValue' attribute, however one was not supplied!
>>>
>>> *root cause*
>>>
>>> java.lang.IllegalArgumentException:
>>> DynamicColumnTableRowGroupFactory requires a valid 'columnValue'
>>> attribute, however one was not supplied!
>>>
>>> thanks
>>> - Karam
>>