Re: [NOT SOLVED] Re: JSF2 f:metadata and templates what the feck am I doing wrong?

2011-04-29 Thread Stephen Connolly
On 29 April 2011 12:08, Jakob Korherr wrote: > Hi Stephen, > > This actually is a very common mistake people make with JSF 2. The > problem is the following: > > As you correctly pointed out, f:metadata needs to be a direct child of > f:view. However, with facelets f:view is handled very differen

AW: [NOT SOLVED] Re: JSF2 f:metadata and templates what the feck am I doing wrong?

2011-04-29 Thread Ing. Thomas Kernstock
egards Thomas -Ursprüngliche Nachricht- Von: sethfromaust...@gmail.com [mailto:sethfromaust...@gmail.com] Im Auftrag von Jakob Korherr Gesendet: Freitag, 29. April 2011 13:09 An: MyFaces Discussion Betreff: Re: [NOT SOLVED] Re: JSF2 f:metadata and templates what the feck am I doing wrong?

Re: [NOT SOLVED] Re: JSF2 f:metadata and templates what the feck am I doing wrong?

2011-04-29 Thread Jakob Korherr
Hi Stephen, This actually is a very common mistake people make with JSF 2. The problem is the following: As you correctly pointed out, f:metadata needs to be a direct child of f:view. However, with facelets f:view is handled very differently then with JSP. In JSP you need f:view as the root tag f

Re: [NOT SOLVED] Re: JSF2 f:metadata and templates what the feck am I doing wrong?

2011-04-29 Thread Stephen Connolly
If I change the template to */WEB-INF/templates/basic.xhtml* http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml"; xmlns:ui=" http://java.sun.com/jsf/facelets"; xmlns:h="http://java.sun.com/jsf/html"; xmlns:f=" http://java.sun.com/jsf/core";>

[NOT SOLVED] Re: JSF2 f:metadata and templates what the feck am I doing wrong?

2011-04-29 Thread Stephen Connolly
Spoke too soon :-( I'd been checking to see if it was the servlet mapping that was causing the issues, so I changed the mapping from *.xhtml to *.faces... and I'd forgotten to change the url in my browser, so I was being served the raw .xhtml which was rendering the as a ... removing the com.su

[SOLVED] Re: JSF2 f:metadata and templates what the feck am I doing wrong?

2011-04-29 Thread Stephen Connolly
Ok, I just found the/a solution. that was to remove com.sun.faces.validateXml true from the web.xml For some reason this completely ruins the f:metadata tag Not sure if that is a bug or a "feature" but might as well post the solution anyway so that others might benefit -Stephen

JSF2 f:metadata and templates what the feck am I doing wrong?

2011-04-29 Thread Stephen Connolly
Myfaces 2.0.5. I have been reading the JSF docs on the f:metadata tag..., e.g. http://javaserverfaces.java.net/nonav/docs/2.0/vdldocs/facelets/f/metadata.htmland http://myfaces.apache.org/core20/myfaces-impl/tlddoc-facelets/index.html I cannot seem to get f:metadata to work, e.g. */WEB-INF/templ