Richard Roszak

Greenhorn
+ Follow
since Jan 06, 2009
Merit badge: grant badges
For More
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 Richard Roszak

How do you add a Dynamic Web Project to an EAR in Eclipse Galileo?
I’m working on a large project that is using JDK1.5 and it looks as if the xsd’s have generated java files using JAXB 1.0. I’m trying to use JAXB 2.0 to generate new java files where I have modified the xsd’s. I generate the java files but there are compile errors:

“AccessType cannot be resolved” and “The import javax.xml.bind.annotation.AccessType cannot be resolved”

Is it possible to have generated files in the same project using both versions of JAXB?

Thanks
13 years ago
Thanks Ivan. You are correct. If I move the MS.xsd to current directory or give a relative path in the schemaLocation it works correctly.
13 years ago
I have reference to a namespace that is in a different directory then the xsd that I’m trying to bind. When I try binding I get the following error:

[ERROR] src-resolve: Cannot resolve the name ‘ms:MyMethod.Enumeration’ to a(n) type definition component.


My xsd looks like this:




The line it fails is as follows:





MS.xsd is located ..\..\..\MS directory above where this xsd is located. Not sure on how I need to use xjc to generate the java files while finding the MS.xsd?

Thanks
13 years ago
I'm writing a Java module for my web application that would allow the user to reset their password in LDAP. When I execute the module I'm getting the following error:
[LDAP: error code 50 - Insufficient Access Rights]

Is this due to the fact that only a user that is admin can change password in LDAP?

I'm not passing Context.SECURITY_PRINCIPAL and Context.SECURITY_CREDENTIALS in my HashMap.

Thanks
13 years ago
The question came up because I observed that after a successful login my application goes to a home.jsf page. Getting to that page involves calling no method. The application looks thru the faces-config.xml finds the managed bean for the home.jsf page which is the HomeController and calls it's constructor. The constructor in turn calls a showHomePage method. Is there anyway to get Faces to call the showHomePage method from outside the constructor directly after the login or is this always the navigation faces uses for the initial page?

Thanks.
13 years ago
JSF
Is it possible on the server using the FacesContext to find the the action from a <a4j:commandLink ?

Thanks
13 years ago
JSF
I would like to redirect in a JSF page itself dependent on which panelGrid is rendered:



Is this possible?

Thanks
14 years ago
JSF
I'm having an issue it opening a popup using h:commandLink. The first time I clink on the commandLink the browser creates the popup goes out to the server to my MyBean.generatePdf method and creates the pdf in the popup. If I don't manually close the popup and click on the link again the main browser gets replicated in the popup.


Here is the jsp code:



I followed it in debugger on server and I see the first time it directly goes into my MyBean.generatePdf method but the second click only takes me into the getter for MyBean.generate and just returns.

Another thing I found is that if I try a third click it works correctly as it did the first time. Why wouldn't it see the action correctly the second time in?

Thanks,
14 years ago
JSF
In my jsp I have the following:

<h:messages id="detailError" styleClass="priority" showDetail="true" globalOnly="false" layout="list"/>

On a command link in the page I call a javascript. In the javascript I check to see if there are any error messages. Whether I'm generating error or not the length of h:messages is alway zero.

Here is the javascript:

var arr = new Array();

function onPopup(){
arr = document.getElementsByName('form1:detailError');
alert("total # of objects = " + arr.length);
}

What am I missing?

Thanks
14 years ago
JSF
I have the following select box code:

<h:selectOneMenu id="version" value="#{myBean.versionSelection}" >
<a4j:support event="onchange" action="#{myBean.changeVersion}" status="loadStatus" reRender="panel"/>
<f:selectItems value="#{myBean.versionSelectionItems}" />
</h:selectOneMenu>

What I need to do is check before the user selects a version in a select box to see if they have changed any values in the form. Select a new version in the select box brings new data to the page.

I have added an onsubmit in the <a4j:support :



This does allow my javascript to see if I have a there is a flag set for a change, keeps the form the same to allow the user to save it but the selectbox is already changed to what the user wanted. Is there a way to execute the onsubmit before the select box is actually changed. I would like to execute my javascript as soon as the user tries to change the selectbox not after they have changed it.

Thanks.
14 years ago
JSF
What I want to do is when the user chooses a option in the <h:selectOneMenu currently it refreshes the page with new data but same jsp. The new data is of a different version. What I want to do is warn the user that he is going to a diffeerent version of the page and will loose any changes they made. I know how to trap whether a change was made but don't know how to pop up an alert befeore the version is changed.
I have a javascript that will pop an alert if the user is going to another page but need to implement it for new version same page.

If I call the javascript before the "a4j:support event="onchange" action="#{" nothing happens. So I need to know how to call the javascript before the action to load the version.

14 years ago
JSF
I would like to capture movement in my application as the user changes from web page to web page using a dropdown menu. The navigation is done with a <a4j:commandLink. Is there a method similar to ontableave used in <rich:tab to acomplish this?

Thanks
14 years ago
JSF
In my jsf I am reading a bean value and executing java script if its set to true:



Is there any way in the jsf or in the javascript I can set to false?

Thanks
14 years ago
JSF
Ok I understand but I only want my javascript called if in the Bean I have a certain value set. Not sure how I can do that?

Thanks

Richard
14 years ago
JSF