[Design of JBoss Portal] - Re: Issue with JSF <f:view> tag
by vaalati
Hi Stan,
I tried the following ways but could not succeed:
1)FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("vijay_form:ADM_USER_ID");
2) ((PortletRequest)request).getParameter("vijay_form:ADM_USER_ID");
3) request.getParameter("vijay_form:ADM_USER_ID");
4)FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("ADM_USER_ID");
I tried quickly going through the MyFaces link you sent previously. But I could not find (probably I missed a lot..to be read) any help where I could know how to retrieve the value.
But in your previous reply you were mentioning that my approach was not correct. Could you please explain and/or give more details into what should be my approach to retrieve the values.
I really appreciate your time on my issue. I am a beginner and I do not have much help from anyone who might know/worked with JSF before.
Thanks very much,
Vijay
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026792#4026792
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026792
19 years, 1 month
[Design of JBoss Portal] - Re: Issue with JSF <f:view> tag
by vaalati
Hi Stan,
Thanks for help. Actually I had figured that out the hard way just a while ago before I received your reply.
But now I ran into another issue. I wrote a JSF code in which I have a text-field (<h:inputText>) and I want to access the value entered in it in my portlet class which I wrote extending the MyFacesGenericPortlet. So how do I access it?s value? Usually in Servlets we can do this by using the request.getParameter(). Below is my code in which I have the text-field (<h:inputText>). Now how do I access it?s value in my portlet class?
-----------------------------------------------------------------
<%@ page language="java" session="true" %>
<%@ page import = "javax.portlet.PortletSession" %>
<%@ page language="java" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="/WEB-INF/tld/portlet.tld" prefix="portlet" %>
<f:loadBundle basename="altair.adm.login.messages" var="msg"/>
<portlet:defineObjects/>
<portlet:actionURL var="loginAction">
<portlet:param name="command" value="doLogin" />
</portlet:actionURL>
ADM Login
<f:view>
<h:form>
<h:panelGrid columns="2">
<h:outputText value="#{msg.user_id_tag}" />
<h:inputText value="" required="true" id="ADM_USER_ID" />
<h:commandButton action="#{loginAction}"
value="#{msg.login_button_tag}" id="ADM_LOGIN_BUTTON"/>
</h:panelGrid>
</h:form>
</f:view>
-----------------------------------------------------------------
Thanks,
Vijay
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026749#4026749
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026749
19 years, 1 month