mapping a bean instance to template

View: New views
2 Messages — Rating Filter:   Alert me  

mapping a bean instance to template

by dk-17 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I want to use setBean() method to send all the fields in a bean but I
don't want to write the template with all these lines. Instead, is
there a mechanism to write the template like
<bean:packacename.SomeClass/> .

Thanks
--~--~---------~--~----~------------~-------~--~----~
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: mapping a bean instance to template

by Geert Bevin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi,

this is not possible. Some basic questions arise here though, how do  
you format each bean property?

One way this is handled, is through RIFE/Crud, which has an API that  
let's you do things like this. RIFE/Crud is being folded into RIFE  
itself for the next release, so this will be even easier. You can  
experiment with it and the samples (http://svn.rifers.org/rife/trunk/src/examples/tutorial/11_crud/src/ 
) if you download the latest snapshot.

Hope this helps,

Geert

On 30 Jun 2008, at 00:11, dk wrote:

>
> I want to use setBean() method to send all the fields in a bean but I
> don't want to write the template with all these lines. Instead, is
> there a mechanism to write the template like
> <bean:packacename.SomeClass/> .
>
> Thanks
> >

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

 
 
 
Google
rifers.org web