• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

JSR168 PortletBridge with WebLogic Portal

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I try to integrate JForum in my WebLogic Portal by using the JSR168 PortletBridge.
Installation is OK but I have 2 problems :
- when I reach the page which list the topic of a forum (with a moderator user), I've got a javascript error. This is due to the following lines in the forum_show.htm :

There must be a problem in encoding the js file url.

- on the page which allows to add a post, I fill the form fields and when I submit the form, the new post is not added and I go directly to the list of the topics of the forum.

Can anybody help me please ?

[originally posted on jforum.net by toomtooms]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) Which JS error?
2) Which JForum version? In 2.1.7 we fixed some problems related to Javascript that made the system behave like you said.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

1) Which JS error?



I've attached the error window.
The generated code is


2) Which JForum version? In 2.1.7 we fixed some problems related to Javascript that made the system behave like you said.



I downloaded the source from the following location : http://svn.jahia.org/svn/jforum_portlet/trunk/
I don't know which version it is. In the build.xml file, the version is 2.1.
[originally posted on jforum.net by toomtooms]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
anybody can help me please ?
[originally posted on jforum.net by toomtooms]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After some researches, I found something on my second problem.
When I submit the form which permits to add a new post, I get the following parameters in the processAction method of the JForumPortletBridge class :

and in the render method of the same class, I get the following parameters :

The problem seems to come from parameters which have values with special characters. Here, the addbbcode18 parameter value is #444444 (which is encoded in %23444444).
If I remove this parameter, the same problem occurs on the parameter helpbox. And if I remove this parameter, the form is well submitted and the post is added.

Can anybody tell me how to solve this encoding issue ?

Thanks
[originally posted on jforum.net by toomtooms]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To deal with URL character encoding, Java has URLEncoder and URLDecoder classes. You can convert back to the "true" format by calling java.net.URLDecoder.decode(String, "UTF-8");

FWIW, Javascript also has an encode and decode function if you need to deal with it at that level.

I don't know for sure, but I wouldn't be surprised if FreeMarker (the template engine used by jForum) didn't have something similar.
[originally posted on jforum.net by monroe]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi toomtooms,

I wanted to integrate Portlet Bridge(http://www.portletbridge.org) with WebLogic Portal 9.2, im not sure how to install it and use it.

if you are also using the same bridge pls guide me in installation. If you are using some other bridge pls give me the details of the bridge you are using and installation steps.

Thanks in Advance
Ravi
[originally posted on jforum.net by valigari]
    Bookmark Topic Watch Topic
  • New Topic