Re: How to add a link to a file stored in directory?

2013-06-05 Thread Lance Java
Tapestry has built in support for serving classpath assets. http://tapestry.apache.org/assets.html Option1 TML a href=${asset:classpath:regoznapp/enterprise/src/main/resources/return.txt} / Option2 Java @Inject AssetSource assetSource; public String getAssetUrl() { return

Re: Tapestry 5.4-alpha-7

2013-06-05 Thread Muhammad Gelbana
1. I hope this comment would be considered to solve that issue. https://issues.apache.org/jira/browse/TAP5-1948?focusedCommentId=13675755page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13675755 *2. In development mode, Tapestry monitors all assets that have been

[t5.3.7] Tapestry archtype dependencies

2013-06-05 Thread Muhammad Gelbana
Why tapestry archtype project, when generated using maven and imported into Eclipse, has much more dependencies than the ones separately downloadable from tapestry's portal ?

Re: [t5.3.7] Tapestry archtype dependencies

2013-06-05 Thread Thiago H. de Paula Figueiredo
Are you talking about any JAR downloaded by Maven or just the ones put in the generated project classpath? If, for example, your .m2/repository folder didn't exist or wasn't populated yet, Maven will download lots of stuff used by itself. On Wed, Jun 5, 2013 at 7:45 AM, Muhammad Gelbana

Re: [t5.3.7] Tapestry archtype dependencies

2013-06-05 Thread Muhammad Gelbana
I'm talking about the generated classpath. I understand from your answer that this is not possible or should not happen ? I guess these libraries are for maven's sake as you suggested. Thank you. On Wed, Jun 5, 2013 at 1:44 PM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: Are you

Re: [t5.3.7] Tapestry archtype dependencies

2013-06-05 Thread Thiago H. de Paula Figueiredo
Which libraries are being added which you consider useless? Don't forget that dependencies may have dependencies themselves, so Maven (or any other tool that handles dependencies) has to deal with that too. In Eclipse, in the POM editor, there's a dependency graph you can check. Of mvn

Re: [t5.3.7] Tapestry archtype dependencies

2013-06-05 Thread Muhammad Gelbana
I can't remember the classpath entries generated by maven as I've disabled maven dependencies but I remember seeing Apache xerces ! I guess maven just follow each dependency's dependencies in it's pom and downloads\includes it automatically. Whats weird is that tapestry's downloaded jars and

Re: [t5.3.7] Tapestry archtype dependencies

2013-06-05 Thread Thiago H de Paula Figueiredo
On Wed, 05 Jun 2013 10:12:59 -0300, Muhammad Gelbana m.gelb...@gmail.com wrote: I can't remember the classpath entries generated by maven as I've disabled maven dependencies but I remember seeing Apache xerces ! Weird. I've never seen it in a Tapestry project. I guess maven just follow

Re: Contribute multiple collections in the same service?

2013-06-05 Thread Ferran Maylinch
Thank you, In my case, MapConfig contributions can be reduced to HazelcastConfigurer contributions (and now I see I should have used the latter from the start) so (to avoid many refactorings) I created another service that converts MapConfig contributions to a HazelcastConfigurer. public class

Re: Contribute multiple collections in the same service?

2013-06-05 Thread Lance Java
You don't need the MapConfigService, you can use a serviceId (or a marker annotation) to disambiguate your HazelcastConfigurer instances. // serviceId = mapConfigHazelcastConfigurer public HazelcastConfigurer buildMapConfigHazelcastConfigurer(final CollectionMapConfig mapConfigs) { return new

Re: [t5] Is it possible to return a component's generated HTML ?

2013-06-05 Thread Muhammad Gelbana
Honestly, I can't figure out anything from these 2 resources ! It all looks so complicated to me. @Dmitry What is the entry point of your code ? When an ajaxrequest is sent to my application, doesn't it reach your CompanyBlocks page ? Then when does all the other services begin working ?! @Lanve

Re: [t5] Is it possible to return a component's generated HTML ?

2013-06-05 Thread Lance Java
I think I need to understand how it's going to work before I go any further. Here's one approach 1. The browser makes a request to the other webapp 2. The other webapp makes request(s) to the tapestry app 3. The other webapp merges it's own html with the tapestry html to create a page 4.

Re: [t5] Is it possible to return a component's generated HTML ?

2013-06-05 Thread Dmitry Gusev
The entry point is: String rawAddress = renderer.render(new RenderEvent( internal/companyblocks, companyAddress, company)); You tell here that onCompanyAddress method (or method with @Event(companyAddress)) should be invoked on the internal/companyblocks page class and if that

RE: Grid Component subsequent submit causes IndexOutofBoundsException

2013-06-05 Thread nhhockeyplayer nashua
Thanks Thiago... The collection was always being populated. It still is nicely. There seems to be some confusion on persisted form properties and ajax with regard to what the grid is doing under the hood. I failed to have a complete usable prototype by June 1st with

Re: Tapestry 5.4-alpha-7

2013-06-05 Thread Howard Lewis Ship
On Wed, Jun 5, 2013 at 2:51 AM, Muhammad Gelbana m.gelb...@gmail.comwrote: 1. I hope this comment would be considered to solve that issue.

Re: [t5] Is it possible to return a component's generated HTML ?

2013-06-05 Thread Muhammad Gelbana
Actually Lance's second approach is what I need to do. And yes it should be very simple, I will only have to display regular html without controls at all (Hopefully it will stay this way and I actually think it will) Regards On Wed, Jun 5, 2013 at 8:00 PM, Dmitry Gusev dmitry.gu...@gmail.com

Re: [t5] Is it possible to return a component's generated HTML ?

2013-06-05 Thread Dmitry Gusev
If you only need to get HTML on the client and not on the server-side, then you may just use Tapestry's built-in logic for handling AJAX requests. On the server side create eventLink: Link link = resources.createEventLink(eventType, contextValues); return link.toAbsoluteURI(); Pass this link to