ph tags using pre ?

Using WLP 8.1, I am displaying simple text/html from a document using a
placeholder. WLP surrounds the content with <pre> tags thus violating my
carefully formatted HTML :)
What determines this use of <pre> tags and how do I prevent the use? I have
tried uploading various different types of documents, but I always get the
<pre> tags and I don't see any configuration options to take care of this -
may I have overlooked something.
The ph tag is pretty simple:
<ph:placeholder name="/placeholders/information.pla"/>
My information.pla is :
<?xml version="1.0" encoding="UTF-8"?>
<cq:contentQuery logic="and">
<cq:contentPropertyComparison logic="and" name="title"
propertySet="BEA Repository/article" type="string">
Claus Ljunggren

Not currently. I will enter a request for that to be added.
One of 2 things is happening here:
1. Your browser is telling the server, during the file upload, that the
Content-Type of the file part is text/plain, or
2. Your browser isn't specifying the Content-Type of the uploading file,
in which case rfc1867 says the default Content-Type of part of a
multi-part upload is text/plain.
Either case is unusual for a .htm or .html file. Are you using a
different file extension for your files? The browsers have their own
content-type-from-filename-guesing logic, and they would probably use it
in this case. If you aren't using .htm or .html, there's probably some
way to tell your browser that your file extension is really text/html.
In IE, I believe it falls back to using the os file associations. I'm
not sure what Netscape/Mozilla, Opera, Konqueror, and the others do.
Claus Ljunggren wrote:
Is there a way to override this behaviour without writing a new upload
mechanism. I mean isn't it possible to force a certain content-type through
the administration page during upload?
Claus Ljunggren
"Gregory Smith" <[email protected]> wrote in message
news:[email protected]
When the binary primary property of the node being displayed via
<ph:placeholder> has a mime type of text/plain, the rendering system
will surround it with <pre></pre> so that it renders in-line as formatted.
Check your CM_PROPERTY table to see what BINARY_CONTENT_TYPEs you're
getting when you upload your content. The admin tools use the
Content-Type the browser specifies on the file upload, so you might be
getting a default Content-Type set.
Claus Ljunggren wrote:
Using WLP 8.1, I am displaying simple text/html from a document using a
placeholder. WLP surrounds the content with <pre> tags thus violating my
carefully formatted HTML :)
What determines this use of <pre> tags and how do I prevent the use? I
tried uploading various different types of documents, but I always getthe
<pre> tags and I don't see any configuration options to take care ofthis -
may I have overlooked something.
The ph tag is pretty simple:
<ph:placeholder name="/placeholders/information.pla"/>
My information.pla is :
<?xml version="1.0" encoding="UTF-8"?>
<cq:contentQuery logic="and">
<cq:contentPropertyComparison logic="and" name="title"
propertySet="BEA Repository/article" type="string">
Claus Ljunggren

Similar Messages

  • Problem to pre tag use in jeditorpane

    hi all,
    i am using JEditroPane with HTMLEditorKit. I am using <pre> tag to set the Tab space. But problem is that, when i write continuously, its can't line break also when i print the editor contents, it will not print the exact contents.
    If i remove <pre> tag it prints the contents but formatting( Tab space) has remove.
    Please help me, how can i get rid of this situation..
    Thank you

    Thanks to your reply. Its nice..
    I am trying to line break explicitly. but can't find any way. Is there any way to get the cursor position (Location) that when the cursor exced the location i expliditly line break that positon .. or any other way...
    Please help me..
    Thank you

  • Beginner question - using pre for flexibility in text?

    Apologies for the beginner question, but I am struggling to work out whether it is more sensible to use <pre> in all my texts, as it seems more flexible.
    It seems that when I use <p> - paragraph - I can't use multiple space bars to align certain bits of text, but more disruptively I have gaps between text when I press Enter (I guess this defines the paragraph, but isn't always wanted).
    Well, basically, <pre> seems more flexible, but it behaves strangely sometimes. What do other people use?
    Many thanks!
    Ivan Reshetilov

    Hi Ireshe, just a beginner like you.  Have never heard of <pre> tags, use <p> tags.  If you hit SHIFT enter after a sentence this puts in a <br> tag or line break which basically leaves a blank line between text.
    If you add     &nsbp;    or lots of them between words this gives you an extra space between letters.  How all your paragraphs sit on the page is defined by CSS.  E.g.
    p {
         padding: 5px 0 0 10px;}
    This would place all text within <p> tags on your page, with a 5px gap at the top, no space to the right or bottom and 10px space to the left.  Hope this helps, good luck!

  • Custom Report using pre-defined template

    In 2012, How to create custom report using pre-defined reports template in below format?
    Column1 :- Device Name
    Column2 :- When installed (Date & Time)
    Column3 :- Success (Date & Time)
    Column3 :- Failed (Date & Time - With which error code)
    Column4 :- Not Installed

    Here is what you need to do.
    Start by writing the SQL query that you want.
    Clone one of the existing report
    Replace the SQL query with the new query.
    Update the columns with what you need.

  • Can i use pre pay card on my iPhone 4s while visiting romania

    can I use pre pay card on my iphone 4s while visiting romania

    As long as the sim card slot isn't locked then yes you should be able to if it is true GSM.

  • How to remove tag using filter

    I want to use a filter to remove tags already on emails. I can add tags using a filter but cannot see how to remove tag using filter.

    The FiltaQuilla add-on provides a "remove tag" option.
    But, out of interest, what's the use case for removing tags by filter? Tags are normally used to facilitate or prompt human intervention and I don't immediately see the value of clearing a tag in a filter. Why tag if a filter will be dealing with it anyway?

  • Is it possible to find the meta tags used in a different website?

    I have a potential client that wants to know the meta tags used in a different site from his own. Is that possible?

    View page source in browser.  FYI: Major search engines don't pay attention to Meta keywords.  So I don't think there's much to be gained from this.  What matters most is the actual page content.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists

  • Using pre-query with 2 characteristics in rows?

    Hi @all,
    I need your help regarding the following problem:
    There are multiple conditions in one query, I'd like to do in a certain sequence.
    Because these multiple conditions in BEx where processed as "AND", for example
    companies must be part of the Top x and an key-figure of these have to be more than y.
    As a result, we have the top x companies reduced by these companies that doesn't match the key-figure condition. So there were less than x companies.
    That's why we decided to use pre-queries. Because the key-figure is a ratio of the company on a higher level that is "restricted" by a condition, we need two characteristics in rows. That seems to cause some strange results in the main query wherein not all companies where submitted.
    Does anyone know some workaround or any approach for this problem? Please let me know every idea.
    Or do you know another way to set a certain sequence of conditions?
    Many thanks for your help.

    I've found a hint that this can't be done by using replacement path variables. Instead we used several pre-queries.

  • Workflow Help - Using PRE function

    I need to create a workflow on "when modified record saved" trigger event using PRE function. I am currently using this syntax :
    (FieldValue('<IndexedPick0>')='Central') AND (FieldValue('<SalesStage>')='Qualified') OR (FieldValue('<SalesStage>')= 'Approach') OR (FieldValue('<SalesStage>')= 'Quote') OR (FieldValue('<SalesStage>')='Negotiation')
    What we want this workflow to do is to send an email only when a sales stage is modified or changed to the values above in the syntax, not anything else on the opportunity page.
    Waiting for a response.
    Thanks in advance

    Hi !
    Try this :
    *&#91;&lt;IndexedPick0&gt;&#93; = 'Central' AND &#91;&lt;SalesStage&gt;&#93; &lt;&gt; PRE('&lt;SalesStage&gt;') AND (&#91;&lt;SalesStage&gt;&#93; = 'Qualified' OR &#91;&lt;SalesStage&gt;&#93; = 'Approach' OR &#91;&lt;SalesStage&gt;&#93; = 'Quote' OR &#91;&lt;SalesStage&gt;&#93; = 'Negotiation')*
    This will trigger only when salestage is modified to 1 of the 4 stages and indexedpick0 = 'Central'.
    Hope this will help, feel free to ask more !

  • Create XML element without closing tag using Visual C++

    I know how to create xml element with closing tag (using WriteStartElement and WriteEndElement methods)
    <tag id="1234">
    but is there a way in Visual C++ to produce xml element like this
    <tag id="1234"/>
    i.e. without closing tag?

    Hi adamay,
    Please refer to this thread.
    I think you could try the way of write your own class derived from XmlWriter.
    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.
    HERE to participate the survey.

  • EXIF tag used as 'Description'

    What EXIF tag does iPhoto 09 use as description when I import JPGs? With iPhoto 08 it worked when I set the 'Object Name' before importing but since I upgraded to 09 that does no longer work
    I can still see the description for photos I imported when I still had 08, all that I imported with 09 have no description set.
    Any ideas?

    Added the tags using exiftool, below are all the tags set on my test.jpg file:
    ExifTool Version Number : 7.44
    File Name : test.jpg
    Directory : .
    File Size : 382 kB
    File Modification Date/Time : 2009:02:19 19:48:14-08:00
    File Type : JPEG
    MIME Type : image/jpeg
    JFIF Version : 1.01
    Coded Character Set : UTF8
    Application Record Version : 2
    Object Name : Flagpole on the Coney Island beach
    Country-Primary Location Name : United States
    Province-State : New York
    City : Brooklyn
    Caption-Abstract : Flagpole on the Coney Island beach
    Profile CMM Type : Lino
    Profile Version : 2.1.0
    Profile Class : Display Device Profile
    Color Space Data : RGB
    Profile Connection Space : XYZ
    Profile Date Time : 1998:02:09 06:49:00
    Profile File Signature : acsp
    Primary Platform : Microsoft Corporation
    CMM Flags : Not Embedded, Independent
    Device Manufacturer : IEC
    Device Model : sRGB
    Device Attributes : Reflective, Glossy, Positive, Color
    Rendering Intent : Media-Relative Colorimetric
    Connection Space Illuminant : 0.9642 1 0.82491
    Profile Creator : HP
    Profile ID : 0
    Profile Copyright : Copyright (c) 1998 Hewlett-Packard Company
    Profile Description : sRGB IEC61966-2.1
    Media White Point : 0.95045 1 1.08905
    Media Black Point : 0 0 0
    Red Matrix Column : 0.43607 0.22249 0.01392
    Green Matrix Column : 0.38515 0.71687 0.09708
    Blue Matrix Column : 0.14307 0.06061 0.7141
    Device Mfg Desc : IEC
    Device Model Desc : IEC 61966-2.1 Default RGB colour space - sRGB
    Viewing Cond Desc : Reference Viewing Condition in IEC61966-2.1
    Viewing Cond Illuminant : 19.6445 20.3718 16.8089
    Viewing Cond Surround : 3.92889 4.07439 3.36179
    Viewing Cond Illuminant Type : D50
    Luminance : 76.03647 80 87.12462
    Measurement Observer : CIE 1931
    Measurement Backing : 0 0 0
    Measurement Geometry : Unknown (0)
    Measurement Flare : 0.999%
    Measurement Illuminant : D65
    Technology : Cathode Ray Tube Display
    Red Tone Reproduction Curve : (Binary data 2060 bytes, use -b option to extract)
    Green Tone Reproduction Curve : (Binary data 2060 bytes, use -b option to extract)
    Blue Tone Reproduction Curve : (Binary data 2060 bytes, use -b option to extract)
    Exif Byte Order : Big-endian (Motorola, MM)
    Photometric Interpretation : BlackIsZero
    Image Description : OLYMPUS DIGITAL CAMERA
    Camera Model Name : E-510
    Orientation : Horizontal (normal)
    X Resolution : 72
    Y Resolution : 72
    Resolution Unit : inches
    Software : Version 1.3
    Modify Date : 2008:10:18 13:00:33
    Exposure Time : 1/250
    F Number : 10.0
    Exposure Program : Creative (Slow speed)
    ISO : 100
    Exif Version : 0221
    Date/Time Original : 2008:10:18 13:00:33
    Create Date : 2008:10:18 13:00:33
    Exposure Compensation : 0
    Max Aperture Value : 3.5
    Metering Mode : Multi-segment
    Light Source : Unknown
    Flash : Auto, Did not fire
    Focal Length : 17.0 mm
    Flashpix Version : 0100
    Color Space : sRGB
    Exif Image Width : 2243
    Exif Image Height : 2995
    Custom Rendered : Normal
    Exposure Mode : Auto
    White Balance : Auto
    Digital Zoom Ratio : 1
    Scene Capture Type : Standard
    Gain Control : None
    Contrast : Normal
    Saturation : Normal
    Sharpness : Normal
    GPS Version ID :
    GPS Latitude Ref : North
    GPS Longitude Ref : West
    GPS Altitude Ref : Above Sea Level
    GPS Time Stamp : 17:00:35
    GPS Map Datum : WGS-84
    Image Width : 2243
    Image Height : 2995
    Encoding Process : Baseline DCT, Huffman coding
    Bits Per Sample : 8
    Color Components : 3
    Y Cb Cr Sub Sampling : YCbCr4:2:0 (2 2)
    Aperture : 10.0
    GPS Altitude : 5 m Above Sea Level
    GPS Latitude : 40 deg 34' 22.20" N
    GPS Longitude : 73 deg 58' 50.40" W
    GPS Position : 40 deg 34' 22.20" N, 73 deg 58' 50.40" W
    Image Size : 2243x2995
    Shutter Speed : 1/250
    Focal Length : 17.0 mm
    Light Value : 14.6
    Preview recognizes the tag correctly, only iPhoto does no longer do.
    What are your import settings? Do you copy items into the iPhoto library?

  • Reading jsp  tag using xml

    Hello friends,
    I have a problem.
    I have a jsp page in that i have to find a particular tags. using xml
    but i dont know about dtd and. please help me
    <input type ="text" value= "ss">
    now i want to find the above tag using xml
    so please give me the logic how to find a tag in jsp using xml. ?
    please help me.

    A JSP is for displaying data. Read after me:D-I-S-P-L-A-Y-I-N-G. It has no business parsing or
    reading or calculating anything.
    I don't know what the OP want's to do. Maybe he
    want's to write a application which replaces some
    html tags in JSP files.
    His post can also be interpreted that he want's to
    use JavaScript (DOM)) to find any particular tag.Hello,
    my problem is in our application some programmers have written hardcode in <intput tag> like <input type name ="hardcode" instead taking values from database dictonary.
    so now i have to find the line no. where they have written the hard code.
    for that my pl is asked to solve using dom.
    for that i need to find the html tags.
    but i m not able to do that.
    can u suggest me.

  • Building JSF tag using existing Tags

    Hi all
    I wonder if it's possible to create a new JSF tag using existing JSF Tags?
    For example, I have a JSF tag which renders a lable and a textinputfield, let's call it <f:field>
    Now I want to build a new JSF tag, which will re-use the existing tag <f:field>. IS it possible?
    Thanks in advance

    Did you have a chance to look at facelets solution. Facelets provide several approach how to create composition components.
    Sergey :

  • Overwriting the value of an html:hidden tag using javascript

    Can somebody help me with my problem?
    I need to overwrite the value of my html:hidden tag using javascript, but I dont know how?
    Any help?

    what are you talking about :x
    thats a webapplication question, wrong forum..
    But you are using STRUTS I would say...
    <html:hidden property="hiddenfield"/>This is the proper way of doing it.. but overrighting it
    I don't think you understand why we use that?
    It is only for forms.... we use that for hidden input ... It is common sence not to overrde that value.

  • How to use pre-mapping process operator

    I am using OWB version
    There are two source tables namely src1_tb(id1,field1,field2), src2_tb(id2,field3,field4) and a target table namely target_tb(id1,id2,field1,field2,field3,field4).
    It's a simple mapping with a join operator. Here, when I try to use a pre-mapping process operator 'LENGTH', with input from outgroup of join operator (field1) and output linked to an added field( VALUE_LENGTH) in Traget Table, it gives error "VLD-2451: Connection to premapping is invalid" and a warning "VLD-1008 :Referenced mapping column VALUE_LENGTH" does not exist"
    Can anyone please let me know how to use pre-mapping process operator.
    Any help will be greatly appreciated.

    yes, a pre-mapping procedure is not what you want here.
    Pre-mapping procedures run once when the mapping initializes and before the actual ETL is run. IT is a place where you could do some custom data cleansing / validation, populate your own audit loggin tables if you wish, or whatever other things you might like to do.
    For what you are describing, you want to pass the field through an expression object. Drop the Expression on the canvas and drag a link from the field in your OUTGRP to the INGRP on the expression This will auto-create the corresponding ingrp attribute in the expression for that field. Then double-click the expression object to bring up it's properties sheet. You will then want to create an OUTGRP attribute called length_value of type number, and set it's Expression property to length(ingrp1.your_Field_name_here). You can then connect from this outgrp field to your field in the target table.

Maybe you are looking for

  • How to select One Check Box at a time

    Dear All I have 10 records in details blok and also I have 10 check boxes . I want user can only check one check box at a time . For example If first record I have checked and i am trying to check the last record then the first record UNCHECKED and t

  • Problems setting up WVC80N TZO account using my 2701HG-T 2Wire DSL Router

    Hi! I have 2 WVC80N cameras and I´m using a 2701HG-T 2Wire DSL Router, they are already configured and i can see them wireless, but i tryied again and again to configure both TZO accounts and always recived the next message: Oops, there was an error

  • Error while applying OLAP patch 3140662

    Hi all, i have successfully applied Oracle OLAP Patch 3084634 [ ONE-OFF PATCH AND SERVER PATCH FOR OLAP] After that i tried to apply Oracle OLAP Patch 3140662 [Patch UNABLE TO CONNECT TO RDBMS using OLAP API] when i follow the steps

  • How to find batches for "stock for vendor".

    Hi all, My requirement is as follows. when we execute MMBE for any material. It will display the stock of material in different Storage locations of the plant with respective matches. for example: MATERIAL 12345 PLANT 1234                            

  • Template for exciseable items in dtw

    Hi,     where can we find template for exciseable items in dtw?we are on 8.8. Thanks, Mansoor