On Fri, 02 Dec 2011 13:54:14 -0200, Xybrek <xyb...@gmail.com> wrote:

Yah, that's what I mean. However I am not sure if with Tapestry I can implement a way to process URL parameters such that the rendered page is based on the URL parameter, like: http://mypage.com/user123 where, user123 is a user id that is when accessed the rendered page will be the user page. Something like that.

Yep. You can do that easily with the page activation context (http://tapestry.apache.org/page-navigation.html) and if it isn't enough, you can use URL rewriting (http://blog.tapestry5.de/index.php/2010/09/06/new-url-rewriting-api/).

Quite easy. Create a class in the components page, create a template for it (optional, but very typical). You can also create CSS and JavaScript files specifically for it and make Tapestry include them automatically by using the @Import annotation.

I see, thanks for the tip. Do you mean in the package where Layout.java is located?

Any place, as long as you indicate it correctly in @Import.

I see, anyway, what I mean by that is the loose-coupling of the UI element to the server side function ("services"). I hope Tapestry UI elements, although server-side, is loosely couple with "services"

They are. ;)

However, where do I place the CSS? In the .tml file? Or somewhere else?

In a separate file, then you include it on the page or component using @Import.

--
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

Reply via email to