How to change the skin dynamically
Hi
I have six projects in my application.so each project has trinidad.xml file for Skin configuration. My problem is if I changed the skin at one project it should reflect in all other projects .
When I moved from one .jxpx in a project to another one .jspx in another project within the application the skin need to be set in Trindad-config.xml file
Can u plz post your ideas?????
Thanks for your reply Frank,
Actually Im following the steps you have mentioned,
1.I used selectOneChoice in a .jspx file in the 2nd project to set the skins in the database using the managed beans
2.In the managed bean itself I tried to set in the trindad-config.xml file by setting in the following EL #{sessionScope.skinFamily} and used to refresh the page by redirecting to that particular URL.I have given the following code used in the managed bean
String skin;
public void changeSkin(ValueChangeEvent valueChangeEvent) {
this.skin = (String)valueChangeEvent.getNewValue();
int result = 0;
CommonAppModuleImpl appModuleImpl =
(CommonAppModuleImpl)BackingUtils.getApplicationModuleForDataControl("CommonAppModuleDataControl");
result = appModuleImpl.updateSkin(this.skin);
FacesContext context = FacesContext.getCurrentInstance();
if (result == 1) {
ELContext elContext = context.getELContext();
ExpressionFactory ef =
context.getApplication().getExpressionFactory();
ValueExpression ve =
ef.createValueExpression(elContext, "#{sessionScope.skinFamily}",
Object.class);
ve.setValue(elContext, skin);
} else {
System.out.println("*****Skin value did not change in DB*****");
String currentView = context.getViewRoot().getViewId();
String actionUrl =
context.getApplication().getViewHandler().getActionURL(context,
currentView);
try {
ExternalContext eContext = context.getExternalContext();
String resourceUrl = actionUrl;
eContext.redirect(resourceUrl);
} catch (IOException ioe) {
System.err.println("Problem trying to reload the page:");
ioe.printStackTrace();
3.While Im moving from some1.jspx file in the 2nd project to some6.jspx file in 5th project,
I used the following steps,
In the beforePhase() of the some6.jspx, I called a managed bean and retrived the skin value from the database and set it in the EL but It will not reflect in the trindad-config.xml because when we hit any URL in the project then only the xml files configured.
But while Im trying in the __onLoad()_ in the pageListener controller class_ it works.
this works fine..
this works fine..
this works fine..
But now my problem_ is In my some2.jspx file in 2nd project Im using four panelBox ,in these panel box they used to call the some4.jspx file in the 4th project as inline frame by some URL[] methods.As a beginner I dont know about that.can you please give me Idea about this method
the follwing InlineFrame is used in the panelBox
<af:inlineFrame id="iframe1"
shortDesc="#{bindings.PanelTitleList.items[1].label}"
source="#{url[bindings.PanelUrlList.items[1].label]}" //please note this source url[] method
styleClass="Panel"
partialTriggers="refreshLink1"/>
can you please give me information about this url[[] method
Thanks in Advance,
Felix
Similar Messages
-
How to change the images dynamically in a table.
Hai,
How to change the images dynamically in a table based on the condition in webdynpro abap.
Edited by: Ravi.Seela on Oct 13, 2011 2:17 PMThis has been much discussed earlier. Do search posts.
For your scenario i would do the following.
inside your node which is binded to the table, i create a new node image with cardinality 1 ..1 and a attribute called path of type string.
create a supply function for the node image .
Supply method now has a Element (Parent element ) and node.
Based on your record in element, set the right image source to path attribute and bind the node.
This will make sure that the framework calls the image supply function for every row in a table. -
How to change the image dynamically depend upon the input parameter
Hi All
I have one report running depend upon the Organization specific, I have 15 operating unit and 15 different logo for each operating unit.
How to change the Logo dynamically depend upon the input passed by the user.
If I have three or four logo i can add in my layout using if else statement and its works fine but i have more that 10 logos so its no possible to keep these in My RTF Template.
Is it possible to change the logo according to the input without keeping this in Template.
I have seen this link but its not working fine
http://erpschools.com/articles/display-and-change-images-dynamically-in-xml-publisher
Regards
Srikkanth.MHi,
I have not completed fully,so sorry i cant able to share the files, could you please give me some tips and steps to do.
Without having the logo in RTF if it possible to bring the logo depends on the user input (Ie Operating unit).
Regards
Srikkanth -
How to change the Skin of Siebel Analytics 7.8.5 ?
Hi Cosimo,
Thanks for providing that link. But in that forum it specified how to change the syles only not skins.
For the styles also i have to Copy that style folder & paste it under
//oc4j_bi/j2ee/home/applications/analytics/analytics/res folder. This folder does not exist. Is that Oc4j folder exist under Siebel analytics 7.8.5.?
I need skins also to be changed.
Thanks -
How to change the font dynamically in SAP script
Hello,
There are three fields for a line item to be printed in SAP form (Through Script). The font of one field has to be bigger than rest of the two.
Can anybody tell me how to change the font of a specific field in a line of an SAP-script?
Regards
KiranHi,
Its like any other character format. you can have any field with a character format.
--Ragu -
How to change the skin of a space page dynamically
Hi,
how can we change the page skin( for example font size to different size based ) based on the user.See explenation in the other thread: Change skin on button click
-
How to change the skin at run time
I am using jDeveloper 11.1.1.3 for ADF.
My UseCase: i want to give a dropdown for skins. User should be able to select the skin at run time and it should be loaded. Please let me know how can i achieve it.
ZeeAs per usecase, looks like you have the LOV containing the different skins.
You can ensure that the application is skinned according to the selected value in the LOV.
Ensure that you have a session scope variable that is set, whenever you change the LOV.
For more details, look into this link http://download.oracle.com/docs/cd/E14571_01/web.1111/e10140/skinning.htm
Thanks for your reply, but then...... what will be the skin loaded by default before the user selects the skin - drop down. Do i have to set something default before hand .?Define the LOV such that there are no empty elements. i.e the first element in the LOV is selected.
In the Managed bean, if the session scope is not set, return the skin family for the first element. This would be the scenario when the application loads.
Thanks,
Navaneeth -
How to change the button dynamically?
Hi,
My Application is that,when i will press the button(on state-Enliglish text will come on the button,off state-Hindi Text will come on the button).
So,my problem is that i can't write hindi text on the button,so only way is that i can port the image from the file,so how cal i do this without customizing the button.
With Regards
DibyaBroken Arrow wrote:
Baji wrote:
Place a boolean button in the LabVIEW front pannel and right click>>Advance>>Customize. ......
Message Edited by Baji on 05-29-2009 04:23 PM
The question, for whatever reason, was how to do this without customizing the button, although your solution is obviously the best way to do it, and how it is meant to be done.
So, my question to the original poster, why can't you customize the button like Baji has suggested?
Agreed.
I would also encourage posting both in English and your native tongue to try and clarify the issue.
Looking forward...
Dynamic language changes are best handled using property nodes to change the captions and text of all FP objects. It is a lot of work to set-up the first time but once completed, maintaining the code is straight froward.
If there are issues with just changing properties not fullfilling all reqs then a Picture Control takes care of most of the "all other cases" rather well (but is seldom trivial).
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction -
How to change the content dynamically by date wise
Hi,
In my application, i have a survey module.
In that i have to change the question by every week, which iam getting
from the Database.
Iam using java,and mysql DB, framework struts.
How can i update the question for every week ??
What is the procedure to attain it.
Give me suggestions and tips to startup.
Thanks,
MohanThe cron command would do that on Linux and Solaris. On Windows, use a similar command.
-
How to change the geometry dynamicly
Hello,
I'm a newbie for java3d. I'm developing a degning tool with java3d, and need to change the geometry frequently therefore. However, the 3d result always shows the initial data only. Can someone gives me a hint about what's the problem, and how can I solve it?
Thank you very much!
xiaoni
Following is the relative codes:
private SimpleUniverse su;
private BranchGroup sceneBG;
private BoundingSphere bounds; // for environment nodes
public void paintComponent(Graphics g) {
setLayout(new BorderLayout());
GraphicsConfiguration config = SimpleUniverse.getPreferredConfiguration();
Canvas3D c = new Canvas3D(config);
add("Center", c);
c.addKeyListener(new KeyHandler());
su = new SimpleUniverse(c);
createSceneGraph();
initUserPosition(); // set user's viewpoint
orbitControls(c); // controls for moving the viewpoint
su.addBranchGraph(sceneBG);
public void createSceneGraph() {
sceneBG = new BranchGroup();
bounds = new BoundingSphere(new Point3d(0,0,0), BOUNDSIZE); // for environment nodes
lightScene(); // add the lights
addBackground(); // add the sky
sceneBG.addChild( new CheckerFloor(affine).getBG() ); // add the floor
addBuilding();
// sceneBG.compile(); // fix the scene
private void addBuilding(){
BranchGroup floorBG = new BranchGroup();
ArrayList groundArray = new ArrayList();
int num;
Point3f p1;
Vertex v1;
for (int n = 0; n < buildings.size(); n++) {
ground = buildings.get(n).getGround();
num = ground.getNumber();
for (int i = 0; i < num; i++) {
v1 = ground.getVertex(i);
p1 = new Point3f(v1.x,v1.z,v1.y);
groundArray.add(p1);
floorBG.addChild( new ColouredObj(groundArray, white) );
sceneBG.addChild(floorBG);
}note:
1. buildings is a global variable, which stores the geometry data. When the data is changed somewhere else, the 3D result does not change therefore.
2. ColouredObj is a class extented from Shape3D, which transfer the format from arrayList to quadArray, providing both gemetry and appearance.Ok, thank you for your reply.
In fact, it doesn't change anything on my OBJ objects : they always look strange (Java interpretation of faces more than 3 points is quite strange for me)... I will try to decompose each faces of my objects into triangles, but if you know an other easier method, it would be great !
So, I consider this topic solved, thank you for your help !!!
Regards. -
How to change the pattern dynamically in an Entity Level RegExp Validation?
Hi,
In entity attribute level, i gave a Regular Expression Validation. In validation i hardcode the pattern like [A-Z a-z]{0,25}. Is it possible to assign the Pattern of RegExpValidationBean in Entity from a property file or a EL for getting the pattern.
Example:
<validation:RegExpValidationBean
Name="FirstName_Rule_0"
ResId="SHOULD_BE_ALPHABET"
OnAttribute="FirstName"
Pattern="PATTERN_ALPHABET"
Inverse="false"/>
Can anyone help me regarding this???
Thanks & Regards,
Perumal SHi,
Its like any other character format. you can have any field with a character format.
--Ragu -
How to change the text of a user defined field in dynamic selections?
Logical Database PSJ is used by t code CJI3 - we added a couple of user fields into the dynamic selections of CJI3.
Now - how to change the text of this user filed (USR01 of structure PRSP_R in logical database PSJ)?
Found an OSS note - 86980 - that tells that this is not possible.
But when we read the documentation on the user field (CJI3 - dynamic selections - double click on user field - F1), it shows the following text:
User-defined field in which you can enter general information with a length of up to 20 characters.
Dependencies
The names (key words) for user-defined fields depend on the field key.
Now the question is where to change the field key..
Thanks,
VenMadhu - you did not get the question I think.
Anyways - I found an OSS note 1266643 - this code change should take care of the issue - it will then reflect the details maintained in custoizng at transaction code OPS1..
Thanks, -
How to change the text of label dynamically
Hi all,
I have done a dynpro program.It requires to implement the dynamically display the label text, for example: there is a label, sometimes, we want to display "Purchase Order" and sometimes we want to display "Sales Order". Can anyone tell me how to change the text of label according to my requirements? thanks in advance!Hi Wei,
AS of now you will not be able to change the Text Field ( Label ) dynamically or at runtime. This is a limitation.Refer to this link:
http://help.sap.com/saphelp_nw04/helpdata/en/e4/2adbef449911d1949c0000e8353423/frameset.htm
But, there is a way around.
You can make a text field Visible / Invisible based on your program logic. So, based on what you want, you can process a module which will take care of that.
Have a look at these DEMO Code. You can have a good idea to implement the logic.
DEMO_DYNPRO_MODIFY_SCREEN - Demonstration of Dynamic Screen Modifications
Thanks,
Samantak. -
How to change the JCA JNDI dynamically using FTP Adapter
We have 5 FTP Servers, each having a directory to poll. We have created 5 CCI instances for these FTP Adapters in the FTPAdapter deployment. We created a BPEL process and using FTP Adapter to connect to above mentioned servers.
Question: Customer's requirement is to use a single BPEL process to poll all these FTP Servers at a specified date and time. How can we connect dynamically to each FTP server at specified time.
(OR)
Is there any way to change the JCAJNDI dynamically in a FTP Adapter configuration ?
I have seen that FTP Adapter POLL doesnt take any JCA JNDI/hostname/un/pwd/date/time dynamically.
Regards
PavanHi Pavan,
It's possible to change the JNDI dynamically but only when you use put operation where you can control the JNDI name at the time of invoking the FTP Adapter as described in below link.
Dynamic JNDI in FTP Adapter | jca.jndi property not picked by Adapter
However, can you consider using BPEL process with SyncRead (and read files through all the JNDIs in a loop) and scheduling this BPEL process to a desired frequency?
Regards,
Neeraj Sehgal -
How to change a TAB dynamically to be the active tab?
Hi,
I have a portlet written in Java and registered using a web provider. This portlet exposes a link which drives the content of another portlet through parameters&events.
This other portlet is placed on the same page but on a different TAB (!).
What I want is, when clicked on the link in Portlet1, this changes the content of the Portlet2 (via an event and parameter - that works) AND should change the TAB, so that the TAB which contains the Portlet2 is active and shown.
I couldn't figure out, how to change the TAB with an event or any other way. I can easily change the page through an event, but not to a tab on the same page. Do I overlook something or can I just don't use events for this?
Is there any API function which does changing tabs or getting the tab id or is there any other programmatic workaround to do dynamic tab changing?
If so, can someone point me to a code fragment?
Any help would be much appreciated.
Cheers,
ErikA work around may be to change the location.href to the url of the tab you want to switch to.
Have you tried that already?
Maybe you are looking for
-
Acrobat 9.0 Pro runtime error
Hello! I just installed the brandnew Adobe 9.0 Pro. I can open it but after 3 seconds a runtime error appears: "Program C:\program files\adobe\acrobat9.0\acrobat.exe. This application has requested the runtime to terminate it in an unsusal way." I ha
-
Spotlight web search mod_spotlight_apple docs
Anyone have anymore info regarding Spotlight on OS X Tiger Server? I have gotten this to work but I can't search for file names. I can find the content of any document. I just can not find it by the name of the document or folder. Any ideas? Also how
-
How can I change the startup language when I use the internet?
I have the macbook pro that i have just bought in Russia. The reason I bought it here is because I wanted to have both the English and Russian letters on the keyboard. Apart from that I don't care much for the Russian system, since I have always used
-
I have disabled my phone and forgot my password
help!! how do i get on to my phone without knowing my password
-
The UML Package model could not be resolved - SOLVED
I am using Perforce with JDeveloper 10.1.3.2.0. I have imported a project into Perforce on one machine, then 'p4 sync -f' on another machine. I then created a new application on this machine and added the projects to it. Now, when I try to open a dia