Is there a way to detect if the page is in edit mode or not? [WC Framework]
I just can't find any system bean to provide such information. If any one know, that'd be very helpful.
This is for Webcenter Framwork (not the Space). and by "edit-mode", I mean when user hit Ctrl+Shift+C and the blue dotted lines show up.
Thanks in advance
Edited by: Chris_Jo on Jan 25, 2012 12:16 PM
Following EL will do what you want:
#{composerContext.inEditMode}In other words, the composerContext bean is available, even in a WebCenter Portal application. If you take a look at the default template (pagetemplate_globe.jspx) that is created when you create a webcenter portal application. On line 16, you see an example of the usage.
edit: sorry... Didn't see you meant the contribution mode...
Edit mode is by pressing ctrl+shift+e
ctrl+shift+c is called contribution mode...
I just looked at the source code of the content presenter taskflow and this is what they are using to show the dotted line:
inlineStyle="#{composerContext.subView == 'contentContribution' ? 'border:2px dashed blue' : ''}">So I guess #{composerContext.subView == 'contentContribution'} will return true if you are in contribution mode. This should work both in spaces as in framework.
Hope this helps.
Edited by: Yannick Ongena on Jan 25, 2012 8:10 PM
Similar Messages
-
Is there a way to detect all the photos already transferred to double (or triple) in iPhoto, so do not occupy space unnecessarily? thanks from France
Look in you main photo library. Are there doubles or triple photos there? If so delete the extras.
All photos are stored in the photo library. When you move a photo into an album the photo is not duplicated. The album contains a pointer back to the original photos. These pointers or aliases take up very little space. -
I have just signed up for family sharing. Is there any way you can get the same app on two devices but not have to share it? My sons both want clash of clans but they don't want to be on the same village and they can't both be on app at the same time?
hi, the app is not "shared", it works as if you bought the app twice with different accounts, only you paid it once. they should have 2 different villages since they're on 2 different devices.
-
For brief period of time, not in FF4, there was the option whereby when I closed multiple tabs, a firefox dialogue box opened warning me that I'm about to close multiple tabs, '''AND ALSO''' asking me if wanted to save those tabs for my next session, or trash them.
The primary issue IS NOT about saving tabs. The primary question here is about getting THE OPTION back to the CLOSING MULTIPLE TABS WARNING DIALOGUE.
The use case here should be obvious. However, since it is clearly not obvious that different people work in a variety of ways, and neither of those methods of working is "wrong" or "right" I will elaborate: Some people, for whatever reason, it doesn't matter why, want to save all their tabs on some occasions, and on other occasions don't.
This preference varies throughout the day. Therefore it is inefficient to constantly go to preferences and change whether or not I want firefox to open all my tabs from my last session. It is more LOGICAL to place an option in the multiple tab warning dialogue as well, for people whose preference constantly changes.
This option was available for a time in most of the Firefox 3 versions. Is there any way to get back this option in Firefox 4?Firefox 4 saves the previous session automatically, so there is no need for asking if you want to save the current session.
You can use "Firefox > History > Restore Previous Session" to get the previous session.<br />
There is also a "Restore Previous Session" button on the default <b>about:home</b> Home page.
You can set the warn prefs on the <b>about:config</b> page to <b>true</b> via the right-click context menu or toggle the value with a double left-click.
* browser.showQuitWarning, see http://blog.zpao.com/post/3174360617/about-that-quit-dialog
* browser.tabs.warnOnClose, see http://kb.mozillazine.org/About%3Aconfig_entries
* browser.warnOnQuit , see http://kb.mozillazine.org/browser.warnOnQuit
* browser.warnOnRestart , see http://kb.mozillazine.org/browser.warnOnRestart
To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
If you see a warning then you can confirm that you want to access that page.<br /> -
Is there a way to download only the HD version of a movie and not the SD version?
In order to save space and to not exceed my service provider's data limit, I'd like to know if there is a way to download only the HD version without having to download the SD version as well? Currently, I have to open the "Download" box and highlight all of the SD downloads and delete and remove them. Of course, it begins to download them the next time I open up iTunes (and yes, I have turned off and on the auto-download feature).
Any help is much appreciated.I did get an answer to this question from the rep at my local Verizon store. I just wanted to provide the answer in case someone else has the same question.
While in the email you wish to reply to, press the white envelope shape on the upper right corner of the screen. This will open up as the reply to the sender. If you press the word "reply" in the upper left had corner (of this window) a drop down box will appear with more options. Reply, reply all and forward. Hope that helps. -
In Acrobat Reader for Mac is there a way to print just the page with comments?
What I mean is with my old Acrobat Pro for Mac, if I had a PDF that was 12 pages but only had comments on 3 pages, I could get a print out of the 3 document pages and the comments for those 3 pages.
ThanksFollowing EL will do what you want:
#{composerContext.inEditMode}In other words, the composerContext bean is available, even in a WebCenter Portal application. If you take a look at the default template (pagetemplate_globe.jspx) that is created when you create a webcenter portal application. On line 16, you see an example of the usage.
edit: sorry... Didn't see you meant the contribution mode...
Edit mode is by pressing ctrl+shift+e
ctrl+shift+c is called contribution mode...
I just looked at the source code of the content presenter taskflow and this is what they are using to show the dotted line:
inlineStyle="#{composerContext.subView == 'contentContribution' ? 'border:2px dashed blue' : ''}">So I guess #{composerContext.subView == 'contentContribution'} will return true if you are in contribution mode. This should work both in spaces as in framework.
Hope this helps.
Edited by: Yannick Ongena on Jan 25, 2012 8:10 PM -
Is there any way to get around the issue of AE7 and Lion OS not working together?
I use AE7 for graduate studies and business and just can't understand why it won't work together.
Why? Because Adobe has other priorities, in simplest terms. As with most commercial software producers, Adobe is looking to maximize their profits while their software developers are constrained to operate and optimize within their available development budgets, and also while delivering the corporate plans and schedules set by Adobe management.
What to do for this case? Migrate off of the Adobe software, migrate off of Mac OS X, deploy a virtual machine or Boot Camp (with Snow Leopard) and Adobe After Effects, or wait for Adobe to sort this out. For sufficiently large-scale customers of Adobe, they can chat directly with Adobe management around whether a bounty will expedite the work. (These are the usual answers, of course.) -
Is there any way you can turn the pages of books using the controls on the headphones
Good Day
I like to know if i can use headphones control to turn pages into books app or similar.
Thanks.No, sorry.
You might be able to capture that hardware activity and influence an app, but you'd need to do the work in Xcode, etc. -
Is there a way to slow down the playback of video in Captivate 5?
I just made several recordings (FMR) and would like to slow them down for the viewer. The video was actually of someone else's software demo that moved way too fast. On the Captivate skin there is "2x" to move the video twice as fast, but no "1/2x". Is there another way to slow down the video?
Thank you!No. Not there. Honest.
When I go to Edit + Preferences, I see a menu on the left.
General Settings:
Show Welcome Screen (checked)
Generate Project Backup (unchecked)
Default Locations (I set this to my output folder)
Project Cache (I set this to my C:\ drive)
Comments At: (blank)
Grid Size: 16
Spelling Preferences
Confirmation Messages
Defaults:
Background Color: white
Object Defaults:
Select: Text Caption (or highligh box, or image, or smart shape)
Display For: Specific Time 3 secs
Default Style: Default Caption Style
Restore Selected Button
Restore All Button'
General
Autosize buttons
Autozize Captions
Calculate Caption Timing
Recording:
Settings:
Generate Captions in: English
Audio Options:
Narration
Actions in Real Time
Camera Sounds
Hide:
Recording Window
Task Icon
System Tray Icon
Others: Move New Windows Inside recording Area
Smoothen movements for:
Drag and Drop Actions
Mouse Wheel Actions
Video Demo Settings button:Video Demo Recording
Show mouse in video demo mode
Working folder (mapped to my C:\ drive)
Keys
To stop recording: End
For Automatic panning: F4
For Manual Panning: F3
To stop panning: F7
To snap recording window to mouse: F11
To toggle mouse capture in video mode: F12
restore Defaults button
Project
Information
Author
Company
E-mail:
Website:
Copyright:
Project Name:
Description:
Publish Settings:
Include Audio (checked)
Publish Audio as Mono (checked)
I don't see anything in the whole menu that says anything about fps. What am I missing? Thanks! -
When I am talking on the phone, is there a way to shut down the screen so that my face does not touch the buttons?
It is supposed to shut off on its own. Some users have reported cases or screen covers that have interfered with the proper functioning of the proximity sensor. If you've removed those and cleaned the screen and still have the same problem you may have a defective proximity sensor. You may find more information by doing an internet search for "iphone proximity sensor."
-
Is there a way to detect two keys at the same time?
Is there a way to detect the keys if the user is holding two keys down at the same time?
yes, but you'll have to check outside of the event loop (i.e. don't check for it in the keyPressed method).
just use an array of keys that keeps track of which keys are currently down and which are up. you could use a boolean array but I use an int array because... Im not sure I've just done it probably because of my C background. anyway, basic setup:
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
public class MultiKey extends JFrame {
int keys[];
public MultiKey() {
super();
keys = new int[256];
Arrays.fill(keys,0); // 0 = key is up
enableEvents(AWTEvent.KEY_EVENT_MASK);
show();
public void processKeyEvent(KeyEvent e) {
// the 0xff below binds the key code to below 256
int key = (e.getKeyCode()&0xff);
if (e.getID() == KeyEvent.KEY_PRESSED) {
keys[key] = 1; // 1 = key is down
else if (e.getID() == KeyEvent.KEY_RELEASED) {
keys[key] = 0; // 0 = key is up
protected boolean isKeyDown(int key) {
return (keys[key] != 0);
protected boolean isKeyUp(int key) {
return (keys[key] == 0);
}so now at any time in your code you can check key state by using the isKeyUp and isKeyDown methods. this is about as close as you get to input polling in java unless you use LWJGL or something similiar ;)
you can try out a full executable example at my site here - just open up the jar and start holding keys down :) -
Is there a way to detect the end of a video?
Is there a way to detect the end of a video.. .mp4 or youtube? I want to be able to detect the end of a video and then have it do something...ie play on timeline or go to and play symbol.
For youtube the code would be something like this:
view-source:calkaweb.herobo.com/video.html
for HTML5 videos for youtube replace &version=3 with &html5=1 in the youtube URL
I have no idea how to impletent the youtube code into Edge tho other than an iframe but that wouldn't work I've tried :
http://forums.adobe.com/thread/1285212
You would need to place all of the youtube codes into edge in order for it to work but I duno how to do that and no1 answered the question in the thread I made about it.
as for MP4/HTML5 video you can use
var video = document.getElementsByTagName('video')[0];
video.onended = function(e) {
/*Do Something*/ -
Is there a way of just changing the text to the main menu..but not the submenus?
Is there a way of just changing the text to the main
menu..but not the submenus?
Also i have looked at in the browser and when i glide over
the menu catergories or click on them they dont show the
submenu...what can i do to solve this?Does the example described at
http://labs.adobe.com/technologies/spry/articles/menu_bar/index.html
work for you?
What are you doing that's different from the example?
When you say you just want to change the text of the main
menu without changing the submenus, do you mean you want to do so
dynamically, at some later stage after the page has loaded?
If so, you could try retrieving the main menu elements you
want to update from the DOM and updating them from your script's
event handler for whatever event it is that you want to update them
in response to. This presumes the widget will detect this and
update appropriately, which I can't say for sure since I haven't
actually tried it.
Hope that helps!
Rob -
Is there a way to detect motion and set markers automatically?
My video includes walking around with the camera. I walk, then stop and hold the camera in one area, then pan, then continue walking (and repeat).
While panning, there is some annoying flicker of vertical objects (beams, poles, whatever). I can use a horizontal fast blur to fix this, but I only want the blur applied when there is panning (not when the camera is relatively still). Doing it manually is cumbersome.
Is there a way to detect when motion is going on (over a certain threshold)? I would like PP to tell me when there is significant motion, and place markers in the points where it begins and ends (when motion goes over a threshold and then when it falls below the threshold).
Thanks, experts!One thing you can try is to bring your footage into Prelude - it will lay out the entire clip so you can see thumbnail snapshots for the whole clip at once - that might give you a good start to see where there is a lot of motion. Then, you can add markers very easily at all of those points - and when you send it over to Premiere, the markers will show up on your clip.
Not automated, but a good workflow to achieve what you are looking for. -
Is there a way to detect a bad http client handle before it locks up LabVIEW?
The attached VI demonstrates a simple way to hang LabVIEW such that the only way to recover full use of it is to kill the LabVIEW process. LabVIEW version is 11.0.1f2 and this problem will occur in both WinXP and Win7.
Is there a way to detect when an HTTP Client Handle refnum is stale and should not be used?
Is this a known bug?
Attachments:
Hang after Bad HTTP Client Handle.vi 15 KBHave you tried the bad reference comparator?
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps
Maybe you are looking for
-
Itunes won't open and I haven't seen my problem on this board
When I go to open Itunes, what looks like an agreement box pops up (with the Agree and Disagree buttons). I try to click agree, but it disappears too quickly and Itunes never opens. Is there anything I can do? I've tried all the trouble shooting idea
-
Big hard drive problem after 10.8.5 supplemental update
Hello, I just tried installing the 10.8.5 supplemental update, but now I can't restart my iMac at all. It keeps trying to reinstall the update, and then shuts down. I can restart from the recovery HD, but I can't reinstall the previous software as it
-
Message-Mapping transformation Error(Soap - XI - SAP)
Hi We have a sceanio Soap <-> XI <-> SAP We could see the RFC return message from SAP but while trasforming that message to SOAP response ,we are getting the following error. We have manually run the response mapping program, it is executing fine. <S
-
IDOC type related to Payroll and Employees Attendance and Absence
Hi Evrybody, Right now im working on ALE INBOUND Interface, which relates to transfer of data. I'm searching for an Basic IDOC type related to Payroll and Employees Attendance and Absence, If any pointers would be much helpful. Thanks n Regards. [e
-
Using Rich Text Formatting Tools for Email Message Text Box in Webdynpro.
Hi All, I would like to know whether WebDynpro provides a feature of including the Rich Text Formatting Tools (like Font, FontSize, Spell check .....) inside a Text Box. I need to allow the user to format/indent text inside the Email message box, bef