Resource EL expression non-determinism

2017-12-05 Thread Beikov Christian
Hey, I'm having a strange problem. In some environments, a resource EL expression in a CSS file produces a path like "/javax.faces.resource/.." but on others it produces "...gif.xhtml..". I have 2 url paths configured for the FacesServlet "*.xhtml" and "/ja

el expression parameter of a composite component

2012-06-14 Thread l.pe...@senat.fr
Dear all, I am experiencing a strange behaviour with a composite component. It seems to me that attributes values specified as el expressions are computed only once, and very early, when the composite component declaration specifies a componentType. I published an example on

Re: el expression parameter of a composite component

2012-06-14 Thread Leonardo Uribe
Hi I have checked the problem and what you need to do is implement your properties into your component class using StateHelper methods, otherwise the properties will not be saved and restored. Take a look at:

Re: el expression parameter of a composite component

2012-06-14 Thread l.pe...@senat.fr
On 14/06/2012 12:40, Leonardo Uribe wrote: Hi I have checked the problem and what you need to do is implement your properties into your component class using StateHelper methods, otherwise the properties will not be saved and restored. Take a look at:

Re: How do I get the Method EL Expression of actionListener in JSF 2.0?

2011-03-06 Thread Rudy De Busscher
expression can be retrieved by attribute.getValue(). - new Metadata - within applyMetadata method, we put the EL expression on the attributes of the UIComponent. Then, you have always access to the expression string by looking at the attributes of the component. I have tested the approach with Myfaces

EL expression not evaluated in myfaces/Trinidad 1.2 archetype application on Tomcat 6

2011-03-03 Thread Richard Yee
I generated a basic application from the maven archetype and deployed it to tomcat 6. Although the Trinidad tags are evaluated, the EL expression in the input text box is not evaluated. What am I missing? Thanks, Richard Sent from my iPhone

Re: EL expression not evaluated in myfaces/Trinidad 1.2 archetype application on Tomcat 6

2011-03-03 Thread Scott O'Bryan
it to tomcat 6. Although the Trinidad tags are evaluated, the EL expression in the input text box is not evaluated. What am I missing? Thanks, Richard Sent from my iPhone

Re: EL expression not evaluated in myfaces/Trinidad 1.2 archetype application on Tomcat 6

2011-03-03 Thread Richard Yee
, at 1:25 AM, Richard Yee richard.k@gmail.com wrote: I generated a basic application from the maven archetype and deployed it to tomcat 6. Although the Trinidad tags are evaluated, the EL expression in the input text box is not evaluated. What am I missing? Thanks, Richard Sent from

Re: EL expression not evaluated in myfaces/Trinidad 1.2 archetype application on Tomcat 6

2011-03-03 Thread Richard Yee
archetype and deployed it to tomcat 6. Although the Trinidad tags are evaluated, the EL expression in the input text box is not evaluated. What am I missing? Thanks, Richard Sent from my iPhone

Re: EL expression not evaluated in myfaces/Trinidad 1.2 archetype application on Tomcat 6

2011-03-03 Thread Scott O'Bryan
, the EL expression in the input text box is not evaluated. What am I missing? Thanks, Richard Sent from my iPhone

Re: How do I get the Method EL Expression of actionListener in JSF 2.0?

2011-02-11 Thread Rudy De Busscher
moment to get the EL expression. regards, Leonardo 2011/2/7 Rudy De Busscher rdebussc...@gmail.com Hi all, For an ExtVal-addon I need to have access to the expression string of the actionListener property of a command button. So when i have *h:commandButton id=check value=Validate

Re: How do I get the Method EL Expression of actionListener in JSF 2.0?

2011-02-10 Thread Leonardo Uribe
a custom ComponentTagHandlerDelegate with a special rule for ActionSource. I think it is the right moment to get the EL expression. regards, Leonardo 2011/2/7 Rudy De Busscher rdebussc...@gmail.com Hi all, For an ExtVal-addon I need to have access to the expression string of the actionListener

How do I get the Method EL Expression of actionListener in JSF 2.0?

2011-02-07 Thread Rudy De Busscher
Hi all, For an ExtVal-addon I need to have access to the expression string of the actionListener property of a command button. So when i have *h:commandButton id=check value=Validate actionListener=#{personBean.someActionListener}/* I need #{personBean.someActionListener}. In JSF 1.X, you could

AW: el expression

2010-02-10 Thread Martin Monshausen
] Gesendet: Mi 10.02.2010 06:14 An: MyFaces Discussion Betreff: el expression Hi all Can any one can help me how to pass a parameter to a method while calling it in EL expression. Im trying this #{myBean.method('JAVA')} But I m getting errors while rendering. Thanks Krishna Pandit This email

Re: el expression

2010-02-10 Thread Mark Struberg
/aboutJava/communityprocess/mrel/jsr245/index.html --- Michael Kurz michi.k...@gmx.at schrieb am Mi, 10.2.2010: Von: Michael Kurz michi.k...@gmx.at Betreff: Re: el expression An: users@myfaces.apache.org Datum: Mittwoch, 10. Februar 2010, 9:33 Hi, it is true that it is not possible to use method

AW: el expression

2010-02-10 Thread Martin Monshausen
: el expression Hi all Can any one can help me how to pass a parameter to a method while calling it in EL expression. Im trying this #{myBean.method('JAVA')} But I m getting errors while rendering. Thanks Krishna Pandit This email and any files transmitted with it are confidential and intended

RE: el expression

2010-02-10 Thread Krishna K. Pandit
Thanks I am trying. :) -Original Message- From: Martin Monshausen [mailto:martin.monshau...@prodyna.de] Sent: 10 February 2010 15:08 To: MyFaces Discussion Subject: AW: el expression Hi, there are some further tricks which you can use to pass parameters: http://wiki.apache.org/myfaces

Re: el expression

2010-02-10 Thread Mark Struberg
done: http://wiki.apache.org/myfaces/Parameters_In_EL_Functions http://wiki.apache.org/myfaces/HowToEnableEl22 LieGrue, strub --- Matthias Wessendorf mat...@apache.org schrieb am Mi, 10.2.2010: Von: Matthias Wessendorf mat...@apache.org Betreff: Re: el expression An: MyFaces Discussion users

el expression in plain html

2010-02-09 Thread baeschtu baeschtu
Hello I need to pass a param in plain html, but the el expression is not parsed. How can I make it work! .. tr:panelFormLayout applet code=MyApplet.class archive=MyApplet.jar width=500 height=400 param name=paramName value=#{myBackingBean.paramName}/ /applet /tr:panelFormLayout

Re: el expression in plain html

2010-02-09 Thread Anton Gavazuk
/10 baeschtu baeschtu baesc...@gmail.com Hello I need to pass a param in plain html, but the el expression is not parsed. How can I make it work! .. tr:panelFormLayout applet code=MyApplet.class archive=MyApplet.jar width=500 height=400 param name=paramName value

RE: el expression in plain html

2010-02-09 Thread Krishna K. Pandit
] Sent: 10 February 2010 05:47 To: MyFaces Discussion Subject: el expression in plain html Hello I need to pass a param in plain html, but the el expression is not parsed. How can I make it work! .. tr:panelFormLayout applet code=MyApplet.class archive=MyApplet.jar width=500 height=400

Re: el expression in plain html

2010-02-09 Thread mamallan . uthaman
() of Bean named myBackingBean then you can use this #{myBackingBean.paramName}. If need any other thing please elaborate. Thanks Krishna Pandit -Original Message- From: baeschtu baeschtu [mailto:baesc...@gmail.com] Sent: 10 February 2010 05:47 To: MyFaces Discussion Subject: el expression

el expression

2010-02-09 Thread Krishna K. Pandit
Hi all Can any one can help me how to pass a parameter to a method while calling it in EL expression. Im trying this #{myBean.method('JAVA')} But I m getting errors while rendering. Thanks Krishna Pandit This email and any files transmitted with it are confidential and intended solely

How to set a component value to an EL Expression in Java?

2008-09-26 Thread Paul Spencer
for the child component is: tr:inputText value=#{foo.bar}/ So far I have: CoreInputText childComponent; childComponent = (CoreInputText) application.createComponent(CoreInputText.COMPONENT_TYPE); // Set the value to an EL Expression childComponent.setValue(#{foo.bar}); // Does

Re: How to set a component value to an EL Expression in Java?

2008-09-26 Thread Shane Petroff
. The equivalent tag for the child component is: tr:inputText value=#{foo.bar}/ So far I have: CoreInputText childComponent; childComponent = (CoreInputText) application.createComponent(CoreInputText.COMPONENT_TYPE); // Set the value to an EL Expression childComponent.setValue

Re: How to set a component value to an EL Expression in Java?

2008-09-26 Thread Andrew Robinson
childComponent; childComponent = (CoreInputText) application.createComponent(CoreInputText.COMPONENT_TYPE); // Set the value to an EL Expression childComponent.setValue(#{foo.bar}); // Does not work ValueBinding vb = application.createValueBinding(elExpression); vb.setValue(context, value

Re: How to set a component value to an EL Expression in Java?

2008-09-26 Thread Andrew Robinson
) application.createComponent(CoreInputText.COMPONENT_TYPE); // Set the value to an EL Expression childComponent.setValue(#{foo.bar}); // Does not work ValueBinding vb = application.createValueBinding(elExpression); vb.setValue(context, value); Will work, but iirc, this is deprecated, and there is an alternate

Re: How to set a component value to an EL Expression in Java?

2008-09-26 Thread Paul Spencer
; childComponent = (CoreInputText) application.createComponent(CoreInputText.COMPONENT_TYPE); // Set the value to an EL Expression childComponent.setValue(#{foo.bar}); // Does not work ValueBinding vb = application.createValueBinding(elExpression); vb.setValue(context, value); Will work, but iirc

Re: [Trinidad] Configuring debug-output in trinidad-config.xml with EL-expression

2008-01-30 Thread Martin Marinschek
the EL-expression. The NPE occurs at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(PropertyKey key) final public Object getProperty(PropertyKey key) { Object o = getLocalProperty(key); if (o != null) return o; // Look for a binding if and only if the key

RE: [Trinidad] Configuring debug-output in trinidad-config.xml with EL-expression

2008-01-30 Thread Kuhn, Harald
be defined either inline with a static, constant value, or with a JSF EL expression that is re-evaluated on each request. /quote As you could see (marked with ) each property should accept EL-expressions. Also the code implies that EL-binding is supported: if (key.getSupportsBinding

Re: [Trinidad] Configuring debug-output in trinidad-config.xml with EL-expression

2008-01-30 Thread Martin Marinschek
with a static, constant value, or with a JSF EL expression that is re-evaluated on each request. /quote As you could see (marked with ) each property should accept EL-expressions. Also the code implies that EL-binding is supported: if (key.getSupportsBinding()) { ... // EL

Re: [Trinidad] Configuring debug-output in trinidad-config.xml with EL-expression

2008-01-30 Thread Matthias Wessendorf
) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Unknown Source) Additional debugging reveilled that FacesContext is null while evaluating the EL-expression. The NPE occurs at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty

Re: [Trinidad] Configuring debug-output in trinidad-config.xml with EL-expression

2008-01-30 Thread Martin Marinschek
simple XML structure that relies on the JSF expression language (EL) for flexibility. Each configurable property can be defined either inline with a static, constant value, or with a JSF EL expression that is re-evaluated on each request. /quote regards, Martin

Re: [Trinidad] Configuring debug-output in trinidad-config.xml with EL-expression

2008-01-30 Thread Matthias Wessendorf
expression language (EL) for flexibility. Each configurable property can be defined either inline with a static, constant value, or with a JSF EL expression that is re-evaluated on each request. /quote regards, Martin -- Matthias Wessendorf further stuff: blog: http

Re: [Trinidad] Configuring debug-output in trinidad-config.xml with EL-expression

2008-01-30 Thread Andy Schwartz
Hey Matthias - On Jan 30, 2008 3:13 PM, Matthias Wessendorf [EMAIL PROTECTED] wrote: perhaps the doc is just wrong :-) I believe you are correct - ie. the doc is not accurate. Looking at RequestContextBean.java, it seems that the following properties cannot be EL-bound: -

Re: [Trinidad] Configuring debug-output in trinidad-config.xml with EL-expression

2008-01-30 Thread Martin Marinschek
Hey Andy, I believe you are correct - ie. the doc is not accurate. Looking at RequestContextBean.java, it seems that the following properties cannot be EL-bound: ... I think we should mark this as not-bindable and update the doc accordingly. However, I do not buy Matthias argument that

Re: [Trinidad] Configuring debug-output in trinidad-config.xml with EL-expression

2008-01-30 Thread Martin Marinschek
Oh, well - this fix sounds really simple then. regards, Martin On Thu, Jan 31, 2008 at 12:38 AM, Andy Schwartz [EMAIL PROTECTED] wrote: On Jan 30, 2008 5:45 PM, Martin Marinschek [EMAIL PROTECTED] wrote: However, I do not buy Matthias argument that this is due to security reasons - if

Re: [Trinidad] Configuring debug-output in trinidad-config.xml with EL-expression

2008-01-30 Thread Andy Schwartz
On Jan 30, 2008 5:45 PM, Martin Marinschek [EMAIL PROTECTED] wrote: However, I do not buy Matthias argument that this is due to security reasons - if some intruder gets access to managed-beans, we are hosed anyways. I think, from a perspective servicing the user, it would be a good thing if

Re: [Trinidad] Configuring debug-output in trinidad-config.xml with EL-expression

2008-01-30 Thread Matthias Wessendorf
the security was just a (wild) guess. I see that the uploaded-file-processor is not designed to have EL. The UPLOADED_FILE_PROCESSOR_KEY field in RequestContextBean class does that by: static public final PropertyKey UPLOADED_FILE_PROCESSOR_KEY = TYPE.registerKey(uploaded-file-processor,

[Trinidad] Configuring debug-output in trinidad-config.xml with EL-expression

2008-01-28 Thread Kuhn, Harald
) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Unknown Source) Additional debugging reveilled that FacesContext is null while evaluating the EL-expression. The NPE occurs at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty

Re: null EL expression - ELResolver cannot handle a null base Object with identifier 'nullValue'

2007-09-13 Thread mraible
) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:361) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) -- View this message in context: http://www.nabble.com/null-EL-expression---%22ELResolver-cannot-handle-a-null

[Trinidad] JSF 1.2/Facelets and el expression for f:attribute name

2007-08-29 Thread Justin Mckay
I am currently migrating our ADF project to Trinidad 1.2.1 and have a question about the f:attribute. In our project we were using el expressions for the name value in our f:attribute. This does not seem to be the same for the Trinidad 1.2.1 /MyFaces 1.2/Facelets 1.1.6 combo. If I use a el

Re: null EL expression - ELResolver cannot handle a null base Object with identifier 'nullValue'

2007-07-24 Thread rlubke
) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:361) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) -- View this message in context: http://www.nabble.com/null-EL-expression---%22ELResolver-cannot-handle

Re: null EL expression - ELResolver cannot handle a null base Object with identifier 'nullValue'

2007-07-19 Thread noah
So how do I make it work in MyFaces under Jetty? Why doesn't the presence of commons-el or Jetty or whatever cause the RI to blow up? On 7/18/07, Bruno Aranda [EMAIL PROTECTED] wrote: Ah yes, actually the problem was not commons-el (which is necessary for tomahawk to work) but a bug in jetty

Re: null EL expression - ELResolver cannot handle a null base Object with identifier 'nullValue'

2007-07-18 Thread noah
Sorry for reviving a 2 week old thread, but I haven't had a chance to try this again. I've added the exclusions you have below and I'm still getting the same error on Jetty. jetty:run-exploded shows that commons-el isn't in WEB-INF/lib If I try the war in Tomcat 6 I get NoClassDefFoundError:

Re: null EL expression - ELResolver cannot handle a null base Object with identifier 'nullValue'

2007-07-18 Thread Bruno Aranda
Ah yes, actually the problem was not commons-el (which is necessary for tomahawk to work) but a bug in jetty which I think it has already been addressed. Cheers, Bruno On 18/07/07, noah [EMAIL PROTECTED] wrote: Sorry for reviving a 2 week old thread, but I haven't had a chance to try this

Re: null EL expression - ELResolver cannot handle a null base Object with identifier 'nullValue'

2007-07-18 Thread Matthias Wessendorf
are you talking about this one h:outputText value=#{nullValue} / ? I don't see it (in JSP) On 7/18/07, Bruno Aranda [EMAIL PROTECTED] wrote: Ah yes, actually the problem was not commons-el (which is necessary for tomahawk to work) but a bug in jetty which I think it has already been

Re: null EL expression - ELResolver cannot handle a null base Object with identifier 'nullValue'

2007-07-05 Thread Bruno Aranda
I can confirm this issue. Could you add it to JIRA please? Cheers, Bruno On 28/06/07, noah [EMAIL PROTECTED] wrote: With the 1.2.0-SNAPSHOT for today %@ taglib uri=http://java.sun.com/jsf/html; prefix=h % %@ taglib uri=http://java.sun.com/jsf/core; prefix=f % html head

Re: null EL expression - ELResolver cannot handle a null base Object with identifier 'nullValue'

2007-07-05 Thread Bruno Aranda
though it seems to be a problem with jetty having a dependency on commons-el 1.0 ? Bruno On 05/07/07, Bruno Aranda [EMAIL PROTECTED] wrote: I can confirm this issue. Could you add it to JIRA please? Cheers, Bruno On 28/06/07, noah [EMAIL PROTECTED] wrote: With the 1.2.0-SNAPSHOT for today

Re: null EL expression - ELResolver cannot handle a null base Object with identifier 'nullValue'

2007-07-05 Thread Bruno Aranda
I cannot reproduce this in the current12/test-webapp, so I guess it is a configuration issue whith the EL dependencies, Bruno On 05/07/07, Bruno Aranda [EMAIL PROTECTED] wrote: though it seems to be a problem with jetty having a dependency on commons-el 1.0 ? Bruno On 05/07/07, Bruno Aranda

Re: null EL expression - ELResolver cannot handle a null base Object with identifier 'nullValue'

2007-07-05 Thread Bruno Aranda
Ok, found the problem. The issue is with tomahawk, that depends on commons-el. Be sure that you don't have this dependency (commons-el) in the classpath. If using maven, do this for tomahawk and the sandbox: dependency groupIdorg.apache.myfaces.tomahawk/groupId

null EL expression - ELResolver cannot handle a null base Object with identifier 'nullValue'

2007-06-28 Thread noah
With the 1.2.0-SNAPSHOT for today %@ taglib uri=http://java.sun.com/jsf/html; prefix=h % %@ taglib uri=http://java.sun.com/jsf/core; prefix=f % html head titleNull Test/title /head body f:view h:outputText value=#{nullValue} /

Re: DataScroller - Rendering/Pagination problem when rendered attribute is set to a conditional EL expression

2007-05-29 Thread Angel Miralles Arevalo
@myfaces.apache.org Enviado: lunes, 28 de mayo, 2007 19:19:50 Asunto: Re: DataScroller - Rendering/Pagination problem when rendered attribute is set to a conditional EL expression This rendered stuff has even more problems: Using: rendered=#{not empty @managed-bean-name.users} at my t:dataTable, does result

DataScroller - Rendering/Pagination problem when rendered attribute is set to a conditional EL expression

2007-05-28 Thread Torsten Krah
change the page - you are bound to page 1. Deleting the rendered EL expression - paginator works again, but is there all the time. Should be a bug, shouldn't it? Torsten smime.p7s Description: S/MIME cryptographic signature

Re: DataScroller - Rendering/Pagination problem when rendered attribute is set to a conditional EL expression

2007-05-28 Thread Torsten Krah
shows 2 pages. But you can't change the page - you are bound to page 1. Deleting the rendered EL expression - paginator works again, but is there all the time. Should be a bug, shouldn't it? Torsten smime.p7s Description: S/MIME cryptographic signature

Question about EL Expression Unbalanced:

2007-01-24 Thread Thomas Chang
Hi, As I start my web I got such an error: com.sun.facelets.tag.TagAttributeException: /jsp/content/myJSF.xhtml @58,59 value=#{myBean.accountNr EL Expression Unbalanced: ... #{myBean.accountNr WHat does it mean? Thanks Thomas - Jetzt Mails

RE: Question about EL Expression Unbalanced:

2007-01-24 Thread Thomas Chang
Sorry, I take my email back. I find where is the error in my code. Thomas Chang [EMAIL PROTECTED] schrieb: Hi, As I start my web I got such an error: com.sun.facelets.tag.TagAttributeException: /jsp/content/myJSF.xhtml @58,59 value=#{myBean.accountNr EL Expression Unbalanced

RE: Question about EL Expression Unbalanced:

2007-01-24 Thread Böhringer Jochen
Expression Unbalanced: Hi, As I start my web I got such an error: com.sun.facelets.tag.TagAttributeException: /jsp/content/myJSF.xhtml @58,59 value=#{myBean.accountNr EL Expression Unbalanced: ... #{myBean.accountNr WHat does it mean? Thanks Thomas

RE: Question about EL Expression Unbalanced:

2007-01-24 Thread Thomas Chang
10:11 AM To: MyFaces Discussion Subject: Question about EL Expression Unbalanced: Hi, As I start my web I got such an error: com.sun.facelets.tag.TagAttributeException: /jsp/content/myJSF.xhtml @58,59 value=#{myBean.accountNr EL Expression Unbalanced: ... #{myBean.accountNr WHat does it mean

why f:attribute not support el expression?

2006-11-12 Thread kevin_zhai
Hi all: why f:attribute not support el expression? thanks any response. best regarts -- View this message in context: http://www.nabble.com/why-f%3Aattribute-not-support-el-expression--tf2619233.html#a7309664 Sent from the MyFaces - Users mailing list archive at Nabble.com.

EL expression question - how to get them evaluated?

2006-10-11 Thread Torsten Krah
Using jsp for the views, i want to prefix some path, for example this: link rel=stylesheet href=h:outputText value=#{facesContext.externalContext.requestContextPath}//html/style/mystyle.css / The bad about that is, that i have to take a component, where an el expression should be enough

Re: EL expression question - how to get them evaluated?

2006-10-11 Thread Torsten Krah
this: link rel=stylesheet href=h:outputText value=#{facesContext.externalContext.requestContextPath}//html/style/mystyle.css / The bad about that is, that i have to take a component, where an el expression should be enough, shouldnt it? Is it possible to habe: link rel=stylesheet href

Re: EL expression question - how to get them evaluated?

2006-10-11 Thread Volker Weber
Hi Torsten, you can't use jsf el expression outside jsf tag attributes! link ... is not an jsf tag. but this shoud work inside jsp: link rel=stylesheet href=%= request.getContextPath() + /html/style/mystyle.css% / regards, Volker 2006/10/11, Torsten Krah [EMAIL PROTECTED]: http://mail

Nested EL Expression

2006-09-06 Thread kiran.gutta
Title: Message Hi, I have to display weekday name (Sunday, Monday etc.), given weekday number which isavailable inbean. Please help me how to write EL _expression_ to get the weekday name from resource bundle. Any pointers in this regard are also highly appreciated. Thanks, Kiran The

RE: Nested EL Expression

2006-09-06 Thread Baker,Jonathan
Title: Message If Weekday is an java 5 enumeration (the approach should be almost the same if you just have an int) I have just created a converter class. that implements javax.faces.convert.Converter and something like org.springframework.context.MessageSourceAware(MessageSource is a

JSF and EL expression

2006-08-14 Thread Alexandre Jaquet
Hi, I need to test the existance of a element before to show it's value I would like something like h:outputText value=if #{row.productFamily}!= null #{row.productFamily.text} / how to do it regards

RE: JSF and EL expression

2006-08-14 Thread Michael Heinen
Try rendered attribute: h:outputText value=#{row.productFamily.text} rendered=#{row.productFamily != null}/ -Original Message- From: Alexandre Jaquet [mailto:[EMAIL PROTECTED] Sent: Montag, 14. August 2006 11:24 To: MyFaces Discussion Subject: JSF and EL expression Hi, I need to test

Re: JSF and EL expression

2006-08-14 Thread Eurig Jones
h:outputText value=#{row.productFamily.text} rendered=#{row.productFamily != null} / Alexandre Jaquet wrote: Hi, I need to test the existance of a element before to show it's value I would like something like h:outputText value=if #{row.productFamily}!= null #{row.productFamily.text} /

Re: JSF and EL expression

2006-08-14 Thread Dmitry Y. Shyshkin
h:outputText value=if #{ row.productFamily!= null ? row.productFamily.text : \\ / or h:outputText value=#{row.productFamily.text} rendered=#{row.productFamily != null}/ Hi, I need to test the existance of a element before to show it's value I would like something like h:outputText

Re: JSF and EL expression

2006-08-14 Thread Alexandre Jaquet
=#{row.productFamily != null}/ -Original Message- From: Alexandre Jaquet [mailto:[EMAIL PROTECTED] Sent: Montag, 14. August 2006 11:24 To: MyFaces Discussion Subject: JSF and EL expression Hi, I need to test the existance of a element before to show it's value I would like something like

Re: JSF and EL expression

2006-08-14 Thread Eurig Jones
Then fristly you need to make sure that row.productFamily exists at all Alexandre Jaquet wrote: Hi, I still get exception : Cannot get value for expression '#{(row.productFamily == null)? row.productFamily.text : 'null-case'}' regards Bruno Aranda wrote: Just use this: h:outputText