Re: how do i get a page to serve as the default index page

2006-04-24 Thread David Schlotfeldt
erride this behavior in the servlet spec, but I was unable to find a way. -Andrew On 4/21/06, David Schlotfeldt [EMAIL PROTECTED] wrote: When a request comes in to http://localhost:8080/test.com/ I want the request to be handled as if it was http://localhost:8080/test.com/index.html

Re: how do i get a page to serve as the default index page

2006-04-22 Thread David Schlotfeldt
erride this behavior in the servlet spec, but I was unable to find a way. -Andrew On 4/21/06, David Schlotfeldt [EMAIL PROTECTED] wrote: When a request comes in to http://localhost:8080/test.com/ I want the request to be handled as if it was http://localhost:8080/test.com/index.html

how do i get a page to serve as the default index page

2006-04-21 Thread David Schlotfeldt
When a request comes in to http://localhost:8080/test.com/ I want the request to be handled as if it was http://localhost:8080/test.com/index.html I am using facelets and the actual file there is caleld http://localhost:8080/test.com/index.xhtml - NOTE the x How do i get it to server the

Re: AW: is it possible to call a method and pass an arguement from jsf?

2006-04-05 Thread David Schlotfeldt
/ /h:outputLink -Ursprüngliche Nachricht- Von: David Schlotfeldt [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 5. April 2006 04:56 An: users@myfaces.apache.org Betreff: is it possible to call a method and pass an arguement from jsf? I have a backing bean called Menu that has a method

is it possible to call a method and pass an arguement from jsf?

2006-04-04 Thread David Schlotfeldt
I have a backing bean called Menu that has a method getMenuItems() that returns a List of MenuItems. Each MenuItem has an id, title, and child MenuItems which are in a List. I want the url of menu items to be a join of the menuitem's id and its ancestors' id. Eg. if we are on 'a' and its

jscookmenu - why does getValue() always return a string?

2006-03-20 Thread David Schlotfeldt
Two quick questions. I am using the jscookmenu. I have an actionListener set on a menu item. Here is the JSF code: -- t:jscookMenu id=cmsMenu layout=hbr theme=ThemeOffice t:navigationMenuItem id=nav_1 actionListener=#{menu.onMenuItemAction}

Re: OT: within 10 miles

2006-03-12 Thread David Schlotfeldt
I have a database of zip codes, city, states, longitude, and latitude. Someone here found the database on the Internet. For a website we did we needed to list all locations of a franchise within 100 miles of a given zip code. It took a little while to find how to calculate the distance using

Re: action link

2006-03-07 Thread David Schlotfeldt
particularly popular for solving this problem. On 3/6/06, David Schlotfeldt [EMAIL PROTECTED] wrote: I need a way to have a URL that will cause a JSF action to take place. Anyone know of a way? (For an example, lets say I need to put the link in an email.) All I find are "hack

Re: action link

2006-03-07 Thread David Schlotfeldt
it comes back. What are peoples opinion on this approach? (I don't know how the API having to do with JSF's life cycle works so maybe its possible to do this type of thing from a servlet so a fake request doesn't have to be made.) Thanks, David David Schlotfeldt wrote: I need a way to have a URL

action link

2006-03-06 Thread David Schlotfeldt
I need a way to have a URL that will cause a JSF action to take place. Anyone know of a way? (For an example, lets say I need to put the link in an email.) All I find are hackerish javascript solutions to this issue. Would it be possible to create a version of the commandLink that didn't

Re: getResource giving filenotfound

2006-03-03 Thread David Schlotfeldt
use it outside of a servlet... well.. excet if I make some test cases.) David Anthony Hong wrote: String filePath = ((ServletContext)FacesContext.getCurrentInstance().getExternalContext().getContext()).getRealPath("/WEB-INF/test.properties"); You can get correct file path. On 3/3

getResource giving filenotfound

2006-03-02 Thread David Schlotfeldt
I have a property file in WEB-INF. I thought this is how you get to it: URL configUrl = FacesContext.getCurrentInstance().getExternalContext().getResource(/WEB-INF/test.properties); ... configProperties.load(new FileInputStream(file)); But I get this exception

view mapping

2006-02-26 Thread David Schlotfeldt
I need to change where my application is getting the XML of the view from. For example, currently when a request comes in for /company/history.jsf it will use the contents of /company/history.html. I want to be able to make a request for /company/history.jsf get its content from

setting value of attributes like binding, value, validator, converter, and required in java

2006-02-26 Thread David Schlotfeldt
I have parts of forms I would like to reuse from page to page but because binding, value, validator, converter, and required are all specified in the XML code I can't reuse the code. I have been playing with the idea of removing these settings from my XML code completely and instead setting

Re: FacesContext.getCurrentContext is null after login on Tomcat/JBoss

2006-02-26 Thread David Schlotfeldt
I have the same problem. I opened an issue on it a few days ago: https://issues.apache.org/jira/browse/MYFACES-1151 I just added a comment to it about it being a duplicate. David Mike Duffy wrote: I just upgraded to JBoss 4.0.4RC1. I did not have this error in the previous version of JBoss.

Re: FacesContext.getCurrentContext is null after login on Tomcat/JBoss

2006-02-26 Thread David Schlotfeldt
I have the same problem. I opened an issue on it a few days ago: https://issues.apache.org/jira/browse/MYFACES-1151 I just added a comment to it about it being a duplicate. David Mike Duffy wrote: I just upgraded to JBoss 4.0.4RC1. I did not have this error in the previous version of JBoss.

multiple views / forms on 1 page

2006-02-21 Thread David Schlotfeldt
Is it possible to have multiple views / forms on 1 page? For example html body ol id=menu lia href=blahblah/a/li li f:view h:commandLink id=accountEdit value=Profile action=#{backingBean.accountEditCurrentUser}/

Re: multiple views / forms on 1 page

2006-02-21 Thread David Schlotfeldt
Thank you for the very quick and informative response. I REALY appreciate it and will surely look more into both of those projects. David Matthias Wessendorf wrote: I have something like this (but the second view is actually pulled in with a JSP include) and I get some type of IO

Re: multiple views / forms on 1 page

2006-02-21 Thread David Schlotfeldt
You said "you may be interested in Shale's Clay or Facelets. this allows you to use html inside of jsf 1.1 views, with f.verbatim" Did you mean "withOUT f.verbatim" not "with f.verbatim" ? David David Schlotfeldt wrote: Thank you for the very quick and

Re: multiple views / forms on 1 page

2006-02-21 Thread David Schlotfeldt
Thank you for the very quick and informative response. I REALY appreciate it and will surely look more into both of those projects. David Matthias Wessendorf wrote: I have something like this (but the second view is actually pulled in with a JSP include) and I get some type of IO

Re: exception when using an EAR

2006-02-16 Thread David Schlotfeldt
and remove them from the WAR. Thanks, David Adam Brod wrote: I can't open the zip. Can you include the source for the offending JSP, the Backing Bean and part of faces-config.xml where the backing bean is configured? Adam Brod Product Development Team David

exception when trying to use myfaces in jboss

2006-02-14 Thread David Schlotfeldt
I am using JBoss 4 which comes with myfaces but I don't want to use the version it comes with (1.1.1) because it has 2 errors in it that I need fixed. The nightly build has both fixed. I am trying to remove faces from JBoss and have it use the version of myfaces that is with the webapp. This

Re: exception when trying to use myfaces in jboss

2006-02-14 Thread David Schlotfeldt
ave to do to let me have the classes in a separate JAR from the WAR? (Last note. im not really using any EJBs in this example so my problem is not an issue with them. I'm sure I am simply being really... stupid... about something.) Thanks, David David Schlotfeldt wrote: I am using JBoss