Aj Jaro

Ranch Hand
+ Follow
since Oct 24, 2010
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Aj Jaro

I'm super excited to have passed the OCPJP 8 Upgrade today with a 91%!  Sweet!

I used the OCP Study Guide from Boyarsky and Selikoff along with Enthuware Studio.  The book was helpful to get me up to speed and Appendix C was critical with the upgrade exam, focusing on WatchService, FileVisitor, ReentrantLock, and various language enhancements.  I would've definitely spent a little bit longer on that.  However, Enthuware was clearly needed after going through the book so that I could get a good feel for the upgrade specific practice exam.  Unfortunately, the practice exams from the study guide were all for 1Z0-809 so it was a bit misleading for test preparation.  Enthuware provided the necessary preparation for me and was clearly worth the investment.

Enthuware Standard Test Results:
Test 1: 61%
Test 2: 63%
Test 3: 66%
Test 4: 72%
Last Day Test: 81%
Congratulations Max!  I'm preparing for the same exam and using the same material.  I'm glad to see that it helped so much.
4 years ago
Each dotComsList has its own ArrayList of locationCells to check.  For example, if the first dotComsList has d1, d2, and d3 those would be stored in the locationCells list for that object.  Then for the second dotComsList maybe it has a1, a2, a3 in the locationCells list.  

Next when the checkUserGuess method runs, it loops through each dotComsList object and checks the locationCells list within it.  So it will start with the first dotComsList object and then run checkYourself on that.  When it runs checkYourself, the code looks in the locationCells list which in my example contains d1, d2, and d3.  The code looks for the userInput within the locationCells list and if it exists in the list then the item is removed and either 'kill' or 'hit' is returned.  When the last value is found/removed from the list 'kill' is returned.

After it finishes with the first dotComsList, it looks at the next dotComsList (a1, a2, and a3).  And this continues through the same process looking for values in the locationCells.

Here's another way to explain it visually.
dotComsList(1)
  • locationCells(d1)
  • locationCells(d2)
  • locationCells(d3)

  • dotComsList(2)
  • locationCells(a1)
  • locationCells(a2)
  • locationCells(a3)
  • 4 years ago
    That's actually not the case. If you look at the RichFaces showcase you'll see that tooltips can be applied to more components than just input controls.

    The resolution to this issue was to use the <h:body> tag instead of the HTML body tag. RichFaces creates some additional JavaScript on the close of the <h:body> tag that's used on tooltips.

    Thanks for the suggestions though.
    6 years ago
    JSF
    I've been trying to use the Richfaces 4 tooltip demo from the RichFaces Showcase, but I can't get the tooltip to show up. I've tried variations on the two tooltips shown below, but I can't get any tooltip information to display. Do you know what I'm missing to make this work?

    6 years ago
    JSF
    I found out that I have to override getRendersChildren with a return of true and then I can choose to render everything from the encodeChildren method which I also need to override. Here are the two new methods I had to override and what they look like. I created a localRendered boolean field which I populate based on the logic previously given instead of calling the setRendered method.

    Thanks!

    6 years ago
    JSF
    I've created a custom component called conditionalDisplay. It has an action (hide/display), comparison (equals or isNull), and value1/value2. Value1 and Value2 are compared if the comparison is 'equals' and if they are equal, the specific action should be performed. This is helpful when there is a little more complicated logic than normal and it provides a different interface than just adding the boolean result in the bean class.

    My trouble is getting the children tags not to render. It has no problem rendering, but when the action is 'display', the comparison is 'equals', and the values don't match it still renders. It seems like using the setRendered method in the encodeBegin method should work, but it continues to render the children.

    In the simple example below, when the Bean.client equals 'YYY' the div tag should display and that part works fine. However, when the client is anything else, say 'AAA', the div tag should not be rendered. I've followed the code through the debugger and found that it's setting the setRendered method to false, but it's still rendered. Do you know why it is still rendering or what I need to do in the logic so that it doesn't render?


    ConditionalDisplayTag.java

    UIComponentBaseTag.java


    index.xhtml
    6 years ago
    JSF
    I was able to resolve some of these differences in implementation by creating an 'Update Site Project' instead of using the Export Wizard. Although there shouldn't be much difference between the two, I seemed to have created different results with the Export Wizard.
    I'm creating an additional connector to the Mylyn Task plugin for an internal defect tracking system which is housed within a SQL Server DB. I have been able to get this working when I run the plugin as an application from the Plugin Development Environment. However, when I install an run it on a different instance of Eclipse, it has problems connecting to the DB and indicates there is no suitable driver for my connection. I have the sqljdbc4.jar included in various locations in the plugin projects.

    In the run configuration I don't see any SQL values selected. When I install it using the installation wizard, though, I do see a few errors about 'Unable to acquire PluginConverter service during generation', even when I don't use the dropins folder.

    All of this is done in Luna. Do you have any thoughts on why it wouldn't use an included JAR file or why I'm getting the pluginConverter failures?

    Thanks in advance!
    Yeah, they changed the JAR file construction around a bit under the Mojarra Issue 2028 so that it was contained within one JAR instead of multiple ones.

    Thanks again so much for your help.
    7 years ago
    JSF
    Tim, thanks again for all your help.

    I was able to get the hello.xhtml working properly and my configuration is below. Tomcat didn't need to be reinstalled as changing the libraries didn't impact the overall installation, but I did put the original libraries back in place.

    The version in faces-config.xml seems like there are some major changes between 1.2 and 2.0.


    Libraries added to webapp:
    javax.faces-2.2.0.jar
    jsf-facelets-1.1.15.B1.jar
    jstl-1.2.jar
    richfaces-impl-jsf2-3.3.3.jar

    hello.xhtml


    web.xml (snippet)


    faces-config.xml (snippet)
    7 years ago
    JSF
    Ok, thanks Tim. I can only figure it's still a library problem then because the application code for hello.xhtml is quite simple. If you have any further ideas on which libraries I've incorrectly placed or am missing that would be greatly appreciated.

    We intend on doing a phased upgrade approach to RichFaces 4. In this first phase, we're just going to make sure that our application is working with JSF2. Then in the second phase we'll upgrade RichFaces. In this way, we'll try to reduce the risk/impact of each change by making smaller changes.

    hello.xhtml
    7 years ago
    JSF
    I was just thinking about this today. Is it possible or likely that this is caused by running with RichFaces 3.3.3 even though I'm not referencing it within hello.xhtml? Specifically, is it a conflict between Facelets 2 and RichFaces 3.3.3?
    7 years ago
    JSF
    Thanks Tim for helping point me in the right direction. Unfortunately, even with the standard Tomcat 7 installation the same exception is still thrown. Do you have any further suggestions?

    7 years ago
    JSF