Ajax Action on <p:media> how ?

UI Components for JSF
Post Reply
ayibogan
Posts: 9
Joined: 17 Aug 2010, 16:30

17 Aug 2010, 16:39

Hi,
i try to save views for a video by incrementing each click.

i try:
<h:form>
<p:media value="http://www.youtube.com/..LINK" player="flash">
<p:ajax event="click" action="#{videoBean.increment}"/>
</p:media>
</h:form>

//****VideoBean****
public void increment() {
count++;
}

-------------------------------------------------------------------------------------
i also try:
<h:form>
<p:media value="http://www.youtube.com/..LINK" player="flash">
<p:ajax event="click" actionListener="#{videoBean.increment}"/>
</p:media>
</h:form>

//****VideoBean****
public void increment(ActionEvent actionEvent) {
count++;
}


Anyone an idea how to solve this?

THX

ayibogan
Posts: 9
Joined: 17 Aug 2010, 16:30

18 Aug 2010, 12:22

noOne a idea?

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 28 guests