The following is only an idea and it might not work. Suppose your Block is called myBlock.
Step 1) Modify org.apache.tapestry.AbstractMarkupWriter if necessary (or implement your own IMarkupWriter) so that you can get your hands on the output stream inside it. Step 2) I think myBlock.renderBody(AbstractMarkupWriter, IRequestCycle) writes the myBlock's body to the output stream in AbstractMarkupWriter. If that is the case, then you are in business. The java class associated with the RenderBlock component might be of interest to you. Shing --- IT Service Pahne <[EMAIL PROTECTED]> wrote: > > I need to obtain the (rendered) content of a block > as java.lang.String. > > That's because I'd like to use the Tooltip > component (from Tassel), and > that has a java.lang.String parameter toolTip > > I try to use a third party component (Tooltip from > Tassel) in my > application. > > One of the required parameters is tooltipContent > (java.lang.String), but > unfortunatly my available tooltip content is inside > a block. This block > contains some components as well, so I don't know, > how to get that as a > String. > > is there some way to get the whole rendered content > of a block as a > String via ognl? something like > <span jwcid=... > tooltipContent="ognl:someBlock.content"/> > > or another way to get the content? > > > Andy > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > Home page : http://uk.geocities.com/matmsh/index.html Send instant messages to your online friends http://uk.messenger.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
