Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Merging JSF script and JSP scriptlet => possible?

 
Ken Flor
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

thanks for all the help rendered.

I have 1 issue now.

I use JSP to create a Java Beans. I call initParameters to do something and a vector getSymbolMenu() is retrieved. I want to place the items in this vector into a dropdown menu. There is no error. But there is nothing in my dropdown list.


<jsp:useBean id="formHandler" scope="page" class="ed21.nday.bean.CapturingNomParticularsBean">
<jsp:setProperty name="formHandler" property="*"/></jsp:useBean>

<%formHandler.initParameters();%>

<f:view>
<h:form>
<h:selectOneMenu id="myParamId" value="Testing">
<%
Vector symbolMenu = formHandler.getSymbolMenu();

for (int i=0;i<symbolMenu.size(); i++){
%>

<f:selectItem itemLabel=<%=symbolMenu.elementAt(i)%> itemValue=<%=symbolMenu.elementAt(0)%>/>
<%}%>

</h:selectOneMenu>

</h:form>
</f:view>


please help me. Is this possible? thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic