Using the binding attribute within Tomahawk's t:dataList tag

I am trying to create a .jsp page with a dynamic list of tables. Each table on the page has a dynamic number of columns. I read an excellent blog ([The BalusC Code - Using datatables|http://balusc.blogspot.com/2006/06/using-datatables.html#PopulateDynamicDatatable]) that taught me how to create dynamic tables using the binding attribute. I can now get the tables with dynamic columns working.
What I would like to do next is nest the dynamic tables within a Tomahawk t:dataList tag:
<t:dataList value="#{utilitiesTableSegBean.attributeTables}" var="attributeTable">
    <h:outputText value="#{attributeTable.title}"/>
    <h:panelGroup binding="#{attributeTable.dynamicTableGroup}/>
</t:dataList>
{code}
When I run my app I get this error:
javax.servlet.ServletException: javax.servlet.jsp.JspException: org.apache.jasper.el.JspPropertyNotFoundException: /s/UtilitiesTableSeg.jsp(57,56) '#{attributeTable.dynamicTableGroup}' Target Unreachable, identifier 'attributeTable' resolved to null
Why do I get this error?
If I remove the h:panelGroup tag then the h:outputText tag works just fine.  Why does 'attributeTable' resolve to null for the binding attribute of h:panelGroup, yet works for the value attribute of h:outputText?
So then I thought that I might be able to make it work with an index into a bean property that returned the list of table objects.  So I tried to modify my panel group tag to:
{code}<h:panelGroup binding="#{utilitiesTableSegBean.attributeTables[0].dynamicTableGroup}"/>{code}
I was just doing a quick initial test and expected to see the first table repeated over and over because I had hard coded the value of '0' as the index.  But I was wrong.  It listed through all of the tables correctly.  Why?  This makes no sense to me!
So I changed my jsp again so that it looked like this:
{code}
<t:dataList rowIndexVar="tableIndex" value="#{utilitiesTableSegBean.attributeTables}" var="attributeTable">
    <h:outputText value="#{attributeTable.title}"/>
    <h:panelGroup binding="#{utilitiesTableSegBean.attributeTables[tableIndex].dynamicTableGroup}"/>
</t:dataList>
{code}
This is how I expected to code it so that the tables would all be shown correctly.  And it gives this error:
org.apache.jasper.JasperException: An exception occurred processing JSP page /s/UtilitiesTableSeg.jsp at line 57
(Line 57 is the line with the h:panelGroup tag.)
Root cause:  javax.servlet.ServletException: javax.servlet.jsp.JspException: java.lang.IllegalArgumentException: null
I would really like to get the original version working, but any feedback and/or suggestions would be greatly appreciated.  I have spent a lot of time trying to figure this out and I just don't know where else to look.
Thank you very much!
Dave                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Yes, sorry about that - I started off trying to prove a potential solution.
Aim:
A user logs onto a weblogic application and is authenticated against OID. The application is making SOAP service calls to a proxy endpoint monitored by another vendors software which authenticates the user against the ldap and checks their roles to see if the user can call the service.
Solution so far:
The initial application gets the username from the JAAS principal, but the password is not supplied. I can easily supply the SHA password digest to it (but putting a cleartext password in the header will probably not be given the go-ahead). This would enable the application to make the SOAP call with a username and digest.
The software protecting the services can be configured in a variety of ways to authenticate the user to the ldap. One involves using the wsse username token in the header (cleartext password or digest).
This authentication is failing and I don't yet have the diagnostic tools available to see which stage is in error. I was trying to prove that you could actually authenticate with an SHA password digest by doing a bind.
Regards

Similar Messages

  • How to use the bind variable in custom.pll

    Hi,
    How to use the bind variable in custom.pll.Its through error.
    any one gem me.
    very urgent.
    M.Soundrapandian.

    Hello,
    Please, ask this kind of questions in the e-business forum.
    Francois

  • How do I block this msg from always popping up "iTunes requires Safari 4.0.3 or later to be installed to use the iTunes Store within iTunes. Use Software Update to download and install the latest version of Safari" bc I can't download the latest software?

    How do I block this msg from always popping up "iTunes requires Safari 4.0.3 or later to be installed to use the iTunes Store within iTunes. Use Software Update to download and install the latest version of Safari". I cannot download this software bc my lap top is to old. The msg literally pops up everytime I make any moves on itunes and is VERY annoying.

    I have a 2006 MacBook with an Mac OS X version 10.5.
    In that case, try downloading a Safari 5.0.5 for leopard from the following location:
    http://www.apple.com/safari/download/

  • Error occurred in deployment step 'Add Solution': A feature with ID '' has already been installed in this farm. Use the force attribute to explicitly re-install the feature.

    Hi I am getting the error
    Error occurred in deployment step 'Add Solution': A feature with ID 10495515-2482-41fd-98eb-3c87f739f54b has already been installed in this farm.  Use the force attribute to explicitly re-install the feature.
    when trying to deploy web parts
    question 1 - how do i use the force attribute when deploying from visual studio
    question 2 - am i deplying it to the right place, if i deply it to the
    url:port that points to my central admin tool it deploys but i cant seem to see it in any of my webs in my site collection, if i deploy it to the
    url:port that points to my site collection I get this error.
    im new to all this by the way :)
    thanks in advance

    If you are deploying from Visual Studio then please follow this post:
    http://sharepointfordeveloper.blogspot.com/2014/03/solved-visual-studio-issue-error.html
    Open the visual Studio and navigate to the feature XML file and add the bellow attribute.
    AlwaysForceInstall="TRUE"
    The <FeatureName>.Template.Xml output would be some think link this.
    <?xml
    version="1.0"
    encoding="utf-8"
    ?><Feature
    xmlns="http://schemas.microsoft.com/sharepoint/"
    AlwaysForceInstall="TRUE"></Feature>

  • How to get cm:search to use the max attribute when creating the SQL query?

    When we use the max attribute in the cm:search tag, it does not seem to honor the max attribute when creating the SQL query. However, the result returned from the tag is limited to the number specified by the max attribute. Then the tag seems to work as intended, but the performance will be sub optimal when the SQL query returns unnecessary rows to the application.
    We use the cm:search tag to list the latest news (ordered by date), and with the current implementation we have to expect a decrease in performance over time as more news is published. But we can’t live with that. We need to do the constraint in the SQL query, not in the application.
    The sortBy attribute of cm:search is translated to “order by” in the SQL query, as expected.
    Is it possible to get cm:search to generate the SQL query with an addition of “where rownum <= maxRows”?

    Hi Erik,
    The behavior of a repository in regards to the search tag's max results parameter is dependent on the underlying repository's implementation. That said, the OOTB repository in WLP does augment the generated SQL to limit the number of rows returned from the database. This is done in the parsing logic. This behavior may differ with other repository implementations.
    -Ryan

  • Feature with ID 15/.. has already been installed. Use the force attribute to explicitly re-install the feature

    Hi everyone,
    I really become desperate with this one. I know, it's mentioned hundred times in the web, and it really works when you use a force deployment, but my simple question is: Why?
    To explain my issue: We have several SharePoint 2010 solutions which we want to deploy to SharePoint 2013 with Visual Studio 2012 running on Windows Server 2012. Site solutions work. But farm solutions just don't. I get the error (you
    guessed it): A feature with ID 15/... has already been installed in this farm. Use the force attribute to explicitly re-install the feature.
    And it does really work with the force attribute, but why on earth do you have to use the force flag? Something has to be different, and if there is an already installed feature with this ID, then why can Visual Studio not uninstall or
    deactivate it by itself first? This error never occurred with SharePoint 2010 and VS2012, although features are already installed. 
    Thanks a lot for your effort.
    Best regards,
    Patrick

    Hi Check this
    1.Double click on the feature.... ( or right click and choose properties)
    2.then in the properties window make
    3. ALWAYS FORCE INSTALL = false... (this should be false)
    Manoj Gangwar | Sharepoint MCPD | Sharepoint MCTS |

  • The name attribute on the img element is obsolete. Use the id attribute instead.

    When I valadate my page I get an error "The name attribute on the img element is obsolete. Use the id attribute instead." In DW CS5.5 I cannot seem to enter an ID without DW also adding the ID as a name attribute too. Aside from manually going in and removing the name attribute from the code.

    It won't hurt to leave the name attribute in your <img> tag.  In fact, it may be necessary if you are going to add an image rollover behavior, since DW's javascript relies on that name attribute's value to correctly identify the desired image on the page.

  • Hello. I have two version of Office for Mac. 2008 and 2001. I want to delete the 2008 version. If I use the removal tool within the Offie 2008 folder, is there any danger of the 2001 version being removed too.  Thanks Dave UK

    Hello. I have two version of Office for Mac. 2008 and 2001. I want to delete the 2008 version. If I use the removal tool within the Offie 2008 folder, is there any danger of the 2001 version being removed too.  Thanks Dave UK

    Do you mean Office 2008 and 2011 or do you really want Office 2001? I think you mean 2011 since Office 2001 wouldn't make much sense.
    The Office uninstaller should be able to identify there are two versions and allow you to delete either one or both.

  • 'iTunes requires Safari 4.0.3 or later to use the iTunes store within iTunes'

    In iTunes 10.5 on my Mac OS X 10.5.2, this message keeps popping up;
    "'iTunes requires Safari 4.0.3 or later to use the iTunes store within iTunes"
    This pops up every 5 or so seconds, so its really annoying if im trying to listen to music. There is no 'don't show this message again' option so its really getting on my nerves! The only way to get update Safari is though a software update and I am scared that if I do a software update, my Mac could crash again, like it did the last time and I had to spend €130 to get it fixed!
    My question is:
    1) should I do a software update and
    2) how can I stop this message apart from updating?
    Thanks in advance,
    Hannah.

    I have a 2006 MacBook with an Mac OS X version 10.5.
    In that case, try downloading a Safari 5.0.5 for leopard from the following location:
    http://www.apple.com/safari/download/

  • LDAP bind using the userpassword attribute value

    I'm trying to prove that I can bind to OID using an SHA password digest, so I'm binding as follows:
    ./ldapbind -h ipaddress -p myport -D cn=myuser,cn=users,dc=xxxx -w myuserspassword
    This works fine if I enter the cleartext password. What I want to do is enter the password as it appears in the users 'userpassword' field, which is an SHA digest.
    So if the password is 'abcdef', the userpassword value is something like {SHA}cGsjdkGsgfd.
    So, -w abcdef works fine, but how can I do something like -w cGsjdkGsgfd and tell OID it's an SHA digest I'm using?
    What I'm ultimately trying to do is to get a SOAP request to authenticate my user against OID and the only password available to it is the SHA digest. It's failing and I don't know why, so my first step is trying to prove I can bind with the password digest.
    Thanks in advance.

    Yes, sorry about that - I started off trying to prove a potential solution.
    Aim:
    A user logs onto a weblogic application and is authenticated against OID. The application is making SOAP service calls to a proxy endpoint monitored by another vendors software which authenticates the user against the ldap and checks their roles to see if the user can call the service.
    Solution so far:
    The initial application gets the username from the JAAS principal, but the password is not supplied. I can easily supply the SHA password digest to it (but putting a cleartext password in the header will probably not be given the go-ahead). This would enable the application to make the SOAP call with a username and digest.
    The software protecting the services can be configured in a variety of ways to authenticate the user to the ldap. One involves using the wsse username token in the header (cleartext password or digest).
    This authentication is failing and I don't yet have the diagnostic tools available to see which stage is in error. I was trying to prove that you could actually authenticate with an SHA password digest by doing a bind.
    Regards

  • When using the placholder attribute in an input field with a dark background, why can't the blinking caret be white on focus?

    Chrome and Safari both do this, making it clear to the user that they're in the field and ready to type. Currently the caret will take the color property but only once the user has started typing. This seems like it would be a worthwhile feature to bake into the next build of FF.

    I have a separate java class that gets my data and returns a Result object. Do you mean java.sql.ResultSet?
    In my main servlet I do the following:
    request.setAttribute("supporttracker",
    supporttracker.findsupporttracker(monthYear));
    and then in my JSP I can iterate through the Result
    like the following with no problems:
    <c:forEach var="supporttracker" begin="0"
    items="${supporttracker.rows}" varStatus="counter">
    My problem is that I can only iterate through this
    once in the page whereas I have no problem doing
    multiple forEach loops through other types of
    lists/collections such as an ArrayList. Right, because a ResultSet is a database cursor and doesn't act the same way that an ArrayList does. It's more like an InputStream - once you read it, you close it. If you want to re-read it, you have to re-initialize it again.
    Iterators behave that way, too. Once you walk through them, you have to re-initialize them.
    I've looked
    on the web and in a couple of books, I first thought
    it may be scope or some attribute in forEach that I
    was missing but I'm stumped. It seems like it's
    because the pointer to the result set is at the end
    of the result set when trying the second iteration,
    but I thought by using the begin="0" would put the
    pointer at the first row again, on my second
    iteration I'm getting no rows/data outputed.
    Please help and thanks in advance!The better thing to do is for your method to return a List of objects, one per row, that represent what the ResultSet returns. Have that method iterate through the ResultSet, loading the rows into the List, and close it before you leave in a finally block. A database cursor is a scarce resource, so it's a good idea to close it as soon as you can.
    %

  • I am unable to use the browse feature within the store on an iPad 1

    The browse by author feature within the iBooks store will not show titles by author.  When I touch an author's name the app does not pull up books it remains with the "Choose an Author" prompt. 

    We have the same problem and just use the search bar instead.  We don't have the same problem on our new iPad 3.  We did uninstall and reinstalled the new iBooks but still the same problem.  Have you had any fixes?

  • Using the iTunes folder within Music on PC; difference between "managed" and "referenced"

    On my PC, I currently have all of my music within the Music folder (C:\Users\Stephen\Music) all split by artist into relevant folders.
    There is also an iTunes folder within this Music folder, however only a small amount of music is within this folder (after doing some research, any album I ripped from my own CDs went into this folder directly).
    I have since noted that there's a difference with how iTunes refers to the music within my Music folder as opposed to the iTunes folder within the Music folder ("referenced" as opposed to "managed").
    Previously whenever I wanted to add any music to iTunes I would simply click "add folder to Library" under File. I haven't had the "Copy files to iTunes Media folder when adding to library" option ticked.
    My questions are:
    Should I have everything in the iTunes folder as listed above? Is there any benefit in arranging it this way?
    If I make this change, should I also make sure I have the "copy files to iTunes Media folder" option ticked?
    If there is a benefit in having my music "managed" by iTunes as opposed to just being "referenced", is it possible for me to just dump all of my music from \Stephen\Music\variousbands to Stephen\Music\iTunes\variousbands, without it screwing anything up within iTunes?
    If I now want to move all my music to an external hard drive, will this effect anything? i.e. could I just move the whole \Stephen\Music folder to the external HDD and would this be fine? Or would I need to have it in the iTunes folder first and then move that folder across?
    Many thanks in advance for any assistance. I just want to make sure I have the correct set up and not run into any problems when moving to my external HDD!

    Yes, there is a benefit in having your iTunes library organized inside the iTunes Media folder.
    If you place new content inside the iTunes Media folder before adding it to the library then the setting of the "Copy files..." option isn't important. Letting iTunes make copies of files added from outside the media folder leaves you with having to manage them later, or possibly leads to a situation where you end up importing them again leading to duplicates.
    You can't (in general) move your files around without iTunes losing track of them. A special case exists when the files are inside the designated iTunes Media folder, which in turn is inside the iTunes folder that contains the library files. When the library is in this shape the entire iTunes folder and its subfolders can be moved as a unit between drives, or even computers, and iTunes won't lose track of the media. Having the library organized in this portable state, and backed up, should ensure you can migrate or restore your library when the need arises.
    If you want to reorganize the library properly do the following:
    Use the option File > Library > Organize Library... > Rearrange files in the folder "<Media Folder">, if not greyed out, then press OK.
    Close iTunes.
    Copy the entire iTunes folder to the root of your chosen drive, e.g. to X:\iTunes, then delete the file X:\iTunes\iTunes Music Library.xml as this file will be redundant in the new layout.
    Press down and hold shift as you click the icon to start iTunes. Keep holding until asked to choose or create a library.
    If iTunes opens normally, close it and go back to step 4.
    Click Choose and browse to the new copy of the library file, e.g. X:\iTunes\iTunes Library.itl.
    Use the option File > Library > Organize Library... > Consolidate files and click OK. When the process is complete the iTunes folder and media files that were connected to iTunes on your original drive can be deleted. Though ideally not before you backup your library to another disk.
    tt2

  • Can I use the database toolset within a fieldpoint vi?

    I want to be able to read and write to a database on our network using the database toolset. My vi works under windows but does not under fieldpoint. (does not run at all). I've included (loaded) the template while building the executable. As well I've include the udl support file to access the database

    Ola,
    If I was designing this system I would use a shared variable which contains the name of the last data file written by the FieldPoint.  The PC would monitor that name and when it changes, use the FTP VIs to download it to the PC.  The PC VI would then parse the text file and insert into the SQL database.
    Using a lock file or a Boolean Data Ready? flag would also be very valid approaches.
    Depending on how fast you are acquiring data you might be able to do away with the intermediate text file.  Another possible approach would be to use the TCP VIs to effectively stream the data from the FieldPoint back to the PC where it can be inserted into the database.
    Regards,
    Simon H

  • Problem in using the f:attribute tag in JSF

    when I am trying to loop the JSF using the JSTL tag <c:foreach> I am getting the value as "Error:form_id0" .cold any one help me please

    Now with Unified EL - JSTL and JSF tags are supposed to work on one page.
    If you want to use Unified EL you need
    1) A container that is built on Servlet 2.5 / JSP 2.1 , and example of such a container is Tomcat 6.x
    2) Probably need to upgrade to JSTL 1.2 , and JSF 1.2
    3) If you're upgrading the container to Servlet 2.5 then web.xml should conform to Servlet 2.5 version.
    4) Use correct taglib URIs for JSTL 1.2 and JSF 1.2
    Read here: Summary of new features in JSP 2.1
    http://java.sun.com/developer/technicalArticles/J2EE/jsp_21/index.html
    JSP 2.1 Technology and JSF 1.2 Technology
    http://java.sun.com/developer/community/chat/JavaLive/2004/jl1207.html
    http://java.sun.com/products/jsp/index.jsp
    Message was edited by:
    appy77

Maybe you are looking for