HOW to define a style class apply to the specified component?
Java(TM) 1.6.0_24
Oracle IDE 11.1.2.1.38.60.81
In my skin file, I defined the style that I want use it apply to the af:inputText read-only content.But it's not work.
Can anyone give me some advice for this case?
/* Style class definition in skin file. */
.MyReadOnly af|inputText:read-only::content {
display: block;
margin: 1px;
padding-left: 3px;
padding-right: 2px;
padding-bottom: 1px;
padding-top: 1px;
border: red 1px solid;
font-size: 13px;
font-weight: normal;
height: 13px;
/* Snippet of jspx */
<af:inputText label="Label 2" id="it2" columns="1" contentStyle="width:35px;" readOnly="true" styleClass="MyReadOnly"/>
Edited by: MKevin_OTN on Nov 13, 2012 11:21 PM
That line is an ADF CSS selector.
<font color="red">af|inputText</font>: with this selector you are accessing to any <af:inputText> component (this is not the final html <input/>, is a div/table/tr that contains the final <input/>)
<font color="red">af|inputText:read-only</font>: access only to <af:inputText> components that have readOnly="true".
<font color="red">af|inputText:read-only.MyReadOnly</font>: access only to <af:inputText> components that have readOnly="true" and styleClass="MyReadOnly".
<font color="red">af|inputText:read-only.MyReadOnly::content</font>: access to the content (the final <input/>) of <af:inputText> components that have readOnly="true" and styleClass="MyReadOnly".
AP
Similar Messages
-
How to define different styles to different levels of hierarchical titles?
With difficulty, I found how to define a style for hierarchical titles, i.e.:
1. First level
1.1. Second level
1.1.1. Third level
etc.
But all levels will have the same character parameters (font, size, etc).
What I would like is, e.g.:
1. First level
1.1. Second level
1.1.1. Third level
In MS Word, it is easy: you define a different style for each level. In Pages, I found no way to do this, and no clue in the user's manual.
Is it possible (I guess it should be), and if so, how?
Thanks
ÉricYou need to use the Styles Drawer. Go to: View > Show Styles Drawer. To define a Style, highlight the formatted text then click the plus sign at the bottom of the styles drawer. To delete a style, secondary click on the style and choose Delete Style.
-
How to define dependancy between sowtware comps in the SLD
how to define dependancy between sowtware comps in the SLD,
i have a software comp, in the IR, where i import all RFCs and IDOCs, so that they can be used across all software comps in the IR,
since, IDOCs imported in one software comp, cant be used in another s/w comp,
i need to create that dependancy..............................
how can i mention the dependancy in the SLD....Hi,
Please read the Rules OF Engagement,
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement&
<i>
Do not use words in capital letters and any of the words: urgent, quickly, burning, etc in your message. Especially not in the title! This just irritates and does not help you get to your goal. From our side, we definitely do not answer faster when we see these words.
The same goes for such things as ??? or !!! in appends. In the English language one ? or ! is sufficient to terminate a sentence. </i>
Answering you question, Say you have 2 SWCV's. SWCV A and B. All objects imported in SWCV A should be visible in B. In this case, go to SWCV B and in this, Go to the Dependency Tab , and Select SWCV A here as the dependent Component.
In your IR, Clear SLD Cache and Reimport the 2 SWCV's into the IR and now you will see the Basis Objects in SWCV B. All the existing objects will not be affected as a result of this reimport into IR.
Regards
Bhavesh -
Dvt:Graph How to define own Style Rule Bundle
Hi,
I need help in defining style rule bundle in the backing bean to be used in the styleRuleBundle tag of dvt:graph
say for example I nee need to define the follwing rule...
All data value points below 50 should display in green
from 50-80 it should be yellow and 80-100 must be red in colour...
regardsAdd to your resource bundle:
af_dvt_hv.fetchingData=Your textDario -
How do you have two classes drawing to the same JPanel? Graphics g problem
Hi all,
This is probably a five second answer but im really stuck on it!
How do i have two classes both writing to the same JPanel?
I have one class that extends JPanel and using Graphics g, draws to the panel ie g.drawString(..);
But i would like another class to draw to the same panel, so that the two different classes can both draw what they like to the JPanel.
How do i do this?
I have tried sending the Graphics g object from the one class to the other but only the original class draws still. I was thinking perhaps if it carn't be done could i have a JPanel on top of the other one that is transparent so there would be a tracing paper effect?
Many thanksI have tried sending the Graphics g object from the
one class to the other but only the original class
draws still. I was thinking perhaps if it carn't beThis is the right idea. One problem you may be running into is that JPanel fills in its background with the background color by default. If you switch and use JComponent instead of JPanel you may get better results. Another idea is to use a "painter": a class that has a paint(Graphics g) but is not a component and just paints on a component. I've done this before in implementing Tetris where the dropping piece is a class which can paint itself but is not a component. -
How a submit will call a servelet in the form component
how a submit will call a servelet in the form component
Sunil, you want to look at the "Customizing the LiveCycle® Workspace ES User Interface" document at http://help.adobe.com/en_US/livecycle/9.0/customizeworkspaceui.pdf. The workspace is a Flash component. For ES4 there's an option to run the workspace in HTML5 which might be more productive long-term.
-
How to define a custom class in BDS?
Hi,gurus,
we want to implement BDS to stored our HR project document related with personnel.
we want to have a cusom BDS class, and
we want to stored the document related to another server.
but the customizing for the BDS in SPRO is quite simple, i have no idea on how to fullfill our requirment.
any clue on this?
best regards.
JunHello,
Here are some vital steps that you can follow to be able to attach Documents using BDS.
1. Check and create an entry if required in SBDSV1 for the Business Object. Specify the Logical, Physical and Relational Document Classes here.
2. Remember that you need not create new Classes and can re-use the existing ones as long as you have the possibility to let the attachments created in SAP DB itself. But, if you feel the need that the documents must be created in an external content server, then you have to create a content repository (OAC0) and wrap it in a content category (OACT) and then assign it in the Physical document class (table SDOKPHCL)
3. The attachments can be made to the instance of Business Object in OAOR.
4. Make use of the available methods in the global class CL_BDS_DOCUMENT_SET to suit your needs.
Hope this info gives you the required insight.
With Regards
Vijay Gajavalli -
How to define my startup class in an .ear package?
I am using WL6.0SP2 on solaris.
I plan to package my application as an .ear file and to put all necesarry class
files in there (it will has one .war file for the web tier and one .jar file for
the EJBs).
I want, when Weblogic loads my .ear file (i.e. my application), to execute my
special startup class, which initializes some caches, etc.
I do not want to define a startup/shutdown class in the console, because it is
only specific to my application and this startup class is not present in the weblogic
classpath during weblogic startup.
The correct place should be in application.xml, but I don't see such thing in
the DTD.
Thank you,
Ivaylo ZlatevThere is no way to do this on the EAR level - you can use load-on-startup
servlet(s) in your web component, or initial-beans-in-free-pool=1 EJB.
Ivaylo Zlatev <[email protected]> wrote:
I am using WL6.0SP2 on solaris.
I plan to package my application as an .ear file and to put all necesarry class
files in there (it will has one .war file for the web tier and one .jar file for
the EJBs).
I want, when Weblogic loads my .ear file (i.e. my application), to execute my
special startup class, which initializes some caches, etc.
I do not want to define a startup/shutdown class in the console, because it is
only specific to my application and this startup class is not present in the weblogic
classpath during weblogic startup.
The correct place should be in application.xml, but I don't see such thing in
the DTD.
Thank you,
Ivaylo Zlatev--
Dimitri -
How to define user status that forbids editing the document
Hi All,
Im working on CRM 7.0
I need to define a user status say " ON HOLD" . when this user status is set the document should not be edited or changed by anyone. However as soon as we move to next status document should be editable.
I configured a user status and in the TRANS column
selected CLks .
in the transaction control i have change document set to forbidden.
The problem is when i set this status on the document , the document is locked as desired and i am not allowed to change the status itself (not desired) .
How do i configure the status so that i can also switch between on hold and other user statuses or how can i release the On Hold status?
How do you set the Delete option in transaction control for any allowed transaction for a user status.
Thanks In advance!
SurveeRobert,
Thank you for your input.
We have defined a simple status where in editing is not alllowed by validation during save.
We are controlling the status change from "On hold" to next status by authorization group.
Basically if the user has access to the auth group he can change the status to next status.
Cheers
Survee -
How do I use multiple classes to access the same object?
This should be staightforward. I have and object and I have multiple GUIs which operate on the same object. Do all the classes creating the GUIs need to be inner classes of the data class? I hope this question makes sense.
Thanks,
Mikepublic final class SingletonClass {
private static SingletonClass instance;
private int lastIndex = 10;
public final static SingletonClass getInstance()
if (instance == null) instance = new SingletoClass();
return instance;
public int getLastIndex() {
return lastIndex;
}1) This won't work since one could create a new SingletonClass. You need to add a private constructor. Also, because the constructor is private the class doesn't have to be final.
2) Your design isn't thread-safe. You need to synchronize the access to the shared variable instance.
public class SingletonClass {
private static SingletonClass instance;
private static Object mutex = new Object( );
private int lastIndex = 10;
private SingletonClass() { }
public static SingletonClass getInstance() {
synchronized (mutex) {
if (instance == null) {
instance = new SingletonClass();
return instance;
public int getLastIndex() {
return lastIndex;
}if you are going to create an instance of SingletonClass anyway then I suggest you do it when the class is loaded. This way you don't need synchronization.
public class SingletonClass {
private static SingletonClass instance=new SingletonClass();
private int lastIndex = 10;
private SingletonClass() { }
public static SingletonClass getInstance() {
return instance;
public int getLastIndex() {
return lastIndex;
}If you don't really need an object, then you could just make getLastIndex() and lastIndex static and not use the singleton pattern at all.
public class SingletonClass {
private static int lastIndex = 10;
private SingletonClass() { }
public static int getLastIndex() {
return lastIndex;
}- Marcus -
How to define a dynamic column to count the quarter of each year?
Lets see the result that now displayed:
YEARS MONTHS SUMMONTH SUMYEAR SUMQUARTER
2009 Jan 127994 1766166 449652
2009 Feb 168106 1766166 449652
2009 Mar 153552 1766166 449652
2009 Apr 160329 1766166 438913
2009 May 137605 1766166 438913
2009 Jun 140979 1766166 438913
2009 Jul 148606 1766166 435283
2009 Aug 150390 1766166 435283
2009 Sep 136287 1766166 435283
2009 Oct 149529 1766166 442318
2009 Nov 153268 1766166 442318
2009 Dec 139521 1766166 442318
2010 Jan 124670 1721212 407181
2010 Feb 139278 1721212 407181
2010 Mar 143233 1721212 407181
2010 Apr 149518 1721212 444112
2010 May 152292 1721212 444112
2010 Jun 142302 1721212 444112
2010 Jul 149125 1721212 412855
2010 Aug 130328 1721212 412855
2010 Sep 133402 1721212 412855
2010 Oct 157754 1721212 457064
2010 Nov 137078 1721212 457064
2010 Dec 162232 1721212 457064
The problem is about how to dynamic a new column called "Q_count" to count each displayed row belong to which quarter of year??
In addition, it will repeat again from next year.
For example:
*2009 Jan-Mar will display "q1", Apr-Jun will display "q2".....and for 2010 Jan-Mar, it will display "q1" again and so on.*
Here is my sql that I am using:
select years,months,summonth,sumyear,sumquarter
from(
select years,months,summonth,sumyear,
sum(sumhour) over(partition by years || to_char(ym, 'Q') order by years || to_char(ym, 'Q')) sumquarter,ym
from(
select years, months, days, hours, mins, sumHour, SUM (sumHour) OVER (PARTITION BY years,months,days) sumDay, SUM (sumHour) OVER (PARTITION BY years,months) sumMonth, SUM (sumHour) OVER (PARTITION BY years) sumyear,
to_date(years || months, 'YYYYMon', 'NLS_DATE_LANGUAGE=American') ym
from (SELECT x.years, x.months, x.days, x.hours, x.mins, sum(x.value) as sumHour
FROM xmltest,
XMLTABLE ('$d/cdata/name' passing xmldoc as "d"
COLUMNS
years integer path 'year',
months varchar(3) path 'month',
days varchar(2) path 'day',
hours varchar(2) path 'hour',
mins varchar(2) path 'minute',
value float path 'value'
) as X
group by x.years, x.months, x.days, x.hours, x.mins
order by x.years, x.months, x.days
group by years,months,summonth,sumyear,sumquarter,ym
order by ymThanks everyone helps me!!!If my understanding is correct..
select years,months,summonth,sumyear,sumquarter,qtr
from(
select years,months,summonth,sumyear,to_char(ym, 'Q') qtr,
sum(sumhour) over(partition by years || to_char(ym, 'Q') order by years || to_char(ym, 'Q')) sumquarter,ym
from(
select years, months, days, hours, mins, sumHour,
SUM (sumHour) OVER (PARTITION BY years,months,days) sumDay,
SUM (sumHour) OVER (PARTITION BY years,months) sumMonth,
SUM (sumHour) OVER (PARTITION BY years) sumyear,
to_date(years || months, 'YYYYMon', 'NLS_DATE_LANGUAGE=American') ym
from (
SELECT x.years, x.months, x.days, x.hours, x.mins, sum(x.value) as sumHour
FROM xmltest,
XMLTABLE ('$d/cdata/name' passing xmldoc as "d"
COLUMNS
years integer path 'year',
months varchar(3) path 'month',
days varchar(2) path 'day',
hours varchar(2) path 'hour',
mins varchar(2) path 'minute',
value float path 'value'
) as X
group by x.years, x.months, x.days, x.hours, x.mins
order by x.years, x.months, x.days
order by ymEdited by: jeneesh on Mar 26, 2012 5:49 PM
Removed unnecessary GROUP BY -
How to avoid displaying a blank row in the table component
Hi,
I have a create insert button and a table as in a read only form.
Each time i click on a create insert button a popup appears were the person enter the corresponding values and on clicking submit button it has to show changes in the table and on clicking cancel button it has to go back to the page.
But even when i click the cancel there is still an empty row is shown in the table. Is there a way to avoid it ?
Thanks in advance.I am using this managed bean to refresh the table.
public class popupRefreshBean
private RichTable refreshTable;
public popupRefreshBean()
public void refreshTable(ReturnEvent returnEvent)
AdfFacesContext adf=AdfFacesContext.getCurrentInstance();
adf.addPartialTarget(this.getRefreshTable());
// Add event code here...
public void setRefreshTable(RichTable refreshTable)
this.refreshTable = refreshTable;
public RichTable getRefreshTable()
return refreshTable;
} -
How to send output from SQL script to the specified log file (not *.sql)
## 1 -I write sql command into sql file
echo "SELECT * FROM DBA_USERS;">results.sql
echo "quit;">>results.sql
##2- RUN sqlplus, run sql file and get output/results into jo.log file
%ORACLE_HOME/bin/sqlplus / as sysdba<results.sql>>jo.log
It doesn't work please advise$ echo "set pages 9999" >results.sql ### this is only to make the output more readable
$ echo "SELECT * FROM DBA_USERS;" >>results.sql
$ echo "quit" >>results.sql
$ cat results.sql
set pages 9999
SELECT * FROM DBA_USERS;
quit
$ sqlplus -s "/ as sysdba" @results >jo.log
$ cat jo.log
USERNAME USER_ID PASSWORD
ACCOUNT_STATUS LOCK_DATE EXPIRY_DAT
DEFAULT_TABLESPACE TEMPORARY_TABLESPACE CREATED
PROFILE INITIAL_RSRC_CONSUMER_GROUP
EXTERNAL_NAME
SYS 0 D4C5016086B2DC6A
OPEN
SYSTEM TEMP 06/12/2003
DEFAULT SYS_GROUP
SYSTEM 5 D4DF7931AB130E37
OPEN
SYSTEM TEMP 06/12/2003
DEFAULT SYS_GROUP
DBSNMP 19 E066D214D5421CCC
OPEN
SYSTEM TEMP 06/12/2003
DEFAULT DEFAULT_CONSUMER_GROUP
SCOTT 60 F894844C34402B67
OPEN
USERS TEMP 06/12/2003
DEFAULT DEFAULT_CONSUMER_GROUP
HR 47 4C6D73C3E8B0F0DA
OPEN
EXAMPLE TEMP 06/12/2003
DEFAULT DEFAULT_CONSUMER_GROUPThat's only a part of the file, it's too long :-) -
Hi,
In my skin I have defined 2 style classes:
.myFooterCenter af|panelBox::footer-center:core:default {
background-image: none;
.myFooterEnd af|panelBox::footer-end:core:default {
background-image: none;
I would like to group them to one user style class because they have the same properties.
how could I do that?
ThanksBut I would like to use only one style class instead of 2.
something like this:
.myFooter
af|panelBox::footer-center:core:default,
af|panelBox::footer-end:core:default {
background-image: none;
I want 'myFooter' style class to include both.
how could I do that? -
How to define new classpath of libraries while making jar files with ant
I am useing eclipse and ant and trying to make a jar file. I have used some external jar files. I have managed to add external jar files to my jar. But Still I have a problem. In my project all libraries in lib folder. But when I put them into jar file. They are in the root folder.Classpath has changed and It couldn't find the class path.
Is there any body knows how to define a new class path for external libraries with ANT. or How can I put my libraries into a lib folder in jar ?? I think both of them would solve my problem.
thanks in advance.
My code is like that, I think it requires a little modification
<target name="jar">
<mkdir dir="build/jar"/>
<jar destfile="build/jar/Deneme.jar" basedir="build/classes" >
<manifest>
<attribute name="Main-Class" value="${main-class}"/>
</manifest>
<fileset dir="${lib.dir}" includes="**/*.jar"/>
</jar>
</target>I can see why your other "question" was likely deleted. You need to drop the editorial comments and just ask a question. I believe what you want to know is how to configure something using php on your Apache server so that it can be read. If that's your question, here's a couple of places that discuss the topic:
http://www.webmasterworld.com/linux/3345459.htm
http://forums.macrumors.com/showthread.php?t=427742
http://en.allexperts.com/q/PHP5-3508/configuring-installing-permissions.htm
For a general introduction to 'nix permissions, take a look at this:
http://www.osxfaq.com/Tutorials/LearningCenter/UnixTutorials/ManagingPermissions /index.ws
And here's a whole book on the subject of Leopard permissions:
http://my.safaribooksonline.com/9780321579331
Try doing a Google search on "leopard permissions php apache" and see if you find what you are looking for.
Francine
Francine
Schwieder
Maybe you are looking for
-
How can I change the color of an event?
iCal 4.0.4. Is there any way to use different colors for different events? Or for that matter, have more than two groups? I used Entourage for years and it has a calendar with plenty of options for using a variety of colors. For example, I had all my
-
Windows 8 and CUWN 7.4.100.6
We are having many issues with Windows 8 clients comming onto campus this semeseter. Running 7.4.100.6 (also upgraded one WLC to 7.4.110.0) and many Win 8 devices will not connect, some can't even see SSID's. Then if the bring the notebook to a dif
-
D600 .NEF files won't open in CS5 Camera Raw?
.NEF files taken on my new Nikon D600 won't open in CS5 Bridge Camera Raw. Error Message: The Photoshop Camera Raw plug-in did not recognise the format of one or more files." .NEF files taken with the Nikon D90 are opening perfectly. There must be
-
Hi, We are using three tier architecture, one for front end, mts in vb as application server and a database server for oracle, We have written some of the procedures. If i give commit in stored procedures it gives the error ORA-02089: COMMIT is not a
-
IBM Thinkpad T20 mouse not recognized
I cannot startx after running 'xf86config' due to the mouse (actually the little red trackpointer on the keyboard) not being recognized. I set it up as a PS/2 mouse and per the FAQ added the lines in /etc/devfsd.conf to establish the symlink. I've