[ 
https://issues.apache.org/struts/browse/WW-2771?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44572#action_44572
 ] 

Martin Gainty commented on WW-2771:
-----------------------------------

http://struts.apache.org/2.1.2/docs/form.html
says    HTML form target attribute

the documentation 
http://struts.apache.org/2.1.2/docs/client-side-validation.html

the other documentation
http://struts.apache.org/2.1.2/docs/ajax-theme.html
neither have examples on how to implement these ajax controls?

is there a example on how a response populates a div tag by struts-tags?
thanks
Martin

> target div tag does not generate any response
> ---------------------------------------------
>
>                 Key: WW-2771
>                 URL: https://issues.apache.org/struts/browse/WW-2771
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>         Environment: s: form doesnt with submit does not generate response 
> content to div tag
>            Reporter: Martin Gainty
>
> s:form doesnt generate correct results
> <%@ taglib uri="http://struts-menu.sf.net/tag"; prefix="menu" %>
> <%@ include file="/common/taglibs.jsp"%>
> <script text="javascript>function doit { return "display_this" } </script>
> <s:div id="traitDiv" cssstyle="width: 100%;" theme="ajax"> </s:div>
> <s:form id="form_TraitPage" action="'javascript:doit()'" namespace="/" 
> method="post">
>     <s:radio list="traits" listValue="getText(class.name)"  
> listKey="class.name" name="traitType">
>     </s:radio>
>     <s:submit id="submitSelectTraitPage" theme="ajax" targets="traitDiv">
>     </s:submit>
> </s:form>
> generates this
> <script text="javascript>function doit { return "display_this" } </script>
> <s:div id="traitDiv" cssstyle="width: 100%;" theme="ajax"> </s:div>
> <s:form id="form_TraitPage" method="post" namespace="/" 
> action="'javascript:doit()'">
> <s:radio name="traitType" listkey="class.name" 
> listvalue="getText(class.name)" list="traits"> </s:radio>
> <s:submit id="submitSelectTraitPage" targets="traitDiv" theme="ajax"> 
> </s:submit>
> </s:form>
> but the response does not display the response text in the div tag defined in 
> targets
> ?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to