Hi Matthias,

If you have some javascript in onclick we have to use the jsf.util.chain()
function to chain your javascript with the MyFaces javascript. For that to
work we need the JSF javascript library in the view. This include _should_
happen automatically, but it seems that it does not.

I'll take a look at this one! For now you can include the following in your
view to include the JSF javascript library manually and thus to make it
work:

<h:outputScript name="jsf.js" library="javax.faces" target="head"/>

Regards,
Jakob

2010/4/1 Matthias Leis <[email protected]>

> Hi,
>
> I have this piece of code:
> <h:commandLink value="#{msg.adminPageLogFileTableDelete}"
> action="#{adminPage.deleteLogFile}" onclick="confirm('Are you sure?')"/>
>
> When I click the link, I get an JavaScript error: jsf is not defined
>
> What does this mean?
>
> I am using myfaces 2.0.0-beta-3
>
> Any help is appreciated :)
> --
> GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
> Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
>

Reply via email to