Re: MyFaces 1.1.5 and JBoss 4.2.2.GA
take a look here; http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossWithJSFCDDL especially this line; context-param param-nameorg.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL/param-name param-valuefalse/param-value /context-param regards On Nov 21, 2007 9:21 PM, Érico Teixeira [EMAIL PROTECTED] wrote: I'm trying to deploy an application using MyFaces 1.1.5 in JBoss 4.2.2.GA When I deploy the application I get the following error : java.lang.ClassCastException: org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener Can some one help me on this ? -- Never miss a thing. Make Yahoo your homepage.http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs -- Murat HAZER http://www.projedunyasi.org
Re: JSF and dependency injection
could you try to add sessionScope.address ? managed-bean managed-bean-nameperson/managed-bean-name managed-bean-classx.y.Person/managed-bean-class managed-bean-scopesession/managed-bean-scope managed-property property-nameadress/property-name property-classx.y.z.Adress/property-class value#{sessionScope.adress}/value /managed-property /managed-bean and if you use seam why do u need bean definitions in faces-config.xml like this? On 10/11/07, lmk [EMAIL PROTECTED] wrote: No it's not a singleton, adress bean is a session bean, and I need to use it one the person bean..I should have one instance of per session. the purpose here is to set adress bean properties on the person bean ..using dependency injection.. JSF is an ioC container..so its not necessary to use spring just for that !!! logancillo wrote: I am thinking about understanding that what you need is that the bean person is a singleton. I believe you need spring with jsf. 2007/10/11, lmk [EMAIL PROTECTED]: Hello.. I'd juste understand how JSF IOC container works..i tried to do something like .. managed-bean managed-bean-nameperson/managed-bean-name managed-bean-classx.y.Person/managed-bean-class managed-bean-scopesession/managed-bean-scope managed-property property-nameadress/property-name property-classx.y.z.Adress/property-class value#{adress}/value /managed-property /managed-bean managed-bean managed-bean-nameadress/managed-bean-name managed-bean-classx.y.z.Adress/managed-bean-class managed-bean-scopesession/managed-bean-scope managed-property property-name../property-name property-class.../property-class value#{adress}/value /managed-property /managed-bean On the Person bean when I set adress value, it's not the same instance of the adress on the session..I should do #{person.adress.xx} to get adress values on the jsf pages.. how can i share identical instance for the bean..??? using annotation and seam we can write on the Person bean: @In(adress) private Adress adress; thanks .. -- View this message in context: http://www.nabble.com/JSF-and-dependency-injection-tf4605688.html#a13151202 Sent from the MyFaces - Users mailing list archive at Nabble.com. -- Alonso Isidoro Roman. -- View this message in context: http://www.nabble.com/JSF-and-dependency-injection-tf4605688.html#a13151716 Sent from the MyFaces - Users mailing list archive at Nabble.com. -- Murat HAZER http://www.projedunyasi.org
Re: [TRINIDAD] Trinidad and Seam
http://www.mail-archive.com/users@myfaces.apache.org/msg40316.html On 8/3/07, Kito D. Mann [EMAIL PROTECTED] wrote: What kind of problems did you run into? *From:* Ulath (AKA: Murat HAZER) [mailto:[EMAIL PROTECTED] *Sent:* Friday, August 03, 2007 12:32 PM *To:* MyFaces Discussion; [EMAIL PROTECTED] *Subject:* Re: [TRINIDAD] Trinidad and Seam we tried to use but we encountered a lot of problems and gave up :( On 8/3/07, *Kito D. Mann* [EMAIL PROTECTED] wrote: Is anyone out there using Trinidad with JBoss Seam? ~~~ Kito D. Mann - Author, JavaServer Faces in Action http://www.virtua.com - JSF/Java EE consulting, training, and mentoring http://www.JSFCentral.com http://www.jsfcentral.com/ - JavaServer Faces FAQ, news, and info * Sign up for the JSF Central newsletter! http://oi.vresp.com/?fid=ac048d0e17 * -- Murat HAZER http://www.projedunyasi.org
[Trinidad]a4j:command button in tr:table (seam managed environment)
hi, used libs: seam 1.2.1GA, trinidad 1.2.1, jsf 1.2-b19, a4jsf 1.1.1 , a4j-trinidad 1.0.5 and ajax4jsf filter configured first i have a tr:table with DataModel and DataModelSelection (seam annotations), when I use standard h:commandLink in this table, DataModelSelection value is set wrong and actionListener is called multiple times, if I use a4j:commandLink, again DataModelSelection value is set wrong and actionListener is called multiple times too and I get an exception, if I use tr:commandLink all works as expected... what can be the problem? how should i do in order to a4j components with trinidad components... regards -- Murat HAZER
Re: {Disarmed} Re: required=true?
you could try sandbox subForm component for partial validation, herehttp://www.irian.at/myfaces-sandbox/subForm.jsfis an example.. regards On 4/15/07, Bjørn T Johansen [EMAIL PROTECTED] wrote: That sound like a good idea but I still get the same error (Input value is required)... I have the following radio button code..: h:selectOneRadio value=#{orderBean.ordre.logFortrykk.mottattDokumentS} f:selectItem itemLabel=OK itemValue=Yes/ f:selectItem itemLabel=Ikke OK itemValue=No/ s:submitOnEvent for=btnSubmit event=click / /h:selectOneRadio And text field...: h:inputTextarea cols=100 rows=7 required=#{ orderBean.ordre.logFortrykk.mottattDokumentS == 'No'} ... / But when I click the OK radiobutton, it still complains about the required field BTJ On Sun, 15 Apr 2007 10:43:04 -0500 Qunming Yuan \(Saul\) [EMAIL PROTECTED] wrote: Hi, Just a thought, can you dynamically control the requiredness of your text field base on the choice of your radio button, something like: required=${backingBean.radiobuttonValue} This way whether the text box is render or required is in sync with the choice of your radio button. Saul - Original Message - From: Bjørn T Johansen To: [EMAIL PROTECTED] Sent: Sunday, April 15, 2007 10:23 AM Subject: required=true? I have small problem and I was wondering how people get around this... I have a radiobutton with yes or no as the two choices that decides if a text field should be rendered or not (choosing yes or no will submit the page)... Also if this text field is rendered, it is a mandatory field and need some input.. If I use required = true on the text field, then when the text field is rendered and I choose the other choice of the radiobuttons (that would hide the text field again), I get an error saying that an input is required in the text field (which is normally correct but not this time, because I am just trying to hide the text field again) If I use immediate = true, then the value of the radiobutton is not set and the text field is never rendered... I guess this is a normal problem but not sure how to best solve this? Regards, BTJ -- --- Bjørn T Johansen [EMAIL PROTECTED] --- Someone wrote: I understand that if you play a Windows CD backwards you hear strange Satanic messages To which someone replied: It's even worse than that; play it forwards and it installs Windows --- Spam/Virus scanning by CanIt Pro For more information see http://www.kgbinternet.com/SpamFilter.htm To control your spam filter, log in at http://filter.kgbinternet.com E-mail message checked by PC Tools Spyware Doctor (5.0.0.179) Database version: 5.07080 http://www.pctools.com/spyware-doctor/ E-mail message checked by PC Tools Spyware Doctor (5.0.0.179) Database version: 5.07080 http://www.pctools.com/spyware-doctor/ -- Murat HAZER http://www.projedunyasi.org
Re: general myfaces performance question
Does trinidad have any incompatibilities with tomahawk components and facelets? On 11/16/06, Matthias Wessendorf [EMAIL PROTECTED] wrote: get a student :) On 11/16/06, Martin Marinschek [EMAIL PROTECTED] wrote: No, I don't. Time for the example app being ported ;) regards, Martin On 11/16/06, Matthias Wessendorf [EMAIL PROTECTED] wrote: do you have numbers for that better than struts ? On 11/16/06, Martin Marinschek [EMAIL PROTECTED] wrote: He should definitely take the Trinidad component set for high performance requirements, with this, you're in the same region as Struts for performance (probably better - cause if you do it yourself, you won't get the same optimized state-saving as is implemented in Trinidad). regards, Martin On 11/15/06, Werner Punz [EMAIL PROTECTED] wrote: Ok, before anyone is falling down the chair because I ask this question. Here we go. A friend of mine is looking for a struts replacement framework covering extranet sites. Well here we go, my experience with jsf in the past is, that it was not too suitable for extranet, but is a perfect choice for intranet sites. The reason, higher overhead than plain lean frameworks only covering a minimalistic approach. The situation has changed however, facelets give a huge performance boost due to good caching. But I lack experience, I know several bigger intranet installations, but extranet is a fully different beast. So my question how good does jsf scale nowadays in those cases. Does anyone have any experience or samples? -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces -- Matthias Wessendorf http://tinyurl.com/fmywh further stuff: blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces -- Matthias Wessendorf http://tinyurl.com/fmywh further stuff: blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com -- Murat HAZER http://www.projedunyasi.org
Re: two additional jsf complibs opensourced
excellentOn 11/14/06, Werner Punz [EMAIL PROTECTED] wrote: Icefaces has been opensourced under the MPL today and last weeka really excellent ajax based complib has been opensourced under LGPL:rcfaces:here are the links:RCFACES: http://www.rcfaces.org/ICEFACES: http://icefaces.org/-- Murat HAZERhttp://www.projedunyasi.org
Re: JSCookMenu Stylesheet and Facelets Problem
I had the same problem and following jscookmenu definition solved my problem... t:jscookMenu layout=vbr theme=ThemeOffice org.apache.myfaces.STYLE_LOCATION=/faces/theme/jscookmenu/ t:navigationMenuItems value=#{navigationMenu.menu} / /t:jscookMenuregardsOn 9/14/06, Tom Innes [EMAIL PROTECTED] wrote: I am trying to override the Stylesheet on JsCookMenu. I am using Facelets. I have tried the work around to the bug referenced here https://issues.apache.org/jira/browse/TOMAHAWK-575 I have taken the theme.css from 1.15 Snapshot of about a month ago and placed it in a new file location under my project. Using the above workaround without even changing the Style Sheet it displays differently. For Instance, 1. No Background Colors on the Main Menu 2. Menu Items are not displayed to the right 3. Menu Items are always Displayed, etc I am basically using the Dynamic Menu as Referenced here http://wiki.apache.org/myfaces/Dynamic_Menus_with_JSCookMenu And my Page Looks Like t:jscookMenu layout=hbr theme=ThemeOffice org.apache.myfaces.STYLE_LOCATION=#{facesContext.externalContext.requestContextPath}/pages/css/jscookmenu/ThemeOffice/theme.css !-- Availaible jscookMenu themes: ThemeIE, ThemeMiniBlack,ThemeOffice, ThemePanel Availaible jscookMenu layout: hbr, hbl, hur, hul, vbr,vbl, vur, vul respect to Heng Yuan http://www.cs.ucla.edu/~heng/JSCookMenu -- t:navigationMenuItems id=navigationMenuItemsId value=#{dynamicMenu.navigationItems} / /t:jscookMenu Any Suggestions on how I can override the StyleSheet? Tom Ps the Following needs to be added to the Wiki to get Facelets to work with JSCookMenu and Dynamic Menu's http://wiki.apache.org/myfaces/Use_Facelets_with_Tomahawk tag tag-namenavigationMenuItems/tag-name component component-type javax.faces.SelectItems /component-type /component /tag -- Murat HAZERhttp://www.projedunyasi.org
Re: JSCookMenu Stylesheet and Facelets Problem
I put all of the images, _javascript_s, css's to the overrriden STYLE_LOCATION path. So i only override STYLE_LOCATION. i don't see any warnings in the log files, what is the version of the facelets? On 9/15/06, Tom Innes [EMAIL PROTECTED] wrote: Thanks Murat, I finally figured out that the STYLE_LOCATION is just that a location and that MyFaces converts it into an absolute path. What I was doing was passing an absolute path. Once I changed the location to a relative one it worked. Though it does leave a message in the log. 11:31:14,048 INFO [STDOUT] 15-Sep-2006 11:31:14 AM com.sun.facelets.tag.jsf.ComponentRule warnAttr WARNING: /pages/jsfSection.xhtml @21,20 org.apache.myfaces.STYLE_LOCATION=/pages/css/jscookmenu Property 'org.apache.myfaces.STYLE_LOCATION' is not on type: org.apache.myfaces.custom.navmenu.jscookmenu.HtmlCommandJSCookMenu I did try org.apache.myfaces._javascript__LOCATION and org.apache.myfaces.IMAGE_LOCATION and neither of those worked. Have you had any luck in overriding either of these with Facelets. Tom -Original Message- From: Murat Hazer [mailto:[EMAIL PROTECTED]] Sent: Friday, September 15, 2006 3:41 AM To: MyFaces Discussion Subject: Re: JSCookMenu Stylesheet and Facelets Problem I had the same problem and following jscookmenu definition solved my problem... t:jscookMenu layout=vbr theme=ThemeOffice org.apache.myfaces.STYLE_LOCATION=/faces/theme/jscookmenu/ t:navigationMenuItems value=#{navigationMenu.menu} / /t:jscookMenu regards On 9/14/06, Tom Innes [EMAIL PROTECTED] wrote: I am trying to override the Stylesheet on JsCookMenu. I am using Facelets. I have tried the work around to the bug referenced here https://issues.apache.org/jira/browse/TOMAHAWK-575 I have taken the theme.css from 1.15 Snapshot of about a month ago and placed it in a new file location under my project. Using the above workaround without even changing the Style Sheet it displays differently. For Instance, 1. No Background Colors on the Main Menu 2. Menu Items are not displayed to the right 3. Menu Items are always Displayed, etc I am basically using the Dynamic Menu as Referenced here http://wiki.apache.org/myfaces/Dynamic_Menus_with_JSCookMenu And my Page Looks Like t:jscookMenu layout=hbr theme=ThemeOffice org.apache.myfaces.STYLE_LOCATION=#{facesContext.externalContext.requestContextPath}/pages/css/jscookmenu/ThemeOffice/theme.css !-- Availaible jscookMenu themes: ThemeIE, ThemeMiniBlack,ThemeOffice, ThemePanel Availaible jscookMenu layout: hbr, hbl, hur, hul, vbr,vbl, vur, vul respect to Heng Yuan http://www.cs.ucla.edu/~heng/JSCookMenu -- t:navigationMenuItems id=navigationMenuItemsId value=#{dynamicMenu.navigationItems} / /t:jscookMenu Any Suggestions on how I can override the StyleSheet? Tom Ps the Following needs to be added to the Wiki to get Facelets to work with JSCookMenu and Dynamic Menu's http://wiki.apache.org/myfaces/Use_Facelets_with_Tomahawk tag tag-namenavigationMenuItems/tag-name component component-type javax.faces.SelectItems /component-type /component /tag -- Murat HAZER http://www.projedunyasi.org -- Murat HAZERhttp://www.projedunyasi.org
Re: varDetailToggler and DataTable
I solved the problem by following way;this.dataModel= new HtmlDataTable(); this.dataModel.setStyleClass(standardTable); this.dataModel.setHeaderClass(standardTable_SortHeader); this.dataModel.setFooterClass(standardTable_Footer); this.dataModel.setRowClasses(standardTable_Row1,standardTable_Row2); this.dataModel.setValue(this.yuzdeInfoList ); this.dataModel.setVar(yuzdeInfo); this.dataModel.setRowIndexVar(rowIndex); this.dataModel.setRenderedIfEmpty(true); this.dataModel.setPreserveDataModel (false);//expand all this.dataModel.expandAllDetails();but i couldn't find a way to set expandAllDetails attribute from the view...regards...On 9/13/06, Mike Kienenberger [EMAIL PROTECTED] wrote: I have not looked at the code at all, but you might need to cyclethrough the row indexes and calldataTable.setRowIndex(index)before calling whatever method expands a detail.I'm sure that if you read the code, you'll figure it out -- if it can be done by clicking, it should be doable programmically.On 9/13/06, Martin Grotzke [EMAIL PROTECTED] wrote: Hello, On Mon, 2006-08-14 at 16:28 +0300, Murat Hazer wrote: Hi, How can i define the default value of the detailStamp facets to true? All of them are hidden (false) in the beggining. Is there an attribute like expandAll and collapseAll? does anybody know how this is possible? I just tried to bind the datatable to the backing bean and invoke expandAllDetails when the datatable is set, but this has not the desired effect. Only when the detail toggler is clicked the first time the details cannot be collapsed any more after that. Any help on this topic? Thanx in advance, Cheers, Martin Can i override the toggleDetail action of the toggleDetail? regards-- Murat HAZER http://www.projedunyasi.org -- Murat HAZER
Re: varDetailToggler and DataTable
On 9/13/06, Mike Kienenberger [EMAIL PROTECTED] wrote: Do you want to create the HtmlDataTable manually?If not, then it should be sufficient for you to use a binding attribute.I don't wanna create HtmlDataTable manually but i need to do for expandAllDetails work... Maybe you can submit a patch for t:dataTable to add anexpandAllDetails attribute if one is currently missing. you're right, may be i should try to submit a patch...On 9/13/06, Murat Hazer [EMAIL PROTECTED] wrote: I solved the problem by following way; this.dataModel= new HtmlDataTable(); this.dataModel.setStyleClass(standardTable); this.dataModel.setHeaderClass(standardTable_SortHeader); this.dataModel.setFooterClass(standardTable_Footer); this.dataModel.setRowClasses(standardTable_Row1,standardTable_Row2); this.dataModel.setValue(this.yuzdeInfoList ); this.dataModel.setVar(yuzdeInfo); this.dataModel.setRowIndexVar(rowIndex); this.dataModel.setRenderedIfEmpty (true); this.dataModel.setPreserveDataModel (false); //expand all this.dataModel.expandAllDetails(); but i couldn't find a way to set expandAllDetails attribute from the view... regards... On 9/13/06, Mike Kienenberger [EMAIL PROTECTED] wrote: I have not looked at the code at all, but you might need to cycle through the row indexes and call dataTable.setRowIndex(index) before calling whatever method expands a detail. I'm sure that if you read the code, you'll figure it out -- if it can be done by clicking, it should be doable programmically. On 9/13/06, Martin Grotzke [EMAIL PROTECTED] wrote: Hello, On Mon, 2006-08-14 at 16:28 +0300, Murat Hazer wrote:Hi, How can i define the default value of the detailStamp facets to true? All of them are hidden (false) in the beggining. Is there an attribute like expandAll and collapseAll? does anybody know how this is possible? I just tried to bind the datatable to the backing bean and invoke expandAllDetails when the datatable is set, but this has not the desired effect. Only when the detail toggler is clicked the first time the details cannot be collapsed any more after that. Any help on this topic? Thanx in advance, Cheers, Martin Can i override the toggleDetail action of the toggleDetail? regards --Murat HAZERhttp://www.projedunyasi.org -- Murat HAZER-- Murat HAZERhttp://www.projedunyasi.org
Re: Selenium and Tomahawk Components
Murat, are you able to provide test case for someother components? (Matthias Wessendorf)Selenium can record t:outputlink and t:datatable and t:datalist and other simple components but i am not able to try other complex components because most of the navigation in my application is depend on jscookmenu :( so selenium can't navigate other pages If you have time and would like to contribute, we'd love to have moreSelenium tests for the MyFaces example apps. (Wendy Smoak)I think web tests(acceptance tests) are important, and selenium makes these tests very easy. I don't have too much time but if you tell me how can i contribute i'll try to allocate some time for it... Thx for repliesregards...-- Murat HAZERhttp://www.projedunyasi.org
Re: Using components ID in javascript
you can use forceIdhttp://myfaces.apache.org/tomahawk/forceId.htmlregards...On 8/27/06, Igor Laberov [EMAIL PROTECTED] wrote: Hi all,I tried to make the following:Click event on cell in the table (plain html table), should updatevalue of hidden input (which is defined as h:inputHiddenid=component_id value=#{ component.name} /) using written JSfunction.When I see in generated html code, I find that id of this hidden inputhas prefix _id7:The question is: how components IDs may be used inside of JS? Thank you.Igor Laberov.-- Murat HAZERhttp://www.projedunyasi.org
Selenium and Tomahawk Components
Hi,I am trying to test my application using selenium IDE, but selenium is not able to record/test JSCookMenu links.is there any solution?regards...-- Murat HAZER http://www.projedunyasi.org
Re: Re: Regarding jscook memu
Did you look at jscookmenu at irian website? http://www.irian.at/myfaces/jscookmenu.jsftake a look and try to make it work on your server, i believe it'll solve your problem... On 22 Aug 2006 14:37:06 -, sandip anandrao patil [EMAIL PROTECTED] wrote: Thanks Arvind, Actually I did everything as you said. But still action is not firing. So is it issue related to myfaces.jar ? Please help.I struck this problem since 2 days. Thanks Sandip On Tue, 22 Aug 2006 Mr Arvind Pandey wrote : Hi Sandip ! I have used t:jscookMenu in my application and it is working fine. I think you have to write your navigation rule as below: navigation-rule from-view-id*/from-view-id navigation-case from-outcomeadmin/from-outcome to-view-id/admin.jsp/to-view-id /navigation-case /navigation-rule OR navigation-rule from-view-id/fromPage.jsp/from-view-id navigation-case from-outcomeadmin/from-outcome to-view-id/admin.jsp/to-view-id /navigation-case /navigation-rule Hope it will help you. Regards .. Arvind Pandey --- Sandip [EMAIL PROTECTED] wrote: Hi All, I'm trying to use th JSCookMenu my jsp is: h:form t:jscookMenu layout=hbr theme=ThemePanel t:navigationMenuItem itemLabel=Admin action="" / /t:jscookMenu /h:form my navigation rule: navigation-rule navigation-case from-outcomeadmin/from-outcome to-view-id/admin.jsp/to-view-id /navigation-case /navigation-rule I want to open another page when I hit Admin menu.But nothing action is happening when I click on Admin menu. Any suggession ? Thnaks in advance Sandip Patil -- View this message in context: http://www.nabble.com/Regarding-jscook-memu-tf2140496.html#a5907663 Sent from the MyFaces - Users forum at Nabble.com. __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/ -- Murat HAZERhttp://www.projedunyasi.org
varDetailToggler and DataTable
Hi,How can i define the default value of the detailStamp facets to true? All of them are hidden (false) in the beggining.Is there an attribute like expandAll and collapseAll?Can i override the toggleDetail action of the toggleDetail? regards -- Murat HAZERhttp://www.projedunyasi.org
Re: cannot find myfaces-X.X.X-examples.zip
Take a look to here http://people.apache.org/builds/myfaces/nightly/On 8/13/06, SoftwareEngineering Hauschel [EMAIL PROTECTED] wrote: Hi all,in the documentation are references to myfaces-X.X.X-examples.zip. But I can't find it ,-(Fredy -- Murat HAZERhttp://www.projedunyasi.org
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
Re: update dataTable data
Hi,you can save dataTable data with t:saveState so your sort algorithm works.. or try preserveDataModel attribute of the t:dataTable it should also work.regards.. On 8/11/06, vasiliy.kiryanov [EMAIL PROTECTED] wrote: Hello.I have auto sortable dataTable and backbean in the request scope thatreceives data when user enter date and clink on the button.When I click on header in order to restort page is refreshed and data is empy in the table.What is the good aproch to invoke method in the backbean that receives datawhen I click on table header for restort?thank you.--View this message in context: http://www.nabble.com/update-dataTable-data-tf2091344.html#a5764492Sent from the MyFaces - Users forum at Nabble.com.-- Murat HAZER
Re: Compare two password fields with a validator
There is a sandbox compareTo componenent, you can try itregards...On 8/10/06, Tom Serru [EMAIL PROTECTED] wrote:Hi,Is there a way to create a validator to compare two fields (like a password and a password check field) ? I would like to have something like this asresult:...h:inputSecret id=passwordf:validator validatorId=CompareFields otherField=passwordCheck/ /h:inputSecret...h:inputSecret id=passwordCheck...Thx...--View this message in context: http://www.nabble.com/Compare-two-password-fields-with-a-validator-tf2083442.html#a5740422Sent from the MyFaces - Users forum at Nabble.com. -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerBlog URL: http://www.projedunyasi.org
Re: Null Value Problem
Solution is;myfaces 1.1.5, facelets 1.1.11, tomahawk 1.1.5define this tag in the h:form which jscookmenu liesinput type=hidden name=jscook_action /(little but makes jscookmenu work) regards...PS: Thanks Roland.On 8/9/06, Schaal, Roland [EMAIL PROTECTED] wrote: Have a look at http://issues.apache.org/jira/browse/TOMAHAWK-53 Von: Murat Hazer [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 8. August 2006 15:38An: MyFaces DiscussionBetreff: Re: Null Value Problem I embed the jscookmenu in a h:form, i think i don't need to add the render parameters to faces-config.xml (the link you sent says)...regards On 8/8/06, Schaal, Roland [EMAIL PROTECTED] wrote: Looks like the DummyForm stuff wasn´t rendered. Maybe it will work with this: http://wiki.apache.org/myfaces/Upgrading_to_Tomahawk_1%2e1%2e3 Roland Von: Murat Hazer [mailto: [EMAIL PROTECTED]] Gesendet: Dienstag, 8. August 2006 15:09An: MyFaces DiscussionBetreff: Re: Null Value Problem I migrated to 1.1.5-snapshot all of the myfaces libraries, but this time jscookmenu stoped working, and gives following js errorError: dummyForm.elements.jscook_action has no propertiesSource File: http://x/xxx/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11550421/navmenu.jscookmenu.HtmlJSCookMenuRenderer/MyFacesHack.jsLine: 29regards On 8/8/06, Schaal, Roland [EMAIL PROTECTED] wrote: This looks similar to this: http://marc2.theaimsgroup.com/?l=myfaces-userm=115165755808841w=2 Could you check this with the latest nightly builds? ( http://people.apache.org/builds/myfaces/nightly/) Roland Von: Murat Hazer [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 8. August 2006 13:19An: MyFaces DiscussionBetreff: Null Value Problem Hi, I have an application with following configuration, myfaces 1.1.3,tomahawk 1.1.3,myfa facelets 1.1.11 and ajax4jsf 1.0rc4. I get the following error randomly, pages work as intended but randomly gives the following error;08.Ağu.2006 11:27:47 com.sun.facelets.FaceletViewHandler handleRenderExceptionSEVERE: Error Rendering View[/os/lessons/myPage.xhtml]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 com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java :601) at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:101) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384) 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:97) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:173) at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:65) at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:225) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal (OpenSessionInViewFilter.java:174) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77) 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.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java :75
Null Value Problem
Hi, I have an application with following configuration, myfaces 1.1.3,tomahawk 1.1.3,myfa facelets 1.1.11 and ajax4jsf 1.0rc4. I get the following error randomly, pages work as intended but randomly gives the following error; 08.Ağu.2006 11:27:47 com.sun.facelets.FaceletViewHandler handleRenderExceptionSEVERE: Error Rendering View[/os/lessons/myPage.xhtml]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 com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java :601) at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:101) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384) 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:97) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:173) at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:65) at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:225) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal (OpenSessionInViewFilter.java:174) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77) 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.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java :75) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:292) at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke (FilterSecurityInterceptor.java:116) at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:79) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter (FilterChainProxy.java:303) at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:143) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java :303) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:246) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:220) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:173) at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:120) 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
Re: Null Value Problem
I migrated to 1.1.5-snapshot all of the myfaces libraries, but this time jscookmenu stoped working, and gives following js errorError: dummyForm.elements.jscook_action has no propertiesSource File: http://x/xxx/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11550421/navmenu.jscookmenu.HtmlJSCookMenuRenderer/MyFacesHack.jsLine: 29regards On 8/8/06, Schaal, Roland [EMAIL PROTECTED] wrote: This looks similar to this: http://marc2.theaimsgroup.com/?l=myfaces-userm=115165755808841w=2 Could you check this with the latest nightly builds? ( http://people.apache.org/builds/myfaces/nightly/) Roland Von: Murat Hazer [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 8. August 2006 13:19An: MyFaces DiscussionBetreff: Null Value Problem Hi, I have an application with following configuration, myfaces 1.1.3,tomahawk 1.1.3,myfa facelets 1.1.11 and ajax4jsf 1.0rc4. I get the following error randomly, pages work as intended but randomly gives the following error;08.Ağu.2006 11:27:47 com.sun.facelets.FaceletViewHandler handleRenderExceptionSEVERE: Error Rendering View[/os/lessons/myPage.xhtml]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 com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java :601) at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:101) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384) 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:97) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:173) at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:65) at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:225) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal (OpenSessionInViewFilter.java:174) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77) 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.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java :75) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:292) at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke (FilterSecurityInterceptor.java:116) at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:79) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter (FilterChainProxy.java:303) at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:143) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java :303) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:246) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:220) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303
Re: Null Value Problem
I embed the jscookmenu in a h:form, i think i don't need to add the render parameters to faces-config.xml (the link you sent says)...regardsOn 8/8/06, Schaal, Roland [EMAIL PROTECTED] wrote: Looks like the DummyForm stuff wasn´t rendered. Maybe it will work with this: http://wiki.apache.org/myfaces/Upgrading_to_Tomahawk_1%2e1%2e3 Roland Von: Murat Hazer [mailto: [EMAIL PROTECTED]] Gesendet: Dienstag, 8. August 2006 15:09An: MyFaces DiscussionBetreff: Re: Null Value Problem I migrated to 1.1.5-snapshot all of the myfaces libraries, but this time jscookmenu stoped working, and gives following js errorError: dummyForm.elements.jscook_action has no propertiesSource File: http://x/xxx/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11550421/navmenu.jscookmenu.HtmlJSCookMenuRenderer/MyFacesHack.jsLine: 29regards On 8/8/06, Schaal, Roland [EMAIL PROTECTED] wrote: This looks similar to this: http://marc2.theaimsgroup.com/?l=myfaces-userm=115165755808841w=2 Could you check this with the latest nightly builds? ( http://people.apache.org/builds/myfaces/nightly/) Roland Von: Murat Hazer [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 8. August 2006 13:19An: MyFaces DiscussionBetreff: Null Value Problem Hi, I have an application with following configuration, myfaces 1.1.3,tomahawk 1.1.3,myfa facelets 1.1.11 and ajax4jsf 1.0rc4. I get the following error randomly, pages work as intended but randomly gives the following error;08.Ağu.2006 11:27:47 com.sun.facelets.FaceletViewHandler handleRenderExceptionSEVERE: Error Rendering View[/os/lessons/myPage.xhtml]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 com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java :601) at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:101) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384) 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:97) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:173) at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:65) at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:225) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal (OpenSessionInViewFilter.java:174) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77) 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.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java :75) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:292) at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke (FilterSecurityInterceptor.java:116) at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:79) at org.acegisecurity.util.FilterChainProxy
JSF 1.2 RI JsCookMenu Problem
Hi, I had problems (http://www.nabble.com/Null-Value-Problem-tf2072052.html#a5706483 ) with myfaces 1.1.3 and tomahawk 1.1.3 , so i migrated to myfaces 1.15 and tomahawk 1.1.5, again i had problems (http://www.nabble.com/Null-Value-Problem-tf2072052.html#a5706483 ) so i decided to use JSF 1.2 RI. (I had sample applications works with following configuration, JSF 1.2 RI, facelets 1.1.11, tomahawk 1.1.5.) But when i add jscookmenu i get the following error...java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/JspIdConsumer java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:620) java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java :1812) org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:866) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1319) org.apache.catalina.loader.WebappClassLoader.loadClass (WebappClassLoader.java:1198) java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) java.lang.ClassLoader.defineClass1(Native Method)so, to solve this, somehow (thanks to Ryan Lubke) i add JspIdConsumer to tomcat path. After this step tomcat started without any problem but this time jscook menu doen't viewed on the page but its code exists in the generated html. I gave up at this point. These errors are FATAL and stop development process. I think these kind of problems too critical and should not exist in the project. (my idea)Now i downgraded to myfaces 1.1.3 and tomahawk 1.1.3... and myfirst problem occured again Null Value problem (jspstatemanager)... Any ideas and suggestions..regards-- Murat HAZER AKA: Ulath
Re: a problem with using myfaces
did you define tomahawk.taglib.xml and add this to web.xml facelets.LIBRARIES context parameter?On 7/30/06, mohammad norouzi [EMAIL PROTECTED] wrote: dear sir,I am using faclets, ajax4jsf and Jsf RI, now I want to use the myfaces component and Tomahawk, but it dosnt work properly, I dont want to change my xhtml files I just want to use some of the tags from Tomahawk, I set the myFaceExtension filter and everything but it dosnt work. there is no exception or error, but it seems doesnt know the t:dataTable tag Is it any conflict with facelets or ajax4jsf?regardsmohammad norouzi-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics Engineer Blog URL: http://www.projedunyasi.org
Re: Facelets and JSCookMenu Theme
ok i opened #144, i hope i did it correctlyhttps://facelets.dev.java.net/issues/show_bug.cgi?id=144regards... On 7/31/06, Mike Kienenberger [EMAIL PROTECTED] wrote: On 7/31/06, Ulath [EMAIL PROTECTED] wrote: Ok, i've solved the problem. In order to t:jscookmenu's styleLocation attribute work you need to write a tag handler or (i preffered the easy way) add the org.apache.myfaces.STYLE_LOCATION to jscookmenu as follows; code t:jscookMenu layout=vbr theme=ThemeOffice org.apache.myfaces.STYLE_LOCATION=/faces/theme/jscookmenu/ /t:jscookMenu /codeMerat,Can you open a jira issue on this?We're planning on phasing out all of these attribute name mismatches,and it'd be helpful to have a record of this one in the issue tracker. -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerBlog URL: http://www.projedunyasi.org
Re: Facelets and JSCookMenu Theme
sorryOn 7/31/06, Mike Kienenberger [EMAIL PROTECTED] wrote: Oops.No.This is a Myfaces tomahawk issue, not a facelets issue.You'll want to use this issue tracker.http://issues.apache.org/jira/browse/TOMAHAWK On 7/31/06, Murat Hazer [EMAIL PROTECTED] wrote: ok i opened #144, i hope i did it correctly https://facelets.dev.java.net/issues/show_bug.cgi?id=144 regards...On 7/31/06, Mike Kienenberger [EMAIL PROTECTED] wrote: On 7/31/06, Ulath [EMAIL PROTECTED] wrote: Ok, i've solved the problem. In order to t:jscookmenu's styleLocation attribute work you need to write a tag handler or (i preffered the easy way) add the org.apache.myfaces.STYLE_LOCATION to jscookmenu as follows; code t:jscookMenu layout=vbr theme=ThemeOffice org.apache.myfaces.STYLE_LOCATION=/faces/theme/jscookmenu/ /t:jscookMenu /code Merat, Can you open a jira issue on this? We're planning on phasing out all of these attribute name mismatches, and it'd be helpful to have a record of this one in the issue tracker. -- Murat HAZER Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer Blog URL: http://www.projedunyasi.org -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerBlog URL: http://www.projedunyasi.org
Re: Support request for: HOWTO MyFaces-Protlets within Liferay
I am also using myfaces and liferay, may i can help you, but i need to say i am not an portlet and liferay expert...On 6/20/06, Strittmatter, Stephan [EMAIL PROTECTED] wrote: Hello all MyFaces-users,I am using Liferay-Portal in combination with MyFaces and Tomahawk andhave still trouble using them although updating to the latest 1.1.3versions.Now I wanted to invite to create an Howto-Document. Probably at the MyFaces-Wiki for that issue. I also see many questions in this directionon the Liferay-Forums.Is anybody interested in such a Howto and wants to support me?Kind regards,Stephan http://jroller.com/page/stritti/Weblog-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: Help: Ignore validation and still update model?
AFAIK to exceute update model phase you can call processUpdate(facesContext) func. in the validator method ie:public void validateAddress(FacesContext facesContext, UIComponent component, Object objectToValidate) throws ValidatorException { ... this.addressModel.processUpdates(facesContext); .}regardsOn 6/12/06, Andrew Robinson [EMAIL PROTECTED] wrote: Okay, I am having an issue for a non-standard configuration (gofigure, I think I am in the 20% just about 80% of the time) and amlooking for help.I think what I have to do is continue to the update model phase even when validation fails, but I'll tell you what I am doing in caseanyone has a better idea.I have a register user form. It has three child tables (t:dataTable)one for each of: email addresses, phone numbers and geographic addresses. I have done it this way so that the user can enter multipleemails, phone numbers and addresses (for example, a work phone, a cellphone, etc). These tables are backed by Hibernate configured lists (so I have a FK child tables to store these records for the user table).In my view, I have Add and Delete buttons for the tables (and rowsin the table). I don't care when the user clicks and add or a delete if components are invalid within the page (I only care when they clickthe Register for new users or Save for existing users).I tried marking the command links as immediate, but as those familiar with JSF would know, opened a can of worms. Since data tables do notsupport submitted values in child components, the user's data from thedata tables disappeared when the view was re-rendered. So a no-gothere. So I really need the update model phase to complete. (Yes one solutionwould be to enable AJAX for this project and only refresh the tablerow for the add or the delete, but that is beyond my scope for this project).Is there a way to let validation happen, but regardless of validationerrors and warnings, to go ahead and update the model and execute theaction?I suppose I could use a sub-form from the sandbox, but would that not cause the input fields in the other tables to loose their valuesanyways since validate and updating of the model does not take placefor non-subform fields (I haven't tried the sub form out yet althoughit sounds like a good idea)? Another option may be to use a custom component that would update thevalue during the validation phase, but not stop the life cycle (sothat the validation still occurs, and the values would still be kept for data table rows). I think that will work (didn't think it throughfully yet), but it is messy (Basically a commandLink that doesn't useActionEvent, but a custom event that does it's work during broadcastof process validators or apply request values). Anyone have a bright idea to get around this solution?Thank you-AndrewPS - also is there any way without partial page refreshing thatinputSecret fields can not loose their value when the view is re-rendered (maybe by sending a static fake value down to the clientthat says to use the last value and then store that last value inthe user's session?)? -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics Engineer/
Re: Managed bean lookup from servlet filter?
Can't you use Phase Listener instead of servlet filter?regards... On 6/5/06, Val Blant [EMAIL PROTECTED] wrote:Try this in your doFIlter():FacesContextFactory contextFactory = (FacesContextFactory) FactoryFinder.getFactory(FactoryFinder.FACES_CONTEXT_FACTORY);LifecycleFactory lifecycleFactory = (LifecycleFactory)FactoryFinder.getFactory(FactoryFinder.LIFECYCLE_FACTORY);Lifecycle lifecycle =lifecycleFactory.getLifecycle (LifecycleFactory.DEFAULT_LIFECYCLE);FacesContext facesContext = contextFactory.getFacesContext(servletContext,request, response, lifecycle);Let me know if it works.--View this message in context: http://www.nabble.com/Managed-bean-lookup-from-servlet-filter--t1736402.html#a4718698Sent from the MyFaces - Users forum at Nabble.com.-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395 Cep Tel - Mobile Phone: +90 532 472 00 63Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: AW: IDE jsf
Did you try MyEclipse, it also have hibernate, spring and other framework support...regards...On 6/1/06, Alberto Marquÿe9s [EMAIL PROTECTED] wrote:He is unstable, I have version 3,5 when unfolding an application are times that does not start, the refactor of classes and packages there are times that make bad. Often I must reset Windows so that it finds the route of the context of the servant. thanks [EMAIL PROTECTED] escribió: You think Exadel is unstable? I'm working with it since months and never had problems... Which version do you use? Other IDEs are: SUN Creator 2 --free NitroX Just google Regards, Andy -Ursprüngliche Nachricht-Von: Alberto Marqu˙e9s[mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 1. Juni 200611:58An: MyFaces DiscussionBetreff: IDEjsfHello somebody knows an IDE jsf, I practice and stablethat is not exadel please I am working with and is very very unstable. thanks LLama Gratis a cualquier PC delMundo.Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com This message is not legally binding upon our company! This communication is confidential and is intended solely for the addressee(s). If you are not the intended recipient(s), his/her assistant, or authorized recipient, any form of disclosure, reproduction, distribution or any use of this communication or the information in it, is strictly prohibited and may be unlawful. In this case, please notify the sender immediately and destroy the e-mail. Electronic communication via the Internet by e-mail may be manipulated and/or read by third parties, thus we exclude any liability whatsoever for this e-mail. LLama Gratis a cualquier PC del Mundo.Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: advice about dependency injection
hi rogerio,this is your second message with same text, i think you should describe your problem more clearly, and give a piece of real java code...regards...On 5/26/06, Rogerio Pereira [EMAIL PROTECTED] wrote: I have 3 beans: beanA, beanB and beanC.Both beanA and beanB uses beanB (ArrayList), from beanA i only remove itens from beanB and from beanC i add, get and set a item in beanB.Everything is ok when beanC to these operations on beanB but if i try to remove an item from beanA i'm getting an IndexOutOfBoundsException. Note: i'm using saveState in beanAI'm following this wiki entry: http://wiki.apache.org/myfaces/AccessingOneManagedBeanFromAnother Please somebody help me.-- Yours truly (Atenciosamente),Rogério -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: Unit testing backing beans / custom components in JSF
We are using shale-test for unit testing JSF backing beans, shale is not invasive, you can use only this part of the shale without including other parts of it to build path.regards On 5/24/06, David Friedman [EMAIL PROTECTED] wrote: Arti, Shale provides mock objects, but it has dependency on Struts and Shale core, which we donot want.Shale is under the Struts 'name' but should containno shared Struts code since it was written (supposedly) to JSF, not Struts Action 1.X.What do you know (orthink you know) that we don't?Regards,David-Original Message-From: arti [mailto:[EMAIL PROTECTED] ]Sent: Wednesday, May 24, 2006 8:53 AMTo: MyFaces DiscussionSubject: RE: Unit testing backing beans / custom components in JSFHi,Backing beans, I think, are slightly more than POJOs, since those are JSF aware beans - which use JSf objects like FacesContext, Application,VariableResolver etc. Unit testing these outside container, will requirestubs for such objects. Shale provides mock objects, but it has dependency on Struts and Shale core, which we donot want.Our application is pure MyFaces application. I am looking for a JSF testframework for MyFaces only.Same is true for testing custom component as well, since the components and renderers also use FacesContext - e.g. save and restore statemethods / encode decode methods.Regards,Arti-Original Message-From: Aleksei Valikov [mailto: [EMAIL PROTECTED]]Sent: Wednesday, May 24, 2006 11:30 AMTo: MyFaces DiscussionSubject: Re: Unit testing backing beans / custom components in JSFHi. How to unit test JSF code? Which test framework should be used for custom component/ backing beans unit testing? I am curious how do MyFaces developers (not users) test the various components in MyFaces/Tomahawk releases?Backing beans are easy to test since they generally follow the IOC pattern. Just instantiate the bean and inject whatever services/beans itneed via setters. We use Spring, so we often simply autowire backingbeans properties.Testing scenarious for backing beans are quite simple: 1. Initialize the bean (and appropriate dependent beans).2. Set properties.3. Execute the action.4. Check action outcome.5. Check aposteriour values of properties.As for the components, it's a bit more complex. From my point of view there's two things you can/have to test: (a) if the component rendersitself as you want it to be rendered and (b) if what you want to berendered actually works.Testing (a) is not a big problem. Instantiate a component, provide mock/dummy ResponseWriter, render the component and simply check if therendered HTML (orwhatever) is allright. In some of my components I use testing frameworkfrom Shale, it provides a couple of useful tools. Testing (b) is much more complex. Okay, from my component I can generatea pile of HTML/_javascript_/CSS, but I need to make sure that alltogetherthis builds, for instance, a working DHTML menu which functions on different browsers. I see no other possibility as manual testing here.Bye./lexi-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics Engineer Tel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: Can one JSF page with three forms which work separately?
Sandbox has two components which may help you, s:commandButtonAjax and s:subForm.regards..On 5/22/06, Anthony Hong [EMAIL PROTECTED] wrote:I have a web page with three form in each div, say: div 1: base informationdiv 2: address informationdiv 3: phone information.Each of them is a list table with add, edit, delete function.Can I operator each div in one page like I processing each jsf page in a div? I think this should with ajax supports, right?If it can be achieved, which ajax framework supports well with myfacesto achieves my goad.Thanks--Anthony Hong -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: Can one JSF page with three forms which work separately?
if they don't fillfull your request you can try ajaxanywhere [1]. (but i couldn't make it work with latest myfaces and tomahawk).[1] http://ajaxanywhere.sourceforge.net/ regards...On 5/23/06, Anthony Hong [EMAIL PROTECTED] wrote: I also need page navigation in each div.Example:In div address information, Click Add button will display add formpage. But others two divs are not changedCan sandbox supports this? I doesn't see Myfaces demo. It describes in multiplue form saving partial. I guess my requirement can not befullfilledOn 5/23/06, Murat Hazer [EMAIL PROTECTED] wrote: Sandbox has two components which may help you, s:commandButtonAjax and s:subForm. regards.. On 5/22/06, Anthony Hong [EMAIL PROTECTED] wrote: I have a web page with three form in each div, say: div 1: base information div 2: address information div 3: phone information. Each of them is a list table with add, edit, delete function. Can I operator each div in one page like I processing each jsf page in a div? I think this should with ajax supports, right? If it can be achieved, which ajax framework supports well with myfaces to achieves my goad. Thanks -- Anthony Hong -- Murat HAZER Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer Tel - Phone: +90 222 335 05 80 - 1395 Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.org Yahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/--Anthony Hong-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics Engineer Tel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: Can one JSF page with three forms which work separately?
I talked with someone who successfully uses ajaxanaywhere with latest myfaces, only difference between me and him is he defines the zones to be refreshed on the server side, i define them on the client side. I don't want to put ajaxanywhere related ( AAutils.()) java code to my backing beans. May be you can try server side code, it may work, then you can inform as it worked or not.regards...On 5/23/06, Anthony Hong [EMAIL PROTECTED] wrote: :- (I have the same problem. I tired it yesterday, It doesn't work for me.On 5/23/06, Murat Hazer [EMAIL PROTECTED] wrote: if they don't fillfull your request you can try ajaxanywhere [1]. (but i couldn't make it work with latest myfaces and tomahawk). [1] http://ajaxanywhere.sourceforge.net/ regards... On 5/23/06, Anthony Hong [EMAIL PROTECTED] wrote: I also need page navigation in each div. Example: In div address information, Click Add button will display add form page. But others two divs are not changed Can sandbox supports this? I doesn't see Myfaces demo. It describes in multiplue form saving partial. I guess my requirement can not be fullfilledOn 5/23/06, Murat Hazer [EMAIL PROTECTED] wrote: Sandbox has two components which may help you, s:commandButtonAjax and s:subForm. regards.. On 5/22/06, Anthony Hong [EMAIL PROTECTED] wrote:I have a web page with three form in each div, say:div 1: base informationdiv 2: address informationdiv 3: phone information. Each of them is a list table with add, edit, delete function.Can I operator each div in one page like I processing each jsf page in a div? I think this should with ajax supports, right?If it can be achieved, which ajax framework supports well with myfacesto achieves my goad. Thanks -- Anthony Hong-- Murat HAZER Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer Tel - Phone: +90 222 335 05 80 - 1395 Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.org Yahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/ -- Anthony Hong -- Murat HAZER Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer Tel - Phone: +90 222 335 05 80 - 1395 Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.org Yahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/--Anthony Hong-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics Engineer Tel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
MethodBinding
Hi,I have a s:subform and selectOneMenu in this form, onchange i submit the form and in the valueChangeListener method of the backing bean i am calling another backing beans method using methodBinding and i want this method to navigate another page ( bean2.callMe excuted but it doesn't navigates or updates the view), and #{sessionScope.code} value is not updated with the selected items value, here is the code; h:forms:subForm id=changeFORM t:selectOneMenu value=#{sessionScope.code} valueChangeListener=#{changer.change} f:selectItems value=#{changer.list} / f:converter converterId=javax.faces.Long / /t:selectOneMenu/s:subForm/h:form public class Change{ public void change(ValueChangeEvent valueChangeEvent) { facesContext.getApplication().createMethodBinding( #{bean2.callMe}, new Class[] {}).invoke( facesContext, new Object[] {}); }}regards-- Murat HAZER
Re: How to improve JSF performance?
did you see this on the wiki http://wiki.apache.org/myfaces/Performanceregards...On 5/19/06, iSquareOne LLC [EMAIL PROTECTED] wrote: Hi, all, This is a bit tricky. We have two applications - one is built on pure JSP and the other one is built on JSF. We found the JSF application performance is much worse than the pure JSP application. We did not expect that much difference. JSF uses JSP page after all. So, what could have caused the slow down? Are there ways to improve JSF performance? We build the application on My Faces 1.1 and JBoss 4.0.2Any thoughts are very welcome! Thanks in advance!- Shawn How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call rates. -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: JSCook menu help
download and try to use tomahawk 1.1.2regards...On 5/19/06, Surapuraju, Vamsi [EMAIL PROTECTED] wrote:Hi, I am getting following _javascript_ error when I click on menu. Error: dummyForm has no propertiesSource File:http://localhost:8000/dedicated/faces/myFacesExtensionResource/navmenu.j scookmenu.HtmlJSCookMenuRenderer/11302665/MyFacesHack.jsLine: 21Following is my JSF code h:form id=myformt:jscookMenu layout=hbr theme=ThemeOffice t:navigationMenuItemitemLabel=Home action="" //t:jscookMenu/h:formI am using myfaces 1.1.3 with tomahawk 1.1.1. I appreciate any helpfinding out the problem.Thank YouVamsi Surapuraju-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics Engineer Tel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Ideas?
Hi, Is anyone look at Google Web Toolkit (http://code.google.com/webtoolkit/overview.html), what is your idea? (Especially JSF masters)regards... -- Murat HAZER
Re: JSCook menu help
you can read this thread http://www.nabble.com/Having+trouble+with+Tomahawk+1.1.2-t1636543.html#a4433711i hope it helps regards...On 5/19/06, Surapuraju, Vamsi [EMAIL PROTECTED] wrote: When i drop tomahawk1.1.2 i get following error weblogic.servlet.jsp.JspException: (line 6): Error in using tag library uri=' http://myfaces.apache.org/tomahawk' prefix='t': The Tag class 'org.apache.myfaces.taglib.html.ext.HtmlCommandButtonTag' has no setter method corresponding to TLD declared attribute 'actionForPhase', (JSP 1.1 spec, 5.4.1 ) at weblogic.servlet.jsp.StandardTagLib.tld_jspException(StandardTagLib.java:1243) at weblogic.servlet.jsp.StandardTagLib.parseTagDD(StandardTagLib.java:1371) at weblogic.servlet.jsp.StandardTagLib.parseDD(StandardTagLib.java :1269) at weblogic.servlet.jsp.StandardTagLib.(StandardTagLib.java:292) at weblogic.servlet.jsp.TagLibHelper.loadTagLib(TagLibHelper.java:314) at weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:145) at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java:5067) at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java:4905) at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:4751) at weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:2161)What do I do Now?Thanks in advance Vamsi Surapuraju From: Murat Hazer [mailto:[EMAIL PROTECTED]] Sent: Friday, May 19, 2006 9:39 AMTo: MyFaces DiscussionSubject: Re: JSCook menu help download and try to use tomahawk 1.1.2regards... On 5/19/06, Surapuraju, Vamsi [EMAIL PROTECTED] wrote: Hi,I am getting following _javascript_ error when I click on menu. Error: dummyForm has no propertiesSource File:http://localhost:8000/dedicated/faces/myFacesExtensionResource/navmenu.j scookmenu.HtmlJSCookMenuRenderer/11302665/MyFacesHack.jsLine: 21Following is my JSF code h:form id=myformt:jscookMenu layout=hbr theme=ThemeOffice t:navigationMenuItemitemLabel=Home action="" //t:jscookMenu/h:formI am using myfaces 1.1.3 with tomahawk 1.1.1. I appreciate any helpfinding out the problem.Thank YouVamsi Surapuraju-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics Engineer Tel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/ -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: Ideas?
I really want to know how we can use GWT with myfaces, I think if we can use with myfaces this will decrase our ajax burden. regards...On 5/19/06, Rafael Nami [EMAIL PROTECTED] wrote:I'm no JSF master, but I've got it yesterday, gave a try, and it's really REALLY IMPRESSIVE. GWT has a very different paradigm compiling java classes to generate DOM trees, views and event listeners in _javascript_. I didn't have time to see if something like JSF and GWT sinergy works althought. Best Regards Rafael Mauricio Nami 2006/5/19, Murat Hazer [EMAIL PROTECTED]: Hi, Is anyone look at Google Web Toolkit (http://code.google.com/webtoolkit/overview.html ), what is your idea? (Especially JSF masters)regards... -- Murat HAZER -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: Mix between inputSuggestAjax and AjaxAnyWhere
On 5/17/06, Michael Ageeb [EMAIL PROTECTED] wrote: Hello, I'm trying to use the AjaxAnyWhere with inputSuggestAjax i've used AA alone with no problems.I am having problem with AA alone, could you tell me the versions of the myfaces, tomahawk and AA? What i want to do is when the user choose a value from the inputSuggestAjax i want the value to be sent to the server as AA request I've tried to do it using the following code. s:inputSuggestAjax id=Territory suggestedItemsMethod=#{CustomerBranchSelection.getTerritoriesSuggest} value=#{CustomerBranchSelection.territory } valueChangeListener=#{CustomerBranchSelection.territoryValueChangeListener}/ h:outputLabel value=Select Country: for="" aa:zoneJSF id=CountryZone h:selectOneMenu id=Country value=#{CustomerBranchSelection.country} (); valueChangeListener=#{CustomerBranchSelection.countryValueChangeListener} f:selectItems value=#{CustomerBranchSelection.countries }/ /h:selectOneMenu /aa:zoneJSFBut the #{CustomerBranchSelection.territoryValueChangeListener} is never called-- http://mageeb.netDon't send me any attachment in Micro$oft (.DOC, .PPT) format pleaseRead http://www.gnu.org/philosophy/no-word-attachments.html Preferable attachments: .PDF, .HTML, .TXTThanx for adding this text to Your signature regards-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: Mix between inputSuggestAjax and AjaxAnyWhere
I have same configuration but i have problems, it's weird. Everthing was working fine before migrating myfaces and tomahawk. Did you do something in aa.js or scripts in the jsf pages that define zones? On 5/17/06, Michael Ageeb [EMAIL PROTECTED] wrote: MyFaces core 1.1.3Tomahawk 1.1.2Sandbox 1.1.3-snabshotAA 1.2-RC1On 5/17/06, Murat Hazer [EMAIL PROTECTED] wrote: On 5/17/06, Michael Ageeb [EMAIL PROTECTED] wrote: Hello, I'm trying to use the AjaxAnyWhere with inputSuggestAjax i've used AA alone with no problems.I am having problem with AA alone, could you tell me the versions of the myfaces, tomahawk and AA? What i want to do is when the user choose a value from the inputSuggestAjax i want the value to be sent to the server as AA request I've tried to do it using the following code. s:inputSuggestAjax id=Territory suggestedItemsMethod=#{CustomerBranchSelection.getTerritoriesSuggest} value=#{CustomerBranchSelection.territory } valueChangeListener=#{CustomerBranchSelection.territoryValueChangeListener}/ h:outputLabel value=Select Country: for="" aa:zoneJSF id=CountryZone h:selectOneMenu id=Country value=#{CustomerBranchSelection.country} (); valueChangeListener=#{CustomerBranchSelection.countryValueChangeListener} f:selectItems value=#{CustomerBranchSelection.countries }/ /h:selectOneMenu /aa:zoneJSFBut the #{CustomerBranchSelection.territoryValueChangeListener} is never called-- http://mageeb.netDon't send me any attachment in Micro$oft (.DOC, .PPT) format pleaseRead http://www.gnu.org/philosophy/no-word-attachments.html Preferable attachments: .PDF, .HTML, .TXTThanx for adding this text to Your signature regards-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395 Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/ -- http://mageeb.netDon't send me any attachment in Micro$oft (.DOC, .PPT) format please Read http://www.gnu.org/philosophy/no-word-attachments.htmlPreferable attachments: .PDF, .HTML, .TXTThanx for adding this text to Your signature -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: Mix between inputSuggestAjax and AjaxAnyWhere
ok then, could you send the scripts in the jsf pages and the zone definitions?On 5/17/06, Michael Ageeb [EMAIL PROTECTED] wrote:no i did change nothing and this is my first time to use AA On 5/17/06, Murat Hazer [EMAIL PROTECTED] wrote: I have same configuration but i have problems, it's weird. Everthing was working fine before migrating myfaces and tomahawk. Did you do something in aa.js or scripts in the jsf pages that define zones? On 5/17/06, Michael Ageeb [EMAIL PROTECTED] wrote: MyFaces core 1.1.3Tomahawk 1.1.2Sandbox 1.1.3-snabshotAA 1.2-RC1On 5/17/06, Murat Hazer [EMAIL PROTECTED] wrote: On 5/17/06, Michael Ageeb [EMAIL PROTECTED] wrote: Hello, I'm trying to use the AjaxAnyWhere with inputSuggestAjax i've used AA alone with no problems.I am having problem with AA alone, could you tell me the versions of the myfaces, tomahawk and AA? What i want to do is when the user choose a value from the inputSuggestAjax i want the value to be sent to the server as AA request I've tried to do it using the following code. s:inputSuggestAjax id=Territory suggestedItemsMethod=#{CustomerBranchSelection.getTerritoriesSuggest} value=#{CustomerBranchSelection.territory } valueChangeListener=#{CustomerBranchSelection.territoryValueChangeListener}/ h:outputLabel value=Select Country: for="" aa:zoneJSF id=CountryZone h:selectOneMenu id=Country value=#{CustomerBranchSelection.country} (); valueChangeListener=#{CustomerBranchSelection.countryValueChangeListener} f:selectItems value=#{CustomerBranchSelection.countries }/ /h:selectOneMenu /aa:zoneJSFBut the #{CustomerBranchSelection.territoryValueChangeListener} is never called-- http://mageeb.netDon't send me any attachment in Micro$oft (.DOC, .PPT) format pleaseRead http://www.gnu.org/philosophy/no-word-attachments.html Preferable attachments: .PDF, .HTML, .TXTThanx for adding this text to Your signature regards-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395 Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/ -- http://mageeb.netDon't send me any attachment in Micro$oft (.DOC, .PPT) format please Read http://www.gnu.org/philosophy/no-word-attachments.htmlPreferable attachments: .PDF, .HTML, .TXTThanx for adding this text to Your signature -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/ -- http://mageeb.netDon't send me any attachment in Micro$oft (.DOC, .PPT) format please Read http://www.gnu.org/philosophy/no-word-attachments.htmlPreferable attachments: .PDF, .HTML, .TXTThanx for adding this text to Your signature -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: Mix between inputSuggestAjax and AjaxAnyWhere
Hımm, you are indicating zones to be refreshed on the server side, i am doing this on the client side withajaxAnywhere.getZonesToReload = function() { return CountryZone;}could this be my problem (i need to try)? Any ajaxanywhere expert can answer this? (i think, not writing any ajaxananywhere related code in the backing beans is better) regardsOn 5/17/06, Michael Ageeb [EMAIL PROTECTED] wrote: h:outputLabel value=Select Territory: for=""> h:selectOneMenu id=Territory value=#{CustomerBranchSelection.territory} (); valueChangeListener=#{CustomerBranchSelection.territoryValueChangeListener} f:selectItems value=#{CustomerBranchSelection.territories}/ /h:selectOneMenu h:outputLabel value=Select Country: for=""> aa:zoneJSF id=CountryZone h:selectOneMenu id=Country value=#{ CustomerBranchSelection.country} > valueChangeListener=#{CustomerBranchSelection.countryValueChangeListener} f:selectItems value=#{ CustomerBranchSelection.countries}/ /h:selectOneMenu /aa:zoneJSF public void territoryValueChangeListener(ValueChangeEvent event){ if(event.getNewValue () == null) return; String currentValue = (String) event.getNewValue(); this.territory = currentValue; this.selectedTerritory = currentValue; if (AAUtils.isAjaxRequest (getRequest())) { AAUtils.addZonesToRefresh(getRequest(), CountryZone); } } On 5/17/06, Murat Hazer [EMAIL PROTECTED] wrote: ok then, could you send the scripts in the jsf pages and the zone definitions?On 5/17/06, Michael Ageeb [EMAIL PROTECTED] wrote:no i did change nothing and this is my first time to use AA On 5/17/06, Murat Hazer [EMAIL PROTECTED] wrote: I have same configuration but i have problems, it's weird. Everthing was working fine before migrating myfaces and tomahawk. Did you do something in aa.js or scripts in the jsf pages that define zones? On 5/17/06, Michael Ageeb [EMAIL PROTECTED] wrote: MyFaces core 1.1.3Tomahawk 1.1.2Sandbox 1.1.3-snabshotAA 1.2-RC1On 5/17/06, Murat Hazer [EMAIL PROTECTED] wrote: On 5/17/06, Michael Ageeb [EMAIL PROTECTED] wrote: Hello, I'm trying to use the AjaxAnyWhere with inputSuggestAjax i've used AA alone with no problems.I am having problem with AA alone, could you tell me the versions of the myfaces, tomahawk and AA? What i want to do is when the user choose a value from the inputSuggestAjax i want the value to be sent to the server as AA request I've tried to do it using the following code. s:inputSuggestAjax id=Territory suggestedItemsMethod=#{CustomerBranchSelection.getTerritoriesSuggest} value=#{CustomerBranchSelection.territory } valueChangeListener=#{CustomerBranchSelection.territoryValueChangeListener}/ h:outputLabel value=Select Country: for="" aa:zoneJSF id=CountryZone h:selectOneMenu id=Country value=#{CustomerBranchSelection.country} (); valueChangeListener=#{CustomerBranchSelection.countryValueChangeListener} f:selectItems value=#{CustomerBranchSelection.countries }/ /h:selectOneMenu /aa:zoneJSFBut the #{CustomerBranchSelection.territoryValueChangeListener} is never called-- http://mageeb.netDon't send me any attachment in Micro$oft (.DOC, .PPT) format pleaseRead http://www.gnu.org/philosophy/no-word-attachments.html Preferable attachments: .PDF, .HTML, .TXTThanx for adding this text to Your signature regards-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395 Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/ -- http://mageeb.netDon't send me any attachment in Micro$oft (.DOC, .PPT) format please Read http://www.gnu.org/philosophy/no-word-attachments.htmlPreferable attachments: .PDF, .HTML, .TXTThanx for adding this text to Your signature -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/ -- http://mageeb.netDon't send me any attachment in Micro$oft (.DOC, .PPT) format please Read http://www.gnu.org/philosophy/no-word-attachments.htmlPreferable attachments: .PDF, .HTML, .TXTThanx for adding this text to Your signature -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/ -- http://mageeb.netDon't send me any attachment in Micro$oft (.DOC, .PPT) format please Read http://www.gnu.org/philosophy/no-word-attachments.htmlPreferable attachments: .PDF, .HTML, .TXTThanx for adding this text to Your signature -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL:
Re: Error transferring file when build with maven.
i had the same problem, i run mvn clean before mvn install everthing worked fine.regards... On 5/16/06, Michael Heinen [EMAIL PROTECTED] wrote: I have the same problem this morning.mvn install downloads a lot of files but fails at the same step asmentioned below.-Original Message-From: Zhi [mailto: [EMAIL PROTECTED]]Sent: Dienstag, 16. Mai 2006 05:16To: MyFaces DiscussionSubject: Error transferring file when build with maven.Dears,I successfully checkouted the files from respository just now. But when I started building, build error arised. Does this caused by SVN or MAVENsite down?Any help would be greatly appreciated.GeorgeHere's my commands and error messages dumped with -e option. svn co https://svn.apache.org/repos/asf/myfaces/current myfaces-currentcd myfaces-currentmvn -e install+ Error stacktraces are turned on. [INFO] Scanning for projects...[INFO] Reactor build order:[INFO] Master POM[INFO] MyFaces Build Tools[INFO] Wagon Maven Plugin[INFO] Maven Project[INFO] MyFaces Shared Project[INFO] MyFaces Shared Core [INFO] MyFaces Shared Impl[INFO] MyFaces Shared Tomahawk[INFO] Core Project[INFO] API[INFO] Impl[INFO] Tomahawk Project[INFO] Tomahawk Core[INFO] Tomahawk Examples Project [INFO] Tomahawk Examples: Blank[INFO] Tomahawk Examples: Simple[INFO] Tomahawk Examples: Tiles[INFO] Tomahawk Examples: WAP[INFO] Sandbox Project[INFO] Sandbox Core[INFO] Sandbox Examples [INFO] MyFaces Site[INFO] Build Project[INFO][INFO] Building Master POM[INFO]task-segment: [install][INFO] Downloading:http://snapshots.maven.codehaus.org/maven2/org/apache/maven/doxia/doxia/ 1.0-alpha-8/doxia-1.0-alpha-8.pom[INFO][ERROR] BUILD ERROR[INFO] [INFO] Error building POM (may not be this project's POM).Project ID: null:doxia-site-renderer:jar:1.0-alpha-8Reason: Cannot find parent: org.apache.maven.doxia:doxia for project:null:doxia-site-renderer:jar: 1.0-alpha-8[INFO][INFO] Traceorg.apache.maven.lifecycle.LifecycleExecutionException: Unable to getdependency information: Unable to read the metadata file for artifact 'org.apache.maven.doxia:doxia-site-renderer:jar': Cannot find parent:org.apache.maven.doxia:doxia for project: null:doxia-site-renderer:jar:1.0-alpha-8org.apache.maven.doxia:doxia-site-renderer:jar:1.0-alpha-8 from the specified remote repositories:central (http://repo1.maven.org/maven2),apache.snapshots (http://svn.apache.org/maven-snapshot-repository ),snapshots (http://snapshots.maven.codehaus.org/maven2)Path to dependency:1)org.apache.maven.plugins:maven-site-plugin:maven-plugin:2.0-beta-5 atorg.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:551)atorg.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec ycle(DefaultLifecycleExecutor.java:475)atorg.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)atorg.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle Failures(DefaultLifecycleExecutor.java:306)atorg.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)atorg.apache.maven.lifecycle.DefaultLifecycleExecutor.execute (DefaultLifecycleExecutor.java:140)atorg.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)at org.apache.maven.cli.MavenCli.main (MavenCli.java:256)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)atsun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke(Method.java:585)atorg.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)at org.codehaus.classworlds.Launcher.launch (Launcher.java:255)atorg.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)at org.codehaus.classworlds.Launcher.main(Launcher.java:375)Caused by:org.apache.maven.artifact.resolver.ArtifactResolutionException : Unableto get dependency information: Unable to read the metadata file forartifact 'org.apache.maven.doxia:doxia-site-renderer:jar': Cannot findparent: org.apache.maven.doxia:doxia for project:null:doxia-site-renderer:jar: 1.0-alpha-8org.apache.maven.doxia:doxia-site-renderer:jar:1.0-alpha-8from the specified remote repositories:central (http://repo1.maven.org/maven2),apache.snapshots (http://svn.apache.org/maven-snapshot-repository),snapshots (http://snapshots.maven.codehaus.org/maven2 )Path to
Re: Error transferring file when build with maven.
if your job is urgent and only need jar files i can send them (i just built)On 5/16/06, Michael Heinen [EMAIL PROTECTED] wrote: I tried „mvn clean" before „mvn install". "mvn install" still fails with the same message. Any other idea ? I spent now a lot of hours to get the sources into eclipse and build it with maven but it doesn't work. This procedure is really a little bit annoying. Michael From: Murat Hazer [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 16. Mai 2006 09:36 To: MyFaces Discussion Subject: Re: Error transferring file when build with maven. i had the same problem, i run mvn clean before mvn install everthing worked fine. regards... On 5/16/06, Michael Heinen [EMAIL PROTECTED] wrote: I have the same problem this morning. mvn install downloads a lot of files but fails at the same step as mentioned below. -Original Message- From: Zhi [mailto: [EMAIL PROTECTED]] Sent: Dienstag, 16. Mai 2006 05:16 To: MyFaces Discussion Subject: Error transferring file when build with maven. Dears, I successfully checkouted the files from respository just now. But when I started building, build error arised. Does this caused by SVN or MAVEN site down? Any help would be greatly appreciated. George Here's my commands and error messages dumped with -e option. svn co https://svn.apache.org/repos/asf/myfaces/current myfaces-current cd myfaces-current mvn -e install + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] Master POM [INFO] MyFaces Build Tools [INFO] Wagon Maven Plugin [INFO] Maven Project [INFO] MyFaces Shared Project [INFO] MyFaces Shared Core [INFO] MyFaces Shared Impl [INFO] MyFaces Shared Tomahawk [INFO] Core Project [INFO] API [INFO] Impl [INFO] Tomahawk Project [INFO] Tomahawk Core [INFO] Tomahawk Examples Project [INFO] Tomahawk Examples: Blank [INFO] Tomahawk Examples: Simple [INFO] Tomahawk Examples: Tiles [INFO] Tomahawk Examples: WAP [INFO] Sandbox Project [INFO] Sandbox Core [INFO] Sandbox Examples [INFO] MyFaces Site [INFO] Build Project [INFO] [INFO] Building Master POM [INFO]task-segment: [install] [INFO] Downloading: http://snapshots.maven.codehaus.org/maven2/org/apache/maven/doxia/doxia/ 1.0-alpha-8/doxia-1.0-alpha-8.pom [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: null:doxia-site-renderer:jar:1.0-alpha-8 Reason: Cannot find parent: org.apache.maven.doxia:doxia for project: null:doxia-site-renderer:jar: 1.0-alpha-8 [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Unable to get dependency information: Unable to read the metadata file for artifact 'org.apache.maven.doxia:doxia-site-renderer:jar': Cannot find parent: org.apache.maven.doxia:doxia for project : null:doxia-site-renderer:jar:1.0-alpha-8 org.apache.maven.doxia:doxia-site-renderer:jar:1.0-alpha-8 from the specified remote repositories: central (http://repo1.maven.org/maven2), apache.snapshots (http://svn.apache.org/maven-snapshot-repository ), snapshots (http://snapshots.maven.codehaus.org/maven2) Path to dependency: 1) org.apache.maven.plugins:maven-site-plugin:maven-plugin:2.0-beta-5 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default LifecycleExecutor.java:551) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec ycle(DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL ifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle Failures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute (DefaultLifec ycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main (MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch (Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.class
ajaxanywhere
Hi,I am tring to migrate a project to myfaces 1.1.3, tomahawk 1.1.2 and tomahawk-sandbox.1.1.3, at the first look everthing works fine except pages i used ajaxanywhere (1.2RC1), is there anyone using this configuration succesfully? (I am sure i replaced aa.js file with the new one and clear the browser cache). regards...-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics Engineer
Re: JSF Backing Bean Unit Testing
Thanks Craig,I understand that, i should prepare the backing beans which are under test by hand in the setUp() method, i should not try to validate or read anything from faces-config.xml, is this correct?Ok then, what about services and DAOs used by these services? For example I am using jmock to test spring managed services (to isolate from the data layer), should i use same principle here? (mock service and dao objects) I have a backing bean definition like this;managed-bean descriptionGrades List/description managed-bean-namegradeList/managed-bean-name managed-bean-class org.mhazer.GradeList/managed-bean-class managed-bean-scoperequest/managed-bean-scope managed-property property-nameserviceLocator/property-name value#{serviceLocator}/value /managed-property managed-property property-namevisit/property-name value#{ sessionScope.visit}/value /managed-property managed-property property-namechosenLessonCode/property-name value#{sessionScope.visit.chosenLessonCode }/value /managed-property /managed-beanserviceLocator prepares spring managed singleton services which are used to access DB layer, and visit object is used to store session based values. How can i write a unit test for a method of this backing using shale-test framework? best regardsOn 5/14/06, Craig McClanahan [EMAIL PROTECTED] wrote: On 5/14/06, Murat Hazer [EMAIL PROTECTED] wrote: Hi,I am trying to write unit tests on my backing beans' action, actionListener and other methods, and using shale-test framework to accomplish this. From TDD principles i know every unit test should test only itself not other functions or layers etc., but in my scenario backing beans use spring managed services and these services also use hibernate managed DAOs, and also these backing beans use other request or session based beans. What are the best practices about unit testing backing beans like this? For the third scenario (need access to other request and session scope beans) you can populate the attributes on the MockHttpServletRequest and MockHttpSession instances. I do this in the setUp() method of my unit tests. Should i also use mock objects (like jmock or easymock) for these properties of the backing beans? And what should i do to validate faces-config files? I study appfuse (on backing bean tests exceutes all layer functions..) and examples come with shale, they are not very clear (or my misunderstaning), i think i need a clear and nice sample (also other users) unit test on a such complicated backing bean) regards... -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics Engineer Craig -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: JSF Backing Bean Unit Testing
Thanks,I agree with you, before integration tests i need to write unit test,so i am looking for answer of How can i do write correct unit tests for backing beans which use spring and hibernate?. I understand following points from your asnwers, if i am wrong please correct me; 1- to write correct unit tests i should isolate the uni t(class/function) which is under test from other layers/api's.2- to test jsf backing bean shale-test framework is a good choice. 3- i should use jmock (or equivalent) to create mock objects of spring managed services and dao's then i should set these mocks to the backing bean in the test setUp() metod. I am a little confused beacuse i couldn't find any good article, tutorial or sample code for a scanerio like this. I need to find something to get a clear understanding. Any suggestions?Another question; can i use canoo web tests (or selenium) for integration tests? Is this a correct approach or should i follow a different way for integration testing? best regardsOn 5/15/06, Adam Brod [EMAIL PROTECTED] wrote: Hi Murat- I agree with what Dave B. said - Unit Testing is very different from Integration Testing. I have found that it is best to start with Unit Testing where you are testing an individual method or class (a unit) in isolation from all other objects. Therefore, you should mock/stub out the other frameworks and classes that are used by the backing bean you are testing. Once you have good unit testing coverage and know that your backing bean does what you want it to, then you can build larger Integration Tests that test the interactions between the backing bean and the hibernate daos. If you start with Integration Testing, it is much more difficult to isolate bugs in your code because for any given test, there is lots of code being executed. I hope this helps, Adam Brod Product Development Team Murat Hazer [EMAIL PROTECTED] 05/14/2006 08:11 AM Please respond to MyFaces Discussion users@myfaces.apache.org To MyFaces Discussion users@myfaces.apache.org cc Subject JSF Backing Bean Unit Testing Hi, I am trying to write unit tests on my backing beans' action, actionListener and other methods, and using shale-test framework to accomplish this. From TDD principles i know every unit test should test only itself not other functions or layers etc., but in my scenario backing beans use spring managed services and these services also use hibernate managed DAOs, and also these backing beans use other request or session based beans. What are the best practices about unit testing backing beans like this? Should i also use mock objects (like jmock or easymock) for these properties of the backing beans? And what should i do to validate faces-config files? I study appfuse (on backing bean tests exceutes all layer functions..) and examples come with shale, they are not very clear (or my misunderstaning), i think i need a clear and nice sample (also other users) unit test on a such complicated backing bean) regards... -- Murat HAZER Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer 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. -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
JSF Backing Bean Unit Testing
Hi,I am trying to write unit tests on my backing beans' action, actionListener and other methods, and using shale-test framework to accomplish this. From TDD principles i know every unit test should test only itself not other functions or layers etc., but in my scenario backing beans use spring managed services and these services also use hibernate managed DAOs, and also these backing beans use other request or session based beans. What are the best practices about unit testing backing beans like this? Should i also use mock objects (like jmock or easymock) for these properties of the backing beans? And what should i do to validate faces-config files? I study appfuse (on backing bean tests exceutes all layer functions..) and examples come with shale, they are not very clear (or my misunderstaning), i think i need a clear and nice sample (also other users) unit test on a such complicated backing bean) regards...-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics Engineer
Re: build with eclipse question
build with maven it is more easy. (i think)regards..On 5/14/06, L Frohman [EMAIL PROTECTED] wrote: In the wiki:http://wiki.apache.org/myfaces/Eclipse_IDE under the section:Eclipse setup exampleI am following the steps and everything works up to the last step.the last step is:Continue importing the 11 myfaces projects (the myfaces sub-projects). I don't understand what is necessary here. Can anybody give me some moredetail on what to do in this last step?Thank you,Lance-- Murat HAZER Elektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63Blog URL: http://www.projedunyasi.org Yahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: Source-Code of myfaces-1.1.1-examples.zip
you can checkout from svn...On 5/6/06, Chrisi [EMAIL PROTECTED] wrote: Hello to everbody, I'm new in the myfaces development . I downloaded the myfaces-1.1.1-examples.zip. But this one contains just the binaries and jsp-srcs. Where can I find the source-code (containing also the beans and so on)? If it's not available via download, can somebody sent it please. By the way: Is there somewhere an archive containig the source code of myfaces 1.1.2 implementation? I only find source of version 1.1.1. Iknew that I can get it via svn but an archive of 1.1.2 would be nice, wouldn't it?-- Thanks and GreetingsChrisi -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: t:commandButton action method not called
sorry accidently sent the mail...last line should be like this;outputStream.close();outputStream.flush();facesContext.getApplication ().getStateManager().saveSerializedView(facesContext);facesContext.responseComplete();On 5/4/06, Murat Hazer [EMAIL PROTECTED] wrote: I had the same issue with jasper reports and facesContext.getApplication().getStateManager().saveSerializedView(facesContext) solved my problem, i took a look at the your code and it's same as mine, only difference is there is outputStream.flush() after the outputStream.close(), so your code's last lines should be like this; outputStream.close();outputStream.flush();facesContext.responseComplete ();facesContext.getApplication ().getStateManager().saveSerializedView(facesContext);I hope it works...regards... On 5/4/06, Le Van [EMAIL PROTECTED] wrote:I did it before but the problem still occur. So do u think the reason is JSFor I get wrong somewhere ?. I checked my code. Uhm...I'm not sure all.Do you have any idea more ??Murat Hazer wrote: add this line just before facesContext.responseComplete() facesContext.getApplication ().getStateManager().saveSerializedView( facesContext); regards... On 5/4/06, *Le Van* [EMAIL PROTECTED] mailto: [EMAIL PROTECTED] wrote:Hi all,I got a problem with t:commandButton. I have Search screen. First, I push Search button to get data from DB. Then I push OutputCSV button to get data results as csv file. Everything is OK.Now I push search again, but action is not been called for all command button on the screen ( except h:commandLink can take an action). Here is my code to get data as csv. public String outputCSVAction() { FacesContext facesContext = FacesContext.getCurrentInstance(); HttpServletResponse response = (HttpServletResponse) facesContext.getExternalContext().getResponse(); ByteArrayOutputStream arrayOutputStream = new ByteArrayOutputStream(); List dataList = pageObject.getDataList(); for (Iterator iter = dataList.iterator(); iter.hasNext();) { TM00403ItemRow element = (TM00403ItemRow) iter.next (); prepareCSV(element, arrayOutputStream); } response.setContentType(application/x-download; charset=shift_jis); response.setHeader(Content-disposition,attachment; filename=\ + TMCommonConstants.OUTPUT_CSV + \); ServletOutputStream outputStream = response.getOutputStream(); outputStream.write(arrayOutputStream.toByteArray()); response.setContentLength(arrayOutputStream.size()); outputStream.flush(); outputStream.close(); facesContext.responseComplete(); } Could anyone help me ? Thanks for advance, Van Le -- Murat HAZER Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer Tel - Phone: +90 222 335 05 80 - 1395 Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.org Yahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/ -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/ -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: How to write a customized valdation, that validate by comparing one field to another_
As far as i know validation in the JSF spec is component based, so if you want to validate a form (like you) you should follow a different way, you can add a hidden input after the components you want validate and write your validator method to this hidden component validator. (You can read detail of this trick at the Core Faces book's validation section, it is avaible online http://www.horstmann.com/corejsf/). When following this way i encountered a different problem, i could not get the request values (model values are not updated at the validation phase) at the validation phase, so i added dataModel.processUpdates(facesContext) line into the validation method. Advanced developers may advice a different way may be?regards...On 5/4/06, Bjørn T Johansen [EMAIL PROTECTED] wrote: I need to validate two fields on my webpage, two dates, and I need to check if one date is greater than theother. Is this possible? Have I access to the other fields from within my validate method or is there another way of doing this (or do I have to check this in my save method)?Regards,BTJ-Bjørn T Johansen [EMAIL PROTECTED]---Someone wrote:I understand that if you play a Windows CD backwards you hear strange Satanic messages To which someone replied:It's even worse than that; play it forwards and it installs Windows--- -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: t:commandButton action method not called
add this line just before facesContext.responseComplete()facesContext.getApplication().getStateManager().saveSerializedView( facesContext);regards... On 5/4/06, Le Van [EMAIL PROTECTED] wrote: Hi all, I got a problem with t:commandButton. I have Search screen. First, I push Search button to get data from DB. Then I push OutputCSV button to get data results as csv file. Everything is OK.Now I push search again, but action is not been called for all command button on the screen ( except h:commandLink can take an action). Here is my code to get data as csv. public String outputCSVAction() { FacesContext facesContext = FacesContext.getCurrentInstance(); HttpServletResponse response = (HttpServletResponse) facesContext.getExternalContext().getResponse(); ByteArrayOutputStream arrayOutputStream = new ByteArrayOutputStream(); List dataList = pageObject.getDataList(); for (Iterator iter = dataList.iterator(); iter.hasNext();) { TM00403ItemRow element = (TM00403ItemRow) iter.next(); prepareCSV(element, arrayOutputStream); } response.setContentType(application/x-download; charset=shift_jis); response.setHeader(Content-disposition,attachment; filename=\ + TMCommonConstants.OUTPUT_CSV + \); ServletOutputStream outputStream = response.getOutputStream(); outputStream.write(arrayOutputStream.toByteArray()); response.setContentLength(arrayOutputStream.size()); outputStream.flush(); outputStream.close(); facesContext.responseComplete(); } Could anyone help me ? Thanks for advance, Van Le -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: Date output and timezone
I read somewhere (don't remember where) this problem is solved in the next release of the tomahawk , and it will be released very soon. Also you can download it from SVN and build it..regards... On 4/29/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I would appreciate some suggestions for the handing of dates:I'm using Tomahawk t:inputDate .../ to collect a person's date of birth in a backing bean variable of type Date.When I subsequently view the date using a simple h:outputText ../ it displays the original date minus 1 day, even though the Date variable is set correctly. For example I enter 01-Jan-1965and outputText displays 31-Dec-1964.I'm not using any converters and I assume that the default converter is taking in to account my timezone, I'm on CET (GMT+1), and calculating 01-Jan-1965 00:00:00 minus 1 hour to display the GMT time (correct?). The application is going to be accessed from different timezones but the date display must be exactly as entered.What would be the easiest/cleanest way to get around this problem?I guess I could dynamically set f:convertDateTime timeZone=#{ User.timeZone}/ to the user's timezone but I'd rather the date was simply treated as a Date without any time and timezone.Gianni-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics Engineer Tel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: dataTable: value-action called 3 times
The JSF specification doesn't guarantee that the getters will be called only once (different phases call same getter method..). So you should not put high cost codes into the getter methods. Also you can look at here http://jsf-faq.com/faqs/faces-misc.html#106regards...On 4/28/06, Nahrwold, Helge [EMAIL PROTECTED] wrote:Hi all,i've a little question again! :)There is a dataTable in my mask: t:dataTable id=auftragTableborder=0bgcolor=#C0DAEAstyleClass=tablestyle=width: 100%;cellspacing=1 headerClass=table_headerrowClasses=table_row_1, table_row_2rowOnMouseOver=highlightTableRow(this);rowOnMouseOut=unHighlightTableRow(this); var=auftragKopfvalue=#{dispoAuftraege.auftragKoepfe}varDetailToggler=detailTogglerNow I've seen in debug that the function #{dispoAuftraege.auftragKoepfe } invalue is called 3 times on load.Why this?Greets,Helge-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395 Cep Tel - Mobile Phone: +90 532 472 00 63Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: Disable valdidation
+1 for immediate=true, but sometimes it is not sufficient for complex forms, you can take a look to the OptionalValidationFramework http://wiki.apache.org/myfaces/OptionalValidationFramework (i wasn't able to work it but may be you can..)On 4/28/06, Bjørn T Johansen [EMAIL PROTECTED] wrote: On Fri, 28 Apr 2006 14:59:54 +0200[EMAIL PROTECTED] wrote: Hello Is is possible to disable the validation? I would like to use a commandLink. When I press this link the validations of the input fields should be disabled. Set immediate=true-Bjørn T Johansen[EMAIL PROTECTED] ---Someone wrote:I understand that if you play a Windows CD backwards you hear strange Satanic messages To which someone replied:It's even worse than that; play it forwards and it installs Windows--- -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: f:param and commandButton
You can use t:saveState tag to access the variable from the second page. I think...regards...On 4/27/06, Uri Kalish [EMAIL PROTECTED] wrote: This is not good for me. I navigate to another page and need this value on the second bean (not the first bean connected to the page sending the parameter). The parameter is accessible to the second bean also. From: Murat Hazer [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 27, 2006 4:09 PM To: MyFaces Discussion Subject: Re: f:param and commandButton You can use t:updateActionListener with command button, also you can read http://wiki.apache.org/myfaces/ExecutingMethodsFromLinkButtonParameters for additional info. regards On 4/27/06, Uri Kalish [EMAIL PROTECTED] wrote: When I send a parameter from a commandButton I get a string containing the word null from the parameters map. If I use a commandLink instead - it works. Any ideas? h:commandButton id=addNewLoadTestReservationButton action=""> value=#{msgs.addNewLoadTestReservationButton} styleClass=button_action f:param name=reservation value=0/ /h:commandButton h:commandLink id=addNewLoadTestReservationLink action="" h:outputText value=#{msgs.addNewLoadTestReservationButton}/ f:param name=reservation value=0/ /h:commandLink __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ -- Murat HAZER Elektrik-Elektronik M�hendisi - Electrical-Electronics Engineer Tel - Phone: +90 222 335 05 80 - 1395 Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.org Yahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/ __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: Char Encoding
Hi,I checked the spring's char encoding filter and also implemented a new filter but still i see (i can see filter working in the debugging mode)codeNo character encoding given, using default character encoding ISO-8859-1/code warning in the console.regards...On 4/19/06, Mert Çalışkan [EMAIL PROTECTED] wrote: You should also convert your application resource bundles to UTF-8. Here is a blogpost contains necessary steps.. http://www.jroller.com/page/mert?entry=utf_8_encoding_with_jsf Cheers, Mert. On 4/18/06, Cagatay Civici [EMAIL PROTECTED] wrote: Hi,What about the filter mapping, are you sure the filter does it's job. Also you can do the same thing with a custom filter like;import java.io.IOException;import javax.servlet.Filter;import javax.servlet.FilterChain;import javax.servlet.FilterConfig;import javax.servlet.ServletException;import javax.servlet.ServletRequest;import javax.servlet.ServletResponse; public class YourCharEncodingFilter implements Filter { public void init(FilterConfig arg0) throws ServletException { } public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException { servletRequest.setCharacterEncoding(UTF-8); servletResponse.setCharacterEncoding(UTF-8); filterChain.doFilter (servletRequest, servletResponse); } public void destroy() { }}Regards, Cagatay On 4/18/06, Murat Hazer [EMAIL PROTECTED] wrote: Hi,I see this line(s) at the output console after each page render completed 17:16:09,796 DEBUG HtmlResponseWriterImpl:97 - No character encoding given, using default character encoding ISO-8859-1 i am using spring's CharacterEncodingFilter to solve this problem as below;filterfilter-nameencodingFilter/filter-namefilter-classorg.springframework.web.filter.CharacterEncodingFilter /filter-classinit-paramparam-nameencoding/param-nameparam-valueUTF-8/param-value/init-paraminit-paramparam-nameforceEncoding/param-name param-valuetrue/param-value/init-param/filtershould i do something different in order to change default char encoding to utf-8? -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics Engineer Tel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/ -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: Forced to use session bean for datatable
Hi,You can save your lists (datatable uses) with t:saveState, this is a better approach then session scoped beans as i know.regards...On 4/18/06, 101questionjsf [EMAIL PROTECTED] wrote: hi all,I'm using datatable with sorting option for quite a number of pages, withsession beans for nearly all beans.If I switch to use request scope bean, the sorting will not work for thedatatable. Is it alright that nearly all my beans are session scoped? Or is there anyother option such that i can have sorting option and also request scoped?Thanks--View this message in context: http://www.nabble.com/Forced-to-use-session-bean-for-datatable-t1467150.html#a3965215Sent from the MyFaces - Users forum at Nabble.com. -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Char Encoding
Hi,I see this line(s) at the output console after each page render completed17:16:09,796 DEBUG HtmlResponseWriterImpl:97 - No character encoding given, using default character encoding ISO-8859-1i am using spring's CharacterEncodingFilter to solve this problem as below; filter filter-nameencodingFilter/filter-name filter-classorg.springframework.web.filter.CharacterEncodingFilter/filter-class init-param param-nameencoding/param-name param-valueUTF-8/param-value /init-param init-param param-nameforceEncoding/param-name param-valuetrue/param-value /init-param /filtershould i do something different in order to change default char encoding to utf-8?-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics Engineer Tel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: tld files are not found
Hi,Problem disappered when a built the source on a Linux machine, problem is something with windows i think :).regards...On 4/10/06, Murat Hazer [EMAIL PROTECTED] wrote: Hi,I don't think this (http://issues.apache.org/jira/browse/TOMAHAWK-242) is the same issue as mine. On my situation tld files are missing in the jar files. regards...On 4/10/06, Mario Ivankovits [EMAIL PROTECTED] wrote: Hi!Could you please check if this is bughttp://issues.apache.org/jira/browse/TOMAHAWK-242 ?If this is the case, I've already fixed it, though, will commit it tomorrow. Ciao,Mario Hi,I built the myfaces from the SVN with maven, everything worked well and jar files are generated. Then i import these new jar files to the my project lib path and removed old myfaces jar files then i fired up the server and it started without any error. But when i call a page i got the following error; javax.servlet.ServletException: The absolute uri: http://java.sun.com/jsf/core cannot be resolved in either web.xml or the jar files deployed with this application javax.faces.webapp.FacesServlet.service(FacesServlet.java:152) org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter (ExtensionsFilter.java:144) org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal (OpenSessionInViewFilter.java:174) org.springframework.web.filter.OncePerRequestFilter.doFilter (OncePerRequestFilter.java:76) org.ajaxanywhere.AAFilter.doFilter(AAFilter.java:43) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter (FilterChainProxy.java:292) org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116) org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java :79) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:143) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter (FilterChainProxy.java:303) org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:246) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java :220) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:173) org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:120) then i checked the jar files which i built recently and i saw that tld files are missing in the META-INF directories. (nightly build jar files at the myfaces official page have these tld files) What am i doing wrong? regards... -- Murat HAZER Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer Tel - Phone: +90 222 335 05 80 - 1395 Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.org Yahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/ --mfgMario Ivankovits - OPS EDV Vertriebsges.m.b.H.Software EngineeringMichael-Bernhard-Gasse 10, A-1120 WienTel.: +43-1-8938810Fax: +43-1-8938810/3700E-Mail: [EMAIL PROTECTED]Skype: mario_ivankovits-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395 Cep Tel - Mobile Phone: +90 532 472 00 63Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/ -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: tld files are not found
ooppsOn 4/11/06, maixu [EMAIL PROTECTED] wrote: Coño contestame algo, que voy a pensar que me odias.On 4/11/06, Murat Hazer [EMAIL PROTECTED] wrote: Hi,Problem disappered when a built the source on a Linux machine, problem is something with windows i think :). regards...On 4/10/06, Murat Hazer [EMAIL PROTECTED] wrote: Hi,I don't think this (http://issues.apache.org/jira/browse/TOMAHAWK-242) is the same issue as mine. On my situation tld files are missing in the jar files. regards...On 4/10/06, Mario Ivankovits [EMAIL PROTECTED] wrote: Hi!Could you please check if this is bughttp://issues.apache.org/jira/browse/TOMAHAWK-242 ?If this is the case, I've already fixed it, though, will commit it tomorrow. Ciao,Mario Hi,I built the myfaces from the SVN with maven, everything worked well and jar files are generated. Then i import these new jar files to the my project lib path and removed old myfaces jar files then i fired up the server and it started without any error. But when i call a page i got the following error; javax.servlet.ServletException: The absolute uri: http://java.sun.com/jsf/core cannot be resolved in either web.xml or the jar files deployed with this application javax.faces.webapp.FacesServlet.service(FacesServlet.java:152) org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter (ExtensionsFilter.java:144) org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal (OpenSessionInViewFilter.java:174) org.springframework.web.filter.OncePerRequestFilter.doFilter (OncePerRequestFilter.java:76) org.ajaxanywhere.AAFilter.doFilter(AAFilter.java:43) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter (FilterChainProxy.java:292) org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116) org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java :79) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:143) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter (FilterChainProxy.java:303) org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:246) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java :220) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:173) org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:120) then i checked the jar files which i built recently and i saw that tld files are missing in the META-INF directories. (nightly build jar files at the myfaces official page have these tld files) What am i doing wrong? regards... -- Murat HAZER Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer Tel - Phone: +90 222 335 05 80 - 1395 Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.org Yahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/ --mfgMario Ivankovits - OPS EDV Vertriebsges.m.b.H.Software EngineeringMichael-Bernhard-Gasse 10, A-1120 WienTel.: +43-1-8938810Fax: +43-1-8938810/3700E-Mail: [EMAIL PROTECTED]Skype: mario_ivankovits-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395 Cep Tel - Mobile Phone: +90 532 472 00 63Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/ -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics Engineer Tel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/ -- maixu -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
tld files are not found
Hi,I built the myfaces from the SVN with maven, everything worked well and jar files are generated. Then i import these new jar files to the my project lib path and removed old myfaces jar files then i fired up the server and it started without any error. But when i call a page i got the following error; javax.servlet.ServletException: The absolute uri: http://java.sun.com/jsf/core cannot be resolved in either web.xml or the jar files deployed with this application javax.faces.webapp.FacesServlet.service(FacesServlet.java:152) org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144) org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal (OpenSessionInViewFilter.java:174) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) org.ajaxanywhere.AAFilter.doFilter(AAFilter.java:43) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter (FilterChainProxy.java:292) org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116) org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java :79) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:143) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter (FilterChainProxy.java:303) org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:246) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:220) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:173) org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:120) then i checked the jar files which i built recently and i saw that tld files are missing in the META-INF directories. (nightly build jar files at the myfaces official page have these tld files)What am i doing wrong? regards...-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: tld files are not found
Hi,I don't think this (http://issues.apache.org/jira/browse/TOMAHAWK-242) is the same issue as mine. On my situation tld files are missing in the jar files. regards...On 4/10/06, Mario Ivankovits [EMAIL PROTECTED] wrote: Hi!Could you please check if this is bughttp://issues.apache.org/jira/browse/TOMAHAWK-242 ?If this is the case, I've already fixed it, though, will commit it tomorrow. Ciao,Mario Hi,I built the myfaces from the SVN with maven, everything worked well and jar files are generated. Then i import these new jar files to the my project lib path and removed old myfaces jar files then i fired up the server and it started without any error. But when i call a page i got the following error; javax.servlet.ServletException: The absolute uri: http://java.sun.com/jsf/core cannot be resolved in either web.xml or the jar files deployed with this application javax.faces.webapp.FacesServlet.service(FacesServlet.java:152) org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter (ExtensionsFilter.java:144) org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal (OpenSessionInViewFilter.java:174) org.springframework.web.filter.OncePerRequestFilter.doFilter (OncePerRequestFilter.java:76) org.ajaxanywhere.AAFilter.doFilter(AAFilter.java:43) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter (FilterChainProxy.java:292) org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116) org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java :79) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:143) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter (FilterChainProxy.java:303) org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:246) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java :220) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:173) org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:120) then i checked the jar files which i built recently and i saw that tld files are missing in the META-INF directories. (nightly build jar files at the myfaces official page have these tld files) What am i doing wrong? regards... -- Murat HAZER Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer Tel - Phone: +90 222 335 05 80 - 1395 Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.org Yahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/ --mfgMario Ivankovits - OPS EDV Vertriebsges.m.b.H.Software EngineeringMichael-Bernhard-Gasse 10, A-1120 WienTel.: +43-1-8938810Fax: +43-1-8938810/3700E-Mail: [EMAIL PROTECTED]Skype: mario_ivankovits-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395 Cep Tel - Mobile Phone: +90 532 472 00 63Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: invoking a method of a bean
Hi,Take a look to the examples in the myfaces source code (sortTable.jsp).(you can checkout the examples for SVN with any SVN client, http://myfaces.apache.org/source-repository.html )regards...On 4/5/06, Benjamin Bratkus [EMAIL PROTECTED] wrote: hello users,i want to invoke a method for sorting a list in a managed bean of my appwithin another managed bean. can anyone give me a hint ?best regards, thanks in advance,ben -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: Problem when report generation and JSF navigation
Hi,You should add this line just above facesContext.responseComplete() line;facesContext.getApplication().getStateManager().saveSerializedView( facesContext);PS: Martin's solution... On 4/4/06, Sébastien Marin [EMAIL PROTECTED] wrote: Hello, i have the same problem. The first action is Ok but the second just do arefresh or made error. It is the same process when we click on the back icon ofthe web browser.I would like to understand. Thanks Selon Thomas Gaudin [EMAIL PROTECTED]:- Hi,-- I am using JasperReport to generate PDF files on the fly.- It is working fine the first time I click on the link to the report but it - fails alternatively every 2 clicks exactly...- I guess I am somehow messing up the navigation mecanism but I don't know- where to start my investigation.- Any hint is warmly welcome.- Thanks, -- Thomas-- Here is the code :- - JSF Bean :- public class Reports extends BasePage implements Serializable {- public String users() { - List results = userManager.getUsers(null);- Map parameters = new HashMap();- parameters.put(format, pdf);- parameters.put(WEBDIR, getServletContext().getRealPath(/)); - try{- InputStream is =- getServletContext().getResourceAsStream(/WEB-INF/reports/userList.jrxml);- JRBeanCollectionDataSource ds = new- JRBeanCollectionDataSource(results); -- getResponse().setContentType(application/pdf);- getResponse().addHeader(Content-Disposition, attachment;- filename=userList.pdf); -- JasperDesign jasperDesign = JRXmlLoader.load(is);- JasperReport jasperReport = JasperCompileManager.compileReport- (jasperDesign);- JasperPrint jasperPrint = - JasperFillManager.fillReport(jasperReport,- parameters, ds);- JasperExportManager.exportReportToPdfStream(jasperPrint,- getResponse().getOutputStream());-- getFacesContext().responseComplete(); - }- catch(Exception e){- log.error(e);- }- return null;- }- - The link to generate report : - h:commandLink value=report action="">- - faces-config.xml :-managed-bean- managed-bean-namereports/managed-bean-name - managed-bean-classorg.appfuse.webapp.action.Reports- /managed-bean-class- managed-bean-scoperequest/managed-bean-scope- managed-property - property-nameuserManager/property-name- value#{userManager}/value- /managed-property- /managed-bean -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
jscookmenu and navigation menu items
Hi, i am using jscookmenu in my project, and i neither want to hard code navigation menu items into java classes nor JSF's. I want to carry to these navigation menu items to db or an xml file for easy manupilating. I thought that to do this i need to create a db row for each navigation menu item and also there should be a extra column in each row which points to the up navigation menu item. If i do this also i need to implement recursive funtions :( to build the menu by using these db rows. (this bean could be application or session scoped) I wanna ask you that is this idea acceptable or there is any other proven pattern to do something like this?regards...-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics Engineer Blog URL: http://www.projedunyasi.org
Re: Facelet and JSF View handler together
appfuse is an example application. if it is too complicated you can take a look to this article http://www.javaworld.com/javaworld/jw-07-2004/jw-0719-jsf.html both of them have source code, you can download source and work on them.regardsOn 4/1/06, kyphung [EMAIL PROTECTED] wrote:Thank for showing me. I will try again, but if you have any exsample, give me please.regrads--View this message in context: http://www.nabble.com/Facelet-and-JSF-View-handler-together-t1343779.html#a3702045 Sent from the MyFaces - Users forum at Nabble.com.-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics Engineer Tel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: Does inputSuggestAjax works with STATE_SAVING_METHOD=server
i have looked nightly build of sandbox.jar like tomahawk.jar, so i could'nt get it from http://cvs.apache.org/builds/myfaces/nightly/ , should i build it from the source? -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395
Re: Does inputSuggestAjax works with STATE_SAVING_METHOD=server
Is there any wiki entry about how to do this?On 3/31/06, Mike Kienenberger [EMAIL PROTECTED] wrote: Yes, you currently have to build sandbox from source.On 3/31/06, Murat Hazer [EMAIL PROTECTED] wrote: i have looked nightly build of sandbox.jar like tomahawk.jar, so i could'nt get it from http://cvs.apache.org/builds/myfaces/nightly/ , should i build it from the source? -- Murat HAZER Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer Tel - Phone: +90 222 335 05 80 - 1395 -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: Facelet and JSF View handler together
web.xml configuration!-- Facelets paramaters-- context-param param-namefacelets.VIEW_MAPPINGS/param-name param-value*.xhtml/param-value /context-param context-param param-namefacelets.DEVELOPMENT/param-name param-valuetrue/param-value /context-param context-param param-namefacelets.REFRESH_PERIOD/param-name param-value1/param-value /context-param servlet id=Servlet_1118759574209 descriptionFaces classic servlet same as IBM SUN and myFaces/description servlet-nameFaces Servlet/servlet-name servlet-classjavax.faces.webapp.FacesServlet /servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameFaces Servlet/servlet-name url-pattern/faces/*/url-pattern /servlet-mapping/faces/* mapping is important, if you change your web.xml file as described above your files which has xhtml extension will be handled by Facelets view handler.This works for me, let me know it works for you or not. Regards-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi97/
Re: Facelet and JSF View handler together
your web.xml (/WEB-INF/web.xml) is not correct it is another facec-config file defintion. I recomend you take a deep look to appfuse kickstart example htp://appfuse.dev.java.net/ . It is a very nice point to start. You can look to web.xml file in the appfuse. You need to add the lines which i sent in the previous post to web.xml to have facelet support.regardsOn 4/1/06, kyphung [EMAIL PROTECTED] wrote: Dear sir,this is my web.xml-web.xml?xml version='1.0' encoding='UTF-8'?!DOCTYPE faces-config PUBLIC-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//ENhttp://java.sun.com/dtd/web-facesconfig_1_0.dtdfaces-config!-- from project setup -- applicationview-handlercom.sun.facelets.FaceletViewHandler/view-handler/application!-- our NumberBean we created before -- managed-beanmanaged-bean-nameIncreaseNumberBean/managed-bean-namemanaged-bean-classbeans.IncreaseNumberBean/managed-bean-classmanaged-bean-scopesession/managed-bean-scope /managed-bean managed-beanmanaged-bean-nameAddNumberBean/managed-bean-namemanaged-bean-classbeans.AddNumberBean/managed-bean-class managed-bean-scopesession/managed-bean-scope/managed-bean!-- going from addNumberPage.xhtml to responseAddNP.xhtml --navigation-rule from-view-id/addNumberPage.xhtml/from-view-idnavigation-casefrom-outcomesuccess/from-outcometo-view-id/responseAddNP.xhtml/to-view-id /navigation-case/navigation-rule!-- going from responseAddNP.xhtml to guess.xhtml --navigation-rulefrom-view-id/responseAddNP.xhtml/from-view-id navigation-casefrom-outcomesuccess/from-outcometo-view-id/addNumberPage.xhtml/to-view-id/navigation-case/navigation-rule !-- going from increaseNumberPage.xhtml to responseIncNP.xhtml --navigation-rulefrom-view-id/increaseNumberPage.xhtml/from-view-idnavigation-casefrom-outcomesuccess/from-outcome to-view-id/responseIncNP.xhtml/to-view-id/navigation-case/navigation-rule!-- going from responseIncNP.xhtml to guess.xhtml --navigation-rule from-view-id/responseIncNP.xhtml/from-view-idnavigation-casefrom-outcomesuccess/from-outcometo-view-id/increaseNumberPage.xhtml/to-view-id /navigation-case/navigation-rule!-- going from responseIncNP.xhtml to guess.xhtml --navigation-rulefrom-view-id/connectJSP_xhtml.xhtml/from-view-id navigation-casefrom-outcomesuccess/from-outcometo-view-id/connectJSP_jsp.jsp/to-view-id/navigation-case/navigation-rule /faces-config-faces-config.xml?xml version='1.0' encoding='UTF-8'?!DOCTYPE faces-config PUBLIC -//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//ENhttp://java.sun.com/dtd/web-facesconfig_1_0.dtd faces-config!-- from project setup --applicationview-handlercom.sun.facelets.FaceletViewHandler/view-handler/application !-- our NumberBean we created before --managed-beanmanaged-bean-nameIncreaseNumberBean/managed-bean-namemanaged-bean-classbeans.IncreaseNumberBean /managed-bean-classmanaged-bean-scopesession/managed-bean-scope/managed-bean managed-beanmanaged-bean-nameAddNumberBean/managed-bean-name managed-bean-classbeans.AddNumberBean/managed-bean-classmanaged-bean-scopesession/managed-bean-scope/managed-bean!-- going from addNumberPage.xhtml to responseAddNP.xhtml --navigation-rulefrom-view-id/addNumberPage.xhtml/from-view-idnavigation-casefrom-outcomesuccess/from-outcome to-view-id/responseAddNP.xhtml/to-view-id/navigation-case/navigation-rule!-- going from responseAddNP.xhtml to guess.xhtml --navigation-rule from-view-id/responseAddNP.xhtml/from-view-idnavigation-casefrom-outcomesuccess/from-outcometo-view-id/addNumberPage.xhtml/to-view-id /navigation-case/navigation-rule!-- going from increaseNumberPage.xhtml to responseIncNP.xhtml --navigation-rulefrom-view-id/increaseNumberPage.xhtml/from-view-id navigation-casefrom-outcomesuccess/from-outcometo-view-id/responseIncNP.xhtml/to-view-id/navigation-case/navigation-rule !-- going from responseIncNP.xhtml to guess.xhtml --navigation-rulefrom-view-id/responseIncNP.xhtml/from-view-idnavigation-casefrom-outcomesuccess/from-outcome to-view-id/increaseNumberPage.xhtml/to-view-id/navigation-case/navigation-rule!-- going from responseIncNP.xhtml to guess.xhtml --navigation-rule from-view-id/connectJSP_xhtml.xhtml/from-view-idnavigation-casefrom-outcomesuccess/from-outcometo-view-id/connectJSP_jsp.jsp/to-view-id /navigation-case/navigation-rule/faces-config-catalina.2006-04-01.log Apr 1, 2006 1:12:30 PM org.apache.catalina.core.AprLifecycleListenerlifecycleEventINFO: The Apache Portable Runtime which allows optimal performance inproduction environments was not found on the java.library.path :/opt/jdk1.5.0_06/jre/lib/i386/client:/opt/jdk1.5.0_06/jre/lib/i386:/opt/jdk1.5.0_06/jre/../lib/i386Apr 1, 2006 1:12:30 PM org.apache.coyote.http11.Http11BaseProtocol initINFO: Initializing Coyote HTTP/1.1 on http-8080 Apr 1, 2006 1:12:30 PM org.apache.catalina.startup.Catalina
Re: Spring, myfaces, hibernate
Take a look to the appFuse sample application.On 3/30/06, 101questionjsf [EMAIL PROTECTED] wrote: Currently I'm using only myfaces to do my application. Is it advisable to use Spring and Hibernate? Can I proceed without them?Currently, whenever connect to db to do something, I'm writing jdbcstatements, not using hibernate.And never use Spring.Only 1 jsp page linked to 1 managed bean. Is my approach alright? or something wrong?--View this message in context: http://www.nabble.com/Spring%2C-myfaces%2C-hibernate-t1367883.html#a3668253 Sent from the MyFaces - Users forum at Nabble.com.-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics Engineer Tel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
MyFaces and Jasper Reports
Hi,Is there any article which explains best practices for using MyFaces with JasperReports? ( Just I am telling for extra knowledge; spring works in the middle tier and hibernate work in the db layer).Or you can suggest different reporting frameworks. Regards.-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerBlog URL: http://www.projedunyasi.org
Re: jscookmenu and custom themes in 1.1.1
You should you stylelocation property of the t:jscookmenu tag.t:jscookMenu layout=vbr theme=ThemeOffice styleLocation=Regards On 3/25/06, Brian Woolf [EMAIL PROTECTED] wrote: hi:Does anyone know, how tousing custom themes for the jscookmenu componentin myFacesrelease.1.1.1? My pages worked correctly in myfaces release1.1.1,so I don't switched tonightly build.Thanks, --View this message in context: http://www.nabble.com/jscookmenu-and-custom-themes-in-1.1.1-t1341339.html#a3586688 Sent from the MyFaces - Users forum at Nabble.com.-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics Engineer
Facelet and JSF View handler together
Hi, I am on a project which is not using facelets right now and i want to migrate the project to facelets in time. So i wanna ask that is it possible that using myfaces JSPViewHandler and FaceletViewHandler together? (some pages Facelets and others are JSP). -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerBlog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi97/
JSF and Tiles
Hi,Is there a good tutorial introduces tiles and usage of it with JSF, or is there any other good templating framework for JSF?Regards-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics Engineer
Re: JSF and Tiles
Thanks all of you, i will consider with facelets and Shale/Clay.On 3/24/06, Werner Punz [EMAIL PROTECTED] wrote: Greg Reddin wrote: On Mar 24, 2006, at 9:15 AM, Murat Hazer wrote: Is there a good tutorial introduces tiles and usage of it with JSF, or is there any other good templating framework for JSF? If you'/re starting from scratch with no knowledge of Tiles, I'd recommend starting with Facelets or Clay.I have no experience with either, but, as has been pointed out already, they are native JSF technologies, whereas Tiles was conceived in a world without JSF and the integration can be problematic.If you like Tiles I'd ask you to check out the Standalone version that is currently in the sandbox.A (mostly) working version is available and I am trying to push forward with it.By the end of that process it will be much easier to use Tiles with JSF, although still probably not seamless.Stay tuned. GregI can second that, although the tiles approach in JSF is way saner with 1/3rd less glue code in xml thank in Struts, it still is a somewhatrough experience, with many internal issues.If you can, omit tiles and go for something else.The options have been mentioned. -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
AjaxAnwhere t:inputDate
Hi, In a page am using ajaxanywhere to change the rendered attribute of a f:subview. And this subview has t:input date components, when this subview's rendered attribure changed false to true the popUpCalendar attribute doesn't work because the scripts on the head tag is not refreshed, what should i do? (a new zone to head? or add scripts manually to the page ?...). -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: Update ManageBean from different pages.
t:savestate is a good practice, also you should make your backing bean session scoped.On 3/22/06, CONNER, BRENDAN (SBCSI) [EMAIL PROTECTED] wrote: Are you using t:saveState to save the state of the bean? - Brendan -Original Message-From: Hagay Avisar [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 22, 2006 12:31 PMTo: users@myfaces.apache.orgSubject: Update ManageBean from different pages. Hi All, I have a page that displays 2 tabs. Each tab is of course another JSF page. Meaning I have pageFrame.jsf that displays 2 tabs, and another 2 pages page1.jsf, page2.jsf. (One for each tab) All pages are related to the same manage bean. The problem is when I am navigate between tabs the data is not saved, meaning when navigate from tab1 to tab2 all the data I have insert In tab1 is disappears. In addition I would like after pressing OK button (from tab1 or from tab2) to get the data from both tabs. How can I do it? What do I need to do to save the data from disappearing when moving between tabs? How can I get the data from all the pages? What is the best practice? Thanks, Hagay. __This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __ -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: t:dataTable problem
t:datatable var=model h:column f:facet name=header t:outputtext value=No / /f:facet t:outputtext value=#{ model.no}/h:column h:column f:facet name=header t:outputtext value=Price / /f:facet h:panelGrid columns=2 t:inputText rendered=#{...}/ t:commandButton rendered=#{...}/ t:inputText rendered=#{...} / t:commandButton rendered=#{...}/ /h:panelGrid /h:column/t:datatableİ didn't tried this code snippet but it should be work like this. The main point is that you can use h:panelGrid to group some items in a dataTable column, and also you can use rendered attribute of the JSF components to make visible or unvisible them. Regards.On 3/22/06, Le Van [EMAIL PROTECTED] wrote: Dear All, I have to render a table like the following. I use t:dataTable, but I don't know how to do it with t:dataTable. Is there any solution for this ??. I can do with my table renderer. But I think my faces can do it for me ?? can anyone help me??? No Price 1 2 -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics Engineer
actionListener not invoked
A simple page has two linkst:commandLink id=link1 actionListener=#{backer.edit} value=Edit rendered=#{back.enabled} / t:commandLink id=link2 actionListener=#{backer.enableEdit} value=Enable Edit /When the enable edit link is cliked 'enabled' property of the backing bean is changed to true so that the Edit link is rendered. The problem is that once the Edit link is rendered, it's method binding doesn't work. The edit method is never called when I click the link (or button). Why does this happen?-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: actionListener not invoked
Thanks for all answers, i solved the problem with t:savestate. (also al80 on the IRC channel helped me to solve the problem.)On 3/21/06, Dennis Byrne [EMAIL PROTECTED] wrote: (You may want to look on the wiki for this.Find the FAQ section and scroll all the way to the bottom. Dennis Byrne-Original Message-From: Murat Hazer [mailto:[EMAIL PROTECTED]]Sent: Tuesday, March 21, 2006 07:10 AMTo: users@myfaces.apache.orgSubject: actionListener not invokedA simple page has two linkst:commandLink id=link1 actionListener=#{backer.edit} value=Edit rendered=#{back.enabled} /t:commandLink id=link2 actionListener=#{backer.enableEdit}value=Enable Edit /When the enable edit link is cliked 'enabled' property of the backing bean is changed to true so that the Edit link is rendered. The problem is thatonce the Edit link is rendered, it's method binding doesn't work. The editmethod is never called when I click the link (or button). Why does this happen?--Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/ -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: actionListener not invoked
Hi,Let me explain the problem briefly; Enable Edit link (id=link2) is always rendered on the page, when user clicks this link the Edit link's (id=link1)' rendered attribute converted false to true, now at that time two links rendered on the page. If i don't use savestate (another solution is put the backer bean to the session scope, but i think it is not very clever solution), the Edit link's (id=link1) actionListener isn't invoked(actionListener=#{ backer.edit}). (but you can see the code to invoke the method in the source of the generated html page, this was confused my mind).As i told in the question problem solution is very easy but it is a little confusing. RegardsOn 3/22/06, Dean Hiller [EMAIL PROTECTED] wrote: I am confused by the response.if back.enabled was false, he would notbe able to click the commanLink, would he?It sounds like he was saying backer.edit was not working.Maybe myquestion is a stupid question from a newb(me), but could you explain that response more so I can understand.thanks,deanMike Kienenberger wrote:My guess is that you are not persisting the value of #{back.enabled}between requests.In order for a UICommand to work, it must remain enabled (rendered=true) from the first request renderResponse phase to thenext request's invokeApplication phase.Maybe all you need to do is use t:saveState on #{back.enabled}.On 3/21/06, Murat Hazer [EMAIL PROTECTED] wrote:A simple page has two linkst:commandLink id=link1 actionListener=#{backer.edit } value=Editrendered=#{back.enabled} / t:commandLink id=link2 actionListener=#{backer.enableEdit}value=Enable Edit / When the enable edit link is cliked 'enabled' property of the backing beanis changed to true so that the Edit link is rendered. The problem is thatonce the Edit link is rendered, it's method binding doesn't work. The edit method is never called when I click the link (or button). Why does thishappen?--Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395 Cep Tel - Mobile Phone: +90 532 472 00 63Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics Engineer Tel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/