Announcement Announcement Module
Collapse
No announcement yet.
Problem with null value on bind Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with null value on bind

    Ok - so lets say, as example, I have the following data & relationship:

    Sale_Opportunity
    [...]
    LeadEntered_EmpId;
    SaleMade_EmpId;
    [...]

    Employee
    EmpId
    Name
    [...]

    In the background I am using Hibernate and have a many-to-one
    to Employee for each of the EmpId's in Sale_Opportunity.

    So in the form, I want to bind and refer to the EmployeeName.

    Problem is - if the Employee has not yet been associated ( as in a new record ) and is not required to be on SaveOrUpdate, then the jsp
    will complain when bound.

    QUESTION:
    Is there a way to check for null prior to binding something like:
    SaleOpp.EmployeeByLeadEnteredId.Name

    OR should I NOT be binding.

    Any ideas - please let me know.

    Thanks

    ~Ed
Working...
X