[ 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to