• Post Reply Bookmark Topic Watch Topic
  • New Topic

Flash in JSF  RSS feed

 
Awais Sheikh
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I m facing a big big trouble.
I am using a flash animation in a page. Name of the flash animation file comes from a MBean. I m writing below the code of that flash object.


{dt.tops} This contains the file name of flash.

When I run this file in browser, flash file is unable to display. Then I tried to check the source of runnin file (view->source). I m quite disappointed to see that {dt.tops} is showing instead of file name.
please guide me why it is not working while other images and data is showing properly.

Thanks
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's because your Flash tag isn't a JSF tag. You can probably use JSTL (${dt.tops}) to get what you want, but beware - mixing plain JSP (or JSP+JSTL) and JSF on the same page can lead to problems.

Also, fair warning. Don't use Flash as the sole means of conducting important business logic if you intend to do business with me. I almost never install Flash on my machines. So If I run into a Flash wall, I go buy from someone else.

And if you think I'm hardnosed about Flash, don't even ask about using ActiveX. I run FoxFire under Linux and I'm quite paranoid about my system security.
 
Sergey Smirnov
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
...or you can use facelets and #{} will work everywhere on the page.
 
Awais Sheikh
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot for your replies.

Tim Holloway
Sir, Actually I am just getting the name of the top banner from the MBean, which is developed in flash. It doesn't contain any business logic. All pages have same structure. So i have developed one main page. Images, links come from MBeans. Please guide me is there anything wrong in this scenario . So its time to use JSTL?? isn't it??

Sergey Smirnov
Sir, I am already using this "#{dt.tops}" for picking up flash file name. I think Mr. Tim is right as flash object is not a JSF tag.
 
Sergey Smirnov
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yep. Mr Tim is right. The flash object is not a jsf tag. My point was - if you use facelets the attribute of jsf tag is not a restriction anymore for the place where you can use #{}
 
Lone Gunmen
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greetings party people.....
I ran into the same problem. Apache Tomahawk addresses the problem

<t:htmlTag [{all standard UIOutput attributes}]>
<f:param name="AttributeName" value="AttributeValue" />
</t:htmlTag>

here's my impl

<t:htmlTag value="param">
<f:param name="name" value="movie"/>
<f:param name="value" value="someURL?someParam=#{someService.getSome}"/>
</t:htmlTag>

http://myfaces.apache.org/tomahawk-project/tomahawk12/tagdoc/t_htmlTag.html
 
Amit Ghorpade
Bartender
Posts: 2856
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Jason Rrrrrrrr" please check your private messages for an important administrative matter. You can see them by clicking the My Private Messages link above.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!