[Logo] RSF Discussions Forum
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
"Passthrough" HTML  XML
Forum Index -> RSF Help and Problems
Author Message
mrvisser
Request-scope Wrangler

Joined: 19/09/2008 18:31:35
Messages: 19
Offline

Maybe a stupid question, but here goes..

I need to send HTML to a page and have it rendered as HTML:

Code:
 <div rsf:id="msg-body">
 </div>
 


Then:

Code:
 UIOutput.make(tofill, "msg-body", msg.getBody());
 


msg.getBody() is HTML mark-up.

Any ideas?

Thanks,

Branden
jimeng
Request-scope Wrangler

Joined: 11/07/2006 17:41:40
Messages: 84
Offline

Check out UIVerbatim:
http://saffron.caret.cam.ac.uk/projects/RSFUtil/trunk/site/apidocs/uk/org/ponder/rsf/components/UIVerbatim.html
But be warned that every time I've heard Antranig talk about this he includes strong cautions against it.

Jim
mrvisser
Request-scope Wrangler

Joined: 19/09/2008 18:31:35
Messages: 19
Offline

Thanks Jim.

I know this is a kind of abuse with RSF, but I don't really see any other outs. I'm writing a simple service that pulls a particular public announcement channel from our Sakai deployment. The message body is stored as markup, so I don't see any other way to pull it unless I use something other than RSF.

Best,

Branden
antranig
Request-scope Wrangler

Joined: 03/04/2006 13:29:55
Messages: 643
Offline

Hi there Branden, yes, I think this is a case for which UIVerbatim is just fine.
 
Forum Index -> RSF Help and Problems
Message Quick Reply
Go to:   
Powered by JForum 2.1.6 © JForum Team