You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-dev@incubator.apache.org by Adam Winer <aw...@gmail.com> on 2006/09/15 16:44:00 UTC

Re: Throw explanatory exception in PanelTabbedRenderer for wrong typed childs?

Please do file a JIRA issue.  IMO, the best behavior would be to not render
the
child and log a warning.  Or, option 2, actually output into the page the
warning.  Exceptions are always bad during rendering...

-- Adam



On 8/28/06, Günther, Thorsten <Th...@medocino.de> wrote:
>
> Hi!
>
> I tried to put something else under tr:panelTabbed then tr:showDetailItem
> and got rightfully rewarded by an ClassCastException.
> Could we test the child's type before casting or catch the
> ClassCastException to give some sort of explanation to the developer? What
> Exception is commonly thrown in Trinidad for this type of error?
>
> I would gladly open a jira issue and provide a patch for this if
> appropriate.
>
> Regards,
> Thorsten
>
>