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!!!
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
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:
panelGroup rendered=#{bean.shouldRenderThese}
componentToRenderWhenTrue/
componentToRenderWhenTrue/
componentToRenderWhenTrue/
componentToRenderWhenTrue/
componentToRenderWhenTrue/
/panelGroup
panelGroup rendered=#{not bean.shouldRenderThese}
componentToRenderWhenFalse/
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/
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
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.
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:
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
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
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
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.
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
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
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
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
-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
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
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
If so, can you please shoot me a copy of your web.xml and
faces-config.xml files?
Thanks!
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
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
22 matches
Mail list logo