Issue Details (XML | Word | Printable)

Key: APF-710
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Matt Raible
Reporter: Olivier Liechti
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
AppFuse

Titles do not show up anymore in JSF pages (meta.heading has been replaced by page.heading)

Created: 28/Mar/07 08:13 AM   Updated: 29/Mar/07 01:23 AM   Resolved: 29/Mar/07 12:58 AM
Component/s: Web - JSF
Affects Version/s: 2.0-M4
Fix Version/s: 2.0-M4

Environment: Mac OS and Windows


 Description  « Hide
Hi,

Until recently, our basic-JSF project worked very well. Since a couple of days, the title that is displayed in the page (in large green characters) has disappeared. We have found out that the sitemesh decorator (default.jsp) seems to have been modified. Previously, there was a reference to meta.heading. Now, we have a reference to page.heading.

We are not sure if the source has been changed (does not look like it after digging into cvs), or if it is a problem with having several versions of default.jsp (perhaps in different .jar / .war / target directories)...

Cheers,

Olivier

Matt Raible added a comment - 28/Mar/07 11:26 AM
Did you recently upgrade to M4? If so, the problem is likely because your decorator is getting overridden by one in AppFuse. Can you diff your src/main/webapp/decorators/default.jsp against the one created in target/appname-version/decorators/default.jsp? If they're different, you might need to "touch" the one in your local directory so it has a newer timestamp.

Olivier Liechti added a comment - 28/Mar/07 11:39 AM
With the jsf-basic archetype, there is no default.jsp in src/main/webapp/decorators/. To fix the problem, we had to copy the one from the target subtree into the src subtree and change it.

Matt Raible added a comment - 28/Mar/07 11:49 AM
When you say "change it", do you mean you had to change it to fix the problem? If so, what change did you make? Does this issue happen on http://demo.appfuse.org/appfuse-jsf?

Olivier Liechti added a comment - 28/Mar/07 11:54 AM
we replaced "page.heading" with "meta.heading" in the source. The online demo works fine.

Matt Raible added a comment - 28/Mar/07 12:59 PM
This is indeed a bug - thanks for spotting it.

It seems AppFuse is grabbing the decorator from appfuse-common-web instead of appfuse-jsf. I'll try to fix it tonight.

Matt Raible added a comment - 29/Mar/07 12:58 AM
This should be fixed now - I republished the M4 artifacts, so if you rm -r ~/.m2/repository/org/appfuse and try again it should work.

I did notice that the login page no longer shows up with a title. This is likely related to APF-487, which I hope to fix soon.

Matt Raible made changes - 29/Mar/07 12:58 AM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Fix Version/s 2.0-M4 [ 10130 ]
Olivier Liechti added a comment - 29/Mar/07 01:23 AM
Great! many thanks!