Question

Somehow the content of the marquee tag is empty, after refreshing the page.

<f:verbatim><marquee>#{circuitBean.feed}</marquee></f:verbatim>

It happened this problem occurred multiple times in my project, as described in my other question.

So I thought this is a general problem, which is not specifically related to my previous question. Does is have to do anything with my bean-annotations?

Backing Bean

@ManagedBean
@ApplicationScoped
public class CircuitBean implements Serializable{

    @EJB
    FeedEJB feedEJB;

    private String feed;

    public String getFeed() {
        feed = feedEJB.getFeedString();
        return feed; 
    }
}

EDIT

Even when setting a variable in JS that holds the feed, it becomes empty after a page refresh!

var feed = #{circuitBean.feed};
--> becomes -->
var feed = ;
Was it helpful?

Solution

If I'm not mistaken the marquee tag has been deprecated in HTML 4.0 and higher. It resides in CSS these days.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top