Hi Maria,

you could try to generate the model if you want. In the new Form method you can also pass a long a source for the form model.

For instance cocoon://myform_model.xml, which you can map from the sitemap and let that pipeline generate your model.

That should solve your problem I guess?

Regards,

Jeroen

Maria Grigorieva wrote:
Hello )
I want to use dynamic path. For example, I have parameter with the dynamic path in sitemap or in flowscript. So, I have to pass it to tree-model file.. But using this function (from samples): function do_fileExplorer() {
    var form = new Form("file_explorer_model.xml");
    form.showForm("file_explorer-display-pipeline.jx");
    cocoon.sendPage("xmlresult-display-pipeline.jx",
        {title: "Tree binding is not yet done", document: null}
    );
}
I can't use actions here to pass the param... or transforms.... Because "file_explorer_model.xml" doesn't cross the sitemap. I think the only way - is to use directory generator to create my tree (without tree widget). 3 сентября 2009 г. 12:19 пользователь Jeroen Reijn <j.re...@onehippo.com <mailto:j.re...@onehippo.com>> написал:

    Maria,

    that's true. Where do you want to generate your tree model from?

    Regads,

    Jeroen

    Maria Grigorieva wrote:

        Cocoon samples - is the first source I've watched.
         But there in tree-model only real path... for exapmle
        <fd:tree-model type="source" src="context://samples">

         2009/9/3 Jeroen Reijn <j.re...@onehippo.com
        <mailto:j.re...@onehippo.com> <mailto:j.re...@onehippo.com
        <mailto:j.re...@onehippo.com>>>


           Hi Maria,

           you can find some examples in the cocoon samples section.

           See [1] for more information.

           Regards,

           Jeroen

           [1]
http://svn.apache.org/repos/asf/cocoon/branches/BRANCH_2_1_X/src/blocks/forms/samples/forms/sampletree_model.xml



           Maria Grigorieva wrote:

               I need smth like this:

               <fd:tree id="directories" root-visible="true"
        selection="single">

                    <fd:tree-model type="source" src="...dynamic URL...">


               Maria Grigorieva wrote:

                   Hello!

                   I need to use dynamic src attribute in tree-model
        element of
                   tree widget
                   in CForms!!!

                   In user-docs I've read about traversable sources
        [todo: link
                   to some page
                   with info about sources].

                   How does it works? Please, help )



---------------------------------------------------------------------
           To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
        <mailto:users-unsubscr...@cocoon.apache.org>
           <mailto:users-unsubscr...@cocoon.apache.org
        <mailto:users-unsubscr...@cocoon.apache.org>>

           For additional commands, e-mail: users-h...@cocoon.apache.org
        <mailto:users-h...@cocoon.apache.org>
           <mailto:users-h...@cocoon.apache.org
        <mailto:users-h...@cocoon.apache.org>>




-- Григорьева Мария




--
Григорьева Мария

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

Reply via email to