Re: commandlink not working with sandbox subform
Hi,I use without any errors, the nly differece from your configuration is i use facelets.Could you check your extension filter configuration, just an idea..regards... On 8/13/06, Mak Nern Fatt Melvin <[EMAIL PROTECTED]> wrote: Hi, I am using sandBox subform to handle multiple forms in a single html document. Everything works well really well except when it comes to the the use of commandlink. I find that commandlink won't work when subform is used. My simplified codes is as follows: I got the following _javascript_ error: caiaLicenceForm:_idcl is null or not an object where "caiaLicenceForm" is my main form id. I am using the following jar files: 1) myfaces-api-1.1.5-SNAPSHOT.jar 2) myfaces-impl-1.1.5-SNAPSHOT.jar 3) tomahawk-1.1.5-SNAPSHOT.jar 4) tomahawk-sandbox-1.1.5-SNAPSHOT.jar Is there anyone who has used commandlink with sandBox subform and has no problem with it? Need a reply from anyone. Thanks in advance. -- Murat HAZERhttp://www.projedunyasi.org
commandlink not working with sandbox subform
Hi, I am using sandBox subform to handle multiple forms in a single html document. Everything works well really well except when it comes to the the use of commandlink. I find that commandlink won't work when subform is used. My simplified codes is as follows: I got the following _javascript_ error: caiaLicenceForm:_idcl is null or not an object where "caiaLicenceForm" is my main form id. I am using the following jar files: 1) myfaces-api-1.1.5-SNAPSHOT.jar 2) myfaces-impl-1.1.5-SNAPSHOT.jar 3) tomahawk-1.1.5-SNAPSHOT.jar 4) tomahawk-sandbox-1.1.5-SNAPSHOT.jar Is there anyone who has used commandlink with sandBox subform and has no problem with it? Need a reply from anyone. Thanks in advance.
Re: Meeting/Get togethe in San Francisco
ok... so far ... any ideas for a nice place? Inside of SF ? On 7/21/06, Matthias Wessendorf <[EMAIL PROTECTED]> wrote: Ok, so a lot's of people are interested in something like that. Does anybody know a good place in Palo Alto? I am pretty new to this area, also I am ok with a meeting in SF. -Matthias On 7/17/06, Thomas Dudziak <[EMAIL PROTECTED]> wrote: > On 7/16/06, Matthias Wessendorf <[EMAIL PROTECTED]> wrote: > > > at the ApacheCon Europe I heard from some people that they moved (or > > about to move) to San Francisco / Bay Area. Or still live here :) > > > > Any one interested in a meeting or get-together ? > > Sure thing ! I'm in Palo Alto for a couple of weeks, so meeting > somewhere in the Bay Area would be great. > > Tom > -- Matthias Wessendorf further stuff: blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com -- Matthias Wessendorf further stuff: blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com
Re: creating 'empty' select items
Hi,Another solution will be; CagatayOn 8/12/06, Glauco Pimentel Gomes < [EMAIL PROTECTED]> wrote:You can do this: SelectItems[] items = new SelectItems[] { new SelectItem("", "(none)"),new SelectItem(1, "one"),... };Glauco P. GomesLaurie Harper escreveu:> Mike Kienenberger wrote:>> If I recall, one of the constructors does allow you to inconsistently >> pass in a null.>> Unfortunately not, at least in 1.1.1 (the version I'm currently> using); the only constructor that doesn't have the check is the> no-args constructor :-)> >> And in JSF 1.2, I just saw a change-request go through to allow nulls.>> Ah, so this is a spec-enforced limitation?>>> However, I use a flag value. [...] In my (auto-generated) converters, [...]>> That works, provided you're willing to define a converter for every> use of select items... I'd rather avoid having to add a bunch of > converters just to allow this :-( Unfortunately, it sounds like the> only way to do that may be to write a custom component, which seems a> bit crazy...>> I'll have a look at whether there's support for this in Tomahawk or > Trinidad first, though.>> L.>>> On 8/12/06, Laurie Harper <[EMAIL PROTECTED]> wrote:>>> How do I create an 'empty' SelectItem? I'd like to present a >>> selectOneChoice which allows the target model value to be set to>>> 'null'.>>> But I can't create a 'null' SelectItem:>>SelectItems[] items = new SelectItems[] { >>> new SelectItem(null, "(none)"),>>> new SelectItem(1, "one"),>>> ...>>>};>> The SelectItems constructor has an explicit check for a null value or >>> label. Short of inventing a 'flag' value for every option list and>>> using>>> a custom converter to translate it back to 'null' during apply values,>>> how do I get an 'empty' item in my SelectItems array? >> L.>>___Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular. Registre seu aparelho agora! http://br.mobile.yahoo.com/mailalertas/
Re: creating 'empty' select items
You can do this: SelectItems[] items = new SelectItems[] { new SelectItem("", "(none)"), new SelectItem(1, "one"), ... }; Glauco P. Gomes Laurie Harper escreveu: Mike Kienenberger wrote: If I recall, one of the constructors does allow you to inconsistently pass in a null. Unfortunately not, at least in 1.1.1 (the version I'm currently using); the only constructor that doesn't have the check is the no-args constructor :-) And in JSF 1.2, I just saw a change-request go through to allow nulls. Ah, so this is a spec-enforced limitation? However, I use a flag value. [...] In my (auto-generated) converters, [...] That works, provided you're willing to define a converter for every use of select items... I'd rather avoid having to add a bunch of converters just to allow this :-( Unfortunately, it sounds like the only way to do that may be to write a custom component, which seems a bit crazy... I'll have a look at whether there's support for this in Tomahawk or Trinidad first, though. L. On 8/12/06, Laurie Harper <[EMAIL PROTECTED]> wrote: How do I create an 'empty' SelectItem? I'd like to present a selectOneChoice which allows the target model value to be set to 'null'. But I can't create a 'null' SelectItem: SelectItems[] items = new SelectItems[] { new SelectItem(null, "(none)"), new SelectItem(1, "one"), ... }; The SelectItems constructor has an explicit check for a null value or label. Short of inventing a 'flag' value for every option list and using a custom converter to translate it back to 'null' during apply values, how do I get an 'empty' item in my SelectItems array? L. ___ Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular. Registre seu aparelho agora! http://br.mobile.yahoo.com/mailalertas/
Re: How to submit multiple forms
Mike Kienenberger wrote: On 8/11/06, Mak Nern Fatt Melvin <[EMAIL PROTECTED]> wrote: Thanks for you quick reply again. I am trying sandbox and is working very well but for one problem. My commandlink is not working at all! My commandButton works well but not for commandLink. I got the following error: caiaLicenceForm:_idcl is null or not an object where "caiaLicenceForm" is my form name. Can you shed some light on this as well? Thanks alot! No, I don't have any specific information to add on this. Some general things you can try: Use t:commandLink instead of h:commandLink. Search the jira issue tracker for commandLink issues. Search the mailing list archives for commandLink issues. Create a small example and post it to the mailing list and/or open a JIRA issue with a small example demonstrating the problem. Use last version from night builds. Cristi
Tomahawk t:column groupBy with exception under an empty data table
I use t:column under t:dataTable, If there is no row in this datatable, ArrayIndexOutOfBoundsException occured. If there are some datas in dataTable, it works fine. Anyone have this proble? I use Myfaces1.1.3 + Tomahawk1.1.3+Facelete1.11 -- Anthony Hong
[tomahawk] tree2 imageLocation not loading defined images
Hi all, I am having problem trying to use my own tree images, I have my own nav-minus.gif and nav-plus.gif in folder images/tree. The problem is even when I define the imageLocation attribute on tree2 tag, it still renders the default images from tomahawk. below is the code My env is myfaces 1.1.3, tomahawk 1.1.2, facelets 1.1.11 here is web.xml section Faces Servlet javax.faces.webapp.FacesServlet 1 Faces Servlet *.faces javax.faces.STATE_SAVING_METHOD server . MyFacesExtensionsFilter org.apache.myfaces.webapp.filter.ExtensionsFilter Set the size limit for uploaded files. Format: 10 - 10 bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB maxFileSize 20m MyFacesExtensionsFilter Faces Servlet MyFacesExtensionsFilter /faces/myFacesExtensionResource/* Thanks, Bill Disclaimer: This electronic mail and any attachments are confidential and may be privileged. If you are not the intended recipient, please notify the sender immediately by replying to this email, and destroy all copies of this email and any attachments. Thank you.
Re: restoring view
On 8/12/06, william kanej <[EMAIL PROTECTED]> wrote: If page1.jp was rendered and a user submits a form in Page1,jsp, will view the tree that was used to render the response for Page1.jsp be retrieved by jsf upon in restore view stage or will a new view tree be created for the request? If view tree of that was used to render the response is retrieved instead of being created will each of the components in the view tree have the local state that was used to render Page1.jsp?Regrds Effectively yes to both, provided you're returning null from your action method, indicating that you are staying on the same JSF page. It's possible that restoreState might create an identical tree with identical state rather than reusing the same object (depends on the implementation and whether you're using server-side state saving or client-side state saving). But for end-user purposes, this tree is identical.
Re: Unstable
thanks you Mike and Murat, upgrading to the 1.1.4 snapshot solved the problem for me regards Dani
Re: Unstable
On 8/12/06, Daniel Haensse <[EMAIL PROTECTED]> wrote: Dear list, I'm using myfaces-core 1.1.2 and tomahawk 1.1.3. Reloading the main page 8 times gives me the following error. Any hints to isolate the problem? I used myfaces-core 1.1.3 before, but this was not stable either ( http://www.mail-archive.com/users@myfaces.apache.org/msg25703.html ) looks somehow related to me, but I don't have a deeper insight into the underlying mechanisms. Before MyFaces 1.1.3 (core and tomahawk), all versions had to have the same version numbers. So if you want to use 1.1.2, you must use 1.1.2 for all jar files. Starting at 1.1.3 (and after), you can mix the MyFaces core files with any MyFaces Tomahawk files.So you can use Tomahawk 1.1.3 with MyFaces api/impl 1.1.4 or 1.1.5. I'd recommend at minimum upgrading to the 1.1.4 release candidate currently available at this url: http://people.apache.org/builds/myfaces/core-1.1.x/ With any luck this will become the official 1.1.4 within a week. I'm using the 1.1.4 release candidate and a Tomahawk 1.1.5 snapshot for what it's worth.
Re: Unstable
Hi,I had same problems, (if you use facelets you'll take duplicate ID errors), i migrated to myfaces 1.1.5 and tomahawk 1.1.5 and now i don't have previous errors.regards... On 8/12/06, Daniel Haensse <[EMAIL PROTECTED]> wrote: Dear list,I'm using myfaces-core 1.1.2 and tomahawk 1.1.3. Reloading the main page 8times gives me the following error. Any hints to isolate the problem?I used myfaces-core 1.1.3 before, but this was not stable either ( http://www.mail-archive.com/users@myfaces.apache.org/msg25703.html )looks somehow related to me, but I don't have a deeper insight into the underlying mechanisms.regardsDani12.08.2006 15:10:04 org.apache.catalina.core.StandardWrapperValve invokeSCHWERWIEGEND: Servlet.service() for servlet Faces Servlet threw exceptionjava.lang.NullPointerException : null values not allowedatorg.apache.commons.collections.map.AbstractReferenceMap.put(AbstractReferenceMap.java:251)atorg.apache.myfaces.application.jsp.JspStateManagerImpl$SerializedViewCollection.add (JspStateManagerImpl.java:717)atorg.apache.myfaces.application.jsp.JspStateManagerImpl.saveSerializedViewInServletSession(JspStateManagerImpl.java:493)atorg.apache.myfaces.application.jsp.JspStateManagerImpl.saveSerializedView (JspStateManagerImpl.java:332)atorg.apache.myfaces.renderkit.html.util.DummyFormUtils.writeDummyForm(DummyFormUtils.java:153)atorg.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.writeCodeBeforeBodyEnd (ExtensionsPhaseListener.java:112)atorg.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.getCodeBeforeBodyEnd(ExtensionsPhaseListener.java:96)atorg.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.renderCodeBeforeBodyEnd (ExtensionsPhaseListener.java:86)atorg.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.afterPhase(ExtensionsPhaseListener.java:66)atorg.apache.myfaces.lifecycle.LifecycleImpl.informPhaseListenersAfter (LifecycleImpl.java:519)at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:374)at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:252)atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)atorg.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java :144)atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java :173)atorg.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)atorg.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)atorg.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)atorg.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105)atorg.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)atorg.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)atorg.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) atorg.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)atorg.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(Thread.java:595)-- Murat HAZER http://www.projedunyasi.org
Unstable
Dear list, I'm using myfaces-core 1.1.2 and tomahawk 1.1.3. Reloading the main page 8 times gives me the following error. Any hints to isolate the problem? I used myfaces-core 1.1.3 before, but this was not stable either ( http://www.mail-archive.com/users@myfaces.apache.org/msg25703.html ) looks somehow related to me, but I don't have a deeper insight into the underlying mechanisms. regards Dani 12.08.2006 15:10:04 org.apache.catalina.core.StandardWrapperValve invoke SCHWERWIEGEND: Servlet.service() for servlet Faces Servlet threw exception java.lang.NullPointerException: null values not allowed at org.apache.commons.collections.map.AbstractReferenceMap.put(AbstractReferenceMap.java:251) at org.apache.myfaces.application.jsp.JspStateManagerImpl$SerializedViewCollection.add(JspStateManagerImpl.java:717) at org.apache.myfaces.application.jsp.JspStateManagerImpl.saveSerializedViewInServletSession(JspStateManagerImpl.java:493) at org.apache.myfaces.application.jsp.JspStateManagerImpl.saveSerializedView(JspStateManagerImpl.java:332) at org.apache.myfaces.renderkit.html.util.DummyFormUtils.writeDummyForm(DummyFormUtils.java:153) at org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.writeCodeBeforeBodyEnd(ExtensionsPhaseListener.java:112) at org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.getCodeBeforeBodyEnd(ExtensionsPhaseListener.java:96) at org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.renderCodeBeforeBodyEnd(ExtensionsPhaseListener.java:86) at org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.afterPhase(ExtensionsPhaseListener.java:66) at org.apache.myfaces.lifecycle.LifecycleImpl.informPhaseListenersAfter(LifecycleImpl.java:519) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:374) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138) 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:144) 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.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524) 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(Thread.java:595)
How to add child to node in tree2?
Hi all, I have a tree2 component with checkboxes on nodes. And a add button in my form and want to add a childeren to checked node when I press ADD button. I do not know how to know which node is checked and how to generate the code for adding child node. Your help is so appreciated friends. -Thanks -- View this message in context: http://www.nabble.com/How-to-add-child-to-node-in-tree2--tf2095094.html#a5775288 Sent from the MyFaces - Users forum at Nabble.com.