Maria,
iĺl try to keep the mailinglist in the loop, so everybody can benefit
from your answer.
For the path parameter, you could try to use the jx generator (mark the
type *newjx*).
<map:generate src="file_explorer_model.xml" type="newjx">
<map:parameter name="path" value="d:/md_dat"/>
</map:generate>
Then in your XML you can use (if I remember correctly):
${cocoon.parameters.path} to get the value.
Regards,
Jeroen
Maria Grigorieva wrote:
Sorry, my mistake. In sitemap forgot to check type="xml" in serialize.
So, the pipeline works fine!!! It's great ))) Thank you )))
function do_fileExplorer() {
var form = new Form("cocoon:/my_model.xml");
form.showForm("file_explorer-display-pipeline.jx");
cocoon.sendPage("xmlresult-display-pipeline.jx",
{title: "Tree binding is not yet done", document: null}
);
}
SITEMAP!!!
<map:match pattern="my_model.xml">
<map:generate src="file_explorer_model.xml">
<map:parameter name="path" value="d:/md_dat"/>
</map:generate>
<map:serialize type="xml"/>
</map:match>
form-model!!!
<?xml version="1.0"?>
<fd:form xmlns:fd="http://apache.org/cocoon/forms/1.0#definition">
<fd:widgets>
<fd:tree id="directories" root-visible="true" selection="single">
*_<fd:tree-model type="source" src="...my path parameter...">_*
........
How in this file I can get my "path" parameter???
3 сентября 2009 г. 13:30 пользователь Jeroen Reijn <[email protected]
<mailto:[email protected]>> написал:
Does the pipeline by itself work corretly from the browser?
Regards,
Jeroen
Maria Grigorieva wrote:
No,it doesn't work...
As I've said, I've got an Exception:
*Could not parse form definition.*
cocoon://tree/my_model.xml?pipelinehash=3302516536730216459 -
-1:-1 /[FormManager]/
3 сентября 2009 г. 13:12 пользователь Maria Grigorieva
<[email protected] <mailto:[email protected]>
<mailto:[email protected] <mailto:[email protected]>>> написал:
Hmmm.... I'll try )
Did you mean this?
var form = new Form("cocoon://my_form_model.xml");
I think it'll cause an exception... but I'll try )))
3 сентября 2009 г. 12:58 пользователь Jeroen Reijn
<[email protected] <mailto:[email protected]>
<mailto:[email protected] <mailto:[email protected]>>>
написал:
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
<[email protected] <mailto:[email protected]>
<mailto:[email protected] <mailto:[email protected]>>
<mailto:[email protected]
<mailto:[email protected]> <mailto:[email protected]
<mailto:[email protected]>>>>
написал:
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 <[email protected]
<mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>
<mailto:[email protected]
<mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>> <mailto:[email protected]
<mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>
<mailto:[email protected]
<mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>>>>
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:
[email protected]
<mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>
<mailto:[email protected]
<mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>>
<mailto:[email protected]
<mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>
<mailto:[email protected]
<mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>>>
For additional commands, e-mail:
[email protected]
<mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>
<mailto:[email protected]
<mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>>
<mailto:[email protected]
<mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>
<mailto:[email protected]
<mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>>>
-- Григорьева Мария
-- Григорьева Мария
-- Григорьева Мария
--
Григорьева Мария
--
Григорьева Мария
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]