Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

iceFaces make an effect on link when it is clicked

 
Grega Leskovšek
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<ice:form>
<ice: outputLink target="_blank" value="http://users.skavt.net/~gleskovs/">
<ice: commandButton value="Invoke"
action="#{effectBean.invokeEffect}"/>

<ice: outputText value="Effect Test"
effect="#{effectBean.textEffect}"/>
</ice: outputLink>
</ice:form>

I tried this, but I do not know how to make an effect when I click the link directly and not on a commandButton
Please help me
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are you nesting a button inside a link?
 
Grega Leskovšek
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just want to merge this:
<ice: commandButton value="Invoke"
action="#{effectBean.invokeEffect}"/>

<ice: outputText value="Effect Test"
effect="#{effectBean.textEffect}"/>

together into one command that it will effect itself when it will be clicked but I do not know how.
You are right, that is just a temporary code.
Yours, Grega
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic