Editable tabel :display:tag

Does anyone ever implemented editable display tag, if yes, can you please give an example, how to im0plement Editable table.
Thanks,
RD

Thanks for your reply.
Editable table means, I have a table with,say, 10 rows, there will be a button in each row, and if user wants to modify a particular row, user can click on that button and modify that particular rows data which will be updated in the database.
If you have got any sample, please put here which will really help me.
Thanks.

Similar Messages

  • Editing Multiple .AVI Tags

    Please excuse my noob behavior, as this is my first post! I would like to know if it is possible to edit multiple .AVI tags simultaneously. There are several programs out there that do this for Windows. Thus far I have been unable to locate equitable software for Mac OSX. Am I missing something here, is this easier than I think? Thanks for your guidance!

    ID3 tags are contained in a file, so to change them, you will have to reupload.
    The iTunes U web services API does let you change a lot about the way things are displayed within the iTunes Store ... but using them may not seem simple unless you have a web services/XML guru handy. If you are such a guru, then you want to check out Chapter 6 of the iTunes U admin guide.

  • Display Tag for JDeveloper 10g. "Nothing found to Display"

    Hello everyone. I am currently using JDeveloper 10g. I already add the display tag in the library but when I try to use it always shows nothing to display.
    Can someone help me?
    this is my code
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
    <%@page import="java.sql.*"%>
    <%@page import="java.util.*"%>
    <%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
    <%@ page contentType="text/html;charset=windows-1252"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>untitled</title>
    </head>
    <body>
    <%
    String method = request.getParameter("method");
    if (method == null) {
    List testData = new ArrayList();
    Map map1 = new TreeMap();
    map1.put("id","1");
    map1.put("firstName","Bill");
    map1.put("lastName","Gates");
    testData.add(map1);
    Map map2 = new TreeMap();
    map2.put("id","2");
    map2.put("firstName","Scott");
    map2.put("lastName","McNealy");
    testData.add(map2);
    Map map3 = new TreeMap();
    map3.put("id","3");
    map3.put("firstName","Bill");
    map3.put("lastName","Joy");
    testData.add(map3);
    session.setAttribute( "test", testData);
    } else {
    // grab the testDate from the session
    List testData = (List) session.getAttribute("test");
    String useMe = request.getParameter("id");
    if (useMe != null && method.equals("Delete")) {
    // figure out which object it is and delete it
    for (int i=0; i < testData.size(); i++) {
    Map m = (TreeMap) testData.get(i);
    String id = m.get("id").toString();
    if (useMe.equals(id)) {
    testData.remove(m);
    %><div class="message">Delete succeeded!</div><%
    break;
    } else if (method.equals("Save")) {
    // figure out which object it is and update it
    for (int i=0; i < testData.size(); i++) {
    Map m = (TreeMap) testData.get(i);
    String id = m.get("id").toString();
    if (useMe.equals(id)) {
    m.put("firstName", request.getParameter("firstName"));
    m.put("lastName", request.getParameter("lastName"));
    testData.set(i, m);
    %><div class="message"><h2>
    <b><c:out value=" "/></b> updated successfully!
    </h2></div><%
    break;
    } else if (method.equals("Add")) {
    Map map4 = new TreeMap();
    // generate a random number
    Random generator = new Random();
    String id = String.valueOf(generator.nextInt());
    pageContext.setAttribute("id", id);
    map4.put("id", id);
    map4.put("firstName", "");
    map4.put("lastName", "");
    testData.add(map4);
    %><c:redirect url="request.jsp">
    <c:param name="id" value=""/>
    <c:param name="method" value="Edit"/>
    </c:redirect>
    <%
    session.setAttribute( "test", testData);
    %>
    <c:set var="checkAll">
    <input type="checkbox" name="allbox" onclick="checkAll(this.form)" style="margin: 0 0 0 4px" />
    </c:set>
    <form name="editForm" action="request.jsp">
    <c:if test="false">
    <input type="button" onclick="location.href='request.jsp'" class="button"
    value="Reset List" />
    </c:if>
    <c:if test="false">
    <input type="submit" name="method" value="Save" class="button" />
    </c:if>
    <input type="submit" name="method" value="Edit" class="button"/>
    <input type="button" name="method" value="Add" class="button" onclick="location.href='?method=Add'" />
    <input type="submit" name="method" value="Delete" class="button" />
    <display:table name="{firstName=Bill, id=3, lastName=Joy}" id="test" class="list">
    <display:column style="width: 5%" title="checkbox">
    <input type="checkbox" name="id" value="<c:out value='${test.id}'/>" <c:if test="${param.id==test.id and param.method!='Save'}">checked="checked"</c:if> style="margin: 0 0 0 4px" onclick="radio(this)" />
    </display:column>
    <display:column title="First Name">
    <c:choose>
    <c:when test="${param.method == 'Edit' and param.id == test.id}">
    <input type="text" name="firstName" style="padding: 0"
    value="<c:out value="${test.firstName}"/>" />
    </c:when>
    <c:otherwise><c:out value="${test.firstName}"/></c:otherwise>
    </c:choose>
    </display:column>
    <display:column title="Last Name">
    <c:choose>
    <c:when test="${param.method == 'Edit' and param.id == test.id}">
    <input type="text" name="lastName" style="padding: 0"
    value="<c:out value="${test.lastName}"/>" />
    </c:when>
    <c:otherwise><c:out value="${test.lastName}"/></c:otherwise>
    </c:choose>
    </display:column>
    </display:table>
    </form>
    <table>
    <c:forEach items="${test}" var="test" >
    <tr>
    <td>
    <c:out value="${test.id}"/>     
    <c:out value="${test.firstName}"/>
    <c:out value="${test.lastName}"/>
    </td>
    </tr>
    </c:forEach>     
    </table>
    </body>
    </html>
    Edited by: 856423 on May 3, 2011 11:48 PM
    Edited by: 856423 on May 4, 2011 12:07 AM

    thanks for your reply.
    I am pretty sure that the list where I get the data contains values. I tried it by outputting the in ordinary table as shown here:
    <table>
    <c:forEach items="${test}" var="test" >
    <tr>
    <td>
    <c:out value="${test.id}"/>     
    <c:out value="${test.firstName}"/>
    <c:out value="${test.lastName}"/>
    </td>
    </tr>
    </c:forEach>     
    </table>
    It outputs properly but when I tried this, it just output NOTHING FOUND TO DISPLAY.
    <display:table name="{firstName=Bill, id=3, lastName=Joy}" id="test" class="list">
    <display:column style="width: 5%" title="checkbox">
    <input type="checkbox" name="id" value="<c:out value='${test.id}'/>" <c:if test="${param.id==test.id and param.method!='Save'}">checked="checked"</c:if> style="margin: 0 0 0 4px" onclick="radio(this)" />
    </display:column>
    <display:column title="First Name">
    <c:choose>
    <c:when test="${param.method == 'Edit' and param.id == test.id}">
    <input type="text" name="firstName" style="padding: 0"
    value="<c:out value="${test.firstName}"/>" />
    </c:when>
    <c:otherwise><c:out value="${test.firstName}"/></c:otherwise>
    </c:choose>
    </display:column>
    <display:column title="Last Name">
    <c:choose>
    <c:when test="${param.method == 'Edit' and param.id == test.id}">
    <input type="text" name="lastName" style="padding: 0"
    value="<c:out value="${test.lastName}"/>" />
    </c:when>
    <c:otherwise><c:out value="${test.lastName}"/></c:otherwise>
    </c:choose>
    </display:column>
    </display:table>

  • Struts display tag

    Link within display tag for edit operation

    Where you are facing the problem.
    Next time onwards post web related doubt in Web Tier APIs topic.

  • Problem with display tags (not accepting inner tags)

    Hi guys ,
    I am using display tags which is fine but i had a problem with anchor tag and the jsp display tag.
    <display:column title="Row_Id" >
    ' target="-blank" onclick=""><c:out value="${row_rowNum}"/>
    </display:column>
    here i got the exception:
    The value of attribute "href" associated with an element type "a" must not contain the '<' character.
    here if jstl is not used then how to put my value in anchor tag
    please help me.

    Can you use EL directly:
    <a href="example.jsp?id=${row.id"/"></a>

  • Error message: when downloading data from 2nd display tag table

    I am using disaply tag to display data in jsp page. I am using three different section to display the data with three display tag table. The data is displaying correctlly. The display tag downlod excel sheet is working for first display tag table. When i am trying to download data from 2nd and 3rd display tag table i am getting following error:
    Exception: [.TableTag] Unable to reset response before returning exported data. You are not using an export filter. Be sure that no other jsp tags are used before display:table or refer to the displaytag documentation on how to configure the export filter (requires j2ee 1.3).
         at org.displaytag.tags.TableTag.writeExport(TableTag.java:1438)
         at org.displaytag.tags.TableTag.doExport(TableTag.java:1364)
         at org.displaytag.tags.TableTag.doEndTag(TableTag.java:1215)
         at org.apache.jsp.InstalBase_005fReport_jsp._jspService(InstalBase_005fReport_jsp.java:974)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:595)
    As per the Exception i don't have any jsp tag before the display tag.
    Please help me if any body has any solution for the above exception.
    Thanks in advance.
    Smruti..

    See also http://helpx.adobe.com/acrobat/kb/pdf-browser-plugin-configuration.html

  • Item field to non-editable mode(display mode) in Purchase Order(ME22n).

    Hi SDN,
    Based on the Comany code i need to modify the item level fields like <b>Item, Account Assignment, Material</b> to non-editable mode(display mode) in Purchase Order(ME22n).
    So i modifed in the method MODIFY_SCREEN_TC_LINE of class CL_TABLE_VIEW_MM and set the value L_FIELD_STATUS = *  for the screen filed MEPO1211-EBELP. When i execute, the whole column changed to display mode and the empty rows filled with 0(zero). But i want only grey mode for the line items that are present for that PO but not for the whole column. So can any one guide me to do so. I am using 4.6c.
    Thanks in Advance
    Regards
    Basha

    Hi Ramesh,
    Normally you can change the currency field, after entering information in Data base's table, go to Detail's table and change the rate as you want, then directly choose your PO number.
    so the system accept the rate entered aven though the PO had another rate.
    Regards.

  • What is tthe Best practice for Variant List, Add, Edit and Display Forms?

    Requirement:
    I have single list.  The list has a large number of columns and a large number of items (lets say 20,000).
    I want to show users a different view of the list based on clicking on a different left-hand navigation option.
    Lets say I have four types of users:  Sales, Manufacturing, Shipping and Finance. I would like to have four options in the left-hand navigation.
    All of them would be pointing at the same list, BUT, I want each of them to have a customer list form.  The only difference between the custom list forms would be:
    Each would have its own set of views, and hence its own default view.
    Each would have its own New, Edit and Display Forms.  The only difference between the forms in one variant list and another would be: The order of the columns and which columns are modifiable.
    I would like to achieve this in SharePoint Designer in such a way that the "users" could still add/modify views and could even modify the forms from the SharePoint Menu.  BTW, I don't want to use InfoPath for obvious reasons.
    What is the best approach to meeting this requirement?  I have at least 20 sites and 70 lists overall that need variant forms made.
    HELP!!
    Savin
    BTW We are using SharePoint 2013 and I selected the wrong forum *sigh*.  But I think its probably the same answer.
    Cheers, Savin Smith

    Hi,
    I understand that you want to have different forms based on different view.
    Per my knowledge, there are no out of box method to achieve it.
    As a workaround, you can add the JavaScript code to the different view page.
    For example, to open different new form based on different view, you can get the windows.location, and then judge the view, then change the onclick event of the "New item" button.
    For more information, you can refer to:
    http://css-tricks.com/snippets/javascript/get-url-and-url-parts-in-javascript/
    http://samsharepoint.wordpress.com/2013/05/01/change-the-default-sharepoint-ok-and-cancel-button/
    Thanks,
     Linda
    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]
    Linda Li
    TechNet Community Support

  • My nokia N-70 Music Edition Screen displayed blank...

    Hi
    nokia N-70 Music Edition Screen displayed blank after few hours.After Removing battery,put again & start it becomes ok for few hours.I have already updated the Software Nokia N-70 but no advantage.
    Wht should i do?

    strange enough some of the pre-installed apps on the N70 are on the memory card and not the phone memory. which means formatting the memory card will remove everything. it's difficult to get everything back but try these :
    1- try to find what you need on the n70 support page
    http://europe.nokia.com/A4144775
    check phone software.
    2- if you have the download app installed on your phone , run it and check for the app there.if not check the nokia download store. http://www.download.nokia.com/
    3- if your mamory card is not the original provided with the phone, locate your old memory card. using a computer copy and paste the following folders from the old original one to the new one:
    * resource
    * sys
    * private (copy the subdirectories only and not the whole folder)
    4- if something is still missing after all this, i guess it's gone for good
    Fear not those who argue but those who dodge

  • [Solved] Simple way to edit id3v2 comment tag in python?

    I'm working on a project right now that is going to read the id3v2 comment tag from an MP3 file, parse some things from it, and then append some text to the end.
    Right now I'm using id3v2 from extra to do this:
    comm = commands.getoutput( "id3info '%s' | grep '(Comments): ()'" % fileName )
    Then I use this to put it back:
    os.system( "id3tag -c \"%s\" '%s'" % (commNew, fileName) )
    I really don't want to rely on this package to insert this comment. I've been looking at eyeD3 and mutagen for a better way to do this, but I'm having trouble figuring it out.
    I know there has to be a more elegant solution out there. Any ideas?
    Last edited by ltpl4y3r (2009-04-05 05:00:52)

    Thanks Zariel, I had looked at mutagen before, but had never been able to edit the COMM tag properly. After toying with it and dissecting mid3v2. I was able to come up with the following:
    import mutagen.id3
    filename = 'File.mp3'
    id3 = mutagen.id3.ID3(filename)
    frame = mutagen.id3.COMM(encoding=3, lang='XXX', desc=u'', text=[u'Great comment!'])
    id3.add(frame)
    id3.save()
    Adding [Solved] tag...

  • Edit and display XML in an efficient way

    Hello,
    for quite some time now I searched the internet, this forum and some other forums but I couldn't really find an answer.
    My first question is, which 'technology' should one use to build an XML-Editor, i.e. how can XML-files be efficiently loaded, displayed, in a JTree or JTable, and edited (i.e. add and remove elements and save the XML-file again)?
    The only 'technology' I can think of is DOM/JDOM (that's what I've read on many websites) because one needs the XML-file in memory to edit it. So SAX doesn't help here, does it? But DOM/JDOM is very inefficient because the DOM-tree has to be build and is quite big in memory, at least it's said to be, because I have XML-files which are several MB big. And actually I want to display more than one file in the application (e.g. with a JTabbedPane) so that they can be displayed and edited simultanously. But that means the tree for each file has to be in memory so, I thought this would consume to much memory. And I think it's not a good idea to write the file back when it's not displayed.
    Another thing is that I want to be able to search the XML-file so, I think, it's only possible with DOM/JDOM because you can use XPath. I don't know how to search an XML-file fast with an other 'technology'.
    If the XML-Schema is know, I could use JAXB, but then I don't really know how to search the XML.
    Which 'technology' do the 'professional' XML-editors use?
    My 2. question is, if there's maybe an library etc. that already implements editing and displaying for XML-files, which one can use in an application.
    I'd really appreciate any ideas.

    What you could do is use a SAX parser to parse the XML document and build the JTree. Tree the JTree like an XMl Tree. when the user want yo save the Tree, then write the Tree out to an XML file. THere is no need to have the DOm for the XML; however, to let user have the ability to perrform XPATH, you have to write code for it.
    14 MB is not a lot, so i would stick with using a JTree and have each TreeNode associated with an Element in the DOM. Parser are pretty fast..it shoiuld probably not takes more than one or two seconds to parse a 14 MB XMl file. Now, if the user have a 100+ MB file, then it may become a problem. In all, your application will probably require at least 100MB just to render the XML tree.
    You can also write a class that will parse the XML document...and serialize the DOM to a file. you can break up the dOM into sevral document object (and store them in a file)..to allow you to traverse faster. Your application (class) will read in the necessary document and work with it. THere are two problem here:
    1. IO operations are very expensive. however, most of the time, the application will not be calling for the document file. It takes time for user to type than it would for the application to save user update to a file..so during this time, a Thread can be spawn to perform updating the document (synchronization required)
    2. The code is complex..you have to make sure the serialized document is updated. you have to come up with an algorithm (design) on fetching these document object, etc..
    Many XML editor I see use the simplier approach..loading the whole XML document to a DOM. .. so 100MB document will require 100+ MB of memory space available..This approach is easy..fast..bt require memory.
    There is a trade off..speed, easy vs memory.
    It's upto you to determine which path you want to go..you can't have everything.

  • How to USE Display Tag in my jsp pageInMy JDBC program in NetBeans 5

    I want my program 2 fetch Data from the database and display in the nice format provided by the Display Tags.. I have simple JSP pages, without using any Beans. I m running netBeans 5.
    What is the Solution to display my Table data in JSP display Tags facility.
    reply soon ...
    tht help me a lot

    Hello,
    I am not sure how far you got with this display tag. I had issues added the displaytag lib and the dependencies to my library. On the right-hand side of Netbeans, under Project, under the war directory of the application, I was able to add the libraries to my project. It stop some errors I have been having for so long.
    Still, I am not able to display my data using display. How far this you did with this project? Have you resolve the problem so far. I know it's been a long time.
    Thanks
    eve

  • Using display tag library

    Hi,
    I am new to JSP. I am using display-tags for pagination purpose. I have checkboxes for each row. When I select some rows and go to next page and come back to the old page, the status of selected rows is lost. Is there any way to store the status of selected rows when I navigate to other pages? I am using struts framework.
    Another question, can I use javascript along with the display-tag? If I can, then how can I use it.
    Is there any other tags for pagination, that may solve my problem?
    Regards
    --Vaishakh                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Can you please tell me how did you pass it thru session?
    What I mean is, when the user clicks on the next page, control is not transferred to our code (which would have allowed me to store selected items in session), instead the displaytag code is being called behind the scenes.
    Thanks.

  • Unable to edit or display DSO

    Hi,
    When I edit or display DSO, Dump is generated with a runtime error- Description error as
    Syntax error in program "CL_RSAR_PSA===================CP ". 
    The current ABAP program "CL_RSD_ODSO_VERS==============CP" had to be
    terminated because it has                                       
    come across a statement that unfortunately cannot be executed.       
    Kindly let me know if something can be done.
    Thanks.
    Edited by: SAPBILearner on Jan 25, 2010 10:45 PM

    If you are talking about production then you might not have authorisations for SE14.
    did u tried to open the PSA and see the data in the PSA. if you are not able to do this please run the below the program
    Try to run program RSAR_PSA_CLEANUP_DIRECTORY from SE38, by selecting following
    Persistent staging Area Radiobutton 'ON'
    Repair check box 'ON'
    Only Active PSA check box 'ON'
    login into the system go to su53 transction the authrisation check will be succesfull. then try to open the dso again then go and check in su53 if there is any authorisation failure.
    Are you able to open the same DSO in any other systems like dev and quality...If yes, then try to send a transport request by activating the DSO and the transformation and the data source.I hope this will work fine.
    Regards,
    Vikram

  • Sort in Display Tag

    Hi,
    I am using display Tag to paginate a table. I am sorting the columns in the table by giving
    Sort="list" in display:table and
    sortable="true" in display:column
    Now i am facing problems in sorting a few columns as the values in the columns are numbers like Date (DD-MM-YYYY HH:MM:SS) and not string.
    How can these be sorted?
    Please help,
    Thank you.

    If it's the same display:table component I'm thinking of, then....
    If the actual object is a Comparable object (like Date) then it can be.
    Otherwise, there is a column attribute called sortByProperty, whereby you can create a method in a decorator class for this property that should return a Comparable object that will be used...
    <display:column property="prop" title="title" sort="true" sortByProperty="comparable" />
         public Comparable getComparable() {
              // create some Comparable object, maybe a string representation of the object for the column
              // or some other object that implements that interface....
         }

Maybe you are looking for

  • Hot mail wont open emails

    can get up hot mail but refuses to open email....sometimes says "MSN server" not found" and freezes

  • How do I make a playlist of my podcasts in iOS7??

    I like to listen to podcasts more than music. How can I make a playlist of all my podcast downloads in iOS7? And how can I do a random shuffle of the podcasts that I have not yet listened to? In the old operating system I was able to do this under iT

  • External Monitor with XP using closed lid on laptop

    Is there a way to turn the laptop screen off and use an external monitor when running Boot Camp and XP pro. I have bluetooth keyboard & usb mouse. Display is cloned but when you close the lid the screen stays on.Some forums indicates its OK for the s

  • IC Webclient:CRM2007

    Hi All, I have a requirement to enhance / change the Sales Order View in ICWC CRM 2007, Can Some one brief me about the steps. Please start with the view / compo identification onwards Note: I am very much familiar with CRM 5.0 WebClient, if you can

  • Problem with copying my files in my zen mi

    I've got a when i'm doing it windows says that the file can't be copied , it already exists or is in use can any help me ?