If in myFaces/Tomahwak

2007-09-05 Thread daniel ccss
Hi all, I have one question, how can I do an IF in a JSP wit myFaces/Tomahawk? In struts I used logic:equal or logic:notEqual, which is the tag in myFaces/Tomahawk to do that, I don´t want to use this: % if(...)... {% % else(...)... {% thanks!!!

Re: If in myFaces/Tomahwak

2007-09-05 Thread Mike Kienenberger
Generally, you do this with the rendered attribute of the component. If you want to group a bunch of components, use a panelGroup rendered. On 9/5/07, daniel ccss [EMAIL PROTECTED] wrote: Hi all, I have one question, how can I do an IF in a JSP wit myFaces/Tomahawk? In struts I used

Re: If in myFaces/Tomahwak

2007-09-05 Thread daniel ccss
Can you give some example code, another way? On 9/5/07, Mike Kienenberger [EMAIL PROTECTED] wrote: Generally, you do this with the rendered attribute of the component. If you want to group a bunch of components, use a panelGroup rendered. On 9/5/07, daniel ccss [EMAIL PROTECTED] wrote:

Re: If in myFaces/Tomahwak

2007-09-05 Thread Mike Kienenberger
panelGroup rendered=#{bean.shouldRenderThese} componentToRenderWhenTrue/ componentToRenderWhenTrue/ componentToRenderWhenTrue/ componentToRenderWhenTrue/ componentToRenderWhenTrue/ /panelGroup panelGroup rendered=#{not bean.shouldRenderThese} componentToRenderWhenFalse/

Re: If in myFaces/Tomahwak

2007-09-05 Thread daniel ccss
Thanks!!... But, there are no if components like the logic:equal o logic:notPresent?? in struts On 9/5/07, Mike Kienenberger [EMAIL PROTECTED] wrote: panelGroup rendered=#{bean.shouldRenderThese} componentToRenderWhenTrue/ componentToRenderWhenTrue/ componentToRenderWhenTrue/

Re: If in myFaces/Tomahwak

2007-09-05 Thread simon
No, there is no separate tag like logic:equal. You need to use the rendered attribute as Mike described. Note that the rendered attribute is a normal EL expression, which can be quite complex. An EL expression can test things for equality etc. See a JSF manual or the specification for what is

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

2006-12-24 Thread Matt Tyson
that isn't there. -- View this message in context: http://www.nabble.com/java.lang.NullPointerException-during-render-phase-when-using-ADF-and-MyFaces-Tomahwak-components-together-tf1315507.html#a8043311 Sent from the MyFaces - Users mailing list archive at Nabble.com.

Re: Datascroller problem Myfaces/Tomahwak verion compatibility

2006-04-27 Thread Mike Kienenberger
On 4/26/06, Ajit Tripathi [EMAIL PROTECTED] wrote: I tried with updating the myfaces .jar to 1.1.2 and using the snapshot builds of tomahawk 1.1.2 as well as 1.1.3 . In either cases I keep getting a java.lang.NoSuchMethodError:

Re: Datascroller problem Myfaces/Tomahwak verion compatibility

2006-04-27 Thread Mike Kienenberger
On 4/27/06, Ajit.T [EMAIL PROTECTED] wrote: This is stack Trace , which points towards the Tomahawk1.1.1 bug in HtmlDataScroller i guess ApplicationDispatcher[/Project1] Servlet.service() for servlet jsp threw exception java.lang.ArithmeticException: / by zero at

Re: Datascroller problem Myfaces/Tomahwak verion compatibility

2006-04-27 Thread Ajit.T
Have ensured by printing the value of the el expression of rows attribute using h:outputText and I get it as 10 which I set it programmatically. What should I drill down now? -- View this message in context: http://www.nabble.com/Datascroller-problem-Myfaces-Tomahwak-verion-compatibility

Re: Datascroller problem Myfaces/Tomahwak verion compatibility

2006-04-27 Thread Mike Kienenberger
On 4/27/06, Ajit.T [EMAIL PROTECTED] wrote: Have ensured by printing the value of the el expression of rows attribute using h:outputText and I get it as 10 which I set it programmatically. What should I drill down now? Here's a guess #{nsearchBean.dataModel.rows} is in a request-scoped

Re: Datascroller problem Myfaces/Tomahwak verion compatibility

2006-04-27 Thread Ajit.T
your guess did hit the nailhead Mike. saveState did save my state ;-) Thanks ! Ajit -- View this message in context: http://www.nabble.com/Datascroller-problem-Myfaces-Tomahwak-verion-compatibility-t1513744.html#a4127989 Sent from the MyFaces - Users forum at Nabble.com.

Datascroller problem Myfaces/Tomahwak verion compatibility

2006-04-26 Thread Ajit Tripathi
Hi, I am using myfaces1.1.1 tomahawk libs 1.1.1 for my project. Using Datascroller component gives me a / by zero error. Had also ensured that my dataTable had the 'rows' attribute in it. I tried with updating the myfaces .jar to 1.1.2 and using the snapshot builds of tomahawk 1.1.2 as

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

2006-03-24 Thread Adam Winer
Murray Brandon wrote: Partially solved: The problem is if you define adf core render kit as the default default render kit, some of the tomahawk/myfaces/facelets components have no rendering context (not sure which component, cos the exception helpfully does not tell me), hence the null

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

2006-03-23 Thread Marcel Soulier
sure if this is possible first. M.Soulier -Ursprüngliche Nachricht- Von: Adam Winer [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 21. März 2006 19:03 An: MyFaces Discussion Betreff: Re: java.lang.NullPointerException during render phase when using ADF and MyFaces Tomahwak components

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

2006-03-23 Thread Murray Brandon
Partially solved: The problem is if you define adf core render kit as the default default render kit, some of the tomahawk/myfaces/facelets components have no rendering context (not sure which component, cos the exception helpfully does not tell me), hence the null pointer. application

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

2006-03-21 Thread Marcel Soulier
-Ursprüngliche Nachricht- Von: Adam Winer [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 21. März 2006 06:50 An: MyFaces Discussion Betreff: Re: java.lang.NullPointerException during render phase when using ADF and MyFaces Tomahwak components together Murray, You need to install

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

2006-03-21 Thread Adam Winer
when using ADF and MyFaces Tomahwak components together Murray, You need to install the FaceletViewHandler using: context-param param-nameoracle.adf.view.faces.ALTERNATE_VIEW_HANDLER/param-name param-valuecom.sun.facelets.FaceletViewHandler/param-value /context-param in WEB-INF

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

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!

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) faces-config application default-render-kit-id oracle.adf.core

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: context-param param-nameoracle.adf.view.faces.ALTERNATE_VIEW_HANDLER/param-name param-valuecom.sun.facelets.FaceletViewHandler/param-value /context-param in WEB-INF/web.xml, not in faces-config.xml. Also, not that it's