You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Luka Surija <lu...@iytim.hr> on 2008/11/14 12:34:51 UTC
Wierd bug!?
Hi,
last 2 days I'm going crazy because something changed in JSF
constellation and now I have a problem that I can't locate. The
following scenario:
Environment:
Glassfish (JSF RI 1.2_04-b18-p03)
Trinidad (1.0.5 -> 1.0.11-SNAPSHOT)
Facelets (1.1.12 -> 1.1.14)
<tr:commandButton text="Display" >
<tr:setActionListener from="#{true}" to="#{MyBean.display}" />
</tr:commandButton>
<tr:panelHorizontalLayout rendered="{MyBean.display}">
<tr:outputText value="Test : #{MyBean.npeValue}" />
</tr:panelHorizontalLayout>
MyBean is session scope,
MyBean.display property default value is false;
MyBean.npeValue returns some value, it shouldn't be called if display!=true
So, what's happening here? Components inside PanelHorizontalLayout are
always evaluated (I thing is only decode called) regardless rendered
value, but they are actually displayed only if rendered is true. This is
started to happening lately.
Any ideas?
--
Luka Surija
+385 1 61 99 140
+385 98 434 061
luka@iytim.hr
I.Y. tim d.o.o.
Vrbik 3, HR-10000 Zagreb
www.iytim.hr
info@iytim.hr
Re: Wierd bug!?
Posted by Luka Surija <lu...@iytim.hr>.
code is ok. I made typo in this mail.
Luka Surija
+385 1 61 99 140
+385 98 434 061
luka@iytim.hr
I.Y. tim d.o.o.
Vrbik 3, HR-10000 Zagreb
www.iytim.hr
info@iytim.hr
Richard Yee wrote:
> Check your code.
> <tr:panelHorizontalLayout rendered="{MyBean.display}">
>
> "{MyBean.display}" isn't an EL expression. You are missing the #
> it should be "#{MyBean.display}"
>
> On Fri, Nov 14, 2008 at 7:43 AM, Luka Surija <lu...@iytim.hr> wrote:
>
>> Also with trinidad 1.2.x no luck.
>>
>> I'll try with JSF 1.2_09. But still this is a pretty ugly bug.
>>
>> tnx,
>>
>> Luka Surija
>>
>> +385 1 61 99 140
>> +385 98 434 061
>> luka@iytim.hr
>>
>> I.Y. tim d.o.o.
>> Vrbik 3, HR-10000 Zagreb
>> www.iytim.hr
>> info@iytim.hr
>>
>>
>>
>> Scott O'Bryan wrote:
>>
>>> Luka, if you are using JSF 1.2, you need to be on the Trinidad 1.2.x
>>> branch. Also, I would use as late a JSF as you can. Perhaps 1.2_09.
>>>
>>> Scott
>>>
>>> Luka Surija wrote:
>>>
>>>> Hi,
>>>> last 2 days I'm going crazy because something changed in JSF
>>>> constellation and now I have a problem that I can't locate. The following
>>>> scenario:
>>>>
>>>> Environment:
>>>> Glassfish (JSF RI 1.2_04-b18-p03)
>>>> Trinidad (1.0.5 -> 1.0.11-SNAPSHOT)
>>>> Facelets (1.1.12 -> 1.1.14)
>>>>
>>>>
>>>> <tr:commandButton text="Display" >
>>>> <tr:setActionListener from="#{true}" to="#{MyBean.display}" />
>>>> </tr:commandButton>
>>>>
>>>>
>>>> <tr:panelHorizontalLayout rendered="{MyBean.display}">
>>>>
>>>> <tr:outputText value="Test : #{MyBean.npeValue}" />
>>>> </tr:panelHorizontalLayout>
>>>>
>>>> MyBean is session scope,
>>>> MyBean.display property default value is false;
>>>> MyBean.npeValue returns some value, it shouldn't be called if
>>>> display!=true
>>>>
>>>> So, what's happening here? Components inside PanelHorizontalLayout are
>>>> always evaluated (I thing is only decode called) regardless rendered value,
>>>> but they are actually displayed only if rendered is true. This is started to
>>>> happening lately.
>>>>
>>>> Any ideas?
>>>>
>>>>
>>>
>
>
Re: Wierd bug!?
Posted by Richard Yee <ri...@gmail.com>.
Check your code.
<tr:panelHorizontalLayout rendered="{MyBean.display}">
"{MyBean.display}" isn't an EL expression. You are missing the #
it should be "#{MyBean.display}"
On Fri, Nov 14, 2008 at 7:43 AM, Luka Surija <lu...@iytim.hr> wrote:
> Also with trinidad 1.2.x no luck.
>
> I'll try with JSF 1.2_09. But still this is a pretty ugly bug.
>
> tnx,
>
> Luka Surija
>
> +385 1 61 99 140
> +385 98 434 061
> luka@iytim.hr
>
> I.Y. tim d.o.o.
> Vrbik 3, HR-10000 Zagreb
> www.iytim.hr
> info@iytim.hr
>
>
>
> Scott O'Bryan wrote:
>>
>> Luka, if you are using JSF 1.2, you need to be on the Trinidad 1.2.x
>> branch. Also, I would use as late a JSF as you can. Perhaps 1.2_09.
>>
>> Scott
>>
>> Luka Surija wrote:
>>>
>>> Hi,
>>> last 2 days I'm going crazy because something changed in JSF
>>> constellation and now I have a problem that I can't locate. The following
>>> scenario:
>>>
>>> Environment:
>>> Glassfish (JSF RI 1.2_04-b18-p03)
>>> Trinidad (1.0.5 -> 1.0.11-SNAPSHOT)
>>> Facelets (1.1.12 -> 1.1.14)
>>>
>>>
>>> <tr:commandButton text="Display" >
>>> <tr:setActionListener from="#{true}" to="#{MyBean.display}" />
>>> </tr:commandButton>
>>>
>>>
>>> <tr:panelHorizontalLayout rendered="{MyBean.display}">
>>>
>>> <tr:outputText value="Test : #{MyBean.npeValue}" />
>>> </tr:panelHorizontalLayout>
>>>
>>> MyBean is session scope,
>>> MyBean.display property default value is false;
>>> MyBean.npeValue returns some value, it shouldn't be called if
>>> display!=true
>>>
>>> So, what's happening here? Components inside PanelHorizontalLayout are
>>> always evaluated (I thing is only decode called) regardless rendered value,
>>> but they are actually displayed only if rendered is true. This is started to
>>> happening lately.
>>>
>>> Any ideas?
>>>
>>
>>
>
Re: Wierd bug!?
Posted by Luka Surija <lu...@iytim.hr>.
Also with trinidad 1.2.x no luck.
I'll try with JSF 1.2_09. But still this is a pretty ugly bug.
tnx,
Luka Surija
+385 1 61 99 140
+385 98 434 061
luka@iytim.hr
I.Y. tim d.o.o.
Vrbik 3, HR-10000 Zagreb
www.iytim.hr
info@iytim.hr
Scott O'Bryan wrote:
> Luka, if you are using JSF 1.2, you need to be on the Trinidad 1.2.x
> branch. Also, I would use as late a JSF as you can. Perhaps 1.2_09.
>
> Scott
>
> Luka Surija wrote:
>> Hi,
>> last 2 days I'm going crazy because something changed in JSF
>> constellation and now I have a problem that I can't locate. The
>> following scenario:
>>
>> Environment:
>> Glassfish (JSF RI 1.2_04-b18-p03)
>> Trinidad (1.0.5 -> 1.0.11-SNAPSHOT)
>> Facelets (1.1.12 -> 1.1.14)
>>
>>
>> <tr:commandButton text="Display" >
>> <tr:setActionListener from="#{true}" to="#{MyBean.display}" />
>> </tr:commandButton>
>>
>>
>> <tr:panelHorizontalLayout rendered="{MyBean.display}">
>>
>> <tr:outputText value="Test : #{MyBean.npeValue}" />
>> </tr:panelHorizontalLayout>
>>
>> MyBean is session scope,
>> MyBean.display property default value is false;
>> MyBean.npeValue returns some value, it shouldn't be called if
>> display!=true
>>
>> So, what's happening here? Components inside PanelHorizontalLayout
>> are always evaluated (I thing is only decode called) regardless
>> rendered value, but they are actually displayed only if rendered is
>> true. This is started to happening lately.
>>
>> Any ideas?
>>
>
>
Re: Wierd bug!?
Posted by Scott O'Bryan <da...@gmail.com>.
Luka, if you are using JSF 1.2, you need to be on the Trinidad 1.2.x
branch. Also, I would use as late a JSF as you can. Perhaps 1.2_09.
Scott
Luka Surija wrote:
> Hi,
> last 2 days I'm going crazy because something changed in JSF
> constellation and now I have a problem that I can't locate. The
> following scenario:
>
> Environment:
> Glassfish (JSF RI 1.2_04-b18-p03)
> Trinidad (1.0.5 -> 1.0.11-SNAPSHOT)
> Facelets (1.1.12 -> 1.1.14)
>
>
> <tr:commandButton text="Display" >
> <tr:setActionListener from="#{true}" to="#{MyBean.display}" />
> </tr:commandButton>
>
>
> <tr:panelHorizontalLayout rendered="{MyBean.display}">
>
> <tr:outputText value="Test : #{MyBean.npeValue}" />
> </tr:panelHorizontalLayout>
>
> MyBean is session scope,
> MyBean.display property default value is false;
> MyBean.npeValue returns some value, it shouldn't be called if
> display!=true
>
> So, what's happening here? Components inside PanelHorizontalLayout are
> always evaluated (I thing is only decode called) regardless rendered
> value, but they are actually displayed only if rendered is true. This
> is started to happening lately.
>
> Any ideas?
>