Change the attribute to read-only by using ClientListener?

Hello friends of the forum...

I created a form with two INPUTTEXT and put them with read-ONLY using an EL made reference to a BEAN called GENERAL Manager

< af:panelFormLayout binding = "#{backingBeanScope.backing_Layout2.panelFormLayout1}" id = "panelFormLayout1" > "
< af:inputText value = "#{bindings." Modulo.inputValue}"binding =" #{backingBeanScope.backing_Layout2.inputText1} "id ="inputText1"* readOnly =" #{General.BLock} "* / >"
< af:inputText value = "#{bindings." Proceso.inputValue}"binding =" #{backingBeanScope.backing_Layout2.inputText2} "id ="inputText2"* readOnly =" #{General.BLock} "* / >"
* < af:clientListener type = "dblClick" method = "activate the" / > *.
* < af:serverListener type = "activate the" method="#{backingBeanScope.backing_Layout2.activarBloque}"/ > *.
< / af:panelFormLayout >


ClientListener calling Javascript Fucntion:

function Activar (event) {}
AdfCustomEvent.queue (event.getSource (), "Activar", {operation: "Create"}, false);
}


ServerListener call the method to change the attribute Block of GENERAL bean and also try to update panelFormLayout...

{} public void activarBloque (ClientEvent clientEvent)
* General.Block = false; *
General.Operacion = clientEvent.getParameters ().get("operacion").toString ();
* AdfFacesContext.getCurrentInstance () .addPartialTarget (this.getPanelFormLayout1 ()); *
}

(the block is static attribute)

After I do dbClick I see general.block change its value to false but inputText don't update!...


So, how can I force it to refresh the components when actionListener is trigger?

Hello

I think that in this case, you must call

AdfPage.PAGE.addPartialTargets ()

in JavaScript

Frank

Tags: Java

Similar Questions

  • Cannot change the properties of 'read only' files in xp

    Recently, I was not able to change the properties of 'read only' to my files. I click on 'Properties', uncheck the 'read only', press on apply, click OK. When I re - check the records they come up to 'read only' again. I can't find a way around it. It has stopped me to back up files, since I get the message that the files are 'read only' and cannot be changed.
    All solutions?
    Thank you

    The read-only attribute has never been applicable to files under XP. You can try to take ownership of files/folders instead.

    Appropriating a file or a folder under Windows XP [Q308421] - http://support.microsoft.com/?kbid=308421

    How can I get the Security tab in the folder properties? - http://www.dougknox.com/xp/tips/xp_security_tab.htm MS - MVP - Elephant Boy computers - don't panic!

  • Impossible to change an attribute of read-only for the My Documents folder in Windows 8

    Problem:

    Everything I put in My Documents directory is converted into read-only, so all my files in this folder (especially my PDFs) cannot be opened OR downloaded/sent online. I tried to use cmd and Type attrib - r "c:\users\myaccountfoldername\documents" but nothing works, document folder still has that little padlock on its icon. I also gave everyone full access to this folder, but whatever I do, I can't change the property "read only". Even if I uncheck that manually in the properties, it continues to go back.

    I looked for a solution now and I still have solved it. I ignore it if I could, but I put a lot of important and frequently accessed files in my library of Documents, so I really need to get this figured out soon.
    I just bought this laptop about a week ago, it came with Windows 8. I'm not sure but I think that this problem happened to me when I joined the homegroup on my local network and began to share files so that I can transfer my old files from my old laptop.
    With this in mind, I tried also to leave the homegroup and restart. The Documents folder was read-only a minute or two after I restarted, but then it became like this again after some time.
    I know that it was designed for the safety of my files and everything, but what should I do with my 'secure' files, if I can't even open a simple PDF file?
    I am the administrator and the user account only on this laptop

    Platform:
    64-bit Windows 8
    Path in question:
    C:\Users\USERNAME\Documents

    I finally understood what was causing the problem! Apparently, he was in the Service of protection against theft by MacAfee (that I installed immediately after the purchase of my new laptop) encrypt all the files in the Documents folder and all the office files that I have! Which explains why no matter how many times I try to seize or delete and redo the folder my documents, it simply would not work. I finally uninstalled the hassle of a service and I can now access my files again :)

  • Can I change some partitions of the partitioned table read-only?

    I have a table partitioned by range (partitioned hourly).

    I want to keep history in line of the query data (historical data are rarely accessd). But in this way, the table is too large. The performance can be a big problem. Thus, certain problems may arise:
    How can I change the years partition read-only?
    How to decrease the workload on this table and improve performance?

    Oracle 10g (10.2.0.3) + Solaris 10

    How can I change the years partition read-only?

    10.2.x.x I think only tablespaces can be made read-only.

    In 11g you can place tables in read-only mode, but I don't know for specific partitions.

  • How can I change the attributes read-only or system files?

    How can I change the attributes read-only or system files?

    To view or to remove the read-only or system attributes, use the Attrib command at a command prompt:

    1. click the Start button, type cmd in the search box and press ENTER.

    2. to view the syntax for the Attrib command, Type attrib------? at the command prompt.

    WARNING: If you remove the read-only or a file system attribute, it may seem like a regular folder and some customizations may be lost. For example, Windows customizes the Fonts folder and provides a special folder view that allows you to hide variations, such as bold and italics. It also allows you to change the display settings of the file in a way that is specific to fonts. If you remove the read-only attributes and the Fonts folder system, these custom display settings not available. For folders that you have customized by using the tab, customize the folder properties dialog box, the folder icon and other other customizations may be lost when you remove the read-only attribute.

    If a program cannot save files to a folder with read-only, such as My Documents, change the read-only to the system attribute by using the Attrib command at a command prompt.

    To remove the read-only attribute and to set the system attribute, use the following command:

    attrib - r + s drive:------------.

    For example, to remove the read-only attribute and set the attribute to system for the C:\Test folder, use the following command: attrib - r + s c:\test

    Be aware that some programs may not work correctly with folders for which the read-only attribute and the system attribute are granted. You can use the following command to remove these attributes:

    attrib - r-s c:\test

  • I have a VBA application that fills the data in an Acrobat form.  Do I have to distribute a complete Acrobat on each machine that uses this application (it will be disastrous) or is there a way I can use the software Acrobat reader only.  I am using the f

    I have a VBA application that fills the data in an Acrobat form.  Do I have to distribute a complete Acrobat on each machine that uses this application (it will be disastrous) or is there a way I can use the software Acrobat reader only.  I use the next AcroExch.App and AcroExch.PDDoc object to the form.  I hope there's a distribution object, I can use the full application and not because I don't want users to have access to forms and to keep the cost down.

    It is important to realize that the Acrobat SDK kit is a marketing tool for Acrobat. So, Yes, certainly you need a copy for each system. There is no redistributable components.

  • Change the attributes of resources in GR 11, 2 ASM grid Infrastructure

    Hello

    I have two or three never starts automatic start-up located in the crs profile 11 GR 2, can I change the profile of resources to auto_start = always while the cluster is running? or fact cluster will display the parameter ASM_DISKGROUP starts listed of spfile?

    Thank you

    Hello

    user9097501 wrote:
    Hello

    I have two or three will never start Autostart located in the crs profile GR 11, 2...

    Let us clarify which component has effect on what it:
    1 profiles/resources src have nothing to do with the ASM starts
    2 auto_start is a resource of src attribute that specifies if the clusterware automatically starts the resource in question after the restart of the cluster server.
    3. the list of parameters init ASM_DISKGROUP names of disk groups that the ASM instance goes up at startup.

    I can change the profile of resources to auto_start = always while the cluster is running?

    You can change the attribute auto_start to the value 'always' online, no downtime is required.

    or fact cluster will display the parameter ASM_DISKGROUP starts listed of spfile?

    No, not this connection between the CBC and the ASM instance. Crs begins the only DSO resource (using the script specified in the resource action_script attribute) and groups of disks listed in the ASM_DISGROUP parameter, will be mounted by the instance ASM itself.

    HTH.
    Kind regards
    József

    Published by: Jozsef on October 21, 2010 21:43

  • How to generate the file word read-only format

    Hello

    I'm generating a word using Report Generation Toolkit file. I want the file word read-only format. Can someone tell me how to do this using Report Generation Toolkit?

    Kind regards

    Renaux

    have you tried the game permissions.vi?

  • Windows Mail pop saying "the mailbox is read-only" error 800cccd2.

    Hello

    We continue make a pop saying "the mailbox is read-only.

    IMAP.telus.net

    143

    Code 800cccd2

    Can anyone help with this?

    Using Windows Mail

    Thank you

    Hello

    1 did you last modified the software on your computer?

    2. you use Windows mail or Windows Live Mail?

    I suggest you to go through the steps mentioned in the link and the Coachman.

    Solve problems with Windows Mail

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-Windows-Mail

  • How can I disable the format to read-only on Windows 7

    How can I turn off the setting of read-only documents.  They seem to get in this format in an unpredictable way, I want to than ever and it takes time and frustration can do what I want (which is writing).

    Hello

    This article can help you

    http://www.SevenForums.com/system-security/53095-file-folder-read-only-attribute-wont-disable.html

    http://superuser.com/questions/653951/how-to-remove-read-only-attribute-recursively-on-Windows-7

  • Accessing the PDM in read-only mode

    Hi all.

    I have a Pix with ver 6.3 and I want to allow access to the customer in read-only mode.

    I usually don't use aaa and privileges to avoid locking issues, but now it seems that I have to face the issue.

    I have 2 questions:

    A. is the next plan safe (enough) to avoid blocking?

    1. username admin password * priv 15

    2. username pdmuser password * priv 5

    3 aaa authentication http LOCAL console

    4. level 5 privilege control?

    B. what shoul commands assign the privilege 5 level to allow the user see the welcome and the tracking completely Page?

    Thank you

    Michele

    Hi Michele,

    A. Yes, it is safe and sufficient not to lockout the pix. Infact, your console/telnet will not be affected, only the PDM with the above configuration in place.

    B. There are three levels different priv for PDM, monitor (level 3), read-only (level5) and admin (level 15). So level monitor is all that he needs to go to the Home Page and monitoring page. Here is the procedure:

    Turn on the AAA for PDM:

    -System Properties

    -Admin Pix

    Authentication/authorization

    -Check HTTP/PDM

    -Select service LOCAL group

    -Box ENBALE AUTHORIZATION

    -Select service LOCAL group

    Creatting users:

    -User-> user with level 15 and 3 (monitor) account

    Thank you

    Renault.

  • How to limit the request for read-only access

    We are the migration of 7.1 to version 11.1. As part of the Cup on the activities, I need to keep the old server on read-only for a few days and then completely block access. Can you please let me know if there is a simple way to limit read only access on Server 7.1, instead of changing the security settings of all groups on the server?

    Grateful for your help!

    What would you say to put the databases in read-only mode until you delete access.

    Esscmd - BEGINARCHIVE
    MAXL - [alter database | http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/maxl/ddl/statements/altdb.htm] archive to start at app.db...

    There are equivalent commands out of read-only mode, the links will take you to the information you need.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Dynamically change the attributes of HTML form elements

    I have a form region that contains the elements, some attributes of the HTML Form readonly = 'true '.

    It is possible to dynamically set these so I can enable / disable read only to the level element is based on a function PL/SQL (or other method).


    Thanks in advance.

    A bit of Javascript can do for you.

    Put this function JS in the header HTML of the page

    
    

    And then define a process of "after a footer" which returns the items to read only according to the conditions you decide

    if pl_sql_function_to_determine_RO ('') then
       htp.script('setReadOnly(""');
    end if;
    ....... repeat for other items
    
  • How to programmatically change the attribute of af:message.for?

    < p >
    I would like to know how, if possible, dynamically change the attribute 'for' of the af: message in the code for the validator in my grain of support. In my example below, I would like to change the af: message for the 'txtReportNumber' attribute 'txtCaratWeight '.

    I have included an excerpt from the next page
    & lt; AF:panelGroup binding = "#{backing_ReportVerificationCriteria4.panelGroup2} '"
    ID = "panelGroup2" layout = "vertical".
    styleClass = "body_text15" & gt;
    < /p >
    < p >
    & lt; < color = "#ff0000" > af:message < / police > binding = "#{backing_ReportVerificationCriteria4.message1} '"
    ID = "message1", color = "#ff0000" > for = "txtReportNumber".
    < / police > inlineStyle = "font family: Gil without, Verdana, Arial, Helvetica, without serif;" do-size: 15px; color: #FFFF00; make-weight: bold; left margin: 0px; Max-width: 300px; line-height: 5px; < br / >
    messageType = "none" / & gt; < br / >
    & lt; AF:objectSpacer width = "10" height = "10" < br / >
    Binding = "#{backing_ReportVerificationCriteria4.objectSpacer1}" < br / >
    ID = "objectSpacer1" / & gt; < br / >
    & lt; / af:panelGroup & gt; < br / >
    & lt; AF:panelGroup binding = "#{backing_ReportVerificationCriteria4.panelGroup3}" < br / >
    ID = "panelGroup3" layout = "horizontal" < br / >
    inlineStyle = "font family: Gil without, Verdana, Arial, Helvetica, without serif;" do-size: 11px; color: #052149; margin left: 15px; line-height: 14px; "& gt; < br / >
    & lt; AF:outputLabel value = "number of statement:" < br / >
    Binding = "#{backing_ReportVerificationCriteria4.outputLabel5}" < br / >
    ID = "outputLabel5" < br / >
    inlineStyle = "do-family: Gil without Verdana Arial Helvetica without serif;" font-size: 11.0px; Color:RGB (5,33,73); line-height: 14.0px; "/ & gt; < br / >
    & lt; AF:inputText label = "number of statement:" < br / >
    Binding = "#{backing_ReportVerificationCriteria4.txtReportNumber}" < br / >
    < color = "#ff0000" > id = "" txtReportNumber < / police > ' columns = "20" simple = "true" < br / > "
    inlineStyle = "do-family: Gil without Verdana Arial Helvetica without serif;" font-size: 11.0px; Color:RGB (5,33,73); line-height: 14.0px; "< br / >
    showRequired = 'false' immediate = "false" < br / >
    Validator = "#{backing_ReportVerificationCriteria4.txtReportNumber_validator}" < br / >
    requiredMessageDetail = 'Both report number and Carat weights are necessary.' < br / >
    required = "true" / & gt; < br / >
    & lt; / af:panelGroup & gt; < br / >
    & lt; AF:panelGroup binding = "#{backing_ReportVerificationCriteria4.panelGroup4}" < br / >
    ID = "panelGroup4" < br / >
    inlineStyle = "font family: Gil without, Verdana, Arial, Helvetica, without serif;" do-size: 11px; color: #052149; margin left: 15px; line-height: 14px; "< br / >
    page = "horizontal" & gt; < br / >
    & lt; AF:outputLabel value = "Carat weight: ' < br / >" "
    Binding = "#{backing_ReportVerificationCriteria4.outputLabel6}" < br / >
    ID = "outputLabel6" < br / >
    inlineStyle = "do-family: Gil without Verdana Arial Helvetica without serif;" font-size: 11.0px; Color:RGB (5,33,73); line-height: 14.0px; "/ & gt; < br / >
    & lt; AF:inputText label = "Carat weight:" < br / >
    Binding = "#{backing_ReportVerificationCriteria4.txtCaratWeight}" < br / >
    < color = "#ff0000" > id = "" txtCaratWeight < / police > ' columns = "20" simple = "true" < br / > "
    inlineStyle = "do-family: Gil without Verdana Arial Helvetica without serif;" font-size: 11.0px; Color:RGB (5,33,73); line-height: 14.0px; margin-left: 7.0pt; "< br / >
    Validator = "#{backing_ReportVerificationCriteria4.txtCaratWeight_validator}" / & gt; "" < br / >
    & lt; / af:panelGroup & gt; < br / >
    < /p >

    Hello

    the field 'for' supports the El. So you can use a reference of bean managed to replace the value

    Frank

  • How can I change the username itself, not only the password.

    Hello

    How can I change the username itself, not only the password please?

    Cheers, Guy.

    Are you referring to the username and the password of the user interface? If this is the case, you cannot change the user name because there is no option for you to change.

Maybe you are looking for

  • How to install windows vista service pack 1

    I am trying to upgrade my computer but it won't update service pack of windows vista both because I don't have a windows service pack 1 How do this help please

  • WRT120N getting only no internet IP through DHCP

    Hello. We have a computer playing the role of DHCP server in a network. receives a public IP address to a DSL modem. There is a SF100D-16 switch connected to the network and the router is connected to it. The range of IP addresses for the DHCP server

  • HP Pavilion DV 6330 ea upgrade to Windows 7

    Hello I want to perform a new installation of Windows 7 Ultimate on my HP laptop The laptop has sticks of memory 2 x 512 MB 2Rx16 PC2-5300 s-555-12-AO My question is this aura Windows 7 Ultimateand the amount of RAM can take of this motherboard? I've

  • erthernet connection

    Just set up the new system last night and it defaults to the WIFI. How can I configure the Internet cable vs WIFI erthernet. Don't want to remove the WIFI if you need later

  • My HP Photosmart c4600 series is offline

    How can I turn off line to line. The power of the printer is turned on, the cable to the top of the tower is on. My problem is to put the printer online. Thank you