How to put Form tag inside PlaceHolderUtilityContent

I created a page layout (using design manager), and my design has <form> tags in it
<form>
<!-- code -->
</form>
and Ive read that HTML file cannot contain <form> tags here -
http://msdn.microsoft.com/en-us/library/office/jj822362(v=office.15).aspx
It says that I should put the form inside the PlaceholderUtitlityContent placeholder
<!--CS: Start Create Snippets From Custom ASP.NET Markup Snippet-->
<!--SPM:<SharePoint:AjaxDelta id="DeltaPlaceHolderUtilityContent" runat="server">-->
<!--SPM:<asp:ContentPlaceHolder id="PlaceHolderUtilityContent" runat="server" />-->
<!--SPM:</SharePoint:AjaxDelta>-->
<!--CE: End Create Snippets From Custom ASP.NET Markup Snippet-->
My question is where do i insert my form block in the snippet above?
----------------------- Sharepoint Newbie

Hi,
Instead of putting <form> tag in layout page, you can place it in the master page.
<body scroll="no">
<form id="Form1" runat="server">
Here place all the place holders
</form>
</body>
and then refer this master page in Layout .
Let me know if you have any doubt.
Thanks
-Rahul

Similar Messages

  • How to use HTML tags inside JSF pages

    I am creating a Menu using dataTable and outputLink in a JSF page.
    <div class="bodyarea">
    <div id="location">
    <ol>
    <h:dataTable value="#{menuItem.breadCrumb}" var="bread" >
    <h:column>
    <li>
    <h:outputLink id="crumbID" value="#{bread.menuLink}">
    <h:outputText id="crumpName" value="#{bread.menuLabel}" style="width: 165px;"/>
    </h:outputLink>
    <li>
    </h:column>
    </h:dataTable>
    </ol>
    </div>
    </div>
    I want to use <li> HTML tag as shown in code above before and after every <tr> tag formed, but when i run it and see view source, this is how it shows:
    NOTE: you can see it has thrown out of <table> tag itself.
    <div class="bodyarea">
    <div id="location">
    <ol>
    <li>
    </li>
    <table>
    <tbody>
    <tr>
    <td><a id="_id0:0:crumbID" href="/eApps/admin/loginPage.jsp?MenuItem=-1"><span id="_id0:0:crumpName" style="width: 165px;">Home</span></a></td>
    </tr>
    <tr>
    <td><a id="_id0:1:crumbID" href="/eApps/admin/loginPage.jsp?MenuItem=3~-1"><span id="_id0:1:crumpName" style="width: 165px;">HIM Admin</span></a></td>
    </tr>
    </tbody>
    </table>
    </ol>
    </div>
    </div>
    Can some one help me, how do i use HTML tags inside <h:dataTable>.
    Or is their any other way i should form my Menus, to fully utilize to HTML tags.
    Thanks
    Ravi

    Hello,
    You can embed the verbatim elements in your datatable, ie,
    <h:dataTable value="#{menuItem.breadCrumb}" var="bread" >
      <h:column>
        <f:verbatim><li></f:verbatim>
        <h:outputLink id="crumbID" value="#{bread.menuLink}">
          <h:outputText id="crumpName" value="#{bread.menuLabel}" style="width: 165px;"/>
        </h:outputLink>
        <f:verbatim></li></f:verbatim>
      </h:column>
    </h:dataTable>

  • How does Validated Form tag insert the error message?

    I'm using validated forms tags in my jsp and when there is an error in the form
    the error message is set to display on top of the wrong field. This is an attribute
    that I set in the <portlet:validatedForm> tag called "messageAlign", but I want
    to know how this is inserted or what I can do to line it up above the text field
    because it is moving all the elemnts around in the table cell. Any insight would
    be helpful.
    Thanks,
    Travis

    Hard to know what the cause is  because it's like this
    I know what I did to cause this. I upgraded my one of my hard drives, renamed the drive and moved the folder. The missing pictures it can't find were added with the option in the advance menu "copy photo to library" turned off.
    and this
    What I did is added a small SSD as my primary drive. Put the OS and all the apps on it.  Moved my iPhoto and iTunes libraries to an large external.  Most of the picture it is not having a problem wth.  Only certain ones.  Don't actually think I unchecked tha prefeence, but it's acting like i have.  
    seem to be written by two different people.
    This thread
    https://discussions.apple.com/thread/3216539?tstart=30
    has details on how one user hacked the SQL database to fix the issue. Not for the faint hearted. Back up first.
    Regards
    TD

  • How to put a table inside a frame in html

    Hi, I have a html table as follows:
    <TABLE BORDER=2><TR><TD>No</TD><TD>Name</TD><TD>Age</TD></TR><TR><TD>1</TD><TD>John</TD><TD>30</TD></TR><TR><TD>2</TD><TD>Michael</TD><TD>20</TD></TR></TABLE>
    I want to put it inside a html frame in order to have the scroll bar with the table.
    Is there a way to do it in html?
    Thanks.

    Put the table inside of a div tag with a set width and height, borders, and overflow set to scroll:
    <html>
      <head>
        <style>
          .tableDiv {
         width: 140px;
            height: 200px;
            overflow: scroll;
            border: 3px outset;
          .no {
            width: 20px;
          .name {
            width: 50px;
          .age {
            width: 30px;
        </style>
      </head>
      <body>
        <div class="tableDiv">
        <table border="2">
        <thead>
          <TR><TH class="no">No</TH><TH class="name">Name</TH><TH class="age">Age</TH></TR>
        </thead>
        <tbody>
          <TR><TD class="no">1</TD><TD class="name">John</TD><TD class="age">30</TD></TR>
          <TR><TD class="no">1</TD><TD class="name">John</TD><TD class="age">30</TD></TR>
          <TR><TD class="no">1</TD><TD class="name">John</TD><TD class="age">30</TD></TR>
          <TR><TD class="no">1</TD><TD class="name">John</TD><TD class="age">30</TD></TR>
          <TR><TD class="no">1</TD><TD class="name">John</TD><TD class="age">30</TD></TR>
          <TR><TD class="no">1</TD><TD class="name">John</TD><TD class="age">30</TD></TR>
          <TR><TD class="no">1</TD><TD class="name">John</TD><TD class="age">30</TD></TR>
          <TR><TD class="no">1</TD><TD class="name">John</TD><TD class="age">30</TD></TR>
          <TR><TD class="no">1</TD><TD class="name">John</TD><TD class="age">30</TD></TR>
          <TR><TD class="no">1</TD><TD class="name">John</TD><TD class="age">30</TD></TR>
          <TR><TD class="no">1</TD><TD class="name">John</TD><TD class="age">30</TD></TR>
          <TR><TD class="no">1</TD><TD class="name">John</TD><TD class="age">30</TD></TR>
          <TR><TD class="no">1</TD><TD class="name">John</TD><TD class="age">30</TD></TR>
        </tbody>
        </table>
        </div>
      </body>
    </html>

  • How to use html tags inside java

    I have to retrieve data from db and return the data to my index.jsp page.
    Its working fine.
    But I have o display in a pable format using html. How to embed html tags? I tried this way. Its not working. Any suggestions?
       String htmlOpen = "<html>";
        String htmlEnd = "</html>";
        String titleOpen ="<title>";
        String titleEnd ="</title>";
        String bodyOpen = "<body>";
        String bodyEnd = "</body>";
        for (int i = 1; i <= cols;i++){
            output = output + rsmd.getColumnName(i);
         while (rst.next()) {
            for (int i = 1; i <= cols;i++){
                      output = output +rst.getString(i);
      result = htmlOpen + titleOpen + titleEnd + bodyOpen + output+ bodyEnd + htmlEnd;
        stmt.close();
        conn.close();
         return htmlOpen;
      }

    See those charcters in your JSP that look like "<%"? Those characters mean: "the code after this is Java - interpret it as such".
    Then when you close your Java block with "%>", it then means: "the code after this is html - output it to the request response that is being built. However, within the html code, the syntax "<%= java_variable_name %>" means "take the current value of that Java variable and insert it into the html output".
    Here's an example:
    %>
    <table cellspacing="2" cellpadding="2" border="1">
    <tr>
    <%
        String s = null;
        for (int i = 1; i <= ncol; i++)
          s = rsmd.getColumnName(i);
    %>
      <th nowrap><A HREF="<%=sortLink.toString()%>&sortby=<%=s%>"><%= s %></th>
    <%
    %>
    </tr>
    <%
        if (rs == null || numRows <= 0)
          %><tr><td colspan="10" nowrap>No data available for specified query.</td></td><%
        else
          int rowCounter = 0;
          while(rs.next() && rowCounter < PAGE_SIZE)
            rowCounter++;
    %>
      <tr><%
            for (int i = 1; i <= ncol; i++)
              s = rs.getString(i);
              if (rsmd.getColumnName(i).equalsIgnoreCase("password"))
                    %><td nowrap>********</td>
    <%
              else
                %><td nowrap><%= s %></td>
    <%
            %></tr><%
    %>
    </table>This is JSP 101, what they teach in the first hour of class...
    Here's a decent JSP tutorial:
    http://www.jsptut.com/

  • How to put an MSO inside another MSO

    Hello all!
    An interesting question came up in the following post by Folobo:
    http://forums.adobe.com/message/4572897#4572897
    "Is it possible to use a slideshow embedded in a big overlay slideshow?"
    I'd like to rephrase this question:
    "Is it possible to put a MultiStateObject (MSO) inside another MultiStateObject?"
    And further: if the answer is "yes", could we put that to use with the DPS?
    @Folobo – this is an interesting question. A quick test is showing that you cannot do it in the UI (correct me if I'm wrong).
    Let's try it this way:
    If you have two objects:
    1. an MSO #1 (with two rectangles, rectangle #1, rectangle #2)
    2. Another rectangle on the page: rectangle #3
    Now select the two objects and make an MSO out of it (using the "Object States" panel).
    You would think, now I get an MSO with two states, state 1 with rectangle #3 together with state 2 with MSO #1.
    But not so:
    Result: One new MSO with three states (rectangle #1, rectangle #2, rectangle #3)
    Hm. I don't give up on that. Let's try it another way:
    Could we select at least two objects inside a state of an MSO and make that a new MSO?
    Sure, We could select two objects inside a state, but since we are *inside* an MSO the "Object States" panel does not show the possibility to make a new MSO. You can only add states or add objects to states…
    Frustrating. End of story? Maybe…
    Be forewarned. The following is highly experimental!
    Let's try it by scripting (ExtendScript/JavaScript).
    The scripting reference is showing that an MSO "MultiStateObject" object has an add()-method. And further on, that add()-method could be applied to:
    Document
    Spread
    MasterSpread
    Page
    Layer
    pageItem
    And that is the key to a possible solution. We could add a new MSO to a "pageItem" object.
    A simple rectangle should be qualify for a "pageItem" object; and that, of course, could reside in a state of an MSO.
    So, we could add a new MSO to a rectangle inside of a MSO!
    How can we access a rectangle inside a MSO? Easy: We could select it and work with that selection.
    So let's do that: select the rectangle in the first state of an MSO and run this one-line-script (be sure you did select the rectangle and not the MSO or one of its states:
    app.selection[0].multiStateObjects.add();
    We now have an MSO inside another MSO!
    Explanation:
    A "generic MSO" was added with the add()-function to a selection (the container object: in our case the selected rectangle).
    The "generic MSO" is a two state MSO consisting of one rectangle in each state of a very small size (10px x 10px).
    At first it is invisible, because it is very likely that it is positioned outside the geometric bounds of its container object (the rectangle).
    But we can customize this!
    Go to the layers palette and select the new MSO, move it inside the geometric bounds of its container object, readjust its size, add states as you wish, populate the states with images, and other objects etc.pp.
    So, what can we do with an MSO inside another MSO? (As I already said, this is highly experimental.)
    My experiments with that are very fresh. I did not try a lot. But it seems that we could at least autoplay this MSO.
    I have to test more thoroughly what is possible and what will work with buttons etc.pp…
    I really like to hear from you what you will find out and if you can put it to any use.
    Uwe
    Message was edited by: Laubender

    @Mobly – in case it did not work out for you, here some screen grabs for the different steps:
    1. Select an MSO:
    2. Select a "graphic frame" inside the MSO; in this case a "<square>"; you can see the big blue dot in the Layers panel behind the generic name "<square>":
    3. Open the Scripts Panel and select the script:
    4. Run the script by double-clicking the script; the generic name of your selected object has changed to "graphic frame", but trust me, it's still a square…
    5. Click the "Ok" button of the message and InDesign will select the new MSO ("Multi-state 2") as you can see here. It has two states with one rectangle each,  fill and stroke is "None":
    And: you can see that this new MSO is nested inside the MSO ("Multi-state 1").
    What you do with that construct is up to you:
    6. Color the "<square>" of state 1 of "Multi-state 2":
    7. Resize and change position of "Multi-state 2":
    8. But remember: "Multi-state 2" is nested in the graphic frame you selected before running the script:
    I hope you get the picture now…
    Uwe

  • How to put single quotes inside single quotes

    Hi all,
    My requriement is to put a statement
    LIKP~VSTEL <> INF
    in a variable LV.
    For that I have written
    CONCATENATE LV 'LIKP~VSTEL <> "INF" ' INTO LV.
    where LIKP is a table as VSTEL is a table field.
    When this LV is used inside a select query, the value for LIKP~VSTEL is "INF", but I want without the double quotes. Can any one please help me with this.
    Thanks and Regards,
    Avinash

    Hi,
    Iif you mean LV should hold something like LIKP~VSTEL = ' INF ', then try this
    data: c_quote(4) type c value ''''.
    data: l_inv type string.
    CONCATENATE c_quote 'INF' c_quote into l_inv.
    CONCATENATE ' LIKP~VSTEL' '='  l_inv  INTO LV separated by space.
    Regards,
    Vikranth.
    Edited by: Vikranth.Reddy on Sep 1, 2009 1:55 PM

  • Insert html form tag inside another form tag

    Hi all, this is my issue. I have a xhtml page structured as following:
    <h:form id="mainForm">
    ....... some stuff........
    <form id="fileForm" action="myServlet" method="post" enctype="multipart/form-data">
         <input type="file" onchange="fileForm.submit()" />
    </form>
    </h:form>
    When uploading a file, I wanna submit only 'fileForm'. But "fileForm.submit()" doesn't work because fileFom is null. Looking at the page source, I realized that only one form is seen client-side (the mainForm):
    <form id="mainForm">
    ....... some stuff........
         <input type="file" onchange="fileForm.submit()" />
    </form>
    Any idea on how to implement it?
    Thanks in advance...

    I think so too.
    I tried creating a custom fileUploader component but, as expected, it didn't work.
    Here http://balusc.blogspot.com/2009/12/uploading-files-with-jsf-20-and-servlet.html they create a completely custom renderer which would solve my issue but it works only with j2ee6 and for company reason I must use j2ee5.
    I think I have to refactor the page and figure out a new approach.
    Thanks for your reply.

  • How to put variable value inside ora:parseEscapedXML ?

    Hi,
    I am in a situation like I have a variable like temp that has value "runtime value". Now I want to put this temp variable like
    ora:parseEscapedXML('<data><xd:name="a"> <xd:value>temp</dsml:value></xd:name> </data>')
    But it shows temp as a String not its runtime value. I have also used bpws:getVariableData(temp) or bpws:getVariableData("temp") or bpws:getVariableData('temp') but useless .
    Any help ?
    Thanks

    I have pasted my XML into the Expression but its unable to pick the value of variable. When I used/paste the same xml in a XML Fragment its giving me error about literal invalid.
    What should I do now ?
    Thanks

  • How to put BR tag in process message

    I have page process which constructs a conditional confirmation message and assign it to page item. This page item is printed in success message of the process. The confirmation message is very long, so I need to insert <BR> tags and some html tags to make the message readable. It does not work with simple <BR> tag, so tried to replace with chr(10)chr(13) to get the break line, but didn't work. any ideas are appreciated.
    Regards,
    Surya

    Surya:
    You can try the following
    1) Create an application item named G_MSG
    2) In the page process set G_MSG to something like 'SHOW' to indicate that a message is to be shown after the process completes
    3) On the page that is branched to following the page that ran your process create a Before Header page process
    4) Make this process conditional with the following pl/sql condition
    NOT :G_MSG IS NULL;
    5) Set the code for this page process to be apex_application.g_print_success_message:='Action<br>Processed'; // your message with html tags here
    :g_msg:=null;Varad

  • How to put variable value in Alert window?

    Hi, everytime I use:
    Alert.show("this is the value of the variable: " +
    theVariableName);
    the alert stops working and no error message was given.
    Does anyone know how to put the variable inside the Alert
    window?

    Is theVariableName defined in the object that is opening the
    Alert window?
    If you can post your code it will help.

  • How ito put a video to iPod

    Hello.
    I´d like to know how to put a video inside IPod with the iTunes software.
    Thanks

    see here:
    http://www.rowan-cottage.co.uk/Site/Autoplay_Music.html
    set the values of "controller" to "false" and the values of autoplay to "true."
    max

  • How to use Direct Access URL in the FORM tag

    I want to substitute the pageid url (/servlet/page?_pageid=161&_dad=portal30&_schema=PORTAL30) with the direct access urls (pls/portal30/url/page/my_page) to address the pageid conflict between development server and production server.
    It works perfectly fine in the redirection code such as:
    self.location.href="/pls/portal30/url/page/next_page". But I got "Page can not be found" error message when I use it in the <FORM> tag:
    <FORM ACTION="/pls/portal30/url/page/next_page" METHOD="POST" NAME="my_form">
    Does anyone out there know how to use the direct access url inside the <FORM> tag? I am trying not to write a bunch of code just to retrieve and insert the pageid at the run time.
    Thanks in advance.
    Arthur

    Use condition. If you are validating a record, just out the desired check in the condition field for that specific item.
    Thanks
    Nagamohan

  • How to put water mark in web dynpro abap Adobe forms

    Hi
    Can any body tell me how to put water mark in web dynpro Abap adobe forms ,
    actually I need to print water mark as back ground in gray color.
    Points will be rewarded of Helpful answer..!
    Regards,
    Sidram

    Hi,
    for more information about layout options in forms, go to your form in transaction SFP, layout view and choose Help -> Adobe LifeCycle Designer Help. There you find information on page layout, e.g. " Objects can be placed anywhere on a master page, inside or outside the content area. As a general rule, do not place objects inside the content area unless your intention is to have other objects laid down on top of the master page objects when the form is rendered. If you are setting up a watermark, place it inside the content area. "
    Besides, there's an Adobe forum where you might get more information for such Adobe questions.
    Regards, Heidi

  • How to add raw HTML tags inside JSF tags...

    Hi
    I would like to use <input type = text > inside my project in some area..The following code hides the input = type html tag and forwards the click event to jsf command button...After selecting the file,it should forward the value to jsf textfield....
    My code seems as below.
    <h:form id="detailForm" onsubmit="printElements(detailForm,this)">
    <f:verbatim>
    <input id="uploadFile" type="file" style ="dispaly:none"size="100" />
    </f:verbatim>
    <h:inputText id="docName" style="width:650px;" maxlength="100"/>
    <h:commandButton id="visibleBrowseButton" value="Select File..." onclick="'detailForm:uploadFile'.click();callClick();">
    </h:commandButton>
    </h:form>
    <script type="text/Javascript">
    function callClick()
    var val = document.detailForm.uploadFile.value;
    document.getElementById('detailForm:docName').value = val;
    </script>
    While running this page it works fine in IE but in Mozilla firefox it troubles me during detailForm:uploadFile'.click().
    I suspect the jsf page cannot able to detect the raw html tag inside jsf tags...Eventhough i tried using inside<f:verbatim> it wont works..
    I would like to know
    1.Whether the code is right,,if the code goes wrong why it got runned in IE not in firefox....
    2.How can raw html tags can be integrated inside JSF tags....

    First of all, why are you ignoring valuable answers about a JSF fileupload component in your previous topic?
    Second, you can just nest raw HTML anywhere in your JSF page. Your problem is rather related to JavaScript. It has completely nothing to do with Java nor JSF. Learn JavaScript -there is a nice tut at w3schools.com- and look for a JavaScript forum if you still stucks. There are ones at webdeveloper.com and dynamicdrive.com.
    The f:verbatim is only required if you was using JSF 1.1 or older, which is not the case. You would have occurred completely different problems.

Maybe you are looking for