> Hi,
>
> I am relatively new to stripes, and am getting problems updating a
> fragment of a jsp page using Ajax/forwardResolution.
> I use stripes 1.4.3, and deploy in a standalone Oracle OC4J 10.3.1.3.
>
> When the main page first loads, the included fragment jsp works just
> fine, and shows all data I need.
> However, when I try to update the fragment using Ajax, which
> successfully calls reloadAuthors() action in my ActionBean (I can see
> logs),
> the Jsp fragment gets updated but shows only scalar fields of my
> object, and doesn't iterate through the collections (a List).
> Note that I can see the java List object reference printed, which
> means the list is populated (see "Author List Object Reference"
> bellow)
>
> I am wondering if this is a bug/limitation of stripes, or am I doing
> it the wrong way?
>
Regards,
Tayeb
ps.->
> result page ->
> ---
> Object ID: 1
> Author List Object Reference:
> [EMAIL PROTECTED] id=4 payeeList=[] rapPayee=Jens
> Korse rapPayeeType= id= ], [EMAIL PROTECTED] id=5
> payeeList=[] rapPayee=Oliver Zahle rapPayeeType= id= ]]
>
> (NO Iteration!)
> ---
>
> Code snippet.
>
> the Fragment JSP = Authors.jsp:
> ************************
> ...
> Object ID: : ${actionBean.currentObject.id}
> Author List Object Reference:
> ${actionBean.currentObject.brikAuthors}
> <c:forEach items="${actionBean.currentObject.brikAuthors}"
> var="aBrikAuthorDebug" varStatus="authorCounter">
> aBrikAuthor: ${aBrikAuthorDebug.id}
> </c:forEach>
> ...
>
>
> Main JSP:
> ********
> <%@ page contentType="text/html;charset=UTF-8" language="java" %>
> <%@ include file="/taglibs.jsp" %>
> ...
> <stripes:layout-render name="/layout/standard.jsp"
> title="Brikredigering">
> ...
> <stripes:layout-component name="contents">
> ...
> <div class="authorsBoxBrikEdit"
> id="authorsBoxBrikEdit">
> <%@ include file="/authors.jsp" %>
> </div>
> ...
> </stripes:form>
> </stripes:layout-component>
> </stripes:layout-render>
>
>
>
>
> ActionBean:
> *********
> public Resolution reloadAuthors() {
> ...
> return new ForwardResolution("/authors.jsp");
> }
>
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users