Unable to show JSF dropdown with a list containing custom beans
Hi,
Please help me with my problem guys.
In the JSF Portlet application that Iam currently working, I need to show some dropdowns,so I am passing arraylist in my JSP like this:
<code]
<f:view>
<hx:scriptCollector id="scriptCollector1">
<h:form styleClass="form" id="form1"><P>Place content here.
<h:selectOneMenu styleClass="selectOneMenu" id="menu1" >
<f:selectItems value="#{gfogBean.northAmericaList.toArray}"/>
</h:selectOneMenu>
</h:form>
</hx:scriptCollector>
</f:view>
gfgoBean is my FacesManagedBean, northAmericaList has objects of type TestBean....
public class GfogBean {
private String exchangeEurope;
private String exchangeAsiaPacific;
private String exchangeNorthAmerica;
private List northAmericaList = new ArrayList();
* @return Returns the northAmericaList.
public List getNorthAmericaList() {
northAmericaList.add(new TestBean("north","north"));
return northAmericaList;
* @param northAmericaList The northAmericaList to set.
public void setNorthAmericaList(List northAmericaList) {
this.northAmericaList = northAmericaList;
* @return Returns the exchangeAsiaPacific.
public String getExchangeAsiaPacific() {
return exchangeAsiaPacific;
* @param exchangeAsiaPacific The exchangeAsiaPacific to set.
public void setExchangeAsiaPacific(String exchangeAsiaPacific) {
this.exchangeAsiaPacific = exchangeAsiaPacific;
* @return Returns the exchangeEurope.
public String getExchangeEurope() {
return exchangeEurope;
* @param exchangeEurope The exchangeEurope to set.
public void setExchangeEurope(String exchangeEurope) {
this.exchangeEurope = exchangeEurope;
* @return Returns the exchangeNorthAmerica.
public String getExchangeNorthAmerica() {
return exchangeNorthAmerica;
* @param exchangeNorthAmerica The exchangeNorthAmerica to set.
public void setExchangeNorthAmerica(String exchangeNorthAmerica) {
this.exchangeNorthAmerica = exchangeNorthAmerica;
}But I am getting this exception.
Nested Exception is javax.servlet.jsp.JspException: javax.faces.el.ReferenceSyntaxException: The "." operator was supplied with an index value of type "java.lang.String" to be applied to a List or array, but that value cannot be converted to an integer.
at com.sun.faces.taglib.html_basic.SelectOneMenuTag.doEndTag(SelectOneMenuTag.java:483)
at org.apache.jsp._GfogWeb._jspService(_GfogWeb.java:220)
at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:683)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:781)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1049)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:600)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:254)
at org.apache.pluto.core.impl.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:112)
at com.ibm.faces.context.PortletExternalContextImpl.dispatch(PortletExternalContextImpl.java:439)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:295)
at com.ibm.faces.application.PortletViewHandlerImpl.renderView(PortletViewHandlerImpl.java:74)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:217)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
at com.ibm.faces.webapp.FacesGenericPortlet.doRender(FacesGenericPortlet.java:358)
at com.ibm.faces.webapp.FacesGenericPortlet.doView(FacesGenericPortlet.java:389)
at com.jpmorgan.gfogwebportlet.portlet.GfogInitPortlet.doView(GfogInitPortlet.java:51)
at com.ibm.faces.webapp.FacesGenericPortlet.doDispatch(FacesGenericPortlet.java:290)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:163)
at com.ibm.wps.pe.pc.std.cmpf.impl.PortletFilterChainImpl.render(PortletFilterChainImpl.java:144)
at com.ibm.wps.pe.pc.std.invoker.impl.PortletServlet.dispatch(PortletServlet.java:131)
at com.ibm.wps.pe.pc.std.invoker.impl.PortletServlet.doGet(PortletServlet.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at com.ibm.wps.pe.pc.std.cache.CacheablePortlet.service(CacheablePortlet.java:256)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1049)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:600)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:254)
at com.ibm.wps.pe.pc.std.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:204)
at com.ibm.wps.pe.pc.std.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:168)
at com.ibm.wps.pe.pc.std.invoker.impl.PortletInvokerImpl.render(PortletInvokerImpl.java:97)
at com.ibm.wps.pe.pc.std.PortletContainerImpl.renderPortlet(PortletContainerImpl.java:110)
at com.ibm.wps.pe.pc.PortletContainerImpl.doRenderPortlet(PortletContainerImpl.java:545)
at com.ibm.wps.pe.ext.render.AbstractRenderManager.performService(AbstractRenderManager.java:251)
at com.ibm.wps.pe.pc.PortletContainerImpl.renderPortlet(PortletContainerImpl.java:100)
at com.ibm.wps.engine.tags.PortletRenderTag.doStartTag(PortletRenderTag.java:155)
at org.apache.jsp._Control._jspService(Control.jsp :176)
at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:683)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:781)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.ServicingServletState.service(StrictLifecycleServlet.java:333)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1044)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:600)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:254)
at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.handleRequest(DispatcherServiceImpl.java:89)
at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.include(DispatcherServiceImpl.java:50)
at com.ibm.wps.services.dispatcher.Dispatcher.include(Dispatcher.java:44)
at com.ibm.wps.engine.templates.skins.Default.render(Default.java:74)
at com.ibm.wps.engine.templates.SkinTemplate.render(SkinTemplate.java:71)
at com.ibm.wps.composition.elements.Component.render(Component.java:785)
at com.ibm.wps.composition.elements.Control.render(Control.java:182)
at com.ibm.wps.composition.Composition.render(Composition.java:2880)
at com.ibm.wps.model.wrappers.LayoutModelWrapperFactoryImpl$LayoutModelWrapperImpl.render(LayoutModelWrapperFactoryImpl.java:204)
at com.ibm.wps.model.ModelUtil$WrappedCompositionModel.render(ModelUtil.java:832)
at org.apache.jsp._UnlayeredContainer_2D_V._jspService(UnlayeredContainer-V.jsp :11)
at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:683)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:781)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.ServicingServletState.service(StrictLifecycleServlet.java:333)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1044)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:600)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:254)
at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.handleRequest(DispatcherServiceImpl.java:89)
at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.include(DispatcherServiceImpl.java:50)
at com.ibm.wps.services.dispatcher.Dispatcher.include(Dispatcher.java:44)
at com.ibm.wps.engine.templates.skins.Default.render(Default.java:74)
at com.ibm.wps.engine.templates.SkinTemplate.render(SkinTemplate.java:71)
at com.ibm.wps.composition.elements.Component.render(Component.java:785)
at com.ibm.wps.composition.Composition.render(Composition.java:2880)
at com.ibm.wps.model.wrappers.LayoutModelWrapperFactoryImpl$LayoutModelWrapperImpl.render(LayoutModelWrapperFactoryImpl.java:204)
at com.ibm.wps.engine.tags2.PageRenderTag.doStartTag(PageRenderTag.java:397)
at org.apache.jsp._Home._jspService(Home.jsp :15)
at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:683)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:781)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.ServicingServletState.service(StrictLifecycleServlet.java:333)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1044)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:600)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:254)
at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.handleRequest(DispatcherServiceImpl.java:89)
at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.include(DispatcherServiceImpl.java:50)
at com.ibm.wps.services.dispatcher.Dispatcher.include(Dispatcher.java:44)
at com.ibm.wps.engine.templates.screens.Default.render(Default.java:91)
at com.ibm.wps.engine.templates.ScreenTemplate.render(ScreenTemplate.java:61)
at com.ibm.wps.engine.tags2.ScreenRenderTag.doStartTag(ScreenRenderTag.java:89)
at org.apache.jsp._Default._jspService(Default.jsp :768)
at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:683)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:781)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1044)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:600)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:254)
at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.handleRequest(DispatcherServiceImpl.java:89)
at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.include(DispatcherServiceImpl.java:50)
at com.ibm.wps.services.dispatcher.Dispatcher.include(Dispatcher.java:44)
at com.ibm.wps.engine.templates.themes.Default.render(Default.java:103)
at com.ibm.wps.engine.templates.ThemeTemplate.render(ThemeTemplate.java:67)
at com.ibm.wps.engine.phases.WPRenderPhase.processRendering(WPRenderPhase.java:312)
at com.ibm.wps.engine.phases.WPRenderPhase.execute(WPRenderPhase.java:135)
at com.ibm.wps.state.phases.AbstractRenderPhase.next(AbstractRenderPhase.java:106)
at com.ibm.wps.engine.phases.WPAbstractRenderPhase.next(WPAbstractRenderPhase.java:93)
at com.ibm.wps.engine.Servlet.callPortal(Servlet.java:713)
at com.ibm.wps.engine.Servlet.doGet(Servlet.java:562)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:76)
at com.ibm.wps.state.filter.StateCleanup.doFilter(StateCleanup.java:86)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
at com.ibm.wps.mappingurl.impl.URLAnalyzer.doFilter(URLAnalyzer.java:216)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1040)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:600)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:201)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:125)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:286)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:116)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:624)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:458)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:912)Then I changed the <f:selectItems/> little bit like
<f:selectItems value="#selectItems.gfogBean.northAmericaList.toArray}"/>Then there was no error ,but the dropdown was null.
Again I modifed the <f:selectItems/> tag in this way:
<f:selectItems value="#{selectitems.gfogBean.northAmericaList.testBeanValue.testBeanValue.toArray}"/>then the dropdown appeared but the values were showing up twice.
Can anybody give me solution to this problem.Even a custom converter or a custom component could solve this problem.. \n
Because in my application, we are not populating the arraylists with SelectItem type.
The perInfoAll list should be declared locally in getPerInfoAll(), otherwise it grows every time you call it.
#{e.id};Remove the semicolon, unless you want to see it on the page, which doesn't seem right. Try <h:outputText value="#{e.id}"/> instead. Only certain types of children are supported inside h:column.
Similar Messages
-
I'm trying to connect my ipad2 to my phones wifi hotspot. my phone says hotspot is activated and it shows up as an option on my ipad but when i hit that on the ipad it shows a page with a list of things like ip address, domain, url. what do i do now?
iOS: Understanding Personal Hotspot
http://support.apple.com/kb/HT4517
Use Bluetooth to tether your iPhone, iPod touch, or iPad
http://www.macworld.com/article/1159258/bluetooth_tethering.html
How to Connect an iPad to an iPhone Via Bluetooth Tethering
http://techtips.salon.com/connect-ipad-iphone-via-bluetooth-tethering-25472.html
Cheers, Tom -
Unable to capture data from drop down list in custom added field in migo tcode at item level
Hi guys,
need bit help in resolving query related to custom added field in Tcode migo.
i have added a field in migo at item level ,in this i have used drop down list
to get data but unable to capture data from drop down list.gown through
many blogs in scn but unable to resolve.
Please help me out in this.
Thanks,
Umakant.Hi,
U can use following code to fill the list box
write this code in PBO
In layout editor please select listbox in dropdown attribute of input field and put some fctcode attribute
TYPE-POOLS vrm.
DATA values TYPE vrm_values WITH HEADER LINE.
TABLES: <ur custom Database table>.
clear values, values[].
SELECT * FROM <ur custom Database table>.
values-text = <TABLE FIELD TO DISPLAY IN DROPDOWN> .
values-key = <TABLE KEY FIELD TO DISPLAY IN DROPDOWN>.
APPEND values.
ENDSELECT.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = '<SCREEN INPUT FIELD NAME>'
values = values[]
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.
Also please define the following before accessing the listbox value
data: <listbox input field name> type <table field name>,
<inputfield name where text to display> type string in top include
In PAI, select the text from the table into <inputfield name where text to display> depending on value selected which will be called when enter key is pressed or any vale is selected -
Not able to set databinding for dropdown with another list datasource
Hi
I have created one dataviewwebpart on the basis of list1.
Now I want to add one dropdown in one of the column which will display the values of another list.
So I added link datasource as list2 for another datasource.
I want to display versionID's from another list for the item present in the row to this dropdown and when user click on icon I will pass selected version ID and ItemID(available in the row). So the user will able to see the selected version of the
seleted item in another list.
But I am not able to select versionID form list2 in "Change databinding" for the dropdown.
In select a datasource dropdown its not showing the linked datasource of List2.
What can I do ?
Is there any other solution ? Am I missing anything?Hi,
I recommend to edit the dropdown control with the code below:
<SharePoint:DVDropDownList runat="server" id="ff5{$Pos}" DataSourceID="FilteredLookup" DataTextField="Title" DataValueField="Title" SelectedValue="{@MathTeachers}" __designer:bind="{ddwrt:DataBind('u',concat('ff5',$Pos),'SelectedValue','SelectedIndexChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@MathTeachers')}"/>
Please remember to change the id, DataSourceID, DataTextField, DataValueField and SelectedValue to the value in your page code.
More reference:
https://www.mriwm.com/Public/PamBlog/Lists/Posts/Post.aspx?ID=39
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
Indesign unable to open a file with name that contains letters "ä" and "ö"
Hi, I just updated indesign and it seems it lost the ability to open files that have letters "ä" and "ö" in the file name.
After I renamed the files, they were opened fine.
Error I get is: "Either the file does not exist, you do not have permission, or the file may be in use by another application"
Hope this will be fixed, many languages contain those letters.
Edit: Indesign CS5.5 Version: 7.5.3Sorry for the lack of details
OS: Windows 7 64-bit
OS Language: Finnish
Indesign language: English
Procedure where this problem appears:
- Drag and drop a file (no matter what extension).
- Place a file.
File name in question: EtsiväNuorisotyö_juliste_A3_PRINT.pdf
Also tried with different file formats: EPS and JPG.
File works when renamed "ä" to "a" and "ö" to "o".
Also tried placing and drag and drop after I copied the files from network drive to desktop, same result. -
Hello,
If I have a List of Strings, how to populate a DropDown with this List?
For example:
List list = new ArrayList();
list.add("gustavo");
list.add("maria");
And I want a DropDown that show the same string in the value and in the description. How to do this?
I'm using a ObjectListDataProvider to populate the DropDown.Hi There,
This tutorial may be of use to you
http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/listbox_components.html
Thanks
K -
How Do i create a list that will show in a dropdown box with the list being pulled from another tab and not the cell data format junk?
I currently run OS X 10.10.1
Now i have been trying to work on this for a while now and what i want to do should be simple but its apparently not.
Here is an example of what i want to happen.
I will have 2 tabs: Contact | Sales
Now Contacts will have the list of names and various information about a customer, While Sales will have one drop-down box for each Cell Row that will show the names of the person in tab contacts
for what i am wanting to do i cant use the data format pop-up menu because the list is edited everyday several times a day.
Now how do i do this, Excel can do this so how can numbers do it?Hi Shegra,
Paste this into a applescript editor window and run it from there. In the script you may need to adjust the four properties to agree with your spreadsheet. Let me know if you have any questions.
quinn
Script starts:
-- This script converts column A in one table into an alphabetized list of popups. It copies the last cell in that column. Then reverts the column to text. It then refreshes popups in column A of a data table starting with a user defined row.
property DataEntrySheet : "Sheet 1" --name of sheet with popups to be refreshed
property DataEntryTable : "Sales" --name of table with popups to be refreshed
set copyRange to {}
property PopValueSheet : "Sheet 1" --name of sheet with popup values table
property PopValueTable : "Contacts" --name of table with popup values
set PopStartRow to {}
tell application "Numbers"
set d to front document
set ps to d's sheet PopValueSheet
set pt to ps's table PopValueTable
set s to d's sheet DataEntrySheet
set t to s's table DataEntryTable
set tf to t's filtered --this records filter setting on data Entry Table
display dialog "Start from row #..." default answer "" with icon 1 -- with icon file "Path:to:my.icon.icns" --a Week # row
set PopStartRow to {text returned of result}
tell pt --convert list to alphabetized popups
set ptRows to count rows
set copyRange to ("A2:" & name of cell ptRows of column "A")
set selection range to range copyRange
set selection range's format to text
sort by column 1 direction ascending
set selection range's format to pop up menu
-- popupsmade
set selection range to cell ptRows of column 1 of pt
set v to value of cell ptRows of pt
end tell
activate application "Numbers"
tell application "System Events" to keystroke "c" using command down
tell pt
set selection range to range copyRange
set selection range's format to text
end tell
tell t
set filtered to false
set tRows to count rows
set pasteRange to ((name of cell PopStartRow of column "A") & ":" & (name of cell tRows of column "A"))
set selection range to range pasteRange
tell application "System Events" to keystroke "v" using command down
set filtered to tf
end tell
end tell -
Firefox 10. On Windows 7. Adobe PDF will not download or show up in the download list. I tried same files with IE. Download worked fine. Have uninstalled and reinstalled multiple times
Perform the suggestions mentioned in the following articles:
* [[Unable to download or save files]]
* [https://support.mozilla.com/en-US/kb/Template:clearCookiesCache/ Clear Cookies & Cache]
Check and tell if its working.
Not related to your problem but some of your Firefox Plugins are out-dated
* Update All your Firefox Plugins -> https://www.mozilla.org/en-US/plugincheck/
* '''When Downloading Plugins Update setup files, Remove Checkmark from Downloading other Optional Softwares with your Plugins (e.g. Toolbars, McAfee, Google Chrome, etc.)''' -
I updated iTunes to 11 and now I am unable to delete anything!! Very annoyed and I hate iTunes updates anymore. It shows a cloud with an arrow for me to download and I dont want to download the items..I already have them! How can I delete this garbage??
I have the same problem. It's showing old podcasts that are available for download and I already watched and I don't want to see them again and I don't want them listed in my iTunes. This latest upgrade is a piece of junk so far. It destroyed my itunes podcast listing on my Windows Machine. I have no intentions of upgrading to iOS7 or my Mac until I hear that things are fixed.
-
Need Help with my JSF-Project - ResultSet to List to DataTable/c:foreach
Hello!
I am struggeling heavily with JSF and JSTL and JSPs...
I want to show a list of names from a database in my JSF-Document.
I have the following bean "Category":
package de.fh_offenburg.audiodb.webapp;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.jsp.jstl.sql.Result;
public class Category {
String name = "";
String creationDate = "";
int id_kategorie = 0;
ResultSet resultset;
Result result;
Connection con;
String query = "";
List result_list;
Category() {
result_list = new ArrayList();
try{
con = new ConnectDB().connect();
Statement statement = con.createStatement();
query = "SELECT * FROM Category WHERE isUKat = '0'";
resultset = statement.executeQuery(query);
while (resultset.next()) {
// Get the data from the row using the column index
String name = resultset.getString("name");
// create an object for each row (yes, it is hibernate biased) ;-)
Cat cat = new Cat();
cat.setName(name);
cat.setId_kategorie(id_kategorie);
// Add the object to the list
result_list.add(cat);
} catch(Exception hcat){
System.out.println("HCat-Problem: "+hcat.getMessage());
public java.lang.String getCreationDate() {
return creationDate;
public void setCreationDate(java.lang.String creationDate) {
this.creationDate = creationDate;
public int getId_kategorie() {
return id_kategorie;
public void setId_kategorie(int id_kategorie) {
this.id_kategorie = id_kategorie;
public java.lang.String getName() {
return name;
public void setName(java.lang.String name) {
this.name = name;
public java.sql.ResultSet getResultset() {
return resultset;
public void setResult_cat(java.sql.ResultSet result_cat) {
this.resultset = result_cat;
public void setResult(Result result) {
this.result = result;
public Result getResult() {
return result;
public List getResult_list() {
return result_list;
public void setResult_list(ArrayList result_list) {
this.result_list = result_list;
}This Bean is registered in my faces-config.xml like this:
<managed-bean>
<managed-bean-name>category</managed-bean-name>
<managed-bean-class>de.fh_offenburg.audiodb.webapp.Category</managed-bean-class>
<managed-bean-scope>application</managed-bean-scope>
<managed-property>
<property-name>creationDate</property-name>
<property-class>java.lang.String</property-class>
<value/>
</managed-property>
<managed-property>
<property-name>id_kategorie</property-name>
<property-class>int</property-class>
<value/>
</managed-property>
<managed-property>
<property-name>name</property-name>
<property-class>java.lang.String</property-class>
<value/>
</managed-property>
<managed-property id="result">
<property-name>result</property-name>
<property-class>javax.servlet.jsp.jstl.sql.Result</property-class>
<value/>
</managed-property>
<managed-property id="resultset">
<property-name>resultset</property-name>
<property-class>java.sql.ResultSet</property-class>
<value/>
</managed-property>
<managed-property id="result_list">
<property-name>result_list</property-name>
<property-class>java.util.List</property-class>
<value/>
</managed-property>
</managed-bean>Now I try to read the list of Cats out in my JSF:
<h:dataTable value="#{category.result_list}" var="result">
<h:column>
<h:outputText value="#{result.name}" />
</h:column>
</h:dataTable>... but that doesnt work... I got an error:
javax.servlet.ServletException: Cannot get value for expression '#{category.result_list}'
javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96)
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220)
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
root cause So what am I doing wrong?
I did try to do the same with an JSTL-Syntax (which would be better for me, because I want to layout with DIVs not with a Table...):
<c:forEach items="#{category.result_list}" var="result">
<div class="div_mini_kat"><c:out value="#{result.name}"/></div>
</c:forEach>But that doesnt work out neigther...
Could someone please tell me what I am doing wrong? I am trying this for days now and I am feeling like a bumble-bee in a glasshouse with one small open doorway which I dont see and thousands of m^2 to crash with...
Thanks to everyone who answers in advance!!!
FuchurHello!
I am struggeling heavily with JSF and JSTL and JSPs...
I want to show a list of names from a database in my JSF-Document.
I have the following bean "Category":
package de.fh_offenburg.audiodb.webapp;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.jsp.jstl.sql.Result;
public class Category {
String name = "";
String creationDate = "";
int id_kategorie = 0;
ResultSet resultset;
Result result;
Connection con;
String query = "";
List result_list;
Category() {
result_list = new ArrayList();
try{
con = new ConnectDB().connect();
Statement statement = con.createStatement();
query = "SELECT * FROM Category WHERE isUKat = '0'";
resultset = statement.executeQuery(query);
while (resultset.next()) {
// Get the data from the row using the column index
String name = resultset.getString("name");
// create an object for each row (yes, it is hibernate biased) ;-)
Cat cat = new Cat();
cat.setName(name);
cat.setId_kategorie(id_kategorie);
// Add the object to the list
result_list.add(cat);
} catch(Exception hcat){
System.out.println("HCat-Problem: "+hcat.getMessage());
public java.lang.String getCreationDate() {
return creationDate;
public void setCreationDate(java.lang.String creationDate) {
this.creationDate = creationDate;
public int getId_kategorie() {
return id_kategorie;
public void setId_kategorie(int id_kategorie) {
this.id_kategorie = id_kategorie;
public java.lang.String getName() {
return name;
public void setName(java.lang.String name) {
this.name = name;
public java.sql.ResultSet getResultset() {
return resultset;
public void setResult_cat(java.sql.ResultSet result_cat) {
this.resultset = result_cat;
public void setResult(Result result) {
this.result = result;
public Result getResult() {
return result;
public List getResult_list() {
return result_list;
public void setResult_list(ArrayList result_list) {
this.result_list = result_list;
}This Bean is registered in my faces-config.xml like this:
<managed-bean>
<managed-bean-name>category</managed-bean-name>
<managed-bean-class>de.fh_offenburg.audiodb.webapp.Category</managed-bean-class>
<managed-bean-scope>application</managed-bean-scope>
<managed-property>
<property-name>creationDate</property-name>
<property-class>java.lang.String</property-class>
<value/>
</managed-property>
<managed-property>
<property-name>id_kategorie</property-name>
<property-class>int</property-class>
<value/>
</managed-property>
<managed-property>
<property-name>name</property-name>
<property-class>java.lang.String</property-class>
<value/>
</managed-property>
<managed-property id="result">
<property-name>result</property-name>
<property-class>javax.servlet.jsp.jstl.sql.Result</property-class>
<value/>
</managed-property>
<managed-property id="resultset">
<property-name>resultset</property-name>
<property-class>java.sql.ResultSet</property-class>
<value/>
</managed-property>
<managed-property id="result_list">
<property-name>result_list</property-name>
<property-class>java.util.List</property-class>
<value/>
</managed-property>
</managed-bean>Now I try to read the list of Cats out in my JSF:
<h:dataTable value="#{category.result_list}" var="result">
<h:column>
<h:outputText value="#{result.name}" />
</h:column>
</h:dataTable>... but that doesnt work... I got an error:
javax.servlet.ServletException: Cannot get value for expression '#{category.result_list}'
javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96)
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220)
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
root cause So what am I doing wrong?
I did try to do the same with an JSTL-Syntax (which would be better for me, because I want to layout with DIVs not with a Table...):
<c:forEach items="#{category.result_list}" var="result">
<div class="div_mini_kat"><c:out value="#{result.name}"/></div>
</c:forEach>But that doesnt work out neigther...
Could someone please tell me what I am doing wrong? I am trying this for days now and I am feeling like a bumble-bee in a glasshouse with one small open doorway which I dont see and thousands of m^2 to crash with...
Thanks to everyone who answers in advance!!!
Fuchur -
My MacBook Pro was stolen last night. I need the serial number. It is not showing up on my devices list. My iPads and iPhones are. I have used it to to sync my phones and pads as well having it registered with apple. Any thoughts? Thanks
Click here: https://supportprofile.apple.com/MySupportProfile.do
SIgn in with your Apple ID, the same one you used to access this support forum.
Hopefully, you will see a list of all the devices you registered with your Apple ID, including their serial numbers. Let me know how this works out.
Edit to add: If you enabled "find my imac" on your Pro, you ought to be able to remotely lock it, or even wipe its memory. Click http://www.icloud.com/ sign in with your Apple ID and click the big green "find my iPhone" icon (nevermind the name, it will find all your devices provided they're running Lion or iOS 5).
Then file a police report and nail the b*****d. -
In my MacBook Pro(10.7.5), finder is crashing after logging in. It is showing crash report with Relaunch option, when i click on Relaunch option finder is working properly but i am unable to see Top bar(Apple logo, Date and Wifi etc... bar). Even in safari address bar, TextEdit not accepting any text means when type something not showing up and also i am unable operate any thing from keyboard. Plz help me…..
One thing that you can try is installing a 'fresh' version of OS X Lion. Boot into your Recovery partition (holding down the command and R keys whilst booting) and elect to install OS X from the Recovery screen. You need not erase your hard drive and you should not lose any of your data.
Oh, and just as a precaution, I would use Disk Utility, once you're in Recovery mode, to verify your hard drive before trying to install the OS again.
Clinton -
I'm using Mail 5.3 and Address Book 6.1.3 on X 10.7.5. I want my contact photos to show up in the message list on Mail, but only some of them do, even though the message will link to the contact card in Address Book with the photo in it. I've even tried replacing a photo that doesn't show up with a photo that does show up for a different contact but no luck. I am syncing to one other Mac, an iPhone and an iPad via iCloud.
I'm using Mail 5.3 and Address Book 6.1.3 on X 10.7.5. I want my contact photos to show up in the message list on Mail, but only some of them do, even though the message will link to the contact card in Address Book with the photo in it. I've even tried replacing a photo that doesn't show up with a photo that does show up for a different contact but no luck. I am syncing to one other Mac, an iPhone and an iPad via iCloud.
-
i am unable to sync my iphone with itunes on my windows pc and itunes show that your iphone is not connected?
You have posted to the iTunes Match forum, which your question does not appear to be related to. You will probably get better help by posting in the Using iPhone forum.
-
2 podcast list, right one won't show to sync with iPhone
I synced my iPhone 4 with my MacBook today. I havn't done that in quite some time. I now have 2 Podcasts list (I didn't notice a second one there before today) and the 2nd/new one only has 1 of my podcasts listed in it. My other Podcast list has all my things in it, but it won't show up on my Phone when I try to fix the settings of what I want to sync. And all of those have been removed from my Phone so all my Phone shows now is the one. What's happened? How to I delete the extra podcast list and get the right one to show up to sync with my Phone? Thanks.
MacBook running SnowLeopard and iTunes 10.5.1Sorry, I left out an important piece of information. My calendar syncs to my iPhone through MobileMe, not by syncing it to iTunes.
- I logged into MobileMe but all it shows me is the page with all of the account settings (personal info, account info, password, etc.). I can't see anything in all of the account options that relates to this. I am not able to migrate anywhere other than this account settings page.
- The calendar that won't sync to my iPhone shows up on the "Subscriptions" list in iCal (this is what I meant by an "external" calendar).
Maybe you are looking for
-
How to print PDF file from java application?
Hi, I have a java application that needs to print an PDF files. Could any one provide me links to tutorial/sample codes for doing this?
-
I have just bought a month-old 20" iMac intel core duo 1GB 2.4ghz model. but I am having a couple of problems. First, I can't connect to my wireless router and now neither cam my old HP laptop. Also, a lot of things on the mac are under the previous
-
How to check two IPs in the same subnetwork?
It seems java.net package doesn't provide this mothod. thx.
-
How come my ipad 3 isn't allowing me to play youtube or any Internet videos
Why can't i play youtube or any Internet videos on my ipad3
-
Bug or feature? Tell me...
Okay so I have gnome+compiz+awn installed on my desktop. No problems there, but I need to use kopete, because I really like it . Now when I run it, I cannot resize the window, unless I switch to metacity ( but the awn dissapears, because it needs com