cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guido Schreuder <g.schreu...@xs4all.nl>
Subject Re: recursive bean-based tree view in CForms
Date Fri, 26 Nov 2004 01:05:02 GMT
Thank you very much for your example Stavros, it works like a charm and 
I will definitely
look into your code in more detail. The only thing is, i really don't 
want to write the javascript
to get all the binding etc. done. I want to have this handled by the 
CForms binding. Don't get me
wrong here, i don't mind the javascript, but i'm trying to get all this 
CForms template/forms/binding
stuff down. In the end, when  all off this works out, i want to be able 
to do the following in my
javascript;

function domainTree() {
    var bean = myApp().readRootDomain();
    var form = new Form("forms/domaintree.xml");
    form.createBinding("forms/domaintree_binding.xml");
    form.load(bean);
    form.showForm("domaintree-display-pipeline.jx");
    form.save(bean);
    myApp().updateDomain(bean);
    cocoon.sendPage("xmlresult-display-pipeline.jx", {title: "Domain 
list", domain bean}  );
}

and have my domain hierarchy changes, such as reparenting, inserts, 
deletes, updates, done
by CForms, the underlying beans and Hibernate.

I guess i have a long way to go before i'm completely to grips with 
CForms, but i hope it'll
be worth it when i look back :P

Guido Schreuder



gounis@osmosis.gr wrote:

>i have something similar in bugzilla waiting to be a cform sample (maybe)
>
>you can get attachments from here
>
>http://issues.eu.apache.org/bugzilla/show_bug.cgi?id=31985
>
>-- stavros
>
>
>On Thu, 25 Nov 2004, Guido Schreuder wrote:
>
>  
>
>>Hi,
>>
>>I have a hibernate bean that has a recursive reference to it self
>>and want to build a form much like the "Tree Task" demo and have
>>tried to midify that example.
>>
>>I've been struggling to get this working for too long now, so can
>>anybody please give me some clues as to how to do this? Is this
>>even possible?
>>
>>Guido Schreuder
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>
>  
>


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


Mime
View raw message