Hi Will,

I once again checked out the sample block..

I followed the instructions from my blog 
http://robbypelssers.blogspot.com/2010/05/quick-start-apache-cocoon.html
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 MyBean.java 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) {
        this.name = name;
    }
    
    public String getName() {
        return this.name;
    }
}
--------------------------------------------

* I modified spring-bean.js into:

function demo() {
    var demoBean = cocoon.getComponent("demo");
    demoBean.setName("Robby Pelssers")
    
    cocoon.sendPage("screens/spring-bean",
        {
            "message" : demoBean.message,
            "name": demoBean.name
        }
    );
}


I modified spring-bean.jx.xml into:

<demo>
  <module>com.nxp.spider2:prototype</module>
  <spring>#{message}</spring>
  <name>#{name}</name>
</demo>


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

<demo>
<module>com.nxp.spider2:prototype</module>
<spring>This is a message coming from a Spring bean.</spring>
<name>Robby Pelssers</name>
</demo>

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

Kind regards,
Robby Pelssers





-----Oorspronkelijk bericht-----
Van: Will Heger [mailto:will.he...@gmail.com]
Verzonden: wo 6-10-2010 8:41
Aan: users@cocoon.apache.org
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,
-Will

On Mon, Oct 4, 2010 at 5:09 PM, Will Heger <will.he...@gmail.com> 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=http://cocoon.apache.org
> 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 <will.he...@gmail.com> 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 <will.he...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> After creating a fresh cocoon from the archetype:
>>> mvn archetype:generate -DarchetypeCatalog=http://cocoon.apache.org
>>>
>>> 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
>>>
>>>
>>
>

<<winmail.dat>>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org

Reply via email to