Can I Write Portlets Using ColdFusion?

Can I write 5.04 Portlets using ColdFusion MX ? What issues would I run into?

As I mentioned before, you will need the Java EDK from Plumtree and CFMX. Extract the openfoundation.jar and edk.jar files from the Java EDK. Then add the paths to these files to your Java Class path under the CFMX Admin (Java and JVM). My class path looks something like this:
D:\CFusionMX\cfx\java,D:\CFusionMX\lib\cfx.jar,D:\plumtree\ptedk\5.1\java\devkit\WEB-INF\lib\edk.jar,D:\plumtree\ptedk\5.1\java\devkit\WEB-INF\lib\openfoundation.jar,
With that done, you should be all set to utilize the Java EDK from within your CFMX app. Some code that I just cut from one of my examples is as follows:
<!--- load the CommunityAccessLevel and PortletContextFactory objects ---><cfobject action="create" type="java" class="com.plumtree.remote.portlet.CommunityAccessLevel" name="CommunityAccessLevel"><cfobject action="create" type="java" class="com.plumtree.remote.portlet.PortletContextFactory" name="PortletContextFactory"><!--- get a javax.servlet.http.HttpServletRequest object from CFMX ---><cfset req = getPageContext().getRequest()> <!--- get a javax.servlet.http.HttpServletResponse object from CFMX ---><cfset res = getPageContext().getResponse()> <!--- declare portletContext object ---><cfset context = PortletContextFactory.createPortletContext(req, res)> <!--- get the portlet request ---><cfset portletReq = context.getRequest()> <!--- get the portlet user ---><cfset portletUser = context.getUser()><!--- get the current portlet ID ---><cfset portletID = portletReq.getPortletID()><!--- does the current user have admin rights to the current community? ---><cfif CommunityAccessLevel.Admin EQ portletUser.getCurrentCommunityAccessLevel()> ...
A lot of this code is out of examples on the developers site for the Java EDK. Most of it converts line by line pretty easily once you have things setup.
Hopefully this will help.-- Jeff

Similar Messages

  • How can I make this using coldfusion?

    Hi, I'd like to make a photo changing gallery as you see on
    the news sites when you click next it loads a new photo and text
    without reloading the page (
    http://news.aol.com/story/ar/_a/miners-families-outraged-in-utah/20070806121809990001)
    is this done in ajax? do you know where I can find the code
    or application to do this in coldfusion?
    Thanks

    this can be done with a simple image swaping javascript like
    the attached code, and then you call it with and onclick event
    like:
    "imageSwap('BigImage', 'myPicture.jpg');" to cycle through
    several images you can use a javascript array to hold all your
    image names and have the next button just increment through the
    list everytime you click it.

  • Can we write code using BD79(ALE IDoc Conversion Rule)

    Hi -
    I had created a conversion rule that specifies for the field account group (KTOKD) on KNA1:   I need to include the following logic :
    if the customer number (KNA1-KUNNR) is in the range 0010000000-0019999999 or 0140000000 to 0149999999, then change the account group value to u201CSKIPu201D.
    So I had created a conversion rule using BD62.
    In BD79, I had set the constant to SKIP.
    But where to include the following logic :
    if the customer number (KNA1-KUNNR) is in the range 0010000000-0019999999 or 0140000000 to 0149999999, then change the account group value to u201CSKIPu201D.
    Thanks,
    Gyanaraj

    Hi Shital ,
    Thank U very much for replying to my question.
    But when I m trying to create the same , by clicking Use general rule & specifying special conversion routine ZBLNK , it is throwing the following error "Conversion exit ZBLNK does not exist".
    Please can u help me out.
    Thanks,
    Gyanaraj

  • I can't figure out how to use coldfusion debugging on a remote server

    I can't figure out how to use coldfusion debugging on a CF
    installation on a remote server. Has anyone got experiance, I can't
    find any step by step instructions on how to do this using FLEX
    BUILDER 3

    Look at Chapter 13 of the iPad iOS4.3 User Guide

  • Crystal Report XI: Can you write your query in SQL instead of using the GUI

    Hello
      In crystal report version XI, can you write your query in sqlplus and then use the crystal report designer to build your report instead of using the GUI . I would like to be able to go database and show sql query and open that query and make changes directly there, is that possible on this version, if yes is there a setting somewhere? Please let me know.
    Thank you
    alpha

    Moved to Database forum.
    No you can no longer modify the SQL directly. Use a Command Object to enter the SQL directly.
    Thank you
    Don

  • How can i write the below code using "For all entries"

    Hi
    How can we write the below code using "for all entries" and need to avoid joins...
    Please help
    SELECT aaufnr aobjnr aauart atxjcd a~pspel
    agstrp awerks carbpl cwerks
    INTO TABLE t_caufv
    FROM caufv AS a
    INNER JOIN afih AS b
    ON aaufnr = baufnr
    INNER JOIN crhd AS c
    ON bgewrk = cobjid
    AND c~objty = 'D'
    WHERE ( a~pspel = space
    OR a~txjcd = space
    OR NOT a~objnr IN
    ( select OBJNR from COBRB AS e
    WHERE objnr = a~objnr ) )
    AND a~werks IN s_plant
    AND a~auart IN s_wtype
    AND NOT a~objnr IN
    ( select OBJNR from JEST AS d
    WHERE objnr = a~objnr
    AND ( dstat = 'A0081'OR dstat = 'A0018' )
    AND d~inact 'X' ).
    Reward points for all helpfull answers
    Thanks
    Ammi.

    Hi,
    SELECT objnr objid aufnr
            from afih
            into table t_afih.
    SELECT objnr
            from JEST
            into table t_JEST
            where stat = 'A0045'
               OR stat = 'A0046'
               AND inact 'X'.
    SELECT objnr
            from COBRB
            into table t_cobrb.
    SELECT arbpl werks objid objty
          from crhd
          INTO table it_crhd
          FOR ALL ENTRIES IN it_afih
          WHERE objty eq 'D'
          AND gewrk = it_afih-objid.
    SELECT aufnr objnr auart txjcd pspel gstrp werks aufnr
            FROM caufv
            INTO table t_caufv
            FOR ALL ENTRIES IN it_afih
            WHERE aufnr = it_afih-aufnr
              And pspel = ' '
              AND txjcd = ' '
             ANd objnr ne it_crhd-objnr
              AND auart in s_wtype
              AND werks in s_plant.
             AND objnr ne it_jest-objnr.
    dont use NE in the select statements, it may effect performance also. Instead use if statements inside
    loops.
    loop at t_caufv.
    read table it_chrd............
      if t_caufv-objnr ne it_chrd-objnr.
      read table it_jest..........
       if   if t_caufv-objnr ne it_jest-objnr.
        (proceed further).
       endif.
      endif.
    endloop.
    hope this helps.
    Reward if useful.
    Regards,
    Anu

  • How can I write to a Siemens S7-300 PLC tag from OPC Server.vbai page by using a Knob object ?

    I am using NI OPC Server and I can read Siemens S7-300 PLC tags such as thermocouple values from the PLC. Additonally I can write manually a constant value to that tag by selecting it in the NI Distributed System Manager. And I can read the written value from NI Distributed System Manager or from NI OPC Server. But I can not write any value to the S7300 PLC tags such as by using a knob object at the NI Vision Builder AI Inpection (.vbai) page.
    Any help is welcomed. Thanks in advance.
    Attachments:
    manual_writing_to_plc.png ‏298 KB

    The tutorial at the following location explains how to use Vision Builder AI as a OPC server.
    https://decibel.ni.com/content/docs/DOC-18647
    http://www.ni.com/white-paper/13574/en
    To allow VBAI to connect to an OPC Server (i.e. act as an OPC client), you need to purchase and install the DSC Run-time System.
    Once installed, you can create an OPC I/O client using the Distributed System Manager, create variables bound to OPC tags, then create VBAI network variables that are bound to these variables.
    Another possible technical solution to connect to OPC Servers supporting Data Access 2.0 is to use the datasocket API in a Run LabVIEW step.
    http://forums.ni.com/t5/Machine-Vision/Read-and-Write-with-OPC-through-NI-Vision/m-p/2048278/highlig...
    Hope this helps.
    -Christophe

  • How can i write the floats value in Unitronics vision230 plc using modbus Ethernet

           How can i write the Float value in unitronics Vision230 PLC usinsg modbus ethernet (MB Ethernet Master Query.vi) I  read and write  the 32 bit register,  for e.g i want to write the 23.45 value on 2nd add. of MF. And MF register is 32 bit register. I  read and write  the 32 bit register.
    Narendra.
    Solved!
    Go to Solution.

     Thanks Amit for your solution but i can not use the string to write the value because  MB Ethernet master Query.vi only accepet the integer value its not take string values or any other i.e floats values etc.....otherwise i have  no problem to write or read the 32 bit register values , only problem is that the MB Ethernet master Query.vi only accept the integer value there4 how can write the float value.
    Narendra
    Message Edited by Artemistech on 01-30-2009 11:06 PM

  • Can u write the following query without using group by clause

    select sp.sid, p.pid, p.name from product p, supp_prod sp
    where sp.pid= p.pid and
    sp.sid = ( select sid from supp_prod group by sid
    having count(*) =(select count(*) from product));
    thru this, we retrieving all the products delivered by the supplier.
    Can you write the following query without using the group by clause

      select sp.sid, p.pid, p.name
        from product p, supp_prod sp
       where sp.pid= p.pid the above query will still retrieve all the products supplied by the supplier. sub-query is not necessary.
    maybe if you can post some sample data and output will help us understand what you want to achieve.

  • How can i write a vi in using parallel port for digital inputs

    Dear all,
    i am a beginner user of LabVIEW and i want to write a vi in using parallel port for digital I/O. After reading the article "Using the Parallel Port in LabVIEW
    " and download the parallel.zip, i know how to write the vi for output, but i still don't know how to write the input one.i've try to use a Inport.vi to test, but nothing change when i set pin2-9 to high. (my computer:win2K & LabVIEW 6.1)
    Can anybody teach me how to write it?
    Can anyone write the vi for me too?
    Thanks all!
    p.s.i've already install the "accessHW.exe"

    Are you using VISA or the accessHW VIs? You may need to goto the bios and set the parallel port to run in spp mode or standard mode. This is the simpliest configuration and where you should start.
    As far as writing the VI goes, just copy the diagram out of the tutorial you mentioned.

  • Can we write in Italic font on to the screen by using the WRITE Statement

    Hello Abappers,
    Can we write in Italic font on to the screen by using the WRITE Statement.
    Please reply.
    Regards,
    Rahul

    Hi Rahul,
    >Sandeep Wrote:
    If you have the codepage for Italian language installed in your machine , you can write the same.
    The OP is asking about italic font not about the language.
    You need to upload font files ITALICI.TTF. Go to SE73 . Click on Install True type font and upload the italic file on to your system.
    Check Font Attribute Italic
    We already have help files on this. Refer:
    [Using TrueType Fonts|http://help.sap.com/saphelp_nw70/helpdata/en/36/5b3438fd263402e10000009b38f8cf/content.htm]
    I don't have idea on write statement in ABAP reports. Hope it cannot be.
    Edited by: K.Manas on Dec 30, 2010 6:08 AM

  • Can I use coldfusion 8 standard version in Sun / Solaris?

    Hi,
    I would like to know if I can use coldfusion 8 standard
    version in Sun / Solaris
    Thank you.

    banguitainf wrote:
    > Hi,
    >
    > I would like to know if I can use coldfusion 8 standard
    version in Sun / Solaris
    No.
    http://www.adobe.com/products/coldfusion/systemreqs/#support_matrix
    Mack

  • Which service provider in the uk can you use coldfusion on

    Hi,
    I am starting to use coldfusion and i have been told no all
    service providers can use coldfusion
    can anybody tell me what one in the uk can?
    Cheers
    Paul

    Hi John,
    Thanks for taking the time to help me. I am in the middle of
    making a site www.leahstoys.co.uk
    and i want it to have a search engine and be a dynamic site
    so im learning coldfusion.
    I am currantly with sky broadband for my internet provider
    but ive be told i cant have a site using
    coldfusion with sky i am very new to this any advise you can
    give would be great.
    Thanks again
    Paul

  • Can't Write to my Micro SD card on my phone using USB cable

    I can see the files on my krzr phone when mounted via usb cable, but I can read/write using Bluetooth just not with USB isn't that wierd?
    (I've read some forums about locks on the cards this is the super tiny kind with no slidable lock)
    If have a lot of music want to transfer and the bluetooth takes a while
    Can't change when look at permission in info.
    Any thoughts..

    You can likely read/write through bluetooth because that wouldn't require any extra software on the Mac's end. I think that accessing the phone through USB requires interface software on the Mac. The KRZR may not come up as what is called a "USB Mass Storage Device" and thus can't be used as a disk. What you can do is take that MicroSD card and put it in a MicroSD --> SD Adapter. Then you can get a USB card reader and put the card into that and it would mount on your Mac. As far as I know about Motorola phones, you would be able to put MP3's, photos, etc on it, but I don't think ringtones can be transferred this way.

  • Can I download and use the cutePDF writer on MacBookPro running Lion?

    Can I download and use the cutePDF writer on MacBookPro running Lion?

    cups pdf is like cute pdf but for mac
    https://bitbucket.org/codepoet/cups-pdf-for-mac-os-x/downloads
    after installing you need to go to settings, printer, add printer
    full instructions here
    http://basics4mac.com/article.php/print_to_pdf
    pdfs go in /Users/Shared/CPS-PDF/{your account name}
    This creates a virtual printer just like cute pdf does. This allows pdfs from applications that do not use the mac print interface

Maybe you are looking for