How to use postback property for JSF to reneder a popup only once
Hi All,
I'm using java script function to show a JSF page as popup. I have called the javascript function on page load of another JSF page.
How do i make sure that the popup is getting rendered only once and not everytime the page is getting refreshed .
Can i use postback property in JSF page for this purpose ?
Thanks in Advance.
try postback..
Boolean postBackValue = (Boolean)resolveExpression("#{adfFacesContext.postback}");
Boolean defaultBooleanValue = new Boolean("false");
if (postBackValue.equals(defaultBooleanValue)) {
public static Object resolveExpression(String expression) {
FacesContext ctx = FacesContext.getCurrentInstance();
Application app = ctx.getApplication();
ExpressionFactory elFactory = app.getExpressionFactory();
ELContext elContext = ctx.getELContext();
ValueExpression valueExp = elFactory.createValueExpression(elContext,expression,Object.class);
return valueExp.getValue(elContext);
}
Similar Messages
-
How to use the property-loader?
Hello,
i´m using TS 3.5 and LV 8.0. Now i also want to use the built-in property-loader from Teststand.
Is there somewhere a documentation for "beginners" how to use this property-loader? At the end i want to read parameters from an ascii-file which updates my input-parameters of the steps in the current-sequence.
I know how to read and change parameters from teststand in labview via active-x, but i have no idea how to use this propertyloader-thing.
Is there an easy help file somewhere in the net ( I havent found one yet)?
Thanks for your help.Meanwhile i can use the propertyloader for Limits and Variables which are in a container of the teststep. What not worked was:
1.) setting the properties of a "Messagebox". For example the property "Button1Label". Why is this not working?
2.) The second thing what is not clear: Do i need for each sequence an own property-loader? I tested it with a sequence with one subsequence. Does the subsequence needs its own property-loader?
Currently the import-csv-file looks like this:
Start Marker,,,
<Step Name>,Limits.Low,Limits.High,Cont.Voltage
TestStep_1,1,2,4
TestStep_2,8,16,32
End Marker,,,
When Teststep_1 and Teststep_2 are both in mainsequence then it works. When i copy Teststep_2 in a subsequence then i get an error (-18).
Any ideas about my two questions?
Thanks -
How to use ternary operator in JSF using EL expression
how to use ternary operator in JSF using EL expression
I want to use ternary operator for h:datatable columnclasses attribute like as below
<h:datatable
columnClasses="#{booleanExpression ? style1,style2 : style3,style4}"
/>
But it's not working.Is there any other alternative to do this? -
How to use Batch operation for two xsodata services?
Hi All,
I have two xsodata services. How to use submit batch for two xsodata services
Thanks,
MjGateway Batch Calls from SAPUI5
-
How to use same actions for differ pop-up
Hi gurus,
I am using 2 popup in a view.same popup's having same buttons 'Yes', 'No'.when i use 1st one i have to create an action for that Yes button where i put my code for that particular Action.
But when i used 2nd one the action define for that is not acceptable with differ name.it takes only standard one.
Now my Query is : How to use same actions for differ pop-up buttons with in a similar view?Where i put my code.
Plz sugges me.
<b>Points will be sured.</b>
Sanket sethiHi,
Take one integer value attribute in the context of view
when you r performing action on POP1 set it's value to 1
when you r performing action on POP2 set it's value to 2
create one method which receives integer argument, say diaplay(int a)
In the action call display(wdContext.currentContextElement().get<intvariable>()) by passing the value in the context attribute
in display() method, Check the value of integer variable..
if it is 1 then perform action related to POP1
if it is 2 then perform action related to POP2
Regards
LakshmiNarayana -
How to use same actions for differ pop-up buttons
Hi gurus,
I am using 2 popup in a view.same popup's having same buttons 'Yes', 'No'.when i use 1st one i have to create an action for that Yes button where i put my code for that particular Action.
But when i used 2nd one the action define for that is not acceptable with differ name.it takes only standard one.
Now my Query is : How to use same actions for differ pop-up buttons with in a similar view?Where i put my code.
Plz sugges me.
<b>Points will be sured.</b>
Sanket sethiHi ,
u can use the method SUBSCRIBE_TO_BUTTON_EVENT of the IF_WD_WINDOW interface ... to handle the event fired by the popup .....used this method after creating the popup window ...
regards
Yash -
How to Use PM BAPI for equipment Master upload : BAPI_EQUIPMENT_SAVEREPLICA
Hi ,
How to use PM BAPI for equipment Master upload : BAPI_EQUIPMENT_SAVEREPLICA.
May i know what are the input parameters & fields mandatory
for each Table structures ct_data , ct_datax , it_descript , it_longtext.
Can any one explain me Step by Step Process.
B'cos i tried with below code. Equipment is not getting created.
wa_itab-equipment_ext = '000000000100000001'.
wa_itab-descript = 'Test 2 -> Lube Oil Pump'.
wa_itab-text_language = 'EN'.
wa_itab-sdescript = 'Short Description'.
APPEND wa_itab TO it_itab.
CLEAR wa_itab.
LOOP AT it_itab INTO wa_itab.
ct_data-ta_guid = '000000000000000001'.
ct_data-equipment_ext = wa_itab-equipment_ext.
ct_data-descript = wa_itab-descript .
ct_data-valid_date = sy-datum.
ct_data-equicatgry = 'M'.
APPEND ct_data.
CLEAR ct_data.
ct_datax-ta_guid = '000000000000000001'.
ct_datax-equipment_ext = 'X'.
ct_datax-equipment = 'X'.
APPEND ct_datax.
CLEAR ct_datax.
it_descript-ta_guid = '000000000000000001'.
it_descript-text_language = wa_itab-text_language.
it_descript-descript = wa_itab-sdescript .
APPEND it_descript.
CLEAR it_descript.
it_longtext-ta_guid = '000000000000000001'.
it_longtext-text_language = wa_itab-text_language.
it_longtext-text_id = 'LTXT'.
it_longtext-text_line = 'SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS'.
APPEND it_longtext.
CLEAR it_longtext.
it_longtext-ta_guid = '000000000000000001'.
it_longtext-text_language = wa_itab-text_language.
it_longtext-text_id = 'INTV'.
it_longtext-text_line = 'aaaaaaaaaaaaaaa'.
APPEND it_longtext.
CLEAR it_longtext.
it_longtext-ta_guid = '000000000000000001'.
it_longtext-text_language = wa_itab-text_language.
it_longtext-text_id = 'INTV'.
it_longtext-text_line = 'bbbbbbbbbbbb'.
APPEND it_longtext.
CLEAR it_longtext.
it_longtext-ta_guid = '000000000000000001'.
it_longtext-text_language = wa_itab-text_language.
it_longtext-text_id = 'INTV'.
it_longtext-text_line = 'cccccccccccccccc'.
APPEND it_longtext.
CLEAR it_longtext.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
call BAPI-function in this system
CALL FUNCTION 'BAPI_EQUIPMENT_SAVEREPLICA'
TABLES
ct_data = ct_data
ct_datax = ct_datax
it_descript = it_descript
it_longtext = it_longtext
return = return
EXCEPTIONS
OTHERS = 1.
IF sy-subrc = 0.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
WRITE : 'Successful'.
ENDIF.
IF NOT return IS INITIAL.
LOOP AT return.
IF return-type = 'A' OR return-type = 'E'.
WRITE : 'Error'.
ENDIF.
ENDLOOP.
ENDIF.
REFRESH return.
ENDLOOP.
Regards
SUrendarHi ,
How to use PM BAPI for equipment Master upload : BAPI_EQUIPMENT_SAVEREPLICA.
May i know what are the input parameters & fields mandatory
for each Table structures ct_data , ct_datax , it_descript , it_longtext.
Can any one explain me Step by Step Process.
B'cos i tried with below code. Equipment is not getting created.
wa_itab-equipment_ext = '000000000100000001'.
wa_itab-descript = 'Test 2 -> Lube Oil Pump'.
wa_itab-text_language = 'EN'.
wa_itab-sdescript = 'Short Description'.
APPEND wa_itab TO it_itab.
CLEAR wa_itab.
LOOP AT it_itab INTO wa_itab.
ct_data-ta_guid = '000000000000000001'.
ct_data-equipment_ext = wa_itab-equipment_ext.
ct_data-descript = wa_itab-descript .
ct_data-valid_date = sy-datum.
ct_data-equicatgry = 'M'.
APPEND ct_data.
CLEAR ct_data.
ct_datax-ta_guid = '000000000000000001'.
ct_datax-equipment_ext = 'X'.
ct_datax-equipment = 'X'.
APPEND ct_datax.
CLEAR ct_datax.
it_descript-ta_guid = '000000000000000001'.
it_descript-text_language = wa_itab-text_language.
it_descript-descript = wa_itab-sdescript .
APPEND it_descript.
CLEAR it_descript.
it_longtext-ta_guid = '000000000000000001'.
it_longtext-text_language = wa_itab-text_language.
it_longtext-text_id = 'LTXT'.
it_longtext-text_line = 'SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS'.
APPEND it_longtext.
CLEAR it_longtext.
it_longtext-ta_guid = '000000000000000001'.
it_longtext-text_language = wa_itab-text_language.
it_longtext-text_id = 'INTV'.
it_longtext-text_line = 'aaaaaaaaaaaaaaa'.
APPEND it_longtext.
CLEAR it_longtext.
it_longtext-ta_guid = '000000000000000001'.
it_longtext-text_language = wa_itab-text_language.
it_longtext-text_id = 'INTV'.
it_longtext-text_line = 'bbbbbbbbbbbb'.
APPEND it_longtext.
CLEAR it_longtext.
it_longtext-ta_guid = '000000000000000001'.
it_longtext-text_language = wa_itab-text_language.
it_longtext-text_id = 'INTV'.
it_longtext-text_line = 'cccccccccccccccc'.
APPEND it_longtext.
CLEAR it_longtext.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
call BAPI-function in this system
CALL FUNCTION 'BAPI_EQUIPMENT_SAVEREPLICA'
TABLES
ct_data = ct_data
ct_datax = ct_datax
it_descript = it_descript
it_longtext = it_longtext
return = return
EXCEPTIONS
OTHERS = 1.
IF sy-subrc = 0.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
WRITE : 'Successful'.
ENDIF.
IF NOT return IS INITIAL.
LOOP AT return.
IF return-type = 'A' OR return-type = 'E'.
WRITE : 'Error'.
ENDIF.
ENDLOOP.
ENDIF.
REFRESH return.
ENDLOOP.
Regards
SUrendar -
How to use Web Serivce for not jsr 172 phone
Hi:
Is anyone know, how to use web service for phones that only have standard J2ME package installed (without jsr 172 web service packagenstalled)?
thank youHi,
I think you need to write the code for this from scratch (built on top of existing HTTP functionality). There may be open-source J2ME code you could use. I've never tried this so I'm afraid I don't know any more. But maybe that is what you were asking... i.e. does anyone have code that does this already...
Tx,
Sam -
How to use 2 GL for loss made on asset retirement w/o revenue ?
how to use 2 GL for loss made on asset retirement w/o revenue.
hello everyone
i have some trouble.
my company want to use 2 GL account for asset retirement
example some time use GL 6500001 some time use 6500002
in standard configuration AO90 , field loss made on asset retirement w/o revenue, there is only one field.
so i can use only one G/L.
it' s not good if i must to change configuration (and transport request )every time that user need to change GL.
now i got one idea.
i know that table T095 keep account determinaton and GL account data.
so if i make program that change data from table T095 directly. i donot need to change config everytime.
but i am not sure that this way will make impact other standard program or not.
i will wait for better idea from everyone.
please help.Substitution consist of several steps each with two parts:
1- Prerequisite
2- Replacement
If the prerequisite is satisfied (TRUE), substitution (Replacement) is performed.
Transaction Code: OBBH.
Thank you
Javed -
Explain how to use standard LSMW for MM01
Can anyone explain how to use standard LSMW for MM01 Tcode.pls explain briefly.
Hi
Create a project using 0020 as method.
Max -
How to use content conversion for Complex structure
Hi All,
I want to know how to use content conversion for the following complex structure:
Data
...Details 1 to Unbound
.....Header 1 to 1
.......HF1
.......HF2
.......HF3
.......ITEM 1 to unbound
.........ITF1
.........ITF2
all are of type string.
Thanks & Regards,
Viswanath
Message was edited by: Viswanath MenteHi,
In the content conversion,
give ur
1.document name as message type
2.give ur recordstructure as Details,,Header,1,ITEM,
3.mention ur keyfield.
conversion parameter
Header.fieldFixedLength - give the field lengths
Header.fieldNames=mention all the field name
Header.keyField=enter the value of keyfield
Header.endSeparator='nl'
repeat the same for Item
regards
jithesh -
How to use java api for function activity in embed oracle workflow?
because i can't install standalone oracle workflow successfully.
pls tell me how to use java api for function activity in embed oracle workflow?
are there some patch or pulg-in package?
ths a lot...........The Java Function Activity Agent is not certified for Oracle Workflow embedded in Oracle Applications. Installing standalone workflow should be a lot easier than what you have found, although it looks like you did hit a Pentium 4 issue with the Oracle Universal Installer. I suggest you contact Oracle Support or Oracle Consulting for assistance.
because i can't install standalone oracle workflow successfully.
pls tell me how to use java api for function activity in embed oracle workflow?
are there some patch or pulg-in package?
ths a lot........... -
i want to know that i have recently create an apple id, i want to know that how i can use this id for gsx(without paid) or how to use this id for knowlaged
pls give braef intro about all this things, i have searched on sites but i am not getting exact thing and meaning pls help
and i wnat to complete hardware exam of mac what should i do
thanks
vicckeyGSX, if you're referring to Apple's service by that name, is available only to employees of Apple-authorized service providers or self-servicing accounts. Unless you are employed by such an organization, you cannot access GSX. If you are employed by such an organization, they should set you up and give you the appropriate login information.
If you are interested in becoming a certified Apple hardware technician, you can find information here:
http://training.apple.com/certification/acmt
Please note, though, that certification does not in and of itself give you access to any of the Apple resouces for support organizations; diagnostic tools, parts ordering, etc. You again must be employed by an authorized Apple support provider before you can gain such access.
I have no idea what "knowlaged" might be.
Regards. -
How to use a dictionary for multi languages when displaying mess
how to use a dictionary for multi languages when displaying messages??
1st you have to define new messages in the dictionary:-
1. We have to open the application.
2. Functional administrator responsibility.
3. Core services.
4. Messages.
• Create message button.
• Now fill the name of the message that we want to call it from our code in the Code field.
• Fill the application name with short name of the application.
• Choose the language.
• Set the text you want to be displayed.
2nd, Now in the CO in the in the process form request you will code throw new OAException ("application short name","Code").
Now run and see the result.
3rd we want to use Arabic messages, use the same one you have created for saving as an example but you choose duplicate and set the language Arabic.
• Run the page.
• Choose preferences.
• Current Session language = Arabic.
Now you can see the result. -
How to use Bapi BAPI_ACC_DOCUMENT_POST for g/l account document posting
Hi all,
I am using BAPI_ACC_DOCUMENT_POST bapi for g/l account documents posting.as I am first time using BAPI in my program.can anyone give details about how to use this BAPI for document postings.what importing parameters need to be passed , which exporting parameters need to be passed and which tables need to be used.
Thanks in advance.
Regards,
HarshadaModerator message - Please search before asking - post locked
Rob
Maybe you are looking for
-
Ever since updating my iOs to 7 I can no longer download apps from the store.
It will ask for my password like normal but then it will tell me that 'such and such app cannot be purchased at this time.' I've tried signing in and out of my apple ID, restarting my phone, etc, etc but nothing seems to be working. Any leads on how
-
Bug in Oracle XSchema Processor for Java v1 (recently released)
Running the sample file is giving the following error. Is this a bug Thanks Exception in thread "main" java.lang.NoSuchMethodError at oracle.xml.parser.schema.XSDBuilder.initParser(XSDBuilder.java:260) at oracle.xml.parser.schema.XSDBuilder.build(XSD
-
Acrobat won't start on Ubuntu (similar to other distros)
I hacked thru acroread and got it to start on Ubuntu. Take a look at my post on the Ubuntu Forums: http://ubuntuforums.org/showthread.php?t=449096 I just downloaded the tar file from adobe.com today (5/19/07) which means that Adobe still has crap cod
-
Dates getting wiped from Service Plan line item
Hi All, We are currently facing an issue in the dates management on the service contracts. When we create a service contract and without saving if we change start date at the header we come across the following issues 1) Date rule gets wipes out from
-
GT 70 2PC - HDD working in the background/display issue
Hi guys, I experienced 2 strange problems with my MSI GT70 2PC Dominator: First of all, after installing my SSD and fresh installation of Win 7, the HDD still is to hear(led is indicating it as well) while booting the system. Is it normal that the HD