JSCookMenu

2006-07-28 Thread James Reynolds

I'm enjoying some success and experiencing some frustration with the
JSCookMenu v.1.1.2.  I have it working great in one section of my site,
but having some problems in another.

In the problem area, I had created a CSS/JavaScript menu with command
links, but the JavaScript IE fix to trigger mouseover actions isn't 100%
reliable.  Therefore, I want to replace it with the JSCookMenu, but two
problems are preventing me from doing so.

1. When the site first loads, the menu is not rendered and I get a
javascript error stating that CM_Panel is not defined.

2. When a user logs in, the menu does loads fine and the javascript
error dissapears.  However, the menu entries do not work.  The page
submits but reloads the same view.  The menu is part of a header file
that also includes a 'login' section which may be part of the problem.
Each unsecured page has the username and password fields in the header,
waiting for the user to log in.  When the menu is clicked, the
validation on these fields is NOT triggered, but the navigation is not
engaged.

For those of you using this component, what are some of the pitfalls to
avoid?  Do these issues sound familiar?

Thank you



JSCookMenu

2006-07-28 Thread James Reynolds
I'm enjoying some success and experiencing some frustration with the
JSCookMenu v.1.1.2. I have it working great in one section of my site,
but having some problems in another.

In the problem area, I had created a CSS/JavaScript menu with command
links, but the JavaScript IE fix to trigger mouseover actions isn't 100%
reliable. Therefore, I want to replace it with the JSCookMenu, but two
problems are preventing me from doing so.

1. When the site first loads, the menu is not rendered and I get a
javascript error stating that CM_Panel is not defined.

2. When a user logs in, the menu does loads fine and the javascript
error dissapears. However, the menu entries do not work. The page
submits but reloads the same view. The menu is part of a header file
that also includes a 'login' section which may be part of the problem.
Each unsecured page has the username and password fields in the header,
waiting for the user to log in. When the menu is clicked, the validation
on these fields is NOT triggered, but the navigation is not engaged.

For those of you using this component, what are some of the pitfalls to
avoid? Do these issues sound familiar?

Thank you




RE: is there a way to pull a session scope variable directly into a jsf tag?

2006-07-27 Thread James Reynolds
There are some implicit variables to simplify accessesing objects in
session or application scope...

#{sessionScope.foo.bar}

Or

#{applicationScope.foo.bar}

I haven't tried this for navigation as you've described, but it works
great for tying object properties to controls.

JR

 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 27, 2006 11:33 AM
To: MyFaces Discussion
Subject: is there a way to pull a session scope variable directly into a
jsf tag?






let's say I have a session scoped attribute (not a component) named foo,
with a value of bar

I wanted to create a command button like h: commandButton action=
#{session.foo} ...
to pass the string value to jsf for navigation.  I didn't want to put
the value in a managed bean, so used just a session attribute.

but that doesn't work and I've looked for references and can't find one.

is there a way to pull a session scoped attribute directly with a tag?

Thanks for your help.
Tom



 
This message is intended for the recipient only and is not meant to be
forwarded or distributed in any other format. This communication is for
informational purposes only.  It is not intended as an offer or
solicitation for the purchase or sale of any financial instrument, or
security, or as an official confirmation of any transaction.  Putnam
does not accept purchase or redemptions of securities, instructions, or
authorizations that are sent via e-mail.   All market prices, data and
other information are not warranted as to completeness or accuracy and
are subject to change without notice.  Any comments or statements made
herein do not necessarily reflect those of Putnam, LLC (DBA Putnam
Investments) and its subsidiaries and affiliates.  If you are not the
intended recipient of this e-mail, please delete the e-mail.



RE: is there a way to pull a session scope variable directly into a jsf tag?

2006-07-27 Thread James Reynolds
I found out about these implicit variables from reading Kito Mann's
excellent JavaServer Faces in Action.  There are others:

#{cookie.myCookie}
#{facesContext}
#{header['User-Agent']}
#{headerValues['Accept-Encoding'][3]}
#{initParam.adminEmail}
#{param.foo}
#{paramValues.foo[2]}
#{requestScope.foo.bar}
#{view.locale}

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 27, 2006 1:38 PM
To: MyFaces Discussion
Subject: RE: is there a way to pull a session scope variable directly
into a jsf tag?







Thank you James and Julian.  Your help is greatly appreciated.

Putting all session scoped variables in one place makes sense, but at
this time we have a bunch of code that treats this one value as a
separate attribute.

for the time being I'll use the syntax from James and going forward will
just use a bean.

I must not be reading the right docs because I couldn't find a reference
to sessionScope.

If you have time, could you mention any docs that have helped you?

Thanks again for your help.
Tom



 

 Julian Ray

 [EMAIL PROTECTED]

 .com
To 
   'MyFaces Discussion'

 07/27/2006 03:04  users@myfaces.apache.org

 PM
cc 
 

 
Subject 
 Please respond to RE: is there a way to pull a

 MyFaces  session scope variable directly

Discussioninto a   jsf tag?

 [EMAIL PROTECTED]

 ache.org

 

 

 

 





We put all our session scoped variables into a managed bean which has
session scope. It then becomes easy

#{SessionBean.foo.bar}


-Original Message-
From: James Reynolds [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 27, 2006 2:41 PM
To: MyFaces Discussion
Subject: RE: is there a way to pull a session scope variable directly
into a jsf tag?

There are some implicit variables to simplify accessesing objects in
session or application scope...

#{sessionScope.foo.bar}

Or

#{applicationScope.foo.bar}

I haven't tried this for navigation as you've described, but it works
great for tying object properties to controls.

JR



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 27, 2006 11:33 AM
To: MyFaces Discussion
Subject: is there a way to pull a session scope variable directly into a
jsf tag?






let's say I have a session scoped attribute (not a component) named foo,
with a value of bar

I wanted to create a command button like h: commandButton action=
#{session.foo} ...
to pass the string value to jsf for navigation.  I didn't want to put
the value in a managed bean, so used just a session attribute.

but that doesn't work and I've looked for references and can't find one.

is there a way to pull a session scoped attribute directly with a tag?

Thanks for your help.
Tom




This message is intended for the recipient only and is not meant to be
forwarded or distributed in any other format. This communication is for
informational purposes only.  It is not intended as an offer or
solicitation for the purchase or sale of any financial instrument, or
security, or as an official confirmation of any transaction.  Putnam
does not accept purchase or redemptions of securities, instructions, or
authorizations that are sent via e-mail.   All market prices, data and
other information are not warranted as to completeness or accuracy and
are subject to change without notice.  Any comments or statements made
herein do not necessarily reflect those of Putnam, LLC (DBA Putnam
Investments) and its subsidiaries and affiliates.  If you are not the
intended recipient of this e-mail, please delete the e-mail.





 
This message is intended for the recipient only and is not meant to be
forwarded or distributed in any other format. This communication is for
informational purposes only.  It is not intended as an offer or
solicitation for the purchase or sale of any financial instrument, or
security, or as an official confirmation of any transaction.  Putnam
does not accept purchase or redemptions of securities, instructions, or
authorizations that are sent via e-mail.   All market prices, data and
other information are not warranted as to completeness or accuracy and
are subject to change without notice.  Any comments or statements made
herein do not necessarily reflect those of Putnam, LLC (DBA Putnam
Investments) and its subsidiaries and affiliates.  If you are not the
intended recipient of this e-mail, please delete the e-mail.



Styling the JSCookMenu

2006-07-27 Thread James Reynolds

I'd like to set up my own theme for the JSCookMenu, but I'm having
difficulty locating instructions.  Is there a page hidden in the wiki,
or elsewhere, about this?

Thanks



navigationMenuItem Split attribute

2006-07-27 Thread James Reynolds

Can someone tell me what the split attribute is for the
navigaionMenuItem?



RE: navigationMenuItem Split attribute

2006-07-27 Thread James Reynolds
Please disregard, I was trying to pass it a String value of  |  when I
should have just been using a boolean true value. 

-Original Message-
From: James Reynolds [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 27, 2006 2:45 PM
To: MyFaces Discussion
Subject: navigationMenuItem Split attribute


Can someone tell me what the split attribute is for the
navigaionMenuItem?




JSCookMenu/navigationMenuItem Immediate attribute?

2006-07-27 Thread James Reynolds

Is there a way to set up the JSCookMenu so that it will bypass
validation, as if it had an immediate attribute set to true?

Thanks



Changing the t:inputDate popup button?

2006-07-26 Thread James Reynolds
Title: t:columns and iterating through row objects that contain list of column objects.



Is it 
possible to change the t:inputDate popup button? I'd like to replace the 
ellipses with a small image of a calendar or, at least, some descriptive 
text.

Thanks


RE: Changing the t:inputDate popup button?

2006-07-26 Thread James Reynolds



Thank you!


From: Raj Rajendran [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 26, 2006 2:01 PMTo: MyFaces 
DiscussionSubject: Re: Changing the t:inputDate popup 
button?
Try Jenia Calendar http://www.jenia.orgvery good and 
customizable.http://www.jenia.org/TestPopup/
On 7/26/06, Cagatay 
Civici [EMAIL PROTECTED] 
wrote:

  Hi,Lately, I've worked on some of the jira issues about inputDate 
  component and currently there is no way to change the "..." text of the popup 
  button. As far as I remember the label of the button is hard coded. 
  How about creating a jira issue for this one 
  James?Regards,
  Cagatay Civici
  
  On 7/26/06, James 
  Reynolds  
  [EMAIL PROTECTED] wrote:
  


Is it possible to change 
the t:inputDate popup button? I'd like to replace the ellipses with a 
small image of a calendar or, at least, some descriptive 
text.

Thanks


RE: Changing the t:inputDate popup button?

2006-07-26 Thread James Reynolds



Thank you very much. That's a good suggestion, I'll 
create an issue.


From: Cagatay Civici 
[mailto:[EMAIL PROTECTED] Sent: Wednesday, July 26, 2006 1:23 
PMTo: MyFaces DiscussionSubject: Re: Changing the 
t:inputDate popup button?
Hi,Lately, I've worked on some of the jira issues about 
inputDate component and currently there is no way to change the "..." text of 
the popup button. As far as I remember the label of the button is hard coded. 
How about creating a jira issue for this one 
James?Regards,Cagatay Civici
On 7/26/06, James 
Reynolds  
[EMAIL PROTECTED] wrote:

  
  
  Is it possible to change the 
  t:inputDate popup button? I'd like to replace the ellipses with a small 
  image of a calendar or, at least, some descriptive text.
  
  Thanks


RE: Can the FacesContext be Accessed from Outside of a Backing Bean?

2006-05-17 Thread James Reynolds
Yes it can, here is a good link:

http://jsffaq.com/Wiki.jsp?page=HowToAccessOneManagedBeanFromAnotherMana
gedBean

evangelismBTW, Shale simplifies this for you/evangelism

 

-Original Message-
From: Mike Duffy [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 17, 2006 10:43 AM
To: users@myfaces.apache.org
Subject: Can the FacesContext be Accessed from Outside of a Backing
Bean?

If I call the following from inside a backing bean, everything works
fine:

User user = (User)
FacesContext.getCurrentInstance().getExternalContext().getSessionMap().g
et(Constants.USER_KEY); 

However, if I make the same call from an object in the session or from a
utilty class, I get a null pointer on
FacesContext.getCurrentInstance(). 

Can the FacesContext be accessed from outside of a backing bean?

Thx.

Mike

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 



RE: [newbie]: click on commandButton does nothing. Why?

2006-05-10 Thread James Reynolds
Enclose your buttons in an h:form tag. 

-Original Message-
From: Matthias Klein [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 10, 2006 3:11 PM
To: users@myfaces.apache.org
Subject: [newbie]: click on commandButton does nothing. Why?

I am sure this is a super simple newbie problem, but would you mind
helping me? Thanks so much!

I wanted to start playing with MyFaces and JSF by building a tiny
application:
index.jsp simply forwards to menu.faces (which is the file menu.jsp) In
menu.jsp there is one little button leading to details.jsp In
details.jsp there are two buttons: one leading back to menu.jsp and one
leading to content.jsp content.jsp has a button to menu.jsp.

I can deploy everything in Tomcat 5.5 and call each page individually by
using the .faces suffix instead of their real file name suffix .jsp.

But here is the thing: when I click on any of those buttons, nothing
happens. Absolutely nothing. I have added a System.out... statement in
the method that is supposed to be called but that is not called either.

Do you have any idea what I did wrong?

Here some code:

-
Index.jsp
-
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html
body
jsp:forward page=/menu.faces /
/body
/html

-
Menu.jsp
-
%@ page language=java pageEncoding=UTF-8% %@ taglib
uri=http://java.sun.com/jsf/html; prefix=h % %@ taglib
uri=http://java.sun.com/jsf/core; prefix=f % f:view
f:loadBundle
basename=ca.gc.nrc.iit.eConservatoire.frontend.bundles.MessageBundle
var=bundle /

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
html
head
titleh:outputText
value=#{bundle.menu_frame} //title
/head

body

menubr
//  h:commandButton value=Weiter rendered=true
action=#{MenuBackingBean.userClick} /
h:commandButton value=Weiter rendered=true
action=showDetails /
/body
/html
/f:view

-
Details.jsp
-
%@ page language=java pageEncoding=UTF-8% %@ taglib
uri=http://java.sun.com/jsf/html; prefix=h % %@ taglib
uri=http://java.sun.com/jsf/core; prefix=f % f:view
f:loadBundle
basename=ca.gc.nrc.iit.eConservatoire.frontend.bundles.MessageBundle
var=bundle /

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
html
head
titleh:outputText
value=#{bundle.details_frame} //title
/head

body

h:panelGrid columns=2
h:outputText
value=#{bundle.details_title} /
h:outputText
value=#{DetailsBackingBean.title} /
h:outputText
value=#{bundle.details_author} /
h:outputText
value=#{DetailsBackingBean.author} /
/h:panelGrid

h:commandButton
value=#{bundle.details_startbutton}. rendered=true
action=#{DetailsBackingBean.showContent} /
h:commandButton
value=#{bundle.details_backbutton} rendered=true
action=#{DetailsBackingBean.showMenu} /

/body
/html
/f:view

-
Content.jsp
-
%@ page language=java pageEncoding=UTF-8% %@ taglib
uri=http://java.sun.com/jsf/html; prefix=h % %@ taglib
uri=http://java.sun.com/jsf/core; prefix=f % f:view
f:loadBundle
basename=ca.gc.nrc.iit.eConservatoire.frontend.bundles.MessageBundle
var=bundle /

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
html
head
titleh:outputText
value=#{bundle.content_frame} //title
/head

body

contentbr
h:commandButton
value=#{bundle.content_backbutton} rendered=true
action=#{ContentBackingBean.showMenu} /

/body
/html
/f:view

-
Faces-config.xml
-
?xml version=1.0 encoding=UTF-8?
!DOCTYPE faces-config PUBLIC -//Sun Microsystems, Inc.//DTD JavaServer
Faces Config 1.1//EN http://java.sun.com/dtd/web-facesconfig_1_1.dtd;

faces-config 

application
locale-config
default-localeen/default-locale
supported-localeen/supported-locale
supported-localede/supported-locale
/locale-config

message-bundleca.gc.nrc.iit.eConservatoire.frontend.bundles.MessageBun
dle/message-bundle
/application

managed-bean

managed-bean-nameDetailsBackingBean/managed-bean-name


t:collapsiblePanel and View History

2006-05-04 Thread James Reynolds

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: Myfaces Drag and Drop

2006-04-24 Thread James Reynolds



Ice faces has a free community edition of their JSF 
components and I noticed that they include drag and drop capability. I 
haven't tried them yet.

JR


From: Joseph C. Estes, Jr. 
[mailto:[EMAIL PROTECTED] Sent: Monday, April 24, 2006 
11:35 AMTo: users@myfaces.apache.orgSubject: Myfaces Drag 
and Drop


Has anyone found or developed any 
drag and drop components for Myfaces. Any examples would be helpful 
considering I will probably be building a custom component. Also I didnt 
see any examples in the sandbox, am I looking in the right place or is there 
another location where an example like this is located. Thank in 
advance.

Regards,

Joseph C. Estes, 
Jr.
Interface Management 
Services
[EMAIL PROTECTED]
www.interfacemgmt.net
(909)702-0302



RE: MyFaces and NetBeans 5.0

2006-04-17 Thread James Reynolds

I've used NetBeans for myFaces JSF apps without a problem.  I set it up
as a normal web application - not as a JSF app.  I believe the wizard is
designed to set up a Sun RI application by default, so you'll need to
add the myFaces libraries (with dependencies) and set up the config
files manually.  Once you've done that, you can still use things like
the managed-bean and navigation wizards.

-Original Message-
From: benjamin van der veen [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 17, 2006 4:50 PM
To: MyFaces Discussion
Subject: Re: MyFaces and NetBeans 5.0

Mike,

I have, and they don't appear to be in the classpath, or the .war file.
Which is what I expected, since this is a ClassNotFoundException. But
why is it that something is trying to load them?

Is there anyone else who has experienced this problem and can share his
story?

On 4/17/06, Mike Kienenberger [EMAIL PROTECTED] wrote:
 On 4/16/06, benjamin van der veen [EMAIL PROTECTED] wrote:
 org.apache.catalina.core.StandardContext listenerStart
  SEVERE: Error configuring application listener of class 
  com.sun.faces.config.ConfigureListener
  java.lang.ClassNotFoundException: 
  com.sun.faces.config.ConfigureListener
  It seems that it's trying to load part of the Sun RI

 Yes, that's exactly the problem, although I couldn't say why.
 Try searching for jsf-api.jar and jsf-impl.jar files.




RE: Faces Trace

2006-04-14 Thread James Reynolds

I'm drooling over this component!  In addition to its debugging
capabilities, the educational value is huge!  Nice work.

JR



From: Cagatay Civici [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 14, 2006 1:15 AM
To: MyFaces Discussion
Subject: Faces Trace


Hi,

Me and my colleague created a JSF library called Faces Trace which you
may find interesting.

It brings a visual support for debugging JSF flows.

More info and some screenshots are here;

http://www.jroller.com/page/cagataycivici?entry=rise_of_the_faces_trace

I'll be glad to receive feedback,

Regards,

Cagatay Civici,




[OT] Rotating Images via JSF or AJAX

2006-04-14 Thread James Reynolds

I have an animated .gif that rotates images (like a slide show).  I want
to replace it with some kind of component that will do the same thing.
I'd like to have it pull the sources for the images from a database so
that I can choose which images are displayed on the fly.  

Has anyone discovered a JSF or AJAX roadmap for this kind of thing?

Thanks



RE: Re: [OT] Rotating Images via JSF or AJAX

2006-04-14 Thread James Reynolds

Oops, I shouldn't have written 'rotation.'  I simply mean changing the
displayed image on the page without page submits, basically just like ad
banners.  Though your point is taken, I'll need to focus on getting the
image from the server.

Thanks

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Werner Punz
Sent: Friday, April 14, 2006 11:28 AM
To: users@myfaces.apache.org
Subject: Re: [OT] Rotating Images via JSF or AJAX

James Reynolds schrieb:
 I have an animated .gif that rotates images (like a slide show).  I 
 want to replace it with some kind of component that will do the same
thing.
 I'd like to have it pull the sources for the images from a database so

 that I can choose which images are displayed on the fly.
 
 Has anyone discovered a JSF or AJAX roadmap for this kind of thing?
 
Nothing is there as component yet, however it is doable, if you are
willing to write it yourself.
You have everything basically in place.
All you need is java2d for rotation and something which pulls the images
from a server.


You even can do that without jsf just by using a servlet for doing the
work and then setting parametrized img tags onto that servlet.




RE: Shale ViewController and MyFaces

2006-04-13 Thread James Reynolds

From your message I can see that you understand the naming convention
for Managed-bean-name file, but are you including the entire path to the
file?  If you have  webroot/myFolder/myFile.jsp, then the name is
myFolder$myFile.

Just checking. 

-Original Message-
From: David Miller [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 13, 2006 11:08 AM
To: users@myfaces.apache.org
Subject: Shale ViewController and MyFaces

Greetings,

I'm trying to use Shale's ViewController in a managed bean to execute
some code when the bean first loads. I'm using a nightly build of
shale-core and shale-tiger from 20060221.

It all seems really simple but I can't get it to work. None of my
ViewController methods are ever called (init(), prerender(), etc...).
I've added  mapped the shale filter in my web.xml, added the chain
listener to my web.xml, added all the dependant jars, and added a dummy
chain-config and dialog-config to META-INF.
My managed bean has the same name as my jsp (the jsp begins with a lower
case letter and the bean an upper case letter but changing that had no
effect).

What else can I do? I don't know if my problem is related to MyFaces or
to Shale.

Thanks,
David



[OT] Storing files outside of the web context

2006-04-07 Thread James Reynolds

I have a jsf app that includes many .pdf files of contracts.  I've just
been putting them all in the war before deploying to the production
server.  There must be a better way to do this.  Is it possible to store
these files elsewhere on the web server, outside of the context, and
still be able to link to them?

Thanks



RE: [OT] Storing files outside of the web context

2006-04-07 Thread James Reynolds

Thank you so much.  You don't know how much this helps :)



From: Quintin Kerby [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 07, 2006 3:50 PM
To: MyFaces Discussion
Subject: Re: [OT] Storing files outside of the web context



Absolutely.  You could hard code a file path from inside a backing bean
and save the file anywhere on your system if you wanted. 

Here's some quick code I stole from one of my servlets that reads a file
from anywhere (just define your own filename) and sends it to the
response: 

ServletContext sc = getServletContext(); 
String filename = sc.getRealPath(/images/bcg.gif); 

// Get the MIME type of the image 
String mimeType = sc.getMimeType(filename); 
if (mimeType == null) { 
mimeType = text/plain; 
} 

// Set content type 
response.setContentType(mimeType); 

// Set content size 
File file = new File(filename); 
response.setContentLength((int) file.length()); 

//Set headers 
response.setHeader(Content-disposition, attachment; filename= +
filename); 
response.setHeader(Cache-Control, max-age=600); 

// Open the file and output streams 
FileInputStream in = new FileInputStream(file); 
OutputStream out = response.getOutputStream(); 

// Copy the contents of the file to the output stream 
byte[] buf = new byte[1024]; 
int count = 0; 
while ((count = in.read(buf)) = 0) { 
out.write(buf, 0, count); 
} 
in.close(); 
out.close(); 

Quintin Kerby
CACI, Inc. 



James Reynolds [EMAIL PROTECTED] 

04/07/2006 15:02 
Please respond to
MyFaces Discussion users@myfaces.apache.org


To
MyFaces Discussion users@myfaces.apache.org 
cc

Subject
[OT] Storing files outside of the web context







I have a jsf app that includes many .pdf files of contracts.  I've just
been putting them all in the war before deploying to the production
server.  There must be a better way to do this.  Is it possible to store
these files elsewhere on the web server, outside of the context, and
still be able to link to them?

Thanks







RE: [OT] Storing files outside of the web context

2006-04-07 Thread James Reynolds
Thanks, I'll watch that.
 

-Original Message-
From: Matthias Wessendorf [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 07, 2006 4:03 PM
To: MyFaces Discussion
Subject: Re: [OT] Storing files outside of the web context

be carefully, when using getRealPath()

snip
This method returns null  if the servlet container cannot translate the virtual 
path to a real path for any reason (such as when the content is being made 
available from a .war archive).
/snip

On 4/7/06, James Reynolds [EMAIL PROTECTED] wrote:

 Thank you so much.  You don't know how much this helps :)

 

 From: Quintin Kerby [mailto:[EMAIL PROTECTED]
 Sent: Friday, April 07, 2006 3:50 PM
 To: MyFaces Discussion
 Subject: Re: [OT] Storing files outside of the web context



 Absolutely.  You could hard code a file path from inside a backing 
 bean and save the file anywhere on your system if you wanted.

 Here's some quick code I stole from one of my servlets that reads a 
 file from anywhere (just define your own filename) and sends it to the
 response:

 ServletContext sc = getServletContext(); String filename = 
 sc.getRealPath(/images/bcg.gif);

 // Get the MIME type of the image
 String mimeType = sc.getMimeType(filename); if (mimeType == null) {
 mimeType = text/plain;
 }

 // Set content type
 response.setContentType(mimeType);

 // Set content size
 File file = new File(filename);
 response.setContentLength((int) file.length());

 //Set headers
 response.setHeader(Content-disposition, attachment; filename= + 
 filename); response.setHeader(Cache-Control, max-age=600);

 // Open the file and output streams
 FileInputStream in = new FileInputStream(file); OutputStream out = 
 response.getOutputStream();

 // Copy the contents of the file to the output stream byte[] buf = new 
 byte[1024]; int count = 0; while ((count = in.read(buf)) = 0) {
 out.write(buf, 0, count);
 }
 in.close();
 out.close();

 Quintin Kerby
 CACI, Inc.



 James Reynolds [EMAIL PROTECTED]

 04/07/2006 15:02
 Please respond to
 MyFaces Discussion users@myfaces.apache.org


 To
 MyFaces Discussion users@myfaces.apache.org cc

 Subject
 [OT] Storing files outside of the web context







 I have a jsf app that includes many .pdf files of contracts.  I've 
 just been putting them all in the war before deploying to the 
 production server.  There must be a better way to do this.  Is it 
 possible to store these files elsewhere on the web server, outside of 
 the context, and still be able to link to them?

 Thanks








--
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln
http://www.wessendorf.net
mwessendorf-at-gmail-dot-com



graphicImage, FireFox and Samba [ot?]

2006-04-03 Thread James Reynolds

I have a graphicImage image component that pulls its image from a Samba
directory.  It works great in IE, but shows up as a broken image in
FireFox.

If I view the image properties in IE, I see that the source has
file:/// prepended to it:
file:///W:/asiweb1-npp/logos/members/loc_logo.gif

Under FireFox, the source is:
w:/asiweb1-npp/logos/members/loc_logo.gif

I tried putting file:/// ahead of the path in my code.  It still
worked under IE but not with FireFox.  What is the proper way to do
this?

Thanks




RE: Apache MyFaces JSF error

2006-03-28 Thread James Reynolds

I would certainly update to JSF 1.1.01.  There are many bug fixes over
the first release.



From: Rashid Asim [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 28, 2006 8:58 AM
To: 'users@myfaces.apache.org'
Subject: Apache MyFaces JSF error



Hello

 

Whilst developing using Apache MyFaces I have come across a problem
which I am trying to troubleshoot. I have had not had any luck at
resolving this issue. I will attempt to describe this:

 

I am developing using JSF version 1.1 and the application server I am
using to deploy to is BEA WebLogic 9.1 

 

I have a situation where some of my JSF pages occasionally misbehave.
For example, sometimes when I click a h:commandButton/ (which is
located within a h:form tag) the action which the button is wired to
is not executed. 

 

Please note that this glitch happens intermittently with no fixed
pattern. It is also interesting to note that the data which the user has
entered (prior to clicking the button) on the JSF page is also lost and
has to be re-entered again by the user.

 

Functionally, this is only a minor problem however from a usability
perspective this is a major problem.

 

I have searched SUN's Java forums and found a useful site at
http://www.jsf-faq.com/faqs/faces-navigation.html#111. Having followed
all the suggestions prescribed on this site, I find that I am still
having the same problem.

 

I have tried setting the javax.faces.STATE_SAVING_METHOD to client.

 

Should I update to the next JSF version which is 1.1.01?

 

Have you experienced a problem such as this in your team? Do you know if
this is a known JSF bug? 

 

Can you please suggest any appropriate actions to remedy this problem? I
would gladly welcome any input from you.

 

Thanking you in advance,

 

Asim Rashid

Asim Rashid
Software Engineer  Researcher, 

TIM -Trusted Solutions  Services

QinetiQ
Bldg WW Rm B106
Malvern Technology Centre
St. Andrews Road, Malvern
Worcestershire, WR14 3PS

Tel: 

01684 895019 


Email: 

[EMAIL PROTECTED] 


Mobile: 

07961231645 


Web: 

www.QinetiQ.com http://www.qinetiq.com  



QinetiQ - The Global Defence and Security Experts 

 

The information contained in this E-Mail and any subsequent
correspondence is private and is intended solely for the intended
recipient(s).  The information in this communication may be confidential
and/or legally privileged.  Nothing in this e-mail is intended to
conclude a contract on behalf of QinetiQ or make QinetiQ subject to any
other legally binding commitments, unless the e-mail contains an express
statement to the contrary or incorporates a formal Purchase Order.

For those other than the recipient any disclosure, copying,
distribution, or any action taken or omitted to be taken in reliance on
such information is prohibited and may be unlawful.

Emails and other electronic communication with QinetiQ may be monitored
and recorded for business purposes including security, audit and
archival purposes.  Any response to this email indicates consent to
this.

Telephone calls to QinetiQ may be monitored or recorded for quality
control, security and other business purposes.




inputText inputSecret Sizes vary

2006-03-27 Thread James Reynolds

I have an inputText and an InputSecret component that are set to the
same size.  However, I've noticed that in IE, their sizes vary.
Sometimes the inputText is bigger and sometimes it's the other way
around.  Any idea why this happens?

Have a great day



RE: I am trying to run a sample application of myfaces in tomcat 5.5.9 but it return NullPointerException

2006-03-24 Thread James Reynolds

When last I heard, the myFaces-all.jar had some sort of problem.  I
excluded it and included all the required commons libraries and life was
good again.


-Original Message-
From: Legolas Woodland [mailto:[EMAIL PROTECTED] 
Sent: Saturday, March 25, 2006 3:01 AM
To: MyFaces Discussion
Subject: I am trying to run a sample application of myfaces in tomcat
5.5.9 but it return NullPointerException

Hi
Thank you for reading my post.
I am trying to test a sample myfaces application in tomcat 5.5.9 , but
it return the following exception:
java.lang.NullPointerException
at
javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.jav
a:615)
at
javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:217)
at
org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:71)
at
org.apache.jsp.index_jsp._jspx_meth_f_view_0(index_jsp.java:99)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:74)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:322)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:85
6)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:744)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow
erWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:684)
at java.lang.Thread.run(Thread.java:595)


here is my web.xml file

?xml version='1.0' encoding='UTF-8'?

!DOCTYPE web-app PUBLIC
  -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
  http://java.sun.com/dtd/web-app_2_3.dtd;


web-app


context-param
param-namecom.sun.faces.validateXml/param-name
param-valuetrue/param-value
description
  
/description
/context-param

context-param
param-namecom.sun.faces.verifyObjects/param-name
param-valuetrue/param-value
description
 
/description
/context-param

!-- Faces Servlet --
servlet
servlet-nameFaces Servlet/servlet-name
servlet-classjavax.faces.webapp.FacesServlet/servlet-class
load-on-startup1/load-on-startup
/servlet


!-- Faces Servlet Mapping --
servlet-mapping
servlet-nameFaces Servlet/servlet-name
url-pattern*.jsf/url-pattern
/servlet-mapping

/web-app


I have included following jar file into web-inf/lib myfaces-impl.jar
myfaces-api.jar sandbox.jar tomahawk.jar myfaces-all.jar






RE: Style for row in datatable

2006-03-22 Thread James Reynolds

I have been interested in this as well.  One suggestion that has been
offered in the past is to bind the dataTable row styles to a bean value.
The bean value would be a comma delimited string of class names, one for
each row.  Obviously, you would need to build that list dynamically
based on some aspect of your data.  I haven't tried it yet so I can't
provide any feedback on its success, but maybe the idea will help you.



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 22, 2006 5:19 AM
To: users@myfaces.apache.org
Subject: Style for row in datatable



Hi, 

Is it possible to apply a style to a row in a datatable dynamically? For
example, I might have a datatable showing a list of numbers and I would
want the rows containing negative numbers to be red and the positive
numbers to be blue. I want to apply the style to the entire row (tr)
not just the contents. 

I believe this cannot be achieved using the rowClasses attribute of the
datatable. 

Is there any way of achieving this? 

Thanks 

Jean 




RE: Do I need to set up .jspx extentions in my web.xml?

2006-03-22 Thread James Reynolds
Thanks Mike! 

-Original Message-
From: Mike Kienenberger [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 21, 2006 5:17 PM
To: MyFaces Discussion
Subject: Re: Do I need to set up .jspx extentions in my web.xml?

You are only allowed to have one suffix with the default JSF
implementation.

 context-param
param-namejavax.faces.DEFAULT_SUFFIX/param-name
param-value.jsp/param-value
/context-param

or

 context-param
param-namejavax.faces.DEFAULT_SUFFIX/param-name
param-value.jspx/param-value
/context-param

You could create your own view handler that does this.  Facelets
delegates non-facelets file extensions back to the default viewhandler
so that it can support both .xhtml and .jspx (for example).

It'd seem like it'd be fairly simple to extend the default viewhandler
functionality to try two suffixes instead of one.

There's been interest (for this very reason) expressed by others in
the last week for the same functionality.   Search through the past
week's myafces-users list for DEFAULT_SUFFIX to find the threads.


On 3/21/06, James Reynolds [EMAIL PROTECTED] wrote:

 I'm in the process of converting my jsp files to jspx.  I set up one 
 test case and I was surprised by a 404 error.  Do I need to add some 
 configuration in my web.xml?  In my faces-config I have:

 navigation-rule
from-view-id/welcome.jsp/from-view-id
navigation-case
from-outcomego_template/from-outcome
to-view-id/template.jspx/to-view-id
/navigation-case
 /navigation-rule


 ***But the error I receive indicates that Tomcat is looking for a jsp
 extention:***

 HTTP Status 404 - /template.jsp

 --
 --
 

 type Status report

 message /template.jsp

 description The requested resource (/template.jsp) is not available.


 --
 --
 

 Apache Tomcat/5.5.15







RE: Style for row in datatable

2006-03-22 Thread James Reynolds
So you have a column in your data that determines the row style based on
the conditional statement in your rowStyleClass (pretty cool, I didn't
know you could code an if statement that way).

Is it also possible to evaluate the value of a numeric field?  Such as:
...
rowStyleClass=#{myRow.totalRevenue gt 0 ?
'BlackFontStyle':'RedFontStyle'}
...


-Original Message-
From: Lindholm, Greg [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 22, 2006 10:51 AM
To: MyFaces Discussion
Subject: RE: Style for row in datatable

Yes, it's easy using t:dataTable

t:dataTable 
id=myTable
rowStyleClass=#{myRow.active ? 'ActiveRowStyle':'InactiveRowStyle'}}
var=myRow 
value=#{myBean.values}

 

-Original Message-
From: James Reynolds [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 22, 2006 12:37 PM
To: MyFaces Discussion
Subject: RE: Style for row in datatable


I have been interested in this as well.  One suggestion that has been
offered in the past is to bind the dataTable row styles to a bean value.
The bean value would be a comma delimited string of class names, one for
each row.  Obviously, you would need to build that list dynamically
based on some aspect of your data.  I haven't tried it yet so I can't
provide any feedback on its success, but maybe the idea will help you.



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 22, 2006 5:19 AM
To: users@myfaces.apache.org
Subject: Style for row in datatable



Hi, 

Is it possible to apply a style to a row in a datatable dynamically? For
example, I might have a datatable showing a list of numbers and I would
want the rows containing negative numbers to be red and the positive
numbers to be blue. I want to apply the style to the entire row (tr)
not just the contents. 

I believe this cannot be achieved using the rowClasses attribute of the
datatable. 

Is there any way of achieving this? 

Thanks 

Jean 





RE: Style for row in datatable

2006-03-22 Thread James Reynolds
Thanks Greg, you've made my day! 

-Original Message-
From: Lindholm, Greg [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 22, 2006 11:21 AM
To: MyFaces Discussion
Subject: RE: Style for row in datatable

Yes, it's EL so you can use any valid expression.
Also, you can test any property in your row object it doesn't have to be
a displayed column. 


-Original Message-
From: James Reynolds [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 22, 2006 1:08 PM
To: MyFaces Discussion
Subject: RE: Style for row in datatable

So you have a column in your data that determines the row style based on
the conditional statement in your rowStyleClass (pretty cool, I didn't
know you could code an if statement that way).

Is it also possible to evaluate the value of a numeric field?  Such as:
...
rowStyleClass=#{myRow.totalRevenue gt 0 ?
'BlackFontStyle':'RedFontStyle'}
...


-Original Message-
From: Lindholm, Greg [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 22, 2006 10:51 AM
To: MyFaces Discussion
Subject: RE: Style for row in datatable

Yes, it's easy using t:dataTable

t:dataTable 
id=myTable
rowStyleClass=#{myRow.active ? 'ActiveRowStyle':'InactiveRowStyle'}}
var=myRow 
value=#{myBean.values}

 

-Original Message-
From: James Reynolds [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 22, 2006 12:37 PM
To: MyFaces Discussion
Subject: RE: Style for row in datatable


I have been interested in this as well.  One suggestion that has been
offered in the past is to bind the dataTable row styles to a bean value.
The bean value would be a comma delimited string of class names, one for
each row.  Obviously, you would need to build that list dynamically
based on some aspect of your data.  I haven't tried it yet so I can't
provide any feedback on its success, but maybe the idea will help you.



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 22, 2006 5:19 AM
To: users@myfaces.apache.org
Subject: Style for row in datatable



Hi, 

Is it possible to apply a style to a row in a datatable dynamically? For
example, I might have a datatable showing a list of numbers and I would
want the rows containing negative numbers to be red and the positive
numbers to be blue. I want to apply the style to the entire row (tr)
not just the contents. 

I believe this cannot be achieved using the rowClasses attribute of the
datatable. 

Is there any way of achieving this? 

Thanks 

Jean 






What is the correct jspx Doctype Declaration?

2006-03-22 Thread James Reynolds

I'm in the process of converting my jsp files to jspx.  If I don't
include a DocType declaration, I get an error like:


*The XML page cannot be displayed 
*Cannot view XML input using XSL style sheet. Please correct the error
and then click the Refresh button, or *try again later. 
*
*---
-
*
*A string literal was not closed. Error processing resource
'http://localhost:8080/myNPP/'. Line 12, Position *354 
*
*//--/script/formdiv class=shortyContenth1Test
Content/h1/divform i...


I added this doctype to my page:


*jsp:output
*![CDATA[!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0
Transitional//EN
*http://www.w3c.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;]]
*/jsp:output


But then I get a different error (listed below) from the index page that
forwards to my first jsf page.  Am I just using the wrong doctype, or am
I missing a key requirement for jspx?

Thanks



HTTP Status 500 - 




type Exception report

message 

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception 

org.apache.jasper.JasperException: Exception in JSP: /index.jspx:9

6:   To change this template use File | Settings | File Templates.
7: --
8: jsp:root xmlns:jsp=http://java.sun.com/JSP/Page;
xmlns=http://www.w3.org/1999/xhtml; version=2.0
9: jsp:forward page=/template.jsf/
10: /jsp:root


Stacktrace:

org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServle
tWrapper.java:504)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:375)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.shale.faces.ShaleApplicationFilter.doFilter(ShaleApplicationF
ilter.java:285)


root cause 

javax.servlet.ServletException: /template.jspx(15,17) lt;jsp:outputgt;
must not have a body
javax.faces.webapp.FacesServlet.service(FacesServlet.java:121)

org.apache.shale.faces.ShaleApplicationFilter.doFilter(ShaleApplicationF
ilter.java:285)

org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java
:703)

org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:6
70)

org.apache.jsp.index_jspx._jspService(org.apache.jsp.index_jspx:43)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:332)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.shale.faces.ShaleApplicationFilter.doFilter(ShaleApplicationF
ilter.java:285)


root cause 

javax.faces.FacesException: /template.jspx(15,17) lt;jsp:outputgt;
must not have a body

org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(S
ervletExternalContextImpl.java:421)

org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspView
HandlerImpl.java:234)

org.apache.shale.clay.faces.ClayViewHandler.renderView(ClayViewHandler.j
ava:384)

org.apache.shale.view.faces.ViewViewHandler.renderView(ViewViewHandler.j
ava:146)

org.apache.shale.tiles.TilesViewHandler.renderView(TilesViewHandler.java
:175)

org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352
)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)

org.apache.shale.faces.ShaleApplicationFilter.doFilter(ShaleApplicationF
ilter.java:285)

org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java
:703)

org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:6
70)

org.apache.jsp.index_jspx._jspService(org.apache.jsp.index_jspx:43)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:332)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.shale.faces.ShaleApplicationFilter.doFilter(ShaleApplicationF
ilter.java:285)


note The full stack trace of the root cause is available in the Apache
Tomcat/5.5.15 logs.



RE: how to set ROWS attribute in t:dataTable using Resource Bundle ?

2006-03-21 Thread James Reynolds

I haven't tried what you're proposing, but I've accomplished the same
thing through the backing bean using prepared statements like thus:

PreparedStatement ps = conn.prepareStatement(sql);
ps.setMaxRows(2);

If you must store the value in a properties file.  Maybe you could
replace the digit above with a variable reference to your properties
key.



-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of sunil
Sent: Tuesday, March 21, 2006 3:45 PM
To: users@myfaces.apache.org
Subject: how to set ROWS attribute in t:dataTable using Resource Bundle
?

Hi,

I want to limit the No. of Rows that can be displayed in the table by
using the Value from the Resource Bundle (something like below ):

#JSP page
t:dataTable rows=#{bundle.MaxRecordsDisplayed_PerPage} 

# Resource bundle File
MaxRecordsDisplayed_PerPage=20

But I am getting a ClassCastException in doing this. I was under the
impression the Expression language does the casting implicitly. ROWS
attribute needs an Integer value but since the value being retrieved
from Bundle is as a String, its causing this Exception :

java.lang.ClassCastException
at javax.faces.component.UIData.getRows(UIData.java:770)
at


Is there any other way other than using a getter from the Backing Bean ?

Thanks,
Sunil




Do I need to set up .jspx extentions in my web.xml?

2006-03-21 Thread James Reynolds

I'm in the process of converting my jsp files to jspx.  I set up one
test case and I was surprised by a 404 error.  Do I need to add some
configuration in my web.xml?  In my faces-config I have:

navigation-rule
   from-view-id/welcome.jsp/from-view-id
   navigation-case
   from-outcomego_template/from-outcome
   to-view-id/template.jspx/to-view-id
   /navigation-case
/navigation-rule


***But the error I receive indicates that Tomcat is looking for a jsp
extention:***

HTTP Status 404 - /template.jsp




type Status report

message /template.jsp

description The requested resource (/template.jsp) is not available.





Apache Tomcat/5.5.15





Mail Archive?

2006-03-17 Thread James Reynolds

I've lost track of the searchable mail archive for this list and I'm not
seeing it on the MyFaces site.  Could someone please reply with the
link?  Then I won't be bothering you nearly as often :)



RE: Mail Archive?

2006-03-17 Thread James Reynolds
OK, I deserved that.  Thanks guys. 

-Original Message-
From: Dennis Byrne [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 17, 2006 10:49 AM
To: MyFaces Discussion
Subject: Re: Mail Archive?

http://www.google.com/search?hl=enq=myfaces+mailing+lists+btnG=Google+
Search

;)

Dennis Byrne 

-Original Message-
From: James Reynolds [mailto:[EMAIL PROTECTED]
Sent: Friday, March 17, 2006 12:45 PM
To: 'MyFaces Discussion'
Subject: Mail Archive?


I've lost track of the searchable mail archive for this list and I'm 
not seeing it on the MyFaces site.  Could someone please reply with the

link?  Then I won't be bothering you nearly as often :)







t:panelNavigation2 Layout Attribute

2006-03-17 Thread James Reynolds

I see in the examples that the t:panelNavigation2 component that there
is a Layout attribute (set to List) that isn't mentioned on the
myFaces site.  What are the other alternatives for this attribute?

Thanks



What is the state of the JS Cook Menu?

2006-03-16 Thread James Reynolds

I've been using the 1.1.1 release but I've been hesitant to use the
JSCookMenu after observing several posts to this list about its problems
in the release.  Now I would really like to use horizontal menu, and
there doesn't seem to be any other (free) game in town.

Am I just being a sissy by not building up a later release?  How many
folks are using the JSCookMenu out on the production sites successfully?

Thanks



RE: How to extend datatable to accomodate grouping

2006-02-13 Thread James Reynolds

I don't want to sound rude, but I'm a little bit concerned about using
bleeding edge releases in my production environment.  The feature
described below is brilliant, but I'd like to see it in action for a
while before I stake my job on it.

Are there any other strategies for grouping data in JSF?

Example:
 Category 1
 Contract_Number, Contract_Description
 Contract_Number, Contract_Description

 Category 2
 Contract_Number, Contract_Description
 ...etc...

-Original Message-
From: Mike Kienenberger [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 10, 2006 3:21 PM
To: MyFaces Discussion
Subject: Re: How to extend datatable to accomodate grouping

You might take a look at this feature.  It was added yesterday so you'll
have to grab the source from svn and build myfaces yourself (which is
easy to do now that we've switched to maven).

http://issues.apache.org/jira/browse/MYFACES-1064?page=all

On 2/10/06, James Reynolds [EMAIL PROTECTED] wrote:

 I have a jsp page I want to convert to jsf.  Currently, it uses 
 scriptlets with for-loops to display a table of contracts grouped by 
 category like this:

 Category 1
 Contract_Number, Contract_Description, etc Contract_Number, 
 Contract_Description, etc

 Category 2
 Contract_Number, Contract_Description, etc ...

 Conversion to a datatable would be simple enough, except I can't 
 imagine how to handle the grouping.  Based on my searches, it appears 
 that nesting datatables is out.  Can anyone recommend an approach to 
 accomplishing this?





RE: How to extend datatable to accomodate grouping

2006-02-13 Thread James Reynolds

Thanks Mike!  I hadn't considered nesting dataLists.  I'll give that a
whirl. 

-Original Message-
From: Mike Kienenberger [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 13, 2006 3:41 PM
To: MyFaces Discussion
Subject: Re: How to extend datatable to accomodate grouping

Well, the only other thing I can think of is to use nested t:dataList
elements and output your own html tags as you iterate over your data.

On 2/13/06, James Reynolds [EMAIL PROTECTED] wrote:

 I don't want to sound rude, but I'm a little bit concerned about using

 bleeding edge releases in my production environment.  The feature 
 described below is brilliant, but I'd like to see it in action for a 
 while before I stake my job on it.

 Are there any other strategies for grouping data in JSF?

 Example:
  Category 1
  Contract_Number, Contract_Description  Contract_Number, 
 Contract_Description

  Category 2
  Contract_Number, Contract_Description  ...etc...

 -Original Message-
 From: Mike Kienenberger [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 10, 2006 3:21 PM
 To: MyFaces Discussion
 Subject: Re: How to extend datatable to accomodate grouping

 You might take a look at this feature.  It was added yesterday so 
 you'll have to grab the source from svn and build myfaces yourself 
 (which is easy to do now that we've switched to maven).

 http://issues.apache.org/jira/browse/MYFACES-1064?page=all

 On 2/10/06, James Reynolds [EMAIL PROTECTED]
wrote:
 
  I have a jsp page I want to convert to jsf.  Currently, it uses 
  scriptlets with for-loops to display a table of contracts grouped by

  category like this:
 
  Category 1
  Contract_Number, Contract_Description, etc Contract_Number, 
  Contract_Description, etc
 
  Category 2
  Contract_Number, Contract_Description, etc ...
 
  Conversion to a datatable would be simple enough, except I can't 
  imagine how to handle the grouping.  Based on my searches, it 
  appears that nesting datatables is out.  Can anyone recommend an 
  approach to accomplishing this?
 
 





RE: How to extend datatable to accomodate grouping

2006-02-13 Thread James Reynolds
Does the newspaperTable support grouping, or are you suggesting that it
would be better for nesting?

Thanks for your help. 

-Original Message-
From: Bruno Aranda [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 13, 2006 3:44 PM
To: MyFaces Discussion
Subject: Re: How to extend datatable to accomodate grouping

Well, and the newspaperTable [1]. I think it better fits the requisites,

Bruno

[1] http://myfaces.apache.org/tomahawk/newspaperTable.html

On 2/13/06, Mike Kienenberger [EMAIL PROTECTED] wrote:
 Well, the only other thing I can think of is to use nested t:dataList 
 elements and output your own html tags as you iterate over your data.

 On 2/13/06, James Reynolds [EMAIL PROTECTED]
wrote:
 
  I don't want to sound rude, but I'm a little bit concerned about 
  using bleeding edge releases in my production environment.  The 
  feature described below is brilliant, but I'd like to see it in 
  action for a while before I stake my job on it.
 
  Are there any other strategies for grouping data in JSF?
 
  Example:
   Category 1
   Contract_Number, Contract_Description  Contract_Number, 
  Contract_Description
 
   Category 2
   Contract_Number, Contract_Description  ...etc...
 
  -Original Message-
  From: Mike Kienenberger [mailto:[EMAIL PROTECTED]
  Sent: Friday, February 10, 2006 3:21 PM
  To: MyFaces Discussion
  Subject: Re: How to extend datatable to accomodate grouping
 
  You might take a look at this feature.  It was added yesterday so 
  you'll have to grab the source from svn and build myfaces yourself 
  (which is easy to do now that we've switched to maven).
 
  http://issues.apache.org/jira/browse/MYFACES-1064?page=all
 
  On 2/10/06, James Reynolds [EMAIL PROTECTED]
wrote:
  
   I have a jsp page I want to convert to jsf.  Currently, it uses 
   scriptlets with for-loops to display a table of contracts grouped 
   by category like this:
  
   Category 1
   Contract_Number, Contract_Description, etc Contract_Number, 
   Contract_Description, etc
  
   Category 2
   Contract_Number, Contract_Description, etc ...
  
   Conversion to a datatable would be simple enough, except I can't 
   imagine how to handle the grouping.  Based on my searches, it 
   appears that nesting datatables is out.  Can anyone recommend an 
   approach to accomplishing this?
  
  
 
 




RE: How to extend datatable to accomodate grouping

2006-02-10 Thread James Reynolds

Wow, that looks promising.  I'm off to figure out Maven.

-Original Message-
From: Mike Kienenberger [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 10, 2006 3:21 PM
To: MyFaces Discussion
Subject: Re: How to extend datatable to accomodate grouping

You might take a look at this feature.  It was added yesterday so you'll
have to grab the source from svn and build myfaces yourself (which is
easy to do now that we've switched to maven).

http://issues.apache.org/jira/browse/MYFACES-1064?page=all

On 2/10/06, James Reynolds [EMAIL PROTECTED] wrote:

 I have a jsp page I want to convert to jsf.  Currently, it uses 
 scriptlets with for-loops to display a table of contracts grouped by 
 category like this:

 Category 1
 Contract_Number, Contract_Description, etc Contract_Number, 
 Contract_Description, etc

 Category 2
 Contract_Number, Contract_Description, etc ...

 Conversion to a datatable would be simple enough, except I can't 
 imagine how to handle the grouping.  Based on my searches, it appears 
 that nesting datatables is out.  Can anyone recommend an approach to 
 accomplishing this?





Trouble with Sorting DataTable

2006-02-02 Thread James Reynolds



Hello all,

I'm attempting to create a sortable dataTable based 
on the simpleCarList example in the source code. The dataTable builds correctly, 
but it just won't sort for me. I've read through the similar posts on the 
mailing list, but I can't see anything significantly different from what I'm 
doing (other than property names). One curious thing is that the sorting 
arrow (of the commandSortHeader) only show up in my first column. I hope 
one of the many accomplished programmers on this list can point out what I'm 
missing. Here's my code so far:

JSP:...h:formx:dataTable 
styleClass="standardTable" 
var="data" 
rowClasses="evenrow, oddrow" 
value="#{RfpList.rfps}" 
sortColumn="#{RfpList.sort}" 
sortAscending="#{RfpList.ascending}" 
preserveDataModel="true" 
preserveSort="true"

f:facet 
name="header"h:outputText 
value="Table 
Header"//f:facet

h:columnf:facet 
name="header"x:commandSortHeader 
columnName="title" 
arrow="true"h:outputText 
value="Title"//x:commandSortHeader/f:faceth:commandLink 
action=""h:outputText 
value="#{data.title}"/f:param 
name="rfpId" 
value="#{data.rfpID}"//h:commandLink/h:column

h:columnf:facet 
name="header"x:commandSortHeader 
columnName="closeDate" 
arrow="true"h:outputText 
value="Close 
Date"//x:commandSortHeader/f:faceth:outputText 
value="#{data.closeDate}"//h:column

/x:dataTable/h:form... 
End JSP

SortableRfpList.java:public class 
SortableRfpList extends SortableList { dbConnectionInfo db 
= new dbConnectionInfo(); private ListRfp 
_rfps; String allRfps = "Select * from " + 
db.getOracleOwner() + ".RFP";

 public SortableRfpList() 
{ 
super("title"); try 
{ 
Connection conn = 
db.getConnection(); 
PreparedStatement ps = 
conn.prepareStatement(allRfps); 
ResultSet rs = 
ps.executeQuery(); 
_rfps = new 
ArrayListRfp(); 
while (rs.next()) 
{ 
_rfps.add(new Rfp(rs.getInt("ID"), rs.getString("title"), 
rs.getDate("end_date"))); 
} } catch (SQLException sqle) 
{ 
System.out.println("Sql exception in constructor: "+ 
sqle.getMessage()); 
sqle.printStackTrace(); } catch 
(Exception 
e){ 
System.out.println("Exception in constructor: " + 
e.getMessage()); 
e.printStackTrace(); 
} }

 public List 
getRfps(){ 
try{ sort(getSort(), 
isAscending()); } catch (Exception 
e){ 
System.out.println("problem in getRfps: " 
+e.getMessage()); 
e.printStackTrace(); 
} return 
_rfps; }

 protected boolean 
isDefaultAscending(String 
sortColumn){ return 
true; }

 protected void sort(final String 
column, final boolean ascending){ 
ComparatorRfp comparator = new 
Comparator(){ 
public int compare(Object o1, Object 
o2){ 
Rfp rfp1 = 
(Rfp)o1; 
Rfp rfp2 = 
(Rfp)o2; 
if (column == null) 
{ 
return 
0; 
} 
if 
(column.equals("title")){ 
return ascending ? 
rfp1.getTitle().compareTo(rfp2.getTitle()): 
rfp2.getTitle().compareTo((rfp1.getTitle())); 
} else if (column.equals("closeDate")) 
{ 
return ascending ? 
rfp1.getCloseDate().compareTo(rfp2.getCloseDate()): 
rfp2.getCloseDate().compareTo((rfp1.getCloseDate())); 
} 
else return 
0; 
} 
}; Collections.sort(_rfps, 
comparator); }}End 
SortableRfpList.java

SortableList.java:public abstract class 
SortableList { private String _sort; 
private boolean _ascending;

 protected SortableList(String 
defaultSortColumn) 
{ _sort = 
defaultSortColumn; _ascending = 
isDefaultAscending(defaultSortColumn); }

 /** 
* Sort the list. */ protected 
abstract void sort(String column, boolean ascending);

 /** 
* Is the default sort direction for the given column "ascending" 
? */ protected abstract 
boolean isDefaultAscending(String sortColumn);

 public void sort(String 
sortColumn) 
{ if (sortColumn == 
null) 
{ throw 
new IllegalArgumentException("Argument sortColumn must not be 
null."); }

 if 
(_sort.equals(sortColumn)) 
{ 
//current sort equals new sortColumn - reverse sort 
order 
_ascending = !_ascending; 
} 
else 
{ //sort 
new column in default 
direction 
_sort = 
sortColumn; 
_ascending = 
isDefaultAscending(_sort); }

 sort(_sort, 
_ascending); }

 public String getSort() 
{ return 
_sort; }

 public void setSort(String sort) 
{ _sort = 
sort; }

 public boolean isAscending() 
{ return 
_ascending; }

 public void setAscending(boolean 
ascending) { 
_ascending = ascending; }}End 
SortableList.java

This is the Exception that is thrown in the getRfps() method of 
SortableRfpList.java

java.lang.NullPointerExceptionat 
java.lang.String.compareTo(String.java:997)at 
npp.admin.SortableRfpList$1.compare(SortableRfpList.java:69)at 
java.util.Arrays.mergeSort(Arrays.java:1284)at 
java.util.Arrays.mergeSort(Arrays.java:1296)at 
java.util.Arrays.sort(Arrays.java:1223)at 
java.util.Collections.sort(Collections.java:159)at 
npp.admin.SortableRfpList.sort(SortableRfpList.java:78)at 
npp.admin.SortableRfpList.getRfps(SortableRfpList.java:48)at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)at 

RE: inputDate

2006-01-25 Thread James Reynolds

Your right!  I'll grab the nightly.  Thanks for your response.

-Original Message-
From: Lefevre, Daniel [mailto:[EMAIL PROTECTED]
Sent: Wed 1/25/2006 2:45 AM
To: MyFaces Discussion
Subject: RE: inputDate
 
I think you use the official release, because your problem seems to be
corrected in the nightly builds

Bye, Dan 

-Original Message-
From: James Reynolds [mailto:[EMAIL PROTECTED] 
Sent: mardi 24 janvier 2006 22:22
To: MyFaces Discussion
Subject: t:inputDate


I'm having trouble with the inputDate component.  Although the bean
value is set to one date, the component displays another (usually
defaulting to today).  It works fine, if I use it to change dates, but I
can't rely on it to correctly display the bean's property value when the
page loads.

I've examined the example code, but the components are wired to
java.util.Date.  Am I missing something, or is this a quirk of the
component?


winmail.dat

Problems Upgrading to Nightly

2006-01-25 Thread James Reynolds



Well, I'm attempting 
to upgrade to the nightly build and I'm getting the following 
error:

SEVERE: Error 
listenerStartJan 25, 2006 12:16:04 PM 
org.apache.catalina.core.StandardContext startSEVERE: Context [/npp] startup 
failed due to previous errors

What I've done so 
far:

  replaced the old 
  tomahawk.jar with tomahawk-1.1.2-SNAPSHOT.jar
  replaced all my 
  commons-xxx.jars with 
  myfaces-commons-1.1.2-SNAPSHOT.jar
That's when the 
error started so I went out on a limb and decided to dump Sun's RI and replace 
it with the nightly myFaces version

  replaced 
  jsf-api.jar and jsf-impl.jar with myfaces-api-1.1.2-SNAPSHOT.jar 
   
  myfaces-impl-1.1.2-SNAPSHOT.jar
I looked around in a 
nightly example web.xml, but I couldn't see anything I thought should be added 
to mine in order to make this work.

Any advice would be 
greatly appreciated.

Thanks!


RE: Problems Upgrading to Nightly

2006-01-25 Thread James Reynolds

I see. Forgive my ignorance on this subject, but I've never gone so far
as to download the code from SVN.  If this is the source of my problem,
would I be better off waiting until tomorrow's build, or is building my
own jars the best method?

Thanks again.

-Original Message-
From: Wei Chiang [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 25, 2006 1:16 PM
To: MyFaces Discussion
Subject: Re: Problems Upgrading to Nightly

I had the same problem before.  I believe it was caused by missing one
of the methods in a utility java file(Don't remember the exact name.)
After I retrieved the files via svn and rebuild the jars, the problem
disappeared. 
(The jar file in concern is myfaces-commons.jar.)

Hope it helps.
 

James Reynolds wrote:
 Well, I'm attempting to upgrade to the nightly build and I'm getting 
 the following error:
  
 SEVERE: Error listenerStart
 Jan 25, 2006 12:16:04 PM org.apache.catalina.core.StandardContext 
 start
 SEVERE: Context [/npp] startup failed due to previous errors
  
 What I've done so far:

 * replaced the old tomahawk.jar with
*t**omahawk-1.1.2-SNAPSHOT.jar*
 * replaced all my commons-xxx.jars with
   *myfaces-commons-1.1.2-SNAPSHOT.jar*

 That's when the error started so I went out on a limb and decided to 
 dump Sun's RI and replace it with the nightly myFaces version

 * replaced jsf-api.jar and jsf-impl.jar with
   *myfaces-api-1.1.2-SNAPSHOT.jar * 
 *myfaces-impl-1.1.2-SNAPSHOT.jar*

 I looked around in a nightly example web.xml, but I couldn't see 
 anything I thought should be added to mine in order to make this work.
  
 Any advice would be greatly appreciated.
  
 Thanks!




t:inputDate

2006-01-24 Thread James Reynolds

I'm having trouble with the inputDate component.  Although the bean
value is set to one date, the component displays another (usually
defaulting to today).  It works fine, if I use it to change dates, but I
can't rely on it to correctly display the bean's property value when the
page loads.

I've examined the example code, but the components are wired to
java.util.Date.  Am I missing something, or is this a quirk of the
component?



RE: how do I prevent nervous users starting actions more than once???

2006-01-24 Thread James Reynolds

I new enough to JSF that I haven't incorporated Phase Listeners into my 
programming but, in the same vein, I was wondering about changing the mouse 
cursor to an hourglass during long processes.

Is it possible to update the page css styles based on Phase events?


-Original Message-
From: Steffen Hankiewicz [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 24, 2006 2:59 PM
To: MyFaces Discussion
Subject: Re: how do I prevent nervous users starting actions more than once???

Hi Hansjörg,

 how can I prevent impatient users of my webapp to perform actions 
 twice by clicking serveral times on the commandbuttons ??

I  am using a servlet filter which works great here. Maybe you want to give it 
a try:

http://www.onjava.com/pub/a/onjava/2004/03/24/loadcontrol.html?page=1

HTH,

Steffen Hankiewicz




RE: jscookmenu usage / backed bean

2006-01-24 Thread James Reynolds



Here's a spot:

http://wiki.apache.org/myfaces/JSCook_Menu

Plus you'll definitely want to download the source files 
for the example wars. I've found many answers to my questionsin 
there!


From: Marco Mistroni 
[mailto:[EMAIL PROTECTED] Sent: Tuesday, January 24, 2006 3:17 
PMTo: MyFaces DiscussionSubject: jscookmenu usage / backed 
bean
hello all,i may have missed completely docs, but in order 
to use jscookmenu in my applicationdo i need a backed bean?how to 
integrate the backed bean with jscookmenu?anyone could provide me 
a starting point? thanks in advance and 
regardsmarco


RE: jscookmenu usage / backed bean

2006-01-24 Thread James Reynolds



The binaries are here: http://myfaces.apache.org/binary.cgi(with 
the wars you can drop in your container)

and the sources are here: http://myfaces.apache.org/source.cgi




From: Marco Mistroni 
[mailto:[EMAIL PROTECTED] Sent: Tuesday, January 24, 2006 3:42 
PMTo: MyFaces DiscussionSubject: Re: jscookmenu usage / 
backed bean
Hello james, thanx for fast reply.. could you pls send me 
the link to souce code of example?thanks and regards Marco
On 1/24/06, James 
Reynolds [EMAIL PROTECTED] 
wrote:

  Here's a 
  spot:
  
  http://wiki.apache.org/myfaces/JSCook_Menu 
  
  
  Plus 
  you'll definitely want to download the source files for the example 
  wars. I've found many answers to my questionsin 
  there!
  
  
  From: Marco Mistroni [mailto:[EMAIL PROTECTED]] 
  Sent: Tuesday, January 24, 2006 3:17 PMTo: MyFaces 
  DiscussionSubject: jscookmenu usage / backed 
  bean
  
  hello all,i may have missed completely docs, but in order 
  to use jscookmenu in my applicationdo i need a backed bean?how to 
  integrate the backed bean with jscookmenu?anyone could provide 
  me a starting point? thanks in advance and 
  regardsmarco


RE: how do I prevent nervous users starting actions more thanonce???

2006-01-24 Thread James Reynolds

Thanks Simon,

It is possible to change the style of a cursor using css
(http://www.quirksmode.org/css/cursor.html).  I bet you're right, the
onload probably will reset the style.  I should have produced a test
case but my thinking was stuck 'on the server side.'

I was surprised to see that the cursor does not change after clicking a
the command button in MSIE.  The status bar indicates that the page is
loading, but not the cursor.

Have a great day!


-Original Message-
From: Simon Kitching [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 24, 2006 3:13 PM
To: MyFaces Discussion
Subject: RE: how do I prevent nervous users starting actions more
thanonce???

On Tue, 2006-01-24 at 15:01 -0700, James Reynolds wrote:
 I new enough to JSF that I haven't incorporated Phase Listeners into 
 my programming but, in the same vein, I was wondering about changing
the mouse cursor to an hourglass during long processes.
 
 Is it possible to update the page css styles based on Phase events?

No, Phase listeners are server-side concepts. The user's browser doesn't
know about them, it just gets served the final generated page.

Is there an option to change the cursor for an HTML page? If so, then
possibly a form's onsubmit script could set that. Presumably as soon as
the page has reloaded the cursor would be reset. But isn't that done
already by most browsers?

Or are you talking about AJAX operations?





t:inputDate Caches Value

2006-01-18 Thread James Reynolds



Has anyone else 
noticed that the t:inputDate will cache a previously displayed value instead of 
pulling the correct value from the property binding? What is the work 
around?

Thanks


inputDate seems to be Caching a value

2006-01-17 Thread James Reynolds



Hello 
all,

I'm 
using the inputdate component in a panelgrid and it appears to be caching the 
first value to which it's assigned. I searched the mail archives and found 
one note from Colin Chambers describing the same issue. He indicated that 
it was due to including the component in a panelgrid, but I couldn't find any 
follow up messages. Has anyone else dealt with this?

Apossible contributing factoris the panelgrid that contains 
the component is not rendered by default. If my user selects a record in a 
separate datatable (to edit the date of the record), the panelgrid is rendered 
with the next page reload and is designed to mimic a "pop up" using css 
positioning and styling.

Thanks 
for your time!


RE: z-order of drop down lists and t:inputCalendar

2006-01-17 Thread James Reynolds

That's correct, the drop down list is rendered in part by the operating
system and not just the browser.  I found this out when implementing a
'pop up' using css.  The month dropdown list was at the top level, much
to my chagrin.  I dealt with it using the calendar's rendered attribute.
In my page, when a pseudo pop up is present, I mimic a 'modal' situation
by setting the base page component's disabled attribute to true.  I used
the same property to control the inputDate's rendered property.

I don't know if your situation is similar, but I hope this is helpful.

-Original Message-
From: Dennis Byrne [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 17, 2006 4:55 PM
To: users@myfaces.apache.org
Subject: z-order of drop down lists and t:inputCalendar

For those of you using t:calendar, you may notice that it hides all drop
down lists on the page whenever the calendar pops up.  I was wondering
if anyone can shed some light on why this happens.  The last time I had
this conversation with a colleague, I remeber him telling me that with
some operating systems, the drop down list control get it's own window
and you simply cannot display another control on top by manipulating the
z order.  Apparently this goes back to the early 90's .  Can't find
anything on Google either.

Dennis Byrne





Strategies for Reports

2005-11-04 Thread James Reynolds



Hello 
all,

I'd like to ask the 
group how you create grouped reports. Before JSF, I was using while 
statements inside of scriplets to create grouped reports that iterated 
repeatedly over ResultSets to create something like this:


  Level 
  1
  
Level 
1_1
Level 
1_2
  Level 
  2
  
Level 
2_1
and so 
on
I'd like to 
accomplish the same thing and I'm wondering if tree tables or other tags can be 
utilized for this purpose. I'd surely appreciate any advice you have on 
the subject.

Thanks


RE: Strategies for Reports

2005-11-04 Thread James Reynolds

Wow.  I just researched Jasper, it's very impressive.  Thanks for the lead!

-Original Message-
From: Julián García [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 04, 2005 2:25 PM
To: MyFaces Discussion
Subject: Re: Strategies for Reports

I use jasper.

James Reynolds wrote:
 Hello all,
  
 I'd like to ask the group how you create grouped reports.  Before JSF, 
 I was using while statements inside of scriplets to create grouped 
 reports that iterated repeatedly over ResultSets to create something like 
 this:
  
 
 * Level 1
 
   *   Level 1_1
   *   Level 1_2
 
 * Level 2
 
   *   Level 2_1
   *   and so on
 
 I'd like to accomplish the same thing and I'm wondering if tree tables 
 or other tags can be utilized for this purpose.  I'd surely appreciate 
 any advice you have on the subject.
  
 Thanks
 




RE: Are the Java Class Sources for the Examples Available?

2005-10-31 Thread James Reynolds
Ah, there it is...  Thanks! 

-Original Message-
From: Martin Marinschek [mailto:[EMAIL PROTECTED] 
Sent: Saturday, October 29, 2005 4:47 AM
To: MyFaces Discussion
Subject: Re: Are the Java Class Sources for the Examples Available?

Of course it is - this is all open source ;)

download a source distribution, or instruct your svn client as described
on:

http://myfaces.apache.org/svn.html

you'll find the examples code under current/examples/simple

regards,

Martin


On 10/28/05, James Reynolds [EMAIL PROTECTED] wrote:

 I'm still wrapping my mind around much of the underlying bean code 
 that deals with DataModels and other JSF issues.  Is the source code 
 for the compiled Java classes of the simple.war example available
somewhere?

 Thanks


--

http://www.irian.at
Your JSF powerhouse -
JSF Trainings in English and German



Are the Java Class Sources for the Examples Available?

2005-10-28 Thread James Reynolds



I'm still wrapping 
my mind around much of the underlying bean code that deals with DataModels and 
other JSF issues. Is the source code for the compiled Java classes of the 
simple.war example available somewhere?

Thanks


RE: x:commandLink and onClick

2005-10-25 Thread James Reynolds

That was my first try.  The confirmation box pops up properly, but the
form does not submit after clicking the 'OK' button.  Has anyone else
had this trouble?  Judging from the archives, it appears that people
have had mixed results with different methods.

-Original Message-
From: Marius Kreis [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 25, 2005 7:32 AM
To: MyFaces Discussion
Subject: Re: x:commandLink and onClick

This sounds like an error in your javascript.
Perhaps you should try
onClick=return confirm('Are you sure...?');

James Reynolds wrote:
 I'm trying to add some confirmation to the onClick event for my 
 commandLink.  The mail archives have good suggestions including:
  
 1. Call a function defined on the page like this: onclick=return 
 validate()
 2. Construct the javascript as such: onclick=if (!confirm('Are you 
 sure you want to delete this record?')) return
  
 In each case, I'm receiving Object Expected errors in Internet 
 Explorer.  What is the best way of handling this task?
  
 Thanks




RE: x:commandLink and onClick

2005-10-25 Thread James Reynolds

Oh! That's a good idea.  However, that presents another problem for my
page.  By way of some background, I'm using a dataTable to build a list
of upcoming conferences.  The final column contains two links inside,
Edit and Delete.  The Edit navigates to a detail page, while the
delete would obviously remove the record and reload the page.  I also
have an Add Conference button outside of the table.  Using the
onSubmit attribute would prompt for confirmation no matter what control
is activated.  Perhaps I should just use commandButtons instead of
commandLinks and avoid the issue altogether.


-Original Message-
From: Marius Kreis [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 25, 2005 8:26 AM
To: MyFaces Discussion
Subject: Re: x:commandLink and onClick

sorry, my mistake.
i think
h:form onSubmit=return confirm('text'); .. should work

James Reynolds wrote:
 That was my first try.  The confirmation box pops up properly, but the

 form does not submit after clicking the 'OK' button.  Has anyone else 
 had this trouble?  Judging from the archives, it appears that people 
 have had mixed results with different methods.
 
 -Original Message-
 From: Marius Kreis [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 25, 2005 7:32 AM
 To: MyFaces Discussion
 Subject: Re: x:commandLink and onClick
 
 This sounds like an error in your javascript.
 Perhaps you should try
 onClick=return confirm('Are you sure...?');
 
 James Reynolds wrote:
 
I'm trying to add some confirmation to the onClick event for my 
commandLink.  The mail archives have good suggestions including:
 
1. Call a function defined on the page like this: onclick=return 
validate()
2. Construct the javascript as such: onclick=if (!confirm('Are you 
sure you want to delete this record?')) return
 
In each case, I'm receiving Object Expected errors in Internet 
Explorer.  What is the best way of handling this task?
 
Thanks
 
 
 
 




x:commandLink and onClick

2005-10-24 Thread James Reynolds



I'm trying to add 
some confirmation to the onClick event for my commandLink. The mail 
archives have good suggestions including:

1. Call a function 
defined on the page like this: 
2. Construct the 
_javascript_ as such: 

In each case, I'm 
receiving "Object Expected" errors in Internet Explorer. What is the best 
way of handling this task?

Thanks


RE: Bewildered by JSCookMenu

2005-10-14 Thread James Reynolds

You're right, saying the app 'quit' does not convey much meaningful
information.  I've had my coffee this morning so I should be a little
better.

To begin, I have a jsf web project that works fine.  However, when I add
the following to my web.xml and redeploy the project, it's as if the
request never makes it to the servlet.  When I type (using your example)
http://localhost/test/index.jsf, or
http://localhost/test/faces/index.jsp or
http://localhost/test/faces/index.jsf, nothing happens on the server
side and no logs are generated.  However, if I type
http://localhost/test/index.jsp, the server throws the following
exception and stack trace.

At this point, I'm starting realize that this problem has less to do
with myFaces and is probably due to my relative inexperience with JSF in
general.

Thanks for your help and suggestions so far!

FINE: Can't leverage base class
javax.servlet.jsp.JspException: Cannot find FacesContext
at
javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:405)
at
com.sun.faces.taglib.jsf_core.ViewTag.doStartTag(ViewTag.java:105)
at
org.apache.jsp.index_jsp._jspx_meth_f_view_0(org.apache.jsp.index_jsp:12
9)
at
org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:105)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:322)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:85
6)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:744)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow
erWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:684)
at java.lang.Thread.run(Thread.java:595) 





-Original Message-
From: Simon Kitching [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 13, 2005 10:19 PM
To: MyFaces Discussion
Subject: Re: Bewildered by JSCookMenu

James Reynolds wrote:
 Thanks Simon,
 
 I had overlooked the Extensions Filter page on the site.  Having read 
 it, I've a much better understanding about what it's doing.
 
 However, when I add the necessary parts to my Web.xml, my app breaks.
 I've watched the FINE logging entries go by in my console when I start

 the app.  It gets as far as starting the server, but then it 
 inexplicably quits and the browser shows a 404 error.  It's as if the 
 Faces Servlet is never called to action.
 
 I wonder if it has something to do with my extensions.  I'm not using 
 any .faces or .jsf extensions.  All of my files are .jsp exertions.
 Should I be using a different server mapping?

Even when your template files are .jsp files, the browser needs to
request them as .jsf pages.

eg you have page foo.jsp in a webapp named test. You point the
browser to http://localhost/test/foo.jsf;. Note the jsf at the end of
the URL.

Without that, the faces servlet never gets run and nothing will work at
all.

I have no idea what you mean by my app quits. If you're using Apache
Tomcat or JBoss or something and the application actually *terminates*
then that is a major major major bug in that servlet engine [extremely
unlikely]. Or you've got a broken java installation or something.

 
 Another thought I had is if the problem is with my jsf libraries.  I'm
 using the jsf-api.jar and the jsf-impl.jar.  Am I required to use the
 myfaces implementations to make it work?

You mean you're using the Sun reference implementation and trying to run

the tomahawk libraries on that? According to the tomahawk page on the 
myfaces website, tomahawk is 100% supported on sun's RI for JSF 1.1. 
Just check you're not running the beta of the Sun JSF 1.2

Bewildered by JSCookMenu

2005-10-13 Thread James Reynolds

I would love to use the JSCookMenu, but I'm apparently too dumb to make
it work.  I started out with these steps:

1. Grabbed the latest nightly build.
2. Set up a menu file with the component using a standard theme.
3. Included the menu file in my page via jsp:include.

The page loads fine, but the menu is not visible.  Viewing the page
source reveals the JavaScript, but the browser throws a cmDraw is not
defined error.

After browsing the archives, I found mentions of the filter and
filter-mapping entries for an Extensions Filter in my web.xml, so I
copied those portions verbatim from the simple.war web app.

When I run the app, I get a page not found error.  The only thing I've
noticed out of the ordinary in the console output is FINE: Found no URL
patterns mapping to FacesServlet

I'm wondering if the filter mapping of: /faces/* is conflicting with my
servlet mapping of the same.

Has anyone beaten their head on this wall before?

Thanks,

JR



RE: Cookmenu Problem

2005-10-13 Thread James Reynolds

Oh! Maybe I'm not an idiot after all and this is the reason I can't get it to 
work.  Although, I have to wonder, why does it work properly in the example 
war?  At any rate, do you happen to know the build number of the last known 
working candidate?

Thanks!

-Original Message-
From: Grigoras Cristinel [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 13, 2005 3:41 PM
To: MyFaces Discussion
Subject: Re: Cookmenu Problem

[EMAIL PROTECTED] wrote:

I have a weird problem, i took the nightly build of the 12 october and 
my jsCookMenu doesn't work anymore (does not appear anymore cannot find 
cmDraw), is there anything I need to change. My previous build was one 
from late September. Do I need to remove some config?? Any help will be 
appreciated :)

Steve Gélinas
  

You better get back to old version.
The last night builds has a lot off bugs.
The jsCook menu is not working because the place of java script resources was 
changed.
 I have two applications in that situation.
Check the location off java script files rendered in your html.

Cristi



RE: Bewildered by JSCookMenu

2005-10-13 Thread James Reynolds
Thanks Simon,

I had overlooked the Extensions Filter page on the site.  Having read
it, I've a much better understanding about what it's doing.

However, when I add the necessary parts to my Web.xml, my app breaks.
I've watched the FINE logging entries go by in my console when I start
the app.  It gets as far as starting the server, but then it
inexplicably quits and the browser shows a 404 error.  It's as if the
Faces Servlet is never called to action.  

I wonder if it has something to do with my extensions.  I'm not using
any .faces or .jsf extensions.  All of my files are .jsp exertions.
Should I be using a different server mapping?

Another thought I had is if the problem is with my jsf libraries.  I'm
using the jsf-api.jar and the jsf-impl.jar.  Am I required to use the
myfaces implementations to make it work?

Thanks for your advice,

JR

-Original Message-
From: Simon Kitching [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 13, 2005 3:12 PM
To: MyFaces Discussion
Subject: Re: Bewildered by JSCookMenu

James Reynolds wrote:
 I would love to use the JSCookMenu, but I'm apparently too dumb to 
 make it work.  I started out with these steps:
 
 1. Grabbed the latest nightly build.
 2. Set up a menu file with the component using a standard theme.
 3. Included the menu file in my page via jsp:include.
 
 The page loads fine, but the menu is not visible.  Viewing the page 
 source reveals the JavaScript, but the browser throws a cmDraw is not

 defined error.
 
 After browsing the archives, I found mentions of the filter and 
 filter-mapping entries for an Extensions Filter in my web.xml, so I 
 copied those portions verbatim from the simple.war web app.
 
 When I run the app, I get a page not found error.  The only thing 
 I've noticed out of the ordinary in the console output is FINE: Found

 no URL patterns mapping to FacesServlet
 
 I'm wondering if the filter mapping of: /faces/* is conflicting with 
 my servlet mapping of the same.

You might find this link useful:
   http://myfaces.apache.org/tomahawk/extensionsFilter.html

What you want is for a request to come into the servlet engine, go
through the Extensions Filter (which sets up a fake response object),
then go to the faces servlet. When the jsp page gets processed the
jscookMenu tag stores some requests to generate script tags into
page-scope fields in the servlet-request. When the faces servlet
finishes the Extensions Filter post-processes the response by inserting
the requested script tags into the response just before the /head tag.

So what you see is exactly what would be expected if you hadn't set up
the servlet or filter mappings correctly.

Note that filters and servlets can happily be mapped to the same URL
patterns (in fact, that's the whole point).

I hope this helps.

Regards,

Simon



RE: Uh oh, upgrading to 1.1 broke my app

2005-10-10 Thread James Reynolds

No, I don't have one by that name.  Oddly enough, if I remove the
myfaces jars, the app launches fine (obviously, I don't have any myfaces
components on the opening page).  Of course, pages that use the myfaces
components don't work.  Do I need to completely replace my sun
components with myFaces components?

Thanks for your help,

JR

-Original Message-
From: Martin Marinschek [mailto:[EMAIL PROTECTED] 
Sent: Sunday, October 09, 2005 6:07 AM
To: MyFaces Discussion
Subject: Re: Uh oh, upgrading to 1.1 broke my app

It looks as if one of your managed beans is missing - namely the one
with the name login do you define such a bean in your
faces-config.xml?

regards,

Martin

On 10/8/05, James Reynolds [EMAIL PROTECTED] wrote:

 I've replaced my 1.0.9 jar with the 1.1 myfaces-all, then I went 
 through getting started list and ensured that I have all the the 
 necessary libraries.

 Now, when I run the app.  It doesn't load and I get this stack trace.
 What have I missed?

 Thanks for your help!

 javax.faces.el.PropertyNotFoundException: Base is null: login
 at
 org.apache.myfaces.el.ValueBindingImpl.resolveToBaseAndProperty(ValueB
 in
 dingImpl.java:457)
 at
 org.apache.myfaces.el.ValueBindingImpl.setValue(ValueBindingImpl.java:
 24
 2)
 at
 org.apache.myfaces.application.ApplicationImpl.createComponent(Applica
 ti
 onImpl.java:433)
 at
 javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:
 10
 09)
 at

javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1036)
 at

javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:749)
 at
 javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:429)
 at
 com.sun.faces.taglib.html_basic.FormTag.doStartTag(FormTag.java:345)
 at
 org.apache.jsp.includes.header_jsp._jspx_meth_h_form_0(org.apache.jsp.
 in
 cludes.header_jsp:214)
 at
 org.apache.jsp.includes.header_jsp._jspService(org.apache.jsp.includes
 .h
 eader_jsp:116)
 at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
 at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.
 ja
 va:322)
 at

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
 at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
 ca
 tionFilterChain.java:252)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
 lt
 erChain.java:173)
 at
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispa
 tc
 her.java:672)
 at
 org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDi
 sp
 atcher.java:574)
 at
 org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDisp
 at
 cher.java:499)
 at
 org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.
 ja
 va:966)
 at
 org.apache.jsp.index_jsp._jspx_meth_f_subview_0(org.apache.jsp.index_j
 sp
 :318)
 at
 org.apache.jsp.index_jsp._jspx_meth_f_view_0(org.apache.jsp.index_jsp:
 14
 1)
 at
 org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:77)
 at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
 at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.
 ja
 va:322)
 at

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
 at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
 ca
 tionFilterChain.java:252)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
 lt
 erChain.java:173)
 at
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispa
 tc
 her.java:672)
 at
 org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicat
 io
 nDispatcher.java:463)
 at
 org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDi
 sp
 atcher.java:398)
 at
 org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDisp
 at
 cher.java:301)
 at
 com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl
 .j
 ava:322)
 at
 com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.j
 av
 a:130)
 at
 org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:3
 00
 )
 at
 javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli

Uh oh, upgrading to 1.1 broke my app

2005-10-07 Thread James Reynolds

I've replaced my 1.0.9 jar with the 1.1 myfaces-all, then I went through
getting started list and ensured that I have all the the necessary
libraries.

Now, when I run the app.  It doesn't load and I get this stack trace.
What have I missed?

Thanks for your help!

javax.faces.el.PropertyNotFoundException: Base is null: login
at
org.apache.myfaces.el.ValueBindingImpl.resolveToBaseAndProperty(ValueBin
dingImpl.java:457)
at
org.apache.myfaces.el.ValueBindingImpl.setValue(ValueBindingImpl.java:24
2)
at
org.apache.myfaces.application.ApplicationImpl.createComponent(Applicati
onImpl.java:433)
at
javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:10
09)
at
javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1036)
at
javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:749)
at
javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:429)
at
com.sun.faces.taglib.html_basic.FormTag.doStartTag(FormTag.java:345)
at
org.apache.jsp.includes.header_jsp._jspx_meth_h_form_0(org.apache.jsp.in
cludes.header_jsp:214)
at
org.apache.jsp.includes.header_jsp._jspService(org.apache.jsp.includes.h
eader_jsp:116)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:322)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:672)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDisp
atcher.java:574)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispat
cher.java:499)
at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.ja
va:966)
at
org.apache.jsp.index_jsp._jspx_meth_f_subview_0(org.apache.jsp.index_jsp
:318)
at
org.apache.jsp.index_jsp._jspx_meth_f_view_0(org.apache.jsp.index_jsp:14
1)
at
org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:77)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:322)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:672)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio
nDispatcher.java:463)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp
atcher.java:398)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat
cher.java:301)
at
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.j
ava:322)
at
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.jav
a:130)
at
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300
)
at
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:85
6)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:744)
at

Navigation Panel Question

2005-09-15 Thread James Reynolds



Hello 
all,

I just noticed a 
problem with my navigation panel. I have a top level "home" link that 
takes the user to the index page. If I use the component to browse to a 
link in a lower directory, then click the home link, the page renders without 
any style information. It's as if the style sheet fails to load. If 
I click it again, everything reverts to normal and life is good again. Has 
anyone else encountered this?

Thanks!


RE: Navigation Panel Question

2005-09-15 Thread James Reynolds

Yeah, that is definitely what's going on.  Thanks a ton!

JR 

-Original Message-
From: Jesse [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 15, 2005 8:28 PM
To: MyFaces Discussion
Subject: Re: Navigation Panel Question

Could be to do with your browser trying to load your link'ed css
resource from a location that is relative to the page's location in your
web-app.  That's why it works at the top level and not at any lower
level.

As a test, trying including a base tag in your htmlhead section in
the lower-level page.

Although it's probably not what you want to do in the long run, you
could try pasting in something like this:

base href=%=request.getScheme() + :// + request.getLocalName() +
: + request.getLocalPort() + request.getContextPath() + /test.htm
%

If it starts working, at least you know the problem :)

-Jess.


James Reynolds wrote:
 Hello all,
  
 I just noticed a problem with my navigation panel.  I have a top level

 home link that takes the user to the index page.  If I use the 
 component to browse to a link in a lower directory, then click the 
 home link, the page renders without any style information.  It's as if

 the style sheet fails to load.  If I click it again, everything 
 reverts to normal and life is good again.  Has anyone else encountered
this?
  
 Thanks!



t:panelNavigation t:JSCookMenu questions

2005-08-22 Thread James Reynolds



Hello 
all,

I'm new to myfaces 
and a greenhorn with jsf. I'm wondering if the panelNavigation and 
JSCookMenu components support dynamic population. For example, I have 
leaned to dynamically populate a selectOneListbox by binding it to a 
SelectItem[] array. Has anyone done this?

On a related note, I 
copied and pasted the navigation.jsp and related code from the myfaces-example 
war and put them in a practice project (to experiment with the 
t:panelNavigation). Everything works great, except that the CSS border 
around the panelNavigation component doesn't render properly in firefox. 
It's completely off the actual component, but it looks fine in ie. I find 
this is odd because there are no such problems when I use firefox to view 
theun-altered myfaces-examples web app. Is there some CSS gotcha 
that I'm missing.

Thanks for your 
advice,

JR