Monday, September 19, 2011

EL Expression Used to Set an inlineStyle Attribute

<af:outputText value="#{row.assignedDate eq 
    null?res['srsearch.unassignedMessage']:row.assignedDate}"
              inlineStyle="#{row.assignedDate eq null?'color:rgb(255,0,0);':''}"/>
 

Friday, September 16, 2011

ADF Table Skinning

af|table::data-row:selected:inactive af|column::data-cell, af|table::data-row:selected:inactive af|column::banded-data-cell, af|table::data-row:selected:focused af|column::data-cell {
    background-color: rgb(156,172,201);
}
 
af|table::data-row:selected af|column::data-cell, af|column::data-cell:selected {
    background-color:       rgb(102,255,51);
}
 
af|table::data-row:selected af|column::banded-data-cell, af|column::banded-data-cell:selected {
    background-color:         rgb(102,255,51);
}
 
/* Focus row */
af|table::data-row:selected:focused af|column::banded-data-cell {
    background-color: Green;
}
 
af|table::data-row:selected:focused af|column::data-cell {
    background-color: Fuchsia;
}
 
/* hover row */
af|table::data-row:highlighted af|column::data-cell, af|column::data-cell:highlighted {
    background-color:       rgb(28,62,172)
}
 
af|table::data-row:highlighted af|column::banded-data-cell, af|column::banded-data-cell:highlighted {
    background-color: Aqua;
}
 
af|table::content TR:hover {
    background-color: Gray;
}
 
af|table::content TR:hover TD {
    background-color: Orange;
}
 

Friday, July 22, 2011

Whoz a boy????


I think everyone might have read abt Mom's, Wife's and Girl's...

Its time to learn something abt Men...

Who is a boy / man ?

A boy/man  is one of the most beautiful creations of God.



He starts compromising at very tender age. He sacrifices his chocolates for his sister.

    



Later he sacrifices his love for just a smile on his parents face. He sacrifices his love for his wife and children by working late nights.





He builds their future by taking loans from banks and then repaying them for the life time. Thus he sacrifices full youth for his wife and children without any complain.
   
Believe me he struggles a lot but still has to hear the music (scolding) of Mother, wife and his boss. Yet every mother, wife and boss tries to have control over him.

                                  
Finally his life ends up by compromising for others happiness. He is that creature of God who no one can compete with.
   
Respect every boy/man in your life. You will never know what he has sacrificed for you.
 
Just extend your hand when he needs it and you shall receive twice fold love from him.

Enough Of Girls /women / Wife Emotional Mails Now…  Boys also Have Emotions and respect it.  PEACE 
If you are a man be proud and if you are a girl kindly forward to the men/women so that they can understand what you have understood. J

Tuesday, May 31, 2011

Creating XML

set serveroutput on size 100000;
DECLARE
a CLOB;
ctx DBMS_XMLGEN.ctxhandle;
c_amount CONSTANT BINARY_INTEGER := 32767;
l_buffer VARCHAR2 (32767);
l_chr10 PLS_INTEGER;
l_cloblen PLS_INTEGER;
l_fhandler UTL_FILE.file_type;
l_pos PLS_INTEGER := 1;
BEGIN
ctx := DBMS_XMLGEN.newcontext ('select * from ORDERS_MVA1COB where rownum<4');
DBMS_XMLGEN.setrowsettag (ctx, 'ORDERS');
DBMS_XMLGEN.setrowtag (ctx, 'ORDER');
a := DBMS_XMLGEN.getxml (ctx);
l_cloblen := DBMS_LOB.getlength (a);

WHILE l_pos < l_cloblen
LOOP
l_buffer := DBMS_LOB.SUBSTR (a, c_amount, l_pos);
EXIT WHEN l_buffer IS NULL;
l_chr10 := INSTR (l_buffer, CHR (10), -1);

IF l_chr10 != 0
THEN
l_buffer := SUBSTR (l_buffer, 1, l_chr10 - 1);
END IF;

DBMS_OUTPUT.put_line (l_buffer);
l_pos := l_pos + LEAST (LENGTH (l_buffer) + 1, c_amount);
END LOOP;
END;