Hi, On Thu, Dec 8, 2011 at 3:09 PM, Sumedha Rubasinghe <sume...@wso2.com> wrote:
> Lalaji, > You haven't mentioned what are the jars required. Can we do a custom pack > & host on builder machine for Paul to provide feedback please. Getting some > feedback would help immensely. > Sorry I missed to mention the jars required. Following jars need to add to lib/api directory. 1.org.wso2.carbon.jaggery.javascript-1.0-SNAPSHOT.jar 2.shindig-common-3.0.0-SNAPSHOT.jar 3.commons-codec_1.4.0.wso2v1.jar 4.commons-lang3-3.1.jar I'll host a custom AS 3.2.2 pack to the builder machine and update the thread. Thanks; > > /sumedha > > > On Thu, Dec 8, 2011 at 2:03 PM, Lalaji Sureshika <lal...@wso2.com> wrote: > >> Hi Paul, >> >> On Wed, Dec 7, 2011 at 6:07 PM, Paul Fremantle <p...@wso2.com> wrote: >> >>> Lalaji >>> >>> If I want to try this out where can I get a build of the features and >>> can I try it on the current 3.2.2 based AppServer? >>> >> >> We have committed this to trunk.You can try it this on the current 3.2.2 >> based AppServer.But then you need to add jaggery related jar files and its >> dependencies to lib/api directory.And then you need to install 'WSO2 Carbon >> - Dashboard Composite Feature',in-order to initialize shindig. >> >> With the current GS trunk build pack,we have added jaggery related jar >> files and its dependencies to lib/api directory while we have added web-app >> deployment feature to GS.Such that web-app deployment can be done through >> current GS pack.We have created a sample web-app also in it.But at the >> moment,with recent changes of tag-lib there needs to be add some more jar >> files to lib/api directory inorder to make taglib work.I'll commit it to >> trunk and update this thread,once trunk is available for commits. >> >> Thanks; >> >>> >>> Paul >>> >>> On 7 December 2011 11:44, Lalaji Sureshika <lal...@wso2.com> wrote: >>> >>>> Hi, >>>> >>>> This is to update the progress of Gadget Tag Lib implementation-which >>>> is a one task out of Gadget Server re-designing based on the Jaggery >>>> framework.Now a user can embed a gadget to a web page by using this >>>> jsp tag library. >>>> >>>> It can be done either from Carbon UI related jsp page or from a jsp in >>>> a web-app,once after located the jaggery .jar inside lib/api directory. >>>> >>>> By using this tag library, a user can get following functionalities. >>>> >>>> 1.Can embed the gadget to a custom page either in carbon UI level or in >>>> a web-app. >>>> 2.Can pass user preferences values which requires to personalize a >>>> gadget. >>>> 3.Can pass parameters required in open-social gadgets in-order to >>>> connect with server [This is not yet test properly] >>>> >>>> To use this taglib ; >>>> >>>> 1.In Carbon UI jsp pages- >>>> --Install the feature ' >>>> org.wso2.carbon.gadget.initializer.feature' >>>> --Import the taglib to the web page as follows; >>>> <%@ taglib uri=" >>>> http://wso2.org/projects/carbon/taglibs/gadgettags.jar" prefix="gadget" >>>> %> >>>> --Then add the gadget tag to the page. >>>> >>>> 2.In a web-app- >>>> --Copy the Jaggery related .jar files into lib/api >>>> directory. >>>> --Import the taglib to the web page as follows; >>>> <%@ taglib uri="http://wso2.org/jaggery/bsftags" >>>> prefix="gadget" >>>> %> >>>> --Then add the gadget tag to the jsp page in the webapp. >>>> >>>> Following are the attributes that pass through the gadget lib. >>>> >>>> 1.gadgetUrl -URL of the gadget xml file [*required* String attribute] >>>> 2.gadgetId -Id of the gadget [*required* int attribute] >>>> 3.applyDefaultStyle -Whether to apply default style or not [*optional*and >>>> default value has set to true].If this set to true-output of the taglib >>>> is a html div element consists with iframe.If set to >>>> false-output will be just the iframe. >>>> 4.gadgetTitle-Title of the gadget[*optional*] >>>> 5.userPrefsList-List of user preferences values [*optional*](format of >>>> this input-"userPrefName1:userPrefValue1 ,"userPrefName2:userPrefValue2") >>>> 6.container-The container name on which gadget rendered [*optional*] >>>> 7.owner -The author of the gadget [*optional*]-(This is useful in >>>> opensocial gadgets) >>>> 8.viewer-The viewer of the gadget [*optional*]-(This is useful in >>>> opensocial gadgets) >>>> 9.appId-The application Id on which gadget load [*optional*]-(This is >>>> useful in opensocial gadgets.eg:appId="GS") >>>> 10.view-The format that gadget need to be shown[*optiona*l] >>>> 11.country-The country code,which is used in gadget iframe url pass to >>>> shindig[*optional*](default value is 'ALL') >>>> 12.language-The language,which is used in gadget iframe url pass to >>>> shindig[*optional*](default value is 'ALL') >>>> >>>> >>>> A sample gadget tag for a simple gadget with user preferences is shown >>>> below. >>>> >>>> <gadget:gadget >>>> gadgetUrl=" >>>> http://hosting.gmodules.com/ig/gadgets/file/105585409988857842421/userpref.xml" >>>> >>>> gadgetId="1" >>>> gadgetTitle="Date and Time" >>>> >>>> userPrefsList="myname:lalaji,mychoice:true,mycolor:red" >>>> /> >>>> >>>> The code related to gadget taglib has committed to carbon trunk,under >>>> the jaggery component and gadgets component. >>>> >>>> Appreciate any concerns and feedback regarding this. >>>> >>>> Thanks; >>>> >>>> Best Regards; >>>> -- >>>> Lalaji Sureshika >>>> >>>> Software Engineer >>>> WSO2 Inc. >>>> >>>> >>>> >>>> _______________________________________________ >>>> Carbon-dev mailing list >>>> Carbon-dev@wso2.org >>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >>>> >>>> >>> >>> >>> -- >>> Paul Fremantle >>> CTO and Co-Founder, WSO2 >>> OASIS WS-RX TC Co-chair, VP, Apache Synapse >>> >>> UK: +44 207 096 0336 >>> US: +1 646 595 7614 >>> >>> blog: http://pzf.fremantle.org >>> twitter.com/pzfreo >>> p...@wso2.com >>> >>> wso2.com Lean Enterprise Middleware >>> >>> Disclaimer: This communication may contain privileged or other >>> confidential information and is intended exclusively for the addressee/s. >>> If you are not the intended recipient/s, or believe that you may have >>> received this communication in error, please reply to the sender indicating >>> that fact and delete the copy you received and in addition, you should not >>> print, copy, retransmit, disseminate, or otherwise use the information >>> contained in this communication. Internet communications cannot be >>> guaranteed to be timely, secure, error or virus-free. The sender does not >>> accept liability for any errors or omissions. >>> >>> >>> _______________________________________________ >>> Carbon-dev mailing list >>> Carbon-dev@wso2.org >>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >>> >>> >> >> >> -- >> Lalaji Sureshika >> >> Software Engineer >> WSO2 Inc. >> >> >> >> _______________________________________________ >> Carbon-dev mailing list >> Carbon-dev@wso2.org >> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >> >> > > _______________________________________________ > Carbon-dev mailing list > Carbon-dev@wso2.org > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > -- Lalaji Sureshika Software Engineer WSO2 Inc.
_______________________________________________ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev