Re: tapestry background jobs in a clustered environment

2017-07-10 Thread Barry Books
While it does create a separate process I run my batch jobs with Jenkins. The jobs are just pages so you don't have weird lifecycle problems and they are easy to test because you can just go to the page. Your load balancer will distribute the load, you get history and you don't need to write any co

Re: Tapestry-security/shiro check for 'any' permission

2017-04-20 Thread Barry Books
It's been a while but I think you are correct about how Shiro works. I would use a role to solve this. You can make a role like "maintainer" and assign that role to anyone that can maintain objects. Then you can protect any pages after the url /maintain On Wednesday, April 19, 2017, Robin Garner

Re: Remote debugging a Tapestry application

2017-04-04 Thread Barry Books
I believe you will be able to see the values if you are in development mode. On Tuesday, April 4, 2017, g kuczera wrote: > Hi everybody, > I wanted to speed up my work and try out the remote debugging from Eclipse. > It indeed works (I use jetty:run on localhost and then remote debugging > confi

Re: Submit form without t:form component

2016-12-09 Thread Barry Books
The Tapestry components such as input expect to be inside a form component but if you use just HTML and submit the form with a GET I suspect it would work just like any other link.

Re: beaneditform with option lists of objects

2016-09-22 Thread Barry Books
You will need to build a select model for your list http://tapestry.apache.org/using-select-with-a-list.html I would create an Interface and have the child implement it so you can create a generic one Then create an edit block out of that code. This will allow the BeanEditor to edit this kind of

Re: Validate annotation on field

2016-09-16 Thread Barry Books
I think you could do this with JSR303 validators if you detect it's a field and pass the value of the field to the validator. See: https://github.com/trsvax/tapestry-nocode/blob/master/04.md for a way to automatically validate in the onValidate event On Thursday, September 15, 2016, Nathan Quiryn

Re: exception on page render

2016-08-12 Thread Barry Books
Which hotel booking app? On Thursday, August 11, 2016, Qbyte Consulting wrote: > I'm writing a T5.4 app from scratch rather than a migration. > > I keep getting this stack dump, I've taken out the got5 dependency, but > still get much the same error. > > Any pointers to what this could be? I'm b

Re: SPA with initial geolocation request

2016-08-12 Thread Barry Books
I would start with the progressive display and then add the lat/long to the url On Thursday, August 11, 2016, Qbyte Consulting wrote: > Hi, > > I'm developing an SPA style app in which the geolocation needs to be > captured by JS on initial page render then fed back to the page so it > triggers

ANN: New Tapestry Book

2016-07-18 Thread Barry Books
After many years of Tapestry development I decided to put down my thoughts on "code less, deliver more" and to do so I attempted to create a Hotel Booking app without writing any code using the Tapestry 5.4 framework. I don't want to spoil the ending so I will not say any more other than the book i

Re: Tapestry 4.1 Migration to Tapestry 5

2016-06-28 Thread Barry Books
No it just means T5 will not process them and they will just pass on to T4 > On Jun 28, 2016, at 10:34 AM, Mukesh Chandra > wrote: > > If I ignore the T4 urls, won't the T4 pages stop working? > > -Original Message----- > From: Barry Books [mailto:b...@trsvax.

Re: Tapestry 4.1 Migration to Tapestry 5

2016-06-28 Thread Barry Books
g, what changes do I need to make in the Web.Xml so that both T4 > and T5 pages continue working. > Apparently my application has started working once I put in the filters for T5 > > Regards > Mukesh > > -----Original Message- > From: Barry Books [mailto:trs...@gmail.c

Re: Tapestry 4.1 Migration to Tapestry 5

2016-06-28 Thread Barry Books
I dug up this code that allows T5 applications to access T4 sessions. I think the XXX is the app name in the T4 configuration. @Deprecated public class T4SessionStrategy extends SessionApplicationStatePersistenceStrategy implements ApplicationStatePersistenceStrategy { private

Re: Tapestry 4.1 Migration to Tapestry 5

2016-06-24 Thread Barry Books
I can > build the project but when I try to access the page I get an exception for > the page class missing. > Can you help with this? > > Regards > Mukesh > > -Original Message- > From: Barry Books [mailto:trs...@gmail.com ] > Sent: Friday, June 24, 2016 6:05 PM

Re: obtaining markup in a page class to send in email

2016-06-24 Thread Barry Books
While 5.4 has the ability to render templates outside a request i think the best way to send email is to create a page that renders the HTML you want to send as email and call it like a web service. This makes development easy because it's just like building any other Tapestry page. Here is a servi

Re: Tapestry 4.1 Migration to Tapestry 5

2016-06-24 Thread Barry Books
I migrated a pretty large application from 4 to 5. It's been a while and I perhaps I don't remember all the pain but I don't recall it being that difficult. First of all Tapestry 5 is much nicer to use than 4 but shares many of the same ideas. The basic structure is the same you have pages with tem

Re: Canceling Periodic Job

2016-06-17 Thread Barry Books
see https://github.com/trsvax/Jacquard/blob/master/src/main/java/com/trsvax/jacquard/services/JobRunnerTapestry.java https://github.com/trsvax/Jacquard/blob/master/src/main/java/com/trsvax/jacquard/pages/job/JobIndex.java Jobs are started in the JobRunnerTapestry service and the set of jobs is m

Re: Prepare for submit handler seems to be not called

2016-05-25 Thread Barry Books
It's difficult to say why it might be null but changing the code to public SearchFormData getFormData() { return new SearchFormData(); } should fix it On Monday, May 23, 2016, Jaroslav Ciml wrote: > Hi, > > I am getting a strange exception during submit of a Tapestry form that I > cannot ex

Troubles with PeriodicExecutor/PeriodicJob

2016-05-12 Thread Barry Books
I created a service that can schedule all classes in a package using the PeriodicExecutor. Since addJob returns a PeriodicJob I keep a list of the jobs and attempted to create a status page. When I try and access the PeriodicJob I get a Java access exception. I looked in PeriodicExecutorImpl.Job an

Re: What pattern to use for service disambiguation based on String input?

2016-05-08 Thread Barry Books
I usually use two services to solve this problem. First I create a service that takes a string and returns an object. In your case I'd build a License interface and the objects would all implement License. Most likely this can be done with a service that takes a mapped configuration of String/Class

Code coverage tools

2016-05-04 Thread Barry Books
I'm using JaCoCo to report on code coverage for test cases but my numbers seem too low. From what I can tell pages/components/mixins and services created with binder.bind are not instrumented. This makes some sense because these cases are not used as is but that does not help my numbers any. Are th

Re: Changing Grid.currentPage persistency to flash

2016-05-02 Thread Barry Books
I have not changed it to flash but I did write a persistence strategy to put the values is the url. I would agree that persisting the values in the session has issues. The only problem with using the URL is if you have more than one grid on a page you have to name the query parameters correctly. Us

Re: Change grid on "onSuccess"

2016-04-27 Thread Barry Books
pping in the page activate/passivate methods. > > HTH. > > -- > Chris > > > > On Wed, Apr 27, 2016 at 8:20 AM, Morgan Hautman > > wrote: > > > Hi, > > > > I didn't managed to get it work with @ActivationRequestParameter. > > I tried everythin

Re: Change grid on "onSuccess"

2016-04-26 Thread Barry Books
t it doesn't change the > error. > > Any idea? > > Regards, > Morgan > > > 2016-04-25 16:05 GMT+02:00 Barry Books >: > > > Use @pageactvation context and put what's in your onSucess method in > > setupRender > > > > On Monday,

Re: Change grid on "onSuccess"

2016-04-25 Thread Barry Books
Use @pageactvation context and put what's in your onSucess method in setupRender On Monday, April 25, 2016, Morgan Hautman wrote: > Hi, > > Thank you guys. > I first tried the fix stated by Felix (@PageActivationContext) but it > doesn't work. > I then tried the ajax way Nathan provided and I ha

Re: child component lookup

2016-04-15 Thread Barry Books
yes On Friday, April 15, 2016, Ilya Obshadko wrote: > Barry, thanks for your suggestion - I think this is what I need. > > Do you mean an implementation of ComponentClassTransformWorker2? > > On Fri, Apr 15, 2016 at 2:12 PM, Barry Books > wrote: > > > I'm n

Re: child component lookup

2016-04-15 Thread Barry Books
I'm not exactly sure I understand the requirements but I think you could do this with a mixin on the form. At the very least this would allow communication with the form mixin and the modal via the Environment service. The modal could put something in the environment and the mixin could add some st

Re: Unable to add SecurityAssert after moving from 5.3 to 5.4

2016-04-02 Thread Barry Books
Since this is an upgrade could this be another example of multiple versions of Tapestry in the classpath? That's the first place I look when there are strange errors. I would clean the project and try again.

Re: Strange error when trying to deploy update from 5.3 to 5.4

2016-03-29 Thread Barry Books
Make sure you don't have the 5.3 and 5.4 jars in your war file. For some reason this always seems to happen after an upgrade and it produces strange errors. On Tuesday, March 29, 2016, Pavel Chernyak wrote: > Greetings. > I have strange error after trying to migrate from 5.3.8 to 5.4. > I using:

Re: SSL on url demand

2016-03-10 Thread Barry Books
I think you could override the service RequestSecurityManager and make it do whatever you want. On Wednesday, March 9, 2016, h3ph3st0s wrote: > Hi, > > I built a small tapestry page under jboss. I read that in order to apply > SSL I had to either put @Secure annotation or configure with > config

Re: Page redirect in tapestry5

2016-03-04 Thread Barry Books
Using data directly from the client is never a good idea. While in this case it's probably fine it's a bad habit to fail into. I would make a enum with the Cookie string and the page class. Use enum.valueOf(cookie) to convert from String to enum and then return the class from the enum. I suspect yo

Re: Loading templates at run-time in Tapestry 5.4

2016-02-29 Thread Barry Books
I did something like this a while ago. I stored the .tml file on Amazon S3 and I wrote an S3 asset to load the template. The code is here https://github.com/trsvax/tapestry-aws On Monday, February 29, 2016, David Diaz wrote: > Hi Jens, > > Yes I have external pages that I need to integrate. A

Re: Selenium test cases fail building 5.4

2016-02-27 Thread Barry Books
2 worked > > On Friday, February 26, 2016, Barry Books > > wrote: > > > I downloaded Firefox version 40 and it at least tries to run the test > > cases but crashes. Is there a preferred version? > > > > On Friday, February 26, 2016, Barry Books > >

Re: Selenium test cases fail building 5.4

2016-02-26 Thread Barry Books
Firefox 42 worked On Friday, February 26, 2016, Barry Books wrote: > I downloaded Firefox version 40 and it at least tries to run the test > cases but crashes. Is there a preferred version? > > On Friday, February 26, 2016, Barry Books > wrote: > >> Now that 5.4 is

Re: Selenium test cases fail building 5.4

2016-02-26 Thread Barry Books
I downloaded Firefox version 40 and it at least tries to run the test cases but crashes. Is there a preferred version? On Friday, February 26, 2016, Barry Books wrote: > Now that 5.4 is out I'd like to submit a couple of small patches so I > downloaded 5.4 and followed the instru

Selenium test cases fail building 5.4

2016-02-26 Thread Barry Books
Now that 5.4 is out I'd like to submit a couple of small patches so I downloaded 5.4 and followed the instructions here https://tapestry.apache.org/building-tapestry-from-source.html everything went smoothly but the following tests fail ActivationContextIntegrationTests. testStartup Act

Re: [ANNOUNCE] Apache Tapestry 5.4

2015-12-29 Thread Barry Books
Finished is important. Thanks On Friday, December 25, 2015, Kalle Korhonen wrote: > No, T5.4 was still firmly headed by Howard. He created the first T5.4 > branch over three years (see for example > http://tapestryjava.blogspot.com/2012/10/zeroing-in-on-tapestry-54.html) > and you can see the r

Re: Where does Tapestry fit today

2015-12-29 Thread Barry Books
I've written several "Enterprise Apps" with Tapestry and I would say as of 5.4 it's pretty much perfect for that class of web applications. The best feature of Tapestry is it's easy to build components and piece them together is various ways to build applications. The obvious place to start is with

Re: jumpstart - ajax crud, doesn't work without @persist for me

2015-10-29 Thread Barry Books
I believe jumpstart in the link below in running under 5.4 beta. I have not run 5.3 in a long time but I believe it requires @Persist in this case. What version are you running? On Thursday, October 29, 2015, Paul Stanton wrote: > Hi, > > I've modelled a form using jumpstart's (7) ajax crud howe

BeanEditor Templates

2015-08-21 Thread Barry Books
My favorite Tapestry component has always been BeanEditor. It's versatile, simple and just about perfect as long as you like the mobile friendly output. Unfortunately not everyone appreciates the mobile esthetic and that when things fall apart. I wanted this

Re: Problem with BeanEditForm server side validataion

2015-08-11 Thread Barry Books
Looks like it's fixed in beta-34 On Tuesday, August 11, 2015, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Tue, 11 Aug 2015 19:04:22 -0300, Barry Books wrote: > > Is there a later public beta? I did try beta-6 and it works fine so the >>

Re: Problem with BeanEditForm server side validataion

2015-08-11 Thread Barry Books
seems OK in beta-22 also On Tuesday, August 11, 2015, Barry Books wrote: > Is there a later public beta? I did try beta-6 and it works fine so the > problem is newer than that. > > I did also figure out I can reproduce the problem with a form and two > property editors. > &g

Re: Problem with BeanEditForm server side validataion

2015-08-11 Thread Barry Books
e, 11 Aug 2015 17:36:57 -0300, Barry Books wrote: > > I stumbled across a problem with server side validation and BeanEditForm. I >> have some server side validation that takes a case number and validates >> it's in the database. It's done with a JSR 303 validator. The probl

Problem with BeanEditForm server side validataion

2015-08-11 Thread Barry Books
I stumbled across a problem with server side validation and BeanEditForm. I have some server side validation that takes a case number and validates it's in the database. It's done with a JSR 303 validator. The problem is when the field is invalid it marks all the fields as invalid and changes the v

Re: Working with JPA - Page Requests - Checking if object with id exists - Redirecting if false

2015-08-05 Thread Barry Books
Generally I like solutions that don't require the page class to do anything special so I wrote a request filter and a strategy service to do this. The filter looks for @PageActivationContext and if there is one calls the strategy service to see if the user has access to the object. This way all pag

Re: Running tapestry app using embedded container in production

2015-07-28 Thread Barry Books
lized system to collect > all your logs (for example ELK), especially if you consider to distribute > your application. > > Best, > Thilo > > > > > > Am 28.07.15 14:04 schrieb "Barry Books" unter >: > > >How do you handle logging configuratio

Re: Running tapestry app using embedded container in production

2015-07-28 Thread Barry Books
How do you handle logging configuration? At first I used different log4j.properties files and specified which one to use on the command line but now I often deploy Jenkins in the same Tomcat so I switched to messing with the class path to get the right properties file. Neither solution is ideal. An

Re: Session Storage with Tapestry

2015-03-18 Thread Barry Books
gt; > return (T) persistedValue; > } > } > > Which tells me that entities contained in SSO annotated objects are > basically out of luck, it seems. > > So, is my method of creating a session state object containing multiple > values not a good way to do this? >

Re: Session Storage with Tapestry

2015-03-18 Thread Barry Books
If you are using Tapestry Hibernate it should just work if you put a Hibernate object into a SessionState variable. There is a configuration that contains the Hibernate entities so SessionState is able to store the primary key in the session and retrieve the object when needed. Services as well as

Re: tapestry-bootstrap: Zone is rendered differently on "show"

2015-01-27 Thread Barry Books
I suspect it's tapestry-bootstrap. There is a visitor that changes the html from the Tapestry format to Bootstrap. In the case of forms I believe it wraps each input in a div. My guess is this does not happen on a zone. I suspect you can work around this by added the correct markup inside your zone

What happens when Boootstrap 4 is released?

2014-12-11 Thread Barry Books
I noticed 5.4 upgraded to Bootstrap 3.3.1 last month so I headed over the Bootstrap blog to see what’s in the new version. Along with info about the release there are comments about the upcoming 4.0 release. There’s not much info and no schedule but from past experience I would expect a Summer rele

Re: Sticky Sessions

2014-12-04 Thread Barry Books
I have a URL persist I wrote to solve this problem. It moves the grids data from the session into URL parameters. I'll post the code later today On Thursday, December 4, 2014, Kalle Korhonen wrote: > On Thu, Dec 4, 2014 at 12:08 PM, George Christman > > wrote: > > > I'd have to say 98% of my a

Re: How to access tapestry validation results inside jquery

2014-12-04 Thread Barry Books
In 5.4 there is an event for this. define(["jquery","t5/core/events"], *function*($,events) { *return* *function*(parameters) { $('#'+parameters.id + ' :submit').removeAttr('disabled'); $('#'+parameters.id).bind(events.form.prepareForSubmit, *function*() {

Re: Prevent double or more submissions.

2014-12-02 Thread Barry Books
have a fast validation (which is the case > for most of apps, mine included). > > 2014-12-02 12:29 GMT+01:00 Barry Books >: > > > Here is the one I wrote for 5.4. It uses the perpareForSubmit form event > > > > > > define(["jquery","t5/core/events&qu

Re: Prevent double or more submissions.

2014-12-02 Thread Barry Books
Here is the one I wrote for 5.4. It uses the perpareForSubmit form event define(["jquery","t5/core/events"], *function*($,events) { *return* *function*(parameters) { $('#'+parameters.id + ' :submit').removeAttr('disabled'); $('#'+parameters.id).bind(events.

Re: [5.4] type="number" fails when decimal separator isn't "."

2014-10-28 Thread Barry Books
There is a similar problem with type=date. The difference is wc3 does not spec the date format so it could be anything. I solved it with a value encoder. Unfortunately I don't think you can override existing ones > On Oct 28, 2014, at 8:01 AM, Geoff Callender > wrote: > > I have a BigDecimal

5.4 beta GridPaginationModel Question

2014-10-28 Thread Barry Books
In the past I've used a url session state service I wrote in order to get the Grids persisted data into the URL instead of the session. It works but it's inconvenient because it difficult to change the persistence strategy on just the Grid. I see in 5.4 the data needed to persist the Grid state has

Re: Tapestry 5.4 Ajax Event Handling

2014-08-06 Thread Barry Books
Are you running with jQuery or Prototype? I just found a Zone event problem today and when I switched to jQuery it went away. On Wed, Aug 6, 2014 at 12:49 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Wed, 06 Aug 2014 12:22:24 -0300, wrote: > > I shall do it as soon as pos

Re: What is the purpose of the JIRA improvement issue TAP5-2192 ?

2014-07-20 Thread Barry Books
Many features in Tapestry are controlled by IOC configurations. For example Tapestry provides a set of parameter bindings https://tapestry.apache.org/component-parameters.html#ComponentParameters-BindingExpressions but it's possible via configurations to add more or override existing ones. Curren

Re: FW: Customizing the grid to alter its own content

2014-07-07 Thread Barry Books
I've done this by adding a mixin to GridCell with a worker. The mixin can override the behavior of the component in various ways including dom rewriting. I would not override the display blocks because there are a lot of them and a library could install more. On Mon, Jul 7, 2014 at 9:14 AM, Thia

Re: Tapestry 5.4-beta-6 No service implements the interface org.slf4j.Logger.

2014-07-02 Thread Barry Books
do you have this in your pom file org.slf4j slf4j-log4j12 1.7.2 On Wed, Jul 2, 2014 at 8:36 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Wed, 02 Jul 2014 21:29:03 -0300, Manuel Sugawara < > manuel.sugaw...@gmail.com> wrote: > > Hi, >> > > Hello, Manuel!

Re: live class reloading for custom package

2014-06-13 Thread Barry Books
You can't do exactly what you asked but you can just make your hibernate object just a wrapper for your database schema then build a Tapestry service for the business logic. If you make a schema change or an interface change you'll have to restart but otherwise not. I often merge the DTO and busine

Re: Section 508 Compliance

2014-06-13 Thread Barry Books
Personally I think mixins combined with workers are one of Tapestry hidden gems. In my case I need a title on every pagelink . With a mixin applied to pagelink by a worker I can easily lookup a title in the message catalog and add it. Maybe 30 minutes of coding and it's automatically applied to eve

Re: Section 508 Compliance

2014-06-13 Thread Barry Books
lity > https://kawwa.atosworldline.com/componentapproach > https://kawwa.atosworldline.com/components > > -- > http://www.jimthatcher.com/sidebyside.htm > http://www.jimthatcher.com/webcourse1.htm > > Le 12/06/14 14:31, Barry Books a écrit : > > I need to make a Tapestr

Section 508 Compliance

2014-06-12 Thread Barry Books
I need to make a Tapestry 5.4 site 508 compliant. I've looked thru the requirements and what HTML is generated now and I don't see anything that looks to difficult but I'd like to get Tapestry to do most/all the work. My plan is to write mixins to handle thinks like access keys. For example Wou

5.4-Beta6 does not work with Tomcat JDBC pool interceptors

2014-05-28 Thread Barry Books
While not exactly a Tapestry Beta problem I ran into this issue when upgrading to 5.4.Beta-6 Apparently the Tomcat JDBC pool and Hibernate 4.3.1.Final do not get along. I’m posting this because the error is pretty obscure. https://issues.apache.org/bugzilla/show_bug.cgi?id=56088 2014-05-28

Re: Over Reliance on Session Storage

2014-04-15 Thread Barry Books
Just switching to @PageActivationContext and @ActivationRequestParmeter will solve most of your problems.It's also best if your components are stateless. On Tue, Apr 15, 2014 at 5:14 AM, Ben Titmarsh wrote: > Hi Everyone, > > My application is under a level of load where I am starting to regret

Re: 5.4 Endless Scroll Component

2014-04-10 Thread Barry Books
I wrote this one a few years ago. It's a mixin that you can attach to the grid. It fetches more rows using the pagination links and adds them to the page. This allows it to works the way Lance wants, it works with or without javascript enabled. Most/all of the work is done by a jquery lib https:/

5.4 Javascript console problem with IE8

2014-04-09 Thread Barry Books
I'm having a problem with the Javascript console included with 5.4. Apparently the idea is to add a console for browsers that don't support one. From what I can tell IE8 returns no console unless you have the developer tools console open which in most cases causes the console is displayed. In devel

Re: Tomcat and 5.4 Beta 3 unreliable?

2014-03-05 Thread Barry Books
Some more info. I'm using both proxy pass and jkmount. At this point I think my problems are with proxy pass. I'm not sure what's causing it to break but it's only the apps connected with proxy pass that are having problems. On Wednesday, March 5, 2014, Barry Books wr

Re: Tomcat and 5.4 Beta 3 unreliable?

2014-03-05 Thread Barry Books
Yes On Wednesday, March 5, 2014, Yago González wrote: > it's run with virtual host in tomcat? > > > 2014-03-05 13:02 GMT+01:00 Barry Books >: > > > I'm working on a new project using 5.4. I run Jetty in development and > > Tomcat in production. Every

Tomcat and 5.4 Beta 3 unreliable?

2014-03-05 Thread Barry Books
I'm working on a new project using 5.4. I run Jetty in development and Tomcat in production. Everything was going well until I deployed to Tomcat and Hibernate could not make a database connection. Apparently this is a known issue with Tomcat 7.0.23 so I upgraded to 7.0.50. Since then my developmen

Re: Autocomplete exception blank query parameter.

2014-02-27 Thread Barry Books
I get these also. It would be nice if they were logged as a WARN so it would be easy to ignore them in production. On Wed, Feb 26, 2014 at 9:19 AM, Lance Java wrote: > Some serverside actions (eg autocomplete) expect a well formed request > which may require some request parameters to be present

Re: Error: 'ApplicationContextCustomizer' has already been defined after changed Tapestry version (up or down)

2014-02-21 Thread Barry Books
try mvn clean On Fri, Feb 21, 2014 at 10:35 AM, Yago González wrote: > I can't see in the tree. > > I explain better, my pom have a variable for tapestry version ( used with > tapestry-core and tapestry-spring), but when i change tapestry version and > i compiled it's added in WEB-INF/lib the O

Re: Strange behavior with @Import 5.4 beta 1

2014-02-13 Thread Barry Books
Appears ok in beta2. Guess I need to keep up to date On Thursday, February 13, 2014, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > Have you tried beta 2? > > On Thu, 13 Feb 2014 10:35:43 -0200, Barry Books wrote: > > I added a Bootstrap drop down to the na

Strange behavior with @Import 5.4 beta 1

2014-02-13 Thread Barry Books
I added a Bootstrap drop down to the navigation on one of my sites but I cannot reliably get tapestry to include the Bootstrap javascript. In my layout.java file I have this @Import( stack = { InternalConstants.CORE_STACK_NAME }, module={ "bootstrap/dropdown", "bootstrap/collapse"}) With just t

Re: Content Security Policy without unsafe-inline

2014-02-06 Thread Barry Books
I agree the data url sounds interesting but is not really practical for a general purpose public site. I do think this might be interesting though alert("hello ${user}"); <\t:script> That becomes something like: which returns: define(["jquery"], function(jquery) { alert("hello Barry"); } Th

Re: Content Security Policy without unsafe-inline

2014-02-05 Thread Barry Books
I would agree. I think the state should be in the URL. I also think it should be implemented like an event link with a zone response not a cache. That allows the developer to store the state just like any other event link. On Wednesday, February 5, 2014, Lance Java wrote: > > The reason I wrot

Re: Content Security Policy without unsafe-inline

2014-02-05 Thread Barry Books
The reason I wrote the session cache was to support clustering. The data uri would solve that problem also. Before data attributes I found it useful because it made some things much simpler than the Tapestry 5.3 way of doing things. Since you can put scripts in the tml file you can use properties t

Re: Content Security Policy without unsafe-inline

2014-02-05 Thread Barry Books
I wrote a javascript cache for tapestry5-jquery a few years ago https://github.com/got5/tapestry5-jquery/tree/master/src/main/java/org/got5/tapestry5/jquery/services/js oddly enough I wrote it so you could use inline javascript in a tml file with zones. I believe I created a couple of implementat

Re: Any thoughts on Tapestry with PhoneGap?

2014-01-22 Thread Barry Books
I've written a few iPhone apps and tried PhoneGap for one of them. If you are only targeting iOS then I think it's easier to just write a native app. Objective C with ARC using Xcode is a more polished development environment than HTML5 (not to say Tapestry/Java/HTML5/Eclipse is bad). I would also

Re: How to use grid with large data sets.

2014-01-17 Thread Barry Books
I have a grid which queries a table with 100's of millions of rows. The count query is too slow so I return an estimate. I wrote a page selector that does not allow selecting the last page and the prepare only selects the first n rows. This make the grid work for queries that could return millions

Re: tapestry-bootstrap question

2013-12-07 Thread Barry Books
Thiago is correct. You can default the value of fwtype and then override it by component. For example you could default your site to use small buttons then set fwtype for the ones you want to large. On Fri, Dec 6, 2013 at 1:18 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Fr

Re: [ANN] Tapestry 5.4 alternative datepicker

2013-12-02 Thread Barry Books
add(DateTime.*class*, "dateTime"); > > } > > > *public* *static* *void* > contributeBeanBlockSource(*final*Configuration > configuration) { > > configuration.add(*new* EditBlockContribution("dateTime", > "datefield/AppPropertyEditBlocks"

Re: switch Modal Box

2013-11-27 Thread Barry Books
I would use an event link. From the event handler you should be able to return a StreamResponse (which could be the PDF) or a Zone which would bring up the Modal. On Wed, Nov 27, 2013 at 8:52 AM, Vasili Petrenko < vasili.petre...@devintime.de> wrote: > Scenario: > > > Someone clicks on the actio

Re: [ANN] Tapestry 5.4 alternative datepicker

2013-11-25 Thread Barry Books
; Add this: > > @Inject > private TypeCoercer coercer; > > and replace this: > > Date date = (Date) value; > > with this: > > Date date = coercer.coerce(value, Date.class); > > Cheers, > > Geoff >

Re: [ANN] Tapestry 5.4 alternative datepicker

2013-11-23 Thread Barry Books
;, "id", clientID); > > with this: > > Element dateField = element.elementBefore("input", "value", formatedDate, > "type", "hidden", "class", > > "form-control", "id", clientID); > > >

Re: consensus on payments (braintree payments in particular, spark library)

2013-11-19 Thread Barry Books
os I > have my paypal sandbox working with old php shopping cart stuff > > thanks for the heads up barry, > chris > > > On Wed, Nov 20, 2013 at 12:13 AM, Barry Books wrote: > > > I use the new PayPal rest API > > > > https://github.com/trsvax/tapestry

Re: consensus on payments (braintree payments in particular, spark library)

2013-11-19 Thread Barry Books
I use the new PayPal rest API https://github.com/trsvax/tapestry-paypal-rest On Tue, Nov 19, 2013 at 6:32 AM, Chris Mylonas wrote: > Thanks for your input Norman - your rationale to not to give away details > on the client end is spot on. > > > > > > On Tue, Nov 19, 2013 at 8:50 AM, Norman Fra

Angularjs Datepicker as alternative to Tapestry Datefield

2013-11-05 Thread Barry Books
I've been trying out the Angurlarjs Datepicker http://angular-ui.github.io/bootstrap/ as a replacement for the current Tapestry date picker. The great thing is it integrates with Bootstrap but I'm having trouble figuring out how to integrate it with Tapestry. I can get it to work but I have not rea

Re: incorrect ids for links after switching jquery tabs

2013-11-03 Thread Barry Books
I think this will happen after a zone update On Sunday, November 3, 2013, John wrote: > I'm finding that component ids are being corrupted as I switch between > jquery tabs which means that these links fail when clicked. They are in > loops and should have the correct loop count at the end, but g

Re: How to do a Batch transaction with Tapestry-Hibernate

2013-10-27 Thread Barry Books
rry, > > Am I understanding you right, that you deploy separate Hudson instance per > tapestry application? > And you deploy it to the same web container that the app is running at? > > > > On Sat, Oct 26, 2013 at 4:42 PM, Barry Books wrote: > > > Martin, > > &g

Re: How to do a Batch transaction with Tapestry-Hibernate

2013-10-26 Thread Barry Books
ssion.clear(); > > > >>>> session.beginTransaction(); > > > >>>> > > > >>>> (without the clear its what HibernateSessionManager is doing with > > the > > > >>>> session bound to the current thread). > >

Re: uberValidator for all text input fields

2013-10-25 Thread Barry Books
You might be able to override the StringTranslator but I have never tried that. On Fri, Oct 25, 2013 at 7:34 AM, Hendrik Grewe wrote: > Hello! > > I am looking for an easy way to get all existing text input fields in my > webapp validated before submission. > > Currently some people were able to

Re: How to do a Batch transaction with Tapestry-Hibernate

2013-10-25 Thread Barry Books
I run a lot of batch transactions and I use @Inject and @CommitAfter without any problems so I don't think they are the issue. For high volumes I usually use plain SQL though because it's easier to control. While it's true you can run into problems by nesting @CommitAfter the same can be said abou

Re: Service Override Problems

2013-10-16 Thread Barry Books
27;ve overridden services before. I also tried just coping the source code instead of extending the existing class and it does the same thing. On Wed, Oct 16, 2013 at 7:47 AM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Wed, 16 Oct 2013 09:21:41 -0300, Barry Books wrote: >

Re: Service Override Problems

2013-10-15 Thread Barry Books
It's in another module. I did comment it out and it does the same thing On Tuesday, October 15, 2013, Thiago H de Paula Figueiredo wrote: > On Tue, 15 Oct 2013 08:27:55 -0300, Barry Books wrote: > > Caused by: java.lang.RuntimeException: Service interface >> org.apa

Service Override Problems

2013-10-15 Thread Barry Books
I'm trying to override a few Tapestry services in order to gain access to the configurations but I'm not having much luck. For example * public* *class* BindingSourceOverride *extends* BindingSourceImpl * implements* BindingSource { *public* BindingSourceOverride(Map factories, StringInterne

Re: [T5.4] BeanEditor and Friends don't look as good as in Tap 5.3

2013-10-15 Thread Barry Books
If you are building sites that work on mobile the default is correct. If you are starting from scratch it's OK also but converting an existing site can be a problem. I do have one non mobile site I'm converting so I looked at my old 2.3 mixin and the at the example http://getbootstrap.com/css/#for

Re: An idea to improve the documentation

2013-10-14 Thread Barry Books
I don't think you can solve this problem with static online documentation. Something as simple as what are the type coercers is not something you can document online since it's possible to add the dynamically. They only way to solve this is generate the documentation for the running system. This al

Re: Safety check if a service has been initialized

2013-10-14 Thread Barry Books
I would say if you are really relying on an orderly shutdown you might want to rethink your design. In general you are far more likely to have a crash than an orderly shutdown. Personally I stop my web servers with killall -9 java On Mon, Oct 14, 2013 at 11:37 AM, Muhammad Gelbana wrote: > This

  1   2   3   4   >