SV: Tiles JSF problem & sollution

2005-09-09 Thread hermod . opstvedt
Hi   Did you try the flush parameter? It needs to be set to false.   See :   http://forum.java.sun.com/thread.jspa?threadID=576179&messageID=2884538   Hermod -Opprinnelig melding-Fra: Alecsandru Chirosca [mailto:[EMAIL PROTECTED]Sendt: 9. september 2005 09:03Til: MyFaces Discus

RE: Getting Subclipse to connect

2005-05-12 Thread hermod . opstvedt
Hi I am using the same setup also behind a proxy, and it works just great. PS: DO not fill in anything for the username and password. Hermod -Original Message- From: Neal Haggard [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 11, 2005 8:43 PM To: MyFaces Discussion Subject: Getting Subcl

FileUpload

2005-05-12 Thread hermod . opstvedt
Hi I am seeing some weird behaviour with the UploadedFile component. It works about every other try. When it fails, it looks as if it still has a reference to the old temporary file, which of course is not there anymore. When it fails I get the following: (org.apache.myfaces.component.html.util.M

RE: Servlet Filter?

2005-05-11 Thread hermod . opstvedt
Hi Sorry for not answering this before - Been out sailing for some days. SecurityFilter is SF project. I have been using it in a couple of Struts applications, and have now incorporated it into the MyFaces version of one of them that I am currently migrating. Hermod -Original Message- F

RE: Servlet Filter?

2005-05-04 Thread hermod . opstvedt
Hi I seem to remember that (look in an earlier thread) there is a problem with that. Are you calling a faces page within that pattern? One soulution is to use the top-levek aproach and then check the requestpath in your filter (I use SecurityFilter for this). Hermod -Original Message- F

RE: Servlet Filter?

2005-05-04 Thread hermod . opstvedt
Hi I am using filters (for taking care of Hibernate sessions) and it works like a charm. However I did mess up initially because I forgot to add the correct mapping, which then resultet in the same behaviour. Make sure you have somthing like this in your web.xml file: <>

RE: Tabbed pane - retaining focus

2005-05-02 Thread hermod . opstvedt
Hi I do not know what happened but after cleaning my Tomcat work dir and retrying it, it now works. When I do a submit on a pane it retains focus. However I can't see how I can detect which pane a user has clicked. The setTabbedPaneBinding methed always returns the currently selected pane. Hermo

RE: Tabbed pane - retaining focus

2005-04-29 Thread hermod . opstvedt
Hi I tried this, but I am getting a "not a valid binding" error when binding the x:panelTabbedPane to the property in the managed bean. Is the x:panelTabbedPane not an instance of HtmlPanelTabbedPane? Hermod -Original Message- From: Opstvedt, Hermod Sent: Wednesday, April 27, 2005 12:33

RE: Tabbed pane - retaining focus

2005-04-27 Thread hermod . opstvedt
Hi Thanks. I'll give it a try Hermod -Original Message- From: Matthias Jung [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 27, 2005 12:28 PM To: MyFaces Discussion Subject: Re: Tabbed pane - retaining focus I'm not sure if this behaviour of MyFaces tabbedPanes is a bug or intended. H

Tabbed pane - retaining focus

2005-04-26 Thread hermod . opstvedt
Hi I've searched around, but have not found any way of doing the following : I have a tabbedPane, and when I select a tab (other than the first) and then submit something on it, I want the selected tab to be in focus when the request returns. When I do it now, it is always focused on the first ta

RE: tiles support

2005-04-19 Thread hermod . opstvedt
Hi   You have to surround all "pure" html with f:verbatim tags   Hermod -Original Message-From: Claudio Tamietto [mailto:[EMAIL PROTECTED]Sent: Tuesday, April 19, 2005 1:58 PMTo: myfaces-user@incubator.apache.orgSubject: tiles support is there an effective support for ty

RE: Where to store DB connection in JSF session

2005-04-10 Thread hermod . opstvedt
Hi I am using a Filter to do this. There is a filter available on net call Persistance.java (search Google). I have slightly altered this to support multiple Hibernate configuration files (I have multiple databases). I also have an initialization servlet (loaded on startup) that initilalizez Hiber

RE: [Vote] release candidate2 for Apache MyFaces

2005-03-30 Thread hermod . opstvedt
Hi Eh - Just a minor issue : In org.apache.myfaces.examples.inputhtmlexample.EditorFace there is a variable "text". Its initialized as "Defaut unformated text." Probably should read "Default unformated text." Hermod -Original Message- From: Matthias Wessendorf [mailto:[EMAIL PROTECTE

RE: HTML code inside a message from a ResourceBundle

2005-03-30 Thread hermod . opstvedt
Hi Yeah, but not in your stated case - There you where using a resourcebudle There is no "html" escaping on message(s) as far as I know, but I guess you could subclass the renderer and add that. Hermod -Original Message- From: Enrique Medina [mailto:[EMAIL PROTECTED] Sent: Wednesday, Ma

RE: Myfaces Extension Filter

2005-03-30 Thread hermod . opstvedt
Hi   The error message that you are getting indicates that you have misplaced your filter definition. The web.xml file is bound by a dtd, meaning that things have to occur in certain order. Look at the MyFaces sample applications, and the web.xml files that you find there.   Hermod   -Or

RE: HTML code inside a message from a ResourceBundle

2005-03-30 Thread hermod . opstvedt
Hi Sorry, my mistake (a little hasty here - In struts mode :) ) You should not be using for this - Use Hermod -Original Message- From: Enrique Medina [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 30, 2005 9:33 AM To: MyFaces Discussion Subject: Re: HTML code inside a message from

RE: HTML code inside a message from a ResourceBundle

2005-03-29 Thread hermod . opstvedt
Hi Set the escape attribute on h:message to "true" Hermod -Original Message- From: Enrique Medina [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 29, 2005 12:24 PM To: MyFaces Discussion Subject: HTML code inside a message from a ResourceBundle Hi, Is there any way to escape HTML cod

RE: MyFaces and JAAS on Tomcat

2005-03-28 Thread hermod . opstvedt
Hi I figured out what the problem was - A configuration issue (Servlet context type). SecurityFilter is now working like a charm :) Hermod -Original Message- From: Manfred Geiler [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 3:05 PM To: MyFaces Discussion Subject: Re: MyFaces

RE: MyFaces and JAAS on Tomcat

2005-03-22 Thread hermod . opstvedt
Hi I have not looked into the code yet, but I suspect that that MyFaces is doing things to the request that it should not do (in my opinion). To me it looks like it completely clears the request, and the rebuilds it with its own parameters. The SecurityFilter that I am using, puts attributes into

RE: Problem: HtmlDataTable is no ValueHolder, cannot set value

2005-03-22 Thread hermod . opstvedt
Hi You need to surround your parameter with #{} Hermod -Original Message- From: Kostas Karadamoglou [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 10:33 AM To: MyFaces Discussion Subject: Re: Problem: HtmlDataTable is no ValueHolder, cannot set value What did you mean by that?

RE: EL w/

2005-03-22 Thread hermod . opstvedt
Hi Should not the be enclosed in a f:verbatim tag ? Hermod -Original Message- From: Matthias Wessendorf [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 10:18 AM To: MyFaces Discussion Subject: Re: EL w/ perhaps a silly thing, but try to use none scope for "labApplicationWizar

RE: MyFaces and JAAS on Tomcat

2005-03-21 Thread hermod . opstvedt
Hi Your scenario seems plausible, but not what one would desire. One of the drivers behind JAAS in my eyes is the notion of "Container Managed". The application it self should not have to worry about security. Security should be something that is handled on the "outside". By that I mean what is kn

RE: MyFaces and JAAS on Tomcat

2005-03-21 Thread hermod . opstvedt
Hi I really hope so. Hermod -Original Message- From: Matthias Wessendorf [mailto:[EMAIL PROTECTED] Sent: Monday, March 21, 2005 2:51 PM To: MyFaces Discussion Subject: Re: MyFaces and JAAS on Tomcat :) but looking into Shale should be not uninteressting ;) -Matthias [EMAIL PROTECTED

RE: MyFaces and JAAS on Tomcat

2005-03-21 Thread hermod . opstvedt
Hi Oh I am embarresed - So embarresed :-( I finally found out why the doFilter did not get called - I had defined the filter, but not the filter mapping - Now it works just as it should do. Regretfully Hermod -Original Message- From: Sean Schofield [mailto:[EMAIL PROTECTED] Sent: Monday

RE: MyFaces and JAAS on Tomcat

2005-03-21 Thread hermod . opstvedt
Hi Oh, Yes. This is a standard feature with SecurityFilter. I am currently nesting through the code to se why the doFilter method is not getting called. Hermod -Original Message- From: Sean Schofield [mailto:[EMAIL PROTECTED] Sent: Monday, March 21, 2005 2:25 PM To: MyFaces Discussion Su

RE: MyFaces and JAAS on Tomcat

2005-03-21 Thread hermod . opstvedt
Hi No - What I want is what I have in my Strus version : On the frontpage i have fields for username/password and a login button. That way a user can log in at any given time - He/She does not have do access a secured resource to get a "forced" login. Thats why I have been using SecurityFilter ( S

RE: MyFaces and JAAS on Tomcat

2005-03-21 Thread hermod . opstvedt
Hi As I said in my post : It works if you try to access a secured resource. You can however not "Pre-login" - That is enter you username/password at the frontpage, and then be authenticated. Hermod -Original Message- From: Matthias Wessendorf [mailto:[EMAIL PROTECTED] Sent: Monday, March

RE: MyFaces and JAAS on Tomcat

2005-03-21 Thread hermod . opstvedt
Hi Thanks Hermod -Original Message- From: Matthias Wessendorf [mailto:[EMAIL PROTECTED] Sent: Monday, March 21, 2005 1:46 PM To: MyFaces Discussion Subject: Re: MyFaces and JAAS on Tomcat That worked! I send you (private) the WAR (user with role admin in tomcat-users.xml on my box)

RE: MyFaces and JAAS on Tomcat

2005-03-21 Thread hermod . opstvedt
Hi Here goes - This is all based on the MyFaces "Blank" example. 1. Create a new folder "secure" - Copy page2.jsp to it, or create a new page there. 2. Add the snippet below to your web.xml file Test /secure/* admin

RE: JSTL Variable in commandLink value:

2005-03-21 Thread hermod . opstvedt
Hi As far as I know this can not be done : Mixing JSTL and JSF. Hermod -Original Message- From: Timo Schnölzer [mailto:[EMAIL PROTECTED] Sent: Monday, March 21, 2005 1:09 PM To: myfaces-user@incubator.apache.org Subject: JSTL Variable in commandLink value: Hi all, I am using a jstl fo

RE: MyFaces and JAAS on Tomcat

2005-03-21 Thread hermod . opstvedt
Hi Did the test - On Firefox I get "HTTP Status 408 - The time allowed for the login process has been exceeded." when i submitted the login form. On I.E I get "HTTP Status 400 - Invalid direct reference to form login page" when I submit the page. On Opera I get "HTTP Status 400 - Invalid direct r

RE: MyFaces and JAAS on Tomcat

2005-03-21 Thread hermod . opstvedt
Hi I'll give it a try - Noticed that this is on Tomcat 4, but I guess it should be ok with Tomcat 5 too. This does look scaringly like what I have been trying to do though. Hermod -Original Message- From: Matthias Wessendorf [mailto:[EMAIL PROTECTED] Sent: Monday, March 21, 2005 12:41

RE: MyFaces and JAAS on Tomcat

2005-03-21 Thread hermod . opstvedt
Hi I have been struggling with 1.0.9 - Just for the heck of it, I am going see what happens if I use Suns R.I Hermod -Original Message- From: AUGE Frédéric GC EUR [mailto:[EMAIL PROTECTED] Sent: Monday, March 21, 2005 12:35 PM To: 'MyFaces Discussion' Subject: RE: MyFaces and JAAS on Tom

MyFaces and JAAS on Tomcat

2005-03-21 Thread hermod . opstvedt
Hi I have observed another peculiarity with MyFaces and Tomcat with regards to security. If I use BASIC authentication, it works fine. However if I use FORM authentication (and use a regular JSP page for the form), I consistently get a HTTP 408 response. I also created a simple jsp with a form

MyFaces and Filters not working ?

2005-03-21 Thread hermod . opstvedt
Hi I am starting get to the stage of my migration from Struts to MyFaces where I was going to add the security stuff. In my struts application I am using SecurityFilter from S.F, and It works flawlessly. I configured the MyFaces Blank application first to use the standard "BASIC" authentication us

RE: Weird problems with outputtext tag

2005-03-18 Thread hermod . opstvedt
Hi You will experience the same behaviour in Struts or any EL usage for that matter. Get used to it. From now on you know that if a variable returns blank, and there are now messages/exceptions, then it is null. Hermod -Original Message- From: Srikanth Madarapu [mailto:[EMAIL PROTECTED]

RE: Weird problems with outputtext tag

2005-03-18 Thread hermod . opstvedt
Hi What is the name of the getter for selectedCategory ? (Hint : It must be named getSelectedCategory) Hermod -Original Message- From: Kostas Karadamoglou [mailto:[EMAIL PROTECTED] Sent: Friday, March 18, 2005 12:24 PM To: myfaces-user@incubator.apache.org Subject: Weird problems with ou

RE: commandButton does not work with Tiles

2005-03-17 Thread hermod . opstvedt
Hi Have you checked that you have a temp directory ? Hermod -Original Message- From: Neal Haggard [mailto:[EMAIL PROTECTED] Sent: Thursday, March 17, 2005 3:30 PM To: MyFaces Discussion Subject: RE: commandButton does not work with Tiles I'm running Jboss 4.0.1, which includes Tomcat 5

RE: commandButton does not work with Tiles

2005-03-17 Thread hermod . opstvedt
Hi See my reply to previous post. Hermod -Original Message- From: Neal Haggard [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 16, 2005 5:48 PM To: MyFaces Discussion Subject: RE: commandButton does not work with Tiles I'm getting the following exception when I try and use tiles with

RE: commandButton does not work with Tiles

2005-03-17 Thread hermod . opstvedt
Hi COnnection refused seem to ring a bell : Are you running on Tomcat 4 ? If so you need a temp directory under Tomcat root directory. This because there are stuff that needs to be expanded from some jars. Hermod -Original Message- From: Neal Haggard [mailto:[EMAIL PROTECTED] Sent: Wedne

RE: Myfaces and WebSphere 5

2005-03-17 Thread hermod . opstvedt
Hi I will give it a try (adding jsp20.jar) - I suspect that I might run into some problems though, because the same package exists in the j2ee.jar file, and as I stated : WAS5 support JSP 1.2. Hermod -Original Message- From: Matthias Wessendorf [mailto:[EMAIL PROTECTED] Sent: Wednesday,

RE: Myfaces and WebSphere 5

2005-03-17 Thread hermod . opstvedt
Hi Using the recipe for using commons.logging for WAS solves the logging issue. By the way, I am running WS (Axis) with no problem under WSAD 5.1 Hermod -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 16, 2005 4:33 PM To: MyFaces Discussion;

RE: Myfaces and WebSphere 5

2005-03-16 Thread hermod . opstvedt
Hi Nope - Its getting : java.lang.NoClassDefFoundError: javax/servlet/jsp/el/ELException This clas is not in the JSP 1.2 version, which WAS 5 supports. Although the ClassCastException would have caused some trouble anyways. Hermod -Original Message- From: Sean Schofield [mailto:[EMAIL

RE: Myfaces and WebSphere 5

2005-03-16 Thread hermod . opstvedt
Hi Notice -> WAS 5 not WAS 5.1 ( If you had read the rest of the mail you would have noticed that I also stated that it works on 5.1) What I have come to conclude, is that WAS 5 supports JSP 1.2, while Myfaces requires 2.0. Hacking this on WAS is not an option. Hermod -Original Message-

Myfaces and WebSphere 5

2005-03-16 Thread hermod . opstvedt
Hi Regarding WAS5, I have narrowed it down to a problem with the logging API. After searching through thw logs, I stumbled upon this : java.lang.ExceptionInInitializerError: org.apache.commons.logging.LogConfigurationException: java.lang.ClassCastException: com.ibm.ws.commons.logging.TrLogFactor

RE: from where can i get tree2 component

2005-03-14 Thread hermod . opstvedt
Hi Which is my of my war plans :) Hermod -Original Message- From: Sean Schofield [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 2005 2:51 PM To: MyFaces Discussion Subject: Re: from where can i get tree2 component I had the same problem with Tomcat 4.x and it went away with Tomcat 5

RE: from where can i get tree2 component

2005-03-14 Thread hermod . opstvedt
Hi I am going to investigate this tonight, and try to figure out what is wrong with WAS 5. As I stated it is Ok with WAS 5.1, so I guess it has to do with the supported servlet spec., or a conflicting jar file. Hermod -Original Message- From: Sean Schofield [mailto:[EMAIL PROTECTED] Sent

RE: Problems with inputCalendar

2005-03-14 Thread hermod . opstvedt
Hi Great - I kind of thought you might have missed out on this one. Hermod -Original Message- From: Kostas Karadamoglou [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 2005 1:20 PM To: MyFaces Discussion Subject: Re: Problems with inputCalendar Thanks it works now!!! [EMAIL PROTECTE

RE: Problems with inputCalendar

2005-03-14 Thread hermod . opstvedt
Hi Search the list - It is responsible for loading resources from archives (.jar files). : extensionsFilter org.apache.myfaces.component.html.util.ExtensionsFilter uploadMaxFileSi

RE: Problems with inputCalendar

2005-03-14 Thread hermod . opstvedt
Hi Have you configured in the ExtensionsFilter ? Hermod -Original Message- From: Kostas Karadamoglou [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 2005 11:16 AM To: MyFaces Discussion Subject: Re: Problems with inputCalendar I noticed that the generated html code of calendar.jsp

RE: from where can i get tree2 component

2005-03-14 Thread hermod . opstvedt
Hi Look in your logs for something like : "Did not realize init() exception thrown by servlet Faces Servlet". I'am trying to get MyFaces up and running on WebSphere 5.0.2, and I am seeing the same behaviour. It works OK on WebSphere 5.1. I am guessing that there is a .jar file that is to old, or

Any good ideas ?

2005-03-10 Thread hermod . opstvedt
Hi Scenario : You have for a page that displays news, backed by a database. There are several different types of news. Now a user should be able to select a specific type of news directly from the menu. I have looked at JSCookMenu, but I do not see a way of passing/setting a parameter to the back

RE: JSF EL & Method names

2005-03-10 Thread hermod . opstvedt
Hi it should be : usuarioBean.usuario.hasOfertas NO parentesis !! Hermod -Original Message- From: Enrique Medina [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 09, 2005 11:58 AM To: [EMAIL PROTECTED] Subject: JSF EL & Method names Hi, I have read your answer to my question in t

RE: JSF EL & Method names

2005-03-08 Thread hermod . opstvedt
Hi your missing the essential part - get -- rename your method to getHasOffers() and it will work as a charm :) Hermod -Original Message- From: Enrique Medina [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 08, 2005 12:36 PM To: myfaces-user@incubator.apache.org Subject:

navmenutiem and param

2005-03-08 Thread hermod . opstvedt
Hi I asked this once, but no takers so I'll try again : Can you do this : and expect to find selval as a request param ? Hermod * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individu

RE: Design question for integrating Hibernate and JSF(MyFaces)

2005-03-08 Thread hermod . opstvedt
Hi I have a Filter (Persistance.java) that opens a session when the request comes in, and closes it on the way out. This works great actually. From within you backing bean you call the Hibernate service bean, which just does a Persistance.getSession(). This is a extension to the other familiar Per

Link - Best practice

2005-03-02 Thread hermod . opstvedt
Hi What is the best practice for the following scenario : I have a page that can display different events. From the menu (JSCookMenu) you should be able select a specicif event, and be sent to this page which in turn would display the data for that event. In good ol' Struts you would do this thro

RE: Calendar

2005-03-01 Thread hermod . opstvedt
There just might be a site out there that keeps track of such dates, internationally. Since I work in finance, I happen to know that this sort of information is crucial. I'll check around to see if I can find any. Hermod -Original Message- From: Sean Schofield [mailto:[EMAIL PROTECTED] Se

Calendar

2005-03-01 Thread hermod . opstvedt
Hi I am looking at creating an event calendar. This would be something almost exactly like the HTMLInputCalendar, only that you could attach a bean to it, so that the renderer could ask if something is going on on a particular date, and if so, color it with a settable foreground/background and ren

RE: Exadel example with Myfaces

2005-03-01 Thread hermod . opstvedt
Hi I did test this with 1.0.8, and no, there where no error messages submitted. Hermod -Original Message- From: Matthias Wessendorf [mailto:[EMAIL PROTECTED] Sent: Saturday, February 26, 2005 8:48 PM To: MyFaces Discussion Subject: Re: Exadel example with Myfaces Hermond- which versi

Exadel example with Myfaces

2005-02-24 Thread hermod . opstvedt
Hi I took the example "How to write your own JSF components" from http://www.jsftutorials.net/components/tips.html, and ran it on Sun RI and MyFaces. For some reason the title attribute on the DIV tag does not get rendered when running it under Myfaces. Is this a bug or is there some difference in

RE: Support for MyFaces inside of eclipse4web

2004-12-13 Thread hermod . opstvedt
Hi You can - I did, and it works. However, if you want to have the MyFaces tags in the Web/JSP palett, you have to do some fiddling. Hermod -Original Message- From: Heath Borders [mailto:[EMAIL PROTECTED] Sent: Monday, December 13, 2004 3:17 PM To: MyFaces Discussion Subject: Re: Support

RE: Support for MyFaces inside of eclipse4web

2004-12-12 Thread hermod . opstvedt
Hi JSF is integrated into WSAD 5.1.2 - There is a bunch of tutorials on this on develperworks. Hermod -Original Message- From: Heath Borders [mailto:[EMAIL PROTECTED] Sent: Friday, December 10, 2004 9:10 PM To: MyFaces Discussion Subject: Re: Support for MyFaces inside of eclipse4web D

SV: SV: boolean custom converter

2004-12-07 Thread hermod . opstvedt
Well, ofcourse :) -Opprinnelig melding- Fra: Francesco Consumi [mailto:[EMAIL PROTECTED] Sendt: 7. desember 2004 12:12 Til: [EMAIL PROTECTED] Emne: Re: SV: boolean custom converter Scrive [EMAIL PROTECTED]: > Hi > > If u where to use Hibernate, it handles this excelently - I use it > ag

SV: boolean custom converter

2004-12-07 Thread hermod . opstvedt
Hi If u where to use Hibernate, it handles this excelently - I use it against Adaptive Server Anywhere. It neither has a boolean value, and I use tinyint instead. Hermod -Opprinnelig melding- Fra: Francesco Consumi [mailto:[EMAIL PROTECTED] Sendt: 7. desember 2004 11:55 Til: [EMAIL PROTE

SV: Italian translation of messages.properties

2004-11-30 Thread hermod . opstvedt
Hi I am having trouble accessing it with cvsgrab. Actually any project at cvs.apache.org recently. It keeps saying : "[WARN] CVS Root not found, there may be issues if ViewCvs is used with multiple repositories". It this has to do with re-org on the Apache CVS repository. Hermod -Opprinnelig

SV: Managed Bean can't catch checked exception

2004-11-29 Thread hermod . opstvedt
Hi Wait a minute - You are catching the DataIntegrityViolationException and throwing a UserExistsException in you bean, hence the DataIntegrityViolationException will never get to your managed bean Hermod -Opprinnelig melding- Fra: Manfred Geiler [mailto:[EMAIL PROTECTED] Sendt: 29. nove