Portlet:namespace val changes on server restart. How to keep it constant?

Hi -
I want to generate WinRunner test script, and want to know the IDs of a couple of UI components on a JSF JSP.
But JSF prefixes each component id with <portlet:namespace/> value. So, I tried to prefix the same value (got it using view source of the actual screen to test) to the components in my test script.
This works just fine, the way I want it to, but until the server is not restarted.
Once the server is restarted the value of the <portlet:namespace/> changes (for the same view in same jsp), thus my test script doesn't work.
Is this expected behavior that for the same view in jsp, the value of <portlet:namespace/> changes after server restart?
Is there a way to keep the value of <portlet:namespace/> constant for the same view even after server restart?
Expecting prompt feedback and will highly appreciate it.
Thanks
Gagan

The problem is still there if the jsp file is about inserting a new record
into the database.
If these parameters are gotten from the session, mutliple insertings will be
attempted when the portlet is refresh.
Maybe we can put some control flags in the session to judge the correct
behavior, but the method results the session full of parameters(control
flags).
Or is there any better design?
Alan.
"travis wissink" <[email protected]> ¼¶¼g©ó¶l¥ó
news:3cc71962$[email protected]..
>
Alan,
You could use the session to put your parameters in instead of letting itride completely
on the request object. Although, your question is more than just makingthe content
reappear, it’s about holding state. The project that I am working on, theusers
decided that they want the page portlets to go back to the "normal" state,not the
"Maximized" view. So, I put a processor in between the internal.refreshwildcard
and the Preprocessor input processor so that all the portlets would beseen in their
"normal" state.
Good Luck
-Travis
"Alan Liu" <[email protected]> wrote:
Hi All,
When I click page tabs in WLP, it will trigger a refresh event.
The portlet has a webflow with a refresh event whose destination is
lastContentUrl(referent-namespace is portal, cloned from portlet2.wf).
The question is when the page changed, the jsp files which use
request.getParameter() to get parameters will fail to fulfill what they
need because the event provide none parameter.
So that everytime page changed, these portlets will have quite strange
contents.
How to keep these content constant when page changed?
Sincerely,
Alan.

Similar Messages

  • What type of changes require server restart?

    Hi,
    We are trying to minimize downtime for applications and re-design our deployment process. One of the questions is what type of changes require weblogic restart and which would require only re-deployment of application server.
    Is there a document which would detail actions required by type of changes in config?
    Sohail

    Hi,
    There are basically two types of changes we can make in WLS...
    *1). Dynamic Changes:* It means the Changes which doesnt requires Server Restart. Like Updating/deploying/undeploying applications. Creating DataSources, Creating Users in SecurityRealms, Configuring WorkManagers.
    *2). Non-Dynamic Changes:* These are the Changes which requires Server Restart ... sothat the changes can take affect. Like: Activating another SecurityRealm as Default realm, Changing cluster Multicast Address, Configuring Startup/Shutdown classes, Changinf ClassPath or Java_options from AdminConsole for ManagedServers using ServerStart Tab, Adding/Removing Managed Servers from Machine...etc.
    There is not such link available which lists all the Non-Dynamic & Dynamic Changes. Even AdminConsole also displays sometimes Wrong Message ...sometimes for few Non-Dynamic Changes as well it says "No Restart Required" But actually we had to start it.
    Thanks
    Jay SenSharma
    http://jaysensharma.wordpress.com (WebLogic Wonders Are Here)

  • Configuration variable for menu changes avoiding server restart

    Hi,
    After editing/hiding a menu item (in coremenuitems()), is there a configuration variable that helps to immediately reflect the same thereby avoiding server restart.
    Thanks in advance
    Ramesh
    Edited by: 845556 on 30 Aug, 2012 1:45 AM
    Edited by: 845556 on 30 Aug, 2012 1:50 AM

    Hi Atheek,
    There is no way to do this without restarting the Server...
    Thanks
    Jay SenSharma
    http://jaysensharma.wordpress.com (WebLogic Wonders Are Here)

  • I need to change stage.frameRate, but how to keep tween speed?

    Hello. I am using Flash CS6.
    Right now I am trying to keep fps of tween motion.
    I mean, I made a button that  speeds up and down stage.frameRate, if I click the button it does stage.frameRate +=1 or stage.frameRate -=1, but if stage framerate changes, it speeds up the tween animation too.Is there anyway to keep the speed of tween animation?
    What I want to do is there are 2 movie clips, mcA and mcB, and mcA animation is dependent on stage.frameRate, if I click the forementioned button to change stage framerate, it also changes mcA framerate, but I don't want to change mcB framerate.There is a tween AS, it moves "mcB.x = 0" to "mcB.x = 100" in 10 frames with tween.I want to keep the pace of the tween animation.
    Please give me your advice.

    Use Actionscript to tween positions instead of using the timeline. Then you can base it on time rarther than frames.  For starters, look into using the built-in Tween class.  Once you get a flavor for using it, for better performance you can look into using third party tweening such as TweenLite.

  • How to keep transform constant ratio selected and show instantly properties

      When pasting an object as layer to base image, I keep select tool Show transform Controls selected. Pasted object has rectangles as expected but select tool doesn't display it's properties ribbon next to it, until I select object corner. Only then I can set keep ratio selection. 1.When opening new image, I have to set constant ratio each time again. How to set constant ratio constantly on? 2. Even if the ribbon always visible setting would be of a great help.
    Thank you!
    CS5, XP Pro

    I don't think there's any way to get that setting to stick, unfortunately.  Note that whenever  you start Edit - Free Transform the H & W aren't locked together either.
    You could try to get in the habit of holding the shift key down when sizing, to keep H & W resizing locked together.
    -Noel

  • How to keep track of changes made for a particular Inq Doc number.

    hi all,
    my senario is as follows :
    the requirement is to send mail every time we take print for a sapscript for inquiry ..however the header and the body of the mail will change depending whether the user created a new inquiry doc or changes an existing doc. how to keep track of the changes.
    please give me some suggestion.
    thanks in advance
    Srinivas

    its time cosuming process :
    check table CDHRD/CDPOS tables to keep track of changes.
    Regards
    Prabhu

  • How to keep the JSP content constant when page refresh?

    Hi All,
    When I click page tabs in WLP, it will trigger a refresh event.
    The portlet has a webflow with a refresh event whose destination is
    lastContentUrl(referent-namespace is portal, cloned from portlet2.wf).
    The question is when the page changed, the jsp files which use
    request.getParameter() to get parameters will fail to fulfill what they
    need because the event provide none parameter.
    So that everytime page changed, these portlets will have quite strange
    contents.
    How to keep these content constant when page changed?
    Sincerely,
    Alan.

    The problem is still there if the jsp file is about inserting a new record
    into the database.
    If these parameters are gotten from the session, mutliple insertings will be
    attempted when the portlet is refresh.
    Maybe we can put some control flags in the session to judge the correct
    behavior, but the method results the session full of parameters(control
    flags).
    Or is there any better design?
    Alan.
    "travis wissink" <[email protected]> ¼¶¼g©ó¶l¥ó
    news:3cc71962$[email protected]..
    >
    Alan,
    You could use the session to put your parameters in instead of letting itride completely
    on the request object. Although, your question is more than just makingthe content
    reappear, it’s about holding state. The project that I am working on, theusers
    decided that they want the page portlets to go back to the "normal" state,not the
    "Maximized" view. So, I put a processor in between the internal.refreshwildcard
    and the Preprocessor input processor so that all the portlets would beseen in their
    "normal" state.
    Good Luck
    -Travis
    "Alan Liu" <[email protected]> wrote:
    Hi All,
    When I click page tabs in WLP, it will trigger a refresh event.
    The portlet has a webflow with a refresh event whose destination is
    lastContentUrl(referent-namespace is portal, cloned from portlet2.wf).
    The question is when the page changed, the jsp files which use
    request.getParameter() to get parameters will fail to fulfill what they
    need because the event provide none parameter.
    So that everytime page changed, these portlets will have quite strange
    contents.
    How to keep these content constant when page changed?
    Sincerely,
    Alan.

  • How to change default Server NFS version in Solaris 10 ?

    How to change default Server NFS version in Solaris 10 ?
    I need to change default version of NFS server version, currently i have NFS_SERVER_VERSMAX=2, for changing NFS version i changed this variable in /etc/default/nfs, but still its using version 2,
    Please let me know where else i need to change./
    Thanks a lot in advance!!!

    Did you change the /etc/default/nfs on the server or on the client?
    What is NFS_SERVER_VERSMIN set to? The NFS server is allowed to use any version in the span of NFS_SERVER_VERSMIN and NFS_SERVER_VERSMAX.
    NFS_SERVER_VERSMAX=4
    The default of NFS_SERVER_VERSMIN is 2.
    And, as mentioned, you will have to restart your NFS server for changes to take effect.
    .7/M.

  • How to Get Portlet Namespace in a JSP attribute

    Hi All,
    The id of any component in a JSF application (with JSR168 portlets) takes the form
    'view'+'<portlet:namespace/>'+':'+'formname:componentidname';
    I need this id to be used for certain validations.
    Currently I am using it as below :-
    <h:intputText required="#{ ! empty param['viewns_7_CGAH47L000NAF0I04I42ND10P7_:form:login']}"/>
    Presently I have hardcoded the portlet namespace 'ns_7_CGAH47L000NAF0I04I42ND10P7_' by looking into the html source of the rendered page.
    Is there any way by which i can automatically get this portlet namespace within the param tag in the jsp.
    I know for a fact that within javascript tags, it can be used as <portlet:namespace/> as shown below :-
    <script type="text/javascript">
    function doSomething()
    buttonId= 'view' + '<portlet:namespace/>'+':'+'formName:buttonId';
    document.getElementById(buttonId).disabled = true;
    </script>
    Kindly treat this on high priority.
    Thanks and Regards,
    Darshan Shroff

    Perhaps so.
    I need to use it within param as below
    <h:inputText value="#{bean.userid}"
    required="#{!empty param['viewns_7_CGAH47L00GLRE0I0BCOUKS00I5_:form:login']}" />
    Here 'viewns_7_CGAH47L00GLRE0I0BCOUKS00I5_:form:login' is actually
    'view' + '<portlet:namespace/>'+':'+'formName:buttonId';
    I am just trying to check the presence of the client ID in the request paramameter map inorder to attain action dependent requiredness.
    Kindly tell me how i could access it within param.
    Thanks & Regards,
    Darshan Shroff

  • How to use portlet:namespace in flex files?

    Hi,
    Iam developing a portlet whose UI is flex. using MXML and action script.
    Portlets require that their UI elements be unique to each portlet, so we use <portlet:namespace> for each ID, vars, functions etc..
    My question is how should i use this tag in my UI?
    Is this the right place to ask this question, if NO, the please direct me to the right forum.
    Thank you,

    application-param tag in weblogic-application.xml may be used to define parameters:
    webapp.encoding.default
    webapp.encoding.usevmdefault
    webapp.getrealpath.accept_context_path
    http://e-docs.bea.com/wls/docs81/programming/app_xml.html#1034632
    "Harshad Nanal" <[email protected]> wrote:
    >
    When we build an ear file , Weblogic-application.xml provides application-param
    tag?
    are they similar to env-entry in ejb-jar.xml.
    Can I use application-param tag to define a configurable params
    say myName and value as "Harshad"
    How do i read it in the application say a simple java class that is included
    in
    a jar inside the ear file.

  • My mail send defaults to wrong mail server. How do I change it?

    My mail send defaults to wrong mail server. How do I change it?

    That was a long time ago. I don't even remember asking the question. I don't have that trouble at the moment.

  • How to change ASE server name in windows

    how to change the server name in Adaptive server enterprise running on windows

    Windows is going to require a few more steps if ASE is running as a service.
    Update all registry entries containing <servername> with <newservername>:
    HKLM\SOFTWARE\SYBASE\Server
    HKLM\SYSTEM\CurrentControlSet\Services\SYBSQL_<servername>[ _BS | _XP ]
    NOTE: Doing a registry search on <servername> will bring up a ton of other locations, eg, legacy entries, ControlSet00X, etc ... not sure if all of these have to be changed, too ...
    NOTE: Haven't installed any of the latest ASE packages in windows so don't know if SAP's gone an changed the HKLM\SOFTWARE sub-branch name from SYBASE to SAP
    =========================
    In addition to Ryan's notes:
    - any other sysservers entries that refer to the old servername (eg, loopback)
    - any remote servers would need to update their external/remote logins, remote servers and/or proxy definitions ... as appropriate
    - if the ASE is involved in replication then you're looking at whole 'nother can of worms ... off the top of my head ... rs_databases, rs_idnames, rs_repdbs ... and of course any repdefs/subs that include the ASE name ?
    - obviously (?) any monitoring/maintenance/operational jobs ... documentation ...

  • How to change Report Server 10.1.2 from GMT to EST

    We have the 10.1.2 Oracle Application Server up and running but the time on the Report Server is GMT. How can the time be changed to EST? Oracle suggested changing a value in a parameter file and a Windows environment variable, neither of which worked. Now, they are saying reinstall the Web Server. Is there any other way? How is this set during the install?
    Thanks,
    Dave

    hi
    it was better if you created table first.
    now create table for your server name and use select into statment.
    and after this if any happend you will be able to change the server name easily by
    modifying table.
    hope this helps u.
    sarah

  • How to change web server from inbuilt Tomcat to IIS in already configured Cold Fusion 10

    how to change web server from inbuilt Tomcat to IIS in already configured Cold Fusion 10

    You just need to run the Web Server Configuration Tool to connect ColdFusion to IIS.  It can be found in the ColdFusion program group off of the Start menu.  Be sure to run it "As Administrator".
    -Carl V.

  • How so we schedule a reports server restart

    We want to schedule a reports server restart each night that is scheduled in windows. Does anyone know the command to do this?
    The reason we want to do this is because our RDF reports often error out and a simple restart of the reports server solves the issue. Has anyone else encountered this issue and if so how did you get round it?

    Hi
    This is really a reports question. You can auto schedule with the queue manager to run reports on the 27th of the month in background, or have a batch script to initiate them or write a new report that initiates each ot the reports so that it can be user initiated
    Brian

Maybe you are looking for

  • No sound from external speakers in win7 partition

    hi all, apologies if this is a common problem - but i couldn't find any info specific to it on the web. i installed windows 7 in 64bit w/ bootcamp on my macbook pro and so far everything has been going great .. other than that i can't get any sound o

  • i this /i is retarded

    In a servlet I'm writing I have this code... out.print(request.getPathTranslated() + "<BR>"); out.print(request.getServerName() + "<BR>"); out.print(this.getServletInfo() + "<BR>"); out.print(this.getServletContext().getRealPath("") + "<BR>"); out.pr

  • Restrict the quantity fields from changing in ME54N during PR release

    Hi All, I have created a workflow for purchase requisition release strategy .  Apporver's will login into ME54N transcation from the attachment in email and provide Release/Reject on PR . At that when any approver login to ME54N the item detials are

  • G5 shuts down when startup (from sleep) with mouse. Ok with spacebar

    Hello Board, I just moved my G5 across Texas and now it shuts down when I use mouse to wake from sleep. Space bar will wake ok. Original power supply crashed and Apple replaced soon after I bought in "06. No other problems. It is connected to battery

  • Backing up ASM Disk Group

    How to take the backup of ASM Disk Group? Regards