Re: Problems with css tag in custom components

2006-10-10 Thread jake123

Thank you for your quick answer. It works perfectly fine now. 
Cheers,
Jacob
-- 
View this message in context: 
http://www.nabble.com/Problems-with-css-tag-in-custom-components-tf2417055.html#a6745243
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: Problems with css tag in custom components

2006-10-10 Thread Andreas Andreou

For tap 3.0.x and 4.0.x assuming you use the Insert component,
http://tapestry.apache.org/tapestry4/tapestry/ComponentReference/Insert.html
set the raw attribute to true.

For tap 4.1.x, there's already a component for correctly including a css
http://tapestry.apache.org/tapestry4.1/components/Style.html





jake123 wrote:
Hi, 
I have some problems with my custom components. Each of the components have

their own CSS so I need to insert a tag like this for the component:

this tag will not end up in the  tag but actually in the body of the
html. 


The results come out like this (disregard the white spaces in the biginning
and the end): 
& l t ; link href="/default/css/topbar.css" type="text/css" rel="stylesheet"

/ & g t ;

So, the problem is that tapestry converts the html symbols instead of
serving html tags. It also does the same for a image tags.

I have in my java code  this method:
public String getCssLink() {
/* Get the link for the right css */
String templateName = getSessionUserInfo().getTemplateName();
return "";
}

Is this the wrong approach? If so, how should I do this instead?

Thanks
Jacob
  


--
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting


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



Problems with css tag in custom components

2006-10-10 Thread jake123

Hi, 
I have some problems with my custom components. Each of the components have
their own CSS so I need to insert a tag like this for the component:

this tag will not end up in the  tag but actually in the body of the
html. 

The results come out like this (disregard the white spaces in the biginning
and the end): 
& l t ; link href="/default/css/topbar.css" type="text/css" rel="stylesheet"
/ & g t ;

So, the problem is that tapestry converts the html symbols instead of
serving html tags. It also does the same for a image tags.

I have in my java code  this method:
public String getCssLink() {
/* Get the link for the right css */
String templateName = getSessionUserInfo().getTemplateName();
return "";
}

Is this the wrong approach? If so, how should I do this instead?

Thanks
Jacob
-- 
View this message in context: 
http://www.nabble.com/Problems-with-css-tag-in-custom-components-tf2417055.html#a6737676
Sent from the Tapestry - User mailing list archive at Nabble.com.


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