• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

hot to get javascript value in icefaces tag

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
my code is -


my problem is i am not getting the value os s_CSS.
 
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I see no icefaces tags in your code so in what way is this a icefaces problem?

When you say "i am not getting the value" then what do you get instead. What is generated? Or does loading the page end in error? What kind of error?
 
sa sam
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i got the blank value when i run the page & by the way, this is small part of the icefaces code
 
Ilari Moilanen
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The topic of this thread is
"hot to get javascript value in icefaces tag"

So one would expect that you are talking about javascript AND icefaces tags. But there is NO javascript in your code example and there is no icafaces tags on your code example.

I am sorry if I keep on insisting on this matter but if you do not know what you are really asking it is not possible to answer your question! So is your question about icefaces and javascript or about your code example?

In your other question you asked about how to get the user agent with facelets tags and when you solve that question then you do not need to use the JSP scriptlets you use in your code above. Using scriptlets is considered bad coding practice. I personally would put all the code you have here to a backing bean and then just use the property of the backing bean to set the correct css filename. But if you do not want to do that then the second approach would be to use the facelets tags.
 
You can't have everything. Where would you put it?
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic