Re: T 5.3 Alert and AlertManager Tutorials

2011-08-24 Thread TG
Yup GAEJ failed, but the method you wrote was not invoked. It might works if it does? :o -- View this message in context: http://tapestry.1045711.n5.nabble.com/T-5-3-Alert-and-AlertManager-Tutorials-tp4732469p4732903.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: T 5.3 Alert and AlertManager Tutorials

2011-08-24 Thread Josh Canfield
Load a page? Does GAE fail? On Aug 24, 2011 7:22 PM, "TG" wrote: > I put the method in AppModule but it does not seem to be invoked, anything > else I need to do? > > Thanks. > > -- > View this message in context: http://tapestry.1045711.n5.nabble.com/T-5-3-Alert-and-AlertManager-Tutorials-tp47324

Re: T 5.3 Alert and AlertManager Tutorials

2011-08-24 Thread TG
I put the method in AppModule but it does not seem to be invoked, anything else I need to do? Thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/T-5-3-Alert-and-AlertManager-Tutorials-tp4732469p4732706.html Sent from the Tapestry - User mailing list archive at Nabble.

Re: T 5.3 Alert and AlertManager Tutorials

2011-08-24 Thread Josh Canfield
I don't use GAE, but this might help: @Contribute(ServiceOverride.class) public static void createNOOPPeriodicExecutor(MappedConfiguration configuration) { configuration.add(PeriodicExecutor.class, new PeriodicExecutor() { @Override public PeriodicJob addJob(Sch

Re: T 5.3 Alert and AlertManager Tutorials

2011-08-24 Thread TG
I am stuck with issue https://issues.apache.org/jira/browse/TAP5-1616. What a bummer, seems like AlertManager depends on threading too? :( -- View this message in context: http://tapestry.1045711.n5.nabble.com/T-5-3-Alert-and-AlertManager-Tutorials-tp4732469p4732600.html Sent from the Tapestry -

Re: T 5.3 Alert and AlertManager Tutorials

2011-08-24 Thread Josh Canfield
You have old jars. You should grab tapestry-xxx-5.3-alpha-13.jar On Wed, Aug 24, 2011 at 6:12 PM, TG wrote: > I got the following in my WEB-INF/lib - > > plastic-5.3.jar > tapestry-annotations-5.3.0.jar > tapestry-beanvalidator-5.3.0.jar > tapestry-core-5.3.0.jar > tapestry-func-5.3.0.jar > tapes

Re: T 5.3 Alert and AlertManager Tutorials

2011-08-24 Thread Josh Canfield
> AlertManager is located in what jar? I am not using Maven. And I can't import > it from Eclipse ... It's in tapestry-core. What build do you have? If you're not already, try grabbing the alpha from https://repository.apache.org/content/repositories/staging/org/apache/tapestry/tapestry-core/5.3-

Re: T 5.3 Alert and AlertManager Tutorials

2011-08-24 Thread TG
I got the following in my WEB-INF/lib - plastic-5.3.jar tapestry-annotations-5.3.0.jar tapestry-beanvalidator-5.3.0.jar tapestry-core-5.3.0.jar tapestry-func-5.3.0.jar tapestry-hibernate-5.3.0.jar tapestry-hibernate-core-5.3.0.jar tapestry-ioc-5.3.jar tapestry-json-5.3.0.jar tapestry-test-5.3.0.ja

Re: T 5.3 Alert and AlertManager Tutorials

2011-08-24 Thread Chris Mylonas
jar tvf | grep AlertManager would be able to locate it. combine that command in a loop with all the tapestry jars in the same directory and on the bash prompt (if you're on mac/linux) for i in `ls *.jar` do jar tvf $i | grep AlertManager done and that will spit it out. HTH Chris the one l

Re: T 5.3 Alert and AlertManager Tutorials

2011-08-24 Thread TG
AlertManager is located in what jar? I am not using Maven. And I can't import it from Eclipse ... -- View this message in context: http://tapestry.1045711.n5.nabble.com/T-5-3-Alert-and-AlertManager-Tutorials-tp4732469p4732546.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: T 5.3 Alert and AlertManager Tutorials

2011-08-24 Thread Josh Canfield
don't forget the typos! :) On Wed, Aug 24, 2011 at 5:24 PM, Josh Canfield wrote: > I just happen to have thrown it in my self... > > Throw this in your template > >         > >  @Inject >    private AlertManager alertManager; > > and > >        alertManager.info("Not to self, explore options.");

Re: T 5.3 Alert and AlertManager Tutorials

2011-08-24 Thread Josh Canfield
I just happen to have thrown it in my self... Throw this in your template @Inject private AlertManager alertManager; and alertManager.info("Not to self, explore options."); This puts a message once. You can use the alertManager.alert(Duration.TRANSIENT, Severit

T 5.3 Alert and AlertManager Tutorials

2011-08-24 Thread TG
I would like to use the transient alert in the new T 5.3, but I could not find any sample codes anywhere. Does it exists? Could someone kindly send me a sample or two? :) TIA -- View this message in context: http://tapestry.1045711.n5.nabble.com/T-5-3-Alert-and-AlertManager-Tutorials-tp4732469p4

Re: How to create a war from Eclipse

2011-08-24 Thread nillehammer
Not quite Tapestry related, but anyway you can use the maven war plugin to create wars. It is as simple as the following command on the command line: mvn clean war:war Look here for further information: http://maven.apache.org/plugins/maven-war-plugin/ - http://www.winfonet.eu -- View this mes

Re: How to create a war from Eclipse

2011-08-24 Thread Chris Mylonas
(1) Right click on the project: Maven -> Enable dependency management (2) Right click on the project: Run As -> maven package If you don't have (1), you need the eclipse maven plugin: In eclipse, Help -> Install New Software and update this url to the update site URL list m2eclipse Core Update

How to create a war from Eclipse

2011-08-24 Thread Tim Koop
I've looked around for a way to create a .war file from Eclipse, but I can't find one. Can someone here please tell me how it's done? Thanks! For more information: - I've looked in "Export...", but no war option is there, probably because my Tapestry project is not a Web Application. - I thi

Re: [t5.2.6] Looping over a collection (The "value" attribute)

2011-08-24 Thread Chris Mylonas
>> Thanks a lot steve :) > > No probs, the guys in work do it all the time (I keep yelling at them, > but to no avail!). Sounds like tapestry attributes could use a do-not-use-expansions meme to send to your naughty devs - a la rickrolling :D /humour Chris

Possible bug in if evaluation (T5.2)

2011-08-24 Thread Wechsung, Wulf
Hello Guys, I think I found a bug in the if components evaluation of the test property expression with regards to zone updates. Specifically I can reproduce that an in a like the following: 1) test on not nullness of some reference (let's call it object) ie does not display the appro

Re: Tapestry 5.3: IOCSymbols.THREAD_POOL_ENABLED does not work!?

2011-08-24 Thread Massimo Lusetti
On Wed, Aug 24, 2011 at 7:17 PM, Kalle Korhonen wrote: > Which I did... Oh well... the mail arrived before the link ;-) Cheers -- Massimo http://meridio.blogspot.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache

Re: Tapestry 5.3: IOCSymbols.THREAD_POOL_ENABLED does not work!?

2011-08-24 Thread Kalle Korhonen
On Wed, Aug 24, 2011 at 10:15 AM, Massimo Lusetti wrote: > On Wed, Aug 24, 2011 at 7:12 PM, Kalle Korhonen > wrote: >> Not IoC, but core. Created issue >> https://issues.apache.org/jira/browse/TAP5-1616 but the problem >> (beyond just constructing the service) is TAP5-1572. > So you should link t

Re: Tapestry 5.3: IOCSymbols.THREAD_POOL_ENABLED does not work!?

2011-08-24 Thread Massimo Lusetti
On Wed, Aug 24, 2011 at 7:12 PM, Kalle Korhonen wrote: > Not IoC, but core. Created issue > https://issues.apache.org/jira/browse/TAP5-1616 but the problem > (beyond just constructing the service) is TAP5-1572. So you should link the two issues together. Cheers -- Massimo http://meridio.blogsp

Re: Tapestry 5.3: IOCSymbols.THREAD_POOL_ENABLED does not work!?

2011-08-24 Thread Kalle Korhonen
On Wed, Aug 24, 2011 at 9:43 AM, Thiago H. de Paula Figueiredo wrote: > On Wed, 24 Aug 2011 13:24:46 -0300, Kalle Korhonen > wrote: >> So TG, just confirming - does the whole app not work (not load) >> because of these errors? I worried that was the case after Howard >> added PeriodicExecutor. If

Re: Tapestry 5.3: IOCSymbols.THREAD_POOL_ENABLED does not work!?

2011-08-24 Thread Thiago H. de Paula Figueiredo
On Wed, 24 Aug 2011 13:24:46 -0300, Kalle Korhonen wrote: So TG, just confirming - does the whole app not work (not load) because of these errors? I worried that was the case after Howard added PeriodicExecutor. If so, I think we need to fix it. It's one thing not being able to use the servic

Re: Tapestry 5.3: IOCSymbols.THREAD_POOL_ENABLED does not work!?

2011-08-24 Thread Kalle Korhonen
On Wed, Aug 24, 2011 at 9:34 AM, TG wrote: > Whole app is not working anymore. Using alpha 12, it works. Not sure if this > helps. Thanks for confirming, I think we have a pretty good idea of what fails. > I remember the "backward compatibility" with GAEJ is one of the feature of > Tapestry, I a

Re: Tapestry 5.3: IOCSymbols.THREAD_POOL_ENABLED does not work!?

2011-08-24 Thread TG
Whole app is not working anymore. Using alpha 12, it works. Not sure if this helps. I remember the "backward compatibility" with GAEJ is one of the feature of Tapestry, I am hoping it is still true. Thanks! -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-5-3-IOCS

Re: Tapestry 5.3: IOCSymbols.THREAD_POOL_ENABLED does not work!?

2011-08-24 Thread Kalle Korhonen
So TG, just confirming - does the whole app not work (not load) because of these errors? I worried that was the case after Howard added PeriodicExecutor. If so, I think we need to fix it. It's one thing not being able to use the service but far worse if the failure in constructing this service prev

Re: [t5.2.6] Looping over a collection (The "value" attribute)

2011-08-24 Thread Robert Zeigler
You could use the range op with value and grab values from the list that way: ${reachabilityIndex} - ${reachabilitySummary.isEpUp} Where reachabilitySummary would be a pseudo-property: public Object getReachabilitySummary() { return reachabilityService.getReachabilityReportIpk().get(reach

Re: [t5.2.6] Looping over a collection (The "value" attribute)

2011-08-24 Thread Steve Eynon
> Thanks a lot steve :) No probs, the guys in work do it all the time (I keep yelling at them, but to no avail!). Think of using prop: as a way to specify a pointer to the getter / setter as oppose to just calling the ${getter}. > is it possible to specify the starting and ending index Nope. You

Re: Patching Tapestry for IE9 Prototype Bug

2011-08-24 Thread Joel Halbert
Confirmed, 5.2.6 fixes the problem in IE9. On Wed, 2011-08-24 at 14:00 +0100, Joel Halbert wrote: > Having read the bug comments I'm guessing TAP5-1257 is unrelated to the > IE9 issue so presumably 5.2.6 is the right version... > https://issues.apache.org/jira/browse/TAP5-1257 > > > > > On Wed

Re: [t5.2.6] Looping over a collection (The "value" attribute)

2011-08-24 Thread Muhammad Gelbana
Thanks a lot steve :) Let me add one more question please, is it possible to specify the starting and ending index through which I would like to loop ? like the original for loop for example. you can start at a specific index and end at a specific index ? I can try to figure out a way to make this

Re: [t5.2.6] Looping over a collection (The "value" attribute)

2011-08-24 Thread Steve Eynon
Yeah, I believe this is a common gotcha... Don't use ${property expansions} in t:attributes. Try this: wrote: > Oh sorry, here is the exception: > > org.apache.tapestry5.internal.services.RenderQueueException > Render queue error in BeginRender[Index:loop]: Failure writing parameter > 'value' o

Re: [T5.3] Passing page activation context to a component

2011-08-24 Thread Steve Eynon
> As soon as one component pops the object(s) Ahh - that's why there's an Environement.peek() !!! Or, in your component, you could just annotate the Object with @Environmental, e.g. @Environmental private MyTwoStrings ss; Steve. -- Steve Eynon On 24 August 2011 21:33, Borut Bolčina wrote: >

Re: [t5.2.6] Looping over a collection (The "value" attribute)

2011-08-24 Thread Muhammad Gelbana
Oh sorry, here is the exception: org.apache.tapestry5.internal.services.RenderQueueException Render queue error in BeginRender[Index:loop]: Failure writing parameter 'value' of component Index:loop: Could not find a coercion from type java.lang.String to type com.skycomm.cth.services.reachability.

Re: [T5.3] Passing page activation context to a component

2011-08-24 Thread Borut Bolčina
2011/8/24 Steve Eynon > If the component needs 2 string parameters to function, then it needs > 2 string parameters! (Much like if a method needs 2 strings, then you > need to pass 2 strings.) > > Well, yes :-) > Other alternatives are dependent on re-usability requirements: > > a) If the 2 str

Re: component scope service with injected messages

2011-08-24 Thread Steve Eynon
Hi, If you just want messages for your service (as in messages defined in MyService.properties) then, as nillihammer suggests, simply inject a Messages object. This is because Messages is actually an org.apache.tapestry5.ioc.Messages and is defined and utilised by the IOC layer. I believe Tapestr

[t5.2.6] Looping over a collection (The "value" attribute)

2011-08-24 Thread Muhammad Gelbana
Hi all, I know this is a trivial matter but I've been trying to solve it for sometime now and I just can't figure out what am I doing wrong !! I have an Index.java class with this property: @Property @Inject private ReachabilityService reachabilityService; @Property private int re

Re: Tapestry 5.3: IOCSymbols.THREAD_POOL_ENABLED does not work!?

2011-08-24 Thread Thiago H. de Paula Figueiredo
On Wed, 24 Aug 2011 09:12:56 -0300, TG wrote: Could any other kind soul advice if this flag works at all in the latest alpha? If I revert to some other version before alpha 13 of 5.3, it works but it has some other issue like - I've posted this before to somehow it didn't make it to the list:

Re: Changing the look of the validation bubbles

2011-08-24 Thread Steve Eynon
Hi, I believe the images are provided by the CSS in "org.apache.tapestry5.default.css". e.g. DIV.t-error-popup SPAN { background: transparent url('error-bevel-left.gif') no-repeat; } You could override the CSS with your own which points to your own images. Steve. -- Steve Eynon On 24 Augu

Re: New to Tapestry, problem with EditBlock.

2011-08-24 Thread Edwin
Added @Persist works. Thanks Steve! -- View this message in context: http://tapestry.1045711.n5.nabble.com/New-to-Tapestry-problem-with-EditBlock-tp4727269p4730354.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Patching Tapestry for IE9 Prototype Bug

2011-08-24 Thread Joel Halbert
Having read the bug comments I'm guessing TAP5-1257 is unrelated to the IE9 issue so presumably 5.2.6 is the right version... https://issues.apache.org/jira/browse/TAP5-1257 On Wed, 2011-08-24 at 13:56 +0100, Joel Halbert wrote: > So the reason I went straight to 5.3 was that the following BUG

Changing the look of the validation bubbles

2011-08-24 Thread dkeenan
Hi guys. Is it possible to access the imaes that are used by validation bubbles? I wanted to make the less round and change the colour. any ideas? Thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Changing-the-look-of-the-validation-bubbles-tp4730327p4730327.html Se

Re: New to Tapestry, problem with EditBlock.

2011-08-24 Thread Steve Eynon
Hi, I'm thinking you need to either a) have an onPassivate() page method String onPassivate() { return job.getName(); } or b) persist your job @Persist @Property private ScheduledJob job; For I'm guessing your Job doesn't exist in the action / event phase when you submit. Steve. -- Steve E

Re: Patching Tapestry for IE9 Prototype Bug

2011-08-24 Thread Joel Halbert
So the reason I went straight to 5.3 was that the following BUG fix is listed in the 5.3 release notes: [TAP5-1257] - Javascript error with IE Prototype still in 1.7 Any confirmation from the dev team as to the right version to use to fix the zone update bug (see link) in IE9 much appreciated.

Re: Patching Tapestry for IE9 Prototype Bug

2011-08-24 Thread Joel Halbert
Would be good if that's the case, I'll try it out. Since it wasn't listed as a bug fix I presumed it was not included. Presumably Tap's not counting it as a bug since it's in the js libs? On Wed, 2011-08-24 at 14:50 +0200, Chris Poulsen wrote: > Hi, > > I haven't been following this closely, b

Re: Patching Tapestry for IE9 Prototype Bug

2011-08-24 Thread Chris Poulsen
Hi, I haven't been following this closely, but are you sure that the most recent 5.2 build (5.2.6) does not contain what you need? It has some updates to the js libs as far as i can tell from the release notes? http://tapestry.apache.org/release-notes-52.html#ReleaseNotes5.2-ReleaseNotes%253ATap

Re: Patching Tapestry for IE9 Prototype Bug

2011-08-24 Thread LLTYK
5.2.6 has Prototype 1.7 and presumably those fixes. -- View this message in context: http://tapestry-users.832.n2.nabble.com/Patching-Tapestry-for-IE9-Prototype-Bug-tp6719594p6719989.html Sent from the Tapestry Users mailing list archive at Nabble.com. ---

Re: [T5.3] Passing page activation context to a component

2011-08-24 Thread Steve Eynon
If the component needs 2 string parameters to function, then it needs 2 string parameters! (Much like if a method needs 2 strings, then you need to pass 2 strings.) Other alternatives are dependent on re-usability requirements: a) If the 2 strings are always used together then wrap them in a valu

Re: Tapestry 5.3: IOCSymbols.THREAD_POOL_ENABLED does not work!?

2011-08-24 Thread TG
Could any other kind soul advice if this flag works at all in the latest alpha? If I revert to some other version before alpha 13 of 5.3, it works but it has some other issue like - Exception constructing service 'PageSource': Error invoking service builder method org.apache.tapestry5.internal.ser

Re: Patching Tapestry for IE9 Prototype Bug

2011-08-24 Thread Joel Halbert
It's pretty frustrating there there is no procedure on the Tap website for patching 5.2.X for the prototype IE9 bug. And any links in the mailing list archive that point to git have expired. I'd have thought this was a pretty serious bug. Unfortunately for us we've only just realised it's affecti

Re: Patching Tapestry for IE9 Prototype Bug

2011-08-24 Thread Joel Halbert
Who knows, and even if it is, what next? On Wed, 2011-08-24 at 06:57 -0500, Barry Books wrote: > Is this the commit? > > https://github.com/hlship/tapx/commit/46e1ca9d4a6463feb708e0d3074ca759690331dd > > - > To unsubscribe, e-ma

Re: Patching Tapestry for IE9 Prototype Bug

2011-08-24 Thread Barry Books
Is this the commit? https://github.com/hlship/tapx/commit/46e1ca9d4a6463feb708e0d3074ca759690331dd - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: component scope service with injected messages

2011-08-24 Thread nillehammer
The easiest way is to define your service methods with an additional Messages parameter. This way you can use the Messages within the service methods. - http://www.winfonet.eu -- View this message in context: http://tapestry.1045711.n5.nabble.com/component-scope-service-with-injected-messages

Re: Tapestry apache2 and tomcat

2011-08-24 Thread nillehammer
Hi Dimitri, I cannot recommend to fumble around with the path-Part of an URI. I have once tried that in an PHP-App and ended up in a hard to maintain combination of Apache-directives and app-level processing of the paths. IMHO the best you should do is to make simple Proxy-directives to forward re

Re: Patching Tapestry for IE9 Prototype Bug

2011-08-24 Thread Joel Halbert
Oof, does this https://github.com/hlship/tapx/commit/6088137226a045e03faca2e1c4e0cb62f94c9c3c mean that we need to upgrade to 5.3 to fix this? Does anyone have a version of the original patch or know how I can access it from git-hub? On Wed, 2011-08-24 at 11:34 +0100, Joel Halbert wrote: > Hi F

Re: New to Tapestry, problem with EditBlock.

2011-08-24 Thread Edwin
I posted most of the related code in the first post, if you could take a look; would be most helpful. On 23 August 2011 18:11, Thiago H. de Paula Figueiredo [via Tapestry] < ml-node+4727697-2096551977-244...@n5.nabble.com> wrote: > On Tue, 23 Aug 2011 13:50:39 -0300, Vignir Jónsson <[hidden >

Patching Tapestry for IE9 Prototype Bug

2011-08-24 Thread Joel Halbert
Hi Folks, We're on T 5.2.4. Are these instructions for patching Tap for IE9 up-to-date? http://tapestry.1045711.n5.nabble.com/Re-Prototype-IE9-update-td4331824.html The tapestry-js-fixes.js file Howard refers to seems not to exist. https://github.com/hlship/tapx/blob/master/tapx-prototype/src

[T5.3] Passing page activation context to a component

2011-08-24 Thread Borut Bolčina
Hi, if a component needs to have its parent's activation context (say two strings), is the preffered way to pass it as parameters or is there a "less code way"? The solution must not use a session. Cheers, Borut

Tapestry 5.3 and jpa

2011-08-24 Thread mahermeg17
hi i'm trying to integrate t5.3 and jpa like on this tow topics: http://blog.tapestry5.de/index.php/2011/05/25/jpa-support-in-tapestry/ and http://tapestry.apache.org/integrating-with-jpa.html they are a bit difference between them but both @ApplicationDefaults and @FactoryDefaults are not ok: "The