[JSF 2.0] How to add a non-displayed comment in JSF xhtml files?
Hello!
I would like to know how to put a non-displayed comment in a JSF xhtml file.
Currently, a *<!-- My comment -->* will be sent in the HTML output.
I've tried also:
*// My comment*
*<%-- My comment --%>*
and other ideas, but they are failing.
On the web, I red an ugly solution, implying to add one parameter in each faces-config.xml files our project could have, and asking JSF not to parse some statements (if I remember well).
Whatever, I am quite sure it was a solution for JSF 1.0 or 0.9...
There must be a clean way to write a comment, but I just can't find it.
How do I write a comment that is not displayed on HTML output, in a JSF xhtml file?
Regards,
Grunt.
Edited by: Grunt2000 on May 10, 2010 9:23 AM
Grunt2000 wrote:
Hello!
I would like to know how to put a non-displayed comment in a JSF xhtml file.
Currently, a *<!-- My comment -->* will be sent in the HTML output.
I've tried also:
*// My comment*
*<%-- My comment --%>*
and other ideas, but they are failing.
On the web, I red an ugly solution, implying to add one parameter in each faces-config.xml files our project could have, and asking JSF not to parse some statements (if I remember well).
Whatever, I am quite sure it was a solution for JSF 1.0 or 0.9...
There must be a clean way to write a comment, but I just can't find it.
How do I write a comment that is not displayed on HTML output, in a JSF xhtml file?Does this help?
<context-param>
<param-name>facelets.SKIP_COMMENTS</param-name>
<param-value>true</param-value>
</context-param>I'm not sure if that works under JSF 2. If not, you can always use <ui:remove/>.
Similar Messages
-
How to add a record in document library without upload file.
Hi,
how to add a record in document library without upload file?
Is it possible? I want to create a folders in Document Library but inside folders i do not want to upload a file instead of just i want to create a record. I will map my local file path to the records.
Can anyone help me on it?
Thanks & Regards
Poomani SankaranHello Sankaran,
document library is to upload documents, without document you will not be able to add a record or Item to it.
for your requirement you can use a list and enable folders within the list and maintain the local path of the file as an item in list.
http://www.sharepointbriefing.com/spconfig/article.php/3834951/Enable-the-New-Folder-Creation-Option-in-SharePoint-Custom-Lists.htm
My Blog- http://www.sharepoint-journey.com|
If a post answers your question, please click Mark As Answer on that post and Vote as Helpful -
How to add dimension in dimension_values.csv and schema.csv file
How to add one dimension in dimension_values.csv and schema.csv file
I'm not sure on the equation Ventzo, so please tell me if I've got this wrong.
This should create a text file on the desktop with a name of the folder you are in plus the time.
#target bridge
if( BridgeTalk.appName == "bridge" ) {
var quadDetails = MenuElement.create("command","Get Quadrature", "at the end of Tools","QuadDetails");
quadDetails .onSelect = function () {
var file = new File(Folder.desktop +"/" + decodeURI(Folder(app.document.presentationPath).name) + time() +".txt");
file.open("w", "TEXT", "????");
$.os.search(/windows/i) != -1 ? file.lineFeed = 'windows' : file.lineFeed = 'macintosh';
file.open('w');
var sels = app.document.selections;
for(var a in sels){
var myThumb = new Thumbnail( sels[a]);
var Resolution = myThumb.core.quickMetadata.xResolution;
if(Resolution == 0) Resolution = 72;
var CM = Resolution /2.54;
var m = CM*100;
var Height = (myThumb.core.quickMetadata.height/m);
var Width = (myThumb.core.quickMetadata.width/m);
file.writeln(decodeURI(sels[a].spec.name) + " - " +(Height * Width).toFixed(4));
file.close();
alert(decodeURI(file.name) + " Has been created on the Desktop");
function time(){
var date = new Date();
var d = date.getDate();
var day = (d < 10) ? '0' + d : d;
var m = date.getMonth() + 1;
var month = (m < 10) ? '0' + m : m;
var yy = date.getYear();
var year = (yy < 1000) ? yy + 1900 : yy;
var digital = new Date();
var hours = digital.getHours();
var minutes = digital.getMinutes();
var seconds = digital.getSeconds();
var amOrPm = "AM";
if (hours > 11) amOrPm = "PM";
if (hours > 12) hours = hours - 12;
if (hours == 0) hours = 12;
if (minutes <= 9) minutes = "0" + minutes;
if (seconds <= 9) seconds = "0" + seconds;
todaysDate = "-" + hours + "_" + minutes + "_" + seconds + amOrPm;
return todaysDate.toString(); -
How to add a non-strong-named .DLL to Assembly
I am trying to add a .dll file to assembly on a server (connected via RDP) for a WCF Service Application. When I try to add it in Visual Studio Command Prompt, it says "Failure adding assembly to the cache: Attempt to install an assembly without a strong
name." I tried signing the assembly in VS, but aside from toggling the signing and choosing the key file, every option is grayed out. And even then it's not considered strong named. Why are the options grayed out? Is there a way to add non-strong-named
DLLs to assembly? Otherwise, how do I sign the DLL?
Note: I am connected to a Sharepoint 2010 server using Windows Server 2008 and Visual Studio 2010. The project is called ListTasks2, as is the DLL. I have a project that has a similar naming -scheme and I was able to use GAC just fine for that DLL.You need the source code to sign it. Do you have the source?
Trevor Seward
Follow or contact me at...
  
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs. -
How to add coloum name in a exel sheet download file?
Dear all,
I amdownloading a excel sheet from a internal table.I am getting all data correctly.
but now i want to add coloumn name for each coloumn.
How can I do it?
i had try from work area and insert at first index but not get proper result.....
so if possible plz suggest sampl code also.
Regards
RickyHi Ricky Maheswari,
I will send a sample code for u.check it once.I execute the below code that is executed successfully.
In my report u have check these things carefully "PEFORM APPEND_HEADER " and SELECT STATEMENT(I use appending table stmt there).Then ur problem will be resolved.
code:
*& Report YBDC_DOWNLOAD_MM01_XLS *
*& DEVELOPER : KIRAN KUMAR.G *
*& PURPOSE : FETCH DATA FROM DB AND PLACE THEM IN .XLS FILE *
*& CREATION DT : 2/12/2007 *
*& REQUEST : ERPK900035 *
*& NOTE : MENTION PATH & MENTION FILE.XLS IN THE SELE-SCREEN *
REPORT ybdc_download_mm01_xls MESSAGE-ID zbdcmsg.
Tables
TABLES: mara, "General Material Data
makt. "Material Descriptions
Global Variables
DATA: gv_path TYPE string. "Hold Path Selection Information
Internal Table
DATA : BEGIN OF gt_data OCCURS 0,
matnr(20), " Material Number
mbrsh(20), " Industry Sector
mtart(20), " Material Type
meins(20), " Base Unit Of Measure
maktx(20), " Material Description
END OF gt_data.
Selection-Screen
SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS : p_file(90).
SELECTION-SCREEN : END OF BLOCK b1.
SELECTION-SCREEN : BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
SELECT-OPTIONS : s_matnr FOR mara-matnr,
s_mbrsh FOR mara-mbrsh,
s_mtart FOR mara-mtart,
s_maktx FOR makt-maktx,
s_meins FOR mara-meins.
SELECTION-SCREEN : END OF BLOCK b2.
Initialization
INITIALIZATION.
PERFORM initial.
Placing A File In The Directory
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
PERFORM path_directory.
START-OF-SELECTION.
Append Some Header Information To XLS File
PERFORM append_header.
Fetching The Data
PERFORM fecth_data.
END-OF-SELECTION.
GUI_DOWNLOAD
PERFORM gui_download.
*& Form path_directory
text
--> p1 text
<-- p2 text
FORM path_directory .
CALL METHOD cl_gui_frontend_services=>directory_browse
EXPORTING
window_title = 'Download A File'
initial_folder = 'c:/'
CHANGING
selected_folder = gv_path
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
not_supported_by_gui = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL METHOD cl_gui_cfw=>flush
EXCEPTIONS
cntl_system_error = 1
cntl_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
p_file = gv_path.
CLEAR gv_path.
ENDFORM. " path_directory
*& Form fecth_data
text
--> p1 text
<-- p2 text
FORM fecth_data .
SELECT a~matnr
a~mbrsh
a~mtart
a~meins
b~maktx
FROM mara AS a
INNER JOIN makt AS b ON amatnr = bmatnr
APPENDING TABLE gt_data
WHERE a~matnr IN s_matnr
AND a~mbrsh IN s_mbrsh
AND a~mtart IN s_mtart
AND b~maktx IN s_maktx
AND a~meins IN s_meins.
IF sy-subrc = 0.
MESSAGE s000.
ENDIF.
ENDFORM. " fecth_data
*& Form gui_download
text
--> p1 text
<-- p2 text
FORM gui_download .
gv_path = p_file.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
filename = gv_path
filetype = 'ASC'
APPEND = ' '
write_field_separator = 'X'
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
IMPORTING
FILELENGTH =
TABLES
data_tab = gt_data
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " gui_download
*& Form append_header
text
--> p1 text
<-- p2 text
FORM append_header .
REFRESH : gt_data.
CLEAR : gt_data.
gt_data-matnr = 'MATERIAL NUMBER'.
gt_data-mbrsh = 'INDUSTRY SECTOR'.
gt_data-mtart = 'MATERIAL TYPE'.
gt_data-maktx = 'MATERIAL DESCRIPTION'.
gt_data-meins = 'BASE UNIT OF MEASURE'.
APPEND gt_data.
CLEAR gt_data.
ENDFORM. " append_header
*& Form initial
text
--> p1 text
<-- p2 text
FORM initial .
s_matnr-sign = 'I'.
s_matnr-option = 'BT'.
s_matnr-low = '800'.
s_matnr-high = '100-200'.
APPEND s_matnr.
s_mbrsh-sign = 'I'.
s_mbrsh-option = 'BT'.
s_mbrsh-low = 'M'.
s_mbrsh-high = ''.
APPEND s_mbrsh.
s_mtart-sign = 'I'.
s_mtart-option = 'BT'.
s_mtart-low = 'FERT'.
s_mtart-high = 'HALB'.
APPEND s_mtart.
s_maktx-sign = 'I'.
s_maktx-option = 'BT'.
s_maktx-low = 'IRON'.
s_maktx-high = 'STEEL'.
APPEND s_maktx.
s_meins-sign = 'I'.
s_meins-option = 'BT'.
s_meins-low = 'CM'.
s_meins-high = 'KG'.
APPEND s_meins.
ENDFORM. " initial
Award points if helpful.
Kiran Kumar.G
Have a Nice Day.. -
How to add line breaks to output fixed width flat file
0
I need to create a Flat file without column headers, no comma separated values but each column will have a fixed starting position and a fixed length in the text file. For example, below is the text file to be created with six columns
Column1 Column2 Column3 Column4 Column5 Column6
abc 1 New emp xxxx xxxx
xxx
Fixed starting position and a fixed lenth values for these columns as are below;
Column1 : Starting Position -1, Fixed Length -4
Column2 : Starting Position - 8, Fixed Length - 2
Column3 : Starting Postion - 11, Fixed Length - 10
Column4 : Starting Position -1, Fixed Length -5
Column5 : Starting Position - 10, Fixed Length - 2
Column6 : Starting Postion - 15, Fixed Length - 5
The out put file each line have only 20 characters length.First 3 columns comes in first line and 4-6 columns comes in 2nd line.
OUTPUT FILE:
1234 89 11121314151617181920
12345 1011 151617181920BOL says that:
The Fixed width with row delimiters option is not available in the Flat File Connection Manager Editor.
If necessary, you can emulate this option in the editor. To emulate this option, on the General page of the Flat File Connection Manager
Editor, for Format, select Ragged right. Then on the Advanced page
of the editor, add a new dummy column as the final column of data.
More details steps:
http://www.coderewind.com/2012/08/ssis-how-to-include-rowdelimiter-with-destination-flat-files/
Below blog should make things clear:
SSIS Flat File Export - "Fixed Width" vs "Ragged Right"
-Vaibhav Chaudhari -
How to Add Spacing between display only fields in Oracle APEX
Hi
I have a screen which display some values. I want to seperate the two display items with a 10 spaces.
How do I achieve this. I tried to create a dummy field and inserted <p> </p>
but it is not interpreting the value as html tag and displays the values on the screen.
Any help would greatly be appreciated.
Thanks
sukarnaHi Sukarna,
You have two "Display as Text" items, side by side on a page and you want to push the second one further to the right?
If so, you can add &nbsp; in front of the label text.
Your dummy item may have been showing the &nbsp; values if you have selected "Display as Text (escape special characters, does not save state)" for the item type?
Andy -
How to add the recordings MX following ( GANDI) In the file of zone DNS ADOBE
the recording MX are
( Pop 10800 IN CNAME access.mail.gandi.net.
Webmail 10800 IN CNAME agent.mail.gandi.net.
Smtp 10800 IN CNAME relay.mail.gandi.net.
Imap 10800 IN CNAME access.mail.gandi.net.
10800 IN spool.mail.gandi.net MX 10. 1
0800 IN fb.mail.gandi.net MX 50. )
it's for keeping my gandi Mails instead of those of ADOBE catalyst all in changing my server from GANDI to ADOBEHi,
Once you have added your domain to your BC site and redelegated the domain to point to our name servers, you can add all these records from the admin panel in the site domain section. For more info on this, I'd suggest you to contact the BC support directly from Contact Customer Care
Regards,
Aish -
I need to store a data array and include text that describes what the data is. (using for various configuration files.) Anyway, I would like to be able to save the string as part of the txt file, and somehow read it back, remove the (various length string), and display it in an indicator. All the while, not causing too much problem with the initial data array.
Thanks in advance!!There are several ways to do what you require. A simple method would be to use an ASCII text file. When writing one of those, you just need to basically build a gaint string starting with the description text you want. We like to call that a header. Once you've got the header, make some sort of delimiter like a bunch of "-" or two sets of ( EOL = End of Line = CRLF = \r\n ). After your delimiter, concatenate your array in string form or flatten your array from its native form into a string and tack it on the file (append).
See the (very quick) example attached.
Dan Press
www.primetest.com
Attachments:
fileheader.vi 41 KB -
"How to...BSP display comments"...problem with row comment
Hi all,
After implementing as recommended, I noticed that only comment captured at the 'cell' level of detail are returned (via web layouts). Documents captured using the Row' setting are not available via the embedded BSP.
The reason, it seems, is that 'row' comments do not have 0AMOUNT attached to the document properties. The soluion reads all documents with a char and key fig cross section based on a level/package definition, and this may be the problem.
A level/package in BPS0 always needs a key figure (0AMOUNT in my case)....and therefore the "How to.." solution is most likely looking for all documents that have 0AMOUNT, but it is the WIB setting of 'row' that ensures that web-captured documents do not have 0AMOUNT attached.....?
Marc, does this sound correct? Any ideas how to get around the problem without..?
Thanks and regards,
Rael and NatarajanHi,
This How-to paper is exactly what I was looking for, so thats perfect. However I'd like to display to row comments as well, but it does not seem to work. As far as I can tell, you haven't updated the white paper yet, Marc. Is that correct? What changes do I exactly need to make it work for row comments as well?
Thanks in advance,
-Jacob
UPDATE!
Ok, I found the place to comment out.
On the tab Event Handler -> OnInitialization - comment out the following line:
ls_cha-chanm = cl_sem_mp_documents=>c_name_keyf.
That seems to do the job.
Thanks again,
-Jacob
Message was edited by: Jacob -
After implementing the white paper, I found all components below the BSP inserted are no longer visible. Tried a few things in vain. Am I missing something?
We are on 640 sp 14 so both notes are already in.
Thanks.
William
Message was edited by: William LeeThanks Natarajan. however we don't see the same issue when using iframes to incorporate web reports in web planning applications.
In the white paper it says "in the place where you want it be displayed". does this mean "anywhere you want as long as it is at the end"?
anyone with a solution?
william -
How to access the "Non Adapter" properties in Teststand API
Hi,
I'm trying to dynamically create a sequence file through Labview with the help of the API. So far I have eben able to create the file, add a sequence call into the file as well as link the sequence call to a particular sequence file that will be called. Now, I wish to add certain "non-adapter" steps into the sequence file like Goto, Label, Property Loader etc. I can't seem to find a way to access the propeties once the step has been added. In the LV adapter, I was able to access the TSAdp.SequenceCall API and manipulate the properties. How do I do the same for the non-adapter ones?
Also, when I load the sequence file through the TSAdp.SequenceCall API, i'm unable to access the parameters and link the inputs and outputs. I've attached a portion of my code and would really appreciate some help.
Thanks in advance,
-Anshul
Attachments:
Dynamic Sequence File.vi 127 KBThanks for everyone's replies. I am now able to set the parameters for the sequence file, just that I added a property node for the sequence file path and the sequence before loading the parameters. That did the trick and the rest was easy. Also for Goto, with some digging, I was able to add a custom property step if it fails or passes the step. It works like a charm. I'm attaching a modified version of my code in LV 7.0 format.
Attachments:
Dynamic Sequence File-1.vi 175 KB -
Hi,
I would like to know how to add a folder so that when extracted the file structure is maintained.
Thanx in advance
-Dani.And to an existing archive or a new archive?
-
How to add an image for the new form?
I created a new form,and I want to add an [image] to the toolbar in the new form.How to add [image] for a form?
Like:
[image] File Edit Tool Help
My Form
Thanks in advance!Thank you!
Maybe the message I sent yesterday have some mistakes.
Form version 12.0.5.1
I want it this way:
How to add [image]?
[image] Manager Maintenance
Browser Open Save Help
-- My Form --
----------------------------------------------------------------------------- -
How to add/edit render video presets?
I can't find how to add or edit render video presets used in (File->Export->Render Video) dialog.
Am I missing something?JJMack wrote:
I'm afraid that your are right there are preset in CS6 for its media server dll and they are stored where you found them. You can use the preset and modify setting in the preset for a custom rendering. However there is no save new preset button so your custom setting can be saved as a new preset.
Yes, You can modify some rendering parameters (Dimensions, Frame Rate, Field order, Aspect Ratio).
But You can't modify preset settings. What I mean is target bitrate, maximum bitrate, key frame distance etc.)
You can't even determine what the settings are... (unless I missed something?)
To get the full Media Sever you need an Adobe video product like Premiere Pro. Perhaps use a trial verson to create additional preset that can be added to Photoshop CS6 presets. Presets for better Quicktime support for example.
This is not the issue. I have CS6 Master Collection installed...
Photoshop don't see Media Encoder presets and vice versa...
Maybe you are looking for
-
HOW TO CREATE STORED PROCEDURE IN DATA INTEGRATOR
Hi to every one, Can any one help in giving me a solution for creating stored procedure in Data Integrator. I m new to this field
-
Displaying row numbers in tables
Is there a way to get JTable to display row numbers on the left-most side of the table? Are there any functions in JTable that will allow you to do this? I am thinking that to do this, I will probably need to add a column to my table model and make t
-
Dear Gurus, If some standard SAP field is added in a standard database table as a part of upgrade. Is there a way we can find out when that field is added to the database table. Regards, Subhajit
-
Config XDB for https ssl access
Hello, I'm trying to configure an Oracle DB 11g for https access. I tried to set the port to 8089 and the protocol to tcps. When I execute the following lines of code, I always get an Error, that the xml-file is not ok. But when validate the output o
-
ITunes won't recognize my iPod shuffle.
1. My new iPod shuffle (tiny one) is plugged into the USB port. I open iTunes and get this message "iTunes has detected an iPod that appears to be corrupted. You may need to restore this iPod before it can be used with iTunes." 2. I restore the iPod