How people do 'setAttribute' in the decode of JSF custom comp render class

Imagine the next scenario:
I have a custom JSF table with one attribute called ‘data’ (of type String[][]) with serves in the encode() method of the table to produce the html table markup.
encodeBegin(...)  {
String[][] data  = (String[][])table.getAttributes().get("data");
......all right.
Then, I have another attribute, called ‘selectedData’ (of type ArrayList), intended to store the id’s of the selected rows.
In the decode method I receive the selected rows id’s, but I’m not able to write them in the ‘selectedData’ attribute, because it doesn’t exist a table 'setAttribute' method.
What I’m doing wrong?

>
ValueExpression ve = component.getValueExpression("someAttrib");
if (ve != null) {
ve.setValue(context.getELContext(), "-666-");
}Don't do this.
You shouldn't have to manually query the ValueExpressions.
You should use the attributes map as BalusC pointed out.
If you do: component.getAttributes().put("someAttrib", "-666-"),
then the attributes map implementation will:
1. check to see if the component has a matching property.
If so, it will invoke the setter.
2. If there is no property, then it will check for a ValueExpression
mapped to "someAttrib". If it exists, it will call setValue() on
the ValueExpression.
3. If none of the above are resolved, then it will store the value
as a local map value.

Similar Messages

  • How to know what are the privs for one custom schema?

    how to know what are the privs for one custom schema?
    please suggest me......

    Hi,
    Check this user_sys_privs
    Cheers
    Pavan Kumar N

  • How to have ItemId in the URL in JSF based application

    I have a JSF based application and I am using faces-config.xml to navigate and I am using /redirect to navigate form case to case.
    The application lists products and upon selecting one, a product detail is displayed. I would like to have productId as part of the page URL so that URL can be emailed and the receiver can paste the received URL into browser and retrieve the product detail.
    Currently the URL is not rewritten to have session id in it.
    I am not ever sure where to start on this.

    Is this line correct?
    <value>#{param.productId}</value>
    Try it out yourself ;)
    This is clear and helpful. However I don't know how
    to create this URL
    (http://example.com/shop/products.jsf?productId=100)
    in the first place. The URL I have is in the form of
    http://example.com/shop/products.faces.
    Is adding '?productId=100' to the URL something
    configurable or it has to be done programmatically
    via URL rewriting?You can implement it in several ways:
    JSF<h:outputLink value="products.faces">
        <h:outputText value="click here" />
        <f:param name="productId" value="100" />
    </h:outputLink>
    <%-- or --%>
    <h:outputLink value="products.faces?productId=100">
        <h:outputText value="click here" />
    </h:outputLink>Or write a servlet listening on /shop/, scan the current request URI for product.faces, get the productId from the backing bean's session and rewrite the URL using request.getRequestDispatcher("product.faces?productId=" + productId).forward(request, response).
    Maybe there are more clever solutions using configfiles, but I don't have much experience (yet) with such GET request thingies in conjunction with JSF.

  • Jsf 1s phase of life cycle how knows ths components of the jsp with jsf tag

    i wish to know how faces servlet knows the jsp s view components while creaTI NG component tree at first request to input jsp which may have jsf tags.in the first phase faces servlet doesnot know input jsp with jsf tags what componnets it has. it is actually atthe response send or forward time which is the final phase when the tag ge executed and output is sent to client.i did understandin jsf life cycle in 1 st phase component tree is created at first request in 1 st phase .

    Hi,
    though a FacesContext holds the values used by a request, it doesn't mean it lives for as long as the request. The best explanation I found is from the JavaDocs
    release
    public abstract void release()
    +Release any resources associated with this FacesContext instance. Faces implementations may choose to pool instances in the associated FacesContextFactory to avoid repeated object creation and garbage collection. After release() is called on a FacesContext instance (until the FacesContext instance has been recycled by the implementation for re-use), calling any other methods will cause an IllegalStateException to be thrown.+
    The implementation must call setCurrentInstance(javax.faces.context.FacesContext) passing null to remove the association between this thread and this dead FacesContext instance.
    Throws:
    java.lang.IllegalStateException - if this method is called after this instance has been released
    Frank

  • How can I set up the printer for a custom size A7 OR 10X7 FOLDED GREETING CARD SIZE?

    My new HP 7610 wide format printer does not have a "custom" paper size selection area. A 5x7 folded (open:10x7) greeting card is surely the most popular greeting card size but is NOT included in the printers size selection area- so - what to do?

    I understand that the paper size is supported but not while printing from Windows:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c03618348&tmp_task=prodinfoCategory&cc=us&dlc=en...
    Please mark the post that solves your problem as Accepted Solution
    Click the 'Kudos Thumbs Up' if this was helpful. Thank You!
    (Although I am an HP employee, I am speaking for myself and not for HP)

  • How to syntax check the source code of custom methos of classes?

    Hi,
    Experts,
    I want to check the syntax errors is present or not in methods of classes, to check that is there any function module or classes for that?
    Thank U,
    Shabeer Ahmed.

    T.CODE :- SLIN
    USING THIS T.CODE CHECK SYNTAX ERROR AND ALL
    LIKE
    SYNTAX
    PERFOMR/FORM
    FUNCTION
    AUTHORIZATION
    CHECK LOAD TABLE
    SET/GET PARAMETER IDs
    MESSAGE
    etc....

  • How to read and update the value of property file

    Hi,
    I am not able read the values from property file.
    Please tell me how to read and update the values from property file using Properties class
    This is my property file : - Config.properties its located in D:\newfolder
    Values
    SMTP = localhost
    Now i need to change the value of the SMTP
    New value :
    SMTP =10.60.1.9
    Pls Help me
    Thanks
    Merlin Rosina,

    Post a small (<1 page) example program that forum members can copy and run that demonstrates your problem.

  • How can 2 people use itunes in the same household? we both have iphone 4 and separate id but the same itunes? pleasehelp

           how can two people use itunes in the same household? i had a iphone before so alreday had an itunes account now me and my husband have upgraded and we now both have them. he has set up a username and i have mine yet when he logs in he seems to just get my account? please help

    Decide which iPhone will be keeping the current iCloud account.  On the one that will be changing accounts, if you have any photos in photo stream that are not in your camera roll or backed up somewhere else save these to your camera roll by opening the photo stream album in the thumbnail view, tapping Edit, then tap all the photos you want to save, tap Share and tap Save to Camera Roll.  If you are syncing Notes with iCloud, you'll also have to email your notes to yourself so they can be recreated in the new account as they cannot be migrated.
    Once this is done, go to Settings>iCloud, scroll to the bottom and tap Delete Account.  (This will only delete the account from this phone, not from iCloud.  The phone that will be keeping the account will not be effected by this.)  When prompted about what to do with the iCloud data, be sure to select Keep On My iPhone.  Next, set up a new iCloud account using a different Apple ID (if you don't have one, tap Get a Free Apple ID at the bottom).  Then turn iCloud data syncing for contacts, etc. back to On, and when prompted about merging with iCloud, choose Merge.  This will upload the data to the new account.
    Finally, to un-merge the data you will then have to go to icloud.com on your computer and sign into each iCloud account separately and manually delete the data you don't want (such as deleting your wife's data from your account, and vice versa).

  • HT200246 how do i set the decode template in motion 5 to pal

    How do change the frame rate of the decode template from 29.97 secs to 25 secs in Motion 5?

    Create a new project @ 25fps. Copy and paste the Decoder layers to the new project.
    Alternatively, create a PAL project in FCPX and bring the 29.97 Decoder QT into the new project.
    It could also be done in Compressor.
    Russ

  • How do i make the pdf file so that people can fill in the blanks

    i converted a file i had into adobe but i need to know how to make it so that people can fill in the blanks only on the form without being able to change it

    If you have Acrobat, you add form fields. In Acrobat 11, you'd select: Tools > Forms > Edit
    When you do this it will ask if you want Acrobat to detect form fields for you. This is known as the Form Wizard and it will attempt to divine where it thinks form fields should go based on the content. It work fairly well sometimes, but you will often want to make refinements such as changing the types of fields, the field names, certain field properties, etc.
    You decline this automatic field generation and create them all yourself using the various tools available in form editing mode.
    More information is available in Acrobat's help and numerous tutorials at http://www.AcrobatUsers.com

  • I have a problem how can I solve it I want give permissions to groupA to edit the people picker and I want to restrict groupB to edit the people picker what is the solution boss.. in InfoPath form is it possible..

     i have  a problem how can I solve it I want give permissions to groupA to edit the people picker and I want to restrict groupB to edit the people picker what is the solution boss.. in InfoPath form is it possible..

    Hi,
    To hide/disable controls based on user group in an InfoPath form, a solution is that we can call User Profile Service to check the group of current user, then hide/disable
    specific controls by setting some rules in form.
    Here is a demo with steps in details would be helpful to you:
    http://blog.symprogress.com/2011/05/infopath-list-form-hidedisable-fields-based-on-sharepoint-group-membership/
    More information about checking if a user is a member in a SharePoint group within web InfoPath 2010 forms:
    http://www.hishamqaddomi.ca/spg/index.php/sharepoint-2010/infopath-2010/65-checking-if-a-user-is-a-member-in-a-sharepoint-group-within-web-infopath-2010-forms
    Thanks 
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How many people can be on the system with a 512 K connection in BPC 7 MS

    Hi,
    It appears that BPC uses a large piece of the band width and more than one computer and user with a 512 K connection using BPC will not work.How many people can be on the system with a 512 K connection? -BPC 7 ms version.
    Thx
    PLN

    I would like to precise more things regarding the network.
    I did a case study for one customer and really to have good performances with SAP BPC client the network required the follow:
    Bandwitdth 1024kb/s
    Latency smaller than 200 ms between BPC client and BPC server
    Otherwise the users will experience problems:
    1. IBandwitdh < 1024Kb/s then to download 80 MB or more (templates + dimensions) will require a lot of time and that's means the login time will be very slow every time when a dimension is changed or security is process
    2. When an report is executed (a medium report not very complex report) around 100 mesage are send between bpc client and server. So if latency > 200 ms than a simple calculation is saying just into network it will be lost 200 * 100 ms = 20 s.
    So for a report which normally is taking 5 - 10 second it will take 30s or even more into client with latency bigger than 200 ms.
    Regards
    Sorin Radulescu

  • OS X Server Wikis - How do i delete people that have left the office?

    OS X Server Wikis - How do i delete people that have left the office?
    Some people participated in the editing of the wiki and they have now left the office. How do i remove them and their documents from the People page?
    Thank you.

    Should be able to do so from the Users pane (select the user then click the "-" below the list of users. That worked for me with all but one out of five users I deleted. No matter what, their Wiki person page remained, so I hid it from view.
    Sorry I couldn't provide more conclusive help.

  • How are people on ebay and the web factory unlocking iPhones?

    Hi,
    Can someone please shed some light on how people are offering factory unlock services for any iphone on eBay and on the internet? It seems to cost roughly the same through most of them (£40-50 for Orange UK).
    The reason for this question is that my brother does mobile phone repairs and unlocks, he has a device that will unlock Blackberry's and other phones, although he has never been able to find out how it works with the iphone. From my understanding the iphones IMEI has to be submitted to the Apple whitelist. If this is correct, how are these 3rd party companies doing this? Do they pay for access to the list or do they know somebody on the inside? I was of the opinion that only the official carrier could perform a factory unlock, obviously im wrong!

    That was my thoughts exactly, but how would you explain this site then? www.megara1n.com It is not installing any software on the phone and upon reading the reviews for it, it is not a scam and seems to be using the Whitelist as it does not lose the unlock when updating. This is just one example, there is a guy using the same method on ebay with over 500 sales and 100% feedback. There must be another way they are doing it. There are scammers on ebay asking for people to send their phones in to them which im sure will either be jailbroken or never returned!
    I am aware of the un-authorised methods of which you speak, jailbreak, gevey sim etc and I know that these methods used above are none of these.
    <Link Edited By Host>

  • How have people been doing with the new update?

    It says that the update "...improves overall stability and performance...". Just curious, as I have been privy to emails everytime someone responded to the "Is anyone's FCP X not crashing on a consistant basis" thread, and have noticed that a lot of people have had many stability problems. How is everyone doing with the new update? Does it seem to help?

    Just gets better and better ....  FCP x didn't like the "Tutorial Event" being open as per the dialogue in my previous post so I moved it out of the events folder and then restarted FCP x ....
    This is what I get now ....  GUFFAW!!!!
    All I did was restart FCP x .....  ????  GUFFAW!!!  In version 73.66 they will then display the "Invalid argument" so I know what the he ll they are talking about.  Did all the programmers go on vacation when Jobs resigned?

Maybe you are looking for

  • Exchange rate fluctuatuion amount is not generated in F-28

    Hi Gurus,               when making partial payment from foreign customer in F-28, the Exchange rate fluctuation amount is not generated. But when making full payment from the foreign customer, exchange rate Fluctuation amount is generated. For eg: A

  • Illustrator Smart Objects color inconsistencies

    When I paste illustrator artwork into photoshop as a smart object, the colors are not reading as the same. Same sRGB profiles for both files. No tints used anywhere, 100% values used in illustrator. Sometimes the shift is very slight. For example, C8

  • Spontaneous screen resolution change

    I am running OS X Maverick since a few days. If I don't use my system, the screen "goes to sleep" after 10 min. (like I always had). Since the OS X upgrade I have the problem that my screen resolution changes to 800 * 600 after when I "rewake" the sc

  • My mac firefox toolbar and dock have dissapeared when I click on firefox

    Something happened in which both my dock and toolbar at the very top that allows me to view history, bookmarks, tools etc. see the time (File, Edit, Tools,etc) dissapears when I click on firefox. This does not happen in other browsers. How can I fix

  • Set the number of figures to display

    Hi, I have a numeric indicator to display values in the order of 10^6 to 10^9, in SI notation. I have it set to a precision of one digit. So, my values look like: 1.2M, 10.5M, 325.7M, 1.3G and so on. But instead of having a fixed number of digits aft