[
https://issues.apache.org/jira/browse/TAP5-421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Toby updated TAP5-421:
----------------------
Description:
An AjaxFormLoop "onAddRow" is called, even if a context parameter is not set:
public ValueHolder onAddRow() {
}
is called here:
<tr t:type="AjaxFormLoop" t:source="valueHolders" t:value="valueHolder"
t:encoder="encoder">
...
But when a context parameter is passed:
<tr t:type="AjaxFormLoop" t:source="valueHolders" t:value="valueHolder"
t:encoder="encoder" t:context="category">
...
public ValueHolder onAddRow(Category category) {
}
is not called.
This prevents for example adding rows that depend on another selction (e.g.
what kind of field).
In this case a Value rows which is selectable using a dropdown box - but the
values to be displayed in this dropdown box should depend on the category that
was selected when "add row" is pressed.
was:
An AjaxFormLoop "onAddRow" is called, even if a context parameter is set:
public ValueHolder onAddRow() {
}
is called for:
<tr t:type="AjaxFormLoop" t:source="valueHolders" t:value="valueHolder"
t:encoder="encoder">
...
But when a context parameter is passed:
<tr t:type="AjaxFormLoop" t:source="valueHolders" t:value="valueHolder"
t:encoder="encoder" t:context="category">
...
public ValueHolder onAddRow(Category category) {
}
is not called.
This prevents for example adding rows that depend on another selction (e.g.
what kind of field)
> AjaxFormLoop event methods with context parameters are not called
> -----------------------------------------------------------------
>
> Key: TAP5-421
> URL: https://issues.apache.org/jira/browse/TAP5-421
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.0.17
> Reporter: Toby
>
> An AjaxFormLoop "onAddRow" is called, even if a context parameter is not set:
> public ValueHolder onAddRow() {
> }
> is called here:
> <tr t:type="AjaxFormLoop" t:source="valueHolders" t:value="valueHolder"
> t:encoder="encoder">
> ...
> But when a context parameter is passed:
> <tr t:type="AjaxFormLoop" t:source="valueHolders" t:value="valueHolder"
> t:encoder="encoder" t:context="category">
> ...
> public ValueHolder onAddRow(Category category) {
> }
> is not called.
> This prevents for example adding rows that depend on another selction (e.g.
> what kind of field).
> In this case a Value rows which is selectable using a dropdown box - but the
> values to be displayed in this dropdown box should depend on the category
> that was selected when "add row" is pressed.
--
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]