I'll give up!!!

My problems: I have to write an application in wich users, datas, etc are
Partner dependent ( Every POJO must to have a Partner connection ). 

Let's write a real example:
Partner POJO: 

public class Partner extends BaseObject implements Serializable {
    
    protected Long id;
    
    protected String code;
    protected String name;
    
    /**
     * @return Returns the id.
     * @hibernate.id column="id"
     *  generator-class="native" unsaved-value="null"
     */
    public Long getId() {
        return id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }

....and all setter getter

}


User ( from Appfuse ) is modified only with a new attribute Partner:

...

    private Partner partner ;
    
    /**
     * @struts.validator type="required"
     * @hibernate.many-to-one column="partner"
     */
    
    public Partner getPartner() {
        return partner;
    }
    
    public void setPartner(Partner partner) {
        this.partner= partner;
    }

...


And all other POJO-s like User.

There are root, admin and normal user. Root can manage all of users,
selecting the right Partner from a drop-drown list. I save the selected
Partner too.

I have problems by saving for example the modified User in the Form (
User.xhtml), while User.Partner is never filled out!!! How makes man this
not basic but not difficult thing???

I have generated all things with Appgen from POJOS, than modified managers,
daos to return datas depending on Partner parameter.

I can't test while in many cases when I click on a User to modify, nothing
is happend!! The UserForm is not loading...and only the PartnerChanged
function is called ( binded to drop-drown list )!!! This is very AGRY, I
don't know what happens in the background!!! How can I debug, catch what
happens????????

Please HELP!!!!!

Thanks

Bye bye
-- 
View this message in context: 
http://www.nabble.com/Developer-in-Trouble%3A-episode-1223-%3A-%28--How-to-make-relationships-in-AppFuse-tf2959058s2369.html#a8278035
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to