myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerhard Petracek" <gerhard.petra...@gmail.com>
Subject Re: Mbean access from facelets template
Date Fri, 30 Nov 2007 11:41:12 GMT
hello,

basically using managed-beans within a template works just fine.

sounds like you are referring to a "general" problem which occurs within
your application (and not a specific problem with the template you provided)
<- is that true? (or is it just a problem with the template which doesn't
occur at other pages of your application?)

-> without checking your page in detail:
what's your concrete problem, if you try to access the "menuBean"-bean?
(do you get an exception? - if yes - which one?)

regards,
gerhard



2007/11/30, Rodrigo Olmo <rolmo@tecnalis.com>:
>
>  Hi all, i'm having problems accessing from a facelet template to a
> declare mbean; here is the code
>
>
>
> Menu.xhtml
>
>
>
> <!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">
>
>
>
> <head>
>
> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
>
> <title>Insert title here</title>
>
> </head>
>
>
>
> <body>
>
>
>
> <table>
>
>       <!-- Menu superior -->
>
>       <tr>
>
>             <td>
>
>                   <ui:component>
>
>                   <h:form>
>
>                   <t:jscookMenu layout="hbr" theme="ThemeOffice"
> styleLocation="/styles">
>
>                         <t:navigationMenuItem id="nmi1" itemLabel="Player"
> >
>
>                              <t:navigationMenuItem id="nmi1_1" itemLabel=
> "Personal">
>
>                                    <t:navigationMenuItem id="nmi1_1_1"
> itemLabel="Player">
>
>                                          <t:navigationMenuItem id="nmi1_1_1_1"
> itemLabel="Get player info" binding="#{menuBean.process}" value="224"
> action="#{menuBean.processAction}"/>
>
>                                          <t:navigationMenuItem id="nmi1_1_1_2"
> itemLabel="Modify player info"/>
>
>                                    </t:navigationMenuItem>
>
>                                    <t:navigationMenuItem id="nmi1_1_2"
> itemLabel="Bank Account">
>
>                                    </t:navigationMenuItem>
>
>                                    <t:navigationMenuItem id="nmi1_1_3"
> itemLabel="Subscriptions">
>
>                                    </t:navigationMenuItem>
>
>                                    <t:navigationMenuItem id="nmi1_1_4"
> itemLabel="Buddies">
>
>                                    </t:navigationMenuItem>
>
>                                    <t:navigationMenuItem id="nmi1_1_5"
> itemLabel="Credit Cards">
>
>                                    </t:navigationMenuItem>
>
>                              </t:navigationMenuItem>
>
>                              <t:navigationMenuItem id="nmi1_2" itemLabel=
> "Money">
>
>                              </t:navigationMenuItem>
>
>                              <t:navigationMenuItem id="nmi1_3" itemLabel=
> "Other">
>
>                              </t:navigationMenuItem>
>
>                         </t:navigationMenuItem>
>
>                         <t:navigationMenuItem id="nmi2" itemLabel=
> "Partner">
>
>                               <t:navigationMenuItem id="nmi2_1" itemLabel=
> "Player">
>
>                              </t:navigationMenuItem>
>
>                              <t:navigationMenuItem id="nmi2_2" itemLabel=
> "Affiliates">
>
>                              </t:navigationMenuItem>
>
>                              <t:navigationMenuItem id="nmi2_3" itemLabel=
> "Promos">
>
>                              </t:navigationMenuItem>
>
>                              <t:navigationMenuItem id="nmi2_4" itemLabel=
> "Rules">
>
>                              </t:navigationMenuItem>
>
>                              <t:navigationMenuItem id="nmi2_5" itemLabel=
> "Other">
>
>                              </t:navigationMenuItem>
>
>                         </t:navigationMenuItem>
>
>                         <t:navigationMenuItem id="nmi3" itemLabel=
> "Instance">
>
>                              <t:navigationMenuItem id="nmi3_1" itemLabel=
> "Security">
>
>                              </t:navigationMenuItem>
>
>                              <t:navigationMenuItem id="nmi3_2" itemLabel=
> "Services">
>
>                              </t:navigationMenuItem>
>
>                              <t:navigationMenuItem id="nmi3_3" itemLabel=
> "Auxiliary">
>
>                              </t:navigationMenuItem>
>
>                              <t:navigationMenuItem id="nmi3_4" itemLabel=
> "Other">
>
>                              </t:navigationMenuItem>
>
>                         </t:navigationMenuItem>
>
>                   </t:jscookMenu>
>
>                   </h:form>
>
>                   </ui:component>
>
>             </td>
>
>       </tr>
>
> </table>
>
>
>
> </body>
>
> </html>
>



-- 

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Mime
View raw message