[richfaces-issues] [JBoss JIRA] Commented: (RF-949) can't use parameters using menu server mode

Mireille Moreira (JIRA) jira-events at lists.jboss.org
Fri Jun 13 14:29:42 EDT 2008


    [ http://jira.jboss.com/jira/browse/RF-949?page=comments#action_12417148 ] 
            
Mireille Moreira commented on RF-949:
-------------------------------------

I still got this problem using dynamic menu item (backing bean):

Code:

...
HtmlMenuItem menuItem = new HtmlMenuItem();
UIParameter parameter = new UIParameter();
parameter.setName("id");
parameter.setValue("test");
menuItem.getChildren().add(parameter);
...
	



At Firefox it works fine. However, it doesn't work at IE.

Code:

String out = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("id");
System.out.println(out);
	



Console using Firefox:

test

Console using IE:

null

> can't use parameters using menu server mode
> -------------------------------------------
>
>                 Key: RF-949
>                 URL: http://jira.jboss.com/jira/browse/RF-949
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.1.0
>            Reporter: Ilya Shaikovsky
>         Assigned To: Aleksej Yanul
>             Fix For: 3.2.0, 3.1.1
>
>
> 		<rich:menuItem value="item" action="#{capitalsBean.action}" submitMode="server" reRender="test">
> 			<f:param name="test" value="test" />
> 				
> 		</rich:menuItem>
> 	public String action() {
> 		System.out.println("Action fired");
> 		String sid=FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("test");
> 		System.out.println(sid);
> 		
> 		return null;
> 	}
> In ajax mode I can see in console: 
> Action fired
> test
> In server mode - 
> Action fired
> null

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list