This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
hi I use this code: ExternalContex contex = FacesContex.getCurrentInstance().getExternalContext(); HttpServletRequest request = (HttpServletRequest)context.getRequest();
and then : String title = request.getParameter("title");
but title is null.
Maybe I must use another method of getCurrentInstance(). please help me!
Josh Juneau
Ranch Hand
Joined: Jun 16, 2004
Posts: 86
posted
0
Try to request the parameter map instead of references to the HTTP session. Look at this topic below. It pertains to a commandLink, but it should also work for a commandButton. I hope this solves your issue...good luck!
Just another way of doing this using a4j:
----------xhtml code------------------------
<a4j:form>
<a4j:commandButton action="#{TestPage.testMethod}" value="Submit">
<f:param name="title" value="TestValue" />
</a4j:commandButton>
</a4j:form>
Thanks & Regards,<br />T.Srinivasan,<br />SCWCD 1.4(89%),SCJP 5.0(75%)<br />"That service is the noblest which is rendered for its own sake." - Mahatma Gandhi
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.