struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hisameer <cool_sameer_fo...@yahoo.com>
Subject Re: AJAX issues in struts 2.1.6
Date Wed, 05 Aug 2009 20:09:21 GMT

Hello everyone!

I am having the same problem with Struts2.1.6. 

The jars being used are:
struts2-core-2.1.6.jar
struts2-dojo-plugin-2.1.6.jar

Here is my jsp page: 

<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<html>
<head>
<sx:head />
<link href="<s:url value="/jctaylor/css/tab.css"/>" rel="stylesheet"
	type="text/css" />
</head>
<body>
<sx:tabbedpanel id="tabContainer">
	<sx:div label="localtab"> tab1</sx:div>
	<sx:div label="Remote Tab 1">
       Remote Tab 1
   </sx:div>
	<sx:div label="Remote Tab 2">
       Remote Tab 2
   </sx:div>
</sx:tabbedpanel>
</body>
</html>

The errors:
15:05:52,799 ERROR [runtime] 
Expression parameters.pushId is undefined on line 24, column 6 in
template/ajax/div-close.ftl.
The problematic instruction:
----------
==> if parameters.pushId [on line 24, column 1 in
template/ajax/div-close.ftl]
----------

Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: Expression parameters.pushId is
undefined on line 24, column 6 in template/ajax/div-close.ftl.
	at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
	at freemarker.core.Expression.isTrue(Expression.java:145)
	at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:77)
	at freemarker.core.Environment.visit(Environment.java:208)
	at freemarker.core.MixedContent.accept(MixedContent.java:92)
	at freemarker.core.Environment.visit(Environment.java:208)
	at freemarker.core.Environment.process(Environment.java:188)

What is wrong here?Please post your suggestions!




rajeevP wrote:
> 
> Thanks Dave, i have added one property preload=false  in sx:div  , that
> stops the automatic calling of the url. 
> 
> Thanks very ...........
> 
> Rajeev
> 

-- 
View this message in context: http://www.nabble.com/AJAX-issues-in-struts-2.1.6-tp23584424p24835310.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message