Re: [Spacewalk-devel] Couple of questions

2009-01-05 Thread Partha Aji



Coe, Colin C. (Unix Engineer) wrote:

Hi Partha,

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

Basically I  looked at the ConfigContent.java and saw a 
getContentsString method. The jsp el expressions want beanified names.. 
so in the jsp you'd strip out the 'get'..



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'?

Just curious what is special about this editor... Your problem could be 
that the dyna form may not be working right as in the contents textarea 
may not be  getting translated correctly  ...  try

textarea name=contents rows=20 cols=80 id=contents...
instead of
textarea property=contents 



Thanks again.

CC


From: spacewalk-devel-boun...@redhat.com [spacewalk-devel-boun...@redhat.com] 
On Behalf Of Partha Aji [p...@redhat.com]
Sent: Monday, 5 January 2009 7:07 PM
To: spacewalk-devel@redhat.com
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}/textareabr /

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

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
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel



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


Re: [Spacewalk-devel] Couple of questions

2009-01-05 Thread Partha Aji

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}/textareabr /

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


RE: [Spacewalk-devel] Couple of questions

2009-01-05 Thread Coe, Colin C. (Unix Engineer)
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: spacewalk-devel-boun...@redhat.com [spacewalk-devel-boun...@redhat.com] 
On Behalf Of Partha Aji [p...@redhat.com]
Sent: Monday, 5 January 2009 7:07 PM
To: spacewalk-devel@redhat.com
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}/textareabr /

 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

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
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel