Hi,

I am using Trinidad 1.0.8 with my faces 1.1.5. when I am trying to pass the
parameters to command link I am getting NullPointer Exceptions. I guss it
the problem with f:param as it is not evaluating expression under
tr:commnadLink. 

Sample code: 
<tr:commandLink text="#{menu.label}" id="leftMenuLevel1"
actionListener="#{pageManager.onMenuClick}">
    <f:param name="idparam" value="#{menu.id}" />
    <f:param name="level" value="#{menu.level}" />
    <f:param name="MENU_POINTER" value="LEFT_MENU" />                   
</tr:commandLink>


public final String getParameterValue(String key) {
(HttpServletRequest)
request=(HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();
String[] parameterValues  = (String[])request.getParameterMap().get(key);
return (getParameterValues(key) != null ? getParameterValues(key)[0] :
null);
}


Any work arrounds or suggestions?


Thanks,
Bhushan


-- 
View this message in context: 
http://www.nabble.com/%3Cf%3Aparam-is-not-working-under-%3Ctr%3AcommandLink-in-Trinidad-1.0.8-%28JSF1.1%29-tp17816107p17816107.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to