Re: newBee question : what are these additional declaration in web.xml for jsf stuff.

2006-03-20 Thread Legolas Woodland




Hi Dean,
I have changed my web.xml  file as follow :




   Faces Servlet

  
javax.faces.webapp.FacesServlet

   1

   


   


   

   Faces Servlet

   *.leg

   


I have *No* .leg file in my web root file.
i have files like :
index.jsp
logout.jsp
login.jsp

When i tried to access my index.jsp using the following url :
http://127.0.0.1:8080/test/index.leg
it return 
HTTP Status 404 -

what else i should configure to use .leg extension ?
should i change all of myfiles extension to .leg?


before this i used the formal /faces/* as a url pattern , on that time
i could access my jsp files  using
http://localhost:8080/test/faces/index.jsp


Thanks


Dean Hiller wrote:
yes, I
use *.jsf.  when a url http://localhost:8080/webapp/page.jsf is called,
it calls the jsp in webroot of your war file.  I also personally put
this in my web.xml.
  
  

  
  javax.faces.DEFAULT_SUFFIX
  
  .jspx
  

  
  
This allows me to name all my JSF jsps .jspx and I can name all my
normal jsps(that are not for JSF) x.jsp.  I tried to figure out how
I could use jsf in the url and in the file name in the war file, but it
seems that cannot be done right now(or I could not figure it out).
  
later,
  
dean
  
  
  
  
Legolas Woodland wrote:
  
  
  There are two declaration in web.xml that i
can not understand

these are :




   Faces Servlet

  
javax.faces.webapp.FacesServlet

   1

   


   


   

   Faces Servlet

   /faces/*

   



I just can not understand , in some places they set another url-pattern
, for example :

   *.faces

and thier application works file.


but for me with the first url-mapping , i should navigate to

http://localhost:8080/testApp/faces/index.jsp to works

so my understanding is that :

when i navigate to that url , the pattern matches and filter applies to
my request.


but when people uses *.faces in url-pattern , how they navigate to jsp
pages ?

should they change the file extensions to use jsf pages , or there is
some other triks ?



Thank you

  
  
  
  






Re: java.lang.NullPointerException during render phase when using ADF and MyFaces Tomahwak components together

2006-03-20 Thread Adam Winer
Murray,

You need to install the FaceletViewHandler using:

 
 oracle.adf.view.faces.ALTERNATE_VIEW_HANDLER
   com.sun.facelets.FaceletViewHandler
  

in WEB-INF/web.xml, not in faces-config.xml.

Also, not that it's related to this issue, you need to install the ADF Faces
Filter.  Check out the config posted in the other thread for all the details.

-- Adam



On 3/20/06, Murray Brandon <[EMAIL PROTECTED]> wrote:
> Apologies if this topic has been done to death in the group as I've just
> joined.
> I'm sure it's something to do with my configuration of web.xml or
> faces-config.xml, but what?
> Either the AdfRenderingContext isn't attached to the thread or
> getProperties() is returning null.
> I'm using the dump of ADF attached to the myfaces site (ie.
> adf-faces-impl-ea20-SNAPSHOT).
> I don't think it is trying to render any of the ADF tags (same null
> pointer if I comment out the ADF tags),
> this is on render of tomahawk/myfaces tags.
>
> Any help appreciated!
>
> Regards, Murray
> 
> ===
>
> SEVERE: Error Rendering View[/main.xhtml]
> java.lang.NullPointerException
> at
> oracle.adfinternal.view.faces.uinode.FacesRenderingContext.setRenderingP
> roperty(FacesRenderingContext.java:157)
> at
> oracle.adfinternal.view.faces.ui.RenderedNodeRenderingContext.setPropert
> y(RenderedNodeRenderingContext.java:162)
> at
> oracle.adfinternal.view.faces.ui.RootRenderingContext.init(RootRendering
> Context.java:81)
> at
> oracle.adfinternal.view.faces.uinode.FacesRenderingContext.(FacesR
> enderingContext.java:106)
> at
> oracle.adfinternal.view.faces.uinode.FacesRenderingContext.createRenderi
> ngContext(FacesRenderingContext.java:79)
> at
> oracle.adfinternal.view.faces.uinode.UINodeRendererBase.getRenderingCont
> ext(UINodeRendererBase.java:89)
> at
> oracle.adfinternal.view.faces.uinode.FacesRenderingContext.getRenderingC
> ontext(FacesRenderingContext.java:66)
> at
> oracle.adfinternal.view.faces.uinode.FacesRenderingContext.getRenderingC
> ontext(FacesRenderingContext.java:52)
> at
> oracle.adfinternal.view.faces.renderkit.htmlBasic.UINodeRenderer.getRend
> eringContext(UINodeRenderer.java:79)
> at
> oracle.adfinternal.view.faces.renderkit.htmlBasic.UINodeRenderer.encodeB
> egin(UINodeRenderer.java:38)
> at
> javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:5
> 12)
> at
> com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.j
> ava:555)
> at
> com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.j
> ava:562)
> at
> com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.j
> ava:562)
> at
> com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:4
> 57)
> at
> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:367
> )
> at
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:252)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:173)
> at
> org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFil
> ter.java:130)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:202)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:173)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
> e.java:213)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
> e.java:178)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
> Base.java:432)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> :126)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> :105)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
> java:107)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
> 48)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:86
> 9)
> at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc
> essConnection(Http11BaseProtocol.java:667)
> at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
> .java:527)
> at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow
> erWorkerThread.java:80)
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
> .java:684)
> at java.lang.Thread.run(Thread.java:595)
>
>
> From FacesRenderingContext.java:
>
>   protected void setRenderingProperty(Object key, Object value

Re: Anyone got a working ADF + MyFaces Tomahwak setup?

2006-03-20 Thread Rogers Reilly

Murray Brandon wrote:


If so, can you please shoot me a copy of your web.xml and
faces-config.xml files?
Thanks!



 


note- I'm using Facelets, Spring, Shale as well.

faces-config.xml (relevant parts)


   
   
 oracle.adf.core
   





web.xml (includes some stuff you don't need)



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

 display

 
   javax.faces.STATE_SAVING_METHOD
   client
 
 
 javax.faces.DEFAULT_SUFFIX
 .xhtml
 

 
 oracle.adf.view.faces.ALTERNATE_VIEW_HANDLER
   com.sun.facelets.FaceletViewHandler
  
  
   facelets.DEVELOPMENT
   true
  
  
   facelets.BUFFER_SIZE
   8192
  
 
   facelets.LIBRARIES
  
/WEB-INF/facelet/taglib/jb-custom.taglib.xml;/WEB-INF/facelet/taglib/sandbox.taglib.xml;/WEB-INF/facelet/taglib/shale-core.taglib.xml

  
 
  

  
 
   org.apache.shale.remoting.OTHER_RESOURCES
 

   /json/*:org.jb.plat.util.JSF.JSONMethodBindingProcessor
 
   
 
 
 

 shale
 
   org.apache.shale.faces.ShaleApplicationFilter
 
   
   
 shale
 *.xhtml
   
 
 contextConfigLocation
 
/WEB-INF/spring/applicationContext.xml,/WEB-INF/hibernate/applicationContext-hibernate.xml,/WEB-INF/spring/baseball.xml

 
 
 
org.springframework.web.context.ContextLoaderListener

 
 
 sessionFilter
 
org.jb.plat.util.OpenSessionInViewFilter_autoflush

 
   sessionFactoryBeanName
   sessionFactory
   
 
  
 

 sessionFilter
 /*
 


 
   
org.apache.myfaces.webapp.StartupServletContextListener

 
 
   Faces Servlet
   javax.faces.webapp.FacesServlet
   1
 
 
   Faces Servlet
   *.xhtml
 

 
   adfFaces
   oracle.adf.view.faces.webapp.AdfFacesFilter
 

 
   adfFaces
   Faces Servlet
 



 
 resources
 
oracle.adf.view.faces.webapp.ResourceServlet

  

  
   resources
   /adf/*
   


   MyFacesExtensionsFilter
   
org.apache.myfaces.component.html.util.ExtensionsFilter

   
 maxFileSize
 20m
   
   
 
   MyFacesExtensionsFilter
   /faces/*
 
 
   MyFacesExtensionsFilter
   *.jsf
 

 

   MyFacesExtensionsFilter
   *.xhtml
   

 
 
   org.apache.commons.chain.web.ChainListener
 
   




Anyone got a working ADF + MyFaces Tomahwak setup?

2006-03-20 Thread Murray Brandon
If so, can you please shoot me a copy of your web.xml and
faces-config.xml files?
Thanks!



java.lang.NullPointerException during render phase when using ADF and MyFaces Tomahwak components together

2006-03-20 Thread Murray Brandon
Apologies if this topic has been done to death in the group as I've just
joined.
I'm sure it's something to do with my configuration of web.xml or
faces-config.xml, but what?
Either the AdfRenderingContext isn't attached to the thread or
getProperties() is returning null.
I'm using the dump of ADF attached to the myfaces site (ie.
adf-faces-impl-ea20-SNAPSHOT).
I don't think it is trying to render any of the ADF tags (same null
pointer if I comment out the ADF tags),
this is on render of tomahawk/myfaces tags.

Any help appreciated!

Regards, Murray

===

SEVERE: Error Rendering View[/main.xhtml]
java.lang.NullPointerException
at
oracle.adfinternal.view.faces.uinode.FacesRenderingContext.setRenderingP
roperty(FacesRenderingContext.java:157)
at
oracle.adfinternal.view.faces.ui.RenderedNodeRenderingContext.setPropert
y(RenderedNodeRenderingContext.java:162)
at
oracle.adfinternal.view.faces.ui.RootRenderingContext.init(RootRendering
Context.java:81)
at
oracle.adfinternal.view.faces.uinode.FacesRenderingContext.(FacesR
enderingContext.java:106)
at
oracle.adfinternal.view.faces.uinode.FacesRenderingContext.createRenderi
ngContext(FacesRenderingContext.java:79)
at
oracle.adfinternal.view.faces.uinode.UINodeRendererBase.getRenderingCont
ext(UINodeRendererBase.java:89)
at
oracle.adfinternal.view.faces.uinode.FacesRenderingContext.getRenderingC
ontext(FacesRenderingContext.java:66)
at
oracle.adfinternal.view.faces.uinode.FacesRenderingContext.getRenderingC
ontext(FacesRenderingContext.java:52)
at
oracle.adfinternal.view.faces.renderkit.htmlBasic.UINodeRenderer.getRend
eringContext(UINodeRenderer.java:79)
at
oracle.adfinternal.view.faces.renderkit.htmlBasic.UINodeRenderer.encodeB
egin(UINodeRenderer.java:38)
at
javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:5
12)
at
com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.j
ava:555)
at
com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.j
ava:562)
at
com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.j
ava:562)
at
com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:4
57)
at
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:367
)
at
javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
at
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFil
ter.java:130)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:178)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:432)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:86
9)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc
essConnection(Http11BaseProtocol.java:667)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow
erWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:684)
at java.lang.Thread.run(Thread.java:595)


>From FacesRenderingContext.java:

  protected void setRenderingProperty(Object key, Object value)
  {
_adfRenderingContext.getProperties().put(key, value);
  }


web.xml



http://java.sun.com/dtd/web-app_2_3.dtd";>



:
:

facelets.LIBRARIES
 
/WEB-INF/facelet/aui.taglib.xml;/WEB-INF/facelet/tomahawk.t
aglib.xml;/WEB-INF/facelet/af.taglib.xml



javax.faces.STATE_SAVING_METHOD
client



facelets.DEVELOPMENT
true



javax.faces.DEFAULT_SUFFIX
.xhtml



com.sun.faces.validateXml
false

Set this flag to true if you want the JavaServer Faces
Reference Implementation to vali

jscookmenu - why does getValue() always return a string?

2006-03-20 Thread David Schlotfeldt
Two quick questions. I am using the jscookmenu. I have an actionListener 
set on a menu item. Here is the JSF code:

--
 
  actionListener="#{menu.onMenuItemAction}"

 itemLabel="TEST LABEL" itemValue="#{menu.test}"
 action="#{menu.menuItemAction}"/>
 
--

The java code of the menu backing bean...
--
public class CMSMenu {
   public MenuItem getTest() {
   Site site = this.getSiteInstance();
   List list = site.getMenuItems();
   return list.get(0);
   }
   public void onMenuItemAction(ActionEvent event) {
   if (event.getComponent() instanceof HtmlCommandNavigationItem) {
   System.out.println(" ActionListener 
(HtmlCommandNavigationItem):" + 
((HtmlCommandNavigationItem)event.getComponent()).getValue());

   } else {
   String outcome = (String)((HtmlCommandJSCookMenu) 
event.getComponent()).getValue();
   System.out.println(" ActionListener 
(HtmlCommandJSCookMenu): " + outcome);

   }
   }
}
--

Okay.. the two questions:
1. Why is the object returned by event.getComponent() always a 
HtmlCommandJSCookMenu object and never a HtmlCommandNavigationItem?
  (having the 'if' in the action listener is something I saw the 
jscookmenu using.)
2. Why is what the following (which is in the code above) returns always 
a String? It seems a toString() is ran on whatever the menu item's value is.

  (String)((HtmlCommandJSCookMenu) event.getComponent()).getValue()
Is there a way to get the actual object of the item's value instead 
of the string representation of it?


(I am using the nightly build of myfaces & tomahawk.)

Thanks,
David



inputDate -->Birthday

2006-03-20 Thread Dave
Can I use  for birthday (month,day,year)?  I gave it a try, but it seemed it could not handle a birthday that is more than 100 years old. :)  Is it ok to use java.util.Date for birthday and store it in database using a Date column?  or do I need to store month,day and year in three columns?     Thanks!
		Yahoo! Mail
Bring photos to life! New PhotoMail  makes sharing a breeze. 


How to solve paginationed Data table restore that used in request scope?

2006-03-20 Thread Anthony Hong
I have a backing bean in request scope with a datamodel.
Table has pagination function.

Pagination logic is embered in backing bean, when click next and
previous, data display correct.
But if I click a commandLink in dataTable, the rowIndex always
correct. But the data object fetched always the row index in first
page not I expected.

How to solve this problem?

--

Anthony Hong


solution to exception(bad error message here)

2006-03-20 Thread Dean Hiller
The solution to my earlier exception was I named the backing bean 
incorrectly.  funny that I did not get bean not exist error(I think I 
remember getting one from JSF before).  Anyways in this case I had a 
backing bean misnamed in faces-config.xml and I get the very 
uninformitive exception of.(there was nothing in the tomcat logs).



javax.servlet.ServletException: org.apache.jasper.JasperException
   javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
   
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122) 



*root cause*

javax.faces.FacesException: org.apache.jasper.JasperException
   
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:425) 

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

   
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)

   javax.faces.webapp.FacesServlet.service(FacesServlet.java:95)
   
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122) 







Re: newBee question : what are these additional declaration in web.xml for jsf stuff.

2006-03-20 Thread Dean Hiller
yes, I use *.jsf.  when a url http://localhost:8080/webapp/page.jsf is 
called, it calls the jsp in webroot of your war file.  I also personally 
put this in my web.xml.



  javax.faces.DEFAULT_SUFFIX
  .jspx


This allows me to name all my JSF jsps .jspx and I can name all my 
normal jsps(that are not for JSF) x.jsp.  I tried to figure out how 
I could use jsf in the url and in the file name in the war file, but it 
seems that cannot be done right now(or I could not figure it out).

later,
dean



Legolas Woodland wrote:


There are two declaration in web.xml that i can not understand
these are :


   Faces Servlet
   javax.faces.webapp.FacesServlet
   1
   

   

   
   Faces Servlet
   /faces/*
   


I just can not understand , in some places they set another 
url-pattern , for example :

   *.faces
and thier application works file.

but for me with the first url-mapping , i should navigate to
http://localhost:8080/testApp/faces/index.jsp to works
so my understanding is that :
when i navigate to that url , the pattern matches and filter applies 
to my request.


but when people uses *.faces in url-pattern , how they navigate to jsp 
pages ?
should they change the file extensions to use jsf pages , or there is 
some other triks ?



Thank you





Re: newbee question about navigation.

2006-03-20 Thread Legolas Woodland

Thank you , the solution works fine :-)


Joey Geiger wrote:

commandButton and commandLink need to be surrounded by a form.

There are cases where commandLink will work without a form, but I've 
run into issues with that.


Legolas Woodland wrote:

Thank you for reading my post

I have a button in one of my page which i want the application to 
navigate to another page when user

pressed that button .
i made the button like the folwoing
value="Logout">  



and my navigation rule and case is like :
   
   
   Logout
   /Logout.jsp
   
   


but it never navigate to logout page when i press the button
can you tell me what is wrong ?


Thanks










newBee question : what are these additional declaration in web.xml for jsf stuff.

2006-03-20 Thread Legolas Woodland

There are two declaration in web.xml that i can not understand
these are :


   Faces Servlet
   javax.faces.webapp.FacesServlet
   1
   

   

   
   Faces Servlet
   /faces/*
   


I just can not understand , in some places they set another url-pattern 
, for example :

   *.faces
and thier application works file.

but for me with the first url-mapping , i should navigate to
http://localhost:8080/testApp/faces/index.jsp to works
so my understanding is that :
when i navigate to that url , the pattern matches and filter applies to 
my request.


but when people uses *.faces in url-pattern , how they navigate to jsp 
pages ?
should they change the file extensions to use jsf pages , or there is 
some other triks ?



Thank you


inputCalendar problem

2006-03-20 Thread Matthias Kahlau
Hi!


I have a date "18.3.2006" shown in an outputText with a nested
convertDateTime with timeZone="Europe/Berlin". If I open an edit form with
this date "18.3.2006", the date is shown in an inputCalendar, also with a
nested convertDateTime with timeZone="Europe/Berlin".

The problem is that the date is then shown as "19.3.2006". Does the
inputCalendar convert the date itself to another TimeZone?

Thanks.


-Matthias




Re: newbee question about navigation.

2006-03-20 Thread Joey Geiger

commandButton and commandLink need to be surrounded by a form.

There are cases where commandLink will work without a form, but I've run 
into issues with that.


Legolas Woodland wrote:

Thank you for reading my post

I have a button in one of my page which i want the application to 
navigate to another page when user

pressed that button .
i made the button like the folwoing
value="Logout">  



and my navigation rule and case is like :
   
   
   Logout
   /Logout.jsp
   
   


but it never navigate to logout page when i press the button
can you tell me what is wrong ?


Thanks







RE: newbee question about navigation.

2006-03-20 Thread Lance Frohman
try a from-view-id (change "mypage.jsp" to the real page name):


/mypage.jsp

Logout
/Logout.jsp



-Original Message-
From: Legolas Woodland [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 21, 2006 12:36 AM
To: MyFaces Discussion
Subject: newbee question about navigation.

Thank you for reading my post

I have a button in one of my page which i want the application to navigate
to another page when user pressed that button .
i made the button like the folwoing
  


and my navigation rule and case is like :


Logout
 
/Logout.jsp




but it never navigate to logout page when i press the button
can you tell me what is wrong ?


Thanks



newbee question about navigation.

2006-03-20 Thread Legolas Woodland

Thank you for reading my post

I have a button in one of my page which i want the application to 
navigate to another page when user

pressed that button .
i made the button like the folwoing
value="Logout">  



and my navigation rule and case is like :
   
   
   Logout

   /Logout.jsp

   
   


but it never navigate to logout page when i press the button
can you tell me what is wrong ?


Thanks


sorry, stupid mistake!!!

2006-03-20 Thread Dean Hiller
I should have looked closer at the stack trace and the fact is does not 
go through FacesServlet at all.sorry, stupid mistake of a newb.  I 
now get the second exception below in the FacesServlet itself.

thanks for any tips on that one,
dean


Dean Hiller wrote:

I am now getting two different exceptions that both do not show up in 
tomcat logs(catalina.2006-03-20.log) at all for some reason.


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

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393) 

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)

*root cause*

java.lang.NullPointerException
javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:615) 


javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:217)
org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:71)
org.apache.jsp.tree_jsp._jspx_meth_f_view_0(tree_jsp.java:122)
org.apache.jsp.tree_jsp._jspService(tree_jsp.java:98)
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)

I am also getting this one

javax.servlet.ServletException: org.apache.jasper.JasperException
javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122) 



*root cause*

javax.faces.FacesException: org.apache.jasper.JasperException
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:425) 

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

org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300) 


javax.faces.webapp.FacesServlet.service(FacesServlet.java:95)
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122) 






Dennis Byrne wrote:

Explicitly setting the @ids in the page will give a more meaningful 
error message. 
Dennis Byrne


 


-Original Message-
From: Dean Hiller [mailto:[EMAIL PROTECTED]
Sent: Monday, March 20, 2006 08:43 AM
To: 'MyFaces Discussion'
Subject: how to debug...another crptic exception

I am getting the following error from a jsp but it doesn't say which 
property it can't get a value for.  Are there logs I can turn on and 
how?

thanks,
dean

javax.servlet.ServletException: Could not get property value of 
component userRegisterForm:_id6

javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122) 



*root cause*

javax.faces.FacesException: Could not get property value of 
component userRegisterForm:_id6
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421) 

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

org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300) 


javax.faces.webapp.FacesServlet.service(FacesServlet.java:95)
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122) 






  




 







Re: Is there any "add remove List " component available ?

2006-03-20 Thread Craig McClanahan
On 1/1/06, Legolas Woodland <[EMAIL PROTECTED]> wrote:
HiThank you for reading my posy."Add remove list " is a component that has two list box and two buttonswhich facilitate selection of some items from available list to selectedlist.there is one component like the above but much more completer in SJC ,
but it does not works well in a portlet page (at least for Pluto , whichis bundled with Creator 2 EA 2) it always render vertically instead of ahorizontal render.This is really off topic for the MyFaces list :-), but there was a bug in Creator 2 EA2 on this component that was fixed in the final release.  You might want to try that as well.
Craig So my requirement is to find a component which is able to do that job.
does any one know something similar ?Thak you


null pointer in myfaces....PLEASE....how to log?

2006-03-20 Thread Dean Hiller
I am now getting two different exceptions that both do not show up in 
tomcat logs(catalina.2006-03-20.log) at all for some reason.


Stacktrace:

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

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
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)

*root cause*

java.lang.NullPointerException

javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:615)
javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:217)
org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:71)
org.apache.jsp.tree_jsp._jspx_meth_f_view_0(tree_jsp.java:122)
org.apache.jsp.tree_jsp._jspService(tree_jsp.java:98)
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)

I am also getting this one

javax.servlet.ServletException: org.apache.jasper.JasperException
javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)

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

*root cause*

javax.faces.FacesException: org.apache.jasper.JasperException

org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:425)

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

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

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




Dennis Byrne wrote:

Explicitly setting the @ids in the page will give a more meaningful error message.  


Dennis Byrne

 


-Original Message-
From: Dean Hiller [mailto:[EMAIL PROTECTED]
Sent: Monday, March 20, 2006 08:43 AM
To: 'MyFaces Discussion'
Subject: how to debug...another crptic exception

I am getting the following error from a jsp but it doesn't say which 
property it can't get a value for.  Are there logs I can turn on and how?

thanks,
dean

javax.servlet.ServletException: Could not get property value of component 
userRegisterForm:_id6
javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)

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

*root cause*

javax.faces.FacesException: Could not get property value of component 
userRegisterForm:_id6

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

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

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

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




   




 





inputCalendar problem

2006-03-20 Thread Matthias Kahlau
Hi!


I have a date "18.3.2006" shown in an outputText with a nested
convertDateTime with timeZone="Europe/Berlin". If I open an edit form with
this date "18.3.2006", the date is shown in an inputCalendar, also with a
nested convertDateTime with timeZone="Europe/Berlin".

The problem is that the date is then shown as "19.3.2006". Does the
inputCalendar convert the date itself to another TimeZone?

Thanks.


-Matthias



Re: No variables in t:column header facets! Bug?

2006-03-20 Thread Mike Kienenberger
On 3/20/06, octoberdan <[EMAIL PROTECTED]> wrote:
> Great! Thank you all for the  help. Any last pointers [on t:columns]?

Just remember that UIData subclasses all use
getRowData()/getRowIndex() and this is still true for UIColumns.

So to get the current column, you'd still use UIColumns.getRowData().


Re: DummyFormUtils.isWriteDummyForm exception with March 15th build

2006-03-20 Thread Andrew Robinson
I also made this bash script to extract all the jar files that are needed:

#!/bin/sh

DEST=/usr/local/java-apps/myfaces/svn
SRC_BASE=/usr/local/java-apps/myfaces-current
SRC=$SRC_BASE/tomahawk/sandbox/examples/target/myfaces-example-sandbox/WEB-INF/lib

cp $SRC_BASE/core/api/target/myfaces-api-*-SNAPSHOT.jar $DEST/
cp $SRC_BASE/core/impl/target/myfaces-impl-*-SNAPSHOT.jar $DEST/
cp $SRC_BASE/tomahawk/core/target/tomahawk-*-SNAPSHOT.jar $DEST/
cp $SRC_BASE/tomahawk/sandbox/core/target/tomahawk-sandbox-*-SNAPSHOT.jar $DEST/
cp $SRC_BASE/shared/shared-impl/target/myfaces-shared-impl-2.0.1-SNAPSHOT.jar
$DEST/
cp -u $SRC/*.jar $DEST/

I think the inclusion of the myfaces-shared-impl helped, but that is a guess.

On 3/20/06, Andrew Robinson <[EMAIL PROTECTED]> wrote:
> URL: http://svn.apache.org/repos/asf/myfaces/current
> Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68
> Revision: 387131
> Node Kind: directory
> Schedule: normal
> Last Changed Author: imario
> Last Changed Rev: 382077
> Last Changed Date: 2006-03-01 09:40:55 -0700 (Wed, 01 Mar 2006)
> Properties Last Updated: 2006-03-16 19:28:54 -0700 (Thu, 16 Mar 2006)
>
>
> On 3/20/06, octoberdan <[EMAIL PROTECTED]> wrote:
> >
> > Revision: 387290?
> >
> >
> > Andrew Robinson-5 wrote:
> > >
> > > Current SVN works. That is what I resorted to
> > >
> > > On 3/20/06, octoberdan <[EMAIL PROTECTED]> wrote:
> > >>
> > >> I'm running into the same problem... is there a work around?
> > >>
> > >>
> > >> Dave Brondsema wrote:
> > >> >
> > >> > Mikhail Grushinskiy wrote:
> > >> >> Latest night (March 15th, 2006) build causes the following error at
> > >> >> runtime:
> > >> >>
> > >> >>  java.lang.NoSuchMethodError:
> > >> >> org.apache.myfaces.renderkit.html.util.DummyFormUtils.isWriteDummyForm
> > >> >> (Ljavax/faces/context/FacesContext;)Z at
> > >> >>
> > >> >>
> > >> org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.writeCodeBeforeBodyEnd(ExtensionsPhaseListener.java:107)
> > >> >> at
> > >> >>
> > >> >>
> > >> org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.getCodeBeforeBodyEnd
> > >> >> (ExtensionsPhaseListener.java:93)
> > >> >>
> > >> >> Thanks,
> > >> >> --MG
> > >> >>
> > >> >
> > >> > I also get this sometimes, I think depending on which subprojects (api,
> > >> > impl, shared, tomahawk, etc) I have rebuilt and which one are a little
> > >> > old.
> > >> >
> > >> > Any pointers on how to avoid this?
> > >> >
> > >> > --
> > >> > Dave Brondsema
> > >> > Software Developer
> > >> > Cornerstone University
> > >> >
> > >> >
> > >> >
> > >>
> > >> --
> > >> View this message in context:
> > >> http://www.nabble.com/DummyFormUtils.isWriteDummyForm-exception-with-March-15th-build-t1287509.html#a3500611
> > >> Sent from the MyFaces - Users forum at Nabble.com.
> > >>
> > >>
> > >
> > >
> > --
> > View this message in context: 
> > http://www.nabble.com/DummyFormUtils.isWriteDummyForm-exception-with-March-15th-build-t1287509.html#a3500929
> > Sent from the MyFaces - Users forum at Nabble.com.
> >
> >
>


Re: DummyFormUtils.isWriteDummyForm exception with March 15th build

2006-03-20 Thread Andrew Robinson
URL: http://svn.apache.org/repos/asf/myfaces/current
Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68
Revision: 387131
Node Kind: directory
Schedule: normal
Last Changed Author: imario
Last Changed Rev: 382077
Last Changed Date: 2006-03-01 09:40:55 -0700 (Wed, 01 Mar 2006)
Properties Last Updated: 2006-03-16 19:28:54 -0700 (Thu, 16 Mar 2006)


On 3/20/06, octoberdan <[EMAIL PROTECTED]> wrote:
>
> Revision: 387290?
>
>
> Andrew Robinson-5 wrote:
> >
> > Current SVN works. That is what I resorted to
> >
> > On 3/20/06, octoberdan <[EMAIL PROTECTED]> wrote:
> >>
> >> I'm running into the same problem... is there a work around?
> >>
> >>
> >> Dave Brondsema wrote:
> >> >
> >> > Mikhail Grushinskiy wrote:
> >> >> Latest night (March 15th, 2006) build causes the following error at
> >> >> runtime:
> >> >>
> >> >>  java.lang.NoSuchMethodError:
> >> >> org.apache.myfaces.renderkit.html.util.DummyFormUtils.isWriteDummyForm
> >> >> (Ljavax/faces/context/FacesContext;)Z at
> >> >>
> >> >>
> >> org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.writeCodeBeforeBodyEnd(ExtensionsPhaseListener.java:107)
> >> >> at
> >> >>
> >> >>
> >> org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.getCodeBeforeBodyEnd
> >> >> (ExtensionsPhaseListener.java:93)
> >> >>
> >> >> Thanks,
> >> >> --MG
> >> >>
> >> >
> >> > I also get this sometimes, I think depending on which subprojects (api,
> >> > impl, shared, tomahawk, etc) I have rebuilt and which one are a little
> >> > old.
> >> >
> >> > Any pointers on how to avoid this?
> >> >
> >> > --
> >> > Dave Brondsema
> >> > Software Developer
> >> > Cornerstone University
> >> >
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/DummyFormUtils.isWriteDummyForm-exception-with-March-15th-build-t1287509.html#a3500611
> >> Sent from the MyFaces - Users forum at Nabble.com.
> >>
> >>
> >
> >
> --
> View this message in context: 
> http://www.nabble.com/DummyFormUtils.isWriteDummyForm-exception-with-March-15th-build-t1287509.html#a3500929
> Sent from the MyFaces - Users forum at Nabble.com.
>
>


Re: how to debug...another crptic exception

2006-03-20 Thread Dean Hiller

sweeet, thanks much,
dean

Dennis Byrne wrote:

Explicitly setting the @ids in the page will give a more meaningful error message.  


Dennis Byrne

 


-Original Message-
From: Dean Hiller [mailto:[EMAIL PROTECTED]
Sent: Monday, March 20, 2006 08:43 AM
To: 'MyFaces Discussion'
Subject: how to debug...another crptic exception

I am getting the following error from a jsp but it doesn't say which 
property it can't get a value for.  Are there logs I can turn on and how?

thanks,
dean

javax.servlet.ServletException: Could not get property value of component 
userRegisterForm:_id6
javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)

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

*root cause*

javax.faces.FacesException: Could not get property value of component 
userRegisterForm:_id6

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

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

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

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




   




 





Re: mouse over..

2006-03-20 Thread Dean Hiller
I wonder if popup would work. I use it for a tree and the mouse over on 
the graphic in my tree works and pops up a popup menu. I just can't get 
the actual menu item to work and do what I want(but sounds like you can 
just use outputText and don't need commandLinks).

dean

[EMAIL PROTECTED] wrote:


Hi !

Is there a simple way with JSF to display a message while putting the 
mouse on a selectItem of a selectOneListBox?


For example: if I have a list box to choose between work and hobbies, 
while putting the mouse on “hobbies” I will display all hobbies I 
stored in my class.


Thanks

Sophie



*De :* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
*Envoyé :* dimanche 19 mars 2006 22:09
*À :* MyFaces Discussion; [EMAIL PROTECTED]
*Objet :* AW: multi-selection in selectOneListBox

I think the problem is the configuration of your commandButton:

action="#{MyClass.finish}" styleClass="wizardButton" immediate="true”>


You set immediate=true, which causes the ActionEvent to be processed 
BEFORE and WITHOUT any model update, which would cause your 
setSelectedTrades method to be called. You have to use 
immediate=false. In this case, the ActionEvent is processed in a later 
phase, after model update.


-Matthias

-Ursprüngliche Nachricht-
*Von:* [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] 
Auftrag von [EMAIL PROTECTED]

*Gesendet:* Sonntag, 19. März 2006 20:47
*An:* 'MyFaces Discussion'; [EMAIL PROTECTED]
*Betreff:* RE: multi-selection in selectOneListBox

I have also this setSelectedTrades to get the selected trades in
the jsp page while doing finish :

public void setSelectedTrades(String[] selTrades)

{

logger.info("[MyWizard]start setSelectedTrade");

for(int i=0; i


#{MyClass.selectedTrades} calls setSelectedTrades no?

Thanks.

Sophie



*De :* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
*Envoyé :* dimanche 19 mars 2006 18:54
*À :* [EMAIL PROTECTED]; 'MyFaces Discussion'
*Objet :* RE: multi-selection in selectOneListBox

I am not really familiar with JSF lifecyle…

Here is my code in the JSF code to select the trades and to submit
it (finish)



:








[…]





this.allTradesArray = new SelectItem[this.allTrades.size()];

int i=0;

for(SelectItem sel: this.allTrades)

{

this.allTradesArray[i] = sel;

i++;

}

Do you need other code?

Thanks again!

Sophie



*De :* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
*Envoyé :* dimanche 19 mars 2006 11:39
*À :* MyFaces Discussion; [EMAIL PROTECTED]
*Objet :* AW: multi-selection in selectOneListBox

I need more info... In which phase of the JSF request lifecycle do
you evaluate or write out the selection? How do you submit the
form, could you please post the code for the action or sth. else
which does perform the submit.

-Matthias

-Ursprüngliche Nachricht-
*Von:* [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Auftrag von [EMAIL PROTECTED]
*Gesendet:* Sonntag, 19. März 2006 08:27
*An:* 'MyFaces Discussion'
*Betreff:* RE: multi-selection in selectOneListBox

I am using String datatype…



*De :* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
*Envoyé :* samedi 18 mars 2006 20:24
*À :* MyFaces Discussion; [EMAIL PROTECTED]
*Objet :* AW: multi-selection in selectOneListBox

Which datatype do you use for the SelectItem's values?

-Matthias

-Ursprüngliche Nachricht-
*Von:*
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Auftrag von [EMAIL PROTECTED]
*Gesendet:* Samstag, 18. März 2006 18:48
*An:* 'MyFaces Discussion'
*Betreff:* RE: multi-selection in selectOneListBox

I tried to use an array for the selectedTrades
(String[nbTrades]) and an array for all my trades
(SelectItem[nbTrades])

But that does not work, I have nbTrades selectedTrades
that are all null.

Sophie




*De :* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
*Envoyé :* samedi 18 mars 2006 16:44
*À :* MyFaces Discussion; [EMAIL PROTECTED]
*Objet :* AW: multi-selection in selectOneListBox

I've never used the //selectManyListbox// action myself.
But I remember a problem when using a List for the
selected values of a selectManyCheckbox, which also didn't
work. I used an Array with the type of

Re: DummyFormUtils.isWriteDummyForm exception with March 15th build

2006-03-20 Thread octoberdan

Revision: 387290?


Andrew Robinson-5 wrote:
> 
> Current SVN works. That is what I resorted to
> 
> On 3/20/06, octoberdan <[EMAIL PROTECTED]> wrote:
>>
>> I'm running into the same problem... is there a work around?
>>
>>
>> Dave Brondsema wrote:
>> >
>> > Mikhail Grushinskiy wrote:
>> >> Latest night (March 15th, 2006) build causes the following error at
>> >> runtime:
>> >>
>> >>  java.lang.NoSuchMethodError:
>> >> org.apache.myfaces.renderkit.html.util.DummyFormUtils.isWriteDummyForm
>> >> (Ljavax/faces/context/FacesContext;)Z at
>> >>
>> >>
>> org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.writeCodeBeforeBodyEnd(ExtensionsPhaseListener.java:107)
>> >> at
>> >>
>> >>
>> org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.getCodeBeforeBodyEnd
>> >> (ExtensionsPhaseListener.java:93)
>> >>
>> >> Thanks,
>> >> --MG
>> >>
>> >
>> > I also get this sometimes, I think depending on which subprojects (api,
>> > impl, shared, tomahawk, etc) I have rebuilt and which one are a little
>> > old.
>> >
>> > Any pointers on how to avoid this?
>> >
>> > --
>> > Dave Brondsema
>> > Software Developer
>> > Cornerstone University
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/DummyFormUtils.isWriteDummyForm-exception-with-March-15th-build-t1287509.html#a3500611
>> Sent from the MyFaces - Users forum at Nabble.com.
>>
>>
> 
> 
--
View this message in context: 
http://www.nabble.com/DummyFormUtils.isWriteDummyForm-exception-with-March-15th-build-t1287509.html#a3500929
Sent from the MyFaces - Users forum at Nabble.com.



Re: No variables in t:column header facets! Bug?

2006-03-20 Thread octoberdan

Great! Thank you all for the  help. Any last pointers?


Mike Kienenberger wrote:
> 
> UIColumns is basically a UIData "turned sideways"
> 
> So you have a data model for your rows, and then you have a second
> data model for each of your columns.
> 
> crossDataTable.jsp in myfaces-example-simple gives an example of using it.
> 
> "Live" online demo is here -- lets you add columns each submit.
> 
> http://www.irian.at/myfaces/crossDataTable.jsf
> 
> On 3/20/06, Andrew Robinson <[EMAIL PROTECTED]> wrote:
>> I think it would be something like:
>>
>> UIData data = new UIData();
>> UIColumn col = new UIColumn();
>> data.getChildren().add(col);
>> etc.
>>
>> You are basically building the component tree by hand.
>>
>> I think tomahawk has a "columns" item too ("UIColumns") that may be less
>> work.
>>
>> Has anyone else done this to provide more knowledge than me?
>>
>> Thanks,
>> Andrew
>>
>> On 3/20/06, octoberdan <[EMAIL PROTECTED]> wrote:
>> >
>> > > 
>> >
>> > > where "data" is a property that returns an instance of
>> > > "javax.faces.component.UIData".
>> >
>> > > Then you would just build this UIData component programatically in
>> > > your backing bean.
>> >
>> > Looking over the classes methods there doesn't seem to be any able to
>> add
>> > columns...
>> >
>> > > Searching for posts and/or tutorials should help more.
>> > I tried looking for a relavent example but can't seem to find one... do
>> you
>> > know of any by chance?
>> >
>> > --
>> > View this message in context:
>> http://www.nabble.com/No-variables-in-t%3Acolumn-header-facets%21-Bug--t1312124.html#a3499883
>> > Sent from the MyFaces - Users forum at Nabble.com.
>> >
>> >
>>
> 
> 
--
View this message in context: 
http://www.nabble.com/No-variables-in-t%3Acolumn-header-facets%21-Bug--t1312124.html#a3500891
Sent from the MyFaces - Users forum at Nabble.com.



Re: DummyFormUtils.isWriteDummyForm exception with March 15th build

2006-03-20 Thread octoberdan

That's quite odd... I wonder why I'm still having that problem...


Andrew Robinson-5 wrote:
> 
> Current SVN works. That is what I resorted to
> 
> On 3/20/06, octoberdan <[EMAIL PROTECTED]> wrote:
>>
>> I'm running into the same problem... is there a work around?
>>
>>
>> Dave Brondsema wrote:
>> >
>> > Mikhail Grushinskiy wrote:
>> >> Latest night (March 15th, 2006) build causes the following error at
>> >> runtime:
>> >>
>> >>  java.lang.NoSuchMethodError:
>> >> org.apache.myfaces.renderkit.html.util.DummyFormUtils.isWriteDummyForm
>> >> (Ljavax/faces/context/FacesContext;)Z at
>> >>
>> >>
>> org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.writeCodeBeforeBodyEnd(ExtensionsPhaseListener.java:107)
>> >> at
>> >>
>> >>
>> org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.getCodeBeforeBodyEnd
>> >> (ExtensionsPhaseListener.java:93)
>> >>
>> >> Thanks,
>> >> --MG
>> >>
>> >
>> > I also get this sometimes, I think depending on which subprojects (api,
>> > impl, shared, tomahawk, etc) I have rebuilt and which one are a little
>> > old.
>> >
>> > Any pointers on how to avoid this?
>> >
>> > --
>> > Dave Brondsema
>> > Software Developer
>> > Cornerstone University
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/DummyFormUtils.isWriteDummyForm-exception-with-March-15th-build-t1287509.html#a3500611
>> Sent from the MyFaces - Users forum at Nabble.com.
>>
>>
> 
> 
--
View this message in context: 
http://www.nabble.com/DummyFormUtils.isWriteDummyForm-exception-with-March-15th-build-t1287509.html#a3500863
Sent from the MyFaces - Users forum at Nabble.com.



Re: DummyFormUtils.isWriteDummyForm exception with March 15th build

2006-03-20 Thread Andrew Robinson
Current SVN works. That is what I resorted to

On 3/20/06, octoberdan <[EMAIL PROTECTED]> wrote:
>
> I'm running into the same problem... is there a work around?
>
>
> Dave Brondsema wrote:
> >
> > Mikhail Grushinskiy wrote:
> >> Latest night (March 15th, 2006) build causes the following error at
> >> runtime:
> >>
> >>  java.lang.NoSuchMethodError:
> >> org.apache.myfaces.renderkit.html.util.DummyFormUtils.isWriteDummyForm
> >> (Ljavax/faces/context/FacesContext;)Z at
> >>
> >> org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.writeCodeBeforeBodyEnd(ExtensionsPhaseListener.java:107)
> >> at
> >>
> >> org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.getCodeBeforeBodyEnd
> >> (ExtensionsPhaseListener.java:93)
> >>
> >> Thanks,
> >> --MG
> >>
> >
> > I also get this sometimes, I think depending on which subprojects (api,
> > impl, shared, tomahawk, etc) I have rebuilt and which one are a little
> > old.
> >
> > Any pointers on how to avoid this?
> >
> > --
> > Dave Brondsema
> > Software Developer
> > Cornerstone University
> >
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/DummyFormUtils.isWriteDummyForm-exception-with-March-15th-build-t1287509.html#a3500611
> Sent from the MyFaces - Users forum at Nabble.com.
>
>


Does any one used zk1 for ajax purpose ?

2006-03-20 Thread Legolas Woodland

Hi
Does any one used http://zk1.sourceforge.net/ for ajax purpose ?
how does it compare with other ajax frameworks?


Thanks


Re: DummyFormUtils.isWriteDummyForm exception with March 15th build

2006-03-20 Thread octoberdan

I'm running into the same problem... is there a work around?


Dave Brondsema wrote:
> 
> Mikhail Grushinskiy wrote:
>> Latest night (March 15th, 2006) build causes the following error at
>> runtime:
>> 
>>  java.lang.NoSuchMethodError:
>> org.apache.myfaces.renderkit.html.util.DummyFormUtils.isWriteDummyForm
>> (Ljavax/faces/context/FacesContext;)Z at
>> 
>> org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.writeCodeBeforeBodyEnd(ExtensionsPhaseListener.java:107)
>> at
>> 
>> org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.getCodeBeforeBodyEnd
>> (ExtensionsPhaseListener.java:93)
>> 
>> Thanks,
>> --MG
>> 
> 
> I also get this sometimes, I think depending on which subprojects (api,
> impl, shared, tomahawk, etc) I have rebuilt and which one are a little
> old.
> 
> Any pointers on how to avoid this?
> 
> -- 
> Dave Brondsema
> Software Developer
> Cornerstone University
> 
> 
> 

--
View this message in context: 
http://www.nabble.com/DummyFormUtils.isWriteDummyForm-exception-with-March-15th-build-t1287509.html#a3500611
Sent from the MyFaces - Users forum at Nabble.com.



Re: No variables in t:column header facets! Bug?

2006-03-20 Thread Mike Kienenberger
UIColumns is basically a UIData "turned sideways"

So you have a data model for your rows, and then you have a second
data model for each of your columns.

crossDataTable.jsp in myfaces-example-simple gives an example of using it.

"Live" online demo is here -- lets you add columns each submit.

http://www.irian.at/myfaces/crossDataTable.jsf

On 3/20/06, Andrew Robinson <[EMAIL PROTECTED]> wrote:
> I think it would be something like:
>
> UIData data = new UIData();
> UIColumn col = new UIColumn();
> data.getChildren().add(col);
> etc.
>
> You are basically building the component tree by hand.
>
> I think tomahawk has a "columns" item too ("UIColumns") that may be less work.
>
> Has anyone else done this to provide more knowledge than me?
>
> Thanks,
> Andrew
>
> On 3/20/06, octoberdan <[EMAIL PROTECTED]> wrote:
> >
> > > 
> >
> > > where "data" is a property that returns an instance of
> > > "javax.faces.component.UIData".
> >
> > > Then you would just build this UIData component programatically in
> > > your backing bean.
> >
> > Looking over the classes methods there doesn't seem to be any able to add
> > columns...
> >
> > > Searching for posts and/or tutorials should help more.
> > I tried looking for a relavent example but can't seem to find one... do you
> > know of any by chance?
> >
> > --
> > View this message in context: 
> > http://www.nabble.com/No-variables-in-t%3Acolumn-header-facets%21-Bug--t1312124.html#a3499883
> > Sent from the MyFaces - Users forum at Nabble.com.
> >
> >
>


Re: No variables in t:column header facets! Bug?

2006-03-20 Thread Andrew Robinson
I think it would be something like:

UIData data = new UIData();
UIColumn col = new UIColumn();
data.getChildren().add(col);
etc.

You are basically building the component tree by hand.

I think tomahawk has a "columns" item too ("UIColumns") that may be less work.

Has anyone else done this to provide more knowledge than me?

Thanks,
Andrew

On 3/20/06, octoberdan <[EMAIL PROTECTED]> wrote:
>
> > 
>
> > where "data" is a property that returns an instance of
> > "javax.faces.component.UIData".
>
> > Then you would just build this UIData component programatically in
> > your backing bean.
>
> Looking over the classes methods there doesn't seem to be any able to add
> columns...
>
> > Searching for posts and/or tutorials should help more.
> I tried looking for a relavent example but can't seem to find one... do you
> know of any by chance?
>
> --
> View this message in context: 
> http://www.nabble.com/No-variables-in-t%3Acolumn-header-facets%21-Bug--t1312124.html#a3499883
> Sent from the MyFaces - Users forum at Nabble.com.
>
>


Re: No variables in t:column header facets! Bug?

2006-03-20 Thread octoberdan

> 

> where "data" is a property that returns an instance of
> "javax.faces.component.UIData".

> Then you would just build this UIData component programatically in
> your backing bean.

Looking over the classes methods there doesn't seem to be any able to add
columns...

> Searching for posts and/or tutorials should help more.
I tried looking for a relavent example but can't seem to find one... do you
know of any by chance?

--
View this message in context: 
http://www.nabble.com/No-variables-in-t%3Acolumn-header-facets%21-Bug--t1312124.html#a3499883
Sent from the MyFaces - Users forum at Nabble.com.



Re: No variables in t:column header facets! Bug?

2006-03-20 Thread octoberdan

Thank you for the help! This problem has been bugging me for a long time.
--
View this message in context: 
http://www.nabble.com/No-variables-in-t%3Acolumn-header-facets%21-Bug--t1312124.html#a3499665
Sent from the MyFaces - Users forum at Nabble.com.



Re: CommandButton subclass

2006-03-20 Thread Mike Kienenberger
On 3/18/06, Dave <[EMAIL PROTECTED]> wrote:
> HtmlCommandButton is a subclass of UICommand.  Should I subclass
> HtmlCommandButton and override queueEvent(), like

Yes, I think that should work.   Give it a try and see.


> I am new to creating custom components. How to set it up so that I can use
> it in JSP? like tag, where to put the tag description, etc.

For JSP, to create a new component, you would need to specify it in
your faces-config.xml file and in a tld file.   I'm not really very
knowledgeable about JSP, though, as I use facelets instead.   You
could just copy what's in there for HtmlCommandButton.

You might also be able to replace the component-type class for
HtmlCommandButton directly in the faces-config file.   Maybe you
wouldn't need to create a new component definition if you're willing
to use your new component everywhere you currently using an
HtmlCommandButton.

-Mike


Re: "java.lang.ClassNotFoundException" with latest sandbox

2006-03-20 Thread octoberdan

I probably should have mentioned: Revision: 387274  

--
View this message in context: 
http://www.nabble.com/%22java.lang.ClassNotFoundException%22-with-latest-sandbox-t1313112.html#a3499606
Sent from the MyFaces - Users forum at Nabble.com.



Re: Fwd: panelTabbedPane serverSideTabSwitch

2006-03-20 Thread Mike Kienenberger
Raihan,

Did you get an answer to your question?
I'll probably be committing a serverSideTabSwitch patch to MyFaces
today or tomorrow, and I can try to take a look at your tld issue if
you haven't heard back from anyone else.

-Mike


On 3/19/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
>
> Dear Mike,
>
> Thanks a lot for your help.
>
>
> Sincerely,
>
>  Raihan Kibria
>  Sr. Software Engineer
>  TechnoVista Limited
>  Lotus Kamal Tower - One, Level - 9, 57 Zoar Shahara C/A,
>  Nikunja - 2 (North)
>  Dhaka - 1229, Bangladesh
>  Phone: +880 2 895 2704-9
>  Email: [EMAIL PROTECTED]
>
>
>
>
>
>  "Mike Kienenberger" <[EMAIL PROTECTED]>
>
> 02/23/2006 09:30 PM
>
> To "MyFaces User mailing list" 
>
> cc
> "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
>
>
> Subject Fwd: panelTabbedPane serverSideTabSwitch
>
>
>
>
>
>
>
>
> Forwarding to MyFaces users list.
>
>  -- Forwarded message --
>  From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>  Date: Feb 23, 2006 1:27 AM
>  Subject: panelTabbedPane serverSideTabSwitch
>  To: [EMAIL PROTECTED]
>
>
>
>  Hi Mike,
>
>  When I use serverSideTabSwitch, i get exception that the attribute is
>  invalid according to TLD. Could you please let me give some some tips.
>
>  Thanks.
>
>  Sincerely,
>
>   Raihan Kibria
>   Sr. Software Engineer
>   TechnoVista Limited
>   Lotus Kamal Tower - One, Level - 9, 57 Zoar Shahara C/A,
>   Nikunja - 2 (North)
>   Dhaka - 1229, Bangladesh
>   Phone: +880 2 895 2704-9
>   Email: [EMAIL PROTECTED]
>
>


"java.lang.ClassNotFoundException" with latest sandbox

2006-03-20 Thread octoberdan

I just built the latest sandbox source from the repository and added it to my
project. During deployment I get thrown tons of
java.lang.ClassNotFoundException and "Unexpected error during load of." 

Here's an example

13:40:45,352 ERROR [ClassUtils] Class
org.apache.myfaces.custom.dojo.DojoInitializerRenderer not found
java.lang.ClassNotFoundException: Unexpected error during load of:
org.apache.myfaces.custom.dojo.DojoInitializerRenderer,
msg=org/apache/myfaces/shared_tomahawk/renderkit/html/HtmlRenderer
at
org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:512)
at
org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:377)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at org.apache.myfaces.util.ClassUtils.classForName(ClassUtils.java:138)
at
org.apache.myfaces.util.ClassUtils.simpleClassForName(ClassUtils.java:157)
at org.apache.myfaces.util.ClassUtils.newInstance(ClassUtils.java:265)
at
org.apache.myfaces.config.FacesConfigurator.configureRenderKits(FacesConfigurator.java:595)
at
org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:131)
at
org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:63)
at
org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:46)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3669)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4104)
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)
at
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at 
org.apache.catalina.core.StandardContext.init(StandardContext.java:5005)
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)
at
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at
org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:274)
at
org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:91)
at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:357)
at org.jboss.web.WebModule.startModule(WebModule.java:68)
at org.jboss.web.WebModule.startService(WebModule.java:46)
at
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
at
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:897)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:418)
at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.jboss.mx.interceptor.Refl

myfaces t:dataTable

2006-03-20 Thread Greg
Hello,

I have created a sample application which demo's similiar to the
myfaces pagedSortTable demo:

http://www.devosc.com/pub/myfaces-cars.zip

This demo has a new type of DataModel class called a PagedDataModel,
which will work with a ListDataModel, and presumably an
ArrayDataModel, it might work with the ResultDataModel but will not
work (atleast not straight away) with the ResultSetDataModel because
of its getRowCount method implementation.

This demo I believe is the most practical for real usage given the
wiki documentation.

[1] http://wiki.apache.org/myfaces/Working_With_DataTable_And_PreserveDataModel

As far as I can now tell there should be caveat that, that the
discussion is only in regard to having the whole dataset in memory,
given:

"as the data will be retrieved directly from the previously serialized data"

[2] http://wiki.apache.org/myfaces/WorkingWithLargeTables

The method setWrappedData is disabled making it not possible to update
the dataModel when sorting the dataTable and trying to work around it
causes duplicate queries to the database.

The following are observations made of the demo about the number of db
queries queries performed (potential in this case) in a requests
lifecyle given the respective settings, saving state method, bean
scope and preserveDataModel.

[2] client, request, false
[2] client, request, true
[2] server, request, false
[2] server, request, true

[1] client, session, false
[1] client, session, true
[1] server, session, false
[1] server, session, true

The number of calls to create the actual data model is denoted within
the square brackets.

Each test was redeployed and the browser session cookies removed.

So from the above, the only setting that ensures that the database
will not be queried more than once when either scrolling or sorting a
dataTable is if the managed bean is in the session scope and it would
also seem that the preserveDataModel attribute is of no consequence.

I did try to use the 1.1.2-SNAPSHOT jars but a javascript error occurs
related to the dataScroller. I would be interested in using/having the
latest jars that allow the demo to work.

What I would like to understand is why there are two queries being
performed when the bean is in the request scope ?


Re: No variables in t:column header facets! Bug?

2006-03-20 Thread Andrew Robinson
You can also use:



where data in this case is an instance of "javax.faces.model.DataModel"

-Andrew

On 3/20/06, Andrew Robinson <[EMAIL PROTECTED]> wrote:
> I actually haven't done it. Here is a start:
>
> 
>
> where "data" is a property that returns an instance of
> "javax.faces.component.UIData".
>
> Then you would just build this UIData component programatically in
> your backing bean.
>
> Searching for posts and/or tutorials should help more.
>
> Good luck,
> -Andrew
>
>
>
> On 3/20/06, octoberdan <[EMAIL PROTECTED]> wrote:
> >
> > >If you are building a dataTable as a grid with dynamic columns, then
> > >using the binding to a dynamic datamodel is probably what you are
> > >looking for.
> > Sounds interesting... How would I go about implementing that?
> > --
> > View this message in context: 
> > http://www.nabble.com/No-variables-in-t%3Acolumn-header-facets%21-Bug--t1312124.html#a3498912
> > Sent from the MyFaces - Users forum at Nabble.com.
> >
> >
>


Re: No variables in t:column header facets! Bug?

2006-03-20 Thread Andrew Robinson
I actually haven't done it. Here is a start:



where "data" is a property that returns an instance of
"javax.faces.component.UIData".

Then you would just build this UIData component programatically in
your backing bean.

Searching for posts and/or tutorials should help more.

Good luck,
-Andrew



On 3/20/06, octoberdan <[EMAIL PROTECTED]> wrote:
>
> >If you are building a dataTable as a grid with dynamic columns, then
> >using the binding to a dynamic datamodel is probably what you are
> >looking for.
> Sounds interesting... How would I go about implementing that?
> --
> View this message in context: 
> http://www.nabble.com/No-variables-in-t%3Acolumn-header-facets%21-Bug--t1312124.html#a3498912
> Sent from the MyFaces - Users forum at Nabble.com.
>
>


Re: No variables in t:column header facets! Bug?

2006-03-20 Thread octoberdan

>If you are building a dataTable as a grid with dynamic columns, then
>using the binding to a dynamic datamodel is probably what you are
>looking for. 
Sounds interesting... How would I go about implementing that?
--
View this message in context: 
http://www.nabble.com/No-variables-in-t%3Acolumn-header-facets%21-Bug--t1312124.html#a3498912
Sent from the MyFaces - Users forum at Nabble.com.



Re: No variables in t:column header facets! Bug?

2006-03-20 Thread Andrew Robinson
If you are building a dataTable as a grid with dynamic columns, then
using the binding to a dynamic datamodel is probably what you are
looking for.

On 3/20/06, octoberdan <[EMAIL PROTECTED]> wrote:
>
> I want a column with the shortName of each developer in the list of
> developers
> --
> View this message in context: 
> http://www.nabble.com/No-variables-in-t%3Acolumn-header-facets%21-Bug--t1312124.html#a3496897
> Sent from the MyFaces - Users forum at Nabble.com.
>
>


Using MyFaces with Oracle's JDeveloper

2006-03-20 Thread Mike Duffy
Does anyone have a link to a tutorial or blog entry on using MyFaces with 
Oracle's JDeveloper?

Thx.

Mike

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


logging question?

2006-03-20 Thread Dean Hiller
I modify tomcat/conf/logging.properties and no matter what i do, I 
cannot get myfaces logging to work.  I am using tomcat 5.5.16.  I can 
get the tomcat logs to log okay, but not myfaces stuff.  Here is the 
bottom of my logging.properties file (I currently have all the tomcat 
stuff set to info so no extra tomcat logs are in my way, but when I go 
to fine for org.apache.catalina, I do see logs).


javax.faces.level=ALL
org.apache.myfaces.level=ALL

org.apache.catalina.loader.level=INFO
org.apache.catalina.session.level=INFO
org.apache.tomcat.util.level=INFO
org.apache.tomcat.util.digester.level=INFO
org.apache.tomcat.util.digester.Digester.level=INFO
org.apache.catalina.startup.level=INFO
org.apache.commons.level=INFO
org.apache.catalina.level=INFO
org.apache.tomcat.level=INFO

thanks for any help on this,
dean



Re: No variables in t:column header facets! Bug?

2006-03-20 Thread octoberdan

I want a column with the shortName of each developer in the list of
developers
--
View this message in context: 
http://www.nabble.com/No-variables-in-t%3Acolumn-header-facets%21-Bug--t1312124.html#a3496897
Sent from the MyFaces - Users forum at Nabble.com.



Re: how to debug...another crptic exception

2006-03-20 Thread Dennis Byrne
Explicitly setting the @ids in the page will give a more meaningful error 
message.  

Dennis Byrne

>-Original Message-
>From: Dean Hiller [mailto:[EMAIL PROTECTED]
>Sent: Monday, March 20, 2006 08:43 AM
>To: 'MyFaces Discussion'
>Subject: how to debug...another crptic exception
>
>I am getting the following error from a jsp but it doesn't say which 
>property it can't get a value for.  Are there logs I can turn on and how?
>thanks,
>dean
>
>javax.servlet.ServletException: Could not get property value of component 
>userRegisterForm:_id6
>   javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
>   
> org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
>
>*root cause*
>
>javax.faces.FacesException: Could not get property value of component 
>userRegisterForm:_id6
>   
> org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421)
>   
> org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
>   
> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
>   javax.faces.webapp.FacesServlet.service(FacesServlet.java:95)
>   
> org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
>
>
>
>




Re: No variables in t:column header facets! Bug?

2006-03-20 Thread octoberdan

>From which project (row) should the header value taken? 
Well, I'm really trying to do this with t:colomns, but I was having some
problems with that so I used this as an example.
--
View this message in context: 
http://www.nabble.com/No-variables-in-t%3Acolumn-header-facets%21-Bug--t1312124.html#a3496815
Sent from the MyFaces - Users forum at Nabble.com.



Re: No variables in t:column header facets! Bug?

2006-03-20 Thread octoberdan

How can I do as I described? Does my  other recent post  have the same
answer?
--
View this message in context: 
http://www.nabble.com/No-variables-in-t%3Acolumn-header-facets%21-Bug--t1312124.html#a3496786
Sent from the MyFaces - Users forum at Nabble.com.



Re: No variables in t:column header facets! Bug?

2006-03-20 Thread Volker Weber
Hi,

you can't access the dataTables 'var' object in headers or footers!

octoberdan wrote:
> The header will be blank if I do the following
> [code]
>  value="#{projectBacker.projects}">
>   
>value="#{project.status}"/>
>   
>   
> ...
> [/code]
> 
> Is there an obvious reason? All of the projects definitely have a status.

>From which project (row) should the header value taken?

> 
> Thanks in advance
> - Octoberdan
> --
> View this message in context: 
> http://www.nabble.com/No-variables-in-t%3Acolumn-header-facets%21-Bug--t1312124.html#a3496365
> Sent from the MyFaces - Users forum at Nabble.com.
> 



Regards,
  Volker

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


Re: No variables in t:column header facets! Bug?

2006-03-20 Thread Andrew Robinson
The header is printed before there is an active row. In your text, you
are trying to print the status property of the GLOBAL variable
'project' since there is no 'project' variable in the data table yet.


...



row iteration starts


There is no "project" when  is rendered.

On 3/20/06, octoberdan <[EMAIL PROTECTED]> wrote:
>
> The header will be blank if I do the following
> [code]
>  value="#{projectBacker.projects}">
> 
>  value="#{project.status}"/>
> 
> 
> ...
> [/code]
>
> Is there an obvious reason? All of the projects definitely have a status.
>
> Thanks in advance
> - Octoberdan
> --
> View this message in context: 
> http://www.nabble.com/No-variables-in-t%3Acolumn-header-facets%21-Bug--t1312124.html#a3496365
> Sent from the MyFaces - Users forum at Nabble.com.
>
>


No variables in t:column header facets! Bug?

2006-03-20 Thread octoberdan

The header will be blank if I do the following
[code]





...
[/code]

Is there an obvious reason? All of the projects definitely have a status.

Thanks in advance
- Octoberdan
--
View this message in context: 
http://www.nabble.com/No-variables-in-t%3Acolumn-header-facets%21-Bug--t1312124.html#a3496365
Sent from the MyFaces - Users forum at Nabble.com.



Property can't be found that's definitely there!

2006-03-20 Thread octoberdan

I'm getting a really weird exception that I don't beleive I should be
getting.

javax.faces.el.PropertyNotFoundException: Bean: java.util.HashMap$Values,
property: shortName

Here's the jsf:
(take a look at the t:columns)



























 
I've confirmed that the t:columns is iterating through the list and the
variable is in fact a Developer. I did this by h :o utputTexting the
developer variable.
 
Developer is a simple public class that contains the following
public String getShortName() {
return shortName;
}
 
 
public void setShortName(String shortName) {
this.shortName = shortName;
}


 
Any help would be endlessly appreciated.
- Octoberdan
--
View this message in context: 
http://www.nabble.com/Property-can%27t-be-found-that%27s-definitely-there%21-t1311944.html#a3495762
Sent from the MyFaces - Users forum at Nabble.com.



Using custom ResponseWriter

2006-03-20 Thread Schaal, Roland



Hi 
all,
 
I have i.e. three 
components on my jsp-site. What I want is to use the default ResponseWriter for two of these 
components and a different MyCustomResponseWriter for the third 
component.
Is there a way to 
achive this? 
 
Thank 
you
Roland 
Schaal


synchronized

2006-03-20 Thread Vladimir Coutinho
If put synchronized in a piece of code it only works for that object. How could I do to make a piece of code "synchronized" for all calls from my WebApplication. -- Vladimir M Coutinho


SelectOneChoice and PartialTriggers

2006-03-20 Thread Fábio C . Ríspoli
Title: Mensagem



 Hi!I am trying to update some af:inputText values when a 
selection is made on a af:selectOneChoice component. I am using autosubmit = 
true and a ValueChangeListener on the af:selectOneChoice and set the 
PartialTrigger on the af:panelForm containing the inputText fields.My 
problem is that the values are updated correctly the first time I make a 
selection, but stop working when a second selection is made. If I update 
the page using the browser button and then make a selection, it works 
again.Could someone help me on this subject? Below I attach the 
code i produced.Thanks in 
advance.Regards.Fabio[jsp-jsf 
code]inlineStyle="align:center;" 
partialTriggers="newButton">value="#{gertimesController.time.id}"autoSubmit="true"valueChangeListener="#{gertimesController.timeSelected}" 
id="selectTeam">id="newButton" 
partialSubmit="false"actionListener="#{gertimesController.criaNovoTime}"/>partialTriggers="selectTeam">action=""/>value="#{gertimesController.time.nome}"maximumLength="45"/>value="#{gertimesController.time.abreviacao}"/>value="#{gertimesController.time.bandeira}"/>value="#{gertimesController.time.grupo.id}"/>label="#{bundle.classificacaoFin}"value="#{gertimesController.time.colocacao}"/>[ValueChangeListener 
code]public void timeSelected(ValueChangeEvent valueChangeEvent) {Long 
timeId = (Long)valueChangeEvent.getNewValue();if (timeId != null) {try 
{time = gt.getTime(timeId);} catch (ExceptionHandler e) {// 
TODO}} 
 
 
 


how to debug...another crptic exception

2006-03-20 Thread Dean Hiller
I am getting the following error from a jsp but it doesn't say which 
property it can't get a value for.  Are there logs I can turn on and how?

thanks,
dean

javax.servlet.ServletException: Could not get property value of component 
userRegisterForm:_id6
javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)

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

*root cause*

javax.faces.FacesException: Could not get property value of component 
userRegisterForm:_id6

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

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

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

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





Re: Tobago sheet column occupies space beyound header boundaries

2006-03-20 Thread Volker Weber
Hi Nazar,

AFAIK this was fixed in the last one or two weeks. We saw this also in a
app we are developping, but only in IE. Currendly i can't reproduce this
behavior.

If you still have this problem with svn head please repost and include
some info about your environment.

Regards,
  Volker


Nazar Stasiv wrote:
> Sometimes I experience minor issue when resizing headers of sheet
> component in tobago. It leads to clumsy display of data because columns
> aren't scattered according to header boundaries. I can make it look all
> right  expanding  right-most column  to occupy whole space available to
> the right. See attached screen shot.
> 
> Did anyone experienced this kind of issue ?
> Will appreciate any help.
> 
> Nazar Stasiv
> 
> 
> 

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


Tobago t:link behaves oddly under IE

2006-03-20 Thread Iryna Stetska
Hi,

I have t:link on the page which redirects to some other page (navigate).

Sometimes if I click on it under IE once the page will remain unchanged (no
action performed). It will only work if I click on it once again.

The problem does not exist under Firefox.

I am using trunk version of tobago. (I am not sure if this problem existed in
previous revisions)

Thanks,
Ira



problems with escape property of HtmlOutputLabel on sun application server

2006-03-20 Thread Dudu
When the application is running on the oracle AppServer, the escapes works fine, but when it is running over SunAppServer the escapes is ignored and tags like  are showed in the page =(ps: I've removed the jsf libs under the folder appserver/lib, without success
Thanks


MyFaces release date?

2006-03-20 Thread Rogerio Pereira
Hi,

Somebody knows the release date for myfaces 1.1.2? I saw a snapshot of version 1.1.3 in myfaces site, this is correct?-- Yours truly (Atenciosamente),Rogério


Re: Checkbox by tree implementation

2006-03-20 Thread Matthias Wessendorf
there is a TreeNodeChecked clazz ([1]) for use case like this.

HTH,
Matthias

[1] http://tinyurl.com/eknbk

On 3/20/06, Jonathan Sutherland <[EMAIL PROTECTED]> wrote:
> I am a beginner and am looking for a simple example of an implementation
> with a checkbox integrated in a tree.
>
> Is it possible to integrate the check box also in the Tree2 example?
>
> Thanks in advance for any help given.
> Johnny Sutherland
>
>
>


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


RE: Fix the Header of Datatable

2006-03-20 Thread Nikita Shah
Hello allI have found a post on the same issue, where this problem is solved..  http://www.mail-archive.com/users%40myfaces.apache.org/msg16386.htmlBut I am not able to yet solve this issue ...  My whole jsp code and css is as below, can anyone plzz help on this issue ..?                            styleClass="detailsTable"                            rowClasses="detailsTable_Row1,detailsTable_Row2"                           var="nodes"                          width="100%"              
              columnClasses="detailsTable_newNodeColumn,detailsTable_newGroupColumn"                            value="#{detailsData.nodes}">                                                                                                                                          &nbs
 p; 
                                                                                                                                                                                 
 styleClass="sortable,dv_scrollTable"                                                 headerClass="groupTable_Header"                                                  rowClasses="groupTable_Row"                                                  columnClasses="groupTable_Column"                                          
     var="groups"                                                  value="#{nodes.groups}"                                                 cellpadding="0"                                                  cellspacing="0">                                                  
                                                                                                                                           &n
 bsp;
                                                                                                                                                                                                                                                                                                                     
                                                                                                                                        &nb
 sp; 
                                                                                                                                        and my css is --.dv_scrollTable  {  width: 250px;   height: 50px;   overflow: auto;  }/* ---  Sort Table 
 --- */  .sort_table tr td {      width: 100%;      border-color:#B7BDC2 ;      border-style: solid;      border-width: 0ex;          margin            : 0em;      padding-top        : 0em;}  .sort_table_header {      color: #F0F3F4;      text-align  : center;      font-family : arial;      font-size   : 1.4ex;      background-color: #8E969D;      text-align: center;      height: 1em;   
 border-top-color : #B7BDC2;      border-left-color: #B7BDC2;      border-bottom-color : gray;      border-right-color: gray;            border-bottom-style: solid;      border-right-style: solid;      border-top-style: solid;      border-left-style: solid;  }.sort_table_row {      color                : black;      text-align  : center;      font-family : arial;      font-size   : 1.4ex;      background-color    : #E6EAEC;      border-color    : #B7BDC2;
  
     border-width: 0ex;        }  .sort_table_column {      color                : black;      text-align  : center;      font-family : arial;      font-size   : 2ex;      background-color    : #E6EAEC;      text-align            : center;      height                : 1em;      border-color    : #B7BDC2;      border-width: 0ex;      }The class sortable is used for column sorting in table .
 ..? 
 Where do i apply the overflo auto in such case ... ?Any type of help will be appreciated..TIA  ~Nikita  Michael Heinen <[EMAIL PROTECTED]> wrote:  You can easily achieve  this with css. For IE check these links:  http://web.tampabay.rr.com/bmerkey/examples/nonscroll-table-header.htmlhttp://web.tampabay.rr.com/bmerkey/examples/locked-column-csv.html For mozilla you can  define an overflow:auto style and a fixed height for the tbody element.   From:  Nikita Shah [mailto:[EMAIL PROTECTED]   Sent: Freitag, 17. März 2006 13:06  To: users@myfaces.apache.org  Subject: Fix the Header of  Datatable Hi allAs mentioned in the earlier post of this subject, I 
 want to
 make the header of  the DataTable fixed. Below is the jsp code :                                                 styleClass="sortable"                                                 headerClass="groupTa

Re: jenia and myfaces 1.1.1

2006-03-20 Thread Aleksei Valikov

Hi.


Is any one using jenia for popup windows with my faces 1.1.1. we tries
using it but got some error during parameter passing.

Any confirmation for same will be appreciated.


I'm successfully using popupBox, but this is probably not what you need...

Bye.
/lexi


Re: General question to AJAX stuff from the sandbox

2006-03-20 Thread Aleksei Valikov

Hi.


the problem of not finding the ajax components should only occur in a
row of a dataTable.


Not only... I use a lot of programmatically created components. 
Sometimes they get automatic ids - probably that's the reason.



I have tried the dojo inputSuggest in a few applications, never had
problems with slow loading times. Now with server side state saving,
as you have said, every needed dojo class is loaded, and this results
in many js files.

I know that dojo supports some kind of compressing js code and - what
is more important -
there is a way of loading only one js file where all stuff is
included. Maybe that helps with speeding up the connection.


I just think that inputSuggestAjax does not really need 100Kb scripts. 
(I would be pretty much surprized if that would be the case). So I 
really hope that scripts will be optimized...


Bye.
/lexi


Checkbox by tree implementation

2006-03-20 Thread Jonathan Sutherland
I am a beginner and am looking for a simple example of an implementation 
with a checkbox integrated in a tree.


Is it possible to integrate the check box also in the Tree2 example?

Thanks in advance for any help given.
Johnny Sutherland




Re: built-in javascript for confirmation

2006-03-20 Thread Matthias Wessendorf
Nicola,

this page contains some informations about JS and MyFaces / JSF ([1])

-Matthias

[1] http://wiki.apache.org/myfaces/JavascriptWithJavaServerFaces


On 3/20/06, Nicola Benaglia <[EMAIL PROTECTED]> wrote:
> Hi!
> I am wonder if it exists a built-in javascript tag to ask for
> confirmation before proceeding.
> For example I have a button to delete a record and I want to associate
> ask a corfirmation before deleting ?
> Could you please tell if it exists?
>
> Thank you,
> Nico
> ---
>
> Questa mail ed eventuali suoi allegati sono strettamente confidenziali. Se
> ricevete per errore questa mail, Vi preghiamo cortesemente di cancellarla
> immediatamente e di segnalare l'errore a chi ve l'ha spedita. Se Voi non siete
> il reale destinatario di questa mail non siete autorizzati alla copia, alla
> distribuzione e alla stampa di essa ne tantomeno ad una eventuale modifica
> dei contenuti.
>
> This message and any attachments are confidential and intended solely for
> the addressees. If you receive this message in error, please delete it and
> immediately notify the sender. If the reader of this message is not the
> intended recipient, you are hereby notified that any unauthorized use,
> copying, publication, printing or dissemination is prohibited. E-mails are
> susceptible to alteration.
>


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


WebXml.init must be called before

2006-03-20 Thread Jonathan Sutherland
I am attempting to delpoy to the SAP webAS server. The application works 
fine with Tomcat 4 but with webAS I get the following error:


Error [javax.servlet.ServletException: 
org.apache.myfaces.webapp.webxml.WebXml.init must be called before!], with 
root cause [java.lang.IllegalStateException: 
org.apache.myfaces.webapp.webxml.WebXml.init must be called before!].


I have the listener included in my web.xml file.


org.apache.myfaces.webapp.StartupServletContextListener



I have noticed it has been discussed before in November 2005, but the 
suggested solutions have been unsuccessful at the moment.


Any help gratefully appreciated.

Johnny Sutherland




built-in javascript for confirmation

2006-03-20 Thread Nicola Benaglia

Hi!
I am wonder if it exists a built-in javascript tag to ask for 
confirmation before proceeding.
For example I have a button to delete a record and I want to associate 
ask a corfirmation before deleting ?

Could you please tell if it exists?

Thank you,
Nico
---

Questa mail ed eventuali suoi allegati sono strettamente confidenziali. Se
ricevete per errore questa mail, Vi preghiamo cortesemente di cancellarla
immediatamente e di segnalare l'errore a chi ve l'ha spedita. Se Voi non siete
il reale destinatario di questa mail non siete autorizzati alla copia, alla
distribuzione e alla stampa di essa ne tantomeno ad una eventuale modifica
dei contenuti.

This message and any attachments are confidential and intended solely for
the addressees. If you receive this message in error, please delete it and
immediately notify the sender. If the reader of this message is not the
intended recipient, you are hereby notified that any unauthorized use,
copying, publication, printing or dissemination is prohibited. E-mails are
susceptible to alteration.


WebXml.init must be called before

2006-03-20 Thread Jonathan Sutherland
I am attempting to delpoy to the SAP webAS server. The application works 
fine with Tomcat 4 but with webAS I get the following error:


Error [javax.servlet.ServletException: 
org.apache.myfaces.webapp.webxml.WebXml.init must be called before!], with 
root cause [java.lang.IllegalStateException: 
org.apache.myfaces.webapp.webxml.WebXml.init must be called before!].


I have the listener included in my web.xml file.


org.apache.myfaces.webapp.StartupServletContextListener



I have noticed it has been discussed before in November 2005, but the 
suggested solutions have been unsuccessful at the moment.


Any help gratefully appreciated.

Johnny Sutherland

Johnny Sutherland