Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0.0
-
Fix Version/s: 1.1.0
-
Component/s: trails-core
-
Labels:None
-
Number of attachments :
Description
setting saveListener on ObjectForm has no impact. I thought my method would be invoked instead of the usual EditPage.save, but it didnt. I also see that ObjectForm passes it off to ObjectAction but then it is not used there.
Alejandro writes -
ObjectActions should declare a parameter saveListener like this:
<parameter name="saveListener" default-value="ognl:page.listeners.save" deprecated="no"/>
and then
<component id="saveButton" type="Submit" inherit-informal-parameters="no">
<binding name="listener" value:"ognl:saveListener"/>
</component>
I ran into the same issue myself. Certainly you could patch it for 1.0.x as well, but since 1.1 is sufficiently close, I assume it's enough to fix this for that version only.