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
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
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
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.
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
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
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
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:
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
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
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
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
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.
-
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
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
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
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
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
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
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
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
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
22 matches
Mail list logo