T5: 404 http error
Hi, How can I tell T5 to send an 404 error? Is the following code right way to show 404 error page on T5? Because I got an error after calling sendError() in the code. Test.java: public class Test{ @Inject private Response response; void onActivate( Object[] parameters ) throws IOException{ //if( parameters == null || parameters.length != 2 ){ response.sendError( 404, null ); return; //} } } Error: [ERROR] RequestExceptionHandler Processing of request failed with uncaught exception: STREAM java.lang.IllegalStateException: STREAM at org.mortbay.jetty.Response.getWriter(Response.java:571) at org.apache.tapestry.internal.services.ResponseImpl.getPrintWriter(ResponseImpl.java:47) at $Response_1171072b273.getPrintWriter($Response_1171072b273.java) at $Response_1171072b240.getPrintWriter($Response_1171072b240.java) at org.apache.tapestry.internal.services.PageResponseRendererImpl.renderPageResponse(PageResponseRendererImpl.java:58) at $PageResponseRenderer_1171072b261.renderPageResponse($PageResponseRenderer_1171072b261.java) at org.apache.tapestry.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:87) at $PageRenderRequestHandler_1171072b25d.handle($PageRenderRequestHandler_1171072b25d.java) at org.apache.tapestry.internal.services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:66) at $Dispatcher_1171072b25f.dispatch($Dispatcher_1171072b25f.java) at $Dispatcher_1171072b253.dispatch($Dispatcher_1171072b253.java) at org.apache.tapestry.services.TapestryModule$12.service(TapestryModule.java:905) -- View this message in context: http://www.nabble.com/T5%3A-404-http-error-tp14493888p14493888.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5 Ajax - Which Ajax/Javascript framework will be next?
Reading http://tapestry.apache.org/tapestry5/tapestry-core/guide/ajax.html I'm just wondering what Ajax/Javascript 'du jour' will be in T5.0.8 I thought that Dojo was *the* standard framework of choice of Tapestry. Am I missing something here? -J. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 Ajax - Which Ajax/Javascript framework will be next?
I'd say you are missing something: this is Tapestry 5. If I'm not mistaken prototype has been the choice since the beginning of T5 - hardly 'du jour'. There has been chatter here and there about having a pluggable system for using the JS of your choice, however I don't think this has received any official attention from Howard. Jan Vissers wrote: Reading http://tapestry.apache.org/tapestry5/tapestry-core/guide/ajax.html I'm just wondering what Ajax/Javascript 'du jour' will be in T5.0.8 I thought that Dojo was *the* standard framework of choice of Tapestry. Am I missing something here? -J. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5: createActionLink, delimiter : and .
When I call a createActionLink(send, false, 2050) in page then link is message:send/2050. And it does not work (onSendAction(long id) is not called). In a component ActionLink link is message.send/2050 and it works. Below a part of a code responsible for link generation. Why it is so? public class ActionLinkTarget if (hasComponentId) { builder.append(.); // Already lower case by design. builder.append(_componentNestedId); } // If no nested component id, then must append the action; the ':' and the action become the // delimiter between the page name and the event context. if (!hasComponentId || !_eventType.equals(TapestryConstants.ACTION_EVENT)) { builder.append(:); builder.append(_eventType); } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]