[Logo] OLD FORUM - Use new one: https://www.CaptainCasa.online/forum
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
TabbedpaneTab.image EL?  XML
Forum Index -> Development
Author Message
slist

Power User
[Avatar]

Joined: 20/03/2013 14:13:15
Messages: 37
Location: Berlin
Offline

Hi,
is it possible for the attribute image of a tabbedpanetab to support Java Expression Language? I want to display an error icon when an error occured within that tab.

Thanks + BR
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5555
Offline

Hi,
this is already possible...
Regards, Björn

Björn Müller, CaptainCasa GmbH
slist

Power User
[Avatar]

Joined: 20/03/2013 14:13:15
Messages: 37
Location: Berlin
Offline

Hi,
for completeness:
I had a rather complex EL Expression (#{not empty d.bean.map ? "/pathA.png" : "/pathB.png"}) in a dynamic content setting. Since I was not getting this to work, I introduced a new "phantom" getter returning the path. This work-around works as expected.

BR
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5555
Offline

Hi,

please use simple expressions (NOT containing any logic) only.

Background: the PageBean management is built on top of expression replacement:

Example: a PageBean-jsp has an expresison #{d.Address.firstName}. The page beans itself is used within an other page (ROWPAGEBEANDINCLUDE), there referenced as "#{d.Customer.address}".
At runtime the address-expressions are replaced to fit to the object situation: all "#{d.Address." are replaced by "#{d.Customer.address.".

So, some logic at the end of an expression will survive the replacement, but logic before will not be properly "translated"...

Regards, Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team