You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by James Carroll <ji...@microbrightfield.com> on 2003/09/23 21:15:42 UTC

simplest page parameters? (wicked newbie)

Hi,  I want to have a name, value pair in the .page file,
and to have that show up in the .html file.  Easy, no?

I'm trying 

.html:

   <span jwcid="pageTitle">The template Title</span>

.page:

  <component id="pageTitle" type="Insert">
    <static-binding name="pageTitle" value="the real title" />
  </component>

But it tells me that my static binding needs a 'value' attribute
(which is obviously there)

The reason I'm not putting this in the page itself is because 
I want to have a Border.html that shows a different title for
each page.  I already have the Border.jwc and Border.html 
kinda working, but I can't figure out how to get a parameter
to the Border component.

Thanks,
-jim

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


RE: simplest page parameters? (wicked newbie)

Posted by "Howard M. Lewis Ship" <hl...@comcast.net>.
Having trouble seeing the forrest for the trees?

<component id="pageTitle" type="Insert"
  <static-binding name="value" value="the real title"/>
</component>

--
Howard M. Lewis Ship
Creator, Tapestry: Java Web Components
http://jakarta.apache.org/tapestry
http://jakarta.apache.org/commons/sandbox/hivemind/
http://javatapestry.blogspot.com

> -----Original Message-----
> From: James Carroll [mailto:jim@microbrightfield.com] 
> Sent: Tuesday, September 23, 2003 3:16 PM
> To: Tapestry users
> Subject: simplest page parameters? (wicked newbie)
> 
> 
> 
> Hi,  I want to have a name, value pair in the .page file,
> and to have that show up in the .html file.  Easy, no?
> 
> I'm trying 
> 
> .html:
> 
>    <span jwcid="pageTitle">The template Title</span>
> 
> .page:
> 
>   <component id="pageTitle" type="Insert">
>     <static-binding name="pageTitle" value="the real title" />
>   </component>
> 
> But it tells me that my static binding needs a 'value' 
> attribute (which is obviously there)
> 
> The reason I'm not putting this in the page itself is because 
> I want to have a Border.html that shows a different title for 
> each page.  I already have the Border.jwc and Border.html 
> kinda working, but I can't figure out how to get a parameter
> to the Border component.
> 
> Thanks,
> -jim
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 


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