Ticket #59 (closed defect: fixed)
Redirect in result doesn't work
| Reported by: | jura.khrapunov@… | Owned by: | joe.rinehart |
|---|---|---|---|
| Priority: | highest | Milestone: | 2.0 Beta 1 Bugfixes |
| Version: | 2.0.304 | Severity: | critical |
| Keywords: | Cc: |
Description
When using redirect="true" attribute of the <result> tag in ModelGlue?.xml following exception thrown:
Message: The selected method forward was not found.
Detail: Either there are no methods with the specified method name and argument types, or the method forward is overloaded with arguments types that ColdFusion? can't decipher reliably. If this is a Java object and you verified that the method exists, you may need to use the javacast function to reduce ambiguity.
Tag Context: C:\daemons\CFusionMX7\webadmin\ModelGlue?\unity\framework\ModelGlue?.cfc (334) C:\daemons\CFusionMX7\webadmin\ModelGlue?\unity\framework\ModelGlue?.cfc (268) C:\daemons\CFusionMX7\webadmin\ModelGlue?\unity\framework\ModelGlue?.cfc (241) C:\daemons\CFusionMX7\webadmin\ModelGlue?\unity\ModelGlue?.cfm (47) D:\projects\undpsk\anticorruption\index.cfm (33)
If I remove the redirect attribute everything works as expected. Both event-handlers configured properly and working fine until I need to externally redirect the result. Just for your info, ModelGlue?.xml snippet which doesn't work:
<event-handler name="show"> <broadcasts> <message name="needContent" /> </broadcasts> <results> <result do="layout" /> </results> <views> <include name="body" template="showPage.cfm" /> </views> </event-handler> <event-handler name="showContent"> <broadcasts /> <results> <result do="show" redirect="true" append="content_id" /> </results> <views /> </event-handler> <event-handler name="layout"> <broadcasts /> <results /> <views> <include name="template" template="layout.cfm" /> </views> </event-handler>
![(please configure the [header_logo] section in trac.ini)](/ModelGlue.com/trac.cgi/chrome/site/your_project_logo.png)