Thank you, Matt.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt
Raible
Sent: Monday, June 11, 2007 10:35 AM
To: [email protected]
Subject: Re: [appfuse-user] appfuse-JSF two questions
On 6/11/07, Ding, Qin <[EMAIL PROTECTED]> wrote:
>
>
>
>
> May I repost this requestion again? I use Appfuse 1.9.4 and JSF.
>
> 1). In users.xhtml, I see <f:loadBundle var="text"
> basename="#{userList.bundleName}"/> ;
>
> In mainMenu.xhtml, I see <f:loadBundle var="text"
> basename="#{basePage.bundleName}"/>
>
>
>
> Where is xxx.bundleName is defined? I created a mypage.xhtml and put
> <f:loadBundle var="text" basename="#{myPage.bundleName}"/>. I got an
error:
> Can't find bundle for base name locale en.
If you look in faces-config.xml, you should find the "basePage"
managed-bean, which will point you to BasePage.java - which as the
getBundleName() method.
If you're getting an error, you're probably not extending BasePage.
>
>
>
> 2. In the tutorial, I read the following:
>
> "If you want to customize the CSS for a particular page, you can add
<body
> id="pageName"/> to the top of the file (right after the </content>
tag).
>
> This will be slurped up by SiteMesh and put into the final page. You
can
> then customize your CSS on a page-by-page basis using something like
>
> the following: body#pageName element.class { background-color: blue }
"
>
>
>
> What file is it where I should put <body id="pageName"/> on top right
after
> </content>? If my page is named as myPage.xhtml, body id then should
be
> "myPage"?? I don't follow this instruction.
If you're familiar with CSS, this should make sense. If it doesn't, I
wouldn't worry about it. By giving a page an id, you can control the
look and feel for that page. However, it's likely rare that you'll
need to do this. It has more to do with CSS than AppFuse.
Matt
> Could you please help by
> explaining a bit more or give me a simple sample code to follow? Or
point
> me to some document on how to change the L&F on pages within appfuse.
>
> Thank you very much.
>
>
>
> QD
>
>
--
http://raibledesigns.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]