You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by vi...@wipro.com on 2006/01/17 15:10:03 UTC

getting unique row-id in repeater widget

Hi,

  I'm using repeater widget, which is having the output widget,
  on click of the output widget,  I need to open a popup ..
 
  I need to pass unique repeater row-id to the popup (to the <a href>
link )?..
 
  Any one have an idea on this?
 
 
  My Definition file entry (xml file)
  ====================
  <fd:repeater id ="company-addresses" >
    <fd:widgets>
      <fd:field id="row-id">
        <fd:datatype base="string" />
       
      <fd:output id="list-name">
        <fd:datatype base="string" />
      </fd:output>
    </fd:widgets>
  <ft:repeater>

  My Template file entry (html file)
  ===================
  <ft:repeater-widget id="company-addresses">
    <tr>
      <td>
        <a href="address/..../<row-id>">
          <ft:widget id ="list-name">
        </a>
      </td>
    </tr>
  </ft:repeater-widget> 
 

Thanks, Vijay 
 




The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com

Re: getting unique row-id in repeater widget

Posted by Florian Leinberger <le...@seitenbau.com>.
 <vijayaraghavan.subramaniam <at> wipro.com> writes:
 


We are using this concept quite lot - Opening a Popup-Window to insert values
from a chooser into a file in a repeater-row. You can just use <ft:repeater-size
id="IDOFTHEREPEATER"/>

Hope this helps, Florian












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


sorting of repeater rows

Posted by Gunter D'Hondt <gu...@sofico.be>.
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