Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

hot to get javascript value in icefaces tag  RSS feed

 
sa sam
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my code is -


my problem is i am not getting the value os s_CSS.
 
Ilari Moilanen
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!