How can i invoke the set method before value change listener?
Hi,
My code is like this:
<af:selectManyCheckbox value="#{bean.statusList}"
binding="#{bean.statusCheckBox}"
label=" " autoSumit="true"
valueChangeListener="#{bean.changeStatusList}"
id="dc_smc1" layout="vertical"">
<f:selectItems value="#{bean.statusBuckets}"
id="statusBuckets"/>
</af:selectManyCheckbox>
public void changeStatusList(ValueChangeEvent valueChangeEvent)
//in this method, i want to set the statusList by myself, this is not the same with the ui.
public void setStatusList(List<String> statusList)
this.statusList = statusList;
public List<String> getStatusList()
return statusList;
As i set the autoSumit="true", then no matter what i set the statusList in the method changeStatusList, it will be reset the value after invoke the method setStatusList, Therefore, it will always change the checkbox status through ui operation, i cannot change it through code.
Pl help me!
Thanks,
Emma
Emma, which jdev version do you use?
As you have set the value property to the list you try to change in the valueChangeListener method this is expected behavior. If the list is bound to the af:selectManyCheckbox values you can't change it with a set method.
It would help if you tell us what you are trying to do in a broader scope.
Timo
Similar Messages
-
How can I invoke the web service manually in websphere?
Hi
I've developed a webservice application using Rational Application Developer (RAD). I deployed it in a websphere 6.1 application server, using the administration console to import the war file that I had previously exported with RAD.
My webservice application is listed in the "Enterprise Applications" section of websphere's administration console as started.
My question is: how can I invoke the web service manually? Is there some kind of websphere generated webpage that I can use to call it manually?
I tried http://<server:port>/<contextroot> and http://<server:port>/<contextroot>/<servicename> in a webbrowser, but it doesn't work. Is it possible to invoke the web service manually, or do I need to develop a client?
Thanks in advance
PedroHi Bo Wang,
Go to the Portal -> System Administration -> System Configuration
-> Portal Content folder
-> Open Visual Composer folder
There you can see the Webservice Systems you have created through VC.
You can delete the unwanted system here.
Regards,
Shemim -
My beautiful teens tried to decode my iphone and got me up to 22,000 minutes to reset my old iphone that i now use as a radio to listen to pandora music. how can i reset the setting and bypass the disabled msg
If you want to Restore iPhone Firmware. Open iTunes on computer. Connect iPhone to computer with USB Cable. Then hold both home and power buttons until iTunes recognizes iPhone in Recovery Mode. This usually takes about 20 seconds of holding both buttons. Then click Restore button of iTunes.
-
How can I print the Help page before I quit iTunes to open a Library?
How can I print the HELP page, before I quit iTunes to create a new library?
File > Print
-
How can i find the file size before downloading
I am trying to decide if I want to download a tv show [Doctor Who] in standard definition or high definition. How can I see the file size before I purchase the show from iTunes?
1. That's only getting the file size of the Preview.
2. Click on a photo to select it. Then click on the info button. You can get the dimensions and the file size in the top of the pane
Note that the final size of any image will depend on the export settings you choose. -
How can I call the create method in BO from Application Service
Hello!
When I create a Business Object, CAF generates some methods automatically.
How can I call the create method in the BO from Application Service logic?
When i call the method then the entityManager and the sessionContext is NULL.
How can I initialize this?
Can anybody help me?
Thanks, ThomasIf you are using CE 7.11...
1) In the Application Services, add the BO as dependant object in dependencies tab.
2) In the implemention, add the following codes to call create method of the BO:
this.get<BO>.createMethod();
julius -
How can I deploy the setting of clear cache on exit for all users?
How can I deploy the setting of clear cache on exit for all users?
Note that Firefox disables the disk cache if you use "Clear history when Firefox closes" to clear the cache (see about:cache), so you can either disable the disk cache via its related pref or set the prefs related to clearing this data,but then other items that have a check-mark by default are cleared as well.
*browser.cache.disk.enable
*privacy.clearOnShutdown.cache
*privacy.sanitize.sanitizeOnShutdown
You can use a mozilla.cfg file in the Firefox program folder to lock prefs or specify new (default) values.
Place a local-settings.js file in the defaults\pref folder where also the channel-prefs.js file is located to specify using mozilla.cfg.
pref("general.config.filename", "mozilla.cfg");
These functions can be used in the mozilla.cfg file:
defaultPref(); // set new default value
pref(); // set pref, but allow changes in current session
lockPref(); // lock pref, disallow changes
See also:
*http://kb.mozillazine.org/Locking_preferences
*http://mike.kaply.com/2012/03/16/customizing-firefox-autoconfig-files/
*http://mike.kaply.com/2014/01/08/can-firefox-do-this/ -
How can I disable the setting "Needs password" in the mediathek settings?
How can I disable the setting "Needs password" in the mediathek settings for "Share my mediathek in my local network"? I unchecked it, but as soon as I opened itunes again, it was checked again. It was no problem unchecking the corresponding box with my laptop. This is important for me because otherwise I cannot watch my mediathek-content with Apple TV. Thank you for your help. Regards Klaus Hausmann
I am afraid you will just have to ignore it.
-
How can i rerun the set up assistant?
How can i rerun the set up assistant?
See the 'seond chance' option here - http://www.pondini.org/OSX/SetupLion.html.
Good luck,
Clinton -
HI Experts,
Pls. clarify that, How can I pull the BUKRS (company code) value, for a X_USER (sy-uname) as input?
ThanQ.Check with USRM1 Table
give user name (Uname ) and you get company code (BUKRS)
also check with other tables : USRM* in SE11
Thanks
Seshu -
How can I fetch the element's attribute value by AS in a mxml file?
Sample code:
<mx:MenuBar id="myMenuBar" labelField="@label"
width="100%">
<mx:XMLList>
<menuitem label="MenuItem A">
<menuitem label="SubMenuItem A-1" enabled="false"/>
<menuitem label="SubMenuItem A-2"/>
</menuitem>
</mx:XMLList>
</mx:MenuBar>
How can I fetch the myMenuBar's width value by AS in a mxml
file. I can't find any API about it!quote:
Originally posted by:
atta707
myMenuBar.width
assuming your AS file/class has access to this component
under the same id, myMenuBar.
Yes,you are right. Width is a existed property in myMenuBar
object in AS. I ignore this case.
But now, I want to fectch attribute "label"'s value in
<menuitem label="MenuItem A">.
How can I get attribute "label"'s value if "label" is
additional attribute for the element. -
How can I control the setting of quicktime x internet connection speed
In apple website, They provides a lot of tutorial videos, But thanks to my internet low bandwidth, only low resolution of video can be seen. At the time of leopard(not snow) and quicktime 7, I found that if I select the bandwidth to "LAN" in quicktime control panel of system preference, the video size went up from 480 to 640 pixelin height (although more loading time..)
Are there any way to control quicktime bandwidth in snow leopard? (quicktime X or quicktime 7 for sowleopard)Hi,
1. How much clients can connect to an access-point (maximum possible vs. recommended)?
ANS -
here is the link for Maximum possible..
http://www.cisco.com/en/US/docs/wireless/controller/7.0/configuration/guide/
c70ccfg.html#wp1085099
Recommended , Not more than 20 clients per AP.
2. Can I limit the maximum number of clients connecting to the same access-point in the controller gui? I only found how to configure thresholds for sending traps when a specified number of connected clients on an ap is reached.
ANS - Here is the software bug whic we had raised with thre development team..
http://tools.cisco.com/Support/BugToolKit/search/getBugDetails.do?method=fetchBugDetails&bugId=CSCtj94508
Symptom:
There should be a way to limit the number of wireless clients that can associate to a lightweight AP.
Conditions:
Workaround:
3. How can I balance the number of clients between two adjacent ap which are using the same SSID?
ANS- You can configure the feature Aggressive load balancing on the WLC, this may help..
lemme know if this answered your question..
Regards
Surendra
====
Please dont forget to rate the posts which answered your question and mark it as answered or was helpfull -
How can i invoke a void method in main?
Hi guys I am killing myself over why we use void method if we can't call on it from main.
For example i am trying to create a program to calculate military time. In my main i am trying to call setHour which is void. setHour is supose to check if the input of hour is over 24 and if it is i have to reset hour to 00. But it gives an error that i can't call on that method because it is void.
So how do i invoke it from main?
and
Why do we use void if we can't call on it?
Thanksok here it is mate. It is not finished but pay attention on the setMethods that is what im trying to invoke from main. Here's my methods and then main will be under it.
public class MilitaryTime
private int hour;
private int minute;
private int second;
public MilitaryTime()
hour=0;
minute=0;
second=0;
public MilitaryTime(int hour, int minute, int second)
this.hour=hour;
this.minute=minute;
this.second=second;
public MilitaryTime(MilitaryTime t)
public void setHour(int h)
if(h>=24)
h=00;
else
hour=h;
public void setMinute(int m)
if(m>=60)
m=00;
else
minute=m;
public void setSecond(int s)
if(s>=60)
s=00;
else
second=s;
public int getHour()
return hour;
public int getMinute()
return minute;
public int getSecond()
return second;
public void tick()
second=second+1;
public String toUniversalString()
StringBuffer buffer;
buffer = new StringBuffer();
// add the hour (with leading zero if its neccesary)
if(this.hour < 10)
buffer.append("0");
buffer.append(this.hour).append(":");
// add the minute (with leading zero if its neccesary)
if(this.minute < 10)
buffer.append("0");
buffer.append(this.minute).append(":");
// add the second (with leading zero if its neccesary)
if(this.second < 10)
buffer.append("0");
buffer.append(this.second).append("");
return buffer.toUniversalString();
public String toString()
StringBuffer buffer;
buffer = new StringBuffer();
// add the hour (with leading zero if its neccesary)
if(this.hour < 10)
buffer.append("0");
buffer.append(this.hour).append(":");
// add the minute (with leading zero if its neccesary)
if(this.minute < 10)
buffer.append("0");
buffer.append(this.minute).append(":");
// add the second (with leading zero if its neccesary)
if(this.second < 10)
buffer.append("0");
buffer.append(this.second).append("");
return buffer.toString();
}Here is main where i try and call setHour to check for accuracy.
import javax.swing.*;
public class TestMilitaryTime
public static void main(String[]args)
String sHour=JOptionPane.showInputDialog(null,
"Input Hour:", "Military Time",JOptionPane.QUESTION_MESSAGE);
int hour=Integer.parseInt(sHour);
String sMinutes=JOptionPane.showInputDialog(null,
"Input minutes:", "Military Time",JOptionPane.QUESTION_MESSAGE);
int minutes=Integer.parseInt(sMinutes);
String sSeconds=JOptionPane.showInputDialog(null,
"Input seconds:", "Military Time",JOptionPane.QUESTION_MESSAGE);
int seconds=Integer.parseInt(sSeconds);
MilitaryTime time= new MilitaryTime(hour,minutes,seconds);
System.out.println(time.setHour());
System.out.println("The military time is you enterd is "+time.toString());
Everything else works fine except the setHour thing.
Thanks -
How can I get the setting icon back after upgrading to ios 7 on ipod
I am going round in circles. I can't get to Settings to fix anything because the Setting icon is not showing. What can I do?
Opps, I forgot that.
Have you tried using the Search feature to tru to find Settings?
Next
- Reset the iOS device. Nothing will be lost
Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Restore from backup. See:
iOS: How to back up
- Restore to factory settings/new iOS device. -
HT5622 I reset my security for my iphone and how can i retrice the setting?
I set a new passowrd for my iphone security and forgot the password. How can i rest or retrive the password
Do you mean the passcode you enter when the iPhone has been locked?
If it is the passcode then you cannot retrieve or reset the passcode unless you remember and enter it in correctly. Have a read over the article below:
iOS: Forgotten passcode or device disabled
Maybe you are looking for
-
Video out from G5 to DSR-45 to monitor
I use a SONY DSR-45 to dump footage into my Mac. I also firewire back out TO the DSR-45 and then S-video to a 14" SONY Monitor to view during editing. The problem is I lost connection to the monitor. it has to be a software setting as I can play tape
-
Need help find a solution to a connection error to the internet once connected already and then asked to type in the Password again to connect on the operating system 4.3.5
-
Hi, In our IC webclient, when we enter a business partner, if nothing is entered in the address fields it creates ok but when we come back to change the partner again, the address fields are output only, so we can't enter anything in them. If we do e
-
Dear Sap Expert, We are on SAP BPC NW 7.5 SP10. We have faced with the following problem. In ownership application we have several company with Method=25(Leaving Method.) 25 is transaction data. So in our Script Logic we need to make list of C_ENTITY
-
Could you please tell what is encryption mechanism used in Release Management for storing any password