Re: [SURVEY] Do your Tapestry projects use Tapestry's own JS directly?

2025-06-12 Thread Chris Poulsen
We have one product with 35-ish module files that rely on Tapestry modules (I searched for: "t5/") and another product with 10-ish modules. I think most of our code is coded more directly against jQuery than against the t5 modules (we are mostly using the t5 functionality for receiving ajax respon

Re: Experiences with upgrading our apps from 5.8.2 to 5.8.6

2024-05-02 Thread Chris Poulsen
ction is better. It keeps your service > classes working even when not using Tapestry-IoC, making automated testing > way easier, and, in most cases, you can even have your service classes > completely independent of Tapestry itself. > > Cheers! > > > On Tue, Apr 30, 2024

Experiences with upgrading our apps from 5.8.2 to 5.8.6

2024-04-30 Thread Chris Poulsen
The upgrades went pretty smoothly in general, good job team! I did encounter a couple of issues that I think it is worth raising the flag on. We run our products in different environments: - On plain Windows servers - In Docker containers (Linux). Things are currently on Java 17, the deve

Re: Problem running Tapestry 5.8.2 with Hibernate 5.4.32.Final

2023-06-14 Thread Chris Poulsen
> > How come nobody else has noticed the bug for two years? > In general we're isolating the use of Tapestry to our presentation layer - The datastore access (and business logic) lives in modules and the UI sits on top of the business logic layer - The lower level modules are usually wired up with

Re: [ANNOUNCEMENT] Tapestry 5.8.1 released!

2022-04-05 Thread Chris Poulsen
Thank you for the release! I don't know if this is already known, but I just noticed that the heading links in the "Latest news" on the front page does not work for the two 5.8.x releases. The (broken) 5.8.1 link in the list is: https://tapestry.apache.org/2022/04/04/tapestry-581-release.html whi

Re: method varargs and property expression

2021-05-27 Thread Chris Poulsen
We never really use much of the expression language, so I can't comment on that. This is just a comment on the last example: I'm not sure that you need a @Property when using the "var:" prefix (if you have a backing property it ought to be a "prop:" binding, as far as I understand) -- Chris O

Re: Coffeescript documentation is broken

2021-04-21 Thread Chris Poulsen
do < thiag...@gmail.com> wrote: > Hello! > > Thanks again! > > I've finally had some time to fix this. I've just committed the changes and > it takes some time, maybe an hour, for them to be replicated to the site. > > On Fri, Apr 16, 2021 at 8:16 AM Chr

Re: Coffeescript documentation is broken

2021-04-16 Thread Chris Poulsen
at 11:29 PM Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Hello! Please check again and let me know whether the problems are actually > fixed. > > On Thu, Mar 25, 2021 at 7:52 AM Chris Poulsen > wrote: > > > Hi > > > > I was just introducin

Coffeescript documentation is broken

2021-03-25 Thread Chris Poulsen
Hi I was just introducing a new employee to Tapestry and when I wanted to walk through the coffeescript docs since I find them a little peculiar, I realized that they are hard to find - and their navigation is broken. The way I found them, was to go to Tapestry->Documentation, clicked one of the

Re: Re: Spring Security Integration

2020-09-14 Thread Chris Poulsen
We have a couple of tapestry apps that are wired up using boot and spring security. A simple setup to get the Tapestry filter in, is something like this (no web.xml, the listener and production mode symbol can be left out): @SpringBootApplication public class AppWebApplicationInitializer extends S

Re: HTML5 Button Component for tapetry 5.4.x

2019-09-11 Thread Chris Poulsen
We usually just style the various Tapestry link components to get buttons with the desired behavior. -- Chris On Wed, Sep 11, 2019 at 1:45 PM Luca Arzeni wrote: > Hi there, > I googled a little around, but I was not able to find a tapestry component > that generates a button. > > Here you can

Re: Apache Tapestry for Java 11

2019-09-10 Thread Chris Poulsen
I did roll an "internal" 5.5-beta version based on the code from 12th July as there are some fixes in HEAD that are not in the beta-2 and that bastard build is what we currently are using without problems. If 5.5 isn't 100% ready for release yet, it seems to be really close and it would be good to

Re: Proxying default methods does not work with 5.5.0-beta-2

2019-07-12 Thread Chris Poulsen
Hi I've just gotten around to test our products against Tapestry 5.5 (master/HEAD) - Everything seems to work fine with the latest code, good work! Would it be possible to get a tagged beta (or rc) version published to some repository that we can rely on for stable builds? I can see several 5.4

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

2019-07-08 Thread Chris Poulsen
Hi, Using nnn="{}" is probably not correct in any case, I think that what you think is an expression ends up as just a literal string. One can expand properties (and other stuff) in templates using ${}, but that expansion ends up being a string. For component bindings like the one in your example

Re: Accessing a page over HTTPS results in infinite 302 redirects

2019-06-14 Thread Chris Poulsen
Hi, We use: // default to non-secure pages (allows us to support both http and https based on the request) configuration.add( SymbolConstants.SECURE_ENABLED, "false" ); And always have an upstream proxy for performing SSL termination. This relies on the X-Forward-* headers being set and handled

Re: Re: Open Discussion: remove Bootstrap from T5 core

2019-02-19 Thread Chris Poulsen
Hi I think working on making the framework "core" more css agnostic seems like a good direction, allowing things to move forward without having to try and pick (and maintain) the correct bootstrap version (or other css framework version/flavor). There is a pretty good chance that whatever is selec

Re: [ANNOUNCEMENT] Tapestry 5.4.4

2019-01-03 Thread Chris Poulsen
whether that one is still necessary. -- Chris On Thu, Jan 3, 2019 at 1:05 AM Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Wed, Dec 19, 2018 at 11:26 AM Chris Poulsen > wrote: > > > Hi > > > > Hello! > > > > We are using some p

Re: [ANNOUNCEMENT] Tapestry 5.4.4

2018-12-19 Thread Chris Poulsen
Hi Nice work on moving tapestry forward! It looks like the JDK updates may just land, before we can't postpone updating our stuff anymore *fingers crossed* ;) There are still something fishy in the property access / generics support implementation, I reported it some years back either on the list

Re: DateField behaviour when within a zone

2018-12-06 Thread Chris Poulsen
Hi is valid html, while is valid xhtml, so depending on what you are outputting open may be appropriate. If the built-in datepicker is giving you grief, roll your own... I find that we (at work) eventually have had to replace almost all of the slightly fancy "gui" components in tapestry, while

Re: How to let custom component participate in form submission

2018-11-04 Thread Chris Poulsen
Hi It sounds like you are attempting to do something in a way that may not be ideal (judging from all the hoops you are trying to jump through). In Tapestry you can usually get really far using the simple building blocks that are provided. With a few exceptions you are usually taking a bad course

Re: Has anyone tried nesting "toplevel" layout components successfully?

2018-10-15 Thread Chris Poulsen
in general. > > Can you show us the first few lines of TML from your main pagelayout > component and your nested layout component? > > > On Mon, Oct 15, 2018, 6:13 AM Chris Poulsen > wrote: > > > Hi > > > > I'm trying to improve on the layout we are us

Has anyone tried nesting "toplevel" layout components successfully?

2018-10-15 Thread Chris Poulsen
Hi I'm trying to improve on the layout we are using across several tapestry based products. Initially it used an abstract base layout component that the products extend to provide a common line for the layout. I'm trying to simplify this situation by making the layout in the framework module a co

Re: eventlink with multiple context parameters

2018-10-03 Thread Chris Poulsen
I think that you may be hit by some type erasure on the map. That said Tapestry also has some correctness issues with some generic constructs where it detects a too generic type in some complex cases. We are overriding the GenericsUtils class with an implementation that uses Guava's TypeToken for

Re: Using JavaScript during Ajax request

2018-09-28 Thread Chris Poulsen
Hi I'd say that you were off track. Tapestry already provides you with the means to do what you need (the mentioned ajaxResponseRenderer callback for ajax requests), so attempting to manipulate the environment to achieve what is already supported, sounds like the recipe for creating something that

Re: JavaScript not invoked on zone refresh

2018-09-26 Thread Chris Poulsen
Reacting to the zone events sounds like the best option IMO. Controlling this from the server side seems needlessly complex and fragile in this case. Not really related to your issue, but you can call exported module methods in 5.4 like this: JSONObject specification = new JSONObject( "diagramCli

Re: JavaScript not invoked on zone refresh

2018-09-24 Thread Chris Poulsen
Hi Zone updates are updates of parts of the page, so the ready function is not triggered for those. Consider also performing your initialization on zone updates. See: http://tapestry.apache.org/current/coffeescript/events.html#section-20 for the zone related events. -- Chris On Tue, Sep 25, 201

Re: Grid custom no field

2018-04-18 Thread Chris Poulsen
Create a component? -- Chris On Thu, Apr 19, 2018 at 5:53 AM, abangkis wrote: > Hi, when adding a custom no field to my grid, to show the no of the actual > row, i declared an int on the page and calculate the value by multiplying > the variables in the grid like the code bellow. > > Is there

Re: Grid component customization

2018-02-06 Thread Chris Poulsen
There is already a decent amount of RenderNotification mixins present on the various grid components allowing you to manipulate the MarkupWriter per row, column and header column. -- Chris On Tue, Feb 6, 2018 at 12:51 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Another poss

Re: BeanEditForm onValidate()

2018-01-16 Thread Chris Poulsen
You could try setting a break point in the database update code and some in the event handlers and the examine the call stack to see where the call originates from and in which order things happen -- Chris On Tue, Jan 16, 2018 at 10:51 AM, JumpStart < geoff.callender.jumpst...@gmail.com> wrote:

Re: How to use CSS buttons outside of forms

2017-12-25 Thread Chris Poulsen
I mostly use elements styled as buttons for this - A standard bootstrap thing. It sounds like your CSS is off if your elements disappear when rendering them with tapestry, take a look at the generated HTML to see what is going on. Maybe your is rendered as (It is "link" components so it could b

Re: How to use CSS buttons outside of forms

2017-12-23 Thread Chris Poulsen
Hi, All the link types extends AbstractLink which supports informal parameters... So basically just add a class="" parameter and it will pass through to the html. -- Chris On Sat, Dec 23, 2017 at 8:31 AM, Christopher Dodunski < chrisfromtapes...@christopher.net.nz> wrote: > Hi all, > > The T

Re: Contribute requirejs.config.paths to ModuleManager

2017-11-27 Thread Chris Poulsen
Hi, It has been a while since I last fought the module system, but in some cases I've used a request filter to map between module and asset paths (triggering on known module paths and then returning permanent redirects to the actual asset urls in the filter) - This was necessary in order to get st

Re: Change bootstrap css load order

2017-08-28 Thread Chris Poulsen
Try using a JavaScriptStack instead of adding them directly with link tags. -- Chris On Tue, Aug 29, 2017 at 6:23 AM, Rural Hunter wrote: > Hi, > > I have some web pages which have bootstrap and some other css extentions > depending on bootstrap. We use tag in TML for other css and reply on >

Re: Tapestry Ajax Security

2017-04-30 Thread Chris Poulsen
Your means to securing a "traditional tapestry page" (filter based approach) should be sufficient. On Mon, May 1, 2017 at 6:39 AM, abangkis wrote: > Hi, with the client-side API release in Tapestry 5.4.2 probably there will > be more people that will depend on the tapestry ajax component. So I

Re: RadioGroup Validate Bug

2017-01-04 Thread Chris Poulsen
Hi, All the info needed seems to be in the issue you link to / in the message thread the issue link to. If you insist on relying on the default validation binding and do not want to wait for someone to pick up the issue, then roll your own radiogroup and override the default one - if not, just sp

Re: Data export

2016-12-23 Thread Chris Poulsen
Hi, One solution is to return a StreamResponse from an event handler. -- Chris On Fri, Dec 23, 2016 at 9:16 AM, wrote: > Hi All, > > I'm a newbee on Tapestry which is a powerful and simply Framework ! > > I'm looking for a tutorial on tapestry5 which explains how to : > export data from a dat

Re: Preventing context from passivate

2016-12-01 Thread Chris Poulsen
I would expect action/event links to have page context as they are a part of the page where they live (for example a logout event link click, would cause tapestry to activate the containing page and then trigger the logout event handler on that page). Things like logout I would handle using a plai

Re: Recommended way to instantiate EventContext

2016-11-28 Thread Chris Poulsen
Normally you would return an Object[] from passivate and tapestry will coerce it into the correct result. -- Chris On Mon, Nov 28, 2016 at 6:41 PM, Adam X wrote: > Okay, I tried @Persist(FLASH) EventContext ec storing it in activation > and simply returning in passivation and it works. > > Thi

Re: running JS to attach client events to a zones content after it's rendered

2016-10-01 Thread Chris Poulsen
You can bind the button listener on an enclosing element ( document for example ) or you can bind on one of the zone update events and wire up things from there (I think i found some tapestry js components that uses a function called "scan" or "scanner" to initialize dynamically loaded stuff - ther

Re: Getting ID of an updated zone

2016-09-17 Thread Chris Poulsen
Check to see what "this" refers to in the handler? Isn't that often the element that triggered the event? On Sat, Sep 17, 2016 at 12:25 PM, Adam X wrote: > Thanks for the suggestion about t5atmosphere. I will definitely look into > it. > > I do not want to send ids back to the server. I simply w

Re: JS call on AJAX zone update

2016-09-15 Thread Chris Poulsen
> > > > > > Is there something obvious that I'm doing wrong? > > > > > > $("#myZone").change(function() { > > alert('changed'); > > }); > > > > > > Adam > > > > On Thu, Sep 15, 2016 at 10:01 AM, C

Re: JS call on AJAX zone update

2016-09-15 Thread Chris Poulsen
Take a look at http://tapestry.apache.org/current/coffeescript/events.html#section-16 to see which events to listen for On Thu, Sep 15, 2016 at 9:40 AM, Adam X wrote: > Hi, > > I know I'm missing something, but what's the easiest, cleanest > Tapestry way to hook a JS function whenever zone is up

Re: Swipe and touch

2016-09-05 Thread Chris Poulsen
I think the way to go is not to expose them / use them directly in onClick. Instead you bind them in a module (either using t5/core/dom or jquery). That way you are also keeping your global (script) scope much cleaner. Lots of the tapestry framework client side code use this pattern. -- Chris

Re: file upload doesn't set file value

2016-09-01 Thread Chris Poulsen
Unfortunately I think Carlos is correct. -- Chris On Wed, Aug 31, 2016 at 11:18 PM, Pavel Chernyak wrote: > Hi there. > > Maybe you shall anotate field file @Persist? > > > On 31 August 2016 at 23:03, Qbyte Consulting > wrote: > > > > > I'm always finding that file is null for file upload? If

Re: how to pass geolocation coords as hidden values in login form

2016-08-31 Thread Chris Poulsen
2016 at 9:36 AM, Qbyte Consulting wrote: > How can I trigger the locate function from the component Java after login > success, what replaces .addScript? > > Sent from my iPhone > > > On 31 Aug 2016, at 08:07, Chris Poulsen wrote: > > > > The javaScriptSupport.a

Re: how to pass geolocation coords as hidden values in login form

2016-08-31 Thread Chris Poulsen
+ "?lat=" + position.coords.latitude > + "&long=" + position.coords.longitude; > $.ajax({url: geolink}); > }, geoError); > } > } > > > On Tue, Aug 30, 2016 at 12:11 PM, Chris Poulsen > wrote: &

Re: how to pass geolocation coords as hidden values in login form

2016-08-30 Thread Chris Poulsen
Use a form, request parameters or url context - The usual way of sending data to the server. -- Chris On Tue, Aug 30, 2016 at 11:56 AM, Qbyte Consulting < qbyteconsult...@gmail.com> wrote: > I get JS to populate the hidden form fields, they are passed as parameters > to the page, but they are e

Re: hide special pages ...

2016-08-30 Thread Chris Poulsen
actice to hide it. I mean not just > error pages... also propertyblocks pages should be hidden from users to > type their url shouldnt they? > > But as my project is jar packaging with embedded tomcat, I dont have webapp > source folder with web-inf . > > Thank you. > El 30

Re: hide special pages ...

2016-08-29 Thread Chris Poulsen
Just return something from you activate, e.g: Object onActivate() { return new HttpError( 404, "Resource not found"); } On Tue, Aug 30, 2016 at 1:25 AM, Juan M Garrido de Paz < juanm.garrido@gmail.com> wrote: > Hello, I'm using Tapestry with Spring Boot and embedded tomcat (jar > packag

Re: exception on page render

2016-08-12 Thread Chris Poulsen
s mention of got 5. Sorry to confuse. > > > > On Fri, Aug 12, 2016 at 1:19 PM, Chris Poulsen > > wrote: > > > >> org.got5is still in your stacktrace... So maybe you have a jar > >> lingering somewhere. > >> > >> -- > >> Chris &

Re: exception on page render

2016-08-12 Thread Chris Poulsen
org.got5is still in your stacktrace... So maybe you have a jar lingering somewhere. -- Chris On Fri, Aug 12, 2016 at 2:02 PM, Qbyte Consulting wrote: > I've been copying code from here https://tapestry-app.apache.org/hotels/ > but with my own database and other project dependencies. > > On

Re: TLS termination proxy and Tapestry

2016-07-22 Thread Chris Poulsen
at Are Unencrypted > http://motherboard.vice.com/read/google-will-soon-shame-all-websites-that-are-unencrypted-chrome-https > < > http://motherboard.vice.com/read/google-will-soon-shame-all-websites-that-are-unencrypted-chrome-https > >. > > > > > > > > GeoLocation stopped to wor

Re: TLS termination proxy and Tapestry

2016-07-22 Thread Chris Poulsen
We are always setting tapestry.secure-enabled = false -- Chris On Fri, Jul 22, 2016 at 11:29 AM, Dimitris Zenios wrote: > When i am doing ssl out of the servlet container (eg jetty,apache etc) i > always set secure enables to false. > > On 21 Jul 2016 12:07, "Svein-Erik Løken" wrote: > > > Us

Re: Problem sending data from a JS Element back to Tapestry

2016-07-21 Thread Chris Poulsen
; > but in Firefox console I get still > > TypeError: extendURL is not a function > buildUrl() > myBarRender.js:56 > > myBarRender.js:30 > jQuery.event.dispatch() > jquery.js:137 > jQuery.event.add/elemData.handle() > jquery.js:126 > jQuery.event.trigger() > >

Re: Problem sending data from a JS Element back to Tapestry

2016-07-21 Thread Chris Poulsen
you cannot expect that your parameters end up as event context (unless you encode them into your url in that way). I've had success using: var url = buildUrl( setupDialogLink, params ); ajax( url, { success: function(){ ... } }); var buildUrl = function( link, params ) { return utils.extendU

Re: Modules not found by Tapestry 5.4.1; serving 'index' instead

2016-06-30 Thread Chris Poulsen
change @Import(module = { "mymodule.js",}) to @Import(module = { "mymodule"}) -- Chris On Fri, Jul 1, 2016 at 4:31 AM, Claude Andrew wrote: > I just upgraded to 5.4.1 from 5.3. I am switching my js libraries to > requirejs modules. Following the guide at > http://tapestry.apache.org/javascri

Re: after migrating to T5.4 home page won't load

2016-06-30 Thread Chris Poulsen
check mvn dependency:tree to see what is actually resolved -- Chris On Thu, Jun 30, 2016 at 10:52 PM, Qbyte Consulting < qbyteconsult...@gmail.com> wrote: > Here are the effective dependencies: > > > > org.apache.tapestry > tapestry-core > 5.4.1 > compile >

Re: problem accessing assets after migration to 5.4

2016-06-30 Thread Chris Poulsen
assets are usually in a specific path (resources/META-INF/assets/...) - Could it be that your file is not an asset and that it should be loaded using normal methods (classloader.getResourceAsStream or similar) -- Chris On Thu, Jun 30, 2016 at 8:23 PM, Thiago H de Paula Figueiredo < thiag...@gmai

Re: Tapestry with Selenium and Cucumber

2016-06-30 Thread Chris Poulsen
The tapestry sources are tested using selenium. On Thu, Jun 30, 2016 at 5:31 PM, Qbyte Consulting wrote: > Hi, > > Are there any Tapestry sample projects around with Selenium and/or Cucumber > tests? > > thanks, > John >

Re: Caching problem?

2016-06-30 Thread Chris Poulsen
was turned off for everything) and the problem I > had with that one asset seems to be solved (still don't really get what was > happening there though). > > Thanks for your thoughts! > > Nathan > > > > On 30/06/16 15:56, Chris Poulsen wrote: > >>

Re: Caching problem?

2016-06-30 Thread Chris Poulsen
check the path? (asset paths usually contains "/asset/" and module paths contains "/modules/") On Thu, Jun 30, 2016 at 11:55 AM, Nathan Quirynen < nat...@pensionarchitects.be> wrote: > Is there any way to know in a Request filter if it is a page request (not > a request to some asset). > > I thou

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

2016-06-30 Thread Chris Poulsen
I guess using t:add is OK as long as the grid is not performing operations where it needs to access the property in the data source (for operations like sorting/filtering). Generally speaking we (@work) almost always end up using bean models, except in the most simple cases. -- Chris On Thu, Ju

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

2016-06-29 Thread Chris Poulsen
I'm guessing that something in the sorting part attempts to pull out the value from your passed data source (possibly coerced from a collection). The thing is that your data source does not contain the property (as it is synthetic) and you do not really pull the value from the data source ever, bu

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

2016-06-28 Thread Chris Poulsen
t correct in general, regardless of Tapestry version ? Maybe this is > the case and this incorrect way was being somehow "forgiven" by 5.3.7 ? > > > -Original Message- > From: Chris Poulsen [mailto:mailingl...@nesluop.dk] > Sent: Tuesday, June 28, 2016 15:32 >

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

2016-06-28 Thread Chris Poulsen
Also you can control the display blocks using the data-type on the bean model, if you need something special. -- Chris On Tue, Jun 28, 2016 at 3:30 PM, Chris Poulsen wrote: > You can use a bean model for variable number of columns, that one also > gives you full control over condui

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

2016-06-28 Thread Chris Poulsen
You can use a bean model for variable number of columns, that one also gives you full control over conduits etc. Inject BeanModelSource and create a display model for your data source, use .include (or similar) to whitelist the desired attributes in the generated model and model.add to get your sy

Re: How to customize the grid to show three s in two rows?

2016-06-22 Thread Chris Poulsen
Loop (it looks > that tapestry automatically adds, after generating the html from t:Grid, > the classes with the names of the columns eg. Some kind > of topic). > > 2016-06-22 9:50 GMT+02:00 Chris Poulsen : > > > So: > > > > > > > > > > &

Re: How to customize the grid to show three s in two rows?

2016-06-22 Thread Chris Poulsen
ers after). > Now I am examining if it's possible to move the third component down > (below the other two) via css styling. > > 2016-06-22 8:13 GMT+02:00 Chris Poulsen : > > > Your post seems incomplete, so it is not clear to me, what you are trying > > to do. > >

Re: How to customize the grid to show three s in two rows?

2016-06-21 Thread Chris Poulsen
Your post seems incomplete, so it is not clear to me, what you are trying to do. -- Chris On Wed, Jun 22, 2016 at 8:05 AM, g kuczera wrote: > Currently I got a request to add another visible column to the table (grid > component), but the request was for it to be placed below the rest. What do

Re: Tapestry5.4.0 'ProgressiveDisplay' ajax call fails to render page on IE 11

2016-06-21 Thread Chris Poulsen
Hi, Sounds like IE is to blame - for once... Could it be something with compatibility mode that is acting up? https://msdn.microsoft.com/en-us/library/ff955410(v=vs.85).aspx -- Chris On Tue, Jun 21, 2016 at 4:29 PM, sheikh hossain wrote: > I wonder if there's any issue with ProgressiveDispla

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

2016-05-09 Thread Chris Poulsen
many internal tapestry services that uses this pattern, so I suggest you check out the source and see how they are created. (NullFieldStrategySourceImpl and related code could be an example) -- Chris On Mon, May 9, 2016 at 9:22 AM, Rafael Bugajewski wrote: > > On 2016-07-05, at 09:48 AM, Chr

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

2016-05-07 Thread Chris Poulsen
It is not really clear to me what you want to do? Are you talking about picking the correct impl once (during initial application setup) or selecting the impl. per request. Is the "input parameter" something that is defined during registry bootstrap or passed in on every call? For the prior I supp

Re: Changing Grid.currentPage persistency to flash

2016-05-02 Thread Chris Poulsen
I haven't used the grid with flash persistence, so I cannot comment on that. But I just want to let you know that you can control the behavior of @Persist inside the Grid using "Persistence Strategy Inheritance" ( http://tapestry.apache.org/persistent-page-data.html ) without having to alter the c

Re: Change grid on "onSuccess"

2016-04-27 Thread Chris Poulsen
When you need to persist non-trivial state (and not want to put it in the session, like standard @Persist does), you need to help tapestry figure out how to map between a String and the persistent state. There are some coercers for the most trivial types and projects like tapestry-hibernate/jpa al

Re: Paged grid with checkbox's fails when switching page

2016-04-13 Thread Chris Poulsen
You can roll your own version of the grid. We have done this to support filters, include context in pagination links, have better control over the zone updates etc. I do not think the built in grid/tree components was ever intended to handle all possible cases. -- Chris On Thu, Apr 14, 2016 at 4

Re: tapestry 4.1.6 and pergmen question

2016-04-06 Thread Chris Poulsen
You could try "CMSClassUnloadingEnabled" to see if that helps -- Chris On Wed, Apr 6, 2016 at 11:24 PM, Kalle Korhonen wrote: > If you run out of permgen space very quickly, then it's indicative that the > allocated permgen space is simply too small. Perhaps the new version of > Tomcat require

Re: render nested component

2016-03-21 Thread Chris Poulsen
.java#JSONObject.put%28java.lang.String%2Cjava.lang.Object%29 > >("markExpandedURL", > markExpanded.toString > < > http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b27/java/lang/Object.java#Object.toString%28%29 > >()) > > 184 < > http:/

Re: render nested component

2016-03-19 Thread Chris Poulsen
Hi, Take a look at the Tapestry Tree component to see how recursive rendering can be done. -- Chris On Fri, Mar 18, 2016 at 6:17 AM, Qbyte Consulting wrote: > I am creating a Menu component (for a ul tag) that needs to > programmatically generate the child links. > > I already have a MenuItem

Re: SSL on url demand

2016-03-10 Thread Chris Poulsen
> I have seen other applications that work either http or https > simultaneously without redeploying new compiled code. > Is there a way to accomplish this with tapestry ( for java and javascript > part ) framework version 5.3? > > Regards > Dimitri > > On 2016-03-10 12:40, Chris Poul

Re: SSL on url demand

2016-03-10 Thread Chris Poulsen
I think we're handling it like this: // default to non-secure pages (allows us to support both http and https based on the incoming request) configuration.add( SymbolConstants.SECURE_ENABLED, "false" ); HTH. -- Chris On Thu, Mar 10, 2016 at 3:36 AM, JumpStart < geoff.callender.jumpst...@gmail.

Re: jss.require(...) code is not executed when using ajaxResponseRenderer.addCallback(new JavaScriptCallback())

2016-02-06 Thread Chris Poulsen
me that the jss.require(..).invoke(..).with(..) is not > executed correctly... > I think the jss that is triggered through the "new > JavaScriptCallback().run(JavaScriptSupport jss)" does not function > correctly... > > On 6 February 2016 at 21:45, Chris Poulsen wrote

Re: jss.require(...) code is not executed when using ajaxResponseRenderer.addCallback(new JavaScriptCallback())

2016-02-06 Thread Chris Poulsen
Your "onStockPriceReceived2" seems to be triggered from some atmos library callback. As your AddPoint button clearly works, then I think it is a stretch to say that the callback stuff does not work - It does not work when using the atmos library, but does when called the "normal" way. You should

Re: [5.4] request from javascript to Tapestry event

2016-02-05 Thread Chris Poulsen
Faking a "click" on an invisible async eventlink could also be a very simple way to get this working without having to mock around with much javascript. -- Chris On Fri, Feb 5, 2016 at 3:04 PM, Chris Poulsen wrote: > Have a look at http://tapestry.apache.org/current/coffeescr

Re: [5.4] request from javascript to Tapestry event

2016-02-05 Thread Chris Poulsen
Have a look at http://tapestry.apache.org/current/coffeescript/ajax.html -- Chris On Fri, Feb 5, 2016 at 2:54 PM, Nathan Quirynen wrote: > Hi, > > I have finally started the process of updating to 5.4. > Some components have an initializer javascript where an eventlink url is > passed as a par

Re: Commit After not working after migrating to IntelliJ

2016-02-04 Thread Chris Poulsen
I have not used the hibernate integration myself. But my guess is that you should depend on tapestry-hibernate instead of tapestry-hibernate-core As far as I can tell from the sources, the CommitAfterWorker class lives in that module. HTH. -- Chris On Thu, Feb 4, 2016 at 2:39 PM, abangkis

Re: 5.4-rc-1 - problem when *add* a column to a *grid*, but it is working OK in 5.4-beta-26

2015-12-14 Thread Chris Poulsen
015 at 12:04 PM, Vangel V. Ajanovski wrote: > First of all, I have made a mistake in the subject - it was supposed to be > 5.4-rc-1 > > On 14.12.2015 09:18, Chris Poulsen wrote: > >> show. (If you are not using include, a number of things can go wrong like: >> the Degree

Re: 5.4-ga-1 - problem when *add* a column to a *grid*, but it is working OK in 5.4-beta-26

2015-12-14 Thread Chris Poulsen
Hi, I don't know if there is an issue with the GA, but you are relying on introspection to find your bean properties; that is asking for trouble IMO. Always use property whitelisting to achieve a stable set of properties for your grids. Basically make sure to "include" the properties you want to

Re: Retrieving the Class of an enum backing a Grid column

2015-12-09 Thread Chris Poulsen
Maybe you can find it in the PropertyModel for the column? ( http://tapestry.apache.org/5.4/apidocs/org/apache/tapestry5/beaneditor/PropertyModel.html#getPropertyType%28%29 ) -- Chris On Wed, Dec 9, 2015 at 5:10 PM, Davide Vecchi wrote: > Hi everybody, > > I'm writing a custom component to be

Default css class on input[type='file']?

2015-11-19 Thread Chris Poulsen
Hi, I noticed TAP5-2518 was created (and closed). We've actually been hit by the same issue in our product. After upgrading from an older 5.4 beta some of our pages did not look correct due to the added "form-control" class on the file inputs. (Added in TAP5-2408 - The issue mentions the reason t

Improving linksubmit in form loop?

2015-11-03 Thread Chris Poulsen
Hi, I've been working on a dynamic ajax form in 5.4; that allows users to configure a list of things. The idea is that add / edit / delete operations carry all data with them (form submits). The list is rendered as a list of form-fields per row using a t:loop. There have been some challenges, but

Re: javassist/hibernate enhanced class problem

2015-10-30 Thread Chris Poulsen
Mabet use an interface for the objects? Then the implementation class can change all it wants to. On Thu, Oct 29, 2015 at 11:40 PM, Paul Stanton wrote: > further, it is not the 'save' that javassistifies the object, it is > 'session.load' ! so if you do a session.load(id) and a criteria.list() >

Re: AW: How to send additional data with an ajax response

2015-10-29 Thread Chris Poulsen
I haven't checked out all of the callback types, but we often use the javascript callback to do extra stuff on the calling page. Something like: ajaxResponseRenderer.addCallback( new JavaScriptCallback() { @Override public void run( JavaScriptSupport javascriptSupport ) { java

Re: How to send additional data with an ajax response

2015-10-28 Thread Chris Poulsen
Ajax response renderer may also be a viable solution for returning multiple things. I tend to prefer that over returning getBody() for exactly that reason. -- Chris On Wed, Oct 28, 2015 at 2:05 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Wed, 28 Oct 2015 08:16:21 -0200,

Re: Standard BeanModel for my own classes

2015-10-12 Thread Chris Poulsen
Take a look at data type analyzers and their corresponding property display/edit blocks to get this working. Jumpstart has an example: http://jumpstart.doublenegative.com.au/jumpstart/examples/lang/propertyeditors -- Chris On Mon, Oct 12, 2015 at 11:32 AM, Poggenpohl, Daniel < daniel.poggenp...

Re: Custom ValueEncoder & IOC

2015-09-14 Thread Chris Poulsen
Can't you could just bind it in your app module? -- Chris On Mon, Sep 14, 2015 at 3:35 PM, Damon Childs wrote: > How do i get a custom ValueEncoder under control of IOC? > > I have a ValueEncoder that translates a id to a Object from a db. > > public class PropertyTypeEncoder implements > Valu

Re: Inspection of Tapestry applications in IntelliJ

2015-08-25 Thread Chris Poulsen
There have been some improvements in the recent v15 EAPs. Also you can adjust the unused inspection to not trigger on certain annotations. (I think it is some sub-menu found under the "light bulb" when having an unused field marked) On Tue, Aug 25, 2015 at 2:29 PM, Poggenpohl, Daniel < daniel.pog

Re: Debugging Tapestry with IntelliJ IDEA

2015-08-25 Thread Chris Poulsen
Gesendet: Dienstag, 25. August 2015 13:26 > An: Tapestry users > Betreff: Re: Debugging Tapestry with IntelliJ IDEA > > Just to confirm it also works fine here too. I've found IntelliJ to be > absolutely fantastic so far. I'm running it using jetty but I know there is

Re: Debugging Tapestry with IntelliJ IDEA

2015-08-25 Thread Chris Poulsen
It works fine with IDEA here. A possibility could be that you are running in production mode? On Tue, Aug 25, 2015 at 12:04 PM, Poggenpohl, Daniel < daniel.poggenp...@isst.fraunhofer.de> wrote: > Hello everyone, > > we are evaluating IntelliJ IDEA for development and so far it has been > quite go

Re: Pages, embedded components, dialogs, persisting entities across requests and submitting forms

2015-07-20 Thread Chris Poulsen
Case one is a candidate for activation and case 2 could be a matter of using form context / prepare events. Beware that the activate event is triggered in many situations. -- Chris On Mon, Jul 20, 2015 at 3:39 PM, Chris Poulsen wrote: > @BeginRender is only triggered during render

Re: Pages, embedded components, dialogs, persisting entities across requests and submitting forms

2015-07-20 Thread Chris Poulsen
@BeginRender is only triggered during rendering. Page activation is always called and there are a couple of "prepare" events fired when you have a form in the mix. -- Chris On Mon, Jul 20, 2015 at 3:31 PM, Poggenpohl, Daniel < daniel.poggenp...@isst.fraunhofer.de> wrote: > Hello everyone, > >

  1   2   3   >