Named beans problem
|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Named beans problemHi, 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 rife-users@... To unsubscribe from this group, send email to rife-users-unsubscribe@... For more options, visit this group at http://groups.google.com/group/rife-users?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Named beans problemHi all, already found the forgotten setNamedOutputBean call. Ciao Matthias Matthias Barmeier schrieb: > 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 rife-users@... To unsubscribe from this group, send email to rife-users-unsubscribe@... For more options, visit this group at http://groups.google.com/group/rife-users?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Named beans problemNice, glad you found it! On 07 May 2008, at 08:19, Matthias Barmeier wrote: > > Hi all, > > already found the forgotten setNamedOutputBean call. > > Ciao > Matthias > > Matthias Barmeier schrieb: >> 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 >> >> >>> >> > > > > -- Geert Bevin Terracotta - http://www.terracotta.org Uwyn "Use what you need" - http://uwyn.com RIFE Java application framework - http://rifers.org Music and words - http://gbevin.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "rife-users" group. To post to this group, send email to rife-users@... To unsubscribe from this group, send email to rife-users-unsubscribe@... For more options, visit this group at http://groups.google.com/group/rife-users?hl=en -~----------~----~----~----~------~----~------~--~--- |
| Free Forum Powered by Nabble | Forum Help |
