cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robby Pelssers" <>
Subject RE: Spring Bean Demo and RCL operational?
Date Wed, 06 Oct 2010 07:31:09 GMT
Hi Will,

I once again checked out the sample block..

I followed the instructions from my blog
and started the default sample block.  

I did test the RCL doing steps as described below:
* I fixed the   <spring>#{message}</spring> in spring-bean.jx.xml and refreshed
the page. --> message was shown ok now.
* I modified into
public class MyBean {

    private String message;
    private String name;

    public void setMessage(String message) {
        this.message = message;

    public String getMessage() {
        return this.message;
    public void setName(String name) { = name;
    public String getName() {

* I modified spring-bean.js into:

function demo() {
    var demoBean = cocoon.getComponent("demo");
    demoBean.setName("Robby Pelssers")
            "message" : demoBean.message,

I modified spring-bean.jx.xml into:


I refreshed the page in the browser and my output was correct:

<spring>This is a message coming from a Spring bean.</spring>
<name>Robby Pelssers</name>

My test setup is using 
-SpringSource Tool Suite 2.3.3.M1
-Windows XP

Kind regards,
Robby Pelssers

-----Oorspronkelijk bericht-----
Van: Will Heger []
Verzonden: wo 6-10-2010 8:41
Onderwerp: Spring Bean Demo and RCL operational?
Hi Robby,

Did you happen to test java RCL in your archetype block?  That's really my
pain point right now, I used to be able to make changes in .java files and
it get automatic reloads, but no longer.

Also! I forgot to thank you about 'setSelectionList' I ended up doing
something slightly different and wanted to post my particular solution, but
I got held up on something else.  Maybe I'll try to dig it up.  But thanks
for the pointer, it was helpful!

Best regards,

On Mon, Oct 4, 2010 at 5:09 PM, Will Heger <> wrote:

> Thanks for the assistance.
> I'm actually not that concerned about the Spring Bean Demo, I just posted
> it as a symptom.
> Java class reloading is very important to me, I find it really tough to
> work when I need to start and restart jetty, even when eclipse is checking
> my compiles.
> This hasn't been a problem in the past.
> In any case, I invite you to run:
> mvn archetype:generate -DarchetypeCatalog=
> select 2, set a group/artifact and see if the bean is also broken for you
> "out of the box."
> I crossposted to dev once I found that my colleague had the same problem.
> Best regards,
> -Will
> On Mon, Oct 4, 2010 at 1:36 PM, Will Heger <> wrote:
>> I tried this on a couple of other machines, windows etc. same problem.
>> On Mon, Oct 4, 2010 at 4:51 AM, Will Heger <> wrote:
>>> Hi,
>>> After creating a fresh cocoon from the archetype:
>>> mvn archetype:generate -DarchetypeCatalog=
>>> Using option 2, the block with a sample, I have two problems:
>>> * The Spring Demo Bean does not produces '#message' instead of the bean
>>> output.
>>> * RCL will not recompile after altering java files
>>> Is anyone experiencing a similar issue?
>>> Java = sun/oracle 1.6.0_21
>>> Ubuntu 10.04
>>> Thanks,
>>> -Will

View raw message