This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of DevSecOps Adventures: A Game-Changing Approach with Chocolate, LEGO, and Coaching Games and have Dana Pylayeva on-line!
See this thread for details.
  • 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
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

Creating forums from within an RCP application

 
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,

we use JForum 2.8.1 and want to create forums (and maybe do other administrative actions) from within an RCP application. What would be the best way to to do that? We considered using the REST interface but it currently does not provide this action. Will this functionality be implemented in the future or do we have to do the work? ;) Or would you suggest a completely other way?

Hope you can help us with our problem .

Best regards,
Seven
[originally posted on jforum.net by Sevenger]
 
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
The "Rich Client Platform" buzz word is such a broad area it's hard to say.. If you're talking about doing something on the UI using Ajax, then you might want to look at creating an Ajax specific set of template files. Using the template files, you can easily trim or change the information format. E.g., it can be modified to return just HTML "snippets" or JASON or XML.

This could be used by AJAX (or whatever) to present the info in whatever form you want.

You will have to figure out how you want to manage the user id connections, state, and the like.

Also, depending on your timeframe, you might want to look at jForum3 and maybe get involved with defining the REST API for that.
[originally posted on jforum.net by monroe]
 
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
Maybe you get me wrong: we have a "real" RCP application (no web interface - something you install on your system an then it runs standalone ;)). In there we will have an area "Forum administration" with a button "Create forum". if the user clicks it, a popup will arise prompting for the name of the forum and other relevant data. Afte the user hits "OK", the same action like in the "Admin Panel" of JForum should occur. For JForum, it should not be visible, whether the forum was created through the Admin Panel or our application.

Greetz,
Seven
[originally posted on jforum.net by Sevenger]
 
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
Hmm, probably the easiest way to do something like you're talking about is to use some sort of HTTP client to do the admin tasks. E.g., if it's a Java Application, use the Apache HTTPClient stuff to have your RCP "login" and "submit" the required forms to create forums, etc.

Just look at the HTML displayed for the forms you want to auto submit and then put together a POST with the required field pairs that calls the action. This will keep all the jForum caching happy, etc.
[originally posted on jforum.net by monroe]
 
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
We'll have it in JForum3, but I haven't started working on it because not all features are complete. JForum3 is ready for a beta, and I probably will start using it here soon, but the public api will take a while, as I need to fix some parts of VRaptor as well.

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
Sounds good. We will give it a try.

But what about the REST interface? I can't find it in JForum3 yet. Do I have to look closer or is it not still implemented yet? Above I said we use JForum 2.8.1, but that isn't correct. We just plan to use it. If REST will be supported by JForum3, we can wait for the first release. If you pave the way, we can also implement it by ourselves and commit it to your SVN.

Greetz,
Seven
[originally posted on jforum.net by Sevenger]
 
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 Steil wrote:JForum3 is ready for a beta, and I probably will start using it here soon, but the public api will take a while, as I need to fix some parts of VRaptor as well.

Rafael


Go Rafael!!!

I'm pulling for you and waiting with baited breathe (that's not as bad as it sounds).

:lol:
[originally posted on jforum.net by Cadillac]
 
reply
    Bookmark Topic Watch Topic
  • New Topic