Re: Browser automatically scrolls to contact form in footer (undesirable)

2021-10-27 Thread Cezary Biernacki
Hi, Tapestry automatically puts focus on the first field of a form. You can switch off this behaviour by setting the "autofocus" property on the form to false. See http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/Form.html Cezary On Wed, Oct 27, 2021 at 9:37 AM

Re: upgrade from 3.0.1

2021-07-26 Thread Cezary Biernacki
Hi, There is no point upgrading to Tapestry 4.x. Unfortunately Tapestry 3 is quite different from Tapestry 4.x, which is quite different from Tapestry 5.x. Differences are so significant, that you should consider this to be more of a total rewrite in a new framework, rather than upgrades. At this p

Re: The checkbox is checked by default!!

2020-10-06 Thread Cezary Biernacki
Hi, Tapestry's t:checkbox parameter uses the "value" parameter to determine if the checkbox should be rendered as checked or not. the "value" parameter supposed to be a boolean, but if you provide anything else, Tapestry will attempt to coerce the provided argument to boolean. There are multiple

Re: Dissapearing attribute from session

2020-05-11 Thread Cezary Biernacki
Hi, Usually such symptoms appear when your production system has multiple instances with a load balancer but without the "sticky sessions" option enabled. The load balancer sends request from one user to multiple instances, so it looks like attributes from the session disappear, while in reality th

Re: Modules into Tapestry 5.5.0

2020-04-14 Thread Cezary Biernacki
Hi Carlos, Tapestry in the production mode minifies all JavaScript. It seems that minification in T5.5 adds "'use strict';" pragma to minified files. "'use strict';" instructs the browser to fail if anything is wrong with your code, instead of trying quietly to fix problems. In your code "init = *f

Re: Re: T5.5.0-beta-3: document.observe is not a function

2020-02-14 Thread Cezary Biernacki
ng prototype in the first place (your offered second > solution) did the trick, so thanks a lot. > > Lothar > > > Gesendet: Mittwoch, 12. Februar 2020 um 19:13 Uhr > Von: "Cezary Biernacki" > An: "Tapestry users" > Betreff: Re: T5.5.0-beta-3: docume

Re: T5.5.0-beta-3: document.observe is not a function

2020-02-12 Thread Cezary Biernacki
Hi, I don't use T5.5, but probably your code would fail in T5.4 as well. Tapestry puts JavaScript loading at the end of , as it is a general best practice for improving page loading times. I would change this in the following way: --- 1. Move JS code to a separate file that works as a module. Put

Re: Migrating Tapestry 3.0 to 5.x

2020-01-20 Thread Cezary Biernacki
Hi, Tapestry 5 is very different than Tapestry 3. They share the name and an idea of component-based programming, but nearly everything else is changed. If your application has non-trivial size, you probably would have better luck porting Tapestry 3 to run Java 8, rather port the application to Ta

Re: Bootique-tapestry

2020-01-10 Thread Cezary Biernacki
Hi, regarding serving static resources if they can be served from URL path /assets/ (or other configured via tapestry.asset-path-prefix), then put them in META-INF/assets folder (inside src/main/resources for Maven project structure). They will handled by Tapestry's AssetsDispatcher and can be pote

Re: Filtering and modification of Response in Tapestry

2019-12-01 Thread Cezary Biernacki
/ responseWriter.write(originalContent); > > } > > > > *return* handled; > >} > > } > > I tried several variations, like writing an own servlet filter and puting > it after the Tapestry Filter, but always the same: the content

Re: Filtering and modification of Response in Tapestry

2019-11-30 Thread Cezary Biernacki
Hi, as you suggested, it is possible to capture output of handling request by subclassing HttpServletResponseWrapper, providing your own ServletOutputStream, and wrapping the original HttpServletResponse inside a filter on the requested processing pipeline. This way is not specific to Tapestry, may

Re: Recompiling of .less file triggered in prod unexpectedly

2019-10-24 Thread Cezary Biernacki
m for > production, or to override SRSCachingInterceptor, or something else > altogether? > > > On 24 Oct 2019, at 11:09 pm, Cezary Biernacki > wrote: > > > > Tapestry caches compiled files in memory using SoftReference<> so it is > > pos

Re: Recompiling of .less file triggered in prod unexpectedly

2019-10-24 Thread Cezary Biernacki
Tapestry caches compiled files in memory using SoftReference<> so it is possible for the garbage collector to remove them (see org.apache.tapestry5.internal.services.assets.SRSCachingInterceptor). In the development mode Tapestry also caches compilations in a temporary directory, but unfortunately

Re: Localization & URLs for Default Language

2019-09-06 Thread Cezary Biernacki
You can always decorate PersistentLocale and change behaviour of get() by returning null from it, when the original result is your default locale. Cezary On Fri, Sep 6, 2019 at 10:45 AM Rafael Bugajewski wrote: > Hello, > > Tapestry supports putting the current locale into the URL path. I’m >

Re: How to provide a tapestry method to be access from another application?

2019-09-04 Thread Cezary Biernacki
Hi, Tapestry recognises AJAX requests on server side by inspecting the "X-Requested-With" header. It must have the "XMLHttpRequest" value. See https://github.com/apache/tapestry-5/blob/master/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/RequestImpl.java#L170 The header is au

Re: Configure requirejs

2019-08-07 Thread Cezary Biernacki
Hi, in your Layout component you need to add something like: private static final ModuleConfigurationCallback CONFIGURE_WAIT_SECONDS = (config) -> config.put("waitSeconds", 120); @AfterRender public void configureRequireJS() { javaScriptSupport.addModuleConfigurationCallback(CONFIGURE

Re: Looking for open source projects that uses the current version of Tapestry

2019-07-08 Thread Cezary Biernacki
lidation errors. Best regards, Cezary Biernacki On Mon, Jul 8, 2019 at 8:00 PM Tobias Scholze wrote: > Thanks for all your help! > > It seems that my issue is another one. I've to look. > > My template: > """ > > > > > > > &quo

Re: SessionAttribute and SessionState is null in onValidate method

2019-06-18 Thread Cezary Biernacki
Hi Ric, I suspect that a server-side session is not established for some reason, e.g. the browser does not send back the JSESSIONID cookie or something invalidates the session. It is hard to tell without any source code examples. You can try verify what is happening by putting breakpoints in relev

Re: How to let the last ajaxResponseRenderer win?

2019-06-07 Thread Cezary Biernacki
Hi, A server-side solution will not solve the problem, as responses from the server can be re-ordered because of network transmission hick-ups. With Tapestry, you can the abort Ajax requests on client-side as well, it uses Jquery (or Prototype.js) under the hood. I would monkey-patch dom.ajaxRequ

Re: Laggy response after a quiet time

2019-05-16 Thread Cezary Biernacki
Obviously it would help to learn what CPU is doing. Does the application become unstuck and start working normally after initial spike of activity? I have not experienced exactly the same behaviour, and I have relatively similar technology - a Tapestry application running inside Docker on AWS EC2,

Re: TemplateParser service override

2019-04-25 Thread Cezary Biernacki
Hi, The problem you encountered is caused by attempting to pass "Map configuration" to the contribute method. Unfortunately, as far as I know, Tapestry does not provide an easy way to access to a service configuration from its decorators or overrides. The simplest solution in your case can be to a

Re: Add javascript to every request response

2018-12-21 Thread Cezary Biernacki
Yes, it possible. There are probably several ways to do that, one of them is by contributing to MarkupRenderer and PartialMarkupRenderer. Start first by putting your JavaScript in a JavaScript module, META-INF/modules directory define a JavaScript file like this (of course customise it to whatever

Re: [ANNOUNCEMENT] Tapestry 5.4.4

2018-12-18 Thread Cezary Biernacki
Thanks. It is good to see a new release. Best regards, Cezary On Tue, Dec 18, 2018 at 7:13 PM Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Hello, everyone! > > Today the team released Tapestry 5.4.4, a drop-in replacement for 5.4.x. > > This is a recommended upgrade due to inclu

Re: How to pass a variable from Javascript code to Java

2018-08-30 Thread Cezary Biernacki
While cookies can be used the way you describe, I would like to warn that they have several drawbacks. They are added to every requests from the browser to the server, until they expire or some code explicitly deletes them. It means that the size of unrelated requests might grow. Also it complicate

Re: Ajax call is blocking the entire UI

2018-06-26 Thread Cezary Biernacki
See also documentation: http://tapestry.apache.org/session-storage.html#SessionStorage-SessionLocking On Tue, Jun 26, 2018 at 5:40 PM Cezary Biernacki wrote: > By default Tapestry locks user session when handling requests > (see > org.apache.

Re: Ajax call is blocking the entire UI

2018-06-26 Thread Cezary Biernacki
By default Tapestry locks user session when handling requests (see org.apache.tapestry5.internal.services.TapestrySessionFactoryImpl#getSession). It makes your applications less susceptible to race conditions but of course it has drawback that only one request per user (if a session is used) can b

Re: Update jquery/Boostrap to latest versions

2018-04-26 Thread Cezary Biernacki
Hi Ömer, I believe you found a bug in Tapestry, as it seems that JavaScriptSupport insist on adding JavaScript libraries 'core' stack if any JavaScript module needs to be imported without checking INCLUDE_CORE_STACK (see org.apache.tapestry5.internal.services.ajax.JavaScriptSupportImpl#require). If

Re: Javacsript module problem

2018-03-26 Thread Cezary Biernacki
now a lot of things are already working! > > A lot in requirejs and AMD semms to be magical and I prefer to do java > coding, but we'll never stop to learn... > > Regards, Erich > > > > > Am 26.03.2018 17:21, schrieb Cezary Biernacki: > >> Hi Erich, >

Re: Javacsript module problem

2018-03-26 Thread Cezary Biernacki
Hi Erich, One problem I can see is that function showLoadingIndicator() is not exported from define(.., function() { ... }). You should add "return { showLoadingIndicator: showLoadingIndicator };" at the end of "function() { ... }". However I believe it will not solve a problem indicated by messa

Re: Question about module-path-prefix

2018-03-19 Thread Cezary Biernacki
Hi Erich, I have a similar Tapestry 5.4 application with multiple modules in different JARs. The application contributes LibraryMappings to ComponentClassResolver, to tell Tapestry what are roots for module packages, e.g.: @Contribute(ComponentClassResolver.class) public static void addMap

Re: Closure minimize parse error

2018-03-12 Thread Cezary Biernacki
As far as I can tell, it is not directly supported, but you can override existing minimizer and just disable minimisation for particular files, like that: In your *Module class add necessary contribution @Contribute(ResourceMinimizer.class) @Primary public static void overrideJavaScriptMinimizer

Re: Have root URL render some page other than the "index" page

2018-01-11 Thread Cezary Biernacki
ng context-param through web.xml but that is not > working either. > > > tapestry.start-page-name > foo > > > > > On Thu, Jan 11, 2018 at 6:07 PM, Cezary Biernacki > wrote: > > > You can use contribute symbol "tapestry.start-page-name&quo

Re: Have root URL render some page other than the "index" page

2018-01-11 Thread Cezary Biernacki
You can use contribute symbol "tapestry.start-page-name" (see org.apache.tapestry5.SymbolConstants#START_PAGE_NAME), e.g. by adding such method in your AppModule class: public static void contributeApplicationDefaults(MappedConfiguration configuration) { configuration.add(SymbolConstan

Re: problems with JPA and tapestry 5.4.0

2017-11-12 Thread Cezary Biernacki
I don't use JPA so I don't have a solution, but in your stack trace most notable is root exception "java.lang.NoSuchMethodError". Usually such exception indicates that an incorrect version of a class is on the class path. This can happen if you have two different JARs of the same library is on the

Re: How to display a Blob (byte[]) from database in a Tapestry template

2017-11-02 Thread Cezary Biernacki
Hi, first you have a compilation problem related to basic Java: methods getContentType() and prepareResponse() should be public as they are required by StreamResponse interface - it is what the compiler complains about. However the second problem is that BlobImage.onActivate() should not require a

Re: IoC Question

2017-10-05 Thread Cezary Biernacki
The default behaviour of Tapestry-IOC is that a service is a singleton. In other words only a single instance is created and every time the same instance is injected. So in your case, different classes will share the same EventTracker service instance, and they will be able to see the same events.

Re: Slashes in query/context parameter

2017-06-20 Thread Cezary Biernacki
Tapestry uses its own encoding (with $ used as escape + four hex digits unicode) for URLs, see org.apache.tapestry5.services.URLEncoder and implementation org.apache.tapestry5.internal.services.URLEncoderImpl

Re: Unable to get clientId in a component [T5.3.8]

2017-01-09 Thread Cezary Biernacki
Hi, I can't see the actual .tml, as either it was stripped by the mailer or you forgot to include it. But I guess compareDateRangeFrom component is in .tml after dateRangePresent component, and Tapestry not yet allocated a client ID for it. Generating client IDs is a bit complicated in Tapestry as

Re: Zone update and inactive timeout

2016-11-10 Thread Cezary Biernacki
The problem is caused by AJAX polling, and it is not specific to Tapestry, but to how Java servlet containers manage sessions. I had similar one (AJAX polling with Jetty) and IIRC I solved it by implementing my own SessionHandler and SessionManager classes (subclassing and replacing ones provided b

Re: Javascript function not present in html source

2016-11-02 Thread Cezary Biernacki
Hi Nicolas, are you sure that the string you observed "" is actually sent from the server, not result of manipulation of some JavaScript later? I do not see any reason for Tapestry to render your TML differently between 5.2 and 5.3 (assuming your application uses Tapestry's built-in TextField compo

Re: WebSocket enpoint as a tapestry service

2016-10-26 Thread Cezary Biernacki
Hi John, I am working on an application that uses both Tapestry and WebSockets. The integration is quite easy. Write your endpoint class as a normal service, so you can inject/request your other Tapestry-based services in usual way. Then in your AppModule add startup method (see @Startup annotation

Re: some old criticisms of T5

2016-09-22 Thread Cezary Biernacki
In my experience Tapestry generates better HTML than many (most?) of other frameworks. Lets take for example the whitespace issue. In most cases whitespace in templates are artefacts of indentation used to improve readability of templates during development. As the result when blindly preserved, wh

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

2016-09-22 Thread Cezary Biernacki
You can do: jsSupport.require("foo").invoke("myFunc").with("bar"); 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"); > foo.invoke("my

Re: Configuring RequireJS?

2016-09-14 Thread Cezary Biernacki
Hi, First, if you go to source code of org.apache.tapestry5.services.javascript.ModuleManager interface, you should see line @UsesMappedConfiguration(JavaScriptModuleConfiguration.class) It indicates that contributions must use MappedConfigurations with values being JavaScriptModuleConfiguration

Re: Deploying webapp on busy public server failing hard

2016-07-05 Thread Cezary Biernacki
Hi Peter, The simplest option is a create an empty page that just includes all important CSS-es and JavaScripts and configure that page as a health check URL in load balancer. E.g. Warmup.java: @Import(stack = {"core"}, stylesheet = {"my.less"}) public class Warmup { } Warmup.tml And /warmup

Re: Null pointer on sort with 5.3.8 that didn't occur with 5.3.7

2016-06-27 Thread Cezary Biernacki
Your stack trace seems to indicate that conduit (a mechanism connecting Tapestry with a column) is not available. It can happen if the column is manually added to the model. Was the column sortable with Tapestry 5.3.7? How is this column defined? Best regards, Cezary On Mon, Jun 27, 2016 at 4:4

Re: Page must be specified before initializing for partial page render.

2016-06-16 Thread Cezary Biernacki
Hi John, it is hard to answer your question without any source code or details about your application. My guess your application is using tapestry-jquery and something is incorrectly initialised in production-mode. I would check if you do not encounter problems with your browser caching some old ve

Re: Tapesty5.4.0 'submit' button throws page validation error

2016-06-13 Thread Cezary Biernacki
dation.html#FormsandValidation-CustomizingValidationMessages ): name-required=You must enter a name. Cezary On Mon, Jun 13, 2016 at 4:47 PM, Cezary Biernacki wrote: > A correction, this part: > void onValidateFromName(TaxZone z) { > if (z.getName() == null || z.getName().trim().length() >

Re: Tapesty5.4.0 'submit' button throws page validation error

2016-06-13 Thread Cezary Biernacki
tring name) { if (name == null || name.trim().length() == 0) { form.recordError(nameField, "You must enter a name."); } } On Mon, Jun 13, 2016 at 4:38 PM, Cezary Biernacki wrote: > Hi, > your "onValidate" method does not spec

Re: Tapesty5.4.0 'submit' button throws page validation error

2016-06-13 Thread Cezary Biernacki
Hi, your "onValidate" method does not specify for which component it should be invoked, so it is invoked for all components that trigger "validate" event. Tapestry invokes validate for each input form control (providing an input value as the context argument) plus one for the whole form itself with

Re: IgnoredPathsFilter no longer working with Wildfly10

2016-06-09 Thread Cezary Biernacki
I don't use Wildfly, so I can only speculate, but maybe values returned for servletPath and pathInfo from HttpServletRequest are subtly different. Try debugging service() method in org.apache.tapestry5.internal.services.IgnoredPathsFilter class. Best regards, Cezary On Thu, Jun 9, 2016 at 5:59 PM

Re: Tapestry5.4.1 Exception : ParameterParameter 'selected' of component is bound to null.

2016-05-27 Thread Cezary Biernacki
You are using Palette component from Tapestry. It has a parameter called "selected" that must be provided with non-null value. In your case it is bound to your "stores" field. You must ensure that "stores" is always non-null. Note that, according to the documentation, before T5.4 "selected" was all

Re: Prepare for submit handler seems to be not called

2016-05-25 Thread Cezary Biernacki
Hi, @Barry, yes, your solution should fix null pointer exception, but probably it would break the application. A better way: public SearchFormData getFormData() { if (formData == null) { formData = new SearchFormData(); } return formData; } However, it is still interesting that fo

Re: A scrip ahead of all other scripts

2016-05-19 Thread Cezary Biernacki
There are multiple options. Adding explicit

Re: Asset Browser Caching

2016-05-10 Thread Cezary Biernacki
cache, no-store, must-revalidate > Pragma: no-cache > ETag: "2f0c65b4" > Last-Modified: Thu, 21 Apr 2016 10:13:43 GMT > > Thanks and best, > Thilo > > > Von: Cezary Biernacki > Antworten an: Tapestry users > Datum: Dienstag, 10. Mai 2016 16:05 >

Re: Asset Browser Caching

2016-05-10 Thread Cezary Biernacki
Hi, what Tapestry version are you talking about? In my experience Tapestry is pretty good at enabling caching assets, with usage of ETags, expiry dates set for 10 years in the future, and custom URLs to assets. Can you post examples of the response headers from your Tapestry that prevent caching? M

Re: Tapestry5.4 error page 'Failure reading parameter 'validate' of component ....'

2016-05-09 Thread Cezary Biernacki
Do you have any custom implementation of org.apache.tapestry5.ioc.Messages interface? If yes, check if its "contains()" works properly. Best regards, Cezary On Mon, May 9, 2016 at 6:41 PM, zak wrote: > We are upgrading from tapestry5.1.0 to tapestry5.4.0 > > Accessing a page which contains a s

Re: Integrating Tapstry IOC only

2016-04-21 Thread Cezary Biernacki
I have used Tapestry-IOC in many non-gui tools including REST applications based on Dropwizard, and it is very easy to do. Just in some place during process initialisation build a IOC registry, retrieve some starting service and call that service - later all dependencies can be handled by Tapestry-

Re: Strange error after deploy to jetty with tapestry 5.4.

2016-03-30 Thread Cezary Biernacki
Hi Pavel, please check if you really removed all old JAR (and their all dependencies). Often such problems appear when 2 different versions of one JAR (e.g. foo-1.1.jar and foo-1.2.jar) are on the class path. Best regards, Cezary On Tue, Mar 29, 2016 at 12:26 PM, Pavel Chernyak wrote: > Greeti

Re: Hibernate call returns wrong day

2016-03-30 Thread Cezary Biernacki
t; query): 1982-03-28 00:00:00.0, 1982-03-28 00:00:00.0 > >>>> 30-03-16 00:25:44:497 - {INFO} profil.ProfilEdition Thread > >>>> [qtp1357767732-65]; birth date equals (setupRender - getting from raw > >>>> query): 1982-03-28 00:00:00.0, 1982-03-28 00:00:0

Re: Hibernate call returns wrong day

2016-03-24 Thread Cezary Biernacki
Hi, I doubt it is a Tapestry related problem. I have seen similar issues, and they are generally caused by time zone translations. My guess is that your database stores date birth as a timestamp (i.e. including specific hours and minutes) in some specific time zone, and your Java code retrieving ti

Re: Attribute namespace prefix usage

2015-11-23 Thread Cezary Biernacki
Hi David, Regarding your point 1). "t:id" is quite different than "id". "t:id" is used to map component definitions in templates to component injections in Java classes. "id" (without namespace) is HTML "id" attribute, and while often Tapestry generates "id" that is equal to "t:id", it is not alwa

Re: [5.4-beta-35] NoSuchMethodError: PlasticManager.createProxy on Tomcat 8

2015-10-08 Thread Cezary Biernacki
Are you sure no old Tapestry's JAR are left in your Tomcat deployment? It looks like there is an old JAR with Plastic classes somewhere. Best regards, Cezary On Thu, Oct 8, 2015 at 7:05 PM, Ben Titmarsh wrote: > I just upgraded to Tapestry 5.4-beta-35 primarily for this bug fix: > https://iss

Re: SelectModel created by Factory using List

2015-10-07 Thread Cezary Biernacki
Hi Daniel, it is a bug in IntelliJ: for some reason it does not recognise all Tapestry coercions. You can still run your application, as the warning does not affect compilation. The best course of the action is to report the bug to JetBrains and get them fixed. If you really need to remove the warn

[T5.4-beta-35] "Forms require that the request method be POST and that the t:formdata query parameter have values." problem + workaround

2015-09-29 Thread Cezary Biernacki
Hi, Some introduction: My users started complaining about error message "Forms require that the request method be POST and that the t:formdata query parameter have values.". I understand why it was raised: Tapestry 5's Form component always used to complain when submit was invoked as GET operation

Re: ArrayIndexOutOfBoundsException after random time

2015-04-24 Thread Cezary Biernacki
Random guess: Tomcat unpacks your application to a temporary directory monitored by tmpwatch service or something similar, and after some time less used files are removed by that service causing problems to Tapestry. For example /tmp directory is by default monitored on many Linux distributions, an

Re: parallel remote requests in Tapestry

2015-04-14 Thread Cezary Biernacki
Figueiredo < thiag...@gmail.com> wrote: > On Tue, 14 Apr 2015 14:05:33 -0300, Cezary Biernacki > wrote: > > Hi Тимур, >> Have you tried putting your asynchronous in pageAttached() methods (also >> see @PageAttached annotation) in your components? >> >> https:

Re: parallel remote requests in Tapestry

2015-04-14 Thread Cezary Biernacki
onent, but see there are many calls per > component. I dont know why. > > Heartbeat is really interesting option. Thank you for idea. The next my > question is: how update template with actual content in deffered commands? > > On Tue, Apr 14, 2015 at 9:05 PM, Cezary Biernacki &

Re: parallel remote requests in Tapestry

2015-04-14 Thread Cezary Biernacki
Hi Тимур, Have you tried putting your asynchronous in pageAttached() methods (also see @PageAttached annotation) in your components? https://tapestry.apache.org/page-life-cycle.html However pageAttached is invoked on all pages that are somehow involved in the request processing (e.g. they are ref

Re: How to use font awesome with Tapestry

2014-12-19 Thread Cezary Biernacki
Hi George, I believe you use exactly string "classpath:META-INF/assets/fonts/fontawesome-webfont.eot" in Java code. You should use "fonts/fontawesome-webfont.eot" instead - Tapestry 5.4 knows that it needs to prepend "META-INF/assets". However, as others said, for Font Awesome you need rather impo

Re: @Persist objects that reference IoC services

2014-06-26 Thread Cezary Biernacki
Do you use proxied service, i.e. one defined as an interface (e.g. via binder.bind(MyService.class, MyServiceImpl.class), not a concrete class? If your service is defined as a concrete class, its instance is used directly. In such case it will be serialised using normal Java rules. Best regards,

Re: character sequence UTF8 failure ?

2014-03-08 Thread Cezary Biernacki
I think "Â" character is invalid. Check if your text editor is set up to open this file in UTF-8. Best regards, Cezary On 8 Mar 2014 14:41, "nhhockeyplayer nashua" wrote: > Hi Folks, > > Is this legal to do ? > > > http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> > > ... > >

Re: Persist object fails

2014-03-06 Thread Cezary Biernacki
Tapestry uses Servlet API to persist data, so if they are not persisted, something wrong is with your Tomcat configuration. I would first check if JSESSIONID cookies are generated properly and they stay unchanged in a single session (or alternatively ';jsessionid=' is added to URLs). Then I would c

Re: Question about .less to .css transformation T5CONDUIT library for Tapestry 5.3.7

2013-11-04 Thread Cezary Biernacki
Kindly ignore this message if you're not interested in .less to .css > transforms in Tapestry 5.3.7. > > I have t5conduit hooked up in my app as per the scant documentation at > github... > https://github.com/cezary-biernacki/t5conduit > > In my component I have... >

Re: uk.org.cezary.t5conduit question

2013-11-04 Thread Cezary Biernacki
Hi, Please ensure that your AppModule (or equivalent) includes T5ConduitModule using @SubModule annotation. It enables handling of *.less stylesheets. Please note that included asset will still have .less suffix, but returned file should be generated .css. Best regards, Cezary Biernacki On 4 Nov

Re: Switching off Reloading of Service Implemenation?

2013-10-15 Thread Cezary Biernacki
Even if do not own the interface, you can still create a new interface extending the original one. Than in your code you can inject your new interface to ger access to your extra methods. I am not at the computer now, so I do not have any examples, but I used such approach to "add" some methods to

Re: How to disable blackbird in T5.1.0.5

2013-07-22 Thread Cezary Biernacki
Hi Nicolas, It is definitely possible to disable Blackbird from Tapestry 5.1.0.5. There are a few ways to do that. One is to provide your own version of "blackbird.css" (empty) and "blackbird.js" (just with Tapestry.Logging defined with empty functions or functions logging to console log) b

Re: Event Bubbling not working

2013-07-02 Thread Cezary Biernacki
Hi Lace, PagerContainer is not a parent to Pager. Pager is part of PageDemo page. It is just rendered in body of of PagerContainer, but it is not belong to PagerContainer, they do not form any hierarchy. That is why the event bubbling seems not to work in this case. You would need more complica

Re: Event Bubbling not working

2013-07-01 Thread Cezary Biernacki
Are you sure that your problem is not something trivial like e.g. a typo? Cezary On Mon, 1 Jul 2013 22:23:39 +0100 Lance Java wrote: I'm scratching my head over this one... hoping someone can point it out. I've got a page which renders a parent component. The parent component renders a child

Re: NPE in Form on Websphere 8 after applying load

2013-06-26 Thread Cezary Biernacki
Hi Howard, I am not original poster, but according to his email it was (Tapestry 5.2.6). Cezary On Wed, 26 Jun 2013 08:43:54 -0700 Howard Lewis Ship wrote: > > What version of Tapestry? Necessary to figure out what line Form.java:406 > actually is. > > > On Mon, Jun 24, 2013 at 11:42 PM, Christ

Re: NPE in Form on Websphere 8 after applying load

2013-06-26 Thread Cezary Biernacki
Hi Howard, I am not original poster, but according to his email it was (Tapestry 5.2.6), so Form.java:406 could be this line: resources.triggerEvent(EventConstants.PREPARE_FOR_RENDER, context, null); Cezary On Wed, 26 Jun 2013 08:43:54 -0700 Howard Lewis Ship wrote: What version of T

Re: best way to integrate a page or component to keep modular

2013-05-20 Thread Cezary Biernacki
You can't render a page in another page. And you probably should not. But you can move reusable part of one page to a component and use this new component on as many pages as you want just by writing . It is the main feature of Tapestry - components as a way to reuse template and code. On Mon,

Re: Long running process in onSuccess causing Life Cycle methods to rerun.

2013-04-16 Thread Cezary Biernacki
my JS, css and can not figure out the underlying issue. Does anybody happen to know what might be happening? On Mon, Apr 15, 2013 at 7:56 PM, Cezary Biernacki wrote: Are you sure that the second request is not generated by e.g. a reverse proxy? On Mon, Apr 15, 2013 at 7:59 PM, George Christman

Re: Long running process in onSuccess causing Life Cycle methods to rerun.

2013-04-15 Thread Cezary Biernacki
Are you sure that the second request is not generated by e.g. a reverse proxy? On Mon, Apr 15, 2013 at 7:59 PM, George Christman wrote: > Hello, I have a long running process in my onSuccess method. I'm > noticing my onActivate and onValidate methods are being called > multiple times before the

Re: Service Advisors recursive problem

2013-04-03 Thread Cezary Biernacki
My solution to similar problem was to use following pattern that excluded services that lead to recursion: @Match("(?!(" + "Request" + "|ObjectProvider" + "|AssetObjectProvider" + "|PerRequestCache" + "|Alias" + "|Al

Re: Reason not to use static final

2013-01-10 Thread Cezary Biernacki
I don't think that you can blindly apply to general Java logic to code in page and component classes. They are rewritten by Tapestry, and normal rules don't fully apply. On surface page and components behave as they would be created and discarded for every request, so you normally don't need to wo

Re: Appropriate/recommended usage for @Persist in components

2013-01-03 Thread Cezary Biernacki
On Thu, Jan 3, 2013 at 5:12 PM, Alex Kotchnev wrote: > Now, as far as I understand, @Persist("session") stores the value in the > session, keyed on the component class (e.g. thus in component A, a field > "@Persist private String fooMessage" would/could store a different value > than "@Persist p

Re: why is homePage null ? after long time and possibly session timeout

2013-01-03 Thread Cezary Biernacki
I am pretty sure that homePage is not null and/or your code excerpt is not enough to explain NPEs that you are . I would recommend that you should first try to investigate your problems using tools like debugger or application logging. Have you spent at least an hour trying to solve this problem?

Re: exception report

2012-12-27 Thread Cezary Biernacki
Yeah i set the breakpoint and it gets triggered... but really nothing to do at that point. And it looks like its coming from tapestry... the IllegalStateException No, it is clearly coming from Jetty. Tapestry just calls standard servlet request API getParameter() method. So you saying my je

Re: exception report

2012-12-27 Thread Cezary Biernacki
it would be nice if I knew WHICH parameter Probably 't:component-trace', but I believe it would fail for any parameter. I am not sure what is happening, but my guess is that your Jetty was recently upgraded, and now fails during parameter extraction (are

Re: Redirect onActivate - how to handle ActionLink requests?

2012-12-20 Thread Cezary Biernacki
On Thu, 20 Dec 2012 16:10:05 -0200, Cezary Biernacki wrote: I am not sure what is preferred method to detect page requests vs. event requests in onActivate methods, but I can imagine that it could be done by decorating ComponentRequestHandler and adding a request attribute with information of

Re: Redirect onActivate - how to handle ActionLink requests?

2012-12-20 Thread Cezary Biernacki
So your onActivate method does not actually return null but redirects to another page. That explains why handler is not called. I am not sure what is preferred method to detect page requests vs. event requests in onActivate methods, but I can imagine that it could be done by decorating ComponentRe

Re: Redirect onActivate - how to handle ActionLink requests?

2012-12-20 Thread Cezary Biernacki
Hi, Are you sure that your onActivate method is related to your problem with event handler not being called? It can be something quite unrelated. For example the event handler method can be incorrectly named (if you are using naming convention), or with @OnEvent annotation parameters can be wrong

Re: What is @ApplicationScoped for tapestry?

2012-11-16 Thread Cezary Biernacki
On Fri, Nov 16, 2012 at 6:04 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Fri, 16 Nov 2012 14:28:17 -0200, Lenny Primak > wrote: > > Any kind of a singleton service can be used as a data pool >> See >> http://tapestry.apache.org/**defining-tapestry-ioc-**services.html

Re: persistent properties

2012-10-26 Thread Cezary Biernacki
Hi, 'setupRender' event is invoked every time page is rendered, so if you want to initialise persistent properties only once, you need to have guard that prevents extra initialisations. For example @Persist boolean initialized; @SetupRender public void setupRender() {

Re: Specify tapestry-specific paths?

2012-10-26 Thread Cezary Biernacki
It is configured in web.xml, e.g.: tapestry.app-package org.example.myapp from http://tapestry.apache.org/configuration.html#Configuration-Changestoweb.xml My Tapestry Application tapestry.app-package org.example.myapp app

Re: Login page problems

2012-10-23 Thread Cezary Biernacki
Hi, in your Java class you have @Component private Form form; and in template: If you don't provide a component id is argument to @Component, Tapestry uses field's name as the id. You need to do one of following: - change field name to loginForm, - or add "loginForm" as ar

Re: strange NPE, really making me nervous

2012-10-12 Thread Cezary Biernacki
Java's garbage collector never sets any normal reference to null. It is a fundamental property of JVM. This sentence 'in this case the GC was a little late in erasing what was released across the request cycle' is not true. Your problem was not related to the garbage collector at all. 'colle

Re: strange NPE, really making me nervous

2012-10-12 Thread Cezary Biernacki
It does not matter that you it is loaded in setupRender(). Rending events happen only during page rendering. Your exception happens during a separate HTTP request for event handling (see request URL in your logs). Such events do not trigger page rendering in Tapestry 5. So setupRender() is not exec

Re: strange NPE, really making me nervous

2012-10-12 Thread Cezary Biernacki
On Fri, Oct 12, 2012 at 4:01 PM, Ken in Nashua wrote: > > Thanks Cezary, > > collection is an allocated collection housing a single hibernate entity. > my login page comes up > i get authenticated > it launches the Home.ml and Layout.tml > and my Gallery.tml gets rendered for the very first time

  1   2   >