struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Newton (JIRA)" <j...@apache.org>
Subject [jira] Closed: (WW-2829) dojo is undefined error
Date Tue, 07 Oct 2008 21:41:36 GMT

     [ https://issues.apache.org/struts/browse/WW-2829?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dave Newton closed WW-2829.
---------------------------

    Resolution: Not A Problem

Please ask questions on the struts-user mailing list.

http://struts.apache.org/mail.html

If there is an actual bug in Struts this issue can be re-opened. Before posting there make
sure you are serving static content through Struts and are using the appropriate filter mapping.

> dojo is undefined error
> -----------------------
>
>                 Key: WW-2829
>                 URL: https://issues.apache.org/struts/browse/WW-2829
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Dojo Tags
>    Affects Versions: 2.0.11.1
>         Environment: windows,Jdk1.5,Ration Application Developer7, Web sphere application
server 6.1.0.2
>            Reporter: vennela
>            Priority: Blocker
>
> Hello,
> I am working on dependent drop downs using <s:autocompleter> tag. When i am executing
the code i am getting javascript error "dojo is undefined" error. when i enabled debugging,
it showing the error like following. Here is my jsp page with s:autocompleter tag
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <%@page language="java" contentType="text/html; charset=ISO-8859-1"
> 	pageEncoding="ISO-8859-1"%>
> <%@taglib uri="/struts-tags" prefix="s"%>
> <%@taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
> <html>
> <head>
> <link rel="stylesheet"
> 	href="${pageContext.request.contextPath}/theme/Master.css"
> 	type="text/css">
> <title>example</title>
> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
> <meta name="GENERATOR" content="Rational Application Developer">
> <s:head theme="ajax"/> 
> </head>
> <body>
> <s:form name="frmExam" namespace="/abc" theme="simple">
> 	<s:label value="ItemType:"></s:label>
> 	<s:url id="autoex" action="example" namespace="/abc"/>
> 	<form id="exam">
> 	<s:autocompleter theme="simple" 
> 				  name="ItemType"
>  				  headerKey="-1"
>  				  headerValue="--Please Select--"
>  				  keyName="temType"
>  				  list="upper"
>     />
>     </form>
>     <s:autocompleter theme="ajax" 
>     				 href="%{#autoex}"
>     				 autoComplete="false"
>     				 formId="exam"
>     				 listenTopics="/Changed"
>     				 forceValidOption="true"
>     				 id="ops"
>     				 headerKey="-1"
>     				 headerValue="--Please Select--"
>     				 list="List"
>     				 showDownArrow="true"
>     />
> </s:form>
> </body>
> </html>
> based on selected value in first dropdown second dropdowns needs to be populated.
> error i am getiing is  "dojo.hostenv.writeIncludes(); // not needed, but allows the Venkman
debugger to work with the includesError 404: SRVE0190E: File not found: /struts/simple/dojoRequire.js"
> Please help me in solving this. I am struck here. If i am able to make it work i can
implement in many pages in my application.
> Then i googled for examples and i got one example form struts2.org.
> when I am trying the example that have given in struts2.org. when i try to run that also
i got the same dojo undefined error.
> example code is here
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <%@page language="java" contentType="text/html; charset=ISO-8859-1"
> 	pageEncoding="ISO-8859-1"%>
> <%@taglib uri="/struts-tags" prefix="s"%>
> <html>
> <head>  
> <s:head theme="ajax" debug="true"/>  
> <script>  
>     function show_user_details(id) {   
>       document.frm_user.userid.value = id;   
>       dojo.event.topic.publish("show_detail");   
>     }   
>   </script> 
> <title>userlisting</title>
> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
> <meta name="GENERATOR" content="Rational Application Developer">
> </head>
> <body>
>  <s:form id="frm_user" name="frm_user" action="UserListingAction">  
>       <h1>User Listing</h1>  
>       <s:if test="userList.size > 0">  
>         <table border="1">  
>           <s:iterator value="userList">  
>             <tr>  
>               <td>  
>                 <s:a href="#" onclick="javascript:show_user_details('%{id}');return
false;"><s:property value="id" /></s:a>  
>               </td>  
>               <td>  
>                 <s:property value="name" />  
>               </td>  
>             </tr>  
>           </s:iterator>  
>         </table>  
>       </s:if>    
>       <s:hidden name="userid"/>  
>       <s:url id="d_url" action="UserDetailAction" />  
>       <s:div  id="user_details" href="%{d_url}" theme="ajax" listenTopics="show_detail"
formId="frm_user" >  
>       </s:div>  
>     </s:form>  
> </body>
> </html>
> Please help me in this. I am working on these example past 2 days. 
> appreciate you help. If i get example on this that would be very helpful to me.
> thanks,
> vg

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


Mime
View raw message