You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Harish Krishnaswamy <hk...@comcast.net> on 2003/10/10 07:53:38 UTC
Improper exception from FieldLabel.renderComponent for missing Form
FieldLabel.renderComponent throws a NullPointerException when the
component is not wrapped by a Form. This exception is not a typical
Tapestry exception in the sense that the exception is not user friendly.
I think it should do something similar to AbstractFormComponent and
throw a meaningful exception. If everyone agrees I shall go ahead and
fix it.
-Harish
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
Re: Improper exception from FieldLabel.renderComponent for missing
Form
Posted by Harish Krishnaswamy <hk...@comcast.net>.
Fair enough, I shall fix it then.
-Harish
Howard M. Lewis Ship wrote:
>I wouldn't wait for agreement --- that's just a bug.
>
>--
>Howard M. Lewis Ship
>Creator, Tapestry: Java Web Components
>http://jakarta.apache.org/tapestry
>http://jakarta.apache.org/commons/sandbox/hivemind/
>http://javatapestry.blogspot.com
>
>
>
>>-----Original Message-----
>>From: Harish Krishnaswamy [mailto:hkrishnaswamy@comcast.net]
>>Sent: Friday, October 10, 2003 1:54 AM
>>To: tapestry-dev@jakarta.apache.org
>>Subject: Improper exception from FieldLabel.renderComponent
>>for missing Form
>>
>>
>>FieldLabel.renderComponent throws a NullPointerException when the
>>component is not wrapped by a Form. This exception is not a typical
>>Tapestry exception in the sense that the exception is not
>>user friendly.
>>I think it should do something similar to AbstractFormComponent and
>>throw a meaningful exception. If everyone agrees I shall go ahead and
>>fix it.
>>
>>-Harish
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
>>
>>
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
>
>
>
>
RE: Improper exception from FieldLabel.renderComponent for missing Form
Posted by "Howard M. Lewis Ship" <hl...@comcast.net>.
I wouldn't wait for agreement --- that's just a bug.
--
Howard M. Lewis Ship
Creator, Tapestry: Java Web Components
http://jakarta.apache.org/tapestry
http://jakarta.apache.org/commons/sandbox/hivemind/
http://javatapestry.blogspot.com
> -----Original Message-----
> From: Harish Krishnaswamy [mailto:hkrishnaswamy@comcast.net]
> Sent: Friday, October 10, 2003 1:54 AM
> To: tapestry-dev@jakarta.apache.org
> Subject: Improper exception from FieldLabel.renderComponent
> for missing Form
>
>
> FieldLabel.renderComponent throws a NullPointerException when the
> component is not wrapped by a Form. This exception is not a typical
> Tapestry exception in the sense that the exception is not
> user friendly.
> I think it should do something similar to AbstractFormComponent and
> throw a meaningful exception. If everyone agrees I shall go ahead and
> fix it.
>
> -Harish
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org