You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Ken in Nashua <kc...@live.com> on 2012/09/27 15:57:40 UTC
T4 javascript code snippet upgrade to T5 ?
Folks,
i have a T4 snippet
HOME.TML
<span jwcid="@Script" script="/org/trails/demo/components/Gallery.script"
component = "ognl:components.galleryWidget"
itemsPerPage = "ognl:components.galleryWidget.itemsPerPage"
tableColumns = "ognl:components.galleryWidget.tableColumns"
itemCount="ognl:components.galleryWidget.collection.size"
cursor="ognl:cursor"
/>
Can this all be remodeled in the TML file ?
or do I have to remodel it in the JAVA ?
Can you mention how to do the parameters ?
I saw there is an @Import annotation to get the Gallery.script file injected
@Import(library = "Gallery.script")
public class Home
{
}
Best Regards and thanks
kcolassi@live.com
Re: T4 javascript code snippet upgrade to T5 ?
Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Thu, 27 Sep 2012 10:57:40 -0300, Ken in Nashua <kc...@live.com>
wrote:
> Folks,
Hi!
>
> i have a T4 snippet
>
> HOME.TML
> <span jwcid="@Script" script="/org/trails/demo/components/Gallery.script"
> component = "ognl:components.galleryWidget"
> itemsPerPage = "ognl:components.galleryWidget.itemsPerPage"
> tableColumns = "ognl:components.galleryWidget.tableColumns"
> itemCount="ognl:components.galleryWidget.collection.size"
> cursor="ognl:cursor"
> />
>
> Can this all be remodeled in the TML file ?
>
> or do I have to remodel it in the JAVA ?
Check http://tapestry.apache.org/javascript.html.
--
Thiago H. de Paula Figueiredo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org