練功房推薦書單

  • 猛虎出柙雙劍合璧版--最新 OCA / OCP Java SE 7 Programmer 專業認證 (電子書)
  • 流浪教師存零股存到3000萬(全新增修版)(書+DVD)
  • 開始在關西自助旅行(京都‧大阪‧神戶‧奈良)(全新增訂版)
  • 不敗教主的300張股票存股術

Possible bug in the forums RSS feed
討論區首頁 » JForum中文社群 JForum Chinese Users Community
發表人 內容
acer123

九級學員

註冊時間: 2009/9/10
文章: 19
離線
I cannot find any jira site for the forums where i can post the possible bugs which i have found and been trying to fix recently. andwoson site looks pretty good and active also which is still suporting for JForums. I will also post my bugs and the fix i did so other people might find useful. One of them which i encountered lately is with the pagination:-

1) Go to Admin Control Panel
2) In page1 click on any user Edit link. Just click on submit when you are in edit page or try to edit any kind of information like firstname, lastname, etc for the user. Once clicked submit it will redirect you to the user listing page under admin control panel
3) Now click on page 2 and you will see the exception .

The problem is when you get returned from editing the user information jforums shows the next page link as :-

http://localhost:8080/jforums/adminUsers/editSave/30.page (This link throws an exception as there is nothing defined in urlpattern for editSave)

where originally it is suppose to show :-

http://localhost:8080/jforums/adminUsers/list/30.page

Any clue if this has to do something with the pagination.ftl ? or if you have encountered this issue ?
acer123

九級學員

註冊時間: 2009/9/10
文章: 19
離線
Ok i found the solution. Hope this is helpful for everyone. in UserAction.java under commonData() add :-

this.context.put("action","list");

And then change the bottom line in user_list.htm :-

<table width="100%">
<tr>
<td align="right"><#if thisPage?exists><@pagination.doPagination action/></#if></td>
</tr>
</table>

That's it. As commonData() is always called for any kind of action in UserAction.java whether you edit a user or edit a group. So now we know that action will always be list whenever it goes in commonData(). I don't know why a user when edited through the Admin page and click submit it always have the last action of editSave(). so when you click on the second page hence you get the exception. When the page refreshes everything works fine.

Hope this helps other people.
andowson

七段學員
[Avatar]

註冊時間: 2007/1/2
文章: 711
來自: 台北
離線
Thank you, acer123. This is a bug. In my site, when click the second page the exception is not shown, but the page will be redirected to the home page.
I maintained a bug fix project for JForum2. You can report the bug here:
http://code.google.com/p/jforum2/issues/list

分享經驗 累積智慧
[WWW]
acer123

九級學員

註冊時間: 2009/9/10
文章: 19
離線
Thanks man. I will sure do that. The more I play around with it the more I get issues and the more I fix it with your help also smilie. Hope to continue support and report bugs and their fixes also.
 
討論區首頁 » JForum中文社群 JForum Chinese Users Community
前往:   
行動版