You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@clerezza.apache.org by "Hasan (JIRA)" <ji...@apache.org> on 2010/12/01 14:59:10 UTC

[jira] Commented: (CLEREZZA-356) WebRenderingFunction

    [ https://issues.apache.org/jira/browse/CLEREZZA-356?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12965684#action_12965684 ] 

Hasan commented on CLEREZZA-356:
--------------------------------

I tried to use WebRenderingService, but I did not get what I expected.

The ssp looks like this:

<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head></head>
<body>
<div>hello</div>
<div>
	{
		$[org.clerezza.examples.webrenderingservice.MyWebRenderingService].getHtmlSnippet
	}
</div>
</body>
</html>

and below is MyWebRenderingService

@Component
@Service(MyWebRenderingService.class)
@WebRenderingService
public class MyWebRenderingService {
	public String getHtmlSnippet() {
		return "<strong>foobar</strong>";
	}
}

I would expect to get

<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head></head>
<body>
<div>hello</div>
<div>
	<strong>foobar</strong>
</div>
</body>
</html>

but instead, I got:

<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head></head>
<body>
<div>hello</div>
<div>
	&lt;strong&gt;foobar&lt;/strong&gt;
</div>
</body>
</html>

The strong tag is not correctly rendered. Do I miss something?


> WebRenderingFunction
> --------------------
>
>                 Key: CLEREZZA-356
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-356
>             Project: Clerezza
>          Issue Type: Improvement
>            Reporter: Reto Bachmann-Gmür
>            Assignee: Reto Bachmann-Gmür
>
> It shall be possible to expose services providing WebRendering Functions available in ScalaServerPages. Webrendering Functions are functions without side effects that deliver an XML snippet for a list of argument values.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.