You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Thiago H. de Paula Figueiredo (JIRA)" <ji...@apache.org> on 2014/05/31 06:02:02 UTC

[jira] [Commented] (TAP5-2245) select component: selected option is not listed in the model.

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

Thiago H. de Paula Figueiredo commented on TAP5-2245:
-----------------------------------------------------

So do you guys think this is a bug in Java or in Sven's code? If the latter, I'd like to close the ticket.

> select component: selected option is not listed in the model.
> -------------------------------------------------------------
>
>                 Key: TAP5-2245
>                 URL: https://issues.apache.org/jira/browse/TAP5-2245
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.4
>            Reporter: Sven Homburg
>              Labels: regression
>         Attachments: ScreenDump.pdf
>
>
> @Component
> private Zone previewZone;
> @Component(parameters = {"value=previewMonth", "model=[1,3,6]", "zone=previewZone"})
> private Select previewSelect;
> @OnEvent(component = "previewSelect", value = EventConstants.VALUE_CHANGED)
> void onValueChangedFromPreviewSelect(long result)
> {
> 	if (selectedDate == null)
> 		selectedDate = LocalDate.now();
> 	selectedDate = selectedDate.plusMonths((int) (result - 1));
> 	ajaxResponseRenderer.addRender("previewZone", previewZone);
> }
> After selecting a value in select component the following error message
> occoures:
> "Selected option is not listed in the model."



--
This message was sent by Atlassian JIRA
(v6.2#6252)