Re: [T5.1] How To Send HTTP Error as Response?

2010-02-11 Thread Harald Geritzer
i use it this way: example usage: public Object onActivate(Object[] parameters) { ... if (anything) return new HttpStatusCode(HttpServletResponse.SC_NOT_FOUND); } in your services module: = public static void contributeComponentEventRe

Re: Ajax fileupload

2009-10-19 Thread Harald Geritzer
interesting question...has anybody been successful including/using some flash upload component with tapestry 5? Toby Hobson schrieb: Tapestry's file upload component is not ajax based. Actually GMAIL's file upload uses flash, not ajax because ajax does not work with multipart form data Toby

Re: T5: Include Google Analytics Code

2009-07-28 Thread Harald Geritzer
hello, i wrote some custom component for one of my projects. it's included just before the closing body tag. ... GoogleTracker.java == public class GoogleTracker { @Paramter private String trackerId;

Re: t5: appending a query string to a page name?

2009-05-01 Thread Harald Geritzer
you could inject the mysearchresults page: @Inject private MySearchResults mySearchResults; Object onSuccessFromMySearchForm() { mySearchResults.setPropertyXXX('12345'); return mySearchResults; } Angelo Chen schrieb: Hi, following code redirects to a results page under mysear

Re: [T5] Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String

2009-04-22 Thread Harald Geritzer
sorry, sent too fast... i am using trails conversations for persistance - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

[T5] Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String

2009-04-22 Thread Harald Geritzer
any idea how to trace that error back...seems it occurs in restoreStateBeforePageAttach but what does that procedure do? i am using trails ty, harald Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String at rd.wtp.portal.base.BlockWizard.resto

Re: Good Cheap Java Web Hosting Solutions

2009-03-28 Thread Harald Geritzer
Peter Kanze schrieb: Hi Otho, What company are you talking about? And are there also companies located in Europe? for example: http://www.hetzner.de/hosting/produktmatrix/rootserver-produktmatrix/ - To unsubscribe, e-mail: u

[T5 5.0.18] java.lang.IllegalStateException: Cannot create a session after the response has been committed

2009-03-06 Thread Harald Geritzer
hi all, the following code causes IllegalStateExceptions on tomcat 6 while using jetty it works without errors. any idea? public URL onActionFromLinkLogoff() { User user = userDao.load(getVisit().getUserId()); auditDao.audit(AuditType.LOGOFF, user);

Re: How Can I not hardcode value in contributeApplicationDefaults method.

2009-01-28 Thread Harald Geritzer
you can put them into your web.xml file: http://java.sun.com/dtd/web-app_2_3.dtd";> MyApp tapestry.supported-locales de .. bongosdude schrieb: hardcoded value in AppModule.contributeApplicationDefaults method is not a best practice. class AppModule { ..

Re: Mapping Bean For View Layout

2009-01-14 Thread Harald Geritzer
public class Teste { private BeanTeste bt; public Teste () { this.bt = new BeanTeste(); } getBt(); { .. } setBt(BeanTest bt) { .. } } you can use the value property: --

Re: [t5] onEvent mixin failure since 5.0.17 - wrong response sent back to server

2008-12-01 Thread Harald Geritzer
Sven Homburg schrieb: changes submitted into trunk thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [t5] onEvent mixin failure since 5.0.17 - wrong response sent back to server

2008-12-01 Thread Harald Geritzer
seems t5components/onEvent changed its behaviour and always sends back the field's value as repsonse. is there a way to get the old behaviour back? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

[t5] onEvent mixin failure since 5.0.17 - wrong response sent back to server

2008-12-01 Thread Harald Geritzer
hi all, i am using the onEvent mixing but since 5.0.17 my code does not seem to work any more. though the event response should be "cost1|cost2" tapestry seems to ignore my textstreamresponse and firebug reports that the response is the value of the selectbox itself (post: value750, respo

Re: run-jetty-run eclipse plugin issue

2008-11-13 Thread Harald Geritzer
Petros Petrou schrieb: No because EndOfRequestListenerHub is not my class but Tapestry 5.0.15. I prefer to treat T5 as a black box? We have other T5 projects similar to this and we do not see this issue which is why I am wondering if anyone else has seen this. sorry, my fault..didnt realize i

Re: run-jetty-run eclipse plugin issue

2008-11-12 Thread Harald Geritzer
org.apache.tapestry5.internal.services.EndOfRequestListenerHub (implementation of service 'EndOfRequestListenerHub') does not contain any public constructors. did you check your EndOfRequestListenerHubImpl class if there is a public accessable constructor? --

[T5] chenilekit or t5components

2008-11-03 Thread Harald Geritzer
hi all, which of those two libraries will be maintained in future? harald - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to set response encoding?

2008-09-28 Thread Harald Geritzer
Unfortunately this settings will affect the whole application. I wonder if there's a way to set charset only for specific pages. @Meta(value = {"tapestry.response-content-type=text/html", "tapestry.response-encoding=GBK"}) public class MyPage { ... } ---

Re: [T5] Submit does not fire selected event when using disabled property

2008-09-27 Thread Harald Geritzer
sorry, seems to be my fault. i just did not know that first the form submission is processed and afterwards setupRender ist called. i had some intializing logic in my setupRender function which is needed for calculating the submit's disabled state. harald

[T5] XHtml approach renders a lot of tags

2008-09-27 Thread Harald Geritzer
when following the xhtml approach from the howtos (http://wiki.apache.org/tapestry/Tapestry5HowToXhtml) tapestry renders a lot of cascaded tags in my resulting page. any ideas why? am i missing anything? ty harald - To unsub

[T5] Submit does not fire selected event when using disabled property

2008-09-27 Thread Harald Geritzer
hi all, im am having some sort of wizard with previous and next submits, which i want to disable depending on the actual step. the strange thing is, if one of the submits has the property disabled set to false it submits the form but does not fire the "selected" event. anybody else discovere

Re: T5: cache image created by StreamResponse?

2008-07-18 Thread Harald Geritzer
So what do you mean by letting the page to render the image? Do you mean that every page will have the two functions above?? And what the poster component needs to do then?? instead of having a component providing the image you could have a page: public class Preview { public

Re: Routing and REST

2008-07-10 Thread Harald Geritzer
1) We map the webapp to the root ("/") context. 2) We use a normal Webapp Filter to pull out the first directory path from the url and make that the new context (request.getContextPath().. etc etc ), and capture that to determine which sports team we're going to be serving up. hi fernando,

Re: [T5] PageLink context rendering

2008-07-03 Thread Harald Geritzer
Try context="reportLinkContext">Bericht thanks a lot - worked, my fault - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[T5] PageLink context rendering

2008-07-03 Thread Harald Geritzer
hi all, i have a pagelink im my page with two context variables. i would have expected, the link would render some sort of .../pagename/contextvar1/contextvar2 so i could user the values in my onActivate(Object[] context) but renders .../pagename/[contextvar1, contextvar2] any ideas? haral

[T5] multiple applications sharing one registry

2008-06-17 Thread Harald Geritzer
hi all, i wonder, if this is possible. i am working on some sort of portal-application which should be able to host different subportals. each portal should have its own startpage but i would like to have one shared tapestry registry. any ideas? ty harald ---

Re: T5.0.13: form problem

2008-06-11 Thread Harald Geritzer
java.lang.ClassNotFoundException: caught an exception while obtaining a class file for org.apache.tapestry5.corelib.components.Form. if its the slf4j logger, which isn't found and you're using jetty try to put a file called "jetty-web.xml" into your WEB-INF folder. jetty-web.xml: =

Re: T5: setupRender (named by convention) not called correctly in hierarchical base classes

2008-05-10 Thread Harald Geritzer
Bill Holloway schrieb: I have two abstract component base classes A and B in the base package. B inherits from A. I have methods literally named "setupRender" in both. I notice that B's setupRender is called but not A's. *However*, if I rename A's setupRender() to some other name and annotate

Re: [T5] Javascript links rendered on bottom of page?

2008-04-24 Thread Harald Geritzer
efore in afterRender() and is not used again after the replacement. harald Chris Lewis schrieb: Harald, Can I convince you to file an issue, if that is an issue? http://code.google.com/p/tapestry5-components/issues/list If you can, provide an example situation that would cause a problem. than

Re: [T5] Javascript links rendered on bottom of page?

2008-04-24 Thread Harald Geritzer
Chris Lewis schrieb: Hi Harald, tapestry5-components has an editor component (which uses fck): http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/components/Editor.html ty, guess in writeScript(): _value = _value.replace('\r', '\\'); //this is needed for j

[T5] Javascript links rendered on bottom of page?

2008-04-24 Thread Harald Geritzer
hi all, is there a special reason for rendering the javascript includes on bottom of the page in latest 5.0.12 snapshot? i got a fckeditor on my page and it seems like my editor field wants to initialize the FCKeditor before the script ist even loaded? any hints welcome, harald var edit

Re: [T5] Upload progress, grid sorting

2008-03-26 Thread Harald Geritzer
Finally i implemented my own sortmodel in my gridpage class which is rather a clone of the grid's DefaultGridSortModel. I think, the event where the initial sort should be set is the pageLoaded event...but at that point of time, the grids sortmodel isnt initialized yet and a NPE is thrown. Pr

Re: [T5] Upload progress, grid sorting

2008-03-26 Thread Harald Geritzer
See thanks, but the wiki seems to be outdated. since the sorting changed with 5.0.11 by introducing sortmodels updateSort does not exist anymore. i even tried to setting the sortmodels sortc

[T5] Upload progress, grid sorting

2008-03-25 Thread Harald Geritzer
hi all, is there a way to extend the tapestry 5 upload component for some sort of ajax progress. seems that commons fileupload allows to hook in a ProgressListener for ServletFileUpload. My second question is, how can i set the initial sortorder for a grid in tapestry 5.0.11? thank you for

[T5] How to set initial sortorder in grid

2008-03-18 Thread Harald Geritzer
hi all, whats the best practice to set the initial sortorder for a grid. in 5.0.11 i set it in my pageLoaded method by grid.getSortModel().getSortContraints().add(new SortConstraint(gridModel.getById(property), columnSort)); but it seems like anything has changed in 5.0.12 and a NullPointer

Re: T5: Please wait before I show you next page

2008-03-13 Thread Harald Geritzer
Angelo Chen schrieb: Hi Kris, mixin is interesting, is there a simple sample that I can learn from ? thanks. if you assign that mixing to a submit component, on click the javascript function showProgressIndicator is called. the only drawback is, if you do client side validation and there is

[T5] Update a zone by a select's onChange event

2008-03-12 Thread Harald Geritzer
it seems, that zones are updated by action links or even links. is it possible to update a zone if the value of a select changes? ty - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

Re: T5 Localized Select

2008-02-10 Thread Harald Geritzer
Olivier Jacquet schrieb: Yes, I figured out that much by now (I'm not that experienced with Java). Yet, I think it is a feasable use case that you would want access to a message catalog in an OptionModel, no? well, guess you could write your own SelectModel, create it in your page and pass th

Re: T5 Localized Select

2008-02-10 Thread Harald Geritzer
Now, when you @Inject the messages in the OptionModel it is null when you try to access it in getLabel() and I was wondering if that is intended? Now I have to pass the catalog from my wrapper component (SelectCountry) with its own catalog to my SelectModel which passes it down to the OptionModel.

Re: T5: BeanEditForm and accept-charset

2008-01-29 Thread Harald Geritzer
Now I have a lot of beans and I want to make use of BeanEditForm to edit these. In the documentation I couldn't fint any hints on how to set the accept-charset attribute. Where do I have to look? had that problem too...after setting a @Meta annotation in the according page classes it worked.

Re: T5 ExceptionReporter

2008-01-28 Thread Harald Geritzer
from the nightly docs at http://tapestry.formos.com/nightly/tapestry5/tapestry-core/ Tapestry now differentiates between development mode and production mode, primarily in how it reports runtime exceptions. It defaults to production mode. guess there must be a switch for this... cheers hara

Custom ValidationDecorator

2008-01-14 Thread Harald Geritzer
hi all, is there a way to find out, which validators are assigned to a field. I'd like to write a custom ValidationDecorator decorating all fields containing a required validator. ty - To unsubscribe, e-mail: [EMAIL PROTECTED

Injecting LibraryMapping to "core"

2008-01-14 Thread Harald Geritzer
hi all, i am building a webapp consisting of serveral plugins each having a set of pages which should be injected into the "core" of the webapp. e.g webapp context: /testapp plugin1 : /testapp/pluginpage1 /testapp/subdir/page1 plugin2 : /testapp/pluginpage2 i fou