Acceptable uris for edit mode in portlets
Hi,
I have been experimenting with setting URIs for edit mode in portlets.
It seems that the only two acceptable types of URI are those in the
portal project and those that point to a file in the filesystem. It
does not seem possible to forward on to a webapp in the same project, or
to an external URL outside of the application.
Is there a way to do this, or is this not possible?
The use case I am trying to implement is for all portlets to use a
generic edit page that is maximised. The page will be populated with
the available values for personalization for the portlet that the
request came from, and on submit, will return to the portlet and persist
changes.
Cheers
Dennis
Dennis said the following on 02/05/2004 08:21 AM:
Hi,
I have been experimenting with setting URIs for edit mode in portlets.
It seems that the only two acceptable types of URI are those in the
portal project and those that point to a file in the filesystem. It I guess you're using JSR168 portlets, with PortletRequestDispatcher to
include some content for a given mode/state. PortletRequestDispatcher
can only be used to include JSPs within the same webapp.
does not seem possible to forward on to a webapp in the same project, or
to an external URL outside of the application.
Is there a way to do this, or is this not possible?This is possible, but you must roll out your own code to include
external content.
The use case I am trying to implement is for all portlets to use a
generic edit page that is maximised. The page will be populated with
the available values for personalization for the portlet that the
request came from, and on submit, will return to the portlet and persist
changes.Why not deploy that JSP in the same webapp so that it can be included?
Subbu
Similar Messages
-
Hi,
Why do we have an edit mode in portlet? What is the advantage of reason for having this mode ? If all edit operations can be done using view mode itself , why do we need edit mode?
Regards,
vivekHi,
Edit Mode could be used to set portlet preferences.
You may want to set the maximum number of entries to be displayed at a time(in view mode) to some value.
In weather portlet you may wish to set the units to Fahrenheit or Celsius.
Thanks,
Sriram -
I am trying to set the edit URI for a portlet to an action in my pageflow. pageFlowDirectory/myAction.do
works when I enter it on the command line. However, when I specify it in the
edit URI it attempts to find the action in /Controller.jpf instead of my pageFlowDirectory/PageFlowDirectoryControler.jpf.
Is this:
a) bug?
b) incorrect URI for edit mode?
c) a stupid way to try and implement the edit mode?
thanks.In playing around it appears that when you use the /pageFlowDirectory/myAction.do
URI the app server creates a new context. For example, when I use that URI in
the body of my portlet I leave the portal/portlet framework altogether.
Is the ONLY solution to using the edit mode with a jpf to use a PageFlowBacking
object? -
Hi all,
I m using Portal version 10.1.4 and developing JSR168 Portlet using JDeveloper 10.1.2.1.0 (Build 1913).
There is a edit mode in my portlet and i have done entry for this mode in portlet.xml and also implemented doEdit() method.
inside doEdit() method i have also written response.setContentType("text/html");
Successfully deployed the .ear and also registered the WSDL url.
But when i click on the Personalize link of the portlet then a page comes with a message
Error: Could not get markup. The cookie or session is invalid or there is a runtime exception.
And the error in wsrp_default_island_1\application.txt is
javax.portlet.PortletModeException: Portlet mode "edit" is not allowed in current context
at oracle.webdb.wsrp.server.PortletURLImpl.setPortletMode(Unknown Source)
Could any one tell me where i m doing wrong.
help will be appreciated..
Thnx
~Neeraj Sidhaye
Try_Catch_Finally @ Y !
ExtremePortal @ Gmail Dot ComHi Harsha,
Actually there is a problem with setPortletMode method of PortletURL.
When i use
PortletURL portletURL=renderResponse.createActionURL();
portletURL.setPortletMode(PortletMode.EDIT); (Although it is not required , but in case if situation occurs like if i want to change the mode then it will fail)
In this case if i click on Personalize link then it is throwing an exception.
Is it bug with Oracle Portal , i don't know....
When i comment that code then every thing is working perfectly for me
and the required jsp is rendering in Edit mode of the Portlet.
Comments ans Suggestions are welcome at 24*7 :-)
Thnx
~Neeraj Sidhaye
Try_Cactch_Finally @ Y !
ExtremePortal @ Gmail Dot Com -
How to remove default Apply, OK and Cancel buttons in portlet edit mode.
Hi,
Iam facing problem in customizing default edit mode of portlet, my question is how to remove those default buttons and how to implement our own links for SAVE and CANCEL functionality. Because if we implement our own <form> in edit JSP page then default form will override our own <form> and default buttons works rather then our own forms.
Please someone help me on this.
Thanks
AbhishekAh, this one is easy, if im not mistaken, set this tag in your provider.xml
<renderCustomize>false</renderCustomize>
Defines whether RenderManager should automatically render the portlet's container (border and title) in "Edit" and "EditDefaults" modes before and after processing/invoking the page.
This however means you have to write your own renderer for the customize page. Then you can add your own code for the buttons and the events behind them.
I created my own derived container and added this line to my provider.xml
<containerRenderer class="nl.rsm.eventCalendar.myContainerRenderer"/>
This is however for rendering the showmode of the servlet, dont know if this is the same
render class for the editmode.
Do you realy need custom save functionality, Oracle also has something called DBPreferenceStore, you can store self defined attributes into the database. Perhaps this is sufficiant enough.
anyway good luck, if you find out all the correct steps to take, please share, im also interested -
Elements 3.0 - Change editing mode and timebase?
Hey all,
I'm using Premiere Elements 3.0 and I'm trying to create a custom preset for my new project. My source files for this project are all at 23.976 frames per second, so I wanted the project to match that. But in the "Custom Presets" window, the drop-downs for Editing Mode and Timebase are greyed out - I cannot change the settings to anything other than 29.97 fps. Plus, the only Display Format options have 30 fps.
Is there any way I can set these to 23.976 or 24 fps?
Thanks,
MattAw poo, that's disappointing. Oh well, thanks for letting me know!
-
Hi,
is it possible (and how) to call a pageflow action in place of a jsp for
the portlet's edit mode ?
EmmanuelFrom Workshop 10.0, you can add an Edit mode to the portlet's titlebar
(e.g. drag from the Palette, right click on the titlebar). Then, select
the Edit Mode in the outline or editor window, go to the Properties
view, select the Content Path entry, and push the "..." button. A dialog
will popup which prompts if the you want to select a jsp or a pageflow;
choosing pageflow will give a class picker. Select your pageflow class.
The Content Path attribute will become the /a/b/Controller.jpf uri of
the pageflow.
Greg -
Bug or feature : Using portlets with edit mode on a page in the portal
Hi,
i am using Workshop 8.1 (GA release july) and i have discovered a bug (or a
feature) with respect to the beta version.
i have created a simple portlet with a view mode and an edit mode. When i
place the portlet on the very first page of a one book portal, it works
perfectly. However, i have a book with three pages and placed the portlet on
the second page. Now when i put the portlet in edit mode, by clicking the
edit button, i am directed to the first page of the portal and the portlet
will not show.
Inspection learned that the URL generated for the edit button, didn't
contain the _pagelabel parameter. When i added the parameter manually it
works fine.
A final remark is that the buttons in the titlebar have no icons the browser
can load.
hope someone can help me out,
LodewijkCan you please post this question to weblogic.developer.interest.portal
newsgroup.
Thanks
"Lodewijk Spijker" <[email protected]> wrote in message
news:3f165945$[email protected]..
Hi,
i am using Workshop 8.1 (GA release july) and i have discovered a bug (ora
feature) with respect to the beta version.
i have created a simple portlet with a view mode and an edit mode. When i
place the portlet on the very first page of a one book portal, it works
perfectly. However, i have a book with three pages and placed the portleton
the second page. Now when i put the portlet in edit mode, by clicking the
edit button, i am directed to the first page of the portal and the portlet
will not show.
Inspection learned that the URL generated for the edit button, didn't
contain the _pagelabel parameter. When i added the parameter manually it
works fine.
A final remark is that the buttons in the titlebar have no icons thebrowser
can load.
hope someone can help me out,
Lodewijk -
Add Content button not rendered inside Portlets on edit mode
Hi,
I have a requirement where administrators will add some external content(Add content) either from taskflow or portlet and that external content (along with taskflow output) will be shown to the users based on some logic performed inside the taskflow/portlet bean code.
This PanelCustomziable should render AddContent button inside the portlet when pressing ctrl shiftE, but its no doing so? Where as the same PanelCustomizable renders AddContent button inside the taskflow on edit page? Any settings or changes needs to be done to make it work in porlet when consumed in portal?
a)taskflow cannot be selected for this purpose, as there will be only a single instance of the taskflow across the portal and it cannot retain runtime MDS changes to a specific instance (Unless we design the ADF taskflow with MDS customization layer). By default, any runtime change in one taskflow instance will be propagated to all the other taskflow instances of the portal.
(For eg.. Admin drops this taskflow onto a page1 and adds a image(external content) using the button AddContent inside the taskflow because of PanelCustomizable and close the page. He drops the same taskflow from RC only to find that the changes he done on page1 is being retained here ..its not resuable because of no MDS per instance)
So we selected Portlet for this purpose, as it has the inbuilt personalization framework. Admin can personalize each portlet instance and drops on the the same page and diff page again. But with portlets, Add Content is not rendered.
Its not just external content, the taskflow / porltet has some logic to perform and displays some output based on the ruleId which is the input parameter.
Taskflow or jsff code
==================
<cust:panelCustomizable id="pc1">
<cust:showDetailFrame text="rules content" id="sdf1"
shortDesc="rules content">
<af:panelGroupLayout id="pg1" >
<af:outputText label="RuleId" id="ot1" clientComponent="true"/>
</af:panelGroupLayout>
</cust:showDetailFrame>
</cust:panelCustomizable>Can you please post this question to weblogic.developer.interest.portal
newsgroup.
Thanks
"Lodewijk Spijker" <[email protected]> wrote in message
news:3f165945$[email protected]..
Hi,
i am using Workshop 8.1 (GA release july) and i have discovered a bug (ora
feature) with respect to the beta version.
i have created a simple portlet with a view mode and an edit mode. When i
place the portlet on the very first page of a one book portal, it works
perfectly. However, i have a book with three pages and placed the portleton
the second page. Now when i put the portlet in edit mode, by clicking the
edit button, i am directed to the first page of the portal and the portlet
will not show.
Inspection learned that the URL generated for the edit button, didn't
contain the _pagelabel parameter. When i added the parameter manually it
works fine.
A final remark is that the buttons in the titlebar have no icons thebrowser
can load.
hope someone can help me out,
Lodewijk -
How to make a redirect without auto-redirect from the portlet "edit" mode?
How to make a redirect without auto-redirect from the portlet "edit" mode?
I use some sofisticated customizing with server-side validation of the form data. I want to redirect to the page of the portlet "show" mode and to the "edit" mode depending on the validation results. How can I do it?Heay.....this worked for me.
I am able to change the mode programatically from edit to show.
HttpPortletRendererUtil.handleEditAction(portletRenderRequest,"OK");
I removed Apply , OK and Cancel buttons and applied my own Submit and Back button in Personalize mode and then change the mode to show on click of Back button using the above mentioned statement.
Thanks
~Neeraj Sidhaye
Try_Catch_Finally @ Y !
ExtremePortal @ Gmail Dot Com -
?I'm using Adobe Acrobat with the hope of editing a url on the graphic...a simple 3-letter change, save, close and send for printing..how do I get in edit mode to delete 3 letters and insert 3 new letters?
pkg4ibm wrote:
editing a url on the graphic...
Not sure what you mean by that: is that URL in an image, or is it actual text?
If it is in an image, then you need to extract the image, edit it with something like Photoshop, then add it back to the PDF.
If the URL is actual text, I suggest that you remove the entire URL, then add the corrected link. -
For Adobe Acrobat X Pro how do you change font size Acrobat in form editing mode?
For Adobe Acrobat X Pro how do you change the font size when Acrobat is in Form Editing Mode? The fonts are different sizes in the highlighted fields. I want the font the same size throughout my document...
Dear Michael:
The documents do not look professional with the 2 different font sizes. And it
is driving me crazy because I cannot figure it out… But I will try the steps you
gave me to change the font size. Attached via e-mail is a screanshot of the
document.
Sincerely, Lisa -
Portlet Edit Mode in a Remote Portlet doesn't work with JSP
I am facing a strange problem. I created a protelet and attached the edit to a JSP Page(edit.jsp). When I create a portlet of this and display in a portal, the edit works fine in case of a local portlet. But when the same is made as a remote portlet, I get an Operation failed fault.
The exception is:
Fault: {urn:oasis:names:tc:wsrp:v1:types}OperationFailed
Internal Server Error: Page Flow [testPortlet.edit.edit.jsp] is invalid..; nested exception is: java.lang.IllegalStateException: Page Flow [testPortlet.edit.edit.jsp] is invalid
Does anyone know why the edit in a remote portlet works only with a page flow?There is no edit mode defined in this portlet.
Subbu
Chandra Mouli Parameswaran wrote:
Here you go!. This is the portlet file on the producer side.
<?xml version="1.0" encoding="UTF-8"?>
<portal:root xmlns:netuix="http://www.bea.com/servers/netuix/xsd/controls/netuix/1.0.0"
xmlns:portal="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0 portal-support-1_0_0.xsd">
<netuix:portlet definitionLabel="portlet_2" title="ViewQuotesController">
<netuix:titlebar/>
<netuix:content>
<netuix:pageflowContent contentUri="/viewQuotes/ViewQuotesController.jpf"/>
</netuix:content>
</netuix:portlet>
</portal:root> -
DOC_CHANGE_BADI not triggered for OLD SC-SAVE mode for EDIT- SAVE steps
Hi Experts ,
We have SRM7.0 ( SP08) with ECC6 ( Ehp4) having Classic Scenario.
In our business Price list ( Price in ECC Contract) will be always change so, we have done small enhancement in BBP_DOC_CHANGE_BADI in method BBP_SC_CHANGE, to get latest Price of the already assigned SoS ( ECC Contract ).
When we create new SC/Template from scratch or copying old SC or Template it brings latest prices correctly .
Case 1)Template - If we EDIT Template & just click on u201CSAVE AS TEMPLATEu201D button (w/o any change!) .. Doc Change BADi called & Template items updates with latest Prices .
Case 2) OLD SC in SAVE Mode -But exactly same is not happening with OLD SC with SAVE mode ? i.e. When we open Old SC in EDIT Mode and SAVE it ( or even Check and refresh it) ..it do not updates items with latest Prices of Contract. It means Doc Change BADi is not getting called..by clicking on just EDIT and SAVE buttons, unlike Template .
If we have to change something i.e. enter some Text or add one line Item and deleted it again..etc, then only Doc Change BADi is getting called and updated with latest pricesu2026which is not recommendable ..to change the OLD SC in SAVE mode every time.
Can anyone please suggest/confirm, why DOC_CHANGE_BADI is not getting triggered in case of Mode , if we open OLD SC( SAVE status) in EDIT Mode and just SAVE it..just like Template ?
What can be done to achieve above ?
Thank you .
NAPWe are having the same SRM release and SP level. I did a brief test for the two scenarios you mentioned. There was no difference for me: neither template edit/save without change or old SC edit/save without change went through BBP_DOC_CHANGE_BADI implementation. And I wouldn't expect there is a different behavior here as an SC template is also technically an SC document. I would suggest that you make an attempt to change the price in BBP_DOC_SAVE_BADI implementation instead.
-
Edit mode for a single section
Hi,
How can one enable edit mode for a single section in a UITableView with group sections.
Thanks.Something like this should work for you:
@interface RootViewController : UITableViewController {
NSNumber *sectionToEdit;
@property (nonatomic, retain) NSNumber *sectionToEdit;
- (IBAction)doEdit:(id)sender; // test bed only
@end
@implementation RootViewController
@synthesize sectionToEdit;
- (void)dealloc {
[sectionToEdit release];
[super dealloc];
- (void)editSection:(BOOL)editing section:(int)section animated:(BOOL)animated {
UITableView *tableView = self.tableView;
self.sectionToEdit = editing ? [NSNumber numberWithInt:section] : nil;
[tableView setEditing:editing animated:animated];
// test bed driver
- (IBAction)doEdit:(id)sender {
static BOOL editing = NO;
editing = !editing;
[self editSection:editing section:2 animated:YES];
#pragma mark Table view methods
- (BOOL)tableView:(UITableView *)tableView
canEditRowAtIndexPath:(NSIndexPath *)indexPath {
if (sectionToEdit == nil)
return YES;
else if ([sectionToEdit intValue] == indexPath.section)
return YES;
else
return NO;
- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView
editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath {
return UITableViewCellEditingStyleInsert;
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return 3;
- (NSInteger)tableView:(UITableView *)tableView
numberOfRowsInSection:(NSInteger)section {
return 3;
- (UITableViewCell *)tableView:(UITableView *)tableView
cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault
reuseIdentifier:CellIdentifier] autorelease];
cell.textLabel.text = [NSString stringWithFormat:@"Section %d - Row %d",
indexPath.section, indexPath.row];
return cell;
Note that once a section is selected for editing, the above locks out all the other sections until the edit of the selected section is finished. I assume this is what you'd want. However if you're also providing a standard editing button to put the entire table in editing mode, you might want to change the control structure a little. E.g. if the standard button remains enabled during a section edit session, its action should probably set SectionToEdit to nil before starting the animation.
- Ray
Maybe you are looking for
-
Kernel panic in 10.8.2 solved (for me)
Thanks to the Apple Support crew who spent hours on the phone with me figuring this out. S, you are great! Background: I have seven machines from Apple. These range from Macbook Air to iMac to numerous others, all Intel-based. Over a period of a mo
-
IPhone 5 keeps dropping my songs, this after an update. I know it's a software issue. I have shut down and re-started, I have made sure there's available space, etc. this is the third time in the last 2 weeks. Help!
-
Client accessing a specific server under a vip ACE Module
Hi All, I have a need to allow QA/developers to check updated appliactions on a particluar server. Is there any way on an ACE blade to allow a client to access a particular server under a vip? The ACE is configured in Routed mode and the version is A
-
Which BAPI is called by middleware to create a sales order in ECC??
Hi experts,as we know,a BAPI in ECC will be called by middleware to replicate a sales order from CRM to ECC? Do you know the BAPI name?? How can I debug into it from CRM side?? Thanks. Jerry.
-
Configure Auto QoS on WS-C4500X
Hi!! I have two 4500X connected via VSS and on the edge I have 2960X and 3750. All edge switch have Auto QoS configuration activated for voip. On 4500X I don't have the mls qos or qos only prompt to activate the QoS on the etherchannels. Is there a d