How to auto divide a one-line string into several rows in jsf?
<h:outputText value="#{msgs.aim}" styleClass="content_text_darkblue"></h:outputText>
for example, the #{msgs.aim} will be a long string that one line cannot output. how can i make it auto-break according to the row length instead of show a horizontal scrollbar?
in raw html code, i know i can include the content inside a <p> tag. but in jsf, i found it impossible to do in this way, although i tried to use <f:verbatim> tag
can any1 give me some idea about this?
Hello,
Why not <h:inputTextarea> ? It makes this automatically for you and you can user readonly="true" to render it as a fictive outputTextarea...
See example:
<h:inputTextarea value="#MyBean.description}" rendered="true" required="false" rows="20" cols="80" id="description" readonly="true" />
Hope you agree.
sunjavero
Similar Messages
-
How do I combine two one page documents into one two page document?
How do I combine two one page documents into on two page document?????
Menu > View > Show Thumbnails > Click on the thumbnail > Copy > Paste into the Thumbnails of the 2nd document
Peter -
i would like to ask about imovie. my project cannot output and how can i divide my project in imovie into two part??, i would like to ask about imovie. my project cannot output and how can i divide my project in imovie into two part??
Go to the Project Library View and select your project.
Then FILE/DUPLICATE PROJECT and give the duplicate a name like "your name - part 1".
Then duplicate it again and give the duplicate a name like "your name - part 2"
Now you can open "part 1" as a project and delete everything that is in part 2.
Open "part 2" as a project and delete everything that is in part 1. -
Reg: how to join more than one cluster table into one
Hi gurus
How to join more than one cluster table into one
amkHi,
You cannot join cluster tables
Best way is to select from the header table and then select from the item table table using for all entries of header table.
regards,
Advait -
How can I divide a A4 size page into 4 equal parts ?
How can I divide a A4 size page into 4 equal parts, so that I can write individually on each part. that is 4 separated column : 2 columns on upper half of the page and 2 columns on lower half of the page. I only know how to create 2 column on a page but do not know how to create "2 rows', thank you
I would use text boxes but you could use Layout breaks and column breaks, but is more of a hassle. I am not a fan of a lot of text in tables.
-
Easy Question: How to split concatenated string into multiple rows?
Hi folks,
this might be an easy question.
How can I split a concatenated string into multiple rows using SQL query?
INPUT:
select 'AAA,BBB,CC,DDDD' as data from dualDelimiter = ','
Expected output:
data
AAA
BBB
CCC
DDDDI'm looking for something kind of "an opposite for 'sys_connect_by_path'" function.
Thanks,
TomasHere is the SUBSTR/INSTR version of the solution:
SQL> WITH test_data AS
2 (
3 SELECT ',' || 'AAA,BBB,CC,DDDD' || ',' AS DATA FROM DUAL
4 )
5 SELECT SUBSTR
6 (
7 DATA
8 , INSTR
9 (
10 DATA
11 , ','
12 , 1
13 , LEVEL
14 ) + 1
15 , INSTR
16 (
17 DATA
18 , ','
19 , 1
20 , LEVEL + 1
21 ) -
22 INSTR
23 (
24 DATA
25 , ','
26 , 1
27 , LEVEL
28 ) - 1
29 ) AS NEW_STRING
30 FROM test_data
31 CONNECT BY LEVEL <= LENGTH(REGEXP_REPLACE(DATA,'[^,]','')) - 1
32 /
NEW_STRING
AAA
BBB
CC
DDDD -
Ios7 messages how do you only delete one line not whole message
IOs7 messages how do you only delete only one line not whole message
Open your message conversation.
Tap and hold on one of the message bubbles until you see "Copy...More".
Tap on More and you should see a circle to the left of each message in your conversation with a checkmark next to the one that you originally tapped on.
Check each message bubble that you want to delete; then tap the Trash can in the bottom left corner of your screen. -
ALV grid - how to break a long string into several lines?
I have a ALV grid, where one of the fields contains a textstring that is typically 100 characters long.
Is it possible to break this long string into shorter strings on multiple rows?
Kind of like in Excel, when using row break...Thats not possible in ALV
-
How can i store values from my String into Array
Hi guys
i wants to store all the values from my string into an array,,,, after converting them into intergers,,,, how i can do this becs i have a peice of code which just give me a value of a character at time,,,,charat(2)...BUT i want to the values from String to store in an Array
here is my peice of code which i m using for 1 char at time
int[] ExampleArray2 = new int[24];
String tempci = "Battle of Midway";
for(int i=0;i>=tempci.length();i++)
int ascii = tempci.charAt(i); //Get ascii value for the first character.public class d1
public static final void main( String args[] )
int[] ExampleArray2 = new int[24];
String tempci = "Battle of Midway";
for(int i=0;i<tempci.length();i++)
int ascii = tempci.charAt(i);
ExampleArray2=ascii;
for(int i=0;i<ExampleArray2.length;i++)
System.out.println(ExampleArray2[i]); -
How can I put a stl::vector string into the DB and then get it out?
Hello,
As the title, here's a test case with problems,but anyway you can still run it. ( VC6/XP-32/BDB 4.7 )
I know this may be wrong,and I'd like to know how can I do this.
Can someone help me please? I would appreciate it very much.
************ Copy,Compile and Run ***************
#include <iostream>
#include <vector>
#include "db_cxx.h"
int main()
std::string dbName("database.db");
u_int32_t db_flags=DB_CREATE;
Db* db=NULL;
// Prepare key(int)/data(vector<string>) pair.
int int_key=2;
std::vector<std::string> rec_data;
rec_data.push_back("apple");
rec_data.push_back("Bob");
rec_data.push_back("Me");
// Prepare Dbt for receiving.
std::vector<std::string> rec_readData;
Dbt readData;
readData.set_data(&rec_readData);
readData.set_ulen(sizeof(rec_readData));
readData.set_flags(DB_DBT_USERMEM);
try
// Open database.
db = new Db(NULL,0);
db->open(NULL,dbName.c_str(),NULL,DB_BTREE,db_flags,0);
// Put
int ret;
if(ret=db->put(NULL,new Dbt(&int_key,sizeof(int_key)),new Dbt(&rec_data,sizeof(rec_data)),DB_NOOVERWRITE)==0)
std::cout<<"put successful!"<<std::endl;
else { db->err(ret,"Db->put"); }
// Get
if(ret=db->get(NULL,new Dbt(&int_key,sizeof(int_key)),&readData,0)==0)
std::cout<<"get successful!"<<std::endl;
else { db->err(ret,"Db->get"); }
catch(DbException &e)
std::cerr<<"Error: ";
std::cerr<<e.what()<<std::endl;
// Close the database
try
if(db!=NULL)
db->close(0);
catch(DbException &e)
std::cerr<<"Error closing database: ";
std::cerr<<e.what()<<std::endl;
// Display the results.
// Index out of bounds. <-----
std::cout << rec_readData[0].c_str();
std::cout << rec_readData[1].c_str();
std::cout << rec_readData[2].c_str();
system("pause");
// Press any key to go wrong. :(
return 0;
Regards,
legendsinoYou need to convert the std::vector<std::string> into a sequence of bytes. For example, if all strings are shorter than 256 characters, you could create a fresh output string, iterator through the vector, and for each element, append the string length to the output string, followed by the string contents.
Note that ordering in the database will be different from lexicographic order, and you have to keep that in mind when performing range queries. -
How to input more than one currency field into the transfer rules?
hi experts,
how to input more than one currency as well as unit fields in transfer rules, when i am giving two currency fields in flatfile the same structure could not able to get in transfer rules ( 0currency).
pl give me the procedure to input more than one currency field.
thanks & regards
venkatHi Venkat,
For example - for amount kf - if you have 0currency as ref object and included in transfer rules and for other kf - create a Zcurr object and try to include...hope it works.
Thanks,Ramoji. -
How do I split a comma delimited string into an array.
I have a string that I am passing into a function that is Comma delimited. I want to split the string into an array. Is there a way to do this.
Thanks in advance.trouble confirmed on 10gR1 and 10gR2
works with 'a,b,c' and also with ' "1" , "2" , "3" '
does not work with '1,2,3'
throwing ORA-6512 -
Separating one iTunes account into several
We have four iPods tied to one iTunes account and all four of us like different music. Syncing can be tricky and we sometimes get each others' songs on our iPod. We also have an iPad and an iPhone to add to one of the accounts. The kids have their own gift cards they want to use also. How do I separate one iTunes account into four separate accounts?
Any music purchased after about 2009 can be played on any computer with the file on it. That's the easy part. Oh, I don't know if syncing present problems but I'm guessing it won't since people often have multiple Store accounts and shared music on family computers.
Movies require the computer be authorized to the account used to purchase the content. This is where you will have to come to an agreement not to change the password or de-authorize each other's computers for that account (there could be a scenario where this is done unintenionally but it shouldn't normally arise unless you have lots and lots of computers).
One tip is to make sure you always have all content present on a local drive. Do not put yourself in a position to ever need to re-download media from the Store. I am presuming you will have your own account after this and the main problem people seem to have with using multiple Store accounts on a computer is being prevented from changing accconts more than once every 90 days for the purpose of re-downloading. Otherwise families often have multiple AppleID users on a single computer with shared media.
You may have to ease up on doing anything such as using iTunes Match or iCloud downloads with this particular account, but we're talking trying to rescue what you can. -
How to break up a large .java file into several?
Hi,
I have a pretty large .java file containing many private methods. I rather not have to always work in this very large file. Is there a way to separate this into several smaller files, but to maintain the same relationship of all these private methods being part of the same class?
Thanks in advance,
SteveI thought that would be the answer. This is my first
Java app. It uses Swing and I use NetBeans as my
IDE.
I knew it was getting too large, but I was trying to
avoid having to reimplement the whole thing. I have a
few more features to add and I can see this file
growing by another 300-400 lines.You'll find it a lot simpler to write the second time round. You really don't want to have classes that big
I do in fact have a couple other .java files where I
created separate classes. Its just that I really need
to rethink or redesign this whole thing.You do. Sounds like you've got one class that does too many things. What does this big class do? Adding new features shouldn't bloat your code this way -
How to i get my one line email address from a form to dissapear from my monitor screen?
Hi,
I have a iMac running OS X Yosemite ver 10.10.1
my iMac is Mid 2011, running 16 BF Ram
I have seen an annoying floating email address from a form showing up on my monitor screen, even though the form was closed.
Even if I move any open windows, the email address is still showing on my screen.
Anyone have any idea on how I may delete this image or whatever it is? Thanks. DonnaTry relaunching the Finder, ➙ Force Quit.
Otherwise reboot.
Maybe you are looking for
-
Firefox don't open but it apears in task manager
When i click on firefox icon... nothing happens. I'll go to task manager and there it is... firefox. But it won't open...
-
Can't open Tiff in Camera Raw CC
I have checked the Camera Raw preferences to open jpgs and tiffs in Camera Raw. I have the Bride CC preferences set to Bridge CC for jpgs and tiffs. I c n open jpgs in Camera Raw, but I can't open tiffs in Camera Raw. I must be doing something wron
-
Request to have my SN Margin reset back to 6db???
Hi I had my line upgraded to ADSL2 about two three weeks ago and on activation the service gave me a SN Margin of 15db and it still hasn`t went back to 6db and i`m losing a lot of speed because of this, so I was wondring if any of you kind forum mods
-
running on my macbook pro 2.66 ghz core 2 duo with 4 MB of ram, aperture 3 was lightning-fast in snow leopard, now is mud-slow in lion. as in *unbelievably* slow. is a fix coming? f
-
I'm migrating from 1.4 to 1.5 and have a question about when casting is legal (and workable) in generics. After reading various literature, it seems that erasure removes type information at run time. Yet casting does seem to work. Here is the source