RE: How do I properly use jsp:forward in MyFaces?

2006-05-04 Thread David G. Friedman



Todd,
 
From 
your various posts tonight, you seem to have a number of JSF concepts 
mixed.  Is this your first Faces Webapp? (That is not meant to be an insult 
but a simple question) 
 
If 
your project folder looks like this as you indicated:
 

/transactionbrowser/
- 
WEB-INF
- 
resources
-index.jsp
-tbrowser.jsp
 
Then the various mappings you have posted over the past 
24 hours have often been incorrect.  With this webapp, your main url would 
likely be:
http://127.0.0.1/transactionbrowser and you would 
expect it to invoke the welcome page /index.jsp.  Your example index.jsp was listed 
as:
 


 
THAT is where your first make came from: your mappings.  JSF is 
often taught using SUFFIX mapping so the urls such as /index.jsf are understood to be 
imaginary (no such file exists) allowing the servlet to map /index.jsf to compile the view from the jsp file /index.jsp.  With prefix mapping the url "/index.jsf" would be equivalent to "/faces/index" see? When you switch to PREFIX mapping like 
having mappings start "/faces/whatever", you must 
skip the .jsp extension so your index.jsp file should contain:
 


 
Adding the .jsp suffix while using prefix 
mapping is causing your problem (that plus how your web.xml Servlet and Filter 
mappings are setup). I strongly recommend you to back to the myfaces blank.war and example war files to see how standard *.jsf suffix mapping works and begin your application with 
that style until you are positive you can make a working JSF application.  
It will save you time and effort since searching (the web or this lists's 
archives) on the *.jsf SUFFIX extension will result 
in a much greater number of relevant posts than if you use PREFIX "/faces/*" mapping.
 
Regards,
David Friedman / [EMAIL PROTECTED]

  -Original Message-From: Todd Patrick 
  [mailto:[EMAIL PROTECTED]Sent: Friday, May 05, 2006 1:15 
  AMTo: MyFaces DiscussionSubject: How do I properly use 
  jsp:forward in MyFaces?
  I have a project 
  folder that looks like:
   
  /transactionbrowser/
  - 
  WEB-INF
  - 
  resources
  -index.jsp
  -tbrowser.jsp
   
   
  With the 
  servlet-mapping of:
   
      
  MyFacesExtensionsFilter    
  org.apache.myfaces.webapp.filter.ExtensionsFilter    
      
  maxFileSize    
  20m    
      
  MyFacesExtensionsFilter    
  Faces 
  Servlet    
  MyFacesExtensionsFilter    
  /faces/myFacesExtensionResource/*
   
      
  Faces Servlet    
  javax.faces.webapp.FacesServlet    
  1    
  Faces Servlet    
  /faces/*
   
   
  The only URLs that 
  work are:
   
  http://127.0.0.1:8080/transactionbrowser/faces/tbrowser.jsp
  http://127.0.0.1:8080/transactionbrowser/faces/
   
   
  On my index.jsp I 
  have:
   
  
   
   
  So, when I go 
  to:
   
  http://127.0.0.1:8080/transactionbrowser/
   
  I see the page, 
  but not with the MyFaces rendering, I still plain control GUI components with 
  none of the add MyFaces filter files. How do I use jsp:forward properly to get 
  to:
   
  http://127.0.0.1:8080/transactionbrowser/faces/
   
  or
   
  http://127.0.0.1:8080/transactionbrowser/faces/tbrowser.jsp
   
   
  I can't use the 
  following since that doesn't run the MyFaces 
  servlet:
   
  
   
   
  Thoughts or 
  examples are appreciated.
   
  Thanks,
   
  --Todd
   
   


Re: How can *jsf be used in a servlet-mapping URL?

2006-05-04 Thread Dennis Byrne
>I've seen this example several places, do I need to name my files with a
>*.jsf extension?

No, just name it .jsp and the request will be forwarded to it.

Dennis Byrne

>How would using this url-pattern affect the following filter definition,
>would I change the url-pattern to *.jsf for MyFacesExtensionsFilter as
>well?
> 
>
>MyFacesExtensionsFilter
> 
>org.apache.myfaces.webapp.filter.ExtensionsFilterclass>
>
>maxFileSize
>20m
>
>
>
>MyFacesExtensionsFilter
>Faces Servlet
>
>
>MyFacesExtensionsFilter
> 
>/transactionbrowser/myFacesExtensionResource/*>
>
> 
>Thanks,
> 
>--Todd
>




Re: MyFaces seem to only work with one servlet-mapping set-up only in a web.xml file?

2006-05-04 Thread Dennis Byrne
Do this ...


Faces Servlet
/*


The URL pattern is context relative.  If a servlet could be to a specific 
context then it could intercept requests sent for a different webapp.

Dennis Byrne

>-Original Message-
>From: Todd Patrick [mailto:[EMAIL PROTECTED]
>Sent: Friday, May 5, 2006 12:48 AM
>To: 'MyFaces Discussion'
>Subject: MyFaces seem to only work with one servlet-mapping set-up only in a 
>web.xml file?
>
>I have the following current servlet-mapping that works:
> 
>
>MyFacesExtensionsFilter
> 
>org.apache.myfaces.webapp.filter.ExtensionsFilterclass>
>
>maxFileSize
>20m
>
>
>
>MyFacesExtensionsFilter
>Faces Servlet
>
>
>MyFacesExtensionsFilter
>/faces/myFacesExtensionResource/*
>
> 
>
>Faces Servlet
>javax.faces.webapp.FacesServlet
>1
>
>
>Faces Servlet
>/faces/*
>
>
> 
>The only way I can develop or test my application is with the following
>URL:
> 
>http://127.0.0.1:8080/transactionbrowser/faces/
> 
>I'd like to just have the URL:
> 
>http://127.0.0.1:8080/transactionbrowser/ 
> 
> 
>If I change the servlet-mapping to:
> 
>
>MyFacesExtensionsFilter
> 
>org.apache.myfaces.webapp.filter.ExtensionsFilterclass>
>
>maxFileSize
>20m
>
>
>
>MyFacesExtensionsFilter
>Faces Servlet
>
>
>MyFacesExtensionsFilter
> 
>/transactionbrowser/myFacesExtensionResource/*>
>
> 
>
>Faces Servlet
>javax.faces.webapp.FacesServlet
>1
>
>
>Faces Servlet
>/transactionbrowser/*
>
> 
>I receive the following error message:
> 
>javax.servlet.ServletException: No faces context?!
> 
> 
>What am I not understanding (again...)?
> 
>Thanks,
> 
>--Todd
> 
>Full Error:
>javax.servlet.jsp.JspException: No faces context?!
>   
>org.apache.myfaces.taglib.core.LoadBundleTag.doStartTag(LoadBundleTag.ja
>va:74)
>   
>org.apache.jsp.tbrowser_jsp._jspx_meth_f_loadBundle_0(tbrowser_jsp.java:
>197)
>   org.apache.jsp.tbrowser_jsp._jspService(tbrowser_jsp.java:105)
>   
>org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
>   javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
>   
>org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
>va:336)
>   
>org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
>   
>org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
>   javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
>   sun.reflect.GeneratedMethodAccessor328.invoke(Unknown Source)
>   
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
>Impl.java:25)
>   java.lang.reflect.Method.invoke(Method.java:585)
>   
>org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
>   java.security.AccessController.doPrivileged(Native Method)
>   javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
>   
>org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
>   
>org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.jav
>a:165)
>   java.security.AccessController.doPrivileged(Native Method)
>   java.security.AccessController.doPrivileged(Native Method)
>   
>org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java
>:675)
>   
>org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:6
>42)
>   org.apache.jsp.index_jsp._jspService(index_jsp.java:118)
>   
>org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
>   javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
>   
>org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
>va:336)
>   
>org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
>   
>org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
>   javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
>   sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
>a:39)
>   
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
>Impl.java:25)
>   java.lang.reflect.Method.invoke(Method.java:585)
>   
>org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
>   java.security.AccessController.doPrivileged(Native Method)
>   javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
>   
>org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
>   
>org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.jav
>a:165)
>




How do I properly use jsp:forward in MyFaces?

2006-05-04 Thread Todd Patrick



I have a project 
folder that looks like:
 
/transactionbrowser/
- 
WEB-INF
- 
resources
-index.jsp
-tbrowser.jsp
 
 
With the 
servlet-mapping of:
 
    
MyFacesExtensionsFilter    
org.apache.myfaces.webapp.filter.ExtensionsFilter    
    
maxFileSize    
20m    
    
MyFacesExtensionsFilter    
Faces 
Servlet    
MyFacesExtensionsFilter    
/faces/myFacesExtensionResource/*
 
    
Faces Servlet    
javax.faces.webapp.FacesServlet    
1    
Faces Servlet    
/faces/*
 
 
The only URLs that 
work are:
 
http://127.0.0.1:8080/transactionbrowser/faces/tbrowser.jsp
http://127.0.0.1:8080/transactionbrowser/faces/
 
 
On my index.jsp I 
have:
 

 
 
So, when I go 
to:
 
http://127.0.0.1:8080/transactionbrowser/
 
I see the page, but 
not with the MyFaces rendering, I still plain control GUI components with none 
of the add MyFaces filter files. How do I use jsp:forward properly to get 
to:
 
http://127.0.0.1:8080/transactionbrowser/faces/
 
or
 
http://127.0.0.1:8080/transactionbrowser/faces/tbrowser.jsp
 
 
I can't use the 
following since that doesn't run the MyFaces 
servlet:
 

 
 
Thoughts or examples 
are appreciated.
 
Thanks,
 
--Todd
 
 


How can *jsf be used in a servlet-mapping URL?

2006-05-04 Thread Todd Patrick



Anytime I've tried 
to use *jsf in my url-pattern value:
 
    
Faces Servlet    
javax.faces.webapp.FacesServlet    
1    
Faces Servlet    
*.jsf
 
I've seen this 
example several places, do I need to name my files with a *.jsf 
extension?
 
How would using this 
url-pattern affect the following filter definition, would I change the 
url-pattern to *.jsf for MyFacesExtensionsFilter as well?
 
    
MyFacesExtensionsFilter    
org.apache.myfaces.webapp.filter.ExtensionsFilter    
    
maxFileSize    
20m    
    
MyFacesExtensionsFilter    
Faces 
Servlet    
MyFacesExtensionsFilter    
/transactionbrowser/myFacesExtensionResource/*
 
Thanks,
 
--Todd


MyFaces seem to only work with one servlet-mapping set-up only in a web.xml file?

2006-05-04 Thread Todd Patrick



I have the following 
current servlet-mapping that works:
 
    
MyFacesExtensionsFilter    
org.apache.myfaces.webapp.filter.ExtensionsFilter    
    
maxFileSize    
20m    
    
MyFacesExtensionsFilter    
Faces 
Servlet    
MyFacesExtensionsFilter    
/faces/myFacesExtensionResource/*
 
    
Faces Servlet    
javax.faces.webapp.FacesServlet    
1    
Faces Servlet    
/faces/*
 
The only way I can 
develop or test my application is with the following URL:
 
http://127.0.0.1:8080/transactionbrowser/faces/
 
I'd like to just 
have the URL:
 http://127.0.0.1:8080/transactionbrowser/
 
 
If I change the 
servlet-mapping to:
 
    
MyFacesExtensionsFilter    
org.apache.myfaces.webapp.filter.ExtensionsFilter    
    
maxFileSize    
20m    
    
MyFacesExtensionsFilter    
Faces 
Servlet    
MyFacesExtensionsFilter    
/transactionbrowser/myFacesExtensionResource/*
 
    
Faces Servlet    
javax.faces.webapp.FacesServlet    
1    
Faces Servlet    
/transactionbrowser/*
 
I receive the 
following error message:
 
javax.servlet.ServletException: No faces 
context?!
 
 
What am I not 
understanding (again...)?
 
Thanks,
 
--Todd
 
Full 
Error:
javax.servlet.jsp.JspException: No faces context?!
	org.apache.myfaces.taglib.core.LoadBundleTag.doStartTag(LoadBundleTag.java:74)
	org.apache.jsp.tbrowser_jsp._jspx_meth_f_loadBundle_0(tbrowser_jsp.java:197)
	org.apache.jsp.tbrowser_jsp._jspService(tbrowser_jsp.java:105)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
	sun.reflect.GeneratedMethodAccessor328.invoke(Unknown Source)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:585)
	org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
	java.security.AccessController.doPrivileged(Native Method)
	javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
	org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
	org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
	java.security.AccessController.doPrivileged(Native Method)
	java.security.AccessController.doPrivileged(Native Method)
	org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:675)
	org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:642)
	org.apache.jsp.index_jsp._jspService(index_jsp.java:118)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:585)
	org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
	java.security.AccessController.doPrivileged(Native Method)
	javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
	org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
	org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)


RE: Disabled inputText Value

2006-05-04 Thread Uri Kalish
Thanks dude. I found the problem. It's an HTML form thing - A form submitting 
will not post disabled fields.
Because in the case of error I want to re-display the page exactly as it was 
when the user submitted (I don't want fields changed by the user to jump to 
default values just because he clicked a radio that made them disabled)...
No choice but to use an extra hidden field and update it by java script when 
the regular field changes.
Very low-tech I'm afraid...



From: Le Van [mailto:[EMAIL PROTECTED]
Sent: Fri 05-May-06 04:18
To: MyFaces Discussion
Subject: Re: Disabled inputText Value



Uri Kalish wrote:

> Use case:
>
> A user fills a value in an inputText field, checks a radio button that
> causes the field to become disabled, and submits the form.
>
> After the user submits, the value received is null, no matter what the
> field displays on the UI...
>
> Is there a way to retrieve that value although the field is disabled,
> or must I use an extra hidden field and update it by java script.
>
>
> __
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> __

As I know you can't retrieve value from input field that is disabled. I
try it by using java script



__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__<>

Re: Disabled inputText Value

2006-05-04 Thread Le Van

Uri Kalish wrote:


Use case:

A user fills a value in an inputText field, checks a radio button that 
causes the field to become disabled, and submits the form.


After the user submits, the value received is null, no matter what the 
field displays on the UI…


Is there a way to retrieve that value although the field is disabled, 
or must I use an extra hidden field and update it by java script.



__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
__


As I know you can't retrieve value from input field that is disabled. I 
try it by using java script


RE: I just don't understand why filters doesn't work...

2006-05-04 Thread Todd Patrick



Well, my file extensions are .jsp not 
.jsf.
 
Or have I done something wrong? (Come to think about 
it, I really don't stand that just yet, I need to google 
this.)
 
Thanks,
 
--Todd


From: David G. Friedman 
[mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 5:30 
PMTo: MyFaces DiscussionSubject: RE: I just don't 
understand why filters doesn't work...

Todd,
 
Why 
did you remove these two recommended mappings:
 
    
Faces 
Servlet    
*.jsf

 
And:
 
    
extensionsFilter    
*.jsf
 
Regards,
David

  -Original Message-From: Todd Patrick 
  [mailto:[EMAIL PROTECTED]Sent: Thursday, May 04, 2006 6:19 
  PMTo: MyFaces DiscussionSubject: I just don't understand 
  why filters doesn't work...
  This can't be 
  hard... I've wasted close to *four* hours on this. I've been fortunate that 
  I've had some really great people help me. However, I still can't get 
  past the following error:
   
  javax.servlet.ServletException: ExtensionsFilter not correctly 
  configured. JSF mapping missing. JSF pages not covered.
   
  Set-up:
   
  App Server: Sun 
  Java System Application Server PE 8
  Libraries: 
  myfaces-api-1.1.2.jar, myfaces-impl-1.1.2.jar, tomahawk.jar and 
  tomahawk-1.1.3-SNAPSHOT.jar
   
  Here is my web.xml 
  file:
   
  http://java.sun.com/xml/ns/j2ee" 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
  http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">    
      
  com.sun.faces.verifyObjects    
  true    
      
      
  com.sun.faces.validateXml    
  true    
      
      
  javax.faces.CONFIG_FILES    
  /WEB-INF/faces-config.xml    
      
      
  javax.faces.STATE_SAVING_METHOD    
  client    
      
      
  org.apache.myfaces.CHECK_EXTENSIONS_FILTER    
  true    
      
      
  Faces 
  Servlet    
  javax.faces.webapp.FacesServlet    
  1    
      
      
  Faces 
  Servlet    
  /faces/*    
      
      
  MyFacesExtensionsFilter    
  org.apache.myfaces.webapp.filter.ExtensionsFilter    
      
  maxFileSize    
  20m    
      
      
      
  MyFacesExtensionsFilter    
  Faces Servlet    
      
      
  MyFacesExtensionsFilter    
  /faces/myFacesExtensionResource/*    
      
      
      
  30    
      
      
      
      
  index.jsp    
      
  
   
   
  Entire error 
  message:
  javax.servlet.ServletException: ExtensionsFilter not correctly 
  configured. JSF mapping missing. JSF pages not covered. Please see: 
  http://myfaces.apache.org/tomahawk/extensionsFilter.htmljavax.faces.webapp.FacesServlet.service(FacesServlet.java:152)sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
  Method)sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)java.lang.reflect.Method.invoke(Method.java:585)org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)java.security.AccessController.doPrivileged(Native 
  Method)javax.security.auth.Subject.doAsPrivileged(Subject.java:517)org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)java.security.AccessController.doPrivileged(Native 
  Method)java.security.AccessController.doPrivileged(Native 
  Method)org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:675)org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:642)org.apache.jsp.index_jsp._jspService(index_jsp.java:118)org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)javax.servlet.http.HttpServlet.service(HttpServlet.java:860)org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)javax.servlet.http.HttpServlet.service(HttpServlet.java:860)sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
  Method)sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)java.lang.reflect.Method.invoke(Method.java:585)org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)java.security.AccessController.doPrivileged(Native 
  Method)javax.security.auth.Subject.doAsPrivileged(Subject.java:517)org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
  
  
  root cause 
  java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html
	org.apache.myfaces.renderkit.html.util.AddResourceFactory.throwExtensionsFilterMissi

Re: I just don't understand why filters doesn't work...

2006-05-04 Thread Mike Kienenberger

On 5/4/06, David G. Friedman <[EMAIL PROTECTED]> wrote:



Faces Servlet
javax.faces.webapp.FacesServlet
1


Faces Servlet
/faces/*


MyFacesExtensionsFilter

org.apache.myfaces.webapp.filter.ExtensionsFilter

maxFileSize
20m



MyFacesExtensionsFilter
Faces Servlet


MyFacesExtensionsFilter

/faces/myFacesExtensionResource/*



30




index.jsp






Again note that the filter and filter-mapping sections are in the
wrong location, and thus are being ignored.


Re: I just don't understand why filters doesn't work...

2006-05-04 Thread Dennis Byrne
>App Server: Sun Java System Application Server PE 8
>Libraries: myfaces-api-1.1.2.jar, myfaces-impl-1.1.2.jar, tomahawk.jar
>and tomahawk-1.1.3-SNAPSHOT.jar

Two versions of the same jar ???

Dennis Byrne




Re: 1.1.3 returns the error: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered.

2006-05-04 Thread Mike Kienenberger

Todd, in the example below, you have the elements incorrectly ordered
in your file.

The filter then filter-mapping sections of configuration MUST appear
before the servlet sections!

If you're looking at your log files, I'm sure that your container is
complaining about dtd errors in your web.xml file, since the config
you posted below is not a valid dtd ordering.


On 5/4/06, Todd Patrick <[EMAIL PROTECTED]> wrote:


I downloaded 1.1.3 Nightly build and I am trying to configure my web.xml
file as such:


http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>

com.sun.faces.verifyObjects
true


com.sun.faces.validateXml
true


javax.faces.CONFIG_FILES
/WEB-INF/faces-config.xml


javax.faces.STATE_SAVING_METHOD
client



org.apache.myfaces.CHECK_EXTENSIONS_FILTER
false


Faces Servlet
javax.faces.webapp.FacesServlet
1


Faces Servlet
/transactionbrowser/*



30




index.jsp




MyFacesExtensionsFilter

org.apache.myfaces.webapp.filter.ExtensionsFilter

maxFileSize
20m



MyFacesExtensionsFilter
Faces Servlet


MyFacesExtensionsFilter
/transactionbrowser/*





However, I keep receiving the error message:

java.lang.IllegalStateException: ExtensionsFilter not correctly configured.
JSF mapping missing. JSF pages not covered. Please see:
http://myfaces.apache.org/tomahawk/extensionsFilter.html


I found a similar thread about 1.1.2, however how do I fix this issue in
1.1.3?

I am using Sun Java System Application Server 8.2

Thanks,

--Todd


RE: I just don't understand why filters doesn't work...

2006-05-04 Thread David G. Friedman



Todd,
 
Why 
did you remove these two recommended mappings:
 
    
Faces 
Servlet    
*.jsf

 
And:
 
    
extensionsFilter    
*.jsf
 
Regards,
David

  -Original Message-From: Todd Patrick 
  [mailto:[EMAIL PROTECTED]Sent: Thursday, May 04, 2006 6:19 
  PMTo: MyFaces DiscussionSubject: I just don't understand 
  why filters doesn't work...
  This can't be 
  hard... I've wasted close to *four* hours on this. I've been fortunate that 
  I've had some really great people help me. However, I still can't get 
  past the following error:
   
  javax.servlet.ServletException: ExtensionsFilter not correctly 
  configured. JSF mapping missing. JSF pages not covered.
   
  Set-up:
   
  App Server: Sun 
  Java System Application Server PE 8
  Libraries: 
  myfaces-api-1.1.2.jar, myfaces-impl-1.1.2.jar, tomahawk.jar and 
  tomahawk-1.1.3-SNAPSHOT.jar
   
  Here is my web.xml 
  file:
   
  http://java.sun.com/xml/ns/j2ee" 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
  http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">    
      
  com.sun.faces.verifyObjects    
  true    
      
      
  com.sun.faces.validateXml    
  true    
      
      
  javax.faces.CONFIG_FILES    
  /WEB-INF/faces-config.xml    
      
      
  javax.faces.STATE_SAVING_METHOD    
  client    
      
      
  org.apache.myfaces.CHECK_EXTENSIONS_FILTER    
  true    
      
      
  Faces 
  Servlet    
  javax.faces.webapp.FacesServlet    
  1    
      
      
  Faces 
  Servlet    
  /faces/*    
      
      
  MyFacesExtensionsFilter    
  org.apache.myfaces.webapp.filter.ExtensionsFilter    
      
  maxFileSize    
  20m    
      
      
      
  MyFacesExtensionsFilter    
  Faces Servlet    
      
      
  MyFacesExtensionsFilter    
  /faces/myFacesExtensionResource/*    
      
      
      
  30    
      
      
      
      
  index.jsp    
      
  
   
   
  Entire error 
  message:
  javax.servlet.ServletException: ExtensionsFilter not correctly 
  configured. JSF mapping missing. JSF pages not covered. Please see: 
  http://myfaces.apache.org/tomahawk/extensionsFilter.htmljavax.faces.webapp.FacesServlet.service(FacesServlet.java:152)sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
  Method)sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)java.lang.reflect.Method.invoke(Method.java:585)org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)java.security.AccessController.doPrivileged(Native 
  Method)javax.security.auth.Subject.doAsPrivileged(Subject.java:517)org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)java.security.AccessController.doPrivileged(Native 
  Method)java.security.AccessController.doPrivileged(Native 
  Method)org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:675)org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:642)org.apache.jsp.index_jsp._jspService(index_jsp.java:118)org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)javax.servlet.http.HttpServlet.service(HttpServlet.java:860)org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)javax.servlet.http.HttpServlet.service(HttpServlet.java:860)sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
  Method)sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)java.lang.reflect.Method.invoke(Method.java:585)org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)java.security.AccessController.doPrivileged(Native 
  Method)javax.security.auth.Subject.doAsPrivileged(Subject.java:517)org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
  
  
  root cause 
  java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html
	org.apache.myfaces.renderkit.html.util.AddResourceFactory.throwExtensionsFilterMissing(AddResourceFactory.java:371)
	org.apache.myfaces.renderkit.html.util.AddResourceFactory.checkEnvironment(AddResourceFactory.java:333)
	org.apache.myfaces.renderkit.html.util.AddResourceFactory.getInstance(AddResourceFactory.java:288)
	org.apache.myfaces.custom.tabbedpane.HtmlTabbedPaneRenderer.encodeEnd(HtmlTabbedPaneRenderer.java:87)
	javax.faces.component.U

I just don't understand why filters doesn't work...

2006-05-04 Thread Todd Patrick



This can't be 
hard... I've wasted close to *four* hours on this. I've been fortunate that I've 
had some really great people help me. However, I still can't get past 
the following error:
 
javax.servlet.ServletException: ExtensionsFilter not correctly 
configured. JSF mapping missing. JSF pages not covered.
 
Set-up:
 
App Server: Sun Java 
System Application Server PE 8
Libraries: 
myfaces-api-1.1.2.jar, myfaces-impl-1.1.2.jar, tomahawk.jar and 
tomahawk-1.1.3-SNAPSHOT.jar
 
Here is my web.xml 
file:
 
http://java.sun.com/xml/ns/j2ee" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">    
    
com.sun.faces.verifyObjects    
true    
    
    
com.sun.faces.validateXml    
true    
    
    
javax.faces.CONFIG_FILES    
/WEB-INF/faces-config.xml    
    
    
javax.faces.STATE_SAVING_METHOD    
client    
    
    
org.apache.myfaces.CHECK_EXTENSIONS_FILTER    
true    
    
    
Faces 
Servlet    
javax.faces.webapp.FacesServlet    
1    
    
    
Faces 
Servlet    
/faces/*    
    
    
MyFacesExtensionsFilter    
org.apache.myfaces.webapp.filter.ExtensionsFilter    
    
maxFileSize    
20m    
        
    
MyFacesExtensionsFilter    
Faces Servlet    
    
    
MyFacesExtensionsFilter    
/faces/myFacesExtensionResource/*    
    
    
    
30    
    
    
    
    
index.jsp    
    

 
 
Entire error 
message:
javax.servlet.ServletException: ExtensionsFilter not correctly 
configured. JSF mapping missing. JSF pages not covered. Please see: 
http://myfaces.apache.org/tomahawk/extensionsFilter.html	javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)	sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	java.lang.reflect.Method.invoke(Method.java:585)	org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)	java.security.AccessController.doPrivileged(Native 
Method)	javax.security.auth.Subject.doAsPrivileged(Subject.java:517)	org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)	org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)	java.security.AccessController.doPrivileged(Native 
Method)	java.security.AccessController.doPrivileged(Native 
Method)	org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:675)	org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:642)	org.apache.jsp.index_jsp._jspService(index_jsp.java:118)	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)	javax.servlet.http.HttpServlet.service(HttpServlet.java:860)	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)	javax.servlet.http.HttpServlet.service(HttpServlet.java:860)	sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	java.lang.reflect.Method.invoke(Method.java:585)	org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)	java.security.AccessController.doPrivileged(Native 
Method)	javax.security.auth.Subject.doAsPrivileged(Subject.java:517)	org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)	org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)


root cause 
java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html
	org.apache.myfaces.renderkit.html.util.AddResourceFactory.throwExtensionsFilterMissing(AddResourceFactory.java:371)
	org.apache.myfaces.renderkit.html.util.AddResourceFactory.checkEnvironment(AddResourceFactory.java:333)
	org.apache.myfaces.renderkit.html.util.AddResourceFactory.getInstance(AddResourceFactory.java:288)
	org.apache.myfaces.custom.tabbedpane.HtmlTabbedPaneRenderer.encodeEnd(HtmlTabbedPaneRenderer.java:87)
	javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536)
	javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:495)
	javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:363)
	org.apache.myfaces.shared_tomahawk.taglib.UIComponentBodyTagBase.doEndTag(UIComponentBodyTagBase.java:54)
	org.apache.jsp.tbrowser_jsp._jspx_meth_t_panelTabbedPane_0(tbrowser_jsp.java:377)
	org.apache.jsp.tbrowser_jsp._jspx_meth_h_form_0(tbrowser_jsp.java:326)
	org.apache.jsp.tbrowser_jsp._jspx_meth_f_view_0(tbrowser_jsp.java:239)

RE: t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated?

2006-05-04 Thread Todd Patrick
Mike: Would you please provide a copy of your web.xml file?

I've wasted three hours on this... so, any examples are appreciated.

Thanks,

--Todd 

-Original Message-
From: Mike Kienenberger [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 04, 2006 4:34 PM
To: MyFaces Discussion
Subject: Re: t:panelTabbedPane: Is the serverSideTabSwitch attribute
depreciated?

On 5/4/06, Todd Patrick <[EMAIL PROTECTED]> wrote:
> I am now using 1.1.3 Nightly Build - but now that is causing issues 
> with defining my filters in my web.xml file.

Actually, that's an indication that they were never working in the first
place rather than a new problem.  I've been using the same
web.xml file settings for several months now.   The difference is that
1.1.3 now verifies that things are set up correctly.


RE: t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated?

2006-05-04 Thread Julian Ray
You have probably checked already but I was having filter and load problems
unitl I realized that I had left the old myfacesall.jar in the lib directory
and it was getting picked up instead of the new jars and causing all kinds
of problems.

-Original Message-
From: Todd Patrick [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 04, 2006 5:30 PM
To: MyFaces Discussion
Subject: RE: t:panelTabbedPane: Is the serverSideTabSwitch attribute
depreciated?

I am now using 1.1.3 Nightly Build - but now that is causing issues with
defining my filters in my web.xml file.

Thanks,

--Todd 

-Original Message-
From: Julian Ray [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 04, 2006 4:18 PM
To: 'MyFaces Discussion'
Subject: RE: t:panelTabbedPane: Is the serverSideTabSwitch attribute
depreciated?

I think I had the same problem a while back until I switched to the latest
tomahawk build. This attribute appears to have been added in a later
version. Which version of Tomahawk are you using?

-Original Message-
From: Todd Patrick [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 04, 2006 1:37 PM
To: MyFaces Discussion; [EMAIL PROTECTED]
Subject: RE: t:panelTabbedPane: Is the serverSideTabSwitch attribute
depreciated?

I keep receiving the following error message:

compile-jsps:
org.apache.jasper.JasperException:  Attribute serverSideTabSwitch invalid
for tag panelTabbedPane according to TLD
C:/javaworkspace/petroadmin/transactionbrowser/build/web/tbrowser.jsp(87
,16)
C:\javaworkspace\petroadmin\transactionbrowser\nbproject\build-impl.xml:
328: Java returned: 1
BUILD FAILED (total time: 4 seconds)

Thanks,

--Todd

-Original Message-
From: Mike Kienenberger [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 04, 2006 12:00 PM
To: MyFaces Discussion
Subject: Re: t:panelTabbedPane: Is the serverSideTabSwitch attribute
depreciated?

On 5/4/06, Todd Patrick <[EMAIL PROTECTED]> wrote:
> t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated?

No, it's not.  Do you have reason to believe otherwise?



Re: t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated?

2006-05-04 Thread Mike Kienenberger

On 5/4/06, Todd Patrick <[EMAIL PROTECTED]> wrote:

I am now using 1.1.3 Nightly Build - but now that is causing issues with
defining my filters in my web.xml file.


Actually, that's an indication that they were never working in the
first place rather than a new problem.  I've been using the same
web.xml file settings for several months now.   The difference is that
1.1.3 now verifies that things are set up correctly.


RE: t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated?

2006-05-04 Thread Todd Patrick
I am now using 1.1.3 Nightly Build - but now that is causing issues with
defining my filters in my web.xml file.

Thanks,

--Todd 

-Original Message-
From: Julian Ray [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 04, 2006 4:18 PM
To: 'MyFaces Discussion'
Subject: RE: t:panelTabbedPane: Is the serverSideTabSwitch attribute
depreciated?

I think I had the same problem a while back until I switched to the
latest tomahawk build. This attribute appears to have been added in a
later version. Which version of Tomahawk are you using?

-Original Message-
From: Todd Patrick [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 04, 2006 1:37 PM
To: MyFaces Discussion; [EMAIL PROTECTED]
Subject: RE: t:panelTabbedPane: Is the serverSideTabSwitch attribute
depreciated?

I keep receiving the following error message:

compile-jsps:
org.apache.jasper.JasperException:  Attribute serverSideTabSwitch
invalid for tag panelTabbedPane according to TLD
C:/javaworkspace/petroadmin/transactionbrowser/build/web/tbrowser.jsp(87
,16)
C:\javaworkspace\petroadmin\transactionbrowser\nbproject\build-impl.xml:
328: Java returned: 1
BUILD FAILED (total time: 4 seconds)

Thanks,

--Todd

-Original Message-
From: Mike Kienenberger [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 04, 2006 12:00 PM
To: MyFaces Discussion
Subject: Re: t:panelTabbedPane: Is the serverSideTabSwitch attribute
depreciated?

On 5/4/06, Todd Patrick <[EMAIL PROTECTED]> wrote:
> t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated?

No, it's not.  Do you have reason to believe otherwise?



RE: Sandbox/Tomahawk Component Request

2006-05-04 Thread Julian Ray
Ok some I'm deep into the sandbox adding a couple of controls but have
question

One of the tags is based on a simple div but calls out to some external JS.
The tag implementation is based on tomahawk's div tag (HtmlTag) but I get
errors thrown from myfaces stating that it can't find the tag renderer. The
code is in the jar (I checked), the tag family and type are set as per the
div and fieldset controls, the sandbox faces config has been updated
(control and renderer sections) -- no spelling errors!!, the tld works
(tested and verified) but I must be missing some crucial step. Any clues?

Thanks

-Original Message-
From: Mike Kienenberger [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 04, 2006 12:15 PM
To: MyFaces Discussion
Subject: Re: Sandbox/Tomahawk Component Request

On 5/4/06, Julian Ray <[EMAIL PROTECTED]> wrote:
> I'm not sure if this is the place for suggesting components to add to 
> the sandbox but anyway
>
> How about adding a spinner control which can take Integers and/or 
> decimals with configurable step sizes and which would 
> increment/decrement on either the server or the client. We currently 
> use one cobbled together from the Myfaces book and it works great but 
> it would be nice to have one which is integrated and standardized into 
> the MyFaces framework. :)

Can you open a JIRA issue, and attach your component to it?
You'll want to "convert" it to MyFaces sandbox packaging, provide some
documentation, and an example, but that's the best way to get it into the
Tomahawk framework.

Take a look at these two pages:

http://wiki.apache.org/myfaces/Contributing_Patches
http://wiki.apache.org/myfaces/promotion



RE: t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated?

2006-05-04 Thread Julian Ray
I think I had the same problem a while back until I switched to the latest
tomahawk build. This attribute appears to have been added in a later
version. Which version of Tomahawk are you using?

-Original Message-
From: Todd Patrick [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 04, 2006 1:37 PM
To: MyFaces Discussion; [EMAIL PROTECTED]
Subject: RE: t:panelTabbedPane: Is the serverSideTabSwitch attribute
depreciated?

I keep receiving the following error message:

compile-jsps:
org.apache.jasper.JasperException:  Attribute serverSideTabSwitch invalid
for tag panelTabbedPane according to TLD
C:/javaworkspace/petroadmin/transactionbrowser/build/web/tbrowser.jsp(87
,16)
C:\javaworkspace\petroadmin\transactionbrowser\nbproject\build-impl.xml:
328: Java returned: 1
BUILD FAILED (total time: 4 seconds)

Thanks,

--Todd

-Original Message-
From: Mike Kienenberger [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 04, 2006 12:00 PM
To: MyFaces Discussion
Subject: Re: t:panelTabbedPane: Is the serverSideTabSwitch attribute
depreciated?

On 5/4/06, Todd Patrick <[EMAIL PROTECTED]> wrote:
> t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated?

No, it's not.  Do you have reason to believe otherwise?



Re: 1.1.3 returns the error: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered.

2006-05-04 Thread Mike Kienenberger

On 5/4/06, Todd Patrick <[EMAIL PROTECTED]> wrote:

Would you provide an example of how you set-up your web.xml file?


One other thing you might check is to be sure you've got things in the
correct order in your web.xml file.filters, filter-mappings,
listeners, servlets, servlet-mappings.

   
   org.apache.myfaces.CHECK_EXTENSIONS_FILTER
   true
   

[...]

  
MyFacesExtensionsFilter

org.apache.myfaces.webapp.filter.ExtensionsFilter

  uploadMaxFileSize
  100m
  Set the size limit for uploaded files.
  Format: 10 - 10 bytes
  10k - 10 KB
  10m - 10 MB
  1g - 1 GB
  
  
  
  uploadThresholdSize
  100k
  Set the threshold size - files
  below this limit are stored in memory, files above
  this limit are stored on disk.

  Format: 10 - 10 bytes
  10k - 10 KB
  10m - 10 MB
  1g - 1 GB
  
  
  

[...]

   
   
 MyFacesExtensionsFilter
 /faces/myFacesExtensionResource/*
   

[...]

   
   
 MyFacesExtensionsFilter
 
 FacesServlet
   

[...]

   
   
org.apache.myfaces.webapp.StartupServletContextListener
   

[...]

   
   FacesServlet
   javax.faces.webapp.FacesServlet
   1
   

   
   FacesServlet
   /faces/*
   


RE: 1.1.3 returns the error: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered.

2006-05-04 Thread Todd Patrick
Thank you, I looked at that as well...

Would you provide an example of how you set-up your web.xml file?

Thanks,

--Todd 

-Original Message-
From: Mario Ivankovits [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 04, 2006 3:47 PM
To: MyFaces Discussion
Subject: Re: 1.1.3 returns the error: java.lang.IllegalStateException:
ExtensionsFilter not correctly configured. JSF mapping missing. JSF
pages not covered.

Hi Todd!
> 
>
> org.apache.myfaces.CHECK_EXTENSIONS_FILTER
> false
> 

Given that you already told the system to disable this filter check I
bet that the web.xml you edit is not the used by tomcat. Just a wild
guess, dont get it personal :-) - its something happend here now and
then when the deployment didnt do what I expected it to do.
Do you use somethink like a "exploded" tomcat directory, or a
eclipse/idea whatever automatic deployment?
If so, please look at the exploded web.xml.

Ciao,
Mario



Re: 1.1.3 returns the error: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered.

2006-05-04 Thread Mario Ivankovits
Hi Todd!
> 
>
> org.apache.myfaces.CHECK_EXTENSIONS_FILTER
> false
> 

Given that you already told the system to disable this filter check I
bet that the web.xml you edit is not the used by tomcat. Just a wild
guess, dont get it personal :-) - its something happend here now and
then when the deployment didnt do what I expected it to do.
Do you use somethink like a "exploded" tomcat directory, or a
eclipse/idea whatever automatic deployment?
If so, please look at the exploded web.xml.

Ciao,
Mario



Re: 1.1.3 returns the error: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered.

2006-05-04 Thread Mario Ivankovits
Hi Todd!
> Is it a problem that my Faces servlet mapping is:
>   
Regardless of what your servlet mapping will be, the extensions filter
(and the url-pattern) has to be as stated by the documentation or by
mike. So NOT using your /transactionbrowser/* but /faces/

If this failes, the best will be to install the myfaces sources and put
a breakpoint at the exception source to see what happens.
It isnt that complicated :-)

Ciao,
Mario



RE: 1.1.3 returns the error: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered.

2006-05-04 Thread Todd Patrick
This is so frustrating... I really appreciate your help.

These changes still are unsuccessful, I've tried each suggestion and
Googled on the topic as well with no success.

My web.xml file is now:


http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>

com.sun.faces.verifyObjects
true


com.sun.faces.validateXml
true


javax.faces.CONFIG_FILES
/WEB-INF/faces-config.xml


javax.faces.STATE_SAVING_METHOD
client


Faces Servlet
javax.faces.webapp.FacesServlet
1


Faces Servlet
/transactionbrowser/*



30




index.jsp




MyFacesExtensionsFilter
 
org.apache.myfaces.webapp.filter.ExtensionsFilter

maxFileSize
20m



MyFacesExtensionsFilter
/faces/myFacesExtensionResource/*


MyFacesExtensionsFilter
Faces Servlet




Thanks,

--Todd 

-Original Message-
From: Mike Kienenberger [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 04, 2006 3:27 PM
To: MyFaces Discussion
Subject: Re: 1.1.3 returns the error: java.lang.IllegalStateException:
ExtensionsFilter not correctly configured. JSF mapping missing. JSF
pages not covered.

On 5/4/06, Todd Patrick <[EMAIL PROTECTED]> wrote:
> Is it a problem that my Faces servlet mapping is:
> /transactionbrowser/*
[vs]
> *.jsf


No, the beauty of using a servlet-name filter mapping is that it
doesn't matter how you specify your servlet mapping.   And changes to
your servlet mapping are automatically picked up by the filter mapping.

> MyFacesExtensionsFilter
> javax.faces.webapp.FacesServlet entry -->
> Faces Servlet 


Re: 1.1.3 returns the error: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered.

2006-05-04 Thread Mike Kienenberger

On 5/4/06, Todd Patrick <[EMAIL PROTECTED]> wrote:

Is it a problem that my Faces servlet mapping is:
/transactionbrowser/*

[vs]

*.jsf



No, the beauty of using a servlet-name filter mapping is that it
doesn't matter how you specify your servlet mapping.   And changes to
your servlet mapping are automatically picked up by the filter
mapping.


MyFacesExtensionsFilter
javax.faces.webapp.FacesServlet entry -->
Faces Servlet 


Javascript not generated on initial JSF pages

2006-05-04 Thread Romanowski, Tim
Title: Javascript not generated on initial JSF pages






Whenever I deploy my web app, the first page I load with JSF components does not generate code for any of the JSF components.  In other words, on my initial "index" page, I have a commandButton and some regular html links (

Why doesn't my initial JSF page load JSF components?  I've seen a similar problem on this list and in forums that is always due to people not loading the pages with ".faces" instead of ".jsp".  I am, however using ".faces", and further proof that JSF is otherwise working is that all other JSF pages after the initial one _do_ in fact load correctly.  

I'm running tomcat 5.5.15.  Had this problem on an earlier version of tomcat as well.


Has anyone else had this problem, or have a suggestion as to what the problem might be?



TR, not Turkey






RE: 1.1.3 returns the error: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered.

2006-05-04 Thread Todd Patrick
Is it a problem that my Faces servlet mapping is:


Faces Servlet
javax.faces.webapp.FacesServlet
1


Faces Servlet
/transactionbrowser/*


Should it be?:

   
Faces Servlet
*.jsf


I need to read up on servlet-mappings.

Thanks,

--Todd

-Original Message-
From: Mike Kienenberger [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 04, 2006 3:15 PM
To: MyFaces Discussion
Subject: Re: 1.1.3 returns the error: java.lang.IllegalStateException:
ExtensionsFilter not correctly configured. JSF mapping missing. JSF
pages not covered.

You're making it harder than it has to be :)

There are two required mappings.

One has to be absolute and has to look exactly like this.  It should
probably be your first filter-mapping for performance reasons.   (I
had assumed you'd copied it verbatim, but I see that's now not the
case).

 
MyFacesExtensionsFilter
/faces/myFacesExtensionResource/*


The second mapping must match your Faces servlet mapping.

The easiest way to do that is to use:

 
MyFacesExtensionsFilter

Faces Servlet 


Your best bet is to literally copy these settings from the web page
and add them to your web.xml file exactly as they appear.   As long as
your servlet name and facelets name are the same elsewhere (which they
appear to be), that's all that's required.


Re: 1.1.3 returns the error: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered.

2006-05-04 Thread Mike Kienenberger

You're making it harder than it has to be :)

There are two required mappings.

One has to be absolute and has to look exactly like this.  It should
probably be your first filter-mapping for performance reasons.   (I
had assumed you'd copied it verbatim, but I see that's now not the
case).



   MyFacesExtensionsFilter
   /faces/myFacesExtensionResource/*


The second mapping must match your Faces servlet mapping.

The easiest way to do that is to use:



   MyFacesExtensionsFilter
   
   Faces Servlet



Your best bet is to literally copy these settings from the web page
and add them to your web.xml file exactly as they appear.   As long as
your servlet name and facelets name are the same elsewhere (which they
appear to be), that's all that's required.


RE: 1.1.3 returns the error: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered.

2006-05-04 Thread Todd Patrick
Thank you, I tired that as well.

Is there a bug in the 1.1.3 nightly build?

Thanks,

--Todd

-Original Message-
From: Mario Ivankovits [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 04, 2006 3:09 PM
To: MyFaces Discussion
Subject: Re: 1.1.3 returns the error: java.lang.IllegalStateException:
ExtensionsFilter not correctly configured. JSF mapping missing. JSF
pages not covered.

Todd Patrick schrieb:
>  
> /transactionbrowser/myFacesExtensionResource/* rn
>   
No, its

/faces/myFacesExtensionResource/*

as stated in the documentation. The url-pattern will always be relative
to the context.

Ciao,
Mario




Re: 1.1.3 returns the error: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered.

2006-05-04 Thread Mario Ivankovits
Todd Patrick schrieb:
>  
> /transactionbrowser/myFacesExtensionResource/*   
No, its

/faces/myFacesExtensionResource/*

as stated in the documentation. The url-pattern will always be relative to the 
context.

Ciao,
Mario




RE: 1.1.3 returns the error: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered.

2006-05-04 Thread Todd Patrick
"Thank you for the suggestion!"

This didn't work either... The error keeps saying:

java.lang.IllegalStateException: ExtensionsFilter not correctly
configured. JSF mapping missing. JSF pages not covered. Please see:
http://myfaces.apache.org/tomahawk/extensionsFilter.html

I even tried to add:
 

MyFacesExtensionsFilter
  *.jsf


That's didn't work either.


http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>

com.sun.faces.verifyObjects
true


com.sun.faces.validateXml
true


javax.faces.CONFIG_FILES
/WEB-INF/faces-config.xml


javax.faces.STATE_SAVING_METHOD
client


Faces Servlet
javax.faces.webapp.FacesServlet
1


Faces Servlet
/transactionbrowser/*



30




index.jsp




MyFacesExtensionsFilter
 
org.apache.myfaces.webapp.filter.ExtensionsFilter

maxFileSize
20m



MyFacesExtensionsFilter
Faces Servlet


MyFacesExtensionsFilter
/myFacesExtensionResource/*




Thanks,

--Todd

-Original Message-
From: Mike Kienenberger [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 04, 2006 2:57 PM
To: MyFaces Discussion
Subject: Re: 1.1.3 returns the error: java.lang.IllegalStateException:
ExtensionsFilter not correctly configured. JSF mapping missing. JSF
pages not covered.

On 5/4/06, Todd Patrick <[EMAIL PROTECTED]> wrote:
> /transactionbrowser/myFacesExtensionResource/* rn

No, it's

/myFacesExtensionResource/*

Re: 1.1.3 returns the error: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered.

2006-05-04 Thread Mike Kienenberger

On 5/4/06, Todd Patrick <[EMAIL PROTECTED]> wrote:

/transactionbrowser/myFacesExtensionResource/*

No, it's

/myFacesExtensionResource/*

RE: 1.1.3 returns the error: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered.

2006-05-04 Thread Todd Patrick
*sigh* I'm lost on this...

I went to:

http://myfaces.apache.org/tomahawk/extensionsFilter.html

I removed the elements as suggested and added:


MyFacesExtensionsFilter
 
/transactionbrowser/myFacesExtensionResource/*

 
And I still return the same error.

My updated web.xml file is:


http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>

com.sun.faces.verifyObjects
true


com.sun.faces.validateXml
true


javax.faces.CONFIG_FILES
/WEB-INF/faces-config.xml


javax.faces.STATE_SAVING_METHOD
client


Faces Servlet
javax.faces.webapp.FacesServlet
1


Faces Servlet
/transactionbrowser/*



30




index.jsp




MyFacesExtensionsFilter
 
org.apache.myfaces.webapp.filter.ExtensionsFilter

maxFileSize
20m



MyFacesExtensionsFilter
Faces Servlet


MyFacesExtensionsFilter
 
/transactionbrowser/myFacesExtensionResource/*



Thanks for looking at this!

--Todd

-Original Message-
From: Mike Kienenberger [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 04, 2006 2:43 PM
To: MyFaces Discussion
Subject: Re: 1.1.3 returns the error: java.lang.IllegalStateException:
ExtensionsFilter not correctly configured. JSF mapping missing. JSF
pages not covered.

On 5/4/06, Todd Patrick <[EMAIL PROTECTED]> wrote:
>
> I downloaded 1.1.3 Nightly build and I am trying to configure my 
> web.xml file as such:
>
>   xmlns="http://java.sun.com/xml/ns/j2ee";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
> 
> com.sun.faces.verifyObjects
> true
> 
> 
> com.sun.faces.validateXml
> true
> 
> 
> javax.faces.CONFIG_FILES
> /WEB-INF/faces-config.xml
> 
> 
> javax.faces.STATE_SAVING_METHOD
> client
> 
> 
>
> org.apache.myfaces.CHECK_EXTENSIONS_FILTER
> false
> 
> 
> Faces Servlet
> javax.faces.webapp.FacesServlet
> 1
> 
> 
> Faces Servlet
> /transactionbrowser/*
> 
> 
> 
> 30
> 
> 
> 
> 
> index.jsp
> 
> 
> 
> 
> MyFacesExtensionsFilter
>
>
org.apache.myfaces.webapp.filter.ExtensionsFilter
> 
> maxFileSize
> 20m
> 
> 
> 
> MyFacesExtensionsFilter
> Faces Servlet
> 
> 
> MyFacesExtensionsFilter
> /transactionbrowser/*
> 
> 
>
>
>
> However, I keep receiving the error message:
>
> java.lang.IllegalStateException: ExtensionsFilter not correctly
configured.
> JSF mapping missing. JSF pages not covered. Please see:
> http://myfaces.apache.org/tomahawk/extensionsFilter.html
>
>
> I found a similar thread about 1.1.2, however how do I fix this issue 
> in 1.1.3?

Follow the link given :)

Basically, you've double-configured the part that modifies your JSF
pages, but haven't configured the part that serves independent
resources.

Delete this one:

> 
> MyFacesExtensionsFilter
> /transactionbrowser/*
> 

And add in the one on the web page.


Re: Column Ids not unique in JSF RI implementation with

2006-05-04 Thread eroman

Thank you.  We now can display the contents of the first column correctly
(but not the second).  When we view the source for the page, the id is
correct for the first and second columns.  However, the second column
contents does not reflect what it should - the second column's contents is
the same as for the first column.

Thank you.
ERoman



Matthias Wessendorf-4 wrote:
> 
> There has been a bug inside RI see [1] [2]
> 
> [1] http://issues.apache.org/jira/browse/MYFACES-1010
> [2] https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=230
> 
> On 5/4/06, eroman <[EMAIL PROTECTED]> wrote:
>>
>> All,
>>
>> We have the following scenario :
>>
>> A form with
>>   
>>  
>>
>>   
>>
>>  
>>   
>>
>> someSubForm.jsp :
>> 
>>   
>> 
>>   
>> >binding=".."
>>immediate="true"
>>validate="someValidator"
>>>   value=".."/>
>> 
>>   
>> 
>>
>> The clientIds are not unique for each column for the selectOneMenu
>> contents:
>> id="body:formAndViewForm:formId:dataTableId:tColumnsId:subViewId:selectOneMenuId"
>>
>> We have added libraries from Tomahawk.  However, HtmlDataTableHack is
>> never
>> invoked.  We are getting to UIColumns constructor but setRowIndex in
>> UIColumns is not invoked either.
>>
>> Suggestions?
>>
>> Thank you.
>> ERoman
>> --
>> View this message in context:
>> http://www.nabble.com/Column-Ids-not-unique-in-JSF-RI-implementation-with-%3Ct%3AdataTable%3E-t1556759.html#a4228472
>> Sent from the MyFaces - Users forum at Nabble.com.
>>
>>
> 
> 
> --
> Matthias Wessendorf
> Aechterhoek 18
> 48282 Emsdetten
> http://jroller.com/page/mwessendorf
> mwessendorf-at-gmail-dot-com
> 
> 

--
View this message in context: 
http://www.nabble.com/Column-Ids-not-unique-in-JSF-RI-implementation-with-%3Ct%3AdataTable%3E-t1556759.html#a4236284
Sent from the MyFaces - Users forum at Nabble.com.



how update an window from another window

2006-05-04 Thread Rogerio Pereira
I have a popup window that must update the page with some dataTables in the parent window when i click on close button, how can i do it?I tried:window.opener.document.forms[0].submit() and the dataTable isn't updated
window.opener.location.reload() but this method calls shows a message box about re-submiting data all the timeAny idea?-- Yours truly (Atenciosamente),Rogério


Re: 1.1.3 returns the error: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered.

2006-05-04 Thread Mike Kienenberger

On 5/4/06, Todd Patrick <[EMAIL PROTECTED]> wrote:


I downloaded 1.1.3 Nightly build and I am trying to configure my web.xml
file as such:


http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>

com.sun.faces.verifyObjects
true


com.sun.faces.validateXml
true


javax.faces.CONFIG_FILES
/WEB-INF/faces-config.xml


javax.faces.STATE_SAVING_METHOD
client



org.apache.myfaces.CHECK_EXTENSIONS_FILTER
false


Faces Servlet
javax.faces.webapp.FacesServlet
1


Faces Servlet
/transactionbrowser/*



30




index.jsp




MyFacesExtensionsFilter

org.apache.myfaces.webapp.filter.ExtensionsFilter

maxFileSize
20m



MyFacesExtensionsFilter
Faces Servlet


MyFacesExtensionsFilter
/transactionbrowser/*





However, I keep receiving the error message:

java.lang.IllegalStateException: ExtensionsFilter not correctly configured.
JSF mapping missing. JSF pages not covered. Please see:
http://myfaces.apache.org/tomahawk/extensionsFilter.html


I found a similar thread about 1.1.2, however how do I fix this issue in
1.1.3?


Follow the link given :)

Basically, you've double-configured the part that modifies your JSF
pages, but haven't configured the part that serves independent
resources.

Delete this one:



MyFacesExtensionsFilter
/transactionbrowser/*



And add in the one on the web page.


1.1.3 returns the error: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered.

2006-05-04 Thread Todd Patrick



I downloaded 1.1.3 
Nightly build and I am trying to configure my web.xml file as 
such:
 
http://java.sun.com/xml/ns/j2ee" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">    
    
com.sun.faces.verifyObjects    
true    
    
    
com.sun.faces.validateXml    
true    
    
    
javax.faces.CONFIG_FILES    
/WEB-INF/faces-config.xml    
    
    
javax.faces.STATE_SAVING_METHOD    
client    
    
    
org.apache.myfaces.CHECK_EXTENSIONS_FILTER    
false    
    
    
Faces 
Servlet    
javax.faces.webapp.FacesServlet    
1    
    
    
Faces 
Servlet    
/transactionbrowser/*    
    
    
    
30    
    
    
    
    
index.jsp    
    
        
    
MyFacesExtensionsFilter    
org.apache.myfaces.webapp.filter.ExtensionsFilter    
    
maxFileSize    
20m    
        
    
MyFacesExtensionsFilter    
Faces Servlet    
    
    
MyFacesExtensionsFilter    
/transactionbrowser/*    

 

However, I keep 
receiving the error message:
 
java.lang.IllegalStateException: ExtensionsFilter not correctly 
configured. JSF mapping missing. JSF pages not covered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html
 
 
I found a similar 
thread about 1.1.2, however how do I fix this issue in 
1.1.3?
 
I am using Sun Java 
System Application Server 8.2
 
Thanks,
 
--Todd


Javascripts and Namespace encoding in portal environments.

2006-05-04 Thread Phanidhar Adusumilli
Myfaces implementation is not compliant with section 12.3.4 of portlet spec.
 
In the current implementation(s) (1.1.1 & 1.1.2) 
 
UIViewRoot.createUniqueId() is implemented as follows:
 
    /* Provides a unique id for this component instance.    */    public String createUniqueId()    {    ExternalContext extCtx = FacesContext.getCurrentInstance().getExternalContext();    return 
extCtx.encodeNamespace(UNIQUE_ID_PREFIX + _uniqueIdCounter++);    }
 
This makes the id unique for a component, but while rendering the clientId is used. 
Problem1:
Imagine if there is a naming container hierarchy the namespace is repeated for every naming container. 
For example:
if the jsp is as follows:
 

  
 
the id of the form in the markup will be portlet1_id0
and the id of the inputtext will be portlet1_id0:portlet1_id1.
 
The namespace is unecesarily repeated.
 
Problem2:
The above implementation will not make the id, in the generated markup unique if the id is specified in the jsp.
 
For example:


  
 

the id of the form in the markup will be Myform
and the id of the inputtext will be Myform:name.
 
This does not make them unique in portal environment because createUniqueId is never called.
 
My opinion is that the fix should be in UIComponentBase.getClientId() not in UIViewRoot.createUniqueId().
 
getClientId() must return the namespace encoded client id.
 
With this
for Problem1:
 
the id's would be  portlet1_id0 and portlet1_id0:_id1
 
for Problem2:
 
the id's would be portlet1_Myform and portlet1_Myform:name.
 
 
I would appreciate comments on this from MyFaces developers.


Re: Column Ids not unique in JSF RI implementation with

2006-05-04 Thread Matthias Wessendorf

There has been a bug inside RI see [1] [2]

[1] http://issues.apache.org/jira/browse/MYFACES-1010
[2] https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=230

On 5/4/06, eroman <[EMAIL PROTECTED]> wrote:


All,

We have the following scenario :

A form with
  
 
   
  
   
 
  

someSubForm.jsp :

  

  


  


The clientIds are not unique for each column for the selectOneMenu contents:
id="body:formAndViewForm:formId:dataTableId:tColumnsId:subViewId:selectOneMenuId"

We have added libraries from Tomahawk.  However, HtmlDataTableHack is never
invoked.  We are getting to UIColumns constructor but setRowIndex in
UIColumns is not invoked either.

Suggestions?

Thank you.
ERoman
--
View this message in context: 
http://www.nabble.com/Column-Ids-not-unique-in-JSF-RI-implementation-with-%3Ct%3AdataTable%3E-t1556759.html#a4228472
Sent from the MyFaces - Users forum at Nabble.com.





--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
http://jroller.com/page/mwessendorf
mwessendorf-at-gmail-dot-com


RE: Create HtmlSelectOneRadio through backing bean

2006-05-04 Thread James Ellis


I got a reply for this on another forum (Javaranch).

Here is the working code:

HtmlSelectOneRadio htmlSelectOneRadio = new HtmlSelectOneRadio();
htmlSelectOneRadio.setId("_777"+random.nextInt());
htmlSelectOneRadio.setTitle("test");

/** ArrayList of Options */
ArrayList radioBtnOptionsList = new ArrayList();
radioBtnOptionsList.add(new SelectItem(new String("1"),"First Option"));
radioBtnOptionsList.add(new SelectItem(new String("2"),"Second Option"));
radioBtnOptionsList.add(new SelectItem(new String("3"),"Third Option"));

/** Adding a group of CheckBox Options */
UISelectItems radioBtnOptions = new UISelectItems();
radioBtnOptions.setValue(radioBtnOptionsList);

// Add radioButton options.
htmlSelectOneRadio.getChildren().add(radioBtnOptions);

// Select a default value.
// This will set the "First Option" to be selected default wise
htmlSelectOneRadio.setValue(new String("1"));









From: "James Ellis" <[EMAIL PROTECTED]>
Reply-To: "MyFaces Discussion" 
To: users@myfaces.apache.org
Subject: Create HtmlSelectOneRadio through backing bean
Date: Thu, 04 May 2006 16:29:41 +

I need to create a HtmlSelectOneRadio box and add it to a panelGrid. Can 
anyone give me some sample code for how to create a radio box and 
initialize it with some test data (any data will do) through a backing 
bean.


My problem is I can't seem to figure out what is supposed to be in the 
setValue of htmlSelectOneRadio




   HtmlSelectOneRadio htmlSelectOneRadio = new HtmlSelectOneRadio();
   htmlSelectOneRadio.setId("_"+random.nextInt());
   htmlSelectOneRadio.setValue(??);
   htmlSelectOneRadio.setTitle("test");



And without a value nothing is being displayed on the page...







Re: ActionListeners and Actions

2006-05-04 Thread Craig McClanahan
On 5/4/06, Andrew Robinson <[EMAIL PROTECTED]> wrote:
I am going on a limb to answer this without first checking MyFacescode and the spec, so feel free to correct any errors I am about topost.Gotta admire a guy willing to walk a tightrope with no net :-). 
Calling render response on the faces context will not interrupt thecurrent phase, but instead just cause rendering to occur. According to
what I remember of the JSF spec, you need to call theresponseComplete() method of the context if you want to abort thephase cycle of JSF. With that said, I know that will abort the phasecycle, but I don't know if it will abort the current phase (execute
application or whatever it is called). You can give it a shot though:public void actionListenerMethod(ActionEvent e) {//Shouldn't this bypass the action method???FacesContext.getCurrentInstance
().renderResponse();FacesContext.getCurrentInstance().responseComplete();}public String actionMethod() {return null;}(note, this is all from memory, so I may have the method name wrong
and its location)-AndrewNeither of these methods will *necessarily* accomplish what Matt is asking for, but it depends on when they are called.Calling renderResponse() says "after the current phase is finished, go to Render Response phase next".  Calling responseComplete() says "I have already created the response, so as soon as this phase completes stop the lifecycle."  But, in both cases, you'll note that the current phase is finished first.  So, if you are already in Invoke Application phase, then the current phase is still going to get finished (but see below for a possible approach).  If you call either method in a phase *before* Invoke Application, then caling the application action should indeed be skipped.
So, how do we do what Matt wants?  To review, he wants to have an ActionListener that can dynamically decide to skip invoking the regular action method.  But action listeners are fired during Invoke Application phase, and as we've seen above, the rest of the phase (incuding the call to the action method, which is done by a default ActionListener instance provided by the JSF implementation) will still happen.  Here's two approaches to consider:
* Have your ActionListener throw AbortProcessingException, which  is supposed to stop processing events for the current phase.* Write your ActionListener set a flag in some well-known  request scope attribute, and then write your own wrapper
  around the default ActionListener -- inside this class, check  the state of the flag, and either delegate to the standard  default action listener or not.Craig 
On 5/3/06, Matt Hughes <[EMAIL PROTECTED]> wrote:> Is there any way to prevent an action method from being invoked from the> action listener method?
>> For example...take the following commandButton:>> > action="" value="Click Me" />
>> And the matching methods in your backing bean:>> public void actionListenerMethod(ActionEvent e) {> //Shouldn't this bypass the action method???> FacesContext.getCurrentInstance
().renderResponse();> }>> public String actionMethod() {> return null;> }>>> It was my understanding the *renderResponse()* would skip the context> into the render response phase, and any action methods would be
> skipped.  In my tests, this is not true.  So...is there any way to> prevent an action method from being invoked from within an action> listener method?>>


RE: t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated?

2006-05-04 Thread Todd Patrick
I went to http://myfaces.apache.org/download.html

And downloaded tomahawk-1.1.1.zip.

Also - there are more issues that just this. When I use t:inputCalendar,
I have the following error:

Error: jscalendarPopUpCalendar is not defined
Source File: http://127.0.0.1:8080/transactionbrowser/
Line: 1

(...or do I have to write my own jscalendarPopUpCalendar function?)

Are the nightly build a better option?

Thanks,

--Todd

-Original Message-
From: Mike Kienenberger [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 04, 2006 12:48 PM
To: Todd Patrick
Subject: Re: t:panelTabbedPane: Is the serverSideTabSwitch attribute
depreciated?

On 5/4/06, Todd Patrick <[EMAIL PROTECTED]> wrote:
> I keep receiving the following error message:
>
> compile-jsps:
> org.apache.jasper.JasperException:  Attribute serverSideTabSwitch 
> invalid for tag panelTabbedPane according to TLD
> C:/javaworkspace/petroadmin/transactionbrowser/build/web/tbrowser.jsp(
> 87
> ,16)
>
C:\javaworkspace\petroadmin\transactionbrowser\nbproject\build-impl.xml:
> 328: Java returned: 1
> BUILD FAILED (total time: 4 seconds)

Looks like a bug.  What version of Tomahawk are you using?  Does it
predate the attribute?


RE: t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated?

2006-05-04 Thread Todd Patrick
I keep receiving the following error message:

compile-jsps:
org.apache.jasper.JasperException:  Attribute serverSideTabSwitch
invalid for tag panelTabbedPane according to TLD
C:/javaworkspace/petroadmin/transactionbrowser/build/web/tbrowser.jsp(87
,16)
C:\javaworkspace\petroadmin\transactionbrowser\nbproject\build-impl.xml:
328: Java returned: 1
BUILD FAILED (total time: 4 seconds)

Thanks,

--Todd

-Original Message-
From: Mike Kienenberger [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 04, 2006 12:00 PM
To: MyFaces Discussion
Subject: Re: t:panelTabbedPane: Is the serverSideTabSwitch attribute
depreciated?

On 5/4/06, Todd Patrick <[EMAIL PROTECTED]> wrote:
> t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated?

No, it's not.  Do you have reason to believe otherwise?


Re: Tomahawk 1.1.2

2006-05-04 Thread Adrien FOURES

It's a very good news, thanks a lot for the myfaces team's job

Sean Schofield wrote:


We are targeting next Monday for the official release.

Sean

On 5/3/06, pmuir <[EMAIL PROTECTED]> wrote:



I don't think 1.1.2 has been released yet.  I've used the svn source 
to build

a copy or you can download the latest (binary) snapshot (1.1.3) here:

http://cvs.apache.org/builds/myfaces/nightly/

HTH
--
View this message in context: 
http://www.nabble.com/Sandbox-form-component-bug-t1539106.html#a4206616

Sent from the MyFaces - Users forum at Nabble.com.







Re: Does file upload component works inside a jsf portlet ?

2006-05-04 Thread Matthias Wessendorf

An interesting blog entry for using PhaseListners instead of Servlets
(or Filters) is [1]

[1] 
http://www.jroller.com/page/cagataycivici?entry=phaselistener_renders_an_image_no

On 5/4/06, Legolas Woodland <[EMAIL PROTECTED]> wrote:


thanks for reply.
Can you help me with that phase listener ?
where i can find some resource about this ?
Thanks



On 5/4/06, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
> I think adffaces has an upload component.
>
> Your other option is to write a phase listener that performs all of
> the same processes that the extension filter does.
>
> On 5/4/06, Legolas Woodland <[EMAIL PROTECTED]> wrote:
> >
> > Thank you for reply ,
> > but, is there any solution to upload a file inside a jsf based portlet ?
> >
> >
> >
> > On 5/4/06, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
> > > On 5/4/06, Legolas Woodland <[EMAIL PROTECTED] > wrote:
> > > > Thank you for reading my post
> > > > Does file upload component works inside a portlet ?
> > >
> > > I'm pretty sure that file upload requires the extensions filter.
> > > servlet filters don't work with portlets.
> > >
> >
> >
>





--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
http://jroller.com/page/mwessendorf
mwessendorf-at-gmail-dot-com


Re: t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated?

2006-05-04 Thread Mike Kienenberger

On 5/4/06, Todd Patrick <[EMAIL PROTECTED]> wrote:

t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated?


No, it's not.  Do you have reason to believe otherwise?


Re: Sandbox/Tomahawk Component Request

2006-05-04 Thread Mike Kienenberger

On 5/4/06, Andrew Robinson <[EMAIL PROTECTED]> wrote:

Nice to have the WIKI on promoting Sandbox to Tomahawk. Is there a
WIKI on how best to create a new sandbox component from scratch and
what steps should be taken? (not just migrating it from jsf-comp for
example). I looked at the Contributing_Patches, and looked at the
focus JIRA issue, but not all the files were there for the JIRA (like
the HTML files were not there).


http://wiki.apache.org/myfaces/Contributing_Patches is currently the
best source.

However, both of these pages are new, and they need improving.  
Hopefully the next person to use it as a guide for submitting a new

component will also go in and update the page as we find missing
items.



Once I get time (maybe after June), I may try to help out by writing
some of the new components people have been asking for and adding them
to the sandbox (or jsf-comp if that is the way to go).


No, I think the sandbox is the way to go, provided there are no
licensing issues.

The pros for jsf-comp is that anyone can get commit access, which
makes it an easy place to develop a first draft of a component and
quickly make changes.  As you noted in a personal email to me on a
different topic, the downside of jsf-comp is that it's a pain to deal
with releasing and other maintenance issues.

Sandbox reverses the pros and cons.


Re: Sandbox/Tomahawk Component Request

2006-05-04 Thread Andrew Robinson

Nice to have the WIKI on promoting Sandbox to Tomahawk. Is there a
WIKI on how best to create a new sandbox component from scratch and
what steps should be taken? (not just migrating it from jsf-comp for
example). I looked at the Contributing_Patches, and looked at the
focus JIRA issue, but not all the files were there for the JIRA (like
the HTML files were not there).

Once I get time (maybe after June), I may try to help out by writing
some of the new components people have been asking for and adding them
to the sandbox (or jsf-comp if that is the way to go).

-Andrew

On 5/4/06, Mike Kienenberger <[EMAIL PROTECTED]> wrote:

On 5/4/06, Julian Ray <[EMAIL PROTECTED]> wrote:
> I'm not sure if this is the place for suggesting components to add to the
> sandbox but anyway
>
> How about adding a spinner control which can take Integers and/or decimals
> with configurable step sizes and which would increment/decrement on either
> the server or the client. We currently use one cobbled together from the
> Myfaces book and it works great but it would be nice to have one which is
> integrated and standardized into the MyFaces framework. :)

Can you open a JIRA issue, and attach your component to it?
You'll want to "convert" it to MyFaces sandbox packaging, provide some
documentation, and an example, but that's the best way to get it into
the Tomahawk framework.

Take a look at these two pages:

http://wiki.apache.org/myfaces/Contributing_Patches
http://wiki.apache.org/myfaces/promotion



t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated?

2006-05-04 Thread Todd Patrick



t:panelTabbedPane: Is the serverSideTabSwitch 
attribute depreciated?
 
If it is, how do I 
toggle client-side/server-side tab switches?
 
Thanks,
 
--Todd


Re: Does file upload component works inside a jsf portlet ?

2006-05-04 Thread Legolas Woodland
thanks for reply.
Can you help me with that phase listener ?
where i can find some resource about this ?
Thanks 
On 5/4/06, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
I think adffaces has an upload component.Your other option is to write a phase listener that performs all of
the same processes that the extension filter does.On 5/4/06, Legolas Woodland <[EMAIL PROTECTED]> wrote:>> Thank you for reply ,> but, is there any solution to upload a file inside a jsf based portlet ?
 On 5/4/06, Mike Kienenberger <[EMAIL PROTECTED]> wrote:> > On 5/4/06, Legolas Woodland <[EMAIL PROTECTED]
> wrote:> > > Thank you for reading my post> > > Does file upload component works inside a portlet ?> >> > I'm pretty sure that file upload requires the extensions filter.
> > servlet filters don't work with portlets.> >>>


Re: Does file upload component works inside a jsf portlet ?

2006-05-04 Thread Mike Kienenberger

I think adffaces has an upload component.

Your other option is to write a phase listener that performs all of
the same processes that the extension filter does.

On 5/4/06, Legolas Woodland <[EMAIL PROTECTED]> wrote:


Thank you for reply ,
but, is there any solution to upload a file inside a jsf based portlet ?



On 5/4/06, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
> On 5/4/06, Legolas Woodland <[EMAIL PROTECTED]> wrote:
> > Thank you for reading my post
> > Does file upload component works inside a portlet ?
>
> I'm pretty sure that file upload requires the extensions filter.
> servlet filters don't work with portlets.
>




t: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: ActionListeners and Actions

2006-05-04 Thread Andrew Robinson

Could this be done with a custom application listener of the faces
context? I am too familiar with the spec at that level, but it seems
to be the one in controlling the invoking of the action method? If so,
there could be a custom listener written that has an abort boolean
property or something of the sort, that if set to true will not invoke
the action?

-Andrew

On 5/4/06, Mike Kienenberger <[EMAIL PROTECTED]> wrote:

On 5/4/06, Andrew Robinson <[EMAIL PROTECTED]> wrote:
> I am going on a limb to answer this without first checking MyFaces
> code and the spec, so feel free to correct any errors I am about to
> post.
>
> Calling render response on the faces context will not interrupt the
> current phase, but instead just cause rendering to occur. According to
> what I remember of the JSF spec, you need to call the
> responseComplete() method of the context if you want to abort the
> phase cycle of JSF. With that said, I know that will abort the phase
> cycle, but I don't know if it will abort the current phase (execute
> application or whatever it is called). You can give it a shot though:

Andrew, I was thinking the same thing.   However, I don't think either
method aborts the current phase.  It merely prevents any future phases
from executing.

responseComplete() actually means you've already "drawn" a response
page.   renderResponse does mean what you're saying, which is to skip
to the render response phase.

Matt,  I think your best bet is to look at the LifeCycleImpl code and
see what goes on when renderResponse is true.   I know it kills any
pending events, and you probably can use similar code to kill your
existing action event.The other thing you can do is have your
action listener set a flag somewhere, and then have your action take a
look at the value of that flag when it starts up.



Confused about View ID

2006-05-04 Thread James Reynolds

I have a page that lists Contracts. On this page is a booleanCheckBox
that filters the list based on a certain criteria.  Here is the
ValueChangeListener I'm using:

public void compOnlyChecked(ValueChangeEvent vce) {
compOnly = (Boolean) vce.getNewValue(); //compOnly is a boolean
property in the managed-bean
getFacesContext().renderResponse();
}

So far, it works fine.  However, if I click on one of the contracts
(which navigates to the detail page), then click the back button to
return to the list, then click the booleanCheckBox, the *detail* page is
the one that is restored.

I suspect that the solution to this is to set the view ID to the
Contract View page inside of the ValueChangeEvent, but my efforts are
throwing Evaluation Execptions (stack trace below).  This is how I
modified the Value Change Listener, which is obviously incorrect.

public void compOnlyChecked(ValueChangeEvent vce) {
compOnly = (Boolean) vce.getNewValue();
  getFacesContext().getViewRoot().setId("/contractList.jsf");
getFacesContext().renderResponse();
}

Could you point me in the right direction?

Thanks



Stack Trace:
exception 

javax.servlet.ServletException: Exception while invoking expression
#{members$contractList.compOnlyChecked}
javax.faces.webapp.FacesServlet.service(FacesServlet.java:121)

com.npp.web.AuthorizationFilter.doFilter(AuthorizationFilter.java:51)

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

org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(Extensi
onsFilter.java:122)


root cause 

javax.faces.el.EvaluationException: Exception while invoking expression
#{members$contractList.compOnlyChecked}

org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:15
3)
javax.faces.component.UIInput.broadcast(UIInput.java:200)

javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)

javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:143)

org.apache.myfaces.lifecycle.LifecycleImpl.processValidations(LifecycleI
mpl.java:240)

org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76
)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)

com.npp.web.AuthorizationFilter.doFilter(AuthorizationFilter.java:51)

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

org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(Extensi
onsFilter.java:122)



Re: Does file upload component works inside a jsf portlet ?

2006-05-04 Thread Legolas Woodland
Thank you for reply ,
but, is there any solution to upload a file inside a jsf based portlet ? 
On 5/4/06, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
On 5/4/06, Legolas Woodland <[EMAIL PROTECTED]> wrote:
> Thank you for reading my post> Does file upload component works inside a portlet ?I'm pretty sure that file upload requires the extensions filter.servlet filters don't work with portlets.



Create HtmlSelectOneRadio through backing bean

2006-05-04 Thread James Ellis
I need to create a HtmlSelectOneRadio box and add it to a panelGrid. Can 
anyone give me some sample code for how to create a radio box and initialize 
it with some test data (any data will do) through a backing bean.


My problem is I can't seem to figure out what is supposed to be in the 
setValue of htmlSelectOneRadio




   HtmlSelectOneRadio htmlSelectOneRadio = new HtmlSelectOneRadio();
   htmlSelectOneRadio.setId("_"+random.nextInt());
   htmlSelectOneRadio.setValue(??);
   htmlSelectOneRadio.setTitle("test");



And without a value nothing is being displayed on the page...




Re: 2 forms on one page?

2006-05-04 Thread Mike Kienenberger

On 5/4/06, Andrew Robinson <[EMAIL PROTECTED]> wrote:

Trying to build and update the
sandbox is a pain as there are no nightlies for it (there is an open
JIRA on this).


http://issues.apache.org/jira/browse/TOMAHAWK-209

Good news!  If you take a look at the issue, you'll see that sandbox
nightlies can be retrieved from the maven snapshot directory:

http://cvs.apache.org/maven-snapshot-repository/org/apache/myfaces/tomahawk/tomahawk-sandbox/


Re: 2 forms on one page?

2006-05-04 Thread Andrew Robinson

After looking at the subForm, I'd recommend using it over my
suggestion. It will (hopefully) support state saving methods better
than two independant forms. I am using server state as it seems more
"friendly" although it does have some serious side effects (like
trying to have multiple view active for multiple windows for example).
Too bad it is sandbox and not tomahawk. Trying to build and update the
sandbox is a pain as there are no nightlies for it (there is an open
JIRA on this).

-Andrew

On 5/4/06, Catalin Kormos <[EMAIL PROTECTED]> wrote:

Hi Michael,

The component is stable and functional, you can use it with no problem. You
are right, only one html form is generated, and the components surrounded by
a subForm can update model values and/or be validated separately from other
components in the main form.

It works with both client side and server side state saving.

Regards,

Catalin

Michael Heinen <[EMAIL PROTECTED]> wrote:


Thanks Catalin.

subForm sounds promising.

I wait for the next version of MyFaces/Tomahawk/sandbox until I test it.

How stable is this sandbox component?
I assume that 1 html form is generated and not 1 for each subform.
Does subForm work with both state saving methods?

Michael


 

From: Catalin Kormos [mailto:[EMAIL PROTECTED]
 Sent: Mittwoch, 3. Mai 2006 20:14
 To: MyFaces Discussion
 Subject: Re: 2 forms on one page?

Hi,

 Looks to me like you could use the subForm component from sandbox:
 http://myfaces.apache.org/sandbox/subForm.html

 HTH,
 Catalin

 Michael Heinen <[EMAIL PROTECTED]> wrote:

Hi all,



I have another question:



Is it possible to define 2 forms on one page and that only the submitted
form is validated?

e.g. buttonA submits formA and buttonB submits formB?



I have a datatable on my page with a detail pane.

The detail pane contains some fields in order to update the detail data of
the selected object (formA).

If the user selects multiple objects in the datatable, then I have to show
another form (formB) in order to update different fields at once for the
selected objects.

These fields have to be bound to different attributes of my backing bean of
course.

So if the user submits formB then the model of formA should not be updated.



I want to switch the visibility of the 2 forms via javascript without a
generating new server request.

Does JSF support the above scenario (e.g. with subviews)?

Or is this a requirement that should be better processed with ajax (which
would be more complex for me)?



Any help is highly appreciated again

Michael

 

Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+
countries) for 2�/min or less.


 
Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.




Re: Sandbox/Tomahawk Component Request

2006-05-04 Thread Mike Kienenberger

On 5/4/06, Julian Ray <[EMAIL PROTECTED]> wrote:

I'm not sure if this is the place for suggesting components to add to the
sandbox but anyway

How about adding a spinner control which can take Integers and/or decimals
with configurable step sizes and which would increment/decrement on either
the server or the client. We currently use one cobbled together from the
Myfaces book and it works great but it would be nice to have one which is
integrated and standardized into the MyFaces framework. :)


Can you open a JIRA issue, and attach your component to it?
You'll want to "convert" it to MyFaces sandbox packaging, provide some
documentation, and an example, but that's the best way to get it into
the Tomahawk framework.

Take a look at these two pages:

http://wiki.apache.org/myfaces/Contributing_Patches
http://wiki.apache.org/myfaces/promotion


Re: Sandbox/Tomahawk Component Request

2006-05-04 Thread Dennis Byrne
Patches are welcome ;)

Dennis Byrne

>-Original Message-
>From: Julian Ray [mailto:[EMAIL PROTECTED]
>Sent: Thursday, May 4, 2006 12:08 PM
>To: ''MyFaces Discussion''
>Subject: Sandbox/Tomahawk Component Request
>
>I'm not sure if this is the place for suggesting components to add to the
>sandbox but anyway
> 
>How about adding a spinner control which can take Integers and/or decimals
>with configurable step sizes and which would increment/decrement on either
>the server or the client. We currently use one cobbled together from the
>Myfaces book and it works great but it would be nice to have one which is
>integrated and standardized into the MyFaces framework. :)
> 
> 
>




Sandbox/Tomahawk Component Request

2006-05-04 Thread Julian Ray



I'm not sure if this 
is the place for suggesting components to add to the sandbox but 
anyway
 
How about adding a 
spinner control which can take Integers and/or decimals with configurable step 
sizes and which would increment/decrement on either the server or the client. We 
currently use one cobbled together from the Myfaces book and it works great but 
it would be nice to have one which is integrated and standardized into the 
MyFaces framework. :)
 
 


Re: Transfering data between pages.

2006-05-04 Thread Rogerio Pereira
On 5/4/06, Mert Çalışkan <[EMAIL PROTECTED]> wrote:
You should specify the list as a managed-bean and use the same managed bean in main and popup page.
Other UIComponents should be specified in two different backing-beans.Do you have an example?-- Yours truly (Atenciosamente),Rogério


Re: t:selectManyCheckbox - Make Checkbox label a link

2006-05-04 Thread Mike Kienenberger
Maybe you could work with Yasushi on this.-- Forwarded message --From: Mike Kienenberger <[EMAIL PROTECTED]>Date: May 4, 2006 11:31 AMSubject: Re: question for t:selectOneRadio : how to add other components besides f:selectItem
To: MyFaces Discussion On 5/3/06, Yasushi Okubo <[EMAIL PROTECTED]> wrote:
> I would like to add other components like outputtext, panelGrid etc> inside t:selectOneRadio besides f:selectItem, but it seems it does not work.> Is there any way to achieve this ?There have been a number of people asking how to do various things
(images, outputLinks, etc) inside f:selectItem.Perhaps you could submit a patch to t:select* components that supportsa t:selectItem which could contain a component to use as a renderer?Maybe as a facet or simply anything enclosed by t:selectItem?



Re: t:datascroller and missing javascript event handlers

2006-05-04 Thread Mike Kienenberger

On 5/4/06, Michael Heinen <[EMAIL PROTECTED]> wrote:

Is there any reason that t:datascroller does not provide an onclick
attribute or javascript event handlers?

I have to execute some javascript in order to show a confirmation dialogue
if data has been changed on my form but not saved.

I could add onclick attributes to the facets (first, last, previous, next)
but how can I add this to the paginator?


Probably because no one has needed the behavior up to this point. 
Feel free to open a Jira issue and submit patches.


Re: ActionListeners and Actions

2006-05-04 Thread Mike Kienenberger

On 5/4/06, Andrew Robinson <[EMAIL PROTECTED]> wrote:

I am going on a limb to answer this without first checking MyFaces
code and the spec, so feel free to correct any errors I am about to
post.

Calling render response on the faces context will not interrupt the
current phase, but instead just cause rendering to occur. According to
what I remember of the JSF spec, you need to call the
responseComplete() method of the context if you want to abort the
phase cycle of JSF. With that said, I know that will abort the phase
cycle, but I don't know if it will abort the current phase (execute
application or whatever it is called). You can give it a shot though:


Andrew, I was thinking the same thing.   However, I don't think either
method aborts the current phase.  It merely prevents any future phases
from executing.

responseComplete() actually means you've already "drawn" a response
page.   renderResponse does mean what you're saying, which is to skip
to the render response phase.

Matt,  I think your best bet is to look at the LifeCycleImpl code and
see what goes on when renderResponse is true.   I know it kills any
pending events, and you probably can use similar code to kill your
existing action event.The other thing you can do is have your
action listener set a flag somewhere, and then have your action take a
look at the value of that flag when it starts up.


t:datascroller and missing javascript event handlers

2006-05-04 Thread Michael Heinen








Is there any reason that t:datascroller does not
provide an onclick attribute or _javascript_ event handlers?

 

I have to execute some _javascript_ in order to show a
confirmation dialogue if data has been changed on my form but not saved.

I could add onclick attributes to the facets (first,
last, previous, next) but how can I add this to the paginator?

 

Thank in advance

Michael








Re: t:selectManyCheckbox - Make Checkbox label a link

2006-05-04 Thread Andrew Robinson
Here is one solution:Write a custom renderer. In that renderer, make a parent component with two temporal child components. First child: select one checkbox. Second child: output link. On the rendering of the checkbox, record it's client ID in a variable. On rendering of the output link, add a "_javascript_: getElementById('"+checkboxId +"').value = !getElementById('"+checkboxId +"').value;" as the URL of the link. This will toggle the value of the checkbox. 
Doing it as a custom component and a renderer you will have access to the client ID of the checkbox. Another alternative is to use forceId and just hand-code the output:
function toggleCheckbox(elemId)
{
var elem = document.getElementById(elemId)
elem.value = !elem.value
}
There are other solutions and variations, but this should work for you. Depends on how much work you want to do to make it nice. Sounds like a good idea for a sandbox component to me (if only I had the time...) -AndrewOn 5/3/06, fischman_98 <[EMAIL PROTECTED]> wrote: Anyone know how to make the itemLabel of a SelectItem a href? I'd like to produce a checkbox that looks like this: COLUMBIA RIVER (WASHINGTON) SUN CLOUDS View this message in context: t:selectManyCheckbox - Make Checkbox label a link Sent from the MyFaces - Users forum at Nabble.com.

Re: ActionListeners and Actions

2006-05-04 Thread Andrew Robinson

I am going on a limb to answer this without first checking MyFaces
code and the spec, so feel free to correct any errors I am about to
post.

Calling render response on the faces context will not interrupt the
current phase, but instead just cause rendering to occur. According to
what I remember of the JSF spec, you need to call the
responseComplete() method of the context if you want to abort the
phase cycle of JSF. With that said, I know that will abort the phase
cycle, but I don't know if it will abort the current phase (execute
application or whatever it is called). You can give it a shot though:

public void actionListenerMethod(ActionEvent e) {
   //Shouldn't this bypass the action method???
   FacesContext.getCurrentInstance().renderResponse();
   FacesContext.getCurrentInstance().responseComplete();
}

public String actionMethod() {
   return null;
}

(note, this is all from memory, so I may have the method name wrong
and its location)
-Andrew

On 5/3/06, Matt Hughes <[EMAIL PROTECTED]> wrote:

Is there any way to prevent an action method from being invoked from the
action listener method?

For example...take the following commandButton:



And the matching methods in your backing bean:

public void actionListenerMethod(ActionEvent e) {
//Shouldn't this bypass the action method???
FacesContext.getCurrentInstance().renderResponse();
}

public String actionMethod() {
return null;
}


It was my understanding the *renderResponse()* would skip the context
into the render response phase, and any action methods would be
skipped.  In my tests, this is not true.  So...is there any way to
prevent an action method from being invoked from within an action
listener method?




Re: question for t:selectOneRadio : how to add other components besides f:selectItem

2006-05-04 Thread Mike Kienenberger

On 5/3/06, Yasushi Okubo <[EMAIL PROTECTED]> wrote:

I would like to add other components like outputtext, panelGrid etc
inside t:selectOneRadio besides f:selectItem, but it seems it does not work.
Is there any way to achieve this ?


There have been a number of people asking how to do various things
(images, outputLinks, etc) inside f:selectItem.

Perhaps you could submit a patch to t:select* components that supports
a t:selectItem which could contain a component to use as a renderer? 
Maybe as a facet or simply anything enclosed by t:selectItem?


Re: Does file upload component works inside a jsf portlet ?

2006-05-04 Thread Mike Kienenberger

On 5/4/06, Legolas Woodland <[EMAIL PROTECTED]> wrote:

Thank you for reading my post
Does file upload component works inside a portlet ?


I'm pretty sure that file upload requires the extensions filter.  
servlet filters don't work with portlets.


Re: Transfering data between pages.

2006-05-04 Thread Mert Çalışkan
You should specify the list as a managed-bean and use the same managed bean in main and popup page.
Other UIComponents should be specified in two different backing-beans.
 
Regards,
 
Mert 
On 5/4/06, Rogerio Pereira <[EMAIL PROTECTED]
> wrote: 








Yes same managed-bean Rogerio. 
I suppose you were adding the results from the bean in popup page to the bean in main page.
 My problem is, i have 5 fields and 3 buttons on popup window and put this stuff in the same bean will make the things a little confuse and dificult to understand and manage later. 

-- Yours truly (Atenciosamente),Rogério 


Re: How to write a customized valdation, that validate by comparing one field to another_

2006-05-04 Thread Mike Kienenberger

validateCompareTo is exactly what you need, and it's stable.  I wrote
it to compare date fields, so this is its most-tested configuration :)

I'll probably push to have it promoted from the sandbox to tomahawk pretty soon.
The only issues holding it back (that I know of) are that there are
some hardcoded strings in the code that need to be moved to
localizable message properties.

If you'd like to speed up the promotion process, feel free to submit
patches fix this issue.

On 5/4/06, Bjørn T Johansen <[EMAIL PROTECTED]> wrote:

How stable is the components in sandbox?

BTJ

On Thu, 04 May 2006 09:45:55 +0200
Volker Weber <[EMAIL PROTECTED]> wrote:

> Hi,
>
> there is a validateCompareTo tag in sandbox
>
> http://myfaces.apache.org/sandbox/validateCompareTo.html
> http://myfaces.apache.org/sandbox/tlddoc/s/validateCompareTo.html


Re: dataScroller not working, help please

2006-05-04 Thread Mike Kienenberger

On 5/4/06, joelus <[EMAIL PROTECTED]> wrote:

I solved my own problem, seems like I HAVE to ask for help before I figure
things out!
Anyway, my dataTable / scroller was nested inside a  tag, which is
apparently a no no...


Yes, you want to have tabbedPane inside of an h:form.  Otherwise,
it'll automatically add an h:form around itself.

You might look into subform (either tomahawk sandbox or adffaces) if
you want partial form processing.


Does file upload component works inside a jsf portlet ?

2006-05-04 Thread Legolas Woodland

Hi
Thank you for reading my post
Does file upload component works inside a portlet ?

thanks


Re: Transfering data between pages.

2006-05-04 Thread Rogerio Pereira

Yes same managed-bean Rogerio. 
I suppose you were adding the results from the bean in popup page to the bean in main page.My problem is, i have 5 fields and 3 buttons on popup window and put this stuff in the same bean will make the things a little confuse and dificult to understand and manage later.
-- Yours truly (Atenciosamente),Rogério


Re: Specifying Arraylist of ArrayList for the value of a datatable

2006-05-04 Thread Hasnain Badami
Thanks guys. so nice of you.
 
Hasnain 
On 5/3/06, Mert Çalışkan <[EMAIL PROTECTED]> wrote:

Yes as Volker stated above.and h:datatable can also be nested elements in h:columns like,            
                                                                                
                                                                        
                                                                                        
                                                                                                    
Regards,  
Mert

On 5/3/06, Volker Weber <[EMAIL PROTECTED]
> wrote: 
Hi Hasnain,i'm not sure if i understand you correct, but if so : yes why not.If you have a (
1.5 Syntax) ArrayList> you can do:   
... Regards,  VolkerHasnain Badami wrote:> hi>
> I want to specify an ArrayList of ArrayLists as the value for my data> table.> Can an arraylist of arraylists be used and how?  any help shall be highly > appreciated.>> Hassnain
>--Don't answer to From: address!Mail to this account are droped if not recieved via mailinglist.To contact me direct create the mail address byconcatenating my forename to my senders domain.



Re: outputLink and context

2006-05-04 Thread Mert Çalışkan
Don't specify / before hello.jsf. It'd be context relative with this.
 
Regards,
 
Mert
 
On 5/4/06, Alexander Panzhin <[EMAIL PROTECTED]> wrote:
How to make the outputLink be context relativeso that my
   would point to http://localhost:8080/hello/hello.jsf and not
http://localhost:8080/hello.jsf--  With best regards, Alexander Panzhin


JSF/Spring/Hibernate Thread Safety questions

2006-05-04 Thread Joey Geiger
Sorry if this is a bit too general for this list, but as I'm using 
myFaces as my JSF implementation I thought it would apply.


I've recently written an e-commerce application using 
Facelets/JSF/Spring/Hibernate/Tomcat/MySQL with a shopping cart, 
customer sign-in, etc.


As this is my first "real" application, I was wondering if there are any 
specific places within my application that I should be concerned about
thread safety. I think I've been going under the possible mistaken 
belief that since most of my processing is done in Tomcat's sessions, 
and objects are
stored in those sessions, I'm pretty safe. Are there any specific 
sections I need to be more aware of than others? (Customer sign-in, 
saving an order?)

Also, I'm using a connection pool setup as a JNDI resource in Tomcat.

Any help would be appreciated. Thank you.



outputLink and context

2006-05-04 Thread Alexander Panzhin

How to make the outputLink be context relative
so that my

   

would point to http://localhost:8080/hello/hello.jsf and not 
http://localhost:8080/hello.jsf


--
  With best regards,
 Alexander Panzhin



smime.p7s
Description: S/MIME Cryptographic Signature


Re: AddResource from JAR

2006-05-04 Thread Cagatay Civici
Hi,Weblets are created for this purpose but seem a little bit complicated to me. Another workaround should be to use a simple phaselistener which I suggest if you are writing a custom component library since it needs no configuration for the end user.
Here is an example of a phaselistener serving resources from a jar;
http://fisheye5.cenqua.com/viewrep/~raw,r=1.2/glassfish/jsf-extensions/run-time/src/main/java/com/sun/faces/util/ResourcePhaseListener.java
https://jsf-extensions.dev.java.net/nonav/docs/apidocs/com/sun/faces/util/ResourcePhaseListener.htmlRegards,CagatayOn 5/4/06, Dave Brondsema
 <[EMAIL PROTECTED]> wrote:Julian Ray wrote:
> I posted this a few days ago but it might have slipped through the cracks...>> I am attempting to add resources from a jar of custom components using> the AddResource service in Tomahawk. It works for resources which are
> configured within the WEB-INF but I'm struggling to get jar-configured> resources to load. The extensions filter is setup and working,> AddResource works for _javascript_ and css files which are statically
> stored but I can't seem to get the ResourceHandlers to work as MyFaces> keeps complaining that it expects a myFacesCustomCommand.>> Are there any examples of doing this? Is it possible?>
Have you looked at https://weblets.dev.java.net/ yet?  It's designed forserving resources out from a jar file.--Dave BrondsemaSoftware DeveloperCornerstone University



Re: detail toggler in portal not working

2006-05-04 Thread Dave Brondsema
Dunstan, Steve wrote:
> We have been using the t:dataTable varDetailToggler functionality with
> some success in our stand-alone web apps.  However, when we started
> testing in the context of JBoss Portal it stopped working.  Has anyone
> had success with this in a portal?
> 

I would guess that it relies on CSS/JS resources that cannot be added to
 since it's in a portlet.  You could modify the component code to
add the resource inline, not in head, and it should work.

See http://issues.apache.org/jira/browse/MYFACES-434 and
http://issues.apache.org/jira/browse/TOMAHAWK-58 for some possible
workarounds.

-- 
Dave Brondsema
Software Developer
Cornerstone University



signature.asc
Description: OpenPGP digital signature


Re: AddResource from JAR

2006-05-04 Thread Dave Brondsema
Julian Ray wrote:
> I posted this a few days ago but it might have slipped through the cracks...
>  
> I am attempting to add resources from a jar of custom components using
> the AddResource service in Tomahawk. It works for resources which are
> configured within the WEB-INF but I'm struggling to get jar-configured
> resources to load. The extensions filter is setup and working,
> AddResource works for JavaScript and css files which are statically
> stored but I can't seem to get the ResourceHandlers to work as MyFaces
> keeps complaining that it expects a myFacesCustomCommand.
>  
> Are there any examples of doing this? Is it possible?
>  

Have you looked at https://weblets.dev.java.net/ yet?  It's designed for
serving resources out from a jar file.

-- 
Dave Brondsema
Software Developer
Cornerstone University



signature.asc
Description: OpenPGP digital signature


Column Ids not unique in JSF RI implementation with

2006-05-04 Thread eroman

All,

We have the following scenario :

A form with 
  
 
   
  
   
 
  

someSubForm.jsp :

  

  


  


The clientIds are not unique for each column for the selectOneMenu contents:
id="body:formAndViewForm:formId:dataTableId:tColumnsId:subViewId:selectOneMenuId"
 

We have added libraries from Tomahawk.  However, HtmlDataTableHack is never
invoked.  We are getting to UIColumns constructor but setRowIndex in
UIColumns is not invoked either.

Suggestions?

Thank you.
ERoman
--
View this message in context: 
http://www.nabble.com/Column-Ids-not-unique-in-JSF-RI-implementation-with-%3Ct%3AdataTable%3E-t1556759.html#a4228472
Sent from the MyFaces - Users forum at Nabble.com.



RE: 2 forms on one page?

2006-05-04 Thread Catalin Kormos
Hi Michael,The component is stable and functional, you can use it with no problem. You are right, only one html form is generated, and the components surrounded by a subForm can update model values and/or be validated separately from other components in the main form.It works with both client side and server side state saving.Regards,CatalinMichael Heinen <[EMAIL PROTECTED]> wrote:Thanks Catalin.     subForm sounds promising.     I wait for the next version of MyFaces/Tomahawk/sandbox until I test it.     How stable is this sandbox component?  I assume that 1 html form is generated and not 1 for each subform.  Does subForm work with both state saving
 methods?     Michael     From: Catalin Kormos [mailto:[EMAIL PROTECTED]  Sent: Mittwoch, 3. Mai 2006 20:14 To: MyFaces  Discussion Subject: Re: 2 forms on one page?   Hi,  Looks to me like you could use the subForm component from sandbox: http://myfaces.apache.org/sandbox/subForm.html  HTH, Catalin  Michael 
 Heinen <[EMAIL PROTECTED]> wrote:Hi all,     I have another question:     Is it possible to define 2 forms on one page and that only the submitted form is validated?   e.g. buttonA submits formA and buttonB submits formB?     I have a
 datatable on my page with a detail pane.  The detail pane contains some fields in order to update the detail data of the selected object (formA).  If the user selects multiple objects in the datatable, then I have to show another form (formB) in order to update different fields at once for the selected objects.  These fields have to be bound to different attributes of my backing bean of course.  So if the user submits formB then the model of formA should not be updated.     I want to switch the visibility of the 2 forms via _javascript_ without a generating new server request.  Does JSF support the above scenario (e.g. with subviews)?  Or is this a requirement that should be better processed with ajax (which would be more complex for me)?     Any help is highly appreciated again  Michael Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2�/min or less.
		Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.

Re: MyFaces J1 party 2006

2006-05-04 Thread Jonathan Harley

Jonathan Harley wrote:

Sean Schofield wrote:

Damn sounds like its going to be fun.  Too bad I can't make it.  
*Definitely* next year.  ;-)


Me too. This is the JavaOne I've missed for some years. I'll
miss the excellent beer in Thirsty Bear! Have fun!


Uh, the *first* JavaOne that I've missed for some years.
Although I never made it to a party, always too many interesting
BOFs to learn from... maybe next year.

--
.
  Dr Jonathan Harley   .
   .   Email: [EMAIL PROTECTED]
   Zac Parkplatz Ltd   .   Office Telephone: 024 7633 1375
   www.parkplatz.net   .   Mobile: 079 4116 0423


Re: MyFaces J1 party 2006

2006-05-04 Thread Jonathan Harley

Sean Schofield wrote:
Damn sounds like its going to be fun.  Too bad I can't make it.  
*Definitely* next year.  ;-)


Me too. This is the JavaOne I've missed for some years. I'll
miss the excellent beer in Thirsty Bear! Have fun!

Jon.
--
.
  Dr Jonathan Harley   .
   .   Email: [EMAIL PROTECTED]
   Zac Parkplatz Ltd   .   Office Telephone: 024 7633 1375
   www.parkplatz.net   .   Mobile: 079 4116 0423


Re: dataScroller not working, help please

2006-05-04 Thread joelus

I solved my own problem, seems like I HAVE to ask for help before I figure
things out!
Anyway, my dataTable / scroller was nested inside a  tag, which is
apparently a no no...
--
View this message in context: 
http://www.nabble.com/dataScroller-not-working%2C-help-please-t1556234.html#a4227432
Sent from the MyFaces - Users forum at Nabble.com.



dataScroller not working, help please

2006-05-04 Thread joelus

I have a dataTable / dataScroller nested in a tabbedPane, which is itself in
a nested Tile jsp.
The dataTable / dataScroller jsp is almost exactly the same as given in the
example.
It displays the table and the scroller as it should. The correct number of
pages according to the number of records, etc, which tells me the scroller
is connecting to the table (if I have less than 10 records the scroller
dissapears, if I have more than 10 it appears with 2 pages listed, so I
assume that's correct). The problem is that the scroller buttons / page
links don't actually do anything. It's like they are not links at all. When
I view the source of the example and compare it to the source of my page I
can see that there is a javascript function (getScrolling()) in the example
source which is missing on my page. 

Any ideas please? What am I doing wrong / missing?
 
I'm feeling pretty desperate now as I've been trying for days to get it
working, and searched the web for answers, to no avail...
--
View this message in context: 
http://www.nabble.com/dataScroller-not-working%2C-help-please-t1556234.html#a4227180
Sent from the MyFaces - Users forum at Nabble.com.



Re: Transfering data between pages.

2006-05-04 Thread Rogerio Pereira
Yes same managed-bean Rogerio. 
I suppose you were adding the results from the bean in popup page to the bean in main page.Yes, you is right, but if i use the same managed-bean the things will be harder to understand later.
-- Yours truly (Atenciosamente),Rogério


Disabled inputText Value

2006-05-04 Thread Uri Kalish








Use case:

A user fills a
value in an inputText field, checks a radio button that causes the field to
become disabled, and submits the form.

After the user
submits, the value received is null, no matter what the field displays on the
UI…

 

Is there a way
to retrieve that value although the field is disabled, or must I use an extra hidden
field and update it by _javascript_.





__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__





RE: subview id value added to child t:div

2006-05-04 Thread Conway. Fintan \(IT Solutions\)
Hi,

You can use forceId from MyFaces to force the id in HTML to be the id
that you use.

Regards,

Fintan

-Original Message-
From: fischman_98 [mailto:[EMAIL PROTECTED] 
Sent: 04 May 2006 00:35
To: users@myfaces.apache.org
Subject: f:subview id value added to child t:div



Why does the subview id get added to the child div id?  Is there any way
to stop this from happening?

Example:


.
.
.



The resulting HTML is:


.
.
.





--
View this message in context:
http://www.nabble.com/f%3Asubview-id-value-added-to-child-t%3Adiv-t15535
06.html#a4220453
Sent from the MyFaces - Users forum at Nabble.com.


* ** *** ** * ** *** ** * ** *** ** * 
This email and any files transmitted with it are confidential and 
intended solely for the use of the individual or entity to whom they 
are addressed. 
Any views or opinions presented are solely those of the author, and do not 
necessarily  represent those of ESB. 
If you have received this email in error please notify the sender. 
 
Although ESB scans e-mail and attachments for viruses, it does not guarantee 
that either are virus-free and accepts no liability for any damage sustained 
as a result of viruses. 
 
* ** *** ** * ** *** ** * ** *** ** *



escape in outputText - don't work?

2006-05-04 Thread Vladimir Figurov

Hi

I try getted non-escaped HTML out for national chars :



but in HTML Out I view only escaping chars: Выче

If I use a SUN implementation of Faces - this attribute (escape) - is 
excellent work.


How do?

--
Vladimir




RE: 2 forms on one page?

2006-05-04 Thread Michael Heinen








Thanks Catalin.

 

subForm sounds promising.

 

I wait for the next
version of MyFaces/Tomahawk/sandbox until I test it.

 

How stable is this
sandbox component?

I assume that 1 html form
is generated and not 1 for each subform.

Does subForm work with
both state saving methods?

 

Michael

 









From:
Catalin Kormos [mailto:[EMAIL PROTECTED] 
Sent: Mittwoch, 3. Mai 2006 20:14
To: MyFaces
 Discussion
Subject: Re: 2 forms on one page?



 

Hi,

Looks to me like you could use the subForm component from sandbox:
http://myfaces.apache.org/sandbox/subForm.html

HTH,
Catalin

Michael
 Heinen <[EMAIL PROTECTED]> wrote:



Hi
all,





 





I have another question:





 





Is it possible to define 2 forms on one page and that
only the submitted form is validated? 





e.g. buttonA submits formA and buttonB submits formB?





 





I have a datatable on my page with a detail pane.





The detail pane contains some fields in order to
update the detail data of the selected object (formA).





If the user selects multiple objects in the
datatable, then I have to show another form (formB) in order to update
different fields at once for the selected objects.





These fields have to be bound to different attributes
of my backing bean of course.





So if the user submits formB then the model of formA
should not be updated.





 





I want to switch the visibility of the 2 forms via
_javascript_ without a generating new server request.





Does JSF support the above scenario (e.g. with
subviews)?





Or is this a requirement that should be better
processed with ajax (which would be
more complex for me)?





 





Any help is highly appreciated again





Michael



 







Yahoo! Messenger with Voice. Make
PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.








Re: tiles support and the latest myfaces

2006-05-04 Thread Matthias Wessendorf

unfortunately it was renamed :-(


On 5/3/06, Wei Chiang <[EMAIL PROTECTED]> wrote:

Alin Dosoniu wrote:
> Hi,
>
> You have to change the view-handler to
> 
org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.
>
>
> There is a tomahawk between myfaces and application in path of class.

Thanks.  It works now.  It was careless of me not noticing the differences.

Wei

>
> Alin.
>
>> Greetings.
>>
>> Does the latest myfaces (1.1.4 & tomawak 1.1.3)  from the svn
>> repository still support tiles?
>>
>> I got  the following messages during application start up.   I was
>> able to see the named class from the Jar file, but the class loader
>> was not.
>>
>> Thanks in advance for any suggestions on how to fix it.
>>
>> Wei
>>
>>
>> ERROR 17:22:11,196 [halo] [main]
>> org.apache.myfaces.shared_impl.util.ClassUtils.simpleClassForName(161)
>>Class org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl
>> not found
>> java.lang.ClassNotFoundException:
>> org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl
>>at
>> 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
>>
>>at
>> 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
>>
>>at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>>at java.lang.Class.forName0(Native Method)
>>at java.lang.Class.forName(Class.java:242)
>>at
>> 
org.apache.myfaces.shared_impl.util.ClassUtils.classForName(ClassUtils.java:138)
>>
>>
>





--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
http://jroller.com/page/mwessendorf
mwessendorf-at-gmail-dot-com


RE: How to write a customized valdation, that validate by comparing one field to another_

2006-05-04 Thread Julian Ray
+1 for validateCompareTo. This is an extremely useful validator which we use
extensively. 

-Original Message-
From: Volker Weber [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 04, 2006 3:46 AM
To: MyFaces Discussion
Subject: Re: How to write a customized valdation, that validate by comparing
one field to another_

Hi,

there is a validateCompareTo tag in sandbox

http://myfaces.apache.org/sandbox/validateCompareTo.html
http://myfaces.apache.org/sandbox/tlddoc/s/validateCompareTo.html


Regards,
  Volker


Le Van wrote:
> You could do it using validator. Read "*JavaServer Faces" of Hans
> Bergsten.*
> Bjørn T Johansen wrote:
> 
>> I need to validate two fields on my webpage, two dates, and I need to 
>> check if one date is greater than the other. Is this possible? Have I 
>> access to the other fields from within my validate method or is there 
>> another way of doing this (or do I have to check this in my save 
>> method)?
>>
>>
>> Regards,
>>
>> BTJ
>>
>>  
>>
> 

--
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by concatenating my forename to
my senders domain.



RE: dynamically included subviews

2006-05-04 Thread Julian Ray
We actually do this at the moment but the JSPs are getting bloated as this
is the core of our reporting/charting framework and
there are potentially many reports facets that can be shown (20-30+). I was
looking for a more compact solution akin to using
Velocity templates which could be dynamicaly inserted into the JSP by the
backing bean.  Both tiles and Facelets require thay
I change the view hander for the entire app (all 120+ JSPs) which is
overkill to support just I page.

The other alternative is to build the view dynamically by inserting UI
components into the comoponent tree but this starts to break down the MVC
pattern.


-Original Message-
From: Le Van [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 04, 2006 4:38 AM
To: MyFaces Discussion
Subject: Re: dynamically included subviews

Julian Ray wrote:

> Does anyone know if this is possible, and if so, what is the correct 
> mechanism
>  
>
> 
>
> 
>
> 
>
> 
>
> 
>
> The JSP directive obviously cannot interpret the JSF value binding but 
> is there an alternative way to dyncamically include a page without 
> having to use tiles or facelets which seems to be overkill for this.
>  
> Thanks

Why you don't use rendered.
 



RE: Who called my bean?

2006-05-04 Thread Conway. Fintan \(IT Solutions\)
Title: Message



It was 
me!
 
Sorry, 
I won't do it again
 
8^)

  

* ** *** ** * ** *** ** * ** *** ** * 
This email and any files transmitted with it are confidential and 
intended solely for the use of the individual or entity to whom they 
are addressed. 
Any views or opinions presented are solely those of the author, and do not necessarily  represent those of ESB. 
If you have received this email in error please notify the sender. 
 
Although ESB scans e-mail and attachments for viruses, it does not guarantee 
that either are virus-free and accepts no liability for any damage sustained 
as a result of viruses. 
 
* ** *** ** * ** *** ** * ** *** ** *




Re: Where are org.apache.myfaces.shared_impl sources?

2006-05-04 Thread Matthias Wessendorf

under

http://myfaces.zones.apache.org/dist/maven-repository/org/apache/myfaces/shared/myfaces-shared-impl/2.0.1/

the sources are available as a jar

(or even go ahead and build it from scratch ;-))

On 5/3/06, Dennis Byrne <[EMAIL PROTECTED]> wrote:

shared package is copied to shared_impl and shared_tomahawk at build time.

Dennis Byrne

>-Original Message-
>From: Alexey Maslov [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, May 3, 2006 11:42 AM
>To: users@myfaces.apache.org
>Subject: Where are org.apache.myfaces.shared_impl sources?
>
>  I'm struggling to find sources of
>org.apache.myfaces.shared_impl package and
>subpackages. They are absent both from Maven 1.1.2
>source jar and
>http://svn.apache.org/repos/asf/myfaces/core/trunk svn
>repository.
>
>  Please point me in the right direction. Thanx a lot
>:)
>
>Regards,
>  Alexey
>
>Regards,
>  Alexey
>
>__
>Do You Yahoo!?
>Tired of spam?  Yahoo! Mail has the best spam protection around
>http://mail.yahoo.com
>






--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
http://jroller.com/page/mwessendorf
mwessendorf-at-gmail-dot-com


RE: 2 forms on one page?

2006-05-04 Thread Michael Heinen
Thanks Andrew.

What does this mean exactly with client side state saving?
Each form would have an own hidden field containing state information.
If formB is submitted, do I loose any data of formA?
Or is formA not touched and rendered the same way as before (assumed
that the same page is displayed again).

Michael


-Original Message-
From: Andrew Robinson [mailto:[EMAIL PROTECTED] 
Sent: Mittwoch, 3. Mai 2006 16:44
To: MyFaces Discussion
Subject: Re: 2 forms on one page?

I'm not sure about pure JSF, as I haven't really used it, but this is
very easy with facelets, just put in two forms.

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
http://www.w3.org/1999/xhtml";
  xmlns:h="http://java.sun.com/jsf/html";
  xmlns:f="http://java.sun.com/jsf/core";>
  

  
  

...
  


The whole view/subview may make this more complex in raw JSF. All your
state will be in the form (for client side state). The forms are just
normal HTML forms, so only the values in the submitted form will be
sent back, validated and updated.

Hope that helps,
-Andrew

On 5/3/06, Michael Heinen <[EMAIL PROTECTED]> wrote:
>
>
>
> Hi all,
>
>
>
> I have another question:
>
>
>
> Is it possible to define 2 forms on one page and that only the
submitted
> form is validated?
>
> e.g. buttonA submits formA and buttonB submits formB?
>
>
>
> I have a datatable on my page with a detail pane.
>
> The detail pane contains some fields in order to update the detail
data of
> the selected object (formA).
>
> If the user selects multiple objects in the datatable, then I have to
show
> another form (formB) in order to update different fields at once for
the
> selected objects.
>
> These fields have to be bound to different attributes of my backing
bean of
> course.
>
> So if the user submits formB then the model of formA should not be
updated.
>
>
>
> I want to switch the visibility of the 2 forms via javascript without
a
> generating new server request.
>
> Does JSF support the above scenario (e.g. with subviews)?
>
> Or is this a requirement that should be better processed with ajax
(which
> would be more complex for me)?
>
>
>
> Any help is highly appreciated again
>
> Michael




  1   2   >