Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/10/2006, 15:49
jchernandez
 
Fecha de Ingreso: mayo-2004
Ubicación: Managua, Nicaragua
Mensajes: 281
Antigüedad: 20 años, 8 meses
Puntos: 0
Ya he resuelto mi problema, realmente no es utilizar las variables de Jstl en Jsf, sino que estos trabajan con las objetos implicitas descritas en el tutorial de J2EE. Pongo algunas que se describen en ese manual:

Código:
Implicit Objects
The JSP expression language defines a set of implicit objects:
• pageContext: The context for the JSP page. Provides access to various
objects including:
• servletContext: The context for the JSP page’s servlet and any web
components contained in the same application. See Accessing the Web
Context (page 473).
• session: The session object for the client. See Maintaining Client
State (page 474).
• request: The request triggering the execution of the JSP page. See Getting
Information from Requests (page 458).
• response: The response returned by the JSP page. See Constructing
Responses (page 460).
EXPRESSION LANGUAGE 503
In addition, several implicit objects are available that allow easy access to the
following objects:
• param: Maps a request parameter name to a single value
• paramValues: Maps a request parameter name to an array of values
• header: Maps a request header name to a single value
• headerValues: Maps a request header name to an array of values
• cookie: Maps a cookie name to a single cookie
• initParam:Maps a context initialization parameter name to a single value
Finally, there are objects that allow access to the various scoped variables
described in Using Scope Objects (page 453).
• pageScope: Maps page-scoped variable names to their values
• requestScope: Maps request-scoped variable names to their values
• sessionScope: Maps session-scoped variable names to their values
• applicationScope: Maps application-scoped variable names to their values
Lo he resuelto de la siguiente manera, el alcande del bean lo declare como request, ademas tuve que declarar la variable con el Jstl <c:set con alcance tambien request. Muestro el codigo a continuacion:

Código:
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="x"%>

<jsp:useBean id="btn" class="pkgfarma_net.admin.modelo.botones" scope="request"/>

<f:view>
  <c:choose>
    <c:when test="${param['accion'] == 'agregar'}">
      <c:forEach var="Tit" items="${btn.agregar}">
        <c:set var="Tit" value="${Tit}" scope="request" />
        <h:commandButton id="botones" value="#{requestScope.Tit[0]}" styleClass="bordes"/>
      </c:forEach>
    </c:when>
    <c:otherwise>
          <h:commandButton id="btnBuscar" value="Buscar" styleClass="bordes"/><h:commandButton id="btnLimpiar" value="Limpiar" type="button" styleClass="bordes"/><h:commandButton id="btnCancelar" value="Cancelar" type="button" styleClass="bordes"/>
    </c:otherwise>
  </c:choose>
</f:view>
__________________
Julio Hernández