[
https://issues.apache.org/jira/browse/TAPESTRY-2168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Howard M. Lewis Ship closed TAPESTRY-2168.
------------------------------------------
Resolution: Invalid
Assignee: Howard M. Lewis Ship
This could be documented better (or at all), but the correct course of action
is to inject the Request object, check the isXHR() method, and return the
appropriate value (Block or component when XHR is true, null or a page when XHR
is false).
> Degradable partial updates to the client side
> ---------------------------------------------
>
> Key: TAPESTRY-2168
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2168
> Project: Tapestry
> Issue Type: Improvement
> Components: JavaScript
> Affects Versions: 5.0.11
> Reporter: Igor Drobiazko
> Assignee: Howard M. Lewis Ship
>
> Disabling JavaScript in the browser the update of a Zone after a click on
> ActionLink doesn't work.
> Here are the snippets of the template:
> <t:zone t:id="viewZone"/>
> ....
> <t:block id="userDetails">.....</t:block>
> ...
> <t:actionlink t:id="view" zone="viewZone"
> context="user.id">View</t:actionlink>
> The action method returns the block "userDetails".
> @Inject
> private Block userDetails;
> Object onActionFromView(long id){
> detailUser = userDAO.find(id);
> return userDetails;
> }
> When JavaScript is disabled, following exception is thrown:
> An unexpected application exception has occurred.
> A component event handler method returned the value [EMAIL PROTECTED] Return
> type org.apache.tapestry.internal.structure.BlockImpl can not be handled.
> Configured return types are java.lang.Class, java.lang.String, java.net.URL,
> org.apache.tapestry.Link, org.apache.tapestry.StreamResponse,
> org.apache.tapestry.runtime.Component.
--
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]