Unit Test Cannot run correctly!

2007-08-30 Thread 小司
My Application use spring2+tapestry5+hibernate3 ,it can work well in me IE or FF so,I want to use Unit Test with testNG .I followed http://tapestry.apache.org/tapestry5/tapestry-core/guide/unit-testing-pages.html configrate spring with http://wiki.apache.org/tapestry/Tapestry5SpringIntegration

Re: [T5]How can I change session expired time?

2007-08-30 Thread Allen Guo
Marcus 写道: Hi, Use WEB-INF/web.xml: 15 This apply to any Servlet Container (not a Tapestry configuration). Marcus Thanks a lot - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

Re: [T5] xml namespace support (facebook, fbml)

2007-08-30 Thread Fernando Padilla
Yes I've been looking all over the code. Right now I think that I have two options. Could I get some more feedback? 1) hack :) write a mixin that will go through the dom after rendering and replace element/attribute names with desired versions: "fm_fbml" to "fb:fbml". This is how I'll sta

[T5] how to get a dynamic localized key value

2007-08-30 Thread Allen Guo
Hi All, I have a question on how to get a dynamic localized key value Below is a scenario [ ${message:} I hope similar codes above can get the localized key from properties file dynamiclly There may be following data in properties file // **_zh_CN.properties california=加利福尼亚 indiana=印第安那 //

Re: T5: Handling of images

2007-08-30 Thread Nick Westgate
An even better solution IMO is to revive the Img component, but move the domain into another parameter defaulted to "context". Source here, renamed Image: http://wiki.apache.org/tapestry/Tapestry5ImageComponent E.g. Cheers, Nick. Nick Westgate wrote: Situations like this are exactly where i

Re: T5: Binding Date type

2007-08-30 Thread Nick Westgate
Look at the other translators in: tapestry-core\src\main\java\org\apache\tapestry\translator Cheers, Nick. Marcelo lotif wrote: Nick, can you tell me what Message class is this? What dependence should i add? I search on maven and there are too much dependencies to add and i can't figure out wh

Re: T5: Script rewriting

2007-08-30 Thread 蝈蝈龙
2007/8/31, Angelo Chen <[EMAIL PROTECTED]>: > > > Hi Nick, > Thanks, it works! > > Nick Westgate wrote: > > > > Try > > View this message in context: > http://www.nabble.com/T5%3A-Script-rewriting-tf4357979.html#a12420152 > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > --

Re: ValidationDelete Error Message Display and locale (!) translation

2007-08-30 Thread Andreas Andreou
If you get a reference to your page (from within the validator), you could do page.getMessages().getMessage("NicknameAlreadyExists") and use that in you exception. And you can do that in the toObject method by formComponent.getPage() ! On 8/30/07, ipoese <[EMAIL PROTECTED]> wrote: > > > > ipoese

Re: [T5] xml namespace support (facebook, fbml)

2007-08-30 Thread Nick Westgate
Or possibly patch TemplateParser to do what you want. Tapestry uses SAX. See: org.apache.tapestry.internal.services.TemplateParserImpl Cheers, Nick. Josh Canfield wrote: This has been mentioned as a bug in this list, search for *T5: XML declaration is missing from rendered page. Any workrounds

Re: T5: Script rewriting

2007-08-30 Thread Angelo Chen
Hi Nick, Thanks, it works! Nick Westgate wrote: > > Try >

Re: T5: Script rewriting

2007-08-30 Thread Nick Westgate
Try but T5 already arranged it : pulling up the line with 'good_ad_cl

T5: Script rewriting

2007-08-30 Thread Angelo Chen
Hi, I have this in the template: but T5 already arranged it :

Re: T5: Activation contexts

2007-08-30 Thread Nick Westgate
That is in fact the only option for now. Cheers, Nick. Josh Canfield wrote: In situations where I have had optional parameters I've ended up using an Object[] as the argument and figuring out what the values mean myself. public Object onActivate(Object[] context) { } I haven't looked closely

Re: [T5] xml namespace support (facebook, fbml)

2007-08-30 Thread Josh Canfield
This has been mentioned as a bug in this list, search for *T5: XML declaration is missing from rendered page. Any workrounds?* While I haven't tried this, I imagine that you could create components to work around this for now using MarkupWriter.writeRaw(). Or possibly use the OutputRaw component.

Re: T5: Activation contexts

2007-08-30 Thread Josh Canfield
In situations where I have had optional parameters I've ended up using an Object[] as the argument and figuring out what the values mean myself. public Object onActivate(Object[] context) { } I haven't looked closely enough at the code to determine if there is a better option. Josh On 8/30/07,

[T5] xml namespace support (facebook, fbml)

2007-08-30 Thread Fernando Padilla
Hi. We are going to be writing a facebook application, and we want to use Tapestry 5. To do so, we have to generate FBML: http://wiki.developers.facebook.com/index.php/FBML We came hit a pretty big snag, in that it doesn't look like tapestry 5 support namespaces/prefixes. Below you see the tape

T5: Activation contexts

2007-08-30 Thread Joel Wiegman
Hello all, I'm wondering if anyone has had any luck making the "activation contexts" of pages a little more flexible. For example, let's say I have a "Sum.java" page that wants to take in between 1 and 4 Integers and add them together: //is there a way to make number3 and number4 "optional"? Se

Re: [4.1.2] EventListener and Effects

2007-08-30 Thread Igor Drobiazko
You can use the tapestry js api to attach the effects: dojo.require("tapestry.fx"); dojo.require("dojo.lfx"); tapestry.fx.attachPostEffect("some_client_id_1", function(){return dojo.lfx.highlight("some_client_id_2", [255, 255, 184]) }); "some_client_id_1" is the id of the u

[4.1.2] EventListener and Effects

2007-08-30 Thread Mike Oestereter
Hi I'm upgrading an app from 4.0 to 4.1.2. In the 4.0 app I have a PropertySelection that has eventListener pointing to a @tacos:EventSubmit that has a effects="template:{highlight:{any:'[255,255,184], 500, 500'}}" How do I get the effect thing to work in 4.1.2? My onchnage EventListener annotat

Re: T5:remember the loginned user

2007-08-30 Thread Josh Canfield
> > Try to jsessionid into your client cookie then access your page like this > http://host:80/ > /user/list;jessionid=owruoqweruqweruqwer0283434 > You will see the data which you just save in session. Adding jsessionid to your cookie will only work as long as your session is active, which doesn'

Re: ValidationDelete Error Message Display and locale (!) translation

2007-08-30 Thread ipoese
ipoese wrote: > > > Erik Vullings-2 wrote: >> >> Does this link help: >> http://wiki.apache.org/tapestry/Tapestry5HowToOverrideTheDefaultErrorMessageBanner >> > > in general, yes, that would help to customize the error message quite > nicely - however, i am using tapestry 4.1 and not 5. Does

Re: [T5]How can I change session expired time?

2007-08-30 Thread Marcus
Hi, Use WEB-INF/web.xml: 15 This apply to any Servlet Container (not a Tapestry configuration). Marcus

Re: [T5]How can I change session expired time?

2007-08-30 Thread Daniel Jue
I think you have to do that in your container (Tomcat, etc). On 8/30/07, ailon <[EMAIL PROTECTED]> wrote: > > Hi All, > > How can I change session expired time? > > > Thank you in advanced > > Guoguo Long. > > - > To unsubscribe,

Re: [T5]How can I change session expired time?

2007-08-30 Thread Marcos Chicote
in the web.xml there something like 30 change that number. On 8/30/07, ailon <[EMAIL PROTECTED]> wrote: > > Hi All, > > How can I change session expired time? > > > Thank you in advanced > > Guoguo Long. > > -

[T5]How can I change session expired time?

2007-08-30 Thread ailon
Hi All, How can I change session expired time? Thank you in advanced Guoguo Long. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: T5: Date picker component

2007-08-30 Thread Marcelo lotif
Hi, you just have to add it to your WEB-INF/lib and also add it to your classpath i'm using eclipse and this works for me... :) 2007/8/30, Juliet B <[EMAIL PROTECTED]>: > > > Hi, > > i'm new to Tapestry and I tried to use DatePicker component, but I really > can't figure out how to load the compon

Re: T5: Date picker component

2007-08-30 Thread Juliet B
Hi, i'm new to Tapestry and I tried to use DatePicker component, but I really can't figure out how to load the component in my eclipse project. I already searched the mailing list and find answers but it don't seem to work for me. Can anyone explain me clearly which steps I have to follow (add t

Re: T5:remember the loginned user

2007-08-30 Thread Allen Guo
Angelo Chen 写道: Hi, In my program I'd verify the user and create an ASO until he log out or the ASO expires. Now I'd like to add an option: 'remember me' like the one in yahoo, if checked, program will automatically login the user next time, how to achieve this? thanks. A.C. Try to jsession

Re: T5: Binding Date type

2007-08-30 Thread Marcelo lotif
Nick, can you tell me what Message class is this? What dependence should i add? I search on maven and there are too much dependencies to add and i can't figure out which to use. Thanks! 2007/8/30, Nick Westgate <[EMAIL PROTECTED]>: > > Google is your friend. ;-) > > http://www.google.com/search?s

[T4] log4j issue

2007-08-30 Thread Paolo Scopa
Hi, i tried to configure log4j to give me debug messagess of my application only The same configuration works fine outside of tapestry: however in t4 i receive all the debug messages from hibernate, tapestry etc, even if they are set to error. If i set the priority to error for the root, i don't s

T5:remember the loginned user

2007-08-30 Thread Angelo Chen
Hi, In my program I'd verify the user and create an ASO until he log out or the ASO expires. Now I'd like to add an option: 'remember me' like the one in yahoo, if checked, program will automatically login the user next time, how to achieve this? thanks. A.C. -- View this message in context: h

Re: T5: Binding Date type

2007-08-30 Thread Nick Westgate
Google is your friend. ;-) http://www.google.com/search?source=ig&hl=en&q=DateUtils&btnG=Google+Search Add this to your pom.xml: commons-lang commons-lang 2.3 Hopefully the type coercion systems will simplified to avoid this stuff. Cheers, Nick. Joshua Jackson wrote: Thanks Nic

Re: T5: Handling of images

2007-08-30 Thread Nick Westgate
Situations like this are exactly where it's needed. I think it was removed prematurely. You can just re-add the component and use it: http://wiki.apache.org/tapestry/Tapestry5AnyComponent There are another couple of example uses there. Cheers, Nick. Ted Steen wrote: Actually I dont think the

Re: T5: Binding Date type

2007-08-30 Thread Joshua Jackson
Thanks Nick, Can I also get the content of DateUtils. And which ParseException do I use? Thanks in advance On 8/30/07, Nick Westgate <[EMAIL PROTECTED]> wrote: > Add something like the following (tweak the date formats) to your > AppModule.java: -- It's not just about coding, it's a mat

Re: T5: Handling of images

2007-08-30 Thread Ted Steen
Actually I dont think the Any component exists anymore.. its not needed because of expansions in attributes. 2007/8/30, Nick Westgate <[EMAIL PROTECTED]>: > Sorry, that should be (still not ideal) ... > > > Cheers, > Nick. > > > Nick Westgate wrote: > > Why don't you read about it here: > > http:

Re: T5: Handling of images

2007-08-30 Thread Nick Westgate
Sorry, that should be (still not ideal) ... Cheers, Nick. Nick Westgate wrote: Why don't you read about it here: http://tapestry.apache.org/tapestry5/tapestry-core/guide/assets.html For instance, assets can be localized. Also, the Any component can be used to help previewability, e.g: Che

Re: T5: Handling of images

2007-08-30 Thread Nick Westgate
Why don't you read about it here: http://tapestry.apache.org/tapestry5/tapestry-core/guide/assets.html For instance, assets can be localized. Also, the Any component can be used to help previewability, e.g: Cheers, Nick. Angelo Chen wrote: Hi, Both of your suggestions work, thanks, I was

Re: T5: Handling of images

2007-08-30 Thread Angelo Chen
Hi, Both of your suggestions work, thanks, I was doing it hard way. btw, what's the difference: ${asset:context:img/ok0.gif} and img/ok0.gif A.C. Filip S. Adamsen-2 wrote: > > You can also specify assets inline using the asset prefix, that is: > > ${asset:context:img/ok0.gif} > > Wor

Re: T5: Handling of images

2007-08-30 Thread Filip S. Adamsen
You can also specify assets inline using the asset prefix, that is: width="37"/> Works like a charm. Robin Helgelin skrev: On 8/30/07, Erik Vullings <[EMAIL PROTECTED]> wrote: Hi Angelo, Can't you just use (in the HTML part of your page): and put the ok0.gif image in the src/main/webapp

Re: T5: Binding Date type

2007-08-30 Thread Nick Westgate
Add something like the following (tweak the date formats) to your AppModule.java: public static void contributeTranslatorDefaultSource( MappedConfiguration, Translator> configuration) { configuration.add(Date.class, new Translator() { /**

primaryKey converter problem

2007-08-30 Thread abhilash
Hi all, I have a table inside a form with a checkbox as a column.I am listing all the items in the table using primaryKeyConverter. When i select the checkbox(item) and submit the page my item(or items which is a collection) is becomming null.My code in HTML page is .

T5: Binding Date type

2007-08-30 Thread Joshua Jackson
Dear all, Currently I have a field with java.util.Date type in my page, but it seems that the java.util.Date type is not yet supported in Tapestry5. This is the exception that I get: org.apache.tapestry.ioc.internal.util.TapestryException No adapter from type java.util.Date to type org.apache.tap

Re: T5: Handling of images

2007-08-30 Thread Robin Helgelin
On 8/30/07, Erik Vullings <[EMAIL PROTECTED]> wrote: > Hi Angelo, > > Can't you just use (in the HTML part of your page): > > > and put the ok0.gif image in the src/main/webapp/img folder. You could, but then you would get a wrong url when you are using an action or something on your page, such a

Re: T5: Handling of images

2007-08-30 Thread Erik Vullings
Hi Angelo, Can't you just use (in the HTML part of your page): and put the ok0.gif image in the src/main/webapp/img folder. Cheers Erik On 8/30/07, Angelo Chen <[EMAIL PROTECTED]> wrote: > > > Hi, > > Everytime I need to display an image, I have to do something like this: > > @Inject >

RE: T5: Handling of images

2007-08-30 Thread Kolesnikov, Alexander GNI
Well, this is the price for having no XML specification ;) -Original Message- From: Angelo Chen [mailto:[EMAIL PROTECTED] Sent: 30 August 2007 10:17 To: users@tapestry.apache.org Subject: T5: Handling of images Hi, Everytime I need to display an image, I have to do something like this

T5: Handling of images

2007-08-30 Thread Angelo Chen
Hi, Everytime I need to display an image, I have to do something like this: @Inject @Path("context:/images/logo3.jpg") private Asset logo; public Asset getLogo() { return logo; } then in the template: ${logo} Is there an easier way? example, I can directl

Re: [T5] SelectObject component added to the Wiki

2007-08-30 Thread Robin Helgelin
On 8/30/07, 小司 <[EMAIL PROTECTED]> wrote: > I user it it works well > > > select component's html source is > Index > > no > > how to rectify it?? > > if i want to get this style ,how to modify the source > >IT department > > the value and display value is defferent. > Search the archives,

Re: [T4] dojo 0.9 upgrade, any plan?

2007-08-30 Thread 9902468
Any news from this subject? Martino Piccinato wrote: > > In a month or so I might be able to contribute some code. > But how to deal with backward compatibility? I mean switching to a > tapestry version with dojo 0.9 might oblige people to rewrite custom > widget and, in general, dojo code (un