File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Editing post

 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have problem with the post's edit with attachment. When I try to click the edit button, I see the blank page.
Thanks
[originally posted on jforum.net by gdemarco71]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please provide some more information. If after you click on the "Edit" button all you see is a blank page, check your webserver logs for some exception, or even the page source code (sometimes it's there).

And it is only with Attachments?

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok.
In the log file there's this message when I click on the edit button:

Expression a.info.comment is undefined on line 58, column 60 in trio/js/attachments.js.
The problematic instruction:
----------
==> ${a.info.comment} [on line 58, column 58 in trio/js/attachments.js]
in include "js/attachments.js" [on line 20, column 1 in trio/post_form.htm]

Peppe
[originally posted on jforum.net by gdemarco71]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok. Weird, though. Replace

${a.info.comment}

by

${a.info.comment?default("")}

and it should work.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Many thanks, now is all ok. :lol:
Ciao
Peppe
[originally posted on jforum.net by gdemarco71]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic