フォーラム

ホーム » Liferay Faces » Liferay Faces - English

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Johann Kneringer
Portlet Namespace adaption in liferay sdk
2012/10/23 1:54
答え

Johann Kneringer

ランク: Junior Member

投稿: 40

参加年月日: 2011/11/10

最近の投稿

Hey,

I hope this is the right place to discuss this.

I am using normal html tags like <h1> in my portlets.

I am getting warnings on my page like " Warning: This page calls for XML namespace declared with prefix h1 but no taglibrary exists for that namespace. "

I can solve this by adding "xmlns="http://www.w3.org/1999/xhtml" to f:view.

Is this the right solution or should I use something like <h:outputText escaped="false" /> etc...

If this is the right solution, the namespace adaption should be made to the plugin SDK, so this namespace appears in every portlet which gets created with Liferay IDE and plugin SDK.

regards,
Johann
Neil Griffin
RE: Portlet Namespace adaption in liferay sdk
2012/10/30 11:12
答え

Neil Griffin

LIFERAY STAFF

ランク: Liferay Legend

投稿: 2137

参加年月日: 2005/07/26

最近の投稿

Hi Johann,

You are correct, adding the following namespace is the correct thing to do:

xmlns="http://www.w3.org/1999/xhtml"

We have some updates that we need to make to the Plugins SDK JSF templates and the JSF archetypes for Maven. I'll make a note that we should add that. Thanks for the suggestion. emoticon

Neil