favicon
Hi, i have set a browser favicon, and masked forwards of several domains pointing to my server. But not all forwards are showing the favicons. Any ideas why? e.g www.domain1.com shows the favicon www.domain2.com does not. thx, alex -- View this message in context: http://tapestry.1045711.n5.nabble.com/favicon-tp5687569.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: TypeCoercer..? Example.?
sommeralex wrote Hi! I was upgrading vom Tapestry 2.6 to 3.0 and have one issue: if(encoder == null){ encoder = new EnumValueEncoderE(enumType); } return encoder; the EnumValueEncoder does not exist anymore as a contructor with one parameter. Now, I need a TypeCoercer as the first paramter, but have no idea for what. TypeCoercer is a service so just @Inject it. Documentation can be found at http://tapestry.apache.org/typecoercer-service.html sommeralex wrote There are no examples. This is really one thing which demotivates me using tapestry. Rather than bringing easy examples, new methods occur quickly. There are many examples of different use cases at JumpStart: http://jumpstart.doublenegative.com.au/home.html -- View this message in context: http://tapestry.1045711.n5.nabble.com/TypeCoercer-Example-tp5687042p5687584.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: favicon
sommeralex wrote i have set a browser favicon, and masked forwards of several domains pointing to my server. But not all forwards are showing the favicons. Any ideas why? e.g www.domain1.com shows the favicon www.domain2.com does not. I guess you have some misconfiguration in your web server (whatever your're using) - I guess that's no Tapestry problem. More info on how favicons work at https://en.wikipedia.org/wiki/Favicon. -- View this message in context: http://tapestry.1045711.n5.nabble.com/favicon-tp5687569p5687586.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
getting the object in a row from a grid component
Hello. I'm trying to get an object from a row grid component. The object is a very complex object that has not an id or a DAO to deal with. t:grid source=results row=member add=operation p:operationCell t:actionlink t:id=view context=memberView/t:actionlink /p:operationCell /t:grid public class Index { @Property private EntityB _member; public List getResults(){...} public Object onActionFromView(EntityB obj){} } In all examples I've seen, the context parameter in the grid is used with the id of the object, so that you can recover the full object afterwards. However, in my situation, we cannot use this approach. What are the alternatives to get the full object in the grid?. Any idea will be welcomed. Thank you in advance -- View this message in context: http://tapestry.1045711.n5.nabble.com/getting-the-object-in-a-row-from-a-grid-component-tp5687588.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: favicon
thx. i also think that it is not a tapestry problem - but i thought that there are some typical issues everybody has to cope with or handle - but easily forgets. -- View this message in context: http://tapestry.1045711.n5.nabble.com/favicon-tp5687569p5687617.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: TypeCoercer..? Example.?
thank you! Injecting the service helped. BUT: at http://tapestry.apache.org/typecoercer-service.html there is nothing about @Inject TypeCoercer typeCoercer; So, is this information implicit? Sure, now, if i KNOW that all blbla-service.html are able to be injected by @Inject blabla - yes. But i think it would be not too much work just to add this comment for every service. At least, me as a newbee. anyway, thank you for helping me on a saturday ;-) -- View this message in context: http://tapestry.1045711.n5.nabble.com/TypeCoercer-Example-tp5687042p5687650.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Retrieving and displaying the current locale
Thanks a lot! It works. :-) 2012/5/4 derkoe tapestry.christian.koeb...@gmail.com Julien Martin wrote Hello, What is the best way to retrieve and display the currently used locale's language on a page with tapestry? Thanks in advance, Julien. In your page class: @Property(write=false) @Inject Locale locale; In your tml: Current language is: ${locale.language} -- View this message in context: http://tapestry.1045711.n5.nabble.com/Retrieving-and-displaying-the-current-locale-tp5686219p5686573.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Best place to initialize form data
Yep, second Geoff. That is what I am doing - using onPrepareForRender(). Say specialized form is EditPerson.tml form t:type=Form t:id=person t:errors / [various form elements] /form /html In the corresponding EditPerson.java, this what I have: /** * Enables reuse of Edit as Create */ void onPrepareForRender() { if (this.person == null) { this.person = new Person(); // Person with defaults - populates the form } else { // nothing to do - form will pick up persisted person object } } I am posting because this probably most directly addresses your question - initialize with default values(?) Not sure if it is the most correct or elegant or what the side effects are - good or bad. One being that the person object needs to be persisted in the Session (for submit to work). Whereas using the beaneditor co, you just need to use activationContext and the person is initialized by just the Id. Thoughts? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Best-place-to-initialize-form-data-tp5685603p5688725.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: getting the object in a row from a grid component
Perhaps - persist the list (results) in your session? You could probably, then, use Id in the grid -- View this message in context: http://tapestry.1045711.n5.nabble.com/getting-the-object-in-a-row-from-a-grid-component-tp5687588p5688732.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: getting the object in a row from a grid component
That sounds dodgey - if the list size is 100k something is sure to break under load. Have a look at a ValueEncoder to translate between the client side and server side objects. It sounds similar to what one would do when they want to set an option for a select component. On 06/05/2012, at 1:05 PM, netdawg wrote: Perhaps - persist the list (results) in your session? You could probably, then, use Id in the grid -- View this message in context: http://tapestry.1045711.n5.nabble.com/getting-the-object-in-a-row-from-a-grid-component-tp5687588p5688732.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: getting the object in a row from a grid component
This? http://tapestry.apache.org/using-select-with-a-list.html -- View this message in context: http://tapestry.1045711.n5.nabble.com/getting-the-object-in-a-row-from-a-grid-component-tp5687588p5688802.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Best place to initialize form data
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 That is a great link, thanks for pointing it out. Is there also a page with the same information for AJAX calls? It is mentioned but I could not find it. PS: What's the 'relative assets pitfall'? Am 05.05.2012 04:59, schrieb Geoff Callender: Just triple-checked the What Is Called And When page and it is correct. http://jumpstart.doublenegative.com.au/jumpstart/examples/navigation/whatiscalledandwhen On 05/05/2012, at 8:41 AM, Thiago H. de Paula Figueiredo wrote: On Fri, 04 May 2012 16:27:44 -0300, Norman Franke nor...@myasd.com wrote: I'm sorry for not having the time to check this with code now, but I don't think this is correct. As far as I know, onActivate() is only invoked when the page is requested. onPassivate() is invoked every time you generate an event link inside the page. I did check, and in 5.3.3 it doesn't seem to anymore. I'm pretty sure it was in 5.1.x, but never really checked recently. This hasn't changed at least since the 5.0.5 days, when I started using Tapestry. What you've experienced was probably the relative assets (images, CSS) pitfall. So, people, please stop saying that onActivate() is invoked too much and to avoid using it to fetch data at all costs. ;) -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk+mDvQACgkQbmZsMyUPuXQINQCgpwO5iNzt0XtVb3ukuGP0RlNe 5eEAn09qlWT7AWT94kHCnYh4St98t41z =lH1y -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Best place to initialize form data
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 you can use the onActivate method in the following form: class MyPage { @Property String x; public onActivate(EventContext context) { if (context.getCount() 0) { this.x = context.get(String.class, 0); } else { this.x = default value; } } } the onActivate event handler with the single EventContext parameter gets invoked in any case, regardless of the activation context parameter count (gets invoked with no activation context too!). Thanks for pointing this out! Not quite as easy to read as an 'onActivate' method with an explicit parameter list, though. Can someone point tell me the rationale for Tapestry calling all onActivate() methods, and especially calling those with fewer parameters *after* those with more parameters? Having them called in reverse sequence would simplify initialization for me. There are probably good reasons for doing it the way it is done, and I would like to understand them ;-) nice to see you working with tapestry, i know your name from the german java scene and appreciate, that tapestry gets increasingly attention in germany ;) ;-) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk+mEKoACgkQbmZsMyUPuXS8agCgyArTeRQn3WA6c1uFR90yqJIV OkgAmgLo2dGzgD7kvjPpusFMC8CIFzjB =CWN+ -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org