Amy N. Snow

Greenhorn
+ Follow
since Apr 09, 2008
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
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Amy N. Snow

We have an application that stores the information of an application form in XML and some documents attached to the form in Alfresco. The latest XML of the application data is also stored in the database.

Now we have to implement functionality where we have to perform searches based on the content of the application.

Is it a good idea to perform searches using the search APIs (Lucene, etc.) provided by Alfresco or it would be an overkill (inefficient, etc.)?


Thanks.
I don't know if this is the correct forum to ask if someone thinks I should post in another forum let me know.

I'm using Weblogic 10.3 and in the development environment I have configured the HTTPS with a certificate issued to the FQDN of the host in the internal network, that is my certificate CN is hostname.organzation-name.local. For development purposes this is perfect and from the internal network we can use the website without problems.

No I'll have to configure the HTTPS for the Production server that is access from the Internet. I think the network people have a NAT Firewall. I'm not sure what they're using, but I'm almost sure it is not a HTTP Web Server in front of the Application Server and the external users access the application with an external IP. If I ask for a certificate issued to the internal FQDN or internal IP and install it in Weblogic the internal applications would be able to verify the identity of my server, but when a user connects using the web browser he/she will receive an error from the browser that the certificate does not match the address entered.

What should I do to prevent this? Should I request a certificate alternate subjects and include the external IP as an alternate subject or should I have different certificates? If I need to have different certificates how would I configure this in Weblogic?

Thanks.
7 years ago
Hello,

I have a custom facelets component called "selectRow" it is a simple h:selectOneMenu with an ui:insert inside it:

Then on my page I try to use it:


But it doesn't work. If I see the source code I see a <c:forEach> evaluated on top of the select html tag and an empty option. I tried use ui:repeat but then I only get an empty option.

What is the problem?
8 years ago
JSF
Thanks again Tim. Let me see if I understood correctly.

Tim Holloway wrote:Somebody's been working with Struts, I think.



Not Struts, I'm using MyFaces Trinidad components (Ajax enabled JSF components)

A session-scope object has a fairly long lifetime. Unlike request-scope objects, which are created and destroyed every time you submit a request, session objects, once created, live until the session itself is destroyed, either explicitly or because the session timed out due to inactivity. So no, you won't lose your "form bean" (or more accurately speaking, your Managed Bean named "form"). Therefore you can safely inject it into any bean of equal or shorter lifespan - meaning that session beans can be injected into other session beans and/or request beans, but request beans cannot be injected into session beans (JSF will throw an error, if you try).



I'm explicitly invalidating the session in my example, but I see I was doing it the other way around in the example of my previous post.
Although, if I inject the orderMsg property (a property in my Form class) on the form Managed Bean into the orderMessage Managed Bean message Managed Property and I invalidate the session when I'll try to retrieve the #{orderMessage.message} property it will be empty.

Occasionally this restriction requires a little creativity. For example, you might need to inject in the other direction in order to satisfy these restrictions. That is, if you a have a request-scope object that needs to be processed by a session-scope object, you'd have to inject the session-scope object into the request-scope object, then have the request-scope object perform a callback on the injected object. That's not as awkward or unnatural as it may sound, just takes getting used to the Inversion of Control way of doing things. IoC isn't unique to JSF - the Spring Framework, for example is all about IoC.



Based on what you just mentioned above I understand that I would have to have a request-scoped Managed Bean that holds the "message" and somehow set the value of orderMsg in the form Managed Bean ("perform a callback") but I don't see a way to perform this callback using the Managed Beans facility.

Can you guide me?


Thank you.
8 years ago
JSF

xsunil kumar wrote:Can You describe me, what is your problem and what is the goal of this mapping. What finally you want to get from this type of mapping.



Right now with my current mapping I have no problems. I was just wondering is there was any way to create the class in the second way I mentioned.

Its an Item - Item component parent/child relationship.
Tim:

I want to pass a value from the Form bean, that is session scoped, to the Message bean that I have already in the faces-config.xml (and I want the message to be request scoped), but I don't understand how can I setup a managed-property to do this.

I have this managed bean:



If I set the other managed bean like this:



When the session is terminated the orderMsg bean will be empy because the form bean was destroyed, right?


Can you give me an example of how could I do this with managed properties?

Thanks.
8 years ago
JSF
I think I found out the current way to do it:

8 years ago
JSF
Hello,

Currently I'm using the following code in one of my classes:



But the type ValueBinding is deprecated.

What is the currently accepted method to do this?

Thanks.
8 years ago
JSF
I have an existing DB schema with the following tables,

Items(item_id, item_price, item_description, category, creation_date, last_update_date)
Item_Components(parent_id, component_id, effective_date, creation_date, last_update_date)

I can only figure out a wat to create a mapping and use this Item class:




And the ItemComponent class:



But I would like to end up with a class similar to this one:




Notice that instead of a list of ItemComponents I would like a list of items.

I can't figure out a way to create a mapping where I can use this last class with my current schema.


(Note: The columns component_id and parent_id are foreign key references of the column item_id if the Items table)

Can someone help?

Thanks.



On the production server (Weblogic 10.3) the node manager is not configure and the company wants to use it. Right now the app server is using a Custom Identity and Custom Trust jks stores and the Admin server and the node manager reside on the same machine. How can I use the node manager without buying an SSL certificate? Can I use a self-signed certificate? It is a bad idea to use a self-signed certificate for production (only the node manager would be using the cert)?
8 years ago

Tim Holloway wrote:After you invalidate the session, EVERYTHING below application scope should be wiped out.

However, request-scope objects have an even shorter lifespan. They get reconstructed for each HTTP request. Hence the name "request" scope.



Everything below the session, not the application scope. I know the request scope beans are alive through the request that's why I need one after I invalidate the session, but I do not know how to store information into the request managed bean from the backing bean method. I've seen the setValue method from the ValueBind but I understand that is deprecated in JSF 1.2 and I wanted to know the best approach.
9 years ago
JSF
You assign a class to the tr:inputText element. Then you define the css like this:





9 years ago
JSF
I have a action method called submit. That method is inside a managed bean with session scope. At the end of the submit() method I want to invalidate the session but I would like to keep a number to display after the session is invalidated. How can I store that number in a request scoped managed bean?

This is the request managed bean:

<managed-bean>
<managed-bean-name>confirmationMsg</managed-bean-name>
<managed-bean-class>beans.Messages</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<managed-property>
<property-name>message</property-name>
<property-class>java.lang.String</property-class>
<value>#{form.number}</value>
</managed-property>
</managed-bean>

I've tried setting the value to the property number of the form bean but the value is blank after I invalidate the session.


Thanks.
9 years ago
JSF
I have an application (client) that has uses SSL to connect to another application (server). The other application owner's send me a certificate (pkcs12) and the cert. password. That is set in the javax.net.ssl.keyStore and javax.net.ssl.keyStorePassword properties respectively. The application also sets the javax.net.ssl.trustStore property. My question is; how do you generate the cacerts (truststore) file? Do the server application ppl have to send me that file?


Thank you.
9 years ago
Sorry, to a database.
9 years ago
JSF