Re: RSS Rome

2009-03-26 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 www

Re: RSS Rome

2009-03-26 Thread Christian Edward Gruber
I have some code I used for the www.israfil.net site, but I haven't open-sourced it. Let me go dig it out tomorrow and see if i can do that. I didn't write the raw feed, though. I used the SyndEntry as a model object and created a display component and pulled data from the entry. regard

RSS Rome

2009-03-26 Thread Davor Miku
Hi! 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)); return false; } I'm using component like: http://tapestry.apa

Re: @IncludeStylesheet and non-local CSS

2009-03-26 Thread Geoffrey Wiseman
On Thu, Mar 26, 2009 at 9:53 PM, Fernando Padilla wrote: > that's exactly what we do.. we just named it "url", instead of "uri". :) :) Well, it's a trivial piece of code, so if a committer wants to run with it - feel free, although you might want to check to make sure I didn't do something inap

Re: Non Standard SSL port on Tapestry App

2009-03-26 Thread Jonathan Barker
I think you're looking for: public void contributeMetaDataLocator( MappedConfiguration configuration) { configuration.add(MetaDataConstants.SECURE_PAGE, "true"); } On Thu, Mar 26, 2009 at 11:10 AM, Dave Greggory wrote: > > That looks like it might work, thanks a lot,

Re: How to parse and map URLs?

2009-03-26 Thread Fernando Padilla
i think we had a discussion on the mailing list a bit back, I think we were refering to it as "virtual hosting". Michael Prescott wrote: This probably won't help you, but have a look at URLRewriter ( http://tuckey.org/urlrewrite/), which is a filter that does URL rewriting. I'm not sure if you

Re: @IncludeStylesheet and non-local CSS

2009-03-26 Thread Fernando Padilla
that's exactly what we do.. we just named it "url", instead of "uri". :) :) Geoffrey Wiseman wrote: On Thu, Mar 26, 2009 at 1:40 PM, Dave Greggory wrote: Just use RenderSupport. I just built my own component named asset attacher for this purpose. And if anyone's curious what the other appr

Re: @IncludeStylesheet and non-local CSS

2009-03-26 Thread Fernando Padilla
we use YUI. We simply added a "url" asset factory prefix (which tapestry should really really add by default actually, like 10 lines of code). If you want it, I can attach my code easily. And no, you should not bundle yui locally. It already does a tonne of on-demand loading, dependency reso

Re: @IncludeStylesheet and non-local CSS

2009-03-26 Thread Howard Lewis Ship
Another reason to host the YUI scripts locally is so that you can take advantage of JavaScript combination (in Tapestry 5.1). That only works if all of the individual script files are located on the server (in the context, or on the classpath). On Thu, Mar 26, 2009 at 11:48 AM, Geoffrey Wiseman w

Re: Cached and Self-Calls

2009-03-26 Thread Howard Lewis Ship
I believe self-calls are handled; you can use @Cached on non-public methods as well. On Thu, Mar 26, 2009 at 12:54 PM, Geoffrey Wiseman wrote: > Does tapestry manipulate the page class enough that @Cached affects > self-calls? > > That is, if I wrote this code: > > @Cached > List getSomeExpensive

Re: Tapestry-Hibernate Testing

2009-03-26 Thread Juan E. Maya
In tapestry 5.18 it was not possible (easily) to use tapestry-hibernate outside of the web application so i am not sure how feasible is to use them in the Test classes. That was one of the main reasons i did the early upgrade and i don't regret at all. On Thu, Mar 26, 2009 at 9:33 PM, Davor Miku

Re: How to parse and map URLs?

2009-03-26 Thread Howard Lewis Ship
Thiago has checked some code into 5.1.0.2 that gives you greater control over how URLs are generated and interpreted. On Thu, Mar 26, 2009 at 2:17 PM, Geoffrey Wiseman wrote: > On Thu, Mar 26, 2009 at 4:04 PM, dpark wrote: > >> >> Is this a job for a custom Service Encoder (friendly URL)? >> > >

Re: message that i do not understand

2009-03-26 Thread Howard Lewis Ship
Are you using any special libraries, one that would add a Validator named "string"? That message would tend to indicate that a Validator emitted some initialization logic, but there was no Tapestry.Validator.string function to match. A dump of the rendered page and the pertintent details about you

Re: How to parse and map URLs?

2009-03-26 Thread Geoffrey Wiseman
On Thu, Mar 26, 2009 at 4:04 PM, dpark wrote: > > Is this a job for a custom Service Encoder (friendly URL)? > This is presumably Tapestry 4.X, based on this reference (and past Exchange Solutions experience)? My guess is that you're better off with something like URLRewriter or, if you're usin

message that i do not understand

2009-03-26 Thread Jorge Saridis
Hello I'm getting this message: "Function Tapestry.Validator.string() does not exist for field 'XXX'." What does it mean? The field mentioned in the message, is set in the .properties file with the label and required-message. Thanks in advance. Jorge

RE: server side validation

2009-03-26 Thread Jorge Saridis
Howard, Thomas, thanks for your answers I was using "" in the right place, but I was calling the incorrect event (submit instead of success) Sorry Thanks again Jorge On Wed, 2009-03-25 at 10:44 -0500, DuBois, Thomas F CTR USAF AFMC 639 ACSG/PEC wrote: > Place a component at the top of the form >

Re: Tapestry-Hibernate Testing

2009-03-26 Thread Davor Miku
Thank's for reply. I'm using T5.018. I tried: builder.add(TapestryIOCModule.class,HibernateModule.class ,AppModule.class); and got exception: [INFO] cfg.Configuration Configured SessionFactory: null [ERROR] ioc.Registry Symbol 'tapestry.app-package' is not defined. [ERROR] ioc.Registr

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

2009-03-26 Thread Charles Coleman
Using a distinct password form - or even another page - might help emphasize that dealing with the Google password field is different from an ordinary edit (like changing your time zone or window for synch), and sort of avoid my worry. But the question of spoofing the output with a static stri

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

2009-03-26 Thread Michael Prescott
Consider putting the change-password fields in another form? Either that or hiding them until the user indicates that they're trying to carry out this optional operation. Michael On Thu, Mar 26, 2009 at 4:15 PM, Charles Coleman wrote: > Hi, > > My group is working on a little application that w

[tap 5.1] Rendering "*******" from PasswordField?

2009-03-26 Thread Charles Coleman
Hi, My group is working on a little application that will enable users to set up synchronization between Oracle Calendar and Google Calendar. The user's interface includes a password field where they must provide their Google password (if they wish to use the application). The password is enc

Re: How to parse and map URLs?

2009-03-26 Thread Michael Prescott
This probably won't help you, but have a look at URLRewriter ( http://tuckey.org/urlrewrite/), which is a filter that does URL rewriting. I'm not sure if you can extend it with the sort of 'manipulate the context' behavior you're looking for, but perhaps. The context you're manipulating, by the wa

Re: Tapestry-Hibernate Testing

2009-03-26 Thread Juan E. Maya
Oh, i forgot to tell u that for this test to work tapestry 5.1.0.1 is required because it uses the CoreHibernateModule On Thu, Mar 26, 2009 at 9:08 PM, Juan E. Maya wrote: > Hi Davor, Injection only work on tapestry pages or components. U can't > inject tapestry services in JUnit classes (as far

Re: Tapestry-Hibernate Testing

2009-03-26 Thread Juan E. Maya
Hi Davor, Injection only work on tapestry pages or components. U can't inject tapestry services in JUnit classes (as far as i know) The way i run my test is as follow, i use testng but u could easily see how it would be in Junit It's important to notice that u have to manually load the Modules u n

How to parse and map URLs?

2009-03-26 Thread dpark
I'm looking for any suggestions on the below: Business Need: A new partner client would like to leverage our current web application but allow for some dynamic rebranding (through images). The application will know which brand images to show based on the format of the URL. For example, given th

Re: onActivate() called twice

2009-03-26 Thread Davor Miku
I know that, but I can't use it. I there any other way? On Thu, Mar 26, 2009 at 3:38 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Thu, 26 Mar 2009 15:49:11 -0300, Davor Miku > escreveu: > > I have onActivate(String name) called twice. >> When called second time name="ima

Cached and Self-Calls

2009-03-26 Thread Geoffrey Wiseman
Does tapestry manipulate the page class enough that @Cached affects self-calls? That is, if I wrote this code: @Cached List getSomeExpensiveResult() { ... } String getSummary() { if( getSomeExpensiveResult().isEmpty() ) return "nothing"; else { String summary = ""; for( Object item

Re: [T4.1.6]how to use dojo 1.2.3 version in T4.1.6?

2009-03-26 Thread Matt Brock
Oliver Lee wrote: > > i want use the more newer version of dojo in my application,such as v1.2.3 > , does any chance to update the dojo version of the tapestry4.1.6 > As of Tap 4.1.5, you can replace the built-in JS engine with your own. The Tacos group has already done so with the 1.0.2

Re: onActivate() called twice

2009-03-26 Thread Thiago H. de Paula Figueiredo
Em Thu, 26 Mar 2009 15:49:11 -0300, Davor Miku escreveu: I have onActivate(String name) called twice. When called second time name="images". I believe this is because there are some relative links. Use src="${asset:context:images/image.jpg}" instead of src="images/image.jpg". -- Thiago

onActivate() called twice

2009-03-26 Thread Davor Miku
I have onActivate(String name) called twice. When called second time name="images". I believe this is because there are some relative links. There is no way to make all URLs absolute. Is there any way to override this multiple calling? Like telling Tapestry not to process anything from certain

Re: @IncludeStylesheet and non-local CSS

2009-03-26 Thread Geoffrey Wiseman
On Thu, Mar 26, 2009 at 1:40 PM, Dave Greggory wrote: > > Just use RenderSupport. > > I just built my own component named asset attacher for this purpose. > And if anyone's curious what the other approach might look like: package com.tsg.tapestry; import java.io.IOException; import java.io.Inpu

Tapestry-Hibernate Testing

2009-03-26 Thread Davor Miku
Hi! This is probably dumb question. I'm using tapestry-hibernate for DAO services. How can I test them with JUnit.? I tried with @Inject SomeDAO in test class, but I'm getting NPE.

Re: @IncludeStylesheet and non-local CSS

2009-03-26 Thread Dave Greggory
Just use RenderSupport. I just built my own component named asset attacher for this purpose. public class AssetAttacher { @Parameter(required = true, allowNull = false, defaultPrefix = BindingConstants.LITERAL) private StringassetURL; @Parameter(required = true, a

Re: @IncludeStylesheet and non-local CSS

2009-03-26 Thread Geoffrey Wiseman
On Thu, Mar 26, 2009 at 1:25 PM, Howard Lewis Ship wrote: > I think you are on to something, but is bundling YUI locally a real > problem? > It's not a huge problem, no -- I'd just rather get it from the source, given: - Yahoo's servers are pretty reliable - the per-host browser limits on

Re: Component with a persist attribute inside a loop

2009-03-26 Thread ahingsaka samsenesena
Thanks for the answer, and sorry for the duplicated mails (our mail server has problems), This solution works well, but I really can't see why the behaviour is different : the actionlink is the same in the 2 situations explained below. Or does it simply mean that we should not use persisting attr

Re: @IncludeStylesheet and non-local CSS

2009-03-26 Thread Howard Lewis Ship
I think you are on to something, but is bundling YUI locally a real problem? On Thu, Mar 26, 2009 at 10:05 AM, Geoffrey Wiseman wrote: > On Thu, Mar 26, 2009 at 12:47 PM, Geoffrey Wiseman < > geoffrey.wise...@gmail.com> wrote: > >> If I were to build component that uses YUI, and I wanted to attac

Re: @IncludeStylesheet and non-local CSS

2009-03-26 Thread Geoffrey Wiseman
On Thu, Mar 26, 2009 at 12:47 PM, Geoffrey Wiseman < geoffrey.wise...@gmail.com> wrote: > If I were to build component that uses YUI, and I wanted to attach the > stylesheet from Yahoo (rather than copying it to my application), it doesn't > seem as if @IncludeStylesheet will let me do that; am I

Re: Authentication Spring Security Captcha after 3 failed attempts

2009-03-26 Thread Borut Bolčina
Ahhh, just as I wanted to go home after deploying the app to the tomcat server and baaammm - the app crashes. So if it works on Jetty 6.1.14 and crashes on Tomcat 6.0.14, can the web.xml be the bad guy? I am using T5.0.18 http://www.w3.org/2001/XMLSchema-instance"; xmlns="http://java.sun.com/xml/

@IncludeStylesheet and non-local CSS

2009-03-26 Thread Geoffrey Wiseman
If I were to build component that uses YUI, and I wanted to attach the stylesheet from Yahoo (rather than copying it to my application), it doesn't seem as if @IncludeStylesheet will let me do that; am I correct? - Geoffrey -- Geoffrey Wiseman http://www.geoffreywiseman.ca/

Re: Authentication Spring Security Captcha after 3 failed attempts

2009-03-26 Thread Borut Bolčina
Found a solution. The login is now protected as google account is - with captcha after 5 failed retries. The thing that bothers me is this stack trace in the console which is triggered by pressing the login submit button: 2009-03-26 16:44:51.494::WARN: /login.lform java.lang.NullPointerException

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

2009-03-26 Thread Fernando Padilla
another thing you can play with, which is sometimes easier to integrate, is the service decoration. try learning about decorators. On 3/26/09 12:09 AM, Tuan wrote: Hi all, This is my problems when I use Alias or AliasOverrides. Please help me correct them. _*Context: *_ IndexPage.tml M

Re: Component with a persist attribute inside a loop

2009-03-26 Thread ahingsaka samsenesena
I have tried with these modifications but now, when i click on the links, the value displayed is always "pix". Le jeudi 26 mars 2009 à 15:12 +0100, Otho a écrit : > a) You don't need to copy the value from the parameter to the property. > b) There is no need to persist it. > > @Parameter > @Prope

Re: Component with a persist attribute inside a loop

2009-03-26 Thread ahingsaka samsenesena
I have tried with your modifications but now, when i click on the links, the value displayed is always "pix". Le jeudi 26 mars 2009 à 15:12 +0100, Otho a écrit : > a) You don't need to copy the value from the parameter to the property. > b) There is no need to persist it. > > @Parameter > @Prope

Re: Non Standard SSL port on Tapestry App

2009-03-26 Thread Dave Greggory
That looks like it might work, thanks a lot, Jonathan. Do you want replaced TapestryConstants.SECURE_PAGE constant? It's not available in T5.0.18. - Original Message From: Jonathan Barker To: Tapestry users Sent: Wednesday, March 25, 2009 10:18:42 PM Subject: Re: Non Standard SSL p

Re: T5: integer input box query

2009-03-26 Thread Howard Lewis Ship
Primitive values, int, are always required. Integers (wrapper types) are (by default) optional. Could this be the problem? On Thu, Mar 26, 2009 at 7:08 AM, tapestryphoto wrote: > Hi Thiago, > > Thanks for your suggestion. > > Yes, the CSS is included correctly. > > The problem goes away when I

Component with a persist attribute inside a loop

2009-03-26 Thread ahingsaka samsenesena
Hi, I'm trying to use my own component inside a loop and I have a problem when there is a "persist" annotation on attributes. I want to loop with my component named "test" in a page like this : The component contains a string attribute "usageValue" that will be displayed in the

Re: Component with a persist attribute inside a loop

2009-03-26 Thread Joachim Van der Auwera
You should pass the "usage" string as context parameter on the action link. The problem is that the url for each of the events in the loop are the same. Kind regards, Joachim ahingsaka samsenesena wrote: Hi, I'm trying to use my own component inside a loop and I have a problem when there is a

Re: T5: integer input box query

2009-03-26 Thread Thiago H. de Paula Figueiredo
On Thu, Mar 26, 2009 at 11:08 AM, tapestryphoto wrote: > Hi Thiago, Hi! > Thanks for your suggestion. :) > Yes, the CSS is included correctly. > The problem goes away when I use an Integer rather than an int. Tapestry makes fields bound to primitive types required as they do not accept null.

Re: Tapestry-Spring-Security and Tapestry 5.1.0.x

2009-03-26 Thread ningdh
What I do is add the SetupRender phase in my ComponentClassTransformWorker. For I don't used T-S-S and don't know its source code at all, I am not sure whether it is like my solution. My complete transform worker is below: public class SecurityWorker implements ComponentClassTransformWorker{

Re: Component with a persist attribute inside a loop

2009-03-26 Thread Otho
a) You don't need to copy the value from the parameter to the property. b) There is no need to persist it. @Parameter @Property private String usage; ${usage} 2009/3/26 ahingsaka samsenesena > Hi, > > I'm trying to use my own component inside a loop and I have a problem > when there i

Re: T5: integer input box query

2009-03-26 Thread tapestryphoto
Hi Thiago, Thanks for your suggestion. Yes, the CSS is included correctly. The problem goes away when I use an Integer rather than an int. p. Quoting "Thiago H. de Paula Figueiredo" : Check if the Tapestry CSS file is being correctly included in your pages, because that's the one who hides

Re: Tapestry-Spring-Security and Tapestry 5.1.0.x

2009-03-26 Thread Thiago H. de Paula Figueiredo
On Wed, Mar 25, 2009 at 4:18 AM, DH wrote: > Maybe caused by MutableComponentModel#addRenderPhase? > I don't use T-S-S, but have another role annotation based solution. I can > work before 5.0.18 too but fail when upgrade to 5.1.0.0. > I need call MutableComponentModel#addRenderPhase to make it w

Component with a persist attribute inside a loop

2009-03-26 Thread ahingsaka samsenesena
Hi, I'm trying to use my own component inside a loop and I have a problem when there is a "persist" annotation on attributes. I want to loop with my component named "test" in a page like this : The component contains a string attribute "usageValue" that will be displayed in the

Re: How to remove default css and javascript files from t5

2009-03-26 Thread Thiago H. de Paula Figueiredo
On Thu, Mar 26, 2009 at 9:56 AM, lyifan wrote: > Hi there, Hi! > Is it possible to remove default css and java files from T5. Removing CSS is easy: take a look at the tapestry.default-stylesheet configuration symbol at http://tapestry.apache.org/tapestry5/guide/conf.html. Well, it is not exact

How to remove default css and javascript files from t5

2009-03-26 Thread lyifan
Hi there, Is it possible to remove default css and java files from T5. I think it is reasonable that someone does not want any default style and javascript librarays of T5 but wants to make by self. So there should be a way to remove them, right? Hope I am right. Thanks -- View this message i

Authentication Spring Security Captcha after 3 failed attempts

2009-03-26 Thread Borut Bolčina
Hello, I would like to display a CAPTCHA challenge to a user after 3 failed login attempts. If using tapestry5-spring-security 2.0.1 the form looks like: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"; action="${loginCheckUrl}" method="POST"> Username and/or password was wrong! Us

Re: T5: integer input box query

2009-03-26 Thread Thiago H. de Paula Figueiredo
Check if the Tapestry CSS file is being correctly included in your pages, because that's the one who hides the red X image when the textfield is rendered without errors. -- Thiago - To unsubscribe, e-mail: users-unsubscr...@tape

[T4.1.6]how to use dojo 1.2.3 version in T4.1.6?

2009-03-26 Thread oliverlee000
hi,everyone i want use the more newer version of dojo in my application,such as v1.2.3 , does any chance to update the dojo version of the tapestry4.1.6 any suggestion?thank you !! 2009-03-26 oliverlee

Re: T5: auto class reloading no longer works

2009-03-26 Thread tapestryphoto
Quoting Borut Bolčina : First, calm down :-) :-) Try with fresh maven tapestry 5 project. Thanks, although everything in my project is working and I'd rather understand how the class reloading works and how I can fix my non-working version than start from scratch. Perhaps http://

T5: integer input box query

2009-03-26 Thread tapestryphoto
I have an input box that accepts an int. It is enabled/disabled by a selection from a combobox. Whenever it is enabled it shows a red border and red X next to it, even though the value in the box is correct (and is initialised with a value when the page is initially shown). Here is my m

Re: T5: auto class reloading no longer works

2009-03-26 Thread Borut Bolčina
First, calm down :-) Try with fresh maven tapestry 5 project. Perhaps http://bbwebcraft.blogspot.com/2009/01/task-3-rapid-turnaround-in-tapestry-5.htmlwill help. Cheers, Borut 2009/3/26 tapestryphoto > A while ago I had a problem with Maven deciding to wreck my Eclipse > environment. > > I ma

T5: auto class reloading no longer works

2009-03-26 Thread tapestryphoto
A while ago I had a problem with Maven deciding to wreck my Eclipse environment. I managed to fix all the problems, but I noticed class reloading no longer works. It's beginning to drive me insane, having to restart Jetty all the time... Where abouts should I look to get class reloading wo

Re: [T4]for component inside form not working

2009-03-26 Thread Ivano Luberti
I'm sorry I have sent a wrong version of the email: disregard the first one. Ivano Luberti ha scritto: > Hi Howard, here are the three files. > > Howard Lewis Ship ha scritto: > >> It would be helpful to see more of you page class and template. >> >> On Wed, Mar 25, 2009 at 9:57 AM, Ivano Lub

Re: [T4]for component inside form not working

2009-03-26 Thread Ivano Luberti
Hi Andreas Andreas Andreou ha scritto: > There's an 'edit customers' example in the For component doc that > should be close to > what you're doing: > http://tapestry.apache.org/tapestry4.1/components/general/for.html > > I tried to use that example and I get a "Could not find a strategy instan