How to add mailto using outputLink
Hi,
I am creating a dynamic Table where Email address field is getting added dynamically.I need to know how can i add mailto with the email address.
I am doing following steps but it is appending the complete URL of the application before mailto:emailadress.
<h:outputLink value="mailto:#{emp.jobInfo.email}" id="emailLink">
<h:outputText value="#{emp.jobInfo.email}" />
</outputLink>
The output comes as http://servername:port/context path/mailto:emailadress
Looks like outputLink default adds the context path to the URL and to remove the context path we can add forward slash to remove the same.
I did some testing and found if i add 3 forward slashes infront of mailto the output i received is much better. http:///mailto:emailaddress . But still http:/// is still coming with the mailto and email part.I wanted to remove this also.Pls suggest. h:outputLink value="///mailto:#{emp.jobInfo.email}" id="emailLink">
If somebody has any solution to this problem pls respond.
Thanks, -Ritu
It seems strange, but when I do the same, I don't have such problems. I use myFaces implementation of jsf, may be you use another...
I can suggest not very beutiful solution, but still solution: you can just write
<h:outputText value="<a href='mailto:#{emp.jobInfo.email}'>#{emp.jobInfo.email}</a>" escape="false" />
Similar Messages
-
How to add rows using DefaultTableModel?
I'm trying to figure out the ins-and-outs of creating a dynamic table.
I looked for a tutorial, but none of the example programs I found dealt with my particular issue, nor did they explain anything.
For instance, most of the examples looked like this:
table = new JTable();
defaultModel = new DefaultTableModel(10,5);
setModel(defaultModel);But that doesn't work for me -- I'm creating a class that EXTENDS DefaultTableModel, and so if I want to send in parameters, I have a problem.
public MyTableModel() {
super(data, columnNames);
...The above code complains that "you can't access data or columnNames until you call super()!"
But I've seen plenty of example code that DOES send in parameters to super(). How do they get away with that? Is it because they are parameters to the constructor, whereas private/public members of the class are somehow different?
I thought a variable is a variable -- why is one allowed but not the other?
Lastly, I'm trying to figure out, practically speaking, how to load a database with X items, and be able to add rows later. Does that mean I need to use a vector for my data instead of Object[][]?
I've seen BOTH AbstractDataModel and DefaultTableModel used with dynamic tables -- is there any difference between them as far as dynamic tables are concerned?
I was under the impression that I needed to "switch" from ADM to DTM if I wanted to be able to add rows to my table at runtime.
Here are some references to previous discussions I found/participated in on this topic:
http://forum.java.sun.com/thread.jspa?threadID=5224966
http://forum.java.sun.com/thread.jspa?threadID=439141&start=0&tstart=0
Thanks in advance for any help,
Matthew-> I'm creating a class that EXTENDS DefaultTableModel, and so if I want to send in parameters, I have a problem
Well, you would pass in the data and columnNames as parameter when you create your table model.
-> Lastly, I'm trying to figure out, practically speaking, how to load a
-> database with X items, and be able to add rows later. Does that
-> mean I need to use a vector for my data instead of Object[][]?
You just said you extended DefaultTableModel. Well you don't need to do anything it already manages the data for you. You just use the methods provided to update and change the data.
-> I've seen BOTH AbstractDataModel and DefaultTableModel used with dynamic tables
No you haven't. You really don't understand what an AbstractDataModel is do you? Its nothing. You can't use it. It doesn't have any storage for the data, and since there is no data storage you can't access the data or change it. You can't even create an AbstractTableModel. Read your Java text on what an Abstract class it.
The DefaultTableModel extends the AbstractTableModel to provide data storage and ways to get the data and change the data. It notifies the table when any change is made to the data so the table can repaint itself.
-> How to add rows using DefaultTableModel?
Finally, the DTM provides methods that make the model dynamic. Methods for adding and removing rows or adding and removing columns. Read the API for more information.
If you still don't understand how how the methods work then search the forum for examples that use the methods you don't understand. I've posted an example the uses the methods required to add rows or columns. -
how to add songs using itunes
Select your iPhone by clicking the button toward the upper-right, e.g.:
then see:
http://support.apple.com/kb/PH12313
Regards. -
How to add BusinessPartner using DI server?
Hi expert,
previous i used DI API for BP and Sales Order Add.Now i want to add BP and SalesOrder using DI server.Please help any expert ,
1 How to add BusinessPartner with address using DI server ?
2 How to add Sales Order using DI server ?
thanks & regards
SurajitHI, Surojit
Use B1WS, it will be easy to develop the app with DI Server. -
How to add DFF using OA Framework Extensions
Dear Members,
I am very new to OA Framework. I have a requirement where i need to add a DFF to a standard Oracle form in iExpense.
How do we achieve this. Can we do this using forms personalization?
Following are the details of the OAFramework version in our company:
Product/Component Version
OA Framework - 11.5.10 4RUP
Oracle Applications Extension - 9.0.3.8.13 - build 1541
Business Components - 9.0.3.13.87
UIX (Cabo) - 2_2_24
BiBeans Runtime - 3.1.0.70 nondebug BI Beans OAF 11.5.10 Production Release
MDS - 9.0.5.4.89_555
XML - Oracle XDK Java 9.0.4.0.0 Production
AOL/J - Applications Object Library, Core Java Roll Up Patch J
Servlet - 2.2
Java - 1.4.2
JDBC Driver - 9.2.0.6.0
Database - Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production
Operating System - AIX 5.3
Browser - Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB6; .NET CLR 2.0.50727; InfoPath.1)
Your Comments are greatly appreciated.
Thanks
SandeepSandeep,
First of all check the Table on which you are having your DFF. If its at the same level as of the Page (I mean the Page VO is on the same table) then there is a high likelihood that ORacle would have provided the DFF and you just need to set the rendered property to true. In Personalize Page you need to provide a Segment List which is a concatenated list of AttributeCategory and allowed Segments for the DFF.
Dev guide is a good place to look for details.
Regards
Sumit -
Does anyone know how to add time using TIME function?
Hi,
I just switched from Excel (lol) and found an error in a key calculation i use. Does anyone know how to automatically add hours to a time? i.e. i have to convert Pacific Time to other U.S. Time Zones so in the past I used this formula in Excel (=B6+TIME(3,0,0)) which is now not working in Numbers. Is there an equivalent?
Thanks for your help!
AlexandraHello
The Terms of Use ruling this forum states:
-+-+-+-+-+-+-+-
+to help you resolve issues, ask questions, get tips and advice, and more.+
+If you have a technical question about an Apple product, be sure to check out Apple's support resources first by consulting the application Help menu on your computer and visiting our Support site to view articles and more on our product support pages.+
+How do I post a question? ‚+
+_If you searched the forums and didn't find an answer to your question or issue_, click the Post New Topic link at the top of a relevant forum page to post your own question.+
-+-+-+-+-+-+-+-
Your question was aked and responded many times.
Searching in existing threads would have give you the response.
When I try to help users in English, I often look in a dictionary but it seems that for many users, reading the Help or the PDF User's Guideis too much work.
In cell D3, the formula is simply:
=TIME(HOUR(B)HOUR(C),MINUTE(B)+MINUTE(C),SECOND(B)SECOND(C))
which match the Numbers's syntax which, what a surprise, is not XL's one
Yvan KOENIG (from FRANCE mercredi 28 mai 2008 17:39:56) -
How to add signature using magic trackpad
I have read that I can add a signature using the track pad. I am a new Mac user and just trying to get things figured out.
Trackpad? I am not sure what you are try to accomplish or where.
Here is the fundamentals of signature
http://9to5mac.com/2014/02/15/how-to-use-preview-to-put-signatures-on-pdfs-pages -documents-and-mail-messages/ -
Hi, everyone!
INTRO: I'm new to Lightroom. I've gone through a few books and lots of tutorial courses on lynda and youtube, so I feel quite comfortable with LR 5's import process. This post and question is a pre-import/organizational issue.
I have more than 30,000 old, digitized (scanned) photos dating back to the 1950s. Obviously, most of were taken with old, analog cameras. These are now organized into folders by date.
GOAL: I want to import these photos into LR and be able to find them by metadata dates (Capture Date & Time).
PROBLEM: Obviously, old scanned (or even more recent manipulated) photos often don't have the correct EXIF creation date info. Even worse, many (or most) of these old images don't even have an EXIF date field!
WHAT I'VE LEARNED: Using exiv2 filename or evix2 -pt filename immediately shows whether there is or is not date info for the photo. If there isn't, exiv2 -pt filename shows nothing. If there is an EXIF date field, it will be shown.
For all these images with no date field, if I import them into Lightroom, there of course is no date info that shows up in the Metadata panel (under Default or EXIF), nor can you change the date (because the field isn't even there).
If exiv2 -pt filename DOES show the Exif.Image.DateTime field, then in Lightroom, you will see the Capture Time and Capture Date fields, and you will see an icon to the right of those dates that allows you to change that date.
If exiv2 -pt filename DOES NOT show this Exif.Image.DateTime field, you can ADD this field by using the command line:
exiv2 -M"set Exif.Image.DateTime Ascii 1965:01:25 15:45:00" filename (or whatever your date/time is).
Now if you import this image into LR, you will find the Capture Time and Capture Date fields under the Metadata > Default panel...AND you can edit them if needed. That is, the above exiv2 -M command added the EXIF date field that LR needs in order to search by date.
WHAT'S MY POINT, AND WHAT'S MY QUESTION? I have no problem using exiv2 to add/change an EXIF creation DateTime field one folder at a time prior to importing them into LR. This will enable me to search on those date fields**.
My question is this: Is there an easier method?
Surely there must be tens (hundreds?) of thousands of "older" photographers like myself who have troves of old photos that have incorrect EXIF creation date fields, or missing the date field entirely (in which case, as I stated above, cannot be added/edited using LR, PS, FileMultiTool, Graphic Converter, etc.).
I realize that I could look at images based on the folder names or file names, or I could enter dates into tags, but such methods of finding images are not nearly as convenient as using Metadata. Therefore, if I know that an image was taken in June 1962, then I'd like the EXIF metadata to have this info so that I can search on it. To have no EXIF date field or to have a date field that is incorrect is useless.
I'D LOVE YOUR COMMENTS! If there is an easier or better way, I'd love for you to help! There are so many experienced photographers on this forum, and more than likely many of them have old photos with incorrect or missing EXIF date fields that they've brought into LR.
THANKS! I'll really appreciate any and all help you can offer.
David
** there are other EXIF date fields that can be changed using exiv2: Exif.Photo.DateTimeOriginal, Exif.Photo.DateTimeDigitized, etc. But the principal date that LR uses to search for files is the one described above.
P.S. I've also tried jhead -ds1965:01:25 filename (or whatever your date is) to change the date. This works ONLY IF there is already an EXIF date field present. If not, jhead will report an error and not create one. exiv2 -M will create the field.John,
Thanks very much for your help! I had tried the plugin, exiv2, exiftool, and LR's Metadata menu option only on a single photo.
You are 100% correct about LR's menu option assigning different times! Thank you for pointing this out.
When I set the date and time for about 10 photos, LR's menu option assigned (seemingly random!) times to all of them. Why would LR do this? I can perhaps see offsetting each photo by 1 second (00, 01, 02,...), but simply assigning random times makes no sense at all. At least in the tests I just did, LR didn't shift the time by the same amount, but assigned totally (random?) times to every photo.
Another problem that I found with the LR menu item is that it failed to change the date/time at all for several of the images I selected! The Capture Time To Exif plugin, exiv2, and exiftool had no problem at all with the same photos.
I also looked at the ExifMeta by Rob Cole that you mentioned. It looks very powerful (and is free), but much more complex than what I need at this point.
Therefore, I purchased the Capture Time To Exif plugin, and it works great on multiple photos.
I now have good methods to change the date for multiple images:
1. Prior to import: exiv2 or exiftool
2. After import: John's Capture Time To Exif plugin
Thank you again for your help!
This brings me one step closer to importing my photos in a logical method.
David -
How to add subtotals using categories
Hello,
I’m using categories and in two of my columns I’ve added a SUBTOTAL from the category cell dropdown menu; so far so good.
Now I need to add the two subtotal cells across the row to get a Total, and find that the SUM function doesn’t work the same as in a non-category row. In a non-category row I can select two cells then drag the SUM function to a ‘tally’ cell and voila I have a total. But when I try this with the category > subtotal cells , nothing happens.
Any suggestions?
Thanks.
RamoneHi Ramone,
Categories are essentially a way of viewing the data on a table. While you can calculate and display (in the category rows) several numerical quantities associated with each category, the results of these calculations are 'for display only', and to my understanding, can't be used in further calculations.
Outside the category rows, you may be able to accomplish what you want using SUMIF, SUMIFS and similar functions to create the subtotals, then add those two in the usual manner.
Regards,
Barry -
How to add and use custom javafx2.2.3 HTMLEditor skin .properties file
Hallo, I'd like to know if there is a (not necessary officially supported) way to use custom HTMLEditorSkin.properties in javafx 2.2.3.
The original file/files are located in jfxrt com/sun/javafx/scene/web/skinIf there is no way to do that, can something else be done to change languege strings and icons for HTMLEditor?See this thread.
Error Installing Groupware Portlets for WLP 10.3.2
Brad -
How I launch mailto using outlook express, my default mail program.
I have downloaded firefox browser for Win XP. I have a default mail program on my computer. I have checked and firefox recognizes it as default. How can I access it from the browser and can I set a bookmark? for quick access. Thanks
#Right click the Internet Explorer icon on your desktop and go to Properties.<br><br>
#Click the Programs tab and make sure it says "Outlook Express" in the Email menu.<br><br>
#Close that and then in Firefox, press the ALT key to toggle the text menu links on (and off).<br><br>
#Click File and then "Send Link".
It should open OE with the link to whatever page you're on. -
How to add ALV button using OO in module pool program using ALV grid
Hello Gurus!!!
Want some tips related how to add button using ALV Grid(OO).
I want to display the button for search, sort ....
Please suggest the step -by-step procedure for implementation of these button.
I am designing the code for transaction FB03. Header data has been displayed but want to display the line items.
Kindly suggest your answers.
Thanks,
SachinHi,
CLASS SELSCR_APPLICATION DEFINITION DEFERRED.
CLASS SELSCR_APPLICATION DEFINITION.
PUBLIC SECTION.
METHODS:
HANDLE_TOOLBAR
FOR EVENT TOOLBAR OF CL_GUI_ALV_GRID
IMPORTING E_OBJECT E_INTERACTIVE,
HANDLE_USER_COMMAND
FOR EVENT USER_COMMAND OF CL_GUI_ALV_GRID
IMPORTING E_UCOMM.
ENDCLASS. "SELSCR_APPLICATION DEFINITION
CLASS SELSCR_APPLICATION IMPLEMENTATION.
METHOD HANDLE_TOOLBAR.
DATA: LS_TOOLBAR TYPE STB_BUTTON.
append SAVE icon
CLEAR LS_TOOLBAR.
MOVE 'SAVE' TO LS_TOOLBAR-FUNCTION.
MOVE ICON_SYSTEM_SAVE TO LS_TOOLBAR-ICON.
MOVE 'Save' TO LS_TOOLBAR-QUICKINFO.
MOVE ' ' TO LS_TOOLBAR-DISABLED.
APPEND LS_TOOLBAR TO E_OBJECT->MT_TOOLBAR.
CLEAR LS_TOOLBAR.
ENDMETHOD. "handle_toolbar
METHOD HANDLE_USER_COMMAND.
CASE E_UCOMM.
WHEN 'SAVE'.
PERFORM UPDATE_FIELDS.
ENDCASE.
ENDMETHOD.
ENDCLASS. "SELSCR_APPLICATION IMPLEMENTATION
these lines should be after calling method SET_TABLE_FOR_FIRST_DISPLAY
SET HANDLER G_APPLICATION1->HANDLE_TOOLBAR FOR GRID1.
CALL METHOD grid1->set_toolbar_interactive.
rgds,
bharat. -
How to add language to a 9780 using Mac desktop software
Hi, I recently updated my Bold 9780 on Mac and the updated deleted all my languages, I need to know, how to add language using mac desktop software.
Hello hjmatias and welcome to the BlackBerry Support Community Forums.
You can use the Desktop Software for Mac, available for download at www.blackberry.com/mac to install additional languages.
Here is an article from the BlackBerry Technical Solution Center that will take you through the steps to add applications: KB19937
-HMthePirate
Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)! -
Hi,
Can anybody let me know how to add datafile using ASM
DB- ORACLE 10.2
OS-RHELSQL> select name from v$asm_diskgroup;
NAME
DATA1
DATA
Above we are having two asm diskgorup
SQL> alter tablespace users add datafile ‘+data1′ size 5M;
Tablespace altered.
SQL> select name from v$datafile;
NAME
+DATA1/nonasmtoasm/datafile/system.259.721108803
+DATA1/nonasmtoasm/datafile/undotbs1.261.721108865
+DATA1/nonasmtoasm/datafile/sysaux.260.721108841
+DATA1/nonasmtoasm/datafile/users.262.721108873
+DATA1/nonasmtoasm/datafile/users.269.721187971 -
How to add HTML tags to 'mailto' body
i'm trying to figure out how to add font color and bold to an
email body.
i have the code working properly to build the email and drop
the text in the correct locations. however, when i try to add the
html tags to the process, it doesn't work.
when i use the escape command to URLencode the input, it goes
through and you can read the html tags in the email. if i don't
escape the text/tags, the mailto command fails completely.
dual 2.5 g5, 10.4.8, 3gig ram, plenty storage
flash 8pro. ripping flash8 swf, actionscripting 2.0
here's my current code:
emailto =
escape("[email protected],[email protected]");
emailsub = escape("REQUEST - order");
tempemailbody = "<B><FONT COLOR=\"#2B6EB5\">" +
header + "</FONT></B>other text = " + somethingelse +
"<br>";
emailbody = escape(tempemailbody);
emailvar = "mailto:" + emailto + "?subject=" + emailsub +
"&body=" + emailbody;
getURL(emailvar, "_blank");
please advise.
thanks in advance
jason
ps. i tried adding this post twice and it didn't appear in
the topic list. sorry if the previous ones eventually go thruYou can't send HTML email right from Flash. You will need to
use a
server-side script that adds the necessary headers into the
email.
Dave -
Head Developer
www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/
Maybe you are looking for
-
How do I re-install Acrobat XI Standard?
How do I re-install Acrobat XI Standard?
-
Adf ejb jpa persistance problem
Hi everyone, I`m a newbie to adf technology. I was trying Build a Web Application with JDeveloper 11g Using EJB, JPA, and JavaServer Faces tutorial ([http://www.oracle.com/technology/obe/obe11jdev/11/ejb/ejb.html]) I have a problem when I try to run
-
How to increase the the max limit column in pivot view in BIEE 11G?
Hi Experts, How to increase the the max limit column in pivot view in BIEE 11G? When the number of column exceed 256 in pivot view, it will generate the following error message as below: Exceeded configured maximum number of allowed output prompts, s
-
Grid view by rating includes raw unstarred images
In the grid view by rating, if you have a starred psd PLUS the raw file from whence it came, they both appear in sort by rating (this is NEW and UNDESIRABLE). Is there a way not to see the raw file?
-
Now I had to restart my Ipod all over again which because of that i lost all my data. When I want to get apps I can't install them because of a billing information problems. What security code do they want on my account settings information? And how