You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Andrzej Jakubowski <An...@ericpol.pl> on 2006/12/13 13:28:45 UTC

[tomahawk] problem with jscookmenu in firefox and mozilla

Hello,

I have got a problem with jscookmenu in firefox 2, 1.0 (linux), Mozilla 
1.7.2 (MS).
Menu does not dispaly at all, and in the JS console some errors appear.

Menu works fine in Opera and in IE 6.

Errors from firefox:

Error: myThemeOfficeBase is not defined
Plik źródłowy: 
http://localhost:8080/jsf1.2-tomahawk-facelets/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11660112/navmenu.jscookmenu.HtmlJSCookMenuRenderer/ThemeOffice/theme.js
Wiersz: 4

Error: item has no properties
Plik źródłowy: 
http://localhost:8080/jsf1.2-tomahawk-facelets/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11660112/navmenu.jscookmenu.HtmlJSCookMenuRenderer/JSCookMenu.js
Wiersz: 119


I am using facelets, tomahawk-1.1.5-SNAPSHOT

sample file:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="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"
    xmlns:t="http://myfaces.apache.org/tomahawk">

<body>
<h:form>
    <h:messages />
    <t:outputText value="Hello"/>
           
        <t:jscookMenu layout="hbr" theme="ThemeOffice">

        <t:navigationMenuItem id="nav_1" itemLabel="1" itemValue="go_home"
            action="go_home" />
        <t:navigationMenuItem id="nav_2" itemLabel="2">
            <t:navigationMenuItem id="nav_2_1" itemLabel="3" 
action="go_sample1" />
            <t:navigationMenuItem split="true">            
</t:navigationMenuItem>
            <t:navigationMenuItem id="nav_2_2" itemLabel="4" 
action="go_sample2"
                icon="images/myfaces.gif" />
            <t:navigationMenuItem id="nav_2_4" itemLabel="5"
                icon="images/component.gif" split="true">
            </t:navigationMenuItem>
        </t:navigationMenuItem>
        <t:navigationMenuItem id="nav_3" itemLabel="Apache MyFaces Home"
            action="http://myfaces.apache.org" />
    </t:jscookMenu>

</h:form>
</body>
</html>

Any ideas?

Regards
Andrzej

-- 
Andrzej Jakubowski
http://www.ericpol.pl/


RE: Dynamically changing newspaperColumns in dataTable

Posted by Yaron Spektor <ya...@b6systems.com>.
Hi Frank,
See my previous thread on this.
There is a bug in the newspaper column that was not fixed yet.
It does not read the binded value but only the numeric value you set, or
else sets it to 1. I was told to write to JIRA but I saw that was
already done.
I am also waiting for that fix.
Good luck,

-----Original Message-----
From: Oellien, F (Frank) [mailto:Frank.Oellien@intervet.com] 
Sent: Friday, December 15, 2006 8:39 AM
To: MyFaces Discussion
Subject: Dynamically changing newspaperColumns in dataTable

Hello,

I am using dataTable to define a tabular layout in my page.
The dataTable contains the same class as value. So I use the newspaper
option to display the tabular data.
My problem is that the tabular layout can change between each request
which means that the table can have x columns and y rows depending on
the layout.
I thought that I can influence the number of columns by binding the
newspaperColumns value to a function in the backing bean. However, this
value will obviously only be read during the initialization of
dataTable. If the number changes during further request, it has no
influence on the number of columns. I have also tried to set
preserveDataModel to false.

With regards

Frank Oellien
--------------------------------------
This message, including attachments, is confidential and may be
privileged.
If you are not an intended recipient, please notify the sender then
delete
and destroy the original message and all copies. You should not copy,
forward
and/or disclose this message, in whole or in part, without permission of
the sender.
--------------------------------------

Dynamically changing newspaperColumns in dataTable

Posted by "Oellien, F (Frank)" <Fr...@intervet.com>.
Hello,

I am using dataTable to define a tabular layout in my page.
The dataTable contains the same class as value. So I use the newspaper
option to display the tabular data.
My problem is that the tabular layout can change between each request
which means that the table can have x columns and y rows depending on
the layout.
I thought that I can influence the number of columns by binding the
newspaperColumns value to a function in the backing bean. However, this
value will obviously only be read during the initialization of
dataTable. If the number changes during further request, it has no
influence on the number of columns. I have also tried to set
preserveDataModel to false.

With regards

Frank Oellien
--------------------------------------
This message, including attachments, is confidential and may be privileged.
If you are not an intended recipient, please notify the sender then delete
and destroy the original message and all copies. You should not copy, forward
and/or disclose this message, in whole or in part, without permission of
the sender.
--------------------------------------

Re: [tomahawk] problem with jscookmenu in firefox and mozilla

Posted by Andrzej Jakubowski <An...@ericpol.pl>.
Hello,

I can reply myself.

I have switched from  JSF RI 1.2_03 to MyFaces 1.1.5 and it works now.

So it looks like jscookmenu does not work with JSF RI in mozilla and 
firefox.

Regards
Andrzej

Andrzej Jakubowski wrote:

> Hello,
>
> I have got a problem with jscookmenu in firefox 2, 1.0 (linux), 
> Mozilla 1.7.2 (MS).
> Menu does not dispaly at all, and in the JS console some errors appear.
>
> Menu works fine in Opera and in IE 6.
>
> Errors from firefox:
>
> Error: myThemeOfficeBase is not defined
> Plik źródłowy: 
> http://localhost:8080/jsf1.2-tomahawk-facelets/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11660112/navmenu.jscookmenu.HtmlJSCookMenuRenderer/ThemeOffice/theme.js 
>
> Wiersz: 4
>
> Error: item has no properties
> Plik źródłowy: 
> http://localhost:8080/jsf1.2-tomahawk-facelets/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11660112/navmenu.jscookmenu.HtmlJSCookMenuRenderer/JSCookMenu.js 
>
> Wiersz: 119
>
>
> I am using facelets, tomahawk-1.1.5-SNAPSHOT
>
> sample file:
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="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"
>    xmlns:t="http://myfaces.apache.org/tomahawk">
>
> <body>
> <h:form>
>    <h:messages />
>    <t:outputText value="Hello"/>
>                  <t:jscookMenu layout="hbr" theme="ThemeOffice">
>
>        <t:navigationMenuItem id="nav_1" itemLabel="1" itemValue="go_home"
>            action="go_home" />
>        <t:navigationMenuItem id="nav_2" itemLabel="2">
>            <t:navigationMenuItem id="nav_2_1" itemLabel="3" 
> action="go_sample1" />
>            <t:navigationMenuItem split="true">            
> </t:navigationMenuItem>
>            <t:navigationMenuItem id="nav_2_2" itemLabel="4" 
> action="go_sample2"
>                icon="images/myfaces.gif" />
>            <t:navigationMenuItem id="nav_2_4" itemLabel="5"
>                icon="images/component.gif" split="true">
>            </t:navigationMenuItem>
>        </t:navigationMenuItem>
>        <t:navigationMenuItem id="nav_3" itemLabel="Apache MyFaces Home"
>            action="http://myfaces.apache.org" />
>    </t:jscookMenu>
>
> </h:form>
> </body>
> </html>
>
> Any ideas?
>
> Regards
> Andrzej
>


-- 
Andrzej Jakubowski
http://www.ericpol.pl/