Re: Own jQuery version

2018-05-10 Thread Ben Weidig
Thanks for your suggestions. I heard, that this should be possible, but > was not able to find this in the documentation. > > Regrads, Ric > > --------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Ben Weidig Netzgut GmbH

Re: data-icon for option within t:select

2018-11-15 Thread Ben Weidig
Hi, as far as I can tell from the code and documentaion the class OptionModel supports additional attributes with its .getAttributes() method. So you should only need to implement your own OptionModel and build your SelectModel with it. Hope this helps. Ben On Thu, Nov 15, 2018 at 7:23

Re: Add HTTP security Headers in the response

2018-10-03 Thread Ben Weidig
Hi, you could use a org.apache.tapestry5.services.RequestFilter.class to access the response ( http://tapestry.apache.org/current/apidocs//org/apache/tapestry5/services/RequestFilter.html ) Something like this (untested code): public class MySecurityHeadersRequestFilter implements RequestFilter

Re: Add HTTP security Headers in the response

2018-10-04 Thread Ben Weidig
The main advantage is having the full power of Tapestry and your services available to you. Can't speak for the performance, it might be faster with a filter before Tapestry, but I don't think it would impact your performance that much, we have multiple RequestFilters in our apps. The

Re: Inline SVG image is broken in proudction mode, because whitespaces are removed

2019-01-04 Thread Ben Weidig
Hi, we ran into the same issue... production-mode=true enables resource minimizing and you are hitting an open bug in YUICompressor since 2014 https://github.com/yui/yuicompressor/issues/304 https://github.com/yui/yuicompressor/issues/141 and some more... We stopped using inline-SVGs because

Re: Open Discussion: remove Bootstrap from T5 core

2019-02-21 Thread Ben Weidig
Hi David, we've used @extend with SASS in our projects and ended up not using it a lot due to its drawbacks, instead we use Bootstraps mixins more directly. I haven't read the article in its entirety, but here are my thoughts: For decoupling the components it might be possible to wrap the

Re: Open Discussion: remove Bootstrap from T5 core

2019-02-14 Thread Ben Weidig
Hi Jens, I like the idea of decoupling the core and Bootstrap to make it easier to use other versions. Maybe the components should be updated to BS4 for T5.5, with a legacy fallback or a component swap (can't remember the service doing it, we have our own implementation, it's doing an advice on

Re: TriggerFragment/FormFragment not working properly in 5.4.5

2020-01-06 Thread Ben Weidig
Hi, we ran into some issues with nested fragments and disabled fields, too. Instead of using the mixin we ended up triggering the fragments ourselves with CoffeeScript: define ['jquery', 't5/core/events', 't5/core/form-fragment'], ($, events) -> fieldChange = (event) ->

Re: TriggerFragment/FormFragment not working properly in 5.4.5

2020-01-07 Thread Ben Weidig
gt; wrote: > Do you happen to know how to fix this from the outside? If you create a > pull request, after testing, I'll happily apply it. > > On Mon, Jan 6, 2020 at 5:26 AM Ben Weidig wrote: > > > Hi, > > > > we ran into some issues with nested fragments and disabl

Re: component

2020-11-02 Thread Ben Weidig
Hi Volker, I believe the actual error message is done with JS: https://github.com/apache/tapestry-5/blob/0229bd59d44de848ae7412c8161bde6afe75ab84/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/fields.coffee#L173

Re: Upgrading to Tapestry 5.6.4

2021-05-07 Thread Ben Weidig
Hi Chris, this looks to me like a Java 11 issue due to the removal of packages by the Java itself. With version 9, multiple packages were marked deprecated, and removed with 11. The javax.xml.bind stuff is one of them, you need to add a dependency manually.

Re: Upgrading to Tapestry 5.6.4

2021-05-07 Thread Ben Weidig
I've created an issue https://issues.apache.org/jira/browse/TAP5-2678 and add the notice to the page. On Fri, May 7, 2021 at 10:54 AM Christopher Dodunski (Tapestry) < chrisfromtapes...@christopher.net.nz> wrote: > Hi Ben, > > You were 100% correct! Adding the below dependencies to my POM

Re: Ecmascript5 and tapestry-webresources

2021-01-28 Thread Ben Weidig
Hi, the GoogleClosureMinimizer and its non-configurability is on my personal "things to look at" list for quite some time. We ran into issues in the past, and it popped up on the mailing list last year a few times IIRC. So far, you need either to set

Re: version 5.7.0, maven and jetty

2021-02-25 Thread Ben Weidig
What is was trying to say is that the Maven/Jetty occurs after the > migration process as described in the release notes. As far as I can see > the migration tool did its job as the project compiles error free. It is > the 'mvn jetty:run' command that causes the error. > > Marcel > > On

Re: version 5.7.0, maven and jetty

2021-02-25 Thread Ben Weidig
Hi Marcel, Tapestry 5.7.0 is not a simple drop-in upgrade from 5.6.x and needs manual migration steps. A lot of classes, like Configuration, moved to new packages, to make the Java 9+ module system (partially) possible, and decouple the UI-related parts from the general web-stack. There's a

Re: [ANNOUNCEMENT] Tapestry 5.6.2 released

2021-04-07 Thread Ben Weidig
Hi! even though I've mentioned the signature changes as a risk in the ticket, it slipped my mind when it got merged into 5.6.x and not just 5.7. There are 2 signature changes in JSONObject to match the Map interface: * Object get(String name) -> Object get(Object name) * JSONObject putAll(Map

Re: Question about JSONObject in versions 5.6.2, 5.6.3. and 5.6.4

2021-04-20 Thread Ben Weidig
Hi, it's a known problem with 5.6.2+ and JSONObject that came to light recently. An updated version of tapestry-json improvements were introduced with 5.7.0, but got backported to 5.6.2. JSONObject is now a full-fledged Map, which lead to a signature change being introduced. It slipped through

Re: Tapestry and Typescript

2021-09-01 Thread Ben Weidig
Hi Jonathan, I haven't worked with TS in 5.7.2 so far, but I tried to look into it. The two issues on Rhino's Github are not very helpful... https://github.com/mozilla/rhino/issues/658 (solved itself somehow) https://github.com/mozilla/rhino/issues/430 (solved with newer Rhino version)

Re: Tapestry and Typescript

2021-09-02 Thread Ben Weidig
ceTransformer option, maybe that will be easier to > maintain. > > Cheers, > Jonathan > > -Original Message- > From: Ben Weidig > Sent: Wednesday, 1 September 2021 10:52 AM > To: Tapestry users > Subject: Re: Tapestry and Typescript > > Hi Jonathan, &g

Re: Integrating Agrest in Tapestry app

2021-08-03 Thread Ben Weidig
Hi Tim, full disclosure: I haven't used Cayenne or Agrest, but I checked out their documentation. I don't think there's anything Tapestry-specific needed to get it up and running except setting up Rest. They say in their docs that you still have to write your JAX-RS endpoints and do security

Re: Integrating Agrest in Tapestry app

2021-08-03 Thread Ben Weidig
jersey 1.x and wouldn't work with > jersey 2.x > > Cheers > > Tim > > [1] > > https://github.com/andrus/wowodc13/blob/master/site/src/main/java/demo/rest/jersey/JerseyTapestryBridge.java > > On 3/8/21 17:15, Ben Weidig wrote: > > Hi Tim, > > > &g

Re: Integrating Agrest in Tapestry app

2021-08-06 Thread Ben Weidig
g.String,org.slf4j.Logger,org.apache.tapestry5.http.services.ApplicationGlobals,javax.ws.rs.core.Application,org.apache.tapestry5.ioc.services.SymbolSource,boolean,org.apache.tapestry5.ioc.services.UpdateListenerHub,long,long,boolean) > throws javax.servlet.ServletException: Application.getSingl

Re: Coercion error for JSONObject

2021-10-05 Thread Ben Weidig
Hi, is the JSONObject in the Session and do you have Session locking disabled? See https://tapestry.apache.org/session-storage.html#SessionStorage-SessionLocking Changing the print-loop to check if keys still exist would just hide the underlying problem: using a data-structure concurrently that

Re: Coercion error for JSONObject

2021-10-05 Thread Ben Weidig
ed it here is that json is used a lot in ajax requests > nowadays, so this seems like a problem that could arise in other situations > as well. > > All the best, > > Adriaan > > On Tue, 5 Oct 2021 at 18:48, Ben Weidig wrote: > > > Hi, > > > > is the JSO

Re: Page links returned as http, not https or relative

2021-12-19 Thread Ben Weidig
Hi Geoff, I can't reproduce the behavior in our setup, redirecting with relative URLs while HTTPS works fine. Which Servlet Container are you using? AFAIK it's the responsibility of the container to do the right thing and how to handle relative URLs from sendRedirect. What's in the "Location"

Re: Page links returned as http, not https or relative

2021-12-19 Thread Ben Weidig
ustering/load-balancer.html > . Redirects of relative URLs now get turned into absolute URLs with “https” > as the protocol. > > For my dev environment I use Jetty, often behind nginx with nginx > terminating HTTPS. I’ll pass on the solution for that when I find one. > > > On 19

Re: Ressource Minimization - Ahead of time

2021-12-23 Thread Ben Weidig
Hello Stefan, we had a thread recently about health checks and possible warmup techniques on the mailing list: http://mail-archives.apache.org/mod_mbox/tapestry-users/202111.mbox/%3c92ee40fb-cb4c-4a6d-8257-b8215a136...@gmail.com%3e Dmitry shared some awesome code to warmup without needing to

Re: File downloading in Tapestry

2021-11-15 Thread Ben Weidig
Hi Christopher, not sure what the OutputStreamResponse is, it's not a part of Tapestry. But we use a similar approach using Tapestry's StreamResponse interface. We have a shared AbstractStreamResponse with dedicated subclasses for File/byte[]/JSONObject etc. to simplify the needed code. Our code

Re: Best practice for health check URL?

2021-11-30 Thread Ben Weidig
Hi Geoff, we have a multi-tenant/-domain multi-language site that required pre-heated servers after deployment, so we created a WarmupTaskRunner to run at startup, which gets contributed different kinds of tasks. They can either be blocking or just run in the background, depending on what they do

Re: LESS compiler in 5.6.4

2022-02-21 Thread Ben Weidig
Hi Geoff, the CssCompressor is based on YUI Compressor https://github.com/yui/yuicompressor and has some minor issues... We replaced it with a customized variant in our projects to reduce any problems and improve performance, but maybe it's time to update/optimize it in Tapestry, too. Even

Re: New update site for anjlab/eclipse-tapestry5-plugin

2022-03-02 Thread Ben Weidig
github.com/anjlab/eclipse-tapestry5-plugin#how-to-build > > > > Regards, > > Dmitry > > > > On Tue, Mar 1, 2022 at 10:38 AM Ben Weidig wrote: > > > >> Hi Geoff, > >> > >> AFAIK there's no alternative since bintray was shutdown. > &g

Re: New update site for anjlab/eclipse-tapestry5-plugin

2022-03-01 Thread Ben Weidig
Hi Geoff, AFAIK there's no alternative since bintray was shutdown. We've tried to get it up and running, but Eclipse Plugin stuff is weird... In theory you can copy it directly into a dropins folder, or put in in the correct location. But it hasn't worked for us reliably, or even at all, and

Re: ChecksumPath exception on unexistent assets

2022-03-28 Thread Ben Weidig
Hi Bob, thanks for informing us about the exception on non-existant resources, I've created an issue: https://issues.apache.org/jira/browse/TAP5-2713 and will take a look. Cheers, Ben On Mon, Mar 28, 2022 at 4:15 PM Roberto wrote: > > > Hi, > > It appears that the >

Re: [ANNOUNCEMENT] Tapestry 5.8.1 released!

2022-04-05 Thread Ben Weidig
Hi Tim, thanks for notifying us! After a quick glance it looks like it's an issue since 5.7+ I've created a ticket: https://issues.apache.org/jira/browse/TAP5-2718 Cheers, Ben On Tue, Apr 5, 2022 at 8:32 AM D Tim Cummings wrote: > Thanks Thiago > > I checked the updates in quickstart and

Re: Navigation to section of a page

2022-03-21 Thread Ben Weidig
Hi Chris, you're right, the returned String is used directly as the page name and doesn't support any additions. IMO, there are two options how to implement such a feature: - Allow an anchor at the end of the String, and set it PageNameComponentEventResultProcessor - Use an

Re: Apache FOP integration

2022-01-27 Thread Ben Weidig
Hi Volker, can't help with FOP, but we're using JasperReport. With the HTML-to-PDF path it's often quite hard to get the layout right. That's why Jasper uses its own WYSIWYG designer, which isn't the nicest tool but it gets the job done. You can include variables, link other Jasper-files, loop

Re: Javascript module isn't generating css asset url

2022-04-15 Thread Ben Weidig
Hi George, I can't help with a "good" solution, only what we did to get the Monaco Editor running which loads css/js by itself. IIRC the underlying problem is that JS using require() builds the "wrong" URL for the requested asset/tapestry on the client-side. Tapestry expects modules to be in

Re: https://issues.apache.org/jira/browse/TAP5-2630

2023-09-03 Thread Ben Weidig
more info, or could you share a simplified sample project that I can run on my machine? Cheers Ben On Tue, Aug 1, 2023 at 4:46 PM Ben Weidig wrote: > That's weird... > > Here's an example from my code with some custom types: > > public static final List WEEK_DAY_SOURCE = List.of(.

Re: Help request with LCR and IntelliJ

2023-10-30 Thread Ben Weidig
Hi Riccardo, At my company, we're using Eclipse and registered .tml with the XML editor, to have at least rudimentary tag-completion and highlighting. Tapestry's xsd scheme only contains the most essential elements, so there's no code completion for its components. The Eclipse Tapestry Plugin

Re: Tapestry PeriodicExecutor - CronExpression issue with "L"

2022-04-26 Thread Ben Weidig
Hi Charles, I gave it a quick look and debugged org.apache.tapestry5.ioc.internal.services.cron.CronExpression.getTimeAfter(Date) with your expression and can confirm that there's an issue with handling "L-". At first, it got the right day, but then it gets reset to today. The code is quite

Re: JumpStart is up

2022-07-11 Thread Ben Weidig
Hi Geoff, thanks! I've started updating the links in Confluence, but ran into an exception: Database data has not been set up! https://tapestry-jumpstart.org/jumpstart/examples/navigation/onactivateandonpassivate/3 Cheers Ben On Mon, Jul 11, 2022 at 2:00 AM JumpStart <

Re: JumpStart is up

2022-07-11 Thread Ben Weidig
te: > Thank you Ben. Please try again now. > > > On 11 Jul 2022, at 2:26 pm, Ben Weidig wrote: > > > > Hi Geoff, > > > > thanks! > > > > I've started updating the links in Confluence, but ran into an > > exception: Database data has not be

Re: ChecksumPath exception on unexistent assets

2022-05-09 Thread Ben Weidig
ttached. > > Regards, > Bob > > Roberto Marotta > D.B.M. Srl > Via Enrico Noe, 23 > 20133 Milano > Tel. 02.26.60.05.21 > > > -- > *From: *"Ben Weidig" > *To: *"Tapestry users" > *Sent: *Monday, 28 March, 2022 4:

Re: Where to find dom js

2022-08-17 Thread Ben Weidig
Hi Ric, the file is preprocessed as a Gradle task of Tapestry itself to support jquery and prototype. [1] The version matching your JS provider is added as "t5/core/dom" here [2] Hope this helps! Cheers Ben [1]

Re: Avoiding page loading

2022-12-28 Thread Ben Weidig
Hi Geoff, I've read through the SoftReference documentation and as far as I understand it the references do only get garbage-collected in case of memory-pressure. However, the behavior to keep recently used objects is only encouraged, not explicitly required. Looking over the source code, you

Re: Use SASS Stylesheets

2023-01-27 Thread Ben Weidig
Hi Chirag, We successfully included SASS in our projects. However, our implementation isn't open-source, and it's quite a specific solution as we need to modify and compile different Bootstrap versions depending on each request in a singular project. Here's what we do: We use

Re: Avoiding page loading

2023-01-05 Thread Ben Weidig
her possibility is to introduce a configuration to tell whether > PageSource should use regular references or soft ones, defaulting to > current behavior. Or a new service to tell whether a specific page > class should use a regular reference instead of a soft one. This would > be m

Re: Preventing double click eventlink and form submit

2023-02-26 Thread Ben Weidig
Hi Nathan, Maybe I misunderstood your goal, but I would solve it with a module configured by CSS classes or data attributes instead of dedicated components. Something along the line of this (untested) CoffeeScript I improvised: define ['jquery', 't5/core/events'], ($, events) -> EVENT =

Re: ComponentClassResolver error

2023-04-27 Thread Ben Weidig
Hi Ric, that's weird, the method signature looks fine to me. Is org.apache.tapestry5.modules.TapestryModule listed in the loaded modules in the log output? How do you start your Tapestry project? Do you use the standard way of starting Tapestry in a ServletContainer/web.xml/TapestryFilter or do

Re: ComponentClassResolver error

2023-04-27 Thread Ben Weidig
info it's hard to suggest anything more than "the usual" things that could've gone wrong. On Thu, Apr 27, 2023 at 1:28 PM Ric 2000 wrote: > Hi Ben, > > Yes, we Start in Standard jboss eap 7.x > > Thanks and Regards > Ric > > Ben Weidig schrieb am Do.,

Re: Problem running Tapestry 5.8.2 with Hibernate 5.4.32.Final

2023-06-09 Thread Ben Weidig
Hi Chris, we ran into similar issues with custom queries, our workaround is calling getSession() on the session, like this: return this.session.getSession().createQuery(sql) // .setParameter("replyToId", relatedId) // .setParameter("type",

Re: Problem running Tapestry 5.8.2 with Hibernate 5.4.32.Final

2023-06-10 Thread Ben Weidig
to work a little differently. On Fri, Jun 9, 2023 at 7:07 PM Vangel V. Ajanovski wrote: > On 9.6.23 14:30, Ben Weidig wrote: > > we ran into similar issues with custom queries, our workaround is calling > > getSession() on the session, like this: > > > > ret

Re: Problem running Tapestry 5.8.2 with Hibernate 5.4.32.Final

2023-06-11 Thread Ben Weidig
Hi Chris, I've created a ticket: https://issues.apache.org/jira/browse/TAP5-2754 If I understand it correctly, the getSession() call just returns the associated session of the org.hibernate.jpa.HibernateEntityManager which Session extends since 5.2, see

Re: T5.8.3 upgrade T5.4 webapp

2023-08-01 Thread Ben Weidig
Hi Jens, There was thread with a similar problem in April, and it turned out that the new Module organization could lead to missing one if you don't use the TapestryFilter directly, like via web.xml: https://lists.apache.org/thread/ocy882q8tgdyq6j3mjs50mjx4y7l7yod You could try to import the

Re: https://issues.apache.org/jira/browse/TAP5-2630

2023-08-01 Thread Ben Weidig
Hi Jens, I was looking into static fields and the @Property annotation worker the other day but stopped, as I realized you can use "public static final" fields directly in the TML without any additional work. So the following code should be fine: public final String[] keys = new String[] {

Re: https://issues.apache.org/jira/browse/TAP5-2630

2023-08-01 Thread Ben Weidig
gt; > is not accessible from the page (tml). Exception is: > > "Exception assembling root component of page X: Could not convert 'x' > into a component parameter binding: Exception generating conduit for > expression 'x': Class X does not contain a property (or public field) &g

Re: Avoiding page loading

2023-06-18 Thread Ben Weidig
Source is an internal service and ComponentSource > > isn't. > > > > Another possibility is to introduce a configuration to tell whether > > PageSource should use regular references or soft ones, defaulting to > > current behavior. Or a new service to tell whether

Re: Problem running Tapestry 5.8.2 with Hibernate 5.4.32.Final

2023-06-24 Thread Ben Weidig
I think I found the issue. Not 100% sure yet, but my first tests look good. The PropertyShadowBuilder got changed in TAP5-2582, so it can handle duplicate methods if interfaces extend each other. In the case of Session, however, the return types of the methods differ, as it's totally valid to

Re: [ANNOUNCEMENT] Tapestry 5.8.4 release

2024-02-14 Thread Ben Weidig
Hi David, To expand the answer a little further, no schedule still means "the next thing to release". We absolutely understand the community's need for Jakarta EE. It's just that, given our available resources, we won't/can't commit to a fixed timeline. The Java 21 release was done first to

Re: IntelliJ Plugin

2024-04-27 Thread Ben Weidig
Hi Andreas, what a coincidence, I was thinking about the plugins this week! I'm not an IntelliJ user, but I see the need for readily available plugins, for both Eclipse and IntelliJ, that work with the latest Tapestry and IDE versions. IMO, the plugins are good candidates for the "Community

Re: Attribute Usages Within Grid Implementation

2024-04-23 Thread Ben Weidig
Hi Michael, we've also stumbled over private/final fields in components in the past. I don't know the actual reason, but I'm guessing it simply was a design choice made long ago and never changed. Going forward, maybe many (or maybe all?) of the core components should be easier to extend by

Re: translations and poedit

2024-03-12 Thread Ben Weidig
Hi Geoff, we translated a Tapestry app for one of our customers in recent years but don't have a ready-to-deploy workflow... But I can share our experiences and how we managed to do it in the end. Tools like poedit or plugins for IDEs are great tools, but only if both sides use them. Still, they

Development Roadmap 2024

2024-04-04 Thread Ben Weidig
Hello Tapestry Community! We're excited to share a rough roadmap of upcoming developments and the overall strategy for the project in 2024. Head over to https://tapestry.apache.org/development-roadmap.html to learn more, but here's the overview: - (IN PROGRESS) Jakarta EE - (IN

Re: Illegal char <<> at index 18: StreamableResource

2024-05-20 Thread Ben Weidig
Hi Chris, that's most likely https://issues.apache.org/jira/browse/TAP5-2605 and it should be fixed next Tapestry release. In the meantime, you could override the GoogleClosureMinimizer by copying the code from org.apache.tapestry5.internal.webresources.GoogleClosureMinimizer to a new class and