Re: Subscription help

2008-01-14 Thread Dennis Byrne
http://myfaces.apache.org/mail-lists.html

On 1/13/08, Ravindra Adireddy [EMAIL PROTECTED] wrote:

 Hi all,

I am not able to subscribing to this mail group, can any one
 help me plzz.

 --
 Thanks and Regards
 Ravindra Adireddy




-- 
Dennis Byrne


MyFaces/Facelets Book Author

2008-01-11 Thread Dennis Byrne
We are currently writing a book called The Definitive Guide to Apache
MyFaces  Facelets for Apress Publishing. When published it will become the
first book focused on designing, developing and deploying applications built
on the MyFaces family of projects.

* JSF (General Overview)
* MyFaces (General Overview)
* Tomahawk (Covers major components  context of use)
* Trinidad
* Tobago
* Facelets
* Orchestra
* MyFaces Anti-Patterns


We have already received fantastic contributions from the MyFaces community
for the above submissions and it has been a very rewarding exercise so far.
At this time, we have approximately 280 pages of Technical Review Round 1
material. Our goal is to provide a comprehensive guide to all developers,
beginner  up, that are interested in leveraging MyFaces-related
technologies. We are well on the way to doing that, as the subject matter
list above would indicate.

Unfortunately, some unforeseen circumstances have resulted in one of our
lead authors to back out of the project leaving a place open for an aspiring
writer to join into the mix and close this publication out. This is a
fantastic opportunity for anyone looking to make a mark on the publishing
scene and giving back to a fantastic community and the foundation it belongs
to.

The potential author will be responsible for closing out the Apache Tomahawk
chapter (we have a draft version, but it needs work for it to be of value to
a reader) and polish up the introduction chapters for JSF/MyFaces. We are
looking for a person who can commit significant time over the coming 4 weeks
to close this book out and release for publication.

If interested, you can contact me and we can discuss contractual details. We
look forward to closing this out and publishing a book worthy of the MyFaces
community and the people that contribute to it.

Dennis Byrne


Re: Source code of myfaces and tomahawa 1.1.3

2007-05-15 Thread Dennis Byrne

http://svn.apache.org/viewvc/myfaces/tomahawk/tags/1_1_3/

http://svn.apache.org/viewvc/myfaces/core/tags/1_1_3/

Dennis Byrne

On 5/15/07, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:


 Where can I find the source code of myfaces and tomahawk 1.1.3?



Thanks in advance

Mario Buonopane



This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information. If you have
received it in error, please notify the sender immediately and delete the
original. Any other use of the email by you is prohibited.





--
Dennis Byrne


Call for Papers Opens for ApacheCon US 2007

2007-04-16 Thread Dennis Byrne

Call for Papers Opens for ApacheCon US 2007

The Call for Papers is now open for ApacheCon US, to be held November
12-16 at the Peachtree Westin, Atlanta. The conference will consist
of two day of tutorials (November 12-13) and three days of regular
conference sessions (November 14-16).

Please log in to the website at http://apachecon.com/html/login.html
to submit your proposal. Further details about fees and are
avaialable on the CFP form.

Topics appropriate for submission to this conference are manifold,
and may include but are not restricted to:

* ASF projects
* ASF-Incubated projects
* Scripting languages and dynamic content such as Java, Perl, Python,
Ruby, XSL, and PHP
* New technologies and broader initiatives such as Web Services and
Web 2.0
* Security and e-commerce, performance tuning, load balancing, and
high availability
* Business and community issues surrounding the ASF and Open Source

The paper submission deadline is Monday, 28 April 2007, Midnight GMT.

Thanks, and we hope to hear from you, and to see you in Atlanta.
--
The ApacheCon Planners
[EMAIL PROTECTED]


Re: Memory footprint of MyFaces

2007-01-05 Thread Dennis Byrne
Hello FaceKiller,

Can you run these metrics for both client and server side state saving?  Which 
of these are you using now?

Dennis Byrne

-Original Message-
From: FaceKiller [mailto:[EMAIL PROTECTED]
Sent: Friday, January 5, 2007 03:24 PM
To: users@myfaces.apache.org
Subject: Memory footprint of MyFaces


We observe some memory issue when loading large JSF tables (1000 rows). With
some profiling tool, we found that MyFaces seems to keep some big chunnk of
char[] in memory and is not able to GC it. 

Here is our test scenario: we have a non-face request come in to render a
facelet. We repeat the above request multiple times. After each request, we
use profiling tool to see what new objects are allocated and how big they
are. We found something consistent -- after each request, there will always
be one char[] allocated (size depends on how big the table is). The GC path
is as of following:

Char[]
 -- org.apache.jasper.runtime.BodyContentImpl
-- Objects are retained by instances of several classes
  -- org.apache.myfaces.taglib.core.ViewTag

one such char[] is created for every request to facelet. And that portion of
memory is not released. Class Tree for the above is as of following:
char[]
 -- cb of org.apache.jasper.runtime.BodyContentImpl
-- [0] of org.apache.jasper.runtime.BodyContentImpl[7]
  -- outs of org.apache.jasper.runtime.PageContextImpl
-- [3] of java.lang.Object[101]
  -- pool of org.apache.jasper.util.SimplePool
-- pool of org.apache.jasper.runtime.JspFactoryImpl
  -- deflt of javax.servket.jsp.JspFactory
-- [72] of java.lang.Object[321]
  -- elementData of java.util.Vector
classes of
org.apache.catalina.loader.StandardClassLoader

So after many requests, memory is built up and could not be freed by GC.
Does anyone have insight on this behavior? Thanks a lot.

Regards




Class
-- 
View this message in context: 
http://www.nabble.com/Memory-footprint-of-MyFaces-tf2927779.html#a8185213
Sent from the MyFaces - Users mailing list archive at Nabble.com.






Re: Performance Issue

2006-12-27 Thread Dennis Byrne
one question: when the beans declared in faces-config are created?  upon
request?
When will the app server destroy beans inside server, only after session
expired according to application config?

The beans declared in faces-config are created and destroyed according to scope 
(none, request, session and application ) and access.  For example, a request 
scope bean is created upon first access and marked for garbage completion 
(provided no other references to it) at the end of the request.  Scope is 
configured in you faces-config file.

 any other way to improve it?  I am considering switching to client state,
 and add a compression on the state.  Anyone has already done it?

Server side state saving is almost always faster than client side state saving, 
although it uses more memory.

Dennis Byrne




Re: Subject: expected a myfaces custom component class in package org.apache.myfaces.custom

2006-11-03 Thread Dennis Byrne
Matt,

HTML_BASIC may be the root of your problem.  JsCookMenu is a part of either 
core JSF tag lib renderers.  It is a member of MyFaces extended library.  Try 
removing the render-kit-id element.  Also, make sure this configuration file is 
correctly referenced in the deployment descriptor.

Dennis Byrne

-Original Message-
From: Matt Tyson [mailto:[EMAIL PROTECTED]
Sent: Friday, November 3, 2006 11:20 AM
To: users@myfaces.apache.org
Subject: Subject: expected a myfaces custom component class in package 
org.apache.myfaces.custom


Trying to extend the JSCookMenu renderer.  I subclassed
HtmlJSCookMenuRenderer and added a faces-config entry like this:

render-kit
render-kit-idHTML_BASIC/render-kit-id
 renderer
component-familyjavax.faces.Command/component-family
renderer-typeorg.apache.myfaces.JSCookMenu/renderer-type

renderer-classcom.company.toolbox.jsf.renderer.MyHtmlJSCookMenuRenderer/renderer-class
/renderer
/render-kit

But I get: expected a myfaces custom component class in package
org.apache.myfaces.custom

What am I not doing right?

Thanks very much.

Matt Tyson
--
View this message in context: 
http://www.nabble.com/Subject%3A-expected-a-myfaces-custom-component-class-in-package-org.apache.myfaces.custom-tf2568868.html#a7160628
Sent from the MyFaces - Users mailing list archive at Nabble.com.






Re: Subject: expected a myfaces custom component class in package org.apache.myfaces.custom

2006-11-03 Thread Dennis Byrne
JsCookMenu is a part of either core JSF tag lib renderers.

Oops.  JsCookMenu is *NOT* a part of either core JSF tag lib renderers.

Dennis Byrne

-Original Message-
From: Matt Tyson [mailto:[EMAIL PROTECTED]
Sent: Friday, November 3, 2006 11:20 AM
To: users@myfaces.apache.org
Subject: Subject: expected a myfaces custom component class in package 
org.apache.myfaces.custom


Trying to extend the JSCookMenu renderer.  I subclassed 
HtmlJSCookMenuRenderer and added a faces-config entry like this: 
 
render-kit 
render-kit-idHTML_BASIC/render-kit-id 
 renderer 
component-familyjavax.faces.Command/component-family 
renderer-typeorg.apache.myfaces.JSCookMenu/renderer-type 
   
renderer-classcom.company.toolbox.jsf.renderer.MyHtmlJSCookMenuRenderer/renderer-class
 
/renderer 
/render-kit 
 
But I get: expected a myfaces custom component class in package 
org.apache.myfaces.custom 
 
What am I not doing right? 
 
Thanks very much. 
 
Matt Tyson 
-- 
View this message in context: 
http://www.nabble.com/Subject%3A-expected-a-myfaces-custom-component-class-in-package-org.apache.myfaces.custom-tf2568868.html#a7160628
Sent from the MyFaces - Users mailing list archive at Nabble.com.









Re: Disabled with value binding expression

2006-10-31 Thread Dennis Byrne
I am trying to use the disabled attribute on some inputText boxes in my
application. However, everytime I try to use a binding like this
h:inputText disabled=#{mybackingBean.disabled} /

In both JSP and JSF, #{backingBeanThatDoesNotExist.propertyThatDoesNotExist} 
will not throw an exception; it will default to 'false'.  Whenever I find 
myself in your situation I double check expression path.

nothing happens. disabled is a Boolean field in the backing bean. I assume
it would auto translate to a string, but it doesnt appear to. I then tried
using JSTl to set a value a page scoped variable
c:set name=disabled value=true/
This does not work either when I change my input box to this
h:inputText disabled=#{disabled}/

Perhaps you have not included the c taglib header in the JSP file?  The page 
will silently skip the c:set tag in this case.

Dennis Byrne




Re: MyFaces and multithreading problem

2006-10-26 Thread Dennis Byrne
There is no multi-threading in the MyFaces implementation.  You have two 
threads accessing the same data because the data is in session scope.

You might want to hit Google and read up on single thread per request Servlet 
spec .

Dennis Byrne

-Original Message-
From: Irek Matysiewicz [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 26, 2006 09:24 AM
To: users@myfaces.apache.org
Subject: MyFaces and multithreading problem

We have a managed bean with session scope. It's used in one .jsp file. Usually 
only one thread uses this bean, and everything works ok. But today we 
discovered, that two threads access the same getter method of the bean at the 
same time, and this leads to serious problems. Both getter invocations come 
from MyFaces. Of course the simplest method is to use 'synchronized' attribute 
with all methods visible to MyFaces, but this may slow down our application.

Why does MyFaces use two threads here? Is there a better method than 
synchronized? Maybe some setting in a configuration file?


--
Jestes kierowca? To poczytaj!  http://link.interia.pl/f199e






Re: MyFaces and multithreading problem

2006-10-26 Thread Dennis Byrne
If the component renders a URL to a secondary resource ( .js file, image file ) 
then the browser issues a seperate HTTP request (assuming no client side cache 
hit).  The servlet container will assign a free thread to handle each request.

Dennis Byrne

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 26, 2006 10:24 AM
To: 'MyFaces Discussion'
Subject: Re: MyFaces and multithreading problem

I'm not entirely sure about the threading model that MyFaces uses, however
I have noticed that callbacks from the extention filter may be on
different threads.

Daniel

 By definition, one request is only processed by one execution thread. I
 don't thins myfaces starts a new thread in order to do things (but in
 fact,
 I cannot confirm it). What I've found some times is a double submit issue
 (of course nothing to do with myfaces).

 Check that you are not submit the same form two times.

 Ricardo.


 On 26 Oct 2006 15:24:15 +0200, Irek Matysiewicz [EMAIL PROTECTED] wrote:

 We have a managed bean with session scope. It's used in one .jsp file.
 Usually only one thread uses this bean, and everything works ok. But
 today
 we discovered, that two threads access the same getter method of the
 bean at
 the same time, and this leads to serious problems. Both getter
 invocations
 come from MyFaces. Of course the simplest method is to use
 'synchronized'
 attribute with all methods visible to MyFaces, but this may slow down
 our
 application.

 Why does MyFaces use two threads here? Is there a better method than
 synchronized? Maybe some setting in a configuration file?


 --
 Jestes kierowca? To poczytaj!  http://link.interia.pl/f199e










Re: status of tiles support

2006-10-26 Thread Dennis Byrne
Hi Matze,

Am I the only one who feels the Tiles support and javascriptless feature should 
officially be retired ?  To my knowledge these haven't worked well since the 
good ol' 1.0.9 days :)

Dennis Byrne

-Original Message-
From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 26, 2006 01:40 PM
To: 'MyFaces Discussion'
Subject: Re: status of tiles support

it is this clazz

org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl

To be honest, you should try Facelets instead of Tiles for templating a JSF app

-Matthias

On 10/26/06, Michael Südkamp [EMAIL PROTECTED] wrote:
 Hello,

 I wonder what is the status of the tiles support?

 The myfaces-examples are still at version 1.1.1 and the included tiles
 web-app will not run with the the 1.1.3 libs (and probably also not with
 1.1.4) (java.lang.ClassNotFoundException:
 org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl).

 The wiki topic at http://wiki.apache.org/myfaces/Tiles_and_JSF is also not
 up to date.

 Can anyone help me how to set it up?

 Michael




-- 
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com





Re: So let me get this straight....

2006-10-25 Thread Dennis Byrne
Hello monkeyden,

You may want to look at the 'required' attribute for the JSF tag you are using.

Dennis Byrne

-Original Message-
From: monkeyden [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 25, 2006 10:23 AM
To: users@myfaces.apache.org
Subject: So let me get this straight


Based on what I've read on this forum, which happens to be a very valuable
resource of mine, I find this to be true (corerect me if I'm wrong and
please excuse my fledgling knowledge of JSF):

You cannot use a validator to do null value validation on a field, because
JSF doesn't call the validator if there is no value to validate.  As a
result, you cannot print custom error messages on the client, unless of
course you validate in the backing bean.
-- 
View this message in context: 
http://www.nabble.com/So-let-me-get-this-straight-tf2507926.html#a6993052
Sent from the MyFaces - Users mailing list archive at Nabble.com.






Re: Overriding FacesIO

2006-10-20 Thread Dennis Byrne
already did so?

Dennis Byrne

-Original Message-
From: Venia [mailto:[EMAIL PROTECTED]
Sent: Friday, October 20, 2006 02:55 AM
To: users@myfaces.apache.org
Subject: Re: Overriding FacesIO


I already did so, but the question is how it is possible to plug new version
of FacesIO without replacing the original one in the sandbox dist.


Thanks.


Dennis Byrne wrote:
 
 Perhaps you can elaborate on FacesIO ?  You may want to try the ADF
 mailing list if this is not MyFaces specific.
 
 Dennis Byrne
 
-Original Message-
From: Venia [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 19, 2006 10:21 AM
To: users@myfaces.apache.org
Subject: Overriding FacesIO


Hi,

How is it possible to supply my FacesIO instead of one provided with
myfaces?

The problem is that we are using Oracle ADF and there are different hidden
fields used to save the state than those specified in the FacesIO.


Thanks,


Veniamin Goldin
-- 
View this message in context:
http://www.nabble.com/Overriding-FacesIO-tf2473753.html#a6897783
Sent from the MyFaces - Users mailing list archive at Nabble.com.


 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Re%3A-Overriding-FacesIO-tf2474456.html#a6911104
Sent from the MyFaces - Users mailing list archive at Nabble.com.






Re: junit extentions for JSF

2006-10-20 Thread Dennis Byrne
Try the Shale test suite.

Dennis Byrne

-Original Message-
From: Madhav Bhargava [mailto:[EMAIL PROTECTED]
Sent: Friday, October 20, 2006 04:34 AM
To: 'MyFaces Discussion'
Subject: junit extentions for JSF


Are there any JUnit extensions for JSF ready to use?



I have come across the following:

https://jsftest.dev.java.net/ - This project is still in its infancy at
present.

http://raibledesigns.com/wiki/Wiki.jsp?page=JSFBeans - this link gives
some hints at how to test a JSF application.



However I am looking for something that I can use right away as I am
running short of time.



Thanks  Regards,

Madhav Bhargava

Ext: 74371





 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not to copy, disclose, or distribute this e-mail or its contents to any other 
person and any such actions are unlawful. This e-mail may contain viruses. 
Infosys has taken every reasonable precaution to minimize this risk, but is 
not liable for any damage you may sustain as a result of any virus in this 
e-mail. You should carry out your own virus checks before opening the e-mail 
or attachment. Infosys reserves the right to monitor and review the content of 
all messages sent to or from this e-mail address. Messages sent to or from 
this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***




Re: Overriding FacesIO

2006-10-19 Thread Dennis Byrne
Perhaps you can elaborate on FacesIO ?  You may want to try the ADF mailing 
list if this is not MyFaces specific.

Dennis Byrne

-Original Message-
From: Venia [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 19, 2006 10:21 AM
To: users@myfaces.apache.org
Subject: Overriding FacesIO


Hi,

How is it possible to supply my FacesIO instead of one provided with
myfaces?

The problem is that we are using Oracle ADF and there are different hidden
fields used to save the state than those specified in the FacesIO.


Thanks,


Veniamin Goldin
-- 
View this message in context: 
http://www.nabble.com/Overriding-FacesIO-tf2473753.html#a6897783
Sent from the MyFaces - Users mailing list archive at Nabble.com.






Re: Integrate Hibernate with MyFaces

2006-10-13 Thread Dennis Byrne
You can use Hibernat and MyFaces without Spring.

Dennis Byrne

-Original Message-
From: ying lcs [mailto:[EMAIL PROTECTED]
Sent: Friday, October 13, 2006 12:39 AM
To: 'MyFaces Discussion'
Subject: Integrate Hibernate with MyFaces

Hi,

I am reading  Hibernate with MyFaces integeration here:
http://wiki.apache.org/myfaces/Hibernate_And_MyFaces

I would like to know if I need to use Spring for my  Hibernate and
MyFaces integeration.

Thanks.





Re: myfaces example and blank.war

2006-10-13 Thread Dennis Byrne
From your link:

There are two possible ways to start off with MyFaces, one is to start from the 
example-app:

* If you want to have it simple, take the myfaces-X.X.X-examples.zip you 
downloaded before for looking at the examples, and extract the blank.war file 
(MyFaces binary)
* Rename the blank.war file to blank.zip, and extract this file - you have 
a working directory structure for a MyFaces application at hand after this step.

(click on 'MyFaces binary')

Dennis Byrne

-Original Message-
From: ying lcs [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 12, 2006 11:11 PM
To: users@myfaces.apache.org
Subject: myfaces example and blank.war

From the get started guide, it said I can find the myfaces example and
blank.war here: http://myfaces.apache.org/gettingstarted.html

But I can't find it there. Can someone please tell me where I can find
my faces example and the blankl.war for the lastest myfaces?

Thank you.





Re: getRenderKitId exception

2006-09-29 Thread Dennis Byrne
He's right, your code is simply throwing the exception when it discovers 
that getRenderKitId() returns null. So you should be asking why the ID 
is null...

The spec talks about this a little.
  
http://java.sun.com/javaee/javaserverfaces/1.1_01/docs/api/javax/faces/component/UIViewRoot.html#getRenderKitId()

Dennis Byrne

Dennis Byrne wrote:
 The stack trace suggests this is not happending when you call 
 UIViewRoot.getRenderKitId().
 
 Is this code from Nico in the MyFaces repository?
 
 Dennis Byrne
 
 -Original Message-
 From: fischman_98 [mailto:[EMAIL PROTECTED]
 Sent: Thursday, September 28, 2006 09:36 PM
 To: users@myfaces.apache.org
 Subject: getRenderKitId exception


 I'm getting an exception (see below) when calling
 uiViewRoot.getRenderKitId().  I've started reading about renderers with
 custom components, but I'm not doing anything special here...

 Anyone know how to solve this?

 BTW - I'm using this from excellent code provide by Nico Krijnen Mar 14,
 2006; 09:58am...
 http://www.nabble.com/FW%3A-How-can-i-manually-save-and-restore-a-view%27s-state--tf1279120.html#a3397984
 http://www.nabble.com/FW%3A-How-can-i-manually-save-and-restore-a-view%27s-state--tf1279120.html#a3397984
  

 if (uiViewRoot.getRenderKitId() == null) {
// Just to be sure...
// uiViewRoot.setRenderKitId(renderKitId);
 System.out.println(4.2);
 throw new RuntimeException(FIX ME IF THIS HAPPENS);
 }

 java.lang.RuntimeException: FIX ME IF THIS HAPPENS
 at
 com.ngsimages.history.ViewState.restoreComponentState(ViewState.java:151)
 at com.ngsimages.history.ViewState.restoreView(ViewState.java:94)
 at com.ngsimages.history.ViewState.restore(ViewState.java:57)
 at
 com.ngsimages.security.AuthenticationBean.login(AuthenticationBean.java:135)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at
 org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
 at
 org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
 at javax.faces.component.UICommand.broadcast(UICommand.java:106)
 at 
 javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
 at 
 javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168)
 at
 org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
 at
 org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
 at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
 at
 org.hibernate.com.ngsimages.persistence.HibernateSessionRequestFilter.doFilter(HibernateSessionRequestFilter.java:40)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
 at
 org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
 at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at
 org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
 at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
 at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
 at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520

Re: getRenderKitId returning null

2006-09-29 Thread Dennis Byrne
At which point in the lifecycle are you calling this method?  Which version of 
MyFaces?  

See this [1] for a very looong history on the subject.  The behavior of this 
method has changed across JSF specs and JSF implementations accordingly.

Dennis Byrne

[1] https://issues.apache.org/jira/browse/MYFACES-1155

-Original Message-
From: fischman_98 [mailto:[EMAIL PROTECTED]
Sent: Friday, September 29, 2006 11:29 AM
To: users@myfaces.apache.org
Subject: Re: getRenderKitId returning null


You're right and the title will lead to confusion...what I meant to ask is...

Why is the call to getRenderKit return null?

I have nothing set in faces config regarding Rendererso any thoughts!?!?



Jeff Bischoff wrote:
 
 He's right, your code is simply throwing the exception when it discovers 
 that getRenderKitId() returns null. So you should be asking why the ID 
 is null...
 
 Dennis Byrne wrote:
 The stack trace suggests this is not happending when you call
 UIViewRoot.getRenderKitId().
 
 Is this code from Nico in the MyFaces repository?
 
 Dennis Byrne
 
 -Original Message-
 From: fischman_98 [mailto:[EMAIL PROTECTED]
 Sent: Thursday, September 28, 2006 09:36 PM
 To: users@myfaces.apache.org
 Subject: getRenderKitId exception


 I'm getting an exception (see below) when calling
 uiViewRoot.getRenderKitId().  I've started reading about renderers with
 custom components, but I'm not doing anything special here...

 Anyone know how to solve this?

 BTW - I'm using this from excellent code provide by Nico Krijnen Mar 14,
 2006; 09:58am...
 http://www.nabble.com/FW%3A-How-can-i-manually-save-and-restore-a-view%27s-state--tf1279120.html#a3397984
 http://www.nabble.com/FW%3A-How-can-i-manually-save-and-restore-a-view%27s-state--tf1279120.html#a3397984
  

 if (uiViewRoot.getRenderKitId() == null) {
// Just to be sure...
// uiViewRoot.setRenderKitId(renderKitId);
System.out.println(4.2);
throw new RuntimeException(FIX ME IF THIS HAPPENS);
 }

 java.lang.RuntimeException: FIX ME IF THIS HAPPENS
at
 com.ngsimages.history.ViewState.restoreComponentState(ViewState.java:151)
at com.ngsimages.history.ViewState.restoreView(ViewState.java:94)
at com.ngsimages.history.ViewState.restore(ViewState.java:57)
at
 com.ngsimages.security.AuthenticationBean.login(AuthenticationBean.java:135)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
 org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
at
 org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
at javax.faces.component.UICommand.broadcast(UICommand.java:106)
at
 javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
at
 javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168)
at
 org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
at
 org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at
 org.hibernate.com.ngsimages.persistence.HibernateSessionRequestFilter.doFilter(HibernateSessionRequestFilter.java:40)
at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at
 org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
 org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104

Re: getRenderKitId exception

2006-09-29 Thread Dennis Byrne
It's possible his code worked on an older JSF implementation.  You may want to 
look into sunstituting RenderKitFactory.HTML_BASIC_RENDER_KIT .

Dennis Byrne

-Original Message-
From: fischman_98 [mailto:[EMAIL PROTECTED]
Sent: Friday, September 29, 2006 11:37 AM
To: users@myfaces.apache.org
Subject: Re: getRenderKitId exception


Dennis,

I found this code in nabbleI provided the link...

Thanks for the reply, and as was mentioned in a reply, I titled this
question incorrectly...I should have asked why the GetRenderKitId is
returning null...any thoughts?

Thanks.



Dennis Byrne wrote:
 
 The stack trace suggests this is not happending when you call
 UIViewRoot.getRenderKitId().
 
 Is this code from Nico in the MyFaces repository?
 
 Dennis Byrne
 
-Original Message-
From: fischman_98 [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 28, 2006 09:36 PM
To: users@myfaces.apache.org
Subject: getRenderKitId exception


I'm getting an exception (see below) when calling
uiViewRoot.getRenderKitId().  I've started reading about renderers with
custom components, but I'm not doing anything special here...

Anyone know how to solve this?

BTW - I'm using this from excellent code provide by Nico Krijnen Mar 14,
2006; 09:58am...
http://www.nabble.com/FW%3A-How-can-i-manually-save-and-restore-a-view%27s-state--tf1279120.html#a3397984
http://www.nabble.com/FW%3A-How-can-i-manually-save-and-restore-a-view%27s-state--tf1279120.html#a3397984
 

if (uiViewRoot.getRenderKitId() == null) {
// Just to be sure...
// uiViewRoot.setRenderKitId(renderKitId);
 System.out.println(4.2);
 throw new RuntimeException(FIX ME IF THIS HAPPENS);
}

java.lang.RuntimeException: FIX ME IF THIS HAPPENS
 at
com.ngsimages.history.ViewState.restoreComponentState(ViewState.java:151)
 at com.ngsimages.history.ViewState.restoreView(ViewState.java:94)
 at com.ngsimages.history.ViewState.restore(ViewState.java:57)
 at
com.ngsimages.security.AuthenticationBean.login(AuthenticationBean.java:135)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at
org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
 at
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
 at javax.faces.component.UICommand.broadcast(UICommand.java:106)
 at
javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
 at
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168)
 at
org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
 at
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
 at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
 at
org.hibernate.com.ngsimages.persistence.HibernateSessionRequestFilter.doFilter(HibernateSessionRequestFilter.java:40)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
 at
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
 at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
 at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
 at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
 at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at
org.apache.catalina.core.StandardEngineValve.invoke

Re: getRenderKitId exception

2006-09-28 Thread Dennis Byrne
The stack trace suggests this is not happending when you call 
UIViewRoot.getRenderKitId().

Is this code from Nico in the MyFaces repository?

Dennis Byrne

-Original Message-
From: fischman_98 [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 28, 2006 09:36 PM
To: users@myfaces.apache.org
Subject: getRenderKitId exception


I'm getting an exception (see below) when calling
uiViewRoot.getRenderKitId().  I've started reading about renderers with
custom components, but I'm not doing anything special here...

Anyone know how to solve this?

BTW - I'm using this from excellent code provide by Nico Krijnen Mar 14,
2006; 09:58am...
http://www.nabble.com/FW%3A-How-can-i-manually-save-and-restore-a-view%27s-state--tf1279120.html#a3397984
http://www.nabble.com/FW%3A-How-can-i-manually-save-and-restore-a-view%27s-state--tf1279120.html#a3397984
 

if (uiViewRoot.getRenderKitId() == null) {
// Just to be sure...
// uiViewRoot.setRenderKitId(renderKitId);
   System.out.println(4.2);
   throw new RuntimeException(FIX ME IF THIS HAPPENS);
}

java.lang.RuntimeException: FIX ME IF THIS HAPPENS
   at
com.ngsimages.history.ViewState.restoreComponentState(ViewState.java:151)
   at com.ngsimages.history.ViewState.restoreView(ViewState.java:94)
   at com.ngsimages.history.ViewState.restore(ViewState.java:57)
   at
com.ngsimages.security.AuthenticationBean.login(AuthenticationBean.java:135)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at
org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
   at
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
   at javax.faces.component.UICommand.broadcast(UICommand.java:106)
   at 
 javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
   at 
 javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168)
   at
org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
   at
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
   at
org.hibernate.com.ngsimages.persistence.HibernateSessionRequestFilter.doFilter(HibernateSessionRequestFilter.java:40)
   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
   at
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
   at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
   at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
   at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
   at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
   at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
   at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
   at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
   at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
   at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
   at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
   at 
 org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
   at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
   at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection

Re: Switching between RI and MyFaces

2006-09-25 Thread Dennis Byrne
No way dude :)  The TLD has got to be in the classpath somewhere.  Try cleaning 
out the tomcat work dir, or double check the web.xml .  

BTW, if anyone knows anything about the TLD cache mechanism in tomcat, please 
put it in this thread.  

Dennis Byrne

-Original Message-
From: Jefferson Parke [mailto:[EMAIL PROTECTED]
Sent: Monday, September 25, 2006 10:39 PM
To: users@myfaces.apache.org
Subject: Switching between RI and MyFaces

I'm trying to find an easy way to switch back and forth between RI and
MyFaces.  As I understand it, it can be as easy as replacing jsf-api.jar and
jsf-impl.jar with myfaces-api.jar and myfaces-impl.jar and vice versa.  For
me, when I try to switch from MyFaces back to RI (not for good mind you! :))
I replace the jars as described and for some reason I get the following
exception:

2006-09-25 20:31:04 StandardContext[/MyProject]Error configuring application
listener of class org.apache.myfaces.webapp.StartupServletContextListener
java.lang.ClassNotFoundException:
org.apache.myfaces.webapp.StartupServletContextListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(
WebappClassLoader.java:1340)
at org.apache.catalina.loader.WebappClassLoader.loadClass(
WebappClassLoader.java:1189)
at org.apache.catalina.core.StandardContext.listenerStart(
StandardContext.java:3775)
at org.apache.catalina.core.StandardContext.start(StandardContext.java
:4343)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java
:478)
at org.apache.catalina.core.StandardService.start(StandardService.java
:480)
at org.apache.catalina.core.StandardServer.start(StandardServer.java
:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)

I've checked web.xml and faces-config.xml and neither references MyFaces.
My understanding is that myfaces_core.tld in myfaces-impl.jar contains the
reference to StartupServletContextListener but clearly that tld is of no
consequence because myfaces-impl.jar is not in my classpath (otherwise it
would have also found StartupServletContextListener to begin with).

Can anyone suggest other files that may reference MyFaces, and
StartupServletContextListener in particular?  Is my understanding about how
to switch back and forth correct?

Thanks for any help.

- Jeff





Re: NotSerializableException: org.apache.catalina.connector.RequestFacade

2006-09-18 Thread Dennis Byrne
Please make sure your application is not serializing the request.  You don't 
want this :) .

Dennis Byrne

-Original Message-
From: subendu1 [mailto:[EMAIL PROTECTED]
Sent: Monday, September 18, 2006 01:22 AM
To: users@myfaces.apache.org
Subject: NotSerializableException: org.apache.catalina.connector.RequestFacade


Hi,

I am using client side sate saving method and the page has t:saveState for
couple of properties of my bean.

On clicking the commandbutton, i get this error.

I am using myFaces 1.1.3 and tomahawk 1.1.3

***
10:40:06,850 INFO  [STDOUT] javax.faces.FacesException:
java.io.NotSerializableException:
org.apache.catalina.connector.RequestFacade
10:40:06,860 INFO  [STDOUT]at
org.apache.myfaces.shared_impl.util.StateUtils.getAsByteArray(StateUtils.java:167)
10:40:06,870 INFO  [STDOUT]at
org.apache.myfaces.shared_impl.util.StateUtils.construct(StateUtils.java:136)
10:40:06,870 INFO  [STDOUT]at
org.apache.myfaces.renderkit.html.HtmlResponseStateManager.writeState(HtmlResponseStateManager.java:102)
10:40:06,880 INFO  [STDOUT]at
org.apache.myfaces.application.jsp.JspStateManagerImpl.writeState(JspStateManagerImpl.java:430)
10:40:06,880 INFO  [STDOUT]at
org.apache.myfaces.taglib.core.ViewTag.doAfterBody(ViewTag.java:145)
10:40:06,880 INFO  [STDOUT]at
org.apache.jsp.layouts.EFormsLayout_jsp._jspx_meth_f_view_0(org.apache.jsp.layouts.EFormsLayout_jsp:135)
10:40:06,880 INFO  [STDOUT]at
org.apache.jsp.layouts.EFormsLayout_jsp._jspService(org.apache.jsp.layouts.EFormsLayout_jsp:70)
10:40:06,880 INFO  [STDOUT]at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
10:40:06,880 INFO  [STDOUT]at
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
10:40:06,880 INFO  [STDOUT]at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
10:40:06,880 INFO  [STDOUT]at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
10:40:06,890 INFO  [STDOUT]at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
10:40:06,890 INFO  [STDOUT]at
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
10:40:06,890 INFO  [STDOUT]at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
10:40:06,890 INFO  [STDOUT]at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
10:40:06,890 INFO  [STDOUT]at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
10:40:06,890 INFO  [STDOUT]at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
10:40:06,890 INFO  [STDOUT]at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
10:40:06,890 INFO  [STDOUT]at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
10:40:06,890 INFO  [STDOUT]at
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:416)
10:40:06,890 INFO  [STDOUT]at
org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.dispatch(JspTilesViewHandlerImpl.java:233)
10:40:06,890 INFO  [STDOUT]at
org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.renderView(JspTilesViewHandlerImpl.java:219)
10:40:06,890 INFO  [STDOUT]at
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
10:40:06,890 INFO  [STDOUT]at
javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
10:40:06,890 INFO  [STDOUT]at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
10:40:06,890 INFO  [STDOUT]at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
10:40:06,890 INFO  [STDOUT]at
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:97)
10:40:06,890 INFO  [STDOUT]at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
10:40:06,890 INFO  [STDOUT]at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
10:40:06,890 INFO  [STDOUT]at
com.hp.bpo.framework.startup.ADSynchronizationFilter.doFilter(ADSynchronizationFilter.java:70)
10:40:06,890 INFO  [STDOUT]at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
10:40:06,890 INFO  [STDOUT]at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

-- 
View this message in context: 
http://www.nabble.com/NotSerializableException%3A-org.apache.catalina.connector.RequestFacade-tf2289126.html#a6357902
Sent from the MyFaces - Users forum at Nabble.com.






Re: Best practices for choosing managed bean scope

2006-09-18 Thread Dennis Byrne
Naresh,

I would stick to the same knowledge you've used for scoping decisions in any 
web app.  I have tended to favor request scope for the reasons you have 
mentioned.  You may want to check out t:saveState and t:updateActionListener if 
you have not already.  I think most experienced JSF developers will agree this 
unfortunately makes application development more expensive because of the 
learning curve and work required to manage state over a stateless protocol.

I place read only managed beans in app scope.

Dennis Byrne

-Original Message-
From: Naresh Bhatia [mailto:[EMAIL PROTECTED]
Sent: Monday, September 18, 2006 09:39 PM
To: 'MyFaces Discussion'
Subject: Best practices for choosing managed bean scope

What are the best practices for choosing managed bean scope? In the
past, I have been avoiding session scope in favor of request scope for
obvious reasons (memory requirements, no need for session failover etc).
But I see that many JSF examples put beans in session scope without
explaining why this is needed. For example, the Trinidad TreeTable demo
puts its managed beans in session. Is this really necessary? Are there
any best practices in trying to decide the scope of managed beans?

Thanks.
Naresh





Re: Best practices for choosing managed bean scope

2006-09-18 Thread Dennis Byrne
I think Adam Winer was developing something to improve client side state 
saving.  Not sure if this made it into the code base.  If you are planning on a 
system with a large # of simultaneous requests, you may want to do some 
preliminary stress testing with client side state saving.

Dennis Byrne

-Original Message-
From: Naresh Bhatia [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 19, 2006 12:38 AM
To: 'MyFaces Discussion'
Subject: RE: Best practices for choosing managed bean scope

Thanks Dennis. I briefly looked at t:saveState and
t:updateActionListener - don't think I understand them right now. You
are right - the learning curve is pretty steep. Also doesn't Trinidad
have some facilities that are supposed to be more efficient for saving
state (org.apache.myfaces.trinidad.CLIENT_STATE_METHOD)?

Naresh Bhatia
Expert, Platform | Sapient
desk: +1.617.761.1771

-Original Message-
From: Dennis Byrne [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 19, 2006 12:22 AM
To: MyFaces Discussion
Subject: Re: Best practices for choosing managed bean scope

Naresh,

I would stick to the same knowledge you've used for scoping decisions in
any web app.  I have tended to favor request scope for the reasons you
have mentioned.  You may want to check out t:saveState and
t:updateActionListener if you have not already.  I think most
experienced JSF developers will agree this unfortunately makes
application development more expensive because of the learning curve and
work required to manage state over a stateless protocol.

I place read only managed beans in app scope.

Dennis Byrne

-Original Message-
From: Naresh Bhatia [mailto:[EMAIL PROTECTED]
Sent: Monday, September 18, 2006 09:39 PM
To: 'MyFaces Discussion'
Subject: Best practices for choosing managed bean scope

What are the best practices for choosing managed bean scope? In the
past, I have been avoiding session scope in favor of request scope for
obvious reasons (memory requirements, no need for session failover
etc).
But I see that many JSF examples put beans in session scope without
explaining why this is needed. For example, the Trinidad TreeTable demo
puts its managed beans in session. Is this really necessary? Are there
any best practices in trying to decide the scope of managed beans?

Thanks.
Naresh







Re: the sinful JSF in JSP

2006-09-15 Thread Dennis Byrne
Boris, don't let ideas like this influence your development. Despite a handful 
of well known incompatibilities [1], there is nothing wrong with writing 
applications where HTML, JSF, JSP, JSTL and servlets are mixed, just as there 
is nothing wrong with mixing JDBC and an ORM.

I really wish so many folks in the JSF community hadn't promoted this idea. It 
has been my observation that most of these individuals fall into two 
categories.  There are experts who oversold JSF.  The rest are quite new to the 
field, and are eager to latch on to any kind of 'hard-and-fast' rule in 
response to so much complexity and confusion that comes w/ each new framework.

Dennis Byrne

[1] http://www.onjava.com/pub/a/onjava/2004/06/09/jsf.html

-Original Message-
From: Iordanov, Borislav \(GIC\) [mailto:[EMAIL PROTECTED]
Sent: Friday, September 15, 2006 02:00 PM
To: 'MyFaces Discussion'
Subject: the sinful JSF in JSP

Guys,

I know it's anathema to use JSF with JSPs, but since people have already
invested in JSP, it's kind of unavoidable. Also, the mixup of the two
technologies is promoted by the JSF spec team.

Now, let's say I want to have a paragraph with text, where the text
comes from some managed bean. I do this:

p
h:outputText value=myBean.text/
/p

This doesn't work because the execution flow of the JSF model doesn't
correspond to the flow of source code in my JSP page. Is there a
standard way to overcome this problem?

Thanks,
Bolerio





Re: the sinful JSF in JSP

2006-09-15 Thread Dennis Byrne
p
h:outputText value=myBean.text/
/p

You will have to wrap the p tags in f:verbatim tags.  You may also try the 
t:html tag ( tomahawk tag library ).  Facelets is another option.

Bolerio

Dennis Byrne




Re: the sinful JSF in JSP

2006-09-15 Thread Dennis Byrne
They have been fixed in JSF 1.2 .

Dennis Byrne

-Original Message-
From: Iordanov, Borislav \(GIC\) [mailto:[EMAIL PROTECTED]
Sent: Friday, September 15, 2006 02:46 PM
To: 'MyFaces Discussion'
Subject: RE: the sinful JSF in JSP 

Thanks for the pointer!

JSF has been in development for more than 5 years now, and its
integration with JSP was explicitly taken into account since the very
beginning. Those are not minor incompatibilities, they are very close to
show stoppers! And honestly, the fact that they are well-known and
discussed doesn't make them any less serious and surprising (well,
that's being polite - actually I find them ridiculous; I find it sad
that, yet again as it so often happens in our industry, a company has
enough power to practically impose technological standards, but then
hires people with the wrong set of competencies to develop them).

Best,
Bolerio

PS I apologize for the rant.

-Original Message-
From: Dennis Byrne [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 15, 2006 2:28 PM
To: MyFaces Discussion
Subject: Re: the sinful JSF in JSP 

Boris, don't let ideas like this influence your development. Despite a
handful of well known incompatibilities [1], there is nothing wrong with
writing applications where HTML, JSF, JSP, JSTL and servlets are mixed,
just as there is nothing wrong with mixing JDBC and an ORM.

I really wish so many folks in the JSF community hadn't promoted this
idea. It has been my observation that most of these individuals fall
into two categories.  There are experts who oversold JSF.  The rest are
quite new to the field, and are eager to latch on to any kind of
'hard-and-fast' rule in response to so much complexity and confusion
that comes w/ each new framework.

Dennis Byrne

[1] http://www.onjava.com/pub/a/onjava/2004/06/09/jsf.html

-Original Message-
From: Iordanov, Borislav \(GIC\) [mailto:[EMAIL PROTECTED]
Sent: Friday, September 15, 2006 02:00 PM
To: 'MyFaces Discussion'
Subject: the sinful JSF in JSP 

Guys,

I know it's anathema to use JSF with JSPs, but since people have
already
invested in JSP, it's kind of unavoidable. Also, the mixup of the two
technologies is promoted by the JSF spec team. 

Now, let's say I want to have a paragraph with text, where the text
comes from some managed bean. I do this:

p
h:outputText value=myBean.text/
/p

This doesn't work because the execution flow of the JSF model doesn't
correspond to the flow of source code in my JSP page. Is there a
standard way to overcome this problem? 

Thanks,
Bolerio








Re: Tomahawk 1.1.3 on JSF 1.2 RI problem

2006-09-15 Thread Dennis Byrne
Tomahawk components work great with MyFaces 1.1 implementations and the 1.1 RI 
only.  If you choose to move to JSF 1.2, you are basically leaving a rich third 
party component market behind for now.

Dennis Byrne

-Original Message-
From: William Huang [mailto:[EMAIL PROTECTED]
Sent: Friday, September 15, 2006 02:58 PM
To: 'MyFaces Discussion'
Subject: Tomahawk 1.1.3 on JSF 1.2 RI problem

I recently upgrade to JSF 1.2 from MyFaces 1.1.3, my tomahawk tree2 doesnt
seem to work correctly, it displays the tree, but the attributes like
clientSideToggle=false showRootNode=false showNav=false
showLines=false are all broken.

Thanks,
Bill

Disclaimer: This electronic mail and any attachments are confidential and may 
be privileged. If you are not the intended recipient, please notify the sender 
immediately by replying to this email, and destroy all copies of this email 
and any attachments. Thank you.






Re: initialization of state serialization within a portal environment

2006-09-12 Thread Dennis Byrne
Hi Borislav,

I am the author of your problem, but I am not a Portlet developer.  Perhaps I 
can help you fix this and you can educate me more on portlets?

Why isn't StartupServletContextListener is called?

What happens if you can fire something like this as your application starts ...

if(servletContext.getInitParameter(StateUtils.INIT_SECRET) != null || 
servletContext.getInitParameter(StateUtils.INIT_SECRET.toLowerCase()) != null)
StateUtils.initSecret(servletContext);

Which version of MyFaces are you using?

If anyone has ideas as to how MyFaces can fix this, be heard here.

Dennis Byrne

-Original Message-
From: Iordanov, Borislav \(GIC\) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 12, 2006 04:21 PM
To: users@myfaces.apache.org
Subject: initialization of state serialization within a portal environment

Hi,

 

I get this in WebSphere Portal:

 

Caused by: java.lang.NullPointerException: serialFactory

[9/12/06 16:00:33:839 EDT] 5fd004e0 SystemErr R   at
org.apache.myfaces.shared_impl.util.StateUtils.getAsByteArray(StateUtils
.java:174)

[9/12/06 16:00:33:839 EDT] 5fd004e0 SystemErr R   at
org.apache.myfaces.shared_impl.util.StateUtils.construct(StateUtils.java
:150)

[9/12/06 16:00:33:839 EDT] 5fd004e0 SystemErr R   at
org.apache.myfaces.renderkit.html.HtmlResponseStateManager.writeState(Ht
mlResponseStateManager.java:73)

[9/12/06 16:00:33:839 EDT] 5fd004e0 SystemErr R   at
org.apache.myfaces.application.jsp.JspStateManagerImpl.writeState(JspSta
teManagerImpl.java:430)

[9/12/06 16:00:33:839 EDT] 5fd004e0 SystemErr R   at
org.apache.myfaces.taglib.core.ViewTag.doAfterBody(ViewTag.java:145)

[9/12/06 16:00:33:839 EDT] 5fd004e0 SystemErr R   at
org.apache.jsp._srselect._jspService(_srselect.java:942)

[9/12/06 16:00:33:839 EDT] 5fd004e0 SystemErr R   at
com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java
:89)

[9/12/06 16:00:33:839 EDT] 5fd004e0 SystemErr R   at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

[9/12/06 16:00:33:839 EDT] 5fd004e0 SystemErr R   at
com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service
(JspServlet.java:344)

[9/12/06 16:00:33:839 EDT] 5fd004e0 SystemErr R   at
com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet
.java:683)

[9/12/06 16:00:33:839 EDT] 5fd004e0 SystemErr R   at
com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:7
81)

[9/12/06 16:00:33:839 EDT] 5fd004e0 SystemErr R   at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

 

It's because the StartupServletContextListener is not called.
Initialization actually happens in the portlet itself (faces-config.xml
is parsed there etc.). Any suggestion of how to deal with this issue?
Just copy  paste the code from StartupServletContext in my portlet?
What would be a fix within myfaces?

 

Regards,

Bolerio






Re: current path

2006-09-08 Thread Dennis Byrne
You can either create a request scoped attribute called basePath in the 
scriptlet or use the JSP EL ${pageContext.request.contextPath} in the page.

Dennis Byrne

-Original Message-
From: Alexandre Jaquet [mailto:[EMAIL PROTECTED]
Sent: Friday, September 8, 2006 09:15 AM
To: 'MyFaces Discussion'
Subject: current path

Hi,

I'm trying to put the current path in a component with the following code :

%
String path = request.getContextPath();
String basePath = request.getScheme() + :// + 
request.getServerName() + : + request.getServerPort() + path + /;
 %

h:commandLink id=lnkDetail 
onclick=window.open(%=basePath%'/core/salesforce/dealerList.jsf', 
'secondefenetre', 'width=500,height=500,scrollbars');

but basePath is not interpreted html code generated :

a href=# 
onclick=window.open(lt;%=basePath%gt;'/core/salesforce/dealerList.jsf', 
'secondefenetre', 'width=500,height=500,scrollbars')

any idea ?

my best regards





Re: Is there a stable release of Sandbox?

2006-09-07 Thread Dennis Byrne
There will never be a stable release of the sandbox.  It is by nature unstable. 
 When part of it becomes stable and valuable, it gradutates to the best 
component library in the world, Tomahawk :)

http://myfaces.apache.org/sandbox/index.html

Thanks,

Dennis Byrne

-Original Message-
From: Yee CN [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 6, 2006 08:29 PM
To: ''MyFaces Discussion''
Subject: Is there a stable release of Sandbox?

Hi,

 

Is there a stable release of Tomahawk sandbox? I am having problems with the
current nightly (tableSuggestAjax), and the version I have was over 3 months
old. I am looking for a more recent build that I can use.

 

Thanks!

 

Cheers,

Yee






Re: Table Captions

2006-09-03 Thread Dennis Byrne
 You could also backport this feature to the t:dataTable.
 Should be pretty simple if it's already part of the 1.2 branch.

 Mike

Mike, I will look into back porting this feature.

Brad


Backporting may be more than just a quick commit.  I seem to remember the code 
for printing the table element to be in the shared module.  This means if you 
add it to t:dataTable, it ends up in h:dataTable also.  If h:dataTable is to 
remain compliant with the JSF reference imlementation, something trickier would 
have to be done.

Dennis Byrne




Re: Table Captions

2006-09-02 Thread Dennis Byrne
Someone contributed a patch a few months ago.  I know I committed it to the 1.2 
branch (no release) but I can't remember if it was committed to the 1.1 branch. 
 If it was committed, I also can't tell you if it happened before or after the 
last release (1.1.3).

What happens if you do this?

f:facet name=caption
  h:outputText value=Does this work? /
/f:facet

This is a requirement for JSF 1.2 .

Dennis Byrne

-Original Message-
From: Brad Smith [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 2, 2006 05:28 PM
To: 'MyFaces Discussion'
Subject: Table Captions

I have been looking for a way to add captions with the caption element
using either h:dataTable or t:dataTable but do not see this in any
examples or manuals. Am I overlooking the obvious?

Thanks

Brad






Re: Table Captions

2006-09-02 Thread Dennis Byrne
I just checked the code and it appears to only be in the 1.2 branch.  It's more 
work, but you can always override the Renderer in JSF.

In your faces-config,

renderer
component-familyjavax.faces.Data/component-family
renderer-typeorg.apache.myfaces.Table/renderer-type
renderer-classcom.foo.HtmlTableRenderer/renderer-class
/renderer

... where com.foo.HtmlTableRenderer extends 
org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer

In com.foo.HtmlTableRenderer, override the part that prints table and make it 
print tablecaptionblag/caption .

This of course means you may have to do some refactoring when you want to 
upgrade to a newer version of MyFaces ( where 
org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer might change ) or move 
to a different JSF implmentation altogether ( a completely different Renderer 
to extend).

Dennis Byrne

-Original Message-
From: Brad Smith [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 2, 2006 07:19 PM
To: 'MyFaces Discussion'
Subject: Re: Table Captions

Thanks for the information Dennis. When I use the code Dennis suggested
below, no caption appears. When I use:

f:verbatimcaptionDoes this work?/caption/f:verbatim

I get the same result, ie no caption. In both instances, any errors (if
any) are silently disposed of.

Brad


On Sat, 2006-09-02 at 22:23 +, Dennis Byrne wrote:

 What happens if you do this?

 f:facet name=caption
   h:outputText value=Does this work? /
 /f:facet

 This is a requirement for JSF 1.2 .






Re: graphicImage width

2006-08-29 Thread Dennis Byrne
The width of the image has nothing to do w/ JSF.  These values are merely pass 
through, whether directly or via CSS and @style.

To accomplish what you are trying to do, you may want to dynamically set the 
width property of the UIGraphic component corresponding to the graphic tag.  If 
@width supports a value binding expression, you are in luck.  Otherwise, you 
may have to grab a reference to the component itself in a managed bean and set 
the value there.  You will of course need some mechanism in place to 
programatically identify the width of the image in the first place.

Dennis Byrne

-Original Message-
From: Dave [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 29, 2006 12:10 AM
To: users@myfaces.apache.org
Subject: graphicImage width

Is there a way to set maximum width for a h:graphicImage?

  If a image width is less than 200 pixels, use its actual width. If its width 
 is more than 200 pixels, then resize it to 200 pixels.

  If I set width=200,  the image will always be resized to 200 pixel width, 
 and distorted.

  Thanks for help.

   
-
Get your own web address for just $1.99/1st yr. We'll help. Yahoo! Small 
Business.




Re: facelets errors on tomahawk components

2006-08-28 Thread Dennis Byrne
Mikhail,

If you were using the schedule component before it graduated to tomahawk, we 
can't help you there - anything goes in the sandbox.

@border was removed from the graphic tag to be compatible w/ the JSF reference 
implementation.  You can specify the image's border via CSS and @style.  Yes, 
it was a mistake that this made it into a past release of MyFaces.

Please create a JIRA ticket for these other problems, OK?

http://issues.apache.org/jira/secure/BrowseProject.jspa?id=10600
http://issues.apache.org/jira/browse/TOMAHAWK

Dennis Byrne

-Original Message-
From: Mikhail Grushinskiy [mailto:[EMAIL PROTECTED]
Sent: Sunday, August 27, 2006 05:16 PM
To: 'MyFaces Discussion'
Subject: facelets errors on tomahawk components

After migrating from JSP to facelets there are many errors on tomahawk
components

Property 'forceId' is not on type: org.apache.myfaces.custom.div.Div
Property 'border' is not on type:
org.apache.myfaces.component.html.ext.HtmlGraphicImage
Property 'headerClass' is not on type:
org.apache.myfaces.custom.schedule.HtmlSchedule
Property 'styleClass' is not on type: javax.faces.component.UIColumn
Property 'style' is not on type: javax.faces.component.UIColumn

I'm using myfaces-1.1.4, tomahawk 1.1.4, facelets 1.1.11.
forceId used to work on t:div with JSP.

Thanks,
--MG





Re: Flexible Tree Component

2006-08-26 Thread Dennis Byrne
Have you tried using tree2 in combination w/ f:verbatim and t:htmlTag ?

Dennis Byrne

-Original Message-
From: Behrang Saeedzadeh [mailto:[EMAIL PROTECTED]
Sent: Saturday, August 26, 2006 04:26 AM
To: 'MyFaces Discussion'
Subject: Flexible Tree Component

Hi,

I want a flexible JSF tree component. For example, I want to be able
to have something like this:

comp:tree var=n value=model.tree
 f:facet name=node
  div style=border: 1px solid gray
   bh:outputText value=#{n.name} //b
   hr /
   ih:outputText value=#{n.position} //i
  /div
 /f:facet
/comp:tree

In essence, I want to be able to set a snippet of HTML code to be
rendered per node according to the current node's var. Current tree
implementations that I have seen only support single-line renderers.

Does anybody know of such a tree component?

Thanks in advance,
Behi

-- 
We can only see a short distance ahead,
but we can see plenty there
that needs to be done. - Alan Turing

Science is a differential equation. Religion
is a boundary condition - Alan Turing

Behrang Saeedzadeh
http://www.jroller.com/page/behrangsa
http://my.opera.com/behrangsa





Re: Anyone using t:saveState on beans with Spring objects injected

2006-08-18 Thread Dennis Byrne
Hi Frank,

I don't know how much of this you already know, but here goes.  t:saveState is 
pointed at one value on the EL landscape.  It calls getValue() in the last 
phase of request x and setValue() on the first phase of request x + 1 .  The 
value is transported between requests using java serialization, which has 
nothing to do w/ the Spring DI engine.

Why do you get startup errors?

Dennis Byrne

-Original Message-
From: Frank Russo [mailto:[EMAIL PROTECTED]
Sent: Friday, August 18, 2006 02:00 PM
To: 'MyFaces Discussion'
Subject: Anyone using t:saveState on beans with Spring objects injected

I having issue using t:saveState on beans with spring classes. If I
implement Serializable on my Spring classes I get startup errors, so I
had to set the spring objects as transient in my beans. On a new
request, though, the spring classes are null, so they are not getting
injected the second time through.

Does anyone have this working? If so, how did you configure it?

Thanks...

Frank Russo
Senior Developer
FX Alliance, LLC






Re: Big increase in page size between 1.1.1 and 1.1.4

2006-08-15 Thread Dennis Byrne
On the wiki now ...

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

Dennis Byrne

-Original Message-
From: Lindholm, Greg [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 15, 2006 02:07 PM
To: 'MyFaces Discussion'
Subject: RE: Big increase in page size between 1.1.1 and 1.1.4

Thanks, that made a hugh difference.  Looks like the sizes are about the
same as before, maybe just slightly larger.

Greg 

-Original Message-
From: Dennis Byrne [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 15, 2006 12:55 PM
To: MyFaces Discussion
Subject: Re: Big increase in page size between 1.1.1 and 1.1.4

Hi Greg,

Yes, it was changed ...

http://mail-archives.apache.org/mod_mbox/myfaces-commits/200606.mbox/%3C
[EMAIL PROTECTED]

Many of us have observed compression of the state to be a performance
killer.

Can you please try placing the following context parameter, set to true,
in web.xml ?

org.apache.myfaces.COMPRESS_STATE_IN_CLIENT 

Once you confirm this works, I will put this in the wiki.  And yes,
sorry for writing the code but not writing the documentation.

Dennis Byrne

-Original Message-
From: Lindholm, Greg [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 15, 2006 12:39 PM
To: users@myfaces.apache.org
Subject: Big increase in page size between 1.1.1 and 1.1.4

I'm upgrading from MyFaces+Tomahawk 1.1.1 to 1.1.4.
I'm using client side state saving.

There is a big increase in page size between 1.1.1 and 1.1.4.
One of my bigger screens went from ~225K to ~700K (over 3x) and most of
my 
smaller screens doubled in size. 
That's just the page, not counting all the links to images,
stylesheets,

javascript etc.

Is this expected?
Did the way client side state saving encoding change to be less
efficient?
Is there any options to reduce the size?

I know there are things I can do to reduce the sizes but this 
was as close as I can get to an apples to apples comparison between 
1.1.1 and 1.1.4, same apps, same data, only diff was the upgrade.

Greg











Re: Source for ClassUtils?

2006-07-31 Thread Dennis Byrne
Noah,

Try looking for org.apache.myfaces.shared.util.ClassUtils - the package name is 
changed at build time.

Dennis Byrne

-Original Message-
From: Sloan, Noah M [mailto:[EMAIL PROTECTED]
Sent: Monday, July 31, 2006 10:16 AM
To: users@myfaces.apache.org
Subject: Source for ClassUtils?


I'm build 1.1.3 from source, and in the generated jar for myfaces-impl there 
is a class:
org.apache.myfaces.shared_impl.util.ClassUtils
However, I can't find the source for this class anywhere.  Can someone point 
me to it?





Fwd: newbie question : grabbing another page bean from the session

2006-07-23 Thread Dennis Byrne

-Original Message-
From: Dennis Byrne [mailto:[EMAIL PROTECTED]
Sent: Sunday, July 23, 2006 04:42 AM
To: [EMAIL PROTECTED]
Subject: Re: newbie question : grabbing another page bean from the session

Hello Paul,

Welcome to the MyFaces community.  You want to configure your application to 
inject a reference of page2bean into page1bean.  

  managed-bean
managed-bean-namepage1Bean/managed-bean-name
managed-bean-classxxx.Page1Bean/managed-bean-class
managed-bean-scopesession/managed-bean-scope
managed-property
 some-elementmethodOnPage1Beansome-element
 other-element#{page2Bean}other-element
/managed-property
  /managed-bean

I'm too lazy to look up the exact element names, but I'm sure you can find this 
on Google real quick :)

You can also grab a reference to page2bean from page1bean using

FacesContext.getCurrentInstance().getApplication().createValueBinding(#{page2bean}).getValue()

Dennis Byrne

-Original Message-
From: Paul Hussein [mailto:[EMAIL PROTECTED]
Sent: Sunday, July 23, 2006 04:35 AM
To: users@myfaces.apache.org
Subject: newbie question : grabbing another page bean from the session

Hi,

I am new to MyFaces and would like to know, if I have two page beans

page1bean and page2bean, they are defined in faces-config and have session
scope

  managed-bean
managed-bean-namepage1Bean/managed-bean-name
managed-bean-classxxx.Page1Bean/managed-bean-class
managed-bean-scopesession/managed-bean-scope
  /managed-bean
  managed-bean
managed-bean-namepage2Bean/managed-bean-name
managed-bean-classxxx.Page2Bean/managed-bean-class
managed-bean-scopesession/managed-bean-scope
  /managed-bean


I want to call some methods in page2Bean (after it has been initialized and
loaded into the session) from page1Bean. Is there a supported way to do
this.



Thanks

Paul.







Re: javax.servlet.ServletException using Tree2

2006-07-22 Thread Dennis Byrne
Hendrik,

I wouldn't spend too much time on it, but it may be worth your time to search 
the MyFaces issue tracker ( if you haven't already ).  I have a faint memory of 
someone doing something similar to this recently.  If not, you can always 
submit a patch.

Dennis Byrne

-Original Message-
From: Hendrik Neumann [mailto:[EMAIL PROTECTED]
Sent: Saturday, July 22, 2006 01:14 PM
To: 'MyFaces Discussion'
Subject: Re: javax.servlet.ServletException using Tree2

I have just taken a look at  UITreeData.getDataModel(UITreeData.java:420).

This is the following snippet:

if (_restoredState != null)
_model.setTreeState(_restoredState); // set the restored state
(if there is one) on the model

The problem is, that both  _model and value are null in my  situation.
Therefore the setTreeState-method can not be applied to _model.

I don't now wheter this is a MyFaces bug or whether I did anything wrong in
my code... nevertheless I found a quick and dirty workaround:

if (_restoredState != null)
{
if (_model == null ) _model = new TreeModelBase(new
TreeNodeBase(, , false));
_model.setTreeState(_restoredState); // set the restored state
(if there is one) on the model
}

This - of course - returns an empty tree, but in my situation this is
excactly what I want, because the new JSF-site, my CommandLink is referenced
to, does not contain a tree2-component which should be rendered.

Was this information helpfull or do you need any aditional informations in
order to find out whether this is a myfaces-bug or not?

Greetings,
Hendrik





Re: javax.servlet.ServletException using Tree2

2006-07-22 Thread Dennis Byrne
Type MyFaces issue tracker in Google.

I'm really sorry, but you did ask for it :)

Dennis Byrne

-Original Message-
From: Hendrik Neumann [mailto:[EMAIL PROTECTED]
Sent: Saturday, July 22, 2006 01:45 PM
To: 'MyFaces Discussion'
Subject: Re: javax.servlet.ServletException using Tree2

Dennis,

where exactly can I find the MyFaces issue tracker?

2006/7/22, Dennis Byrne [EMAIL PROTECTED]:

 Hendrik,

 I wouldn't spend too much time on it, but it may be worth your time to
 search the MyFaces issue tracker ( if you haven't already ).  I have a faint
 memory of someone doing something similar to this recently.  If not, you can
 always submit a patch.

 Dennis Byrne

 -Original Message-
 From: Hendrik Neumann [mailto:[EMAIL PROTECTED]
 Sent: Saturday, July 22, 2006 01:14 PM
 To: 'MyFaces Discussion'
 Subject: Re: javax.servlet.ServletException using Tree2
 
 I have just taken a look at  UITreeData.getDataModel(UITreeData.java
 :420).
 
 This is the following snippet:
 
 if (_restoredState != null)
 _model.setTreeState(_restoredState); // set the restored
 state
 (if there is one) on the model
 
 The problem is, that both  _model and value are null in my  situation.
 Therefore the setTreeState-method can not be applied to _model.
 
 I don't now wheter this is a MyFaces bug or whether I did anything wrong
 in
 my code... nevertheless I found a quick and dirty workaround:
 
 if (_restoredState != null)
 {
 if (_model == null ) _model = new TreeModelBase(new
 TreeNodeBase(, , false));
 _model.setTreeState(_restoredState); // set the restored
 state
 (if there is one) on the model
 }
 
 This - of course - returns an empty tree, but in my situation this is
 excactly what I want, because the new JSF-site, my CommandLink is
 referenced
 to, does not contain a tree2-component which should be rendered.
 
 Was this information helpfull or do you need any aditional informations
 in
 order to find out whether this is a myfaces-bug or not?
 
 Greetings,
 Hendrik
 








Re: User defined LE functions

2006-07-21 Thread Dennis Byrne
Are you using ${} or #{} ?  User defined functions only work for JSP EL.  
Sorry.  

Dennis Byrne

-Original Message-
From: Marcus Schmidke [mailto:[EMAIL PROTECTED]
Sent: Friday, July 21, 2006 02:16 AM
To: users@myfaces.apache.org
Subject: User defined LE functions


Hello all,

with Facelets and myFaces 1.1.3, I've got a problem writing a user defined
EL function. I am certain I did everything as documented, but it doesn't
work.

Is there any general problem with user defined EL functions in myFaces
(wrong version or something like that), or must I search deeper for the
error I made?

Regards,

Marcus.
_
prosystems IT GmbH
Anwendungsentwicklung
Postfach 31 51
53021 Bonn (Germany)

Tel: 0228 / 3366 - 3329, Fax: 0228 / 3366 - 73329
mailto:[EMAIL PROTECTED] http://www.prosystemsIT.de
Amtsgericht Bonn - HR B 13189



_
prosystems IT GmbH
Anwendungsentwicklung
Postfach 31 51
53021 Bonn (Germany)

Tel: 0228 / 3366 - 3329, Fax: 0228 / 3366 - 73329
mailto:[EMAIL PROTECTED] http://www.prosystemsIT.de
Amtsgericht Bonn - HR B 13189






Re: org.apache.myfaces.secret.CACHE

2006-07-20 Thread Dennis Byrne
I can't deal with this for a day or so, but look here.  It appears as though 
the context parameters were recently changed.

Matthias, do you have an ETA for the release? I would really like to get a 
handle on this first.

http://svn.apache.org/viewvc/myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/StateUtils.java?r1=411376r2=419086

Dennis Byrne

-Original Message-
From: Mike Kienenberger [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 20, 2006 03:28 PM
To: 'MyFaces User mailing list'
Cc: 'Dennis Byrne'
Subject: org.apache.myfaces.secret.CACHE

Hey Dennis,

I just started getting a new error message.  This wasn't happening to
me in my pre-June MyFaces snapshot but is happening in the 1.1.5
snapshots.

The context parameter 'org.apache.myfaces.secret.CACHE' is not set to
false, yet there is nothing stored in the application map w/ the
following key 'org.apache.myfaces.secret.CACHE'. It was either not
placed there by StartupServletContextListener or something has removed
it.

-Mike





Re: org.apache.myfaces.secret.CACHE

2006-07-20 Thread Dennis Byrne
Estimated Time Arrival.  It just means when it will be done.  This looks kind 
of non-trivial, so I may want to push back the release until some more tests 
get written for StateUtils.

Dennis Byrne

-Original Message-
From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 20, 2006 07:33 PM
To: 'MyFaces Discussion'
Subject: Re: org.apache.myfaces.secret.CACHE

Hi Dennis,

what is an ETA ?

Thanks,
Matthias

On 7/20/06, Dennis Byrne [EMAIL PROTECTED] wrote:
 I can't deal with this for a day or so, but look here.  It appears as though 
 the context parameters were recently changed.

 Matthias, do you have an ETA for the release? I would really like to get a 
 handle on this first.

 http://svn.apache.org/viewvc/myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/StateUtils.java?r1=411376r2=419086

 Dennis Byrne

 -Original Message-
 From: Mike Kienenberger [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 20, 2006 03:28 PM
 To: 'MyFaces User mailing list'
 Cc: 'Dennis Byrne'
 Subject: org.apache.myfaces.secret.CACHE
 
 Hey Dennis,
 
 I just started getting a new error message.  This wasn't happening to
 me in my pre-June MyFaces snapshot but is happening in the 1.1.5
 snapshots.
 
 The context parameter 'org.apache.myfaces.secret.CACHE' is not set to
 false, yet there is nothing stored in the application map w/ the
 following key 'org.apache.myfaces.secret.CACHE'. It was either not
 placed there by StartupServletContextListener or something has removed
 it.
 
 -Mike
 





-- 
Matthias Wessendorf

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com





Re: question

2006-07-18 Thread Dennis Byrne
I don't mind non-English posts, many users simply don't speak English.  What I 
don't like is when people go off on some long discussion that has nothing to do 
with JSF or MyFaces.

Dennis Byrne

-Original Message-
From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 19, 2006 01:50 AM
To: 'MyFaces Discussion'
Subject: Re: question

personally I don't mind if you guys speak Spanish, but ...
this forum should be open to a wide range of people.
So english is strongly recommented.

Thanks!

On 7/18/06, CD [EMAIL PROTECTED] wrote:
 Puedo hablarlo un poquito pero tienes que tener paciencia.  Que quieres
 saber?



 On 7/18/06, wdiaz [EMAIL PROTECTED]  wrote:
  somebody Spanish speech?
 
  soy nuevo en esto de tobago, y deseo obtener información para aprender
  el manejo
 




-- 
Matthias Wessendorf

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com





Re: BUG? commandLink href URLs too long (jsf_tree_64 value over 6k chars)

2006-07-13 Thread Dennis Byrne
Jayson,

Is javascript enabled in the browser?  Is javascript rendering disabled on the 
server JSF app?

Dennis Byrne

-Original Message-
From: Mike Kienenberger [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 13, 2006 10:28 PM
To: 'MyFaces Discussion'
Subject: Re: BUG? commandLink href URLs too long (jsf_tree_64 value over 6k 
chars)

Well, I haven't used tree2 myself, but are all of those command links
inside your one form?

It almost sounds like an implementation bug.



On 7/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Actually, there is only one form on the page. It's a mystery to me why
 commandLink would render it's href this way and not call common javascript
 on submit so it wouldn't need to be duplicate for every entry in my tree.

 Anyone else with suggestions greatly appreciated -

 --Jayson

  From: Mike Kienenberger [EMAIL PROTECTED]
  If you use one form for the entire page, you shouldn't need to have
  the attribute duplicated in every commandLink (each of which is
  probably being put into its own form).
 
 
  On 7/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
   BUG? commandLink href URLs too long (jsf_tree_64 value over 6k chars)
  
   The length of the value of the 'jsf_tree_64' parameter is 6517
   characters long in my case, causing IE6 to render links that do
   nothing when clicked. When reducing the number of characters in the
   rendered HTML, IE6 can navigate the links.
  
   I recently upgraded from Tomahawk ver 1.09 where this was not an
   issue, to 1.13 where it is now occuring.
  
   Because this URL is embedded in every commandLink of Tree2, this
   state is duplicated on the HTML page 16 times - making for
   obnoxiously large HTML.
  
   I see this is related to the client state saving - any suggestions on
   how I can get this to work again in the new version?
  
   -- Jayson
  
  

 







Re: JSF Performance Problems

2006-07-09 Thread Dennis Byrne
Are you using client or server side state saving?  Using the latter will cut 
response times in half.

Dennis Byrne

-Original Message-
From: Dhananjay Prasanna [mailto:[EMAIL PROTECTED]
Sent: Monday, July 10, 2006 12:40 AM
To: 'MyFaces Discussion'
Subject: RE: JSF Performance Problems


I think the point is that the median time keeps rising. Whereas in JSP
it doesn't, signifying some kind of leak in myfaces or the use of it...

On a pure performance level I'd love to see how JSF stacks against
Tapestry which takes a pooled-backing bean approach. I am convinced that
creating and destroying hundreds (possibly thousands) of request-scoped
backing beans every second WILL cause JSF scaling problems despite what
craig has said in the past regarding bb's intention of being lightweight
(the problem is, in a practical environment it is often hard to avoid
heavyweight/work-heavy controllers--especially if they are EJB backed).

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Matthias Wessendorf
Sent: Monday, 10 July 2006 4:17 AM
To: MyFaces Discussion
Subject: Re: JSF Performance Problems

Faclets gives you +10 - 15% more

On 7/9/06, Yee CN [EMAIL PROTECTED] wrote:




 Is the result with Myfaces/JSP?  Can somebody provide performance
comparison
 with Myfaces/Facelets?



 JSF is still a new technology, and there are still plenty of rooms for
 improvements. Furthermore the performance differential won't be as
drastic
 once we factor in business logic, persistence, AJAX etc.



 IMHO reduce development time is still the most important factor to
consider.



 Regards,

 Yee



  


 From: jfaronson [mailto:[EMAIL PROTECTED]
  Sent: Sunday, July 09, 2006 8:11 AM

  To: users@myfaces.apache.org
  Subject: JSF Performance Problems







 I grabbed the attachments from the original performance bug
 https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=3
 and ran some JMeter tests against the JSP only and the JSF versions.
The
 pages are really simple, the JSP version outputs a page which is
visually
 identical to the JSF page. The table in question had 10 columns and 50
- 200
 rows. Not a huge amount of data. I used MyFaces 1.1.3 as the JSF
 implementation and ran the test in JBoss 4.0.4 GA running on JDK
1.4.2.
 Here's the results:

Table Rows   Average [ms]  Median [ms]   Hits / Min
Samples
 JSF Testcase50   36301300
5007
 JSP Testcase50   14104030
5001
 JSF Testcase100  56601050
5001
 JSP Testcase100  21202700
5001
 JSF Testcase200  100   100   590
5001
 JSP Testcase200  26302170
5001


 This data confirms the discussion in the sun forum. The JSF version
started
 out nearly three times slower than the JSP page. The relative
performance of
 the JSF version degraded to nearly four times slower as table rows
were
 added. So if you are thinking about adopting JSF you should be aware
of the
 performance hit and make sure that you can architect around the
problem or
 get the performance benchmarks adjusted. Perceived performance is
important
 in real life projects so it's more than a theoretical problem. I'd
also like
 to know if anybody has ideas or code samples that make JSF perform
better?
  


 View this message in context: JSF Performance Problems
  Sent from the MyFaces - Users forum at Nabble.com.



--
Matthias Wessendorf

futher stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

This correspondence is for the named persons only.
It may contain confidential or privileged information or both.
No confidentiality or privilege is waived or lost by any mis transmission.
If you receive this correspondence in error please delete it from your system 
immediately and notify the sender.
You must not disclose, copy or relay on any part of this correspondence, if 
you are not the intended recipient.
Any opinions expressed in this message are those of the individual sender 
except where the sender expressly,
and with the authority, states them to be the opinions of the Department of 
Emergency Services, Queensland.





Re: JSF Performance Problems

2006-07-08 Thread Dennis Byrne
You may want to look at the wiki for this one.

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

Dennis Byrne

-Original Message-
From: jfaronson [mailto:[EMAIL PROTECTED]
Sent: Saturday, July 8, 2006 08:11 PM
To: users@myfaces.apache.org
Subject: JSF Performance Problems


I grabbed the attachments from the original performance bug
https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=3 and ran some
JMeter tests against the JSP only and the JSF versions.

The pages are really simple, the JSP version outputs a page which is
visually identical to the JSF page. The table in question had 10 columns and
50 - 200 rows. Not a huge amount of data. I used MyFaces 1.1.3 as the JSF
implementation and ran the test in JBoss 4.0.4 GA running on JDK 1.4.2.

Here's the results:



   Table Rows   Average [ms]  Median [ms]   Hits / Min   Samples
JSF Testcase50   36301300 5007
JSP Testcase50   14104030 5001
JSF Testcase100  56601050 5001
JSP Testcase100  21202700 5001
JSF Testcase200  100   100   590  5001
JSP Testcase200  26302170 5001



This data confirms the discussion in the sun forum. The JSF version started
out nearly three times slower than the JSP page. The relative performance of
the JSF version degraded to nearly four times slower as table rows were
added.

So if you are thinking about adopting JSF you should be aware of the
performance hit and make sure that you can architect around the problem or
get the performance benchmarks adjusted. Perceived performance is important
in real life projects so it's more than a theoretical problem.

I'd also like to know if anybody has ideas or code samples that make JSF
perform better? 
-- 
View this message in context: 
http://www.nabble.com/JSF-Performance-Problems-tf1912565.html#a5236070
Sent from the MyFaces - Users forum at Nabble.com.





Re: required attribute of h:inputText consider space as valid value

2006-07-04 Thread Dennis Byrne
No.  You can only do that w/ Converters and Renderers.  Good idea though.

Dennis Byrne

-Original Message-
From: Anthony Hong [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 4, 2006 12:59 AM
To: 'MyFaces Discussion'
Subject: Re: required attribute of h:inputText consider space as valid value

Is it possible to modify current required validation that I do not
have to change anything.

On 7/4/06, Dennis Byrne [EMAIL PROTECTED] wrote:
 Anthony,

 Try writing a custom validator ... something like IsEmptyValidator.

 Dennis Byrne

 -Original Message-
 From: Anthony Hong [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, July 4, 2006 12:09 AM
 To: 'MyFaces Discussion'
 Subject: required attribute of h:inputText consider space as valid value
 
 h:inputText can set required attribute to true, that means this field
 is a mandatory fields.
 
 But it does not trim string before validation. So an empty space also
 a valid value for input text with required attribute.
 
 How to solve this problem, that I do not have to add trim string
 function in javascript one by one. Any idea?
 
 Thanks
 --
 
 Anthony Hong
 





-- 

Anthony Hong





Re: Tree Table support, it does not seem to handle the rendered attribute correctly

2006-07-03 Thread Dennis Byrne
Yes, the booleans get everyone.  I seem to remember ${b.nonExist} silently 
evaluating to false, so it's probably a carry over from JSP EL.

Dennis Byrne

-Original Message-
From: Rick [mailto:[EMAIL PROTECTED]
Sent: Monday, July 3, 2006 04:17 PM
To: ''MyFaces Discussion''
Subject: RE: Tree Table support, it does not seem to handle the rendered 
attribute correctly

Thanks!

Ouch. This is where pair programming could have saved an embarrassing
moment.

I am working on two projects. One has contacts and one has contracts...
After awhile they start looking the same 



-Original Message-
From: Dennis Byrne [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 03, 2006 12:36 PM
To: MyFaces Discussion
Subject: Re: Tree Table support, it does not seem to handle the rendered
attribute correctly

You have it spelled emergencyContractHandler, but it is spelled
emergencyContactHandler elsewhere in the bean :)  

Usually this throws an exception, but because boolean exprs default to
false, it doesn't :(

Dennis Byrne

-Original Message-
From: Rick [mailto:[EMAIL PROTECTED]
Sent: Monday, July 3, 2006 03:31 PM
To: ''MyFaces Discussion''
Subject: Tree Table support, it does not seem to handle the rendered
attribute correctly

 

I have a tree table that I only want to display if direct is true.

 

The direct flag is a property of the backing bean and is used as follows:

 

 

table jsfc=t:tree id=treeRollup var=employee


model=#{emergencyContactHandler.treeModel}

 
value=#{emergencyContactHandler.treeModel}

rowClasses=oddRow, evenRow

nodeClass=nodeClass

columnClasses=col1, col2, col3, col4

iconNodeOpen=/images/nodrill2.gif

iconNodeClose=/images/drill2.gif

 
rendered=#{emergencyContractHandler.direct}



 

 

I put a breakpoint in the isDirect method and it seems to never get called 

 

If I remove,

 

rendered=#{emergencyContractHandler.direct}

 

 

 

 

Then the tree display, otherwise it will never display.

 

 

Has anyone run into this before?

 

 

(The above is using facelets)











Re: required attribute of h:inputText consider space as valid value

2006-07-03 Thread Dennis Byrne
Anthony,

Try writing a custom validator ... something like IsEmptyValidator.

Dennis Byrne

-Original Message-
From: Anthony Hong [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 4, 2006 12:09 AM
To: 'MyFaces Discussion'
Subject: required attribute of h:inputText consider space as valid value

h:inputText can set required attribute to true, that means this field
is a mandatory fields.

But it does not trim string before validation. So an empty space also
a valid value for input text with required attribute.

How to solve this problem, that I do not have to add trim string
function in javascript one by one. Any idea?

Thanks
-- 

Anthony Hong





Re: t:saveState and StateHolder

2006-06-29 Thread Dennis Byrne
The saveState component does not do a StateHolder check.  If you want this 
functionality it would be a pretty simple patch.  Any takers?

Dennis Byrne

-Original Message-
From: Matt Hughes [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 29, 2006 01:50 PM
To: 'MyFaces Discussion'
Subject: t:saveState and StateHolder

I am experiencing a bit of a problem with using t:saveState.  Up until 
now, I've always just made the bean that I was saving Serializable; but 
today I came across a situation where I wanted more control over what 
parts of the bean were actually saved. 

My code follows.  Basically, I have a backing bean with a field that 
implements StateHolder.  I try to saveState just that field:

t:saveState value=#{backingBean.fooBar} /

When FooBar just implemented Serializable, it got saved and restored 
fine.  When I changed FooBar to implement StateHolder, the 
saveState/restoreState methods never got called.  Am I missing something?

/** BACKING BEAN **/
public class BackingBean {
private FooBar fooBar;

public FooBar getFooBar()
{
return fooBar;
}

public void setFooBar(FooBar fooBar)
{
this.fooBar = fooBar;
}
}

class FooBar implements StateHolder
{

public Object saveState(FacesContext context)
{
System.out.println(Saving state);
return null;
}

public void restoreState(FacesContext context, Object state)
{
System.out.println(Restoring state);
}

public boolean isTransient()
{
return false;
}

public void setTransient(boolean newTransientValue)
{
}
}






Re: t:saveState and StateHolder

2006-06-29 Thread Dennis Byrne
Matt,

Can you please make some noise in the issue tracker on this?  Please mark this 
as a enhancement ( someone has to add StateHolder functinality ) and not a bug 
( someone will just remove a few javadoc lines ).

Thanks.

Dennis Byrne

-Original Message-
From: Matt Hughes [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 29, 2006 02:00 PM
To: 'MyFaces Discussion'
Subject: Re: t:saveState and StateHolder

Again, it would be of great value to me.

FYI, it says in the Tomahawk JavaDocs that StateHolder is supported:
http://myfaces.apache.org/tomahawk/apidocs/org/apache/myfaces/custom/savestate/UISaveState.html

Dennis Byrne wrote:
 The saveState component does not do a StateHolder check.  If you want this 
 functionality it would be a pretty simple patch.  Any takers?

 Dennis Byrne


 -Original Message-
 From: Matt Hughes [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 29, 2006 01:50 PM
 To: 'MyFaces Discussion'
 Subject: t:saveState and StateHolder

 I am experiencing a bit of a problem with using t:saveState.  Up until
 now, I've always just made the bean that I was saving Serializable; but
 today I came across a situation where I wanted more control over what
 parts of the bean were actually saved.

 My code follows.  Basically, I have a backing bean with a field that 
 implements StateHolder.  I try to saveState just that field:

 t:saveState value=#{backingBean.fooBar} /

 When FooBar just implemented Serializable, it got saved and restored 
 fine.  When I changed FooBar to implement StateHolder, the
 saveState/restoreState methods never got called.  Am I missing something?

 /** BACKING BEAN **/
 public class BackingBean {
private FooBar fooBar;

public FooBar getFooBar()
{
return fooBar;
}

public void setFooBar(FooBar fooBar)
{
this.fooBar = fooBar;
}
 }

 class FooBar implements StateHolder
 {

public Object saveState(FacesContext context)
{
System.out.println(Saving state);
return null;
}

public void restoreState(FacesContext context, Object state)
{
System.out.println(Restoring state);
}

public boolean isTransient()
{
return false;
}

public void setTransient(boolean newTransientValue)
{
}
 }














Re: [OT] JSF and JVM performance

2006-06-28 Thread Dennis Byrne
Hey Jesse,

Catalin found it to reduce response time by 10%, Adam found it to be 15%.

Dennis Byrne

-Original Message-
From: Jesse Alexander \(KSFD 121\) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 28, 2006 12:11 PM
To: 'MyFaces Discussion'
Subject: RE: [OT] JSF and JVM performance

Has someone already compared JSF with JSP and with facelets?

I'm wondering whether facelets will reduce the repsonse times.

regards
Alexander 

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 
 Behalf Of Matthias Wessendorf
 Sent: Wednesday, June 28, 2006 4:40 PM
 To: MyFaces Discussion
 Cc: Gerald Müllan; Martin Marinschek
 Subject: Re: [OT] JSF and JVM performance
 
 Gerald did some performance test's for Martin's JavaOne BOF. Maybe
 they bring that content to the wiki page ?
 
 
 -Matthias
 





Re: Updgrading from MyFaces/Tomahawk 1.1.1 to MyFaces/Tomahawk 1.1.3

2006-06-26 Thread Dennis Byrne
Hi Rick,

Can you please put this info in the wiki ?

http://wiki.apache.org/myfaces/Upgrading_to_Tomahawk_1%2e1%2e3

Dennis Byrne

-Original Message-
From: Rick Hightower [mailto:[EMAIL PROTECTED]
Sent: Monday, June 26, 2006 12:03 PM
To: ''MyFaces Discussion''
Subject: Updgrading from MyFaces/Tomahawk 1.1.1 to MyFaces/Tomahawk 1.1.3 

Recently while developing a project, an issue was found with Tomahawk's Tree
Table support. To rectify the issue, I downloaded the latest version of
Tomahawk and MyFaces to see if the issue went away (it did not). Along the
way, I ran into several road blocks to using Tomahawk 1.1.3. 

These issues were not mentioned in the release notes.

To get Tomahawk to work correctly, new jar files are needed. However, said
jar files were not in the Maven ibilio repo so I changed the pom.xml to
point to the new repo as follows:

  repositories

repository

  idapache-repo/id

  nameapache-repo/name

 
urlhttp://myfaces.zones.apache.org/dist/maven-repository/url

/repository

repository

  idibiblio/id

  nameibiblio/name

  urlhttp://www.ibiblio.org/maven2/url

/repository

  /repositories

Here is the complete list of jar files that were needed:

dependency

  groupIdorg.apache.myfaces.core/groupId

  artifactIdmyfaces-impl/artifactId

  version1.1.3/version

  scopecompile/scope

  typejar/type

/dependency

dependency

  groupIdorg.apache.myfaces.core/groupId

  artifactIdmyfaces-api/artifactId

  version1.1.3/version

  scopecompile/scope

  typejar/type

/dependency

dependency

  groupIdorg.apache.myfaces.tomahawk/groupId

  artifactIdtomahawk/artifactId

  version1.1.3/version

  scopecompile/scope

  typejar/type

/dependency

In addition to the  needed a new jar, the support classes package structure
changed.

This necessitated two changes to web.xml as follows:

The filter class name changed:

filter

filter-nameextensionsFilter/filter-name

 
filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-clas
s

...

 

As did the Source code servlet class name as follows:

  servlet

servlet-nameSourceCodeServlet/servlet-name

servlet-class

 
org.apache.myfaces.shared_tomahawk.util.servlet.SourceCodeServlet

/servlet-class

  /servlet

This is all I could think of that I changed.

 

Off topic: 

I was able to hack the tree renderer to add extra style classes to the tree
so I could control the vertical alignment of the nodes.

 

http://www.jroller.com/page/RickHigh?entry=updgrading_from_myfaces_1_1

 






Re: Where oh where is SourceCodeServlet in Tomahawk 1.1.3/MyFaces 1.1.3? ---------------- RE: Dennis Byrne is the MAN! WoooHooooooooo!!!!!!!!!!!!! RE: need to change renderer for tree column

2006-06-24 Thread Dennis Byrne
You will probably want to remove these ones ...

myfaces-shared-core-2.0.2.jar
myfaces-shared-impl-2.0.2.jar
myfaces-shared-tomahawk-2.0.2.jar

The contents of these are sqeezed into the impl and tomahawk jars.

Dennis Byrne

-Original Message-
From: Rick [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 24, 2006 02:39 AM
To: ''MyFaces Discussion''
Subject: RE: Where oh where is SourceCodeServlet in Tomahawk 1.1.3/MyFaces 
1.1.3?  RE: Dennis Byrne is the MAN! 
WoooHo! RE: need to change renderer for tree column (for 
Tree table Tomahawk feature)

I have these jar files in my WEB-INF/lib

myfaces-api-1.1.3.jar
myfaces-impl-1.1.3.jar
myfaces-shared-core-2.0.2.jar
myfaces-shared-impl-2.0.2.jar
myfaces-shared-tomahawk-2.0.2.jar
tomahawk-1.1.3.jar

I am still getting this message:

2006-06-23 23:24:12,281 ERROR org.apache.myfaces.shared_impl.util.ClassUtils
- Class org.apache.myfaces.tomahawk-shared.util.servlet.SourceCodeServlet
not found
java.lang.ClassNotFoundException:
org.apache.myfaces.tomahawk-shared.util.servlet.SourceCodeServlet


org.apache.myfaces.tomahawk-shared.util.servlet.SourceCodeServlet


Hmmm...

I looked into the jar file and the class is
org.apache.myfaces.shared_tomahawk.util.servlet.SourceCodeServlet

a little different

(I didn't notice this until I wrote this message...)




-Original Message-
From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
Sent: Friday, June 23, 2006 10:25 PM
To: MyFaces Discussion
Subject: Re: Where oh where is SourceCodeServlet in Tomahawk 1.1.3/MyFaces
1.1.3?  RE: Dennis Byrne is the MAN!
WoooHo! RE: need to change renderer for tree column (for
Tree table Tomahawk feature)

 is morphed into
org.apache.myfaces.tomahawk-shared.util.servlet.SourceCodeServlet .

shared_tomahawk







Re: need to change renderer for tree column (for Tree table Tomahawk feature)

2006-06-23 Thread Dennis Byrne
You might want to see if the tree is doing the rendering for the tree column.

Dennis Byrne

-Original Message-
From: Rick [mailto:[EMAIL PROTECTED]
Sent: Friday, June 23, 2006 06:06 PM
To: ''Rick Hightower'', ''MyFaces Discussion''
Subject: RE: need to change renderer for tree column (for Tree table Tomahawk 
feature)

 

I downloaded the source, but the tree column does not seem to have a
renderer mentioned in the faces-config.xml file.

 

What gives?

 

I looked at the source for the tree column as well.

 

It does not do inline rendering.

 

So where is the renderer if it is not metioned in faces-config.xml or done
inline?

 

I need to change the rendering b/c of this bug.. 

 

See

 

http://jroller.com/page/RickHigh?entry=tomahawk_tree_view_woes

 

BTW After using Perforce on several projects, SVN is a pain in the butt to
work with. It is dog slow.

 






Re: Where oh where is SourceCodeServlet in Tomahawk 1.1.3/MyFaces 1.1.3? ---------------- RE: Dennis Byrne is the MAN! WoooHooooooooo!!!!!!!!!!!!! RE: need to change renderer for t

2006-06-23 Thread Dennis Byrne
Hello Rick,

Thanks for the recognition.  The source code servlet is actually located in the 
myfaces-shared project, under org.apache.myfaces.shared.util.servlet .  At 
build time, it is morphed into 
org.apache.myfaces.tomahawk-shared.util.servlet.SourceCodeServlet .  Check it.

Dennis Byrne

-Original Message-
From: Rick [mailto:[EMAIL PROTECTED]
Sent: Friday, June 23, 2006 09:30 PM
To: ''MyFaces Discussion''
Subject: Where oh where is SourceCodeServlet in Tomahawk 1.1.3/MyFaces 1.1.3?  
      RE: Dennis Byrne is the MAN! WoooHo! 
  RE: need to change renderer for tree column (for Tree table Tomahawk 
feature)

DOH!

I recently upgraded to Tomahawk 1.1.3 so I could hack the renderer to format
the treeColum so the text is at the top of the column instead of the middle.

Now I am getting this biz


Caused by: java.lang.ClassNotFoundException:
org.apache.myfaces.util.servlet.SourceCodeServlet
   at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1340)
   at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1189)
   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)
   at
org.apache.myfaces.shared_impl.util.ClassUtils.simpleClassForName(ClassUtils
.java:157)
   ... 57 more


I have the latest and greatest MyFaces/Tomahawk chicken richness, but no
go


   dependency
   groupIdorg.apache.myfaces.core/groupId
   artifactIdmyfaces-impl/artifactId
   version1.1.3/version
   scopecompile/scope
   typejar/type
   /dependency
   dependency
   groupIdorg.apache.myfaces.core/groupId
   artifactIdmyfaces-api/artifactId
   version1.1.3/version
   scopecompile/scope
   typejar/type
   /dependency
   dependency
   groupIdorg.apache.myfaces.tomahawk/groupId
   artifactIdtomahawk/artifactId
   version1.1.3/version
   scopecompile/scope
   typejar/type
   /dependency


   dependency
   groupIdorg.apache.myfaces.shared/groupId
   artifactIdmyfaces-shared-core/artifactId
   version2.0.2/version
   scopecompile/scope
   typejar/type
   /dependency

   dependency
   groupIdorg.apache.myfaces.shared/groupId
   artifactIdmyfaces-shared-impl/artifactId
   version2.0.2/version
   scopecompile/scope
   typejar/type
   /dependency

   dependency
   groupIdorg.apache.myfaces.shared/groupId
   artifactIdmyfaces-shared-tomahawk/artifactId
   version2.0.2/version
   scopecompile/scope
   typejar/type
   /dependency


Has SourceCodeServlet been deprecated?
I guess I should check the release notes again

DOH?!

And BTW

!--
   dependency
   groupIdorg.apache.myfaces.shared/groupId
   artifactIdmyfaces-shared-project/artifactId
   version2.0.2/version
   scopecompile/scope
   typejar/type
   /dependency
--

The shared-project jar is not in the myfaces Repo.



-Original Message-
From: Rick [mailto:[EMAIL PROTECTED]
Sent: Friday, June 23, 2006 6:02 PM
To: 'MyFaces Discussion'
Subject: Dennis Byrne is the MAN! WoooHo! RE: need to
change renderer for tree column (for Tree table Tomahawk feature)

Dennis Byrne is the MAN!

After much protest, I find that you are right. (It is a bit strange
since there are renderers for the other children nodes but not this one, but
hey I am glad you got me looking in the right direction!)

In HtmlTreeRenderer (in the renderChildren method) there is the following
biz:


else if
((componentChild.getFamily().equals(HtmlTreeColumn.COMPONENT_FAMILY))
 ((HtmlTreeColumn)
componentChild).isRendered())
{
renderTreeColumnChild(facesContext, writer,
componentChild, tree, child, maxLevel, iconProvider);
}


Then there is this biz:

protected void renderTreeColumnChild(FacesContext facesContext,
ResponseWriter writer, UIComponent component,
HtmlTree tree, HtmlTreeNode

Re: [shale] t:commandLink issues

2006-06-22 Thread Dennis Byrne
Can you try making the underlying data of the table persistent?

t:saveState value=#{elPath.to.dataList} /

t:dataTable value=#{elPath.do.dataList} /

Dennis Byrne

-Original Message-
From: Baker,Jonathan [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 22, 2006 01:14 PM
To: users@myfaces.apache.org, user@struts.apache.org
Subject: [shale] t:commandLink issues

I am experiencing an issue when embedding a t:commandLink component in a
t:dataTable/t:column.  For some reason my action is failing to bind to
my viewController method.  If I put the exact same link outside of the
table with hard-coded parameter values, the link works correctly.  

I have run in my debugger and discovered that during the
ApplyRequestValues phase while trying to decode the components
submitted, we work our way into the processDecodes method of UIData.
This eventually calls a method called processColumnChildren which should
process each column and the components contained within.  I created a
table that only contains one row for simplicity.  
This method is supposed to get every component for a given row and
process their decode methods.  The problem is that before it process a
row it checks to see if the row is currently available.  This calls
dataModel.isRowAvailable.  Somehow I have an instance of emptyDataModel,
which always returns false to isRowAvailable, so my linkComponent is
never decoded.  

Why is my datamodel always becoming the EmptyDataModel.  During
rendering it has no problem finding my backing beans to populate the
view, it just can't find it during the applyrequestvalues step.

JB






Re: System.out.println(

2006-06-21 Thread Dennis Byrne
October,

Please put this in the JIRA .

Dennis Byrne

-Original Message-
From: octoberdan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 21, 2006 10:02 AM
To: users@myfaces.apache.org
Subject: System.out.println(rendering fisheye) !?!?


Line 88 of
org.apache.myfaces.custom.fisheye.HtmlFishEyeNavigationMenuRenderer

System.out.println(rendering fisheye);

Should that be there?
--
View this message in context: 
http://www.nabble.com/System.out.println%28%22rendering-fisheye%22%29-%21-%21--t1824085.html#a4974838
Sent from the MyFaces - Users forum at Nabble.com.






Re: System.out.println(

2006-06-21 Thread Dennis Byrne
The issue tracker for Tomahawk is here.

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

Thanks,

Dennis Byrne


-Original Message-
From: octoberdan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 21, 2006 12:35 PM
To: users@myfaces.apache.org
Subject: Re: System.out.println(


How/where? This will be a first time for me.
--
View this message in context: 
http://www.nabble.com/Re%3A-System.out.println%28-t1824733.html#a4977790
Sent from the MyFaces - Users forum at Nabble.com.






Re: System.out.println(

2006-06-21 Thread Dennis Byrne
Matze just got it.  That guy is some programmer ;)

Dennis Byrne

-Original Message-
From: Cagatay Civici [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 21, 2006 01:31 PM
To: 'MyFaces Discussion'
Subject: Re: System.out.println(rendering fisheye) !?!?

Do you think it's worth opening a JIRA? If so, I had a patch fixing this
tough bug:)

Cagatay

On 6/21/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:

 no! :)

 On 6/21/06, octoberdan [EMAIL PROTECTED] wrote:
 
  Line 88 of
  org.apache.myfaces.custom.fisheye.HtmlFishEyeNavigationMenuRenderer
 
  System.out.println(rendering fisheye);
 
  Should that be there?
  --
  View this message in context:
 http://www.nabble.com/System.out.println%28%22rendering-fisheye%22%29-%21-%21--t1824085.html#a4974838
  Sent from the MyFaces - Users forum at Nabble.com.
 
 


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






Re: f:converterDateTime doesn't convert properly

2006-06-20 Thread Dennis Byrne
You might want to look at the date converter in the sandbox .

http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/convertDateTime/DateTimeConverter.java?revision=373283view=markup

I think the element name is s:convertDateTime .

Dennis Byrne

-Original Message-
From: Susumu Majima [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 20, 2006 02:58 AM
To: 'MyFace Mailing List'
Subject: f:converterDateTime doesn't convert properly

I use JBOSS/Seam that includes Myface1.1.1.

When I try to show time it isn't shown properly.

the code snipped is below

h:outputText value =#{schedule0.sch_start
f:convertDateTime pattern HH:mm/
/h:outputText

If actual data is 9:00 then shown date is 0:00.

I'm in Japan so the shown time is GMT time?

Is there any good way to  correct this problem or work around?

Regards,

Susumu Majima








Re: AUTO_SCROLL Kills Command Links

2006-06-20 Thread Dennis Byrne
Actually, I noticed this on one of my JSPs yesterday.  I didn't have time to 
look at it in detail, but I noticed the problem goes away if I moved the 
following line of code from above the html tag to *after* the last 
jsp:include / tag.

jsp:scriptletresponse.setContentType(text/html; 
charset=utf-8);/jsp:scriptlet

Dennis Byrne

-Original Message-
From: Bruno Aranda [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 20, 2006 10:08 AM
To: 'MyFaces Discussion'
Subject: Re: AUTO_SCROLL Kills Command Links

Are your commandLinks inside h:form tags?

Bruno

On 6/17/06, Enrique Medina [EMAIL PROTECTED] wrote:
 Me too :-(


 On 6/16/06, Raj Rajendran [EMAIL PROTECTED] wrote:
 
  I have also brought this issue up before, still have it with 1.1.4
 Snapshot.
 
 
 
 
  On 6/16/06, Mike Duffy [EMAIL PROTECTED]  wrote:
   This issue has been brought up in multiple posts to this list.
  
   I am using MyFaces Core 1.1.3 and Tomahawk 1.1.3 (latest and greatest
 for both).
  
   When I configure AUTO_SCROLL to true, the command links do not function.
  
   Mike
  
   __
   Do You Yahoo!?
   Tired of spam?  Yahoo! Mail has the best spam protection around
   http://mail.yahoo.com
  
 
 







Re: AUTO_SCROLL Kills Command Links

2006-06-17 Thread Dennis Byrne
Hey guys.

The dev team recognizes the problem and I promise it will be fixed.  Any 
pointers from the user community will help.

Dennis Byrne

-Original Message-
From: Enrique Medina [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 17, 2006 02:11 AM
To: 'MyFaces Discussion'
Subject: Re: AUTO_SCROLL Kills Command Links

Me too :-(

On 6/16/06, Raj Rajendran [EMAIL PROTECTED] wrote:

 I have also brought this issue up before, still have it with 1.1.4Snapshot.



 On 6/16/06, Mike Duffy [EMAIL PROTECTED] wrote:
 
  This issue has been brought up in multiple posts to this list.
 
  I am using MyFaces Core 1.1.3 and Tomahawk 1.1.3 (latest and greatest
  for both).
 
  When I configure AUTO_SCROLL to true, the command links do not function.
 
 
  Mike
 
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam protection around
  http://mail.yahoo.com
 







Re: AUTO_SCROLL Kills Command Links

2006-06-17 Thread Dennis Byrne
I still can't reproduce this - using the simple examples web application 
(myfaces distribution).  I tried w/ trunk and with MyFaces 1.1.3 and Tomahawk 
1.1.3 .  getScrolling() renders when the org.apache.myfaces.AUTO_SCROLL context 
parameter is set to true and getScrolling() dows not render when the 
org.apache.myfaces.AUTO_SCROLL context parameter is set to false.  In both 
cases and the outputLink elements on the home page work.

@Mike - An example of the org.apache.myfaces.AUTO_SCROLL context param, w/ a 
few lines of documentation, is in web.xml of the simple examples application.

So ... what is it about your dev environments that is different?  It is 
probably something simple.

Dennis Byrne


-Original Message-
From: Jim the Standing Bear [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 17, 2006 03:09 PM
To: 'MyFaces Discussion'
Subject: Re: AUTO_SCROLL Kills Command Links

It is a problem with the JavaScript function getScrolling(). Somehow it
doesn't get generated. This goes true not for commandlinks, but also other
stuff.  One way to workaround is to run with an earlier version of the
myFaces, and look at the rendered html/javascript source code from the web
browser. Copy down the function getScolling()... then insert this function
in your .jsp file, and then compile and run with the newer version of
tomahawk. that way, the JS function will be there.

On 6/17/06, Mike Duffy [EMAIL PROTECTED] wrote:

 Thx Dennis.

 If you use the Tomahawk jar from the 1.1.1 example app, the command links
 work.

 I am not a Java Script guru, but the java script that is generated is
 definitely different between
 the current 1.1.3 jar and the 1.1.1 jar; if you compare the two you might
 see the answer.

 Also, I can't seem to find my reference for configuring AUTO_SCROLL in
 general.  Searching the
 Wiki does not help and there's lots of noise in Google.  Can you please
 forward a reference link?

 Mike


 --- Dennis Byrne [EMAIL PROTECTED] wrote:

  Hey guys.
 
  The dev team recognizes the problem and I promise it will be fixed.  Any
 pointers from the user
  community will help.
 
  Dennis Byrne
 
  -Original Message-
  From: Enrique Medina [mailto:[EMAIL PROTECTED]
  Sent: Saturday, June 17, 2006 02:11 AM
  To: 'MyFaces Discussion'
  Subject: Re: AUTO_SCROLL Kills Command Links
  
  Me too :-(
  
  On 6/16/06, Raj Rajendran [EMAIL PROTECTED] wrote:
  
   I have also brought this issue up before, still have it with
 1.1.4Snapshot.
  
  
  
   On 6/16/06, Mike Duffy [EMAIL PROTECTED] wrote:
   
This issue has been brought up in multiple posts to this list.
   
I am using MyFaces Core 1.1.3 and Tomahawk 1.1.3 (latest and
 greatest
for both).
   
When I configure AUTO_SCROLL to true, the command links do not
 function.
   
   
Mike
   
__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
   
  
  
  
 
 
 


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




--
--
Standing Bear Has Spoken
--





Re: AUTO_SCROLL Kills Command Links

2006-06-17 Thread Dennis Byrne
Can some of you post a directory listing of WEB-INF/lib ?  A snippet of all jsf 
related context params would help as well.

Dennis Byrne

-Original Message-
From: Hailong Zhang [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 18, 2006 01:11 AM
To: 'MyFaces Discussion'
Subject: Re: AUTO_SCROLL Kills Command Links

Hi Dennis,
I have this problem too. My environment is Windows XP sp2,
Firefox1.5.0.4, JDK 1.5.0_06-b05. MyFaces 1.1.3  Tomahawk 1.1.3,

2006/6/18, Dennis Byrne [EMAIL PROTECTED]:

 I still can't reproduce this - using the simple examples web application
 (myfaces distribution).  I tried w/ trunk and with MyFaces 1.1.3 and
 Tomahawk 1.1.3 .  getScrolling() renders when the
 org.apache.myfaces.AUTO_SCROLL context parameter is set to true and
 getScrolling() dows not render when the 
 org.apache.myfaces.AUTO_SCROLLcontext parameter is set to false.  In both 
 cases and the outputLink
 elements on the home page work.

 @Mike - An example of the org.apache.myfaces.AUTO_SCROLL context param, w/
 a few lines of documentation, is in web.xml of the simple examples
 application.

 So ... what is it about your dev environments that is different?  It is
 probably something simple.

 Dennis Byrne


 -Original Message-
 From: Jim the Standing Bear [mailto:[EMAIL PROTECTED]
 Sent: Saturday, June 17, 2006 03:09 PM
 To: 'MyFaces Discussion'
 Subject: Re: AUTO_SCROLL Kills Command Links
 
 It is a problem with the JavaScript function getScrolling(). Somehow it
 doesn't get generated. This goes true not for commandlinks, but also
 other
 stuff.  One way to workaround is to run with an earlier version of the
 myFaces, and look at the rendered html/javascript source code from the
 web
 browser. Copy down the function getScolling()... then insert this
 function
 in your .jsp file, and then compile and run with the newer version of
 tomahawk. that way, the JS function will be there.
 
 On 6/17/06, Mike Duffy [EMAIL PROTECTED] wrote:
 
  Thx Dennis.
 
  If you use the Tomahawk jar from the 1.1.1 example app, the command
 links
  work.
 
  I am not a Java Script guru, but the java script that is generated is
  definitely different between
  the current 1.1.3 jar and the 1.1.1 jar; if you compare the two you
 might
  see the answer.
 
  Also, I can't seem to find my reference for configuring AUTO_SCROLL in
  general.  Searching the
  Wiki does not help and there's lots of noise in Google.  Can you please
  forward a reference link?
 
  Mike
 
 
  --- Dennis Byrne [EMAIL PROTECTED] wrote:
 
   Hey guys.
  
   The dev team recognizes the problem and I promise it will be
 fixed.  Any
  pointers from the user
   community will help.
  
   Dennis Byrne
  
   -Original Message-
   From: Enrique Medina [mailto:[EMAIL PROTECTED]
   Sent: Saturday, June 17, 2006 02:11 AM
   To: 'MyFaces Discussion'
   Subject: Re: AUTO_SCROLL Kills Command Links
   
   Me too :-(
   
   On 6/16/06, Raj Rajendran [EMAIL PROTECTED] wrote:
   
I have also brought this issue up before, still have it with
  1.1.4Snapshot.
   
   
   
On 6/16/06, Mike Duffy [EMAIL PROTECTED] wrote:

 This issue has been brought up in multiple posts to this list.

 I am using MyFaces Core 1.1.3 and Tomahawk 1.1.3 (latest and
  greatest
 for both).

 When I configure AUTO_SCROLL to true, the command links do not
  function.


 Mike

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

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








Re: myfaces + cactus

2006-06-13 Thread Dennis Byrne
There are some Cactus tests in the myfaces repo.  They are no longer a part of 
the build process but they are still there.

Dennis Byrne

-Original Message-
From: Bret Kumler [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 13, 2006 06:48 PM
To: users@myfaces.apache.org
Subject: myfaces + cactus

Hi all,



New to myfaces/jsf world.



I wanted to know if there's an existing FacesTestCase for Cactus, I
tried the cactus mailing list but to no avail.



I think it would be a useful addition to the Cactus framework.



Is there a set of common classes needed in the setup() and teardown()
methods?



I did find something in jsf source.
C:\jsf1.1_02fcs-src\jsf-ri\test\com\sun\faces



JspFacesTestCase and ServletFacesTestcase which implement FacesTestCase
and extend JspTestCase and ServletTestCase.



Within JspFacesTestCase and ServletFacesTestCase they call
FacesTestCaseService which imports FactoryFinder, FacesContext,
FaceServlet, LifeCycle, etc...



Problem is FacesTestCaseService uses a lot of com.sun.faces packages, I
was hoping for a generic version that can be used against myfaces or any
other implementation.



Regards,



Bret



This e-mail message and any attachments may contain private, confidential, 
proprietary or privileged material of GoldenGate Software, Inc. that is for 
the sole use of the intended recipient(s) of this e-mail message.  Any review, 
copying or distribution or other use of this e-mail message or any attachments 
hereto by anyone other than the intended recipient(s) is strictly prohibited.  
If you are not the intended recipient(s) of this e-mail message, please 
contact GoldenGate Software, Inc. (415-777-0200) immediately and permanently 
delete the original e-mail message and any copies of this e-mail message and 
all attachments, if any.




Re: JspStateManagerImpl causes loop

2006-06-12 Thread Dennis Byrne
Hello Taylan ,

May I ask how you know the loop is in JspStateManagerImpl ?  Can you provide 
more information, such as which circumstances?  Does this happen on every 
request?

Dennis Byrne

-Original Message-
From: taylan saldiray [mailto:[EMAIL PROTECTED]
Sent: Monday, June 12, 2006 05:39 AM
To: users@myfaces.apache.org
Subject: JspStateManagerImpl causes loop

when i replace the old jar myfaces-impl with the new one myfaces-impl-1.1.3
the application enters loop between the phases

when i put the class  org.apache.myfaces.application.jsp.JspStateManagerImpl
with the build number 332016 332016 $ $Date: 2005-11-09 05:57:09 -0500
(Wed, 09 Nov 2005) $

instead of


398548 $ $Date: 2006-05-01 11:30:53 +0300 (Mon, 01 May 2006) $

into the new jar it works fine.

any suggestions





Re: how to refresh an (old) tree?

2006-06-08 Thread Dennis Byrne
Hello Mr. Bear,

Try moving all unmarshalling code ( XML - JSF component ) to one place.  Call 
this method before the page is rendered, as well as after each change to the 
XML document.  A more sophisticated solutions might be to unmarshall once, 
allow the user to manipulate the JSF component, and use a marshall step ( JSF 
component - XML ) to complete the unit of work.

Dennis Byrne

-Original Message-
From: Jim the Standing Bear [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 8, 2006 11:51 AM
To: 'MyFaces Discussion'
Subject: how to refresh an (old) tree?

I have yet another question on the old tree.  How do I get it to refresh?
Our code is supposed to display the contents of an XML document in a tree.
We have written our own java classes to implement both the TreeModel and
TreeNode interfaces.  When a button is clicked, the contents of the XML
Document changes, the tree is supposed to reflect the changes.

However, the problem is that the tree displayed in the web browser doesn't
re-render.  By looking at the log, the new XML Document gets parsed and
processed in our own TreeModel and TreeNode implementations, however, the
tree just never gets re-rendered and still displays the stale Document.

How do I overcome that?  thanks!

--
--
Standing Bear Has Spoken
--





Re: commandLinks don't work on Tomcat 5.5.17

2006-06-08 Thread Dennis Byrne
Which version of MyFaces are you using?  Which version of tomahawk?

Dennis Byrne

-Original Message-
From: Garner Shawn [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 8, 2006 09:29 PM
To: users@myfaces.apache.org
Subject: commandLinks don't work on Tomcat 5.5.17

I set the following param-value to false and now my command links work now.
Why isn't the autoscroll stuff working?

context-param
   param-nameorg.apache.myfaces.AUTO_SCROLL/param-name
   param-valuefalse/param-value
   description
   If true, a javascript function will be rendered that is 
 able
   to restore the former vertical scroll on every request.
   Convenient feature if you have pages with long lists 
 and you
   do not want the browser page to always jump to the top 
 if
   you trigger a link or button action that stays on the 
 same
   page. Default: false
   /description
/context-param





Re: New IE oddity - form target in window

2006-06-06 Thread Dennis Byrne
There is a window identifier passed to window.open.  If you don't want a second 
window, try using the same window identifier.

Dennis Byrne

-Original Message-
From: Mario Ivankovits [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 6, 2006 03:34 AM
To: 'MyFaces Discussion'
Subject: New IE oddity - form target in window

Hi!

Just in case someone uses this feature too I'll share my findings here.
The problems arises after one of the last IE updates, don't know exactly
when.

On one page we submitted a form into a newly opened window target with
something like this:

var win = window.open(.);
form.submit();

where we used the same target name when opening the window and on the form.
Previously IE opened the window and the result of the form submittal
appeared there, now, after the update, IE opened the window and another
one with the result.
So you'll get two open windows.

Thank you M$ for this new feature ;-) I guess this has something to do
with their popup blocker which seems to be active even in the local zone.

I workaround it by using dojo/ajax. In short the new code is:
_win = window.open(idlePage,form.target,...);

dojo.io.bind(
{
load: function(type, data, evt)
{
_win.document.writeln(data);
_win.document.close();
},
mimetype: text/html,
formNode: form
});

idlePage is something like please wait, your request will be
processed 
As soon as the ajax request finished the window content will be replaced
with this data.
This works with firefox and IE at least in its latest version, dont know
about other browsers.

Ciao,
Mario






Re: New IE oddity - form target in window

2006-06-06 Thread Dennis Byrne
Does my window identifier equate to your same target name ?  Second 
parameter to open() ?

Dennis Byrne

-Original Message-
From: Dennis Byrne [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 6, 2006 03:52 AM
To: 'MyFaces Discussion'
Subject: Re: New IE oddity - form target in window

There is a window identifier passed to window.open.  If you don't want a 
second window, try using the same window identifier.

Dennis Byrne

-Original Message-
From: Mario Ivankovits [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 6, 2006 03:34 AM
To: 'MyFaces Discussion'
Subject: New IE oddity - form target in window

Hi!

Just in case someone uses this feature too I'll share my findings here.
The problems arises after one of the last IE updates, don't know exactly
when.

On one page we submitted a form into a newly opened window target with
something like this:

var win = window.open(.);
form.submit();

where we used the same target name when opening the window and on the form.
Previously IE opened the window and the result of the form submittal
appeared there, now, after the update, IE opened the window and another
one with the result.
So you'll get two open windows.

Thank you M$ for this new feature ;-) I guess this has something to do
with their popup blocker which seems to be active even in the local zone.

I workaround it by using dojo/ajax. In short the new code is:
_win = window.open(idlePage,form.target,...);

dojo.io.bind(
{
load: function(type, data, evt)
{
_win.document.writeln(data);
_win.document.close();
},
mimetype: text/html,
formNode: form
});

idlePage is something like please wait, your request will be
processed 
As soon as the ajax request finished the window content will be replaced
with this data.
This works with firefox and IE at least in its latest version, dont know
about other browsers.

Ciao,
Mario









Re: Load Testing JSF?

2006-06-06 Thread Dennis Byrne
What part are you having trouble with? JMeter or JSF ;)

I would suggest using tcpmon to sniff the request parameters off the wire.  You 
can obtain this from the apache axis project.  Then take the request parameters 
and plug them in to JMeter.  You'll also want to configure JMeter for POST - 
this seems to have troubled me several times before.

Dennis Byrne

-Original Message-
From: Yee CN [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 6, 2006 10:49 AM
To: ''MyFaces Discussion''
Subject: Load Testing JSF?

Hi,



I am trying out jMeter with JSF - but not having much success so far. I
would appreciate if anybody could share your experience regarding load
testing JSF applications so I don't have sweet blood to reinvent the wheel.
I promise I will compile a Wiki on this.



Many thanks in advance.



Regards,

Yee






Re: java.io.NotSerializableException: javax.faces.model.ListDataModel

2006-06-02 Thread Dennis Byrne
Use this

#{b.listModel.wrappedData}

as opposed to

#{b.listModel}

Dennis Byrne

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, June 2, 2006 12:54 PM
To: users@myfaces.apache.org
Subject: java.io.NotSerializableException: javax.faces.model.ListDataModel


Hi Guys!


Is it not possible to serialize a ListDataModel. I need to write a 
ListDataModel to saveState, but it doesn't work...
I get the following stack:
java.io.NotSerializableException: javax.faces.model.ListDataModel
   at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
   at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1224)
   at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1050)
   at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1224)
   at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1050)
   at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
   at java.util.ArrayList.writeObject(ArrayList.java:531)
   at sun.reflect.GeneratedMethodAccessor150.invoke(Unknown Source)
   at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at 
 java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:809)
   at 
 java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1296)
   at 
 java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
   at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
   at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1224)
   at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1050)
   at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
   at java.util.ArrayList.writeObject(ArrayList.java:531)
...


Thx for help!

Regards,
Andy



This message is not legally binding upon our company!
This communication is confidential and is intended solely for the 
addressee(s). If you are not the intended recipient(s), his/her assistant, or 
authorized recipient, any form of disclosure, reproduction, distribution or 
any use of this communication or the information in it, is strictly prohibited 
and may be unlawful. In this case, please notify the sender immediately and 
destroy the e-mail. Electronic communication via the Internet by e-mail may be 
manipulated and/or read by third parties, thus we exclude any liability 
whatsoever for this e-mail.






[OT] scope trick

2006-06-01 Thread Dennis Byrne
The spec says higher scoped managed beans cannot be injected into lower scoped 
managed beans.  This doesn't mean we can't inject session scoped data into 
request scope managed beans ...

managed-bean
 managed-bean-namegeographyProducer/managed-bean-name
 managed-bean-classgov.blm.ak.GeographyConsumerThread/managed-bean-class
 managed-bean-scoperequest/managed-bean-scope   
  managed-property
property-namesharedData/property-name
value#{facesContext.externalContext.sessionMap['sharedData']}/value
  /managed-property
/managed-bean

Dennis Byrne




Re: [OT] scope trick

2006-06-01 Thread Dennis Byrne
As long as you don't also have a sharedData bean in request scope, this
will pick up the session scoped bean for you (and also create it if
necessary, if it is a managed bean).

Hi Craig,

I can only see how the first part is correct.  If sharedData is a data 
structure in session scope (not in a JSF sense), it should behave the same.  
But if sharedData is a session scoped managed bean, I don't think the impl 
should create it - it should throw an exception at runtime because 
geographyProducer is a request scope managed bean.

Craig

Dennis Byrne





Re: [OT] scope trick

2006-06-01 Thread Dennis Byrne
It is the *opposite* direction that is prohibited ... you cannot inject a
request scoped bean into a session scoped bean.

Whoops, I had it backwards the entire time ;)  And it looks like MyFaces knows 
it is illegal to inject #{facesContext.externalContext.requestMap['foo']} into 
a session scoped managed bean, even though the base token of the expression is 
not in request scope - just as if you tried to inject #{foo}, where foo is a 
request scoped managed bean.  I will have to come up with better tricks.

Craig

Dennis Byrne




Re: Unit testing backing beans / custom components in JSF

2006-05-24 Thread Dennis Byrne
To be precise, you need both shale-core.jar and shale-test.jar in the
classpath for your unit tests, but you need neither in the classpath for
your runtime application (unless you are actually using Shale in the
application itself, of course).

Am I reading this out of context or was the shale-core.jar dependency 
introduced recently?  I believe the myfaces poms have only shale-test.jar and 
they work just fine .

Craig

Dennis Byrne




Re: Where to find sandbox.jar ?

2006-05-12 Thread Dennis Byrne
Welcome Sascha,

The sandbox is currently not in the release.  You can obtain this using maven 
and subversion, using the instructions found on the wiki.  However your timing 
could not be worse, as Apache subversion could be down for a few days.  Sorry.

Dennis Byrne

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, May 12, 2006 02:56 AM
To: users@myfaces.apache.org
Subject: Where to find sandbox.jar ?

Hello!

First try on a mailing list, hope not to do it all wrong :-)

I am wondering where I can get the latest sandbox.jar from MyFaces? I only 
found it in myfaces-1.1.1, but it seems not complete.

On the sandbox-site I saw fishEyeNavigationMenu and at irian.at I found an 
example using it, which I like very much. But this component is not included 
in the sandbox.jar from myfaces-1.1.1, is it?

How or where can I get it?

Thanks very much,
Sascha





Re: svn problem

2006-05-11 Thread Dennis Byrne
Hello Lance,

Infrastructure team is working on it .

Dennis Byrne

-Original Message-
From: L Frohman [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 11, 2006 02:50 PM
To: ''MyFaces Discussion''
Subject: svn problem

I can't get to the source repository with svn under eclipse (it used to
work)
It was the same yesterday. Is there a problem on the server, or has
something changed?

Thanks,
Lance


svn: PROPFIND of '/repos/asf/myfaces': could not connect to server
(http://svn.apache.org)

RA layer request failed
svn: PROPFIND request failed on '/repos/asf/myfaces'
svn: PROPFIND of '/repos/asf/myfaces': could not connect to server
(http://svn.apache.org)






Re: t:saveState not working on redirect

2006-05-10 Thread Dennis Byrne
When an HTTP server sends a redirect response to the client, the client then 
performs a second request.  This drops all of the form values, so there is no 
state for JSF (or ASP.net for that matter) to restore on the second response.

Dennis Byrne

-Original Message-
From: Julian Ray [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 10, 2006 11:55 AM
To: ''MyFaces Discussion''
Subject: t:saveState not working on redirect

I have 3 pages which share saveState objects (all Integers). The pages work
fine until I add redirect/ to the navigation at which point saveState does
not work across pages (although it seems to work for other pages which
post-back to themselves.

Is this a bug or valid behaviour?

Thanks






Re: Tomahawk 1.1.2 jscookMenu Bugs ?

2006-05-09 Thread Dennis Byrne
Dominique,

Please put a patch in the issue tracker ! 

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

:)

Dennis Byrne

-Original Message-
From: Boeckli, Dominique [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 9, 2006 03:57 AM
To: 'MyFaces Discussion'
Subject: Tomahawk 1.1.2 jscookMenu Bugs ?

First case: 

 t:navigationMenuItem id=Home  itemLabel=Home
action=http://t-web/;  target=_self/ 

always open in a new window or tab in IE and Firefox.

 

Second:

t:navigationMenuItem id=Contact itemLabel=Contact
icon=/graphics/contact.png action=mailto:test@test.com/ 

is not recognized as a URL.

 

This is my quick an dirty fix in MyFacesHack.js (in bold): 

//
// Overrides the original JSCookMenu function to work with MyFaces
//
function cmItemMouseUp (obj, index)
{
var item = _cmItemList[index];

var link = null, target = '_self';

if (item.length  2)
link = item[2];
if (item.length  3  item[3])
target = item[3];

if (link != null)
{
// changes by Richard J. Barbalace
if (link.match(/^\w*:A\]\w*:\/\//) != null ) {
// Link is a URL
link = link.replace(/^\w*:A\]/, );  // Remove JSF ID
target = '_self';
// target fix
window.open (link, target);
} else if ( link.match(/^\w*:A\]mailto:/) != null ) {
// mailto fix
// Link is a mailto URL
// mailto fix
link = link.replace(/^\w*:A\]/, );  // Remove JSF ID
// mailto fix
target = '_self';
// target fix
window.open (link, target);
// mailto fix
} else if (link.match(/^\w*:A\]\w*:/) != null ) {
// Link is a script method
link = link.replace(/^\w*:A\]\w*:/, );  // Remove JSF ID
eval(link);
} else {
// Link is a JSF action
var dummyForm = document.forms[target];
dummyForm.elements['jscook_action'].value = link;
dummyForm.submit();
}
}

 

 

kind regards

 

Dominique






Re: [jira] Closed: (TOMAHAWK-405) Running under ServletExec 5 two TLD attribute elements have the same name

2006-05-08 Thread Dennis Byrne
Chris,

You will get rid of the ClassDefNotFoundError once commons-lang-2.1.jar is in 
the classpath.

Dennis Byrne

-Original Message-
From: Christopher J. Bowerman [mailto:[EMAIL PROTECTED]
Sent: Monday, May 8, 2006 10:42 AM
To: ''Dennis Byrne \(JIRA\)''
Subject: RE: [jira] Closed: (TOMAHAWK-405) Running under ServletExec 5 two TLD 
attribute elements have the same name

Dennis,

Thanks for the reply and work.  I downloaded the 5/8 nightly build to try
out the corrections this morning.  Unfortunately, it now gave me some
different errors.  I'm new at contributing bug reports, etc. So I'm not sure
if I should send this to you or perhaps it requires a new report.

The first time I tried it I got the following exeption:

java.lang.IllegalStateException: ExtensionsFilter not correctly configured.
JSF mapping missing. JSF pages not covered. Please see:
http://myfaces.apache.org/tomahawk/extensionsFilter.html
   at
org.apache.myfaces.renderkit.html.util.AddResourceFactory.throwExtensionsFil
terMissing(AddResourceFactory.java:371)
   at
org.apache.myfaces.renderkit.html.util.AddResourceFactory.checkEnvironment(A
ddResourceFactory.java:333)
   at
org.apache.myfaces.renderkit.html.util.AddResourceFactory.getInstance(AddRes
ourceFactory.java:288)
   at
org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeJavascript(HtmlTreeRe
nderer.java:608)
   at
org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeBegin(HtmlTreeRendere
r.java:149)
   at
javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:675)
   at
org.apache.myfaces.custom.tree2.UITreeData.encodeBegin(UITreeData.java:243)
   at
javax.faces.webapp.UIComponentTag.encodeBegin(UIComponentTag.java:584)
   at
javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:536)
   at
pagecompile._ModelViewInfo1_xjsp._jspService(_ModelViewInfo1_xjsp.java:722)
   at
com.newatlanta.servletexec.JspHttpJspPage.service(JspHttpJspPage.java:41)
   at
com.newatlanta.servletexec.JspServlet.service(JspServlet.java:1036)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
   at
com.newatlanta.servletexec.SERequestDispatcher.forwardServlet(SERequestDispa
tcher.java:638)
   at
com.newatlanta.servletexec.SERequestDispatcher.forward(SERequestDispatcher.j
ava:247)
   at
com.newatlanta.servletexec.SERequestDispatcher.forward(SERequestDispatcher.j
ava:108)
   at
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:
322)
   at
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:14
7)
   at
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java
:87)
   at
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
   at
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
   at
com.newatlanta.servletexec.SERequestDispatcher.forwardServlet(SERequestDispa
tcher.java:638)
   at
com.newatlanta.servletexec.SERequestDispatcher.forward(SERequestDispatcher.j
ava:236)
   at
com.newatlanta.servletexec.SERequestDispatcher.internalForward(SERequestDisp
atcher.java:283)
   at
com.newatlanta.servletexec.ApplicationInfo.processApplRequest(ApplicationInf
o.java:1846)
   at
com.newatlanta.servletexec.ServerHostInfo.processApplRequest(ServerHostInfo.
java:937)
   at
com.newatlanta.servletexec.ServletExec.ProcessRequest(ServletExec.java:1091)
   at
com.newatlanta.servletexec.ServletExec.ProcessRequest(ServletExec.java:973)
   at
com.newatlanta.servletexec.ServletExecService.processServletRequest(ServletE
xecService.java:167)
   at
com.newatlanta.servletexec.ServletExecService.Run(ServletExecService.java:20
4)
   at
com.newatlanta.servletexec.HttpServerRequest.run(HttpServerRequest.java:511)



I then went to the suggested webpage.  Made some corrections to my web.xml
and tried again, but I got the following exception the second time:

java.lang.NoClassDefFoundError:
org/apache/commons/lang/builder/HashCodeBuilder
   at
org.apache.myfaces.renderkit.html.util.DefaultAddResource$ScriptPositionedIn
fo.hashCode(DefaultAddResource.java:962)
   at java.util.HashMap.hash(HashMap.java:264)
   at java.util.HashMap.put(HashMap.java:382)
   at java.util.HashSet.add(HashSet.java:194)
   at
org.apache.myfaces.renderkit.html.util.DefaultAddResource.addPositionedInfo(
DefaultAddResource.java:621)
   at
org.apache.myfaces.renderkit.html.util.DefaultAddResource.addJavaScriptAtPos
ition(DefaultAddResource.java:337)
   at
org.apache.myfaces.renderkit.html.util.DefaultAddResource.addJavaScriptAtPos
ition(DefaultAddResource.java:249)
   at
org.apache.myfaces.renderkit.html.util.DefaultAddResource.addJavaScriptAtPos
ition(DefaultAddResource.java:267)
   at
org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeJavascript(HtmlTreeRe
nderer.java:611

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. :)
 
 





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: 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 ...

servlet-mapping
servlet-nameFaces Servlet/servlet-name
url-pattern/*/url-pattern
/servlet-mapping

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:
 
filter
filter-nameMyFacesExtensionsFilter/filter-name
 
filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-
class
init-param
param-namemaxFileSize/param-name
param-value20m/param-value
/init-param
/filter
filter-mapping
filter-nameMyFacesExtensionsFilter/filter-name
servlet-nameFaces Servlet/servlet-name
/filter-mapping
filter-mapping
filter-nameMyFacesExtensionsFilter/filter-name
url-pattern/faces/myFacesExtensionResource/*/url-pattern
/filter-mapping
 
servlet
servlet-nameFaces Servlet/servlet-name
servlet-classjavax.faces.webapp.FacesServlet/servlet-class
load-on-startup1/load-on-startup
/servlet
servlet-mapping
servlet-nameFaces Servlet/servlet-name
url-pattern/faces/*/url-pattern
/servlet-mapping

 
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:
 
filter
filter-nameMyFacesExtensionsFilter/filter-name
 
filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-
class
init-param
param-namemaxFileSize/param-name
param-value20m/param-value
/init-param
/filter
filter-mapping
filter-nameMyFacesExtensionsFilter/filter-name
servlet-nameFaces Servlet/servlet-name
/filter-mapping
filter-mapping
filter-nameMyFacesExtensionsFilter/filter-name
 
url-pattern/transactionbrowser/myFacesExtensionResource/*/url-pattern

/filter-mapping
 
servlet
servlet-nameFaces Servlet/servlet-name
servlet-classjavax.faces.webapp.FacesServlet/servlet-class
load-on-startup1/load-on-startup
/servlet
servlet-mapping
servlet-nameFaces Servlet/servlet-name
url-pattern/transactionbrowser/*/url-pattern
/servlet-mapping
 
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

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?
 
filter
filter-nameMyFacesExtensionsFilter/filter-name
 
filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-
class
init-param
param-namemaxFileSize/param-name
param-value20m/param-value
/init-param
/filter
filter-mapping
filter-nameMyFacesExtensionsFilter/filter-name
servlet-nameFaces Servlet/servlet-name
/filter-mapping
filter-mapping
filter-nameMyFacesExtensionsFilter/filter-name
 
url-pattern/transactionbrowser/myFacesExtensionResource/*/url-pattern

/filter-mapping
 
Thanks,
 
--Todd





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

2006-05-03 Thread Dennis Byrne
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 





Re: NotSerializableException from PoolingDataSource

2006-05-03 Thread Dennis Byrne
Don't serialize a data sources ;)

Use the transient key word.

Dennis Byrne

-Original Message-
From: Yasushi Okubo [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 3, 2006 11:55 AM
To: 'MyFaces Discussion'
Subject: NotSerializableException from PoolingDataSource


Hi, experts

My backing bean needs to connect to database through connection 
pool/DataSource  on  tomcat (v5.5.16).   Now  I changed my backing beans 
from session to request scope trying to use t:savestate tag, then I made 
them serializable, but it started  giving exceptions 
[NotSerializableException for 
PoolingDataSource$PoolGuardConnectionWrapper}.  So,  Are there any other 
options or work around  or am I doing something wrong ?

Thanks for your help,
yasushi

 Servlet.service() for servlet Faces Servlet threw exception
 javax.faces.FacesException: java.io.NotSerializableException: 
org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper
at 
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421)
at 
org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl.dispatch(JspTilesViewHandlerImpl.java:233)
at 
org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl.renderView(JspTilesViewHandlerImpl.java:219)
at 
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.jasper.JasperException: 
java.io.NotSerializableException: 
org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper
at 
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at 
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:415)
... 21 more






Re: NotSerializableException from PoolingDataSource

2006-05-03 Thread Dennis Byrne
You'll want to make sure the application is not trying to serialize a class 
w/out a no-args constructor.

Dennis Byrne

-Original Message-
From: Yasushi Okubo [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 3, 2006 01:36 PM
To: 'MyFaces Discussion'
Subject: Re: NotSerializableException from PoolingDataSource

Dennis Byrne wrote:

Don't serialize a data sources ;)

Use the transient key word.

Dennis Byrne

  

Thanks for the tip Dennis, but I started seeing another error after 
adding transient before DataSource:
java.io.InvalidClassException: org.nesg.plims.QueryBean; no valid 
constructor

I am not sure why it is saying no valid constructor, am I using 
transient properly ?
private transient DataSource ds;

Thanks,
yasushi

-Original Message-
From: Yasushi Okubo [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 3, 2006 11:55 AM
To: 'MyFaces Discussion'
Subject: NotSerializableException from PoolingDataSource


Hi, experts

My backing bean needs to connect to database through connection 
pool/DataSource  on  tomcat (v5.5.16).   Now  I changed my backing beans 


from session to request scope trying to use t:savestate tag, then I made 
  

them serializable, but it started  giving exceptions 
[NotSerializableException for 
PoolingDataSource$PoolGuardConnectionWrapper}.  So,  Are there any other 
options or work around  or am I doing something wrong ?

Thanks for your help,
yasushi

Servlet.service() for servlet Faces Servlet threw exception
javax.faces.FacesException: java.io.NotSerializableException: 
org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper
   at 
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421)
   at 
org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl.dispatch(JspTilesViewHandlerImpl.java:233)
   at 
org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl.renderView(JspTilesViewHandlerImpl.java:219)
   at 
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at 
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
   at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
   at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
   at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
   at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.jasper.JasperException: 
java.io.NotSerializableException: 
org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper
   at 
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
   at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
   at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
   at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
   at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
   at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301

Re: f:subview id value added to child t:div

2006-05-03 Thread Dennis Byrne
forceId=true

Dennis Byrne

-Original Message-
From: fischman_98 [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 3, 2006 07:34 PM
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:
f:subview id=foo
t:div id=bar
.
.
.
/t:div
/t:subview

The resulting HTML is:

div id=foo:bar
.
.
.
/div




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






Re: jsp:include does not work

2006-04-30 Thread Dennis Byrne
What hapens when you change header.jsp to header.jsf?  What happens when the 
JSF elements of header.jsp are in a f:view / or f:subview / ?

Dennis Byrne

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Sunday, April 30, 2006 03:30 PM
To: users@myfaces.apache.org
Subject: jsp:include does not work


The JSF code of header.jsp is not interpreted.
I use
jsp:include page=header.jsp /

The generated html code

table bgcolor=#FF width=100% cellpadding=0 cellspacing=0
   border=0
   tr

   td
   h:graphicImage value=images/webstore.gif/
   /td
   /tr
/table







Re: switching hosts - new version of tomcat

2006-04-28 Thread Dennis Byrne
Try configuring tomcat's MIME types.  Perhaps someone else here knows the exact 
file name - this escapes me now.

Dennis Byrne

-Original Message-
From: L Frohman [mailto:[EMAIL PROTECTED]
Sent: Friday, April 28, 2006 04:47 PM
To: ''MyFaces Discussion''
Subject: switching hosts - new version of tomcat

I have a myfaces (and Spring and Hibernate) application working
with Tomcat 5.0 and java 1.4, I switched servers, and the new server
has Tomcat 5.5 and java 1.5, but on the new server, all the .faces pages
appear with no output at all - view source shows a blank page. There
are no error messages in the logs.
 
Any ideas on how I would even begin to figure this out?
 
Thanks,
Lance
 





Re: switching hosts - new version of tomcat

2006-04-28 Thread Dennis Byrne
Oops, I misread your original post.  I thought you were saying the HTML was 
being received, just not being rendered.  

This is probably the answer ...

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

Dennis Byrne

-Original Message-
From: L Frohman [mailto:[EMAIL PROTECTED]
Sent: Friday, April 28, 2006 05:04 PM
To: ''MyFaces Discussion''
Subject: RE: switching hosts - new version of tomcat

I think you mean the web.xml file in tomcat's conf directory.
I added an entry for .faces (there was already one for .jsf),
but it didn't help. 

-Original Message-
From: Dennis Byrne [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 28, 2006 1:50 PM
To: MyFaces Discussion
Subject: Re: switching hosts - new version of tomcat

Try configuring tomcat's MIME types.  Perhaps someone else here knows the
exact file name - this escapes me now.

Dennis Byrne

-Original Message-
From: L Frohman [mailto:[EMAIL PROTECTED]
Sent: Friday, April 28, 2006 04:47 PM
To: ''MyFaces Discussion''
Subject: switching hosts - new version of tomcat

I have a myfaces (and Spring and Hibernate) application working with 
Tomcat 5.0 and java 1.4, I switched servers, and the new server has 
Tomcat 5.5 and java 1.5, but on the new server, all the .faces pages 
appear with no output at all - view source shows a blank page. There 
are no error messages in the logs.
 
Any ideas on how I would even begin to figure this out?
 
Thanks,
Lance
 








Re: General Converter Question

2006-04-27 Thread Dennis Byrne
If you look at the source there is already a boolean converter, but it does the 
*opposite* of what you need.  It was in sandbox the last time I saw it but it 
may have moved to tomahawk.  Should be quick to implement though.

Dennis Byrne

-Original Message-
From: Frank Russo [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 27, 2006 12:35 PM
To: 'MyFaces Discussion'
Subject: General Converter Question

Is it possible to bind a h:selectBooleanCheckbox component to a String
field? The string field is coming out of the db as a Y or N value. This
is existing code used in a lot of places, and I can't change it. It
should have been stored in the object as a boolean or Boolean, but I
can't change that now.

Any ideas on how to do this? I've read about using converter's, but they
don't seem to apply here, unless I have to write my own. I'd rather use
a standard one if I can.

Thanks...

Frank Russo
Senior Developer
FX Alliance, LLC
900 Third Avenue, 3rd Floor
New York, NY 10022
646.268.9949







  1   2   3   4   5   >