You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by glenster <gl...@hotmail.co.uk> on 2012/06/21 19:38:55 UTC

Tomahawk for JSF 2.0: t:panelTabbedPane renders as buttons

Hi,
 Has there been any further advances on this problem. I am having the same
troubles too with t:panelTabbedPane and t:panelTab tags.

I get buttons instead of tabs. This works under Tomahawk for JSF 1.2, but
not for the JSF 2.0 version.

In Tomahawk for JSF 2.0 it renders like this:

http://old.nabble.com/file/p34050087/tabs_problem.png 

If you or anyone has found a way to get tabs to render properly, I'd be
grateful to hear about it.

Many thanks,
Glen


Shane Petroff wrote:
> 
> On 11/29/2011 11:18 PM, Leonardo Uribe wrote:
>> Replace<head>  and<body>  tags with h:head and h:body will
>> solve the problem.
> 
> OK, another dumb question: where are h:head and h:body defined? The 
> other h tags 'live' in 
> myfaces-bundle-2.1.4.jar!META-INF/myfaces_html.tld, but there are no 
> tags for head and body defined in there. The facelets tld docs mention 
> them, but I'd like to keep as many jsp files around as I can (until I 
> have a need to change their functionality, then they would be converted 
> to facelets). At this point, all I'm trying to do is get the thing 
> running under the new libs (haven't actually changed anything yet apart 
> from ValueBindings -> ValueExpressions).
> 
> -- 
> Shane
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/t%3ApanelTabbed-tp32885226p34050087.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: Tomahawk for JSF 2.0: t:panelTabbedPane renders as buttons

Posted by Leonardo Uribe <lu...@gmail.com>.
Hi

You have to download the jars and include them as a library. Don't use
the old ones, a lot of improvements has been done since that time,
probably the problem could be caused by a bug in that time.

In eclipse, it is better to use apache maven and

mvn eclipse:eclipse

and then import the eclipse project into the workspace. Or maven+netbeans.

regards,

Leonardo Uribe

2012/6/22 glenster <gl...@hotmail.co.uk>:
>
> Hi Leonardo,
>  Thank you for your response.
>
> I have just tried the latest tomahawk (tomahawk20-1.1.13.jar) library, but
> it still renders the tabs as buttons.
>
> I have tried to upgrade the MyFaces Core JSF implementation to the latest
> 2.0.14 (currently using 2.0.2), but Eclipse only shows the older 2.0.2
> MyFaces library when I try to download the latest MyFaces library:
> http://old.nabble.com/file/p34054617/jsf_libs.png
>
> So I don't know if the latest MyFaces Core JSF Implementation would fix this
> problem.
> Anyone have any idea on how to force Eclipse to pickup the latest MyFaces
> Core library?
>
> Thanks again,
> Glen
>
>
>
> Leonardo Uribe wrote:
>>
>> Hi
>>
>> It could be of big help to compare the generated markup in 1.2 and
>> 2.0. Then, check if all required resource files are loaded. Also,
>> check that you are using the latest version (1.1.13).
>>
>> Checking the latest sample it works as expected. I don't see anything
>> strange between 1.2 and 2.0. See the working example at
>> http://www.irian.at/myfaces
>>
>> regards,
>>
>> Leonardo Uribe
>>
>> 2012/6/21 glenster <gl...@hotmail.co.uk>:
>>>
>>> Hi,
>>>  Has there been any further advances on this problem. I am having the
>>> same
>>> troubles too with t:panelTabbedPane and t:panelTab tags.
>>>
>>> I get buttons instead of tabs. This works under Tomahawk for JSF 1.2, but
>>> not for the JSF 2.0 version.
>>>
>>> In Tomahawk for JSF 2.0 it renders like this:
>>>
>>> http://old.nabble.com/file/p34050087/tabs_problem.png
>>>
>>> If you or anyone has found a way to get tabs to render properly, I'd be
>>> grateful to hear about it.
>>>
>>> Many thanks,
>>> Glen
>>>
>>>
>>> Shane Petroff wrote:
>>>>
>>>> On 11/29/2011 11:18 PM, Leonardo Uribe wrote:
>>>>> Replace<head>  and<body>  tags with h:head and h:body will
>>>>> solve the problem.
>>>>
>>>> OK, another dumb question: where are h:head and h:body defined? The
>>>> other h tags 'live' in
>>>> myfaces-bundle-2.1.4.jar!META-INF/myfaces_html.tld, but there are no
>>>> tags for head and body defined in there. The facelets tld docs mention
>>>> them, but I'd like to keep as many jsp files around as I can (until I
>>>> have a need to change their functionality, then they would be converted
>>>> to facelets). At this point, all I'm trying to do is get the thing
>>>> running under the new libs (haven't actually changed anything yet apart
>>>> from ValueBindings -> ValueExpressions).
>>>>
>>>> --
>>>> Shane
>>>>
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://old.nabble.com/t%3ApanelTabbed-tp32885226p34050087.html
>>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>>
>>
>>
>
> --
> View this message in context: http://old.nabble.com/t%3ApanelTabbed-tp32885226p34054617.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>

Re: Tomahawk for JSF 2.0: t:panelTabbedPane renders as buttons

Posted by glenster <gl...@hotmail.co.uk>.
Hi Leonardo,
 Thank you for your response.

I have just tried the latest tomahawk (tomahawk20-1.1.13.jar) library, but
it still renders the tabs as buttons.

I have tried to upgrade the MyFaces Core JSF implementation to the latest
2.0.14 (currently using 2.0.2), but Eclipse only shows the older 2.0.2
MyFaces library when I try to download the latest MyFaces library:
http://old.nabble.com/file/p34054617/jsf_libs.png 

So I don't know if the latest MyFaces Core JSF Implementation would fix this
problem.
Anyone have any idea on how to force Eclipse to pickup the latest MyFaces
Core library?

Thanks again,
Glen



Leonardo Uribe wrote:
> 
> Hi
> 
> It could be of big help to compare the generated markup in 1.2 and
> 2.0. Then, check if all required resource files are loaded. Also,
> check that you are using the latest version (1.1.13).
> 
> Checking the latest sample it works as expected. I don't see anything
> strange between 1.2 and 2.0. See the working example at
> http://www.irian.at/myfaces
> 
> regards,
> 
> Leonardo Uribe
> 
> 2012/6/21 glenster <gl...@hotmail.co.uk>:
>>
>> Hi,
>>  Has there been any further advances on this problem. I am having the
>> same
>> troubles too with t:panelTabbedPane and t:panelTab tags.
>>
>> I get buttons instead of tabs. This works under Tomahawk for JSF 1.2, but
>> not for the JSF 2.0 version.
>>
>> In Tomahawk for JSF 2.0 it renders like this:
>>
>> http://old.nabble.com/file/p34050087/tabs_problem.png
>>
>> If you or anyone has found a way to get tabs to render properly, I'd be
>> grateful to hear about it.
>>
>> Many thanks,
>> Glen
>>
>>
>> Shane Petroff wrote:
>>>
>>> On 11/29/2011 11:18 PM, Leonardo Uribe wrote:
>>>> Replace<head>  and<body>  tags with h:head and h:body will
>>>> solve the problem.
>>>
>>> OK, another dumb question: where are h:head and h:body defined? The
>>> other h tags 'live' in
>>> myfaces-bundle-2.1.4.jar!META-INF/myfaces_html.tld, but there are no
>>> tags for head and body defined in there. The facelets tld docs mention
>>> them, but I'd like to keep as many jsp files around as I can (until I
>>> have a need to change their functionality, then they would be converted
>>> to facelets). At this point, all I'm trying to do is get the thing
>>> running under the new libs (haven't actually changed anything yet apart
>>> from ValueBindings -> ValueExpressions).
>>>
>>> --
>>> Shane
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/t%3ApanelTabbed-tp32885226p34050087.html
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
> 
> 

-- 
View this message in context: http://old.nabble.com/t%3ApanelTabbed-tp32885226p34054617.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: Tomahawk for JSF 2.0: t:panelTabbedPane renders as buttons

Posted by glenster <gl...@hotmail.co.uk>.
Hi Leonardo,
 I have replaced my "head" and "body" tags with tomahawk "t:documentHead"
and "t:documentBody" tags but those css resources are still not being
included.

And h:head, h:body don't exist in the xml namespace I'm using. I get an
error about having to include facelets if I try to use it.

Thanks for your help so far with this by the way. Really appreciate your
time.

Cheers,
Glen


Leonardo Uribe wrote:
> 
> Hi
> 
> The important ones are the ones with ln=oam.custom.tabbedpane . If
> those ones are not rendered, your should check if your page use h:head
> and h:body tags, which where introduced in JSF 2.0 spec, and tomahawk
> for JSF 2.0 relies on them to output its resources. You can also use
> the ones bundled in tomahawk (t:document, t:documentHead and
> t:documentBody), but it is just the same.
> 
> That should solve the problem. It is good to check too if the
> generated link to the resource exists too.
> 
> regards,
> 
> Leonardo Uribe
> 
> 
-- 
View this message in context: http://old.nabble.com/t%3ApanelTabbed-tp32885226p34055205.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: Tomahawk for JSF 2.0: t:panelTabbedPane renders as buttons

Posted by glenster <gl...@hotmail.co.uk>.
No, I couldn't as I am not using Facelets. Tags require facelets.

But have tried using <t:documentHead> and <t:documentBody> tags. Though
still not working.

Glen


burghard.britzke wrote:
> 
> did you use <h:head> and <h:body>?
> 
> 
-- 
View this message in context: http://old.nabble.com/t%3ApanelTabbed-tp32885226p34057347.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: Tomahawk for JSF 2.0: t:panelTabbedPane renders as buttons

Posted by "burghard.britzke" <bu...@charmides.in-berlin.de>.
did you use <h:head> and <h:body>?

Am 22.06.2012 um 18:40 schrieb glenster:

> 
> I noticed that for MyFaces 1.2, these additional CSS resources are being
> automatically included in the generated page. That's why the tabs render
> correctly on there.
> But just not for MyFaces 2.0.
> I have successfully updated to Tomahawk 1.1.13 and MyFaces 2.0.14 now btw
> too as you kindly suggested.
> 
> I have double checked my web.xml config, to make sure I have included the
> correct filter and filter-mapping for the extensionsFilter according to:
> http://myfaces.apache.org/tomahawk/extensionsFilter.html
> http://myfaces.apache.org/tomahawk/extensionsFilter.html 
> 
> It all looks correct in there. Still no joy though.
> 
> Many thanks,
> Glen 
> 
> -- 
> View this message in context: http://old.nabble.com/t%3ApanelTabbed-tp32885226p34055393.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> 


Re: Tomahawk for JSF 2.0: t:panelTabbedPane renders as buttons

Posted by glenster <gl...@hotmail.co.uk>.
I noticed that for MyFaces 1.2, these additional CSS resources are being
automatically included in the generated page. That's why the tabs render
correctly on there.
But just not for MyFaces 2.0.
I have successfully updated to Tomahawk 1.1.13 and MyFaces 2.0.14 now btw
too as you kindly suggested.

I have double checked my web.xml config, to make sure I have included the
correct filter and filter-mapping for the extensionsFilter according to:
http://myfaces.apache.org/tomahawk/extensionsFilter.html
http://myfaces.apache.org/tomahawk/extensionsFilter.html 

It all looks correct in there. Still no joy though.

Many thanks,
Glen 

-- 
View this message in context: http://old.nabble.com/t%3ApanelTabbed-tp32885226p34055393.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: Tomahawk for JSF 2.0: t:panelTabbedPane renders as buttons

Posted by Leonardo Uribe <lu...@gmail.com>.
Hi

The important ones are the ones with ln=oam.custom.tabbedpane . If
those ones are not rendered, your should check if your page use h:head
and h:body tags, which where introduced in JSF 2.0 spec, and tomahawk
for JSF 2.0 relies on them to output its resources. You can also use
the ones bundled in tomahawk (t:document, t:documentHead and
t:documentBody), but it is just the same.

That should solve the problem. It is good to check too if the
generated link to the resource exists too.

regards,

Leonardo Uribe

2012/6/22 glenster <gl...@hotmail.co.uk>:
>
> Hi Leonardo,
>  I have followed your suggestion of looking at the generated markup.
> And I noticed that in the markup of the working example at:
> http://example.irian.at/example-simple20-2012062203/tabbedPane.jsf
>
> There are a bunch of css references at the top, that do not exist in the
> generated markup of my page.
> These css references are:
>
> <link rel="stylesheet" media="screen" type="text/css"
> href="/example-simple20-2012062203/javax.faces.resource/css/basic.css.jsf"
> />
> <link rel="stylesheet" media="screen" type="text/css"
> href="/example-simple20-2012062203/javax.faces.resource/defaultStyles.css.jsf?ln=oam.custom.tabbedpane"
> />
> <script type="text/javascript"
> src="/example-simple20-2012062203/javax.faces.resource/dynamicTabs.js.jsf?ln=oam.custom.tabbedpane"></script>
>
> I can see some style classes being referenced by the panelTabbedPane that
> are not available.
> So they must be from the above css files. Do you know if these styles are
> supplied from somewhere, or do I have to create them all myself?
>
> Thank you again,
>
> Glen
> --
> View this message in context: http://old.nabble.com/t%3ApanelTabbed-tp32885226p34054831.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>

Re: Tomahawk for JSF 2.0: t:panelTabbedPane renders as buttons

Posted by glenster <gl...@hotmail.co.uk>.
Hi Leonardo,
 I have followed your suggestion of looking at the generated markup.
And I noticed that in the markup of the working example at:
http://example.irian.at/example-simple20-2012062203/tabbedPane.jsf

There are a bunch of css references at the top, that do not exist in the
generated markup of my page.
These css references are:

<link rel="stylesheet" media="screen" type="text/css"
href="/example-simple20-2012062203/javax.faces.resource/css/basic.css.jsf"
/>
<link rel="stylesheet" media="screen" type="text/css"
href="/example-simple20-2012062203/javax.faces.resource/defaultStyles.css.jsf?ln=oam.custom.tabbedpane"
/>
<script type="text/javascript"
src="/example-simple20-2012062203/javax.faces.resource/dynamicTabs.js.jsf?ln=oam.custom.tabbedpane"></script>

I can see some style classes being referenced by the panelTabbedPane that
are not available. 
So they must be from the above css files. Do you know if these styles are
supplied from somewhere, or do I have to create them all myself?

Thank you again,

Glen
-- 
View this message in context: http://old.nabble.com/t%3ApanelTabbed-tp32885226p34054831.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: Tomahawk for JSF 2.0: t:panelTabbedPane renders as buttons

Posted by Leonardo Uribe <lu...@gmail.com>.
Hi

It could be of big help to compare the generated markup in 1.2 and
2.0. Then, check if all required resource files are loaded. Also,
check that you are using the latest version (1.1.13).

Checking the latest sample it works as expected. I don't see anything
strange between 1.2 and 2.0. See the working example at
http://www.irian.at/myfaces

regards,

Leonardo Uribe

2012/6/21 glenster <gl...@hotmail.co.uk>:
>
> Hi,
>  Has there been any further advances on this problem. I am having the same
> troubles too with t:panelTabbedPane and t:panelTab tags.
>
> I get buttons instead of tabs. This works under Tomahawk for JSF 1.2, but
> not for the JSF 2.0 version.
>
> In Tomahawk for JSF 2.0 it renders like this:
>
> http://old.nabble.com/file/p34050087/tabs_problem.png
>
> If you or anyone has found a way to get tabs to render properly, I'd be
> grateful to hear about it.
>
> Many thanks,
> Glen
>
>
> Shane Petroff wrote:
>>
>> On 11/29/2011 11:18 PM, Leonardo Uribe wrote:
>>> Replace<head>  and<body>  tags with h:head and h:body will
>>> solve the problem.
>>
>> OK, another dumb question: where are h:head and h:body defined? The
>> other h tags 'live' in
>> myfaces-bundle-2.1.4.jar!META-INF/myfaces_html.tld, but there are no
>> tags for head and body defined in there. The facelets tld docs mention
>> them, but I'd like to keep as many jsp files around as I can (until I
>> have a need to change their functionality, then they would be converted
>> to facelets). At this point, all I'm trying to do is get the thing
>> running under the new libs (haven't actually changed anything yet apart
>> from ValueBindings -> ValueExpressions).
>>
>> --
>> Shane
>>
>>
>>
>
> --
> View this message in context: http://old.nabble.com/t%3ApanelTabbed-tp32885226p34050087.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>