Hi Partha,

Many thanks for the tip but please, is this a Java'ism or did I miss this in 
the code?

Now I get the actual contents of existing files!  Yay!  Problem now is any 
updates/changes to existing files are not saved and any new files created via 
Add Files -> Create File are empty.  What do I need to do to manually populate 
the textarea 'contents'?

Thanks again.

CC

________________________________________
From: [email protected] [[email protected]] 
On Behalf Of Partha Aji [[email protected]]
Sent: Monday, 5 January 2009 7:07 PM
To: [email protected]
Subject: Re: [Spacewalk-devel] Couple of questions

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
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-devel

NOTICE: This email and any attachments are confidential. 
They may contain legally privileged information or 
copyright material. You must not read, copy, use or 
disclose them without authorisation. If you are not an 
intended recipient, please contact us at once by return 
email and then delete both messages and all attachments.


_______________________________________________
Spacewalk-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to