Ajax event for inplace Grid page change

2016-12-07 Thread Adam X
Howdy, I'm trying to implement status counter underneath a grid, something like: Showing 5 - 10 of 100 My grid is handled via ajax (inPlace="true"). Is there a page change event or something similar that grid's pager emits so that I can hook up to it? Something like: void onPageChangeFromMyGri

Preventing context from passivate

2016-12-01 Thread Adam X
Hello! In my Layout I have action/event links (logout, etc). If a page inside a layout passivates context, layout links get that context. But I don't want them to. How do you prevent links from getting page passivated context? Cheers, Adam

Paged Grid on active data source

2016-11-30 Thread Adam X
Howdy again! This question is probably not so much about Tapestry but from what I see on this list some of you have build and/or are maintaining large enterprise apps in T5. I'm building such an app and I'm facing a dillema on a TransactionView page (navigated from TransactionSearch page). I'm no

Re: Recommended way to instantiate EventContext

2016-11-29 Thread Adam X
Thanks Chris. I got it all working. On Mon, Nov 28, 2016 at 7:32 PM, Chris Poulsen wrote: > Normally you would return an Object[] from passivate and tapestry will > coerce it into the correct result. > > -- > Chris > > On Mon, Nov 28, 2016 at 6:41 PM, Adam X wrote: > &

Re: Recommended way to instantiate EventContext

2016-11-28 Thread Adam X
actionlist/fromdate/untildate where fromdate and untildate are url contexts, the zone reloads page with this: /transactionlist and I can't seem to figure out how to tell it to reload whatever URL was there. Adam On Mon, Nov 28, 2016 at 6:23 PM, Adam X wrote: > I'm trying to pass

Re: Recommended way to instantiate EventContext

2016-11-28 Thread Adam X
vate String somevalue; > > Foo > > void onFoo(String someValue) { > > } > > or- > > @Property > private String bar; > > @Property > private Integer baz; > > Foo > > void onFoo(String bar, Integer baz) { > > } > > Is that sort of what yo

Recommended way to instantiate EventContext

2016-11-28 Thread Adam X
Howdy again! So what's the approved Tapestry way to create an instance of this interface? Adam - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: zone="^"

2016-11-28 Thread Adam X
this helps! > > Peter > > On 28 November 2016 at 17:48, Adam X wrote: > >> Hi, >> >> This jumpstart example uses zone attribute as in the title: >> >> http://jumpstart.doublenegative.com.au/jumpstart7/examples/ >>

zone="^"

2016-11-28 Thread Adam X
Hi, This jumpstart example uses zone attribute as in the title: http://jumpstart.doublenegative.com.au/jumpstart7/examples/javascript/modal/1 What does this notation mean? I can't find any documentation on this. Adam - To unsu

Re: Tynamo Security Login Page

2016-11-21 Thread Adam X
ith me :) Adam On Thu, Nov 10, 2016 at 5:46 PM, Kalle Korhonen wrote: > On Thu, Nov 10, 2016 at 2:51 AM, Adam X wrote: > >> 1) >> How do I customize the login page? >> a) I'd like to edit error messages: "You must provide a value for Tynamo >> Login."

Re: Tynamo Security Login Page

2016-11-10 Thread Adam X
e name. Use or > just replace the whole block with <:tsecurity.loginlink>. > > Kalle > > On Wed, Nov 9, 2016 at 9:03 AM, Adam X wrote: > >> I have tapestry-security integrated and working in my project. Page >> classes annotated with shiro such as @RequiresAuthentication get >

Tynamo Security Login Page

2016-11-09 Thread Adam X
I have tapestry-security integrated and working in my project. Page classes annotated with shiro such as @RequiresAuthentication get intercepted with the login page. What is the best way to create a link on my page that redirects to tap security login page? In my Laout.java I tried this: @Pr

Re: Tynamo Security w/ custom Realm

2016-11-09 Thread Adam X
Hello All - just want to say everything in Shiro was configured ok. The bug was in the implementation of my mock dao. All works nicely On Wed, Nov 9, 2016 at 2:49 PM, Adam X wrote: > So I set org.apache.shiro to DEBUG level and discovered that Shiro is > actually correctly authenticati

Re: Tynamo Security w/ custom Realm

2016-11-09 Thread Adam X
pestry-security automagically handles redirect after login. My page is very simple: @RequiresRoles("administrator") public class Contact { } On Tue, Nov 8, 2016 at 8:30 PM, Adam X wrote: > Hi Kyle, > > Thanks for taking a look. Indeed, I made the assumption that > SimpleCredenti

Re: Tynamo Security w/ custom Realm

2016-11-08 Thread Adam X
gt; SimpleCredentialsMatcher by so it should match plain text passwords. Are > you sure it's not authenticating, or is doGetAuthenticationInfo invoked at > all? Do you have any other realms configured? Get the simple, single realm > use case working first and work from there. > &g

Tynamo Security w/ custom Realm

2016-11-08 Thread Adam X
Howdy ! I followed tynamo setup guide (http://www.tynamo.org/tapestry-security+guide/) combined with federated accounts example (https://github.com/tynamo/tynamo-federatedaccounts). I believe I have the setup hooked up correctly as my annotated page with @RequiresRoles("administrator") is not inte

Re: tapestry-hibernate + tapestry-cdi

2016-09-23 Thread Adam X
cesses 3 databases, 1 > Postgres and 2 mssql. It's just fine. Surprised tapestry hibernate doesn't > support this. > > Sent from my iPhone > >> On 23 Sep 2016, at 09:36, Adam X wrote: >> >> Yes, JPA should an option. I don't think foo uses a single

Re: tapestry-hibernate + tapestry-cdi

2016-09-23 Thread Adam X
build against the version of your choice. > > Kalle > > On Fri, Sep 23, 2016 at 1:05 AM, Adam X wrote: > >> Hi, >> >> I have what seems like a major collision problem and don't know how to >> solve this. My current architecture is as following: >> >

Re: tapestry-hibernate + tapestry-cdi

2016-09-23 Thread Adam X
ude tapestries default hibernate dependency with Maven exclude? > > Sent from my iPhone > >> On 23 Sep 2016, at 09:05, Adam X wrote: >> >> Hi, >> >> I have what seems like a major collision problem and don't know how to >> solve this. My current architectu

tapestry-hibernate + tapestry-cdi

2016-09-23 Thread Adam X
Hi, I have what seems like a major collision problem and don't know how to solve this. My current architecture is as following: foo weld tapestry-cdi tapestry-core I'd like to have: foo weld tapestry-cdi tapestry-hibernate foo (jar) is a major depenency of my project. It is an internal company

Re: org.apache.tapestry5.services.javascript.Initialization.with(Object... arguments)

2016-09-22 Thread Adam X
"); > > Best regards, > Cezary > > > On Thu, Sep 22, 2016 at 5:54 PM, Adam X wrote: > >> Is there a reason this is not a fluid setter? Right now I have to do: >> >> Initialization foo = jsSupport.require("foo"); >> foo.with("bar");

org.apache.tapestry5.services.javascript.Initialization.with(Object... arguments)

2016-09-22 Thread Adam X
Is there a reason this is not a fluid setter? Right now I have to do: Initialization foo = jsSupport.require("foo"); foo.with("bar"); foo.invoke("myFunc"); I'd rather just do: jsSupport.require("foo").with("bar").invoke("myFunc") but with(Object...) returns void :( Adam -

Re: Multiple Page activation context

2016-09-20 Thread Adam X
ing values will simply be null >> >> Eg: >> @PageActivationContext(index=0) private String value0; >> @PageActivationContext(index=1) private String value1; >> @PageActivationContext(index=2) private String value2; >> >> More info: https://issues.apache.org/jira/browse/TAP5-

Multiple Page activation context

2016-09-20 Thread Adam X
I would like to have multiple (overloaded) onActivate methods in my page but seems like Tapestry is always picking a method with fewest arguments. How can I achieve something like this? TargetPage { void onActivate(String foo, String bar) { } void onActivate(String foo, Long id1, Long id2) { }

Re: Multiple Context Parameters

2016-09-18 Thread Adam X
ns.html > > On 18 Sep 2016 11:13 a.m., "Bob Harner" wrote: > >> Yes, that's the correct way to do it. I think you could also do >> t:context="foo,bar" if both foo and bar are properties (e.g. a getter for >> each). >> On Sep 17, 2016 3:24 P

Re: Multiple Context Parameters

2016-09-17 Thread Adam X
ublic void onAjax(String txId, String fmt) { } This works. Adam On Sat, Sep 17, 2016 at 3:18 PM, Adam X wrote: > Hi, > > I have the following event link which works (with single context parameter) > > zone="payloadZone">raw > > In my page class I have the

Multiple Context Parameters

2016-09-17 Thread Adam X
Hi, I have the following event link which works (with single context parameter) raw In my page class I have the associated handler: public void onDoAjax(boolean format) { log.debug("{}", format); } Now, I'd like to add a second (dynamic) context parameter. By dynamic I mean a p

Re: Getting ID of an updated zone

2016-09-17 Thread Adam X
ated zone, before the response is even > sent (instead of waiting for the zone to be updated, then sending a new > request to the server informing it of the update)? > > On Sat, Sep 17, 2016 at 11:17 AM, Adam X wrote: > >> Hi, >> >> I'm trying to wrap my

Getting ID of an updated zone

2016-09-17 Thread Adam X
Hi, I'm trying to wrap my head around the new 5.4 JS support. I have the following module which gets invoked whenever a zone is updated, however, I have 12 zones on my page periodically updated. I don't know at runtime which zone is updated, but I need to be notified about it. So I have the follo

Re: JS call on AJAX zone update

2016-09-15 Thread Adam X
function( dom, events ) > { > dom.onDocument(events.zone.didUpdate, function() { > alert( 'updated' ); > }); > > return null; > } ); > > } ).call( this ) > > On Thu, Sep 15, 2016 at 10:38 AM, Adam X

Re: JS call on AJAX zone update

2016-09-15 Thread Adam X
I was able to do this with an ajax renderer callback. This example helped me: http://jumpstart.doublenegative.com.au/jumpstart7/examples/javascript/modal/1 Thanks! On Thu, Sep 15, 2016 at 10:13 AM, Adam X wrote: > Thanks for that pointer. But I'm no javascript expert. I tried the >

Re: JS call on AJAX zone update

2016-09-15 Thread Adam X
ge(function() { alert('changed'); }); Adam On Thu, Sep 15, 2016 at 10:01 AM, Chris Poulsen wrote: > Take a look at > http://tapestry.apache.org/current/coffeescript/events.html#section-16 to > see which events to listen for > > On Thu, Sep 15, 2016 at 9:40 AM, Adam X

JS call on AJAX zone update

2016-09-15 Thread Adam X
Hi, I know I'm missing something, but what's the easiest, cleanest Tapestry way to hook a JS function whenever zone is updated via AJAX? For example, something simple like: alert('zone updated'); Adam - To unsubscribe, e-mail:

Re: Ajax self refresh

2016-09-14 Thread Adam X
ives to ajax periodic update > > Regards > > Carlos Montero > > Enviado desde mi iPhone > >> El 14 sept 2016, a las 9:23, Adam X escribió: >> >> Hello Tapestry, >> >> I am implementing a page which displays various transaction counts. >> Thes

Ajax self refresh

2016-09-14 Thread Adam X
Hello Tapestry, I am implementing a page which displays various transaction counts. These counts must be auto refreshed via ajax every few seconds. How do I get Tapestry zone to auto refrsh itself? Essentially what I want to achieve is something like this: http://cdn.crunchify.com/wp-content/upl

tapestry-cdi veto resolution

2016-09-08 Thread Adam X
Hi Guys, Hello Tapestry, I've noticed that tapestry-cdi rather aggresively protects tapestry managed beans from CDI beans. When I introduced my CDI managed JAR which also had its own components, tapestry-cdi vetoed it. For example, consiter Tap5 app root is: com.foo.bar And some CDI enabled JAR

Re: Integrating Tapstry IOC only

2016-04-22 Thread Adam X
0 PM, Thiago H de Paula Figueiredo < > thiag...@gmail.com> wrote: > >> On Thu, 21 Apr 2016 04:18:30 -0300, Adam X wrote: >> >> Hi >>> >> >> Hi! >> >> I have a rest project (no gui) with CDI backed by Weld. I would like to >>>

Integrating Tapstry IOC only

2016-04-21 Thread Adam X
Hi I have a rest project (no gui) with CDI backed by Weld. I would like to switch to Tapestry IOC instead. Are there any good tutorials that cover this? Adam

Re: 5.4 JSR-303 on Entities

2015-11-17 Thread Adam X
Should @org.hibernate.validator.constraints.Email on a bean field be validated by Tapestry or just the JSR 303? @Validate("email") works, but @Email doesn't. Adam On Tue, Nov 17, 2015 at 3:30 PM, Adam X wrote: > No I haven't. But I added it, and 303 annotations are p

Re: 5.4 JSR-303 on Entities

2015-11-17 Thread Adam X
No I haven't. But I added it, and 303 annotations are picked up. Thank You! On Tue, Nov 17, 2015 at 3:28 PM, WILBERT Romain-ext < romain.wilbert-...@pole-emploi.fr> wrote: > Have you tried to add "validate=user" on your form tag ? > > -Message d'origine

5.4 JSR-303 on Entities

2015-11-17 Thread Adam X
Seems like T 5.4-rc-1 is not validating fields entity fields annotated with JSR-303, but it does when field is annotated with @Validate. Abbreviated Example: @Entity public class User { . @NotNull private String foo; @Validate("required") private String bar; // getters/setters } Page.java

Re: Jumpstart 6.10 Installation

2015-10-26 Thread Adam X
; > As for the first issue, I’ll get back to you on that after I have > recreated your situation. What operating system are you on? Linux? Are you > using Eclipse? > > > > Geoff > > > >> On 25 Oct 2015, at 1:00 am, Adam X wrote: > >> > >> Hello, &

Jumpstart 6.10 Installation

2015-10-24 Thread Adam X
Hello, I am trying to get jumpstart running locally. I got it to the point it builds and boots without errors, but I have two issues I don't seem to be able to resolve:\ * First * Populating openejb HSQL database. Executing data_util > repopulate_database_prompted results in the following error:

Tapestry Book

2015-05-11 Thread Adam X
Howdy, I am writing what in the end will be a freely redistributable book on Java EE Architecture in a PDF format with several language translations available. Tapestry is featured as the showcase UI component, but I expect other front ends as well, mainly Spring and Wicket (at a later time). Hibe

Re: EJB JNDI based on execution environment

2015-03-30 Thread Adam X
Module [ejb.local] is contributing: oo.jndi.registrationdao => RegistrationDaoRemote Thanks On Mon, Mar 30, 2015 at 1:47 PM, Adam X wrote: > What I mean we do not want have as tightly coupled code with things like > EjbProviderEnum and BusinessServicesLocator with if-then for each >

Re: EJB JNDI based on execution environment

2015-03-30 Thread Adam X
I develop with OpenEJB but usually > deploy in JBoss - eg. the JumpStart demo above is running in JBoss. > > On 30 Mar 2015, at 8:27 pm, Adam X wrote: > > > We have a different way of hooking up EJBs, and it and works great - > that's > > not the issue. Our EJBs are further

Re: EJB JNDI based on execution environment

2015-03-30 Thread Adam X
; valuesStr += "\"" + ejbProviderEnum.name() + "\", "; > } > > return valuesStr.substring(0, valuesStr.lastIndexOf(",")); > } > > Geoff > > On 30 Mar 2015, at 7:43 pm, Chris Mylonas wrote: > > http://jumpstart.doublenegative.com.au/ju

EJB JNDI based on execution environment

2015-03-30 Thread Adam X
Hi, I have a different JNDI lookup depending on exec env. I have an AppModule with EJB sub: @SubModule(EjbModule.class) AppModule And my EJB mod does all the EJB plumbing building the context and delegating the looking up of EJBs to EjbLocatorModule. As far as building my beans I would like to i

Re: Design / Best Practice on Multinational App

2015-03-23 Thread Adam X
I chose to go with approach I've seen done before. Common base and regional forks as needed. On Fri, Mar 20, 2015 at 3:39 PM, Adam X wrote: > What's the best approach for a single build of an app with global > presence? I'm not asking for localisation, but subtle functiona

Re: Exception Constructing CacheManager (EhCache)

2015-03-23 Thread Adam X
Tapestry hierarchy this exception should be handled if one chose to use full ehcache dependency (rather than just the core). Adam On Sun, Mar 22, 2015 at 6:24 PM, Adam X wrote: > Howdy, > > I'm trying to run my app on Hibernate-Mysql-T5.3.7 stack. It runs fine, > but w

Exception Constructing CacheManager (EhCache)

2015-03-22 Thread Adam X
Howdy, I'm trying to run my app on Hibernate-Mysql-T5.3.7 stack. It runs fine, but when I try to add EhCache I'm getting the following exception: Exception constructing service 'ValueEncoderSource': Error invoking service contribution method org.apache.tapestry5.hibernate.HibernateModule.contribu

Design / Best Practice on Multinational App

2015-03-20 Thread Adam X
What's the best approach for a single build of an app with global presence? I'm not asking for localisation, but subtle functional differences. Some examples are Address entity bean, which requires a state for some countries, but not for the others. Do I build separate Address bean for each region

Re: Live Class Reloading

2015-03-19 Thread Adam X
1 / 15427385 > > http://www.pimdb.de > m...@pimdb.de > > 2015-03-19 7:06 GMT+01:00 Adam X : > > > Hi Felix - I also, once again, just created project and it is production > > mode (not reporting development next to tapestry logo in the log > output). I > > al

Re: Live Class Reloading

2015-03-19 Thread Adam X
I get that. My point is that setting up execution mode for development renders contribution for PRODUCTION_MODE useless. On Thu, Mar 19, 2015 at 3:39 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Thu, 19 Mar 2015 09:46:25 -0300, Adam X wrote: > > So the co

Re: Live Class Reloading

2015-03-19 Thread Adam X
gt; On Thu, 19 Mar 2015 03:06:29 -0300, Adam X wrote: > > it development, but again, this should not be necessary with >> configuration.add(SymbolConstants.PRODUCTION_MODE, >> false); unless I'm getting it wrong. >> > > Have you tried configuration.add(Symb

Re: Live Class Reloading

2015-03-18 Thread Adam X
y logo. > > The CheckForUpdatesFilter should > call ComponentTemplateSourceImpl.checkForUpdates() on a regular basis to > detect template changes. > > Hope that helps. > > Felix > > > 2015-03-18 15:38 GMT+01:00 Adam X : > > > Howdy, > > > > I'm returning to Tapestry afte

Live Class Reloading

2015-03-18 Thread Adam X
Howdy, I'm returning to Tapestry after several years of inactivity and I'm attempting a new project with T5.3.7. Ran a standard tut and found out that Live Class Reloading (following the tutorial) does not work unless Eclipse RJR Run Config is amended with a JVM param: -Dtapestry.execution-mode=d