Re: simple page render

2013-02-18 Thread Ivan Khalopik
You can create your own component for rendering plain html files. I had something similar to your issue - source code rendering. https://github.com/sody/heroku-samples/blob/master/src/main/java/com/example/ui/components/Source.java usage: t:source content=classpath:sources/Source1.java/ Or you

Re: simple page render

2013-02-18 Thread Bob Harner
I think you'll actually find Ivan's second suggestion more productive. Each page (tml and empty java class) should take you no more than 60 seconds to create by copying and pasting, and then you'll have a good starting point for fleshing out real functionality later. On Mon, Feb 18, 2013 at 3:00

Re: Using a modal dialog window for ValidationException?

2013-02-18 Thread Emmanuel DEMEY
Hi, i think the only for overring the errors components, is to create a new component ! This component will call a JavaScript method, with all the errors (ValidationTracker.getErrors();), and open the dialog. Manu 2013/2/18 George Ludwig georgelud...@gmail.com Is it possible to launch a

RE: simple page render

2013-02-18 Thread Ken in Nashua
Thanks guys, That was terrific.

Re: css layout problems, strange runtime behavior - help

2013-02-18 Thread Thiago H de Paula Figueiredo
On Mon, 18 Feb 2013 13:13:30 -0300, George Ludwig georgelud...@gmail.com wrote: In CSS, the problem is almost always that some unexpected rule is being followed rather than the one you think. I've found Chrome to be an invaluable tool in locating the exact source of the CSS rule being

Re: css layout problems, strange runtime behavior - help

2013-02-18 Thread George Ludwig
Unless your CSS files aren't included or included in the wrong order, this isn't a Tapestry issue at all. Exactly. So the OP needs to find out exactly which CSS rules are being followed, and where they came from... On Mon, Feb 18, 2013 at 9:03 AM, Thiago H de Paula Figueiredo

How to command the child component?

2013-02-18 Thread bigcache1
Metaphorically. I have a component, that displays ninja. When I click on ninja -- I want to see his katana. Here ninja is parent, and katana is child, and I want to command as the parent, saying display. How could ninja send commands to katana, to fire the zone update in katana? Alternative

Re: SinglePage app design thoughts

2013-02-18 Thread bigcache1
UPDATE #2 So I have built a prototype of my single page application. I am using Tapestry activation context as a router, and it fits into architecture veery nicely. I have hierarchical content structure there, and I am navigating across this ocean of content by specifying (by various ways), or not

Re: How to command the child component?

2013-02-18 Thread Thiago H de Paula Figueiredo
If you want to update a given zone using JavaScript, you'll need to use something like this: http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/onevent. var zoneManager = Tapestry.findZoneManagerByZoneId(zoneId); zoneManager.updateFromURL(listenerURIWithValue); On Mon, 18 Feb

Spinner - Prototype to JQuery (ie tapestry5-jquery)

2013-02-18 Thread bhorvat
Probably not the best place to ask (and probably not the best question as well) but I am not that good at jquery so I have no real idea where to start. But does anyone have an idea how to covert // A script that detects when any Form is being submitted or any component issues a request

Re: Spinner - Prototype to JQuery (ie tapestry5-jquery)

2013-02-18 Thread Thiago H de Paula Figueiredo
On Mon, 18 Feb 2013 17:54:25 -0300, bhorvat horvat.z.bo...@gmail.com wrote: Probably not the best place to ask (and probably not the best question as well) Yep, this is really the wrong place to ask. This is completely unrelated to Tapestry. You'll probably should post this on the jQuery

Re: How to command the child component?

2013-02-18 Thread René Bernhardsgrütter
Hi, in Ninja, you could do something like this @Component Katana katana; @Inject AjaxResponseRenderer ajaxResponseRenderer; onActionFromNinjaLink() { ajaxResponseRenderer.addRender(katana.getZone.getClientId(), katana.getZone()); } with a getter in the

Re: Spinner - Prototype to JQuery (ie tapestry5-jquery)

2013-02-18 Thread George Ludwig
Why bother converting it? You can run Prototype along with jQuery. On Mon, Feb 18, 2013 at 1:04 PM, Thiago H de Paula Figueiredo thiag...@gmail.com wrote: On Mon, 18 Feb 2013 17:54:25 -0300, bhorvat horvat.z.bo...@gmail.com wrote: Probably not the best place to ask (and probably not the

Re: How to command the child component?

2013-02-18 Thread Thiago H de Paula Figueiredo
On Mon, 18 Feb 2013 18:37:55 -0300, René Bernhardsgrütter rene.bernhardsgruet...@gmail.com wrote: Hi, Hi! in Ninja, you could do something like this @Component Katana katana; You need to use @InjectComponent if you define the component on the template. @Component should only

RE: css layout problems, strange runtime behavior - help

2013-02-18 Thread Ken in Nashua
Well the css rules came from me and a library I integrated. My custom head component overloads DIV, and other variations of DIV definitions. Here is the output !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;html

RE: css layout problems, strange runtime behavior - help

2013-02-18 Thread Ken in Nashua
So it seems I need to dismantle this thing and take it apart to isolate the trouble

Re: SinglePage app design thoughts

2013-02-18 Thread Bob Harner
For uploading, take a look at http://tapestry5-jquery.com/components/docsajaxupload and http://tawus.wordpress.com/2011/06/25/ajax-upload-for-tapestry/ -- both of which use the highly regarded valums file uploader (now called Fine Uploader). On Mon, Feb 18, 2013 at 2:49 PM, bigcache1

how to send a row information in ajaxformloop

2013-02-18 Thread bhorvat
I have a ajaxformloop. The list of objects that I want to display has two fields. Both of them are enums and I want to be able to refresh the second enum when I make my selection on the first. For example Field 1 Filed 2 name is startDate before My code looks like t:form div

Re: Spinner - Prototype to JQuery (ie tapestry5-jquery)

2013-02-18 Thread bhorvat
Yea I guess I could try to run Prototype as well. Thought I would be more happy to have only one framework if possible. Thanks for the suggestion will keep it in mind :D -- View this message in context:

Re: Spinner - Prototype to JQuery (ie tapestry5-jquery)

2013-02-18 Thread bhorvat
Problem is that I cant switch alias on prototype but I have do it on jquery and that is not the best solution :) -- View this message in context: http://tapestry.1045711.n5.nabble.com/Spinner-Prototype-to-JQuery-ie-tapestry5-jquery-tp5720077p5720087.html Sent from the Tapestry - User mailing

PersistenceConstants.FLASH

2013-02-18 Thread John
If a field uses the FLASH persist constant but is not a @Property is it the same as being persisted in the session with plain @Persist because the field is not read by the template directly to take it out of the session? I'm concerned that my useage below will leave a lot of clutter in the

Re: PersistenceConstants.FLASH

2013-02-18 Thread Thiago H de Paula Figueiredo
On Mon, 18 Feb 2013 20:38:03 -0300, John j...@quivinco.com wrote: If a field uses the FLASH persist constant but is not a @Property is it the same as being persisted in the session with plain @Persist because the field is not read by the template directly to take it out of the session?

Re: SinglePage app design thoughts

2013-02-18 Thread rnicholus
I, too recommend valums/file-uplodaer (as Bob said, now called Fine Uploader). In the interest of full disclosure, I should probably mention that I am the maintainer of Fine Uploader. Andrew Valums handed over the project to me (just before the name change) after he realized that he no longer