You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by phillip rhodes <rh...@yahoo.com> on 2005/09/18 15:54:00 UTC
rendering informal parameters via template or spec configuration?
This is tapestry 3.x.
I have a component that uses
org.apache.tapestry.BaseComponent along with a html
template. I want my component to emit any informal
parameters passed to it. While I got it to accept the
informal parameters, it is swallowing them (not
emitting them). In my case, onmouseover and
onmouseout are the parameters I want passed through
and have output with the FramesetLink component.
Is this possible to do this via template/spec only, or
do I need to implement all the html writing via java
code if I want to output informal parameters?
<a jwcid="@portal:FramesetLink"
mainPageName="SmartThinking"
onmouseover="changeImages('Smart_Thinking',images/frontpage/Smart-Thinking-over.gif');return
true;"
onmouseout="changeImages('Smart_Thinking',
'images/frontpage/Smart-Thinking.gif'); return true;">
<img name="Smart_Thinking"
src="images/frontpage/Smart-Thinking.gif" width=152
height=55 border=0 alt="Smart Thinking">
</a>
Thank you!
Phillip Rhodeshttp://www.jsso.org Open source Java Identity and Authorization Serviceshttp://www.rhoderunner.com Open Source Java Ecommerce Suite
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: rendering informal parameters via template or spec configuration?
Posted by Johan Maasing <jo...@zoom.nu>.
Tomáš Drenčák wrote:
> But how to insert informal parameters into tag?
> For instance:
> .html:
> <span style="...">
> <table insertInformalParametersHere>
> ....
> </table>
> </span>
Perhaps that wonderful Any component can help you, something like this
might work (sorry I don't have time to test this myself):
component.html
---
<span style="...">
<table jwcid="InformalHere">
....
</table>
</span>
component.jwc
---
<component-specification allow-informal-parameters="yes">
<component id="InformalHere" type="Any" inherit-informal-parameters="yes">
</component>
</component-specification>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: rendering informal parameters via template or spec configuration?
Posted by Tomáš Drenčák <to...@gmail.com>.
But how to insert informal parameters into tag?
For instance:
.html:
<span style="...">
<table insertInformalParametersHere>
....
</table>
</span>
2005/9/18, Johan Maasing <jo...@zoom.nu>:
> phillip rhodes wrote:
> > This is tapestry 3.x.
> >
> > I have a component that uses
> > org.apache.tapestry.BaseComponent along with a html
> > template. I want my component to emit any informal
> > parameters passed to it. While I got it to accept the
> > informal parameters, it is swallowing them (not
> > emitting them). In my case, onmouseover and
> > onmouseout are the parameters I want passed through
> > and have output with the FramesetLink component.
> >
> > Is this possible to do this via template/spec only, or
> > do I need to implement all the html writing via java
> > code if I want to output informal parameters?
> >
> > <a jwcid="@portal:FramesetLink"
> > mainPageName="SmartThinking"
> > onmouseover="changeImages('Smart_Thinking',images/frontpage/Smart-
Thinking-over.gif');return
> > true;"
> > onmouseout="changeImages('Smart_Thinking',
> > 'images/frontpage/Smart-Thinking.gif'); return true;">
> > <img name="Smart_Thinking"
> > src="images/frontpage/Smart-Thinking.gif" width=152
> > height=55 border=0 alt="Smart Thinking">
> > </a>
> >
> > Thank you!
>
> I asked a similar question a while back. Perhaps the answer I got might
> help you also:
>
http://article.gmane.org/gmane.comp.java.tapestry.user/23424/match=render+informal+parameters
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
Re: rendering informal parameters via template or spec configuration?
Posted by Johan Maasing <jo...@zoom.nu>.
phillip rhodes wrote:
> This is tapestry 3.x.
>
> I have a component that uses
> org.apache.tapestry.BaseComponent along with a html
> template. I want my component to emit any informal
> parameters passed to it. While I got it to accept the
> informal parameters, it is swallowing them (not
> emitting them). In my case, onmouseover and
> onmouseout are the parameters I want passed through
> and have output with the FramesetLink component.
>
> Is this possible to do this via template/spec only, or
> do I need to implement all the html writing via java
> code if I want to output informal parameters?
>
> <a jwcid="@portal:FramesetLink"
> mainPageName="SmartThinking"
> onmouseover="changeImages('Smart_Thinking',images/frontpage/Smart-Thinking-over.gif');return
> true;"
> onmouseout="changeImages('Smart_Thinking',
> 'images/frontpage/Smart-Thinking.gif'); return true;">
> <img name="Smart_Thinking"
> src="images/frontpage/Smart-Thinking.gif" width=152
> height=55 border=0 alt="Smart Thinking">
> </a>
>
> Thank you!
I asked a similar question a while back. Perhaps the answer I got might
help you also:
http://article.gmane.org/gmane.comp.java.tapestry.user/23424/match=render+informal+parameters
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: rendering informal parameters via template or spec configuration?
Posted by Shing Hing Man <ma...@yahoo.com>.
The following is only a suggestion and I have not
tried it out.
In the java class of your component, overwite the
method renderComponent :
protected void renderComponent(IMarkupWriter writer,
IRequestCycle cycle) {
super.renderComponent(writer,cycle);
renderInformalParameters(writer, cycle);
}
Shing
--- phillip rhodes <rh...@yahoo.com> wrote:
> This is tapestry 3.x.
>
> I have a component that uses
> org.apache.tapestry.BaseComponent along with a html
> template. I want my component to emit any informal
> parameters passed to it. While I got it to accept
> the
> informal parameters, it is swallowing them (not
> emitting them). In my case, onmouseover and
> onmouseout are the parameters I want passed through
> and have output with the FramesetLink component.
>
> Is this possible to do this via template/spec only,
> or
> do I need to implement all the html writing via java
> code if I want to output informal parameters?
>
> <a jwcid="@portal:FramesetLink"
> mainPageName="SmartThinking"
>
onmouseover="changeImages('Smart_Thinking',images/frontpage/Smart-Thinking-over.gif');return
> true;"
> onmouseout="changeImages('Smart_Thinking',
> 'images/frontpage/Smart-Thinking.gif'); return
> true;">
> <img name="Smart_Thinking"
> src="images/frontpage/Smart-Thinking.gif" width=152
> height=55 border=0 alt="Smart Thinking">
> </a>
>
> Thank you!
>
>
>
>
> Phillip Rhodeshttp://www.jsso.org Open source Java
> Identity and Authorization
> Serviceshttp://www.rhoderunner.com Open Source Java
> Ecommerce Suite
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tapestry-user-help@jakarta.apache.org
>
>
Home page :
http://uk.geocities.com/matmsh/index.html
___________________________________________________________
How much free photo storage do you get? Store your holiday
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org