wood burning stoves 2.0*
The moose likes JSF and the fly likes iceFaces make an effect on link when it is clicked Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "iceFaces make an effect on link when it is clicked" Watch "iceFaces make an effect on link when it is clicked" New topic
Author

iceFaces make an effect on link when it is clicked

Grega Leskovšek
Ranch Hand

Joined: Nov 13, 2008
Posts: 56
<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


--Always, Grega from Peace refuge
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Why are you nesting a button inside a link?
Grega Leskovšek
Ranch Hand

Joined: Nov 13, 2008
Posts: 56
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: iceFaces make an effect on link when it is clicked