• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Adding a new link to header

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Rafael,

We want to add a new link to the header in the top of JForum. I have figured out how to activate the right method (by putting an entry into urlPattern.properties and modulesMapping.properties), however I get a templateNotFoundException. I have put an entry in templatesMapping.properties also for the navigation to go to forum_list.htm when the user clicks on this link..but it still gives this exception. Is there something else that needs to be set? Also, how can I perform an action upon a link in the header being clicked and stay in the same page? Thanks!

-Mallika
[originally posted on jforum.net by mallikamt]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How did you do the code?

About the " how can I perform an action upon a link in the header being clicked and stay in the same page", I quite didn't understand the question - what you mean by "click on a link and stay in the same page"?

Rafael

[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Rafael,

Thanks for the quick reply. I added a method to UserAction.java(called setLastVisitTime). I added an entry in urlPattern.properties -> user.setLastVisitTime.0 = In header.htm, I added a link with the encode url statement as /user/setLastVisitTime. In templatesMapping.properties, I added an entry -> user.setLastVisitTime = forum_list.htm
So, when this link is clicked on in header.htm, the method does trigger in UserAction.java, however after that it throws a templateNotFoundException, I want it to go to forum_list.htm

Please let me know if you have any other questions, thanks.
-Mallika
[originally posted on jforum.net by mallikamt]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Figured this out, I was missing entry in TemplateKeys.java..thanks.

-Mallika
[originally posted on jforum.net by mallikamt]
 
yeah, but ... what would PIE do? Especially concerning this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic