Re: Handling DataObjects

From: Joćo Paulo Vasconcellos (vasconcello..mail.com)
Date: Mon Sep 13 2004 - 18:12:47 EDT

  • Next message: Andrus Adamchik: "Re: Handling DataObjects"

    I am using this code right now to do this:

    ------------------

    <%
    for(int i = 0, total = listaEstadoCivil.size(); i < total; i++) {
    %>
       <option value="<%=DataObjectUtils.intPKForObject((EstadoCivil)listaEstadoCivil.get(i))%>">
       <%=((EstadoCivil)listaEstadoCivil.get(i)).getNome()%></option>
    <%
    }
    %>

    ------------------

    On Mon, 13 Sep 2004 19:01:33 -0300, Joćo Paulo Vasconcellos
    <vasconcello..mail.com> wrote:
    > Hello list, let's see if I can make a real question this time. :)
    >
    > I am writing an application which lets people changes their data. I
    > got a field named Marital Status and I need to show a list of the
    > possible status. All fine until there. The problem is, how do I
    > retrieve this info from the form? When the user changes their marital
    > status using the <select> provided, how can I know which status she
    > picked up whithout using the object's PK, as this is bad design?
    >
    > Just a bit lost in this.
    >
    > TIA,
    > --
    > Joćo Paulo Vasconcellos
    > ICQ: 123-953-864
    >

    -- 
    Joćo Paulo Vasconcellos
    ICQ: 123-953-864
    



    This archive was generated by hypermail 2.0.0 : Mon Sep 13 2004 - 18:12:48 EDT