Re: [5.4] javascript - simplify the new paradigm please

2014-11-16 Thread Paul Stanton
a constant but, as I said above, sometimes you have to derive its value from its container or event context. Geoff On 14 Nov 2014, at 9:18 am, Paul Stanton pa...@mapshed.com.au wrote: Oh, so calling require(modal).invoke(activate) and then later require(modal).invoke(deactivate) .. both re

[5.3] why is a stack being included when not referenced?

2014-11-18 Thread Paul Stanton
Hi, I have PageA for which I have created StackA of all the the js it includes by the virtue of its self and its components (for production efficiency). I have PageB for which I have not created a stack, and it does not import StackA. However when I request PageB, StackA is being included

Re: [5.4] javascript - simplify the new paradigm please

2014-11-18 Thread Paul Stanton
Chris, can you point me to an example of this? thanks, p. On 18/11/2014 10:53 AM, Chris Poulsen wrote: I'm moving more of the initializer code over to get client id's etc. from data attributes - the scanner pattern for initialization that can be seen in some of tapestrys own components works

Re: [5.3] why is a stack being included when not referenced?

2014-11-19 Thread Paul Stanton
Thiago, Tapestry is smart enough to not download JS twice. Your 2nd paragraph sounds more likely - someone took the approach that if a resource is in a stack, then that resource must require the whole stack. I think this logic is flawed, or at least could be optional, certainly documented!

Re: [5.3] why is a stack being included when not referenced?

2014-11-19 Thread Paul Stanton
wrote: On Wed, 19 Nov 2014 16:10:53 -0200, Paul Stanton pa...@mapshed.com.au wrote: Thiago, Tapestry is smart enough to not download JS twice. I'm not sure you understood my example. It may not download the same JS code twice in the same page, but, considering different pages in the same

[5.4] module js - takes some time to refresh

2014-11-19 Thread Paul Stanton
Hi all, Creating my own module.js within META-INF/modules/xyz.js If I change the content, it takes some time before the browser sees the change (20-50 seconds). Is this configurable? Thanks, p. - To unsubscribe, e-mail:

Re: [5.4] module js - takes some time to refresh

2014-11-22 Thread Paul Stanton
Hi Thiago, My mistake, for some reason shift+refresh in chrome isn't doing a full reload. Deleting cache is working correctly. p. On 20/11/2014 11:30 PM, Thiago H de Paula Figueiredo wrote: On Wed, 19 Nov 2014 23:13:13 -0200, Paul Stanton pa...@mapshed.com.au wrote: Hi all, Hi

Re: Hints on javascript debugging

2014-11-23 Thread Paul Stanton
I find chrome debugger easier to use and faster than firebug. I used firebug for years before finding chrome more efficient. Once everything works in chrome I take it through firefox+firebug, and then IE tester for multiple versions of ie (we support 8+). I rarely find any issues in safari

Re: tapestry and jquery

2014-11-24 Thread Paul Stanton
You can start with a fresh Tapestry 5.4 (beta) project which has JQuery built in. You will probably want to exclude the PrototypeJs/Scriptaculous support and only use jquery: @Contribute(SymbolProvider.class) @ApplicationDefaults public static void setupEnvironment(MappedConfigurationString,

Re: javassist/hibernate enhanced class problem

2015-10-29 Thread Paul Stanton
Hi Thiago, Using 'merge' instead of 'save' does not resolve the issue. I still have to evict. On 29/10/2015 11:04 PM, Thiago H de Paula Figueiredo wrote: On Thu, 29 Oct 2015 07:23:07 -0200, Paul Stanton <pa...@mapshed.com.au> wrote: I have found an issue I believe with tapestery

Re: beaneditform not hiding id

2015-10-29 Thread Paul Stanton
ulate the BeanModel directly and do whatever you want from it. On Thu, 29 Oct 2015 00:02:31 -0200, Paul Stanton <pa...@mapshed.com.au> wrote: Just further to this, I've decided not to use BeanEditForm because: a) I can't set the context - I'd like to use the Id as context so that I can l

Re: javassist/hibernate enhanced class problem

2015-10-29 Thread Paul Stanton
of 'load' seems to avoid this. On 30/10/2015 9:13 AM, Paul Stanton wrote: Hi Thiago, Using 'merge' instead of 'save' does not resolve the issue. I still have to evict. On 29/10/2015 11:04 PM, Thiago H de Paula Figueiredo wrote: On Thu, 29 Oct 2015 07:23:07 -0200, Paul Stanton <

beaneditform not hiding id

2015-10-28 Thread Paul Stanton
According to jumpstart (no mention in tapestry doc) beaneditform auto-hides the id field: http://jumpstart.doublenegative.com.au/jumpstart7/examples/input/edit1/1 *But where is Person's |id| property?* BeanEditForm automatically hides properties annotated with |@Id|. From the 'view source'

Re: beaneditform not hiding id

2015-10-28 Thread Paul Stanton
these upgrades are considered On 29/10/2015 12:47 PM, Paul Stanton wrote: According to jumpstart (no mention in tapestry doc) beaneditform auto-hides the id field: http://jumpstart.doublenegative.com.au/jumpstart7/examples/input/edit1/1 *But where is Person's |id| property?* BeanEditForm

Re: javassist/hibernate enhanced class problem

2015-10-29 Thread Paul Stanton
Yes, it is necessary to 'evict' after 'save' to avoid this problem. I'm not sure that this is ideal since it increases db io and code but it works. On 29/10/2015 8:23 PM, Paul Stanton wrote: I have found an issue I believe with tapestery (grid component in this case) where it cannot inspect

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

2015-10-29 Thread Paul Stanton
Hi, I've modelled a form using jumpstart's (7) ajax crud however in my case I seem to have to @persist(flash) the equivalent of 'function' http://jumpstart.doublenegative.com.au/jumpstart7/together/ajaxcomponentscrud/persons I think this is because there are two page instances: one to handle

beaneditform with option lists of objects

2016-09-21 Thread Paul Stanton
Hi all, I have tables: Parent -- parent_id child_id Child --- child_id and ORM entity: Parent --- Long Id Child child (oneToOne in this case, joinColumn child_id) Child is another ORM entity. Child could be one of many options from the database. I

Re: Apache Tapestry for Java 11

2019-10-25 Thread Paul Stanton
"We can push a new 5.5 beta for early testers." ^-- is this available? if not, any eta? On 11/09/2019 4:43 am, Thiago H. de Paula Figueiredo wrote: On Tue, Sep 10, 2019 at 4:31 AM Chris Poulsen wrote: I did roll an "internal" 5.5-beta version based on the code from 12th July as there are

Render a single Enum value

2021-08-25 Thread Paul Stanton
Using ${object.enumValue} renders the enum in raw form ie ENUM1 How do I leverage "TapestryInternalUtils.getLabelForEnum" without having to use a BeanDisplay or Grid etc? Or is there super easy way to just render the Enum value formatted without rendering any wrapping html etc?

<    1   2   3   4   5   6