Adding/removing upload form fields on client side?

2013-11-08 Thread Vjeran Marcinko
Hi, I have a form that should allow adding arbitrary number of upload fields, thus once final Submit on form is presses, all files should be uploaded then. Meaning, on server side I should simply have form bean that has something like : Collection uploadedFiles; And on the form to have someth

Re: [T5.4] A Tapestry upgrade experience

2013-11-08 Thread Bård Magnus Kvalheim
On Fri, Nov 8, 2013 at 2:31 AM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Thu, 07 Nov 2013 19:27:11 -0200, Bård Magnus Kvalheim < > mag...@kvalheim.eu> wrote: > > ... On slightly different note while discussing 24 - the ordering of >> stack css have changed from 22->24 which

RE: [5.4] Render Partial HTML Pages

2013-11-08 Thread Thilo Tanner
Hi Thiago, thanks a lot for your feedback. The application is based on Bootstrap 3 and therefore I enabled the core stack by default. I will therefore create a patch and file a JIRA issue. Best regards, Thilo From: Thiago H de Paula Figueiredo Sent:

Re: Tapestry5 Anchor Usage for Navigation

2013-11-08 Thread Ilya Obshadko
So, I've ended up with this solution: https://gist.github.com/xfyre/7369149 It kinda works. There are few things I don't like about it: - it uses InternalComponentResources (which is, in fact, internal interface not exposed as a public API) - currently it supports only EventLink (though it may b

Re: [T5.4] A Tapestry upgrade experience

2013-11-08 Thread Thiago H de Paula Figueiredo
On Fri, 08 Nov 2013 06:39:33 -0200, Bård Magnus Kvalheim wrote: Yes, so what I see in 24 is that core stack css is inserted after my own stack css. In 22 the core stack css was inserted before. In practice, bootstrap.css is now ordered after my own css so the 'overrides' don't work no more. H

Re: POJO's in Forms

2013-11-08 Thread thegreatmewel
Hi Thiago, it works now, thanks a lot. So the t:id attribute is bound to the component and the value attribute is bound to the property. I think thats all a little bit confusing for new tapestry users like me. First of all the "value" attribute. In standard HTML the value attribute of an input

Re: POJO's in Forms

2013-11-08 Thread Thiago H de Paula Figueiredo
On Fri, 08 Nov 2013 08:59:14 -0200, thegreatmewel wrote: Hi Thiago, it works now, thanks a lot. So the t:id attribute is bound to the component and the value attribute is bound to the property. Yep, but, actually, t:id isn't bound to anything: it's not a parameter, it's a component id, n

Warning: Unresponsive script - core.js (regarding datatables)

2013-11-08 Thread lidijaldo .
I'm using datatables. If I deploy my web application on a server in our network, I'm getting "Warning: Unresponsive script" alert in firefox. It takes ages to load datatable with a single record. Everything else loads fine, except for the table. The whole javascript warning is: "A script on this

RE: [5.4] Render Partial HTML Pages

2013-11-08 Thread Thilo Tanner
Hi all, hi Thiago a quick update from my side concerning the partial page rendering issue, just in case anyone facing the same problem. Instead of modifying the DocumentLinker, I created a BlockRenderer service which is able to render injected Block objects as a stream response. The reason for

How to use bootstrap dropdown. 5.4

2013-11-08 Thread George Christman
Hi everyone, I'm not sure what I need to do to use bootstrap dropdown. Do I need to somehow include the dropdown js? If so, how would I go about doing this? Thanks.

Re: How to use bootstrap dropdown. 5.4

2013-11-08 Thread thegreatmewel
Hi George, I had the same problem today and my solution was to add this: private @Environmental JavaScriptSupport js; private void setupRender() { js.require("bootstrap/dropdown"); } to your Layout.java class. On 11/08/13 17:12, George Christman wrote: Hi everyone, I'm

Re: How to use bootstrap dropdown. 5.4

2013-11-08 Thread George Christman
Thanks, I was actually just about to post a similar solution using @Import module = {"bootstrap/dropdown"}, This should probably be added to the documentation. Have you experienced an issue where your dropdown group completely disappears after focus has been lost? I read it has something to do wi

How do you turn off prototype in 5.4

2013-11-08 Thread George Christman
I've read it is possible to turn off prototype while using jquery, how is this achieved? I'm running into conflicts with bootstrap hide.

Re: How do you turn off prototype in 5.4

2013-11-08 Thread Thiago H de Paula Figueiredo
On Fri, 08 Nov 2013 15:36:19 -0200, George Christman wrote: I've read it is possible to turn off prototype while using jquery, how is this achieved? I'm running into conflicts with bootstrap hide. public static void contributeApplicationDefaults(MappedConfiguration configuration) { con

Re: How do you turn off prototype in 5.4

2013-11-08 Thread Michael Gentry
Hi George, I did it this way in AppModule.java: public static void contributeApplicationDefaults(MappedConfiguration configuration) { ... configuration.add(SymbolConstants.JAVASCRIPT_INFRASTRUCTURE_PROVIDER, "jquery"); } @Contribute(Compatibility.class) publi

Re: How do you turn off prototype in 5.4

2013-11-08 Thread George Christman
Hi Michael, as it turns out my issue was actually a browser cache issue. I'm using 5.4-alpha-24 and the only thing needed was configuration.add( SymbolConstants.JAVASCRIPT_INFRASTRUCTURE_PROVIDER, "jquery"); I didn't seem to need disableScriptaculous as that was done in the configuration above. T

Re: How do you turn off prototype in 5.4

2013-11-08 Thread Dragan Sahpaski
You don't need to contribute to the Compatibility service just to use jquery instead of prototype. The explanation is in the org.apache.tapestry5.services.compatibility.Trait enum javadoc. /** * Defines different traits that may be enabled or disabled. This was introduced in Tapestry 5.4 to allo

5.4-alpha-24 JS bug

2013-11-08 Thread George Christman
Hello, I'm seeing the following error when ever I submit a form. This wasn't an issue in 23. Does anybody know what might be causing this? SyntaxError: syntax error

Re: How do you turn off prototype in 5.4

2013-11-08 Thread Michael Gentry
Hi Dragan, Perhaps I can delete some code, then. Thanks! mrg On Fri, Nov 8, 2013 at 12:47 PM, Dragan Sahpaski wrote: > You don't need to contribute to the Compatibility service just to use > jquery instead of prototype. > > The explanation is in the org.apache.tapestry5.services.compatibility

Re: 5.4-alpha-24 JS bug

2013-11-08 Thread Muhammad Gelbana
Have you tried clearing your browser-cached assets before running the application ? What special features are you implementing in your form/page ? *-* *Muhammad Gelbana* http://www.linkedin.com/in/mgelbana On Fri, Nov 8, 2013 at 8:48 PM, George Christman wrote: > Hello, I'm

[T5.4] cannot redirect on session timeout

2013-11-08 Thread Geoff Callender
The technique I use in T5.3 isn't working in T5.4 (alpha-23 with jquery). Has anyone else got it to work? Server-side, I'm returning JSON response containing redirectURL... OutputStream os = response.getOutputStream("application/json;charset=UTF-8" ); os.write(("{\"redirectURL\":\"" + requestedP

jQuery autocomplete stops working when SUPPRESS_PROTOTYPE is true

2013-11-08 Thread Ilya Obshadko
This is weird, and I can't find what causes the error. If JQuerySymbolConstants.SUPPRESS_PROTOTYPE is set to true, autocomplete list disappears on hover. If I switch it back to false, everything starts working correctly again. Any ideas? -- Ilya Obshadko