how to include bean message tag (Struts ) in jmesa!?

33 views
Skip to first unread message

manzat

unread,
Oct 31, 2012, 8:39:47 AM10/31/12
to jmesa...@googlegroups.com
Hello ,

to remedy the problem of internalization, I tried to do as follows. but the table jmesa does not recognize the tag struts

<jmesa:htmlColumn width="9%" property="inputMedia"           title="<bean:message key='listRemise.inputMedia'/>" 

 have you  an idea how to include bean message tag in jmesa!


thank you


Elías Manchón López

unread,
Oct 31, 2012, 8:55:44 AM10/31/12
to jmesa...@googlegroups.com
Hello Manzart,

I fixed the problem using defaultLocale.

2012/10/31 manzat <ema...@gmail.com>:

EL HOUCINE MANZAT

unread,
Oct 31, 2012, 10:34:59 AM10/31/12
to jmesa...@googlegroups.com
thank you for your answer!

can you explain to me what you did!?

I have to use defaultLocale where exactly


2012/10/31 Elías Manchón López <elias....@gmail.com>



--

352.bmp

Elías Manchón López

unread,
Oct 31, 2012, 11:27:30 AM10/31/12
to jmesa...@googlegroups.com
...
HttpServletRequestWebContext WebContext = new HttpServletRequestWebContext(request);
Locale sessionLocale = new Locale(this.getLangSession(request));
DefaultLocale defLocale = new DefaultLocale(sessionLocale);
defLocale.setNewDefaultLocale();

TableFacade tableFacade = createTableFacade(id, request);
tableFacade.setItems(items); // set the items
tableFacade.setExportTypes(response, CSV, JEXCEL); // set the exports allowed
tableFacade.setStateAttr("restore");
...

2012/10/31 EL HOUCINE MANZAT <ema...@gmail.com>
352.bmp

EL HOUCINE MANZAT

unread,
Oct 31, 2012, 11:49:04 AM10/31/12
to jmesa...@googlegroups.com
i use the tag not the API.

how i can to set the local of the webContext  tableFacade
            <jmesa:tableFacade
                    id="remiseList"
                    items="${remiseList}"
                       maxRows="200"
                    exportTypes="csv,jexcel"
                    stateAttr="restore"
                    var="remiseListBean"
                    autoFilterAndSort="true"
                    editable="false"
                    maxRowsIncrements="25,50,100,200"
                    filterMatcherMap="com.tag.TagFilterMatcherMap"
                    view="com.onfin.swap.view.ToolbarAtBottomView"
                   
                    >

            <jmesa:htmlTable >
                <jmesa:htmlRow >
                      <jmesa:htmlColumn width="9%" property="inputMedia"           titleKey="listRemise.inputMedia"
--

352.bmp
352.bmp

EL HOUCINE MANZAT

unread,
Oct 31, 2012, 12:07:44 PM10/31/12
to jmesa...@googlegroups.com
i don't have the classe DefaultLocale!?
--

352.bmp
352.bmp
Reply all
Reply to author
Forward
0 new messages