- This topic has 4 replies, 2 voices, and was last updated 15 years, 1 month ago by support-joy.
-
AuthorPosts
-
Douglas M HurstParticipantI 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.
support-joyMemberdouglasmhurst,
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?
Douglas M HurstParticipantThere 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.
Douglas M HurstParticipantI just submitted the project and a document explaining the problem in more detail.
support-joyMemberI have recieved your project. I will investigate and reply to the same mail thread.
-
AuthorPosts