Re: t:commandButton action method not called
I did it before but the problem still occur. So do u think the reason is JSF or 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/
Re: Transfering data between pages.
Yes same managed-bean Rogerio. I supposeyou were adding the results from the bean in popup page to the bean in main page. Cheers, Mert On 5/4/06, Rogerio Pereira [EMAIL PROTECTED] wrote: Use the same list for the main and popup page. Define it as a managed-bean with session scope. You mean use the same managed-bean in both pages? After refreshing the main page you should see the address list within the main page. So no need to add operations, thx to managed-beans. What u mean with add operations? -- Yours truly (Atenciosamente),Rogério
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/
How to write a customized valdation, that validate by comparing one field to another_
I need to validate two fields on my webpage, two dates, and I need to check if one date is greater than the other. 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 ---
Re: t:commandButton action method not called
Thanks for your advice. I try your code but I can't solved the problem. I port that code to other screen, it work fine. So I think the problem maybe from .jsp. :-) Life goes on. Murat Hazer wrote: 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] mailto:[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] mailto:[EMAIL PROTECTED] wrote: I did it before but the problem still occur. So do u think the reason is JSF or 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] mailto: [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 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 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/
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: How to write a customized valdation, that validate by comparing one field to another_
You could do it using validator. Read *JavaServer Faces of Hans Bergsten.* Bjørn T Johansen wrote: I need to validate two fields on my webpage, two dates, and I need to check if one date is greater than the other. 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
Re: How to write a customized valdation, that validate by comparing one field to another_
Hi, there is a validateCompareTo tag in sandbox http://myfaces.apache.org/sandbox/validateCompareTo.html http://myfaces.apache.org/sandbox/tlddoc/s/validateCompareTo.html Regards, Volker Le Van wrote: You could do it using validator. Read *JavaServer Faces of Hans Bergsten.* Bjørn T Johansen wrote: I need to validate two fields on my webpage, two dates, and I need to check if one date is greater than the other. 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 -- Don't answer to From: address! Mail to this account are droped if not recieved via mailinglist. To contact me direct create the mail address by concatenating my forename to my senders domain.
RE: Who called my bean?
Title: Message It was me! Sorry, I won't do it again 8^) * ** *** ** * ** *** ** * ** *** ** * This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any views or opinions presented are solely those of the author, and do not necessarily represent those of ESB. If you have received this email in error please notify the sender. Although ESB scans e-mail and attachments for viruses, it does not guarantee that either are virus-free and accepts no liability for any damage sustained as a result of viruses. * ** *** ** * ** *** ** * ** *** ** *
RE: dynamically included subviews
We actually do this at the moment but the JSPs are getting bloated as this is the core of our reporting/charting framework and there are potentially many reports facets that can be shown (20-30+). I was looking for a more compact solution akin to using Velocity templates which could be dynamicaly inserted into the JSP by the backing bean. Both tiles and Facelets require thay I change the view hander for the entire app (all 120+ JSPs) which is overkill to support just I page. The other alternative is to build the view dynamically by inserting UI components into the comoponent tree but this starts to break down the MVC pattern. -Original Message- From: Le Van [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 4:38 AM To: MyFaces Discussion Subject: Re: dynamically included subviews Julian Ray wrote: Does anyone know if this is possible, and if so, what is the correct mechanism t:aliasBean alias=#{pageBean} value=#{Report} f:subview id=reportgui jsp:directive.include file=#{pageBean.reportTemplate} / /f:subview /t:aliasBean The JSP directive obviously cannot interpret the JSF value binding but is there an alternative way to dyncamically include a page without having to use tiles or facelets which seems to be overkill for this. Thanks Why you don't use rendered. f:subview id=reportgui rendered=FlagFromBean /f:subview
RE: 2 forms on one page?
Thanks Catalin. subForm sounds promising. I wait for the next version of MyFaces/Tomahawk/sandbox until I test it. How stable is this sandbox component? I assume that 1 html form is generated and not 1 for each subform. Does subForm work with both state saving methods? Michael From: Catalin Kormos [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 3. Mai 2006 20:14 To: MyFaces Discussion Subject: Re: 2 forms on one page? Hi, Looks to me like you could use the subForm component from sandbox: http://myfaces.apache.org/sandbox/subForm.html HTH, Catalin Michael Heinen [EMAIL PROTECTED] wrote: Hi all, I have another question: Is it possible to define 2 forms on one page and that only the submitted form is validated? e.g. buttonA submits formA and buttonB submits formB? I have a datatable on my page with a detail pane. The detail pane contains some fields in order to update the detail data of the selected object (formA). If the user selects multiple objects in the datatable, then I have to show another form (formB) in order to update different fields at once for the selected objects. These fields have to be bound to different attributes of my backing bean of course. So if the user submits formB then the model of formA should not be updated. I want to switch the visibility of the 2 forms via _javascript_ without a generating new server request. Does JSF support the above scenario (e.g. with subviews)? Or is this a requirement that should be better processed with ajax (which would be more complex for me)? Any help is highly appreciated again Michael Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
escape in outputText - don't work?
Hi I try getted non-escaped HTML out for national chars : h:outputText escape=false value=nationalChars/ but in HTML Out I view only escaping chars: #1042;#1099;#1095;#1077; If I use a SUN implementation of Faces - this attribute (escape) - is excellent work. How do? -- Vladimir
RE: subview id value added to child t:div
Hi, You can use forceId from MyFaces to force the id in HTML to be the id that you use. Regards, Fintan -Original Message- From: fischman_98 [mailto:[EMAIL PROTECTED] Sent: 04 May 2006 00:35 To: users@myfaces.apache.org Subject: f:subview id value added to child t:div Why does the subview id get added to the child div id? Is there any way to stop this from happening? Example: f:subview id=foo t:div id=bar . . . /t:div /t:subview The resulting HTML is: div id=foo:bar . . . /div -- View this message in context: http://www.nabble.com/f%3Asubview-id-value-added-to-child-t%3Adiv-t15535 06.html#a4220453 Sent from the MyFaces - Users forum at Nabble.com. * ** *** ** * ** *** ** * ** *** ** * This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any views or opinions presented are solely those of the author, and do not necessarily represent those of ESB. If you have received this email in error please notify the sender. Although ESB scans e-mail and attachments for viruses, it does not guarantee that either are virus-free and accepts no liability for any damage sustained as a result of viruses. * ** *** ** * ** *** ** * ** *** ** *
Disabled inputText Value
Use case: A user fills a value in an inputText field, checks a radio button that causes the field to become disabled, and submits the form. After the user submits, the value received is null, no matter what the field displays on the UI Is there a way to retrieve that value although the field is disabled, or must I use an extra hidden field and update it by _javascript_. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __
Re: Transfering data between pages.
Yes same managed-bean Rogerio. I supposeyou were adding the results from the bean in popup page to the bean in main page.Yes, you is right, but if i use the same managed-bean the things will be harder to understand later. -- Yours truly (Atenciosamente),Rogério
dataScroller not working, help please
I have a dataTable / dataScroller nested in a tabbedPane, which is itself in a nested Tile jsp. The dataTable / dataScroller jsp is almost exactly the same as given in the example. It displays the table and the scroller as it should. The correct number of pages according to the number of records, etc, which tells me the scroller is connecting to the table (if I have less than 10 records the scroller dissapears, if I have more than 10 it appears with 2 pages listed, so I assume that's correct). The problem is that the scroller buttons / page links don't actually do anything. It's like they are not links at all. When I view the source of the example and compare it to the source of my page I can see that there is a javascript function (getScrolling()) in the example source which is missing on my page. Any ideas please? What am I doing wrong / missing? I'm feeling pretty desperate now as I've been trying for days to get it working, and searched the web for answers, to no avail... -- View this message in context: http://www.nabble.com/dataScroller-not-working%2C-help-please-t1556234.html#a4227180 Sent from the MyFaces - Users forum at Nabble.com.
Re: dataScroller not working, help please
I solved my own problem, seems like I HAVE to ask for help before I figure things out! Anyway, my dataTable / scroller was nested inside a h:form tag, which is apparently a no no... -- View this message in context: http://www.nabble.com/dataScroller-not-working%2C-help-please-t1556234.html#a4227432 Sent from the MyFaces - Users forum at Nabble.com.
Re: MyFaces J1 party 2006
Sean Schofield wrote: Damn sounds like its going to be fun. Too bad I can't make it. *Definitely* next year. ;-) Me too. This is the JavaOne I've missed for some years. I'll miss the excellent beer in Thirsty Bear! Have fun! Jon. -- . Dr Jonathan Harley . . Email: [EMAIL PROTECTED] Zac Parkplatz Ltd . Office Telephone: 024 7633 1375 www.parkplatz.net . Mobile: 079 4116 0423
Re: MyFaces J1 party 2006
Jonathan Harley wrote: Sean Schofield wrote: Damn sounds like its going to be fun. Too bad I can't make it. *Definitely* next year. ;-) Me too. This is the JavaOne I've missed for some years. I'll miss the excellent beer in Thirsty Bear! Have fun! Uh, the *first* JavaOne that I've missed for some years. Although I never made it to a party, always too many interesting BOFs to learn from... maybe next year. -- . Dr Jonathan Harley . . Email: [EMAIL PROTECTED] Zac Parkplatz Ltd . Office Telephone: 024 7633 1375 www.parkplatz.net . Mobile: 079 4116 0423
RE: 2 forms on one page?
Hi Michael,The component is stable and functional, you can use it with no problem. You are right, only one html form is generated, and the components surrounded by a subForm can update model values and/or be validated separately from other components in the main form.It works with both client side and server side state saving.Regards,CatalinMichael Heinen [EMAIL PROTECTED] wrote:Thanks Catalin.subForm sounds promising.I wait for the next version of MyFaces/Tomahawk/sandbox until I test it.How stable is this sandbox component? I assume that 1 html form is generated and not 1 for each subform. Does subForm work with both state saving methods?MichaelFrom: Catalin Kormos [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 3. Mai 2006 20:14 To: MyFaces Discussion Subject: Re: 2 forms on one page? Hi, Looks to me like you could use the subForm component from sandbox: http://myfaces.apache.org/sandbox/subForm.html HTH, Catalin Michael Heinen [EMAIL PROTECTED] wrote:Hi all,I have another question:Is it possible to define 2 forms on one page and that only the submitted form is validated? e.g. buttonA submits formA and buttonB submits formB?I have a datatable on my page with a detail pane. The detail pane contains some fields in order to update the detail data of the selected object (formA). If the user selects multiple objects in the datatable, then I have to show another form (formB) in order to update different fields at once for the selected objects. These fields have to be bound to different attributes of my backing bean of course. So if the user submits formB then the model of formA should not be updated.I want to switch the visibility of the 2 forms via _javascript_ without a generating new server request. Does JSF support the above scenario (e.g. with subviews)? Or is this a requirement that should be better processed with ajax (which would be more complex for me)?Any help is highly appreciated again MichaelYahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2�/min or less. Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.
Column Ids not unique in JSF RI implementation with t:dataTable
All, We have the following scenario : A form with t:dataTable... t:columns... f:subview... jsp:include page = someSubForm.jsp /f:subview /t:columns /t:dataTabe someSubForm.jsp : html body h:panelGrid.. h:panelGroup h:selectoneMenu id=selectOneMenuId binding=.. immediate=true validate=someValidator f:selectItems value=../ /selectOneMenu /h:panelGroup /h:panelGrid The clientIds are not unique for each column for the selectOneMenu contents: id=body:formAndViewForm:formId:dataTableId:tColumnsId:subViewId:selectOneMenuId We have added libraries from Tomahawk. However, HtmlDataTableHack is never invoked. We are getting to UIColumns constructor but setRowIndex in UIColumns is not invoked either. Suggestions? Thank you. ERoman -- View this message in context: http://www.nabble.com/Column-Ids-not-unique-in-JSF-RI-implementation-with-%3Ct%3AdataTable%3E-t1556759.html#a4228472 Sent from the MyFaces - Users forum at Nabble.com.
Re: AddResource from JAR
Julian Ray wrote: I posted this a few days ago but it might have slipped through the cracks... I am attempting to add resources from a jar of custom components using the AddResource service in Tomahawk. It works for resources which are configured within the WEB-INF but I'm struggling to get jar-configured resources to load. The extensions filter is setup and working, AddResource works for JavaScript and css files which are statically stored but I can't seem to get the ResourceHandlers to work as MyFaces keeps complaining that it expects a myFacesCustomCommand. Are there any examples of doing this? Is it possible? Have you looked at https://weblets.dev.java.net/ yet? It's designed for serving resources out from a jar file. -- Dave Brondsema Software Developer Cornerstone University signature.asc Description: OpenPGP digital signature
Re: detail toggler in portal not working
Dunstan, Steve wrote: We have been using the t:dataTable varDetailToggler functionality with some success in our stand-alone web apps. However, when we started testing in the context of JBoss Portal it stopped working. Has anyone had success with this in a portal? I would guess that it relies on CSS/JS resources that cannot be added to head since it's in a portlet. You could modify the component code to add the resource inline, not in head, and it should work. See http://issues.apache.org/jira/browse/MYFACES-434 and http://issues.apache.org/jira/browse/TOMAHAWK-58 for some possible workarounds. -- Dave Brondsema Software Developer Cornerstone University signature.asc Description: OpenPGP digital signature
Re: AddResource from JAR
Hi,Weblets are created for this purpose but seem a little bit complicated to me. Another workaround should be to use a simple phaselistener which I suggest if you are writing a custom component library since it needs no configuration for the end user. Here is an example of a phaselistener serving resources from a jar; http://fisheye5.cenqua.com/viewrep/~raw,r=1.2/glassfish/jsf-extensions/run-time/src/main/java/com/sun/faces/util/ResourcePhaseListener.java https://jsf-extensions.dev.java.net/nonav/docs/apidocs/com/sun/faces/util/ResourcePhaseListener.htmlRegards,CagatayOn 5/4/06, Dave Brondsema [EMAIL PROTECTED] wrote:Julian Ray wrote: I posted this a few days ago but it might have slipped through the cracks... I am attempting to add resources from a jar of custom components using the AddResource service in Tomahawk. It works for resources which are configured within the WEB-INF but I'm struggling to get jar-configured resources to load. The extensions filter is setup and working, AddResource works for _javascript_ and css files which are statically stored but I can't seem to get the ResourceHandlers to work as MyFaces keeps complaining that it expects a myFacesCustomCommand. Are there any examples of doing this? Is it possible? Have you looked at https://weblets.dev.java.net/ yet?It's designed forserving resources out from a jar file.--Dave BrondsemaSoftware DeveloperCornerstone University
outputLink and context
How to make the outputLink be context relative so that my h:outputLink value=/hello.jsf t:outputText value=hello/ /h:outputLink would point to http://localhost:8080/hello/hello.jsf and not http://localhost:8080/hello.jsf -- With best regards, Alexander Panzhin smime.p7s Description: S/MIME Cryptographic Signature
JSF/Spring/Hibernate Thread Safety questions
Sorry if this is a bit too general for this list, but as I'm using myFaces as my JSF implementation I thought it would apply. I've recently written an e-commerce application using Facelets/JSF/Spring/Hibernate/Tomcat/MySQL with a shopping cart, customer sign-in, etc. As this is my first real application, I was wondering if there are any specific places within my application that I should be concerned about thread safety. I think I've been going under the possible mistaken belief that since most of my processing is done in Tomcat's sessions, and objects are stored in those sessions, I'm pretty safe. Are there any specific sections I need to be more aware of than others? (Customer sign-in, saving an order?) Also, I'm using a connection pool setup as a JNDI resource in Tomcat. Any help would be appreciated. Thank you.
Re: outputLink and context
Don't specify / before hello.jsf. It'd be context relative with this. Regards, Mert On 5/4/06, Alexander Panzhin [EMAIL PROTECTED] wrote: How to make the outputLink be context relativeso that myh:outputLink value=/hello.jsf t:outputText value=hello//h:outputLinkwould point to http://localhost:8080/hello/hello.jsf and not http://localhost:8080/hello.jsf--With best regards, Alexander Panzhin
Re: Specifying Arraylist of ArrayList for the value of a datatable
Thanks guys. so nice of you. Hasnain On 5/3/06, Mert Çalışkan [EMAIL PROTECTED] wrote: Yes as Volker stated above.and h:datatable can also be nested elements in h:columns like, h:dataTable id=table value=#{bean.list} var=varInnerList h:column f:facet name=header h:outputText value=List/h:outputText /f:facet h:dataTable id=nestedTable value=#{varInnerList} var=varNestedList h:column f:facet name=header h:outputText value=Nested List/h:outputText /f:facet h:outputText value=#{varNestedList} /h:outputText /h:column /h:dataTable/h:column /h:dataTable Regards, Mert On 5/3/06, Volker Weber [EMAIL PROTECTED] wrote: Hi Hasnain,i'm not sure if i understand you correct, but if so : yes why not.If you have a ( 1.5 Syntax) ArrayListArrayListString you can do:h:dataTable value=#{bean.list} var=innerList ... h:columnh:outputText value=#{innerList[0]}/ /h:columnh:columnh:outputText value=#{innerList[1]}//h:column... Regards,VolkerHasnain Badami wrote: hi I want to specify an ArrayList of ArrayLists as the value for my data table. Can an arraylist of arraylists be used and how?any help shall be highly appreciated. Hassnain --Don't answer to From: address!Mail to this account are droped if not recieved via mailinglist.To contact me direct create the mail address byconcatenating my forename to my senders domain.
Re: Transfering data between pages.
Yes same managed-bean Rogerio. I supposeyou were adding the results from the bean in popup page to the bean in main page.My problem is, i have 5 fields and 3 buttons on popup window and put this stuff in the same bean will make the things a little confuse and dificult to understand and manage later. -- Yours truly (Atenciosamente),Rogério
Does file upload component works inside a jsf portlet ?
Hi Thank you for reading my post Does file upload component works inside a portlet ? thanks
Re: dataScroller not working, help please
On 5/4/06, joelus [EMAIL PROTECTED] wrote: I solved my own problem, seems like I HAVE to ask for help before I figure things out! Anyway, my dataTable / scroller was nested inside a h:form tag, which is apparently a no no... Yes, you want to have tabbedPane inside of an h:form. Otherwise, it'll automatically add an h:form around itself. You might look into subform (either tomahawk sandbox or adffaces) if you want partial form processing.
Re: How to write a customized valdation, that validate by comparing one field to another_
validateCompareTo is exactly what you need, and it's stable. I wrote it to compare date fields, so this is its most-tested configuration :) I'll probably push to have it promoted from the sandbox to tomahawk pretty soon. The only issues holding it back (that I know of) are that there are some hardcoded strings in the code that need to be moved to localizable message properties. If you'd like to speed up the promotion process, feel free to submit patches fix this issue. On 5/4/06, Bjørn T Johansen [EMAIL PROTECTED] wrote: How stable is the components in sandbox? BTJ On Thu, 04 May 2006 09:45:55 +0200 Volker Weber [EMAIL PROTECTED] wrote: Hi, there is a validateCompareTo tag in sandbox http://myfaces.apache.org/sandbox/validateCompareTo.html http://myfaces.apache.org/sandbox/tlddoc/s/validateCompareTo.html
Re: Transfering data between pages.
You should specify the list as a managed-bean and use the same managed bean in main and popup page. Other UIComponents should be specified in two different backing-beans. Regards, Mert On 5/4/06, Rogerio Pereira [EMAIL PROTECTED] wrote: Yes same managed-bean Rogerio. I supposeyou were adding the results from the bean in popup page to the bean in main page. My problem is, i have 5 fields and 3 buttons on popup window and put this stuff in the same bean will make the things a little confuse and dificult to understand and manage later. -- Yours truly (Atenciosamente),Rogério
Re: Does file upload component works inside a jsf portlet ?
On 5/4/06, Legolas Woodland [EMAIL PROTECTED] wrote: Thank you for reading my post Does file upload component works inside a portlet ? I'm pretty sure that file upload requires the extensions filter. servlet filters don't work with portlets.
Re: question for t:selectOneRadio : how to add other components besides f:selectItem
On 5/3/06, Yasushi Okubo [EMAIL PROTECTED] wrote: I would like to add other components like outputtext, panelGrid etc inside t:selectOneRadio besides f:selectItem, but it seems it does not work. Is there any way to achieve this ? There have been a number of people asking how to do various things (images, outputLinks, etc) inside f:selectItem. Perhaps you could submit a patch to t:select* components that supports a t:selectItem which could contain a component to use as a renderer? Maybe as a facet or simply anything enclosed by t:selectItem?
Re: ActionListeners and Actions
I am going on a limb to answer this without first checking MyFaces code and the spec, so feel free to correct any errors I am about to post. Calling render response on the faces context will not interrupt the current phase, but instead just cause rendering to occur. According to what I remember of the JSF spec, you need to call the responseComplete() method of the context if you want to abort the phase cycle of JSF. With that said, I know that will abort the phase cycle, but I don't know if it will abort the current phase (execute application or whatever it is called). You can give it a shot though: public void actionListenerMethod(ActionEvent e) { //Shouldn't this bypass the action method??? FacesContext.getCurrentInstance().renderResponse(); FacesContext.getCurrentInstance().responseComplete(); } public String actionMethod() { return null; } (note, this is all from memory, so I may have the method name wrong and its location) -Andrew On 5/3/06, Matt Hughes [EMAIL PROTECTED] wrote: Is there any way to prevent an action method from being invoked from the action listener method? For example...take the following commandButton: h:commandButton actionListener=#{backingBean.actionListenerMethod} action=#{backingBean.actionMethod} value=Click Me / And the matching methods in your backing bean: public void actionListenerMethod(ActionEvent e) { //Shouldn't this bypass the action method??? FacesContext.getCurrentInstance().renderResponse(); } public String actionMethod() { return null; } It was my understanding the *renderResponse()* would skip the context into the render response phase, and any action methods would be skipped. In my tests, this is not true. So...is there any way to prevent an action method from being invoked from within an action listener method?
Re: t:selectManyCheckbox - Make Checkbox label a link
Here is one solution:Write a custom renderer. In that renderer, make a parent component with two temporal child components. First child: select one checkbox. Second child: output link. On the rendering of the checkbox, record it's client ID in a variable. On rendering of the output link, add a _javascript_: getElementById('+checkboxId +').value = !getElementById('+checkboxId +').value; as the URL of the link. This will toggle the value of the checkbox. Doing it as a custom component and a renderer you will have access to the client ID of the checkbox. Another alternative is to use forceId and just hand-code the output:scriptfunction toggleCheckbox(elemId) {var elem = document.getElementById(elemId)elem.value = !elem.value}/scriptt:selectBooleanCheckBox id=mycheckbox forceId=true .../t:outputLink url="" toggleCheckbox('mycheckbox') / There are other solutions and variations, but this should work for you. Depends on how much work you want to do to make it nice. Sounds like a good idea for a sandbox component to me (if only I had the time...) -AndrewOn 5/3/06, fischman_98 [EMAIL PROTECTED] wrote: Anyone know how to make the itemLabel of a SelectItem a href? I'd like to produce a checkbox that looks like this: COLUMBIA RIVER (WASHINGTON) SUN CLOUDS View this message in context: t:selectManyCheckbox - Make Checkbox label a link Sent from the MyFaces - Users forum at Nabble.com.
t:datascroller and missing javascript event handlers
Is there any reason that t:datascroller does not provide an onclick attribute or _javascript_ event handlers? I have to execute some _javascript_ in order to show a confirmation dialogue if data has been changed on my form but not saved. I could add onclick attributes to the facets (first, last, previous, next) but how can I add this to the paginator? Thank in advance Michael
Re: ActionListeners and Actions
On 5/4/06, Andrew Robinson [EMAIL PROTECTED] wrote: I am going on a limb to answer this without first checking MyFaces code and the spec, so feel free to correct any errors I am about to post. Calling render response on the faces context will not interrupt the current phase, but instead just cause rendering to occur. According to what I remember of the JSF spec, you need to call the responseComplete() method of the context if you want to abort the phase cycle of JSF. With that said, I know that will abort the phase cycle, but I don't know if it will abort the current phase (execute application or whatever it is called). You can give it a shot though: Andrew, I was thinking the same thing. However, I don't think either method aborts the current phase. It merely prevents any future phases from executing. responseComplete() actually means you've already drawn a response page. renderResponse does mean what you're saying, which is to skip to the render response phase. Matt, I think your best bet is to look at the LifeCycleImpl code and see what goes on when renderResponse is true. I know it kills any pending events, and you probably can use similar code to kill your existing action event.The other thing you can do is have your action listener set a flag somewhere, and then have your action take a look at the value of that flag when it starts up.
Re: t:datascroller and missing javascript event handlers
On 5/4/06, Michael Heinen [EMAIL PROTECTED] wrote: Is there any reason that t:datascroller does not provide an onclick attribute or javascript event handlers? I have to execute some javascript in order to show a confirmation dialogue if data has been changed on my form but not saved. I could add onclick attributes to the facets (first, last, previous, next) but how can I add this to the paginator? Probably because no one has needed the behavior up to this point. Feel free to open a Jira issue and submit patches.
Re: t:selectManyCheckbox - Make Checkbox label a link
Maybe you could work with Yasushi on this.-- Forwarded message --From: Mike Kienenberger [EMAIL PROTECTED]Date: May 4, 2006 11:31 AMSubject: Re: question for t:selectOneRadio : how to add other components besides f:selectItem To: MyFaces Discussion users@myfaces.apache.orgOn 5/3/06, Yasushi Okubo [EMAIL PROTECTED] wrote: I would like to add other components like outputtext, panelGrid etc inside t:selectOneRadio besides f:selectItem, but it seems it does not work. Is there any way to achieve this ?There have been a number of people asking how to do various things (images, outputLinks, etc) inside f:selectItem.Perhaps you could submit a patch to t:select* components that supportsa t:selectItem which could contain a component to use as a renderer?Maybe as a facet or simply anything enclosed by t:selectItem?
Re: Transfering data between pages.
On 5/4/06, Mert Çalışkan [EMAIL PROTECTED] wrote: You should specify the list as a managed-bean and use the same managed bean in main and popup page. Other UIComponents should be specified in two different backing-beans.Do you have an example?-- Yours truly (Atenciosamente),Rogério
Sandbox/Tomahawk Component Request
I'm not sure if this is the place for suggesting components to add to the sandbox but anyway How about adding a spinner control which can take Integers and/or decimals with configurable step sizes and which would increment/decrement on either the server or the client. We currently use one cobbled together from the Myfaces book and it works great but it would be nice to have one which is integrated and standardized into the MyFaces framework. :)
Re: Sandbox/Tomahawk Component Request
Patches are welcome ;) Dennis Byrne -Original Message- From: Julian Ray [mailto:[EMAIL PROTECTED] Sent: Thursday, May 4, 2006 12:08 PM To: ''MyFaces Discussion'' Subject: Sandbox/Tomahawk Component Request I'm not sure if this is the place for suggesting components to add to the sandbox but anyway How about adding a spinner control which can take Integers and/or decimals with configurable step sizes and which would increment/decrement on either the server or the client. We currently use one cobbled together from the Myfaces book and it works great but it would be nice to have one which is integrated and standardized into the MyFaces framework. :)
Re: Sandbox/Tomahawk Component Request
On 5/4/06, Julian Ray [EMAIL PROTECTED] wrote: I'm not sure if this is the place for suggesting components to add to the sandbox but anyway How about adding a spinner control which can take Integers and/or decimals with configurable step sizes and which would increment/decrement on either the server or the client. We currently use one cobbled together from the Myfaces book and it works great but it would be nice to have one which is integrated and standardized into the MyFaces framework. :) Can you open a JIRA issue, and attach your component to it? You'll want to convert it to MyFaces sandbox packaging, provide some documentation, and an example, but that's the best way to get it into the Tomahawk framework. Take a look at these two pages: http://wiki.apache.org/myfaces/Contributing_Patches http://wiki.apache.org/myfaces/promotion
Re: 2 forms on one page?
After looking at the subForm, I'd recommend using it over my suggestion. It will (hopefully) support state saving methods better than two independant forms. I am using server state as it seems more friendly although it does have some serious side effects (like trying to have multiple view active for multiple windows for example). Too bad it is sandbox and not tomahawk. Trying to build and update the sandbox is a pain as there are no nightlies for it (there is an open JIRA on this). -Andrew On 5/4/06, Catalin Kormos [EMAIL PROTECTED] wrote: Hi Michael, The component is stable and functional, you can use it with no problem. You are right, only one html form is generated, and the components surrounded by a subForm can update model values and/or be validated separately from other components in the main form. It works with both client side and server side state saving. Regards, Catalin Michael Heinen [EMAIL PROTECTED] wrote: Thanks Catalin. subForm sounds promising. I wait for the next version of MyFaces/Tomahawk/sandbox until I test it. How stable is this sandbox component? I assume that 1 html form is generated and not 1 for each subform. Does subForm work with both state saving methods? Michael From: Catalin Kormos [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 3. Mai 2006 20:14 To: MyFaces Discussion Subject: Re: 2 forms on one page? Hi, Looks to me like you could use the subForm component from sandbox: http://myfaces.apache.org/sandbox/subForm.html HTH, Catalin Michael Heinen [EMAIL PROTECTED] wrote: Hi all, I have another question: Is it possible to define 2 forms on one page and that only the submitted form is validated? e.g. buttonA submits formA and buttonB submits formB? I have a datatable on my page with a detail pane. The detail pane contains some fields in order to update the detail data of the selected object (formA). If the user selects multiple objects in the datatable, then I have to show another form (formB) in order to update different fields at once for the selected objects. These fields have to be bound to different attributes of my backing bean of course. So if the user submits formB then the model of formA should not be updated. I want to switch the visibility of the 2 forms via javascript without a generating new server request. Does JSF support the above scenario (e.g. with subviews)? Or is this a requirement that should be better processed with ajax (which would be more complex for me)? Any help is highly appreciated again Michael Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2�/min or less. Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.
Re: 2 forms on one page?
On 5/4/06, Andrew Robinson [EMAIL PROTECTED] wrote: Trying to build and update the sandbox is a pain as there are no nightlies for it (there is an open JIRA on this). http://issues.apache.org/jira/browse/TOMAHAWK-209 Good news! If you take a look at the issue, you'll see that sandbox nightlies can be retrieved from the maven snapshot directory: http://cvs.apache.org/maven-snapshot-repository/org/apache/myfaces/tomahawk/tomahawk-sandbox/
Re: Does file upload component works inside a jsf portlet ?
Thank you for reply , but, is there any solution to upload a file inside a jsf based portlet ? On 5/4/06, Mike Kienenberger [EMAIL PROTECTED] wrote: On 5/4/06, Legolas Woodland [EMAIL PROTECTED] wrote: Thank you for reading my post Does file upload component works inside a portlet ?I'm pretty sure that file upload requires the extensions filter.servlet filters don't work with portlets.
t:collapsiblePanel and View History
I'm using a collapsible panel on page and I noticed that if I open and close it several times, pressing the back button of the browser cycles through the history of views, opening and closing the panel. This makes complete sense to me, but I was wondering: Is there a way to knock these views off of the history stack so that pressing the back button goes directly to the previous page? Thanks
Re: Does file upload component works inside a jsf portlet ?
I think adffaces has an upload component. Your other option is to write a phase listener that performs all of the same processes that the extension filter does. On 5/4/06, Legolas Woodland [EMAIL PROTECTED] wrote: Thank you for reply , but, is there any solution to upload a file inside a jsf based portlet ? On 5/4/06, Mike Kienenberger [EMAIL PROTECTED] wrote: On 5/4/06, Legolas Woodland [EMAIL PROTECTED] wrote: Thank you for reading my post Does file upload component works inside a portlet ? I'm pretty sure that file upload requires the extensions filter. servlet filters don't work with portlets.
Re: Does file upload component works inside a jsf portlet ?
thanks for reply. Can you help me with that phase listener ? where i can find some resource about this ? Thanks On 5/4/06, Mike Kienenberger [EMAIL PROTECTED] wrote: I think adffaces has an upload component.Your other option is to write a phase listener that performs all of the same processes that the extension filter does.On 5/4/06, Legolas Woodland [EMAIL PROTECTED] wrote: Thank you for reply , but, is there any solution to upload a file inside a jsf based portlet ? On 5/4/06, Mike Kienenberger [EMAIL PROTECTED] wrote: On 5/4/06, Legolas Woodland [EMAIL PROTECTED] wrote: Thank you for reading my post Does file upload component works inside a portlet ? I'm pretty sure that file upload requires the extensions filter. servlet filters don't work with portlets.
t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated?
t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated? If it is, how do I toggle client-side/server-side tab switches? Thanks, --Todd
Re: Sandbox/Tomahawk Component Request
Nice to have the WIKI on promoting Sandbox to Tomahawk. Is there a WIKI on how best to create a new sandbox component from scratch and what steps should be taken? (not just migrating it from jsf-comp for example). I looked at the Contributing_Patches, and looked at the focus JIRA issue, but not all the files were there for the JIRA (like the HTML files were not there). Once I get time (maybe after June), I may try to help out by writing some of the new components people have been asking for and adding them to the sandbox (or jsf-comp if that is the way to go). -Andrew On 5/4/06, Mike Kienenberger [EMAIL PROTECTED] wrote: On 5/4/06, Julian Ray [EMAIL PROTECTED] wrote: I'm not sure if this is the place for suggesting components to add to the sandbox but anyway How about adding a spinner control which can take Integers and/or decimals with configurable step sizes and which would increment/decrement on either the server or the client. We currently use one cobbled together from the Myfaces book and it works great but it would be nice to have one which is integrated and standardized into the MyFaces framework. :) Can you open a JIRA issue, and attach your component to it? You'll want to convert it to MyFaces sandbox packaging, provide some documentation, and an example, but that's the best way to get it into the Tomahawk framework. Take a look at these two pages: http://wiki.apache.org/myfaces/Contributing_Patches http://wiki.apache.org/myfaces/promotion
Re: Sandbox/Tomahawk Component Request
On 5/4/06, Andrew Robinson [EMAIL PROTECTED] wrote: Nice to have the WIKI on promoting Sandbox to Tomahawk. Is there a WIKI on how best to create a new sandbox component from scratch and what steps should be taken? (not just migrating it from jsf-comp for example). I looked at the Contributing_Patches, and looked at the focus JIRA issue, but not all the files were there for the JIRA (like the HTML files were not there). http://wiki.apache.org/myfaces/Contributing_Patches is currently the best source. However, both of these pages are new, and they need improving. Hopefully the next person to use it as a guide for submitting a new component will also go in and update the page as we find missing items. Once I get time (maybe after June), I may try to help out by writing some of the new components people have been asking for and adding them to the sandbox (or jsf-comp if that is the way to go). No, I think the sandbox is the way to go, provided there are no licensing issues. The pros for jsf-comp is that anyone can get commit access, which makes it an easy place to develop a first draft of a component and quickly make changes. As you noted in a personal email to me on a different topic, the downside of jsf-comp is that it's a pain to deal with releasing and other maintenance issues. Sandbox reverses the pros and cons.
Re: t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated?
On 5/4/06, Todd Patrick [EMAIL PROTECTED] wrote: t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated? No, it's not. Do you have reason to believe otherwise?
Re: Does file upload component works inside a jsf portlet ?
An interesting blog entry for using PhaseListners instead of Servlets (or Filters) is [1] [1] http://www.jroller.com/page/cagataycivici?entry=phaselistener_renders_an_image_no On 5/4/06, Legolas Woodland [EMAIL PROTECTED] wrote: thanks for reply. Can you help me with that phase listener ? where i can find some resource about this ? Thanks On 5/4/06, Mike Kienenberger [EMAIL PROTECTED] wrote: I think adffaces has an upload component. Your other option is to write a phase listener that performs all of the same processes that the extension filter does. On 5/4/06, Legolas Woodland [EMAIL PROTECTED] wrote: Thank you for reply , but, is there any solution to upload a file inside a jsf based portlet ? On 5/4/06, Mike Kienenberger [EMAIL PROTECTED] wrote: On 5/4/06, Legolas Woodland [EMAIL PROTECTED] wrote: Thank you for reading my post Does file upload component works inside a portlet ? I'm pretty sure that file upload requires the extensions filter. servlet filters don't work with portlets. -- Matthias Wessendorf Aechterhoek 18 48282 Emsdetten http://jroller.com/page/mwessendorf mwessendorf-at-gmail-dot-com
Re: Tomahawk 1.1.2
It's a very good news, thanks a lot for the myfaces team's job Sean Schofield wrote: We are targeting next Monday for the official release. Sean On 5/3/06, pmuir [EMAIL PROTECTED] wrote: I don't think 1.1.2 has been released yet. I've used the svn source to build a copy or you can download the latest (binary) snapshot (1.1.3) here: http://cvs.apache.org/builds/myfaces/nightly/ HTH -- View this message in context: http://www.nabble.com/Sandbox-form-component-bug-t1539106.html#a4206616 Sent from the MyFaces - Users forum at Nabble.com.
RE: t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated?
I keep receiving the following error message: compile-jsps: org.apache.jasper.JasperException: Attribute serverSideTabSwitch invalid for tag panelTabbedPane according to TLD C:/javaworkspace/petroadmin/transactionbrowser/build/web/tbrowser.jsp(87 ,16) C:\javaworkspace\petroadmin\transactionbrowser\nbproject\build-impl.xml: 328: Java returned: 1 BUILD FAILED (total time: 4 seconds) Thanks, --Todd -Original Message- From: Mike Kienenberger [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 12:00 PM To: MyFaces Discussion Subject: Re: t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated? On 5/4/06, Todd Patrick [EMAIL PROTECTED] wrote: t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated? No, it's not. Do you have reason to believe otherwise?
Re: Column Ids not unique in JSF RI implementation with t:dataTable
There has been a bug inside RI see [1] [2] [1] http://issues.apache.org/jira/browse/MYFACES-1010 [2] https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=230 On 5/4/06, eroman [EMAIL PROTECTED] wrote: All, We have the following scenario : A form with t:dataTable... t:columns... f:subview... jsp:include page = someSubForm.jsp /f:subview /t:columns /t:dataTabe someSubForm.jsp : html body h:panelGrid.. h:panelGroup h:selectoneMenu id=selectOneMenuId binding=.. immediate=true validate=someValidator f:selectItems value=../ /selectOneMenu /h:panelGroup /h:panelGrid The clientIds are not unique for each column for the selectOneMenu contents: id=body:formAndViewForm:formId:dataTableId:tColumnsId:subViewId:selectOneMenuId We have added libraries from Tomahawk. However, HtmlDataTableHack is never invoked. We are getting to UIColumns constructor but setRowIndex in UIColumns is not invoked either. Suggestions? Thank you. ERoman -- View this message in context: http://www.nabble.com/Column-Ids-not-unique-in-JSF-RI-implementation-with-%3Ct%3AdataTable%3E-t1556759.html#a4228472 Sent from the MyFaces - Users forum at Nabble.com. -- Matthias Wessendorf Aechterhoek 18 48282 Emsdetten http://jroller.com/page/mwessendorf mwessendorf-at-gmail-dot-com
Javascripts and Namespace encoding in portal environments.
Myfaces implementationis not compliant with section 12.3.4 of portlet spec. In the current implementation(s) (1.1.1 1.1.2) UIViewRoot.createUniqueId() is implemented as follows: /* Provides a unique id for this component instance. */ public String createUniqueId() { ExternalContext extCtx = FacesContext.getCurrentInstance().getExternalContext(); return extCtx.encodeNamespace(UNIQUE_ID_PREFIX + _uniqueIdCounter++); } This makes the id unique for a component, but while rendering the clientId is used. Problem1: Imagine if there is a naming container hierarchy the namespace is repeated for every naming container. For example: if the jsp is as follows: h:form h:inputtext ...//h:form the id of the form in the markup will be portlet1_id0 and the id of the inputtext will be portlet1_id0:portlet1_id1. The namespace is unecesarily repeated. Problem2: The above implementation will not make the id, in the generated markup unique if the id is specified in the jsp. For example: h:form id=Myform h:inputtext id=name ...//h:form the id of the form in the markup will be Myform and the id of the inputtext will be Myform:name. This does not make them unique in portal environment because createUniqueId is never called. My opinion is that the fix should be in UIComponentBase.getClientId() not in UIViewRoot.createUniqueId(). getClientId() must return the namespace encoded client id. With this forProblem1: the id's would be portlet1_id0 and portlet1_id0:_id1 for Problem2: the id's would be portlet1_Myform and portlet1_Myform:name. I would appreciate comments on this from MyFaces developers.
1.1.3 returns the error: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered.
I downloaded 1.1.3 Nightly build and I am trying to configure my web.xml file as such: ?xml version="1.0" encoding="UTF-8"?web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" context-param param-namecom.sun.faces.verifyObjects/param-name param-valuetrue/param-value /context-param context-param param-namecom.sun.faces.validateXml/param-name param-valuetrue/param-value /context-param context-param param-namejavax.faces.CONFIG_FILES/param-name param-value/WEB-INF/faces-config.xml/param-value /context-param context-param param-namejavax.faces.STATE_SAVING_METHOD/param-name param-valueclient/param-value /context-param context-param param-nameorg.apache.myfaces.CHECK_EXTENSIONS_FILTER/param-name param-valuefalse/param-value /context-param servlet 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/transactionbrowser/*/url-pattern /servlet-mapping session-config session-timeout 30 /session-timeout /session-config welcome-file-list welcome-file index.jsp /welcome-file /welcome-file-list !-- Extensions Filter -- filter filter-nameMyFacesExtensionsFilter/filter-name filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class init-param param-namemaxFileSize/param-name param-value20m/param-value /init-param /filter filter-mapping filter-nameMyFacesExtensionsFilter/filter-name servlet-nameFaces Servlet/servlet-name /filter-mapping filter-mapping filter-nameMyFacesExtensionsFilter/filter-name url-pattern/transactionbrowser/*/url-pattern /filter-mapping/web-app However, I keep receiving the error message: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html I found a similar thread about 1.1.2, however how do I fix this issue in 1.1.3? I am using Sun Java System Application Server 8.2 Thanks, --Todd
Re: 1.1.3 returns the error: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered.
On 5/4/06, Todd Patrick [EMAIL PROTECTED] wrote: I downloaded 1.1.3 Nightly build and I am trying to configure my web.xml file as such: ?xml version=1.0 encoding=UTF-8? web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; context-param param-namecom.sun.faces.verifyObjects/param-name param-valuetrue/param-value /context-param context-param param-namecom.sun.faces.validateXml/param-name param-valuetrue/param-value /context-param context-param param-namejavax.faces.CONFIG_FILES/param-name param-value/WEB-INF/faces-config.xml/param-value /context-param context-param param-namejavax.faces.STATE_SAVING_METHOD/param-name param-valueclient/param-value /context-param context-param param-nameorg.apache.myfaces.CHECK_EXTENSIONS_FILTER/param-name param-valuefalse/param-value /context-param servlet 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/transactionbrowser/*/url-pattern /servlet-mapping session-config session-timeout 30 /session-timeout /session-config welcome-file-list welcome-file index.jsp /welcome-file /welcome-file-list !-- Extensions Filter -- filter filter-nameMyFacesExtensionsFilter/filter-name filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class init-param param-namemaxFileSize/param-name param-value20m/param-value /init-param /filter filter-mapping filter-nameMyFacesExtensionsFilter/filter-name servlet-nameFaces Servlet/servlet-name /filter-mapping filter-mapping filter-nameMyFacesExtensionsFilter/filter-name url-pattern/transactionbrowser/*/url-pattern /filter-mapping /web-app However, I keep receiving the error message: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html I found a similar thread about 1.1.2, however how do I fix this issue in 1.1.3? Follow the link given :) Basically, you've double-configured the part that modifies your JSF pages, but haven't configured the part that serves independent resources. Delete this one: filter-mapping filter-nameMyFacesExtensionsFilter/filter-name url-pattern/transactionbrowser/*/url-pattern /filter-mapping And add in the one on the web page.
how update an window from another window
I have a popup window that must update the page with some dataTables in the parent window when i click on close button, how can i do it?I tried:window.opener.document.forms[0].submit() and the dataTable isn't updated window.opener.location.reload() but this method calls shows a message box about re-submiting data all the timeAny idea?-- Yours truly (Atenciosamente),Rogério
Re: Column Ids not unique in JSF RI implementation with t:dataTable
Thank you. We now can display the contents of the first column correctly (but not the second). When we view the source for the page, the id is correct for the first and second columns. However, the second column contents does not reflect what it should - the second column's contents is the same as for the first column. Thank you. ERoman Matthias Wessendorf-4 wrote: There has been a bug inside RI see [1] [2] [1] http://issues.apache.org/jira/browse/MYFACES-1010 [2] https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=230 On 5/4/06, eroman [EMAIL PROTECTED] wrote: All, We have the following scenario : A form with t:dataTable... t:columns... f:subview... jsp:include page = someSubForm.jsp /f:subview /t:columns /t:dataTabe someSubForm.jsp : html body h:panelGrid.. h:panelGroup h:selectoneMenu id=selectOneMenuId binding=.. immediate=true validate=someValidator f:selectItems value=../ /selectOneMenu /h:panelGroup /h:panelGrid The clientIds are not unique for each column for the selectOneMenu contents: id=body:formAndViewForm:formId:dataTableId:tColumnsId:subViewId:selectOneMenuId We have added libraries from Tomahawk. However, HtmlDataTableHack is never invoked. We are getting to UIColumns constructor but setRowIndex in UIColumns is not invoked either. Suggestions? Thank you. ERoman -- View this message in context: http://www.nabble.com/Column-Ids-not-unique-in-JSF-RI-implementation-with-%3Ct%3AdataTable%3E-t1556759.html#a4228472 Sent from the MyFaces - Users forum at Nabble.com. -- Matthias Wessendorf Aechterhoek 18 48282 Emsdetten http://jroller.com/page/mwessendorf mwessendorf-at-gmail-dot-com -- View this message in context: http://www.nabble.com/Column-Ids-not-unique-in-JSF-RI-implementation-with-%3Ct%3AdataTable%3E-t1556759.html#a4236284 Sent from the MyFaces - Users forum at Nabble.com.
RE: 1.1.3 returns the error: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered.
Thank you for the suggestion! This didn't work either... The error keeps saying: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html I even tried to add: filter-mapping filter-nameMyFacesExtensionsFilter/filter-name url-pattern*.jsf/url-pattern /filter-mapping That's didn't work either. ?xml version=1.0 encoding=UTF-8? web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; context-param param-namecom.sun.faces.verifyObjects/param-name param-valuetrue/param-value /context-param context-param param-namecom.sun.faces.validateXml/param-name param-valuetrue/param-value /context-param context-param param-namejavax.faces.CONFIG_FILES/param-name param-value/WEB-INF/faces-config.xml/param-value /context-param context-param param-namejavax.faces.STATE_SAVING_METHOD/param-name param-valueclient/param-value /context-param servlet 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/transactionbrowser/*/url-pattern /servlet-mapping session-config session-timeout 30 /session-timeout /session-config welcome-file-list welcome-file index.jsp /welcome-file /welcome-file-list !-- Extensions Filter -- filter filter-nameMyFacesExtensionsFilter/filter-name filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter- class init-param param-namemaxFileSize/param-name param-value20m/param-value /init-param /filter filter-mapping filter-nameMyFacesExtensionsFilter/filter-name servlet-nameFaces Servlet/servlet-name /filter-mapping filter-mapping filter-nameMyFacesExtensionsFilter/filter-name url-pattern/myFacesExtensionResource/*/url-pattern /filter-mapping /web-app Thanks, --Todd -Original Message- From: Mike Kienenberger [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 2:57 PM To: MyFaces Discussion Subject: Re: 1.1.3 returns the error: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered. On 5/4/06, Todd Patrick [EMAIL PROTECTED] wrote: url-pattern/transactionbrowser/myFacesExtensionResource/*/url-patte rn No, it's url-pattern/myFacesExtensionResource/*/url-pattern
Re: 1.1.3 returns the error: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered.
Todd Patrick schrieb: url-pattern/transactionbrowser/myFacesExtensionResource/*/url-pattern No, its /faces/myFacesExtensionResource/* as stated in the documentation. The url-pattern will always be relative to the context. Ciao, Mario
RE: 1.1.3 returns the error: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered.
Thank you, I tired that as well. Is there a bug in the 1.1.3 nightly build? Thanks, --Todd -Original Message- From: Mario Ivankovits [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 3:09 PM To: MyFaces Discussion Subject: Re: 1.1.3 returns the error: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered. Todd Patrick schrieb: url-pattern/transactionbrowser/myFacesExtensionResource/*/url-patte rn No, its /faces/myFacesExtensionResource/* as stated in the documentation. The url-pattern will always be relative to the context. Ciao, Mario
Re: 1.1.3 returns the error: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered.
You're making it harder than it has to be :) There are two required mappings. One has to be absolute and has to look exactly like this. It should probably be your first filter-mapping for performance reasons. (I had assumed you'd copied it verbatim, but I see that's now not the case). !-- extension mapping for serving page-independent resources (javascript, stylesheets, images, etc.) -- filter-mapping filter-nameMyFacesExtensionsFilter/filter-name url-pattern/faces/myFacesExtensionResource/*/url-pattern /filter-mapping The second mapping must match your Faces servlet mapping. The easiest way to do that is to use: !-- extension mapping for adding script/, link/, and other resource tags to JSF-pages -- filter-mapping filter-nameMyFacesExtensionsFilter/filter-name !-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry -- servlet-nameFaces Servlet/servlet-name /filter-mapping Your best bet is to literally copy these settings from the web page and add them to your web.xml file exactly as they appear. As long as your servlet name and facelets name are the same elsewhere (which they appear to be), that's all that's required.
RE: 1.1.3 returns the error: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered.
Is it a problem that my Faces servlet mapping is: servlet 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/transactionbrowser/*/url-pattern /servlet-mapping Should it be?: servlet-mapping servlet-nameFaces Servlet/servlet-name url-pattern*.jsf/url-pattern /servlet-mapping I need to read up on servlet-mappings. Thanks, --Todd -Original Message- From: Mike Kienenberger [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 3:15 PM To: MyFaces Discussion Subject: Re: 1.1.3 returns the error: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered. You're making it harder than it has to be :) There are two required mappings. One has to be absolute and has to look exactly like this. It should probably be your first filter-mapping for performance reasons. (I had assumed you'd copied it verbatim, but I see that's now not the case). !-- extension mapping for serving page-independent resources (javascript, stylesheets, images, etc.) -- filter-mapping filter-nameMyFacesExtensionsFilter/filter-name url-pattern/faces/myFacesExtensionResource/*/url-pattern /filter-mapping The second mapping must match your Faces servlet mapping. The easiest way to do that is to use: !-- extension mapping for adding script/, link/, and other resource tags to JSF-pages -- filter-mapping filter-nameMyFacesExtensionsFilter/filter-name !-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry -- servlet-nameFaces Servlet/servlet-name /filter-mapping Your best bet is to literally copy these settings from the web page and add them to your web.xml file exactly as they appear. As long as your servlet name and facelets name are the same elsewhere (which they appear to be), that's all that's required.
Javascript not generated on initial JSF pages
Title: Javascript not generated on initial JSF pages Whenever I deploy my web app, the first page I load with JSF components does not generate code for any of the JSF components. In other words, on my initial index page, I have a commandButton and some regular html links (a href="" Only the html is generated. When I click on one of those regular html links and go to the next JSF page, all the JSF components are rendered as usual, as confirmed by what I see in the page source. I've tried using MyFaces 1.1.1, as well as several nightlies. Why doesn't my initial JSF page load JSF components? I've seen a similar problem on this list and in forums that is always due to people not loading the pages with .faces instead of .jsp. I am, however using .faces, and further proof that JSF is otherwise working is that all other JSF pages after the initial one _do_ in fact load correctly. I'm running tomcat 5.5.15. Had this problem on an earlier version of tomcat as well. Has anyone else had this problem, or have a suggestion as to what the problem might be? TR, not Turkey
Re: 1.1.3 returns the error: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered.
On 5/4/06, Todd Patrick [EMAIL PROTECTED] wrote: Is it a problem that my Faces servlet mapping is: url-pattern/transactionbrowser/*/url-pattern [vs] url-pattern*.jsf/url-pattern No, the beauty of using a servlet-name filter mapping is that it doesn't matter how you specify your servlet mapping. And changes to your servlet mapping are automatically picked up by the filter mapping. filter-nameMyFacesExtensionsFilter/filter-name javax.faces.webapp.FacesServlet entry -- servlet-nameFaces Servlet/servlet-name /filter-mapping
RE: 1.1.3 returns the error: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered.
This is so frustrating... I really appreciate your help. These changes still are unsuccessful, I've tried each suggestion and Googled on the topic as well with no success. My web.xml file is now: ?xml version=1.0 encoding=UTF-8? web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; context-param param-namecom.sun.faces.verifyObjects/param-name param-valuetrue/param-value /context-param context-param param-namecom.sun.faces.validateXml/param-name param-valuetrue/param-value /context-param context-param param-namejavax.faces.CONFIG_FILES/param-name param-value/WEB-INF/faces-config.xml/param-value /context-param context-param param-namejavax.faces.STATE_SAVING_METHOD/param-name param-valueclient/param-value /context-param servlet 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/transactionbrowser/*/url-pattern /servlet-mapping session-config session-timeout 30 /session-timeout /session-config welcome-file-list welcome-file index.jsp /welcome-file /welcome-file-list !-- Extensions Filter -- filter filter-nameMyFacesExtensionsFilter/filter-name filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter- class init-param param-namemaxFileSize/param-name param-value20m/param-value /init-param /filter filter-mapping filter-nameMyFacesExtensionsFilter/filter-name url-pattern/faces/myFacesExtensionResource/*/url-pattern /filter-mapping filter-mapping filter-nameMyFacesExtensionsFilter/filter-name servlet-nameFaces Servlet/servlet-name /filter-mapping /web-app Thanks, --Todd -Original Message- From: Mike Kienenberger [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 3:27 PM To: MyFaces Discussion Subject: Re: 1.1.3 returns the error: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered. On 5/4/06, Todd Patrick [EMAIL PROTECTED] wrote: Is it a problem that my Faces servlet mapping is: url-pattern/transactionbrowser/*/url-pattern [vs] url-pattern*.jsf/url-pattern No, the beauty of using a servlet-name filter mapping is that it doesn't matter how you specify your servlet mapping. And changes to your servlet mapping are automatically picked up by the filter mapping. filter-nameMyFacesExtensionsFilter/filter-name javax.faces.webapp.FacesServlet entry -- servlet-nameFaces Servlet/servlet-name /filter-mapping
Re: 1.1.3 returns the error: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered.
Hi Todd! Is it a problem that my Faces servlet mapping is: Regardless of what your servlet mapping will be, the extensions filter (and the url-pattern) has to be as stated by the documentation or by mike. So NOT using your /transactionbrowser/* but /faces/ If this failes, the best will be to install the myfaces sources and put a breakpoint at the exception source to see what happens. It isnt that complicated :-) Ciao, Mario
Re: 1.1.3 returns the error: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered.
Hi Todd! context-param param-nameorg.apache.myfaces.CHECK_EXTENSIONS_FILTER/param-name param-valuefalse/param-value /context-param Given that you already told the system to disable this filter check I bet that the web.xml you edit is not the used by tomcat. Just a wild guess, dont get it personal :-) - its something happend here now and then when the deployment didnt do what I expected it to do. Do you use somethink like a exploded tomcat directory, or a eclipse/idea whatever automatic deployment? If so, please look at the exploded web.xml. Ciao, Mario
RE: 1.1.3 returns the error: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered.
Thank you, I looked at that as well... Would you provide an example of how you set-up your web.xml file? Thanks, --Todd -Original Message- From: Mario Ivankovits [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 3:47 PM To: MyFaces Discussion Subject: Re: 1.1.3 returns the error: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered. Hi Todd! context-param param-nameorg.apache.myfaces.CHECK_EXTENSIONS_FILTER/param-name param-valuefalse/param-value /context-param Given that you already told the system to disable this filter check I bet that the web.xml you edit is not the used by tomcat. Just a wild guess, dont get it personal :-) - its something happend here now and then when the deployment didnt do what I expected it to do. Do you use somethink like a exploded tomcat directory, or a eclipse/idea whatever automatic deployment? If so, please look at the exploded web.xml. Ciao, Mario
Re: 1.1.3 returns the error: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered.
On 5/4/06, Todd Patrick [EMAIL PROTECTED] wrote: Would you provide an example of how you set-up your web.xml file? One other thing you might check is to be sure you've got things in the correct order in your web.xml file.filters, filter-mappings, listeners, servlets, servlet-mappings. context-param param-nameorg.apache.myfaces.CHECK_EXTENSIONS_FILTER/param-name param-valuetrue/param-value /context-param [...] filter filter-nameMyFacesExtensionsFilter/filter-name filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class init-param param-nameuploadMaxFileSize/param-name param-value100m/param-value descriptionSet the size limit for uploaded files. Format: 10 - 10 bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB /description /init-param init-param param-nameuploadThresholdSize/param-name param-value100k/param-value descriptionSet the threshold size - files below this limit are stored in memory, files above this limit are stored on disk. Format: 10 - 10 bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB /description /init-param /filter [...] !-- extension mapping for serving page-independent resources (javascript, stylesheets, images, etc.) -- filter-mapping filter-nameMyFacesExtensionsFilter/filter-name url-pattern/faces/myFacesExtensionResource/*/url-pattern /filter-mapping [...] !-- extension mapping for adding script/, link/, and other resource tags to JSF-pages -- filter-mapping filter-nameMyFacesExtensionsFilter/filter-name !-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry -- servlet-nameFacesServlet/servlet-name /filter-mapping [...] listener listener-classorg.apache.myfaces.webapp.StartupServletContextListener/listener-class /listener [...] servlet servlet-nameFacesServlet/servlet-name servlet-classjavax.faces.webapp.FacesServlet/servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameFacesServlet/servlet-name url-pattern/faces/*/url-pattern /servlet-mapping
RE: t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated?
I think I had the same problem a while back until I switched to the latest tomahawk build. This attribute appears to have been added in a later version. Which version of Tomahawk are you using? -Original Message- From: Todd Patrick [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 1:37 PM To: MyFaces Discussion; [EMAIL PROTECTED] Subject: RE: t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated? I keep receiving the following error message: compile-jsps: org.apache.jasper.JasperException: Attribute serverSideTabSwitch invalid for tag panelTabbedPane according to TLD C:/javaworkspace/petroadmin/transactionbrowser/build/web/tbrowser.jsp(87 ,16) C:\javaworkspace\petroadmin\transactionbrowser\nbproject\build-impl.xml: 328: Java returned: 1 BUILD FAILED (total time: 4 seconds) Thanks, --Todd -Original Message- From: Mike Kienenberger [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 12:00 PM To: MyFaces Discussion Subject: Re: t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated? On 5/4/06, Todd Patrick [EMAIL PROTECTED] wrote: t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated? No, it's not. Do you have reason to believe otherwise?
RE: Sandbox/Tomahawk Component Request
Ok some I'm deep into the sandbox adding a couple of controls but have question One of the tags is based on a simple div but calls out to some external JS. The tag implementation is based on tomahawk's div tag (HtmlTag) but I get errors thrown from myfaces stating that it can't find the tag renderer. The code is in the jar (I checked), the tag family and type are set as per the div and fieldset controls, the sandbox faces config has been updated (control and renderer sections) -- no spelling errors!!, the tld works (tested and verified) but I must be missing some crucial step. Any clues? Thanks -Original Message- From: Mike Kienenberger [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 12:15 PM To: MyFaces Discussion Subject: Re: Sandbox/Tomahawk Component Request On 5/4/06, Julian Ray [EMAIL PROTECTED] wrote: I'm not sure if this is the place for suggesting components to add to the sandbox but anyway How about adding a spinner control which can take Integers and/or decimals with configurable step sizes and which would increment/decrement on either the server or the client. We currently use one cobbled together from the Myfaces book and it works great but it would be nice to have one which is integrated and standardized into the MyFaces framework. :) Can you open a JIRA issue, and attach your component to it? You'll want to convert it to MyFaces sandbox packaging, provide some documentation, and an example, but that's the best way to get it into the Tomahawk framework. Take a look at these two pages: http://wiki.apache.org/myfaces/Contributing_Patches http://wiki.apache.org/myfaces/promotion
RE: t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated?
I am now using 1.1.3 Nightly Build - but now that is causing issues with defining my filters in my web.xml file. Thanks, --Todd -Original Message- From: Julian Ray [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 4:18 PM To: 'MyFaces Discussion' Subject: RE: t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated? I think I had the same problem a while back until I switched to the latest tomahawk build. This attribute appears to have been added in a later version. Which version of Tomahawk are you using? -Original Message- From: Todd Patrick [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 1:37 PM To: MyFaces Discussion; [EMAIL PROTECTED] Subject: RE: t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated? I keep receiving the following error message: compile-jsps: org.apache.jasper.JasperException: Attribute serverSideTabSwitch invalid for tag panelTabbedPane according to TLD C:/javaworkspace/petroadmin/transactionbrowser/build/web/tbrowser.jsp(87 ,16) C:\javaworkspace\petroadmin\transactionbrowser\nbproject\build-impl.xml: 328: Java returned: 1 BUILD FAILED (total time: 4 seconds) Thanks, --Todd -Original Message- From: Mike Kienenberger [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 12:00 PM To: MyFaces Discussion Subject: Re: t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated? On 5/4/06, Todd Patrick [EMAIL PROTECTED] wrote: t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated? No, it's not. Do you have reason to believe otherwise?
Re: t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated?
On 5/4/06, Todd Patrick [EMAIL PROTECTED] wrote: I am now using 1.1.3 Nightly Build - but now that is causing issues with defining my filters in my web.xml file. Actually, that's an indication that they were never working in the first place rather than a new problem. I've been using the same web.xml file settings for several months now. The difference is that 1.1.3 now verifies that things are set up correctly.
RE: t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated?
You have probably checked already but I was having filter and load problems unitl I realized that I had left the old myfacesall.jar in the lib directory and it was getting picked up instead of the new jars and causing all kinds of problems. -Original Message- From: Todd Patrick [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 5:30 PM To: MyFaces Discussion Subject: RE: t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated? I am now using 1.1.3 Nightly Build - but now that is causing issues with defining my filters in my web.xml file. Thanks, --Todd -Original Message- From: Julian Ray [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 4:18 PM To: 'MyFaces Discussion' Subject: RE: t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated? I think I had the same problem a while back until I switched to the latest tomahawk build. This attribute appears to have been added in a later version. Which version of Tomahawk are you using? -Original Message- From: Todd Patrick [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 1:37 PM To: MyFaces Discussion; [EMAIL PROTECTED] Subject: RE: t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated? I keep receiving the following error message: compile-jsps: org.apache.jasper.JasperException: Attribute serverSideTabSwitch invalid for tag panelTabbedPane according to TLD C:/javaworkspace/petroadmin/transactionbrowser/build/web/tbrowser.jsp(87 ,16) C:\javaworkspace\petroadmin\transactionbrowser\nbproject\build-impl.xml: 328: Java returned: 1 BUILD FAILED (total time: 4 seconds) Thanks, --Todd -Original Message- From: Mike Kienenberger [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 12:00 PM To: MyFaces Discussion Subject: Re: t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated? On 5/4/06, Todd Patrick [EMAIL PROTECTED] wrote: t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated? No, it's not. Do you have reason to believe otherwise?
RE: t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated?
Mike: Would you please provide a copy of your web.xml file? I've wasted three hours on this... so, any examples are appreciated. Thanks, --Todd -Original Message- From: Mike Kienenberger [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 4:34 PM To: MyFaces Discussion Subject: Re: t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated? On 5/4/06, Todd Patrick [EMAIL PROTECTED] wrote: I am now using 1.1.3 Nightly Build - but now that is causing issues with defining my filters in my web.xml file. Actually, that's an indication that they were never working in the first place rather than a new problem. I've been using the same web.xml file settings for several months now. The difference is that 1.1.3 now verifies that things are set up correctly.
I just don't understand why filters doesn't work...
This can't be hard... I've wasted close to *four* hours on this. I've been fortunate that I've had some really great people help me. However, I still can't get past the following error: javax.servlet.ServletException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered. Set-up: App Server: Sun Java System Application Server PE 8 Libraries: myfaces-api-1.1.2.jar, myfaces-impl-1.1.2.jar, tomahawk.jar and tomahawk-1.1.3-SNAPSHOT.jar Here is my web.xml file: ?xml version="1.0" encoding="UTF-8"?web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" context-param param-namecom.sun.faces.verifyObjects/param-name param-valuetrue/param-value /context-param context-param param-namecom.sun.faces.validateXml/param-name param-valuetrue/param-value /context-param context-param param-namejavax.faces.CONFIG_FILES/param-name param-value/WEB-INF/faces-config.xml/param-value /context-param context-param param-namejavax.faces.STATE_SAVING_METHOD/param-name param-valueclient/param-value /context-param context-param param-nameorg.apache.myfaces.CHECK_EXTENSIONS_FILTER/param-name param-valuetrue/param-value /context-param servlet 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 filter filter-nameMyFacesExtensionsFilter/filter-name filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class init-param param-namemaxFileSize/param-name param-value20m/param-value /init-param /filter filter-mapping filter-nameMyFacesExtensionsFilter/filter-name servlet-nameFaces Servlet/servlet-name /filter-mapping filter-mapping filter-nameMyFacesExtensionsFilter/filter-name url-pattern/faces/myFacesExtensionResource/*/url-pattern /filter-mapping session-config session-timeout 30 /session-timeout /session-config welcome-file-list welcome-file index.jsp /welcome-file /welcome-file-list/web-app Entire error message: javax.servlet.ServletException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html javax.faces.webapp.FacesServlet.service(FacesServlet.java:152) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585) org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249) java.security.AccessController.doPrivileged(Native Method) javax.security.auth.Subject.doAsPrivileged(Subject.java:517) org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282) org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165) java.security.AccessController.doPrivileged(Native Method) java.security.AccessController.doPrivileged(Native Method) org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:675) org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:642) org.apache.jsp.index_jsp._jspService(index_jsp.java:118) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105) javax.servlet.http.HttpServlet.service(HttpServlet.java:860) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247) javax.servlet.http.HttpServlet.service(HttpServlet.java:860) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585) org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249) java.security.AccessController.doPrivileged(Native Method) javax.security.auth.Subject.doAsPrivileged(Subject.java:517) org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282) org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165) root cause java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html org.apache.myfaces.renderkit.html.util.AddResourceFactory.throwExtensionsFilterMissing(AddResourceFactory.java:371) org.apache.myfaces.renderkit.html.util.AddResourceFactory.checkEnvironment(AddResourceFactory.java:333)
Re: I just don't understand why filters doesn't work...
App Server: Sun Java System Application Server PE 8 Libraries: myfaces-api-1.1.2.jar, myfaces-impl-1.1.2.jar, tomahawk.jar and tomahawk-1.1.3-SNAPSHOT.jar Two versions of the same jar ??? Dennis Byrne
Re: I just don't understand why filters doesn't work...
On 5/4/06, David G. Friedman [EMAIL PROTECTED] wrote: servlet 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 filter filter-nameMyFacesExtensionsFilter/filter-name filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class init-param param-namemaxFileSize/param-name param-value20m/param-value /init-param /filter filter-mapping filter-nameMyFacesExtensionsFilter/filter-name servlet-nameFaces Servlet/servlet-name /filter-mapping filter-mapping filter-nameMyFacesExtensionsFilter/filter-name url-pattern/faces/myFacesExtensionResource/*/url-pattern /filter-mapping session-config session-timeout 30 /session-timeout /session-config welcome-file-list welcome-file index.jsp /welcome-file /welcome-file-list /web-app Again note that the filter and filter-mapping sections are in the wrong location, and thus are being ignored.
RE: I just don't understand why filters doesn't work...
Well, my file extensions are .jsp not .jsf. Or have I done something wrong?(Come to think about it, I really don't stand that just yet, I need to google this.) Thanks, --Todd From: David G. Friedman [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 5:30 PMTo: MyFaces DiscussionSubject: RE: I just don't understand why filters doesn't work... Todd, Why did you remove these two recommendedmappings: servlet-mapping servlet-nameFaces Servlet/servlet-name url-pattern*.jsf/url-panner /servlet-mapping And: filter-mapping filter-nameextensionsFilter/filter-name url-pattern*.jsf/url-pattern/filter-mapping Regards, David -Original Message-From: Todd Patrick [mailto:[EMAIL PROTECTED]Sent: Thursday, May 04, 2006 6:19 PMTo: MyFaces DiscussionSubject: I just don't understand why filters doesn't work... This can't be hard... I've wasted close to *four* hours on this. I've been fortunate that I've had some really great people help me. However, I still can't get past the following error: javax.servlet.ServletException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered. Set-up: App Server: Sun Java System Application Server PE 8 Libraries: myfaces-api-1.1.2.jar, myfaces-impl-1.1.2.jar, tomahawk.jar and tomahawk-1.1.3-SNAPSHOT.jar Here is my web.xml file: ?xml version="1.0" encoding="UTF-8"?web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" context-param param-namecom.sun.faces.verifyObjects/param-name param-valuetrue/param-value /context-param context-param param-namecom.sun.faces.validateXml/param-name param-valuetrue/param-value /context-param context-param param-namejavax.faces.CONFIG_FILES/param-name param-value/WEB-INF/faces-config.xml/param-value /context-param context-param param-namejavax.faces.STATE_SAVING_METHOD/param-name param-valueclient/param-value /context-param context-param param-nameorg.apache.myfaces.CHECK_EXTENSIONS_FILTER/param-name param-valuetrue/param-value /context-param servlet 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 filter filter-nameMyFacesExtensionsFilter/filter-name filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class init-param param-namemaxFileSize/param-name param-value20m/param-value /init-param /filter filter-mapping filter-nameMyFacesExtensionsFilter/filter-name servlet-nameFaces Servlet/servlet-name /filter-mapping filter-mapping filter-nameMyFacesExtensionsFilter/filter-name url-pattern/faces/myFacesExtensionResource/*/url-pattern /filter-mapping session-config session-timeout 30 /session-timeout /session-config welcome-file-list welcome-file index.jsp /welcome-file /welcome-file-list/web-app Entire error message: javax.servlet.ServletException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.htmljavax.faces.webapp.FacesServlet.service(FacesServlet.java:152)sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)java.lang.reflect.Method.invoke(Method.java:585)org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)java.security.AccessController.doPrivileged(Native Method)javax.security.auth.Subject.doAsPrivileged(Subject.java:517)org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)java.security.AccessController.doPrivileged(Native Method)java.security.AccessController.doPrivileged(Native Method)org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:675)org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:642)org.apache.jsp.index_jsp._jspService(index_jsp.java:118)org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)javax.servlet.http.HttpServlet.service(HttpServlet.java:860)org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)javax.servlet.http.HttpServlet.service(HttpServlet.java:860)sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Re: Disabled inputText Value
Uri Kalish wrote: Use case: A user fills a value in an inputText field, checks a radio button that causes the field to become disabled, and submits the form. After the user submits, the value received is null, no matter what the field displays on the UI… Is there a way to retrieve that value although the field is disabled, or must I use an extra hidden field and update it by java script. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ As I know you can't retrieve value from input field that is disabled. I try it by using java script
RE: Disabled inputText Value
Thanks dude. I found the problem. It's an HTML form thing - A form submitting will not post disabled fields. Because in the case of error I want to re-display the page exactly as it was when the user submitted (I don't want fields changed by the user to jump to default values just because he clicked a radio that made them disabled)... No choice but to use an extra hidden field and update it by java script when the regular field changes. Very low-tech I'm afraid... From: Le Van [mailto:[EMAIL PROTECTED] Sent: Fri 05-May-06 04:18 To: MyFaces Discussion Subject: Re: Disabled inputText Value Uri Kalish wrote: Use case: A user fills a value in an inputText field, checks a radio button that causes the field to become disabled, and submits the form. After the user submits, the value received is null, no matter what the field displays on the UI... Is there a way to retrieve that value although the field is disabled, or must I use an extra hidden field and update it by java script. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ As I know you can't retrieve value from input field that is disabled. I try it by using java script __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __winmail.dat
MyFaces seem to only work with one servlet-mapping set-up only in a web.xml file?
I have the following currentservlet-mapping that works: filter filter-nameMyFacesExtensionsFilter/filter-name filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class init-param param-namemaxFileSize/param-name param-value20m/param-value /init-param/filterfilter-mapping filter-nameMyFacesExtensionsFilter/filter-name servlet-nameFaces Servlet/servlet-name/filter-mappingfilter-mapping filter-nameMyFacesExtensionsFilter/filter-name url-pattern/faces/myFacesExtensionResource/*/url-pattern/filter-mapping servlet servlet-nameFaces Servlet/servlet-name servlet-classjavax.faces.webapp.FacesServlet/servlet-class load-on-startup1/load-on-startup/servletservlet-mapping servlet-nameFaces Servlet/servlet-name url-pattern/faces/*/url-pattern/servlet-mapping The only way I can develop or test my application is with the following URL: http://127.0.0.1:8080/transactionbrowser/faces/ I'd like to just have the URL: http://127.0.0.1:8080/transactionbrowser/ If I change the servlet-mapping to: filter filter-nameMyFacesExtensionsFilter/filter-name filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class init-param param-namemaxFileSize/param-name param-value20m/param-value /init-param/filterfilter-mapping filter-nameMyFacesExtensionsFilter/filter-name servlet-nameFaces Servlet/servlet-name/filter-mappingfilter-mapping filter-nameMyFacesExtensionsFilter/filter-name url-pattern/transactionbrowser/myFacesExtensionResource/*/url-pattern/filter-mapping servlet servlet-nameFaces Servlet/servlet-name servlet-classjavax.faces.webapp.FacesServlet/servlet-class load-on-startup1/load-on-startup/servletservlet-mapping servlet-nameFaces Servlet/servlet-name url-pattern/transactionbrowser/*/url-pattern/servlet-mapping I receive the following error message: javax.servlet.ServletException: No faces context?! What am I not understanding (again...)? Thanks, --Todd Full Error: javax.servlet.jsp.JspException: No faces context?! org.apache.myfaces.taglib.core.LoadBundleTag.doStartTag(LoadBundleTag.java:74) org.apache.jsp.tbrowser_jsp._jspx_meth_f_loadBundle_0(tbrowser_jsp.java:197) org.apache.jsp.tbrowser_jsp._jspService(tbrowser_jsp.java:105) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105) javax.servlet.http.HttpServlet.service(HttpServlet.java:860) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247) javax.servlet.http.HttpServlet.service(HttpServlet.java:860) sun.reflect.GeneratedMethodAccessor328.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585) org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249) java.security.AccessController.doPrivileged(Native Method) javax.security.auth.Subject.doAsPrivileged(Subject.java:517) org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282) org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165) java.security.AccessController.doPrivileged(Native Method) java.security.AccessController.doPrivileged(Native Method) org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:675) org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:642) org.apache.jsp.index_jsp._jspService(index_jsp.java:118) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105) javax.servlet.http.HttpServlet.service(HttpServlet.java:860) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247) javax.servlet.http.HttpServlet.service(HttpServlet.java:860) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585) org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249) java.security.AccessController.doPrivileged(Native Method) javax.security.auth.Subject.doAsPrivileged(Subject.java:517) org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282) org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
How can *jsf be used in a servlet-mapping URL?
Anytime I've tried to use *jsf in my url-pattern value: servlet servlet-nameFaces Servlet/servlet-name servlet-classjavax.faces.webapp.FacesServlet/servlet-class load-on-startup1/load-on-startup/servletservlet-mapping servlet-nameFaces Servlet/servlet-name url-pattern*.jsf/url-pattern/servlet-mapping I've seen this example several places, do I need to name my files with a *.jsf extension? How would using this url-pattern affect the following filter definition, would I change the url-pattern to *.jsf for MyFacesExtensionsFilter as well? filter filter-nameMyFacesExtensionsFilter/filter-name filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class init-param param-namemaxFileSize/param-name param-value20m/param-value /init-param/filterfilter-mapping filter-nameMyFacesExtensionsFilter/filter-name servlet-nameFaces Servlet/servlet-name/filter-mappingfilter-mapping filter-nameMyFacesExtensionsFilter/filter-name url-pattern/transactionbrowser/myFacesExtensionResource/*/url-pattern/filter-mapping Thanks, --Todd
How do I properly use jsp:forward in MyFaces?
I have a project folder that looks like: /transactionbrowser/ - WEB-INF - resources -index.jsp -tbrowser.jsp With the servlet-mapping of: filter filter-nameMyFacesExtensionsFilter/filter-name filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class init-param param-namemaxFileSize/param-name param-value20m/param-value /init-param/filterfilter-mapping filter-nameMyFacesExtensionsFilter/filter-name servlet-nameFaces Servlet/servlet-name/filter-mappingfilter-mapping filter-nameMyFacesExtensionsFilter/filter-name url-pattern/faces/myFacesExtensionResource/*/url-pattern/filter-mapping servlet servlet-nameFaces Servlet/servlet-name servlet-classjavax.faces.webapp.FacesServlet/servlet-class load-on-startup1/load-on-startup/servletservlet-mapping servlet-nameFaces Servlet/servlet-name url-pattern/faces/*/url-pattern/servlet-mapping The only URLs that work are: http://127.0.0.1:8080/transactionbrowser/faces/tbrowser.jsp http://127.0.0.1:8080/transactionbrowser/faces/ On my index.jsp I have: jsp:forward page="/faces/tbrowser.jsp"/ So, when I go to: http://127.0.0.1:8080/transactionbrowser/ I see the page, but not with the MyFaces rendering, I still plain control GUI components with none of the add MyFaces filter files. How do I use jsp:forward properly to get to: http://127.0.0.1:8080/transactionbrowser/faces/ or http://127.0.0.1:8080/transactionbrowser/faces/tbrowser.jsp I can't use the following since that doesn't run the MyFaces servlet: jsp:forward page="/transactionbrowser/faces/tbrowser.jsp"/ Thoughts or examples are appreciated. Thanks, --Todd
Re: MyFaces seem to only work with one servlet-mapping set-up only in a web.xml file?
Do this ... servlet-mapping servlet-nameFaces Servlet/servlet-name url-pattern/*/url-pattern /servlet-mapping The URL pattern is context relative. If a servlet could be to a specific context then it could intercept requests sent for a different webapp. Dennis Byrne -Original Message- From: Todd Patrick [mailto:[EMAIL PROTECTED] Sent: Friday, May 5, 2006 12:48 AM To: 'MyFaces Discussion' Subject: MyFaces seem to only work with one servlet-mapping set-up only in a web.xml file? I have the following current servlet-mapping that works: filter filter-nameMyFacesExtensionsFilter/filter-name filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter- class init-param param-namemaxFileSize/param-name param-value20m/param-value /init-param /filter filter-mapping filter-nameMyFacesExtensionsFilter/filter-name servlet-nameFaces Servlet/servlet-name /filter-mapping filter-mapping filter-nameMyFacesExtensionsFilter/filter-name url-pattern/faces/myFacesExtensionResource/*/url-pattern /filter-mapping servlet 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 The only way I can develop or test my application is with the following URL: http://127.0.0.1:8080/transactionbrowser/faces/ I'd like to just have the URL: http://127.0.0.1:8080/transactionbrowser/ If I change the servlet-mapping to: filter filter-nameMyFacesExtensionsFilter/filter-name filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter- class init-param param-namemaxFileSize/param-name param-value20m/param-value /init-param /filter filter-mapping filter-nameMyFacesExtensionsFilter/filter-name servlet-nameFaces Servlet/servlet-name /filter-mapping filter-mapping filter-nameMyFacesExtensionsFilter/filter-name url-pattern/transactionbrowser/myFacesExtensionResource/*/url-pattern /filter-mapping servlet 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/transactionbrowser/*/url-pattern /servlet-mapping I receive the following error message: javax.servlet.ServletException: No faces context?! What am I not understanding (again...)? Thanks, --Todd Full Error: javax.servlet.jsp.JspException: No faces context?! org.apache.myfaces.taglib.core.LoadBundleTag.doStartTag(LoadBundleTag.ja va:74) org.apache.jsp.tbrowser_jsp._jspx_meth_f_loadBundle_0(tbrowser_jsp.java: 197) org.apache.jsp.tbrowser_jsp._jspService(tbrowser_jsp.java:105) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105) javax.servlet.http.HttpServlet.service(HttpServlet.java:860) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:336) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247) javax.servlet.http.HttpServlet.service(HttpServlet.java:860) sun.reflect.GeneratedMethodAccessor328.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) java.lang.reflect.Method.invoke(Method.java:585) org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249) java.security.AccessController.doPrivileged(Native Method) javax.security.auth.Subject.doAsPrivileged(Subject.java:517) org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282) org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.jav a:165) java.security.AccessController.doPrivileged(Native Method) java.security.AccessController.doPrivileged(Native Method) org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java :675) org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:6 42) org.apache.jsp.index_jsp._jspService(index_jsp.java:118) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105) javax.servlet.http.HttpServlet.service(HttpServlet.java:860) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:336) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247) javax.servlet.http.HttpServlet.service(HttpServlet.java:860) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39)
Re: How can *jsf be used in a servlet-mapping URL?
I've seen this example several places, do I need to name my files with a *.jsf extension? No, just name it .jsp and the request will be forwarded to it. Dennis Byrne How would using this url-pattern affect the following filter definition, would I change the url-pattern to *.jsf for MyFacesExtensionsFilter as well? filter filter-nameMyFacesExtensionsFilter/filter-name filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter- class init-param param-namemaxFileSize/param-name param-value20m/param-value /init-param /filter filter-mapping filter-nameMyFacesExtensionsFilter/filter-name servlet-nameFaces Servlet/servlet-name /filter-mapping filter-mapping filter-nameMyFacesExtensionsFilter/filter-name url-pattern/transactionbrowser/myFacesExtensionResource/*/url-pattern /filter-mapping Thanks, --Todd
RE: How do I properly use jsp:forward in MyFaces?
Todd, From your various posts tonight, you seem to have a number of JSF concepts mixed. Is this your first Faces Webapp? (That is not meant to be an insult but a simple question) If your project folder looks like this as you indicated: /transactionbrowser/ - WEB-INF - resources -index.jsp -tbrowser.jsp Then the various mappings you have posted over the past 24 hours have often been incorrect. With this webapp, your main url would likely be: http://127.0.0.1/transactionbrowser and you would expect it to invoke the welcome page /index.jsp. Your example index.jsp was listed as: jsp:forward page="/faces/tbrowser.jsp"/ THAT is where your first make came from: your mappings. JSF is often taught using SUFFIX mapping so the urls such as /index.jsf are understood to be imaginary (no such file exists) allowing the servlet to map /index.jsf to compile the view from the jsp file /index.jsp. With prefix mapping the url "/index.jsf" would be equivalent to "/faces/index" see? When you switch to PREFIX mapping like having mappings start "/faces/whatever", you must skip the .jsp extension so your index.jsp file should contain: jsp:forward page="/faces/tbrowser"/ Adding the .jsp suffix while using prefix mapping is causing your problem (that plus how your web.xml Servlet and Filter mappings are setup). I stronglyrecommend you to back to the myfaces blank.war and example war files to see how standard *.jsf suffix mapping works and begin your application with that style until you are positive you can make a working JSF application. It will save you time and effort since searching (the web or this lists's archives) on the *.jsf SUFFIX extension will result in a much greater number of relevant posts than if you use PREFIX "/faces/*" mapping. Regards, David Friedman / [EMAIL PROTECTED] -Original Message-From: Todd Patrick [mailto:[EMAIL PROTECTED]Sent: Friday, May 05, 2006 1:15 AMTo: MyFaces DiscussionSubject: How do I properly use jsp:forward in MyFaces? I have a project folder that looks like: /transactionbrowser/ - WEB-INF - resources -index.jsp -tbrowser.jsp With the servlet-mapping of: filter filter-nameMyFacesExtensionsFilter/filter-name filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class init-param param-namemaxFileSize/param-name param-value20m/param-value /init-param/filterfilter-mapping filter-nameMyFacesExtensionsFilter/filter-name servlet-nameFaces Servlet/servlet-name/filter-mappingfilter-mapping filter-nameMyFacesExtensionsFilter/filter-name url-pattern/faces/myFacesExtensionResource/*/url-pattern/filter-mapping servlet servlet-nameFaces Servlet/servlet-name servlet-classjavax.faces.webapp.FacesServlet/servlet-class load-on-startup1/load-on-startup/servletservlet-mapping servlet-nameFaces Servlet/servlet-name url-pattern/faces/*/url-pattern/servlet-mapping The only URLs that work are: http://127.0.0.1:8080/transactionbrowser/faces/tbrowser.jsp http://127.0.0.1:8080/transactionbrowser/faces/ On my index.jsp I have: jsp:forward page="/faces/tbrowser.jsp"/ So, when I go to: http://127.0.0.1:8080/transactionbrowser/ I see the page, but not with the MyFaces rendering, I still plain control GUI components with none of the add MyFaces filter files. How do I use jsp:forward properly to get to: http://127.0.0.1:8080/transactionbrowser/faces/ or http://127.0.0.1:8080/transactionbrowser/faces/tbrowser.jsp I can't use the following since that doesn't run the MyFaces servlet: jsp:forward page="/transactionbrowser/faces/tbrowser.jsp"/ Thoughts or examples are appreciated. Thanks, --Todd