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

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

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 <mailingl...@nesluop.dk> wrote: > Normally you would return an Object[] from passivate and tapestry will > coerce it into the correct result. > > -- > Chris > > On Mon, Nov 28, 2016

Re: Recommended way to instantiate EventContext

2016-11-28 Thread Adam X
/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 <vbgnm3c...@gmail.com> wrote: > I'm trying to

Re: Recommended way to instantiate EventContext

2016-11-28 Thread Adam X
private String somevalue; > > Foo > > void onFoo(String someValue) { > > } > > or- > > @Property > private String bar; > > @Property > private Integer baz; > > Foo > > void onFoo(String bar, Integer baz) { > > } > >

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
ventlink targets zone2. > > Hope this helps! > > Peter > > On 28 November 2016 at 17:48, Adam X <vbgnm3c...@gmail.com> wrote: > >> Hi, >> >> This jumpstart example uses zone attribute as in the title: >> >> http://jumpstart.doublenegative.com.a

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

Re: Tynamo Security Login Page

2016-11-21 Thread Adam X
e :) Adam On Thu, Nov 10, 2016 at 5:46 PM, Kalle Korhonen <kalle.o.korho...@gmail.com> wrote: > On Thu, Nov 10, 2016 at 2:51 AM, Adam X <vbgnm3c...@gmail.com> wrote: > >> 1) >> How do I customize the login page? >> a) I'd like to edit error messages: "You m

Re: Tynamo Security Login Page

2016-11-10 Thread Adam X
t; just replace the whole block with <:tsecurity.loginlink>. > > Kalle > > On Wed, Nov 9, 2016 at 9:03 AM, Adam X <vbgnm3c...@gmail.com> wrote: > >> I have tapestry-security integrated and working in my project. Page >> classes annotated with shiro such a

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:

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 <vbgnm3c...@gmail.com> wrote: > So I set org.apache.shiro to DEBUG level and discovered that Shiro is > actual

Re: Tynamo Security w/ custom Realm

2016-11-09 Thread Adam X
y-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 <vbgnm3c...@gmail.com> wrote: > Hi Kyle, > > Thanks for taking a look. Indeed, I made the assumption that

Re: Tynamo Security w/ custom Realm

2016-11-08 Thread Adam X
atcher 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. > > Kalle > > On Tue

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

Re: tapestry-hibernate + tapestry-cdi

2016-09-23 Thread Adam X
a on an application that accesses 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 <vbgnm3c...@gmail.com> wrote: >> >> Yes, JPA s

Re: tapestry-hibernate + tapestry-cdi

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

Re: tapestry-hibernate + tapestry-cdi

2016-09-23 Thread Adam X
wrote: > What about exclude tapestries default hibernate dependency with Maven exclude? > > Sent from my iPhone > >> On 23 Sep 2016, at 09:05, Adam X <vbgnm3c...@gmail.com> wrote: >> >> Hi, >> >> I have what seems like a major collision problem and do

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

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

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

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
More info: https://issues.apache.org/jira/browse/TAP5-2138 >> >> On 20 Sep 2016 5:04 p.m., "Adam X" <vbgnm3c...@gmail.com> wrote: >> >>> I would like to have multiple (overloaded) onActivate methods in my >>> page but seems like Tapestry is al

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
g/property-expressions.html > > On 18 Sep 2016 11:13 a.m., "Bob Harner" <bobhar...@gmail.com> 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

Re: Multiple Context Parameters

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

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

Re: Getting ID of an updated zone

2016-09-17 Thread Adam X
ndering the new html for the updated 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 <vbgnm3c...@gmail.com> wrote: > >

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

Re: JS call on AJAX zone update

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

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 <vbgnm3c...@gmail.com> wrote: > Thanks for that pointer. But I'm no javascript

Re: JS call on AJAX zone update

2016-09-15 Thread Adam X
hanged'); }); Adam On Thu, Sep 15, 2016 at 10:01 AM, Chris Poulsen <mailingl...@nesluop.dk> 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 <vbgnm3

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
m.au/jumpstart7/ the > examples relatives to ajax periodic update > > Regards > > Carlos Montero > > Enviado desde mi iPhone > >> El 14 sept 2016, a las 9:23, Adam X <vbgnm3c...@gmail.com> escribió: >> >> Hello Tapestry, >> >> I am implemen

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:

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

Re: Integrating Tapstry IOC only

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

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 <vbgnm3c...@gmail.com> wrote: > No I haven't. But I added it, and 303 ann

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
he 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 <vbgnm3c...@gmail.com> wrote: > >> >

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

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

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

Re: EJB JNDI based on execution environment

2015-03-30 Thread Adam X
:34:29 +1100, Adam X vbgnm3c...@gmail.com wrote: 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

Re: EJB JNDI based on execution environment

2015-03-30 Thread Adam X
] pl.ourapp.services.AppModule [ejb.local] is contributing: oo.jndi.registrationdao = RegistrationDaoRemote Thanks On Mon, Mar 30, 2015 at 1:47 PM, Adam X vbgnm3c...@gmail.com wrote: What I mean we do not want have as tightly coupled code with things like EjbProviderEnum and BusinessServicesLocator

Re: EJB JNDI based on execution environment

2015-03-30 Thread Adam X
above is running in JBoss. On 30 Mar 2015, at 8:27 pm, Adam X vbgnm3c...@gmail.com wrote: We have a different way of hooking up EJBs, and it and works great - that's not the issue. Our EJBs are further decoupled from Tapestry that what Jumpstart has done and we prefer to keep it this way. We

Re: Exception Constructing CacheManager (EhCache)

2015-03-23 Thread Adam X
still would be interested where (or how) in 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 vbgnm3c...@gmail.com wrote: Howdy, I'm trying to run my app on Hibernate-Mysql

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 vbgnm3c...@gmail.com wrote: What's the best approach for a single build of an app with global presence? I'm not asking for localisation, but subtle functional

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

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
ComponentTemplateSourceImpl.checkForUpdates() on a regular basis to detect template changes. Hope that helps. Felix 2015-03-18 15:38 GMT+01:00 Adam X vbgnm3c...@gmail.com: Howdy, I'm returning to Tapestry after several years of inactivity and I'm attempting a new project with T5.3.7. Ran

Re: Live Class Reloading

2015-03-19 Thread Adam X
: On Thu, 19 Mar 2015 03:06:29 -0300, Adam X vbgnm3c...@gmail.com 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(SymbolConstants.PRODUCTION_MODE, false

Re: Live Class Reloading

2015-03-19 Thread Adam X
://www.pimdb.de m...@pimdb.de 2015-03-19 7:06 GMT+01:00 Adam X vbgnm3c...@gmail.com: 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 also did a simple test by changing tapestryVersion

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 vbgnm3c...@gmail.com wrote: So

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: