Using Dojo in a Shell

I'd like to use some Dojo widgets (dijits) as part of my navigation elements for a modified portal shell that we've created (left column holding portlets).
Because the shell is validating against the xhtml-netuix-modified schema, I'm not able to add the dojoType attribute (used for declaring dijits) to the html tags in the shell.
I suppose I could try setting them programmatically, but I'd rather use the declarative form if possible.
Has anyone had success using Dojo's dijits in the Portal 10.2 shell?
Thanks for any help,
Dan Turkenkopf

Thanks for clarifying your use case. Sounds awesome!
It sounds like your left-hand navigation piece should be a netuix:header component. Header's can contain netuix:layouts, and netuix:layouts can contain placeholders and portlets. Also, even though it's called a "header", it doesn't have to be at the top of your document -- you can modify the body.jsp skeleton file to change where the header renders in relation to everything else on the page. Something like this:
<skeleon:context type="bodypc">
<skeleton:control name="body" presentationContext="${bodypc}">
<!-- set up HTML structure of page -->
<table>
<tr>
<td style="width: 30%;">
<skeleton:child presentationContext="${bodypc.headerPresentationContext}"/>
</td>
<td>
<skeleton:children/>
</td>
</skeleton:control>
</skeleton:context>
This says "render the header control in the first table cell, and the rest of the body's children controls in the second table cell". So something like this would help you handle WHERE the header is, in relation to everything else on the page.
Next step is to control what's in the header. For that, you'd modify the .shell file itself, and add a layout, placeholder, and portlets to it. You can use Workshop's Shell Editor to help there: http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/portals/develop_ui_lookfeel.html#wp1060001. In your case, I think you'd want to use a one-column flow layout (so that your portlets flow vertically) and add your two portlets to it.
Last step is to add Dojo to the mix. I'd add the Dojo JS file(s) as a dependency to your portlets (http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/portlets/building.html#wp1073505), so that Dojo is always available to the page when those portlets are present. Then, you can modify the header.jsp skeleton to add the Dojo hooks for the expand/collapse functionality. The accordion-ing of the portlets might be a little trickier, since all portlets use the same window.jsp skeleton file, but I'm sure something similar to the shell solution could be done there, too -- maybe with some selection logic in place to enable the functionality only on portlets with a particular definition label.
I hope that helps! Let us know how it goes!
George

Similar Messages

  • Error Using DOJO plug in with Struts 2 (for Ajax)

    Hi all,
    I am working on struts 2 and trying to use DOJO plug in for ajax.
    My JSP page is as follows
    +<%@ taglib prefix="s" uri="/struts-tags" %>+
    +<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>+
    +<html>+
    +<head>+
    +<sx:head/>+
    +</head>+
    +<body>+
    +<s:url id="url" value="/VarifyUserName.action" />+
    +<s:form name = "CreateUser" id = "CreateUser" action = "CreateUser.action">+
    +<s:div id="loginDiv" />+
    +<s:textfield name="username" id = "username" label = "UserName / EmailId" />+
    +<s:password name="password" id = "password" label = "Password" />+
    +<s:submit name="submit" id = "submit" value="submit" />+
    +<sx:bind id="ex3" href="%{#url}" sources="username" targets="loginDiv" events="onchange"+
    formId="CreateUser" />
    +</s:form>+
    +</body>+
    +</html>+
    This is just basic user registration page and I am checking for username duplication.
    Now the problem is page loads properly but in background it shows the error (Java Script error)
    Error: Could not locate widget implementation for "bindevent" in "struts.widget" registered to namespace "struts"
    and the Event I want to execute is not being executed.
    I have added jar file for DOJO.
    Please help me to solve this problem.
    Thanks in advance,
    Hirav OZa

    Place the plugin bundle, FlashAlbumexporter.ApertureExport, in your Aperture Export plugin directory (Users -> "your user name" -> Library -> Application Support -> Aperture -> Plug-Ins -> Export).
    NOTE: If this is your first Aperture plug-in, the folders Plug-Ins and Export may not exist. In this case just create them first.

  • Anyone using Dojo or DWR for Ajax/Web 2.0?

    Hi all,
    I am looking for more sophisticated web pages than the ones delivered with standard MII V12.  I am quite interested in DWR for transport and Dojo for widgets.  Is anyone out there using either/both of these?
    Thanks,
    --Amy Smith

    I don't see why you'd want to introduce an extra layer with DWR, but you should be able use DOJO with the "REST-ful" services (e.g. URL calls returning XML) that MII provides.
    Personally, I think Adobe AIR or Silverlight can/will create the most compelling user interfaces for MII and for other web-centric and/or occasionally connected applications.

  • How to manage webservice file wsmgmt.xml using jar command or shell?

    Hi,
    I am now want to manage webservice deployed on oc4j using java class or shell script.I want to find a way to enable/disable webservice security.Is there way I can do?
    Another issue,how to configure global security for some of the ports?
    Thanks!

    Hi,
    I am now want to manage webservice deployed on oc4j using java class or shell script.I want to find a way to enable/disable webservice security.Is there way I can do?
    Another issue,how to configure global security for some of the ports?
    Thanks!

  • Trying to run program off network location using GPO with Power shell script.

    Hello All,
    Not much of a script writer. I am giving it a shot.  My issue is that I need to run a application update across our network and I am trying to do it with as little hands on as possible. So I was planning to push a GPO with a power shell script in it
    to run the program with elevated privileges. 
    Little background:
    We are running on a domain and end users do not have admin rights.
    The application is stored on a share on our network that is open to all domain users.
    The installer user name and password is a temp one and will only be valid for the 30 min window when everyone logs in at the beginning of the day.
    So this is what I have so far.
    $username = "USER"
    $password = "PASSWORD"
    $credentials = New-Object System.Management.Automation.PSCredential -ArgumentList @($username,(ConvertTo-SecureString -String $password -AsPlainText -Force))
    Start-Process PSQLv11Patch_Client_x86.msp -Credential ($credentials) -WorkingDirectory \\Server\Folder\Folder1\Folder2\filder3\PSQLv11sp3_x32\
    But for some reason I keep getting :
    Start-Process : This command cannot be run due to the error: The system cannot find the file specified.
    At line:10 char:1
    + Start-Process PSQLv11Patch_Client_x86.msp -Credential ($credentials) -WorkingDir ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [Start-Process], InvalidOperationException
        + FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand
    Any help you could give would be great.
    Thanks,
    jdfmonkey

    Hi jdfmonkey,
    Has anyone provided an answer to your original question?  I am trying to use Start-Process to launch a process using another logged in user's credentials, and am not able to get it working:
    $cred=Get-Credential
    start-process Process.exe-WorkingDirectoryC:\Scripts-Credential$cred
    I get the same error that you mentioned:
    start-process : This command cannot be run due to the error: The system cannot find the file specified.
    At C:\Scripts\Process.ps1:2 char:1
    + start-process Process.exe -WorkingDirectory C:\Scripts -Credential ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [Start-Process], InvalidOperationException
        + FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand
    When I leave off the credentials:
    start-processProcess.exe-WorkingDirectoryC:\Scripts
    It works correctly.  Does anyone have a solution to make this work correctly?
    Please ask your own question.  You issue is nothing like the current thread.  You clearly are using a user account that has no access to the folder.  It is a permissions issue.  It is not a scripting issue.
    If you need further help please start your own question.
    ¯\_(ツ)_/¯

  • Use of expect in shell script

    hi all ,
    can anyone explain me this script particularly why expect is used here.
    set timeout -1
    spawn sftp [email protected]
    match_max 100000
    expect -exact "Connecting to 11.11.1.34...\r
    sftp> "
    send -- "cd /opt/app/policies/data\r"
    expect -exact "cd /opt/app/policies/data\r
    sftp> "
    send -- "get potcontrol.dat\r"

    "expect" is a particularly useful scripting tool when you need to make a script that performs an interactive, multi-command dialog with another utility, like FTP or SFTP (or in the olden days, I used it a lot with Kermit).
    In your example, "expect" is being used to launch the sftp client to connect to some sftp server, switch to a certain directory and then fetch a copy of a certain datafile, all while expecting precise return strings coming back from the sftp client.
    Certain tools and apps, like ftp, sftp and others, cannot be simply scripted via ordinary shell script methods to feed strings of commands to those tools and apps, because of unusual ways in which they open up their own separate /dev/tty to interact with the command line user, hence "expect" was created and is very useful for scripting dialogs with such tools and apps.
    For instance, if you tried to make a typical "here document" type of shell script like this:
    #!/usr/bin/sh
    ftp <<END_CMDS
    open some.ftp.host
    myuser
    mypassword
    cd /some/dir/path
    get somefile.dat
    bye
    END_CMDS
    exit 0
    You'd find that a typical ftp client will not read the commands from the shell script's /dev/tty and will still try to interactively prompt for user, password, etc. or it might just hang indefinitely waiting for input that will never come to it.
    There are other shell scripting tricks to get a "here document" script to function with utilities like ftp/sftp/others, but if you have "expect" installed on your system, it's very simple to run "autoexpect" to record an interactive session of what you want to do, which will then automatically create the "expect script" for you.
    "Expect" was created by our (USA) tax dollars, and is free for anyone to use: See the home page here for the whole story: http://expect.nist.gov/

  • How to use encoded password in shell script ?

    Hi everybody,
    For make a load file in oracle table, I'm using a LKM File to Oracle updatding with a sqlldr (shell script).
    My problem is very simple : For security reason in this shell-script , I don't want to see in clear the password of the Oracle user for database connection. Is it possible and how do it ?
    Thanks in advance

    Hi-
    Yes it is possible by the way of KM custamization, You need to modify LKM call sqlldr via jython step to pass the user info and password as variable instead of ODI method. Try this command in your KM step:
    userid=#GLOBAL.user/#GLOBAL.psw
    Hope this will work for you.
    Thanks,
    Saravanan Rajavel

  • Using LIKE in a shell script

    I would like to use a 'Like' and wildcards in a shell script. Something like
    If $F1 like '*ABC*' then
    xxxx
    What would the correct syntax for this be?
    Thanks!

    You could do:
    if [ ! -z "`echo ${F1} | grep "ABC"`" ] then
    fi

  • Using Dojo in JDeveloper 11g

    I recently inherited a few projects that where first done using Eclpse with the Dojo toolkit.
    I was wondering if there is a Dojo release for JDeveloper 11g, if so where can i get it.
    If there is'nt a downloadable plugin is there a way to get the projects to run without it?

    You should be able to just pick up the project and import it into JDeveloper - no need for any plug-in or extension.
    Dojo is just a Javascript library that you can include in your project and run with it in JDeveloper.

  • Use Launchd to run shell script at boot

    Hello
    I'm trying to create a plist file that will run a shell script at bootup of the server.
    I have the following xml so far in the plist file:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>Disabled</key>
    <false/>
    <key>Label</key>
    <string>com.apple.mymount</string>
    <key>ProgramArguments</key>
    <array>
    <string>/mount-script/./mount.sh</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    </dict>
    </plist>
    The shell script is just a mount command:
    #!bin/sh
    #MOUNT folder X ON server Y
    sudo -u _www mount_smbfs -f 777 -d 777 //username:password@server/folder /mnt/mount
    The shell script works fine from the terminal.
    I can see the plist has loaded after bootup but the script doesn't run.
    What am I doing wrong?
    Would need some help please!

    First problem:
    <string>com.apple.mymount</string>
    com.apple is (or at least should be) reserved for Apple scripts, not your own. This should be renamed to your own domain (or your own name if you don't have a domain).
    In addition the .plist file name should match (so if you rename the script Label to be 'com.my.mount' then the .plist should be com.my.mount.plist. You don't include the file name in your post to know if you're already doing that.
    Second:
    <string>/mount-script/./mount.sh</string>
    What? That looks wrong to me. Of course, it could be right, but the '/./ in the middle worries me, so I just can't think it is.
    Where is the script, really?
    Third:
    sudo -u _www mount_smbfs -f 777 -d 777 //username:password@server/folder /mnt/mount
    No. Never use 'sudo' within a launchd task. If you need the task to run as a different user then use the launchd keyword UserName to specify that username:
    <key>UserName</key>
    <string>_www</string>
    I can see the plist has loaded after bootup but the script doesn't run.
    If none of the above fixes it then look at the logs and tell us what it has to say. /var/log/system.log

  • Loading incomplete using sqlplus_exec_template.sql  in shell script

    Hi,
    I've tried to automate the dataloading by calling sqlplus_exec_template.sql for each mapping in the shell script bash. (I comment out the last exit line in the script). But the loading were always partially complete for those that take longer time, says more than 5 or 10min. I've also tried to call each mapping in different shell and got the same result. How do you work around this? Below is part of the lines in my shell script. Thanks.
    sqlplus -s test_rta/test_rta << EOF
    @sqlplus_exec_template.sql 'TEST_RTR' 'TEST_LOC' 'PLSQL' 'CONSOL_SUP_MAP' ',' ','
    @sqlplus_exec_template.sql 'TEST_RTR' 'TEST_LOC' 'PLSQL' 'CONSOL_PART_MAP' ',' ','
    EOF

    I 've tried to use :
    sqlplus username/[email protected] @C:\OWB\owb\rtp\sql\sqlplus_exec_template.sql
    rtschema OWBLOCATION SQL_LOADER CRD_APPL_MAPPING "," ","
    where OWBLOCATION I have used the deploy location of the mapping for my case, created within OWB. The value is CCS_DEPLOY.
    But the error is the same :
    ======================================================
    Stage 1: Decoding Parameters
    | location_name=CCS_DEPLOY
    | task_type=SQL_LOADER
    | task_name=CRD_APPL_MAPPING
    Stage 2: Opening Task
    declare
    ERROR at line 1:
    ORA-20001: Task not found - Please check the Task Type, Name and Location are
    correct.
    ORA-06512: at line 261
    ========================================================
    could you tell me the SQL used by WB_RT_API to get the task from runtime schema. So that I could check the correct location myself.
    Or how could I view the pl/sql of WB_RT_API_EXEC which is wrapped.
    Thx for your help.
    Rg.
    CH

  • Using fsch inside a shell script?

    I like the premise of using fsch because build times are
    greatly reduced. However, I want to integrate fsch better into a
    more automated build system, even Ant. Anyone know how to do this?
    BTW, I'm using a Unix based system: Mac OS X. I guress I'd like to
    be able to call something more like 'fsch mxmlc .....'
    I have played with the Flex apache module of Flex 3 but
    ultimately want any build error to appear back in my text editor
    inside of inside the browser. So I have the apache module working
    well but am now trying to get fcsh to work inside a shell script as
    a single call - how do I call out to the running process?
    Thanks,
    Phil

    You could do:
    if [ ! -z "`echo ${F1} | grep "ABC"`" ] then
    fi

  • ACS 5.x using of per-user Shell Command Authorisation with NDGs

    We have an implemented of ACS 4.x which allows customers access to their own devices (defined in distinct NDGs). The NDGs are referenced in the "Shell Command Authorization Set" component of "TACACS+ Settings" under the "Assign a Shell Command Authorization Set on a per Network Device Group Basis". How would this map onto ACS 5.x rule-based functionality; would an authorization rule be require for each user?
    Thanks,
    Matt

    Hi Matt
    In ACS 5 you would create an authorization rule for each user or identity group. You could then add conditions to each policy to allow them access to specific devices. You would then add an authorization rule to each policy with your specific shell commands added to it.
    If your authorization policies are a mixture of internal users and AD users then you would need to use a identity store sequence for each policy, rather than specifically choosing internal user or AD user. This is something I found out recently.
    So the process would be
    create an access service for tacacs
    then create a service selection policy to match the tacacs protocol and maybe a specific device type such as cisco router.
    then configure your identity within the access service
    then configure your authorization policies within the access service
    I'm no expert on the new ACS and I'm not 100% I'm doing it the correct way but I have done lots of testing and things are working as I want them too. I can allocate admin and or read only access to users based on their AD group.
    You need to set up your NDG in a way you can be as granular as possible within your policies.
    Cheers
    Jay

  • Deploy application using ant script vs shell script

    Hi,
    I work with OAS 10.1.2 and I'm using shell script with dcmctl command to deploy EAR into OC4J but I know that ant script do the same things. I want to know if my choice is good or is it better to use ant script ?
    Regards

    This is difficult to decide.
    When you have just a few ear files you deploy once in a while a shell script might be sufficient. When developing more complex systems you should use ant as this is easier to maintain.
    cu
    Andreas

  • Using ADS in UI Shell with multiple task flows (static and dynamic)

    Greetings,
    I am developing an application in UI Shell and ADS. Following is description of the Application.
    In ThirdPartyComponentArea of the UI Shell I have a task flow with a page fragment(JSFF), which uses ADS (using push mechanism) to get the updates from the server.
    Now we have added a Task List in regional area. The list has following items
    1. One of the items in the TaskList open a dynamic task flow in local area.
    2. Another item in the task list opens a static task flow in local area.
    The issue is, whenever we click either of the links, ADS framework used by the JSFF on the ThirdPartyComponentArea stops working (stops receiving data from ADS and stopActiveData method is invoked by the framework).
    It seems that the task flow initiating in Local Area is causing the ADS framework in other taskflow to end.
    I have read through the documentation, Book - "Oracle Fusion Developer Guide - Building Rich Internet Applications with Oracle ADF Business Components and Oracle ADF Faces" and other examples/blogs.
    From my understanding it seems that ActiveDataManager and EventManager are stopping in this use-case.
    From my understanding opening the task flow in local area is not changing any properties or HTML view of the task flow in ThirdPartComponentArea. Then, why such a behaviour is observed when using ADS in such cases? Is this supported ADS?
    Are such use-cases supported by ADS. From my understanding of these documents it seems they are supported.
    If these use-cases are supported but require some tweaking/workaround in the current flow/logic then also please guide me on it.
    Please let me know if these are not supported by ADS.
    Thanks,
    PShah

    Hi,
    sounds like a product issue to me that you should file with support, providing them a simple test case for analyses
    Frank

Maybe you are looking for

  • How can I get the Doc object from any other object?

    Dear colleagues, in FrameScript it is dead-simple to get to the document part of any object, just add .Doc to the variable. How can I achieve the same with ExtendScript? I amtired of passing the document object next to AFrames or Pgfs along into subr

  • No sound effects with firewire audio device

    I use an external (firewire) sound device for better sound. When I'm in a call, the audio output is routed correctly to that device. But, sound fx, such as when someone sends me an IM or when someone is calling are NOT routed to that device. If I unp

  • Render phase of a popup in adf?

    Hi guys I use a adf pop up to display an applet: <af:popup> <af:dialog> <f:verbatim> <applet .... /> </f:verbatim> </af:dialog> </af:popup> The popup is triggered by command button using showPopUpBehavior. Strangely when the popup is displayed and th

  • MSN messenger telling me I have the wrong password

    All forms of msn messenger and Im+ and IMO. Facebook will sign in on the latter two but msn tells me I have the wrong password( I don't)

  • 4S does not work with AirPlay

    I'm trying to use AirPlay on my iPhone 4S (Verizon & iOS 5.1) to connect to my iTV (version 2, latest software) and my iMac (10.6.8) I can use iTunes on the iMac to connect to Apple TV and PandoraJam allows me to connect, as well. However, I can't ge