Contribute custom Messages for localization

2010-08-11 Thread Henrik Schlanbusch
Hi all We have a Message service that we used when our system was implemented in T4. The messages will request localized strings from file and override the string with values from the database if they have been overridden there. I cannot find anything in the T5 literature on how to provide custo

Re: Class reloading in custom component library

2010-06-04 Thread Henrik Schlanbusch
Inge Solvoll gmail.com> writes: > > I'm using file synch in eclipse to copy the newly compiled files to > webapp/WEB-INF/classes. If the class is found there, it overrides the one in > the jar. > > On Fri, Jun 4, 2010 at 7:56 AM, Nicolas Bouillon bouil.org> wrote: > > > I'm very interested t

Class reloading in custom component library

2010-06-03 Thread Henrik Schlanbusch
Hi I have setup a project in maven 2 where the lowest project (parent) has two sub modules, one with the webapp (tapestry 5) and one with a separate custom made component library. This means that I have three modules to build (parent, webapp and components). Webapp has a dependency to compon

Upgrade from T4 to T5.1

2009-05-11 Thread Henrik Schlanbusch
Hi all We have a rather big system that has been written in tapestry 4. We started out in tapestry 3 some years ago and during upgrade to T4 we spent quite a long time, which was very critical for our customers. But in the end, the upgrade was really worth it. Now we would like to upgrade to T5.1

Re: [T5] Access to page instance

2008-11-24 Thread Henrik Schlanbusch
Henrik Schlanbusch enovate.no> writes: > > Hi all > > Is it possible to get access to an instance > of a page without using the InjectPage > annotation? I know the logical name of the > page - the string "groupEditor", and would > like get an instance o

Re: Get instance of page

2008-11-24 Thread Henrik Schlanbusch
>Thiago H. de Paula Figueiredo > gmail.com> writes: > > Em Mon, 24 Nov 2008 18:43:37 -0300, >Henrik Schlanbusch enovate.no> > escreveu: > > > Is it possible in T5 to get hold >of page > > instances without using injected >properties, bu

Re: Get instance of page

2008-11-24 Thread Henrik Schlanbusch
Shing Hing Man yahoo.com> writes: > > Have you tried ComponentSource ? > >@Inject > private ComponentSource compSource; > > MyPage comp = (MyPage) compSource.getPage(pageName); > > Shing Shing, thanks man! This worked. I can now get instances of the pages through their id! Best reg

Get instance of page

2008-11-24 Thread Henrik Schlanbusch
Hi In tapestry 4 it was possible to get an instance of a page by using the cycle.getPage("somePageName"); Then it was possible to set properties on the page before activating it. I would like to do something like this in T5, it seems that the only way to get an instance of a page is by getting it

[T5] Access to page instance

2008-11-24 Thread Henrik Schlanbusch
Hi all Is it possible to get access to an instance of a page without using the InjectPage annotation? I know the logical name of the page - the string "groupEditor", and would like get an instance of the page, and run some getters on it. I have the logical names in a map, and do not have the opt

T4.1.6 problems with ajax - prototype

2008-11-13 Thread Henrik Schlanbusch
Hi and thanks for a good and extremely responsive group! I have a project where i use T4.1.6 in combination with prototype. I use the Ajax.updater to perform ajax operations. But When I use this, the rendering of pages gets extremely slow. Is there any reason for this? new Ajax.Updater( placeho

Re: Tapestry together with CXF

2008-11-10 Thread Henrik Schlanbusch
Thiago, thanks I found the solution with your help: public static void contributeIgnoredPathsFilter(Configuration configuration) { configuration.add("/services/.*"); } Best regards, Henrik - To unsubscribe, e-

Re: Tapestry together with CXF

2008-11-09 Thread Henrik Schlanbusch
> Just add this method to your AppModule: > > public static void > contributeIgnoredPathsFilter(UnorderedCollection configuration) { > configuration.add("/services/.*"); > } Thanks man! This seems to be the solution to my problem, but one more thing I cannot get the UnorderedCollection f

Tapestry together with CXF

2008-11-09 Thread Henrik Schlanbusch
Hi I have run into a problem. I have defined two servlets in my web.xml - one tapestry5 and one for apache CXF. I have defined them in a way that I should hit the CXF whenever I run /services/* and tapestry for all other urls. When I try to browse the wsdls on my server, I can see that the CXF

Re: Cannot access bean properties in tml file

2008-10-23 Thread Henrik Schlanbusch
Joachim, thanks man! That solved the problem Henrik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Cannot access bean properties in tml file

2008-10-23 Thread Henrik Schlanbusch
The group object is of course my own object. I do not understand why the maven project is returned. If I try to access the group in the java code System.out.println(getGroup().getClass().getName()); I get the correct classname. Henrik --

Re: Cannot access bean properties in tml file

2008-10-23 Thread Henrik Schlanbusch
I am even more puzzled. I tried to do this in the tml file: ${group.class.name} and the result in the html was: org.apache.maven.project.MavenProject I am using the jetty:run to start the project. Henrik - To unsubscribe, e

Cannot access bean properties in tml file

2008-10-22 Thread Henrik Schlanbusch
Hi I am using Tapestry 5.0.15 and have come over a strange problem that I cannot resolve. In my tml file i have this code ${currentGroup.name} - which should display "Root group" instead it displays: scy-useradmin-web Tapestry 5 Application The same goes for all other places where I try to pr

Re: cache on T4 page

2008-08-28 Thread Henrik Schlanbusch
michael lim yahoo.com> writes: > > in my pagevalidate method, i call db to retrieve information and print out on > page using @insert > > how do i cache it so that it will not hit the db so frequent ? any example? > > - > T

Re: [T4.1.5] problems with file service and IE

2008-05-08 Thread Henrik Schlanbusch
Thanks to your hints I finally found a way to identify the problem. The problem was that on the same page that I load the images, I also have a flash object, that loads sound files through the same service. I am not sure, but it seems like the calls for both the images and the soundfiles conflict w

Re: [T4.1.5] problems with file service and IE

2008-05-07 Thread Henrik Schlanbusch
Marcus Schulte googlemail.com> writes: > > output.close() ? > Marcus, thanks for the suggestion, but the same situation persists. Exactly the same error message from explorer. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

[T4.1.5] problems with file service and IE

2008-05-07 Thread Henrik Schlanbusch
Hi I have a major problem with my file service. It is a service that should stream files to the client. It works swell in firefox and opera, but behaves strangely in IE. An image may be opened ok first time (probably due to caching), then the second time (after hitting ctrl + F5) the image may be

Re: [T4.1.5] - Inherited annotations fail

2008-05-05 Thread Henrik Schlanbusch
Hi again... still no luck with this one. After an intense night debugging this, I have found that the bug appears consequently the *second* browser instance that hits the same page. The first request to the page runs fine, but the second time (with a new browser instance) will produce the exceptio

[T4.1.5] - Inherited annotations fail

2008-05-04 Thread Henrik Schlanbusch
Hi I see there has been a lot of activity on this before, and the issue seems to have been resolved, still I experience this problem in 4.1.3 and 4.1.5: Exception: Error: An error occured processing annotation @org.apache.tapestry.annotations.InjectState(value=bite-visit) of public abstract n

Re: [T4.1.3] Javascript is shown after login

2008-01-16 Thread Henrik Schlanbusch
Thanks Alejandro, this was indeed the problem. Best, Henrik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[T4.1.3] Javascript is shown after login

2008-01-16 Thread Henrik Schlanbusch
Hi again, I have a strange problem with my app. When I have logged in the first time, my Home page is not rendered, but instead I can see a javascript file core.js (loaded by the asset service). If I then press back (to the login form) and login again, I will get the Home page as expected, and I c

Re: [T4.1.3] problems with localisation and possibly Prototype

2008-01-16 Thread Henrik Schlanbusch
The problem was that we had the two following files: trans.properties (default locale) and trans_no.properties This always ended up with values from the first file. Then we renamed the files: trans_en.properties trans_no.properties and it worked, why - I do not know... -

[T4.1.3] problems with localisation and possibly Prototype

2008-01-15 Thread Henrik Schlanbusch
Hi I have to do some of the localisation work in the java code, and run this simple method: public String getLocalisedMessage (String key) { return getMessages().getMessage(key); } The method does only return strings in english locale. The only special thing with my pages is that

Re: [T4.1.3] Problems using ajax with Tapestry

2007-11-24 Thread Henrik Schlanbusch
Andy, thanks s much, that did the trick. I fixed the prototype.js file not to include the X-Prototype-Version in the header, and swsh the file appeared as it should. I cannot thank you enough Best wishes Henrik - To uns

Re: [T4.1.3] Problems using ajax with Tapestry

2007-11-24 Thread Henrik Schlanbusch
Andreas Andreou gmail.com> writes: > > But, what happens when you GET that url directly? Do you see anything > returned? Yes, I get the full page as I expect it to be loadede through the ajax call. I can even see - when I try to load through the AjaxUploader - that the page I want to load is

[T4.1.3] Problems using ajax with Tapestry

2007-11-24 Thread Henrik Schlanbusch
Hi I have problem with my ajax code. I try to run the code in my tapestry app, but when I read the results in firebug from my calls, I get an empty string "" from the tapestry servlet, when I indeed expect to see a well formed html page. I have tried to run the url that I call directly through th

T4.1.3 - Upgrade Dojo

2007-11-06 Thread Henrik Schlanbusch
Hi Is it possible to upgrade to Dojo 0.9 when using T4.1.3? And if it is possible, how do I do it? Regards, Henrik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: another tapestry 4.1.3 archetype

2007-11-05 Thread Henrik Schlanbusch
> > Uli - I would love to try this one out, but it seems that the link is dead. > Could you provide another one? Sorry, my fault. The dot in the end of the sentence containing the link was included in my link. The link is correct, but at least in thunderbird it is interpreted together with the d

Re: another tapestry 4.1.3 archetype

2007-11-05 Thread Henrik Schlanbusch
Ulrich Stärk spielviel.de> writes: > > Hi all, > > for the workshop I held with some students a month ago I created a maven archetype that uses > Tapestry, Hibernate and Spring. This one is very similar to the current tapestry-archetype but is > based on more recent Tapestry (4.1.3), Hibernat

Re: T4: Unable to update static binding

2007-11-05 Thread Henrik Schlanbusch
Jesse Kuhnert gmail.com> writes: > > We'd probably have to see more of your stack trace, but it looks like > someone is trying to update that parameter at some point. > > On Nov 5, 2007 6:17 AM, Henrik Schlanbusch enovate.no> wrote: > > Hi > > > >

T4: Unable to update static binding

2007-11-05 Thread Henrik Schlanbusch
Hi I am still in the process of upgrading from T3 to T4.1 which have taken quite a bite of time now. I encounter the following problem that I never had in 3.1: Unable to update OGNL expression '' of [EMAIL PROTECTED]/ $AjaxPlaceHolder] to satisfactoryPerformance: Binding with value satisfa

Cannot inject visit object

2007-10-17 Thread Henrik Schlanbusch
Hi I have a problem with injecting a "good old" visit object. I do the following: and in my BasePage i do the following: @InjectState("visit") public abstract BiteVisit getVisit(); As far as I can see, that should be all that is to it, but when I try to

Re: Build up applicationSpecification dynamically

2007-10-16 Thread Henrik Schlanbusch
> I have a problem. In my application that I am upgrading > from T3 to T4.1.3 > I need to build up the list of pages dynamically > on startup time. To clearify: I have specified all the pages file names and specification paths in different xml files (spring)- that reside in several modules. T

Build up applicationSpecification dynamically

2007-10-16 Thread Henrik Schlanbusch
Hi I have a problem. In my application that I am upgrading from T3 to T4.1.3 I need to build up the list of pages dynamically on startup time. This we managed without problems in T3 by subclassing the engine and accessing the IApplicationSpecification there and add pages like this: applicationSp