Re: Updated Hotel Booking demo app

2015-12-24 Thread Geoff Callender
Great work Bob (and I’m not just referring to the shorter URL). > On 24 Dec 2015, at 10:30 am, Bob Harner wrote: > > Update: The Tapestry Hotel Booking app is now running on a new, shorter URL: > >https://tapestry-app.apache.org/hotels > > The docs have been updated accordingly. > > On Fr

Re: AssetSource T5.4 rc 1

2015-12-16 Thread Geoff Callender
Can you put your assets in src/main/resources/META-INF/assets/ ? If so, then ClasspathAsset will work. Eg public String getCongratulationsImg() { Asset asset = assetSource.getClasspathAsset( "/META-INF/assets/images/congratulations.p

Re: [ANNOUNCEMENT] New Relic 4 Tapestry5

2015-12-01 Thread Geoff Callender
This sounds great. Is the snapshot in a publicly-accessible repo? Geoff On 29 June 2015 at 20:33, Joost Schouten (mailing lists) < joost...@jsportal.com> wrote: > Hi all, > > I've been a bit absent from the list lately though still pleased and > actively developing with Tapestry 5. I just wanted

Re: beaneditform not hiding id

2015-10-29 Thread Geoff Callender
You can see in the example that it’s true - the id field isn’t rendered. If you’re seeing something different then I guess I’m about to learn something new! I haven’t looked behind the scenes of this since, perhaps, T5.0, so things may have changed. On submit, this example is getting the id fr

Re: Jumpstart 6.10 Installation

2015-10-26 Thread Geoff Callender
g a bit with this non-standard project setup (missing > Maven) but I think I'm getting close :) > > I'm on Linux Mint and yes, using Eclipse (Mars). > > Adam > > On Sun, Oct 25, 2015 at 6:59 AM, Geoff Callender < > geoff.callender.jumpst...@gmail.com> wrote:

Re: Jumpstart 6.10 Installation

2015-10-24 Thread Geoff Callender
steps. I’ll add this info to the instructions. Geoff > On 25 Oct 2015, at 10:42 am, Geoff Callender > wrote: > > Hi Adam, > > The second issue is because PersonFinderServiceLocal has not been built. > You’ll find the cause of that early in the log, which will probably be a

Re: Jumpstart 6.10 Installation

2015-10-24 Thread Geoff Callender
Hi Adam, The second issue is because PersonFinderServiceLocal has not been built. You’ll find the cause of that early in the log, which will probably be a database mapping problem, most likely an inability to map the Person entity to the PERSON table. So its cause is probably the same as the fi

Re: [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 Geoff Callender
Agreed, good point. > On 30 Sep 2015, at 3:34 am, Thiago H de Paula Figueiredo > wrote: > > Hi! > > Very nice point. Could you please create a JIRA issue? > > On Tue, 29 Sep 2015 13:55:10 -0300, Cezary Biernacki > wrote: > >> Hi, >> >> Some introduction: My users started complaining about

Re: Contributing ComponentMessagesSource

2015-09-28 Thread Geoff Callender
you :p > > Thanks anyway Geoff ! > > Charles > > Le lun. 28 sept. 2015 à 10:24, Geoff Callender < > geoff.callender.jumpst...@gmail.com> a écrit : > >> Try a different path, not in META-INF, and not in one of the special >> folders (pages, components, mixi

Re: Contributing ComponentMessagesSource

2015-09-28 Thread Geoff Callender
Try a different path, not in META-INF, and not in one of the special folders (pages, components, mixins, etc). There’s a lot of behind-the-scenes stuff going on with META-INF/assets which might be interfering. For example: http://jumpstart.doublenegative.com.au/jumpstart7/examples/input

Re: Make Tapestry add an id to the tag of the grid

2015-09-18 Thread Geoff Callender
Tapestry does generate some “data" attributes, eg. data-validate, data-update-zone, data-async-trigger, and data-dismiss-url; but data-id is not one of them. Svein added data-id himself, but he could have called it anything so long as its name doesn’t clash with a Tapestry-generated one. For an

Re: Ajax issue in beta35

2015-09-12 Thread Geoff Callender
Very strange, because JumpStart7 is running beta 35. > On 13 Sep 2015, at 4:15 am, Christine wrote: > > I have recently added Ajax to a project, to update a zone periodically > (following the example in Jumpstart7). I couldn't get it to work in one > project, but copying the code to another, s

Re: How do you display a validation error on a component at page load?

2015-08-25 Thread Geoff Callender
Are you using T5.3? Have you tried moving tracker.recordError(…) from setupRender() to onUploadException(…)? I don’t think there’s any need to do your own persisting of the error message (because Tapestry will persist the Form through the redirect because it has an error). Unless I’ve missed

[ANN] [5.4] JumpStart 7 preview upgraded to use beta-35

2015-08-24 Thread Geoff Callender
Hi all, JumpStart’s preview page has been upgraded to use Tapestry 5.4’s latest beta, Beta 35, which was released just today. http://jumpstart.doublenegative.com.au/jumpstart7/ Cheers, Geoff - To unsubscribe, e-mail: u

Re: Problem with BeanEditForm server side validataion

2015-08-11 Thread Geoff Callender
You’re right. And it happens with programmatic validation, too. Try “Acme” into First Name of these examples which currently running on beta-26: http://jumpstart.doublenegative.com.au/jumpstart7/examples/input/edit1/1 http://jumpstart.doublenegative.com.au/jumpstart7/examples/inp

Re: Working with JPA - Page Requests - Checking if object with id exists - Redirecting if false

2015-08-04 Thread Geoff Callender
Just be aware that there are pluses and minuses to doing it in onActivate(). On the plus side, onActivate() is an event handler, so it can control what’s displayed next by its return type. The return type could even be new HttpError(404, "Page not found"); http://jumpstart.doublenegati

Re: Working with JPA - Page Requests - Checking if object with id exists - Redirecting if false

2015-08-04 Thread Geoff Callender
Have you read this? http://jumpstart.doublenegative.com.au/jumpstart7/examples/infrastructure/handlingabadcontext/1 My personal preference is to treat ids that don’t exist, and ids that you are not authorised to, the same way: display a "does not exist” message on the same page. It wil

Re: Send Redirect after Login

2015-07-29 Thread Geoff Callender
These will help: T5.4: http://jumpstart.doublenegative.com.au/jumpstart7/examples/infrastructure/protectingpages T5.3: http://jumpstart.doublenegative.com.au/jumpstart/examples/infrastru

Re: Forms created in a loop - problem with validation

2015-07-24 Thread Geoff Callender
These examples might help... If you’re not using AJAX then it probably makes more sense to put the Form around the Loop: T5.4: http://jumpstart.doublenegative.com.au/jumpstart7/examples/tables/editableloop1

Re: zone.deferredZoneUpdate fires update events twice

2015-07-23 Thread Geoff Callender
Hi Stefan, Rather than making your javascript depend on understanding Tapestry’s workings, perhaps you can simply command things from the server-side? When the server-side responds to the request with a zone, eg. ajaxResponseRenderer.addZone(zoneElld); could it also respond with a callback com

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

2015-07-20 Thread Geoff Callender
Every page request and every component event request will include the page’s activation context, ie. an E1 id. If you include that id in the parameters of C1, J1, and C2, then they will all have access to the E1 id. I’m assuming that each E2 does not know its E1 (ie. not a many-to-one relations

Re: Possilbe Bug With Date Picker - changing system time zone adds +1 day to the date field

2015-07-10 Thread Geoff Callender
for that. An improvement to DateField might be a timezone parameter. > On 10 Jul 2015, at 11:32 am, Geoff Callender > wrote: > > It’s confusing, but it’s not really a bug. What you’re seeing is the > date-time redisplayed to you in the server timezone, which is Australian >

Re: Possilbe Bug With Date Picker - changing system time zone adds +1 day to the date field

2015-07-09 Thread Geoff Callender
It’s confusing, but it’s not really a bug. What you’re seeing is the date-time redisplayed to you in the server timezone, which is Australian Eastern Standard Time. In the Submitted Value column you’ll see the date-time shows timezone “EST”. HTTP requests don’t include timezone, so either (a) t

Re: Getting a client side id from my component zone (used in loop)

2015-05-27 Thread Geoff Callender
Here are two examples that handle clientids in a loop: - Simple, around AJAX EventLinks: http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/eventlinksinaloop - More complex, around AJAX Forms: http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/formsinaloop HTH, Geoff >

Re: Adding JS to my component combined with using t:If

2015-05-27 Thread Geoff Callender
Have you considered adding a hidden AJAX-enabled Form to the page containing (1) a content TextField and (2) a Submit? On click of Test Button, make your JavaScript set the value of (1) to whatever is in the editor and do click() on (2). Server-side, you’d provide all the usual event-handling

Re: Adding JS to my component combined with using t:If

2015-05-27 Thread Geoff Callender
Have you considered adding a hidden AJAX-enabled Form to the page containing (1) a content TextField and (2) a Submit? On click of Test Button, make your JavaScript set the value of (1) to whatever is in the editor and do click() on (2). Server-side, you’d provide all the usual event-handling

Re: assets:context location in war file

2015-05-19 Thread Geoff Callender
In 5.4, I no longer use “context:” because 5.4 has a new location that works much better. If you put all your assets in src/main/resources/META-INF/assets/, eg. src/main/resources/META-INF/assets/layout/layout.css then they will end up in the WAR’s WEB-INF/classes/META-INF/assets/, wher

Re: JumpStart Edit example - prepareForSubmit event handler

2015-05-11 Thread Geoff Callender
If the field has retained its state in some way (such as @Persist or @SessionState) then this is to be expected. Otherwise, it’s an illusion. Try using person, in code, before findPerson(…) is executed and you’ll find it is, in fact, null. The illusion is something to do with byte code enhancem

Re: Tapestry Grid with inPlace zone update fails with single quote in data for grid

2015-05-07 Thread Geoff Callender
My response is on stackoverflow. Geoff On 7 May 2015, at 9:59 pm, Pratik Patel [C] wrote: > This is the same question on stackOverflow. It is easier to read there. > > http://stackoverflow.com/questions/30100088/tapestry-grid-with-inplace-zone-update-fails-with-single-quote-in-data-for-grid >

Re: jQuery/autocomplete

2015-04-27 Thread Geoff Callender
Good points, Lance. Yes I will consider adding those features to JumpStart, and at the very least I will add a link to Observe. Thanks. On 27 Apr 2015, at 7:37 pm, Lance Java wrote: > Hi Geoff, as stated on the demo, the observe mixin was inspired by zone > updater but with a few very handy dif

Re: jQuery/autocomplete

2015-04-27 Thread Geoff Callender
I realise this question doesn't relate to T5.4 but, for anyone who's searching the mailing list, here's a way to handle the same thing in T5.4. void onChangeOfPersonName(@RequestParameter(value = "input", allowBlank = true) String personName) { // find the person and return an Ajax res

Re: question-answer flow

2015-04-25 Thread Geoff Callender
In that case, have a look at these: http://jumpstart.doublenegative.com.au/jumpstart7/examples/wizard/usingformfragments/$N/$N http://jumpstart.doublenegative.com.au/jumpstart7/examples/wizard/usingpages1 Or T5.3 replace jumpstart7 with jumpstart. Geoff On 25 Apr 2015, at 2:39

Re: Localise a page link

2015-04-20 Thread Geoff Callender
LocaleName(localeSnapshot.toString()); On 20 Apr 2015, at 7:09 pm, Geoff Callender wrote: > I'm generating a page link with PageRenderLinkSource. No problem. Now I'd > like to generate it for a specific locale. > > I've tried using LocalizationSetter#setNonPersistentLocal

Localise a page link

2015-04-20 Thread Geoff Callender
I'm generating a page link with PageRenderLinkSource. No problem. Now I'd like to generate it for a specific locale. I've tried using LocalizationSetter#setNonPersistentLocaleFromLocaleName immediately before PageRenderLinkSource#createPageRenderLinkWithContext , but it has no effect. The aim

Re: Ipage setProperty() method problem in upgrading from tapestry 4.0.1 to 4.1.6

2015-04-02 Thread Geoff Callender
It's replacement is named in the JavaDoc: http://dev.bjmaxinfo.com/docs/tapestry/4.0.2/tapestry/apidocs/org/apache/tapestry/IComponent.html#setProperty(java.lang.String,%20java.lang.Object) https://hivemind.apache.org/hivemind1/hivemind/apidocs/org/apache/hivemind/util/PropertyU

Re: EJB JNDI based on execution environment

2015-03-30 Thread Geoff Callender
app, production, > readiness and dev environments will be on jboss, but local environment may > be OpenEJB, GlassFish or JBoss depending on what the consultant chooses. > > > On Mon, Mar 30, 2015 at 11:07 AM, Geoff Callender < > geoff.callender.jumpst...@gmail.com> wro

Re: EJB JNDI based on execution environment

2015-03-30 Thread Geoff Callender
For T5.4: http://jumpstart.doublenegative.com.au/jumpstart7/examples/state/atejb Soon I'll modify EJBProviderUtil to read a system property provided at runtime (eg. -Djumpstart.ejb-provider=OPENEJB_4_LOCAL), because it's getting too hard to keep EJBProviderUtil's detection technique working reli

Re: [5.4] Where to put the require.config?

2015-03-24 Thread Geoff Callender
15, at 12:12 pm, Rural Hunter wrote: > Yes I can do that. But I think it's too much and I need to debug the > requests to find all those dependencies. This can be a workaround but > doesn't look like a neat solution. Is it possible to make this happen > automatically by Tape

Re: Can't access generate HTML file (probably not Tapestry-specific)

2015-03-24 Thread Geoff Callender
Server-side, in a Tapestry page or service, create the file. final File htmlTempFile = File.createTempFile("htmlTemp", ".html"); htmlTempFile.deleteOnExit(); Then manipulate it. If you need to know its path, it's no problem... String htmlTempPath

Re: [5.4] Where to put the require.config?

2015-03-24 Thread Geoff Callender
avaScriptModuleConfiguration(a)); configuration.add("dep/canvas", new JavaScriptModuleConfiguration(depCanvas)); configuration.add("tool/util", new JavaScriptModuleConfiguration(toolUtil)); ... } Cheers, Geoff On 24 Mar 2015,

Re: [5.4] Where to put the require.config?

2015-03-23 Thread Geoff Callender
>var util = require('./tool/util'); >var log = require('./tool/log'); >var guid = require('./tool/guid'); > > I got 404 for all the access to those dependencies. How to solve this? > > > 2015-03-23 10:56 GMT+08:00 Geoff Ca

Re: Design / Best Practice on Multinational App

2015-03-23 Thread Geoff Callender
In your example you mention addresses, but they vary by country, not region. For that reason it's common, in address input, to select country first and adapt the rest of the fields below it to suit. I'd be much more inclined to make components that adapt to the user/request than to have multiple

Re: [5.4] Where to put the require.config?

2015-03-22 Thread Geoff Callender
Let's say "a" and its associated files are in a folder called a-1.0.0. Try dropping the folder into META-INF/assets and shim it by contributing to ModuleManager: public static void contributeModuleManager( MappedConfiguration configuration,

Re: Memory Footprint in Tapestry

2015-03-18 Thread Geoff Callender
Here's a starting point for understanding @Persist: T5.4: http://jumpstart.doublenegative.com.au/jumpstart7/examples/state/storingdataina T5.3: http://jumpstart.doublenegative.com.au/jumpstart/examples/state/storingdatainapage Geoff On 18 Mar 2015, at 7:21 pm, Poggenpohl, Danie

Re: [5.4-beta-22] field-bound form validation messages

2015-03-13 Thread Geoff Callender
I think you're seeing this bug: "Field-specific error not shown when AJAX used". It's been partially fixed in 5.4-beta-26, but there's still an issue. https://issues.apache.org/jira/browse/TAP5-2391 Geoff On 13 Mar 2015, at 1:41 am, Ilya Obshadko wrote: > I've found out that at some p

Re: Tapestry-upload and File System AssetFactory .

2015-02-24 Thread Geoff Callender
In the following code, I made ImageInlineStreamResponse by extending InlineStreamResponse from http://wiki.apache.org/tapestry/Tapestry5HowToStreamAnExistingBinaryFile. public ImageInlineStreamResponse getPictureAsImageStream(Integer someId) throws FileNotFoundException {

Re: Tapestry 5.4 JavaScript support .... support request

2015-02-23 Thread Geoff Callender
ot; you'll see the answer. > Regards, > Daniel P. > ____ > Von: Geoff Callender [geoff.callender.jumpst...@gmail.com] > Gesendet: Montag, 23. Februar 2015 22:13 > An: Tapestry users > Betreff: Re: Tapestry 5.4 JavaScript support sup

Re: Tapestry 5.4 JavaScript support .... support request

2015-02-23 Thread Geoff Callender
On 24 Feb 2015, at 5:38 am, Poggenpohl, Daniel wrote: > Hello everyone, > > I'm trying to add some functionality to a grid: > > Every grid row should be an area where you can click to go to the details > page of the row object. > > But enough of that, even a simple javascript like alert on

Re: Trying to load non AMD javascript in tapestry 5.4

2015-02-18 Thread Geoff Callender
ScriptModuleConfiguration#dependsOn() for 'deps' of shim config >> use JavaScriptModuleConfiguration#dependsOn() for 'exports' of shim config >> >> Kind regards >> >> >> 2015-02-18 12:13 GMT+01:00 Geoff Callender < >> geoff.callende

Re: Trying to load non AMD javascript in tapestry 5.4

2015-02-18 Thread Geoff Callender
ote: > Hi Geoff. You are right. I can call the showMe() method as a global > function. So, is it okay if I assume that i could only call the shimmed js > lib through global function? Since it wouldn't get passed through the > define parameter. Or is my implementation that's inco

Re: Trying to load non AMD javascript in tapestry 5.4

2015-02-17 Thread Geoff Callender
Your "require" has ensured the mytest.js file gets loaded by the browser but the file's contents do not define an AMD module. Therefore the scope of showMe() is global, so I think you'll find you can call showMe() but not mytest.showMe(). Geoff On 18 Feb 2015, at 5:05 am, Thiago H de Paula Fig

Re: Problem using IdClass and updating entities using a component

2015-02-12 Thread Geoff Callender
Regarding avoiding @Persist, it's discussed here: http://jumpstart.doublenegative.com.au/jumpstart7/examples/state/storingdataina If you look around JumpStart you'll find almost all of it has been written without needing @Persist. Geoff On 12 Feb 2015, at 10:58 pm, Poggenpohl, Daniel

Re: Uncaught SyntaxError: Unexpected token < in RequireJS

2015-02-08 Thread Geoff Callender
These might help you get up to speed faster: http://jumpstart.doublenegative.com.au/jumpstart7/examples/javascript/javascript http://jumpstart.doublenegative.com.au/jumpstart7/examples/javascript/reusable http://jumpstart.doublenegative.com.au/jumpstart7/examples/javascr

Re: How to know "Redirected From URL"

2015-02-08 Thread Geoff Callender
Here's an example that suits simple situations: T5.4: http://jumpstart.doublenegative.com.au/jumpstart7/examples/navigation/returntopage1/abc T5.3: http://jumpstart.doublenegative.com.au/jumpstart/examples/navigation/returntopage1/abc Geoff On 5 Feb 2015, at 12:38 pm, Bob Harne

Re: [tynamo-user] tapestry-routing 0.1.1 released!

2015-02-08 Thread Geoff Callender
Very cool. On 7 Feb 2015, at 12:48 pm, Kalle Korhonen wrote: > Bada bing bada boom! New year, new releases - and just like that > tapestry-routing 0.1.1 is ready for consumption with the latest T5 beta. > There were some minor API adjustments made, otherwise it's the same, > trustworthy routi

Re: Tapestry 5.4 Beta 22: Supposed directory structure for modules used by requirejs

2015-02-05 Thread Geoff Callender
Or, as I prefer these days because in this style you can easily modify it to add parameters or invoke particular functions: void afterRender() { javaScriptSupport.require("login/login"); } Geoff On 5 Feb 2015, at 8:01 pm, Chris Poulsen wrote: > Modules should e

Re: Eclipse Tapestry5 Project version 2.8.0 available for download

2015-02-04 Thread Geoff Callender
Hi Dmitry, I find this tool utterly invaluable, even though I keep related java, tml, and properties in the same folder. There is one problem, though - the keyboard shortcuts get corrupted as the day goes on - probably by clashes with other editors (javascript editor in particular? I'm not sure

Re: Render queue error in SetupRender

2015-01-25 Thread Geoff Callender
I'm not sure what all of those @Inject's are for, and I'd recommend avoiding @Persist wherever possible. Have a look at this example for ideas: T5.4: http://jumpstart.doublenegative.com.au/jumpstart7/together/easycrud/person/create T5.3: http://jumpstart.doublenegative.com.au/ju

Re: Redirecting to a Page with context

2015-01-24 Thread Geoff Callender
This will probably help: T5.4: http://jumpstart.doublenegative.com.au/jumpstart7/examples/navigation/returntypes1 T5.3: http://jumpstart.doublenegative.com.au/jumpstart/examples/navigation/returntypes1 Cheers, Geoff On 25 Jan 2015, at 4:43 am, Chris Poulsen wrote: > return t

Re: NoSuchElementException

2015-01-24 Thread Geoff Callender
Can you paste the source of FacetFilter.tml, and identify line 16, too? On 25 Jan 2015, at 5:24 am, George Christman wrote: > Hi guys, I've been seeing this exception a lot lately and I can't seem > to track it down, I'm wondering if anybody has see anything like this > before and might be able

Re: fails now in 5.4

2015-01-23 Thread Geoff Callender
One of these should help you: http://jumpstart.doublenegative.com.au/jumpstart7/examples/ajax/filteredgrid http://jumpstart.doublenegative.com.au/jumpstart7/examples/ajax/select1 Geoff On 24 Jan 2015, at 11:55 am, nhhockeyplayer nashua wrote: > Thanks Chris, > > sorry about

Re: Two fundamental questions.

2015-01-21 Thread Geoff Callender
For several approaches to CRUD: T5.4: http://jumpstart.doublenegative.com.au/jumpstart7 T5.3: http://jumpstart.doublenegative.com.au/jumpstart HTH, Geoff On 21 Jan 2015, at 8:27 am, Cheng Zhang wrote: > Hi all, > > I am new to Tapestry. I have two questions. > > 1. What is t

Re: t-5.4 - page loading mask bug

2015-01-14 Thread Geoff Callender
Chris suggested earlier that you must check for javascript errors. You still have one. "SyntaxError: Unexpected token ')'". All it takes is one javascript error to stop the rest from working. From the console of my browser: [Warning] Unexpected CSS token: middle (home, line 112) [Warning] Unexp

Re: FineUploader implementation?

2015-01-03 Thread Geoff Callender
Thanks Ray. I have some follow-up questions in https://stackoverflow.com/questions/27760867/tapestry-implementation . On 4 Jan 2015, at 5:58 am, Ray Nicholus wrote: > I’ll chime in as I’ve been maintaining Fine Uploader since mid-2012, and my > employer uses it in a few of our products, each o

Re: FineUploader implementation?

2015-01-03 Thread Geoff Callender
olutions that use it. > > > On Sat, Jan 3, 2015 at 1:13 AM, Geoff Callender < > geoff.callender.jumpst...@gmail.com> wrote: > >> Does anyone have a Tapestry implementation that handles uploads with >> FineUploader 5? >> >> Taha's implementation

FineUploader implementation?

2015-01-02 Thread Geoff Callender
Does anyone have a Tapestry implementation that handles uploads with FineUploader 5? Taha's implementation ( http://tawus.wordpress.com/2011/06/25/ajax-upload-for-tapestry/ ) looks great, but it's not suited to version 5.0's blobs and its RESTful leanings. Geoff --

Re: How to use font awesome with Tapestry

2014-12-19 Thread Geoff Callender
I have a folder "font-awesome-4.0.3" in resources/META-INF/assets/ and use this in my java pages and components: @Import(stylesheet = { "font-awesome-4.0.3/css/font-awesome.min.css" }) Geoff On 19 Dec 2014, at 7:58 pm, George Christman wrote: > hmm, I'm using 5.4. We no longer have assets in

Re: [5.4-beta-22] Adding forms to a form using ajax

2014-12-18 Thread Geoff Callender
On 18 Dec 2014, at 11:02 pm, Thiago H de Paula Figueiredo wrote: > On Thu, 18 Dec 2014 01:21:03 -0200, Geoff Callender > wrote: > >> The starting point of the problem is that Form has a copy of its rendered >> state in a hidden field, and it depends on Form kno

Re: [5.4-beta-22] Adding forms to a form using ajax

2014-12-17 Thread Geoff Callender
I'm late to this thread, but I don't see an explanation of **why** Muhammad can't add fields to the existing Form, so I'll try. Please correct me if I'm wrong. The starting point of the problem is that Form has a copy of its rendered state in a hidden field, and it depends on Form knowing what

Re: Correct usage of BeanEditForm to auto generate form, how to ?

2014-12-17 Thread Geoff Callender
Some examples that might help: T5.4: http://jumpstart.doublenegative.com.au/jumpstart7/examples/input/create1 T5.3: http://jumpstart.doublenegative.com.au/jumpstart/examples/input/create1 Geoff On 17 Dec 2014, at 6:07 am, Thiago H de Paula Figueiredo wrote: > On Tue, 16 Dec

Re: Contributing client translators

2014-12-14 Thread Geoff Callender
gt; I'm not sure to understand what you need but the Translator interface > <https://github.com/apache/tapestry-5/blob/master/tapestry-core/src/main/java/org/apache/tapestry5/Translator.java> > has a render method. Did you try that ? > > Charles > > 2014-12-11 5:02 GMT+

Contributing client translators

2014-12-10 Thread Geoff Callender
Is there a way to contribute a client translator, just as we can contribute client validator? I feel like there has to be but I've somehow missed it. The situation I have is similar to field 4 in this example: http://jumpstart.doublenegative.com.au/jumpstart7/examples/input/augmentingtr

Re: ApacheCon Europe

2014-12-02 Thread Geoff Callender
Hey Thilo, Great effort. Keep plugging away. I'm seeing the visitor numbers to JumpStart moving up over the last couple of months, so Tapestry 5.4 seems to be gaining attention. It should, because it's such a pleasure to work with. Cheers, Geoff On 27 Nov 2014, at 8:33 pm, Thilo Tanner wrot

Re: requireJS modules in T5 library

2014-11-27 Thread Geoff Callender
Your module is not returning anything and init is invisible outside the module's function. After the init function add this... return { init : init }; The rest looks fine, assuming that you've checked that threedots is AMD compliant. if it isn't then you'

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

2014-11-19 Thread Geoff Callender
I've never seen this but I probably don't have any stacks that include a resource that I also reference outside of the stack. If it's true then it sounds like a bug. On 19 Nov 2014, at 3:33 pm, Paul Stanton wrote: > Further digging finds that if StackA includes ResourceA and PageB or any of

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

2014-11-17 Thread Geoff Callender
Yes indeed. The reason I've developed the habit of using afterRender() is that so often we need to pass the clientId of an embedded component to the JavaScript. In afterRender() we can be sure that all clientIds have been assigned. So now I just use afterRender() without giving it a second tho

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

2014-11-17 Thread Geoff Callender
7;s because tapestry doesn't know what will need to be rendered yet. >>> >>> For your second question, I think you can achieve what you want if you >>> pass >>> arguments to your invoke : >>> >>> javaScriptSupport.require("compone

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

2014-11-16 Thread Geoff Callender
imer"); javaScriptSupport.require("components/MyTimer").invoke("showTimer"); ...resulted in only 2 invocations in the response to the client... { "_tapestry" : { "inits" : [ "components/MyTimer:showTimer", &quo

Re: Different Zone Update's

2014-11-16 Thread Geoff Callender
I've raised a JIRA for client-side pub/sub. https://issues.apache.org/jira/browse/TAP5-2416 On 4 Sep 2014, at 5:57 pm, Geoff Callender wrote: > In an AJAX request the server-side would have no way of knowing how many > subscribers there are within the page unless it exactly r

Re: Tapestry Event Bubbling

2014-11-15 Thread Geoff Callender
To illustrate, have a look at onReturnPageInstance(): T5.4: http://jumpstart.doublenegative.com.au/jumpstart7/examples/navigation/returntypes1 T5.3: http://jumpstart.doublenegative.com.au/jumpstart/examples/navigation/returntypes1 HTH, Geoff On 15 Nov 2014, at 3:39 am, Thiago

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

2014-11-13 Thread Geoff Callender
pm, Chris Poulsen wrote: > can't you just use javascriptsupport to require and invoke your js module > function? > > -- > Chris > > On Thu, Nov 13, 2014 at 6:34 AM, Geoff Callender < > geoff.callender.jumpst...@gmail.com> wrote: > >

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

2014-11-13 Thread Geoff Callender
I accidentally left out the object's state vars. Added below. On 14 Nov 2014, at 10:00 am, Geoff Callender wrote: > Yep, that's a valid case, and it's one I have to put into JumpStart. > > Here's the way I handle it. I'd like to see what others do. >

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

2014-11-13 Thread Geoff Callender
that's just another implementation choice. On 14 Nov 2014, at 10:00 am, Geoff Callender wrote: > Yep, that's a valid case, and it's one I have to put into JumpStart. > > Here's the way I handle it. I'd like to see what others do. > > Have the module keep

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

2014-11-13 Thread Geoff Callender
;message 1" or "message 2". > > Therefore, how would I re-aquire a handle to a specific module instance later > on? for eg: > > java:onSomeEvent(){ >// activate modal with "message 1" >require("modal").invoke("activate");

Re: [5.4] JavascriptStack with module and css.

2014-11-12 Thread Geoff Callender
public class YourJavaScriptStack implements JavaScriptStack { private final AssetSource assetSource; public YourJavaScriptStack(final AssetSource assetSource) { this.assetSource = assetSource; } // etc and when you set up a StyleSheetLink, the ass

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

2014-11-12 Thread Geoff Callender
; execute script apparently... > > cheers, p. > > On 13/11/2014 2:36 PM, Geoff Callender wrote: >> do these examples cover the situations you are describing? > > > - > To unsubs

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

2014-11-12 Thread Geoff Callender
IMHO, the JavaScript changes in T5.4 are just amazing. For the first time ever I have found myself writing significant JavaScript that worked the very first time it was run! I think it's due to the enforced modularity combined with the way that RequireJS making modularising oh so easy. In a comp

Re: [5.4] type="number" fails when decimal separator isn't "."

2014-10-29 Thread Geoff Callender
y I don't think you can override existing ones > >> On Oct 28, 2014, at 8:01 AM, Geoff Callender >> wrote: >> >> I have a BigDecimal field that I'm editing with TextField. On mobile devices >> I would like a numeric keyboard to pop up, so I adde

[5.4] type="number" fails when decimal separator isn't "."

2014-10-28 Thread Geoff Callender
I have a BigDecimal field that I'm editing with TextField. On mobile devices I would like a numeric keyboard to pop up, so I added type="number". This all worked just fine in English, but then I switched locale to French and found Tapestry's client-side validation rejecting it as not a number.

Re: Page with @Persist and default value fails to instantiate

2014-10-23 Thread Geoff Callender
This might help you further. http://jumpstart.doublenegative.com.au/jumpstart7/examples/infrastructure/exceptionreport Cheers, Geoff On 24 Oct 2014, at 2:30 pm, Deepak wrote: > Thanks a lot for the pointer. With the setting of tapestry.production-mode > the stack trace is now display

Re: Calling property in t:message

2014-10-17 Thread Geoff Callender
Option (c): write JavaScript that is similar to Tapestry's Confirm or tapestry-jquery's Confirm, but isn't a mixin, and gets the values from the fields after Submit has been clicked. On 18 Oct 2014, at 1:54 pm, Geoff Callender wrote: > My mistake. You're saying that

Re: Calling property in t:message

2014-10-17 Thread Geoff Callender
My mistake. You're saying that the dialog box doesn't show the values. I lost that key point in this long trail. The root of the problem is that the dialog box is a mixin on the submit. Its message content is rendered by the page, at which time the fields used in the message are empty. You nee

Re: Calling property in t:message

2014-10-17 Thread Geoff Callender
You still have not described the flow (of interaction with the user), so please answer the following questions. I'm guessing that after choosing Confirm (possibly a button labeled "OK"), you want to display the entry page again, with the entered values, overlayed by a alert that says the thing

Re: Calling property in t:message

2014-10-17 Thread Geoff Callender
The flow gets up to displaying a dialog. Should the dialog show any data values? Which ones? What is the intended flow after choosing Confirm? What is the intended flow after choosing Not Confirm (ok, this one's not hard to guess). On 18 Oct 2014, at 12:40 pm, Name Surname wrote: > Hi, Geoff!

Re: Calling property in t:message

2014-10-17 Thread Geoff Callender
Hey Name Surname, we see your code but can only guess at the behaviour you want it to exhibit. Perhaps you could describe the intended "normal flow", and then describe the intended "exception flows". On 18 Oct 2014, at 3:45 am, Name Surname wrote: > Hey Lance. I have just seen this example. It

Re: Ajax form not holding onto field values after validation error.

2014-10-14 Thread Geoff Callender
IMHO, I think it's helpful to indicate when and why you're instantiating UserProfile, rather than just conditioning by "is null". void onPrepareForRender() throws Exception { // If fresh start, make sure there's a UserProfile object available. if (form.isValid()) {

Re: How do I render zone from component A in component B

2014-10-14 Thread Geoff Callender
I'm nodding enthusiastically as I read Kalle's comments. He's right - the differences between being in an authenticated state and non-authenticated state are so significant and it simplifies matters if a page can assume it is dealing with just one state or the other. I should have mentioned this

Re: Why do I have to explicitly render a zone if it's ID is specified in the ajax-enabled Select component ?

2014-10-13 Thread Geoff Callender
Since 5.4! I'd completely missed that. Thanks. On 14 Oct 2014, at 5:39 pm, Chris Poulsen wrote: > Hi, > > On Tue, Oct 14, 2014 at 7:27 AM, Geoff Callender < > geoff.callender.jumpst...@gmail.com> wrote: > >> >> Perhaps it's time for Tapestry to re

Re: Why do I have to explicitly render a zone if it's ID is specified in the ajax-enabled Select component ?

2014-10-13 Thread Geoff Callender
Good question. I think it may be an historical accident, made largely redundant by AjaxResponseRenderer, and MultiZoneUpdate before it. They take no notice of what was specified in the component's zone parameter. With AjaxResponseRenderer you don't even have to return a zone - instead you could

Re: How do I render zone from component A in component B

2014-10-13 Thread Geoff Callender
On 14 Oct 2014, at 1:14 pm, George Christman wrote: > So I was able to get it working by using the following code inside of > SiteIndex, but this does not seem very reusable. > > @InjectComponent >private Layout layout; > > void onShowLoginRegister() { >layout.onShowLoginRegister()

  1   2   3   4   5   6   7   8   9   10   >