[prev in list] [next in list] [prev in thread] [next in thread]
List: tapestry-dev
Subject: [jira] [Commented] (TAP5-2245) select component: selected option is not listed in the model.
From: "Jochen Kemnade (JIRA)" <jira () apache ! org>
Date: 2014-05-31 9:49:01
Message-ID: JIRA.12681894.1385733555467.53086.1401529741757 () arcas
[Download RAW message or body]
[ https://issues.apache.org/jira/browse/TAP5-2245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14014582#comment-14014582 \
]
Jochen Kemnade commented on TAP5-2245:
--------------------------------------
I think it's a bug in Tapestry. The model is generated with {{Long}}s in Tapestry. \
The submitted value is interpreted as an {{Integer}}. I think, we should coerce the \
submitted value and use that for the check.
> 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)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic