Clicking List items to invoke a servlet

How can I use a list box item to fire a servlet.

I have the servlet being called but I need to sent the selected item of the list as argument0 but nothing I have tried will work.
My JSP Code:
<P>
Pick a Drawing number from list to see Details<BR>
<jsp:useBean id="dwglist"
     type="com.ibm.drawinginquiry.rational.DrawingList" scope="session"></jsp:useBean>
<BR></P><FORM action="/DrawingInquiry/DrawingInquiryServlet">
<SELECT size="8" name="dwgno" onchange="gotoPage(this.selectedIndex)">
     <%
     for (int i=0; i<dwglist.getDwgList().length; i++){
          %>
     <OPTION value="<%= i%>"><%= dwglist.dwglist%></OPTION>
     <%
          %>
</SELECT></FORM>
<script language="JavaScript">
<!--
function gotoPage(varItem)
     window.location="/DrawingInquiry/DrawingInquiryServlet";
// -->
</script>
My Servlet Code:
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.Servlet;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import com.ibm.drawinginquiry.rational.Drawing;
import com.ibm.drawinginquiry.rational.DrawingConnectionClass;
public class DrawingInquiryServlet extends HttpServlet implements Servlet {
     /* (non-Java-doc)
      * @see javax.servlet.http.HttpServlet#HttpServlet()
     public DrawingInquiryServlet() {
          super();
     public static String getFilePath;
     public static String getFilePath2;
     public static String getliteralErrString;
     public static String getErrMsg;
     public static String drawingString;
     public static String drawingRel;
     public static String drawingPend;
     public static String drawingTitle;
     public static String firstName;
     public static String lastName;
     /* (non-Java-doc)
      * @see javax.servlet.http.HttpServlet#doGet(HttpServletRequest arg0, HttpServletResponse arg1)
     protected void doGet(HttpServletRequest arg0, HttpServletResponse arg1) throws ServletException, IOException {
          this.doPost(arg0, arg1);
     /* (non-Java-doc)
      * @see javax.servlet.http.HttpServlet#doPost(HttpServletRequest arg0, HttpServletResponse arg1)
     protected void doPost(HttpServletRequest arg0, HttpServletResponse arg1) throws ServletException, IOException {
          String drawingnumber  = arg0.getParameter("dwgno");
          DrawingConnectionClass conn = new DrawingConnectionClass(drawingnumber);
          ErrorHandling getErrMsg = ErrorHandling.getErr(conn.errorString);
          //ErrorHandling getErrMsg = ErrorHandling.getErr(arg0.getParameter("dwgno"));
          getliteralErrString = conn.literalerrorString;
          HttpSession session = arg0.getSession(true);
          if (getliteralErrString.equals("NoError")){
               Drawing drawingString = Drawing.getDrawing(drawingnumber);
               Released drawingRel = Released.getRel(conn.released);
               Pending drawingPend = Pending.getPend(conn.pending);
               Title drawingTitle = Title.getTitle(conn.title);
               FirstName firstName = FirstName.getFname(conn.fname);
               LastName lastName = LastName.getLname(conn.lname);
               getFilePath = conn.filePath;
               getFilePath2 = conn.filePath2;
               session.setAttribute("errorBean", getErrMsg);
               session.setAttribute("dwgno", drawingString);
               session.setAttribute("dwgno1", drawingString);
               session.setAttribute("dwgrel", drawingRel);
               session.setAttribute("dwgpend", drawingPend);
               session.setAttribute("dwgtitle", drawingTitle);
               session.setAttribute("fname", firstName);
               session.setAttribute("lname", lastName);
          else{
               Drawing drawingString = Drawing.getDrawing("");
               Released drawingRel = Released.getRel("");
               Pending drawingPend = Pending.getPend("");
               Title drawingTitle = Title.getTitle("");
               FirstName firstName = FirstName.getFname("");
               LastName lastName = LastName.getLname("");
               getFilePath = "";
               getFilePath2 = "";
               session.setAttribute("errorBean", getErrMsg);
               session.setAttribute("dwgno", drawingString);
               session.setAttribute("dwgno1", drawingString);
               session.setAttribute("dwgrel", drawingRel);
               session.setAttribute("dwgpend", drawingPend);
               session.setAttribute("dwgtitle", drawingTitle);
               session.setAttribute("fname", firstName);
               session.setAttribute("lname", lastName);
          RequestDispatcher disp = getServletContext().getRequestDispatcher("/DrawingDisplay.jsp");
          disp.forward(arg0, arg1);

Similar Messages

  • Click list item and display the image

    I have a database table:
    + One column includes names of the employee
    + Another includes the path of the file of corresponding employee's images
    I have added all the names into a JList
    Now, what I want to do is that: When I click on the item in the list, the image of the employee corresponding to the item will display in the frame.
    Could any of you help me?
    Any help will be appreciated.
    Thanks.

    Hi Sunitha,
    According to your description, my understanding is that you want to change the list title to an image.
    I recommend to add the code below to the list page:
    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script><script type="text/javascript">
    $(document).ready(function (){
    var s = "<img alt='SP' src='http://w2k81368:2116/SiteAssets/Test.jpg'>";
    var $t = $("#DeltaPlaceHolderPageTitleInTitleArea span span a");
    $t.html(s);
    </script>
    After that, the list title will change to the image and it will show allitems.aspx page when clicking the image.
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • How to Create a Dynamic http address that opens the Explorer Window for a List Item When a Button Is Clicked--Currently Trying to Make this Work with Javascript

    I have created a button (via Content Editor) that uses JavaScript to open the Attachments folder of a list item in the Explorer Window in SharePoint 2010. The purpose is to have drag and drop functionality for each list item, having multiple attachments.
    The button works but opens the "Attachments" folder containing all of the other folders for each list item (one folder per item). It seems that when you add an attachment to a list item, SharePoint numbers the folder based on the item's ID. What
    I'm trying to do is take the JavaScript I have and have it run when a button is clicked in a custom form. When it runs, I'm trying to get it to open the "specific" folder for the list item. I have had success creating a hyperlink in the list that
    does this; however, the link WILL NOT work until I use the Content Editor created button that runs JavaScript, that prompts me to click OK to my profile certificate, and then opens the Attachment folder. After that occurs, I can use my hyperlinks without issue
    because I'm no longer prompted to click OK for my cert.
    So I'm trying to take the JavaScript I have and place it in a list item form (custom form) and have it run when a form button is clicked. The problem is I have very little knowledge of JavaScript (did I mention little?) and
    "don't know how to take the "http:" address I have in the script and append to it the list item ID, according to the record I have open."
    So that for any record I open, the script will grab the corresponding record ID (or list item ID) and append it.
    Here's the script I'm working with (which I didn't create but am grateful for):
    <style>
    .httpFolder {behavior:url(#default#httpFolder);}
    </style>
    <script text = "javascript">
       function fnOpenFolderView(){
       oDAV.navigateFrame("https://server/collection/site/subsite/Lists/Sublist/Attachments","_self");
    </script>
    <div id = "oDAV" class = "httpFolder"/>
    <input type = "button" value = "Open Attachment Folder" onclick = "fnOpenFolderView()"/>
    The above script, in the Content Editor, creates a button that opens the Attachments folder for the corresponding SharePoint list.
    JackSki123

    Hello Thriggle,
    Thank you for pointing that out. I appended your "GetUrlKeyValue" to the end and it worked. That said, I noticed it doesn't run as smoothly as when I simply click on the Content Editor button I created that resides on the SharePoint List
    ASPX page (not the form). The Content Editor button has the same code, minus the "GetUrlKeyValue". I click it; I get prompted to choose my cert; it opens right up.
    Now go to the ASPX Display form where I dump the code in a table cell. Button appears in cell; I click it; wait; wait; I get prompted for cert; it opens. Do I need some sort of "throttle" for the JavaScript? For instance, I thought before running
    JavaScript, you reference the library first. This code doesn't do that. I'm wondering if there's something more I need to make this run smoothly. Thank you both for getting me this far. 
    JackSki123

  • Need solution for sub site when we click on the list item of a list? by using out of out of box feature in share point 2010

    Hi  all ,I have Task that When click on list item a new sit will open fo 
    for ex:   I created a List (test list)  and list items are Project name,Application, Start date ....,when i click on Project name a new sub site will open,
    Is there any out of box feature ?
    for that Please help any body knows
    Thanking You, 

    This is a forum related to System Center Service Manager. Your question seems to be related to Sharepoint 2010. Maybe it's better to ask in the Sharepoint 2010 forum, for instance: General
    Discussions and Questions
    Andreas Baumgarten | H&D International Group

  • How to read list item and display Title and on click hyperlink as value by javascript /jquery

    on newform.aspx just above the top of cancel button I want to put 1 hyperlink "Help"
    but I want to do this by script/jquery by reading my configuration list where 1 column is TITLE and other is- URL
    in TITLE column will write "Help" and in URL column  I will write
    http://portal1234/sites/sudha/MyHelppage.aspx
    so script should read Title and display Help--->1st part
    Script should read Value column and on click of help-(display link) the respective url should be open in new window.-->second part
    Please let me know reference code for adding anchor tag dynamically by reading from list
    I can see hyperlink near cancel button-
    $(document).ready(function(){
    var HelpLinkhtml ='<a href="#" text="Help">Help</a>';
    var position =$("input[value='Cancel']").parent("td").addClass('ms-separator').append(HelpLinkhtml);
    now for reading from list I am trying below script-
    $(document).ready(function() {
        GetHelpLinkFromConfigList();
    function GetHelpLinkFromConfigList()
     //The Web Service method we are calling, to read list items we use 'GetListItems'
     var method = "GetListItems";
     //The display name of the list we are reading data from
     var list = "configurationList";
     //We need to identify the fields we want to return. In this instance, we want the Title,Value fields
     //from the Configuration List. You can see here that we are using the internal field names.
     var fieldsToRead = "<ViewFields>"+"<FieldRef Name='Title' />"+"<FieldRef Name='Value' />"+"</ViewFields>";
     //comment
     var query = "<Query>" +
                            "<Where>" +
                                "<Neq>" +
                                    "<FieldRef Name='Title'/><Value Type='Text'>Help</Value>"
    +
                                "</Neq>" +
                            "</Where>" +
                            "<OrderBy>" +
                                "<FieldRef Name='Title'/>" +
                            "</OrderBy>" +
                        "</Query>";
     $().SPServices(
     operation: method,
        async: false,
        listName: list,
        CAMLViewFields: fieldsToRead,
        CAMLQuery: query,
        completefunc: function (xData, Status) {
        $(xData.responseXML).SPFilterNode("z:row").each(function() {
        var displayname = ($(this).attr("ows_Title"));
        var UrlValue = ($(this).attr("ows_Value")).split(",")[0];
        AddRowToSharepointTable(displayname,UrlValue)
    function AddRowToSharepointTable(displayname,UrlValue)
        $("#NDRTable").append("<tr align='Middle'>" +
                                    "<td><a href='" +UrlValue+ "'>+displayname+</a></td>"
    +
                                   "</tr>");
    <table id="NDRTable"></table>
    Thanks :)
    sudhanshu sharma Do good and cast it into river :)

    Hi,
    From your description, you want to add a help link(read data from other list) into new form page.
    The following code for your reference:
    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    ExecuteOrDelayUntilScriptLoaded(AddHelpLink, "sp.js");
    function AddHelpLink() {
    var context = new SP.ClientContext.get_current();
    var list= context.get_web().get_lists().getByTitle("configurationList");
    var camlQuery= new SP.CamlQuery();
    camlQuery.set_viewXml("<View><Query><Where><Eq><FieldRef Name='Title'/><Value Type='Text'>Help</Value></Eq></Where></Query></View>");
    this.listItems = list.getItems(camlQuery);
    context.load(this.listItems,'Include(Title,URL)');
    context.executeQueryAsync(function(){
    var ListEnumerator = listItems.getEnumerator();
    while(ListEnumerator.moveNext())
    var currentItem = ListEnumerator.get_current();
    var title=currentItem.get_item("Title");
    var url=currentItem.get_item("URL").get_url();
    var HelpLinkhtml ='<a href="'+url+'">'+title+'</a>';
    $("input[value='Cancel']").parent("td").addClass('ms-separator').append(HelpLinkhtml);
    },function(sender,args){
    alert(args.get_message());
    </script>
    Result:
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Open Edit form directly when list item is clicked in Sharepoint 2013 list

    Hi,
    I have a list web part, wherein the user clicks the item it should open in the Edit form directly. various forum i checked was for SharePoint 2010, as we do not have design mode in SharePoint designer 2013, I am unable to do.. I know
    if I the change the form type from default page to edit page, it will work, but not sure about how to go ahead. Could anyone help me to achieve this please....

    Sunitha,
    You can do this with some jQuery and JavaScript.  Look at this post:
    http://brandonatkinson.blogspot.com/2013/11/open-sharepoint-2013-list-items.html
    Basically, add a Script Editor Web Part to the page and include this snippet:
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
    <script type="text/javascript">
    $(function() {
    // Change all display form links to edit form links
    $('.ms-vb a[href*="listform.aspx"]').each(function(){
    var link = $(this).attr('href');
    link = link.replace("PageType=4", "PageType=6");
    $(this).attr('href', link);
    </script>
    Brandon Atkinson
    Blog: http://brandonatkinson.blogspot.com

  • Double clicking a list item

    Hi,
    I'm just trying to perform an action by double-clicking a list item, but doesn't seem to work. code:
    WHEN-MOUSE-DOUBLE-CLICK trigger on List item (TList).
    DECLARE
    v_verwalten VARCHAR2(40);
    BEGIN
    v_verwalten := :CONTROL.LIST;
    IF v_verwalten = 'Codes verwalten'
    THEN NEW_FORM('COD_VER');
    END IF;
    END;

    Hi all,
    When the list item type is tlist, the trigger 'WHEN-LIST-ACTIVATED' will fire for "mouse double click" and "key enter".
    Try with placing the code in 'WHEN-LIST-ACTIVATED' trigger.
    Cheers,
    Zakiy

  • Ribbon + s4-title s4-lp | Hides when clicked on the list item

    Hello,
    Using
    SPSecurityTrimmedControl, I hide the ribbon for a user having
    view only rights. Now when this user clicks on any list item (grid view), the div "s4-title" containing the logo, and title text hides too.
    Please help.

    Thanks for the reply Shakir.
    I tried to find the div with id ms-designer-ribbon to make the changes and add the JavaScript. I failed to do so. Please helpme with me with this.
    I'll try to explain a bit more:
    The View Only user shouldn't have the ribbon for any editing changes. To achieve this, I followed the steps given in the article (URL below).
    http://blogs.msdn.com/b/zwsong/archive/2010/04/29/how-to-hide-ribbon-from-users-without-edit-page-privilege.aspx
    Now when the user clicks anywhere on "Line Item", the div containing logo i.e.
    <div class="s4-title s4-lp">
    gets hide. There should be some click event on the list items which onclick opens the edit option.
    Any help is appreciated

  • When I go to my folders in the doc, the fan feature is not there. It stays in grid. I can click list. Once in list (and list only), the fan option returns. However when I click it, it just goes to automatic. My folders just have 3 items or less in them.

    When I go to my folders in the doc, the fan feature is not there. I stays in grid. I can click list. Once in list (and list only), the fan option has returned. However when I click it, it just goes to automatic. My folders just have 3 items in them. How do I correct this? Quick note...when my son logs into his user account, the fan feature pops right up and works fine. Thanks!

    Is the Dock on the bottom or the side? Fan is not an option with it on the side.

  • Assigned To column (or any column that uses People Picker) cleared after clicking Edit Item in a Task List

    Our SharePoint Foundation 2013 is experiencing a weird issue. It only happens in Task Lists. For example:
    Create a new Task in Task List and fill the Assigned To field with a user from the People Picker list. The People Picker works fine as all users in Active Directory are appearing.
    Save Task.
    Edit Item the task that was just created.
    The Assigned To field is now cleared for that Task.
    It used to keep the user that was in the Assigned To column.
    Are there any suggestions on what may have caused this or what I can try to fix this?
    This was after some Windows updates were installed end of August.

    Hi PauIT,
    According to your post, my understanding is that the “Assigned To” field is cleared when you edit a task item in the Tasks List.
    I recommend that you can enable server rendering on the list view Web Part for the Tasks List to solve this issue.
    To do this, please follow the steps as below:
    Open the Tasks List in your site, add a new task item, type the user name in the “Assign To” field and save it.
    Select the new item, click “Edit item”, then go to the Gear icon, click “Edit page”, click the drop-down arrow in the upper-right corner of the Web Part for the Tasks List, and click “Edit Web Part”.
    On the right side of the page in the Web Part properties controls, click the plus sign (+) on the “Miscellaneous” section, select the “Server Render” in the “CSS Render Mode” section, then click “Apply”, “OK” and save the changes of the page.
    Then, you can see if the “Assign To” field in the new item’s Edit Form has the corresponding values.
    There are some similar threads for your reference:
    http://sharepoint.stackexchange.com/questions/87089/assigned-to-column-text-hidden-but-filterable
    http://support.microsoft.com/kb/2924913/en-us
    Best Regards,
    Yumi Fu

  • DHTML Tree - Expand on click on the List Item Label

    Hello,
    I'd like that when the user click on the List Item Label the sublist expand. I tryed with javascript:htmldb_ToggleWithImage() but I don't know what the first parameter is. I think it is the "+" image.
    Do you know a beter way for achieving this?
    Tyia,
    Cheers,
    Arnaud

    Problem solved, I modified the template and add a on click "htmldb_Toggle..." to the a href
    Cheers,
    AR

  • Change color when users click on list item(like read/unread in email)

    Hi
    I assign some task for my colleagues. Now I want to when they open the list item that related to them,color of that item change(like read/unread
    in email)that I understand my colleagues see their task.
    How I can do this?
    Thanks.

    There are few articles available online, refer these
    http://www.sharepoint-journey.com/alternate-color-for-a-column-in-SharePoint-list-using-jquery.html
    http://davecoleman146.com/2013/07/08/colour-coding-a-sharepoint-2013-list-with-jquery/
    http://community.spiceworks.com/topic/151771-color-coding-sharepoint-list-with-jquery-help
    --Cheers

  • ADF_FACES-60098 when clicking navigation item in UIShell for the first time

    Hi all,
    I have created a page based on dynamic tabs, in the navigation pane when I click any item for the first time I get the error below, but the second click is working correctly, I am trying to lunch one of fragments on page load and because of this error it doesn't work,
    I am using jdeveloper 11.1.2.2, and my navigation launcher bean is in request scope and I have tested the default launcher in both request and backing scope.
    I also implemented beforePhase listener and loaded it as : <af:clientListener method="initialize" type="load" />.
    error stack in log:
    <LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase INVOKE_APPLICATION 5
    java.lang.NullPointerException: UIComponent is null
    at org.apache.myfaces.trinidad.component.UIXComponent.addPartialTarget(UIXComponent.java:751)
    at org.apache.myfaces.trinidadinternal.context.RequestContextImpl.addPartialTarget(RequestContextImpl.java:539)
    at oracle.adfinternal.view.faces.context.AdfFacesContextImpl.addPartialTarget(AdfFacesContextImpl.java:661)
    at oracle.ui.pattern.dynamicShell.TabContext._refreshTabContent(TabContext.java:504)
    at oracle.ui.pattern.dynamicShell.TabContext.setSelectedTabIndex(TabContext.java:339)
    at oracle.ui.pattern.dynamicShell.TabContext.addTab(TabContext.java:210)
    at oracle.ui.pattern.dynamicShell.TabContext.setMainContent(TabContext.java:114)
    at oracle.ui.pattern.dynamicShell.TabContext.setMainContent(TabContext.java:88)
    at com.enlogix.view.backing.MainTabShellLauncherBean._launchActivity(MainTabShellLauncherBean.java:181)
    at com.enlogix.view.backing.MainTabShellLauncherBean.launchDefaultActivity(MainTabShellLauncherBean.java:62)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.el.parser.AstValue.invoke(Unknown Source)
    at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
    at oracle.adf.view.rich.event.ClientListenerSet.invokeCustomEventListeners(ClientListenerSet.java:174)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl$DeliverClientEvent.invokeContextCallback(LifecycleImpl.java:1881)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1735)
    at org.apache.myfaces.trinidad.component.UIXDocument.invokeOnComponent(UIXDocument.java:106)
    at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:1321)
    at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:678)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeCustomEvents(LifecycleImpl.java:550)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:436)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:207)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.share.http.ServletADFFilter.doFilter(ServletADFFilter.java:65)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
    at com.enlogix.view.security.ENGLPBindingFilter.doFilter(ENGLPBindingFilter.java:381)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Does anybody have workaround about it?
    thank you in advance
    Alireza

    Not sure why you wanted to implement beforePhase listener, but did you try commenting out your custom code and check? All the refreshTabContent does is to refresh the components that comes along with the template. It works fine for me. So, as Timo said, check your custom code or try commenting the code and narrow down the issue.
    private void _refreshTabContent()
    AdfFacesContext.getCurrentInstance().addPartialTarget(getTabsNavigationPane());
    AdfFacesContext.getCurrentInstance().addPartialTarget(getContentArea());
    AdfFacesContext.getCurrentInstance().addPartialTarget(getToolbarArea());
    AdfFacesContext.getCurrentInstance().addPartialTarget(getInnerToolbarArea());
    }

  • Error while editing a list item - SharePoint 2010.

    Hi ,
    i have 2 site collection one is read only site and another one is authoring site. both site collection are inside single web application and referring same content database.
    when i try to edit a list item using authoring site i am getting the below error message. this is for all the lists in the site.
    " the item is no longer available. it may have been deleted by another user. click ok to refresh the page."
    i am able to edit the list items using read only site as an administrator.
    please help me on these.

    This could be a permission issue, refer to the following post for more information
    http://techtrainingnotes.blogspot.in/2012/02/sharepoint-error-this-item-is-no-longer.html
    Cheers,

  • Unable to populate list items with criteria

    Hi
    I want to populate some values based on condition in a text field.
    I tried the code wihtout condition in new form instance and its working fine but when i tried with an condition on when mouse click on list item and its working for first action.If list having more than 1 values in list its became blank and not working
    DECLARE
    group_name varchar2(40) :='LSTCUR';
    group_id RecordGroup;
    list_id item := Find_item('TB.LSTCUR');
    status NUMBER;
    begin
    IF Id_null(group_id) THEN
    group_id := Create_Group_From_Query('LSTCUR','select distinct curr,curr from REC_CURR_V where br =:TB.PSRCH');
    END IF;
    Clear_list(list_id);
    status := Populate_Group('LSTCUR');
    Populate_list(list_id,group_id);
    end;
    rgds
    soumya

    soumya,
    Try this code.
    DECLARE
         RG_Group_ID RECORDGROUP;
         Num_Status NUMBER;
    BEGIN
         RG_Group_ID := FIND_GROUP('LSTCUR');
      IF NOT Id_Null(RG_Group_ID) THEN
              DELETE_GROUP(RG_Group_ID);
      END IF;
         RG_Group_ID := CREATE_GROUP_FROM_QUERY('LSTCUR', 'SELECT DISTINCT CURR, CURR FROM REC_CURR_V WHERE BR = ''' || :TB.PSRCH || '''');
         CLEAR_LIST('TB.LSTCUR');
         Num_Status := POPULATE_GROUP('LSTCUR');
         POPULATE_LIST('TB.LSTCUR', RG_Group_ID);
    END;Regards,
    Manu.
    If my response or the response of another was helpful, please mark it accordingly

Maybe you are looking for