History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: TRAILS-75
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Kalle Korhonen
Reporter: Srinivas Yermal
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Trails

setting saveListener on ObjectForm has no impact

Created: 26/Jun/07 09:37 AM   Updated: 07/Apr/08 11:34 AM
Component/s: trails-core
Affects Version/s: 1.0.0
Fix Version/s: 1.1.0

Time Tracking:
Not Specified


 Description  « Hide
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>



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Kalle Korhonen - 12/Aug/07 03:55 PM
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.

Kalle Korhonen - 12/Aug/07 04:02 PM
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.