Re: T5.2 - Activation context for ajax requests

2011-01-14 Thread nille hammer
Hi LLTYK, you need a corresponding passivate Method in your page class for the "t:ac" to be appended to created links. Or use the annotation @PageActivationContext on your fields. Maybe that causes your problem. Regards nillehammer - original Nachricht Betreff: T5.2 - Activation

Re: Re: Tapestry 5.1.0.5 and HTML 5 Doctype

2011-01-14 Thread nille hammer
Hi Benny, put the following method into your class file: @SetupRender final void renderDocType(final MarkupWriter writer) { writer.getDocument().raw(""); } If you use a central Layout component, put it there. Otherwise put it into the page classes. I have tested this with Tap 5.2, but it s

Render informal parameters into element(s) of a component's template

2011-01-14 Thread nille hammer
Hi List, I have just stepped into the same problem as the original poster of this thread: http://tapestry.markmail.org/message/ma3wvd6rk4fm56hr?q=SupportsInformalParameters#query:SupportsInformalParameters+page:1+mid:3ma5dlzcmvjjyoit+state:results I found the solution described by Josh Canfiel

Re: Re: @SessionState Bug?

2011-01-06 Thread nille hammer
Hi Donny, If you think a bit further, assigning the value based on the type is the only sensible way to do it. If the value was assigned based on the variable name, you would have to use that exact variable name in every component and page you want to use your SessionState-Object. That is extre

Displaying a tree of entities with actionLink and Zone

2010-12-09 Thread nille hammer
Hi list, I've got an entity "Area" which can have child-Areas asf. I want to implement a component "AreaDisplay" that renders an actionLink for each area that shall update a zone with children. The tml is as follows: http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"; xmlns:p="tapestry:p

Re: Tapestry Web Site Updated

2010-11-19 Thread nille hammer
Hi Howard, just a minor error. On the index page (http://tapestry.apache.org/index.html) the paragraph "Tapestry is ... scalable" occurs twice with slightly different content. (Or was that on purpose? :-)) ) Thanks for the great work, nillehammer - original Nachricht Betreff: Tapest

Re: RE: RE: contribute mystery

2010-11-17 Thread nille hammer
p; Online Director > > Staufenbiel Institut GmbH > Events & Recruiting Solutions > > Wildunger Straße 6, 60487 Frankfurt am Main > www.staufenbiel.de www.mba-master.de www.absolventenkongress.de > > Tel.: +49 (0)69 25537-140 > Fax: +49 (0)69 25537-2140 > > Gesc

Re: Re: Re: setupRender not called for components

2010-11-17 Thread nille hammer
ender not called for components Gesendet: Mi, 17. Nov 2010 Von: Stephan Windmüller > On Wed, 17. Nov 2010, nille hammer wrote: > > > > | > > > | > > > | public boolean isSetupRender() { > > > | // Do stuff > > > | return false; > > &g

Re: Re: setupRender not called for components

2010-11-17 Thread nille hammer
Hi Stephan, > | > | > | public boolean isSetupRender() { > | // Do stuff > | return false; > | } I don't know whether this will solve your problem, but you don't need to put in an extra t:if to prevent your component from rendering. I suggest doing the checks in setupRender and return

Re: RE: contribute mystery

2010-11-15 Thread nille hammer
Hi Jens, just to make sure: > maybe I wasn't quite clear: on some startups my dispatcher is used (and than > is always used, which is what I want). On other startups (i.e. restarting > jetty/tomcat) the dispatcher is never used. Though log show, that it is > instantiated. But then it feels, as if

Re: Re: Re: XML requests

2010-11-15 Thread nille hammer
might be happy with POST-requests. That too would spare you from the problems described in my previous mail. In this case you would't be using the activation context but forms. Cheers nillehammer - original Nachricht Betreff: Re: Re: XML requests Gesendet: Mo, 15. Nov 2010

Re: Re: XML requests

2010-11-15 Thread nille hammer
Hi niksami, > Basically I need to receive XML as a parameter, for > example as a String in onActivate() method. I would not recommend to use this approach. And if you do it although, beware of some special characters in the XML that might be interpreted by Tapestry. E.g. an XML containing a "/"

Re: XML requests

2010-11-15 Thread nille hammer
Hello Niksa, > In my application I need to receive XML requests, and then to send the > response back to the client in XML format too. I tried to find some nice > solution here, but with no success. I hope you can give me some short code > examples. As far as I understand this is not supported ou

Re: Re: T5.2.2 Auto reloading of js-file for a mixin

2010-11-10 Thread nille hammer
Thiago you Brazilian Genius! > Are you using Windows? Hate to admit, yes. I have to use Windows, because it's a company Laptop. > If yes, read this: > http://docs.codehaus.org/display/JETTY/Files+locked+on+Windows. I have read that. I have copied the hole configuration for the default servlet

T5.2.2 Auto reloading of js-file for a mixin

2010-11-10 Thread nille hammer
Hi folks, I am starting to develop mixins. As a start I have implemented the Confirm-Mixin exactly as shown in the wiki: http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplained. Everything works as expected. Next I wanted to tweak the JavaScript a bit. But after saving the changes and

Re: Re: T5.2.2 IOC: Non public service implementations

2010-11-04 Thread nille hammer
Thanks for the answers. I understand that ServiceBinder (and all the stuff behind it) come from tapestry packages cannot invoke my package-private constructors. By now I code builder methods for all implementations. That works for me and is not too much more code than calling the bind() methods.

Re: Re: T5.2.2 IOC: Non public service implementations

2010-11-04 Thread nille hammer
ate > classes. There would be IllegalAccessExceptions. > > > On Thu, 4 Nov 2010 14:37:21 +0100 (MET), "nille hammer" > wrote: > > Hi List, > > > > long time no write. > > > > I have got used to defining a public interface for my services pair

T5.2.2 IOC: Non public service implementations

2010-11-04 Thread nille hammer
Hi List, long time no write. I have got used to defining a public interface for my services paired with a package-private implementation. Tapestry's autobinding with ServiceBinder complains about the implementations not being public. I do not want to make the implementations public. So I am af

Re: Re: [Announce] Tapestry Testify project - v1.0.0 released

2009-08-07 Thread nille hammer
Hi Guys, great news! > I am already wandering how I tested before without it!! Well in the end I did not automatically test my pages at all, just manually (please don't beat me! ;-) ). But I'm starting right now I promise! Regards, nillehammer == http://www.winfonet.eu - original Nachricht --

Re: Log remote IP address with MDC class?

2009-07-16 Thread nille hammer
Hi learning, use Tapestry's RequestGlobals service (http://tapestry.apache.org/tapestry5.1/apidocs/org/apache/tapestry5/services/RequestGlobals.html). It gives you access to the HttpServletRequest which inherits a method getRemoteAddr() from ServletRequest. You can inject RequestGlobals into y

Re: Re: T5 Page field persistance and multithread problems

2009-07-13 Thread nille hammer
Hi, This is NOT a thread issue, but behavoiour that one would expect with values persisted in the session. The requests coming all from within the same session store and fetch the (same) value in the sesion. Add this to the java file @PageAttached private void showPageInstance() { System.out

Re: How to set a meta header tag in template?

2009-07-11 Thread nille hammer
Hi learning, use the if-Component in conjunction with a parameter for your layout-component that controlls the rendering. Your layout.tml would contain your Layout.java would contain @Parameter @Property(write=false) private boolean cachingDisabled; And in the tml of the page us

Re: Re: ActionLink in bundle message

2009-07-10 Thread nille hammer
Hi Kai, instead of ActionLink use EventLink, if you can. The tml would look like: more more I´d use a more "eventish" name for the event. How about "detailClicked"? Regards, nillehammer == http://www.winfonet.eu - original Nachricht Betreff: Re: ActionLink in bundle message Gesende

Re: Referencing the context path in AppModule

2009-07-06 Thread nille hammer
Hi Peter, I presume that the error occurs, because in developent environment the file is accessible as file whilst in production it is packed into a jar. There are some other implementations for interface SymbolProvider, look here: http://tapestry.apache.org/tapestry5.1/apidocs/org/apache/tapes

Re: Re: T5 Module methods call

2009-06-29 Thread nille hammer
: T5 Module methods call Gesendet: Mo, 29. Jun 2009 Von: Thiago H. de Paula Figueiredo > Em Mon, 29 Jun 2009 16:15:51 -0300, nille hammer > escreveu: > > > Hi Haipeng, > > Hi everyone! > > >> but this one is not called: > >> public s

Re: T5 Module methods call

2009-06-29 Thread nille hammer
Hi Haipeng, > but this one is not called: > public static void contributeIgnoredPathsFilter(Configuration > configuration) > { > configuration.add("/dwr/.*"); > configuration.add("/scripts/.*"); > configuration.add("/logout"); > > } The contribution method is

Re: t5: text file and tomcat deployment

2009-06-29 Thread nille hammer
Hi Angelo, This is done in the pom.xml. The important tag is org.apache.maven.plugins maven-war-plugin WEB-INF/classes/log4j.properties true Regards, nillehammer == http://www.winfonet.eu - original Nachricht Betreff: t5: text file and tomcat deployme

Re: Validating nested loops with helper classes

2009-06-29 Thread nille hammer
Hi Stephan, > Of course a user should not be assigned twice > to a job. This sounds like a valid use case for a Set rather than a List. To achieve this implement a reasonable equals-Method for User and rewrite your Job-class/your helper Bean DisplayJob to return a Set. As implementation of Set us

Re: Re: Re: access component variable

2009-06-29 Thread nille hammer
Hi Cid, I have just been to the toilett and have thought about your question. Maybe you could nest component B in component A directly rather than in the page? Example follows: in page.tml ... ... in a.tml ... ... Would that be an option? Regards, nillehammer == http://www.winfonet.eu

Re: Re: access component variable

2009-06-29 Thread nille hammer
ry key) and some other > info from database and renders it... > another component needs this ID to query DB and render some other > information...other way is that it has to make unnecessary same query to > first get ID and then use it ! So what do you suggest ? > > > > >

Re: Override an IoC service

2009-06-29 Thread nille hammer
Hi Peter, Isn't this a question of disambiguation of Services either with ids or with t...@local annotation as described here: http://tapestry.apache.org/tapestry5.1/tapestry-ioc/service.html ? Or did I get lost somewhere? Regards, nillehammer == http://www.winfonet.eu - original Nachri

Re: access component variable

2009-06-28 Thread nille hammer
Hi Cid, You could use Tapestry's Envronment feature. Look here for documentation: http://tapestry.apache.org/tapestry5.1/guide/env.html Although I think you should design your components a bit differently, so that you don't need to do this. Maybe you could give us some more details on your spe

Re: gridtable with hashmap

2009-06-27 Thread nille hammer
Hi Gutemberg, Grid needs a collection as its source parameter. HashMap (i.e. the Map-Interface) is no collection itsself, but provides two methods to get the collections "Collection values()" or "Set> entrySet()". Use one of those as source for Grid. One sidenote, HashMap does not garantuee

Re: Difference between @Retain and static attributes?

2009-06-24 Thread nille hammer
Hi Kalle, > How does the page pool work - are less used pages removed from > the pool only when other pages push them out or is the cache cleared > periodically? Page pooling is done separately for each page (and localization of the page). I.e. If you have a Page MyPage for locale de and for en t

Re: Re: Re: [T5.1] @SessionState an generic pages

2009-06-23 Thread nille hammer
Hi Martin, thanks for the hint. > > protected Class getValueClass() > { > return (Class) ((ParameterizedType) > getClass().getGenericSuperclass()).getActualTypeArguments()[0]; > } > > > I use something similar in DAOs, idea came from here: > https://www.hibernate.org/328.html Similar to t

Re: Re: [T5.1] @SessionState an generic pages

2009-06-23 Thread nille hammer
Hi Thiago, > Hi Hammer! :) Friends call me nille. > Hey! That's my open source code being used by someone besides me! Nice. :D Just trying to learn from the masters ;-) > .Maybe the solution to what you want to do is to use > ApplicationStateManager directly. That's the trick! Thinking about y

Re: Best practice for CSS styling components

2009-06-22 Thread nille hammer
Hi Kai, I use a layout component for every of my pages (look here:http://tapestry.apache.org/tapestry5.1/guide/layout.html). So this seems to be a good place to include the stylesheet. I use a single file for my hole app. Regards, nillehammer == http://www.winfonet.eu - original Nachrich

[T5.1] @SessionState an generic pages

2009-06-22 Thread nille hammer
Hi List, in many of my pages I find myself doing similar things. I collect data with a form and store it in a SessionState field. Then i forward to a summary page. In onActivate of summary page check for existence of SessionState value whith boolean valueExists. If value exists I show the summa

Re: Primary key encoding for a Loop with form components

2009-06-19 Thread nille hammer
Hello Charles, according to PrimaryKeyEncoder's api-doc (http://tapestry.apache.org/tapestry5.1/apidocs/org/apache/tapestry5/PrimaryKeyEncoder.html) a ValueEncoder should be used. See docs here: http://tapestry.apache.org/tapestry5.1/apidocs/org/apache/tapestry5/ValueEncoder.html I myself have

Re: Re: best book for T5

2009-06-12 Thread nille hammer
Hi Igor, that is great news. Can't wait to get a copy of that. Be sure I will travel to Düsseldorf to have it signed by you ;-) Greetings from Darmstadt and have a nice weekend, nillehammer == http://www.winfonet.eu - original Nachricht Betreff: Re: best book for T5 Gesendet: Fr,

Re: How to show a Select component in a zone ?

2009-06-11 Thread nille hammer
Hi Thibaut, this is not an ajax problem. The important part of the error message is "The Select component must be enclosed by a Form component" t:select is a tapestry component that can only be located somewhere within t:form tags.Something similar to the following should work:

Re: Re: [T5.1] How to break the chain in MasterDispatcher

2009-06-04 Thread nille hammer
figuration.addInstance("PageRender", > PageRenderDispatcher.class); > } > > > I think you have to specify one more constraint to insert your > Dispatcher between the ComponentEvent and PageRender dispatcher. > > configuration.add("LoginDispatcher", loginDispatche

[T5.1] How to break the chain in MasterDispatcher

2009-06-04 Thread nille hammer
Hi List, I have implemented a LoginDispatcher like explained in the wiki (http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatcher). Then I contributed it to the MasterDispatcher's configuration with the following code: configuration.add("LoginDispatcher", loginDispatcher, "before:PageRe

Re: Re: [T5.1]Tweaking Tapestry.ElementEffect

2009-05-22 Thread nille hammer
tEffect Gesendet: Fr, 22. Mai 2009 Von: Igor Drobiazko > Take a look into this thread: > > http://www.nabble.com/How-do-I-remove-the-yellow-fade-that-occurs-when-updat > ing-the-Zone-component--tt23493373.html#a23493373 > > On Fri, May 22, 2009 at 8:26 AM, nille hammer > wrot

[T5.1]Tweaking Tapestry.ElementEffect

2009-05-21 Thread nille hammer
Hello List, I have made the step from serverside-only webapps to using ajax now. Doing this two questions came up. Of which the first one is: I have a t: zone with update="slideup" and show="slidedown". I'd like to tweak the duration of those two effects like with the original Scriptaculous eff

Re: Re: Apache Tapestry on Google Maps

2009-05-11 Thread nille hammer
Yeah, not very hard... I have implemented a Tapestry service for that purpose: HLSLocator.java - original Nachricht Betreff: Re: Apache Tapestry on Google Maps Gesendet: Mo, 11. Mai 2009 Von: Alex Shneyderman > Howard, do you seriously think it is hard to locate you? He, he ... >

Re: Re: A document must have exactly one root element exception on 5.1.0.2 upgrade.

2009-04-15 Thread nille hammer
Hi zack, "Caused by: org.apache.tapestry5.ioc.internal.util.TapestryException: A document must have exactly one root element. Element is already the root element. [at classpath:com/inavero/pulse/pages/report/Edit.tml, line 78]" Search Edit.tml and )if existent) UnitTree.tml. I am pretty sure you

Re: [REQUEST] Live T5 web sites, quotes, marketting

2009-04-15 Thread nille hammer
Hi Howard, maybe to small to be mentioned, but www.salsadeli.de is running with T5.0.18. I have developed it all by myself. What I find most impressive about T5 is the clean code one produces. Compare the amount and style of code needed to do a simple form in Struts or JSF to that needed in T5

Re: component specific action event

2009-03-25 Thread nille hammer
Hi Reinhold, either delete the context-Attribute in your template or provide an event handler with a parameter holding the context-value (e.g. public void onActionFromSampleLink(final int value) ). It is just a guess, but I am pretty sure that tapestry is confused by the fact that you provide a

Re: Palette and translators

2009-03-20 Thread nille hammer
Hi Alfie, I think you must provie Palette with a SelectModel, OptionModel and ValueEncoder for the objects to display. See page on the wiki: http://wiki.apache.org/tapestry/Tapestry5AnotherSelectWithObjects Hope this helps, nillehammer - original Nachricht Betreff: Palette and t

Re: Re: q: passwordField ?

2009-02-27 Thread nille hammer
Hi dwi, you do not need the password to be output to implement that feature. In fact it is very insecure and uncommon to implement something like "Your current passoword is: xxx" . This would mean you had to store the password in clear text. This as Thiago already pointed out is insecure. Thin

Re: More than one submit button in one form.

2009-02-27 Thread nille hammer
Hi Dante, the convention for naming of handle methods of submit events is "onSelectedFrom". Rewrite your code as follows and it shuld work. The annotaded way should work too, although I have never used it myself. public class Start{ void onSelectedFromBtnA(){ // this should work } void onSelect

Re: Re: Hibernate ID

2009-02-10 Thread nille hammer
Hi Ulli, a primary key being null (the field in the object not the value in the db-table) occurs, when an entity is created in the app-tier and not yet stored to the database. That is one way (and afaik the most common) for the OR-mapper to know that the entity is new and has to "ask" for a valu

Re: JavaLobby Web Framework Comparison

2009-01-19 Thread nille hammer
Hi Howard, if none of your co-committers can spare time, I will be happy to jump in for T5. Cheers, nillehammer - original Nachricht Betreff: JavaLobby Web Framework Comparison Gesendet: Mo, 19. Jan 2009 Von: Howard Lewis Ship > JavaLobby is looking to create a comprehensive web fra

Re: PageLinkTarget, where did it go?

2008-12-16 Thread nille hammer
Hi Mark, first I have to admit I am not familliar with Tapestry´s testing mechanisms so this information is based on browsing through the javadocs rather than experience. I think this is the class you are looking for: http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/internal/ser

Re: loop in a TreeMap

2008-06-26 Thread nille hammer
Hi Antonio, you cannot iterate over a Map as it does not implement Collection. Try the Map´s methods .values() or .entrySet() and iterate over their return values. For further information look here: http://java.sun.com/javase/6/docs/api/java/util/Map.html Regards nillehammer - original N

Re: [T5] Grid paging refresh the whole document , can it be done in AJAX-way ?

2008-06-25 Thread nille hammer
Hi CG, the inPlace attribute of the t:grid tag does what you are asking for. For further infos look here: http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Grid.html Cheers nillehammer - original Nachricht Betreff: [T5] Grid paging re

Igor´s and Renat´s Presentation of Tapestry 5 yesterday evening in Düsseldorf

2008-06-25 Thread nille hammer
Hi all, I wanted to know whether anyone else from this list had the opportunity to be in Düsseldorf yesterday. Igor and Renat did a really good job showing how quickly and easily you get an application running with Tapestry 5. They have been given a hard time by the audience asking loads of

Re: Re: What if "Page" was removed from page names?

2008-06-25 Thread nille hammer
Hi list, to answer Howard´s question, yes I would like that feature. Exactly as described. At the moment I prefix my page class names with the package name. I am not happy with that. I´d prefer to suffix them with "Page". And my opinion to the discussion whether generation of urls should be c

Re: Tapestry 5.0.11 - Selecting elements causes Exception in ValueEncoderSource

2008-06-13 Thread nille hammer
Hello Tommy, rewrite to If you explicitly name a model (t:model="option"), it has to be an implementation of org.apache.tapestry.SelectModel. Your Enum "Option" apparently is not an implementation of that. That causes the exception I think. For Enums it is not necessary to explicitly name a

Re: Re: T5 t:renderObject and pageLink won't render link just text instead

2008-06-12 Thread nille hammer
Hi Konstanin, I don´t think Filips post was irony. It really is simple. Anyway answering your question: Simply returning a component from a getter (in your case a Link from getMyDynaObject) won´t cause tapestry to render it. For a component to be rendered you have to place it somewhere in the

Re: Antwort: Re: T5 checkbox component and validation

2008-06-11 Thread nille hammer
Hi Guys, "validate=required" on a checkbox does not make sense to me. A chekbox can either be unchecked (resulting in false) or checked (resulting in true). I.e. the validation "required" can never fail. Could it be you are talking about t:radio and t:radiogroup ? Regards nillehammer - or

Re: Tapestry 5 server side validation

2008-06-06 Thread nille hammer
Hi ice, > public Object onSubmit() > { > return Start.class; > } Rename the method to onSuccess(). That should solve the problem. Regards, nillehammer - original Nachricht Betreff: Tapestry 5 server side validation Gesendet: Do, 05. Jun 2008 Von: ice96<[EMAIL PROTECTED]> >

Re: ANN: Tapestry 5 Talk

2008-06-04 Thread nille hammer
Hi Igor, I am going to be there. I do not exactly live near Düsseldorf (actually near Frankfurt), but meeting some fellows of the mail list in real life is definately worth a travel. I have looked at the rheinjug.de Website. No registration needed? Just come and listen? Is that right? Lookin

Re: when do the environmental object (like validationtracker) become available?

2008-06-03 Thread nille hammer
Hi Joachim, a ValidationTracker ist pushed into the environment by the tapestry Form component during its beginRender()-method and popped from it during cleanupRender(). I don´t think, there is a ValidationTracker available in the environment for pages that do not contain forms (or you might ha

Re: Maven problems

2008-05-28 Thread nille hammer
Hi Robin, could Maven's access to the internet be interupted (e.g. no/wrong proxy, no access to internet at all, network problems, firewall...)? That really is a short output and I once got sth. similar when I had no acces to the internet and so Maven could not download the libs. Greetz nille

Re: how to capture the submit event which occured from a input type=image

2008-05-28 Thread nille hammer
Hi Lakshitha, the event handler Methods for Submit-Buttons end with "ed". See this for an example (http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry/corelib/components/Submit.html) rename your methods to: onSelectedFromUpload() onSelectedFromNext() That should fix it.

use final for BeanModel fields

2008-05-28 Thread nille hammer
Hi Guys, just a little side note on Filip´s suggesion. Instead of initializing the BeanModel in onActivate() you could do this: private final BeanModel model; { model = beanModelSource.create(User.class, false, componentResources); model.get("username").sortable(false); } Mind the final. T

Re: RE: T5: Components initialising derived variables for action requests?

2008-05-27 Thread nille hammer
Hi Andrew, if I got you right, Component hands over a parameter grouper to Sub-Component although grouper actually is null. This seems a bit smelly. Perhaps you should rethink your concept (no offense meant :-) ). But anyway, maybe Tapestry's Environment service could solve your problem. That

Re: T5 - integrating with a RIA

2008-05-25 Thread nille hammer
Hi Topby, @Inject private ComponentResources resources; and then resources.getPageName(); should do the trick. Good night, nillehammer - original Nachricht Betreff: T5 - integrating with a RIA Gesendet: Mo, 26. Mai 2008 Von: Toby Hobson<[EMAIL PROTECTED]> > I'm trying to integr

Re: EventLink and context from page

2008-05-16 Thread nille hammer
Hi Tomasz, if I have understood your problem right, what you are facing is caused, because you use EventLink. EventLink implements the redirect-Pattern. That means a request is not responded directly with the result page but with a redirect to that page. Use PageLink instead. That sends the re

Re: Re: Index page and trailing slash

2008-05-15 Thread nille hammer
Hi guys, I had a similar problem with relative urls. I have added a line to the method contributeApplicationDefaults in the AppModule class. The line is: configuration.add(TapestryConstants.FORCE_ABSOLUTE_URIS_YSMBOL, "true"); After that tapestry is not generating relative urls any more. Hope t

Re: T5: unable to resolve 'Layout' (see Article: Tapestry for Nonbelievers)

2008-05-15 Thread nille hammer
Hi Juliane, templates and classes for pages or components have to be in the same package. Secondly, pages (i.e. Start) must go to the pages subpackage whilst components (i.e. Layout) must go to the components subpackage. The resulting package structure for your example would be: de...pages.Sta

What ist the advantage of ActionLink compared to EventLink

2008-05-13 Thread nille hammer
Hi all, using an ActionLink one has to assign an id. By this id the event hander is determined. So far so easy. But having assigned an id, a particular ActionLink can only be used once per template. With EventLink one can assign an event attribute and can put several links into a template poi

Re: T5 Blank option for select component

2008-05-13 Thread nille hammer
Hi Toby, the correct attribute is t:blankLabel, not t:blankValue. And I recommend you use a message from a message catalog, except a literal String. Regards nillehammer - original Nachricht Betreff: T5 Blank option for select component Gesendet: Mo, 12. Mai 2008 Von: Toby Hobson

[T5] Sending Email from Tapestry

2008-04-20 Thread nille hammer
Hi Michael, I´ve tried the ServiceStatus. It is very interesting. Thank you for the hint. Hi Peter, yea a MessageSource would be cleaner than what I did. I will try to come to that later. I have an impatient customer and have to get the application running. In case I have something, I´ll keep

Re: Re: [T5] Sending Email from Tapestry

2008-04-19 Thread nille hammer
Hi Michael, I have tried your suggestion. In my environment (5.0.11) it does not work. Even with explicit id "Messages" provided, the ioc-container throws a RuntimeException complaining that Messages is not a defined service. You must have done sth. else to make your suggestion work in your en

Re: Re: Re: Re: [T5] Sending Email from Tapestry

2008-04-18 Thread nille hammer
> > Betreff: Re: Re: [T5] Sending Email from Tapestry > Gesendet: Fr, 18. Apr 2008 > Von: Thiago HP<[EMAIL PROTECTED]> > > > On 4/18/08, nille hammer <[EMAIL PROTECTED]> wrote: > > > > > Hi Thiago, > > > > Hi, Nille! > &

Re: Re: Re: [T5] Sending Email from Tapestry

2008-04-18 Thread nille hammer
n 4/18/08, nille hammer <[EMAIL PROTECTED]> wrote: > > > Hi Thiago, > > Hi, Nille! > > > thanks for the advice that makes perfect sense! What is left is my first > question, where does Tapestry how to choose the right message catalogue? If > I injected the Con

Re: Re: [T5] Sending Email from Tapestry

2008-04-18 Thread nille hammer
localized messages into BookingSummary.properties? Thanks and regards, nillehammer - original Nachricht Betreff: Re: [T5] Sending Email from Tapestry Gesendet: Fr, 18. Apr 2008 Von: Thiago HP<[EMAIL PROTECTED]> > On 4/18/08, nille hammer <[EMAIL PROTECTED]> wro

[T5] Sending Email from Tapestry

2008-04-18 Thread nille hammer
Dear List, I am currently buidling an ordinary booking application. When a customer books something I collect everything in a Booking object. I display the data in a page BookingSummary, which contains a link "confirm booking". When booking is confirmed I want to create a confirmation email t

Re: EventLink taking optional page

2008-04-18 Thread nille hammer
Hi Fernando, Why should it? Couldn´t you return the desired page from the event handler method? greetz nillehammer - original Nachricht Betreff: EventLink taking optional page Gesendet: Fr, 18. Apr 2008 Von: Fernando Padilla<[EMAIL PROTECTED]> > Does anyone else want a patch to

Re: Re: Grid component and context values - TapestryException

2008-04-18 Thread nille hammer
Hi Petros, the problem is caused by the expression context="{account?.accountManager?.username}". With "?." you tell Tapestry: "The value might be null, please check before calling the Method." As null values aren´t allowed in context, you must not tell Tapestry that your values might be null.

Re: Re: T5 : session timeout

2008-04-10 Thread nille hammer
etreff: Re: T5 : session timeout Gesendet: Do, 10. Apr 2008 Von: Peter Stavrinides<[EMAIL PROTECTED]> > > Hello Nille > > I think you are confused here, the check we are referring to is for a > data object within an ASO and not for the ASO. > > > nille hammer wr

Re: Re: T5 : session timeout

2008-04-10 Thread nille hammer
Hello Peter, hello Stephane, according to Tapestry manual (http://tapestry.apache.org/tapestry5/tapestry-core/guide/appstate.html) the preferred way to check for ASO existence is to provide a boolean variable with the name of the ASO field suffixed Exists alongside with your ASO-variable (e.g

Re: Re: T5 : Event bubbling

2008-04-10 Thread nille hammer
Salut Stephane, in case it does not matter that a particular instance of a Page is returned (and thanks to @Persist and @ApplicationState this seldomly is), I use to return the class Object of the page (e.g. MyPage.class) rather than "this". If I got the manual right, this leaves the decision,

Re: T5 property file for enum

2008-04-10 Thread nille hammer
Hello Michael, there is an application wide properties file which is accessable by every page and component within your application. It is located in WEB-INF/.properties. depends on the filter name you have chosen for the tapestry filter. As one usually does not change that, this would be pe

Re: T5: Add parameter to Grid cell elementLink to this message

2008-04-09 Thread nille hammer
Moin Moritz, ich könnt ja in Deutsch antworten, aber dann sind die anderen vielleicht böse. Hello Moritz, funny to comunicate with a fellow German in English, but I think it´ s better to stick to common ground. There is a quite easy way to accomplish, what you want. The Grid component uses a com

Re: T5: Base class java.text.Format (super class of my.package.MyFormat) is not in a controlled package

2008-04-08 Thread nille hammer
Hi Jack, >> my.package.tapestry.pages.util.MyFormat Putting a none page class into the page package is a bad idea! Only Page classes should go into the pages package. If you just need a custom Format move it to some other package (excluding pages, components, base and services). If you want to