Using external Font Libraries and the load stack

2012-06-25 Thread yazdog8
I have to use Typekit to import fonts on to our base layout. To do this, in the head of the base layout I need to add this script which writes a css file that includes the fonts that will be used. Unfortunately, it looks like Tapestry is re-writing any JS in the head so that the page JS stack

Re: Tapestry and inline Handlebars.js

2012-05-01 Thread yazdog8
Thanks for the info on the parser. I'd be thrilled with that element for 5.4, because Client Side Templating is becoming more prevalent and I think it's something client developers will run into consistently. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-and-inli

Re: Tapestry and inline Handlebars.js

2012-04-30 Thread yazdog8
So DUHuser error! I was passing in a p:script and it was looking for p:template. Thanks for the help! -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-and-inline-Handlebars-js-tp5660756p5677055.html Sent from the Tapestry - User mailing list archive at Nabble.co

Re: Tapestry and inline Handlebars.js

2012-04-30 Thread yazdog8
Here's what I'm trying to pass in: -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-and-inline-Handlebars-js-tp5660756p5677026.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Tapestry and inline Handlebars.js

2012-04-30 Thread yazdog8
trsvax, Trying to implement this, but I'm getting an error along the lines of: Parameter(s) 'template' are required for com.beckon.app.components.widgets.script.ClientHtmlTemplate, but have not been bound. My java is limited, but it looks like it's expecting us to pass in a template? Should this

Re: Recommended method to reference assets in .css file?

2012-04-24 Thread yazdog8
If you're using Less CSS (or maybe sass possibly), you can set some basic variables at the top of your file that can be used as a cache buster in your paths. http://lesscss.org/#-variables -- View this message in context: http://tapestry.1045711.n5.nabble.com/Recommended-method-to-reference-asse

Re: Tapestry and inline Handlebars.js

2012-04-24 Thread yazdog8
Thiago H de Paula Figueiredo wrote > > On Tue, 24 Apr 2012 17:26:09 -0300, trsvax wrote: > >> You still need the CDATA but I'd say the benefits of tml files being >> valid XML easily out weight the drawbacks. > > Agreed. In addition, to support other formats besides XML, we would ne

Re: Tapestry and inline Handlebars.js

2012-04-24 Thread yazdog8
Thanks. I'll give it a shot and report back. I still think there has to be a better way to handle client side templating, and one that should be baked into the system. If 5.4 is going to support more MVC style JavaScript, this is going to get a lot of use. -- View this message in context: http:

Re: Tapestry and inline Handlebars.js

2012-04-24 Thread yazdog8
So...been experimenting more...and from the fine folks at Stack Overflow...this solution for pulling HTML out of CDATA. Fine point, it has to be CDATA and not the JS/CSS commented CDATA. You will then have to unescape the content before compiling with Handlebars.compile. var template=Handlebar

Re: Tapestry and inline Handlebars.js

2012-04-24 Thread yazdog8
Tried several pre-compilation tricks as well, and it still renders things out as text, and I think that's a result of the CDATA being XML whereas that data is rendered and read differently in the browser. I have read Mr. Shipp's blog about JS and the 5.4 release. I would love to know more about hi

Re: Tapestry and inline Handlebars.js

2012-04-23 Thread yazdog8
I did, and the handlebars template returns the tags as text, so a < ends up being < entity. One solution that seems to be working for me is this: {{#if uploadOption}} Click to add description {{else}} Click to add

Tapestry and inline Handlebars.js

2012-04-23 Thread yazdog8
I'm trying to use handlebars.js to generate some DOM code on a file upload widget (so there is no going to the server for a generated TML file...just no need). There are two ways to do this...you can include the handlebars template on the page (faster, easier and non cacheable) as opposed to includ

Re: Extension-point and the notion of has content

2012-03-29 Thread yazdog8
Thanks for the help! -- View this message in context: http://tapestry.1045711.n5.nabble.com/Extension-point-and-the-notion-of-has-content-tp5602212p5605024.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Extension-point and the notion of has content

2012-03-28 Thread yazdog8
I'm currently working with a layout where we're using a base layout for a form, and then extension points to replace page titles, form elements, etc. Every layout is exactly the same, except for one instance where we have a side well area for descriptive purposes. It would be great if you could use

Re: AjaxFormLoop Updated Event?

2012-02-24 Thread yazdog8
Getting crickets here, so I'll publish my solution and see if anyone has any comments. I'm using the jQuery widget factory to re-set the widget name (so that it's called as the same widget), while copying the original widget into the new widget of the same name. I can then over write the trigger ev

AjaxFormLoop Updated Event?

2012-02-23 Thread yazdog8
I'm working on a rather complex component involving An AjaxFormLoop where I need to detach and then reattach events to the DOM after the new HTML node has been inserted (as we're adding another input field to the form). When I'm using a regular zone, Tapestry provides by the way of Pub/Sub through

Re: Select Menu updating AjaxFormZone

2012-02-11 Thread yazdog8
That looks like an excellent place to start. Thanks for the help! I think that I can listen to the zone update custom event to reset the select back to the default state once the zone is actually triggered. Much appreciated! -- View this message in context: http://tapestry.1045711.n5.nabble.com

Select Menu updating AjaxFormZone

2012-02-10 Thread yazdog8
I'm trying to build a section of a form that increments a populated input field every time a Select Menu's onchange event is fired. Essentially all of the possible categories would be loaded in as options to the Select. I've looked all over this board, searched through documentation, and can't real

Attribute rendering in tags with variables

2012-01-18 Thread yazdog8
Not sure the title conveys what I'm meaning to ask, but in the PHP/Rails world, if you want to omit an attribute in an HTML tag, you're usually going to wrap it in an if statement: class=""> Essentially, if $someVar has been set, then you render a class attribute for the body in the DOM. I've s

Re: Problems with console.log?

2012-01-04 Thread yazdog8
Thanks for the response. I was actually making errors in two places, both with the <=. I think my other question of how can I turn off this stack trace still applies. Like I said, I'm using ba-debug and am quite happy with it's dealings with the console. What was causing me a great deal of confusio

Problems with console.log?

2012-01-04 Thread yazdog8
Can anyone explain what the t5-console does? I seem to get seriously strange errors that point to AJAX when I'm performing normal JavaScript operations after we do an ajax round trip. So the errors I'm getting seem to point to AJAX when in fact we're just extending an object. Communication with th

Front End Developer resources/tutorials?

2011-12-22 Thread yazdog8
I'm new to Tapestry, although I have experience in MVC frameworks (Rails, Codeigniter, Symfony) I'm finding it a little difficult to relate my knowledge to the "tapestry way". Basically I want to make sure that I'm doing things from a front end perspective that fits with Tapestry's methodologies. A