Re: Jetbrains considers to deprecate Tapestry plugin in IntelliJ 2019.3

2019-07-10 Thread Lance Java
ing me names. I am sure you would thank me > in the future for opening your eyes. > > On Tue, Jul 2, 2019 at 11:04 PM Lance Java > wrote: > > > Emmanuel Sowah - I think you deserve some form of long service award. > > You've been hating on Tapestry for over 13 yea

Re: Jetbrains considers to deprecate Tapestry plugin in IntelliJ 2019.3

2019-07-02 Thread Lance Java
Emmanuel Sowah - I think you deserve some form of long service award. You've been hating on Tapestry for over 13 years now. Way to hold a grudge dude! https://wiki.apache.org/tapestry/Tapestry5Trolls On Wed, 19 Jun 2019, 10:18 am Emmanuel Sowah, wrote: > Of course it's understandable that they

Re: ServerSocket from within Tapestry

2019-03-24 Thread Lance Java
You might be interested in tapestry-atmosphere and tapestry-cometd. Each project is a tapestry wrapper for an underlying websocket implementation. The aim of each library is to integrate websocket / push functionality into your tapestry app without requiring any javascript. Instead you can use

Re: Service creation for Hibernate Session results in ClassFormatError: Duplicate method name

2017-05-09 Thread Lance Java
There's tapestry-hibernate-core which only depends on tapestry-ioc. tapestry-hibernate builds on top of this with web specific services https://mvnrepository.com/artifact/org.apache.tapestry/tapestry-hibernate-core/5.4.3 On 9 May 2017 03:54, "Thomas Mayer" wrote:

Re: Tapestry cometd with HTTPS

2017-04-30 Thread Lance Java
tapestry-cometd uses tapestry-offline under the hood to fool tapestry into believing it was invoked via a request / response when it was actually invoked via websockets. I'm guessing you are rendering a link in your websocket flow. You'll need to provide a few extra symbols to render links

RE: Creating an org.apache.tapestry5.dom.Document from client-side page source

2017-04-06 Thread Lance Java
ains a > few things, and it settles this, I will use something else. > > Thanks for the help. > > > -----Original Message- > From: Lance Java [mailto:lance.j...@googlemail.com] > Sent: Thursday, April 6, 2017 18:21 > To: Tapestry users <users@tapestry.apache.org

RE: Creating an org.apache.tapestry5.dom.Document from client-side page source

2017-04-06 Thread Lance Java
Typically you'd use the tapestry dom only in production code (pages, components, mixins etc) For verifying html in selenium tests you'd usually use Jsoup or geb or something or maybe even the java xml libraries. But not the tapestry dom libraries. On 6 Apr 2017 17:16, "Davide Vecchi"

Re: Creating an org.apache.tapestry5.dom.Document from client-side page source

2017-04-06 Thread Lance Java
Why on earth would you do that? On 6 Apr 2017 16:20, "Davide Vecchi" wrote: Hi everybody I am writing a Selenium test to test a Tapestry 5.3.8 web app, and in that test I retrieved the whole client-side page source into a String. It's a regular HTML page generated by Tapestry.

RE: Remote debugging a Tapestry application

2017-04-05 Thread Lance Java
That's incorrect. Tapestry pages / components are byte code transformed such that properties are stored in PerThreadValue instances. In development mode tapestry duplicates the values into the bean properties to make debugging easier. On 5 Apr 2017 09:30, "Ankit Jain"

Re: How to open a pdf file on click of an action link

2017-03-07 Thread Lance Java
You'll need to set: response.setHeader("Content-Disposition", "attachment; filename=" + fileName); See StreamResponse usage in PDFLink.onPdf() here http://t5stitch-lazan.rhcloud.com/pdflinkdemo On 7 Mar 2017 08:47, "Gopi, Sreela" wrote: > Hello, > >Can anyone please

Re: Loop of checkboxes in form

2017-01-23 Thread Lance Java
If you want to avoid http session you could maintain a hidden text field on the page which also gets posted alongside the checkboxes. The text field contains a comma separated list of the checkbox ids (or maybe just a count if index based naming convention) On 23 Jan 2017 10:07 a.m., "Nathan

Re: Rendering block from Java

2017-01-06 Thread Lance Java
There's also the capture component http://t5stitch-lazan.rhcloud.com/capturedemo On 6 Jan 2017 5:17 p.m., "Nathan Quirynen" wrote: > Hey, > > I'm not sure with blocks, but I do know that Lance (Tapestry committer) > made a library to render pages and components in

Re: Parameterized service injection

2016-12-15 Thread Lance Java
You should be able to use @InjectService assuming each has a unique id. @InjectService("s1") private MyService s1; @InjectService("s2") private MyService s2; On 13 Dec 2016 7:31 a.m., "Andrus Adamchik" wrote: > From what I gather Tapestry 5.4 still does not

Re: Submit form without t:form component

2016-12-08 Thread Lance Java
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 without having a > t:form component and retrieve the data being sent? (e.g

Re: WebSocket enpoint as a tapestry service

2016-10-27 Thread Lance Java
I'm guessing it's similar to this? https://github.com/uklance/tapestry-atmosphere/blob/master/tapestry-atmosphere/src/main/java/org/lazan/t5/atmosphere/services/TapestryAtmosphereObjectFactory.java On 27 Oct 2016 9:12 p.m., "Norman Franke" wrote: > I wanted to create a web

Re: WebSocket enpoint as a tapestry service

2016-10-27 Thread Lance Java
> > If you are using sessionless authentication (w/ JWT), you can pass the > > bearer token around in the sub-protocol header, > > namely Sec-WebSocket-Protocol (see > > http://stackoverflow.com/questions/22383089/is-it- > possible-to-use-bearer- > > authent

Re: WebSocket enpoint as a tapestry service

2016-10-26 Thread Lance Java
There's a chat demo in both tapestry-atmosphere and tapestry-cometd Atmosphere Demo: http://t5atmosphere-lazan.rhcloud.com/ Source: https://github.com/uklance/tapestry-atmosphere/tree/master/tapestry-atmosphere-demo Cometd Demo: http://t5cometd-lazan.rhcloud.com/chat Source:

Re: Problem with POST requests

2016-09-27 Thread Lance Java
onActivate() will be invoked for GET and POST and even during link generation (I think). You shouldn't do any "work" in this method. Better yet, remove the method all together and use @PageActivationContext. If you have "work" needed for render only you should use @SetupRender On 27 Sep 2016

Re: Multiple Page activation context

2016-09-20 Thread Lance Java
FYI one bonus of using @PageActivationContext is that you automatically have onPassivate() generated for you. If you declare onActivate() you'll need to do this yourself On 20 Sep 2016 5:56 p.m., "Thiago H de Paula Figueiredo" wrote: > On Tue, 20 Sep 2016 13:24:08 -0300,

Re: Multiple Page activation context

2016-09-20 Thread Lance Java
Sorry... I spoke to soon. You want index=1 to be a string sometimes and a long others? If you want to use @PageActivationContext you'll need to declare as a string and parse to long yourself On 20 Sep 2016 5:51 p.m., "Lance Java" <lance.j...@googlemail.com> wrote: > You don't

Re: Multiple Page activation context

2016-09-20 Thread Lance Java
@PageActivationContext(index=3) private Long id2; > > How do I create links? Can I do this: > > yo > bam > > ? Or do I have to explicitly pass null to keep indexes straight? > > yo > bam > > Adam > > On Tue, Sep 20, 2016 at 6:34 PM, Lance Java <lance.j...@goog

Re: Multiple Page activation context

2016-09-20 Thread Lance Java
Correction: This feature was added in 5.4 (not 5.3) On 20 Sep 2016 5:29 p.m., "Lance Java" <lance.j...@googlemail.com> wrote: > @PageActivationContext supports multiple values thanks to the new index > property added in 5.3. Missing values will simply be null > >

Re: Multiple Page activation context

2016-09-20 Thread Lance Java
@PageActivationContext supports multiple values thanks to the new index property added in 5.3. Missing values will simply be null Eg: @PageActivationContext(index=0) private String value0; @PageActivationContext(index=1) private String value1; @PageActivationContext(index=2) private String

Re: Multiple Context Parameters

2016-09-18 Thread Lance Java
Assuming foo is a property you could also do t:context="[foo,'true']" or t:context="[foo,true]" https://tapestry.apache.org/property-expressions.html On 18 Sep 2016 11:13 a.m., "Bob Harner" wrote: > Yes, that's the correct way to do it. I think you could also do >

Re: Getting ID of an updated zone

2016-09-17 Thread Lance Java
If you want streaming updates to a page you might be interested in tapestry-atmosphere or tapestry-cometd rather than 12 periodic updates on a page. https://github.com/uklance/tapestry-atmosphere http://t5atmosphere-lazan.rhcloud.com/ https://github.com/uklance/tapestry-cometd

Re: Tapestry ignoring expansions in HTML comments

2016-03-16 Thread Lance Java
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 application for a while and I'm just > cleaning it up and I'm currently ensuring compatibility with

RE: Making a grid's checkbox column preserve its checked state across pages

2016-02-20 Thread Lance Java
ise I'm considering modifying the Grid (or the GridPager or other > component) so that the component is aware of having checkbox columns and > saves the checkboxes states on paging, and restores them when going back to > the same grid page. Any suggestion or observation about this

Re: Making a grid's checkbox column preserve its checked state across pages

2016-02-19 Thread Lance Java
If you want the values serverside, you'll need to POST the form when changing pages. You might find this difficult to achieve as paging is currently done as a GET request. The simplest solution would be to add a change event listener clientside and store the values on the client until the form is

Re: HibernateSessionManager and background threads

2015-11-01 Thread Lance Java
You'll need to @Inject the PerThreadManager and call cleanupThread() in the finally block of the task(s). On 1 Nov 2015 14:58, "Ilya Obshadko" wrote: > I have recently noticed in my GC logs that application leaks memory after > running periodic background process which

Re: How do I unit test Javascript in Tapestry applications?

2015-08-19 Thread Lance Java
A word of warning... Selenium tests can be very problematic and I'm sitting on the fence as to whether they are actually worth the maintenance cost. That being said, the tapestry build itself has comprehensive Selenium tests. Have a look through the source code for examples. On 17 Aug 2015 12:55,

Re: prefilling password

2015-08-04 Thread Lance Java
I've always considered this a bit of a security flaw. Using the javascript console you can show the password in plain text. Eg: alert(document.getElementById('password').value); On 3 Aug 2015 21:13, Thiago H de Paula Figueiredo thiag...@gmail.com wrote: On Mon, 03 Aug 2015 15:04:27 -0300,

Re: Multiple domains, one webapp

2015-08-04 Thread Lance Java
Further from Thiagos connents... In eclipse, when using the m2e plugin you can right click on a project Properties - Maven - Resolve dependencies from Workplace projects This is flagged on by default. Perhaps intellij has a similar configuration option? It's rare that eclipse can do something

Re: Forms created in a loop - problem with validation

2015-07-24 Thread Lance Java
I think this is caused by the field being reused in the loop. You might need to recordError with a FieldSnapshot. Example here http://t5stitch-lazan.rhcloud.com/mapbindingdemo

Re: Ajaxformloop add row link max size.

2015-07-13 Thread Lance Java
You could put the add row link in a zone and update the zone with nothing (via AjaxResponseRenderer) when the max is hit.

Re: Tapestry 5.4 datefield on value changed

2015-07-08 Thread Lance Java
See the observe mixin here http://t5stitch-lazan.rhcloud.com/observedemo

Re: Multi threading in a service

2015-07-08 Thread Lance Java
Seems like you're currently instantiating a WorkQueue calling archiveQueue() then calling shutdownAndAwaitTermination() and discarding the WorkQueue... Correct? If you use ExecutorService.submit() instead of ExecutorService.execute() you can call use the Future response and call Future.get()

Re: Best method to reuse a TextField configuration

2015-06-19 Thread Lance Java
I think the problem is publishParameters = value If you want validate and type you need publishParameters = value,validate,type

Re: Tapestry 5.3.7 - best way to customize Grid Pager

2015-06-03 Thread Lance Java
In my opinion the grid is trying to do a bit too much. It's a nice way to quickly get started but you often need to reactor to a custom table. It's possibly worth considering a more override friendly grid version 2. The current implementation is hard to set custom html attributes (td/tr).

Re: Ajax Exception Handling - How to use alerts component instead of different page.

2015-06-02 Thread Lance Java
This sounds quite specific to a single page, I'd use an event handler public void onException(Throwable cause) You can @Inject AlertManager to add alerts You can @Inject Request to test request.isXhr() You can @Inject AjaxResponseRenderer to update zones.

Re: AjaxUpload and BeanEditContext

2015-05-29 Thread Lance Java
You can probably contribute a ComponentEventRequestFilter to the ComponentEventRequestHandler. I always find the diagram at the bottom of this page useful http://tapestry.apache.org/request-processing.html

Re: AjaxUpload and BeanEditContext

2015-05-29 Thread Lance Java
Another option is adding a mixin to the AjaxUpload. And perhaps attach it to every instance using a ComponentClassTransformWorker2 eg: https://tawus.wordpress.com/2011/08/01/tapestry-mixins-classtransformations/

Re: unit testing Tapestry Services (5.4)

2015-05-27 Thread Lance Java
The ApplicationStateManager is injected by TapestryModule.class you will either need to add this module to the registry or mock the service in a test module (eg using mockito). Or, you might choose to split your own module into smaller logical groups (eg core and web) for easier testing. You

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

2015-05-27 Thread Lance Java
Can you explicitly generate your own clientids? Eg: t:loop index=index ... t:zone t:id=contentZone id=prop:myZoneId t:textArea t:zoneToUpdate=prop:myZoneId / Java @Property int index; public String getMyZoneId() { return foo + index; }

Re: how to access client id of the component rendered later than the current one

2015-05-23 Thread Lance Java
Which component are we talking about here? Are you sure you're setting id (not to be confused with t:id, the serverside component id).

Re: how to access client id of the component rendered later than the current one

2015-05-21 Thread Lance Java
If you're solving it by explicitly setting a data attribute, why can't you just explicitly set the id?

Re: how to access client id of the component rendered later than the current one

2015-05-20 Thread Lance Java
Possibly a much simpler option is to explicitly provide a clientId t:any t:id=serverId id=clientId... /

Re: how to access client id of the component rendered later than the current one

2015-05-20 Thread Lance Java
Can you include your template? Perhaps the two components are not within the same heartbeat. Depending on your use case, you might need a container component to invoke a method on a child at some later stage. Take a look at parallel / parallelContainer for inspiration

Re: Grid mixin: grid datasource get instancied on each use

2015-05-20 Thread Lance Java
The initial render of the grid occurs on a different request to the export event. Tapestry does not maintain state between requests (unless you explicitly @Persist which i wouldn't recommend). Therefore it's perfectly reasonable for the GridDataSource to be invoked once for the initial html

Re: Grid mixin: grid datasource get instancied on each use

2015-05-20 Thread Lance Java
As you've discovered... Tapestry replaces field access with Binding.get() using plastic byte code magic. You can use a local variable to avoid multiple gets. Eg: @BindParameter private GridDataSource source; ... GridDataSource sourceCopy = source; doStuff(sourceCopy); doMoreStuff(sourceCopy);

Re: how to access client id of the component rendered later than the current one

2015-05-20 Thread Lance Java
Can you generate the clientId yourself and pass as a parameter into both components? Why do you need to know the clientId? If it's for a javascript selector can you use a data- attribute instead?

Re: how to access client id of the component rendered later than the current one

2015-05-19 Thread Lance Java
Take a look at the Label component which uses @HeartbeatDeferred

Re: Grid mixin: grid datasource get instancied on each use

2015-05-15 Thread Lance Java
I'm not entirely sure the problem but it's likely caused by @BindParameter which is likely invoking the binding each access. Try @InjectContainer Grid grid; And grid.getDataSource(). This will give you an instance of CachingDataSource which should have the lazy behaviour you want.

Re: JumpStart Edit example - prepareForSubmit event handler

2015-05-11 Thread Lance Java
I haven't really been following this thread... But tapestry uses byte code manipulation magic to change component properties to PerThreadValues which means the actual member variables are unused. In development mode, tapestry mirrors the values to the member variables to make debugging easier. In

Re: ActionLink event handlers in Parent Page causing errors in Child

2015-05-08 Thread Lance Java
Tapestry validates all onXFromY() handlers to ensure that all Y's actually exist. In your case, it looks like Y does not exist in the child page since a different tml page is used. I can only assume this validation was introduced after 5.0. I consider actionlink to be deprecated, you should use

Re: AW: Differences between prepareForRender and prepare - What kind of code goes where

2015-05-08 Thread Lance Java
http://tapestry.apache.org/5.3/apidocs/org/apache/tapestry5/EventConstants.html

Re: AW: Differences between prepareForRender and prepare - What kind of code goes where

2015-05-08 Thread Lance Java
for What kind of code would or would you not put in each handler? there. Regards, Daniel P. -Ursprüngliche Nachricht- Von: Lance Java [mailto:lance.j...@googlemail.com] Gesendet: Freitag, 8. Mai 2015 15:03 An: Tapestry users Betreff: Re: Differences between prepareForRender and prepare

RE: Detect jqXHR.abort()

2015-05-08 Thread Lance Java
Ah, sorry... It looks like the browser actually closes the connection on abort which is resulting in a partial request being sent to the server. I have no idea how to detect this (possibly different per container too). Since you've found a solution which doesn't abort I'd use that. Cheers,

RE: Detect jqXHR.abort()

2015-05-08 Thread Lance Java
. The request should be thrown and never call any methods which can lead to unexpected result. Isn't this a security issue too? Maybe this is a jetty bug? *groupId*org.mortbay.jetty/*groupId* *artifactId*maven-jetty-plugin/*artifactId* *version*6.1.16/*version* *From:* Lance Java [via

Re: Differences between prepareForRender and prepare - What kind of code goes where

2015-05-08 Thread Lance Java
http://jumpstart.doublenegative.com.au/jumpstart/examples/navigation/whatiscalledandwhen

Re: Detect jqXHR.abort()

2015-05-07 Thread Lance Java
The server will know about an aborted request as it's too late, the request has already been sent. Abort is a clientside concept AFAIK which stops the client from waiting for the response / processing it.

Re: New service configuration type

2015-05-05 Thread Lance Java
Ok, so you don't think it should be a core concept but you also don't want to build the tree yourself? Something's gotta give! It's probably best to define the interface you'd like to interact with / contribute to. I'm sure there's a tapestry-ioc friendly way to achieve what you want.

Re: New service configuration type

2015-05-05 Thread Lance Java
, Charlouze m...@charlouze.com wrote: Thanks for your input Lance, you pictured what i had in mind when i was talking about the workaround. But i want to know if adding a configuration type is something that is doable ? Le lun. 4 mai 2015 à 13:51, Lance Java lance.j...@googlemail.com a écrit

Re: New service configuration type

2015-05-04 Thread Lance Java
You could probably achieve this with an OrderedConfigurationNodeConfig Eg: public interface NodeConfig() { public String getName(); public String getParentName(); //optional public ListString getChildNames(); // optional } After all contributions, you could build a tree of nodes by

Re: [T5.4] Problem with form fields in a loop

2015-04-30 Thread Lance Java
The problem is that the same field is reused for each loop iteration. See here for a workaround using a FieldSnapshot to record the errors. http://t5stitch-lazan.rhcloud.com/mapbindingdemo

Re: Customized display/edit blocks for components other than the grid

2015-04-30 Thread Lance Java
Are you aware that BeanEditor, BeanEditForm and BeanDisplay all obey the BeanBlockSource?

Re: Exception Parameter 'translate' of component is bound to null on a field that has no 'translate' attribute.

2015-04-30 Thread Lance Java
If you want tapestry to use your translator as the default for all dates you should contribute to TranslatorSource using a class (instead of contributing by name to TranslatorAlternativesSource). Otherwise, you could annotate individual date fields with @Translate(dateTranslator) and leave your

Re: File upload with Tapestry-Stitch ProgressTask

2015-04-28 Thread Lance Java
I think you'd override the MultopartDecoder service by extending MultipartDecoderImpl and implementing a custom createFileUpload(). You could then call ServletFileUpload.setProgressListener(...) with a custom listener. The progress listener could store the bytes/percentage finished in a session

Re: Handle specific bubbled up validate event

2015-04-28 Thread Lance Java
The page sees the component as a black box and doesn't know about its internal component structure. This encapsulation is by design. If you want more specific events you'll need to trigger them from your component.

Re: jQuery/autocomplete

2015-04-27 Thread Lance Java
Hi Geoff, as stated on the demo, the observe mixin was inspired by zone updater but with a few very handy differences: 1. Developers don't need to deal with request parameters. These are converted to more user friendly event arguments. 2. You can pass multiple clientside field values. In the

Re: jQuery/autocomplete

2015-04-27 Thread Lance Java
Is your autocomplete a select component? If so you can set the 'zone' attribute and handle the 'onChanged' event to update the zone. There's also the observe mixin from tapestry-stitch ( http://t5stitch-lazan.rhcloud.com/observedemo). Note: This will require a javascript tweak to work with jquery

Re: Activation event handler regression after upgrading from 5.4-beta-22 to 5.4-beta-31

2015-04-22 Thread Lance Java
Possibly a sign you should be using composition instead of inheritance ;)

Re: Localise a page link

2015-04-20 Thread Lance Java
I think you can @Inject ThreadLocale and call ThreadLocale.setLocale(xxx). On 20 Apr 2015 10:09, Geoff Callender geoff.callender.jumpst...@gmail.com 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

Re: parallel remote requests in Tapestry

2015-04-18 Thread Lance Java
This sounded like a fun challenge so I implemented it in tapestry-stitch Demo here with source code: http://t5stitch-lazan.rhcloud.com/paralleldemo Rendering all happens on the request thread, workers are invoked in parallel. Enjoy!

Re: Parallel component rendering

2015-04-18 Thread Lance Java
Updating this thread for future googlability. See this example for executing work in parallel whilst rendering http://t5stitch-lazan.rhcloud.com/paralleldemo

Re: Tapestry 5.4 bytecode manipulation

2015-04-17 Thread Lance Java
In theory, that's possible. Tapestry doesn't reference ASM classes, it's only dependency is plastic. So in theory you could have a layer in plastic to choose ASM or javassist as the provider (or another byte code library). I'd doubt that this is high priority for the tapestry team. I seem to

Re: Tapestry 5.4 bytecode manipulation

2015-04-17 Thread Lance Java
On second thought... Why would you want to swap out the the bytecode provider? With clientside javascript it makes sense to choose the provider since you will be directly using jquery or prototype in your own code. Having a single provider reduces the scripts downloaded by the client. But with

Re: parallel remote requests in Tapestry

2015-04-15 Thread Lance Java
For this to work, I think the actual rendering needs to happen on the request thread. See the gist here: https://gist.github.com/anonymous/379b3aae199147684841 By using the parallel component you can ask for an Invokable (which does the 'work') and a binding (the property to set). You would

Re: Grid and initial sort mixin Tapestry 5.4-beta28

2015-04-08 Thread Lance Java
Does this help? http://stackoverflow.com/questions/18959365/tapestry-grid-default-sorting

Re: Refreshing tapestry grid content from another component.

2015-04-07 Thread Lance Java
I tried triggering resources.triggerEvent(InternalConstants.GRID_INPLACE_UPDATE,null, null); from onUpEvent, that trigger from an event link inside the grid. But that didn't seem to work This is a common misconception. Your eventlink inside the grid is not a child of the grid so the event won't

Re: Startup service needs Request

2015-04-04 Thread Lance Java
Correction, I meant getServletContext() not getServletRequest() On 4 Apr 2015 07:37, Lance Java lance.j...@googlemail.com wrote: @Inject ApplicationGlobals instead and call getServletRequest().getContextPath()

Re: Startup service needs Request

2015-04-04 Thread Lance Java
@Inject ApplicationGlobals instead and call getServletRequest().getContextPath()

Re: SoftReferences to PageImpl can cause performance problems

2015-04-02 Thread Lance Java
You don't need to build the tapestry source. Create a custom PageSource implementation by copy / paste / tweaking PageSourceImpl (lookup source on github) and removing SoftReference usage. Then use tapestry ioc to override the builtin PageSource service with your custom impl.

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

2015-03-26 Thread Lance Java
I don't really understand why you need the temp files? The normal approach is to store the static template files somewhere (classpath or database etc) but never actually store the merge results (template merged with context). I think you should provide a page which returns a StreamResult which is

Re: how to escape {{ symbols?

2015-03-23 Thread Lance Java
I'm guessing you could override the PageElementFactory with a custom implementation. You could extend PageElementFactoryImpl and override newExpansionElement. I'm guessing you might wrap Binding.get() to escape {{ if the binding type is String. On 19 Mar 2015 15:36, Тимур Бухараев

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

2015-02-24 Thread Lance Java
You might be interested in the griddecorator mixin from tapestry-stitch See the example here which adds a context sensitive alert to the onclick of every row https://t5stitch-lazan.rhcloud.com/griddecoratordemo On 23 Feb 2015 18:39, Poggenpohl, Daniel daniel.poggenp...@isst.fraunhofer.de wrote:

Re: How to get container inside self written component

2015-02-19 Thread Lance Java
Its working now as long my form components not rendered in loops or grids Hmm... I'd call that broken ;)

Re: PDF Viewer component

2015-02-19 Thread Lance Java
Use an iframe to load the StreamResponse page embedded in an html page. On 19 Feb 2015 13:35, Poggenpohl, Daniel daniel.poggenp...@isst.fraunhofer.de wrote: Hello, I am trying to build a component which can be embedded in a page and has a path parameter. If the parameter is set, the

Re: AW: PDF Viewer component

2015-02-19 Thread Lance Java
Java @Inject private ComponentResources resources; public void getPdfLink() { return resources.createPageLink(path/to/pdfpage, someContext); } TML iframe src=${pdfLink} ...

Re: AW: How to get container inside self written component

2015-02-16 Thread Lance Java
In my opinion, @InjectContainer is a bit fragile. I think you're much better off using the Environment or a component parameter. Let's consider a future case where you want to render the child component in a loop (or maybe an 'if' component). In this case the parent will be the loop/if and it

Re: Checkbox value for zone update

2015-01-26 Thread Lance Java
-dortmund.de wrote: On 23.01.2015, schrieb Lance Java wrote: You could use the observe mixin from tapestry stitch. The mixin can fire a zone update based on the change event, the current checkbox value can be sent as the event context. Hey Lance, your project sounds very promising, thanks

Re: Checkbox value for zone update

2015-01-23 Thread Lance Java
You could use the observe mixin from tapestry stitch. The mixin can fire a zone update based on the change event, the current checkbox value can be sent as the event context. http://t5stitch-lazan.rhcloud.com/observedemo On 23 Jan 2015 12:33, Stephan Windmüller stephan.windmuel...@tu-dortmund.de

Re: PageRenderLinkSource failing in service when called by cron scheduler - Unable to delegate method invocation to property

2015-01-22 Thread Lance Java
Perhaps tapestry-offline could help https://github.com/uklance/tapestry-offline On 20 Jan 2015 09:24, George Christman gchrist...@cardaddy.com wrote: I'm using T5 beta-25 and I have the following code and I'm noticing when the scheduler fires off my service, my PageRenderLinkSource does not

Re: Tapestry and Clojure

2014-12-30 Thread Lance Java
The logger is not a service and cannot be @Injected into IOC services. You have probably seen that you can @Inject the logger into pages and components. @Inject has been extended (perhaps hijacked) for components and @Injected values can come from contributed InjectionProviders. See

RE: Hibernate session tapestry atmosphere

2014-11-30 Thread Lance Java
tapestry-lanceuk-comet? lance-atmosphere? LOL... where do you guys come up with this stuff? It's tapestry-cometd or tapestry-atmosphere.

Re: alternative to tb/pager in T5.4

2014-11-29 Thread Lance Java
You might be interested in this http://t5stitch-lazan.rhcloud.com/pagerdemo

RE: Adding chat rooms

2014-11-27 Thread Lance Java
Do I have your permission for it? I don't mind what you do with the libraries, fork away! If you come up with something interesting / useful I'd be interested to hear about it.

Re: Adding chat rooms

2014-11-25 Thread Lance Java
I haven't actually written a chat module per se. I've written two libraries that support push/comet (namely tapestry-atmosphere [1] and tapestry-cometd [2]), both of which have a chat demo. Which one of these libraries are you using? Note: tapestry-atmosphere has a live demo of a multi-room chat

Re: tapestry-hibernate session.save not working in service

2014-11-21 Thread Lance Java
I'm guessing you need to commit a transaction. Either: HibernateSessionManager.commit() Or: Session.getTransaction().commit() Or: @CommitAfter

Re: Adding IOC services from pico

2014-11-18 Thread Lance Java
This might help https://github.com/apache/tapestry-5/search?utf8=%E2%9C%93q=Mapmoduledef On 18 Nov 2014 11:00, Gunnar Eketrapp gunnar.eketr...@gmail.com wrote: Hi! I would like to add service from our own ioc container (pico based) so that they may used in my tapestry projects. I.e. I

Re: tapestry-katcha Failing

2014-11-18 Thread Lance Java
I'm guessing this is a session issue. Perhaps a session cookie issue? Or clustering / session replication issue? On 18 Nov 2014 14:06, George Christman gchrist...@cardaddy.com wrote: Yesterday I appeared to be having a lot of failures with kaptcha. Sometimes the image would appear and

  1   2   3   4   5   6   7   8   9   10   >