Mail Archive Home | exoplatform List | September 2006 Index
| <-- Date Index --> | <-- Thread Index --> |
I should have added that it DOES WORK within the backing bean which is associated with a jsf-page but it DOES NOT WORK from any other bean.Example:page 1 contains a commandLink or commandButton with a parameter.page1backingbean contains the code segment and can actually access the parameter through the parameter map of the context.but page2backingbean can't access the parameter map.However, if a user clicks on a certain button of page 1, the return value of the action listener says "go to page 2". And page 2 is supposed to access the parameter associated with the button and use it for a query.I am not sure if I am doing something wrong but when I do this in a stand-alone web application, everything works. Only in exo it doesn't.Any idea?Thanksr.Hi everyone,When I use a code fragment common in JSF-web applications, all I ever get is "null" which makes me think that the context is not available in exo. Is that correct?<---snip--->String param = (String) FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("itemID");int itemID =new Integer(param).intValue();<---snap--->I use that to pass a simple parameter from one backing bean to another.In my application, each JSF page has its own backing bean.Like page1.jsp has a Page1BackingBean.java, page2.jsp has a Page2BackingBean.java and so forth.Page1 contains a list of items.When a user clicks on an item, Page2 should use the itemID, carry out a database lookup to fetch details on that itemID and display it.That's what I try to do with the above code sniplet. But it always returns "null". What do I do wrong?Thanksr.
All-new Yahoo! Mail - Fire up a more powerful email and get things done faster.--
You receive this message as a subscriber of the exoplatform@xxxxxxxxxxxxx mailing list.
To unsubscribe: mailto:exoplatform-unsubscribe@xxxxxxxxxxxxx
For general help: mailto:sympa@xxxxxxxxxxxxx?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Want to be your own boss? Learn how on Yahoo! Small Business.
--
You receive this message as a subscriber of the exoplatform@xxxxxxxxxxxxx mailing list.
To unsubscribe: mailto:exoplatform-unsubscribe@xxxxxxxxxxxxx
For general help: mailto: sympa@xxxxxxxxxxxxx?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
| <-- Date Index --> | <-- Thread Index --> |
Powered by MHonArc.
Copyright © 2006-2007, OW2 Consortium | contact | webmaster.