Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!

Gina vernon

Ranch Hand
+ Follow
since Jan 16, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
3
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Gina vernon

Paul Clapham wrote:Seems to me you're accusing the people who designed that class of being idiots.



Paul, I don't know what you are on, but I don't know where in my post you felt I was accusing anyone.
Its obvious who the idiot really is. Don't ever try to interpret my words into something hateful. Looks like you are one of the moderators, great job at making this 'A friendly place for programming greenhorns'.
Go on, keep ticking people off but stay the **** out of my way. The next time, feel free to stay away from my questions. I can do without your arrogant, egotistic answers.
7 years ago
Anyone?
7 years ago
Hi,
I want to integrate the weak, soft and phantom classes into my code. But before I do, I want to understand if or not the api objects themselves, that is, an instance of a Reference object take up a lot of memory.

For example:


When is ws garbage collected? It seems like it will always have a strong reference to itself.
Would creating multiple such reference objects actually burden my code instead of making it more efficient?
7 years ago
Here's the sessionfactory:




Here's the DAO method:


The above method throws the following exception:


I dont know if this helps, but the column names in the view are aliases.

Thanks.
Here's my config file:



I have sqljdbc4.jar in my classpath.

Thanks.
Hi,
I am trying set up a query with bind variables in hibernate. This query searches a view in an MS SQL server database.

I used setparameter method of the SQLquery class but the resultset returns empty.

I then added the parameter directly to the query, like so:



and it works.

Is there any way of using bind variables here?

Thanks.
Hi,
I am interesting in looking at the source code for implementing required attribute on a component like inputtext, etc. Can anyone point me to the it? I tried searching but did not find much, maybe I am using the wrong search words.... I have looked at UIComponenttag and UIComponenteltag, but they dont actually show how the required functionality is processed.

Thanks.
7 years ago
JSF
Hi,
I am get the following error when trying to dynamically load an htmldatatable:



View code:


Backing bean code:


Data access layer is hibernate.
Hibernate entity code for colA:


Any input appreciated.

Thanks.
7 years ago
JSF
Hi,
Is there anyway to provide column aliases in hibernate, such as:




From the documentation it seems that only placeholders for column aliases can be provided and Hibernate then provides its own aliases. Is my understanding right?

Thanks.
Hi,
I am trying to programmatically create HTMLextendeddatatable. Here's the view code:



And the backing bean:



The datatable isn't rendered as expected. Any thoughts?
7 years ago
JSF
Thanks, Tim! The absolute path worked perfectly.
7 years ago
JSF
Ok, hopefully I can explain this more clearly. I am actually a bit confused now.

Tim, says the paths are relative to the resource and not the template. If that's the case page1 and page2 will need two different paths which is not possible with a single template.

Here's my issue again:

The file/resource, which here is page2 in subfolder2, is referencing a template outside its directory. So the paths in the template are not relative to the resource, they are relative to the template.

Here's the dir structure again:

folder 1_ _ _
template1
page1
|
|
subfolder2
page2

Also, you say EL is not being evaluated for the icon attribute? That also doesn't make sense. EL should work for any attribute.



That came out wrong. The EL value is being evaluated but it evaluates to an incorrect path .
Context path in the source code page shows the path as 'app/app/folder/image.jpg' not 'app/folder/image.jpg',which is the correct path.

Here's the rich tag:


Here's the HTML:


I have regular HTML tags like <img> and <link> in the template as well. They work fine from the either page.



7 years ago
JSF
Greg, thanks a bunch for the solution. But this solution only worked with html components like img & link. I have a rich:panelMenuItem whose icon attribute does not read the EL expression #{facesContext.externalContext.requestContextPath}.

The source code shows this when comparing html component paths to rich faces component path. Let's say the contexpath is app:

HTML-app/folder/image.jpg
Richfaces-app/app/folder/image.jpg

Any thoughts?


7 years ago
JSF
Hi,
I am using facelets to template JSF views. The templates reference all the image paths and other relevant file paths. Due to this I am unable to create sub directories for the files calling the templates. for example:

folder 1
template1
page1_ _
|
|
folder2
page1

in the above dir structure, folder2,page1 will not render the template as the file paths in the template are relative to the folder in which the template resides which is folder1. I can add template1 to each sub folder, but that beats the purpose of templating.

Thanks.

7 years ago
JSF
Hi,
I am not sure if such functionality is available in hibernate but this is what I am trying to do:

I have table



User loads the entities in this table to edit. When the user edits the records depending on whether colA OR colB are updated, only colC OR colD must be updated. Otherwise the update should not be done. Is there anyway of accomplishing this?

Thanks.