facebook

Getting back data

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #303147 Reply

    Douglas M Hurst
    Participant

    I wish I could supply screen shots to other uses for this.

    What I’m trying to do is get data back from from a List<Object> used to populate a .jsp
    using…

    <c:forEach var=”allVar” items=”#{uwrChecklistsBean.checklistElementsList}”>
    <h:panelGrid border=”1″ columns=”3″>
    <h:inputText id=”checklistNameId” size=”10″ maxlength=”10″ value=”#{allVar.checklistName}” />
    <h:inputText id=”checklistDueDateId” size=”10″ maxlength=”10″ value=”#{allVar.checklistDueDate}” />
    <h:inputText id=”checklistCompletedDateId” size=”10″ maxlength=”10″ value=”#{allVar.checklistCompletedDate}” />
    </h:panelGrid>
    </c:forEach>

    I use a class to populate the elements in the forEach. It’s pretty simple with 3 String items.

    In my backing bean, I have…

    private List<ChecklistElements> checklistElementsList;

    my (simplified) getter for populating this list is as follows:

    public List<ChecklistElements> getChecklistElementsList() {
    ArrayList<ChecklistElements> al = new ArrayList<ChecklistElements>();
    .
    .
    .
    return al;
    }

    When I submit the form back to the backing bean, checklistElementsList is null. Since I populated it with the getter (getChecklistElementsList()), and it displays on the screen, I can’t understand why, when I get back to the backing bean, checklistElementsList is null.

    #303170 Reply

    support-joy
    Member

    douglasmhurst,

    Can you zip your application and send a mail to support@genuitec.com with subject ATTN:Joy and refer to this link, we will investigate this internally. Also adding the link (of post) will ensure quick tracing.
    Include below mentioned in your email –
    1. Your installation details, you can get it from MyEclipse > Installation Summary > Installation Detail.
    2. Attach screenshots in support of your problem.
    3. Attach error log file, it is located at [your workspace dir]/.metadata/.log. Since this contain a lot of data, I would recommend you to open this file, use [Ctrl + A], [Delete], next reproduce your issue. This will ensure only your current issue gets logged in.
    4. Do you see any errors in your problems window? You can get it from Window > Show/View > Problems. If yes, do copy and paste the error details.

    Have you tried debugging? Have you taken a look at the error log file and tried to find the root cause?

    #303185 Reply

    Douglas M Hurst
    Participant

    There is no error log. The…

    private List<ChecklistElements> checklistElementsList;

    … is simply null when I click a commandButton and come back to the backing bean. I’ll send a simple project that displays the behavior. If you put a break point in the commandButton method, you’ll see what I’m talking about.
    I don’t even know if this behavior is an error, but it doesn’t make sense to me.

    #303189 Reply

    Douglas M Hurst
    Participant

    I just submitted the project and a document explaining the problem in more detail.

    #303206 Reply

    support-joy
    Member

    I have recieved your project. I will investigate and reply to the same mail thread.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Getting back data

You must be logged in to post in the forum log in