Return to Jive Software

This Question is Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
330 Views 1 Replies Last post: Oct 7, 2009 9:12 AM by houssein RSS
houssein Novice 3 posts since
Jul 21, 2009
Currently Being Moderated

Oct 7, 2009 7:07 AM

add proporties to a Widget

Hello.

 

I have scanned this space for a solution but unfortunately nothing worked out.

Therefore I´m starting a new post in order to get help.

 

I want to implement a widget, which includes a flah video. If I set the URL of the video (directly in the source code), the widget works,

but I don´t want such a static widget. I would like to have a widget so the admin can switch to the edit mode in order to set some parameters e.g.

the url. Unfortunately this is exactly my problem.

In the widget class I added following property, getters and setters:

 

@PropertyNames("url") 
 
public class FlashWidget extends BaseWidget 
{ 
private String url = "/url/video.flv";     
 
public String GetURL() {  return this.url; } 
public void setURL(String url) { this.url = url;} 
 
... 
} 
 
 
The .proporties file has following content:
 
# Resource bundle for FlashWidget 
# Author of widget 
author=Authorname 
# Version of the widget 
version=1.0 
# Properties - Display name and description 
url.displayName=URL of video 
url.shortDescription=This contains the URL of the flash-file

  

 

If I try to open the Edit - Mode in order to manipulate the attributes following failure occures:

HTTP Status 400 -

type Status report

message

description The request sent by the client was syntactically incorrect ()

 

If I use the attribute described in this documentation:

http://www.jivesoftware.com/jivespace/docs/DOC-3301

the Edit-GUI is shown insted of failure notice. If I add the changes described above to the sample, the same problem

occures. Does anyone have an idea to solve that probleme?

 

Thanks and best regards,

 

Houssein

Tags: developers, widget, widgets

More Like This

  • Retrieving data ...

Bookmarked By (0)