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 2013/02/18 03:07:49 UTC

simple page render

Folks,

I am prototyping and want to fill in some navigation points with plain HTML within a tml... just for temporary sake. I will eventually get to these navigation points and implement some real tapestry.

But I have some html files... that I want to render inside some tab control

So I am using this tab control
<div t:id="tabbedPane" id="tabbedPane" t:type="any"  t:mixins="kawwa2/tabs"  class="k-tabbed-data">
        <ul class="tabs">
            <li><a href="#tab1">Photo Gallery</a></li>
            <li><a href="#tab2">Schedule</a></li>
            <li><a href="#tab3">Teams</a></li>
            <li><a href="#tab4">Stats</a></li>
            <li><a href="#tab5">Stanley KEG</a></li>
            <li><a href="#tab6">Payment</a></li>
            <li><a href="#tab7">DryLand Conditioning</a></li>
        </ul>

        <div id="tab2" class="content">
            <t:?????/>
        </div>

I have a legacy schedule.html file

is there a tapestry component that will delegate and embed and render my html file inside the tab above ?

Something psuedo like this...

<render src="schedule.html"/>

I know its crude but just for proof of concept

Then I could have this...

        <div id="tab2" class="content">
            <t:render src="schedule.html"/>
        </div>

does such a component exist in tapestry?

Just trying to fill in the tabs with some proof of concept stuff too

sorry for such primitive question

kcolassi@live.com
 

 		 	   		  

Re: simple page render

Posted by Bob Harner <bo...@gmail.com>.
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 AM, Ivan Khalopik <ik...@gmail.com> wrote:
> 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 can convert your html file to tapestry component template and add
> empty java class.
>
>
> On Mon, Feb 18, 2013 at 5:07 AM, Ken in Nashua <kc...@live.com> wrote:
>
>> Folks,
>>
>> I am prototyping and want to fill in some navigation points with plain
>> HTML within a tml... just for temporary sake. I will eventually get to
>> these navigation points and implement some real tapestry.
>>
>> But I have some html files... that I want to render inside some tab control
>>
>> So I am using this tab control
>> <div t:id="tabbedPane" id="tabbedPane" t:type="any"
>>  t:mixins="kawwa2/tabs"  class="k-tabbed-data">
>>         <ul class="tabs">
>>             <li><a href="#tab1">Photo Gallery</a></li>
>>             <li><a href="#tab2">Schedule</a></li>
>>             <li><a href="#tab3">Teams</a></li>
>>             <li><a href="#tab4">Stats</a></li>
>>             <li><a href="#tab5">Stanley KEG</a></li>
>>             <li><a href="#tab6">Payment</a></li>
>>             <li><a href="#tab7">DryLand Conditioning</a></li>
>>         </ul>
>>
>>         <div id="tab2" class="content">
>>             <t:?????/>
>>         </div>
>>
>> I have a legacy schedule.html file
>>
>> is there a tapestry component that will delegate and embed and render my
>> html file inside the tab above ?
>>
>> Something psuedo like this...
>>
>> <render src="schedule.html"/>
>>
>> I know its crude but just for proof of concept
>>
>> Then I could have this...
>>
>>         <div id="tab2" class="content">
>>             <t:render src="schedule.html"/>
>>         </div>
>>
>> does such a component exist in tapestry?
>>
>> Just trying to fill in the tabs with some proof of concept stuff too
>>
>> sorry for such primitive question
>>
>> kcolassi@live.com
>>
>>
>>
>
>
>
>
> --
> BR
> Ivan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: simple page render

Posted by Ivan Khalopik <ik...@gmail.com>.
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 can convert your html file to tapestry component template and add
empty java class.


On Mon, Feb 18, 2013 at 5:07 AM, Ken in Nashua <kc...@live.com> wrote:

> Folks,
>
> I am prototyping and want to fill in some navigation points with plain
> HTML within a tml... just for temporary sake. I will eventually get to
> these navigation points and implement some real tapestry.
>
> But I have some html files... that I want to render inside some tab control
>
> So I am using this tab control
> <div t:id="tabbedPane" id="tabbedPane" t:type="any"
>  t:mixins="kawwa2/tabs"  class="k-tabbed-data">
>         <ul class="tabs">
>             <li><a href="#tab1">Photo Gallery</a></li>
>             <li><a href="#tab2">Schedule</a></li>
>             <li><a href="#tab3">Teams</a></li>
>             <li><a href="#tab4">Stats</a></li>
>             <li><a href="#tab5">Stanley KEG</a></li>
>             <li><a href="#tab6">Payment</a></li>
>             <li><a href="#tab7">DryLand Conditioning</a></li>
>         </ul>
>
>         <div id="tab2" class="content">
>             <t:?????/>
>         </div>
>
> I have a legacy schedule.html file
>
> is there a tapestry component that will delegate and embed and render my
> html file inside the tab above ?
>
> Something psuedo like this...
>
> <render src="schedule.html"/>
>
> I know its crude but just for proof of concept
>
> Then I could have this...
>
>         <div id="tab2" class="content">
>             <t:render src="schedule.html"/>
>         </div>
>
> does such a component exist in tapestry?
>
> Just trying to fill in the tabs with some proof of concept stuff too
>
> sorry for such primitive question
>
> kcolassi@live.com
>
>
>




-- 
BR
Ivan

RE: simple page render

Posted by Ken in Nashua <kc...@live.com>.
Thanks guys,

That was terrific.