I'm just starting my journey into JSF and like what I see with the Seam 
additions so far.  In our application we have a fairly rich data model.  In the 
GUI, the user is allowed to assign/modify relationships fairly easily.  For 
example, we have an order object:

pulic class Order{
    private Person billToPerson;
    ...snip other properties...

  public Person getBillToPerson(){ return billToPerson;}
  public void setBillToPerson(Person person){ this.billToPerson = person;}

}

A typical use case is for an order entry user to be taking an order and ask the 
user for their account number (which is there person id).

When the user is creating/editing an OrderEdit.jsp, they can assign a value to 
a field on the jsp called billToPerson.id.  Our current Struts code gets the 
value from the ActionForm, loads the object from the database (error handling 
if the id is not valid) and then assigns the loaded Person to the 
Order.billToPerson property.

There is obviously a lot of glue code here (we have written extension for 
Struts that help).  As we move to JSF (possible using Seam), we are looking to 
reduce the glue code as much as we can.

I was wondering if/how Seam might help with assigning/changing relationships on 
objects (particularly when the user can enter an abitrary ID).  Or what others 
do in this type of situation.

Thanks in advance for any comments,
Chris....

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3911823#3911823

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3911823


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to