.html is
<div>
<span jwcid="informal">
</span>
</div>

.page has
<component id="informal" type="Any" inherit-informal-parameters="yes"/>

>From Aj Gregory <[EMAIL PROTECTED]>:

> Sorry if my question was confusing... To clarify I'd like to do 
> something like this in my component .html:
> 
> <div>
>     <span INFORMAL_PARAMS>
>     </span>
> </div>
> 
> Basically the same thing that would happen if I was rendering in java with:
> 
> writer.begin("div");
> writer.begin("span");
> renderInformalParameters(writer, cycle);
> writer.end("span");
> writer.end("div");
> 
> thanks,
> -Aj
> 
> Jesse Kuhnert wrote:
> > Your component will inherit the informal parameters by default. (Or, you
> may
> > need to set it in your templates jwc spec file )
> >
> > The only other place this might need to be done is if you render your
> > component manually via renderComponent(). In that case you may need to
> call
> > "renderInformalParameters(writer)" .
> >
> > Either way it's pretty simple. Look at almost any of the tapestry
> components
> > for a good example.
> >
> > On 3/30/06, Mark Stang <[EMAIL PROTECTED]> wrote:
> >   
> >> Just put in the attribute.  So, if you wanted color, you would put
> >> color="blue".  If you need it to be variable, then I usually do something
> >> like:
> >>
> >> .html:
> >> <td jwcid="class1">
> >>
> >> .jwc:
> >>     <component id="class1" type="Any">
> >>                 <binding name="class" expression="classType"/>
> >>     </component>
> >>
> >> .java:
> >>     public String getClassType()
> >>     {
> >>         if (lastIndex == -1)
> >>             return "plain";
> >>
> >>         else
> >>             return "disabled";
> >>     }
> >>
> >>
> >> HTH,
> >>
> >> Mark
> >>
> >>
> >> -----Original Message-----
> >> From: Aj Gregory [mailto:[EMAIL PROTECTED]
> >> Sent: Thu 3/30/2006 5:30 PM
> >> To: Tapestry users
> >> Subject: Informal parameters in component html template
> >>
> >> How do you insert the informal parameters in a component's html template?
> >> Thanks!
> >> -Aj
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>     
> >
> >
> > --
> > Jesse Kuhnert
> > Tacos/Tapestry, team member/developer
> >
> > Open source based consulting work centered around
> > dojo/tapestry/tacos/hivemind.  http://opennotion.com
> >
> >   
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to