Table does not appear. Struts 2 + Spring + Tiles

63 views
Skip to first unread message

Sergio B.

unread,
Mar 15, 2012, 7:23:34 AM3/15/12
to JMesa, javier...@gmail.com
Hi there,

I am developing an web application using Jmesa 3.0.4, Struts 2.3.1.2,
Spring 3.1.1 (also tested with 2.5.6) and Tiles 2.0.6 among others.

In one of the Tiles I have the following links to script and css.
<script type="text/javascript" src="/gesubvenciones/
js/jquery-1.7.1.js"></script>
<!-- JMESA -->
<link rel="stylesheet" type="text/css" href="/gesubvenciones/css/
jmesa.css"/>
<script type="text/javascript" src="/gesubvenciones/js/
jquery.jmesa.js"/></script>
<script type="text/javascript" src="/gesubvenciones/js/jmesa.js"/></
script>

In JSP I have
<%@taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="/WEB-INF/tld/jmesa.tld" prefix="jmesa"%>
<s:form action="orders_save" validate="true">
<tr>
<td>
<jmesa:struts2TableModel items="${listaDatos}" id="miID"
var="bean">
<jmesa:htmlTable>
<jmesa:htmlRow>
<jmesa:htmlColumn property="id" />
<jmesa:htmlColumn property="codigo" title="ID" />
<jmesa:htmlColumn property="descripcion" title="Group" />
</jmesa:htmlRow>
</jmesa:htmlTable>
</jmesa:struts2TableModel></td>
</tr>
</s:form>

I am deploying the app in JBoss 5.1.

I have placed the jmesa files in the configuration by default, so I
haven't included a jmesa.properties files.

I got jmesa works in a Blank Struts app.

Any help will be greatly appreciated.

Many thanks in advance.
Sergio

Sergio B.

unread,
Mar 15, 2012, 7:27:29 AM3/15/12
to JMesa
Sorry. Just to add more information.

The Browser keeps trying to load the page but nothing appears

Jeff Johnston

unread,
Mar 15, 2012, 7:46:13 AM3/15/12
to jm...@googlegroups.com
Do you see any error messages in the logs? If you view the source of the page do you see anything in the form?

Just to test try changing to the regular TableModel tag.

change

<jmesa:struts2TableModel />

to

<jmesa:tableModel />


-Jeff


--
You received this message because you are subscribed to the Google Groups "JMesa" group.
To post to this group, send email to jm...@googlegroups.com.
To unsubscribe from this group, send email to jmesa+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jmesa?hl=en.


Sergio B.

unread,
Mar 15, 2012, 8:16:49 AM3/15/12
to JMesa
Thanks Jeff for your answer.

There weren't any error in the logs. Searching information I have seen
that I had missed the SLF4J libs.

I have added them and It works great!

Just a note about the link http://code.google.com/p/jmesa/wiki/SLF4J.
Instead of using log4j 1.2.8, the version 1.2.12 or newer is needed,
because the method org.apache.log4j.Logger.isTraceEnabled() is not
implemented in older versions.

Many thanks for your help.

Great api!!

On 15 mar, 12:46, Jeff Johnston <jeff.johnston...@gmail.com> wrote:
> Do you see any error messages in the logs? If you view the source of the
> page do you see anything in the form?
>
> Just to test try changing to the regular TableModel tag.
>
> change
>
> <jmesa:struts2TableModel />
>
> to
>
> <jmesa:tableModel />
>
> -Jeff
>

Jeff Johnston

unread,
Mar 15, 2012, 8:27:01 AM3/15/12
to jm...@googlegroups.com
Thanks for the heads up! The next release of JMesa should be out in the upcoming months...I also plan on updating all the dependencies at the same time.

-Jeff
Reply all
Reply to author
Forward
0 new messages