Trails

setting saveListener on ObjectForm has no impact

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0.0
  • Fix Version/s: 1.1.0
  • Component/s: trails-core
  • Labels:
    None
  • Number of attachments :
    0

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>

Activity

Hide
Kalle Korhonen added a comment -

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.

Show
Kalle Korhonen added a comment - 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.
Hide
Kalle Korhonen added a comment -

Of course Alejandro has already implemented it In addition, there are show*Button parameters to override the default logic for showing or hiding the buttons.

Show
Kalle Korhonen added a comment - Of course Alejandro has already implemented it In addition, there are show*Button parameters to override the default logic for showing or hiding the buttons.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: