How to wrap the too big string name in multiple line
Hi All,
String s="Diwali_Photos_For_Testing_Purpose_Test"
How to wrap this string into multiple lines in jsp.
by setting the width of the outputText component, it is not wrapping into multiple lines.
If the String s="Deputy chief executive takes up position at Hibernian"
then it will be wrapped in next line..
In IE you can apply CSS property 'word-wrap' on that field with the value 'break-word'. For other browsers you'll have to write some JS yourself which breaks long words with spaces or even do it already at the server side.
Similar Messages
-
How to use the Class.getMethod(String name, Class[] paramArrays)
Hi,
I've a problem with the .getMethod method. I've search solutions in the tutorials but I haven't found sorry.
I'm trying to copy a method from a Class named carre in a reference named m. But I don't understand the second part of the parameters. How can I write parameters in a Class array ?
Method m = Carre.class.getMethod("getYou", args) ; //It doesn't work, because args is a String array, not a Class array, my parameters would be double.
Could you help me ? Thanks for answers.Class[] classArray = { new Double().getClass(), new String().getClass()};That's not what you want to write. That generates two objects unnecessarily. You should write:new Class[] { Double.class, String.class };
-
How to wrap the text in column headers?
Hi Friends,
Can anyone please suggest how to wrap the text in column headers of a Java WebDynpro table?
I believe that caption is the only UI element that a column header can have and it does not allow wrapping of the text.
My original requirement is as follows,
In a table I need to dynamically set the width of the columns according to the width configured by the user in some other view. All the columns of the table are dynamically rendered.
Now what happens is when the user sets the width of the column to a rather low value, say 15 pixels, then the column is displayed like
Supplier Catalog Name
Sheila
Catalog
Name
Dropdown
As you can see it looks rather odd.
Supplier Catalog Name is the header of the column and I use IWDCaption for header.
Sheila Catalog Name Dropdown is the value of a particular row at the specified column. I am using a TextView as the TableCellEditor.
I think what is happening here is that the framework wraps the text in the TextView according to the width specified (15px) and then the column width is extended because it can not accommodate the text (Supplier Catalog Name ) of the column header.
We are using SAP NetWeaver Development Studio 7.0.12 as the IDE.
I searched some forums and many people have suggested using scrollable columns but I don't understand how it will help in wrapping the text in a column header.
Any help would be of great advantage.
Thanks
AmitHi Deepti,
Thanks a lot for the answer but the option that you have specified does not wrap the text. Instead it truncates the text being displayed and only the substring of the text which could be displayed in the given pixels is displayed.
I need to show the whole text wrapped (Meaning if the width of the column is not sufficient then the text goes into the next line).
Ayyapparaj,
Thanks to you too for an helpful answer. It seems that the Netweaver has finally come up with a way to wrap the text in the column headers but as Manoj pointed out, I do not see the property headerTextWrapping for a table column, Can you please specify which version of netweaver supports it?
We are using SAP NetWeaver Development Studio 7.0.12 as the IDE.
Thanks
Amit Kapoor -
How to get the value of String in integer type
how to get the value of String in integer
{color:#0000ff}http://java.sun.com/javase/6/docs/api/java/lang/Integer.html#parseInt(java.lang.String)
http://java.sun.com/javase/6/docs/api/java/lang/Integer.html#valueOf(java.lang.String){color} -
LabWindows / CVI: how to change the output executable file name
For example, I have an A project a.prj, I do not want to compile the output file is a.exe, but b.exe.
I will try to save as a.prj b.prj, a.cws save as b.cws
eg:a.prj ---->(output)--->b.exe
Solved!
Go to Solution.You can go to Build >> Target Settings menu item, select Release (or Release 64) in the Configuration filed and set the name of the executable to create in Application FIle field, withouyt need to change the prj or cws filename.
See the complete description of available options here.
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos? -
How to Identify the Type of Font Names in Illustrator
How to identify the type of font names like "True Type font" (or) "open Type font" for illustrator file using Scripts or any language. Could you please advice me.
Thanks,
PrabudassIf there is an Illustrator SDKor Illustrator Scripting forum, try
that. ATM won't really help - it is obsolete and should not be
installed (breaks things).
Aandi Inston -
How to wrap the heading text in alv.
HI all,
I need help, how to wrap the heading text in alv.
can any help ... plz..
Advanced Thanks
Regards
GUhapriyanHello GuhaPriyan,
I assume that you're referring to the ALV Grid's title. The maximum length for this title is 70 characters and this would generally fit in the one line.
Are you intending to wrap it because you purposefully want the text to come in two lines? In that case, I'm not sure that it's possible.
But otherwise, there's an option in the Layout called SMALLTITLE. You can set this attribute so that the title would be displayed in a amaller font and hopefully, all of your text shows up on the screen.
Regards,
Anand Mandalika. -
How to get the dynamic Crosstab header name ?
Hi ,
The crosstab resaults shows as below ,How to get the dynamic Crosstab header name ?
| Countryname |
| Province1 | Province2 |
| here to get CountryName | here to get CountryName |
how to get the Countryname in data ceil?
thanksCould you please elaborate on your requirement?
You want header to be dynamic? -
How to wrapped the function and procedure
Hello friends,
I wanna know that how to wrapped the procedure and the
functions in oracle i know little bit about the
wrapping but how can i unrapped the procedure of function
plz help me i am realy thx to you.You can not un-wrap a procedure/function once it has been wrapped.
look at the following documentation for the wrap utility:
http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96624/c_wrap.htm -
How to use the default database service name on creating procedure for data
how to use the default database service name on creating procedure for datagaurd client failover ??? all oracle doc says create a new service as below and enable at DB startup. but our client is using/wanted database default service to connect from application on the datagaurd environment (rac to non rac setup).please help.
Db name is = prod.
exec DBMS_SERVICE.CREATE_SERVICE (service_name => 'prod',network_name =>'prod',failover_method => 'BASIC',failover_type => 'SELECT',failover_retries => 180,failover_delay => 1);
says already the service available.
CREATE OR REPLACE TRIGGER manage_dgservice after startup on database DECLARE role
VARCHAR(30);BEGIN SELECT DATABASE_ROLE INTO role FROM V$DATABASE;
IF role = 'NO' THEN DBMS_SERVICE.START_SERVICE('prod');
END IF;
END;
says trigger created, but during a swithover still the service is listeneing on listener.
tns entry.
prod =
(DESCRIPTION =
(ADDRESS_LIST =
(LOAD_BALANCE = YES)
(ADDRESS = (PROTOCOL = TCP)(HOST = prod1)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = prod2)(PORT = 1521)) ---> primary db entry
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = proddr)(PORT = 1521)) --> DR DB entry
(CONNECT_DATA =
(SERVICE_NAME = prod)
thanks in advance.
Edited by: 854393 on Dec 29, 2012 11:52 AMHello;
So in the example below replace "ernie" with the alias you want the client to use.
I can show you how I do it :
First an entry need to be added to the client tnsnames.ora that uses a SERVICE_NAME instead of a SID.
ernie =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = Primary.host)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = Standby.host)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = ernie)
)Next the service 'ernie' needs to be created manually on the primary database.
BEGIN
DBMS_SERVICE.CREATE_SERVICE('ernie','ernie');
END;
/After creating the service needs to be manually started.
BEGIN
DBMS_SERVICE.START_SERVICE('ernie');
END;
/Several of the default parameters can now be set for 'ernie'.
BEGIN
DBMS_SERVICE.MODIFY_SERVICE
('ernie',
FAILOVER_METHOD => 'BASIC',
FAILOVER_TYPE => 'SELECT',
FAILOVER_RETRIES => 200,
FAILOVER_DELAY => 1);
END;
/Finally a database STARTUP trigger should be created to ensures that this service is only offered if the database is primary.
CREATE TRIGGER CHECK_ERNIE_START AFTER STARTUP ON DATABASE
DECLARE
V_ROLE VARCHAR(30);
BEGIN
SELECT DATABASE_ROLE INTO V_ROLE FROM V$DATABASE;
IF V_ROLE = 'PRIMARY' THEN
DBMS_SERVICE.START_SERVICE('ernie');
ELSE
DBMS_SERVICE.STOP_SERVICE('ernie');
END IF;
END;
/lsnrctl status - should show the new service.
When I do this the Database will still register with the listener. I don't give that to the clients. That one will still be available but nobody knows about it. Meanwhile "ernie" moves with the database role.
So in my example the default just hangs out in the background.
Best Regards
mseberg
Edited by: mseberg on Dec 29, 2012 3:51 PM -
How to wrap the text in JTextPane
hi all,
I have a problem with JTextPane. I have a JPanel which have 4 JButtons, one Details button and one JTextPane. I have set JTextPane to JScrollPane. Thing is when i press the Details button the JTextPane must be visible. Window size is changing. can any one say how to wrap the text in the JTextPane.By default text in a JTextPane will wrap, so I don't understand the question.
Read the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/components/text.html]Using Text Components for a working example. -
How to append the User Agent String in IE11
We use "Internet Explorer maintenance" GPO to append the standard User Agent String for IE9 with "ADFSIntAuth". "Internet Explorer maintenance" is deprecated and will not work anymore for IE11 and later.
Now we want to move to IE11 and I can't find a solution to append the User Agent String. With GPO this isn't possible anymore (Why Microsoft?). And the registry keys I've tested won't do the job. I've tested
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\User Agent\Post Platform
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\User Agent
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\User Agent\Post Platform
So whats is the best way to append the user agent string for IE11?
http://social.technet.microsoft.com/Forums/en-US/cdc999aa-faec-4aa5-9025-f12a524794f0/ie10-user-agent-string?forum=winserverGP didn't help.Thank you for the Reply Roger.
I have already read the website you are referring to, but it doesn't say how to append the User Agent String.
Only this:
"Earlier versions of the browser included
Pre-Platform and Post-platform registry value tokens in the user-agent string. However, this led to
performance issues for customers of certain tools and add-ons. As a result, these tokens are now reported only through the
navigator.userAgent property"
With a dead link to the article "navigator.userAgent", but with a search I came to this article: http://msdn.microsoft.com/en-us/library/ie/ms534712(v=vs.85).aspx But also this article won't say how to append the User Agent String for all
clients in a corporate environment. -
How to copy the photo with file name at window 7 and search specific one in iphone 4s?
How to copy the photo with file name at window 7 and search specific one in iphone 4s?
Clendenen02 wrote:
2) It would be equally helpful if there was something that would take the name of the picture file and spotlight comment, copy and paste it to a movie file's comments with the same name but obviously has different extention. For an example
In a Pictures folder
Name: Dark Knight, The.jpeg Comment: (2008) Genre: Action... <- copy comment
In a Movie Folder
Name: Dark Knight, The.m4v Comment: <- paste
and do this for all 700 files
This Bash script will do it.
Edit "PicDir" and "MovDir" to the location of your Folders
(Note: The comment is written to the m4v file using xattr, so the Spotlight comment field appears blank in Finder, but the comment metadata is still indexed by Spotlight (If you add a Spotlight comment from Finder, it is stored both as an extended attribute and in a .DS_Store file)
#!/bin/bash
PicDir=$HOME/Desktop/Pictures
MovDir=$HOME/Desktop/Movies
for f in $PicDir/*
do
if [ ! -d "$f" -a "${f##*.}" == "jpeg" ]; then
comment=$(mdls -raw -name kMDItemFinderComment "$f")
if [[ $comment != "(null)" ]]; then
picname=${f##*/}
movname=${picname%.*}.m4v
if [ -e "$MovDir"/$movname ]; then
xattr -w com.apple.metadata:kMDItemFinderComment "\"$comment\"" "$MovDir"/$movname
fi
fi
fi
done -
How to find the text id & object name to be used with read_text ?
Hi All
how to determine the text id & object name associated with PO to be used with FM read_text ?
Regards
JamanHi,
For PO there will be Header Texts and Item texts.
For header texts just Take the PO number as TDNAME.
for Item texts Conactenate the PO number and Item Number and use as TDNAME.
in ME23N Go to any text.Double click on it
It will take you to text editor.
GOTO-> header
it will display the TEXT ID,TEXTNAME,LANG and TEXT OBJECT etc
Similarly for every text you will find and use;
Regards,
Anji -
How to reset the network IP address from terminal/command line in Mac OSX?
Do anyone knows how to set the network IP address from terminal/command line in Mac OS X?
how about a GUI, ever heard of a GUI? it's this really neat thing, where you don't have to worry about remembering long strings of text to do something. Mac OS X actually has a rather decent one (that was sarcasm by the way, Mac is the best) you could have it done in like 30 sec, if you use the network pane of system preferences.
Maybe you are looking for
-
My ipod touch isnt recognised in windows or itunes
my ipod touch isnt recognised in windows or itunes.i have reinstalled itunes and updated software on ipod touch
-
Downloaded Firefox 8 and it will no longer connect to the internet, is there a fix?
That's it. downloaded 8 and it won't connect.
-
Photos not showing in places.
Recently a friend of fine who also has an iPhone, change some settings in m y phone(unforunately) From then, the photos i took from my camera are not showing up in "Places". I have turned location settings in Iphone on for Camera, but still the probl
-
"ListenerRfc : unknown error" in communication with the IGS from the WAD
Hi all, I face a problem with the charts in the web template I built. The source query shown as a table is normally presented but the views from the same query are not displayed at all. The diagnostic message refers to an internal error met during th
-
Measuring Point Counter Overflow reading
Dear Masters, I want to know whether there is any standard method by which i can create a notification in the system whenever any measuring point reading reaches its counter overflow reading? Can I do the same with the range valued measuring points?