You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org> on 2008/02/19 04:38:35 UTC

[jira] Closed: (TAPESTRY-2168) Degradable partial updates to the client side

     [ 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 org.apache.tapestry.internal.structure.BlockImpl@21b42f. 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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org