Hey Colin,

Coe, Colin C. (Unix Engineer) wrote:
Hi all

First up, I'm working on a patch to add a 'nicer' editor to replace textareas in specific places (Kickstart pre/post scripts and config file creatation and editing). The problem I'm having is when I change
<html:textarea property="contents" rows="20" cols="80" /><br />

to

<textarea property="contents" rows="20" cols="80" 
id="contents">${revision.configContent}</textarea><br />

in 
java/code/webapp/WEB-INF/pages/common/fragments/configuration/channel/create.jspf,
 I get the following displayed in the textarea and the newly created file is 
empty.

com.redhat.rhn.domain.config.configcont...@21f3ee79[id=6,fileSize=0,md5sum=d41d8cd98f00b204e9800998ecf8427e,isBinary=false,contentsBlob=<null>,created=2009-01-05
 08:31:30.0,modified=2009-01-05 08:31:30.0]

I realise that ${revision.configContent} is giving me the complete object, how 
do I just what is contained in 'contentsBlob'?  i.e. the file data rather than 
the meta data.  I've tried ${revision.configContent.contentsBlob} and 
${revision.contentsBlob}, both give me tomcat errors.




Can 't you use ${revision.configContent.contentsString} ??

Partha

_______________________________________________
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to