Insert page render time to page

2017-07-18 Thread David Diaz
Hi all, I have a page and I would like to insert the time to render the page into the page for the user to see. I assume I have to use a filter but I don't know where to look to achieve this. If someone could point me in the right direction that would be great. Thanks :)

Send JSONObject as data to the server.

2017-03-14 Thread David Diaz
Hi everyone, I was wondering what the best way to send a JSONObject to the server is (and then to read it)? There is a way to send data FROM the server to the client (e.g just return a JSONObject), but sending a JSONObject to the server is a lot harder. Currently I'm converting the object into a s

Re: Implementing a "bottomless" grid

2017-02-10 Thread David Diaz
Hi Davide, Try checking out https://github.com/eddyson-de/tapestry-extensions, this might have what you are looking for (InfiniGrid), or at least give you an idea on what you need to do. If you want the grid to be in it's own scrollbar, you should put it in a and then set the height to be some f

Re: Clear PersistentFieldConduit cached value

2016-12-12 Thread David Diaz
Figured it out. You can invoke the conduit_set_[fieldname] method using reflection (declared, not regular) and this will reflect the value in the PerthreadMap. This function takes a singular argument with the type of the field. Cheers On Mon, Dec 12, 2016 at 5:45 PM, David Diaz wrote: > Hi

Clear PersistentFieldConduit cached value

2016-12-11 Thread David Diaz
Hi all, I am trying to set a persistent value of a field in my application on a XHR request. I am using tynamo's tapestry-conversation and I want to copy the old conversation's values to the new conversation. I am iterating through each field in the old conversation and setting the value for the n

Re: Submit form without t:form component

2016-12-09 Thread David Diaz
le its submission through > an > >> onSuccess*() method in usual Tapestry fashion, and use pure HTML fields > >> (i.e. not using the Tapestry form field components), @Inject Request and > >> use Request.getParameter*() methods to get its values and > >> Request.g

Re: Submit form without t:form component

2016-12-08 Thread David Diaz
at 10:34 AM, Lance Java wrote: > Perhaps the observe mixin could help you? > http://t5stitch-lazan.rhcloud.com/observedemo > > On 8 Dec 2016 11:22 p.m., "David Diaz" wrote: > > > Hi guys, > > > > I was wondering if there was any way to submit a form wit

Submit form without t:form component

2016-12-08 Thread David Diaz
Hi guys, I was wondering if there was any way to submit a form without having a t:form component and retrieve the data being sent? (e.g ideally a map would be accessible and I could just retrieve that data). I need to support this functionality (dynamic forms) and currently I'm doing it by conver

Re: Add javascript every request

2016-12-07 Thread David Diaz
Hi Nathan, You can use a in your main Layout.tml. For example, in your Layout.tml http://tapestry.apache.org/schema/tapestry_5_4_1.xsd";> Then in your Layout.java public void onSessionTimeout() { ajaxResponseRenderer.addCallback(**do callback stuff here**); } I've im

Re: Tapestry ignoring expansions in HTML comments

2016-03-19 Thread David Diaz
Thank you! On Wed, Mar 16, 2016 at 7:35 PM, Lance Java wrote: > > http://tapestryjava.blogspot.co.uk/2013/12/tapestry-quicky-conditionalcomment.html > On 16 Mar 2016 5:42 a.m., "David Diaz" wrote: > > > Hi guys, > > > > I've been working at my

Tapestry ignoring expansions in HTML comments

2016-03-15 Thread David Diaz
Hi guys, I've been working at my Tapestry application for a while and I'm just cleaning it up and I'm currently ensuring compatibility with Internet Explorer 8+. This requires me to include IE8 specific shims/polyfills for certain javascript functions it's missing. I'm trying to do this in my Lay

Re: Loading templates at run-time in Tapestry 5.4

2016-02-29 Thread David Diaz
which > elements/attributes you support? Yes I know this sounds like the early > 80ies jsp tag libs or good old xml-dynamic-swing-ui systems-frameworks. > > Jens > > Von meinem iPhone gesendet > > > Am 01.03.2016 um 00:03 schrieb David Diaz : > > > > Hi all,

Re: Loading templates at run-time in Tapestry 5.4

2016-02-29 Thread David Diaz
Hi Thiago, I checked out Freemarker - that seems exactly like what I wanted! It would be better if I could just use tapestry directly but this works just fine as well. Thanks, David.

Re: Loading templates at run-time in Tapestry 5.4

2016-02-29 Thread David Diaz
template engine (to > render raw output) or something completely different like angular... > I am still confused about the requirements... > > Sorry > > Jens > > Von meinem iPhone gesendet > > > Am 29.02.2016 um 09:05 schrieb David Diaz : > > > > Hi J

Re: Loading templates at run-time in Tapestry 5.4

2016-02-29 Thread David Diaz
"code" refer to Javascript? Is the external > code self contained? What about an ugly but simple "iframe"? > > Jens > > > Von meinem iPhone gesendet > > > Am 29.02.2016 um 05:18 schrieb David Diaz : > > > > Hi all, > > > > I have

Loading templates at run-time in Tapestry 5.4

2016-02-28 Thread David Diaz
Hi all, I have been using Tapestry for a little bit now and I have run into one problem that I can't figure out how to solve. In my application I need to be able to load external code & HTML to display to the user from a trusted source at run-time. Currently I have gotten code to load fine and I