-
1. Re: Using EL expressions with rich:calendar (organizer)
cassionandi May 13, 2010 1:11 PM (in response to wadekarm)Hi Maria,
can you post a sample of you source(xhtml)?
-
2. Re: Using EL expressions with rich:calendar (organizer)
wadekarm May 13, 2010 1:27 PM (in response to cassionandi)I'm trying to expand on the richfaces organizer example provided by Exadel. In the code below 'day' is of type int.
I've tried <h:outputText value="#{ day eq 10 ? 'true' : 'false'}" styleClass="boldText"/>. This does parse ... doesn't give me any errors ... but doesn't give the desired output either.
Thank you,
Maria
-
3. Re: Using EL expressions with rich:calendar (organizer)
cassionandi May 13, 2010 5:53 PM (in response to wadekarm)I've tested with the eq operator and it didn't work. But with == works fine that way
<h:outputText value="{day == 2}"></h:outputText>
and
<h:outputText value="{day == 2 ? 'true' : 'false'}"></h:outputText>
This do what you need?
-
4. Re: Using EL expressions with rich:calendar (organizer)
wadekarm May 13, 2010 11:28 PM (in response to cassionandi)Wonderful!!! It worked like a charm!! Thank you Cafaissio!!
I too had tried != and == but the part that I saw different from mine was that you excluded the # which is generally prefixed to all expessions that are evaluated!
-
5. Re: Using EL expressions with rich:calendar (organizer)
elf May 14, 2010 1:16 AM (in response to wadekarm)Hello All,
I tried to create organizer like demo programmatically, but I can not.
I tried to use String.class and Integer.class for valueExpression creating, but without success.
May be it is because day variable has type of simple int ?
-
6. Re: Using EL expressions with rich:calendar (organizer)
ilya_shaikovsky May 14, 2010 2:28 AM (in response to elf)All the problems described there related to the fact that calendar - built completelly on client side. So all the nested content parsed as single template and then evaluated at client side in JavaScript. So all conditions you writting - should be valid JavaScript statements and so on.. for the same reason you could not for example use tables or repeats at cell because it will be encoded only once for template creation and then just parsed for filling with client side macrosubstitutions values at while initialized on the client.
Good news is that we realize all that problems and care about them so organizer in 4.x will be separate component which encoded at server side.
-
7. Re: Using EL expressions with rich:calendar (organizer)
elf May 14, 2010 2:56 AM (in response to ilya_shaikovsky)So ... we are waiting for 4.0
Are there any news on 4.0 A2 release ? As I remember previous date was middle April ...
-
9. Re: Using EL expressions with rich:calendar (organizer)
cassionandi May 14, 2010 7:47 AM (in response to ilya_shaikovsky)Cool Maria. BTW, my name is Cássio, but the encoding of the forum broken special characters. Ilya, there is a way to fix this (encode problem)?
-
10. Re: Using EL expressions with rich:calendar (organizer)
wadekarm May 14, 2010 9:09 AM (in response to cassionandi)I knew there was something going wrong there about your name but wasn't sure what it would be
Thank you though Cassio!
Maria
-
11. Re: Using EL expressions with rich:calendar (organizer)
elf May 14, 2010 9:17 AM (in response to cassionandi)Cassio,
try to use this link http://www.jboss.org/index.html?module=user&op=edituser , provided me by Ilya.
-
12. Re: Using EL expressions with rich:calendar (organizer)
cassionandi May 14, 2010 1:56 PM (in response to elf)Hi Serhiy, i'have tried alter my nome on the same link you are showing. How you can see, my name stills weird, even using unicode or html simbols. btw, my name is setted as Bugged Name and continues to show Cássio
-
13. Re: Using EL expressions with rich:calendar (organizer)
ilya_shaikovsky May 15, 2010 3:17 AM (in response to cassionandi)sorry but seems can't help with the .org stuff use their discussion space or jira to check if something similar exist.