inputHtml
Hi, Has anyone successfully used Tomahawk inputHtml with MyFaces implementation 1.2.5, Tomahawk 12-1.1.9, and Facelets 1.1.15? When I try something simple like: t:inputHtml id=page_content_value1 valueChangeListener=#{pageContentAction.valueChange} converter=trimConverter value=#{pageContentDO.value}/ ... h:commandButton action=#{pageContentAction.insert} value=#{bundle.form_submit_updt} styleClass=cmdBtn1/ When I put some data in the inputHtml box and click commandButton: valueChangeListener never gets called converter gets called with empty string pageContentDO.value setter method never gets called This code worked fine with earlier release of MyFaces and Tomahawk so I'm wondering when it went bad and how far back I have to go to get inputHtml working again. Maybe I'm attempting to use bad combination of MyFaces and Tomahawk. What is latest release combination of MyFaces and Tomahawk is anyone seeing inputHtml work? Thanks for any ideas you may have, Ken -- 303-619-6607 dynoSite creator adsea.com
Re: inputHtml
Martin, Yea, I originally thought it must be tomahawk but then thought otherwise because 1.1.6 worked fine with myfaces 1.1.5. Anyway, new issue is https://issues.apache.org/jira/browse/TOMAHAWK-1192 Thanks, Ken On Feb 6, 2008 11:57 PM, Martin Marinschek [EMAIL PROTECTED] wrote: P.S.: it als helps if you send me a mail with the link to the issue. regards, Martin On Feb 7, 2008 7:57 AM, Martin Marinschek [EMAIL PROTECTED] wrote: Hi Ken, as far as I can tell, you have been reporting a bug for Tomahawk - so it should have a TOMAHAWK- issue key. I deleted the issue - please use the tomahawk issue tracker. regards, Martin On Feb 7, 2008 1:54 AM, Ken McArthur [EMAIL PROTECTED] wrote: Martin, Issue key = myfaces-1813 Thanks again and have a great day, Ken On Feb 6, 2008 5:21 PM, Martin Marinschek [EMAIL PROTECTED] wrote: http://myfaces.apache.org/issue-tracking.html regards, Martin On Feb 7, 2008 1:08 AM, Ken McArthur [EMAIL PROTECTED] wrote: Martin, That's very cool you found the problem. I could not find myfaces project on jira.codehaus.org. Where do I need to go to open an issue? Thanks, Ken On Feb 6, 2008 1:14 PM, Martin Marinschek [EMAIL PROTECTED] wrote: I have a fix for this problem - please open an issue, I will commit it. regards, Martin On Feb 5, 2008 4:54 AM, Ken McArthur [EMAIL PROTECTED] wrote: Attempting to upgrade from myfaces 1.1.5 to 1.2.2 and all works great except for inputHtml. Using myfaces 1.2.2, tomahawk 1.1.6, facelets 1.1.13. Get the following exception in the rendering facelets phases: Caused by: java.lang.ClassCastException: java.lang.Class at org.apache.myfaces.util.AbstractAttributeMap.put( AbstractAttributeMap.java:35) at org.apache.myfaces.custom.inputHtml.InputHtmlRenderer.setThisPageAlreadyRenderedAnInputHtml (InputHtmlRenderer.java:107) at org.apache.myfaces.custom.inputHtml.InputHtmlRenderer.encodeEnd( InputHtmlRenderer.java:93) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java :556) Any ideas? Thanks, Ken -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces -- 303-619-6607 http://adsea.com -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces -- 303-619-6607 http://adsea.com -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces -- 303-619-6607 http://adsea.com
Re: inputHtml
Martin, That's very cool you found the problem. I could not find myfaces project on jira.codehaus.org. Where do I need to go to open an issue? Thanks, Ken On Feb 6, 2008 1:14 PM, Martin Marinschek [EMAIL PROTECTED] wrote: I have a fix for this problem - please open an issue, I will commit it. regards, Martin On Feb 5, 2008 4:54 AM, Ken McArthur [EMAIL PROTECTED] wrote: Attempting to upgrade from myfaces 1.1.5 to 1.2.2 and all works great except for inputHtml. Using myfaces 1.2.2, tomahawk 1.1.6, facelets 1.1.13. Get the following exception in the rendering facelets phases: Caused by: java.lang.ClassCastException: java.lang.Class at org.apache.myfaces.util.AbstractAttributeMap.put(AbstractAttributeMap.java:35) at org.apache.myfaces.custom.inputHtml.InputHtmlRenderer.setThisPageAlreadyRenderedAnInputHtml(InputHtmlRenderer.java:107) at org.apache.myfaces.custom.inputHtml.InputHtmlRenderer.encodeEnd(InputHtmlRenderer.java:93) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:556) Any ideas? Thanks, Ken -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces -- 303-619-6607 http://adsea.com
Re: inputHtml
Martin, Issue key = myfaces-1813 Thanks again and have a great day, Ken On Feb 6, 2008 5:21 PM, Martin Marinschek [EMAIL PROTECTED] wrote: http://myfaces.apache.org/issue-tracking.html regards, Martin On Feb 7, 2008 1:08 AM, Ken McArthur [EMAIL PROTECTED] wrote: Martin, That's very cool you found the problem. I could not find myfaces project on jira.codehaus.org. Where do I need to go to open an issue? Thanks, Ken On Feb 6, 2008 1:14 PM, Martin Marinschek [EMAIL PROTECTED] wrote: I have a fix for this problem - please open an issue, I will commit it. regards, Martin On Feb 5, 2008 4:54 AM, Ken McArthur [EMAIL PROTECTED] wrote: Attempting to upgrade from myfaces 1.1.5 to 1.2.2 and all works great except for inputHtml. Using myfaces 1.2.2, tomahawk 1.1.6, facelets 1.1.13. Get the following exception in the rendering facelets phases: Caused by: java.lang.ClassCastException: java.lang.Class at org.apache.myfaces.util.AbstractAttributeMap.put( AbstractAttributeMap.java:35) at org.apache.myfaces.custom.inputHtml.InputHtmlRenderer.setThisPageAlreadyRenderedAnInputHtml (InputHtmlRenderer.java:107) at org.apache.myfaces.custom.inputHtml.InputHtmlRenderer.encodeEnd( InputHtmlRenderer.java:93) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java :556) Any ideas? Thanks, Ken -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces -- 303-619-6607 http://adsea.com -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces -- 303-619-6607 http://adsea.com
inputHtml
Attempting to upgrade from myfaces 1.1.5 to 1.2.2 and all works great except for inputHtml. Using myfaces 1.2.2, tomahawk 1.1.6, facelets 1.1.13. Get the following exception in the rendering facelets phases: Caused by: java.lang.ClassCastException: java.lang.Class at org.apache.myfaces.util.AbstractAttributeMap.put(AbstractAttributeMap.java:35) at org.apache.myfaces.custom.inputHtml.InputHtmlRenderer.setThisPageAlreadyRenderedAnInputHtml(InputHtmlRenderer.java:107) at org.apache.myfaces.custom.inputHtml.InputHtmlRenderer.encodeEnd(InputHtmlRenderer.java:93) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:556) Any ideas? Thanks, Ken
javax.faces.ViewState contents?
With client state saving, I was under the impression that only managed beans in session scope or used in t:saveState would be serialized into the hidden javax.faces.ViewState variable. However, my application's creating ViewStates in pages with very simple forms that are almost 70 kb long! I'm thinking that if I serialized all managed beans in all scopes + resource bundle, it might come to about that. Do you know what specifically is stored in ViewState? Put in other words, what is best way to architect application to minimize size of ViewState while still using client state saving? Thanks, I appreciate any advice, Ken
Re: javax.faces.ViewState contents?
You mention what I believed to be true. Since my simple page with a 70kb ViewState is not requesting saveState for anything, I suspect it must be something else that's being serialized. Any ideas on what else it could be? On 8/23/07, Andrew Robinson [EMAIL PROTECTED] wrote: Anything that is returned from saveState on any object implementing StateHolder is saved into the view state. (All UIComponents implement StateHolder) On 8/23/07, Ken McArthur [EMAIL PROTECTED] wrote: With client state saving, I was under the impression that only managed beans in session scope or used in t:saveState would be serialized into the hidden javax.faces.ViewState variable. However, my application's creating ViewStates in pages with very simple forms that are almost 70 kb long! I'm thinking that if I serialized all managed beans in all scopes + resource bundle, it might come to about that. Do you know what specifically is stored in ViewState? Put in other words, what is best way to architect application to minimize size of ViewState while still using client state saving? Thanks, I appreciate any advice, Ken -- 303-619-6607 http://adsea.com
Re: javax.faces.ViewState contents?
Great advise, I'll try it all and update board when I figure it out. Thanks. On 8/23/07, Mario Ivankovits [EMAIL PROTECTED] wrote: Hi! With client state saving, I was under the impression that only managed beans in session scope or used in t:saveState would be serialized into the hidden javax.faces.ViewState variable. However, my application's creating ViewStates in pages with very simple forms that are almost 70 kb long! I've create a simple ViewState dumper which allows you to .. well ... dump the view state :-) ... as long as you do not compression or encryption. Just set the viewState variable to the content of the viewState in the HTML output. Maybe you can figure out what happens. Unhappily there is no information about which component added the data to the state, though, it might be a start anyway. import org.apache.commons.codec.binary.Base64; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.util.Collection; public class ViewStateDumper { public static void main(String[] args) throws IOException, ClassNotFoundException { String viewState=; byte[] viewStateData = Base64.decodeBase64(viewState.getBytes(US-ASCII)); ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(viewStateData)); Object[] state = (Object[]) ois.readObject(); dumpState(, state); } private static void dumpState(String prefix, Object[] state) { for (Object object : state) { System.err.print(prefix); if (object == null) { System.err.println(#null?); } else if (object instanceof Object[]) { System.err.println(prefix + array); dumpState(prefix + , (Object[]) object); } else if (object instanceof Collection) { System.err.println(prefix + collection); dumpState(prefix + , ((Collection) object).toArray()); } else { System.err.print(object.getClass().getName()); System.err.print( ); System.err.println(object.toString()); } } } } Ciao, Mario -- 303-619-6607 http://adsea.com
Re: javax.faces.ViewState contents?
Mario, ViewStateDumper is awesome! I get a large number of #null?s in output but everything else is as expected. In my situation bottleneck is bandwidth; especially since ViewState is sent back to server and upload speeds are most always much slower than download speeds. Compressed ViewState by adding the following to web.xml: context-param param-nameorg.apache.myfaces.COMPRESS_STATE_IN_CLIENT/param-name param-valuetrue/param-value /context-param This cut ViewState down by about 1/5th. Thanks again to all. I think I have good temporary solution but will look more into server side state saving. Ken On 8/23/07, Ken McArthur [EMAIL PROTECTED] wrote: Great advise, I'll try it all and update board when I figure it out. Thanks. On 8/23/07, Mario Ivankovits [EMAIL PROTECTED] wrote: Hi! With client state saving, I was under the impression that only managed beans in session scope or used in t:saveState would be serialized into the hidden javax.faces.ViewState variable. However, my application's creating ViewStates in pages with very simple forms that are almost 70 kb long! I've create a simple ViewState dumper which allows you to .. well ... dump the view state :-) ... as long as you do not compression or encryption. Just set the viewState variable to the content of the viewState in the HTML output. Maybe you can figure out what happens. Unhappily there is no information about which component added the data to the state, though, it might be a start anyway. import org.apache.commons.codec.binary.Base64 ; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.util.Collection; public class ViewStateDumper { public static void main(String[] args) throws IOException, ClassNotFoundException { String viewState=; byte[] viewStateData = Base64.decodeBase64(viewState.getBytes(US-ASCII)); ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(viewStateData)); Object[] state = (Object[]) ois.readObject(); dumpState(, state); } private static void dumpState(String prefix, Object[] state) { for (Object object : state) { System.err.print(prefix); if (object == null) { System.err.println(#null?); } else if (object instanceof Object[]) { System.err.println(prefix + array); dumpState(prefix + , (Object[]) object); } else if (object instanceof Collection) { System.err.println(prefix + collection); dumpState(prefix + , ((Collection) object).toArray()); } else { System.err.print(object.getClass().getName()); System.err.print( ); System.err.println(object.toString ()); } } } } Ciao, Mario -- 303-619-6607 http://adsea.com -- 303-619-6607 http://adsea.com
jscookMenu target attribute
It would seem normal to have a link in a dropdown menu to a url (i.e. not an action but http://... ) where target=_self or _parent in navigationMenuItem so that target is loaded in current frame. However, target attribute is ignored in this circumstance so page is always loaded in new frame. Ignoring target attribute seems very odd. Anyone come up with a clean way around this override? Thanks, Ken
Re: jscookMenu target attribute
Found answer in another posting: t:navigationMenuItem itemLabel=home action='javascript:window.open (/smile/p.xhtml,_self)'/ Thanks, Ken On 7/24/07, Ken McArthur [EMAIL PROTECTED] wrote: It would seem normal to have a link in a dropdown menu to a url (i.e. not an action but http://... ) where target=_self or _parent in navigationMenuItem so that target is loaded in current frame. However, target attribute is ignored in this circumstance so page is always loaded in new frame. Ignoring target attribute seems very odd. Anyone come up with a clean way around this override? Thanks, Ken
Re: [Solved] GraphicImage Question
Michael, Here's another option you can try that I've used successfully. Store images in a database and create a PhaseListener to retrieve image and output the content. Ken On 2/22/07, m1380103 [EMAIL PROTECTED] wrote: Oh yeah of course. Can't believe I got stuck on this problem without thinking of it as being run through a remote browser. I'll fix this by making an image object reference in the code running on the server, rather than in the web page. Thanks, I'll try using my brain next time. Michael. Veit Guna-2 wrote: Did I miss something? You're talking about an webapp right? That means, a user from location A calls your application at location B (A and B are on different machines). So when the user uploads the image, it will be stored on B, right? So you (browser on A)can't access that file through an absolute (local) path! I think value takes an URL that the browser has to resolve. When this is C: it can't be reached on the server - it will try to find it on the local (A) machine. Just look into the source of your page, it will point to something like C: It should be something like http://youtserver/webapp/file; or /webapp/file. But maybe I didn't get you right... regards, Veit m1380103 schrieb: See that's why my problem came about. I wanted to save on the local folder thinking it would be simple to use graphicimage with either c:\\images\\uniqueId or c:\images or c:/images but I haven't found any way to work yet. I think it might be helped if I pass the image directory location from the java class. The strange thing I noticed from the page source after JSF had rendered was that the windows \ was not shown in the source. That's why I thought it might be related to the graphicImage tag's use of the \ symbol, even when \\ was used. I can't seem to find an example anywhere online where the tag is used to read from outside the deployment directory, maybe the original idea for writing a renderer so the directory for the images can be set is the only way to go about this. Michał wrote: Perhaps: graphicImage value=C:\\images\\uniqueId ? michael On 22/02/07, m1380103 [EMAIL PROTECTED] wrote: Thanks for the quick reply, I have spent some time looking over the JSF examples, including the sandboxes graphicDynamicImage. My problem really lies in displaying an image from outside the deployment directory. There is no dynamic action needed in my application so I thought the standard graphicImage would do, just not sure why my graphicImage value=C:\images\uniqueId wouldn't work. I will look into extending the imagerenderer to read images from a directory on the hard drive, though if anyone knows a simple example of using the graphicImage and reading from a standard windows folder, the help would be much appreciated. Thanks Michael. Veit Guna-2 wrote: Hi. Take a look at the sandbox graphicDynamicImage. There you can write your own ImageRenderer and you're free where you read the images from. In my webapp uploaded files go to a separate directory outside the deployment directory of tomcat. The ImageRenderer reads files from there and displays them to the user. Perhaps it helps. regards, Veit m1380103 schrieb: Basically I'm building an ecommerce site using MyFaces. I have over a years experience with it, though I've come across a problem I have never encountered before. For this site the user can upload images of the item they are selling. Except I am having some problems with storing this and displaying the info on screen. I was going to save the image to a location locally (C:\images\uniqueId) and display this with h:graphicImage but it does seem to like reading from this location. I am running on a windows machine but noticed when supplying the string for the location of an icon saved within the application the directory would be /Deploy Name/image. How can I use the graphicImage tag to read from outside it's JBoss deployment? Or would it be better saving somewhere else when a user uploads an image? Any help would be much appreciated as I have no experience with uploading and saving of images on this form of web application. I would prefer to save a link in the database and display this way if possible. Thanks Michael. -- View this message in context: http://www.nabble.com/GraphicImage-Question-tf3273198.html#a9101992 Sent from the MyFaces - Users mailing list archive at Nabble.com. -- [EMAIL PROTECTED] http://stawicki.jasliska.pl GG: 369 JID: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/GraphicImage-Question-tf3273198.html#a9103742 Sent from the MyFaces - Users mailing list archive at Nabble.com. -- 303-619-6607 http://adsea.com
jscookMenu with outputLink
Hi, Is there any way to use jscookMenu with a basic url instead of having to declare an action navigation rule? Thanks for great stuff, Ken
jscookMenu with outputLink?
Hi, Is there any way to use jscookMenu with a basic url instead of having to declare an action navigation rule? Thanks, Ken
Re: t:inputHtml not working in IE
I've also experienced this. It appears Kupu cleans up all the html you enter here. In some ways it's good because it makes it xml compliant. However it also removes object tags. :( Short answer - no. If anyone else has a clean workaround for this, I'm all ears. Ken On 11/23/06, Dave [EMAIL PROTECTED] wrote: can the inputHtml editor add video/audio, eg. object? in text editor mode. It did not work form me. Any one experiencing this issue? *Ken McArthur [EMAIL PROTECTED]* wrote: Stefan, In case this still helps you or anyone else, I've just had the same experienced. For some reason adding a hight style attribute to inputHtml fixed rendering problem in IE. t:inputHtml style=height: 350px; ... Ken On 8/8/06, Stefan Frank [EMAIL PROTECTED] wrote: Hi Andrew, Thx for looking into this: I assume that it is then a weird combination of properties, that breaks the code in ie. I will upgrade to 1.1.1 and check, if the problem goes away with another set of properties... Cheers stefan -Original Message- From: Andrew Robinson [mailto:[EMAIL PROTECTED] ] Sent: Dienstag, 8. August 2006 17:40 To: MyFaces Discussion Subject: Re: t:inputHtml not working in IE FYI - I can't reproduce the issue. On my IE everything worked fine. I don't know what the user was experiencing. On 8/4/06, Stefan Frank [EMAIL PROTECTED] wrote: Hi, I'm having troubles with the htmleditor on Internetexplorer. The following snippet t:inputHtml id=summaryInput value=#{chapterBean.currentChapter.summary} style=CSSClass fallback=false type=fragment allowExternalLinks=false addKupuLogo=false showAllToolBoxes=false allowEditSource=true showPropertiesToolBox=false showLinksToolBox=false showImagesToolBox=false showTablesToolBox=false showDebugToolBox=false showCleanupExpressionsToolBox=false/ renders and behaves correctly in firefox, but fails terribly in Internet Explorer(checked several 6+ versions): The Buttonbar is rendered, but the text is not and the textfield is not editable. Switching to full browser mode or using one of the buttons (e.g. indent) makes the field editable, although it remains empty. Has anyone else encountered this strange behaviour?! Am I missing a certain IE-switch or does the control simply not work on ie? Cheersthx for any help Stefan -- 303-619-6607 http://adsea.com -- Cheap Talk? Check outhttp://us.rd.yahoo.com/mail_us/taglines/postman8/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.comYahoo! Messenger's low PC-to-Phone call rates.
Re: t:inputHtml not working in IE
Stefan, In case this still helps you or anyone else, I've just had the same experienced. For some reason adding a hight style attribute to inputHtml fixed rendering problem in IE. t:inputHtml style=height: 350px; ... Ken On 8/8/06, Stefan Frank [EMAIL PROTECTED] wrote: Hi Andrew, Thx for looking into this: I assume that it is then a weird combination of properties, that breaks the code in ie. I will upgrade to 1.1.1 and check, if the problem goes away with another set of properties... Cheers stefan -Original Message- From: Andrew Robinson [mailto:[EMAIL PROTECTED] Sent: Dienstag, 8. August 2006 17:40 To: MyFaces Discussion Subject: Re: t:inputHtml not working in IE FYI - I can't reproduce the issue. On my IE everything worked fine. I don't know what the user was experiencing. On 8/4/06, Stefan Frank [EMAIL PROTECTED] wrote: Hi, I'm having troubles with the htmleditor on Internetexplorer. The following snippet t:inputHtml id=summaryInput value=#{chapterBean.currentChapter.summary} style=CSSClass fallback=false type=fragment allowExternalLinks=false addKupuLogo=false showAllToolBoxes=false allowEditSource=true showPropertiesToolBox=false showLinksToolBox=false showImagesToolBox=false showTablesToolBox=false showDebugToolBox=false showCleanupExpressionsToolBox=false/ renders and behaves correctly in firefox, but fails terribly in Internet Explorer(checked several 6+ versions): The Buttonbar is rendered, but the text is not and the textfield is not editable. Switching to full browser mode or using one of the buttons (e.g. indent) makes the field editable, although it remains empty. Has anyone else encountered this strange behaviour?! Am I missing a certain IE-switch or does the control simply not work on ie? Cheersthx for any help Stefan -- 303-619-6607 http://adsea.com
submit or fix inputHtml bug?
Hi, Must thank you all for great product. Through Tomahawk 1.1.3 I've noticed a minor issue with inputHtml. Tomahawk logs following error: - Unable to find resource resource/kupudrawers/kupublank.html for component inputHtml.InputHtmlRenderer. Check that this file is available in the classpath in sub-directory /resource of the package-directory. In fact, kupublank.html is in the resource directory. When I copy file to resource/kupudrawers error message goes away. What is best way for noncommitter such as myself to fix this problem for everyone? Thanks, Ken
Re: Tomcat 5.5.16 problem
Try removing a couple of jar files from WEB-INF/lib of the application in webapp.I'm pretty sure one of them is commons-el-1.0.jar. Don't remember the other one but the MyFaces Tomcat configuration help page lists it. They conflict with what's shipped with Tomcat. Good luck.On 5/11/06, Garg, Apoorv [EMAIL PROTECTED] wrote: Hello, I am trying to integrate a myfaces test app under my current webapp. Initially I thought I had it running but that was because I had the test app sitting under the CATALINA_HOME/webapp folder. I removed it from there, moved the required files around under my own webapp and now I am not able to launch the test app jsp page. My guess is that I am missing some configuration value for the web.xml file under my own webapp. I would appreciate the help. Thanks. Apoorv Garg.
myfaces and Geronimo
I just noticed that Geronimo is not listed under working myFaces Servlet Containers. I've successfully run myFaces 1.1.1 using Goneronimo 1.0 Tomcat and Jetty distributions.
Re: javascript function getScrolling()
Great call Jana, I forgot about that. Thanks for the tip.On 3/7/06, Jana Parvanova [EMAIL PROTECTED] wrote: I think you could change this behaviour by changing context-paramparam-nameorg.apache.myfaces.AUTO_SCROLL/param-nameparam-valuetrue/param-value /context-param in your web.xml to context-paramparam-nameorg.apache.myfaces.AUTO_SCROLL/param-nameparam-valuefalse/param-value /context-param- Original Message - From: Ken McArthur [EMAIL PROTECTED]To: MyFaces Discussion users@myfaces.apache.orgSent: Tuesday, March 07, 2006 5:33 AM Subject: _javascript_ function getScrolling()Sometimes I'm returning to the same jsp page after executing an action.Page is rebuilt fine but position in browser returns to where I was.Lookslike culprit is _javascript_ function called getScrolling(). Anyone know how to suppress this _javascript_?I've put into my body tag but load nowflickers.Page loads positioned at top - Page scrolls down to getScrolling() position - Page returns to top.Any ideas would be greatly appreciated.
javascript function getScrolling()
Sometimes I'm returning to the same jsp page after executing an action. Page is rebuilt fine but position in browser returns to where I was. Looks like culprit is _javascript_ function called getScrolling(). Anyone know how to suppress this _javascript_? I've put into my body tag but load now flickers. Page loads positioned at top - Page scrolls down to getScrolling() position - Page returns to top. Any ideas would be greatly appreciated.
utf-8 from resource bundle?
Hi, All my pages start with [EMAIL PROTECTED] pageEncoding=utf-8 contentType=text/html; charset=utf-8 % and have meta http-equiv=content-type content=text/html; charset=utf-8 in the html head tag. Output from all database derived unicode characters look fine. However, output from resource bundle is garbled. i.e. Español comes back as Espa#195;#177;ol. File check on resource properties file comes back returns UTF-8 Unicode English text, with very long lines. Any ideas what I'm doing wrong or what more I need to add? Thanks, Ken
Re: utf-8 from resource bundle?
By the way, I'm using Tomcat 5 where I set URIEncoding=UTF-8 in the Connector tag. Also have a catch all filter setting. request.setCharacterEncoding(utf-8); response.setCharacterEncoding(utf-8); All is good except for display of content from my ResourceBundle. I'd really appreciate any ideas any one may have. Thanks, Ken On 1/4/06, Ken McArthur [EMAIL PROTECTED] wrote: Hi, All my pages start with [EMAIL PROTECTED] pageEncoding=utf-8 contentType=text/html; charset=utf-8 % and have meta http-equiv=content-type content=text/html; charset=utf-8 in the html head tag. Output from all database derived unicode characters look fine. However, output from resource bundle is garbled. i.e. Español comes back as Espa#195;#177;ol. File check on resource properties file comes back returns UTF-8 Unicode English text, with very long lines. Any ideas what I'm doing wrong or what more I need to add? Thanks, Ken
Re: utf-8 from resource bundle?
Got it working. Thanks a ton. On 1/4/06, xzuma [EMAIL PROTECTED] wrote: ResourceBundles need to be converted by native2ascii before use. The ResourceBundle Editor plugin for Eclipse does this conversion automatically.On 1/4/06, Ken McArthur [EMAIL PROTECTED] wrote: Hi, All my pages start with [EMAIL PROTECTED] pageEncoding=utf-8 contentType=text/html; charset=utf-8 % and have meta http-equiv=content-type content=text/html; charset=utf-8 in the html head tag. Output from all database derived unicode characters look fine. However, output from resource bundle is garbled. i.e. Español comes back as Espa#195;#177;ol. File check on resource properties file comes back returns UTF-8 Unicode English text, with very long lines. Any ideas what I'm doing wrong or what more I need to add? Thanks, Ken