Re: How to notify user about FileUploadBase$SizeLimitExceededException
I have set the uploadMaxFileSize but how do show this error to user in UI. samju wrote: its feasible to define your web-app Configuration? 1- apache commons fileupload 2- myfaces.webapp.filter 3- clay 4- irx.view and so on... did you check the param-nameuploadMaxFileSize/param-name?? Sam AM101 wrote: I have configured my application to use FileUpload functionality. It is working as per design. But if I upload a file whose size is bigger than configured size, application throws following exception in the backend. is there any way, I can report the user that he has to upload a file whose size is less than configured size. INFO: user tried to upload a file that exceeded file-size limitations. org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (387257) exceeds the configured maximum (5120) at org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.init(FileUploadBase.java:797) at org.apache.commons.fileupload.FileUploadBase.getItemIterator(FileUploadBase.java:323) at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:341) at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:302) at org.apache.myfaces.webapp.filter.MultipartRequestWrapper.parseRequest(MultipartRequestWrapper.java:82) at org.apache.myfaces.webapp.filter.MultipartRequestWrapper.getParameter(MultipartRequestWrapper.java:163) at org.apache.myfaces.context.servlet.RequestParameterMap.getAttribute(RequestParameterMap.java:39) at org.apache.myfaces.context.servlet.AbstractAttributeMap.get(AbstractAttributeMap.java:87) at org.apache.myfaces.renderkit.html.HtmlResponseStateManager.getTreeStructureToRestore(HtmlResponseStateManager.java:183) at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreTreeStructure(JspStateManagerImpl.java:241) at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:283) at org.apache.shale.clay.faces.ClayViewHandler.restoreView(ClayViewHandler.java:286) at org.apache.shale.validator.faces.ValidatorViewHandler.restoreView(ValidatorViewHandler.java:136) at org.apache.shale.view.faces.ViewViewHandler.restoreView(ViewViewHandler.java:160) at com.irx.view.handler.CustomViewHandler.restoreView(CustomViewHandler.java:58) at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:141) at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:66) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:97) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.shale.application.faces.ShaleApplicationFilter.doFilter(ShaleApplicationFilter.java:267) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Unknown Source) -- View this message in context: http://www.nabble.com/How-to-notify
How to notify user about FileUploadBase$SizeLimitExceededException
I have configured my application to use FileUpload functionality. It is working as per design. But if I upload a file whose size is bigger than configured size, application throws following exception in the backend. is there any way, I can report the user that he has to upload a file whose size is less than configured size. INFO: user tried to upload a file that exceeded file-size limitations. org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (387257) exceeds the configured maximum (5120) at org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.init(FileUploadBase.java:797) at org.apache.commons.fileupload.FileUploadBase.getItemIterator(FileUploadBase.java:323) at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:341) at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:302) at org.apache.myfaces.webapp.filter.MultipartRequestWrapper.parseRequest(MultipartRequestWrapper.java:82) at org.apache.myfaces.webapp.filter.MultipartRequestWrapper.getParameter(MultipartRequestWrapper.java:163) at org.apache.myfaces.context.servlet.RequestParameterMap.getAttribute(RequestParameterMap.java:39) at org.apache.myfaces.context.servlet.AbstractAttributeMap.get(AbstractAttributeMap.java:87) at org.apache.myfaces.renderkit.html.HtmlResponseStateManager.getTreeStructureToRestore(HtmlResponseStateManager.java:183) at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreTreeStructure(JspStateManagerImpl.java:241) at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:283) at org.apache.shale.clay.faces.ClayViewHandler.restoreView(ClayViewHandler.java:286) at org.apache.shale.validator.faces.ValidatorViewHandler.restoreView(ValidatorViewHandler.java:136) at org.apache.shale.view.faces.ViewViewHandler.restoreView(ViewViewHandler.java:160) at com.irx.view.handler.CustomViewHandler.restoreView(CustomViewHandler.java:58) at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:141) at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:66) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:97) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.shale.application.faces.ShaleApplicationFilter.doFilter(ShaleApplicationFilter.java:267) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Unknown Source) -- View this message in context: http://www.nabble.com/How-to-notify-user-about-FileUploadBase%24SizeLimitExceededException-tp15396013p15396013.html Sent from the Shale - User mailing list archive at Nabble.com.
Re: problem using t:inputHtml
Thanks, This mapping did the trick. Lionel Port-2 wrote: I have this additional mapping !-- extension mapping for serving page-independent resources (javascript, stylesheets, images, etc.) -- filter-mapping filter-nameExtensionsFilter/filter-name url-pattern/faces/myFacesExtensionResource/*/url-pattern /filter-mapping Otherwise you maybe experiencing this issue. http://issues.apache.org/struts/browse/SHALE-409 In desperation I had to build a custom version of shale with this fix applied. On 5/21/07, AM101 [EMAIL PROTECTED] wrote: When I use t:inputHtml, I get following error: EVERE: Servlet.service() for servlet faces threw exception java.lang.IllegalStateException: ExtensionsFilter not correctly configured. Resource mapping missing. Resources cant be delivered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html at org.apache.myfaces.renderkit.html.util.AddResourceFactory.throwExtensionsFilterMissing(AddResourceFactory.java:371) at org.apache.myfaces.renderkit.html.util.AddResourceFactory.checkEnvironment(AddResourceFactory.java:352) at org.apache.myfaces.renderkit.html.util.AddResourceFactory.getInstance(AddResourceFactory.java:288) I already configured extension filter in my xml to use with file upload and file upload works fine. my web.xml looks like this: !-- File Upload Start-- filter filter-nameExtensionsFilter/filter-name !--filter-class org.apache.myfaces.component.html.util.ExtensionsFilter /filter-class-- filter-class org.apache.myfaces.webapp.filter.ExtensionsFilter /filter-class init-param param-nameuploadMaxFileSize/param-name param-value500k/param-value /init-param init-param param-nameuploadThresholdSize/param-name param-value10k/param-value /init-param /filter filter-mapping filter-nameExtensionsFilter/filter-name servlet-namefaces/servlet-name /filter-mapping filter-mapping filter-nameExtensionsFilter/filter-name url-pattern/forsalebyowner/*/url-pattern /filter-mapping filter-mapping filter-nameExtensionsFilter/filter-name url-pattern*.xml/url-pattern /filter-mapping !-- File Upload End -- -- View this message in context: http://www.nabble.com/problem-using-t%3AinputHtml-tf3789498.html#a10716626 Sent from the Shale - User mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/problem-using-t%3AinputHtml-tf3789498.html#a10800735 Sent from the Shale - User mailing list archive at Nabble.com.
fckeditor is clay html page
How can I use fckeditor in my clay html page? I would appreciate any examples. Thanks, AM -- View this message in context: http://www.nabble.com/fckeditor-is-clay-html-page-tf3789465.html#a10716563 Sent from the Shale - User mailing list archive at Nabble.com.
problem using t:inputHtml
When I use t:inputHtml, I get following error: EVERE: Servlet.service() for servlet faces threw exception java.lang.IllegalStateException: ExtensionsFilter not correctly configured. Resource mapping missing. Resources cant be delivered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html at org.apache.myfaces.renderkit.html.util.AddResourceFactory.throwExtensionsFilterMissing(AddResourceFactory.java:371) at org.apache.myfaces.renderkit.html.util.AddResourceFactory.checkEnvironment(AddResourceFactory.java:352) at org.apache.myfaces.renderkit.html.util.AddResourceFactory.getInstance(AddResourceFactory.java:288) I already configured extension filter in my xml to use with file upload and file upload works fine. my web.xml looks like this: !-- File Upload Start-- filter filter-nameExtensionsFilter/filter-name !--filter-class org.apache.myfaces.component.html.util.ExtensionsFilter /filter-class-- filter-class org.apache.myfaces.webapp.filter.ExtensionsFilter /filter-class init-param param-nameuploadMaxFileSize/param-name param-value500k/param-value /init-param init-param param-nameuploadThresholdSize/param-name param-value10k/param-value /init-param /filter filter-mapping filter-nameExtensionsFilter/filter-name servlet-namefaces/servlet-name /filter-mapping filter-mapping filter-nameExtensionsFilter/filter-name url-pattern/forsalebyowner/*/url-pattern /filter-mapping filter-mapping filter-nameExtensionsFilter/filter-name url-pattern*.xml/url-pattern /filter-mapping !-- File Upload End -- -- View this message in context: http://www.nabble.com/problem-using-t%3AinputHtml-tf3789498.html#a10716626 Sent from the Shale - User mailing list archive at Nabble.com.
Need to wrap image in a div tag but it is failing
I need to wrap an image in a div tag. I have following component in a data table inside shale clay configuration file: ## component jsfid=maLstURL extends=t:column id=maLstURL attributes set name=sortable value=false / /attributes element renderId=1 jsfid=outputText facetName=header attributes set name=value value=Picture / /attributes /element element renderId=2 jsfid=outputLink attributes set name=value value=showlistingpage.html?listing_id=#{listings.id} / /attributes element renderId=0 jsfid=outputText attributes set name=value value=div id='12345' / set name=escape value=false / /attributes /element element renderId=1 jsfid=t:graphicImage attributes set name=selectedRowIndex value=#{rowIndex} / set name=url value=/resources/uploadedimages/#{listings.pictureUrl1} / set name=title value=Picture / set name=width value=150 / set name=height value=110 / set name=border value=0 / /attributes /element element renderId=2 jsfid=outputText attributes set name=value value=/div / set name=escape value=false / /attributes /element /element /component ## But It throws following exception: * SEVERE: Parse Fatal Error at line 1259 column 31: The value of attribute value associated with an element type set must not contain the '' character. org.xml.sax.SAXParseException: The value of attribute value associated with an element type set must not contain the '' character. at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:215) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316) at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1438) at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanAttributeValue(XMLScanner.java:929) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanAttribute(XMLDocumentFragmentScannerImpl.java:1033) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:851) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242) at org.apache.commons.digester.Digester.parse(Digester.java:1745) at org.apache.shale.clay.config.ClayXmlParser.loadConfigFile(ClayXmlParser.java:138) at org.apache.shale.clay.config.beans.ComponentConfigBean$WatchDog.refresh(ComponentConfigBean.java:1292) at org.apache.shale.clay.config.beans.ComponentConfigBean.loadConfigFiles(ComponentConfigBean.java:231) at org.apache.shale.clay.config.beans.ComponentConfigBean.init(ComponentConfigBean.java:179) at org.apache.shale.clay.config.ClayConfigureListener.contextInitialized(ClayConfigureListener.java:85) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763) at
How to use rowOnClick of t:dataTable
I am using t:dataTable component. I want to display details of item in the row when user clicks on the row. For example I am in wish list page and I want to show details of items in the wish list when user clicks on the row. My 'wish list' and 'wish list show detail' page are two different page. 'wish list show detail' page requires wishlistitem_databaseId in the request. -- View this message in context: http://www.nabble.com/How-to-use-rowOnClick-of-t%3AdataTable-tf3712284.html#a10384225 Sent from the Shale - User mailing list archive at Nabble.com.
Re: SV: SV: SV: SV: How to initialize a bean before initial display
(ClayViewHandler.java:450) at org.apache.shale.view.faces.ViewViewHandler.renderView(ViewViewHandler.java:147) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138) ### Hermod Opstvedt wrote: Hi What is the name of the view and bean? Example: If yor view is /lists.jsf the the bean must be defined as lists If your view is /member/info.jsf, then the bean must be defined as member$info And so on. Hermod -Opprinnelig melding- Fra: AM101 [mailto:[EMAIL PROTECTED] Sendt: 27. april 2007 16:50 Til: user@shale.apache.org Emne: Re: SV: SV: SV: How to initialize a bean before initial display My backing bean is request-scoped and it is mapped in faces-config.xml. But I am using ADF and now I want to use shale going forward. I added shale-application.jar, shale-core.jar and shale-view.jar to my existing library. I also modified web.xml and added following entries: !-- Shale Application Controller Filter -- filter filter-nameshale/filter-name filter-class org.apache.shale.application.faces.ShaleApplicationFilter /filter-class /filter !-- Shale Application Controller Filter Mapping -- filter-mapping filter-nameshale/filter-name url-pattern/*/url-pattern /filter-mapping I don't get any exception at startup and My backing bean is extending AbstractViewController but init() method is never called by the controller. Hermod Opstvedt wrote: Hi If its not called, you must have placed it in session-scope (it must be request-scoped), or it is not mapped against the view in faces-config.xml Hermod -Opprinnelig melding- Fra: AM101 [mailto:[EMAIL PROTECTED] Sendt: 26. april 2007 23:54 Til: user@shale.apache.org Emne: Re: SV: SV: How to initialize a bean before initial display Thanks for your reply. I am now extending AbstractViewController and implemented the init() method but this method is never called. do I need to configure anything? I am new to Shale, I appreciate your help. Hermod Opstvedt wrote: Hi In that case you can initialize it in the init method or prerender method of the viewcontroller. Hermod -Opprinnelig melding- Fra: AM101 [mailto:[EMAIL PROTECTED] Sendt: 26. april 2007 21:22 Til: user@shale.apache.org Emne: Re: SV: How to initialize a bean before initial display It is a view backing bean. Hermod Opstvedt wrote: Hi What type of bean? Is it ViewController or what? Hermod -Opprinnelig melding- Fra: AM101 [mailto:[EMAIL PROTECTED] Sendt: 26. april 2007 17:30 Til: user@shale.apache.org Emne: How to initialize a bean before initial display How do I initialize a bean before initial display? I want to populate bean values from database table. I can do it in the constructor, phase listener or by adding additional getter method to initialize the bean. But is there any better way? -- View this message in context: http://www.nabble.com/How-to-initialize-a-bean-before-initial-display-tf3652 365.html#a10202810 Sent from the Shale - User mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/How-to-initialize-a-bean-before-initial-display-tf3652 365.html#a10206968 Sent from the Shale - User mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/How-to-initialize-a-bean-before-initial-display-tf3652 365.html#a10209745 Sent from the Shale - User mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/How-to-initialize-a-bean-before-initial-display-tf3652 365.html#a10220616 Sent from the Shale - User mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/How-to-initialize-a-bean-before-initial-display-tf3652365.html#a10223552 Sent from the Shale - User mailing list archive at Nabble.com.
How to initialize a bean before initial display
How do I initialize a bean before initial display? I want to populate bean values from database table. I can do it in the constructor, phase listener or by adding additional getter method to initialize the bean. But is there any better way? -- View this message in context: http://www.nabble.com/How-to-initialize-a-bean-before-initial-display-tf3652365.html#a10202810 Sent from the Shale - User mailing list archive at Nabble.com.
Re: SV: How to initialize a bean before initial display
It is a view backing bean. Hermod Opstvedt wrote: Hi What type of bean? Is it ViewController or what? Hermod -Opprinnelig melding- Fra: AM101 [mailto:[EMAIL PROTECTED] Sendt: 26. april 2007 17:30 Til: user@shale.apache.org Emne: How to initialize a bean before initial display How do I initialize a bean before initial display? I want to populate bean values from database table. I can do it in the constructor, phase listener or by adding additional getter method to initialize the bean. But is there any better way? -- View this message in context: http://www.nabble.com/How-to-initialize-a-bean-before-initial-display-tf3652 365.html#a10202810 Sent from the Shale - User mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/How-to-initialize-a-bean-before-initial-display-tf3652365.html#a10206968 Sent from the Shale - User mailing list archive at Nabble.com.
Re: SV: SV: How to initialize a bean before initial display
Thanks for your reply. I am now extending AbstractViewController and implemented the init() method but this method is never called. do I need to configure anything? I am new to Shale, I appreciate your help. Hermod Opstvedt wrote: Hi In that case you can initialize it in the init method or prerender method of the viewcontroller. Hermod -Opprinnelig melding- Fra: AM101 [mailto:[EMAIL PROTECTED] Sendt: 26. april 2007 21:22 Til: user@shale.apache.org Emne: Re: SV: How to initialize a bean before initial display It is a view backing bean. Hermod Opstvedt wrote: Hi What type of bean? Is it ViewController or what? Hermod -Opprinnelig melding- Fra: AM101 [mailto:[EMAIL PROTECTED] Sendt: 26. april 2007 17:30 Til: user@shale.apache.org Emne: How to initialize a bean before initial display How do I initialize a bean before initial display? I want to populate bean values from database table. I can do it in the constructor, phase listener or by adding additional getter method to initialize the bean. But is there any better way? -- View this message in context: http://www.nabble.com/How-to-initialize-a-bean-before-initial-display-tf3652 365.html#a10202810 Sent from the Shale - User mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/How-to-initialize-a-bean-before-initial-display-tf3652 365.html#a10206968 Sent from the Shale - User mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/How-to-initialize-a-bean-before-initial-display-tf3652365.html#a10209745 Sent from the Shale - User mailing list archive at Nabble.com.
valueChangeListener is breaking form submit
I have two selectOneMenu components (lstType and lstSubType) in my form. I want to change values in lstSubType when value in lstType changes. I am using valueChangeListener as follwong: !-- Type -- component jsfid=lstType extends=t:selectOneMenu id=lstType allowBody=false attributes set name=value value=[EMAIL PROTECTED] / set name=required value=true / !--set name=onclick value=submit() /-- set name=onchange value=submit() / set name=valueChangeListener value=[EMAIL PROTECTED] / /attributes element renderId=0 jsfid=selectItem attributes set name=itemLabel value=Select a type ... / set name=itemValue value= / /attributes /element element renderId=1 jsfid=selectItem attributes set name=itemLabel value=A / set name=itemValue value=A / /attributes /element element renderId=2 jsfid=selectItem attributes set name=itemLabel value=B / set name=itemValue value=B / /attributes /element /component !-- Sub Type -- component jsfid=lstSubType extends=t:selectOneMenu id=lstSubType allowBody=false attributes set name=value value=[EMAIL PROTECTED] / set name=required value=false / set name=disabled value=[EMAIL PROTECTED] / /attributes element renderId=0 jsfid=selectItem attributes set name=itemLabel value=Select a sub type ... / set name=itemValue value= / /attributes /element element renderId=1 jsfid=selectItems attributes set name=value value=[EMAIL PROTECTED] / /attributes /element /component Everything works fine except that when I submit the form setter of sub type is never called and always remains the same . Please let me know what is missing? Thanks, AM -- View this message in context: http://www.nabble.com/valueChangeListener-is-breaking-form-submit-tf3622758.html#a10116203 Sent from the Shale - User mailing list archive at Nabble.com.
Re: valueChangeListener is breaking form submit
When I remove valueChangeListener , setter is called. But I need to use valueChangeListener. AM101 wrote: I have two selectOneMenu components (lstType and lstSubType) in my form. I want to change values in lstSubType when value in lstType changes. I am using valueChangeListener as follwong: !-- Type -- component jsfid=lstType extends=t:selectOneMenu id=lstType allowBody=false attributes set name=value value=[EMAIL PROTECTED] / set name=required value=true / !--set name=onclick value=submit() /-- set name=onchange value=submit() / set name=valueChangeListener value=[EMAIL PROTECTED] / /attributes element renderId=0 jsfid=selectItem attributes set name=itemLabel value=Select a type ... / set name=itemValue value= / /attributes /element element renderId=1 jsfid=selectItem attributes set name=itemLabel value=A / set name=itemValue value=A / /attributes /element element renderId=2 jsfid=selectItem attributes set name=itemLabel value=B / set name=itemValue value=B / /attributes /element /component !-- Sub Type -- component jsfid=lstSubType extends=t:selectOneMenu id=lstSubType allowBody=false attributes set name=value value=[EMAIL PROTECTED] / set name=required value=false / set name=disabled value=[EMAIL PROTECTED] / /attributes element renderId=0 jsfid=selectItem attributes set name=itemLabel value=Select a sub type ... / set name=itemValue value= / /attributes /element element renderId=1 jsfid=selectItems attributes set name=value value=[EMAIL PROTECTED] / /attributes /element /component Everything works fine except that when I submit the form setter of sub type is never called and always remains the same . Please let me know what is missing? Thanks, AM -- View this message in context: http://www.nabble.com/valueChangeListener-is-breaking-form-submit-tf3622758.html#a10116210 Sent from the Shale - User mailing list archive at Nabble.com.
How to upload a file in clay
I want to use input type=file jsfid=myfileUploadId in my html file and I want to define a component for jsfid 'myfileUploadId' in clay configuration xml file. can anybody please tell me hot to do that. Thanks, AM -- View this message in context: http://www.nabble.com/How-to-upload-a-file-in-clay-tf3560357.html#a9942876 Sent from the Shale - User mailing list archive at Nabble.com.