myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Marinschek" <martin.marinsc...@gmail.com>
Subject Re: [[Trinidad] tr:selectManyShuttle
Date Tue, 11 Sep 2007 05:47:23 GMT
But Reza - please file an issue, the exception shouldn't be an NPE - it
should clearly indicate that the form is missing.

regards,

Martin

On 9/11/07, Adam Winer <awiner@gmail.com> wrote:
>
> selectManyShuttle needs to be inside of a <tr:form> or <h:form>.
>
> -- Adam
>
>
> On 9/10/07, Reza Samoody < rsamoody@gmail.com> wrote:
> >
> > Hi,
> > I'm trying to use a very simple selectManyShuttle as below:
> >
> > <tr:selectManyShuttle id="serviceTypeSelection" value="#{
> > providerBean.serviceTypes}"
> >                                     leadingHeader="#{
> > mapMsg.availableServiceTypes}"
> >                                     trailingHeader="#{
> > mapMsg.assignedServiceTypes}">
> >                <tr:selectItem label="a" value="A"  />
> >                <tr:selectItem label="b" value="B" />
> >                <tr:selectItem label="c" value="C" />
> >  </tr:selectManyShuttle>
> >
> > But I'm getting a null pointer exception:
> >
> > java.lang.NullPointerException
> > 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SelectManyShuttleRenderer$ShuttleList.getOndblclick(SelectManyShuttleRenderer.java
> >
> > :901)
> > 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.XhtmlRenderer.renderEventHandlers(XhtmlRenderer.java:446)
> > 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FormElementRenderer.renderEventHandlers
> >
> > (FormElementRenderer.java:193)
> > 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.XhtmlRenderer.renderAllAttributes(XhtmlRenderer.java:302)
> > 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FormInputRenderer.renderAllAttributes
> >
> > (FormInputRenderer.java:109)
> > 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleSelectManyListboxRenderer.encodeElementContent(SimpleSelectManyListboxRenderer.java:79)
> > 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleSelectManyRenderer.encodeAllAsElement
> >
> > (SimpleSelectManyRenderer.java:368)
> > 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FormElementRenderer.encodeAll(FormElementRenderer.java:109)
> > 	at org.apache.myfaces.trinidad.render.CoreRenderer.delegateRenderer
> >
> > (CoreRenderer.java:330)
> > 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SelectManyShuttleRenderer$Box.encodeAllChildren(SelectManyShuttleRenderer.java:1115)
> > 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelBoxRenderer.renderContent
> >
> > (PanelBoxRenderer.java:413)
> > 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelBoxRenderer.renderBody(PanelBoxRenderer.java:340)
> > 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelBoxRenderer._renderMiddleRow
> >
> > (PanelBoxRenderer.java:267)
> > 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelBoxRenderer.encodeAll(PanelBoxRenderer.java:115)
> > 	at org.apache.myfaces.trinidad.render.CoreRenderer.delegateRenderer
> > (CoreRenderer.java
> > :330)
> > 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SelectManyShuttleRenderer._renderContainerRow(SelectManyShuttleRenderer.java:577)
> > 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SelectManyShuttleRenderer.encodeElementContent
> >
> > (SelectManyShuttleRenderer.java:312)
> > 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleSelectManyRenderer.encodeAllAsElement(SimpleSelectManyRenderer.java:368)
> > 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FormElementRenderer.encodeAll
> >
> > (FormElementRenderer.java:109)
> > 	at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:220)
> > 	at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:710)
> >
> >
> > 	at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:252)
> > 	at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
> > 	at com.sun.facelets.FaceletViewHandler.renderView
> >
> > (FaceletViewHandler.java:573)
> > 	at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:182)
> > 	at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java
> >
> > :41)
> > 	at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
> > 	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)
> > 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> >
> > (ApplicationFilterChain.java:269)
> > 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> > 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
> >
> >
> > 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
> > 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> > 	at org.apache.catalina.valves.ErrorReportValve.invoke
> >
> > (ErrorReportValve.java:117)
> > 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
> > 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
> > 	at org.apache.coyote.http11.Http11Processor.process
> >
> > (Http11Processor.java:870)
> > 	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
> > 	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java
> >
> > :528)
> > 	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
> > 	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
> > 	at java.lang.Thread.run
> >
> > (Thread.java:595)
> >
> > +- Component Tree <http://localhost:8080/map/menue.jsf#> <UIViewRoot
> > locale="en" renderKitId="org.apache.myfaces.trinidad.core"
> > rendered="true" transient="false" viewId="/menue.xhtml"><!DOCTYPE html
> > PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
> > ><html xmlns=" http://www.w3.org/1999/xhtml"> <head> <meta
> > http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>#{
> > mapMsg.mapTitle}</title> <link rel="stylesheet" type="text/css"
> > href="css/style.css"/> <link rel="stylesheet" type="text/css"
> > href="css/stylemenu.css"/> <link rel="stylesheet" type="text/css"
> > href="css/subModal.css"/> <link rel="stylesheet" type="text/css"
> > href="css/table.css"/> <script type="text/javascript"
> > src="script/common.js"/> <script type="text/javascript"
> > src="script/menu.js"/> <script type="text/javascript"
> > src="script/showhidediv.js"/> <script type="text/javascript"
> > src="script/selectbox.js"/> <script type="text/javascript"
> > src="script/subModal.js"/> <script type="text/javascript"> <!-- function
> > toggleDisable(MyButton) { if(MyButton.disabled == true) {
> > MyButton.disabled = false; } else { MyButton.disabled = true; } }
> > function MM_jumpMenu(targ,selObj,restore){ //v3.0
> > eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
> > if (restore) selObj.selectedIndex=0; } //--> </script> </head> <body><div
> > id="header"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
> > ><html xmlns="http://www.w3.org/1999/xhtml"> <body> <div class="logo"><a
> > href="index.jsf"><img src="img/logo.gif" border="0"/></a></div>
<!--top
> > --> <div class="top"> <div class="content"><a href="#"
> > rel="dropmenu12"/></div> </div> <!-- menu --> <div class="chromestyle"
> > id="chromemenu"> <ul> <li><a href="index.jsf">Home</a></li>
<li><a
> > href="customerslist.jsf">Customers</a></li> <li><a href="domainslist.jsf">Domains</a></li>
> > <li><a href="#" rel="subscriptions">Subscriptions</a></li>
<li><a href="#"
> > rel="users">Users</a></li> <li><a href="#" rel="services">Services</a></li>
> > <li><a href="#" rel="hosts">Hosts</a></li> <li><a
href="#" rel="keys">Key
> > Management</a></li> <li><a href="#" rel="roles">Roles</a></li>
<li><a
> > href="#" rel="administrators">Administrators</a></li> <li><a
href="#"
> > rel="policies">Polices</a></li> <li><a href="#"
> > rel="reporting">Reporting</a></li> <li><a href="#">Help</a></li>
</ul>
> > </div> <!--Admin drop down menu --> <div id="administrators"
> > class="dropmenudiv"><a href="search.jsf">Create</a> <a href="">Find</a>
> > <a href="">Update My Profile</a></div> <!--Customers drop down
menu <div
> > id="customers" class="dropmenudiv"><a href="createcustomer.jsf">Create</a>
> > <a href="">Import</a> <a href="searchcustomer.jsf">Find</a></div>
-->
> > <!--Subscriptions drop down menu --> <div id="subscriptions"
> > class="dropmenudiv"><a href="">Create</a> <a href="">Import</a>
<a
> > href="">Find</a> <a href="">Create Type</a> <a href="">Find
Type</a></div>
> > <!--Users drop down menu --> <div id="users" class="dropmenudiv"><a
> > href="">Create</a> <a href="">Import</a> <a href="">Find</a></div>
> > <!--Services drop down menu --> <div id="services" class="dropmenudiv"><a
> > href="http://www.google.com/">Google</a></div> <div id="hosts"
> > class="dropmenudiv"><a href="http://www.google.com/">Google</a></div>
> > <div id="keys" class="dropmenudiv"><a href="http://www.google.com/">Google</a></div>
> > <div id="policies" class="dropmenudiv"><a href="http://www.google.com/">Google</a></div>
> > <div id="roles" class="dropmenudiv"><a href="http://www.google.com/">Google</a></div>
> > <div id="reporting" class="dropmenudiv"><a href="http://www.google.com/">Google</a></div>
> > <div id="administrators2" class="dropmenudiv"><a href="
> > http://www.google.com/">Google</a></div> <script type="text/javascript">
> > cssdropdown.startchrome("chromemenu")</script> </body> </html></div><CoreSelectManyShuttle
> > disabled="false" id="serviceTypeSelection" immediate="false"
> > leadingDescShown="false" leadingHeader="Available Service Types"
> > localValueSet="false" readOnly="false" rendered="true" required="false"
> > size="0" trailingDescShown="false" trailingHeader="Assigned Service Types"
> > transient="false" valid="true" value="[Ljava.lang.String;@19646fd"
> > valuePassThru="false"><CoreSelectItem disabled="false" id="_id6"
> > label="servicetype 1" rendered="true" transient="false"
> > value="SERVICE_TYPE1"/> <CoreSelectItem disabled="false" id="_id7"
> > label="servicetype 2" rendered="true" transient="false"
> > value="SERVICE_TYPE1"/> <CoreSelectItem disabled="false" id="_id8"
> > label="servicetype 3 " rendered="true" transient="false"
> > value="SERVICE_TYPE1"/></CoreSelectManyShuttle><div id="footer">
<div
> > class="bottom"> (c) 2007 Route1 Inc. All Rights Reserved </div></div>
> > </body> </html></UIViewRoot>
> > +- Scoped Variables <http://localhost:8080/map/menue.jsf#> Request
> > ParametersNameValue*None*Request Attributes NameValueaddressMsg
> > com.sun.facelets.tag.jsf.core.LoadBundleHandler$ResourceBundleMap@10ebe18
> > mapMsg
> > com.sun.facelets.tag.jsf.core.LoadBundleHandler$ResourceBundleMap@e2433b
> > personMsg
> > com.sun.facelets.tag.jsf.core.LoadBundleHandler$ResourceBundleMap@abe654providerBean
> > com.route1.mobi.map.web.beans.ProviderBean@19ea173providerMsg
> > com.sun.facelets.tag.jsf.core.LoadBundleHandler$ResourceBundleMap@179a49fSession
> > Attributes NameValue*None*Application Attributes NameValue*None*
> >
>
>


-- 

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Mime
View raw message