Hi,

I tried to use the named bean feature to transport a bean between a list 
and a detail dialog.

I have built the list as follows:

...

        }           
        for (Application elem : applications) {            
            template.setBean(elem);  
            setExitQuery(template,"ApplicationEdit");
            template.appendBlock("rows", "row");
        }
        
        print(template);


the template looks like:

...

                <tbody>
                    <r:v name="rows"></r:v>
                    <r:b name="row">
                        <tr class="${v rowClass/}"/>
                        <td align="right"><r:v name="id"/></td>
                        <td align="rigth"><r:v name="path"/></td>
                        <td align="rigth"><r:v name="strip"/></td>
                        <td><a href="${v EXIT:QUERY:ApplicationEdit/}"><img 
src="images/edit.png" title="edit application data" alt="edit"/></a>
                            <a href="${v EXIT:QUERY:CustomerActivate/}"><img 
src="images/delete.png" title="delete application" alt="delete"/></a>
                        </td>
                    </r:b>                                         
                </tbody> 



the relevant part of main.xml:
...

            <element id="Applications"
                     
implementation="de.sourcepark.ms2.rife.application.ApplicationElement"
                     url="/applications">
                <outbean name="application" prefix="pre_"
                         
classname="de.sourcepark.ms2.rife.application.CBeanApplication"/>
                <autolink srcexit="ApplicationNew"/>
                <autolink srcexit="ApplicationEdit"/>
            </element>
            
            <element id="ApplicationEdit"
                     
implementation="de.sourcepark.ms2.rife.application.ApplicationEditElement"
                     url="/applicationedit">
                <inbean name="application" prefix="pre_"
                         
classname="de.sourcepark.ms2.rife.application.CBeanApplication"/>
                <autolink srcexit="Applications"/>
            </element>


I try to access the transferred bean with:  
getNamedInputBean("application");

I get an instance of the correct class but ist is empty, while the data 
displayed in the list is ok.

Is it possible to make ist work ? and where is my fault ?

Thanks in advance.

Ciao
    Matthias


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"rife-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to