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 wrote: > > Does anyone have any good suggestions on good, cheap java web hosting > > solutions where I can deploy my

Re: Jquery + Ajax

2009-03-27 Thread Thiago H. de Paula Figueiredo
I can't think of any problem. Is there any one you're imagining? Thiago -- Thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: Good Cheap Java Web Hosting Solutions

2009-03-27 Thread Thiago H. de Paula Figueiredo
On 3/27/09, Amit Nithian 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 know that it's a

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: 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 wrote: > Hello > Why is this working: > if (element.up().id == 'tab4') >      element.addClassName('active'); > > And this not: > if (element.up().id == this.activeTabId) { >    

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: var $jq = jQuery.noConflict(); /* $jq(document).ready(function() { });*/ function enviaAjax(idOpcion) { aler

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 login

Re: [T4]for component inside form not working

2009-03-27 Thread Norman Franke
They way I've handed this us to have the values of the items in the for loop be something like "ognl:myValues[rowid]" where rowid is the key for that list. You'll then have a getMyValue(String rowid) and setMyValue(String rowid, String value). Basically treating the fields inside the @For a

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(); ActiveSty

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

Re: [T4]for component inside form not working

2009-03-27 Thread Ivano Luberti
Since I have received no answer, I tried to dig more into it. So I have downloaded the Tapestry-Workbench source code and looked at the Chart example that is similar to what I want to do (one form and data stored in an ArrayList). I have discovered that it works but only because the list is stored

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 wrote: that's exactly what we

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 wrote: > > Hi! > > Hello! > > > I'm using rome to build rss feed component. > >@BeginRender > >boolean init(MarkupWriter writer){ > > feed.s

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 i

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

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 i

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

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: 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 : > 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" > To: "Tapestry users" > Sent: Fri

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

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 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 field. > Is that righ

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" To: "Tapestry users" Sent: Friday, 27 March, 2009 16:33:06 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Re: t5: forwardi

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 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. Please post a JIRA a

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 : > Hi Angelo, > > I think

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 suc

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: onActivate() called twice

2009-03-27 Thread Thiago H. de Paula Figueiredo
On Thu, Mar 26, 2009 at 5:02 PM, Davor Miku 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, e-mail: users-unsubscr

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": http://tapestry.formos.co

Re: RSS Rome

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

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 configuration.add(MetaDataConstants.SE

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 ti

Re: Non Standard SSL port on Tapestry App

2009-03-27 Thread Felix Gonschorek
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 configuration.add(MetaDataConstants.SECURE_PAGE, "true"); // works shall i open a jira issue or prepare a pat

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

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

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() u

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 pr