CUSTOM XML Tags

Hello Maniacal Javatrons!,
I am new to this XML biz. I got a few examples working but when I writeObject, the tags always give me the <string>whatever</string> bizness.
I want to have custom tags like this...
<name>Redney Khilbilly</name>
<address>123 Dirt Rd</address>
<city>Hickville</city>
<state>IN</state>
<zip>00000</zip>
Would appreciate any help.
JW

stop using XMLEncoder and use DOM to build your own XML.
follow this tutorial: http://java.sun.com/webservices/docs/1.0/tutorial/doc/JAXPDOM.html

Similar Messages

  • Auto mapping of Columns to custom XML tags

    Hello:
    I would like to build interface to my Oracle database. Instead of exposing the column names, I would like to translate them to business-savvy XML tags. Of course, I can do this by using the AS construct in my SELECT statements.
    I would like to know whether there exists any advanced features in Oracle that automatically do this function.
    Thank you.
    Venkat

    Once you the get the output in xml format from oraext:query-database function you can apply an xsl function to transform it and do the required.

  • Create custom XML tag, Flex 4.6

    hi all
    I have a question.
    I have the following tag:
    <tns:dynamic xmlns:tns="urn:sap-com:document:sap:soap:functions:mc-style">
    </tns:dynamic>
    The dynamic part should be dynamic.
    I have tried the following code;
      <tns:{actionscript.variable} xmlns:tns="urn:sap-com:document:sap:soap:functions:mc-style">
                                            </tns:{actionscript.variable}>) ;
    But i get the 1110 error; Missing XML tag name. So i do something wrong.
    Does anybody know how to solve this?
    Kind regards,
    Ant

    You're not adding your filefilter as an argument of browseForOpen.
    ie: browseForOpen("Apri", filterTesto);
    But it might not make any difference:
    http://forums.adobe.com/thread/834035
    And from the actionscript refence:
    "Note: On Android devices, the file dialog title cannot be set. The title parameter is ignored."

  • Having a xml output with custom xml tags

    Hi All,
    I have a requirement where we need to generate an xml output with a custom set of tags as given below.
    <templates>
    <list>
    <List_no></list_no>
    <List_name> </List_name>
    </List>
    </templates>
    I am not sure how to get the list part as tags within tags.
    I am able to get the output if the tag level is just one level like ,
    <templates>
    <List_no></list_no>
    <List_name> </List_name>
    </List>
    </templates>
    Does anybody know how I could get the multi-level tags. Any help would be much appreciated. Thank you all.
    -Vin

    Hi, you can FOR XML PATH for a finer degree of control over your XML.  Use the @ symbol to create attributes.  Here's a simple example:
    DECLARE @t TABLE ( rowId INT IDENTITY PRIMARY KEY, [address] VARCHAR(50), city VARCHAR(30), floor INT, suite INT, doorType VARCHAR(20) )
    INSERT INTO @t VALUES
    ( '123 Fake St', 'Springfield', 10, 512, 'Metal' )
    SELECT
    [address] AS "Address",
    city AS City,
    [floor] AS "Location/@Floor",
    suite AS "Location/@Suite",
    doorType AS "Location/@DoorType"
    FROM @t
    FOR XML PATH ('Company'), ROOT ('Companies'), ELEMENTS;

  • Storing custom xml tags in Dreamweaver

    Hi everyone,
    I'm creating an xml file in Dreamweaver and wondered if it
    was possible to store the different tags you create within
    dreamweaver so that when you type some text, all you have to do is
    select it and have Dreamweaver wrap these custom tags around
    everything.
    Is this possible?
    Appreciate any advice

    Use DW's Snippets.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Seraya" <[email protected]> wrote in
    message
    news:f8kjs8$olv$[email protected]..
    > Hi everyone,
    >
    > I'm creating an xml file in Dreamweaver and wondered if
    it was possible to
    > store the different tags you create within dreamweaver
    so that when you
    > type
    > some text, all you have to do is select it and have
    Dreamweaver wrap these
    > custom tags around everything.
    >
    > Is this possible?
    >
    > Appreciate any advice
    >

  • Problem trying to wrap a Microsoft Word paragraph in XML tags?!? :/

    Hello everyone. I really hope this is not a big problem and that some of your could help. I wrote a Macro in VBA like a year ago that was intented to put a tag before every single paragraph in a document. The logic validates that the paragraph have no other
    tag before putting one. All of this is based in styles. Some font styles would end up with different tags. This is my code and it works:
    Sub edictos()
    ' Edictos de El Nuevo Día
    ' 06/20/2005 by Carlos Stella Sistemas de Información
    ' Actualización 08/08/2012
    'Ver 2.0 made by Samuel Otero -> 07/26/2013
    Dim oPara As Paragraph
    Dim oRng As Range
    'Borramos headers y footers
    Call ClearHeaderFooters
    'Borramos column breaks
    Selection.Find.ClearFormatting
    Selection.Find.Replacement.ClearFormatting
    With Selection.Find
    .Text = "^n"
    .Replacement.Text = ""
    .Forward = True
    .Wrap = wdFindContinue
    .Format = False
    .MatchCase = False
    .MatchWholeWord = False
    .MatchWildcards = False
    .MatchSoundsLike = False
    .MatchAllWordForms = False
    End With
    Selection.Find.Execute Replace:=wdReplaceAll
    'Lógica para poner los tags de Tera donde van
    For Each oPara In ActiveDocument.Paragraphs
    If oPara.Range.Style = "C10" Then
    If InStr(1, oPara.Range.Text, "(intro)") = 0 And _
    InStr(1, oPara.Range.Text, "(main)") = 0 And _
    InStr(1, oPara.Range.Text, "(capara)") = 0 Then
    oPara.Range.InsertBefore "(intro) "
    End If
    End If
    If oPara.Range.Style = "J10" Then
    If InStr(1, oPara.Range.Text, "(intro)") = 0 And _
    InStr(1, oPara.Range.Text, "(main)") = 0 And _
    InStr(1, oPara.Range.Text, "(capara)") = 0 Then
    oPara.Range.InsertBefore "(intro) "
    End If
    End If
    If oPara.Range.Style = "J12" Then
    If InStr(1, oPara.Range.Text, "(intro)") = 0 And _
    InStr(1, oPara.Range.Text, "(main)") = 0 And _
    InStr(1, oPara.Range.Text, "(capara)") = 0 Then
    oPara.Range.InsertBefore "(intro) "
    End If
    End If
    If oPara.Range.Style = "LE" Then
    If InStr(1, oPara.Range.Text, "(intro)") = 0 And _
    InStr(1, oPara.Range.Text, "(main)") = 0 And _
    InStr(1, oPara.Range.Text, "(capara)") = 0 Then
    oPara.Range.InsertBefore "(main) "
    End If
    End If
    If oPara.Range.Style = "XL" Then
    If InStr(1, oPara.Range.Text, "(intro)") = 0 And _
    InStr(1, oPara.Range.Text, "(main)") = 0 And _
    InStr(1, oPara.Range.Text, "(capara)") = 0 Then
    oPara.Range.InsertBefore "(main) "
    End If
    End If
    If oPara.Range.Style = "MF" Then
    If InStr(1, oPara.Range.Text, "(intro)") = 0 And _
    InStr(1, oPara.Range.Text, "(main)") = 0 And _
    InStr(1, oPara.Range.Text, "(capara)") = 0 Then
    oPara.Range.InsertBefore "(main) "
    End If
    End If
    If oPara.Range.Style = "HG" Then
    If InStr(1, oPara.Range.Text, "(intro)") = 0 And _
    InStr(1, oPara.Range.Text, "(main)") = 0 And _
    InStr(1, oPara.Range.Text, "(capara)") = 0 Then
    oPara.Range.InsertBefore "(main) "
    End If
    End If
    If oPara.Range.Style = "LW" Then
    If InStr(1, oPara.Range.Text, "(intro)") = 0 And _
    InStr(1, oPara.Range.Text, "(main)") = 0 And _
    InStr(1, oPara.Range.Text, "(capara)") = 0 Then
    oPara.Range.InsertBefore "(main) "
    End If
    End If
    If oPara.Range.Style = "J8" Then
    If InStr(1, oPara.Range.Text, "(intro)") = 0 And _
    InStr(1, oPara.Range.Text, "(main)") = 0 And _
    InStr(1, oPara.Range.Text, "(capara)") = 0 Then
    oPara.Range.InsertBefore "(main) "
    End If
    End If
    ' Agarrando texto sin estilo >_>
    If oPara.Range.Font.Size <= 6 Then
    If InStr(1, oPara.Range.Text, "(intro)") = 0 And _
    InStr(1, oPara.Range.Text, "(main)") = 0 And _
    InStr(1, oPara.Range.Text, "(capara)") = 0 Then
    oPara.Range.InsertBefore "(main) "
    End If
    End If
    If oPara.Range.Font.Size = 8 Then
    If InStr(1, oPara.Range.Text, "(intro)") = 0 And _
    InStr(1, oPara.Range.Text, "(main)") = 0 And _
    InStr(1, oPara.Range.Text, "(capara)") = 0 Then
    oPara.Range.InsertBefore "(capara) "
    oPara.Range.InsertParagraphBefore
    oPara.Range.InsertBefore "(start) "
    End If
    End If
    If oPara.Range.Font.Size = 10 Then
    If InStr(1, oPara.Range.Text, "(intro)") = 0 And _
    InStr(1, oPara.Range.Text, "(main)") = 0 And _
    InStr(1, oPara.Range.Text, "(capara)") = 0 Then
    oPara.Range.InsertBefore "(intro) "
    End If
    End If
    Next oPara
    'Con esto borramos el primer espacio del documento (evitamos una línea demás en los edictos)
    Selection.HomeKey Unit:=wdStory
    Selection.MoveDown Unit:=wdLine, Count:=2
    Selection.MoveRight Unit:=wdCharacter, Count:=8
    Selection.TypeBackspace
    Selection.TypeBackspace
    Selection.TypeBackspace
    Selection.TypeBackspace
    Selection.TypeBackspace
    Selection.TypeBackspace
    Selection.TypeBackspace
    Selection.TypeBackspace
    Selection.TypeBackspace
    Selection.TypeBackspace
    Selection.TypeBackspace
    Selection.TypeBackspace
    Selection.TypeBackspace
    Selection.TypeBackspace
    Selection.TypeBackspace
    Selection.TypeBackspace
    Selection.TypeBackspace
    Selection.TypeBackspace
    Selection.TypeBackspace
    Selection.TypeBackspace
    Selection.TypeBackspace
    Selection.TypeBackspace
    Selection.TypeBackspace
    Selection.TypeBackspace
    Selection.TypeBackspace
    Selection.TypeBackspace
    Selection.TypeBackspace
    Selection.TypeBackspace
    Selection.TypeBackspace
    Selection.TypeBackspace
    Selection.TypeBackspace
    Selection.TypeBackspace
    'Crea el .txt para ser importado a Tera
    ChangeFileOpenDirectory "C:\edictos\"
    ActiveDocument.SaveAs FileName:="C:\edictos\Edictos.txt", FileFormat:= _
    wdFormatText, AddToRecentFiles:=True, _
    WritePassword:="", EmbedTrueTypeFonts:=False, _
    SaveNativePictureFormat:=False, SaveFormsData:=False, SaveAsAOCELetter:= _
    False, Encoding:=1252, InsertLineBreaks:=False, AllowSubstitutions:=False, _
    LineEnding:=wdCRLF
    MsgBox "Proceso completado", 0, "Yay!"
    ActiveDocument.Close
    End Sub
    As you see, it ends up saving a .txt document with the tags.
    NOW... the issue is that the tags wont work anymore in the new system, and I need to wrap the paragraph in XML Tags. I tried to do something like for styles:
    If oPara.Range.Style = "LW" Then
    If InStr(1, oPara.Range.Text, "<intro>") = 0 And _
    InStr(1, oPara.Range.Text, "<main>") = 0 And _
    InStr(1, oPara.Range.Text, "<capara>") = 0 Then
    oPara.Range.InsertAfter "</main> "
    oPara.Range.InsertBefore "<main> "
    End If
    End If
    But it just would add the two tags before the paragraphs!!! Is there anyway to wrap the paragraph in XML tags, following my logic? Somebody help please!! Thank you!! :/

    Hi,
    Sorry for my delay.
    I am afraid that this is not the proper forum for this issue, and I found that you have posted it in dedicated forum.
    http://social.msdn.microsoft.com/Forums/office/en-US/8dad5670-d90b-4ea8-abe2-bc785a2368ca/problem-trying-to-wrap-a-microsoft-word-paragraph-in-xml-tags-?forum=worddev#8dad5670-d90b-4ea8-abe2-bc785a2368ca
    I would suggest you focus on that thread to get more dedicated support.
    Thanks for your understanding.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to use custom defined tags in uix in jdevloper 10g production

    can any one give me sample application for how to work with custom defined tags in uix with jedevloper 10g production
    thanks Venkat

    Hi Venkat,
    Maybe the reason for no one answering is because of lack of information in your post? What are you trying to do? Are you using JSP or UIX XML? Have you checked the online jdeveloper documentation? Have you checked the doc available in the JDeveloper release? Before we have more information we can't help you. Sorry
    Thanks,
    Jonas
    JDev Team

  • JSF 2.0 Custom security tag

    We are migrating a JSF 1.2 application to JSF 2.0. Earlier we have developed a custom security by extending BodyTagSupport. In JSF 2.0 I have replaced BodyTagSupport with TagSupport and no compilation issues. In my taglib.xml if I configure this Tag with a handler-class[Which is how it was earlier] While running I am getting a class cast exception of not able to cast to TagHandler and If I configure this tag as component[I extended UIComponentELTag] I am getting error message as not able to cast to UIComponent.
    Has any one developed a custom security tag, for examle check user role and if allowed dynamically display set of buttons or skip the particualr body part completely. By doStartTag()[EVAL_BODY_INCLUDE/SKIP_BODY]?
    Edited by: user11864278 on Apr 14, 2011 1:07 PM

    We are not extending TagHandler, I am trying to develop a custom EL Body tag that was earlier done with BodyTagSupport in JSF 1.2. In JSF 2.0 I believe I need to do this by extedning FacetTag in JSF 2.0, when I extend FacetTag and register it as a <handler-class> in taglib.xml I get a TagHandler class cast exception, as by default any Tag configured as Handler-class get cast into TAGHANDLER in JSF 2.0.
    To make my question better, How can I develop a custom tag extending FacetTag?

  • AnyGantt Custom XML Apex 4.2.2

    Hi guys,
    Sorry to create a new post on this, but I'm having trouble following some of the previously posted solutions.
    I'd like to use the AnyGantt Project chart but dynamically build the <project_chart> <tasks> tags so that I can leverage some of the additional feature of AnyGantt such as connectors etc, and generally control the display a little more.  I've read a few posts about max 32 byte issues, however i thought i'd take tiny steps and see if i can build a simple output with 2 rows initially to ensure i can get Apex building the chart dynamically.
    I've followed the post Dynamic custom XML in resource gantt and found this extremely helpful, especially the links to the demo site Hilary has created http://apex.oracle.com/pls/apex/f?p=36648:60
    I've used this example to build my PL/SQL block which dynamically builds tags for me and I've tested this in SQL Developer and i know I'm getting the following tags :
    <project_chart>
      <tasks>
        <task id="161" name="Prep" actual_start="2013.01.01" actual_end="2013.01.07" />
        <task id="162" name="Workshop" actual_start="2013.01.07" actual_end="2013.01.14" />
      </tasks>
    </project_chart>
    I understand the section in this example that explains how to replace the #DATA# string in the Custom XML region of the chart with a page item of &P23_DATA for example (P23_DATA is defined as a hidden item in the chart region), i've defined my PL/SQL block as an Application Process.....
    .....however I'm having trouble understanding how this now links all together, in the example from Hilary the following steps are mentioned but i'm confused exactly where in my page is define them :
    3. Edit the Chart Page to include the following JavaScript function, calling the On Demand process:
    function getdata() {
    var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=CHART_DATA',0);
    gReturn = get.get('XML');
    get = null;
    and finally
    8. To call the JavaScript function and ensure asychronous updates are
    picked up, the region source has been updated to replace #CHART_REFRESH# with
    the following:
    <script type="text/javascript" language="javascript">
    var chartName = '#CHART_NAME#';
    chartName = chartName.substring(1);
    getdata();
    function chart_r#CHART_NAME#_InitRefresh(pNow) {
      setTimeout("chart_r#CHART_NAME#_InitRefresh(true)",10000);
      if (pNow){apex_RefreshFlashChart (60, chartName, 'en-us');
      getdata();}
    apex_SWFFormFix('#CHART_NAME#');
    addLoadEvent(chart_r#CHART_NAME#_InitRefresh(false))
    </script>
    Thanks in advance guys
    Glen

    So I've managed to take a small step forward....and realised my last effort with using collections was a little bit of a waste of time.
    I've gone back to reading the details posted by Hilary in Dynamic custom XML in resource gantt and using the sample pages supplied in the link http://apex.oracle.com/pls/apex/f?p=36648:60
    Anyway I've managed to get my page to render an AnyGantt Gantt Project using the dynamic XML I've generated via PL/SQL, this is nice as I've been able to now build XML that allows me to take advantage of the <connectors> tag to links tasks together via a hierarchy of prerequisites.
    Here is what I've done to date by using the examples supplied by Hilary.
    Under 'Shared Components' and 'Logic' i have created an 'Application Processes' called CHART_DATA which holds the PL/SQL code that will generate my XML from the <project_chart> tag down. (Thanks Hilary for the code)
    I then created a new page using the chart region and used my original SELECT statement.
    Once the page was created, i added a Hidden Page Item to the Gantt region which was defined as P23_DATA.
    I then added a 'AJAX Callbacks' under the 'Page Processing' section, this was defined as a 'Run on Demand Process', called CHART_DATA and pointed to the application process previously created called CHART_DATA.
    I opened the Gantt region for editing and within the 'Chart Attributes' i selected to delete the Series that the wizard had previous defined when creating the Gantt originally.
    Under the 'Chart XML' section is changed the 'Use Custom XML' to 'Yes' and edited the 'Custom XML' region, again by using the examples supplied by Hilary i removed the #DATA# and replaced it with my new hidden page item &P23_DATA. (please note the syntax includes an ampersand and a period at the end of the item name)
    Now for the bit that i don't really understand....
    Back to the main edit page screen, under the 'Page Rendering' section choose to edit the actual page and under the section 'JavaScript' there is a section labelled 'Function and Global Variable Declaration' which i sort of understand as a section to hold custom JavaScript code for function etc.  I added the function previously supplied by Hilary
    function getdata() {
    var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=CHART_DATA',0);
    gReturn = get.get('XML');
    get = null;
    Under the section beneath this labelled 'Execute when Page Loads', i supplied add a call to the above mentioned function.
    getdata();
    So this kind of works for me at the moment, however when the data changes in the base table which holds the tasks i need to close the page and reload multiple times for the data to be refreshed.  This is the section in the example from Hilary i'm still having a little trouble with, the example page Hilary supplied mentioned the following :
    8. To call the JavaScript function and ensure asychronous updates are
    picked up, the region source has been updated to replace #CHART_REFRESH# with
    the following:
    <script type="text/javascript" language="javascript">
    var chartName = '#CHART_NAME#';
    chartName = chartName.substring(1);
    getdata();
    function chart_r#CHART_NAME#_InitRefresh(pNow) {
      setTimeout("chart_r#CHART_NAME#_InitRefresh(true)",10000);
      if (pNow){apex_RefreshFlashChart (60, chartName, 'en-us');
      getdata();}
    apex_SWFFormFix('#CHART_NAME#');
    addLoadEvent(chart_r#CHART_NAME#_InitRefresh(false))
    </script>
    However i can't actually find on my page where this might live, i'm guessing somewhere in the Gantt region itself however maybe the pages have changed since Hilary originally wrote this.
    Thanks
    Glen

  • Changing the custom XML for a flash chart dynamically

    Hello
    I am wondering if anyone has found a way to change the custom XML
    for a flash chart dynamically.
    For instance.
    On the www.anychart.com website their is a gallery with charts.
    I have studied one called "2Dlinetimechart. It has hours on the X-axis.
    When I view the XML for this chart.
    I found this enrty
    - <block color="0x0080C0" border_color="0x0080C0" name="Sales dept.">
    <set value="0" argument="0" name="00:00" />
    <set value="1" argument="0" name="01:00" />
    It uses the tag value to set the position on the X-axis. But the tag name to set the labels on the X-axis.
    I have not found a way to do this in application express 3.0.
    Therefore I wonder if I can change to XML dynamically, and build my own block based on the input I have.
    Or even build a chart, based on a xml that I create first then sends to the object that renders the chart.
    Hope this makes sence ?
    Ulf
    PS this is related to my question about
    http://forums.oracle.com/forums/thread.jspa?messageID=1887210?
    using dates on the x-axis.
    But would by nice to know a general method to rebuild the xml-file dynamically so I can change the chart within the limits of the xml-definition.

    String value = ResultSet.getObject("myfield").toString();
    String opvalue = "15";
    <OPTION Value=15 <%=((opvalue.equals(value))?"selected":"")%>>

  • Apex Charts custom XML integration

    Hi All,
    I found a chart in Anycharts.com and downloaded its XML.I wanted to integrate this chart with apex. But the XML,which i downloaded uses data from a .csv file. How to integrate this XML with apex. I found we can edit the default XML in the chart generated by. But How does XML take the values from the query which we write. There is only #DATA# at the end of the chart generated by apex and no clue on how and in what format this Data comes.
    Please help me out.
    Thanks,
    Ajay

    Ajay -
    Others may be able to explain this process better than I but I'll give it my best.
    The #DATA# tag that you see in the default custom xml for a chart is a substitution string. When your page is rendered, APEX runs the queries associated with your chart and then creates XML based on the chart type of the series. Next, it takes this XML that it generated and puts it in the chart custom XML where that #DATA# tag is located.
    There are other ways to get custom data into your chart. You can create the XML yourself in a page item and then insert the contents of that page item into the custom XML of the chart. This can be an advanced topic, but it really isn't too bad once you get the hang of it. The following link contains some pretty good examples of the things you can do. It even shows you how to format your SQL to obtain similar results. Custom XML generation is in the MISC tab. http://apex.oracle.com/pls/apex/f?p=36648:1:2979429292819853::NO I am not responsible for putting this page together, another forum member is, and perhaps they will chime in.
    Hope this helps
    Austin

  • Generating script tag from Custom JSF Tag

    Hi,
    I am new to JSF Custom Tags. I developed a Custom tag. It's quite a fun to make your own custom tags . Now I have to use some javascript for my custom components. The inline javascript calls are no issue for me. But I want my javascript be embedded in a <script> tag automatically. So that I don't have to explicitly add my javascript into <script> tag, instead, it is automatically included in the page where my tags are being used. How can this be achieved?
    Regards,
    Kashif

    Anchors don't have a type="submit". You should be basing this on an h:commandLink. In fact you could probably rewrite it all as an XML tag that just generates an h:commandLink.

  • Why some extra XML tags are created when viewed a XML in Adobe Illustrator with Esko plugin?

    We see some extra XML tags are created when viewing a XML in Adobe Illustrator with Esko plugin. Why these extra lines are created ?
    Screenshot of XML and XML viewed in AI below(the extra XML tags outlined in red):

    Hi Graffiti,
    Thanks so much for your resply.  I am happy to say that the problem has been fixed by my customer updating her version of Adobe Reader 9 to the latest version.  I had sent her a few suggestions on how to try to fix the problem including that one from info I had read on the forum etc.. and that was the solution that worked.  I am so relieved that I was able to fix the problem and to answer your question the blank pages were only graphics no text but they were the only pages that the graphics took up the whole page.  I thought that was strange and had her change a setting in preferences for printing large images a solution I read in the forum but it did not work.   

  • Custom JSF tag not working HELP!!!!

    We have a custom tag to display the list of attachments for a a selected entity. So for example if there are entities A, B, C...each entity can have none or 1 or more attachments. When you go to the details page you see the list of attachments if any and an image against it that can be clicked to delete the attachment.
    Here is the tag:
    <at:attachmentTable value="#{Entity.attachmentList}" remove="#{Entity.removeAttachment}" />
    Here is the renderer code for the delete the attachment part of the tag:
    private void writeRemove(UIComponent component, FacesContext ctx, ResponseWriter writer, String clientId, Attachment attachment, String parentId) throws IOException {
              writer.startElement("td", component);
              writer.startElement("a", component);
              writer.writeAttribute("href", "#", null);
              writer.writeAttribute("onmousedown", "confirmationDelete(this, 'attachment');", null);
              String encoding = "if(typeof jsfcljs == 'function'){jsfcljs(document.getElementById('"+ parentId + "'),{'" + clientId + "':'" + clientId + "','attachmentId':'" + attachment.getId().toString() +"'},'');}return false";
              writer.writeAttribute("onclick",encoding, null);
              writer.writeAttribute("type", "submit", null);
              writer.startElement("img", component);
              writer.writeAttribute("src", "/acw/images/removeline.gif", null);
              writer.writeAttribute("alt", "", null);
              writer.endElement("img");
              writer.endElement("a");
              writer.endElement("td");
    Here is the setProperties method for the tag:
         protected void setProperties(UIComponent component) {
              FacesContext context = FacesContext.getCurrentInstance();
              super.setProperties(component);
              setProperty(component, "value", value);
              setProperty(component, "parameterValue", parameterValue);
              setProperty(component, "parameterName", parameterName);
              if (remove != null && UIComponentTag.isValueReference(remove)) {
                   MethodBinding method = FacesContext.getCurrentInstance().getApplication().createMethodBinding(remove, new Class[] {});
                   UICommand command = (UICommand)component;
                   command.setAction(method);
    Here is how the tag renders as an <a> html tag:
    a href="#" onmousedown="confirmationDelete(this, 'attachment');" onclick="if(typeof jsfcljs == 'function'){jsfcljs(document.getElementById('entity'),{'entity:j_id_jsp_1417973014_25':'entity:j_id_jsp_1417973014_25','attachmentId':'10326'},'');}return false" type="submit"><img src="/images/removeline.gif" alt="" /></a>
    Here is what is heppening:
    When you click on the image to delete the attachment, the control somehow nevers goes to the removeAttachement method in the backing bean. As you can see in the tag above (remove="#{Entity.removeAttachment}" ).
    I have tried everything and at this point am not able to see what is going worng. Anyone who can see the obvious that I am missing please please do point it to me. I am sort of desperate for a solution....
    Thanks.
    TD

    Anchors don't have a type="submit". You should be basing this on an h:commandLink. In fact you could probably rewrite it all as an XML tag that just generates an h:commandLink.

  • Fetching the data in XML tags

    Hi,
    I am working on an upgrade from 11i to R12 on a Custom Payment Format Report.
    I need to upgrade the XML tags in .rtf file so that the desired values are displayed in pdf output.
    How can I fetch the values returned by a function in the report in the XML tag.
    Do I need to create custom tags for it? If yes then how and if No then kindly guide me how to fetch the values returned by the Function in the Report through the XML tag in R12 upgrade.
    Also kindly tell me how to use the substring function in such case.
    Regards,
    Karan

    Please check the Oracle Database 10g: XML DB Developer's Guild for example.

Maybe you are looking for

  • My iphone4 lost the camera and app store icon.

    1. my iphone4 lost the camera and app store icon. how can i get it back? 2. i try to restore the phone through the itunes. but it showed that there is a connection error (with the internet?!!)

  • Strange e4200 FTP problem

    I have an odd problem with the FTP server. I currently hooked up a 250GB portable HDD which is formatted in NTFS. A single folder in the root of the drive is mounted as the FTP server. Every time I upload a zip or far, the file comes out ends up bein

  • Value not udated in Balance tab of J1IH

    Dear All, Value of Excise Balance is not updated in balance tab of J1IH when i am doing other adjustment please tell me what are the settings for the same in quality it is working fine thank you  and hoping for the best respose regards, CA Maulik Man

  • Mixed Signal Graph, Selected Cursors, and Cursor Position Problems

    I'm trying to work around an issue with a single multiplot cursor on a mixed-signal graph (doesn't work right, R&D bug report #100830) by grabbing the selected cursor x-position and updating that position across all four cursors, as seen below: Howev

  • Flex Compiler efficiency

    Hi All, is Flex compiler efficient in reusing of code i.e. If I write following chunk of code what how these get compiled Y=a.y.getTime(); X=a.y.getTime(); Whether flex compiler will replace one statement for above two same expressions or not? As Var