schedule and facelets

2006-06-28 Thread ::SammyRulez::

Hi all anybody tried the schedule componenet with facelets? Does it
need any adapter?


--
::SammyRulez::
http://www.kyub.com/blojsom/blog/sam/


RE: NoSuchElementException in HtmlSelectOneMenu

2006-06-28 Thread Michael Heinen








Should I open a jira
issue for this?



I found this multiple
times in my log but I dont currently know how to reproduce it.



Michael









From:
Michael Heinen
[mailto:[EMAIL PROTECTED] 
Sent: Montag, 26. Juni 2006 15:17
To: MyFaces
 Discussion
Subject: NoSuchElementException in
HtmlSelectOneMenu





I got the following exception in my log today:



java.util.NoSuchElementException


at java.util.AbstractList$Itr.next(Unknown Source)


at java.util.AbstractList.removeRange(Unknown Source)


at java.util.AbstractList.clear(Unknown Source)


at
com.recommind.annotation.controller.SearchController.getPublicSearchesMenu(SearchController.java:897)


...




SearchController:

public UISelectOne
getPublicSearchesMenu() {


if (this.publicSearchesMenu==null){


this.publicSearchesMenu = new HtmlSelectOneMenu(); 


}






this.publicSearchesMenu.getChildren().clear(); //***LINE
897***




Has anybody an idea why this is thrown?



Michael








Re: NoClassDefFoundError; HtmlBufferResponseWriterWrapper in tomahawk package

2006-06-28 Thread Mike Duffy
Did anyone find a solution to this?

Here is my stack trace which is different from the one in this thread:

java.lang.NoClassDefFoundError: 
org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
at java.lang.Class.getConstructor0(Class.java:2640)
at java.lang.Class.newInstance0(Class.java:321)
at java.lang.Class.newInstance(Class.java:303)
at 
org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:274)
at 
org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:265)
at
org.apache.myfaces.config.FacesConfigurator.configureLifecycle(FacesConfigurator.java:652)
at 
org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:144)
at
org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:66)
at
org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:49)
at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4183)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)


-
-


By default filters do not run on forward and include, only on initial
requests. With the servlet 2.4 spec (I don't think 2.3 has it), there
is a new DISPATCHER element for filters. Possible values that I use
are REQUEST, INCLUDE and FORWARD. Once I did that my JSF installation
was able to run the MyFaces extension filter for internal forwards and
includes (like during a container managed forward to a JSF security
page for example).

-Andrew

On 6/11/06, Richard Capraro [EMAIL PROTECTED] wrote:
 Stacktrace:

org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

 *cause m�re*

 javax.servlet.ServletException: ExtensionsFilter not correctly configured. 
 JSF mapping
missing. JSF pages not covered. Please see:
http://myfaces.apache.org/tomahawk/extensionsFilter.html
 javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
 
 org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:703)
 
 org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:670)
 org.apache.jsp.index_jsp._jspService(index_jsp.java:52)
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


 Regards,

 Richard

 Matthias Wessendorf a �crit :
  strange.
 
  can you provide the full stack trace ?
 
  -Matthias
 
  On 6/11/06, Richard Capraro [EMAIL PROTECTED] wrote:
  Hello, Matthias,
  with jsp:forward page=/login.jsf/, i get:
  javax.servlet.ServletException: ExtensionsFilter not correctly
  configured. JSF mapping missing. JSF pages not covered. Please see:
  http://myfaces.apache.org/tomahawk/extensionsFilter.html
 
 
  the web.xml i use is this one:
 
http://svn.apache.org/repos/asf/myfaces/tomahawk/branches/1_1_3/examples/simple/src/main/webapp/WEB-INF/web.xml
 
 
  2006/6/10, Matthias Wessendorf [EMAIL PROTECTED]:
   what's with
  
   jsp:forward page=/login.jsf/
  
   -Matthias
  
   On 6/10/06, Richard Capraro [EMAIL PROTECTED] wrote:
Thanks Andrew,
i managed to get it work, replacing a jsp:forward
  page=login.jsf by a %
response.sendRedirect(login.jsf);
%
   
Strange but it works...
   
2006/6/8, Andrew Robinson [EMAIL PROTECTED]:
 In 1.1.2 it 

Re: NoClassDefFoundError; HtmlBufferResponseWriterWrapper in tomahawk package

2006-06-28 Thread Mike Duffy
In Tomahawl 1.1.3, this class (HtmlBufferResponseWriterWrapper) is in
/org/apache/myfaces/renderkit/html/util/.

BTW:  I really like JSF/MyFaces/Tomahawk when they work; but the promise of JSF 
making my life
easier has turned out to be a false promise.  In the time I've spent figuring 
out config issues in
JSF I could have gotten a lot more done using Struts. :(

Mike



--- Mike Duffy [EMAIL PROTECTED] wrote:

 Did anyone find a solution to this?
 
 Here is my stack trace which is different from the one in this thread:
 
 java.lang.NoClassDefFoundError: 
 org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper
 at java.lang.Class.getDeclaredConstructors0(Native Method)
 at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
 at java.lang.Class.getConstructor0(Class.java:2640)
 at java.lang.Class.newInstance0(Class.java:321)
 at java.lang.Class.newInstance(Class.java:303)
 at 
 org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:274)
 at 
 org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:265)
 at
 org.apache.myfaces.config.FacesConfigurator.configureLifecycle(FacesConfigurator.java:652)
 at 
 org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:144)
 at

org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:66)
 at

org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:49)
 at 
 org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
 at 
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4183)
 at 
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
 at 
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
 at 
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 
 
 -
 -
 
 
 By default filters do not run on forward and include, only on initial
 requests. With the servlet 2.4 spec (I don't think 2.3 has it), there
 is a new DISPATCHER element for filters. Possible values that I use
 are REQUEST, INCLUDE and FORWARD. Once I did that my JSF installation
 was able to run the MyFaces extension filter for internal forwards and
 includes (like during a container managed forward to a JSF security
 page for example).
 
 -Andrew
 
 On 6/11/06, Richard Capraro [EMAIL PROTECTED] wrote:
  Stacktrace:
 
 org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
  
  org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
  
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
  *cause m�re*
 
  javax.servlet.ServletException: ExtensionsFilter not correctly configured. 
  JSF mapping
 missing. JSF pages not covered. Please see:
 http://myfaces.apache.org/tomahawk/extensionsFilter.html
  javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
  
  org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:703)
  
  org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:670)
  org.apache.jsp.index_jsp._jspService(index_jsp.java:52)
  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  
  org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
  
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
 
  Regards,
 
  Richard
 
  Matthias Wessendorf a �crit :
   strange.
  
   can you provide the full stack trace ?
  
   -Matthias
  
   On 6/11/06, Richard Capraro [EMAIL PROTECTED] wrote:
   Hello, Matthias,
   with jsp:forward page=/login.jsf/, i get:
   javax.servlet.ServletException: ExtensionsFilter not correctly
   configured. JSF mapping missing. JSF pages not covered. Please see:
   http://myfaces.apache.org/tomahawk/extensionsFilter.html
  
  
   the web.xml i use is this one:
  


LoginAction not executed after server restart

2006-06-28 Thread Michael Heinen








I have a standard login page with two input fields.

The corresponding BackingBean has Request scope and a
login-Action.



Now I'm facing a (for me) strange behaviour:

The login page is displayed without any values.

Now I restart Tomcat (happens often during
development).

When I enter values and execute the login action then
the login page is displayed again without any values.

The loginAction was not executed!

So I have to enter my values again and login again
and then the login action is called.

This occurs only if Tomcat has been restarted.



Why is the login action not called after the first
submit?

The backingBean has request scope, as I mentioned
before.



I use server side state saving.



Thanks for any help

Michael








Re: myfaces tomahawk components

2006-06-28 Thread ::SammyRulez::

schedule component is not in 1.1.3 neither :-(

2006/6/21, Julian Ray [EMAIL PROTECTED]:

Hi Chris,

[1] In 1.1.1 the schedule component in in the sandbox jar.
[2] There is a discussion on decorating the tabbed pane on the wiki. See
http://wiki.apache.org/myfaces/SettingTabClasses

-Original Message-
From: ldr [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 21, 2006 6:10 AM
To: users@myfaces.apache.org
Subject: myfaces tomahawk components


Im trying to use some of the tomahawk components to be exact

- TabbedPane
- Schedule

I've got the TabbedPane working, but it doesn't look very nice and I would
like to ask if any have a simple version with stylesheets. Moreover Im not
sure if I have the latest version - Im using myfaces-all (i think 1.1.1 )
which also concerns my problem with Schedule wich I can't find in
myfaces-all-1.1.1.jar. Which package should I use?

thanks in advance

Chris

_
Setup:
Eclipse Version: 3.1.2
MyEclipse Version: 4.1.1
JBoss Application Server 4.0.4
Windows XP

--
View this message in context:
http://www.nabble.com/myfaces-tomahawk-components-t1822969.html#a4971432
Sent from the MyFaces - Users forum at Nabble.com.





--
::SammyRulez::
http://www.kyub.com/blojsom/blog/sam/


RE: LoginAction not executed after server restart

2006-06-28 Thread Julian Ray



Hi Michael,

You might want to check to see if your login page is 
entering into a session. When the server restarts and the same page has not been 
refreshed in the browser it might be associated with a stale session. When the 
browser refreshs a new (and valid) session will be created. Two ways to get 
around it (a) allow Tomcat to save sessions between restarts and (b) don;t 
let your login page start a session.



From: Michael Heinen [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 28, 2006 4:53 AMTo: MyFaces 
DiscussionSubject: LoginAction not executed after server 
restart


I have a standard login page with 
two input fields.
The corresponding BackingBean has 
Request scope and a login-Action.

Now I'm facing a (for me) strange 
behaviour:
The login page is displayed without 
any values.
Now I restart Tomcat (happens often 
during development).
When I enter values and execute the 
login action then the login page is displayed again without any 
values.
The loginAction was not 
executed!
So I have to enter my values again 
and login again and then the login action is 
called.
This occurs only if Tomcat has been 
restarted.

Why is the login action not called 
after the first submit?
The backingBean has request scope, 
as I mentioned before.

I use server side state 
saving.

Thanks for any 
help
Michael


RE: myfaces tomahawk components

2006-06-28 Thread Julian Ray
Moved to Tomahawk in the latest builds. 

-Original Message-
From: ::SammyRulez:: [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 28, 2006 5:04 AM
To: MyFaces Discussion
Subject: Re: myfaces tomahawk components

schedule component is not in 1.1.3 neither :-(

2006/6/21, Julian Ray [EMAIL PROTECTED]:
 Hi Chris,

 [1] In 1.1.1 the schedule component in in the sandbox jar.
 [2] There is a discussion on decorating the tabbed pane on the wiki. 
 See http://wiki.apache.org/myfaces/SettingTabClasses

 -Original Message-
 From: ldr [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 21, 2006 6:10 AM
 To: users@myfaces.apache.org
 Subject: myfaces tomahawk components


 Im trying to use some of the tomahawk components to be exact

 - TabbedPane
 - Schedule

 I've got the TabbedPane working, but it doesn't look very nice and I 
 would like to ask if any have a simple version with stylesheets. 
 Moreover Im not sure if I have the latest version - Im using 
 myfaces-all (i think 1.1.1 ) which also concerns my problem with 
 Schedule wich I can't find in myfaces-all-1.1.1.jar. Which package should
I use?

 thanks in advance

 Chris

 _
 Setup:
 Eclipse Version: 3.1.2
 MyEclipse Version: 4.1.1
 JBoss Application Server 4.0.4
 Windows XP

 --
 View this message in context:
 http://www.nabble.com/myfaces-tomahawk-components-t1822969.html#a49714
 32 Sent from the MyFaces - Users forum at Nabble.com.




--
::SammyRulez::
http://www.kyub.com/blojsom/blog/sam/



RE: LoginAction not executed after server restart

2006-06-28 Thread Michael Heinen








Thanks Julian,



I dont want to use
persistent sessions. They can cause a lot of problems in my case.



I debugged the two
requests:

1. request

Id= 53AB05505813F00CCD8047C8CE11554B

isNew= true

isValid= true



2. request

id= 53AB05505813F00CCD8047C8CE11554B

isNew= false

isValid= true



The session ids are the
same (as expected).



Do you have any idea why
the action is not called after the first request?

The BackingBean
controller is correctly called each time.



Michael









From:
Julian Ray [mailto:[EMAIL PROTECTED] 
Sent: Mittwoch, 28. Juni 2006
11:06
To: 'MyFaces
 Discussion'
Subject: RE: LoginAction not
executed after server restart





Hi Michael,



You might want to check to see if your
login page is entering into a session. When the server restarts and the same
page has not been refreshed in the browser it might be associated with a stale
session. When the browser refreshs a new (and valid) session will be created.
Two ways to get around it (a) allow Tomcat to save sessions between restarts
and (b) don;t let your login page start a session.











From:
Michael Heinen
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 28, 2006
4:53 AM
To: MyFaces
 Discussion
Subject: LoginAction not executed
after server restart

I have a standard login page with two input fields.

The corresponding BackingBean has Request scope and a
login-Action.



Now I'm facing a (for me) strange behaviour:

The login page is displayed without any values.

Now I restart Tomcat (happens often during
development).

When I enter values and execute the login action then
the login page is displayed again without any values.

The loginAction was not executed!

So I have to enter my values again and login again
and then the login action is called.

This occurs only if Tomcat has been restarted.



Why is the login action not called after the first
submit?

The backingBean has request scope, as I mentioned
before.



I use server side state saving.



Thanks for any help

Michael








java.io.UTFDataFormatException: Invalid byte 2 of 3-byte UTF-8 sequence

2006-06-28 Thread Chen, Wei



Hi 
all,

I have 
a file which cnotains an html-string which contains German characters as 
follow:

produkt.txt
-
tabletrtdöffnen/tdtdändern/td/tr/table


And I 
want to show as follow:

myTest.xhtml
-
?xml version="1.0" encoding="UTF-8"?!DOCTYPE html PUBLIC 
"-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"html 
xmlns="http://www.w3.org/1999/xhtml"xmlns:ui="http://java.sun.com/jsf/facelets"xmlns:h="http://java.sun.com/jsf/html"xmlns:f="http://java.sun.com/jsf/core"xmlns:cr="http://creditreform.de/crefoteam"headmeta 
http-equiv="Content-Type" content="text/html; charset=UTF-8" 
/titleMyTest/title/headbodyui:composition 
template="/jsp/template/innerSiteTemplate.xhtml"...ui:define 
name="leftContent"h2Schuldnerliste/h2centerui:include 
src="" 
//center/ui:define.../ui:composition/body/html

But I got exceptions 
as follow. But if I change the German character to English it will be ok. Who 
knows how can I overcome it? java.io.UTFDataFormatException: Invalid byte 2 of 3-byte UTF-8 sequence.
	at weblogic.apache.xerces.impl.io.UTF8Reader.invalidByte(III)V(UTF8Reader.java:693)
	at weblogic.apache.xerces.impl.io.UTF8Reader.read([CII)I(UTF8Reader.java:418)
	at weblogic.apache.xerces.impl.XMLEntityManager$EntityScanner.load(IZ)Z(XMLEntityManager.java:3307)
	at weblogic.apache.xerces.impl.XMLEntityManager$EntityScanner.scanQName(Lweblogic.apache.xerces.xni.QName;)Z(XMLEntityManager.java:2350)
	at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement()Z(XMLDocumentFragmentScannerImpl.java:702)
	at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Z)Z(XMLDocumentFragmentScannerImpl.java:1477)
	at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Z)Z(XMLDocumentFragmentScannerImpl.java:329)
	at weblogic.apache.xerces.parsers.DTDConfiguration.parse(Z)Z(DTDConfiguration.java:525)
	at weblogic.apache.xerces.parsers.DTDConfiguration.parse(Lweblogic.apache.xerces.xni.parser.XMLInputSource;)V(DTDConfiguration.java:581)
	at weblogic.apache.xerces.parsers.XMLParser.parse(Lweblogic.apache.xerces.xni.parser.XMLInputSource;)V(XMLParser.java:152)
	at weblogic.apache.xerces.parsers.AbstractSAXParser.parse(Lorg.xml.sax.InputSource;)V(AbstractSAXParser.java:1175)
	at weblogic.xml.jaxp.WebLogicXMLReader.parse(Lorg.xml.sax.InputSource;)V(WebLogicXMLReader.java:135)
	at weblogic.xml.jaxp.RegistryXMLReader.parse(Lorg.xml.sax.InputSource;)V(RegistryXMLReader.java:152)
	at javax.xml.parsers.SAXParser.parse(Lorg.xml.sax.InputSource;Lorg.xml.sax.helpers.DefaultHandler;)V(SAXParser.java:345)
	at javax.xml.parsers.SAXParser.parse(Ljava.io.InputStream;Lorg.xml.sax.helpers.DefaultHandler;)V(SAXParser.java:143)
	at com.sun.facelets.compiler.SAXCompiler.doCompile(Ljava.net.URL;Ljava.lang.String;)Lcom.sun.facelets.FaceletHandler;(SAXCompiler.java:222)
	at com.sun.facelets.compiler.Compiler.compile(Ljava.net.URL;Ljava.lang.String;)Lcom.sun.facelets.FaceletHandler;(Compiler.java:105)
	at com.sun.facelets.impl.DefaultFaceletFactory.createFacelet(Ljava.net.URL;)Lcom.sun.facelets.impl.DefaultFacelet;(DefaultFaceletFactory.java:189)
	at com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(Ljava.net.URL;)Lcom.sun.facelets.Facelet;(DefaultFaceletFactory.java:138)
	at com.sun.facelets.impl.DefaultFacelet.include(Lcom.sun.facelets.impl.DefaultFaceletContext;Ljavax.faces.component.UIComponent;Ljava.net.URL;)V(DefaultFacelet.java:293)
	at com.sun.facelets.impl.DefaultFacelet.include(Lcom.sun.facelets.impl.DefaultFaceletContext;Ljavax.faces.component.UIComponent;Ljava.lang.String;)V(DefaultFacelet.java:273)
	at com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(Ljavax.faces.component.UIComponent;Ljava.lang.String;)V(DefaultFaceletContext.java:136)
	at com.sun.facelets.tag.ui.IncludeHandler.apply(Lcom.sun.facelets.FaceletContext;Ljavax.faces.component.UIComponent;)V(IncludeHandler.java:60)
	at com.sun.facelets.tag.CompositeFaceletHandler.apply(Lcom.sun.facelets.FaceletContext;Ljavax.faces.component.UIComponent;)V(CompositeFaceletHandler.java:47)
	at com.sun.facelets.tag.ui.DefineHandler.apply(Lcom.sun.facelets.FaceletContext;Ljavax.faces.component.UIComponent;)V(DefineHandler.java:58)
	at com.sun.facelets.tag.ui.CompositionHandler.apply(Lcom.sun.facelets.FaceletContext;Ljavax.faces.component.UIComponent;Ljava.lang.String;)Z(CompositionHandler.java:128)
	at com.sun.facelets.impl.DefaultFaceletContext$1.apply(Lcom.sun.facelets.FaceletContext;Ljavax.faces.component.UIComponent;Ljava.lang.String;)Z(DefaultFaceletContext.java:253)
	at com.sun.facelets.impl.DefaultFaceletContext.includeDefinition(Ljavax.faces.component.UIComponent;Ljava.lang.String;)Z(DefaultFaceletContext.java:263)
	at com.sun.facelets.tag.ui.InsertHandler.apply(Lcom.sun.facelets.FaceletContext;Ljavax.faces.component.UIComponent;)V(InsertHandler.java:63)
	at 

commandNavigation2 only accepts value bindings in attribute value

2006-06-28 Thread Martin Grotzke
Hello,

i just wanted to start with the Tomahawk panelNavigation2 component.

For this i added the elements

t:panelNavigation2 id=nav1 layout=list
  t:commandNavigation2 value=Foo action=foo/
/t:panelNavigation2

to my (facelets) template.
Unfortunately, i didn't see anything but a single dot, but
not the text Foo.

Finally i found out, that one must use a value binding for the
value of commandNavigation2, so changing the elements to

t:panelNavigation2 id=nav1 layout=list
  t:commandNavigation2 value=#{msg.foo} action=foo/
/t:panelNavigation2

does the trick.

Is this behaviour intended? Why should it not be possible to
hardcode the value of the value attribute?

Cheers,
Martin




signature.asc
Description: This is a digitally signed message part


Re: java.io.UTFDataFormatException: Invalid byte 2 of 3-byte UTF-8 sequence

2006-06-28 Thread Martin van den Bemt

Save the produkt.txt as an UTF-8 file...

Mvgr,
Martin

Chen, Wei wrote:

Hi all,
 
I have a file which cnotains an html-string which contains German 
characters as follow:
 
produkt.txt

-
tabletrtd*ö*ffnen/tdtd*ä*ndern/td/tr/table
 
 
And I want to show as follow:
 
myTest.xhtml

-
?xml version=1.0 encoding=UTF-8?
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;

html xmlns=http://www.w3.org/1999/xhtml;
 xmlns:ui=http://java.sun.com/jsf/facelets;
 xmlns:h=http://java.sun.com/jsf/html;
 xmlns:f=http://java.sun.com/jsf/core;
 xmlns:cr=http://creditreform.de/crefoteam;
head
meta http-equiv=Content-Type content=text/html; charset=UTF-8 /
titleMyTest/title
/head
body
ui:composition template=/jsp/template/innerSiteTemplate.xhtml
...
 ui:define name=leftContent
  h2Schuldnerliste/h2
  center
   *ui:include src=file:./produkt.txt /*
  /center
 /ui:define
...
/ui:composition
/body
/html

But I got exceptions as follow. But if I change the German character to 
English it will be ok. Who knows how can I overcome it?


|java.io.UTFDataFormatException: Invalid byte 2 of 3-byte UTF-8 sequence.
at 
weblogic.apache.xerces.impl.io.UTF8Reader.invalidByte(III)V(UTF8Reader.java:693)
at 
weblogic.apache.xerces.impl.io.UTF8Reader.read([CII)I(UTF8Reader.java:418)
at 
weblogic.apache.xerces.impl.XMLEntityManager$EntityScanner.load(IZ)Z(XMLEntityManager.java:3307)
at 
weblogic.apache.xerces.impl.XMLEntityManager$EntityScanner.scanQName(Lweblogic.apache.xerces.xni.QName;)Z(XMLEntityManager.java:2350)
at 
weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement()Z(XMLDocumentFragmentScannerImpl.java:702)
at 
weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Z)Z(XMLDocumentFragmentScannerImpl.java:1477)
at 
weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Z)Z(XMLDocumentFragmentScannerImpl.java:329)
at 
weblogic.apache.xerces.parsers.DTDConfiguration.parse(Z)Z(DTDConfiguration.java:525)
at 
weblogic.apache.xerces.parsers.DTDConfiguration.parse(Lweblogic.apache.xerces.xni.parser.XMLInputSource;)V(DTDConfiguration.java:581)
at 
weblogic.apache.xerces.parsers.XMLParser.parse(Lweblogic.apache.xerces.xni.parser.XMLInputSource;)V(XMLParser.java:152)
at 
weblogic.apache.xerces.parsers.AbstractSAXParser.parse(Lorg.xml.sax.InputSource;)V(AbstractSAXParser.java:1175)
at 
weblogic.xml.jaxp.WebLogicXMLReader.parse(Lorg.xml.sax.InputSource;)V(WebLogicXMLReader.java:135)
at 
weblogic.xml.jaxp.RegistryXMLReader.parse(Lorg.xml.sax.InputSource;)V(RegistryXMLReader.java:152)
at 
javax.xml.parsers.SAXParser.parse(Lorg.xml.sax.InputSource;Lorg.xml.sax.helpers.DefaultHandler;)V(SAXParser.java:345)
at 
javax.xml.parsers.SAXParser.parse(Ljava.io.InputStream;Lorg.xml.sax.helpers.DefaultHandler;)V(SAXParser.java:143)
at 
com.sun.facelets.compiler.SAXCompiler.doCompile(Ljava.net.URL;Ljava.lang.String;)Lcom.sun.facelets.FaceletHandler;(SAXCompiler.java:222)
at 
com.sun.facelets.compiler.Compiler.compile(Ljava.net.URL;Ljava.lang.String;)Lcom.sun.facelets.FaceletHandler;(Compiler.java:105)
at 
com.sun.facelets.impl.DefaultFaceletFactory.createFacelet(Ljava.net.URL;)Lcom.sun.facelets.impl.DefaultFacelet;(DefaultFaceletFactory.java:189)
at 
com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(Ljava.net.URL;)Lcom.sun.facelets.Facelet;(DefaultFaceletFactory.java:138)
at 
com.sun.facelets.impl.DefaultFacelet.include(Lcom.sun.facelets.impl.DefaultFaceletContext;Ljavax.faces.component.UIComponent;Ljava.net.URL;)V(DefaultFacelet.java:293)
at 
com.sun.facelets.impl.DefaultFacelet.include(Lcom.sun.facelets.impl.DefaultFaceletContext;Ljavax.faces.component.UIComponent;Ljava.lang.String;)V(DefaultFacelet.java:273)
at 
com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(Ljavax.faces.component.UIComponent;Ljava.lang.String;)V(DefaultFaceletContext.java:136)
at 
com.sun.facelets.tag.ui.IncludeHandler.apply(Lcom.sun.facelets.FaceletContext;Ljavax.faces.component.UIComponent;)V(IncludeHandler.java:60)
at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(Lcom.sun.facelets.FaceletContext;Ljavax.faces.component.UIComponent;)V(CompositeFaceletHandler.java:47)
at 
com.sun.facelets.tag.ui.DefineHandler.apply(Lcom.sun.facelets.FaceletContext;Ljavax.faces.component.UIComponent;)V(DefineHandler.java:58)
at 
com.sun.facelets.tag.ui.CompositionHandler.apply(Lcom.sun.facelets.FaceletContext;Ljavax.faces.component.UIComponent;Ljava.lang.String;)Z(CompositionHandler.java:128)
at 
com.sun.facelets.impl.DefaultFaceletContext$1.apply(Lcom.sun.facelets.FaceletContext;Ljavax.faces.component.UIComponent;Ljava.lang.String;)Z(DefaultFaceletContext.java:253)
at 

configuring State Manager

2006-06-28 Thread xslove

Hi, I downloaded new Myfaces 1.1.3, run my web application and exception is
thrown

java.lang.NullPointerException: Argument Error: One or more parameters are
null. StateManager null

app work well with Myfaces 1.1.1

Radim
-- 
View this message in context: 
http://www.nabble.com/configuring-State-Manager-tf1860546.html#a5081518
Sent from the MyFaces - Users forum at Nabble.com.



Re: Tomahawk dataTable Problem - replacing standard dataTable with tomahawks one shows nothing

2006-06-28 Thread Torsten Krah
Investigated a little bit and tried other models. If i am using a
SortableModel made with an  ArrayDataModel with Customers supplied
statically in the Code it works, t:dataTable shows what i want to see.

But if i am going to use a SortableModel from a ResultSetDataModel to
get the Customers from a database table, only h:dataTable still works,
t:dataTable shows nothing.

Any things with this Model type to get it working with tomahawk extended
Table?

code which works with the tomahawk dataTable:

...
private Customer[] customers = {
new Customer(1,Anna,034142,My 
Street,Leipzig,Sachsen),  
new Customer(2,Bert,014142,Ny
Street,Halle,Sachsen-Anhalt),
};

public TableData() { 
...
ArrayDataModel ar_model = new ArrayDataModel(customers);
filterModel = new SortableModel(ar_model);
...
}

code which doesnt work with tomahawks dataTable, but with the default
one:

public TableData() { 
open();
Statement stmt = conn

.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,

ResultSet.CONCUR_UPDATABLE);
ResultSet result = stmt.executeQuery(SELECT * FROM 
Customers);
CachedRowSetImpl crs = new CachedRowSetImpl();
crs.populate(result);
ResultSetDataModel db_model = new
ResultSetDataModel(crs.getOriginal());
filterModel = new SortableModel(db_model);
close();
}

The database table was made with this sql script:

CREATE TABLE Customers (
   Cust_ID INT,
   Name CHAR(30),
   Phone_Number CHAR(15),
   Street_Address CHAR(30),
   City CHAR(30),
   State CHAR(15)
);

INSERT INTO Customers VALUES (1, 'William Dupont', '(652)488-9931',
   '801 Oak Street', 'Eugene', 'Nebraska');

INSERT INTO Customers VALUES (2, 'Anna Keeney', '(716)834-8772',
   '86 East Amherst Street', 'Buffalo', 'New York');

INSERT INTO Customers VALUES (3, 'Mariko Randor', '(451)842-8933',
   '923 Maple Street', 'Springfield', 'Tennessee');



Some hints would be nice.


kind regards

Torsten



Problems with messages

2006-06-28 Thread Matthias Fischer
Hello,

I have a dataScroller and a dataTable in my page.
There are also some fields that are used as a search mask and a search
button calling a searchAction in the backing bean.
In this search action I generate a global message (no client id) if no
data could be found.
However this message never displays.

Strangely, in my logs written by a phase listener I find that the
message has successfully been generated in the INVOKE_APPLICATION phase.
Apparently the RESTORE_VIEW is called after the INVOKE_APPLICATION phase
which seems strange to me. Shouldn't be RENDER_RESPONSE be the next
phase after INVOKE_APPLICATION?
Anyway, here the message is no more there and neither is it in the
following RENDER_RESPONSE phase.

Anybody an idea concerning that behaviour?

Kind regards from the Lake of Constance
Matthias




Re: schedule and facelets

2006-06-28 Thread ::SammyRulez::

well

I added to the tomahawk.taglib.xml the entry

tag
   tag-nameschedule/tag-name
   component
   component-typeorg.apache.myfaces.Schedule/component-type
   renderer-typeorg.apache.myfaces.Schedule/renderer-type
   /component
   /tag

the time table is displaied fine but the entries appears only in
grayed days (holidays or out of scope) but if I move the mouse over
the blank dais tooltips appears...

quite confused...

2006/6/28, ::SammyRulez:: [EMAIL PROTECTED]:

Hi all anybody tried the schedule componenet with facelets? Does it
need any adapter?


--
::SammyRulez::
http://www.kyub.com/blojsom/blog/sam/




--
::SammyRulez::
http://www.kyub.com/blojsom/blog/sam/


Re: java.io.UTFDataFormatException: Invalid byte 2 of 3-byte UTF-8 sequence

2006-06-28 Thread Torsten Krah
Is this file in utf-8 format or latin1 - not the filename itself, the
content? Change it to utf-8 and it should be fine.

kind regards

Am Mittwoch, den 28.06.2006, 11:46 +0200 schrieb Chen, Wei:
 Hi all,
  
 I have a file which cnotains an html-string which contains German
 characters as follow:
  
 produkt.txt
 -
 tabletrtdöffnen/tdtdändern/td/tr/table
  
  
 And I want to show as follow:
  
 myTest.xhtml
 -
 ?xml version=1.0 encoding=UTF-8?
 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
 html xmlns=http://www.w3.org/1999/xhtml;
  xmlns:ui=http://java.sun.com/jsf/facelets;
  xmlns:h=http://java.sun.com/jsf/html;
  xmlns:f=http://java.sun.com/jsf/core;
  xmlns:cr=http://creditreform.de/crefoteam;
 head
 meta http-equiv=Content-Type content=text/html; charset=UTF-8 /
 titleMyTest/title
 /head
 body
 ui:composition template=/jsp/template/innerSiteTemplate.xhtml
 ...
  ui:define name=leftContent
   h2Schuldnerliste/h2
   center
ui:include src=file:./produkt.txt /
   /center
  /ui:define
 ...
 /ui:composition
 /body
 /html
 
 But I got exceptions as follow. But if I change the German character
 to English it will be ok. Who knows how can I overcome it? 
 
 java.io.UTFDataFormatException: Invalid byte 2 of 3-byte UTF-8 sequence.
   at 
 weblogic.apache.xerces.impl.io.UTF8Reader.invalidByte(III)V(UTF8Reader.java:693)
   at 
 weblogic.apache.xerces.impl.io.UTF8Reader.read([CII)I(UTF8Reader.java:418)
   at 
 weblogic.apache.xerces.impl.XMLEntityManager$EntityScanner.load(IZ)Z(XMLEntityManager.java:3307)
   at 
 weblogic.apache.xerces.impl.XMLEntityManager$EntityScanner.scanQName(Lweblogic.apache.xerces.xni.QName;)Z(XMLEntityManager.java:2350)
   at 
 weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement()Z(XMLDocumentFragmentScannerImpl.java:702)
   at 
 weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Z)Z(XMLDocumentFragmentScannerImpl.java:1477)
   at 
 weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Z)Z(XMLDocumentFragmentScannerImpl.java:329)
   at 
 weblogic.apache.xerces.parsers.DTDConfiguration.parse(Z)Z(DTDConfiguration.java:525)
   at 
 weblogic.apache.xerces.parsers.DTDConfiguration.parse(Lweblogic.apache.xerces.xni.parser.XMLInputSource;)V(DTDConfiguration.java:581)
   at 
 weblogic.apache.xerces.parsers.XMLParser.parse(Lweblogic.apache.xerces.xni.parser.XMLInputSource;)V(XMLParser.java:152)
   at 
 weblogic.apache.xerces.parsers.AbstractSAXParser.parse(Lorg.xml.sax.InputSource;)V(AbstractSAXParser.java:1175)
   at 
 weblogic.xml.jaxp.WebLogicXMLReader.parse(Lorg.xml.sax.InputSource;)V(WebLogicXMLReader.java:135)
   at 
 weblogic.xml.jaxp.RegistryXMLReader.parse(Lorg.xml.sax.InputSource;)V(RegistryXMLReader.java:152)
   at 
 javax.xml.parsers.SAXParser.parse(Lorg.xml.sax.InputSource;Lorg.xml.sax.helpers.DefaultHandler;)V(SAXParser.java:345)
   at 
 javax.xml.parsers.SAXParser.parse(Ljava.io.InputStream;Lorg.xml.sax.helpers.DefaultHandler;)V(SAXParser.java:143)
   at 
 com.sun.facelets.compiler.SAXCompiler.doCompile(Ljava.net.URL;Ljava.lang.String;)Lcom.sun.facelets.FaceletHandler;(SAXCompiler.java:222)
   at 
 com.sun.facelets.compiler.Compiler.compile(Ljava.net.URL;Ljava.lang.String;)Lcom.sun.facelets.FaceletHandler;(Compiler.java:105)
   at 
 com.sun.facelets.impl.DefaultFaceletFactory.createFacelet(Ljava.net.URL;)Lcom.sun.facelets.impl.DefaultFacelet;(DefaultFaceletFactory.java:189)
   at 
 com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(Ljava.net.URL;)Lcom.sun.facelets.Facelet;(DefaultFaceletFactory.java:138)
   at 
 com.sun.facelets.impl.DefaultFacelet.include(Lcom.sun.facelets.impl.DefaultFaceletContext;Ljavax.faces.component.UIComponent;Ljava.net.URL;)V(DefaultFacelet.java:293)
   at 
 com.sun.facelets.impl.DefaultFacelet.include(Lcom.sun.facelets.impl.DefaultFaceletContext;Ljavax.faces.component.UIComponent;Ljava.lang.String;)V(DefaultFacelet.java:273)
   at 
 com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(Ljavax.faces.component.UIComponent;Ljava.lang.String;)V(DefaultFaceletContext.java:136)
   at 
 com.sun.facelets.tag.ui.IncludeHandler.apply(Lcom.sun.facelets.FaceletContext;Ljavax.faces.component.UIComponent;)V(IncludeHandler.java:60)
   at 
 com.sun.facelets.tag.CompositeFaceletHandler.apply(Lcom.sun.facelets.FaceletContext;Ljavax.faces.component.UIComponent;)V(CompositeFaceletHandler.java:47)
   at 
 com.sun.facelets.tag.ui.DefineHandler.apply(Lcom.sun.facelets.FaceletContext;Ljavax.faces.component.UIComponent;)V(DefineHandler.java:58)
   at 
 com.sun.facelets.tag.ui.CompositionHandler.apply(Lcom.sun.facelets.FaceletContext;Ljavax.faces.component.UIComponent;Ljava.lang.String;)Z(CompositionHandler.java:128)
   at 
 

Re: Tomahawk dataTable Problem - replacing standard dataTable with tomahawks one shows nothing

2006-06-28 Thread Torsten Krah
http://issues.apache.org/jira/browse/MYFACES-278

Might be the cause - but according to this report, it should have been
fixed in 1.1.3 - i am using latest 1.1.3 snapshot, but it doesnt work,
is it fixed or not in 1.1.3?

kind regards



AW: java.io.UTFDataFormatException: Invalid byte 2 of 3-byte UTF-8 sequence

2006-06-28 Thread Chen, Wei
Hi Martin,

My file is simply a txt-file and is generated/saved in run-time by the program. 
How can I save as an UTF-8 file? 

Regards




-Ursprüngliche Nachricht-
Von: Martin van den Bemt [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 28. Juni 2006 12:25
An: MyFaces Discussion
Betreff: Re: java.io.UTFDataFormatException: Invalid byte 2 of 3-byte UTF-8 
sequence

Save the produkt.txt as an UTF-8 file...

Mvgr,
Martin

Chen, Wei wrote:
 Hi all,
  
 I have a file which cnotains an html-string which contains German 
 characters as follow:
  
 produkt.txt
 -
 tabletrtd*ö*ffnen/tdtd*ä*ndern/td/tr/table
  
  
 And I want to show as follow:
  
 myTest.xhtml
 -
 ?xml version=1.0 encoding=UTF-8? !DOCTYPE html PUBLIC 
 -//W3C//DTD XHTML 1.0 Transitional//EN
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
 html xmlns=http://www.w3.org/1999/xhtml;
  xmlns:ui=http://java.sun.com/jsf/facelets;
  xmlns:h=http://java.sun.com/jsf/html;
  xmlns:f=http://java.sun.com/jsf/core;
  xmlns:cr=http://creditreform.de/crefoteam;
 head
 meta http-equiv=Content-Type content=text/html; charset=UTF-8 / 
 titleMyTest/title /head body ui:composition 
 template=/jsp/template/innerSiteTemplate.xhtml
 ...
  ui:define name=leftContent
   h2Schuldnerliste/h2
   center
*ui:include src=file:./produkt.txt /*
   /center
  /ui:define
 ...
 /ui:composition
 /body
 /html
 
 But I got exceptions as follow. But if I change the German character 
 to English it will be ok. Who knows how can I overcome it?
 
 |java.io.UTFDataFormatException: Invalid byte 2 of 3-byte UTF-8 sequence.
   at 
 weblogic.apache.xerces.impl.io.UTF8Reader.invalidByte(III)V(UTF8Reader.java:693)
   at 
 weblogic.apache.xerces.impl.io.UTF8Reader.read([CII)I(UTF8Reader.java:418)
   at 
 weblogic.apache.xerces.impl.XMLEntityManager$EntityScanner.load(IZ)Z(XMLEntityManager.java:3307)
   at 
 weblogic.apache.xerces.impl.XMLEntityManager$EntityScanner.scanQName(Lweblogic.apache.xerces.xni.QName;)Z(XMLEntityManager.java:2350)
   at 
 weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement()Z(XMLDocumentFragmentScannerImpl.java:702)
   at 
 weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Z)Z(XMLDocumentFragmentScannerImpl.java:1477)
   at 
 weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Z)Z(XMLDocumentFragmentScannerImpl.java:329)
   at 
 weblogic.apache.xerces.parsers.DTDConfiguration.parse(Z)Z(DTDConfiguration.java:525)
   at 
 weblogic.apache.xerces.parsers.DTDConfiguration.parse(Lweblogic.apache.xerces.xni.parser.XMLInputSource;)V(DTDConfiguration.java:581)
   at 
 weblogic.apache.xerces.parsers.XMLParser.parse(Lweblogic.apache.xerces.xni.parser.XMLInputSource;)V(XMLParser.java:152)
   at 
 weblogic.apache.xerces.parsers.AbstractSAXParser.parse(Lorg.xml.sax.InputSource;)V(AbstractSAXParser.java:1175)
   at 
 weblogic.xml.jaxp.WebLogicXMLReader.parse(Lorg.xml.sax.InputSource;)V(WebLogicXMLReader.java:135)
   at 
 weblogic.xml.jaxp.RegistryXMLReader.parse(Lorg.xml.sax.InputSource;)V(RegistryXMLReader.java:152)
   at 
 javax.xml.parsers.SAXParser.parse(Lorg.xml.sax.InputSource;Lorg.xml.sax.helpers.DefaultHandler;)V(SAXParser.java:345)
   at 
 javax.xml.parsers.SAXParser.parse(Ljava.io.InputStream;Lorg.xml.sax.helpers.DefaultHandler;)V(SAXParser.java:143)
   at 
 com.sun.facelets.compiler.SAXCompiler.doCompile(Ljava.net.URL;Ljava.lang.String;)Lcom.sun.facelets.FaceletHandler;(SAXCompiler.java:222)
   at 
 com.sun.facelets.compiler.Compiler.compile(Ljava.net.URL;Ljava.lang.String;)Lcom.sun.facelets.FaceletHandler;(Compiler.java:105)
   at 
 com.sun.facelets.impl.DefaultFaceletFactory.createFacelet(Ljava.net.URL;)Lcom.sun.facelets.impl.DefaultFacelet;(DefaultFaceletFactory.java:189)
   at 
 com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(Ljava.net.URL;)Lcom.sun.facelets.Facelet;(DefaultFaceletFactory.java:138)
   at 
 com.sun.facelets.impl.DefaultFacelet.include(Lcom.sun.facelets.impl.DefaultFaceletContext;Ljavax.faces.component.UIComponent;Ljava.net.URL;)V(DefaultFacelet.java:293)
   at 
 com.sun.facelets.impl.DefaultFacelet.include(Lcom.sun.facelets.impl.DefaultFaceletContext;Ljavax.faces.component.UIComponent;Ljava.lang.String;)V(DefaultFacelet.java:273)
   at 
 com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(Ljavax.faces.component.UIComponent;Ljava.lang.String;)V(DefaultFaceletContext.java:136)
   at 
 com.sun.facelets.tag.ui.IncludeHandler.apply(Lcom.sun.facelets.FaceletContext;Ljavax.faces.component.UIComponent;)V(IncludeHandler.java:60)
   at 
 com.sun.facelets.tag.CompositeFaceletHandler.apply(Lcom.sun.facelets.FaceletContext;Ljavax.faces.component.UIComponent;)V(CompositeFaceletHandler.java:47)
   at 
 

ADDENDUM: Problems with messages

2006-06-28 Thread Matthias Fischer

I am using Tiles. However the messages tag is not within a subview, it's
in the page layout tile.
The components mentioned below are located within a subview contents.
The contents of this subview are passed into the pagelayout via tiles.


Matthias Fischer wrote:
 Hello,

 I have a dataScroller and a dataTable in my page.
 There are also some fields that are used as a search mask and a search
 button calling a searchAction in the backing bean.
 In this search action I generate a global message (no client id) if no
 data could be found.
 However this message never displays.

 Strangely, in my logs written by a phase listener I find that the
 message has successfully been generated in the INVOKE_APPLICATION phase.
 Apparently the RESTORE_VIEW is called after the INVOKE_APPLICATION phase
 which seems strange to me. Shouldn't be RENDER_RESPONSE be the next
 phase after INVOKE_APPLICATION?
 Anyway, here the message is no more there and neither is it in the
 following RENDER_RESPONSE phase.

 Anybody an idea concerning that behaviour?

 Kind regards from the Lake of Constance
 Matthias


   



Re: Tomahawk dataTable Problem - replacing standard dataTable with tomahawks one shows nothing

2006-06-28 Thread Torsten Krah
http://issues.apache.org/jira/browse/TOMAHAWK-89

Thats the bug - so thx for help ;) i found it myself.

kind regards

Torsten


-- 0 and 1. Now what could be so hard about that? --



[tomahawk] dataScroller freezing

2006-06-28 Thread Alexandre Jaquet

Hi,

I'm been using dataScroller component and I'm having trouble when I 
navigate, the server doesn't response.


Any idea on how to fix it ?


dataTable get datas from multiple table

2006-06-28 Thread Alexandre Jaquet

Hi again,

I didn't find the way to put in a data table datas who cam from multiple 
database table.


For example I have a field  ref_mother_tongue (int) who is a foreign key 
in a table person and I want to display
the field language.value from the language table to get the following 
result :


First name - Name - Mother tongue
--
Alexandre   Jaquetfrench
PaulToto  english

we already have tryied :
t:column
   h:outputText 
value=#{tableGUI.getLanguageValue(rowRecord.refLanguage)}/

/t:column

and :

t:column
h:outputText value=#{tableGUI.getLanguageValue}
  f:param name=refLanguage value=#{rowRecord.refLanguage} /
/h:outputText
/t:column

but it's doesn't work

thx for your advice

Alexandre Jaquet


RE: dataTable get datas from multiple table

2006-06-28 Thread Julian Ray
A couple of thoughts

[1] Use a join to get a composite row back from the database which contains
the complete set of data you need
[2] In your backing bean create a set of methods to get the required column
data from whichever table it exists in This can be done as follows

t:column
h:outputText value=#{tableGUI.refLanguage}/ 
/t:column

And in your backing bean create a method like

Public String getRefLanguage() {
String Name = getValue(#{rowRecord.name});
// Lookup in the database for this users language
//
String lang = .
return lang;
}


-Original Message-
From: Alexandre Jaquet [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 28, 2006 7:52 AM
To: MyFaces Discussion
Subject: dataTable get datas from multiple table

Hi again,

I didn't find the way to put in a data table datas who cam from multiple
database table.

For example I have a field  ref_mother_tongue (int) who is a foreign key in
a table person and I want to display the field language.value from the
language table to get the following result :

First name - Name - Mother tongue
--
Alexandre   Jaquetfrench
PaulToto  english

we already have tryied :
t:column
h:outputText
value=#{tableGUI.getLanguageValue(rowRecord.refLanguage)}/
/t:column

and :

t:column
h:outputText value=#{tableGUI.getLanguageValue}
   f:param name=refLanguage value=#{rowRecord.refLanguage} /
/h:outputText /t:column

but it's doesn't work

thx for your advice

Alexandre Jaquet



Re: dataTable get datas from multiple table

2006-06-28 Thread Alexandre Jaquet

Well thx Julian :)

Alexandre Jaquet
Julian Ray wrote:

A couple of thoughts

[1] Use a join to get a composite row back from the database which contains
the complete set of data you need
[2] In your backing bean create a set of methods to get the required column
data from whichever table it exists in This can be done as follows

t:column
	h:outputText value=#{tableGUI.refLanguage}/ 
/t:column


And in your backing bean create a method like

Public String getRefLanguage() {
String Name = getValue(#{rowRecord.name});
// Lookup in the database for this users language
//
String lang = .
return lang;
}


-Original Message-
From: Alexandre Jaquet [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 28, 2006 7:52 AM

To: MyFaces Discussion
Subject: dataTable get datas from multiple table

Hi again,

I didn't find the way to put in a data table datas who cam from multiple
database table.

For example I have a field  ref_mother_tongue (int) who is a foreign key in
a table person and I want to display the field language.value from the
language table to get the following result :

First name - Name - Mother tongue
--
Alexandre   Jaquetfrench
PaulToto  english

we already have tryied :
t:column
h:outputText
value=#{tableGUI.getLanguageValue(rowRecord.refLanguage)}/
/t:column

and :

t:column
h:outputText value=#{tableGUI.getLanguageValue}
   f:param name=refLanguage value=#{rowRecord.refLanguage} /
/h:outputText /t:column

but it's doesn't work

thx for your advice

Alexandre Jaquet


  




SortableModel and t:dataTable - change sorting algorithm for a specified column

2006-06-28 Thread Torsten Krah
Using a SortableModel and t:dataTable creates sorting Links by default.
Using Numbers in a column and sort them works, but the used algorithm to
sort is not equal to the natural sorting we use, of cause its a default
implementation it cant work for all, but how to change this for certain
columns.

I want to use this model and only modify the algorithm for some columns.

kind regards


Torsten


-- Give a man a fish and you feed him for a day; teach him to use the
Net and he won't bother you for weeks. --



Re: SortableModel and t:dataTable - change sorting algorithm for a specified column

2006-06-28 Thread Catalin Kormos
The SortableModel tryies to sort them as Comparable, if they don't  implement that interface, than it sorts them as strings; as far as i  can tell, having your objects displayed in a column implement that  interface would allow you to customize the algorithm.HTH,  CatalinTorsten Krah [EMAIL PROTECTED] wrote:  Using a SortableModel and t:dataTable creates sorting Links by default.Using Numbers in a column and sort them works, but the used algorithm tosort is not equal to the natural sorting we use, of cause its a defaultimplementation it cant work for all, but how to change this for certaincolumns.I want to use this model and only modify the algorithm for some columns.kind regardsTorsten-- Give a man a fish and you feed him for a day; teach him
 to use theNet and he won't bother you for weeks. -- 
		Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.

Re: SortableModel and t:dataTable - change sorting algorithm for a specified column

2006-06-28 Thread Torsten Krah
Thx - works, your right.

kind regards

Torsten

Am Mittwoch, den 28.06.2006, 05:45 -0700 schrieb Catalin Kormos:
 The SortableModel tryies to sort them as Comparable, if they don't
 implement that interface, than it sorts them as strings; as far as i
 can tell, having your objects displayed in a column implement that
 interface would allow you to customize the algorithm.
 
 HTH,
 Catalin
 
 Torsten Krah [EMAIL PROTECTED] wrote:
 Using a SortableModel and t:dataTable creates sorting Links by
 default.
 Using Numbers in a column and sort them works, but the used
 algorithm to
 sort is not equal to the natural sorting we use, of cause its
 a default
 implementation it cant work for all, but how to change this
 for certain
 columns.
 
 I want to use this model and only modify the algorithm for
 some columns.
 
 kind regards
 
 
 Torsten
 
 
 -- Give a man a fish and you feed him for a day; teach him to
 use the
 Net and he won't bother you for weeks. --
 
 
 
 
 
 __
 Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+
 countries) for 2¢/min or less.
-- I believe the technical term is Oops! --



Re: AW: java.io.UTFDataFormatException: Invalid byte 2 of 3-byte UTF-8 sequence

2006-06-28 Thread Martin van den Bemt

Just use the OutputStreamWriter to specify the encoding.

Mvgr,
Martin

Chen, Wei wrote:

Hi Martin,

My file is simply a txt-file and is generated/saved in run-time by the program. How can I save as an UTF-8 file? 


Regards




-Ursprüngliche Nachricht-
Von: Martin van den Bemt [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 28. Juni 2006 12:25

An: MyFaces Discussion
Betreff: Re: java.io.UTFDataFormatException: Invalid byte 2 of 3-byte UTF-8 
sequence

Save the produkt.txt as an UTF-8 file...

Mvgr,
Martin

Chen, Wei wrote:


Hi all,

I have a file which cnotains an html-string which contains German 
characters as follow:


produkt.txt
-
tabletrtd*ö*ffnen/tdtd*ä*ndern/td/tr/table


And I want to show as follow:

myTest.xhtml
-
?xml version=1.0 encoding=UTF-8? !DOCTYPE html PUBLIC 
-//W3C//DTD XHTML 1.0 Transitional//EN

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html xmlns=http://www.w3.org/1999/xhtml;
xmlns:ui=http://java.sun.com/jsf/facelets;
xmlns:h=http://java.sun.com/jsf/html;
xmlns:f=http://java.sun.com/jsf/core;
xmlns:cr=http://creditreform.de/crefoteam;
head
meta http-equiv=Content-Type content=text/html; charset=UTF-8 / 
titleMyTest/title /head body ui:composition 
template=/jsp/template/innerSiteTemplate.xhtml

...
ui:define name=leftContent
 h2Schuldnerliste/h2
 center
  *ui:include src=file:./produkt.txt /*
 /center
/ui:define
...
/ui:composition
/body
/html

But I got exceptions as follow. But if I change the German character 
to English it will be ok. Who knows how can I overcome it?


|java.io.UTFDataFormatException: Invalid byte 2 of 3-byte UTF-8 sequence.
at 
weblogic.apache.xerces.impl.io.UTF8Reader.invalidByte(III)V(UTF8Reader.java:693)
at 
weblogic.apache.xerces.impl.io.UTF8Reader.read([CII)I(UTF8Reader.java:418)
at 
weblogic.apache.xerces.impl.XMLEntityManager$EntityScanner.load(IZ)Z(XMLEntityManager.java:3307)
at 
weblogic.apache.xerces.impl.XMLEntityManager$EntityScanner.scanQName(Lweblogic.apache.xerces.xni.QName;)Z(XMLEntityManager.java:2350)
at 
weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement()Z(XMLDocumentFragmentScannerImpl.java:702)
at 
weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Z)Z(XMLDocumentFragmentScannerImpl.java:1477)
at 
weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Z)Z(XMLDocumentFragmentScannerImpl.java:329)
at 
weblogic.apache.xerces.parsers.DTDConfiguration.parse(Z)Z(DTDConfiguration.java:525)
at 
weblogic.apache.xerces.parsers.DTDConfiguration.parse(Lweblogic.apache.xerces.xni.parser.XMLInputSource;)V(DTDConfiguration.java:581)
at 
weblogic.apache.xerces.parsers.XMLParser.parse(Lweblogic.apache.xerces.xni.parser.XMLInputSource;)V(XMLParser.java:152)
at 
weblogic.apache.xerces.parsers.AbstractSAXParser.parse(Lorg.xml.sax.InputSource;)V(AbstractSAXParser.java:1175)
at 
weblogic.xml.jaxp.WebLogicXMLReader.parse(Lorg.xml.sax.InputSource;)V(WebLogicXMLReader.java:135)
at 
weblogic.xml.jaxp.RegistryXMLReader.parse(Lorg.xml.sax.InputSource;)V(RegistryXMLReader.java:152)
at 
javax.xml.parsers.SAXParser.parse(Lorg.xml.sax.InputSource;Lorg.xml.sax.helpers.DefaultHandler;)V(SAXParser.java:345)
at 
javax.xml.parsers.SAXParser.parse(Ljava.io.InputStream;Lorg.xml.sax.helpers.DefaultHandler;)V(SAXParser.java:143)
at 
com.sun.facelets.compiler.SAXCompiler.doCompile(Ljava.net.URL;Ljava.lang.String;)Lcom.sun.facelets.FaceletHandler;(SAXCompiler.java:222)
at 
com.sun.facelets.compiler.Compiler.compile(Ljava.net.URL;Ljava.lang.String;)Lcom.sun.facelets.FaceletHandler;(Compiler.java:105)
at 
com.sun.facelets.impl.DefaultFaceletFactory.createFacelet(Ljava.net.URL;)Lcom.sun.facelets.impl.DefaultFacelet;(DefaultFaceletFactory.java:189)
at 
com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(Ljava.net.URL;)Lcom.sun.facelets.Facelet;(DefaultFaceletFactory.java:138)
at 
com.sun.facelets.impl.DefaultFacelet.include(Lcom.sun.facelets.impl.DefaultFaceletContext;Ljavax.faces.component.UIComponent;Ljava.net.URL;)V(DefaultFacelet.java:293)
at 
com.sun.facelets.impl.DefaultFacelet.include(Lcom.sun.facelets.impl.DefaultFaceletContext;Ljavax.faces.component.UIComponent;Ljava.lang.String;)V(DefaultFacelet.java:273)
at 
com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(Ljavax.faces.component.UIComponent;Ljava.lang.String;)V(DefaultFaceletContext.java:136)
at 
com.sun.facelets.tag.ui.IncludeHandler.apply(Lcom.sun.facelets.FaceletContext;Ljavax.faces.component.UIComponent;)V(IncludeHandler.java:60)
at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(Lcom.sun.facelets.FaceletContext;Ljavax.faces.component.UIComponent;)V(CompositeFaceletHandler.java:47)
at 

Design Type Question

2006-06-28 Thread Gregg Bolinger
This isn't about MyFaces specifically so I apologize but this list is the best JSF resource I know of. ;)I have a page that contains a list of Articles. There are also filter criteria to filter the list of Articles. The article list is a dataTable who's value is a method in the backing bean that returns a list of articles. Simple enough. So when the page first loads, I get all the articles.
The problem I am facing is part of the filter is 3 levels of categories. Category, Sub Category, and a Sub Sub Category. Each of these is a selectOneMenu and the child catagories depends on the parent category. So I have valueChangeListeners registered so that when one drop down changes, the child dropdown gets new values.
The problem with this is that when this happens, my method to get the list of articles is called. But I don't want this to happen until I click the Search button. So I am just looking for solutions to solve this.
Thanks.


t:radio include the row number in name attribute of input when using t:dataTable

2006-06-28 Thread Paul Spencer
t:radio include the row number in name attribute of input when using 
t:dataTable to display radio buttons.  This is a problem because the 
browser does not see all of the buttons in the same group.


***
* JSF Example
***

h:panelGrid id=panelGrid columns=6
  h:outputLabel value=Level of Data to Summarize
 for=infoLevelButtons /
  t:dataTable id=dataTable newspaperColumns=2
   var=row value=#{infoLevelButtons.dataModel}
   rowIndexVar=index
t:selectOneRadio id=infoLevelButtons layout=spread
  f:selectItems value=#{infoLevelButtons.selectList} /
/t:selectOneRadio
h:column
  t:radio for=infoLevelButtons index=#{index} /
/h:column
  /t:dataTable

***
* Resulting HTML
***
labelinput type=radio name=form:dataTable:0:infoLevelButtons 
value=Detail /#160;Detail/label


***
* Expected HTML
***
labelinput type=radio name=form:dataTable:infoLevelButtons 
value=Detail /#160;Detail/label



Do I need to report this as an issue in JIRA?

Paul Spencer



Re: [OT] JSF and JVM performance

2006-06-28 Thread Matthias Wessendorf

Gerald did some performance test's for Martin's JavaOne BOF. Maybe
they bring that content to the wiki page ?


-Matthias


Re: Design Type Question

2006-06-28 Thread Cosma Colanicchia

Your backing-bean method is request or session scoped?

1) With request-scoped bean, I would set the value binding of your
filter components to a different bean property than the one that is
used by your getArticles method, and create a method applyFilters
that simply copies the temporary filter properties in the actual
ones.. this way your filters will not be applied until your apply
filters button is pressed.

2) With session-scoped bean, I would simply not get all the articles
on each getArticles call.. this method should simply return a member
variable, and a different method applyFilter should load its value,
looking at the current filter settings.


Hope this helps
Cosma


2006/6/28, Gregg Bolinger [EMAIL PROTECTED]:

This isn't about MyFaces specifically so I apologize but this list is the
best JSF resource I know of. ;)

I have a page that contains a list of Articles.  There are also filter
criteria to filter the list of Articles.  The article list is a dataTable
who's value is a method in the backing bean that returns a list of articles.
 Simple enough.  So when the page first loads, I get all the articles.

The problem I am facing is part of the filter is 3 levels of categories.
Category, Sub Category, and a Sub Sub Category.  Each of these is a
selectOneMenu and the child catagories depends on the parent category.  So I
have valueChangeListeners registered so that when one drop down changes, the
child dropdown gets new values.

The problem with this is that when this happens, my method to get the list
of articles is called.  But I don't want this to happen until I click the
Search button.  So I am just looking for solutions to solve this.

Thanks.



Re: shared - impl or tomahawk [was: Re: Component like panelGrid with ul

2006-06-28 Thread Matthias Wessendorf

Hey dude,

check this link

http://wiki.apache.org/myfaces/Shared_-_impl_or_tomahawk

On 6/26/06, John Ruffin [EMAIL PROTECTED] wrote:


I want to create a horizontal list and have each surrounded by a commandLink.
I thought I could do something like this:

---  Piece from java class
public SimpleNavItems(String displayValue, String goToText){
this.displayValue = displayValue;
this.goToText = goToText;
}

--- piece from backing bean - SearchForm
public List getNavItems() {
ArrayList l = new ArrayList();
l.add(new SimpleNavItems(Home, toHomePage));
l.add(new SimpleNavItems(Create new customer, 
toCreateNewCustomer));
l.add(new SimpleNavItems(Find existing customer, 
toFindCustomer));
return l;
}

--- piece from .faces
t:dataList
value=#{searchForm.navItems}
var=navItem
id=horzNav layout=grid

t:commandLink
immediate=true
action=#{navItem.goToText}
h:outputText value=#{navItem.displayValue}/
t:commandLink

/t:dataList
/t:div

The list shows like I want but the commandLink doesn't work inside a table.
Is Matt's solution a workaround for this?  Tomahawk1.1.14.
--
View this message in context: 
http://www.nabble.com/Component-like-panelGrid-with-ul-and-li-t1668669.html#a5052296
Sent from the MyFaces - Users forum at Nabble.com.





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


RE: Design Type Question

2006-06-28 Thread Julian Ray



Some suggestions

[1] Use client-side population of teh drop 
downs
[2] Use 2 backing beans, 1 for the drop down and 1 for the 
articles. Lazily load all getters. Use t:saveState to store the filter 
bean.
[3] Use Ajax


From: Gregg Bolinger 
[mailto:[EMAIL PROTECTED] Sent: Wednesday, June 28, 2006 
10:20 AMTo: MyFaces DiscussionSubject: Design Type 
Question
This isn't about MyFaces specifically so I apologize but this list is 
the best JSF resource I know of. ;)I have a page that contains a list of 
Articles. There are also filter criteria to filter the list of 
Articles. The article list is a dataTable who's value is a method in the 
backing bean that returns a list of articles. Simple enough. So when 
the page first loads, I get all the articles. The problem I am facing is 
part of the filter is 3 levels of categories. Category, Sub Category, and 
a Sub Sub Category. Each of these is a selectOneMenu and the child 
catagories depends on the parent category. So I have valueChangeListeners 
registered so that when one drop down changes, the child dropdown gets new 
values. The problem with this is that when this happens, my method to 
get the list of articles is called. But I don't want this to happen until 
I click the Search button. So I am just looking for solutions to solve 
this. Thanks.


Re: Tomahawk dataTable Problem - replacing standard dataTable with tomahawks one shows nothing

2006-06-28 Thread Matthias Wessendorf

Thats the bug - so thx for help ;) i found it myself.


Good to hear ;-)



kind regards

Torsten


-- 0 and 1. Now what could be so hard about that? --





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


Re: configuring State Manager

2006-06-28 Thread Matthias Wessendorf

Can you give the 1.1.4-snapshot a try?
1.1.3 has another damn bug ;-)

On 6/28/06, xslove [EMAIL PROTECTED] wrote:


Hi, I downloaded new Myfaces 1.1.3, run my web application and exception is
thrown

java.lang.NullPointerException: Argument Error: One or more parameters are
null. StateManager null

app work well with Myfaces 1.1.1

Radim
--
View this message in context: 
http://www.nabble.com/configuring-State-Manager-tf1860546.html#a5081518
Sent from the MyFaces - Users forum at Nabble.com.





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


Authorization aware component?

2006-06-28 Thread Martin Grotzke
hello,

i want to have/create an authorization aware (menu/button) component.

one approach would be to have s.th. like an auth component that would
act as a pseudo-container for components that are added to the auth's
parent component if the current user has the appropriate permissions
(more generally - on a certain condition).

another option would be to use rendered=#{...authorized} on each
component, but in terms of performance that's probably not the best
solution.

do you have any recommendations on how to get authorization-aware
(or conditional) components?

thanx in advance,
cheers,
martin




signature.asc
Description: This is a digitally signed message part


valueChangeListener method called only once

2006-06-28 Thread Gregg Bolinger
On my form I have 3 selectOneMenu's.categorysubCategorysubSubCategoryWhen category is changed, I call changeCategory(ValueChangeEvent event). When subCategory is changed I call changeSubCategory(ValueChangeEvent event).
I have noticed that when changeCategory is called, changeSubCategory is also called. I know why this happens. That is fine. However, afterwhich, I change the subCategory select and changeSubCategory is not called again. Any suggestions?
t:outputText value=Category / t:selectOneMenu id=catSelect  value=#{ArticleListBean.category} valueChangeListener=#{
ArticleListBean.changeCategory}  f:selectItem itemLabel=ALL itemValue=0 /  f:selectItems value=#{ArticleListBean.catList
} / /t:selectOneMenu t:outputText value=Sub-category / t:selectOneMenu id=subCatSelect  value=#{
ArticleListBean.subCategory} valueChangeListener=#{ArticleListBean.changeSubCategory}  f:selectItem itemLabel=ALL itemValue=0 /  f:selectItems value=#{
ArticleListBean.subCatList} / /t:selectOneMenupublic void changeCategory(ValueChangeEvent event) { setCategory((Integer)event.getNewValue());  }
 public void changeSubCategory(ValueChangeEvent event) { setSubCategory((Integer)event.getNewValue());   System.out.println(###  + getSubCategory());
 }


Re: Design Type Question

2006-06-28 Thread Gregg Bolinger
Julian,Thanks for the suggestions. How would I go about populating _javascript_ values with data from the backing bean if I were to go with [1]? Any links with this info?Thanks.
On 6/28/06, Julian Ray [EMAIL PROTECTED] wrote:





Some suggestions

[1] Use client-side population of teh drop 
downs
[2] Use 2 backing beans, 1 for the drop down and 1 for the 
articles. Lazily load all getters. Use t:saveState to store the filter 
bean.
[3] Use Ajax


From: Gregg Bolinger 
[mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 28, 2006 
10:20 AMTo: MyFaces DiscussionSubject: Design Type 
Question
This isn't about MyFaces specifically so I apologize but this list is 
the best JSF resource I know of. ;)I have a page that contains a list of 
Articles. There are also filter criteria to filter the list of 
Articles. The article list is a dataTable who's value is a method in the 
backing bean that returns a list of articles. Simple enough. So when 
the page first loads, I get all the articles. The problem I am facing is 
part of the filter is 3 levels of categories. Category, Sub Category, and 
a Sub Sub Category. Each of these is a selectOneMenu and the child 
catagories depends on the parent category. So I have valueChangeListeners 
registered so that when one drop down changes, the child dropdown gets new 
values. The problem with this is that when this happens, my method to 
get the list of articles is called. But I don't want this to happen until 
I click the Search button. So I am just looking for solutions to solve 
this. Thanks.




Re: valueChangeListener method called only once

2006-06-28 Thread Rogerio Pereira
I solved this after put the bean in session scope, maybe u can solve this by using t:saveState to save your bean entirely.2006/6/28, Gregg Bolinger 
[EMAIL PROTECTED]:On my form I have 3 selectOneMenu's.category
subCategorysubSubCategoryWhen category is changed, I call changeCategory(ValueChangeEvent event). When subCategory is changed I call changeSubCategory(ValueChangeEvent event).
I have noticed that when changeCategory is called, changeSubCategory is also called. I know why this happens. That is fine. However, afterwhich, I change the subCategory select and changeSubCategory is not called again. Any suggestions?
t:outputText value=Category / t:selectOneMenu id=catSelect  value=#{ArticleListBean.category} valueChangeListener=#{
ArticleListBean.changeCategory}  f:selectItem itemLabel=ALL itemValue=0 /  f:selectItems value=#{ArticleListBean.catList

} / /t:selectOneMenu t:outputText value=Sub-category / t:selectOneMenu id=subCatSelect  value=#{
ArticleListBean.subCategory} valueChangeListener=#{ArticleListBean.changeSubCategory}  f:selectItem itemLabel=ALL itemValue=0 /  f:selectItems value=#{
ArticleListBean.subCatList} / /t:selectOneMenupublic void changeCategory(ValueChangeEvent event) { setCategory((Integer)event.getNewValue()); 
 }
 public void changeSubCategory(ValueChangeEvent event) { setSubCategory((Integer)event.getNewValue());   System.out.println(###  + getSubCategory());
 }

-- Yours truly (Atenciosamente),Rogério


Re: valueChangeListener method called only once

2006-06-28 Thread Gregg Bolinger
I'll try it. Thanks.On 6/28/06, Rogerio Pereira [EMAIL PROTECTED] wrote:
I solved this after put the bean in session scope, maybe u can solve this by using t:saveState to save your bean entirely.2006/6/28, Gregg Bolinger 

[EMAIL PROTECTED]:
On my form I have 3 selectOneMenu's.category
subCategorysubSubCategoryWhen category is changed, I call changeCategory(ValueChangeEvent event). When subCategory is changed I call changeSubCategory(ValueChangeEvent event).
I have noticed that when changeCategory is called, changeSubCategory is also called. I know why this happens. That is fine. However, afterwhich, I change the subCategory select and changeSubCategory is not called again. Any suggestions?
t:outputText value=Category / t:selectOneMenu id=catSelect  value=#{ArticleListBean.category} valueChangeListener=#{
ArticleListBean.changeCategory}  f:selectItem itemLabel=ALL itemValue=0 /  f:selectItems value=#{ArticleListBean.catList


} / /t:selectOneMenu t:outputText value=Sub-category / t:selectOneMenu id=subCatSelect  value=#{
ArticleListBean.subCategory} valueChangeListener=#{ArticleListBean.changeSubCategory}  f:selectItem itemLabel=ALL itemValue=0 /  f:selectItems value=#{
ArticleListBean.subCatList} / /t:selectOneMenupublic void changeCategory(ValueChangeEvent event) { setCategory((Integer)event.getNewValue()); 

 }
 public void changeSubCategory(ValueChangeEvent event) { setSubCategory((Integer)event.getNewValue());   System.out.println(###  + getSubCategory());
 }

-- Yours truly (Atenciosamente),Rogério




Re: valueChangeListener method called only once

2006-06-28 Thread Gregg Bolinger
Well, when I do the saveState I keep getting NotSerializableException's on various faces components. Any other solutions?Thanks.On 6/28/06, Gregg Bolinger
 [EMAIL PROTECTED] wrote:
I'll try it. Thanks.On 6/28/06, Rogerio Pereira 
[EMAIL PROTECTED] wrote:
I solved this after put the bean in session scope, maybe u can solve this by using t:saveState to save your bean entirely.2006/6/28, Gregg Bolinger 


[EMAIL PROTECTED]:
On my form I have 3 selectOneMenu's.category
subCategorysubSubCategoryWhen category is changed, I call changeCategory(ValueChangeEvent event). When subCategory is changed I call changeSubCategory(ValueChangeEvent event).
I have noticed that when changeCategory is called, changeSubCategory is also called. I know why this happens. That is fine. However, afterwhich, I change the subCategory select and changeSubCategory is not called again. Any suggestions?
t:outputText value=Category / t:selectOneMenu id=catSelect  value=#{ArticleListBean.category} valueChangeListener=#{
ArticleListBean.changeCategory}  f:selectItem itemLabel=ALL itemValue=0 /  f:selectItems value=#{ArticleListBean.catList



} / /t:selectOneMenu t:outputText value=Sub-category / t:selectOneMenu id=subCatSelect  value=#{
ArticleListBean.subCategory} valueChangeListener=#{ArticleListBean.changeSubCategory}  f:selectItem itemLabel=ALL itemValue=0 /  f:selectItems value=#{
ArticleListBean.subCatList} / /t:selectOneMenupublic void changeCategory(ValueChangeEvent event) { setCategory((Integer)event.getNewValue()); 


 }
 public void changeSubCategory(ValueChangeEvent event) { setSubCategory((Integer)event.getNewValue());   System.out.println(###  + getSubCategory());
 }

-- Yours truly (Atenciosamente),Rogério






Re: valueChangeListener method called only once

2006-06-28 Thread Gregg Bolinger
Ok, I just did a saveState on both category and subCategory and it works now. The wonderful world of JSF. :)Thanks.GreggOn 6/28/06, Gregg Bolinger
 [EMAIL PROTECTED] wrote:
Well, when I do the saveState I keep getting NotSerializableException's on various faces components. Any other solutions?Thanks.
On 6/28/06, Gregg Bolinger
 [EMAIL PROTECTED] wrote:

I'll try it. Thanks.On 6/28/06, Rogerio Pereira 

[EMAIL PROTECTED] wrote:
I solved this after put the bean in session scope, maybe u can solve this by using t:saveState to save your bean entirely.2006/6/28, Gregg Bolinger 



[EMAIL PROTECTED]:
On my form I have 3 selectOneMenu's.category
subCategorysubSubCategoryWhen category is changed, I call changeCategory(ValueChangeEvent event). When subCategory is changed I call changeSubCategory(ValueChangeEvent event).
I have noticed that when changeCategory is called, changeSubCategory is also called. I know why this happens. That is fine. However, afterwhich, I change the subCategory select and changeSubCategory is not called again. Any suggestions?
t:outputText value=Category / t:selectOneMenu id=catSelect  value=#{ArticleListBean.category} valueChangeListener=#{
ArticleListBean.changeCategory}  f:selectItem itemLabel=ALL itemValue=0 /  f:selectItems value=#{ArticleListBean.catList




} / /t:selectOneMenu t:outputText value=Sub-category / t:selectOneMenu id=subCatSelect  value=#{
ArticleListBean.subCategory} valueChangeListener=#{ArticleListBean.changeSubCategory}  f:selectItem itemLabel=ALL itemValue=0 /  f:selectItems value=#{
ArticleListBean.subCatList} / /t:selectOneMenupublic void changeCategory(ValueChangeEvent event) { setCategory((Integer)event.getNewValue()); 



 }
 public void changeSubCategory(ValueChangeEvent event) { setSubCategory((Integer)event.getNewValue());   System.out.println(###  + getSubCategory());
 }

-- Yours truly (Atenciosamente),Rogério








Re: Authorization aware component?

2006-06-28 Thread Gilles DEMARTY

Hi martin,


i want to have/create an authorization aware (menu/button) component.

Every Tomahawk components are user-role aware
http://wiki.apache.org/myfaces/User-role_Awareness

hope this answers your request


RE: [OT] JSF and JVM performance

2006-06-28 Thread Jesse Alexander \(KSFD 121\)
Has someone already compared JSF with JSP and with facelets?

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

regards
Alexander 

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


t:inputCalendar using MyFaces 1.1.3 and Tomahawk 1.1.3

2006-06-28 Thread Mike Duffy
Does anyone know where the styles for t:inputCalendar come from when 
renderAsPopup=true?

I and others (Google search) have had no luck in changing the styles for the 
popup calendar.

Also, since I've updated to MyFaces 1.1.3 and Tomahawk 1.1.3 I have a problem 
where the button
that should be right next to the calendar text box renders several lines below 
the text field and
when I click the image button the calendar appears without styles in the lines 
between the
calendar text box and button.

It is as if when styles cannot be found the popup calendar renders as an 
unpositioned hidden div.

I have reconfigured the calendar.jsp in the simple.war with MyFaces 1.1.3 and 
Tomahawk 1.1.3; I
see the exact same behavior (so it is not my JSP and not my web.xml).

Has anyone got the t:inputCalendar  to work correctly using MyFaces 1.1.3 and 
Tomahawk 1.1.3?

Thx.

Mike


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


Re: [OT] JSF and JVM performance

2006-06-28 Thread Dennis Byrne
Hey Jesse,

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

Dennis Byrne

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

Has someone already compared JSF with JSP and with facelets?

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

regards
Alexander 

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





Re: [OT] JSF and JVM performance

2006-06-28 Thread Matthias Wessendorf

Yeah right.

Dennis can you add some content from the BOF to the wiki ?

Thanks,
Matt

On 6/28/06, Dennis Byrne [EMAIL PROTECTED] wrote:

Hey Jesse,

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

Dennis Byrne

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

Has someone already compared JSF with JSP and with facelets?

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

regards
Alexander

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
 Behalf Of Matthias Wessendorf
 Sent: Wednesday, June 28, 2006 4:40 PM
 To: MyFaces Discussion
 Cc: Gerald Müllan; Martin Marinschek
 Subject: Re: [OT] JSF and JVM performance

 Gerald did some performance test's for Martin's JavaOne BOF. Maybe
 they bring that content to the wiki page ?


 -Matthias








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


RE: Design Type Question

2006-06-28 Thread Julian Ray



Here is an example, I have not tested it but have used 
similar approaches

http://www._javascript_kit.com/script/script2/multiplecombo.shtml




From: Gregg Bolinger 
[mailto:[EMAIL PROTECTED] Sent: Wednesday, June 28, 2006 
11:45 AMTo: MyFaces DiscussionSubject: Re: Design Type 
Question
Julian,Thanks for the suggestions. How would I go about 
populating _javascript_ values with data from the backing bean if I were to go 
with [1]? Any links with this info?Thanks.
On 6/28/06, Julian 
Ray [EMAIL PROTECTED] 
wrote:

  
  
  Some 
  suggestions
  
  [1] Use 
  client-side population of teh drop downs
  [2] Use 2 
  backing beans, 1 for the drop down and 1 for the articles. Lazily load all 
  getters. Use t:saveState to store the filter bean.
  [3] Use 
  Ajax
  
  
  From: Gregg Bolinger [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 
  28, 2006 10:20 AMTo: MyFaces DiscussionSubject: Design 
  Type Question
  
  This isn't about MyFaces specifically so I apologize but this list 
  is the best JSF resource I know of. ;)I have a page that contains a 
  list of Articles. There are also filter criteria to filter the list of 
  Articles. The article list is a dataTable who's value is a method in the 
  backing bean that returns a list of articles. Simple enough. So 
  when the page first loads, I get all the articles. The problem I am 
  facing is part of the filter is 3 levels of categories. Category, Sub 
  Category, and a Sub Sub Category. Each of these is a selectOneMenu and 
  the child catagories depends on the parent category. So I have 
  valueChangeListeners registered so that when one drop down changes, the child 
  dropdown gets new values. The problem with this is that when this 
  happens, my method to get the list of articles is called. But I don't 
  want this to happen until I click the Search button. So I am just 
  looking for solutions to solve this. Thanks.
  


Re: t:inputCalendar using MyFaces 1.1.3 and Tomahawk 1.1.3

2006-06-28 Thread Ricardo Memória

Hi Mike,

I was having problems with the t:inputCalendar and the renderAsPopup=true 
after upgrading from tomahawk 1.1.1 to 1.1.3 version, but now it's working 
fine after upgrading to JSF 1.2 and Facelets 1.1.11 (I'm not using myFaces).


So, to get things working properly I'm using:

* Tomahawk 1.1.3
* JSF 1.2 (stable build)
* Facelets 1.1.11

bye,
Ricardo

- Original Message - 
From: Mike Duffy [EMAIL PROTECTED]

To: users@myfaces.apache.org
Sent: Wednesday, June 28, 2006 1:09 PM
Subject: t:inputCalendar using MyFaces 1.1.3 and Tomahawk 1.1.3


Does anyone know where the styles for t:inputCalendar come from when 
renderAsPopup=true?


I and others (Google search) have had no luck in changing the styles for 
the popup calendar.


Also, since I've updated to MyFaces 1.1.3 and Tomahawk 1.1.3 I have a 
problem where the button
that should be right next to the calendar text box renders several lines 
below the text field and
when I click the image button the calendar appears without styles in the 
lines between the

calendar text box and button.

It is as if when styles cannot be found the popup calendar renders as an 
unpositioned hidden div.


I have reconfigured the calendar.jsp in the simple.war with MyFaces 1.1.3 
and Tomahawk 1.1.3; I

see the exact same behavior (so it is not my JSP and not my web.xml).

Has anyone got the t:inputCalendar  to work correctly using MyFaces 1.1.3 
and Tomahawk 1.1.3?


Thx.

Mike


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


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.5/377 - Release Date: 27/06/2006






Re: Design Type Question

2006-06-28 Thread Gregg Bolinger
Thanks Julian. *Unfortunately* I'm well adapt at _javascript_ so I already know how to do that. What I don't know is how to populate _javascript_ arrays with data from my backing bean.Aside from a custom component, I'd assume I need to do something like that.
Thanks.On 6/28/06, Julian Ray [EMAIL PROTECTED] wrote:





Here is an example, I have not tested it but have used 
similar approaches


http://www._javascript_kit.com/script/script2/multiplecombo.shtml




From: Gregg Bolinger 
[mailto:[EMAIL PROTECTED]] Sent:
 Wednesday, June 28, 2006 
11:45 AMTo: MyFaces DiscussionSubject: Re: Design Type 
Question
Julian,Thanks for the suggestions. How would I go about 
populating _javascript_ values with data from the backing bean if I were to go 
with [1]? Any links with this info?Thanks.
On 6/28/06, Julian 
Ray [EMAIL PROTECTED] 
wrote:

  
  
  Some 
  suggestions
  
  [1] Use 
  client-side population of teh drop downs
  [2] Use 2 
  backing beans, 1 for the drop down and 1 for the articles. Lazily load all 
  getters. Use t:saveState to store the filter bean.
  [3] Use 
  Ajax
  
  
  From: Gregg Bolinger [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, June 
  28, 2006 10:20 AMTo: MyFaces DiscussionSubject: Design 
  Type Question
  
  This isn't about MyFaces specifically so I apologize but this list 
  is the best JSF resource I know of. ;)I have a page that contains a 
  list of Articles. There are also filter criteria to filter the list of 
  Articles. The article list is a dataTable who's value is a method in the 
  backing bean that returns a list of articles. Simple enough. So 
  when the page first loads, I get all the articles. The problem I am 
  facing is part of the filter is 3 levels of categories. Category, Sub 
  Category, and a Sub Sub Category. Each of these is a selectOneMenu and 
  the child catagories depends on the parent category. So I have 
  valueChangeListeners registered so that when one drop down changes, the child 
  dropdown gets new values. The problem with this is that when this 
  happens, my method to get the list of articles is called. But I don't 
  want this to happen until I click the Search button. So I am just 
  looking for solutions to solve this. Thanks.
  




Re: t:inputCalendar using MyFaces 1.1.3 and Tomahawk 1.1.3

2006-06-28 Thread Gregg Bolinger
No offense Ricardo, but is that really helpful? It sounds more like a push for Facelets rather than a solution to Mike's problem.Mike, I am still running Tomahawk 1.1.2 and MyFaces 1.1.3. I'll try upgrading and see if I have similar issues.
GreggOn 6/28/06, Ricardo Memória [EMAIL PROTECTED] wrote:
Hi Mike,I was having problems with the t:inputCalendar and the renderAsPopup=trueafter upgrading from tomahawk 1.1.1 to 1.1.3 version, but now it's workingfine after upgrading to JSF 1.2 and Facelets 1.1.11
 (I'm not using myFaces).So, to get things working properly I'm using:* Tomahawk 1.1.3* JSF 1.2 (stable build)* Facelets 1.1.11bye,Ricardo- Original Message -From: Mike Duffy 
[EMAIL PROTECTED]To: users@myfaces.apache.orgSent: Wednesday, June 28, 2006 1:09 PMSubject: t:inputCalendar using MyFaces 
1.1.3 and Tomahawk 1.1.3 Does anyone know where the styles for t:inputCalendar come from when renderAsPopup=true? I and others (Google search) have had no luck in changing the styles for
 the popup calendar. Also, since I've updated to MyFaces 1.1.3 and Tomahawk 1.1.3 I have a problem where the button that should be right next to the calendar text box renders several lines
 below the text field and when I click the image button the calendar appears without styles in the lines between the calendar text box and button. It is as if when styles cannot be found the popup calendar renders as an
 unpositioned hidden div. I have reconfigured the calendar.jsp in the simple.war with MyFaces 1.1.3 and Tomahawk 1.1.3; I see the exact same behavior (so it is not my JSP and not my 
web.xml). Has anyone got the t:inputCalendarto work correctly using MyFaces 1.1.3 and Tomahawk 1.1.3? Thx. Mike __
 Do You Yahoo!? Tired of spam?Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- No virus found in this incoming message.
 Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.5/377 - Release Date: 27/06/2006


Re: Tomahawk 1.1.3 serialization problem

2006-06-28 Thread Bindiya

Hi

I am facing the same problem. DId you find the solution to it?

Thanks,
Bindiya
-- 
View this message in context: 
http://www.nabble.com/Tomahawk-1.1.3-serialization-problem-tf1794356.html#a5089287
Sent from the MyFaces - Users forum at Nabble.com.



RE: Design Type Question

2006-06-28 Thread Julian Ray



Couldn't you use a h:outputText 
value="#{myBackingBean.}} / and either (a) write out the whole 
_javascript_ or (b) just write out the array part?




From: Gregg Bolinger 
[mailto:[EMAIL PROTECTED] Sent: Wednesday, June 28, 2006 
1:38 PMTo: MyFaces DiscussionSubject: Re: Design Type 
Question
Thanks Julian. *Unfortunately* I'm well adapt at _javascript_ so 
I already know how to do that. What I don't know is how to populate 
_javascript_ arrays with data from my backing bean.Aside from a custom 
component, I'd assume I need to do something like that. Thanks.
On 6/28/06, Julian 
Ray [EMAIL PROTECTED] 
wrote:

  
  
  Here is an 
  example, I have not tested it but have used similar 
  approaches
  
  http://www._javascript_kit.com/script/script2/multiplecombo.shtml
  
  
  
  
  
  From: Gregg Bolinger 
  [mailto:[EMAIL PROTECTED]] 
  Sent: Wednesday, June 28, 2006 11:45 
  AMTo: MyFaces DiscussionSubject: Re: Design Type 
  Question
  
  Julian,Thanks for the suggestions. How would I go 
  about populating _javascript_ values with data from the backing bean if I were 
  to go with [1]? Any links with this info?Thanks.
  On 6/28/06, Julian 
  Ray [EMAIL PROTECTED] 
  wrote: 
  


Some 
suggestions

[1] Use 
client-side population of teh drop downs
[2] Use 
2 backing beans, 1 for the drop down and 1 for the articles. Lazily load all 
getters. Use t:saveState to store the filter bean.
[3] Use 
Ajax


From: Gregg Bolinger [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 
June 28, 2006 10:20 AMTo: MyFaces DiscussionSubject: 
Design Type Question

This isn't about MyFaces specifically so I apologize but this 
list is the best JSF resource I know of. ;)I have a page that 
contains a list of Articles. There are also filter criteria to filter 
the list of Articles. The article list is a dataTable who's value is a 
method in the backing bean that returns a list of articles. Simple 
enough. So when the page first loads, I get all the articles. 
The problem I am facing is part of the filter is 3 levels of 
categories. Category, Sub Category, and a Sub Sub Category. Each 
of these is a selectOneMenu and the child catagories depends on the parent 
category. So I have valueChangeListeners registered so that when one 
drop down changes, the child dropdown gets new values. The problem 
with this is that when this happens, my method to get the list of articles 
is called. But I don't want this to happen until I click the Search 
button. So I am just looking for solutions to solve this. 
Thanks.

  


Re: t:inputCalendar using MyFaces 1.1.3 and Tomahawk 1.1.3

2006-06-28 Thread Bruno Aranda

With tomahawk 1.1.3, changes are necessary if coming from an older
version. It is probable that you have to update the extensionFilter
mapping in the URL. Check this two wiki documents [1] that may prove
helpful...

Cheers,

Bruno

[1]
http://wiki.apache.org/myfaces/Upgrading_to_Tomahawk_1%2e1%2e3
http://wiki.apache.org/myfaces/More_tips_on_Upgrading_to_Tomahawk_1%2e1%2e3

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

Does anyone know where the styles for t:inputCalendar come from when 
renderAsPopup=true?

I and others (Google search) have had no luck in changing the styles for the 
popup calendar.

Also, since I've updated to MyFaces 1.1.3 and Tomahawk 1.1.3 I have a problem 
where the button
that should be right next to the calendar text box renders several lines below 
the text field and
when I click the image button the calendar appears without styles in the lines 
between the
calendar text box and button.

It is as if when styles cannot be found the popup calendar renders as an 
unpositioned hidden div.

I have reconfigured the calendar.jsp in the simple.war with MyFaces 1.1.3 and 
Tomahawk 1.1.3; I
see the exact same behavior (so it is not my JSP and not my web.xml).

Has anyone got the t:inputCalendar  to work correctly using MyFaces 1.1.3 and 
Tomahawk 1.1.3?

Thx.

Mike


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



Re: ui:include src=... /

2006-06-28 Thread Dave Brondsema
You can also use a facelets ResourceResolver to resolve a viewId from
the src=/foo/bar to a particular URL.  Read some disussion of it at
https://facelets.dev.java.net/servlets/BrowseList?list=usersby=threadfrom=451639

P.S.  facelet discussions would be better on the facelets mailing list

Chen, Wei wrote:
 Hi all,
 
 is it possible to load a file outside the war-package in ui:include /? 
 Exactly to say: I have a file mytest.txt under c:\temp. Can I do follows:
 ...
   ui:include src=c:\\temp\\mytest.txt /
 ...
 
 If not, is there any other way?
 
 Regards
 
 
 
 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Matthias 
 Wessendorf
 Gesendet: Dienstag, 27. Juni 2006 13:39
 An: MyFaces Discussion
 Betreff: Re: Any myFaces presentations at ApacheCon US this year?
 
 Hey dude,
 
 yes, I am :)
 
 the umbrella is asf, web, java :)
 
 Cheers,
 Matthias
 
 On 6/26/06, David Chandler [EMAIL PROTECTED] wrote:
 Hello,

 Just wondering if there is any interest in myFaces at ApacheCon US in Oct.
 The Call for Papers
 (http://www.us.apachecon.com/html/cfp-form.html) doesn't seem to have 
 a topic for it unless it's under the ASF umbrella?

 I've done some work on Internet banking software to secure myFaces 
 against the oWASP Top Ten attacks (especially forced browsing 
 prevention and paramter tampering / information hiding in menu 
 options). Is anyone interested in meeting to discuss JSF security at 
 ApacheConUS?

 

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


-- 
Dave Brondsema
Software Developer
Cornerstone University



signature.asc
Description: OpenPGP digital signature


Re: Design Type Question

2006-06-28 Thread Gregg Bolinger
Doh! Didn't even think about that. Thanks.On 6/28/06, Julian Ray [EMAIL PROTECTED] wrote:





Couldn't you use a h:outputText 
value=#{myBackingBean.}} / and either (a) write out the whole 
_javascript_ or (b) just write out the array part?




From: Gregg Bolinger 
[mailto:[EMAIL PROTECTED]] Sent:
 Wednesday, June 28, 2006 
1:38 PMTo: MyFaces DiscussionSubject: Re: Design Type 
Question
Thanks Julian. *Unfortunately* I'm well adapt at _javascript_ so 
I already know how to do that. What I don't know is how to populate 
_javascript_ arrays with data from my backing bean.Aside from a custom 
component, I'd assume I need to do something like that. Thanks.
On 6/28/06, Julian 
Ray [EMAIL PROTECTED] 
wrote:

  
  
  Here is an 
  example, I have not tested it but have used similar 
  approaches
  
  
http://www._javascript_kit.com/script/script2/multiplecombo.shtml
  
  
  
  
  
  From: Gregg Bolinger 
  [mailto:[EMAIL PROTECTED]] 
  Sent: Wednesday, June 28, 2006 11:45 
  AMTo: MyFaces DiscussionSubject: Re: Design Type 
  Question
  
  Julian,Thanks for the suggestions. How would I go 
  about populating _javascript_ values with data from the backing bean if I were 
  to go with [1]? Any links with this info?Thanks.
  On 6/28/06, Julian 
  Ray [EMAIL PROTECTED] 
  wrote: 
  


Some 
suggestions

[1] Use 
client-side population of teh drop downs
[2] Use 
2 backing beans, 1 for the drop down and 1 for the articles. Lazily load all 
getters. Use t:saveState to store the filter bean.
[3] Use 
Ajax


From: Gregg Bolinger [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, 
June 28, 2006 10:20 AMTo: MyFaces DiscussionSubject: 
Design Type Question

This isn't about MyFaces specifically so I apologize but this 
list is the best JSF resource I know of. ;)I have a page that 
contains a list of Articles. There are also filter criteria to filter 
the list of Articles. The article list is a dataTable who's value is a 
method in the backing bean that returns a list of articles. Simple 
enough. So when the page first loads, I get all the articles. 
The problem I am facing is part of the filter is 3 levels of 
categories. Category, Sub Category, and a Sub Sub Category. Each 
of these is a selectOneMenu and the child catagories depends on the parent 
category. So I have valueChangeListeners registered so that when one 
drop down changes, the child dropdown gets new values. The problem 
with this is that when this happens, my method to get the list of articles 
is called. But I don't want this to happen until I click the Search 
button. So I am just looking for solutions to solve this. 
Thanks.

  




NoClassDefFoundError: org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper on server startup.

2006-06-28 Thread Sloan, Noah M
I'm trying to upgrade from MyFaces and Tomahawk 1.1.1 to 1.1.3. I only replaced 
the myfaces-api, myfaces-impl and tomahawk jars.  I also changed the extensions 
filter class to org.apache.myfaces.webapp.filter.ExtensionsFilter.

When Tomcat starts up, I get the following error numerous times:
java.lang.NoClassDefFoundError: 
org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper
at 
org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:279)
at 
org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:265)
at 
org.apache.myfaces.config.FacesConfigurator.configureLifecycle(FacesConfigurator.java:652)
at 
org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:144)
at 
org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:66)
at 
org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:49)
at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3727)
...

Am I missing a jar?  Any idea where those classes are supposed to come from?


RE: Design Type Question

2006-06-28 Thread Julian Ray



Make sure to use forceId on the select items so the JS can 
find them otherwise you will have to prefix the component ids with "formname:" 




From: Gregg Bolinger 
[mailto:[EMAIL PROTECTED] Sent: Wednesday, June 28, 2006 
2:31 PMTo: MyFaces DiscussionSubject: Re: Design Type 
Question
Doh! Didn't even think about that. Thanks.
On 6/28/06, Julian 
Ray [EMAIL PROTECTED] 
wrote: 

  
  
  Couldn't 
  you use a h:outputText value="#{myBackingBean.}} / and 
  either (a) write out the whole _javascript_ or (b) just write out the array 
  part?
  
  
  
  
  
  From: Gregg Bolinger 
  [mailto:[EMAIL PROTECTED]] 
  Sent: Wednesday, June 28, 2006 1:38 
  PM
  To: MyFaces DiscussionSubject: Re: Design Type 
  Question
  
  
  Thanks Julian. *Unfortunately* I'm well adapt at _javascript_ 
  so I already know how to do that. What I don't know is how to populate 
  _javascript_ arrays with data from my backing bean.Aside from a custom 
  component, I'd assume I need to do something like that. 
Thanks.
  On 6/28/06, Julian 
  Ray [EMAIL PROTECTED] 
  wrote: 
  


Here is 
an example, I have not tested it but have used similar 
approaches

http://www._javascript_kit.com/script/script2/multiplecombo.shtml





From: Gregg Bolinger [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, June 28, 2006 11:45 
AMTo: MyFaces DiscussionSubject: Re: Design Type 
Question

Julian,Thanks for the suggestions. How would I go 
about populating _javascript_ values with data from the backing bean if I were 
to go with [1]? Any links with this info?Thanks.
On 6/28/06, Julian 
Ray [EMAIL PROTECTED] wrote: 

  
  
  Some 
  suggestions
  
  [1] 
  Use client-side population of teh drop downs
  [2] 
  Use 2 backing beans, 1 for the drop down and 1 for the articles. Lazily 
  load all getters. Use t:saveState to store the filter 
  bean.
  [3] 
  Use Ajax
  
  
  From: Gregg Bolinger [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 
  June 28, 2006 10:20 AMTo: MyFaces DiscussionSubject: 
  Design Type Question
  
  This isn't about MyFaces specifically so I apologize but this 
  list is the best JSF resource I know of. ;)I have a page that 
  contains a list of Articles. There are also filter criteria to 
  filter the list of Articles. The article list is a dataTable who's 
  value is a method in the backing bean that returns a list of 
  articles. Simple enough. So when the page first loads, I get 
  all the articles. The problem I am facing is part of the filter is 
  3 levels of categories. Category, Sub Category, and a Sub Sub 
  Category. Each of these is a selectOneMenu and the child catagories 
  depends on the parent category. So I have valueChangeListeners 
  registered so that when one drop down changes, the child dropdown gets new 
  values. The problem with this is that when this happens, my method 
  to get the list of articles is called. But I don't want this to 
  happen until I click the Search button. So I am just looking for 
  solutions to solve this. Thanks.
  

  


Re: Design Type Question

2006-06-28 Thread Gregg Bolinger
Alright, maybe a stupid question...For testing I have a property in my backing bean called _javascript_ with getters and setters. I have initialized _javascript_ with the following:private String _javascript_ = script type=\text/_javascript_\function testFunction(){ alert('this is a test'); }/script;
And then did:t:outputText value=#{ArticleListBean._javascript_}/But it's not spitting out the code. Am I doing this wrong?Thanks.On 6/28/06, 
Julian Ray [EMAIL PROTECTED] wrote:





Make sure to use forceId on the select items so the JS can 
find them otherwise you will have to prefix the component ids with formname: 




From: Gregg Bolinger 
[mailto:[EMAIL PROTECTED]] Sent:
 Wednesday, June 28, 2006 
2:31 PMTo: MyFaces DiscussionSubject: Re: Design Type 
Question
Doh! Didn't even think about that. Thanks.
On 6/28/06, Julian 
Ray [EMAIL PROTECTED] 
wrote: 

  
  
  Couldn't 
  you use a h:outputText value=#{myBackingBean.}} / and 
  either (a) write out the whole _javascript_ or (b) just write out the array 
  part?
  
  
  
  
  
  From: Gregg Bolinger 
  [mailto:[EMAIL PROTECTED]] 
  Sent: Wednesday, June 28, 2006 1:38 
  PM
  To: MyFaces DiscussionSubject: Re: Design Type 
  Question
  
  
  Thanks Julian. *Unfortunately* I'm well adapt at _javascript_ 
  so I already know how to do that. What I don't know is how to populate 
  _javascript_ arrays with data from my backing bean.Aside from a custom 
  component, I'd assume I need to do something like that. 
Thanks.
  On 6/28/06, Julian 
  Ray [EMAIL PROTECTED] 
  wrote: 
  


Here is 
an example, I have not tested it but have used similar 
approaches


http://www._javascript_kit.com/script/script2/multiplecombo.shtml





From: Gregg Bolinger [mailto:[EMAIL PROTECTED]
] 
Sent: Wednesday, June 28, 2006 11:45 
AMTo: MyFaces DiscussionSubject: Re: Design Type 
Question

Julian,Thanks for the suggestions. How would I go 
about populating _javascript_ values with data from the backing bean if I were 
to go with [1]? Any links with this info?Thanks.
On 6/28/06, Julian 
Ray [EMAIL PROTECTED] wrote: 

  
  
  Some 
  suggestions
  
  [1] 
  Use client-side population of teh drop downs
  [2] 
  Use 2 backing beans, 1 for the drop down and 1 for the articles. Lazily 
  load all getters. Use t:saveState to store the filter 
  bean.
  [3] 
  Use Ajax
  
  
  From: Gregg Bolinger [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, 
  June 28, 2006 10:20 AMTo: MyFaces DiscussionSubject: 
  Design Type Question
  
  This isn't about MyFaces specifically so I apologize but this 
  list is the best JSF resource I know of. ;)I have a page that 
  contains a list of Articles. There are also filter criteria to 
  filter the list of Articles. The article list is a dataTable who's 
  value is a method in the backing bean that returns a list of 
  articles. Simple enough. So when the page first loads, I get 
  all the articles. The problem I am facing is part of the filter is 
  3 levels of categories. Category, Sub Category, and a Sub Sub 
  Category. Each of these is a selectOneMenu and the child catagories 
  depends on the parent category. So I have valueChangeListeners 
  registered so that when one drop down changes, the child dropdown gets new 
  values. The problem with this is that when this happens, my method 
  to get the list of articles is called. But I don't want this to 
  happen until I click the Search button. So I am just looking for 
  solutions to solve this. Thanks.
  

  




Re: Design Type Question

2006-06-28 Thread Gregg Bolinger
Scratch that. I am getting the value. But all the code is escaped. gt;, lt; etc. So it doesn't register correclty. Trying something elseOn 6/28/06, 
Gregg Bolinger [EMAIL PROTECTED] wrote:
Alright, maybe a stupid question...For testing I have a property in my backing bean called _javascript_ with getters and setters. I have initialized _javascript_ with the following:private String _javascript_ = script type=\text/_javascript_\function testFunction(){ alert('this is a test'); }/script;
And then did:t:outputText value=#{ArticleListBean._javascript_}/But it's not spitting out the code. Am I doing this wrong?
Thanks.On 6/28/06, 
Julian Ray [EMAIL PROTECTED] wrote:






Make sure to use forceId on the select items so the JS can 
find them otherwise you will have to prefix the component ids with formname: 




From: Gregg Bolinger 
[mailto:[EMAIL PROTECTED]] Sent:
 Wednesday, June 28, 2006 
2:31 PMTo: MyFaces DiscussionSubject: Re: Design Type 
Question
Doh! Didn't even think about that. Thanks.
On 6/28/06, Julian 
Ray [EMAIL PROTECTED] 
wrote: 

  
  
  Couldn't 
  you use a h:outputText value=#{myBackingBean.}} / and 
  either (a) write out the whole _javascript_ or (b) just write out the array 
  part?
  
  
  
  
  
  From: Gregg Bolinger 
  [mailto:[EMAIL PROTECTED]] 
  Sent: Wednesday, June 28, 2006 1:38 
  PM
  To: MyFaces DiscussionSubject: Re: Design Type 
  Question
  
  
  Thanks Julian. *Unfortunately* I'm well adapt at _javascript_ 
  so I already know how to do that. What I don't know is how to populate 
  _javascript_ arrays with data from my backing bean.Aside from a custom 
  component, I'd assume I need to do something like that. 
Thanks.
  On 6/28/06, Julian 
  Ray [EMAIL PROTECTED] 
  wrote: 
  


Here is 
an example, I have not tested it but have used similar 
approaches



http://www._javascript_kit.com/script/script2/multiplecombo.shtml





From: Gregg Bolinger [mailto:[EMAIL PROTECTED]
] 
Sent: Wednesday, June 28, 2006 11:45 
AMTo: MyFaces DiscussionSubject: Re: Design Type 
Question

Julian,Thanks for the suggestions. How would I go 
about populating _javascript_ values with data from the backing bean if I were 
to go with [1]? Any links with this info?Thanks.
On 6/28/06, Julian 
Ray [EMAIL PROTECTED] wrote: 

  
  
  Some 
  suggestions
  
  [1] 
  Use client-side population of teh drop downs
  [2] 
  Use 2 backing beans, 1 for the drop down and 1 for the articles. Lazily 
  load all getters. Use t:saveState to store the filter 
  bean.
  [3] 
  Use Ajax
  
  
  From: Gregg Bolinger [mailto:[EMAIL PROTECTED]] 

Sent: Wednesday, 
  June 28, 2006 10:20 AMTo: MyFaces DiscussionSubject: 
  Design Type Question
  
  This isn't about MyFaces specifically so I apologize but this 
  list is the best JSF resource I know of. ;)I have a page that 
  contains a list of Articles. There are also filter criteria to 
  filter the list of Articles. The article list is a dataTable who's 
  value is a method in the backing bean that returns a list of 
  articles. Simple enough. So when the page first loads, I get 
  all the articles. The problem I am facing is part of the filter is 
  3 levels of categories. Category, Sub Category, and a Sub Sub 
  Category. Each of these is a selectOneMenu and the child catagories 
  depends on the parent category. So I have valueChangeListeners 
  registered so that when one drop down changes, the child dropdown gets new 
  values. The problem with this is that when this happens, my method 
  to get the list of articles is called. But I don't want this to 
  happen until I click the Search button. So I am just looking for 
  solutions to solve this. Thanks.
  

  






RE: Design Type Question

2006-06-28 Thread Julian Ray



You need to set escape="false" on the outputText so the 
text does not get escaped.


From: Gregg Bolinger 
[mailto:[EMAIL PROTECTED] Sent: Wednesday, June 28, 2006 
2:58 PMTo: MyFaces DiscussionSubject: Re: Design Type 
Question
Scratch that. I am getting the value. But all the code is 
escaped. gt;, lt; etc. So it doesn't register correclty. 
Trying something else
On 6/28/06, Gregg 
Bolinger [EMAIL PROTECTED] 
wrote:

  Alright, maybe a stupid question...For testing I have a property 
  in my backing bean called _javascript_ with getters and setters. I have 
  initialized _javascript_ with the following:private String _javascript_ = 
  "script type=\"text/_javascript_\"function testFunction(){ alert('this 
  is a test'); }/script"; And then did:t:outputText 
  value="#{ArticleListBean._javascript_}"/But it's not spitting out 
  the code. Am I doing this wrong?
  Thanks.
  On 6/28/06, Julian 
  Ray [EMAIL PROTECTED] 
  wrote:
  


Make 
sure to use forceId on the select items so the JS can find them otherwise 
you will have to prefix the component ids with "formname:" 





From: Gregg Bolinger [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, June 28, 2006 2:31 
PM
To: MyFaces 
DiscussionSubject: Re: Design Type 
Question


Doh! Didn't even think about that. Thanks.
On 6/28/06, Julian 
Ray [EMAIL PROTECTED] wrote: 

  
  
  Couldn't you use a h:outputText 
  value="#{myBackingBean.}} / and either (a) write out the 
  whole _javascript_ or (b) just write out the array part?
  
  
  
  
  
  From: Gregg Bolinger [mailto:[EMAIL PROTECTED]] 
  Sent: Wednesday, June 28, 2006 1:38 
  PM
  To: MyFaces 
  DiscussionSubject: Re: Design Type 
  Question
  
  
  Thanks Julian. *Unfortunately* I'm well adapt at 
  _javascript_ so I already know how to do that. What I don't know is 
  how to populate _javascript_ arrays with data from my backing 
  bean.Aside from a custom component, I'd assume I need to do 
  something like that. Thanks.
  On 6/28/06, Julian 
  Ray [EMAIL PROTECTED] wrote: 
  


Here 
is an example, I have not tested it but have used similar 
approaches

http://www._javascript_kit.com/script/script2/multiplecombo.shtml





From: Gregg Bolinger 
[mailto:[EMAIL PROTECTED] ] 
Sent: Wednesday, June 28, 2006 
11:45 AMTo: MyFaces DiscussionSubject: Re: Design 
Type Question

Julian,Thanks for the suggestions. How would I 
go about populating _javascript_ values with data from the backing bean if 
I were to go with [1]? Any links with this 
info?Thanks.
On 6/28/06, Julian Ray [EMAIL PROTECTED] wrote: 

  
  
  Some suggestions
  
  [1] Use client-side population of teh drop 
  downs
  [2] Use 2 backing beans, 1 for the drop down and 1 for the 
  articles. Lazily load all getters. Use t:saveState to store the filter 
  bean.
  [3] Use Ajax
  
  
  From: Gregg Bolinger [mailto:[EMAIL PROTECTED]] Sent: 
  Wednesday, June 28, 2006 10:20 AMTo: MyFaces 
  DiscussionSubject: Design Type 
  Question
  
  This isn't about MyFaces specifically so I apologize but 
  this list is the best JSF resource I know of. ;)I have a page 
  that contains a list of Articles. There are also filter criteria 
  to filter the list of Articles. The article list is a dataTable 
  who's value is a method in the backing bean that returns a list of 
  articles. Simple enough. So when the page first loads, I 
  get all the articles. The problem I am facing is part of the 
  filter is 3 levels of categories. Category, Sub Category, and a 
  Sub Sub Category. Each of these is a selectOneMenu and the child 
  catagories depends on the parent category. So I have 
  valueChangeListeners registered so that when one drop down changes, 
  the child dropdown gets new values. The problem with this is 
  that when this happens, my method to get the list of articles is 
  called. But I don't want this to happen until I click the Search 
  button. So I am just looking for solutions to solve this. 
  Thanks.
  

  



Re: Design Type Question

2006-06-28 Thread Gregg Bolinger
Alright. Thanks for the info. Getting closer. I have the following being spit out on my page after rendered.var options = document.getElementById('catSelect').options;
 var option = new Option('4', 'Active'); options[options.length] = option;
 var option = new Option('69', 'Appreciate'); options[
options.length] = option; var option = new Option('3', 'Explore'); 
options[options.length] = option; var option = new Option('71', 'Habitat');
 options[options.length] = option; var option = new Option('70', 'Indulge');
 options[options.length] = option; var option = new Option('1', 'Locate');
 options[options.length] = option; var option = new Option('2', 'People');
 options[options.length] = option;And I am getting document.getElementById(catSelect) has no properties error. I also see this on the rendered HTML:
select id=catSelect name=catSelect size=1	option value=0ALL/option/selectWhich is accurate as to:
t:selectOneMenu forceId=true id=catSelect value=#{ArticleListBean.category} f:selectItem itemLabel=ALL itemValue=0 //t:selectOneMenu
Anything jump out? On 6/28/06, Julian Ray [EMAIL PROTECTED]
 wrote:




No if you use selectOne components which update the 
backingbean. Your JS should reference the selectOne components via ids - you 
might have to pass dummy select items but these will get removed then replaced 
by the JS as it loads. Remember that the page is rendered before its loaded by 
the browser so the JS will execute after the rendering has been 
performed.


From: Gregg Bolinger 
[mailto:[EMAIL PROTECTED]] Sent:
 Wednesday, June 28, 2006 
3:05 PMTo: MyFaces DiscussionSubject: Re: Design Type 
Question
Ok, got it working now. One final question. If I do this with 
_javascript_, I am going to have to do all the work of updating the model with the 
new values since it's client side, correct? Maybe this should be 
my first custom component. Eh? lol. Thanks for the 
help.Gregg
On 6/28/06, Gregg 
Bolinger [EMAIL PROTECTED] 
wrote: 

  Scratch that. I am getting the value. But all the code is escaped. 
  gt;, lt; etc. So it doesn't register correclty. Trying 
  something else 
  
  On 6/28/06, Gregg 
  Bolinger [EMAIL PROTECTED] wrote:
  
Alright, maybe a stupid question...For testing I have a 
property in my backing bean called _javascript_ with getters and 
setters. I have initialized _javascript_ with the 
following:private String _javascript_ = script 
type=\text/_javascript_\function testFunction(){ alert('this is a 
test'); }/script; And then did:t:outputText 
value=#{ArticleListBean._javascript_}/But it's not spitting out 
the code. Am I doing this wrong?
Thanks.
On 6/28/06, Julian 
Ray [EMAIL PROTECTED] wrote:

  
  
  Make 
  sure to use forceId on the select items so the JS can find them otherwise 
  you will have to prefix the component ids with formname: 
  
  
  
  
  
  From: Gregg Bolinger [mailto:[EMAIL PROTECTED]
] 
  Sent: Wednesday, June 28, 2006 2:31 
  PM
  To: MyFaces 
  DiscussionSubject: Re: Design Type 
  Question
  
  
  Doh! Didn't even think about that. Thanks.
  On 6/28/06, Julian 
  Ray [EMAIL PROTECTED] wrote: 
  


Couldn't you use a h:outputText 
value=#{myBackingBean.}} / and either (a) write out the 
whole _javascript_ or (b) just write out the array 
part?





From: Gregg Bolinger 
[mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, June 28, 2006 1:38 
PM
To: MyFaces 
DiscussionSubject: Re: Design Type 
Question


Thanks Julian. *Unfortunately* I'm well adapt at 
_javascript_ so I already know how to do that. What I don't know is 
how to populate _javascript_ arrays with data from my backing 
bean.Aside from a custom component, I'd assume I need to do 
something like that. Thanks.
On 6/28/06, Julian Ray [EMAIL PROTECTED]
 wrote: 

  
  
  Here is an example, I have not tested it but have used similar 
  approaches
  
  
http://www._javascript_kit.com/script/script2/multiplecombo.shtml
  
  
  
  
  
  From: Gregg Bolinger 
  [mailto:[EMAIL PROTECTED] ] 

  Sent: Wednesday, June 28, 2006 
  11:45 AMTo: MyFaces DiscussionSubject: Re: 
  Design Type Question
  
  Julian,Thanks for the suggestions. How would 
  I go about populating _javascript_ values with data from the backing 
  bean if I were to go with [1]? Any links with this 
  info?Thanks.
  On 6/28/06, Julian Ray [EMAIL PROTECTED]
 wrote: 
  


Some suggestions

[1] Use client-side population of teh drop 
downs
  

Re: Design Type Question

2006-06-28 Thread Gregg Bolinger
New info. If I place all this code in a function and call that function on document load, it works fine. So I guess I'll just go that route.On 6/28/06, Gregg Bolinger
 [EMAIL PROTECTED] wrote:
Alright. Thanks for the info. Getting closer. I have the following being spit out on my page after rendered.var options = document.getElementById('catSelect').options;
 var option = new Option('4', 'Active'); options[options.length] = option;
 var option = new Option('69', 'Appreciate'); options[
options.length] = option; var option = new Option('3', 'Explore'); 
options[options.length] = option; var option = new Option('71', 'Habitat');
 options[options.length] = option; var option = new Option('70', 'Indulge');
 options[options.length] = option; var option = new Option('1', 'Locate');
 options[options.length] = option; var option = new Option('2', 'People');
 options[options.length] = option;And I am getting document.getElementById(catSelect) has no properties error. I also see this on the rendered HTML:
select id=catSelect name=catSelect size=1	option value=0ALL/option/selectWhich is accurate as to:
t:selectOneMenu forceId=true id=catSelect value=#{ArticleListBean.category} f:selectItem itemLabel=ALL itemValue=0 //t:selectOneMenu
Anything jump out? On 6/28/06, Julian Ray 
[EMAIL PROTECTED]
 wrote:




No if you use selectOne components which update the 
backingbean. Your JS should reference the selectOne components via ids - you 
might have to pass dummy select items but these will get removed then replaced 
by the JS as it loads. Remember that the page is rendered before its loaded by 
the browser so the JS will execute after the rendering has been 
performed.


From: Gregg Bolinger 
[mailto:[EMAIL PROTECTED]] Sent:
 Wednesday, June 28, 2006 
3:05 PMTo: MyFaces DiscussionSubject: Re: Design Type 
Question
Ok, got it working now. One final question. If I do this with 
_javascript_, I am going to have to do all the work of updating the model with the 
new values since it's client side, correct? Maybe this should be 
my first custom component. Eh? lol. Thanks for the 
help.Gregg
On 6/28/06, Gregg 
Bolinger [EMAIL PROTECTED] 
wrote: 

  Scratch that. I am getting the value. But all the code is escaped. 
  gt;, lt; etc. So it doesn't register correclty. Trying 
  something else 
  
  On 6/28/06, Gregg 
  Bolinger [EMAIL PROTECTED] wrote:
  
Alright, maybe a stupid question...For testing I have a 
property in my backing bean called _javascript_ with getters and 
setters. I have initialized _javascript_ with the 
following:private String _javascript_ = script 
type=\text/_javascript_\function testFunction(){ alert('this is a 
test'); }/script; And then did:t:outputText 
value=#{ArticleListBean._javascript_}/But it's not spitting out 
the code. Am I doing this wrong?
Thanks.
On 6/28/06, Julian 
Ray [EMAIL PROTECTED] wrote:

  
  
  Make 
  sure to use forceId on the select items so the JS can find them otherwise 
  you will have to prefix the component ids with formname: 
  
  
  
  
  
  From: Gregg Bolinger [mailto:[EMAIL PROTECTED]
] 
  Sent: Wednesday, June 28, 2006 2:31 
  PM
  To: MyFaces 
  DiscussionSubject: Re: Design Type 
  Question
  
  
  Doh! Didn't even think about that. Thanks.
  On 6/28/06, Julian 
  Ray [EMAIL PROTECTED] wrote: 
  


Couldn't you use a h:outputText 
value=#{myBackingBean.}} / and either (a) write out the 
whole _javascript_ or (b) just write out the array 
part?





From: Gregg Bolinger 
[mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, June 28, 2006 1:38 
PM
To: MyFaces 
DiscussionSubject: Re: Design Type 
Question


Thanks Julian. *Unfortunately* I'm well adapt at 
_javascript_ so I already know how to do that. What I don't know is 
how to populate _javascript_ arrays with data from my backing 
bean.Aside from a custom component, I'd assume I need to do 
something like that. Thanks.
On 6/28/06, Julian Ray [EMAIL PROTECTED]
 wrote: 

  
  
  Here is an example, I have not tested it but have used similar 
  approaches
  
  

http://www._javascript_kit.com/script/script2/multiplecombo.shtml
  
  
  
  
  
  From: Gregg Bolinger 
  [mailto:[EMAIL PROTECTED] ] 

  Sent: Wednesday, June 28, 2006 
  11:45 AMTo: MyFaces DiscussionSubject: Re: 
  Design Type Question
  
  Julian,Thanks for the suggestions. How would 
  I go about populating _javascript_ values with data from the backing 
  bean if I were to go with [1]? Any links with this 
  info?Thanks.
  On 

Re: PRETTY_HTML

2006-06-28 Thread Richard Capraro

Hello jonathan,
i have read (in the mailing list) that this parameter does not work
and will be removed in future versions.

regards,
Richard Capraro

2006/6/27, Baker,Jonathan [EMAIL PROTECTED]:




context-param
param-nameorg.apache.myfaces.PRETTY_HTML/param-name
param-valuetrue/param-value
/context-param

Changing this setting between true and false in my web.xml makes no
difference on the html source shown to me in firefox or ie.

Is this setting not functional in myfaces 1.1.3/tomahawk 1.1.2, or could
something else be causing the HTML to not be beautified?

JB


RE: Design Type Question

2006-06-28 Thread Julian Ray



How are you loading the JS and performing the 
initialization? onload event or appending to the 
window.onload?


From: Gregg Bolinger 
[mailto:[EMAIL PROTECTED] Sent: Wednesday, June 28, 2006 
3:26 PMTo: MyFaces DiscussionSubject: Re: Design Type 
Question
Alright. Thanks for the info. Getting closer. I 
have the following being spit out on my page after rendered.var options = 
document.getElementById('catSelect').options;
var 
option = new Option('4', 'Active');
options[options.length] = option; 
var 
option = new Option('69', 'Appreciate');
options[ 
options.length] = option;
var 
option = new Option('3', 'Explore');
options[options.length] = option;
var 
option = new Option('71', 'Habitat');
options[options.length] = option;
var 
option = new Option('70', 'Indulge');
options[options.length] = option;
var 
option = new Option('1', 'Locate'); 
options[options.length] = option;
var 
option = new Option('2', 'People'); 
options[options.length] = option;And I am getting 
document.getElementById("catSelect") has no properties error. I 
also see this on the rendered HTML: select 
id="catSelect" name="catSelect" size="1" option 
value="0"ALL/option/selectWhich is accurate as to: 
t:selectOneMenu forceId="true" id="catSelect" 
value="#{ArticleListBean.category}" 
f:selectItem itemLabel="ALL" itemValue="0" //t:selectOneMenu 
Anything jump out?  
   

On 6/28/06, Julian 
Ray [EMAIL PROTECTED]  
wrote:

  
  
  No if you 
  use selectOne components which update the backingbean. Your JS should 
  reference the selectOne components via ids - you might have to pass dummy 
  select items but these will get removed then replaced by the JS as it loads. 
  Remember that the page is rendered before its loaded by the browser so the JS 
  will execute after the rendering has been performed.
  
  
  
  From: Gregg Bolinger 
  [mailto:[EMAIL PROTECTED]] 
  Sent: Wednesday, June 28, 2006 3:05 
  PM
  To: MyFaces DiscussionSubject: Re: Design Type 
  Question
  
  
  Ok, got it working now. One final question. If I do this with 
  _javascript_, I am going to have to do all the work of updating the model with 
  the new values since it's client side, correct? Maybe this 
  should be my first custom component. Eh? lol. Thanks for the 
  help.Gregg
  On 6/28/06, Gregg 
  Bolinger [EMAIL PROTECTED] wrote: 
  
Scratch that. I am getting the value. But all the code is 
escaped. gt;, lt; etc. So it doesn't register 
correclty. Trying something else 

On 6/28/06, Gregg 
Bolinger [EMAIL PROTECTED] wrote: 

  Alright, maybe a stupid question...For testing I have a 
  property in my backing bean called _javascript_ with getters and 
  setters. I have initialized _javascript_ with the 
  following:private String _javascript_ = "script 
  type=\"text/_javascript_\"function testFunction(){ alert('this is a 
  test'); }/script"; And then did:t:outputText 
  value="#{ArticleListBean._javascript_}"/But it's not spitting 
  out the code. Am I doing this wrong?
  Thanks.
  On 6/28/06, Julian 
  Ray [EMAIL PROTECTED] wrote: 
  


Make 
sure to use forceId on the select items so the JS can find them 
otherwise you will have to prefix the component ids with "formname:" 





From: Gregg Bolinger 
[mailto:[EMAIL PROTECTED] ] 
Sent: Wednesday, June 28, 2006 2:31 
PM
To: MyFaces 
DiscussionSubject: Re: Design Type 
Question


Doh! Didn't even think about that. 
Thanks.
On 6/28/06, Julian Ray [EMAIL PROTECTED] wrote: 

  
  
  Couldn't you use a h:outputText 
  value="#{myBackingBean.}} / and either (a) write out the 
  whole _javascript_ or (b) just write out the array 
  part?
  
  
  
  
  
  From: Gregg Bolinger 
  [mailto:[EMAIL PROTECTED]] 
  Sent: Wednesday, June 28, 2006 
  1:38 PM
  To: MyFaces 
  DiscussionSubject: Re: Design Type 
  Question
  
  
  Thanks Julian. *Unfortunately* I'm well adapt at 
  _javascript_ so I already know how to do that. What I don't know 
  is how to populate _javascript_ arrays with data from my backing 
  bean.Aside from a custom component, I'd assume I need to do 
  something like that. Thanks.
  On 6/28/06, Julian Ray [EMAIL PROTECTED] 
   wrote: 
  


Here is an example, I have not tested it but have used 
similar approaches

http://www._javascript_kit.com/script/script2/multiplecombo.shtml





From: Gregg Bolinger 
[mailto:[EMAIL PROTECTED] ] 

Sent: 

Using rowIndexVar in datatable for setting rowId fails

2006-06-28 Thread Anitha Suraj

Hi,

I just upgraded to MyFaces1.1.3 and Tomahawk 1.1.3. I am using the
rowIndexVar to set the rowId in my datatable. This was working fine in
1.1.1. So my ids were set to row_0, row_1 and so on. But when I upgraded, it
is not able to set the first row. It is setting rowId as row_, row_0, row_1
and so on. 

Has anybody seen this error before and has a solution for it? Thanks so
much.

This code was working before:

t:dataTable id=summarytable
rowIndexVar=rowIndex
rowId=row_#{rowIndex}
...


-- 
View this message in context: 
http://www.nabble.com/Using-rowIndexVar-in-datatable-for-setting-rowId-fails-tf1863626.html#a5091346
Sent from the MyFaces - Users forum at Nabble.com.



RE: Design Type Question

2006-06-28 Thread Julian Ray



Great. How about adding how you did it to the wiki and pass 
on yourknow-how as I'm sure others will be facing the same problem 
:)


From: Gregg Bolinger 
[mailto:[EMAIL PROTECTED] Sent: Wednesday, June 28, 2006 
3:33 PMTo: MyFaces DiscussionSubject: Re: Design Type 
Question
New info. If I place all this code in a function and call that 
function on document load, it works fine. So I guess I'll just go that 
route.
On 6/28/06, Gregg 
Bolinger [EMAIL PROTECTED] 
wrote:

  Alright. Thanks for the info. Getting closer. I have 
  the following being spit out on my page after rendered.var 
  options = document.getElementById('catSelect').options;
  var option = new Option('4', 'Active');
  options[options.length] = option; 
  var option = new Option('69', 'Appreciate');
  options[ options.length] = option;
  var option = new Option('3', 'Explore');
  options[options.length] = option;
  var option = new Option('71', 'Habitat');
  options[options.length] = option;
  var option = new Option('70', 'Indulge');
  options[options.length] = option;
  var option = new Option('1', 'Locate'); 
  options[options.length] = option;
  var option = new Option('2', 'People'); 
  options[options.length] = option;And I am getting 
  document.getElementById("catSelect") has no properties error. I 
  also see this on the rendered HTML: select id="catSelect" 
  name="catSelect" size="1" option 
  value="0"ALL/option/selectWhich is accurate as to: 
  t:selectOneMenu forceId="true" id="catSelect" 
  value="#{ArticleListBean.category}" 
  f:selectItem itemLabel="ALL" itemValue="0" 
  //t:selectOneMenu Anything jump 
  out?   

  
  On 6/28/06, Julian 
  Ray  [EMAIL PROTECTED] 
   wrote:
  


No if 
you use selectOne components which update the backingbean. Your JS should 
reference the selectOne components via ids - you might have to pass dummy 
select items but these will get removed then replaced by the JS as it loads. 
Remember that the page is rendered before its loaded by the browser so the 
JS will execute after the rendering has been 
performed.



From: Gregg Bolinger [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, June 28, 2006 3:05 
PM
To: MyFaces 
DiscussionSubject: Re: Design Type 
Question


Ok, got it working now. One final question. If I do this 
with _javascript_, I am going to have to do all the work of updating the model 
with the new values since it's client side, correct? Maybe 
this should be my first custom component. Eh? lol. Thanks for the 
help.Gregg
On 6/28/06, Gregg 
Bolinger [EMAIL PROTECTED] wrote: 

  Scratch that. I am getting the value. But all the code is 
  escaped. gt;, lt; etc. So it doesn't register 
  correclty. Trying something else 
  
  On 6/28/06, Gregg 
  Bolinger [EMAIL PROTECTED] wrote: 
  
Alright, maybe a stupid question...For testing I have a 
property in my backing bean called _javascript_ with getters and 
setters. I have initialized _javascript_ with the 
following:private String _javascript_ = "script 
type=\"text/_javascript_\"function testFunction(){ alert('this is a 
test'); }/script"; And then did:t:outputText 
value="#{ArticleListBean._javascript_}"/But it's not spitting 
out the code. Am I doing this wrong?
Thanks.
On 6/28/06, Julian Ray [EMAIL PROTECTED] wrote: 

  
  
  Make sure to use forceId on the select items so the JS can find 
  them otherwise you will have to prefix the component ids with 
  "formname:" 
  
  
  
  
  From: Gregg Bolinger 
  [mailto:[EMAIL PROTECTED] ] 

  Sent: Wednesday, June 28, 2006 
  2:31 PM
  To: MyFaces 
  DiscussionSubject: Re: Design Type 
  Question
  
  
  Doh! Didn't even think about that. 
  Thanks.
  On 6/28/06, Julian Ray [EMAIL PROTECTED] wrote: 
  


Couldn't you use a h:outputText 
value="#{myBackingBean.}} / and either (a) write out 
the whole _javascript_ or (b) just write out the array 
part?





From: Gregg Bolinger 
[mailto:[EMAIL PROTECTED]] 

Sent: Wednesday, June 28, 2006 
1:38 PM
To: MyFaces 
DiscussionSubject: Re: Design Type 
Question


Thanks Julian. *Unfortunately* I'm well adapt at 
_javascript_ so I already know how to do that. What I don't know 
is how to populate _javascript_ arrays with data from my backing 
bean.Aside from a custom component, I'd assume I need to do 
something like that. Thanks.
  

Re: Design Type Question

2006-06-28 Thread Gregg Bolinger
Thanks Julian. I will add it to the wiki when I get it finalized. I am running into another issue of the selected value needing to be the selectedIndex when an actionEvent occurs and the same page is displayed again.
Thanks.On 6/28/06, Julian Ray [EMAIL PROTECTED] wrote:





Great. How about adding how you did it to the wiki and pass 
on yourknow-how as I'm sure others will be facing the same problem 
:)


From: Gregg Bolinger 
[mailto:[EMAIL PROTECTED]] Sent:
 Wednesday, June 28, 2006 
3:33 PMTo: MyFaces DiscussionSubject: Re: Design Type 
Question
New info. If I place all this code in a function and call that 
function on document load, it works fine. So I guess I'll just go that 
route.
On 6/28/06, Gregg 
Bolinger [EMAIL PROTECTED] 
wrote:

  Alright. Thanks for the info. Getting closer. I have 
  the following being spit out on my page after rendered.var 
  options = document.getElementById('catSelect').options;
  var option = new Option('4', 'Active');
  options[options.length] = option; 
  var option = new Option('69', 'Appreciate');
  options[ options.length] = option;
  var option = new Option('3', 'Explore');
  options[options.length] = option;
  var option = new Option('71', 'Habitat');
  options[options.length] = option;
  var option = new Option('70', 'Indulge');
  options[options.length] = option;
  var option = new Option('1', 'Locate'); 
  options[options.length] = option;
  var option = new Option('2', 'People'); 
  options[options.length] = option;And I am getting 
  document.getElementById(catSelect) has no properties error. I 
  also see this on the rendered HTML: select id=catSelect 
  name=catSelect size=1 option 
  value=0ALL/option/selectWhich is accurate as to: 
  t:selectOneMenu forceId=true id=catSelect 
  value=#{ArticleListBean.category} 
  f:selectItem itemLabel=ALL itemValue=0 
  //t:selectOneMenu Anything jump 
  out?   

  
  On 6/28/06, Julian 
  Ray  [EMAIL PROTECTED] 
   wrote:
  


No if 
you use selectOne components which update the backingbean. Your JS should 
reference the selectOne components via ids - you might have to pass dummy 
select items but these will get removed then replaced by the JS as it loads. 
Remember that the page is rendered before its loaded by the browser so the 
JS will execute after the rendering has been 
performed.



From: Gregg Bolinger [mailto:[EMAIL PROTECTED]
] 
Sent: Wednesday, June 28, 2006 3:05 
PM
To: MyFaces 
DiscussionSubject: Re: Design Type 
Question


Ok, got it working now. One final question. If I do this 
with _javascript_, I am going to have to do all the work of updating the model 
with the new values since it's client side, correct? Maybe 
this should be my first custom component. Eh? lol. Thanks for the 
help.Gregg
On 6/28/06, Gregg 
Bolinger [EMAIL PROTECTED] wrote: 

  Scratch that. I am getting the value. But all the code is 
  escaped. gt;, lt; etc. So it doesn't register 
  correclty. Trying something else 
  
  On 6/28/06, Gregg 
  Bolinger [EMAIL PROTECTED] wrote: 
  
Alright, maybe a stupid question...For testing I have a 
property in my backing bean called _javascript_ with getters and 
setters. I have initialized _javascript_ with the 
following:private String _javascript_ = script 
type=\text/_javascript_\function testFunction(){ alert('this is a 
test'); }/script; And then did:t:outputText 
value=#{ArticleListBean._javascript_}/But it's not spitting 
out the code. Am I doing this wrong?
Thanks.
On 6/28/06, Julian Ray [EMAIL PROTECTED]
 wrote: 

  
  
  Make sure to use forceId on the select items so the JS can find 
  them otherwise you will have to prefix the component ids with 
  formname: 
  
  
  
  
  From: Gregg Bolinger 
  [mailto:[EMAIL PROTECTED] ] 

  Sent: Wednesday, June 28, 2006 
  2:31 PM
  To: MyFaces 
  DiscussionSubject: Re: Design Type 
  Question
  
  
  Doh! Didn't even think about that. 
  Thanks.
  On 6/28/06, Julian Ray [EMAIL PROTECTED]
 wrote: 
  


Couldn't you use a h:outputText 
value=#{myBackingBean.}} / and either (a) write out 
the whole _javascript_ or (b) just write out the array 
part?





From: Gregg Bolinger 
[mailto:[EMAIL PROTECTED]] 

Sent: Wednesday, June 28, 2006 
1:38 PM
To: MyFaces 
DiscussionSubject: Re: Design Type 
Question


Thanks Julian. *Unfortunately* I'm well adapt at 

RE: NoClassDefFoundError: org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper on server startup.

2006-06-28 Thread Rick

Did you see this:
http://wiki.apache.org/myfaces/More_tips_on_Upgrading_to_Tomahawk_1%2e1%2e3

You need the following jar files:

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


At least this is what I have and it is working...




-Original Message-
From: Sloan, Noah M [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 28, 2006 11:33 AM
To: users@myfaces.apache.org
Subject: NoClassDefFoundError:
org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper on server
startup.

I'm trying to upgrade from MyFaces and Tomahawk 1.1.1 to 1.1.3. I only
replaced the myfaces-api, myfaces-impl and tomahawk jars.  I also changed
the extensions filter class to
org.apache.myfaces.webapp.filter.ExtensionsFilter.

When Tomcat starts up, I get the following error numerous times:
java.lang.NoClassDefFoundError:
org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper
at
org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:2
79)
at
org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:2
65)
at
org.apache.myfaces.config.FacesConfigurator.configureLifecycle(FacesConfigur
ator.java:652)
at
org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java
:144)
at
org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupSer
vletContextListener.java:66)
at
org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(S
tartupServletContextListener.java:49)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:
3727)
...

Am I missing a jar?  Any idea where those classes are supposed to come from?




Re: NoClassDefFoundError: org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper on server startup.

2006-06-28 Thread Gregg Bolinger
What are:myfaces-shared-core-2.0.2.jarmyfaces-shared-impl-2.0.2.jarmyfaces-shared-tomahawk-2.0.2.jar??GreggOn 6/28/06, 
Rick [EMAIL PROTECTED] wrote:
Did you see this:http://wiki.apache.org/myfaces/More_tips_on_Upgrading_to_Tomahawk_1%2e1%2e3You need the following jar files:
myfaces-api-1.1.3.jarmyfaces-impl-1.1.3.jarmyfaces-shared-core-2.0.2.jarmyfaces-shared-impl-2.0.2.jarmyfaces-shared-tomahawk-2.0.2.jartomahawk-1.1.3.jarAt least this is what I have and it is working...
-Original Message-From: Sloan, Noah M [mailto:[EMAIL PROTECTED]]Sent: Wednesday, June 28, 2006 11:33 AMTo: 
users@myfaces.apache.orgSubject: NoClassDefFoundError:org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper on serverstartup.I'm trying to upgrade from MyFaces and Tomahawk 1.1.1 to 1.1.3
. I onlyreplaced the myfaces-api, myfaces-impl and tomahawk jars.I also changedthe extensions filter class toorg.apache.myfaces.webapp.filter.ExtensionsFilter.When Tomcat starts up, I get the following error numerous times:
java.lang.NoClassDefFoundError:org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapperatorg.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:279)at
org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:265)atorg.apache.myfaces.config.FacesConfigurator.configureLifecycle(FacesConfigurator.java:652)atorg.apache.myfaces.config.FacesConfigurator.configure
(FacesConfigurator.java:144)atorg.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:66)atorg.apache.myfaces.webapp.StartupServletContextListener.contextInitialized
(StartupServletContextListener.java:49)atorg.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3727)...Am I missing a jar?Any idea where those classes are supposed to come from?



RE: NoClassDefFoundError: org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper on server startup.

2006-06-28 Thread Rick
I have. I forgot. Sorry.

All I have is as follows:

myfaces-api-1.1.3.jar
myfaces-impl-1.1.3.jar
tomahawk-1.1.3.jar


-Original Message-
From: Dennis Byrne [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 28, 2006 1:17 PM
To: MyFaces Discussion
Subject: Re: NoClassDefFoundError:
org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper on server
startup.

Rick,

Have you tried removing these ?

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

They are baked into the other jars at build time.

Dennis Byrne

-Original Message-
From: Rick [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 28, 2006 03:57 PM
To: ''MyFaces Discussion''
Subject: RE: NoClassDefFoundError:
org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper on server
startup.


Did you see this:
http://wiki.apache.org/myfaces/More_tips_on_Upgrading_to_Tomahawk_1%2e1%2e3

You need the following jar files:

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


At least this is what I have and it is working...




-Original Message-
From: Sloan, Noah M [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 28, 2006 11:33 AM
To: users@myfaces.apache.org
Subject: NoClassDefFoundError:
org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper on server
startup.

I'm trying to upgrade from MyFaces and Tomahawk 1.1.1 to 1.1.3. I only
replaced the myfaces-api, myfaces-impl and tomahawk jars.  I also changed
the extensions filter class to
org.apache.myfaces.webapp.filter.ExtensionsFilter.

When Tomcat starts up, I get the following error numerous times:
java.lang.NoClassDefFoundError:
org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper
   at
org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:
2
79)
   at
org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:
2
65)
   at
org.apache.myfaces.config.FacesConfigurator.configureLifecycle(FacesConfigu
r
ator.java:652)
   at
org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.jav
a
:144)
   at
org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupSe
r
vletContextListener.java:66)
   at
org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(
S
tartupServletContextListener.java:49)
   at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java
:
3727)
...

Am I missing a jar?  Any idea where those classes are supposed to come
from?









RE: NoClassDefFoundError: org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper on server startup.

2006-06-28 Thread Rick
Back to the original question


org.apache.myfaces.renderkit.html.util.HtmlBufferResponseWriterWrapper

is the new name of 

org.apache.myfaces.custom.buffer.HtmlBufferResponseWriterWrapper


HtmlBufferResponseWriterWrapper is the jar file of tomahawk-1.1.3.jar.


Did you change the SourceCodeServlet?


It should now be.

servlet
servlet-nameSourceCodeServlet/servlet-name

servlet-classorg.apache.myfaces.shared_tomahawk.util.servlet.SourceCodeSer
vlet/servlet-class
/servlet


Are you sure you don't have an old jar file or an old tld file somewhere?
I would double check.

--Rick Hightower

-Original Message-
From: Rick [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 28, 2006 12:57 PM
To: 'MyFaces Discussion'
Subject: RE: NoClassDefFoundError:
org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper on server
startup.


Did you see this:
http://wiki.apache.org/myfaces/More_tips_on_Upgrading_to_Tomahawk_1%2e1%2e3

You need the following jar files:

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


At least this is what I have and it is working...




-Original Message-
From: Sloan, Noah M [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 28, 2006 11:33 AM
To: users@myfaces.apache.org
Subject: NoClassDefFoundError:
org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper on server
startup.

I'm trying to upgrade from MyFaces and Tomahawk 1.1.1 to 1.1.3. I only
replaced the myfaces-api, myfaces-impl and tomahawk jars.  I also changed
the extensions filter class to
org.apache.myfaces.webapp.filter.ExtensionsFilter.

When Tomcat starts up, I get the following error numerous times:
java.lang.NoClassDefFoundError:
org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper
at
org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:2
79)
at
org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:2
65)
at
org.apache.myfaces.config.FacesConfigurator.configureLifecycle(FacesConfigur
ator.java:652)
at
org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java
:144)
at
org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupSer
vletContextListener.java:66)
at
org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(S
tartupServletContextListener.java:49)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:
3727)
...

Am I missing a jar?  Any idea where those classes are supposed to come from?






RE: NoClassDefFoundError: org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper on server startup.

2006-06-28 Thread Rick
Seems right.

If you have a shared jar file area, make sure there are no old copies of
Tomahawk and/or myfaces.



-Original Message-
From: Sloan, Noah M [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 28, 2006 1:23 PM
To: MyFaces Discussion
Subject: RE: NoClassDefFoundError:
org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper on server
startup.

Yea, sorry I forgot that:

acegi-jsf.jar
acegi-security-1.0.0.jar
adf-facelets.jar
adf-faces-api-SNAPSHOT.jar
adf-faces-impl-SNAPSHOT.jar
adfshare-3549S.jar
ajaxanywhere-1.2-RC1.jar
antlr-2.7.6rc1.jar
asm.jar
c3p0-0.9.0.jar
cglib-2.1.3.jar
commons-beanutils.jar
commons-collections-2.1.1.jar
commons-collections-3.0.jar
commons-dbcp.jar
commons-digester-1.7.jar
commons-el.jar
commons-fileupload.jar
commons-lang-2.1.jar
commons-logging-1.0.4.jar
commons-pool.jar
commons-validator.jar
corejsf-validator.jar
dbunit-2.1.jar
displaytag-1.1-SNAPSHOT.jar
dom4j-1.6.jar
ehcache-1.1.jar
ejb3-persistence.jar
el-api.jar
el-ri.jar
hibernate3.jar
hibernate-annotations.jar
itext-1.3.jar
jakarta-oro.jar
jarlist-business.txt
jsf-facelets.jar
jstl.jar
jta.jar
junit.jar
log4j-1.2.9.jar
lucene-1.4-final.jar
myfaces-api-1.1.3.jar
myfaces-impl-1.1.3.jar
mysql-connector-java-5.0.0-beta-bin.jar
ormunit-hibernate-1.0-SNAPSHOT.jar
pia-util-spring-1.0-SNAPSHOT.jar
sandbox.jar
spring.jar
spring-mock.jar
tomahawk-1.1.3.jar


-Original Message-
From: Dennis Byrne [mailto:[EMAIL PROTECTED]
Sent: Wed 28-Jun-06 2:19 PM
To: MyFaces Discussion
Subject: Re: NoClassDefFoundError:
org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper on
server startup.
 
Can you post a dir listing of WEB-INF/lib ?

Dennis Byrne

-Original Message-
From: Sloan, Noah M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 28, 2006 02:33 PM
To: users@myfaces.apache.org
Subject: NoClassDefFoundError:
org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper on server
startup.

I'm trying to upgrade from MyFaces and Tomahawk 1.1.1 to 1.1.3. I only
replaced the myfaces-api, myfaces-impl and tomahawk jars.  I also changed
the extensions filter class to
org.apache.myfaces.webapp.filter.ExtensionsFilter.

When Tomcat starts up, I get the following error numerous times:
java.lang.NoClassDefFoundError:
org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper
   at
org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:2
79)
   at
org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:2
65)
   at
org.apache.myfaces.config.FacesConfigurator.configureLifecycle(FacesConfigur
ator.java:652)
   at
org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java
:144)
   at
org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupSer
vletContextListener.java:66)
   at
org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(S
tartupServletContextListener.java:49)
   at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:
3727)
...

Am I missing a jar?  Any idea where those classes are supposed to come
from?







RE: NoClassDefFoundError: org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper on server startup.

2006-06-28 Thread Sloan, Noah M
Thanks Rick and Dennis, it looks like that particular error was something 
cached.  I've got a new one nowm, but I'll start a new thread.

-Original Message-
From: Dennis Byrne [mailto:[EMAIL PROTECTED]
Sent: Wed 28-Jun-06 3:16 PM
To: MyFaces Discussion
Subject: Re:  NoClassDefFoundError: 
org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper on server 
startup.
 
Rick,

Have you tried removing these ?

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

They are baked into the other jars at build time.

Dennis Byrne

-Original Message-
From: Rick [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 28, 2006 03:57 PM
To: ''MyFaces Discussion''
Subject: RE: NoClassDefFoundError: 
org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper on server 
startup.


Did you see this:
http://wiki.apache.org/myfaces/More_tips_on_Upgrading_to_Tomahawk_1%2e1%2e3

You need the following jar files:

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


At least this is what I have and it is working...




-Original Message-
From: Sloan, Noah M [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 28, 2006 11:33 AM
To: users@myfaces.apache.org
Subject: NoClassDefFoundError:
org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper on server
startup.

I'm trying to upgrade from MyFaces and Tomahawk 1.1.1 to 1.1.3. I only
replaced the myfaces-api, myfaces-impl and tomahawk jars.  I also changed
the extensions filter class to
org.apache.myfaces.webapp.filter.ExtensionsFilter.

When Tomcat starts up, I get the following error numerous times:
java.lang.NoClassDefFoundError:
org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper
   at
org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:2
79)
   at
org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:2
65)
   at
org.apache.myfaces.config.FacesConfigurator.configureLifecycle(FacesConfigur
ator.java:652)
   at
org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java
:144)
   at
org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupSer
vletContextListener.java:66)
   at
org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(S
tartupServletContextListener.java:49)
   at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:
3727)
...

Am I missing a jar?  Any idea where those classes are supposed to come from?






winmail.dat

NoSuchMethodError: org.apache.myfaces.renderkit.html.util.DummyFormUtils.isWriteDummyForm(Ljavax/faces/context/FacesContext;)

2006-06-28 Thread Sloan, Noah M
OK, so once aganin, I'm upgrading from 1.1.1 to 1.1.3.
For any page, even:
html
body
Foo
/body
/html

I get this error:

java.lang.NoSuchMethodError: 
org.apache.myfaces.renderkit.html.util.DummyFormUtils.isWriteDummyForm(Ljavax/faces/context/FacesContext;)Z

org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.writeCodeBeforeBodyEnd(ExtensionsPhaseListener.java:110)

org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.getCodeBeforeBodyEnd(ExtensionsPhaseListener.java:96)

org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.renderCodeBeforeBodyEnd(ExtensionsPhaseListener.java:86)

org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.afterPhase(ExtensionsPhaseListener.java:66)

org.apache.myfaces.lifecycle.LifecycleImpl.informPhaseListenersAfter(LifecycleImpl.java:567)

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

oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)

oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)

oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)

oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)

org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)

org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:90)

org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:216)

org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:90)

org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:195)

org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:90)

org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174)

org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)

Any ideas?


RE: NoSuchMethodError: org.apache.myfaces.renderkit.html.util.DummyFormUtils.isWriteDummyForm(Ljavax/faces/context/FacesContext;)

2006-06-28 Thread David Friedman
By trying to get a simple page working with all of those jars you are
sabotaging yourself.  You really should start with the basic jars and then
ADD your other components, which from this stack trace suggest you are also
using Spring, Oracle ADF, and ACEGI.  Keeping everything in the loop could
be aggravating the problem ESPECIALLY if one of those other jars is more
tightly connected to a particular version of Tomahawk or MyFaces.  For all
you know THAT could be causing the error, i.e. a particular component issue.
In that case you will likely never figure out what is causing this problem.

-David

-Original Message-
From: Sloan, Noah M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 28, 2006 5:07 PM
To: users@myfaces.apache.org
Subject: NoSuchMethodError:
org.apache.myfaces.renderkit.html.util.DummyFormUtils.isWriteDummyForm(L
javax/faces/context/FacesContext;)


OK, so once aganin, I'm upgrading from 1.1.1 to 1.1.3.
For any page, even:
html
body
Foo
/body
/html

I get this error:

java.lang.NoSuchMethodError:
org.apache.myfaces.renderkit.html.util.DummyFormUtils.isWriteDummyForm(Ljava
x/faces/context/FacesContext;)Z

org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.writeCodeBef
oreBodyEnd(ExtensionsPhaseListener.java:110)

org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.getCodeBefor
eBodyEnd(ExtensionsPhaseListener.java:96)

org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.renderCodeBe
foreBodyEnd(ExtensionsPhaseListener.java:86)

org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.afterPhase(E
xtensionsPhaseListener.java:66)

org.apache.myfaces.lifecycle.LifecycleImpl.informPhaseListenersAfter(Lifecy
cleImpl.java:567)

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

oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(Adf
FacesFilterImpl.java:367)

oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFa
cesFilterImpl.java:336)

oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFi
lterImpl.java:196)

oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87
)

org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslati
onFilter.java:110)

org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:90
)

org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFi
lter.java:216)

org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:90
)

org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(Http
SessionContextIntegrationFilter.java:195)

org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:90
)

org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilter
Internal(OpenSessionInViewFilter.java:174)

org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequest
Filter.java:76)

org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter
.java:144)

Any ideas?



dataTable separator line

2006-06-28 Thread Dave
For a dataTable, How to add a horizontal line between groups of4 rows?Thanks!Row1  Row2  Row3  Row4  -  Row5  Row6  Row7  Row8   
		Do you Yahoo!? Everyone is raving about the  all-new Yahoo! Mail Beta.

RE: dataTable separator line

2006-06-28 Thread David Friedman



How 
about setting:
h:dataTable columnClasses="classA,classA,classA,classB" 


Where 
classA doesn't have a border width but classB does have a wide bottom 
border? Or maybe classB just has a much wider bottom border than classA 
that way everyone has one kind of (at least small) bottom border creating lines 
between the rows.

Regards,
David

  -Original Message-From: Dave 
  [mailto:[EMAIL PROTECTED]Sent: Wednesday, June 28, 2006 10:13 
  PMTo: users@myfaces.apache.orgSubject: dataTable 
  separator line
  For a dataTable, How to add a horizontal line between groups of4 
  rows?Thanks!
  
  Row1
  Row2
  Row3
  Row4
  -
  Row5
  Row6
  Row7
  Row8
  
  
  
  Do you Yahoo!?Everyone is raving about the all-new 
  Yahoo! Mail Beta.


RE: dataTable separator line

2006-06-28 Thread David Friedman



Excuse 
me. I think I meant rowClasses, not columnClasses. So that theory 
would make it:

h:dataTablerowClasses="classA,classA,classA,classB,etc." 

Regards,
David

  -Original Message-From: David Friedman 
  [mailto:[EMAIL PROTECTED]Sent: Wednesday, June 28, 2006 10:45 
  PMTo: MyFaces DiscussionSubject: RE: dataTable separator 
  line
  How 
  about setting:
  h:dataTable columnClasses="classA,classA,classA,classB" 
  
  
  Where classA doesn't have a border width but classB does have a wide 
  bottom border? Or maybe classB just has a much wider bottom border than 
  classA that way everyone has one kind of (at least small) bottom border 
  creating lines between the rows.
  
  Regards,
  David
  
-Original Message-From: Dave 
[mailto:[EMAIL PROTECTED]Sent: Wednesday, June 28, 2006 10:13 
PMTo: users@myfaces.apache.orgSubject: dataTable 
separator line
For a dataTable, How to add a horizontal line between groups of4 
rows?Thanks!

Row1
Row2
Row3
Row4
-
Row5
Row6
Row7
Row8



Do you Yahoo!?Everyone is raving about the all-new 
Yahoo! Mail Beta.


How to displayi an images generated by a managed bean?

2006-06-28 Thread Paul Spencer
I need to include a graphic image generated by JFreeCharts.  Currently 
the generation of the image is in an action of a managed bean and is 
displayed in a separate windows via h:commandButton.  How should I 
convert this to a h:graphicImage so it can be displayed in an existing 
page?


Paul Spencer


RE: dataTable separator line

2006-06-28 Thread Dave
Hi david,  Thanks!Is it possible to print some descriptivetext on the border?David Friedman [EMAIL PROTECTED] wrote:  How about setting:  h:dataTable columnClasses="classA,classA,classA,classB" Where classA doesn't have a border width but classB does have a wide bottom border? Or maybe classB just has a much wider bottom border than classA that way everyone has
 one kind of (at least small) bottom border creating lines between the rows.Regards,  David-Original Message-From: Dave [mailto:[EMAIL PROTECTED]Sent: Wednesday, June 28, 2006 10:13 PMTo: users@myfaces.apache.orgSubject: dataTable separator line  For a dataTable, How to add a horizontal line between groups of4 rows?Thanks!Row1  Row2  Row3  Row4  -  Row5  Row6  Row7 
 Row8    Do you Yahoo!?Everyone is raving about the all-new Yahoo! Mail Beta. 
		Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.

RE: NoClassDefFoundError: org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper on server startup.

2006-06-28 Thread Mike Duffy
I was getting this same error.

The cause turned out to be that I had dropped the new 1.1.3 jars into the 
WEB-INF/lib of an
earlier examples 1.1.1 war directory.

Going to the new 1.1.4 SNAPSHOT examples removed the problem.

Mike



--- Rick [EMAIL PROTECTED] wrote:

 Seems right.
 
 If you have a shared jar file area, make sure there are no old copies of
 Tomahawk and/or myfaces.
 
 
 
 -Original Message-
 From: Sloan, Noah M [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, June 28, 2006 1:23 PM
 To: MyFaces Discussion
 Subject: RE: NoClassDefFoundError:
 org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper on server
 startup.
 
 Yea, sorry I forgot that:
 
 acegi-jsf.jar
 acegi-security-1.0.0.jar
 adf-facelets.jar
 adf-faces-api-SNAPSHOT.jar
 adf-faces-impl-SNAPSHOT.jar
 adfshare-3549S.jar
 ajaxanywhere-1.2-RC1.jar
 antlr-2.7.6rc1.jar
 asm.jar
 c3p0-0.9.0.jar
 cglib-2.1.3.jar
 commons-beanutils.jar
 commons-collections-2.1.1.jar
 commons-collections-3.0.jar
 commons-dbcp.jar
 commons-digester-1.7.jar
 commons-el.jar
 commons-fileupload.jar
 commons-lang-2.1.jar
 commons-logging-1.0.4.jar
 commons-pool.jar
 commons-validator.jar
 corejsf-validator.jar
 dbunit-2.1.jar
 displaytag-1.1-SNAPSHOT.jar
 dom4j-1.6.jar
 ehcache-1.1.jar
 ejb3-persistence.jar
 el-api.jar
 el-ri.jar
 hibernate3.jar
 hibernate-annotations.jar
 itext-1.3.jar
 jakarta-oro.jar
 jarlist-business.txt
 jsf-facelets.jar
 jstl.jar
 jta.jar
 junit.jar
 log4j-1.2.9.jar
 lucene-1.4-final.jar
 myfaces-api-1.1.3.jar
 myfaces-impl-1.1.3.jar
 mysql-connector-java-5.0.0-beta-bin.jar
 ormunit-hibernate-1.0-SNAPSHOT.jar
 pia-util-spring-1.0-SNAPSHOT.jar
 sandbox.jar
 spring.jar
 spring-mock.jar
 tomahawk-1.1.3.jar
 
 
 -Original Message-
 From: Dennis Byrne [mailto:[EMAIL PROTECTED]
 Sent: Wed 28-Jun-06 2:19 PM
 To: MyFaces Discussion
 Subject: Re: NoClassDefFoundError:
 org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper on
 server startup.
  
 Can you post a dir listing of WEB-INF/lib ?
 
 Dennis Byrne
 
 -Original Message-
 From: Sloan, Noah M [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 28, 2006 02:33 PM
 To: users@myfaces.apache.org
 Subject: NoClassDefFoundError:
 org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper on server
 startup.
 
 I'm trying to upgrade from MyFaces and Tomahawk 1.1.1 to 1.1.3. I only
 replaced the myfaces-api, myfaces-impl and tomahawk jars.  I also changed
 the extensions filter class to
 org.apache.myfaces.webapp.filter.ExtensionsFilter.
 
 When Tomcat starts up, I get the following error numerous times:
 java.lang.NoClassDefFoundError:
 org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper
  at
 org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:2
 79)
  at
 org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:2
 65)
  at
 org.apache.myfaces.config.FacesConfigurator.configureLifecycle(FacesConfigur
 ator.java:652)
  at
 org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java
 :144)
  at
 org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupSer
 vletContextListener.java:66)
  at
 org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(S
 tartupServletContextListener.java:49)
  at
 org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:
 3727)
 ...
 
 Am I missing a jar?  Any idea where those classes are supposed to come
 from?
 
 
 
 
 
 


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


RE: dataTable separator line

2006-06-28 Thread David Friedman



I'm 
not sure I understand. What would 'descriptive text around the border' in a 
traditional table or CSS look like?

Regards,
David

  -Original Message-From: Dave 
  [mailto:[EMAIL PROTECTED]Sent: Thursday, June 29, 2006 12:50 
  AMTo: MyFaces DiscussionSubject: RE: dataTable separator 
  line
  Hi david,
  Thanks!
  
  Is it possible to print some descriptivetext on the 
  border?David Friedman [EMAIL PROTECTED] 
  wrote:
  

How about setting:
h:dataTable columnClasses="classA,classA,classA,classB" 


Where classA doesn't have a border width but classB does have a wide 
bottom border? Or maybe classB just has a much wider bottom border 
than classA that way everyone has one kind of (at least small) bottom border 
creating lines between the rows.

Regards,
David

  -Original Message-From: Dave 
  [mailto:[EMAIL PROTECTED]Sent: Wednesday, June 28, 2006 10:13 
  PMTo: users@myfaces.apache.orgSubject: dataTable 
  separator line
  For a dataTable, How to add a horizontal line between groups 
  of4 rows?Thanks!
  
  Row1
  Row2
  Row3
  Row4
  -
  Row5
  Row6
  Row7
  Row8
  
  
  
  Do you Yahoo!?Everyone is raving about the all-new 
  Yahoo! Mail Beta.
  
  
  Yahoo! Messenger with Voice. Make 
  PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or 
less.


RE: Design Type Question

2006-06-28 Thread L Frohman



Another wayto populate _javascript_ arrays with data 
froma jsfbacking bean.

script language="_javascript_"
varmyJavaScriptArray = ${sessionScope.myBackingBean.myValue};
/script

where myBackingBean is the name of the backing bean, 
change sessionScope to
requestScope if myBackingBean is request scope. 
The call to
sessionScope.myBackingBean 
does not initialize the 
myBackingBean, so
myBackingBean must already "be 
there".


De: Gregg Bolinger 
[mailto:[EMAIL PROTECTED] Envoyé: mercredi 28 juin 
2006 20:31À: MyFaces DiscussionObjet: Re: 
Design Type Question
Doh! Didn't even think about that. Thanks.
On 6/28/06, Julian 
Ray [EMAIL PROTECTED] 
wrote: 

  
  
  Couldn't 
  you use a h:outputText value="#{myBackingBean.}} / and 
  either (a) write out the whole _javascript_ or (b) just write out the array 
  part?
  
  
  
  
  
  From: Gregg Bolinger 
  [mailto:[EMAIL PROTECTED]] 
  Sent: Wednesday, June 28, 2006 1:38 
  PM
  To: MyFaces DiscussionSubject: Re: Design Type 
  Question
  
  
  Thanks Julian. *Unfortunately* I'm well adapt at _javascript_ 
  so I already know how to do that. What I don't know is how to populate 
  _javascript_ arrays with data from my backing bean.Aside from a custom 
  component, I'd assume I need to do something like that. 
Thanks.
  On 6/28/06, Julian 
  Ray [EMAIL PROTECTED] 
  wrote: 
  


Here is 
an example, I have not tested it but have used similar 
approaches

http://www._javascript_kit.com/script/script2/multiplecombo.shtml





From: Gregg Bolinger [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, June 28, 2006 11:45 
AMTo: MyFaces DiscussionSubject: Re: Design Type 
Question

Julian,Thanks for the suggestions. How would I go 
about populating _javascript_ values with data from the backing bean if I were 
to go with [1]? Any links with this info?Thanks.
On 6/28/06, Julian 
Ray [EMAIL PROTECTED] wrote: 

  
  
  Some 
  suggestions
  
  [1] 
  Use client-side population of teh drop downs
  [2] 
  Use 2 backing beans, 1 for the drop down and 1 for the articles. Lazily 
  load all getters. Use t:saveState to store the filter 
  bean.
  [3] 
  Use Ajax
  
  
  From: Gregg Bolinger [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 
  June 28, 2006 10:20 AMTo: MyFaces DiscussionSubject: 
  Design Type Question
  
  This isn't about MyFaces specifically so I apologize but this 
  list is the best JSF resource I know of. ;)I have a page that 
  contains a list of Articles. There are also filter criteria to 
  filter the list of Articles. The article list is a dataTable who's 
  value is a method in the backing bean that returns a list of 
  articles. Simple enough. So when the page first loads, I get 
  all the articles. The problem I am facing is part of the filter is 
  3 levels of categories. Category, Sub Category, and a Sub Sub 
  Category. Each of these is a selectOneMenu and the child catagories 
  depends on the parent category. So I have valueChangeListeners 
  registered so that when one drop down changes, the child dropdown gets new 
  values. The problem with this is that when this happens, my method 
  to get the list of articles is called. But I don't want this to 
  happen until I click the Search button. So I am just looking for 
  solutions to solve this. Thanks.
  

  


RE: How to displayi an images generated by a managed bean?

2006-06-28 Thread L Frohman
Look at:

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

there is also a chart creator:

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

Lance

-Message d'origine-
De : Paul Spencer [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 29 juin 2006 05:14
À : MyFaces Discussion
Objet : How to displayi an images generated by a managed bean?

I need to include a graphic image generated by JFreeCharts.  Currently the
generation of the image is in an action of a managed bean and is displayed
in a separate windows via h:commandButton.  How should I convert this to a
h:graphicImage so it can be displayed in an existing page?

Paul Spencer