Re: AW: [TRINIDAD] Issue with Trinidad's javascript and UTF-8

2010-03-23 Thread schneidc

Hi Tobias,

I just made an interesting observation. I changed the the first line of one
page from ?xml version=1.0 encoding=UTF-8? to ?xml version=1.0
encoding=ISO-8859-1? (btw I'm using Facelets instead of JSP) and removed
my javascript function which converted Böhm to Böhm.

Now, the POST-Message contains Böhm, but nevertheless on server side the
umlauts are missing. Now I feel a little helpless why's that, in the end the
server get's the same data...

Kind regards
Simon
-- 
View this message in context: 
http://old.nabble.com/-TRINIDAD--Issue-with-Trinidad%27s-javascript-and-UTF-8-tp27988154p27997140.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Fwd: Book Promo: Apache MyFaces 1.2 Web Application Development

2010-03-23 Thread Bart Kummel
Hi everybody,

I announced the publication of my book Apache MyFaces 1.2 Web Application
Development [1] a few weeks ago. This week there is a promotion of the book
over at JavaRanch [2], se the forwarded message below. Feel free to ask
questions about the book on their JSF forum and you might be lucky and win a
free copy of the book!

Best regards,
Bart Kummel

[1] http://tinyurl.com/am12wad
[2] http://www.coderanch.com/forums/f-82/JSF

-- Forwarded message --
From: Java Ranch Moose mmo...@javaranch.com
Date: Tue, Mar 23, 2010 at 02:12
Subject: Book Promo: Apache MyFaces 1.2 Web Application Development
To: Java Ranch Moose mmo...@javaranch.com


We are thrilled to have Bart Kummel on the ranch to promote the book
Apache MyFaces 1.2 Web Application Development.
The promotion will be held in the JSF forum which can be found here:

http://www.coderanch.com/forums/f-82/JSF

or on our mobile site:
http://www.coderanch.com/mobile/forums/f-82/JSF

Participate in this week's giveaway by asking Bart Kummel a
question or two and you may win a copy of the book!

The giveaway starts on Tuesday, March 23rd 2010.
The drawing will be held on Friday, March 26th 2010.

For more info or if you're plumb tired of getting this info, visit:
http://faq.javaranch.com/view?BookPromotions



-- 
___
Bart Kummel

Author of the book Apache MyFaces 1.2 Web Application Development
See http://tinyurl.com/am12wad


Re: Problem with BeanValidation in myfaces 2.0

2010-03-23 Thread Mark Struberg
To me this sounds like a blocker for beta3, isn't?

txs and LieGrue,
strub

--- Jakob Korherr jakob.korh...@gmail.com schrieb am Di, 23.3.2010:

 Von: Jakob Korherr jakob.korh...@gmail.com
 Betreff: Re: Problem with BeanValidation in myfaces 2.0
 An: MyFaces Discussion users@myfaces.apache.org
 Datum: Dienstag, 23. März, 2010 00:32 Uhr
 Hi Marcus,
 
 There have been some problems with el-api 2.2 recently and
 I guess the
 current solution is just not yet very stable. I'll work on
 that tomorrow!
 
 Regards,
 Jakob
 
 2010/3/22 Marcus Büttner marcus.buett...@inso.tuwien.ac.at
 
  Hi,
 
  I have a problem with BeanValidation in myfaces 2.0.
 
  The method getUELValueReference in
 _BeanValidatorUELUtils calls the
  getValueReference methode from the given
 ValueExpression.
  In el-api 2.2 this method always returns null and e.g.
 in
  TagValueExpression in myfaces the method is not
 overriden.
 
  So the ValueReference is always null and
 BeanValdiation breaks.
 
  Any ideas?
 
  Thanks, regards
  Marcus
 
 
 
 
 
 

__
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen 
Massenmails. 
http://mail.yahoo.com


Re: [TOBAGO] Controls self-adjusted in the page

2010-03-23 Thread Helmut Swaczinna
Have you had a look on the error/info log of the gridlayout renderer? It gives 
you several hints when it's unable to layout the controls correctly.


Helmut

Am 23.03.2010 04:52, schrieb Fernando Augusto:

Hello,

While working with my app using TOBAGO 1.0.25-SNAPSOT, I found the
following situation: I use GridLayout with * sizes in some rows and
columns. When the page is first loaded, the page organization is quite
messy, with heights and widths different from the window size. When it
first repaints, the controls are ALMOST (by 50px error) aligned
correctly. When the screen is repainted in the 2nd time, the controls
are correctly placed.
How do I fix it, so the controls can be fit the first time the page is
loaded???

Best Regards,

Fernando Augusto



Re: [TOBAGO] Controls self-adjusted in the page

2010-03-23 Thread Helmut Swaczinna
All renderers are theme dependend. You can't remove scarborough because it's the 
base theme and it contains all renderers. If you want to remove scarborough you 
must implement all rendereres yourself. But you can define your own theme based 
on scarborough and override the css style classes.


Helmut

Am 23.03.2010 04:55, schrieb Fernando Augusto:

Another question regarding GridLayout class... Why is it inside
scarborough theme JAR instead of a core jar, that will be distributed
even if I change themes and remove scarborough

Fernando


Em Ter, 2010-03-23 às 00:52 -0300, Fernando Augusto escreveu:

Hello,

While working with my app using TOBAGO 1.0.25-SNAPSOT, I found the
following situation: I use GridLayout with * sizes in some rows and
columns. When the page is first loaded, the page organization is quite
messy, with heights and widths different from the window size. When it
first repaints, the controls are ALMOST (by 50px error) aligned
correctly. When the screen is repainted in the 2nd time, the controls
are correctly placed.
How do I fix it, so the controls can be fit the first time the page is
loaded???

Best Regards,

Fernando Augusto






Re: [TOBAGO] Controls self-adjusted in the page

2010-03-23 Thread Udo Schnurpfeil

Hi Fernando,

a usual solution is to have a start/welcome/waiting page. This page may 
automatically forwards to your application, after checking the size of 
the browser (which will be done automatically).

You can also use a login page for that.

Is this a solution for you? If not, you may call the Tobago page with a 
script, and add the browser size as parameter, but this is not the 
preferred solution.


I, don't know why you have wrong sizes on your 2nd page. Have you a 
simple example for that?


Regards,

Udo

Am 23.03.10 04:52, schrieb Fernando Augusto:

Hello,

While working with my app using TOBAGO 1.0.25-SNAPSOT, I found the
following situation: I use GridLayout with * sizes in some rows and
columns. When the page is first loaded, the page organization is quite
messy, with heights and widths different from the window size. When it
first repaints, the controls are ALMOST (by 50px error) aligned
correctly. When the screen is repainted in the 2nd time, the controls
are correctly placed.
How do I fix it, so the controls can be fit the first time the page is
loaded???

Best Regards,

Fernando Augusto


   


Re: [TOBAGO] Controls self-adjusted in the page

2010-03-23 Thread Udo Schnurpfeil

In Tobago 1.5 the layout management (was rewritten) a moved to core.

Udo

Am 23.03.10 04:55, schrieb Fernando Augusto:

Another question regarding GridLayout class... Why is it inside
scarborough theme JAR instead of a core jar, that will be distributed
even if I change themes and remove scarborough

Fernando


Em Ter, 2010-03-23 às 00:52 -0300, Fernando Augusto escreveu:
   

Hello,

While working with my app using TOBAGO 1.0.25-SNAPSOT, I found the
following situation: I use GridLayout with * sizes in some rows and
columns. When the page is first loaded, the page organization is quite
messy, with heights and widths different from the window size. When it
first repaints, the controls are ALMOST (by 50px error) aligned
correctly. When the screen is repainted in the 2nd time, the controls
are correctly placed.
How do I fix it, so the controls can be fit the first time the page is
loaded???

Best Regards,

Fernando Augusto

 



   


Tomahawk and eclipse galileo not working?

2010-03-23 Thread Fabio F.
Hello,

I've installed Eclipse galileo with myfaces core 1.2.8 and tomahawk12-1.1.9
.

I am able to get working the tomahawk tags that don't have javascript, but
not those who have them.

For example, if in a t:inputDate tag set popupCalendar=false the page is
working, if I set it to true it simply stops rendering the page, becoming
incomplete. No way to have an error message to debug.

Is it a bug in tomahawk or am I missing something?

Those are my files:

web.xml:

?xml version=1.0 encoding=UTF-8?
web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=
http://java.sun.com/xml/ns/javaee; xmlns:web=
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; xsi:schemaLocation=
http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; id=WebApp_ID
version=2.5
  display-nametelemarketing/
display-name
  welcome-file-list
welcome-fileindex.html/welcome-file
welcome-fileindex.htm/welcome-file
welcome-fileindex.jsp/welcome-file
welcome-filedefault.html/welcome-file
welcome-filedefault.htm/welcome-file
welcome-filedefault.jsp/welcome-file
  /welcome-file-list
  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
  context-param
param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name
param-valueresources.application/param-value
  /context-param
  context-param
descriptionState saving method: 'client' or 'server' (=default). See
JSF Specification 2.5.2/description
param-namejavax.faces.STATE_SAVING_METHOD/param-name
param-valueserver/param-value
  /context-param
  context-param
description
This parameter tells MyFaces if javascript code should be allowed in
the rendered HTML output.
If javascript is allowed, command_link anchors will have javascript code
that submits the corresponding form.
If javascript is not allowed, the state saving info and nested
parameters
will be added as url parameters.
Default is 'true'/description
param-nameorg.apache.myfaces.ALLOW_JAVASCRIPT/param-name
param-valuetrue/param-value
  /context-param
  context-param
description
If true, rendered HTML code will be formatted, so that it is
'human-readable'
i.e. additional line separators and whitespace will be written, that do
not
influence the HTML code.
Default is 'true'/description
param-nameorg.apache.myfaces.PRETTY_HTML/param-name
param-valuetrue/param-value
  /context-param
  context-param
param-nameorg.apache.myfaces.DETECT_JAVASCRIPT/param-name
param-valuefalse/param-value
  /context-param
  context-param
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 is 'false'
/description
param-nameorg.apache.myfaces.AUTO_SCROLL/param-name
param-valuetrue/param-value
  /context-param
  servlet
servlet-namefaces/servlet-name
servlet-classorg.apache.myfaces.webapp.MyFacesServlet/servlet-class
load-on-startup1/load-on-startup
  /servlet
  servlet-mapping
servlet-namefaces/servlet-name
url-pattern*.jsf/url-pattern
  /servlet-mapping
  servlet-mapping
servlet-namefaces/servlet-name
url-pattern*.faces/url-pattern
  /servlet-mapping
  listener

listener-classorg.apache.myfaces.webapp.StartupServletContextListener/listener-class
  /listener
  context-param
param-nameorg.apache.myfaces.ERROR_HANDLER/param-name
param-valuenetwave.utils.ErrorHandler/param-value
  /context-param
  filter
  filter-nameMyFacesExtensionsFilter/filter-name

filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class
  init-param
  param-nameuploadMaxFileSize/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/*/url-pattern
  /filter-mapping
  filter
filter-nameCustomCharacterEncodingFilter/filter-name
filter-classnetwave.utils.CustomCharacterEncodingFilter/filter-class
  /filter
  filter-mapping
filter-nameCustomCharacterEncodingFilter/filter-name
url-pattern/*/url-pattern
  /filter-mapping
  error-page

exception-typejavax.faces.application.ViewExpiredException/exception-type
location/session_expired.jsp/location
  /error-page
/web-app

login.jsp:

%@ taglib prefix=f  uri=http://java.sun.com/jsf/core%
%@ taglib prefix=h  uri=http://java.sun.com/jsf/html%
html
head

Re: Tomahawk and eclipse galileo not working?

2010-03-23 Thread Jakob Korherr
Hi Fabio,

I saw that you have two FacesServlet definitions in your web.xml:

--javax.faces.webapp.FacesServlet mapped for /faces/* named Faces Servlet
--org.apache.myfaces.webapp.MyFacesServlet mapped for *.jsf and *.faces
named faces

And you also have installed the MyFacesExtensionsFilter for the servlet
Faces Servlet (the first one from above). This means the filter is only
working if you use /faces/* to call your JSF-page and not if you use *.jsf
or *.faces.

This filter is responsible to serve the javascript for the HTML page, so it
has to be configured correctly to use javascript (or other tomahawk
resources).

I would suggest that you remove the second servlet definition (faces) from
your web.xml because you just don't need it and, if you want them, add *.jsf
and *.faces as mappings to Faces Servlet.

I guess this should make your webapp work!

Regards,
Jakob

2010/3/23 Fabio F. fabio...@gmail.com

 Hello,

 I've installed Eclipse galileo with myfaces core 1.2.8 and tomahawk12-1.1.9
 .

 I am able to get working the tomahawk tags that don't have javascript, but
 not those who have them.

 For example, if in a t:inputDate tag set popupCalendar=false the page
 is
 working, if I set it to true it simply stops rendering the page, becoming
 incomplete. No way to have an error message to debug.

 Is it a bug in tomahawk or am I missing something?

 Those are my files:

 web.xml:

 ?xml version=1.0 encoding=UTF-8?
 web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=
 http://java.sun.com/xml/ns/javaee; xmlns:web=
 http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; xsi:schemaLocation=
 http://java.sun.com/xml/ns/javaee
 http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; id=WebApp_ID
 version=2.5
  display-nametelemarketing/
 display-name
  welcome-file-list
welcome-fileindex.html/welcome-file
welcome-fileindex.htm/welcome-file
welcome-fileindex.jsp/welcome-file
welcome-filedefault.html/welcome-file
welcome-filedefault.htm/welcome-file
welcome-filedefault.jsp/welcome-file
  /welcome-file-list
  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
  context-param
param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name
param-valueresources.application/param-value
  /context-param
  context-param
descriptionState saving method: 'client' or 'server' (=default). See
 JSF Specification 2.5.2/description
param-namejavax.faces.STATE_SAVING_METHOD/param-name
param-valueserver/param-value
  /context-param
  context-param
description
This parameter tells MyFaces if javascript code should be allowed in
the rendered HTML output.
If javascript is allowed, command_link anchors will have javascript code
that submits the corresponding form.
If javascript is not allowed, the state saving info and nested
 parameters
will be added as url parameters.
Default is 'true'/description
param-nameorg.apache.myfaces.ALLOW_JAVASCRIPT/param-name
param-valuetrue/param-value
  /context-param
  context-param
description
If true, rendered HTML code will be formatted, so that it is
 'human-readable'
i.e. additional line separators and whitespace will be written, that do
 not
influence the HTML code.
Default is 'true'/description
param-nameorg.apache.myfaces.PRETTY_HTML/param-name
param-valuetrue/param-value
  /context-param
  context-param
param-nameorg.apache.myfaces.DETECT_JAVASCRIPT/param-name
param-valuefalse/param-value
  /context-param
  context-param
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 is 'false'
 /description
param-nameorg.apache.myfaces.AUTO_SCROLL/param-name
param-valuetrue/param-value
  /context-param
  servlet
servlet-namefaces/servlet-name
servlet-classorg.apache.myfaces.webapp.MyFacesServlet/servlet-class
load-on-startup1/load-on-startup
  /servlet
  servlet-mapping
servlet-namefaces/servlet-name
url-pattern*.jsf/url-pattern
  /servlet-mapping
  servlet-mapping
servlet-namefaces/servlet-name
url-pattern*.faces/url-pattern
  /servlet-mapping
  listener


 listener-classorg.apache.myfaces.webapp.StartupServletContextListener/listener-class
  /listener
  context-param
param-nameorg.apache.myfaces.ERROR_HANDLER/param-name
param-valuenetwave.utils.ErrorHandler/param-value
  /context-param
  filter
  filter-nameMyFacesExtensionsFilter/filter-name


 

Re: Problem with BeanValidation in myfaces 2.0

2010-03-23 Thread Jakob Korherr
I don't know Mark, since Leonardo said that he wants to do beta releases on
a regular basis now I don't think it will take long until we release the
next beta.

So do you think it is that important to have it in beta-3? Or can it wait
for the next beta?

Regards,
Jakob

2010/3/23 Mark Struberg strub...@yahoo.de

 To me this sounds like a blocker for beta3, isn't?

 txs and LieGrue,
 strub

 --- Jakob Korherr jakob.korh...@gmail.com schrieb am Di, 23.3.2010:

  Von: Jakob Korherr jakob.korh...@gmail.com
  Betreff: Re: Problem with BeanValidation in myfaces 2.0
  An: MyFaces Discussion users@myfaces.apache.org
  Datum: Dienstag, 23. März, 2010 00:32 Uhr
  Hi Marcus,
 
  There have been some problems with el-api 2.2 recently and
  I guess the
  current solution is just not yet very stable. I'll work on
  that tomorrow!
 
  Regards,
  Jakob
 
  2010/3/22 Marcus Büttner marcus.buett...@inso.tuwien.ac.at
 
   Hi,
  
   I have a problem with BeanValidation in myfaces 2.0.
  
   The method getUELValueReference in
  _BeanValidatorUELUtils calls the
   getValueReference methode from the given
  ValueExpression.
   In el-api 2.2 this method always returns null and e.g.
  in
   TagValueExpression in myfaces the method is not
  overriden.
  
   So the ValueReference is always null and
  BeanValdiation breaks.
  
   Any ideas?
  
   Thanks, regards
   Marcus
  
  
  
  
  
 

 __
 Do You Yahoo!?
 Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz
 gegen Massenmails.
 http://mail.yahoo.com



Re: Tomahawk and eclipse galileo not working?

2010-03-23 Thread Fabio F.
Thank you Jakob for the help, I tried to modify my web.xml but the problem
is the same.

This is my new web.xml file, any other idea?

?xml version=1.0 encoding=UTF-8?
web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=
http://java.sun.com/xml/ns/javaee; xmlns:web=
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; xsi:schemaLocation=
http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; id=WebApp_ID
version=2.5
  display-nametelemarketing/display-name
  welcome-file-list
welcome-fileindex.html/welcome-file
welcome-fileindex.htm/welcome-file
welcome-fileindex.jsp/welcome-file
welcome-filedefault.html/welcome-file
welcome-filedefault.htm/welcome-file
welcome-filedefault.jsp/welcome-file
  /welcome-file-list
  context-param
param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name
param-valueresources.application/param-value
  /context-param
  context-param
descriptionState saving method: 'client' or 'server' (=default). See
JSF Specification 2.5.2/description
param-namejavax.faces.STATE_SAVING_METHOD/param-name
param-valueserver/param-value
  /context-param
  context-param
description
This parameter tells MyFaces if javascript code should be allowed in
the rendered HTML output.
If javascript is allowed, command_link anchors will have javascript code
that submits the corresponding form.
If javascript is not allowed, the state saving info and nested
parameters
will be added as url parameters.
Default is 'true'/description
param-nameorg.apache.myfaces.ALLOW_JAVASCRIPT/param-name
param-valuetrue/param-value
  /context-param
  context-param
description
If true, rendered HTML code will be formatted, so that it is
'human-readable'
i.e. additional line separators and whitespace will be written, that do
not
influence the HTML code.
Default is 'true'/description
param-nameorg.apache.myfaces.PRETTY_HTML/param-name
param-valuetrue/param-value
  /context-param
  context-param
param-nameorg.apache.myfaces.DETECT_JAVASCRIPT/param-name
param-valuefalse/param-value
  /context-param
  context-param
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 is 'false'
/description
param-nameorg.apache.myfaces.AUTO_SCROLL/param-name
param-valuetrue/param-value
  /context-param
  servlet
servlet-namefaces/servlet-name
servlet-classjavax.faces.webapp.FacesServlet/servlet-class
load-on-startup1/load-on-startup
  /servlet
  servlet-mapping
servlet-namefaces/servlet-name
url-pattern/faces/*/url-pattern
  /servlet-mapping
  listener

listener-classorg.apache.myfaces.webapp.StartupServletContextListener/listener-class
  /listener
  context-param
param-nameorg.apache.myfaces.ERROR_HANDLER/param-name
param-valuenetwave.utils.ErrorHandler/param-value
  /context-param
  filter
  filter-nameMyFacesExtensionsFilter/filter-name

filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class
  init-param
  param-nameuploadMaxFileSize/param-name
  param-value20m/param-value
  /init-param
  /filter
  filter-mapping
  filter-nameMyFacesExtensionsFilter/filter-name
  servlet-namefaces/servlet-name
  /filter-mapping
  filter-mapping
  filter-nameMyFacesExtensionsFilter/filter-name
  url-pattern/faces/*/url-pattern
  /filter-mapping
  filter-mapping
  filter-nameMyFacesExtensionsFilter/filter-name
  url-pattern*.jsf/url-pattern
  /filter-mapping
  filter
filter-nameCustomCharacterEncodingFilter/filter-name
filter-classnetwave.utils.CustomCharacterEncodingFilter/filter-class
  /filter
  filter-mapping
filter-nameCustomCharacterEncodingFilter/filter-name
url-pattern/*/url-pattern
  /filter-mapping
  error-page

exception-typejavax.faces.application.ViewExpiredException/exception-type
location/session_expired.jsp/location
  /error-page
/web-app

Fabio Ferrari

2010/3/23 Jakob Korherr jakob.korh...@gmail.com

 Hi Fabio,

 I saw that you have two FacesServlet definitions in your web.xml:

 --javax.faces.webapp.FacesServlet mapped for /faces/* named Faces Servlet
 --org.apache.myfaces.webapp.MyFacesServlet mapped for *.jsf and *.faces
 named faces

 And you also have installed the MyFacesExtensionsFilter for the servlet
 Faces Servlet (the first one from above). This means the filter is only
 working if you use /faces/* to call your JSF-page and not if you use *.jsf
 or *.faces.

 This filter is responsible to serve the javascript for the HTML page, so it
 has to be configured correctly to use javascript (or other tomahawk
 resources).

 I would suggest that you remove the second 

Re: Problem with BeanValidation in myfaces 2.0

2010-03-23 Thread Gerhard Petracek
as alternative users can also test the bv integration provided by myfaces
extval2.
compared to the standard integration of bv in jsf 2.0 it offers more
advanced and typesafe features.

early adaptors would help to improve it.
e.g. i saw that at least one version of the jsf2 ri had some issues with bv
(it's already fixed in the current one).
however, it would be nice to get some feedback about the latest myfaces
core2 version in combination with myfaces extval2.
the last one i tested worked pretty well.

regards,
gerhard

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

2010/3/23 Jakob Korherr jakob.korh...@gmail.com

 I don't know Mark, since Leonardo said that he wants to do beta releases on
 a regular basis now I don't think it will take long until we release the
 next beta.

 So do you think it is that important to have it in beta-3? Or can it wait
 for the next beta?

 Regards,
 Jakob

 2010/3/23 Mark Struberg strub...@yahoo.de

  To me this sounds like a blocker for beta3, isn't?
 
  txs and LieGrue,
  strub
 
  --- Jakob Korherr jakob.korh...@gmail.com schrieb am Di, 23.3.2010:
 
   Von: Jakob Korherr jakob.korh...@gmail.com
   Betreff: Re: Problem with BeanValidation in myfaces 2.0
   An: MyFaces Discussion users@myfaces.apache.org
   Datum: Dienstag, 23. März, 2010 00:32 Uhr
   Hi Marcus,
  
   There have been some problems with el-api 2.2 recently and
   I guess the
   current solution is just not yet very stable. I'll work on
   that tomorrow!
  
   Regards,
   Jakob
  
   2010/3/22 Marcus Büttner marcus.buett...@inso.tuwien.ac.at
  
Hi,
   
I have a problem with BeanValidation in myfaces 2.0.
   
The method getUELValueReference in
   _BeanValidatorUELUtils calls the
getValueReference methode from the given
   ValueExpression.
In el-api 2.2 this method always returns null and e.g.
   in
TagValueExpression in myfaces the method is not
   overriden.
   
So the ValueReference is always null and
   BeanValdiation breaks.
   
Any ideas?
   
Thanks, regards
Marcus
   
   
   
   
   
  
 
  __
  Do You Yahoo!?
  Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz
  gegen Massenmails.
  http://mail.yahoo.com
 



Re: Tomahawk and eclipse galileo not working?

2010-03-23 Thread Jakob Korherr
You're welcome!

Which url are you using to access the JSF-page in the browser?

Also: can you please provide the portion of the HTML that is supposed to
include the javascript (something like script language=javascript
type=text/javascript src=.../script).

Regards,
Jakob

2010/3/23 Fabio F. fabio...@gmail.com

 Thank you Jakob for the help, I tried to modify my web.xml but the problem
 is the same.

 This is my new web.xml file, any other idea?

 ?xml version=1.0 encoding=UTF-8?
 web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=
 http://java.sun.com/xml/ns/javaee; xmlns:web=
 http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; xsi:schemaLocation=
 http://java.sun.com/xml/ns/javaee
 http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; id=WebApp_ID
 version=2.5
  display-nametelemarketing/display-name
  welcome-file-list
welcome-fileindex.html/welcome-file
welcome-fileindex.htm/welcome-file
welcome-fileindex.jsp/welcome-file
welcome-filedefault.html/welcome-file
welcome-filedefault.htm/welcome-file
welcome-filedefault.jsp/welcome-file
  /welcome-file-list
   context-param
param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name
param-valueresources.application/param-value
  /context-param
  context-param
descriptionState saving method: 'client' or 'server' (=default). See
 JSF Specification 2.5.2/description
param-namejavax.faces.STATE_SAVING_METHOD/param-name
param-valueserver/param-value
  /context-param
  context-param
description
This parameter tells MyFaces if javascript code should be allowed in
the rendered HTML output.
If javascript is allowed, command_link anchors will have javascript code
that submits the corresponding form.
If javascript is not allowed, the state saving info and nested
 parameters
will be added as url parameters.
Default is 'true'/description
param-nameorg.apache.myfaces.ALLOW_JAVASCRIPT/param-name
param-valuetrue/param-value
  /context-param
  context-param
description
If true, rendered HTML code will be formatted, so that it is
 'human-readable'
i.e. additional line separators and whitespace will be written, that do
 not
influence the HTML code.
Default is 'true'/description
param-nameorg.apache.myfaces.PRETTY_HTML/param-name
param-valuetrue/param-value
  /context-param
  context-param
param-nameorg.apache.myfaces.DETECT_JAVASCRIPT/param-name
param-valuefalse/param-value
  /context-param
  context-param
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 is 'false'
 /description
param-nameorg.apache.myfaces.AUTO_SCROLL/param-name
param-valuetrue/param-value
  /context-param
  servlet
servlet-namefaces/servlet-name
 servlet-classjavax.faces.webapp.FacesServlet/servlet-class
load-on-startup1/load-on-startup
  /servlet
  servlet-mapping
 servlet-namefaces/servlet-name
url-pattern/faces/*/url-pattern
  /servlet-mapping
  listener


 listener-classorg.apache.myfaces.webapp.StartupServletContextListener/listener-class
  /listener
  context-param
param-nameorg.apache.myfaces.ERROR_HANDLER/param-name
param-valuenetwave.utils.ErrorHandler/param-value
  /context-param
  filter
  filter-nameMyFacesExtensionsFilter/filter-name


 filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class
  init-param
  param-nameuploadMaxFileSize/param-name
  param-value20m/param-value
  /init-param
  /filter
  filter-mapping
  filter-nameMyFacesExtensionsFilter/filter-name
   servlet-namefaces/servlet-name
   /filter-mapping
  filter-mapping
  filter-nameMyFacesExtensionsFilter/filter-name
  url-pattern/faces/*/url-pattern
  /filter-mapping
  filter-mapping
  filter-nameMyFacesExtensionsFilter/filter-name
   url-pattern*.jsf/url-pattern
   /filter-mapping
  filter
filter-nameCustomCharacterEncodingFilter/filter-name
filter-classnetwave.utils.CustomCharacterEncodingFilter/filter-class
  /filter
  filter-mapping
filter-nameCustomCharacterEncodingFilter/filter-name
url-pattern/*/url-pattern
  /filter-mapping
  error-page


 exception-typejavax.faces.application.ViewExpiredException/exception-type
location/session_expired.jsp/location
  /error-page
 /web-app

 Fabio Ferrari

 2010/3/23 Jakob Korherr jakob.korh...@gmail.com

  Hi Fabio,
 
  I saw that you have two FacesServlet definitions in your web.xml:
 
  --javax.faces.webapp.FacesServlet mapped for /faces/* named Faces
 Servlet
  --org.apache.myfaces.webapp.MyFacesServlet mapped for *.jsf and *.faces
  named faces
 
  And you also have installed the MyFacesExtensionsFilter for the servlet
  Faces 

Re: Tomahawk and eclipse galileo not working?

2010-03-23 Thread Fabio F.
Well, the URL is

http://localhost:8080/telemarketing/faces/login.jsp

I don't need to include javascript except those generated by the JSF itself.
I only need to generate a popup calendar, whose code I don't know because
I've been never able to generate it...

Fabio Ferrari

2010/3/23 Jakob Korherr jakob.korh...@gmail.com

 You're welcome!

 Which url are you using to access the JSF-page in the browser?

 Also: can you please provide the portion of the HTML that is supposed to
 include the javascript (something like script language=javascript
 type=text/javascript src=.../script).

 Regards,
 Jakob

 2010/3/23 Fabio F. fabio...@gmail.com

  Thank you Jakob for the help, I tried to modify my web.xml but the
 problem
  is the same.
 
  This is my new web.xml file, any other idea?
 
  ?xml version=1.0 encoding=UTF-8?
  web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=
  http://java.sun.com/xml/ns/javaee; xmlns:web=
  http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; xsi:schemaLocation=
  http://java.sun.com/xml/ns/javaee
  http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; id=WebApp_ID
  version=2.5
   display-nametelemarketing/display-name
   welcome-file-list
 welcome-fileindex.html/welcome-file
 welcome-fileindex.htm/welcome-file
 welcome-fileindex.jsp/welcome-file
 welcome-filedefault.html/welcome-file
 welcome-filedefault.htm/welcome-file
 welcome-filedefault.jsp/welcome-file
   /welcome-file-list
context-param
 
  param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name
 param-valueresources.application/param-value
   /context-param
   context-param
 descriptionState saving method: 'client' or 'server' (=default). See
  JSF Specification 2.5.2/description
 param-namejavax.faces.STATE_SAVING_METHOD/param-name
 param-valueserver/param-value
   /context-param
   context-param
 description
 This parameter tells MyFaces if javascript code should be allowed in
 the rendered HTML output.
 If javascript is allowed, command_link anchors will have javascript
 code
 that submits the corresponding form.
 If javascript is not allowed, the state saving info and nested
  parameters
 will be added as url parameters.
 Default is 'true'/description
 param-nameorg.apache.myfaces.ALLOW_JAVASCRIPT/param-name
 param-valuetrue/param-value
   /context-param
   context-param
 description
 If true, rendered HTML code will be formatted, so that it is
  'human-readable'
 i.e. additional line separators and whitespace will be written, that
 do
  not
 influence the HTML code.
 Default is 'true'/description
 param-nameorg.apache.myfaces.PRETTY_HTML/param-name
 param-valuetrue/param-value
   /context-param
   context-param
 param-nameorg.apache.myfaces.DETECT_JAVASCRIPT/param-name
 param-valuefalse/param-value
   /context-param
   context-param
 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 is 'false'
  /description
 param-nameorg.apache.myfaces.AUTO_SCROLL/param-name
 param-valuetrue/param-value
   /context-param
   servlet
 servlet-namefaces/servlet-name
  servlet-classjavax.faces.webapp.FacesServlet/servlet-class
 load-on-startup1/load-on-startup
   /servlet
   servlet-mapping
  servlet-namefaces/servlet-name
 url-pattern/faces/*/url-pattern
   /servlet-mapping
   listener
 
 
 
 listener-classorg.apache.myfaces.webapp.StartupServletContextListener/listener-class
   /listener
   context-param
 param-nameorg.apache.myfaces.ERROR_HANDLER/param-name
 param-valuenetwave.utils.ErrorHandler/param-value
   /context-param
   filter
   filter-nameMyFacesExtensionsFilter/filter-name
 
 
 
 filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class
   init-param
   param-nameuploadMaxFileSize/param-name
   param-value20m/param-value
   /init-param
   /filter
   filter-mapping
   filter-nameMyFacesExtensionsFilter/filter-name
servlet-namefaces/servlet-name
/filter-mapping
   filter-mapping
   filter-nameMyFacesExtensionsFilter/filter-name
   url-pattern/faces/*/url-pattern
   /filter-mapping
   filter-mapping
   filter-nameMyFacesExtensionsFilter/filter-name
url-pattern*.jsf/url-pattern
/filter-mapping
   filter
 filter-nameCustomCharacterEncodingFilter/filter-name
 
  filter-classnetwave.utils.CustomCharacterEncodingFilter/filter-class
   /filter
   filter-mapping
 filter-nameCustomCharacterEncodingFilter/filter-name
 url-pattern/*/url-pattern
   /filter-mapping
   error-page
 
 
 
 exception-typejavax.faces.application.ViewExpiredException/exception-type
   

Re: Tomahawk and eclipse galileo not working?

2010-03-23 Thread Jakob Korherr
OK thanks for the URL.

No I don't mean from the JSP, but from the generated HTML in the browser.
Just open your login.jsp in the browser and view the HTML source.

Regards,
Jakob

2010/3/23 Fabio F. fabio...@gmail.com

 Well, the URL is

 http://localhost:8080/telemarketing/faces/login.jsp

 I don't need to include javascript except those generated by the JSF
 itself.
 I only need to generate a popup calendar, whose code I don't know because
 I've been never able to generate it...

 Fabio Ferrari

 2010/3/23 Jakob Korherr jakob.korh...@gmail.com

  You're welcome!
 
  Which url are you using to access the JSF-page in the browser?
 
  Also: can you please provide the portion of the HTML that is supposed to
  include the javascript (something like script language=javascript
  type=text/javascript src=.../script).
 
  Regards,
  Jakob
 
  2010/3/23 Fabio F. fabio...@gmail.com
 
   Thank you Jakob for the help, I tried to modify my web.xml but the
  problem
   is the same.
  
   This is my new web.xml file, any other idea?
  
   ?xml version=1.0 encoding=UTF-8?
   web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=
   http://java.sun.com/xml/ns/javaee; xmlns:web=
   http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;
 xsi:schemaLocation=
   http://java.sun.com/xml/ns/javaee
   http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; id=WebApp_ID
   version=2.5
display-nametelemarketing/display-name
welcome-file-list
  welcome-fileindex.html/welcome-file
  welcome-fileindex.htm/welcome-file
  welcome-fileindex.jsp/welcome-file
  welcome-filedefault.html/welcome-file
  welcome-filedefault.htm/welcome-file
  welcome-filedefault.jsp/welcome-file
/welcome-file-list
 context-param
  
   param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name
  param-valueresources.application/param-value
/context-param
context-param
  descriptionState saving method: 'client' or 'server' (=default).
 See
   JSF Specification 2.5.2/description
  param-namejavax.faces.STATE_SAVING_METHOD/param-name
  param-valueserver/param-value
/context-param
context-param
  description
  This parameter tells MyFaces if javascript code should be allowed in
  the rendered HTML output.
  If javascript is allowed, command_link anchors will have javascript
  code
  that submits the corresponding form.
  If javascript is not allowed, the state saving info and nested
   parameters
  will be added as url parameters.
  Default is 'true'/description
  param-nameorg.apache.myfaces.ALLOW_JAVASCRIPT/param-name
  param-valuetrue/param-value
/context-param
context-param
  description
  If true, rendered HTML code will be formatted, so that it is
   'human-readable'
  i.e. additional line separators and whitespace will be written, that
  do
   not
  influence the HTML code.
  Default is 'true'/description
  param-nameorg.apache.myfaces.PRETTY_HTML/param-name
  param-valuetrue/param-value
/context-param
context-param
  param-nameorg.apache.myfaces.DETECT_JAVASCRIPT/param-name
  param-valuefalse/param-value
/context-param
context-param
  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 is 'false'
   /description
  param-nameorg.apache.myfaces.AUTO_SCROLL/param-name
  param-valuetrue/param-value
/context-param
servlet
  servlet-namefaces/servlet-name
   servlet-classjavax.faces.webapp.FacesServlet/servlet-class
  load-on-startup1/load-on-startup
/servlet
servlet-mapping
   servlet-namefaces/servlet-name
  url-pattern/faces/*/url-pattern
/servlet-mapping
listener
  
  
  
 
 listener-classorg.apache.myfaces.webapp.StartupServletContextListener/listener-class
/listener
context-param
  param-nameorg.apache.myfaces.ERROR_HANDLER/param-name
  param-valuenetwave.utils.ErrorHandler/param-value
/context-param
filter
filter-nameMyFacesExtensionsFilter/filter-name
  
  
  
 
 filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class
init-param
param-nameuploadMaxFileSize/param-name
param-value20m/param-value
/init-param
/filter
filter-mapping
filter-nameMyFacesExtensionsFilter/filter-name
 servlet-namefaces/servlet-name
 /filter-mapping
filter-mapping
filter-nameMyFacesExtensionsFilter/filter-name
url-pattern/faces/*/url-pattern
/filter-mapping
filter-mapping
filter-nameMyFacesExtensionsFilter/filter-name
 url-pattern*.jsf/url-pattern
 /filter-mapping

Re: org.apache.myfaces.shared_impl.webapp.webxml.WebXmlParser

2010-03-23 Thread pbreen
It was my version number in the rptdesign file.  It was 3.2.21 and when I 
changed it to 3.2.20 it worked.  What happened was that I upgraded my 
eclipse plugin to get the latest version of the BIRT plugin.  However, my 
BIRT runtime was different from what was generated by Ecllipse in the 
rptdesign file.  Tricky stuff!





Jakob Korherr jakob.korh...@gmail.com 
Sent by: sethfromaust...@gmail.com
12/03/2009 07:25 AM
Please respond to
MyFaces Discussion users@myfaces.apache.org


To
viswam...@gmail.com
cc
MyFaces Discussion users@myfaces.apache.org
Subject
Re: org.apache.myfaces.shared_impl.webapp.webxml.WebXmlParser






Hi,

Also: Does your AS have internet access? I think it might be a problem,
because it can not obtain the schema information (or DTDs) for web.xml, 
for
example http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd.

Regards

Jakob Korherr

2009/12/3 Jakob Korherr jakob.korh...@gmail.com

 Hi,

 did you try it on an other machine (e.g. JBoss) also and did you get the
 same error?

 Regards,

 Jakob Korherr

 2009/12/3 viswam k viswam...@gmail.com

 Hi,
 this im getting when i deploy my webapplication on AIX,WAS7 box


 org.apache.myfaces.shared_impl.webapp.webxml.WebXmlParser parse Unable 
to
 parse web.xml
 java.net.ConnectException: A remote host did not respond within the
 timeout
 period.

 thanks
 -viswam





This (email or fax) communication and accompanying documents are intended 
only for the individual or entity to which it is addressed and may contain 
information that is confidential, privileged or exempt from disclosure 
under applicable law. Any use of this information by individuals or 
entities other than the intended recipient is strictly prohibited. If you 
have received this in error, please notify the sender and delete all the 
copies (electronic or otherwise) immediately.
Ce (courriel/message par télécopieur), y compris les pièces jointes, est 
confidentiel et destiné seulement à la personne ou à l'organisme auquel il 
est adressé. Il peut contenir des renseignements confidentiels, 
privilégiés ou qui ne doivent pas être divulgués de par la loi. La 
distribution ou la divulgation non autorisée de ce message à d'autres que 
le destinataire vise est strictement interdite. Si vous avez reçu ce 
courriel par erreur, veuillez nous aviser et immédiatement éliminer toute 
copie (électronique ou autre) , ainsi que les pièces jointes, de votre 
système informatique et de vos dossiers.  

Re: Tomahawk and eclipse galileo not working?

2010-03-23 Thread Fabio F.
Ah, ok.

Here's login.jsp.

html
head
meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1
titleLogin aziende/title
/head
body
centerh1Elenco aziende/h1/center
form id=login name=login method=post
action=/telemarketing/faces/login.jsp
enctype=application/x-www-form-urlencoded
pEntra/p
pUsername: input id=login:j_id_jsp_1876195572_2
name=login:j_id_jsp_1876195572_2 type=text value=fabio //p
pPassword: input type=password name=login:j_id_jsp_1876195572_3
//p
script type=text/javascript!--


function oamSetHiddenInput(formname, name, value)
{
var form = document.forms[formname];
if (typeof form == 'undefined')
{
form = document.getElementById(formName);
}

if(typeof form.elements[name]!='undefined' 
(form.elements[name].nodeName=='INPUT' ||
form.elements[name].nodeName=='input'))
{
form.elements[name].value=value;
}
else
{
var newInput = document.createElement('input');
newInput.setAttribute('type','hidden');
newInput.setAttribute('id',name);
newInput.setAttribute('name',name);
newInput.setAttribute('value',value);
form.appendChild(newInput);
}

}


function oamClearHiddenInput(formname, name, value)
{
var form = document.forms[formname];
if (typeof form == 'undefined')
{
form = document.getElementById(formName);
}

var hInput = form.elements[name];
if(typeof hInput !='undefined')
{
form.removeChild(hInput);
}

}

function oamSubmitForm(formName, linkId, target, params)
{

var clearFn = 'clearFormHiddenParams_'+formName.replace(/-/g,
'\$:').replace(/:/g,'_');
if(typeof window[clearFn] =='function')
{
window[clearFn](formName);
}

if(typeof window.getScrolling!='undefined')
{
oamSetHiddenInput(formName,'autoScroll',getScrolling());
}

var form = document.forms[formName];
if (typeof form == 'undefined')
{
form = document.getElementById(formName);
}

var oldTarget = form.target;
if(target != null)
{

form.target=target;
}
if((typeof params!='undefined')  params != null)
{

for(var i=0, param; (param = params[i]); i++)
{
oamSetHiddenInput(formName,param[0], param[1]);
}

}

oamSetHiddenInput(formName,formName +':'+'_idcl',linkId);

if(form.onsubmit)
{
var result=form.onsubmit();
if((typeof result=='undefined')||result)
{
try
{
form.submit();
}
catch(e){}
}

}
else
{
try
{
form.submit();
}
catch(e){}
}

form.target=oldTarget;
if((typeof params!='undefined')  params != null)
{

for(var i=0, param; (param = params[i]); i++)
{
oamClearHiddenInput(formName,param[0], param[1]);
}

}

oamClearHiddenInput(formName,formName +':'+'_idcl',linkId);return
false;
}


//--/scriptinput id=login:j_id_jsp_1876195572_4
name=login:j_id_jsp_1876195572_4 type=submit value=Login
onclick=if(typeof
window.getScrolling!='undefined'){oamSetHiddenInput('login','autoScroll',getScrolling());}
/
input type=hidden name=autoScroll /
input type=hidden name=login_SUBMIT value=1 /input type=hidden
name=javax.faces.ViewState id=javax.faces.ViewState
value=zIMgBuW/tce7OOILsjV0PiVTJ/AqSIX+uDFIECtrt49O49UDy2OA2ZSz0eJf6CsXjINRtpLixMffHDTl5zBAaQ==
//form

script type=text/javascript!--

function getScrolling()
{
var x = 0; var y = 0;if (self.pageXOffset || self.pageYOffset)
{
x = self.pageXOffset;
y = self.pageYOffset;
}
 else if ((document.documentElement 
document.documentElement.scrollLeft)||(document.documentElement 
document.documentElement.scrollTop))
{
x = document.documentElement.scrollLeft;
y = document.documentElement.scrollTop;
}
 else if (document.body)
{
x = document.body.scrollLeft;
y = document.body.scrollTop;
}
return x + , + y;
}

//--/script
/body
/html

2010/3/23 Jakob Korherr jakob.korh...@gmail.com

 OK thanks for the URL.

 No I don't mean from the JSP, but from the generated HTML in the browser.
 Just open your login.jsp in the browser and view the HTML source.

 Regards,
 Jakob




Re: Tomahawk and eclipse galileo not working?

2010-03-23 Thread Jakob Korherr
Thanks!

Is this the page that is supposed to render the calendar with the popup?
Because I don't see the javascript needed for it here..

Regards,
Jakob

2010/3/23 Fabio F. fabio...@gmail.com

 Ah, ok.

 Here's login.jsp.

 html
 head
 meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1
 titleLogin aziende/title
 /head
 body
 centerh1Elenco aziende/h1/center
 form id=login name=login method=post
 action=/telemarketing/faces/login.jsp
 enctype=application/x-www-form-urlencoded
pEntra/p
pUsername: input id=login:j_id_jsp_1876195572_2
 name=login:j_id_jsp_1876195572_2 type=text value=fabio //p
pPassword: input type=password name=login:j_id_jsp_1876195572_3
 //p
script type=text/javascript!--


function oamSetHiddenInput(formname, name, value)
{
var form = document.forms[formname];
if (typeof form == 'undefined')
{
form = document.getElementById(formName);
}

if(typeof form.elements[name]!='undefined' 
 (form.elements[name].nodeName=='INPUT' ||
 form.elements[name].nodeName=='input'))
{
form.elements[name].value=value;
}
else
{
var newInput = document.createElement('input');
newInput.setAttribute('type','hidden');
newInput.setAttribute('id',name);
newInput.setAttribute('name',name);
newInput.setAttribute('value',value);
form.appendChild(newInput);
}

}


function oamClearHiddenInput(formname, name, value)
{
var form = document.forms[formname];
if (typeof form == 'undefined')
{
form = document.getElementById(formName);
}

var hInput = form.elements[name];
if(typeof hInput !='undefined')
{
form.removeChild(hInput);
}

}

function oamSubmitForm(formName, linkId, target, params)
{

var clearFn = 'clearFormHiddenParams_'+formName.replace(/-/g,
 '\$:').replace(/:/g,'_');
if(typeof window[clearFn] =='function')
{
window[clearFn](formName);
}

if(typeof window.getScrolling!='undefined')
{
oamSetHiddenInput(formName,'autoScroll',getScrolling());
}

var form = document.forms[formName];
if (typeof form == 'undefined')
{
form = document.getElementById(formName);
}

var oldTarget = form.target;
if(target != null)
{

form.target=target;
}
if((typeof params!='undefined')  params != null)
{

for(var i=0, param; (param = params[i]); i++)
{
oamSetHiddenInput(formName,param[0], param[1]);
}

}

oamSetHiddenInput(formName,formName +':'+'_idcl',linkId);

if(form.onsubmit)
{
var result=form.onsubmit();
if((typeof result=='undefined')||result)
{
try
{
form.submit();
}
catch(e){}
}

}
else
{
try
{
form.submit();
}
catch(e){}
}

form.target=oldTarget;
if((typeof params!='undefined')  params != null)
{

for(var i=0, param; (param = params[i]); i++)
{
oamClearHiddenInput(formName,param[0], param[1]);
}

}

oamClearHiddenInput(formName,formName +':'+'_idcl',linkId);return
 false;
}


 //--/scriptinput id=login:j_id_jsp_1876195572_4
 name=login:j_id_jsp_1876195572_4 type=submit value=Login
 onclick=if(typeof

 window.getScrolling!='undefined'){oamSetHiddenInput('login','autoScroll',getScrolling());}
 /
 input type=hidden name=autoScroll /
 input type=hidden name=login_SUBMIT value=1 /input type=hidden
 name=javax.faces.ViewState id=javax.faces.ViewState

 value=zIMgBuW/tce7OOILsjV0PiVTJ/AqSIX+uDFIECtrt49O49UDy2OA2ZSz0eJf6CsXjINRtpLixMffHDTl5zBAaQ==
 //form

 script type=text/javascript!--

function getScrolling()
{
var x = 0; var y = 0;if (self.pageXOffset || self.pageYOffset)
{
x = self.pageXOffset;
y = self.pageYOffset;
}
 else if ((document.documentElement 
 document.documentElement.scrollLeft)||(document.documentElement 
 document.documentElement.scrollTop))
{
x = document.documentElement.scrollLeft;
y = document.documentElement.scrollTop;
}
 else if (document.body)
{
x = document.body.scrollLeft;
y = document.body.scrollTop;
}
return x + , + y;
}

 //--/script
 /body
 /html

 2010/3/23 Jakob Korherr jakob.korh...@gmail.com

  OK thanks for the URL.
 
  No I don't mean from the JSP, but from the generated HTML in the browser.
  Just open your login.jsp in the browser and 

Re: [TOBAGO] Controls self-adjusted in the page

2010-03-23 Thread Fernando Augusto

Hey Udo,

Thanks for your support again. I already have a login form in the app, 
and what happens is:


1 - Login Form (the login page has a rows/columns problem and the form 
doesn't want to be in the center, but I am trying to fix it myself). 
User uses ID/PWD and validates itself;
2 - Main Form (with the alignment problem stated here). Clicking in the 
buttons or menus and making the page refresh a few times makes the 
appearance get better.


@Udo: I am sending you in PVT the URL, with login/pwd for you to see the 
problem.


Best Regards,

Fernando Augusto

Udo Schnurpfeil escreveu:

Hi Fernando,

a usual solution is to have a start/welcome/waiting page. This page 
may automatically forwards to your application, after checking the 
size of the browser (which will be done automatically).

You can also use a login page for that.

Is this a solution for you? If not, you may call the Tobago page with 
a script, and add the browser size as parameter, but this is not the 
preferred solution.


I, don't know why you have wrong sizes on your 2nd page. Have you a 
simple example for that?


Regards,

Udo

Am 23.03.10 04:52, schrieb Fernando Augusto:

Hello,

While working with my app using TOBAGO 1.0.25-SNAPSOT, I found the
following situation: I use GridLayout with * sizes in some rows and
columns. When the page is first loaded, the page organization is quite
messy, with heights and widths different from the window size. When it
first repaints, the controls are ALMOST (by 50px error) aligned
correctly. When the screen is repainted in the 2nd time, the controls
are correctly placed.
How do I fix it, so the controls can be fit the first time the page is
loaded???

Best Regards,

Fernando Augusto


   






UIComponentBase.java - context.getViewRoot() returns null

2010-03-23 Thread Matthias Leis
Hi,

I'm using myfaces 2.0 beta 2 and currently I'm using a h:dataTable on my 
pages and everything is fine.
For some reasons (sorting etc.) I want to use the t:dataTable (from Tomahawk 
1.1.9).

Now, when I click on a link inside the table, I get the following exception:
java.lang.NullPointerException
at 
javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:1041)
at 
org.apache.myfaces.component.html.ext.HtmlDataTableHack.getClientId(HtmlDataTableHack.java:111)
at 
org.apache.myfaces.component.html.ext.AbstractHtmlDataTable.getClientId(AbstractHtmlDataTable.java:135)
at 
org.apache.myfaces.component.html.ext.HtmlDataTableHack.setRowIndex(HtmlDataTableHack.java:275)
at 
org.apache.myfaces.component.html.ext.AbstractHtmlDataTable.setRowIndex(AbstractHtmlDataTable.java:276)
at javax.faces.component.UIData.visitTree(UIData.java:1257)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:770)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:770)
at 
javax.faces.component.UIViewRoot.processRestoreState(UIViewRoot.java:648)
at 
org.springframework.faces.webflow.FlowViewStateManager.restoreComponentState(FlowViewStateManager.java:77)
at 
org.springframework.faces.webflow.FlowViewStateManager.restoreView(FlowViewStateManager.java:159)
at 
org.apache.myfaces.shared_impl.view.ViewDeclarationLanguageBase.restoreView(ViewDeclarationLanguageBase.java:106)
at 
org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.restoreView(FaceletViewDeclarationLanguage.java:1230)
at 
org.apache.myfaces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:240)
at 
com.sun.facelets.FaceletViewHandler.restoreView(FaceletViewHandler.java:316)
at 
org.springframework.faces.webflow.FlowViewHandler.restoreFlowView(FlowViewHandler.java:128)
at 
org.springframework.faces.webflow.FlowViewHandler.restoreView(FlowViewHandler.java:75)
at 
org.springframework.faces.webflow.JsfViewFactory.getView(JsfViewFactory.java:93)
at 
org.springframework.webflow.engine.ViewState.resume(ViewState.java:193)
at org.springframework.webflow.engine.Flow.resume(Flow.java:545)
at 
org.springframework.webflow.engine.impl.FlowExecutionImpl.resume(FlowExecutionImpl.java:259)
at 
org.springframework.webflow.executor.FlowExecutorImpl.resumeExecution(FlowExecutorImpl.java:163)
at 
org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:183)
at 
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:771)
at 
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
at 
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647)
at 
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:563)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:341)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:343)
at 
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
at 
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
at 
org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97)
at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
at 
org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78)
at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
at 
org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
at 

Re: UIComponentBase.java - context.getViewRoot() returns null

2010-03-23 Thread Jakob Korherr
Hi,

Unfortunately there is no tomahawk port for MyFaces 2.0 available yet, so
this might be a compatibility problem.

I traced the Exception down and found out that it happens, because the
RenderKitFactory returns null for the RenderKit here, see the code from
UIComponentBase:

String renderKitId = context.getViewRoot().getRenderKitId();
RenderKitFactory rkf = (RenderKitFactory)
FactoryFinder.getFactory(FactoryFinder.RENDER_KIT_FACTORY);
RenderKit renderKit = rkf.getRenderKit(context, renderKitId);
Renderer renderer = renderKit.getRenderer(getFamily(),
rendererType);

In the last line renderKit is null and thus we get a NPE.

Do you mind opening a JIRA issue for this? This would be really great.

Thanks!

Regards,
Jakob

2010/3/23 Matthias Leis matthias.l...@gmx.net

 Hi,

 I'm using myfaces 2.0 beta 2 and currently I'm using a h:dataTable on my
 pages and everything is fine.
 For some reasons (sorting etc.) I want to use the t:dataTable (from
 Tomahawk 1.1.9).

 Now, when I click on a link inside the table, I get the following
 exception:
 java.lang.NullPointerException
at
 javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:1041)
at
 org.apache.myfaces.component.html.ext.HtmlDataTableHack.getClientId(HtmlDataTableHack.java:111)
at
 org.apache.myfaces.component.html.ext.AbstractHtmlDataTable.getClientId(AbstractHtmlDataTable.java:135)
at
 org.apache.myfaces.component.html.ext.HtmlDataTableHack.setRowIndex(HtmlDataTableHack.java:275)
at
 org.apache.myfaces.component.html.ext.AbstractHtmlDataTable.setRowIndex(AbstractHtmlDataTable.java:276)
at javax.faces.component.UIData.visitTree(UIData.java:1257)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:770)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:770)
at
 javax.faces.component.UIViewRoot.processRestoreState(UIViewRoot.java:648)
at
 org.springframework.faces.webflow.FlowViewStateManager.restoreComponentState(FlowViewStateManager.java:77)
at
 org.springframework.faces.webflow.FlowViewStateManager.restoreView(FlowViewStateManager.java:159)
at
 org.apache.myfaces.shared_impl.view.ViewDeclarationLanguageBase.restoreView(ViewDeclarationLanguageBase.java:106)
at
 org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.restoreView(FaceletViewDeclarationLanguage.java:1230)
at
 org.apache.myfaces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:240)
at
 com.sun.facelets.FaceletViewHandler.restoreView(FaceletViewHandler.java:316)
at
 org.springframework.faces.webflow.FlowViewHandler.restoreFlowView(FlowViewHandler.java:128)
at
 org.springframework.faces.webflow.FlowViewHandler.restoreView(FlowViewHandler.java:75)
at
 org.springframework.faces.webflow.JsfViewFactory.getView(JsfViewFactory.java:93)
at
 org.springframework.webflow.engine.ViewState.resume(ViewState.java:193)
at org.springframework.webflow.engine.Flow.resume(Flow.java:545)
at
 org.springframework.webflow.engine.impl.FlowExecutionImpl.resume(FlowExecutionImpl.java:259)
at
 org.springframework.webflow.executor.FlowExecutorImpl.resumeExecution(FlowExecutorImpl.java:163)
at
 org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:183)
at
 org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:771)
at
 org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
at
 org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647)
at
 org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:563)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
 org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:341)
at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
 org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:343)
at
 org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
at
 org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
at
 org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
at
 

Re: Tomahawk and eclipse galileo not working?

2010-03-23 Thread Fabio F.
No, it is the login page. This page leads to the

http://localhost:8080/telemarketing/faces/query.jsp

whose code is (note that it is incomplete because it crashes):

htmlhead
link rel=stylesheet
href=/telemarketing/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/12693516/calendar.HtmlCalendarRenderer/WH/theme.css
type=text/css /
link rel=stylesheet
href=/telemarketing/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/12693516/calendar.HtmlCalendarRenderer/DB/theme.css
type=text/css /
meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1
titleBenvenuto/title
style type=text/css
!--
.highlight { background-color: #A8D1E8; color=blue;}
--
/style
/headbody id=j_id_jsp_470444661_3form id=queryaziende
name=queryaziende method=post action=/telemarketing/faces/query.jsp
enctype=application/x-www-form-urlencoded
pBenvenuto labelFabio/labelnbsp;labelFerrari/label/p
pProvincia: select name=queryaziende:j_id_jsp_470444661_7
size=1option value=PRPR/optionoption
value=BSBS/optionoption value= selected=selected/option
option value=TOTO/optionoption value=PZPZ/optionoption
value=ZIBELLOZIBELLO/optionoption value=SPSP/option
option value=MIMI/option/select
Stato: select name=queryaziende:j_id_jsp_470444661_9 size=1
option value=xNon interessato/optionoption value=CIn
trattativa/optionoption value=AAcquisto
effettuato/option/select/p

span id=queryaziende:datainizinput id=queryaziende:datainiz.day
name=queryaziende:datainiz.day size=2 maxlength=2 /select
id=queryaziende:datainiz.month name=queryaziende:datainiz.month
size=1option value=-1 selected=selected/optionoption
value=1gennaio/optionoption value=2febbraio/option
option value=3marzo/optionoption value=4aprile/option
option value=5maggio/optionoption
value=6giugno/optionoption value=7luglio/option
option value=8agosto/optionoption
value=9settembre/optionoption value=10ottobre/option
option value=11novembre/optionoption
value=12dicembre/option/selectinput id=queryaziende:datainiz.year
name=queryaziende:datainiz.year size=4 maxlength=4 /



2010/3/23 Jakob Korherr jakob.korh...@gmail.com

 Thanks!

 Is this the page that is supposed to render the calendar with the popup?
 Because I don't see the javascript needed for it here..

 Regards,
 Jakob

 2010/3/23 Fabio F. fabio...@gmail.com

  Ah, ok.
 
  Here's login.jsp.
 
  html
  head
  meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1
  titleLogin aziende/title
  /head
  body
  centerh1Elenco aziende/h1/center
  form id=login name=login method=post
  action=/telemarketing/faces/login.jsp
  enctype=application/x-www-form-urlencoded
 pEntra/p
 pUsername: input id=login:j_id_jsp_1876195572_2
  name=login:j_id_jsp_1876195572_2 type=text value=fabio //p
 pPassword: input type=password name=login:j_id_jsp_1876195572_3
  //p
 script type=text/javascript!--
 
 
 function oamSetHiddenInput(formname, name, value)
 {
 var form = document.forms[formname];
 if (typeof form == 'undefined')
 {
 form = document.getElementById(formName);
 }
 
 if(typeof form.elements[name]!='undefined' 
  (form.elements[name].nodeName=='INPUT' ||
  form.elements[name].nodeName=='input'))
 {
 form.elements[name].value=value;
 }
 else
 {
 var newInput = document.createElement('input');
 newInput.setAttribute('type','hidden');
 newInput.setAttribute('id',name);
 newInput.setAttribute('name',name);
 newInput.setAttribute('value',value);
 form.appendChild(newInput);
 }
 
 }
 
 
 function oamClearHiddenInput(formname, name, value)
 {
 var form = document.forms[formname];
 if (typeof form == 'undefined')
 {
 form = document.getElementById(formName);
 }
 
 var hInput = form.elements[name];
 if(typeof hInput !='undefined')
 {
 form.removeChild(hInput);
 }
 
 }
 
 function oamSubmitForm(formName, linkId, target, params)
 {
 
 var clearFn = 'clearFormHiddenParams_'+formName.replace(/-/g,
  '\$:').replace(/:/g,'_');
 if(typeof window[clearFn] =='function')
 {
 window[clearFn](formName);
 }
 
 if(typeof window.getScrolling!='undefined')
 {
 oamSetHiddenInput(formName,'autoScroll',getScrolling());
 }
 
 var form = document.forms[formName];
 if (typeof form == 'undefined')
 {
 form = document.getElementById(formName);
 }
 
 var oldTarget = form.target;
 if(target != null)
 {
 
 form.target=target;
 }
 if((typeof params!='undefined')  params != null)
  

Re: UIComponentBase.java - context.getViewRoot() returns null

2010-03-23 Thread Andreas Schmidt

Hi Mathias,

the tomahawk component is only available for myFaces 1.1 and 1.2 but not for
myFaces 2.0.
Thus I doubt that tomahawk will work with myfaces 2.0. One just has to wait
until a version for Faces 2.0 is available.


Andreas.


Matthias Leis wrote:
 
 Hi,
 
 I'm using myfaces 2.0 beta 2 and currently I'm using a h:dataTable on my
 pages and everything is fine.
 For some reasons (sorting etc.) I want to use the t:dataTable (from
 Tomahawk 1.1.9).
 
 Now, when I click on a link inside the table, I get the following
 exception:
 java.lang.NullPointerException
   at
 javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:1041)
   at
 org.apache.myfaces.component.html.ext.HtmlDataTableHack.getClientId(HtmlDataTableHack.java:111)
   at
 org.apache.myfaces.component.html.ext.AbstractHtmlDataTable.getClientId(AbstractHtmlDataTable.java:135)
   at
 org.apache.myfaces.component.html.ext.HtmlDataTableHack.setRowIndex(HtmlDataTableHack.java:275)
   at
 org.apache.myfaces.component.html.ext.AbstractHtmlDataTable.setRowIndex(AbstractHtmlDataTable.java:276)
   at javax.faces.component.UIData.visitTree(UIData.java:1257)
   at javax.faces.component.UIComponent.visitTree(UIComponent.java:770)
   at javax.faces.component.UIComponent.visitTree(UIComponent.java:770)
   at
 javax.faces.component.UIViewRoot.processRestoreState(UIViewRoot.java:648)
   at
 org.springframework.faces.webflow.FlowViewStateManager.restoreComponentState(FlowViewStateManager.java:77)
   at
 org.springframework.faces.webflow.FlowViewStateManager.restoreView(FlowViewStateManager.java:159)
   at
 org.apache.myfaces.shared_impl.view.ViewDeclarationLanguageBase.restoreView(ViewDeclarationLanguageBase.java:106)
   at
 org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.restoreView(FaceletViewDeclarationLanguage.java:1230)
   at
 org.apache.myfaces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:240)
   at
 com.sun.facelets.FaceletViewHandler.restoreView(FaceletViewHandler.java:316)
   at
 org.springframework.faces.webflow.FlowViewHandler.restoreFlowView(FlowViewHandler.java:128)
   at
 org.springframework.faces.webflow.FlowViewHandler.restoreView(FlowViewHandler.java:75)
   at
 org.springframework.faces.webflow.JsfViewFactory.getView(JsfViewFactory.java:93)
   at
 org.springframework.webflow.engine.ViewState.resume(ViewState.java:193)
   at org.springframework.webflow.engine.Flow.resume(Flow.java:545)
   at
 org.springframework.webflow.engine.impl.FlowExecutionImpl.resume(FlowExecutionImpl.java:259)
   at
 org.springframework.webflow.executor.FlowExecutorImpl.resumeExecution(FlowExecutorImpl.java:163)
   at
 org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:183)
   at
 org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:771)
   at
 org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
   at
 org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647)
   at
 org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:563)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at
 org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:341)
   at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at
 org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:343)
   at
 org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
   at
 org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
   at
 org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
   at
 org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97)
   at
 org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
   at
 org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78)
   at
 org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
   at
 

Re: Tomahawk and eclipse galileo not working?

2010-03-23 Thread Fabio F.
And this is the page (query.jsp) for popupCalendar=false

htmlhead
meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1
titleBenvenuto/title
style type=text/css
!--
.highlight { background-color: #A8D1E8; color=blue;}
--
/style
/headbody id=j_id_jsp_470444661_3form id=queryaziende
name=queryaziende method=post action=/telemarketing/faces/query.jsp
enctype=application/x-www-form-urlencoded
pBenvenuto labelFabio/labelnbsp;labelFerrari/label/p
pProvincia: select name=queryaziende:j_id_jsp_470444661_7
size=1option value=PRPR/optionoption
value=BSBS/optionoption value= selected=selected/option
option value=TOTO/optionoption value=PZPZ/optionoption
value=ZIBELLOZIBELLO/optionoption value=SPSP/option
option value=MIMI/option/select
Stato: select name=queryaziende:j_id_jsp_470444661_9 size=1
option value=xNon interessato/optionoption value=CIn
trattativa/optionoption value=AAcquisto
effettuato/option/select/p

span id=queryaziende:datainizinput id=queryaziende:datainiz.day
name=queryaziende:datainiz.day size=2 maxlength=2 /select
id=queryaziende:datainiz.month name=queryaziende:datainiz.month
size=1option value=-1 selected=selected/optionoption
value=1gennaio/optionoption value=2febbraio/option
option value=3marzo/optionoption value=4aprile/option
option value=5maggio/optionoption
value=6giugno/optionoption value=7luglio/option
option value=8agosto/optionoption
value=9settembre/optionoption value=10ottobre/option
option value=11novembre/optionoption
value=12dicembre/option/selectinput id=queryaziende:datainiz.year
name=queryaziende:datainiz.year size=4 maxlength=4 //spanscript
type=text/javascript!--


function oamSetHiddenInput(formname, name, value)
{
var form = document.forms[formname];
if(typeof form.elements[name]!='undefined' 
form.elements[name].nodeName=='INPUT')
{
form.elements[name].value=value;
}
else
{
var newInput = document.createElement('input');
newInput.setAttribute('type','hidden');
newInput.setAttribute('id',name);
newInput.setAttribute('name',name);
newInput.setAttribute('value',value);
form.appendChild(newInput);
}

}


function oamClearHiddenInput(formname, name, value)
{
var form = document.forms[formname];
var hInput = form.elements[name];
if(typeof hInput !='undefined')
{
form.removeChild(hInput);
}

}

function oamSubmitForm(formName, linkId, target, params)
{

var clearFn = 'clearFormHiddenParams_'+formName.replace(/-/g,
'\$:').replace(/:/g,'_');
if(typeof window[clearFn] =='function')
{
window[clearFn](formName);
}

if(typeof window.getScrolling!='undefined')
{
oamSetHiddenInput(formName,'autoScroll',getScrolling());
}

var form = document.forms[formName];
var oldTarget = form.target;
if(target != null)
{

form.target=target;
}
if((typeof params!='undefined')  params != null)
{

for(var i=0, param; (param = params[i]); i++)
{
oamSetHiddenInput(formName,param[0], param[1]);
}

}

oamSetHiddenInput(formName,formName +':'+'_idcl',linkId);

if(form.onsubmit)
{
var result=form.onsubmit();
if((typeof result=='undefined')||result)
{
try
{
form.submit();
}
catch(e){}
}

}
else
{
try
{
form.submit();
}
catch(e){}
}

form.target=oldTarget;
if((typeof params!='undefined')  params != null)
{

for(var i=0, param; (param = params[i]); i++)
{
oamClearHiddenInput(formName,param[0], param[1]);
}

}

oamClearHiddenInput(formName,formName +':'+'_idcl',linkId);return
false;
}


//--/scriptinput id=queryaziende:j_id_jsp_470444661_12
name=queryaziende:j_id_jsp_470444661_12 type=submit value=Query
onclick=if(typeof
window.getScrolling!='undefined'){oamSetHiddenInput('queryaziende','autoScroll',getScrolling());}
/
input type=hidden name=autoScroll /
input type=hidden name=queryaziende_SUBMIT value=1 /input
type=hidden name=javax.faces.ViewState id=javax.faces.ViewState
value=OJESdja1jaMfY2GNgOEtYZVCGw5Xw63sGplYVRh7SJZiPTBAy5S+j3OUQiungWQ8Cu/1ZM6ltj2fiJ9zyhgHww==
//form
script type=text/javascript!--

function getScrolling()
{
var x = 0; var y = 0;if (self.pageXOffset || self.pageYOffset)
{
x = self.pageXOffset;
y = self.pageYOffset;
}
 else 

Re: UIComponentBase.java - context.getViewRoot() returns null

2010-03-23 Thread Matthias Leis
Hi,

I just saw, that I'm not working with the beta 2 but with the snapshot. In beta 
2 the NPW is thrown at line 1038 (in snapshot at line 1041).
The line is:

   String renderKitId = context.getViewRoot().getRenderKitId();

And looking at the variables in debugging mode says, that the viewRoot is null. 
Sorry for the confusion :)

Of course I don't mind to open a JIRA issue :)

PS: I know tomahawk isn't even supposed to work with myfaces 2, but in 
generally it does. This one here is the only compatibility problem I found 
(...for now ;) )

Matthias
 Original-Nachricht 
 Datum: Tue, 23 Mar 2010 15:44:32 +0100
 Von: Jakob Korherr jakob.korh...@gmail.com
 An: MyFaces Discussion users@myfaces.apache.org
 Betreff: Re: UIComponentBase.java - context.getViewRoot() returns null

 Hi,
 
 Unfortunately there is no tomahawk port for MyFaces 2.0 available yet, so
 this might be a compatibility problem.
 
 I traced the Exception down and found out that it happens, because the
 RenderKitFactory returns null for the RenderKit here, see the code from
 UIComponentBase:
 
 String renderKitId = context.getViewRoot().getRenderKitId();
 RenderKitFactory rkf = (RenderKitFactory)
 FactoryFinder.getFactory(FactoryFinder.RENDER_KIT_FACTORY);
 RenderKit renderKit = rkf.getRenderKit(context, renderKitId);
 Renderer renderer = renderKit.getRenderer(getFamily(),
 rendererType);
 
 In the last line renderKit is null and thus we get a NPE.
 
 Do you mind opening a JIRA issue for this? This would be really great.
 
 Thanks!
 
 Regards,
 Jakob
 
 2010/3/23 Matthias Leis matthias.l...@gmx.net
 
  Hi,
 
  I'm using myfaces 2.0 beta 2 and currently I'm using a h:dataTable on
 my
  pages and everything is fine.
  For some reasons (sorting etc.) I want to use the t:dataTable (from
  Tomahawk 1.1.9).
 
  Now, when I click on a link inside the table, I get the following
  exception:
  java.lang.NullPointerException
 at
 
 javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:1041)
 at
 
 org.apache.myfaces.component.html.ext.HtmlDataTableHack.getClientId(HtmlDataTableHack.java:111)
 at
 
 org.apache.myfaces.component.html.ext.AbstractHtmlDataTable.getClientId(AbstractHtmlDataTable.java:135)
 at
 
 org.apache.myfaces.component.html.ext.HtmlDataTableHack.setRowIndex(HtmlDataTableHack.java:275)
 at
 
 org.apache.myfaces.component.html.ext.AbstractHtmlDataTable.setRowIndex(AbstractHtmlDataTable.java:276)
 at javax.faces.component.UIData.visitTree(UIData.java:1257)
 at
 javax.faces.component.UIComponent.visitTree(UIComponent.java:770)
 at
 javax.faces.component.UIComponent.visitTree(UIComponent.java:770)
 at
 
 javax.faces.component.UIViewRoot.processRestoreState(UIViewRoot.java:648)
 at
 
 org.springframework.faces.webflow.FlowViewStateManager.restoreComponentState(FlowViewStateManager.java:77)
 at
 
 org.springframework.faces.webflow.FlowViewStateManager.restoreView(FlowViewStateManager.java:159)
 at
 
 org.apache.myfaces.shared_impl.view.ViewDeclarationLanguageBase.restoreView(ViewDeclarationLanguageBase.java:106)
 at
 
 org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.restoreView(FaceletViewDeclarationLanguage.java:1230)
 at
 
 org.apache.myfaces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:240)
 at
 
 com.sun.facelets.FaceletViewHandler.restoreView(FaceletViewHandler.java:316)
 at
 
 org.springframework.faces.webflow.FlowViewHandler.restoreFlowView(FlowViewHandler.java:128)
 at
 
 org.springframework.faces.webflow.FlowViewHandler.restoreView(FlowViewHandler.java:75)
 at
 
 org.springframework.faces.webflow.JsfViewFactory.getView(JsfViewFactory.java:93)
 at
  org.springframework.webflow.engine.ViewState.resume(ViewState.java:193)
 at org.springframework.webflow.engine.Flow.resume(Flow.java:545)
 at
 
 org.springframework.webflow.engine.impl.FlowExecutionImpl.resume(FlowExecutionImpl.java:259)
 at
 
 org.springframework.webflow.executor.FlowExecutorImpl.resumeExecution(FlowExecutorImpl.java:163)
 at
 
 org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:183)
 at
 
 org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:771)
 at
 
 org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
 at
 
 org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647)
 at
 
 org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:563)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 at
 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 at
 
 

Re: UIComponentBase.java - context.getViewRoot() returns null

2010-03-23 Thread Jakob Korherr
Hi,

OK great! I'll take a look at it later ;)

Regards,
Jakob

2010/3/23 Matthias Leis matthias.l...@gmx.net

 Hi,

 I just saw, that I'm not working with the beta 2 but with the snapshot. In
 beta 2 the NPW is thrown at line 1038 (in snapshot at line 1041).
 The line is:

   String renderKitId = context.getViewRoot().getRenderKitId();

 And looking at the variables in debugging mode says, that the viewRoot is
 null. Sorry for the confusion :)

 Of course I don't mind to open a JIRA issue :)

 PS: I know tomahawk isn't even supposed to work with myfaces 2, but in
 generally it does. This one here is the only compatibility problem I found
 (...for now ;) )

 Matthias
  Original-Nachricht 
  Datum: Tue, 23 Mar 2010 15:44:32 +0100
  Von: Jakob Korherr jakob.korh...@gmail.com
  An: MyFaces Discussion users@myfaces.apache.org
  Betreff: Re: UIComponentBase.java - context.getViewRoot() returns null

  Hi,
 
  Unfortunately there is no tomahawk port for MyFaces 2.0 available yet, so
  this might be a compatibility problem.
 
  I traced the Exception down and found out that it happens, because the
  RenderKitFactory returns null for the RenderKit here, see the code from
  UIComponentBase:
 
  String renderKitId = context.getViewRoot().getRenderKitId();
  RenderKitFactory rkf = (RenderKitFactory)
  FactoryFinder.getFactory(FactoryFinder.RENDER_KIT_FACTORY);
  RenderKit renderKit = rkf.getRenderKit(context, renderKitId);
  Renderer renderer = renderKit.getRenderer(getFamily(),
  rendererType);
 
  In the last line renderKit is null and thus we get a NPE.
 
  Do you mind opening a JIRA issue for this? This would be really great.
 
  Thanks!
 
  Regards,
  Jakob
 
  2010/3/23 Matthias Leis matthias.l...@gmx.net
 
   Hi,
  
   I'm using myfaces 2.0 beta 2 and currently I'm using a h:dataTable on
  my
   pages and everything is fine.
   For some reasons (sorting etc.) I want to use the t:dataTable (from
   Tomahawk 1.1.9).
  
   Now, when I click on a link inside the table, I get the following
   exception:
   java.lang.NullPointerException
  at
  
 
 javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:1041)
  at
  
 
 org.apache.myfaces.component.html.ext.HtmlDataTableHack.getClientId(HtmlDataTableHack.java:111)
  at
  
 
 org.apache.myfaces.component.html.ext.AbstractHtmlDataTable.getClientId(AbstractHtmlDataTable.java:135)
  at
  
 
 org.apache.myfaces.component.html.ext.HtmlDataTableHack.setRowIndex(HtmlDataTableHack.java:275)
  at
  
 
 org.apache.myfaces.component.html.ext.AbstractHtmlDataTable.setRowIndex(AbstractHtmlDataTable.java:276)
  at javax.faces.component.UIData.visitTree(UIData.java:1257)
  at
  javax.faces.component.UIComponent.visitTree(UIComponent.java:770)
  at
  javax.faces.component.UIComponent.visitTree(UIComponent.java:770)
  at
  
  javax.faces.component.UIViewRoot.processRestoreState(UIViewRoot.java:648)
  at
  
 
 org.springframework.faces.webflow.FlowViewStateManager.restoreComponentState(FlowViewStateManager.java:77)
  at
  
 
 org.springframework.faces.webflow.FlowViewStateManager.restoreView(FlowViewStateManager.java:159)
  at
  
 
 org.apache.myfaces.shared_impl.view.ViewDeclarationLanguageBase.restoreView(ViewDeclarationLanguageBase.java:106)
  at
  
 
 org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.restoreView(FaceletViewDeclarationLanguage.java:1230)
  at
  
 
 org.apache.myfaces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:240)
  at
  
 
 com.sun.facelets.FaceletViewHandler.restoreView(FaceletViewHandler.java:316)
  at
  
 
 org.springframework.faces.webflow.FlowViewHandler.restoreFlowView(FlowViewHandler.java:128)
  at
  
 
 org.springframework.faces.webflow.FlowViewHandler.restoreView(FlowViewHandler.java:75)
  at
  
 
 org.springframework.faces.webflow.JsfViewFactory.getView(JsfViewFactory.java:93)
  at
   org.springframework.webflow.engine.ViewState.resume(ViewState.java:193)
  at org.springframework.webflow.engine.Flow.resume(Flow.java:545)
  at
  
 
 org.springframework.webflow.engine.impl.FlowExecutionImpl.resume(FlowExecutionImpl.java:259)
  at
  
 
 org.springframework.webflow.executor.FlowExecutorImpl.resumeExecution(FlowExecutorImpl.java:163)
  at
  
 
 org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:183)
  at
  
 
 org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:771)
  at
  
 
 org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
  at
  
 
 org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647)
  at
  
 
 org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:563)
  at 

Re: Tomahawk and eclipse galileo not working?

2010-03-23 Thread Jakob Korherr
Great - Thanks!

The HTML tells me that your filter mapping for the extension filter is
wrong. Please change it to

filter-mapping
filter-nameMyFacesExtensionsFilter/filter-name
url-pattern/faces/myFacesExtensionResource/*/url-pattern
/filter-mapping

This should make it work!

Regards,
Jakob


2010/3/23 Fabio F. fabio...@gmail.com

 And this is the page (query.jsp) for popupCalendar=false

 htmlhead
 meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1
 titleBenvenuto/title
 style type=text/css
!--
.highlight { background-color: #A8D1E8; color=blue;}
--
 /style
 /headbody id=j_id_jsp_470444661_3form id=queryaziende
 name=queryaziende method=post action=/telemarketing/faces/query.jsp
 enctype=application/x-www-form-urlencoded
pBenvenuto labelFabio/labelnbsp;labelFerrari/label/p
pProvincia: select name=queryaziende:j_id_jsp_470444661_7
 size=1option value=PRPR/optionoption
 value=BSBS/optionoption value= selected=selected/option
 option value=TOTO/optionoption value=PZPZ/optionoption
 value=ZIBELLOZIBELLO/optionoption value=SPSP/option
 option value=MIMI/option/select
Stato: select name=queryaziende:j_id_jsp_470444661_9 size=1
 option value=xNon interessato/optionoption value=CIn
 trattativa/optionoption value=AAcquisto
 effettuato/option/select/p

 span id=queryaziende:datainizinput id=queryaziende:datainiz.day
 name=queryaziende:datainiz.day size=2 maxlength=2 /select
 id=queryaziende:datainiz.month name=queryaziende:datainiz.month
 size=1option value=-1 selected=selected/optionoption
 value=1gennaio/optionoption value=2febbraio/option
 option value=3marzo/optionoption value=4aprile/option
option value=5maggio/optionoption
 value=6giugno/optionoption value=7luglio/option
 option value=8agosto/optionoption
 value=9settembre/optionoption value=10ottobre/option
option value=11novembre/optionoption
 value=12dicembre/option/selectinput id=queryaziende:datainiz.year
 name=queryaziende:datainiz.year size=4 maxlength=4 //spanscript
 type=text/javascript!--


function oamSetHiddenInput(formname, name, value)
{
var form = document.forms[formname];
 if(typeof form.elements[name]!='undefined' 
 form.elements[name].nodeName=='INPUT')
{
 form.elements[name].value=value;
}
else
{
var newInput = document.createElement('input');
newInput.setAttribute('type','hidden');
newInput.setAttribute('id',name);
newInput.setAttribute('name',name);
newInput.setAttribute('value',value);
form.appendChild(newInput);
}

}


function oamClearHiddenInput(formname, name, value)
{
var form = document.forms[formname];
 var hInput = form.elements[name];
if(typeof hInput !='undefined')
{
form.removeChild(hInput);
}

}

function oamSubmitForm(formName, linkId, target, params)
{

var clearFn = 'clearFormHiddenParams_'+formName.replace(/-/g,
 '\$:').replace(/:/g,'_');
if(typeof window[clearFn] =='function')
{
window[clearFn](formName);
}

if(typeof window.getScrolling!='undefined')
{
oamSetHiddenInput(formName,'autoScroll',getScrolling());
}

var form = document.forms[formName];
 var oldTarget = form.target;
if(target != null)
{

form.target=target;
}
if((typeof params!='undefined')  params != null)
{

for(var i=0, param; (param = params[i]); i++)
{
oamSetHiddenInput(formName,param[0], param[1]);
}

}

oamSetHiddenInput(formName,formName +':'+'_idcl',linkId);

if(form.onsubmit)
{
var result=form.onsubmit();
if((typeof result=='undefined')||result)
{
try
{
form.submit();
}
catch(e){}
}

}
else
{
try
{
form.submit();
}
catch(e){}
}

form.target=oldTarget;
if((typeof params!='undefined')  params != null)
{

for(var i=0, param; (param = params[i]); i++)
{
oamClearHiddenInput(formName,param[0], param[1]);
}

}

oamClearHiddenInput(formName,formName +':'+'_idcl',linkId);return
 false;
}


 //--/scriptinput id=queryaziende:j_id_jsp_470444661_12
 name=queryaziende:j_id_jsp_470444661_12 type=submit value=Query
 onclick=if(typeof

 window.getScrolling!='undefined'){oamSetHiddenInput('queryaziende','autoScroll',getScrolling());}
 /
 input type=hidden name=autoScroll /
 input type=hidden name=queryaziende_SUBMIT value=1 /input
 type=hidden 

Re: UIComponentBase.java - context.getViewRoot() returns null

2010-03-23 Thread Matthias Leis
Hi,

JIRA link is https://issues.apache.org/jira/browse/MYFACES-2620

I hope I've done it right ;)

Matthias
 Original-Nachricht 
 Datum: Tue, 23 Mar 2010 15:59:22 +0100
 Von: Jakob Korherr jakob.korh...@gmail.com
 An: MyFaces Discussion users@myfaces.apache.org
 Betreff: Re: UIComponentBase.java - context.getViewRoot() returns null

 Hi,
 
 OK great! I'll take a look at it later ;)
 
 Regards,
 Jakob
 
 2010/3/23 Matthias Leis matthias.l...@gmx.net
 
  Hi,
 
  I just saw, that I'm not working with the beta 2 but with the snapshot.
 In
  beta 2 the NPW is thrown at line 1038 (in snapshot at line 1041).
  The line is:
 
String renderKitId = context.getViewRoot().getRenderKitId();
 
  And looking at the variables in debugging mode says, that the viewRoot
 is
  null. Sorry for the confusion :)
 
  Of course I don't mind to open a JIRA issue :)
 
  PS: I know tomahawk isn't even supposed to work with myfaces 2, but in
  generally it does. This one here is the only compatibility problem I
 found
  (...for now ;) )
 
  Matthias
   Original-Nachricht 
   Datum: Tue, 23 Mar 2010 15:44:32 +0100
   Von: Jakob Korherr jakob.korh...@gmail.com
   An: MyFaces Discussion users@myfaces.apache.org
   Betreff: Re: UIComponentBase.java - context.getViewRoot() returns null
 
   Hi,
  
   Unfortunately there is no tomahawk port for MyFaces 2.0 available yet,
 so
   this might be a compatibility problem.
  
   I traced the Exception down and found out that it happens, because the
   RenderKitFactory returns null for the RenderKit here, see the code
 from
   UIComponentBase:
  
   String renderKitId = context.getViewRoot().getRenderKitId();
   RenderKitFactory rkf = (RenderKitFactory)
   FactoryFinder.getFactory(FactoryFinder.RENDER_KIT_FACTORY);
   RenderKit renderKit = rkf.getRenderKit(context, renderKitId);
   Renderer renderer = renderKit.getRenderer(getFamily(),
   rendererType);
  
   In the last line renderKit is null and thus we get a NPE.
  
   Do you mind opening a JIRA issue for this? This would be really great.
  
   Thanks!
  
   Regards,
   Jakob
  
   2010/3/23 Matthias Leis matthias.l...@gmx.net
  
Hi,
   
I'm using myfaces 2.0 beta 2 and currently I'm using a h:dataTable
 on
   my
pages and everything is fine.
For some reasons (sorting etc.) I want to use the t:dataTable
 (from
Tomahawk 1.1.9).
   
Now, when I click on a link inside the table, I get the following
exception:
java.lang.NullPointerException
   at
   
  
 
 javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:1041)
   at
   
  
 
 org.apache.myfaces.component.html.ext.HtmlDataTableHack.getClientId(HtmlDataTableHack.java:111)
   at
   
  
 
 org.apache.myfaces.component.html.ext.AbstractHtmlDataTable.getClientId(AbstractHtmlDataTable.java:135)
   at
   
  
 
 org.apache.myfaces.component.html.ext.HtmlDataTableHack.setRowIndex(HtmlDataTableHack.java:275)
   at
   
  
 
 org.apache.myfaces.component.html.ext.AbstractHtmlDataTable.setRowIndex(AbstractHtmlDataTable.java:276)
   at javax.faces.component.UIData.visitTree(UIData.java:1257)
   at
   javax.faces.component.UIComponent.visitTree(UIComponent.java:770)
   at
   javax.faces.component.UIComponent.visitTree(UIComponent.java:770)
   at
   
  
 javax.faces.component.UIViewRoot.processRestoreState(UIViewRoot.java:648)
   at
   
  
 
 org.springframework.faces.webflow.FlowViewStateManager.restoreComponentState(FlowViewStateManager.java:77)
   at
   
  
 
 org.springframework.faces.webflow.FlowViewStateManager.restoreView(FlowViewStateManager.java:159)
   at
   
  
 
 org.apache.myfaces.shared_impl.view.ViewDeclarationLanguageBase.restoreView(ViewDeclarationLanguageBase.java:106)
   at
   
  
 
 org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.restoreView(FaceletViewDeclarationLanguage.java:1230)
   at
   
  
 
 org.apache.myfaces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:240)
   at
   
  
 
 com.sun.facelets.FaceletViewHandler.restoreView(FaceletViewHandler.java:316)
   at
   
  
 
 org.springframework.faces.webflow.FlowViewHandler.restoreFlowView(FlowViewHandler.java:128)
   at
   
  
 
 org.springframework.faces.webflow.FlowViewHandler.restoreView(FlowViewHandler.java:75)
   at
   
  
 
 org.springframework.faces.webflow.JsfViewFactory.getView(JsfViewFactory.java:93)
   at
   
 org.springframework.webflow.engine.ViewState.resume(ViewState.java:193)
   at
 org.springframework.webflow.engine.Flow.resume(Flow.java:545)
   at
   
  
 
 org.springframework.webflow.engine.impl.FlowExecutionImpl.resume(FlowExecutionImpl.java:259)
   at
   
  
 
 org.springframework.webflow.executor.FlowExecutorImpl.resumeExecution(FlowExecutorImpl.java:163)
   at
   
  
 
 

Re: UIComponentBase.java - context.getViewRoot() returns null

2010-03-23 Thread Jakob Korherr
Yeah, great! Thanks ;)

Regards,
Jakob

2010/3/23 Matthias Leis matthias.l...@gmx.net

 Hi,

 JIRA link is https://issues.apache.org/jira/browse/MYFACES-2620

 I hope I've done it right ;)

 Matthias
  Original-Nachricht 
  Datum: Tue, 23 Mar 2010 15:59:22 +0100
  Von: Jakob Korherr jakob.korh...@gmail.com
  An: MyFaces Discussion users@myfaces.apache.org
  Betreff: Re: UIComponentBase.java - context.getViewRoot() returns null

  Hi,
 
  OK great! I'll take a look at it later ;)
 
  Regards,
  Jakob
 
  2010/3/23 Matthias Leis matthias.l...@gmx.net
 
   Hi,
  
   I just saw, that I'm not working with the beta 2 but with the snapshot.
  In
   beta 2 the NPW is thrown at line 1038 (in snapshot at line 1041).
   The line is:
  
 String renderKitId = context.getViewRoot().getRenderKitId();
  
   And looking at the variables in debugging mode says, that the viewRoot
  is
   null. Sorry for the confusion :)
  
   Of course I don't mind to open a JIRA issue :)
  
   PS: I know tomahawk isn't even supposed to work with myfaces 2, but in
   generally it does. This one here is the only compatibility problem I
  found
   (...for now ;) )
  
   Matthias
    Original-Nachricht 
Datum: Tue, 23 Mar 2010 15:44:32 +0100
Von: Jakob Korherr jakob.korh...@gmail.com
An: MyFaces Discussion users@myfaces.apache.org
Betreff: Re: UIComponentBase.java - context.getViewRoot() returns
 null
  
Hi,
   
Unfortunately there is no tomahawk port for MyFaces 2.0 available
 yet,
  so
this might be a compatibility problem.
   
I traced the Exception down and found out that it happens, because
 the
RenderKitFactory returns null for the RenderKit here, see the code
  from
UIComponentBase:
   
String renderKitId = context.getViewRoot().getRenderKitId();
RenderKitFactory rkf = (RenderKitFactory)
FactoryFinder.getFactory(FactoryFinder.RENDER_KIT_FACTORY);
RenderKit renderKit = rkf.getRenderKit(context, renderKitId);
Renderer renderer = renderKit.getRenderer(getFamily(),
rendererType);
   
In the last line renderKit is null and thus we get a NPE.
   
Do you mind opening a JIRA issue for this? This would be really
 great.
   
Thanks!
   
Regards,
Jakob
   
2010/3/23 Matthias Leis matthias.l...@gmx.net
   
 Hi,

 I'm using myfaces 2.0 beta 2 and currently I'm using a
 h:dataTable
  on
my
 pages and everything is fine.
 For some reasons (sorting etc.) I want to use the t:dataTable
  (from
 Tomahawk 1.1.9).

 Now, when I click on a link inside the table, I get the following
 exception:
 java.lang.NullPointerException
at

   
  
 
 javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:1041)
at

   
  
 
 org.apache.myfaces.component.html.ext.HtmlDataTableHack.getClientId(HtmlDataTableHack.java:111)
at

   
  
 
 org.apache.myfaces.component.html.ext.AbstractHtmlDataTable.getClientId(AbstractHtmlDataTable.java:135)
at

   
  
 
 org.apache.myfaces.component.html.ext.HtmlDataTableHack.setRowIndex(HtmlDataTableHack.java:275)
at

   
  
 
 org.apache.myfaces.component.html.ext.AbstractHtmlDataTable.setRowIndex(AbstractHtmlDataTable.java:276)
at javax.faces.component.UIData.visitTree(UIData.java:1257)
at
javax.faces.component.UIComponent.visitTree(UIComponent.java:770)
at
javax.faces.component.UIComponent.visitTree(UIComponent.java:770)
at

   
  javax.faces.component.UIViewRoot.processRestoreState(UIViewRoot.java:648)
at

   
  
 
 org.springframework.faces.webflow.FlowViewStateManager.restoreComponentState(FlowViewStateManager.java:77)
at

   
  
 
 org.springframework.faces.webflow.FlowViewStateManager.restoreView(FlowViewStateManager.java:159)
at

   
  
 
 org.apache.myfaces.shared_impl.view.ViewDeclarationLanguageBase.restoreView(ViewDeclarationLanguageBase.java:106)
at

   
  
 
 org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.restoreView(FaceletViewDeclarationLanguage.java:1230)
at

   
  
 
 org.apache.myfaces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:240)
at

   
  
 
 com.sun.facelets.FaceletViewHandler.restoreView(FaceletViewHandler.java:316)
at

   
  
 
 org.springframework.faces.webflow.FlowViewHandler.restoreFlowView(FlowViewHandler.java:128)
at

   
  
 
 org.springframework.faces.webflow.FlowViewHandler.restoreView(FlowViewHandler.java:75)
at

   
  
 
 org.springframework.faces.webflow.JsfViewFactory.getView(JsfViewFactory.java:93)
at

  org.springframework.webflow.engine.ViewState.resume(ViewState.java:193)
at
  org.springframework.webflow.engine.Flow.resume(Flow.java:545)
   

Re: Tomahawk and eclipse galileo not working?

2010-03-23 Thread Fabio F.
If I change it to that url-pattern, the page doesn't render at all and the
html I obtain is:

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
HTMLHEAD
META http-equiv=Content-Type content=text/html; charset=utf-8/HEAD
BODY/BODY/HTML

In case of popupCalendar=true or popupCalendar=false ...

Fabio Ferrari

2010/3/23 Jakob Korherr jakob.korh...@gmail.com

 Great - Thanks!

 The HTML tells me that your filter mapping for the extension filter is
 wrong. Please change it to

 filter-mapping
 filter-nameMyFacesExtensionsFilter/filter-name
 url-pattern/faces/myFacesExtensionResource/*/url-pattern
 /filter-mapping

 This should make it work!

 Regards,
 Jakob


 2010/3/23 Fabio F. fabio...@gmail.com

  And this is the page (query.jsp) for popupCalendar=false
 
  htmlhead
  meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1
  titleBenvenuto/title
  style type=text/css
 !--
 .highlight { background-color: #A8D1E8; color=blue;}
 --
  /style
  /headbody id=j_id_jsp_470444661_3form id=queryaziende
  name=queryaziende method=post action=/telemarketing/faces/query.jsp
  enctype=application/x-www-form-urlencoded
 pBenvenuto labelFabio/labelnbsp;labelFerrari/label/p
 pProvincia: select name=queryaziende:j_id_jsp_470444661_7
  size=1option value=PRPR/optionoption
  value=BSBS/optionoption value= selected=selected/option
  option value=TOTO/optionoption value=PZPZ/option
  option
  value=ZIBELLOZIBELLO/optionoption value=SPSP/option
  option value=MIMI/option/select
 Stato: select name=queryaziende:j_id_jsp_470444661_9 size=1
  option value=xNon interessato/optionoption value=CIn
  trattativa/optionoption value=AAcquisto
  effettuato/option/select/p
 
  span id=queryaziende:datainizinput id=queryaziende:datainiz.day
  name=queryaziende:datainiz.day size=2 maxlength=2 /select
  id=queryaziende:datainiz.month name=queryaziende:datainiz.month
  size=1option value=-1 selected=selected/optionoption
  value=1gennaio/optionoption value=2febbraio/option
  option value=3marzo/optionoption value=4aprile/option
 option value=5maggio/optionoption
  value=6giugno/optionoption value=7luglio/option
  option value=8agosto/optionoption
  value=9settembre/optionoption value=10ottobre/option
 option value=11novembre/optionoption
  value=12dicembre/option/selectinput
 id=queryaziende:datainiz.year
  name=queryaziende:datainiz.year size=4 maxlength=4 //spanscript
  type=text/javascript!--
 
 
 function oamSetHiddenInput(formname, name, value)
 {
 var form = document.forms[formname];
  if(typeof form.elements[name]!='undefined' 
  form.elements[name].nodeName=='INPUT')
 {
  form.elements[name].value=value;
 }
 else
 {
 var newInput = document.createElement('input');
 newInput.setAttribute('type','hidden');
 newInput.setAttribute('id',name);
 newInput.setAttribute('name',name);
 newInput.setAttribute('value',value);
 form.appendChild(newInput);
 }
 
 }
 
 
 function oamClearHiddenInput(formname, name, value)
 {
 var form = document.forms[formname];
  var hInput = form.elements[name];
 if(typeof hInput !='undefined')
 {
 form.removeChild(hInput);
 }
 
 }
 
 function oamSubmitForm(formName, linkId, target, params)
 {
 
 var clearFn = 'clearFormHiddenParams_'+formName.replace(/-/g,
  '\$:').replace(/:/g,'_');
 if(typeof window[clearFn] =='function')
 {
 window[clearFn](formName);
 }
 
 if(typeof window.getScrolling!='undefined')
 {
 oamSetHiddenInput(formName,'autoScroll',getScrolling());
 }
 
 var form = document.forms[formName];
  var oldTarget = form.target;
 if(target != null)
 {
 
 form.target=target;
 }
 if((typeof params!='undefined')  params != null)
 {
 
 for(var i=0, param; (param = params[i]); i++)
 {
 oamSetHiddenInput(formName,param[0], param[1]);
 }
 
 }
 
 oamSetHiddenInput(formName,formName +':'+'_idcl',linkId);
 
 if(form.onsubmit)
 {
 var result=form.onsubmit();
 if((typeof result=='undefined')||result)
 {
 try
 {
 form.submit();
 }
 catch(e){}
 }
 
 }
 else
 {
 try
 {
 form.submit();
 }
 catch(e){}
 }
 
 form.target=oldTarget;
 if((typeof params!='undefined')  params != null)
 {
 
 for(var i=0, param; (param = params[i]); i++)
 {
 

Re: Tomahawk and eclipse galileo not working?

2010-03-23 Thread Jakob Korherr
Have you changed the filter config only? You must not change the config for
the FacesServlet.

Take a look at http://myfaces.apache.org/tomahawk/extensionsFilter.html

Maybe this will help you solve it!

Regards,
Jakob

2010/3/23 Fabio F. fabio...@gmail.com

 If I change it to that url-pattern, the page doesn't render at all and the
 html I obtain is:

 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
 HTMLHEAD
 META http-equiv=Content-Type content=text/html; charset=utf-8/HEAD
 BODY/BODY/HTML

 In case of popupCalendar=true or popupCalendar=false ...

 Fabio Ferrari

 2010/3/23 Jakob Korherr jakob.korh...@gmail.com

  Great - Thanks!
 
  The HTML tells me that your filter mapping for the extension filter is
  wrong. Please change it to
 
  filter-mapping
  filter-nameMyFacesExtensionsFilter/filter-name
  url-pattern/faces/myFacesExtensionResource/*/url-pattern
  /filter-mapping
 
  This should make it work!
 
  Regards,
  Jakob
 
 
  2010/3/23 Fabio F. fabio...@gmail.com
 
   And this is the page (query.jsp) for popupCalendar=false
  
   htmlhead
   meta http-equiv=Content-Type content=text/html;
 charset=ISO-8859-1
   titleBenvenuto/title
   style type=text/css
  !--
  .highlight { background-color: #A8D1E8; color=blue;}
  --
   /style
   /headbody id=j_id_jsp_470444661_3form id=queryaziende
   name=queryaziende method=post
 action=/telemarketing/faces/query.jsp
   enctype=application/x-www-form-urlencoded
  pBenvenuto labelFabio/labelnbsp;labelFerrari/label/p
  pProvincia: select name=queryaziende:j_id_jsp_470444661_7
   size=1option value=PRPR/optionoption
   value=BSBS/optionoption value=
 selected=selected/option
   option value=TOTO/optionoption value=PZPZ/option
   option
   value=ZIBELLOZIBELLO/optionoption value=SPSP/option
   option value=MIMI/option/select
  Stato: select name=queryaziende:j_id_jsp_470444661_9 size=1
   option value=xNon interessato/optionoption value=CIn
   trattativa/optionoption value=AAcquisto
   effettuato/option/select/p
  
   span id=queryaziende:datainizinput id=queryaziende:datainiz.day
   name=queryaziende:datainiz.day size=2 maxlength=2 /select
   id=queryaziende:datainiz.month name=queryaziende:datainiz.month
   size=1option value=-1 selected=selected/option
  option
   value=1gennaio/optionoption value=2febbraio/option
   option value=3marzo/optionoption
 value=4aprile/option
  option value=5maggio/optionoption
   value=6giugno/optionoption value=7luglio/option
   option value=8agosto/optionoption
   value=9settembre/optionoption value=10ottobre/option
  option value=11novembre/optionoption
   value=12dicembre/option/selectinput
  id=queryaziende:datainiz.year
   name=queryaziende:datainiz.year size=4 maxlength=4
 //spanscript
   type=text/javascript!--
  
  
  function oamSetHiddenInput(formname, name, value)
  {
  var form = document.forms[formname];
   if(typeof form.elements[name]!='undefined' 
   form.elements[name].nodeName=='INPUT')
  {
   form.elements[name].value=value;
  }
  else
  {
  var newInput = document.createElement('input');
  newInput.setAttribute('type','hidden');
  newInput.setAttribute('id',name);
  newInput.setAttribute('name',name);
  newInput.setAttribute('value',value);
  form.appendChild(newInput);
  }
  
  }
  
  
  function oamClearHiddenInput(formname, name, value)
  {
  var form = document.forms[formname];
   var hInput = form.elements[name];
  if(typeof hInput !='undefined')
  {
  form.removeChild(hInput);
  }
  
  }
  
  function oamSubmitForm(formName, linkId, target, params)
  {
  
  var clearFn = 'clearFormHiddenParams_'+formName.replace(/-/g,
   '\$:').replace(/:/g,'_');
  if(typeof window[clearFn] =='function')
  {
  window[clearFn](formName);
  }
  
  if(typeof window.getScrolling!='undefined')
  {
  oamSetHiddenInput(formName,'autoScroll',getScrolling());
  }
  
  var form = document.forms[formName];
   var oldTarget = form.target;
  if(target != null)
  {
  
  form.target=target;
  }
  if((typeof params!='undefined')  params != null)
  {
  
  for(var i=0, param; (param = params[i]); i++)
  {
  oamSetHiddenInput(formName,param[0], param[1]);
  }
  
  }
  
  oamSetHiddenInput(formName,formName +':'+'_idcl',linkId);
  
  if(form.onsubmit)
  {
  var result=form.onsubmit();
  if((typeof result=='undefined')||result)
  {
  try
  {
  form.submit();
  }
  

Re: Problem with BeanValidation in myfaces 2.0

2010-03-23 Thread Jakob Korherr
Created MYFACES-2621.

Regards,
Jakob

2010/3/23 Gerhard Petracek gerhard.petra...@gmail.com

 as alternative users can also test the bv integration provided by myfaces
 extval2.
 compared to the standard integration of bv in jsf 2.0 it offers more
 advanced and typesafe features.

 early adaptors would help to improve it.
 e.g. i saw that at least one version of the jsf2 ri had some issues with bv
 (it's already fixed in the current one).
 however, it would be nice to get some feedback about the latest myfaces
 core2 version in combination with myfaces extval2.
 the last one i tested worked pretty well.

 regards,
 gerhard

 http://www.irian.at

 Your JSF powerhouse -
 JSF Consulting, Development and
 Courses in English and German

 Professional Support for Apache MyFaces

 2010/3/23 Jakob Korherr jakob.korh...@gmail.com

  I don't know Mark, since Leonardo said that he wants to do beta releases
 on
  a regular basis now I don't think it will take long until we release the
  next beta.
 
  So do you think it is that important to have it in beta-3? Or can it wait
  for the next beta?
 
  Regards,
  Jakob
 
  2010/3/23 Mark Struberg strub...@yahoo.de
 
   To me this sounds like a blocker for beta3, isn't?
  
   txs and LieGrue,
   strub
  
   --- Jakob Korherr jakob.korh...@gmail.com schrieb am Di, 23.3.2010:
  
Von: Jakob Korherr jakob.korh...@gmail.com
Betreff: Re: Problem with BeanValidation in myfaces 2.0
An: MyFaces Discussion users@myfaces.apache.org
Datum: Dienstag, 23. März, 2010 00:32 Uhr
Hi Marcus,
   
There have been some problems with el-api 2.2 recently and
I guess the
current solution is just not yet very stable. I'll work on
that tomorrow!
   
Regards,
Jakob
   
2010/3/22 Marcus Büttner marcus.buett...@inso.tuwien.ac.at
   
 Hi,

 I have a problem with BeanValidation in myfaces 2.0.

 The method getUELValueReference in
_BeanValidatorUELUtils calls the
 getValueReference methode from the given
ValueExpression.
 In el-api 2.2 this method always returns null and e.g.
in
 TagValueExpression in myfaces the method is not
overriden.

 So the ValueReference is always null and
BeanValdiation breaks.

 Any ideas?

 Thanks, regards
 Marcus





   
  
   __
   Do You Yahoo!?
   Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden
 Schutz
   gegen Massenmails.
   http://mail.yahoo.com
  
 



Re: Tomahawk and eclipse galileo not working?

2010-03-23 Thread Fabio F.
I've read and read this page tens of times those days...

No, I've modified only the line in the filter config, this is definitely my
web.xml:

?xml version=1.0 encoding=UTF-8?
web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=
http://java.sun.com/xml/ns/javaee; xmlns:web=
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; xsi:schemaLocation=
http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; id=WebApp_ID
version=2.5
  display-nametelemarketing/display-name
  welcome-file-list
welcome-fileindex.html/welcome-file
welcome-fileindex.htm/welcome-file
welcome-fileindex.jsp/welcome-file
welcome-filedefault.html/welcome-file
welcome-filedefault.htm/welcome-file
welcome-filedefault.jsp/welcome-file
  /welcome-file-list
  context-param
param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name
param-valueresources.application/param-value
  /context-param
  context-param
descriptionState saving method: 'client' or 'server' (=default). See
JSF Specification 2.5.2/description
param-namejavax.faces.STATE_SAVING_METHOD/param-name
param-valueserver/param-value
  /context-param
  context-param
description
This parameter tells MyFaces if javascript code should be allowed in
the rendered HTML output.
If javascript is allowed, command_link anchors will have javascript code
that submits the corresponding form.
If javascript is not allowed, the state saving info and nested
parameters
will be added as url parameters.
Default is 'true'/description
param-nameorg.apache.myfaces.ALLOW_JAVASCRIPT/param-name
param-valuetrue/param-value
  /context-param
  context-param
description
If true, rendered HTML code will be formatted, so that it is
'human-readable'
i.e. additional line separators and whitespace will be written, that do
not
influence the HTML code.
Default is 'true'/description
param-nameorg.apache.myfaces.PRETTY_HTML/param-name
param-valuetrue/param-value
  /context-param
  context-param
param-nameorg.apache.myfaces.DETECT_JAVASCRIPT/param-name
param-valuefalse/param-value
  /context-param
  context-param
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 is 'false'
/description
param-nameorg.apache.myfaces.AUTO_SCROLL/param-name
param-valuetrue/param-value
  /context-param
  servlet
servlet-namefaces/servlet-name
servlet-classjavax.faces.webapp.FacesServlet/servlet-class
load-on-startup1/load-on-startup
  /servlet
  servlet-mapping
servlet-namefaces/servlet-name
url-pattern/faces/*/url-pattern
  /servlet-mapping
  listener

listener-classorg.apache.myfaces.webapp.StartupServletContextListener/listener-class
  /listener
  context-param
param-nameorg.apache.myfaces.ERROR_HANDLER/param-name
param-valuenetwave.utils.ErrorHandler/param-value
  /context-param
  filter
  filter-nameMyFacesExtensionsFilter/filter-name

filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class
  init-param
  param-nameuploadMaxFileSize/param-name
  param-value20m/param-value
  /init-param
  /filter
  filter-mapping
  filter-nameMyFacesExtensionsFilter/filter-name
  servlet-namefaces/servlet-name
  /filter-mapping
  filter-mapping
  filter-nameMyFacesExtensionsFilter/filter-name
  url-pattern/faces/*/url-pattern
  /filter-mapping
  filter-mapping
  filter-nameMyFacesExtensionsFilter/filter-name
  url-pattern*.jsf/url-pattern
  /filter-mapping
  filter
filter-nameCustomCharacterEncodingFilter/filter-name
filter-classnetwave.utils.CustomCharacterEncodingFilter/filter-class
  /filter
  filter-mapping
filter-nameCustomCharacterEncodingFilter/filter-name
url-pattern/*/url-pattern
  /filter-mapping
  error-page

exception-typejavax.faces.application.ViewExpiredException/exception-type
location/session_expired.jsp/location
  /error-page
/web-app

I attach even my faces-config.xml (for the line message listener, the rest I
don't think is useful):

?xml version=1.0 encoding=UTF-8?

faces-config
xmlns=http://java.sun.com/xml/ns/javaee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd;
version=1.2
managed-bean
managed-bean-nameBB_Aziende/managed-bean-name
managed-bean-classtelemarketing.BB_Aziende/managed-bean-class
managed-bean-scopesession/managed-bean-scope
/managed-bean
navigation-rule
display-namelogin/display-name
from-view-id/login.jsp/from-view-id
navigation-case

Re: UIComponentBase.java - context.getViewRoot() returns null

2010-03-23 Thread Leonardo Uribe
Hi

Looking the stack trace provided very carefully, I can see the problem is
not in myfaces, it is on spring class FlowViewStateManager. Take a look at
this three lines:

at javax.faces.component.UIViewRoot.processRestoreState(UIViewRoot.java:643)

at
org.springframework.faces.webflow.FlowViewStateManager.restoreComponentState(FlowViewStateManager.java:77)

at
org.springframework.faces.webflow.FlowViewStateManager.restoreView(FlowViewStateManager.java:159)


The code related is this:

public UIViewRoot restoreView(FacesContext context, String viewId,
String renderKitId) {
if (!JsfUtils.isFlowRequest()) {
return delegate.restoreView(context, viewId, 
renderKitId);
}
UIViewRoot viewRoot = restoreTreeStructure(context, viewId, 
renderKitId);
if (viewRoot != null) {
restoreComponentState(context, viewRoot, renderKitId);
}
return viewRoot;
}

What's the problem? well, look this code from myfaces JspStateManagerImpl:

if (state != null) {
Object[] stateArray = (Object[])state;
TreeStructureManager tsm = new TreeStructureManager();
uiViewRoot = tsm.restoreTreeStructure(stateArray[0]);

if (uiViewRoot != null) {
facesContext.setViewRoot (uiViewRoot);
uiViewRoot.processRestoreState(facesContext,
stateArray[1]);
}
}

It is supposed after restore the tree structure, that
facesContext.setViewRoot(uiViewRoot) should be called. Inclusive, in
DefaultFaceletsStateManagementStrategy we do the same too. An issue should
be created against spring web flow.

regards,

Leonardo Uribe

2010/3/23 Jakob Korherr jakob.korh...@gmail.com

 Yeah, great! Thanks ;)

 Regards,
 Jakob

 2010/3/23 Matthias Leis matthias.l...@gmx.net

  Hi,
 
  JIRA link is https://issues.apache.org/jira/browse/MYFACES-2620
 
  I hope I've done it right ;)
 
  Matthias
   Original-Nachricht 
   Datum: Tue, 23 Mar 2010 15:59:22 +0100
   Von: Jakob Korherr jakob.korh...@gmail.com
   An: MyFaces Discussion users@myfaces.apache.org
   Betreff: Re: UIComponentBase.java - context.getViewRoot() returns null
 
   Hi,
  
   OK great! I'll take a look at it later ;)
  
   Regards,
   Jakob
  
   2010/3/23 Matthias Leis matthias.l...@gmx.net
  
Hi,
   
I just saw, that I'm not working with the beta 2 but with the
 snapshot.
   In
beta 2 the NPW is thrown at line 1038 (in snapshot at line 1041).
The line is:
   
  String renderKitId = context.getViewRoot().getRenderKitId();
   
And looking at the variables in debugging mode says, that the
 viewRoot
   is
null. Sorry for the confusion :)
   
Of course I don't mind to open a JIRA issue :)
   
PS: I know tomahawk isn't even supposed to work with myfaces 2, but
 in
generally it does. This one here is the only compatibility problem I
   found
(...for now ;) )
   
Matthias
 Original-Nachricht 
 Datum: Tue, 23 Mar 2010 15:44:32 +0100
 Von: Jakob Korherr jakob.korh...@gmail.com
 An: MyFaces Discussion users@myfaces.apache.org
 Betreff: Re: UIComponentBase.java - context.getViewRoot() returns
  null
   
 Hi,

 Unfortunately there is no tomahawk port for MyFaces 2.0 available
  yet,
   so
 this might be a compatibility problem.

 I traced the Exception down and found out that it happens, because
  the
 RenderKitFactory returns null for the RenderKit here, see the code
   from
 UIComponentBase:

 String renderKitId =
 context.getViewRoot().getRenderKitId();
 RenderKitFactory rkf = (RenderKitFactory)
 FactoryFinder.getFactory(FactoryFinder.RENDER_KIT_FACTORY);
 RenderKit renderKit = rkf.getRenderKit(context,
 renderKitId);
 Renderer renderer = renderKit.getRenderer(getFamily(),
 rendererType);

 In the last line renderKit is null and thus we get a NPE.

 Do you mind opening a JIRA issue for this? This would be really
  great.

 Thanks!

 Regards,
 Jakob

 2010/3/23 Matthias Leis matthias.l...@gmx.net

  Hi,
 
  I'm using myfaces 2.0 beta 2 and currently I'm using a
  h:dataTable
   on
 my
  pages and everything is fine.
  For some reasons (sorting etc.) I want to use the t:dataTable
   (from
  Tomahawk 1.1.9).
 
  Now, when I click on a link inside the table, I get the following
  exception:
  java.lang.NullPointerException
 at
 

   
  
 
 javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:1041)
 at
 

   
  
 
 org.apache.myfaces.component.html.ext.HtmlDataTableHack.getClientId(HtmlDataTableHack.java:111)
 at
 

   
  
 
 

Re: Tomahawk and eclipse galileo not working?

2010-03-23 Thread Jakob Korherr
OK, sorry..

But this web.xml includes

filter-mapping
 filter-nameMyFacesExtensionsFilter/filter-name
 url-pattern/faces/*/url-pattern
 /filter-mapping

but it should have

filter-mapping
filter-nameMyFacesExtensionsFilter/filter-name
url-pattern/faces/myFacesExtensionResource/*/url-pattern
/filter-mapping

You could also try adding both...

Regards,
Jakob


2010/3/23 Fabio F. fabio...@gmail.com

 I've read and read this page tens of times those days...

 No, I've modified only the line in the filter config, this is definitely my
 web.xml:

 ?xml version=1.0 encoding=UTF-8?
 web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=
 http://java.sun.com/xml/ns/javaee; xmlns:web=
 http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; xsi:schemaLocation=
 http://java.sun.com/xml/ns/javaee
 http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; id=WebApp_ID
 version=2.5
  display-nametelemarketing/display-name
  welcome-file-list
welcome-fileindex.html/welcome-file
welcome-fileindex.htm/welcome-file
welcome-fileindex.jsp/welcome-file
welcome-filedefault.html/welcome-file
welcome-filedefault.htm/welcome-file
welcome-filedefault.jsp/welcome-file
  /welcome-file-list
   context-param
param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name
param-valueresources.application/param-value
  /context-param
  context-param
descriptionState saving method: 'client' or 'server' (=default). See
 JSF Specification 2.5.2/description
param-namejavax.faces.STATE_SAVING_METHOD/param-name
param-valueserver/param-value
  /context-param
  context-param
description
This parameter tells MyFaces if javascript code should be allowed in
the rendered HTML output.
If javascript is allowed, command_link anchors will have javascript code
that submits the corresponding form.
If javascript is not allowed, the state saving info and nested
 parameters
will be added as url parameters.
Default is 'true'/description
param-nameorg.apache.myfaces.ALLOW_JAVASCRIPT/param-name
param-valuetrue/param-value
  /context-param
  context-param
description
If true, rendered HTML code will be formatted, so that it is
 'human-readable'
i.e. additional line separators and whitespace will be written, that do
 not
influence the HTML code.
Default is 'true'/description
param-nameorg.apache.myfaces.PRETTY_HTML/param-name
param-valuetrue/param-value
  /context-param
  context-param
param-nameorg.apache.myfaces.DETECT_JAVASCRIPT/param-name
param-valuefalse/param-value
  /context-param
  context-param
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 is 'false'
 /description
param-nameorg.apache.myfaces.AUTO_SCROLL/param-name
param-valuetrue/param-value
  /context-param
  servlet
servlet-namefaces/servlet-name
servlet-classjavax.faces.webapp.FacesServlet/servlet-class
load-on-startup1/load-on-startup
  /servlet
  servlet-mapping
servlet-namefaces/servlet-name
url-pattern/faces/*/url-pattern
  /servlet-mapping
  listener


 listener-classorg.apache.myfaces.webapp.StartupServletContextListener/listener-class
  /listener
  context-param
param-nameorg.apache.myfaces.ERROR_HANDLER/param-name
param-valuenetwave.utils.ErrorHandler/param-value
  /context-param
  filter
   filter-nameMyFacesExtensionsFilter/filter-name


 filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class
  init-param
  param-nameuploadMaxFileSize/param-name
  param-value20m/param-value
  /init-param
  /filter
   filter-mapping
  filter-nameMyFacesExtensionsFilter/filter-name
   servlet-namefaces/servlet-name
  /filter-mapping
   filter-mapping
  filter-nameMyFacesExtensionsFilter/filter-name
   url-pattern/faces/*/url-pattern
  /filter-mapping
   filter-mapping
  filter-nameMyFacesExtensionsFilter/filter-name
   url-pattern*.jsf/url-pattern
  /filter-mapping
  filter
filter-nameCustomCharacterEncodingFilter/filter-name
filter-classnetwave.utils.CustomCharacterEncodingFilter/filter-class
  /filter
  filter-mapping
filter-nameCustomCharacterEncodingFilter/filter-name
url-pattern/*/url-pattern
  /filter-mapping
  error-page


 exception-typejavax.faces.application.ViewExpiredException/exception-type
location/session_expired.jsp/location
  /error-page
 /web-app

 I attach even my faces-config.xml (for the line message listener, the rest
 I
 don't think is useful):

 ?xml version=1.0 encoding=UTF-8?

 faces-config
 xmlns=http://java.sun.com/xml/ns/javaee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 

Re: Tomahawk and eclipse galileo not working?

2010-03-23 Thread Jakob Korherr
Here is a web.xml configuration excerpt from a project of mine which uses
tomahawk and myfaces - this should help you:

!-- Extensions Filter --
 filter
  filter-nameMyFacesExtensionsFilter/filter-name

filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class
  init-param
   descriptionSet the size limit for uploaded files.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB/description
   param-namemaxFileSize/param-name
   param-value20m/param-value
  /init-param
 /filter
 !-- extension mapping for adding script/, link/, and other resource
tags to JSF-pages  --
 filter-mapping
  filter-nameMyFacesExtensionsFilter/filter-name
  !-- servlet-name must match the name of your
javax.faces.webapp.FacesServlet entry --
  servlet-nameFaces Servlet/servlet-name
 /filter-mapping
 !-- extension mapping for adding script/, link/, and other resource
tags to JSF-pages  --
 filter-mapping
  filter-nameMyFacesExtensionsFilter/filter-name
  url-pattern*.jsf/url-pattern
 /filter-mapping
 !-- extension mapping for serving page-independent resources (javascript,
stylesheets, images, etc.)  --
 filter-mapping
  filter-nameMyFacesExtensionsFilter/filter-name
  url-pattern/faces/myFacesExtensionResource/*/url-pattern
 /filter-mapping

servlet-mapping
  servlet-nameFaces Servlet/servlet-name
  url-pattern*.jsf/url-pattern
 /servlet-mapping
 servlet-mapping
  servlet-nameFaces Servlet/servlet-name
  url-pattern/faces/*/url-pattern
 /servlet-mapping

Regards,
Jakob

2010/3/23 Jakob Korherr jakob.korh...@gmail.com

 OK, sorry..

 But this web.xml includes


 filter-mapping
  filter-nameMyFacesExtensionsFilter/filter-name
  url-pattern/faces/*/url-pattern
  /filter-mapping

 but it should have


 filter-mapping
 filter-nameMyFacesExtensionsFilter/filter-name
 url-pattern/faces/myFacesExtensionResource/*/url-pattern
 /filter-mapping

 You could also try adding both...

 Regards,
 Jakob


 2010/3/23 Fabio F. fabio...@gmail.com

 I've read and read this page tens of times those days...


 No, I've modified only the line in the filter config, this is definitely
 my
 web.xml:

 ?xml version=1.0 encoding=UTF-8?
 web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=
 http://java.sun.com/xml/ns/javaee; xmlns:web=
 http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; xsi:schemaLocation=
 http://java.sun.com/xml/ns/javaee
 http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; id=WebApp_ID
 version=2.5
  display-nametelemarketing/display-name
  welcome-file-list
welcome-fileindex.html/welcome-file
welcome-fileindex.htm/welcome-file
welcome-fileindex.jsp/welcome-file
welcome-filedefault.html/welcome-file
welcome-filedefault.htm/welcome-file
welcome-filedefault.jsp/welcome-file
  /welcome-file-list
   context-param
param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name
param-valueresources.application/param-value
  /context-param
  context-param
descriptionState saving method: 'client' or 'server' (=default). See
 JSF Specification 2.5.2/description
param-namejavax.faces.STATE_SAVING_METHOD/param-name
param-valueserver/param-value
  /context-param
  context-param
description
This parameter tells MyFaces if javascript code should be allowed in
the rendered HTML output.
If javascript is allowed, command_link anchors will have javascript
 code
that submits the corresponding form.
If javascript is not allowed, the state saving info and nested
 parameters
will be added as url parameters.
Default is 'true'/description
param-nameorg.apache.myfaces.ALLOW_JAVASCRIPT/param-name
param-valuetrue/param-value
  /context-param
  context-param
description
If true, rendered HTML code will be formatted, so that it is
 'human-readable'
i.e. additional line separators and whitespace will be written, that do
 not
influence the HTML code.
Default is 'true'/description
param-nameorg.apache.myfaces.PRETTY_HTML/param-name
param-valuetrue/param-value
  /context-param
  context-param
param-nameorg.apache.myfaces.DETECT_JAVASCRIPT/param-name
param-valuefalse/param-value
  /context-param
  context-param
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 is 'false'
 /description
param-nameorg.apache.myfaces.AUTO_SCROLL/param-name
param-valuetrue/param-value
  /context-param
  servlet
servlet-namefaces/servlet-name
servlet-classjavax.faces.webapp.FacesServlet/servlet-class
load-on-startup1/load-on-startup
  /servlet
  servlet-mapping
servlet-namefaces/servlet-name
url-pattern/faces/*/url-pattern
  

Re: Tomahawk and eclipse galileo not working?

2010-03-23 Thread Fabio F.
I think it was the same, however I renamed even the variables to be equal to
your file... but nothing.

?xml version=1.0 encoding=UTF-8?
web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=
http://java.sun.com/xml/ns/javaee; xmlns:web=
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; xsi:schemaLocation=
http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; id=WebApp_ID
version=2.5
  display-nametelemarketing/display-name
  welcome-file-list
welcome-fileindex.html/welcome-file
welcome-fileindex.htm/welcome-file
welcome-fileindex.jsp/welcome-file
welcome-filedefault.html/welcome-file
welcome-filedefault.htm/welcome-file
welcome-filedefault.jsp/welcome-file
  /welcome-file-list
  context-param
descriptionState saving method: 'client' or 'server' (=default). See
JSF Specification 2.5.2/description
param-namejavax.faces.STATE_SAVING_METHOD/param-name
param-valueserver/param-value
  /context-param
  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
  listener

listener-classorg.apache.myfaces.webapp.StartupServletContextListener/listener-class
  /listener
  context-param
param-nameorg.apache.myfaces.ERROR_HANDLER/param-name
param-valuenetwave.utils.ErrorHandler/param-value
  /context-param
  filter
  filter-nameMyFacesExtensionsFilter/filter-name

filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class
  init-param
  descriptionSet the size limit for uploaded files.
   Format: 10 - 10 bytes
   10k - 10 KB
   10m - 10 MB
   1g - 1 GB/description
  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/*/url-pattern
  /filter-mapping
  filter-mapping
  filter-nameMyFacesExtensionsFilter/filter-name
  url-pattern/faces/myFacesExtensionResource/*/url-pattern
  /filter-mapping
  filter-mapping
  filter-nameMyFacesExtensionsFilter/filter-name
  url-pattern*.jsf/url-pattern
  /filter-mapping
 filter
filter-nameCustomCharacterEncodingFilter/filter-name
filter-classnetwave.utils.CustomCharacterEncodingFilter/filter-class
  /filter
  filter-mapping
filter-nameCustomCharacterEncodingFilter/filter-name
url-pattern/*/url-pattern
  /filter-mapping
  error-page

exception-typejavax.faces.application.ViewExpiredException/exception-type
location/session_expired.jsp/location
  /error-page
/web-app

2010/3/23 Jakob Korherr jakob.korh...@gmail.com

 Here is a web.xml configuration excerpt from a project of mine which uses
 tomahawk and myfaces - this should help you:

 !-- Extensions Filter --
  filter
  filter-nameMyFacesExtensionsFilter/filter-name


 filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class
  init-param
descriptionSet the size limit for uploaded files.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB/description
   param-namemaxFileSize/param-name
param-value20m/param-value
  /init-param
  /filter
  !-- extension mapping for adding script/, link/, and other resource
 tags to JSF-pages  --
  filter-mapping
  filter-nameMyFacesExtensionsFilter/filter-name
   !-- servlet-name must match the name of your
 javax.faces.webapp.FacesServlet entry --
   servlet-nameFaces Servlet/servlet-name
  /filter-mapping
  !-- extension mapping for adding script/, link/, and other resource
 tags to JSF-pages  --
  filter-mapping
  filter-nameMyFacesExtensionsFilter/filter-name
  url-pattern*.jsf/url-pattern
  /filter-mapping
  !-- extension mapping for serving page-independent resources (javascript,
 stylesheets, images, etc.)  --
  filter-mapping
  filter-nameMyFacesExtensionsFilter/filter-name
  url-pattern/faces/myFacesExtensionResource/*/url-pattern
  /filter-mapping

 servlet-mapping
  servlet-nameFaces Servlet/servlet-name
   url-pattern*.jsf/url-pattern
  /servlet-mapping
  servlet-mapping
  servlet-nameFaces Servlet/servlet-name
   url-pattern/faces/*/url-pattern
  /servlet-mapping

 Regards,
 Jakob

 2010/3/23 Jakob Korherr jakob.korh...@gmail.com

  OK, sorry..
 
  But this web.xml includes
 
 
  filter-mapping
   filter-nameMyFacesExtensionsFilter/filter-name
   url-pattern/faces/*/url-pattern
   /filter-mapping
 
  but it should have
 
 
  filter-mapping
  filter-nameMyFacesExtensionsFilter/filter-name
  url-pattern/faces/myFacesExtensionResource/*/url-pattern
  

Re: [TOBAGO] Controls self-adjusted in the page

2010-03-23 Thread Udo Schnurpfeil
For Tobago 1.0 it is a good thing to put a managed bean in the session, 
which manages the layout sizes like:

tc:page state=#{layout} width=#{layout.width} height=#{layout.height}
The bean has to implement PageState or extend PageStateImpl resp.
With this bean you can also influence min/max values for your application.
When the bean in in the session, the sizing also works when the user 
reloads a page directly in the browser.


Regards,

Udo

Am 23.03.10 15:25, schrieb Fernando Augusto:

Hey Udo,

Thanks for your support again. I already have a login form in the app, 
and what happens is:


1 - Login Form (the login page has a rows/columns problem and the form 
doesn't want to be in the center, but I am trying to fix it myself). 
User uses ID/PWD and validates itself;
2 - Main Form (with the alignment problem stated here). Clicking in 
the buttons or menus and making the page refresh a few times makes the 
appearance get better.


@Udo: I am sending you in PVT the URL, with login/pwd for you to see 
the problem.


Best Regards,

Fernando Augusto

Udo Schnurpfeil escreveu:

Hi Fernando,

a usual solution is to have a start/welcome/waiting page. This page 
may automatically forwards to your application, after checking the 
size of the browser (which will be done automatically).

You can also use a login page for that.

Is this a solution for you? If not, you may call the Tobago page with 
a script, and add the browser size as parameter, but this is not the 
preferred solution.


I, don't know why you have wrong sizes on your 2nd page. Have you a 
simple example for that?


Regards,

Udo

Am 23.03.10 04:52, schrieb Fernando Augusto:

Hello,

While working with my app using TOBAGO 1.0.25-SNAPSOT, I found the
following situation: I use GridLayout with * sizes in some rows and
columns. When the page is first loaded, the page organization is quite
messy, with heights and widths different from the window size. When it
first repaints, the controls are ALMOST (by 50px error) aligned
correctly. When the screen is repainted in the 2nd time, the controls
are correctly placed.
How do I fix it, so the controls can be fit the first time the page is
loaded???

Best Regards,

Fernando Augusto









Re: Tomahawk and eclipse galileo not working?

2010-03-23 Thread Jakob Korherr
Then I am really sorry, but I don't know what could be the problem.

Maybe you could take a look at the MyFaces Tomahawk examples [1] and try
them out. There the MyFacesExtensionsFilter should work!

Regards,
Jakob

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

2010/3/23 Fabio F. fabio...@gmail.com

 I think it was the same, however I renamed even the variables to be equal
 to
 your file... but nothing.

 ?xml version=1.0 encoding=UTF-8?
 web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=
 http://java.sun.com/xml/ns/javaee; xmlns:web=
 http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; xsi:schemaLocation=
 http://java.sun.com/xml/ns/javaee
 http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; id=WebApp_ID
 version=2.5
  display-nametelemarketing/display-name
  welcome-file-list
welcome-fileindex.html/welcome-file
welcome-fileindex.htm/welcome-file
welcome-fileindex.jsp/welcome-file
welcome-filedefault.html/welcome-file
welcome-filedefault.htm/welcome-file
welcome-filedefault.jsp/welcome-file
  /welcome-file-list
  context-param
 descriptionState saving method: 'client' or 'server' (=default). See
 JSF Specification 2.5.2/description
param-namejavax.faces.STATE_SAVING_METHOD/param-name
param-valueserver/param-value
  /context-param
   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
   listener


 listener-classorg.apache.myfaces.webapp.StartupServletContextListener/listener-class
  /listener
  context-param
param-nameorg.apache.myfaces.ERROR_HANDLER/param-name
param-valuenetwave.utils.ErrorHandler/param-value
  /context-param
  filter
  filter-nameMyFacesExtensionsFilter/filter-name


 filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class
  init-param
   descriptionSet the size limit for uploaded files.
   Format: 10 - 10 bytes
   10k - 10 KB
   10m - 10 MB
   1g - 1 GB/description
  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/*/url-pattern
  /filter-mapping
  filter-mapping
  filter-nameMyFacesExtensionsFilter/filter-name
   url-pattern/faces/myFacesExtensionResource/*/url-pattern
  /filter-mapping
   filter-mapping
  filter-nameMyFacesExtensionsFilter/filter-name
  url-pattern*.jsf/url-pattern
  /filter-mapping
  filter
filter-nameCustomCharacterEncodingFilter/filter-name
filter-classnetwave.utils.CustomCharacterEncodingFilter/filter-class
  /filter
  filter-mapping
filter-nameCustomCharacterEncodingFilter/filter-name
url-pattern/*/url-pattern
  /filter-mapping
  error-page


 exception-typejavax.faces.application.ViewExpiredException/exception-type
location/session_expired.jsp/location
  /error-page
 /web-app

 2010/3/23 Jakob Korherr jakob.korh...@gmail.com

  Here is a web.xml configuration excerpt from a project of mine which uses
  tomahawk and myfaces - this should help you:
 
  !-- Extensions Filter --
   filter
   filter-nameMyFacesExtensionsFilter/filter-name
 
 
 
 filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class
   init-param
 descriptionSet the size limit for uploaded files.
 Format: 10 - 10 bytes
 10k - 10 KB
 10m - 10 MB
 1g - 1 GB/description
param-namemaxFileSize/param-name
 param-value20m/param-value
   /init-param
   /filter
   !-- extension mapping for adding script/, link/, and other resource
  tags to JSF-pages  --
   filter-mapping
   filter-nameMyFacesExtensionsFilter/filter-name
!-- servlet-name must match the name of your
  javax.faces.webapp.FacesServlet entry --
servlet-nameFaces Servlet/servlet-name
   /filter-mapping
   !-- extension mapping for adding script/, link/, and other resource
  tags to JSF-pages  --
   filter-mapping
   filter-nameMyFacesExtensionsFilter/filter-name
   url-pattern*.jsf/url-pattern
   /filter-mapping
   !-- extension mapping for serving page-independent resources
 (javascript,
  stylesheets, images, etc.)  --
   filter-mapping
   filter-nameMyFacesExtensionsFilter/filter-name
   url-pattern/faces/myFacesExtensionResource/*/url-pattern
   /filter-mapping
 
  servlet-mapping
   servlet-nameFaces Servlet/servlet-name
url-pattern*.jsf/url-pattern
   /servlet-mapping
   servlet-mapping
   servlet-nameFaces Servlet/servlet-name
url-pattern/faces/*/url-pattern
   /servlet-mapping
 
  Regards,
  

[EXTVAL] NPE with JBoss 4.2.3.GA

2010-03-23 Thread Dreher, Markus
Hi,
I use extVal 1.2.3-SNAPSHOT in my project. When I deploy the project i
get a NullpointerException within the first JSF request.
The bundled jsf-impl is 1.2_04-b16-p02.
If I replace the jsf jars in the jboss server config with e.g. Version
1.2_10-b01-FCS everything works fine.

It seems that there is no FacesContext available, so the
JsfUtils.isApplicationInitialized() throws the exception.

Checking FacesContext for null resolves the problem.

Should I file an issue?

Servlet.service() for servlet faces threw exception
java.lang.NullPointerException
at
org.apache.myfaces.extensions.validator.core.renderkit.AbstractRenderKit
WrapperFactory.isApplicationInitialized(AbstractRenderKitWrapperFactory.
java:115)
at
org.apache.myfaces.extensions.validator.core.renderkit.ExtValRenderKitFa
ctory.getRenderKit(ExtValRenderKitFactory.java:76)
at
org.apache.myfaces.trinidadinternal.renderkit.CoreRenderKitFactory.getRe
nderKit(CoreRenderKitFactory.java:55)
at
com.sun.faces.util.Util.verifyFactoriesAndInitDefaultRenderKit(Util.java
:276)
at
com.sun.faces.context.FacesContextFactoryImpl.getFacesContext(FacesConte
xtFactoryImpl.java:105)
at
org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl.getF
acesContext(FacesContextFactoryImpl.java:64)
at
javax.faces.webapp.FacesServlet.service(FacesServlet.java:239)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:206)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:654)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio
nDispatcher.java:445)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp
atcher.java:379)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat
cher.java:292)
at
org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(F
ormAuthenticator.java:315)
at
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAut
henticator.java:243)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:490)
at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.j
ava:84)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:102)
at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConn
ectionValve.java:157)
at
org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:
420)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:2
62)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:84
4)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
Http11Protocol.java:583)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:619)
2010-03-23 22:07:16,042 WARN
[org.apache.catalina.authenticator.FormAuthenticator] Unexpected error
forwarding to login page
java.lang.NullPointerException
at
org.apache.myfaces.extensions.validator.core.renderkit.AbstractRenderKit
WrapperFactory.isApplicationInitialized(AbstractRenderKitWrapperFactory.
java:115)
at
org.apache.myfaces.extensions.validator.core.renderkit.ExtValRenderKitFa
ctory.getRenderKit(ExtValRenderKitFactory.java:76)
at
org.apache.myfaces.trinidadinternal.renderkit.CoreRenderKitFactory.getRe
nderKit(CoreRenderKitFactory.java:55)
at
com.sun.faces.util.Util.verifyFactoriesAndInitDefaultRenderKit(Util.java
:276)
at
com.sun.faces.context.FacesContextFactoryImpl.getFacesContext(FacesConte
xtFactoryImpl.java:105)
at
org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl.getF
acesContext(FacesContextFactoryImpl.java:64)
at
javax.faces.webapp.FacesServlet.service(FacesServlet.java:239)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:206)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:654)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio
nDispatcher.java:445)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp
atcher.java:379)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat
cher.java:292)
at
org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(F

Re: [EXTVAL] NPE with JBoss 4.2.3.GA

2010-03-23 Thread Gerhard Petracek
hi markus,

you analyzed it correctly - that's an issue of mojarra (old versions of it).
you shouldn't see the exception with all new versions of mojarra (as far as
i know) or you just use myfaces core :)
since such old versions (of mojarra) also have other bugs, it's a good idea
to update it in any case.

however, thx for reporting it! i added an additional check.
it would be great if you checkout the trunk [1] and build it via:
  mvn clean install
and test it again.

regards,
gerhard

[1] https://svn.apache.org/repos/asf/myfaces/extensions/validator/trunk/

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces


2010/3/23 Dreher, Markus m.dre...@dzbw.de

 Hi,
 I use extVal 1.2.3-SNAPSHOT in my project. When I deploy the project i
 get a NullpointerException within the first JSF request.
 The bundled jsf-impl is 1.2_04-b16-p02.
 If I replace the jsf jars in the jboss server config with e.g. Version
 1.2_10-b01-FCS everything works fine.

 It seems that there is no FacesContext available, so the
 JsfUtils.isApplicationInitialized() throws the exception.

 Checking FacesContext for null resolves the problem.

 Should I file an issue?

 Servlet.service() for servlet faces threw exception
 java.lang.NullPointerException
at
 org.apache.myfaces.extensions.validator.core.renderkit.AbstractRenderKit
 WrapperFactory.isApplicationInitialized(AbstractRenderKitWrapperFactory.
 java:115)
at
 org.apache.myfaces.extensions.validator.core.renderkit.ExtValRenderKitFa
 ctory.getRenderKit(ExtValRenderKitFactory.java:76)
at
 org.apache.myfaces.trinidadinternal.renderkit.CoreRenderKitFactory.getRe
 nderKit(CoreRenderKitFactory.java:55)
at
 com.sun.faces.util.Util.verifyFactoriesAndInitDefaultRenderKit(Util.java
 :276)
at
 com.sun.faces.context.FacesContextFactoryImpl.getFacesContext(FacesConte
 xtFactoryImpl.java:105)
at
 org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl.getF
 acesContext(FacesContextFactoryImpl.java:64)
at
 javax.faces.webapp.FacesServlet.service(FacesServlet.java:239)
at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
 tionFilterChain.java:290)
at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
 erChain.java:206)
at
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
 her.java:654)
at
 org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio
 nDispatcher.java:445)
at
 org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp
 atcher.java:379)
at
 org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat
 cher.java:292)
at
 org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(F
 ormAuthenticator.java:315)
at
 org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAut
 henticator.java:243)
at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
 Base.java:490)
at
 org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.j
 ava:84)
at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
 :127)
at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
 :102)
at
 org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConn
 ectionValve.java:157)
at
 org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:
 420)
at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
 java:109)
at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:2
 62)
at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:84
 4)
at
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
 Http11Protocol.java:583)
at
 org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:619)
 2010-03-23 22:07:16,042 WARN
 [org.apache.catalina.authenticator.FormAuthenticator] Unexpected error
 forwarding to login page
 java.lang.NullPointerException
at
 org.apache.myfaces.extensions.validator.core.renderkit.AbstractRenderKit
 WrapperFactory.isApplicationInitialized(AbstractRenderKitWrapperFactory.
 java:115)
at
 org.apache.myfaces.extensions.validator.core.renderkit.ExtValRenderKitFa
 ctory.getRenderKit(ExtValRenderKitFactory.java:76)
at
 org.apache.myfaces.trinidadinternal.renderkit.CoreRenderKitFactory.getRe
 nderKit(CoreRenderKitFactory.java:55)
at
 com.sun.faces.util.Util.verifyFactoriesAndInitDefaultRenderKit(Util.java
 :276)
at
 com.sun.faces.context.FacesContextFactoryImpl.getFacesContext(FacesConte
 xtFactoryImpl.java:105)
at
 org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl.getF
 

[ANNOUNCE] Release of Apache MyFaces Extensions Validator 1.1.3, 1.2.3 and 2.0.3

2010-03-23 Thread Gerhard Petracek
The Apache MyFaces team is pleased to announce the 3rd release of
Apache MyFaces Extensions Validator (for JSF 1.1, 1.2 and 2.0).

Apache MyFaces Extensions Validator is an extensible framework to validate
user input based on annotations.

The release contains several improvements and new features as well as a new
validation module for using Bean-Validation (JSR 303) with JSF 1.x and 2.0.
(Compared to the standard integration of BV in JSF 2.0 MyFaces ExtVal 2.0.3
offers more advanced and typesafe features.)

Apache MyFaces Extensions Validator is available in both binary and source
distributions:
http://myfaces.apache.org/extensions/validator/download.html

Apache MyFaces Extensions Validator is available in the central Maven
repository under
Group ID org.apache.myfaces.extensions.validator.*.

Release Notes:
http://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310821styleName=Htmlversion=12314098
http://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310821styleName=Htmlversion=12313876
http://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310821styleName=Htmlversion=12313875

Enjoy!

Gerhard Petracek