Hi,
we would like to use the EL enhancement which would allow us to send a Enum
param back. allLanguagesManager is an arraylist containing all the enums:
<t:dataList value="#{allLanguagesManager}" var="currentLanguage"
| rendered="#{not empty allLanguagesManager}" id="dt1">
| <h:column id="col">
| <li>
| <s:link
action="#{userEnvironment.setLanguage(currentLanguage)}" >
| <h:outputText id="lang"
value="#{currentLanguage}"
|
converter="languageconverter" />
| </s:link>
| </li>
|
| </h:column>
| </t:dataList>
userEnvironment is a POJO with a public method:
| public void setLanguage(LanguageEnum language) {
|
| if (null == language) logger.info("oops language is null");
| logger.info("language class is of type" +
language.getClass().toString());
| logger.info("setting the language in userEnvironment");
|
| .
| .
|
For some reason the language param is null when the method gets invoked by
Seam. If I change things around to send a literal string (and changing the pojo
method) the literal is passed on to the method.
Any suggestions ?
Thanks
L
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982603#3982603
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982603
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user