You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Gunter D'Hondt <gu...@sofico.be> on 2006/01/17 15:15:42 UTC

sorting of repeater rows

I've got a repeater Person with widget id and name and I'd like to sort 
the repeater rows on my form template in alphabetical order (by name); 
somebody any idea on where and how to do that?

Regards,
Gunter D'Hondt

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


Re: HowTo: Further process document object retrieved from flow

Posted by Joerg Heinicke <jo...@gmx.de>.
On 19.01.2006 09:36, Peter Neu wrote:
> In my flow I do some form binding with an xml document. The result of the
> form I save to an object of this type:
>  
> javax.xml.parsers.DocumentBuilderFactory.newInstance().newDocumentBuilder().
> newDocument()
> 
> I put the document in the flow context
> 
> cocoon.sendPage("result-pipeline", document: doc "};
> 
> Now I want do process the xml like this:
> 
> <map:match pattern="result-pipepline">
>        <map:generate type="file" src="{flow-attribute:doc}"/>
>        
>        <map:serialize type="xml"/>
>      </map:match>
> 
> How do I have to adjust the statement to further process the retrieved
> document? 

There is an XMLizable interface and an XModule source:
http://wiki.apache.org/cocoon/XModuleSource.

Jörg

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


HowTo: Further process document object retrieved from flow

Posted by Peter Neu <pe...@gmx.net>.
Hello,

I think my last post was not precise enough. :o/ 
In my flow I do some form binding with an xml document. The result of the
form I save to an object of this type:
 
javax.xml.parsers.DocumentBuilderFactory.newInstance().newDocumentBuilder().
newDocument()

I put the document in the flow context

cocoon.sendPage("result-pipeline", document: doc "};

Now I want do process the xml like this:

<map:match pattern="result-pipepline">
       <map:generate type="file" src="{flow-attribute:doc}"/>
       
       <map:serialize type="xml"/>
     </map:match>

How do I have to adjust the statement to further process the retrieved
document? 

Cheers,
Pete



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


Re: sorting of repeater rows

Posted by Gunter D'Hondt <gu...@sofico.be>.
nobody that has an idea to help me out here? 
where do I have to look for?

thnx in advance,
Gunter

 



Gunter D'Hondt <gu...@sofico.be> 
17/01/2006 15:15
Please respond to
users@cocoon.apache.org


To
users@cocoon.apache.org
cc

Subject
sorting of repeater rows






I've got a repeater Person with widget id and name and I'd like to sort 
the repeater rows on my form template in alphabetical order (by name); 
somebody any idea on where and how to do that?

Regards,
Gunter D'Hondt

---------------------------------------------------------------------
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