Re: RSS Rome

2009-03-27 Thread Davor Miku
Thanks in advance. Anyway, there must be some way to build custom XML file, not just for RSS. I'll need to build google sitemap, soon, so I need that badly. On Fri, Mar 27, 2009 at 1:58 AM, Christian Edward Gruber christianedwardgru...@gmail.com wrote: I have some code I used for the

Re: Component with a persist attribute inside a loop

2009-03-27 Thread Otho
You really don't need to @Persist anything here. Joachim was right with the context parameter. If you change your component class and template along the following lines it works fine: Component class: public class Test { @Parameter @Property private String usage; @Property

Re: integrating T5 a login form with Spring Security?

2009-03-27 Thread Borut Bolčina
Hi, how did you do it? I am getting ComponentEventException when using void onSuccess() { Request request = requestGlobals.getRequest(); String url = request.getContextPath() + checkUrl + ?j_username= + username + j_password= + password; logger.info(onSuccess()

T5: Are Search Form Fields Persisted Per Page?

2009-03-27 Thread Peter Kanze
Hello At the top of the page I have a search form where a user can search on product description, category etc.. The result list of products (generated below the search form) also contains a pager component.. Like this Page: 1 | 2 | 3 | 4 | 5 | 6 ... | 11 | 12 When I click on a page link

Re: T5: How to load image Asset from filesystem?

2009-03-27 Thread Peter Kanze
Hi Daniel, Currently I load my (user uploaded) images using a StreamResponse as you explained. The pictures are shown in my webpage, but for every loaded picture the onActivate is called. With a result list of 15 rows per page, this is 16 times. In my onActivate I also call my doSearch method.

Re: [T5] Asset Url is changed via domain. Meet Problems when use Alias or AliasOverrides

2009-03-27 Thread Tuan
Thanks Fernando Padilla, I created AssetSourceDecorator as you said. The result is + For all assets are accessed by @includestylesheet, @include, It is ok. + For all assets are accessed in template ${asset:tapestry_banner.gif}, it is ok when end-user go to the page in first

Re: Non Standard SSL port on Tapestry App

2009-03-27 Thread Ulrich Stärk
There already is and it has been fixed. Uli Felix Gonschorek schrieb: there may be an error in the maven docs for 5.0.18 on http://tapestry.apache.org/tapestry5/guide/secure.html configuration.put(TapestryConstants.SECURE_PAGE, true); // does not work

Re: RSS Rome

2009-03-27 Thread Thiago H. de Paula Figueiredo
On Fri, Mar 27, 2009 at 2:54 AM, Davor Miku davorm...@gmail.com wrote: Hi! Hello! I'm using rome to build rss feed component.   �...@beginrender    boolean init(MarkupWriter writer){ feed.setEntries(entries); SyndFeedOutput output = new SyndFeedOutput();

Re: Issues with ServiceOverride and Contributions

2009-03-27 Thread Peter Stavrinides
Hi Ben, If you want to provide some extensions / overrides some of the logic but keep the basics in place then I think you might try decorate the service instead. This page provides some good insight, take a look at the section Decorating the RequestExceptionHandler:

Re: onActivate() called twice

2009-03-27 Thread Thiago H. de Paula Figueiredo
On Thu, Mar 26, 2009 at 5:02 PM, Davor Miku davorm...@gmail.com wrote: I know that, but I can't use it. Why not? I there any other way? Besides using assets and absolute URLs, I don't know. -- Thiago - To unsubscribe,

Re: t5: forwarding in index

2009-03-27 Thread Peter Stavrinides
Hi Angelo, I think a server redirect may do what you require, I have not used it yet with Tapestry but it shouldn't be an issue. Try: RequestDispatcher rd = request.getRequestDispatcher(pathToResource); rd.forward(request, response); You could simply inject the request and response in the page.

Re: Issues with ServiceOverride and Contributions

2009-03-27 Thread Ben Gidley
Unfortunately in this instance I can't decorate the service and implement what I want as it isn't going to be possible to decorate it without access to the configuration. I have tried using decorate but it doesn't let me get access to the default implementation's constructor. The reason this is

Re: t5: forwarding in index

2009-03-27 Thread Borut Bolčina
In T5.0.18 forwarding causes ComponentEventException, so it does not work. I am desperate because of this. See thread integrating T5 a login form with Spring Security and Authentication Spring Security Captcha after 3 failed attempts -bb 2009/3/27 Peter Stavrinides p.stavrini...@albourne.com:

Re: Issues with ServiceOverride and Contributions

2009-03-27 Thread Thiago H. de Paula Figueiredo
On Fri, Mar 27, 2009 at 11:31 AM, Ben Gidley b...@gidley.co.uk wrote: Unfortunately in this instance I can't decorate the service and implement what I want as it isn't going to be possible to decorate it without access to the configuration. I agree that this is a Tapestry IoC limitation.

Re: t5: forwarding in index

2009-03-27 Thread Peter Stavrinides
This is part of the standard servlet API, and very valuable feature to a developer, is there a Jira to vote on? - Original Message - From: Borut Bolčina borut.bolc...@gmail.com To: Tapestry users users@tapestry.apache.org Sent: Friday, 27 March, 2009 16:33:06 GMT +02:00 Athens, Beirut,

Re: [tap 5.1] Rendering ******* from PasswordField?

2009-03-27 Thread Thiago H. de Paula Figueiredo
On Thu, Mar 26, 2009 at 5:15 PM, Charles Coleman ccole...@email.unc.edu wrote: It looks like the relevant render method in the 5.0.18 source is final; so it seems that my only recourse is to make my own custom component, or perhaps to use a litttle Javascript to put some dummy content in that

Re: T5: Are Search Form Fields Persisted Per Page?

2009-03-27 Thread Joost Schouten (mailing lists)
Its hard to make any assumptions from your story but it sounds like you don't persist the search term and refetch all your products on pagination. It seems unlikely that there will be a different search form for each paginated representation of the same page. The problem most likely lies in the

Re: T5: Are Search Form Fields Persisted Per Page?

2009-03-27 Thread Thiago H. de Paula Figueiredo
To do that without any session persisted fields, not even flash ones, I can think of two solutions: using cookies or to always change from one page to the other doing an AJAX form submission when your user clicks on a pagination link. -- Thiago

Re: t5: forwarding in index

2009-03-27 Thread Borut Bolčina
It is now: https://issues.apache.org/jira/browse/TAP5-607 2009/3/27 Peter Stavrinides p.stavrini...@albourne.com: This is part of the standard servlet API, and very valuable feature to a developer, is there a Jira to vote on? - Original Message - From: Borut Bolčina

xsd for 5.1 is not available

2009-03-27 Thread Yiqun Shi
This file is not available. http://tapestry.apache.org/schema/tapestry_5_1_0.xsd It is useful for tapestry 5.1. Only tapestry_5_0_0.xsd is there. Any clue? Steven

Re: Issues with ServiceOverride and Contributions

2009-03-27 Thread Howard Lewis Ship
This does get to the nature of what's public, what's private? That is, I can see how we could provide an @ConfigurationFor(ComponentClassResolver) annotation that would grab the configuration for some other service, but that leaves me a little chilled in terms of implementation privacy. Perhaps

Re: integrating T5 a login form with Spring Security?

2009-03-27 Thread Otho
I used the form login but had tha problem that the redirect done by spring security didn't make all components on the page refresh, so that a logged in user still had the login link in the page header instead of the logout link until he refreshed the page or chose another link. I found it easier

Re: integrating T5 a login form with Spring Security?

2009-03-27 Thread Peter Lundberg
Jean Luc... Did you have a look at tapestry-spring-security? The repositry is at http://www.localhost.nu/java/mvn/nu/localhost/tapestry/tapestry-spring-secur ity/ but the project site seams to be down. It is rough on the edges, but works well and is not to hard to understand the code. It would

Re: integrating T5 a login form with Spring Security?

2009-03-27 Thread Borut Bolčina
I am using tapestry-spring-security. It works ok, but I am trying to spice up the login form with captcha if user has failed to login 5 times (like google account). The form uses action=${loginCheckUrl} method=POST and is a regular html form (not t:form). But I need it to be t:form to put some

Re: [T5] Asset Url is changed via domain. Meet Problems when use Alias or AliasOverrides

2009-03-27 Thread Fernando Padilla
hmm. Is there an AssetFactory? Tuan wrote: Thanks Fernando Padilla, I created AssetSourceDecorator as you said. The result is + For all assets are accessed by @includestylesheet, @include, It is ok. + For all assets are accessed in template ${asset:tapestry_banner.gif}, it

Re: RSS Rome

2009-03-27 Thread Davor Miku
Thanks!!! On Fri, Mar 27, 2009 at 9:56 AM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: On Fri, Mar 27, 2009 at 2:54 AM, Davor Miku davorm...@gmail.com wrote: Hi! Hello! I'm using rome to build rss feed component. @BeginRender boolean init(MarkupWriter writer){

Re: @IncludeStylesheet and non-local CSS

2009-03-27 Thread Robert Zeigler
The Chenillekit module provides a URIAssetFactory, as well; I've just started playing with this library, but I've been pretty pleased so far. Robert On Mar 26, 2009, at 3/2610:06 PM , Geoffrey Wiseman wrote: On Thu, Mar 26, 2009 at 9:53 PM, Fernando Padilla f...@alum.mit.edu wrote:

Re: @IncludeStylesheet and non-local CSS

2009-03-27 Thread Fernando Padilla
I vote that this is added to tapestry-core. :) Robert Zeigler wrote: The Chenillekit module provides a URIAssetFactory, as well; I've just started playing with this library, but I've been pretty pleased so far. Robert On Mar 26, 2009, at 3/2610:06 PM , Geoffrey Wiseman wrote: On Thu, Mar

T5: Prototype question

2009-03-27 Thread Peter Kanze
Hello Why is this working: if (element.up().id == 'tab4') element.addClassName('active'); And this not: if (element.up().id == this.activeTabId) { element.addClassName('active'); And this.activeTabId = tab4 See here the full javascript code: var ActiveStyle = Class.create();

invalid redirect to @Secure page from Ajax request

2009-03-27 Thread olafos
Hi, I think there's something wrong with the way tapestry handles redirects from Ajax request. I'm having the following problem: I have a page, say: http://localhost/mytapestryapp/resetpassword with a form that sends an ajax request and the request handler returns a Link which leads to my

Jquery + Ajax

2009-03-27 Thread iberck
Hi, I'm newbie in tapestry and I'm using asynchronous ajax request to a class page method: script type=text/javascript src=${asset:context:js/jquery.js} /script script type=text/javascript var $jq = jQuery.noConflict(); /*

Re: T5: Prototype question

2009-03-27 Thread Howard Lewis Ship
Do you mean: this.activeTabId = 'tab4' ? If not, there's your answer. On Fri, Mar 27, 2009 at 11:35 AM, Peter Kanze peterka...@gmail.com wrote: Hello Why is this working: if (element.up().id == 'tab4')      element.addClassName('active'); And this not: if (element.up().id ==

Good Cheap Java Web Hosting Solutions

2009-03-27 Thread Amit Nithian
Does anyone have any good suggestions on good, cheap java web hosting solutions where I can deploy my Tapestry applications? I currently use HostMonster but they don't support Java. When looking around, what should I look out for in order to know that it's a good provider? Thanks! Amit

Re: Good Cheap Java Web Hosting Solutions

2009-03-27 Thread Thiago H. de Paula Figueiredo
On 3/27/09, Amit Nithian anith...@gmail.com wrote: Does anyone have any good suggestions on good, cheap java web hosting solutions where I can deploy my Tapestry applications? I currently use HostMonster but they don't support Java. When looking around, what should I look out for in order to

Re: Good Cheap Java Web Hosting Solutions

2009-03-27 Thread Daniel Honig
+1 for linode+1 for linode with upgraded ram for grails apps On Fri, Mar 27, 2009 at 9:09 PM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: On 3/27/09, Amit Nithian anith...@gmail.com wrote: Does anyone have any good suggestions on good, cheap java web hosting solutions where I