gigaZhang / struts2-jquery

Automatically exported from code.google.com/p/struts2-jquery
0 stars 0 forks source link

Freemarker error when optional id attribute is missing in <sj:tab /> tag #964

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The plugin not seems to be compatible with Struts 2.3.12.

My first application page breaks with the tab Component (for local one, ajax is 
OK).

Can you please also upgrate to the same version of velocity of Struts 2.

Original issue reported on code.google.com by jflefeb...@sopragroup.com on 11 Apr 2013 at 3:54

GoogleCodeExporter commented 9 years ago
avr. 11, 2013 5:59:35 PM freemarker.log.JDK14LoggerFactory$JDK14Logger error
SEVERE: Template processing error: "Expression parameters.id is undefined on 
line 21, column 29 in template/jquery/tab.ftl."

Expression parameters.id is undefined on line 21, column 29 in 
template/jquery/tab.ftl.
The problematic instruction:
----------
==> ${parameters.id?string?replace('.', '_')} [on line 21, column 27 in 
template/jquery/tab.ftl]

Original comment by jflefeb...@sopragroup.com on 11 Apr 2013 at 4:15

GoogleCodeExporter commented 9 years ago
Can you please give a small code example? Does it work when you specify an id 
for your Tab? Which Struts2 jQuery Version do you use?

Original comment by johgep on 25 Apr 2013 at 7:07

GoogleCodeExporter commented 9 years ago
When you give the sj:tab tag an id, it should work. Like in other tags I added 
an random id when the id attribute is missing now. 

https://code.google.com/p/struts2-jquery/source/detail?r=1816

Original comment by johgep on 25 Apr 2013 at 7:17

GoogleCodeExporter commented 9 years ago
Summary changed.

Original comment by johgep on 25 Apr 2013 at 7:18

GoogleCodeExporter commented 9 years ago

Original comment by johgep on 2 Jun 2013 at 1:02