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
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
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
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
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
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
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
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) ->
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
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
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.
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
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
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
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
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
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
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)
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
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
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
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
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
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
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"
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
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
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
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
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
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
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
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
>
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
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
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
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
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(.
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
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
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 <
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
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:
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]
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
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
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
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 =
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
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.,
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",
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
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
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
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[] {
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
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
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
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
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
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
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
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
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
64 matches
Mail list logo