Monday, November 17, 2014

Jsf call

<h:form>

                                        <c:set var="grpId" value="#{param['grpId']}"  scope="view"/> 

                                        <h:commandButton value="Leave Group!" action="#{groupAction.leaveFromRingIDCircle(grpId)}" >

                                            <f:param value="#{param['grpId']}" name="grpId"/>

                                        </h:commandButton></h:form>







FacesContext fc = FacesContext.getCurrentInstance();

            Map<String, String> params

                    = fc.getExternalContext().getRequestParameterMap();

            long v_grpId = Long.valueOf(params.get("grpId"));