You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org> on 2008/10/29 01:42:44 UTC

[jira] Commented: (TAP5-299) NPE in SelectModelRenderer when Palette used with mismatched values and model

    [ https://issues.apache.org/jira/browse/TAP5-299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12643390#action_12643390 ] 

Howard M. Lewis Ship commented on TAP5-299:
-------------------------------------------

I'm reminded of the joke: "Doctor, it hurts when I reach like this."  "Well, then don't do that!"

If you are going to swap out the set of options on the client side, you better be prepared for the submission on the cient side with a matching SelectModel.

> NPE in SelectModelRenderer when Palette used with mismatched values and model
> -----------------------------------------------------------------------------
>
>                 Key: TAP5-299
>                 URL: https://issues.apache.org/jira/browse/TAP5-299
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.0.15
>            Reporter: Dan Adams
>
> Create a model with A,B as the available options and set the palette value parameter to a list with C. You will get a NPE here:
> org.apache.tapestry5.internal.util.SelectModelRenderer.option(SelectModelRenderer.java:49)
> org.apache.tapestry5.corelib.components.Palette$SelectedRenderer.render(Palette.java:147)
> because valueToOptionModel in Palette doesn't contain a mapping for C.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org