validation clears x:inputFileUpload field

2005-08-19 Thread mfaine
Using last nights build. I have a page with several form fields and an upload file component. If validation fails on any of the required fields the validation error messages print correctly and all of the fields maintain their state except the x:inputFileUpload component field. It is for some re

x:inputCalandar display issues when default fields are changed

2005-08-18 Thread mfaine
Myfaces 1.0.9 I set the default value for an x:inputCalandar before the page loads if someone changes either the day of the week or the year and leaves them blank, then clicks the popup button. The display of the calandar goes all horizontal and will then display NaN for the year. Any help w

Re: Request Parameters are not set by managed bean facility

2005-07-08 Thread mfaine
ing like "#{param.form1:name}" > instead of #{param.name} to have the same result. I'm not sure that > the first expression is legal, though. You probably know more about > EL than I do and could probably make that work somehow, though. > > > On 8 Jul 2005 15:36

Re: Request Parameters are not set by managed bean facility

2005-07-08 Thread mfaine
leResolver that could do this for you > automatically, if I understand the VariableResolver concept. Once you > did that, then param.name could be handled as you expect it to work. > Sounds like it might be a useful extension for myfaces. > > -Mike > > On 8 Jul 2005 14:32:16 -0

Request Parameters are not set by managed bean facility

2005-07-08 Thread mfaine
I'm trying to use the managed bean facility to set fields in my beans from values passed in a certain scope. I'm having trouble setting the value for a field if I use request scope. In my faces.config I have a bean that is request scope. If I set the value of of the managed property "name" to #{

clientId not in request parameter map?

2005-06-30 Thread mfaine
>From looking at the source for HtmlRenderUtils I see that if clientID is not in the request paramter map you will get the message: "There should always be a submitted value for an input if it is rendered, its form is submitted, and it is not disabled or read-only." I'm getting this message in m

x:inputDate value not submitted.

2005-06-29 Thread mfaine
I have an x:inputDate on my form (request scope) the form is submitted back to the same page and a different dataTable is rendered depending on a boolean flag. The page basically serves as input and verification for form fields. When the page refreshes all the fields display for verification just

Reinitializing a session managed bean

2005-06-17 Thread mfaine
How can I reinitialize a session managed bean? The bean cannot be request scope. I've had too much trouble with request scope managed beans in this application. But if I make it a session scoped bean I'll need to be able to reload it. Thanks, -Mark

flow control

2005-06-17 Thread mfaine
Has anything been done with flow control? I need to ensure that page A is visited before page B and that only page A is ever bookmarked or accessed directly. I can do this by using tokens but I haven't written it yet and I don't want to reinvent the wheel if there is already some feature in myfac

Re: Controlling access to a view

2005-06-16 Thread mfaine
On 16 Jun 2005 18:11:34 -, "mfaine" <[EMAIL PROTECTED]> wrote : > On Thu, 16 Jun 2005 19:17:36 +0200, Martin Marinschek > <[EMAIL PROTECTED]> wrote : > > > AFAIK, a forward should be the standard. > > > > you would have to embed a "&quo

Re: Controlling access to a view

2005-06-16 Thread mfaine
On Thu, 16 Jun 2005 19:17:36 +0200, Martin Marinschek <[EMAIL PROTECTED]> wrote : > AFAIK, a forward should be the standard. > > you would have to embed a "" in your Navigation-rules to > have a redirect executed. > > Your problem might be that with a forward, you might render a very > different

Controlling access to a view

2005-06-16 Thread mfaine
I want to control access to the pages within my application to prevent bookmarking or linking to pages within application. I intended to do this using the servlet specification security constraint: sensitive submittal /faces/pages/* sensitive No on

RE: Adding new Render Kit

2005-06-14 Thread mfaine
Basically I just need to know how to make the current myfaces components use my Renderer classes which are subclasses of the ones that come with myfaces. If anyone can tell me how or point me to the right docs I would appreciate it. Thanks, -Mark

Adding new Render Kit

2005-06-13 Thread mfaine
I've extended all the classes under org.apache.myfaces.renderkit.html.ext and added code to some of them ( I'll get to all of them eventually ) to make them (hopefully) more Accessible so that the HTML produced will pass Section 508 validation. I want to add this as a render kit but I can't find a

Re: Validation Error with AddResource

2005-06-06 Thread mfaine
w3.org/TR/html4/strict.dtd";> > > > Chapter 2 > > > > > > > > > it validates without a prob in Tidy? > > regards, > > Martin > > On 6 Jun 2005 15:07:07 -, mfaine <[EMAIL PROTECTED]> wrote: > > I came across a va

Validation Error with AddResource

2005-06-06 Thread mfaine
I came across a validation error when validating a page and the cause was that the page is HTML 4.0.1 Transitional and the tag was ended in XML style, like I was able to fix this by removing the "/" from line 423 of org.apache.myfaces.component.html.util.AddResource. I did not submit a diff bec

Validation Error with inputCalendar

2005-06-06 Thread mfaine
Myfaces 1.0.9 - SVN sources from today. I have the following in my JSP: <%-- effective date --%> When this is rendered the id gets broken into three: id="form4:effectiveDate.day", id="form4:effectiveDate.month", id="form4:effecti

footer facet rendered in wrong location

2005-06-03 Thread mfaine
In my panelGrid I have a header facet and a footer facet and the contents of the table body. The page when rendered constructs the document like this: This is incorrect and causes a validation error when trying to validate the document. Any ideas why this is happening, and/or how to fix it

Re: checkboxes and sorting in a datatable

2005-06-01 Thread mfaine
On Wed, 01 Jun 2005 17:53:49 +0200, Slawek <[EMAIL PROTECTED]> wrote : > check what is executed first: sort method or checkbox setters... > > btw: im using my_own_client_side_java_script_sort_stuff. on p4 2.8GHz it > sorts and rerenders 10x100 table in 1 second. if someone would like to > save

checkboxes and sorting in a datatable

2005-06-01 Thread mfaine
I have an x:dataTable which presents a row of results from a database each with a checkbox. If I sort on a column in the database after selecting a checkbox the checkbox does not also sort relative to the sorted column. For example, if I check the first checkbox and then sort the column descendin

Re: x:dataTable doesn't render an id per row?

2005-05-31 Thread mfaine
On Tue, 31 May 2005 15:35:05 +0200, "Kris Verhoye" <[EMAIL PROTECTED]> wrote : > This is a multi-part message in MIME format. > > > Hi! > > I know that there have been a lot of questions regarding the dataTable, > but I still can't get mine to work. > > I have a table which looks like this:

Re: x:dataTable doesn't render an id per row?

2005-05-31 Thread mfaine
On Tue, 31 May 2005 15:35:05 +0200, "Kris Verhoye" <[EMAIL PROTECTED]> wrote : > This is a multi-part message in MIME format. > > > Hi! > > I know that there have been a lot of questions regarding the dataTable, > but I still can't get mine to work. > > I have a table which looks like this:

Sorting dataTables

2005-05-31 Thread mfaine
>From what I can tell from the example you need two things to sort a table, a field to store the table name and a boolean field to store if the column is ascending/descending. Yet the bean for the example is far more complex. It looks as though a sort method is required as well. Exactly what is

RE:x:dataScroller blanked on page change

2005-05-31 Thread mfaine
It seems you are right. I am not reloading the list on each request. The bean is session scoped. I have set it to request scope to test and the dataScroller functions correctly. I guess this means that a x:dataScroller will not work with a session scoped bean? Someone please correct me if I'm

RE:x:dataScroller blanked on page change

2005-05-27 Thread mfaine
Thanks for your mail and I don't mind posting for you. I also had trouble posting. I cannot post from work. I must post from my ISP or it gets returned with some kind of "Forged" error message. I use my ISPs webmail account to post to this list. It is the only thing that works. You are corre

RE:x:dataScroller blanked on page change

2005-05-27 Thread mfaine
Hi, I have a problem similar to yours. And after 2 days struggling, I decided to post it for help. I made a datatable with checkbox for every row, a delete button, and a dataScroller. In the back bean, I defined a list to hold the data. (there is another bean for row data, this is for datatable)

x:dataScroller blanked on page change

2005-05-26 Thread mfaine
Myfaces 1.0.9 I have a x:datatable backed by a session scoped managed bean. The dataTable works just fine but the x:dataScroller does not. If I attempt to select the next page I loose all the data and see an empty screen. Any assistance in solving this mystery would be appreciated. Thanks

selectall function

2005-05-23 Thread mfaine
I have a datatable with records listed along side a checkbox for each record. I have tried to implement a selectall feature that would select all of the checkboxes when the Select All checkbox is checked. I can update the data model to set a selected attribute on each record but the checkboxes in

SelectItem problem with selected item

2005-05-19 Thread mfaine
I have a selectOneMenu tag on my page that looks like this: The validator does nothing but make sure they haven't selected the first item which is a placeholder item that reads "Select a contractor". contractorSelectItems are all initialized at application start from a database query. T

h:selectBooleanCheckbox and valueChangeListener problem

2005-05-19 Thread mfaine
I have a tag that I use to present the user with a "Select All" function that allows multiple checkboxes to all be checked. The tag uses a valueChangedListener to loop through a List and set a property on all the objects in the List. The list is used by a dataTable that presents to the user all

x:inputFileUpload - accepts everything

2005-05-13 Thread mfaine
In my x:inputFileUpload tag the accept attribute does not work. Any file is accepted. I could not find this on the bug list so I'm wondering if I am doing something wrong, surely if this were a bug it would have been found by now. Thanks, -Mark

Validation Errors Inconsistent

2005-03-09 Thread mfaine
Myfaces 1.0.8 Tomcat 5.0.28 I have a page with an x:inputFileUpload tag and a number of other associated h:inputField tags. Many of the inputField tags are required as is the inputFileUpload tag but strangely I only get validation error messages when the inputFileUpload has been populated. It is

unclosed connection warnings

2005-02-24 Thread mfaine
I'm getting a message like this each and every time an action is executed. Hiberante sessions are managed by Spring. Any idea why and/or how I can fix it? Is this even serious enough to be concerned about? 13:31:11,197 WARN SessionImpl:3400 - unclosed connection Thanks, -Mark

Re: resetting beans

2005-02-24 Thread mfaine
I think I've figured out a new way (at least for me) to clear everything and start new. In my main document listing bean (request scoped), I have the following code in the init() method. HttpSession session = (HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(fal

writing a file - difference between browsers?

2005-02-24 Thread mfaine
When I call the uploadAction a file is written to the filesystem of the server running the application. When using Firefox it works great but when I'm using Internet Explorer it crashes out. Here is the code: public void writeFile ( byte[] bytes , String path ) { File file = new File ( p

resetting beans

2005-02-24 Thread mfaine
The main bean in my application is responsible for listing documents and is scoped request so that it will always be up to date. The bean that is used to edit one of these documents is dependent on the document type and are all scoped session. Currently I'm using this rather hackish device to r

required validator not working with selectOneListbox

2005-02-23 Thread mfaine
I have the following on my page: ... then The editAction is allowed to execute even if selectedDocumentId is null? Actually it is the actionListener method that gets called regardless of the value for selectedDocumentId. Thanks, -Mark

RE: inputFileUpload - accept multiple file formats

2005-02-18 Thread mfaine
oad, one for the other form fields? Thanks, -Mark > > -Original Message- > From: mfaine [mailto:[EMAIL PROTECTED] > Sent: Friday, February 18, 2005 9:08 AM > To: MyFaces Discussion > Subject: x:inputFileUpload - accept multiple file formats > > > Is it possible

x:inputFileUpload - accept multiple file formats

2005-02-18 Thread mfaine
Is it possible to accept multiple mime types. What is the format? Should this work?

passing parameters in request

2005-02-17 Thread mfaine
I'm passing a document object as a request attribute but I've noticed that only the fields that are contained on my form are passed, regardless of if the bean property has a value. If it is not on the form it is passed as null. Is there some way around this? I'd like to set a object to be passed

Re: can't add value to request parameter map

2005-02-15 Thread mfaine
Martin Cooper wrote: > > > On Mon, 14 Feb 2005, mfaine wrote: > >> I am trying to do the following in my actionListener method. >> >> FacesContext context = FacesContext.getCurrentInstance(); >> context.getExternalContext().getRequestMap().put("selectedD

x:inputDate and ADF Faces

2005-02-15 Thread mfaine
Ever since adding ADF Faces to my project my x:inputDate tag no longer functions correctly. The popup box is displaying as one long string of numbers and the year is NaN. Even if I put the date in manually I get an error: The given value (effectiveDate) is not a correct date. Any assistance with

can't add value to request parameter map

2005-02-14 Thread mfaine
I am trying to do the following in my actionListener method. FacesContext context = FacesContext.getCurrentInstance(); context.getExternalContext().getRequestMap().put("selectedDocument", document); later I try to retrieve with: Document doc = ( Document ) FacesContext.getCurrentInstance ().

param not being passed in command button

2005-02-14 Thread mfaine
I have a List box and a command button: List box: Command Button: When I check the contents of the parameter map on the next page I get: 10:35:14,634 DEBUG NasaGeneralBean:? - jsf_state_64 = H4sIALVae2... 10:35:14,634 DEBUG NasaGeneralBean:? - _id1:_link_hidden_ = 10:35:14,6

Best Practice, saving state

2005-02-11 Thread mfaine
In a web application I am writing a user edits an object in a multi-step process. What would be the best practice of the two: A. Save and Restore the state to/from the database at each step. B. Save and Restore the state to/from the session and only save to the database at the end of the proces

problem with includes and request scoped variables

2005-02-08 Thread mfaine
Not sure if this is exactly on-topic but the problem may be a result of some JSF mechanism. I have a section at the beginning of all my JSPs that looks like this: ... The contents of ../inc/head.jsp looks like this: <% String title = request.getParameter("title"); String style =

delete file

2005-02-04 Thread mfaine
This is a little off-topic but I have implemented a file system service that I'm using to operate on files on the file system. For some reason the delete operation which really just calls file.delete() sometimes doesn't work. If you continually call it, it will eventually work but this is bad for

Re: Critique implementation of managed bean access

2005-02-03 Thread mfaine
On Thu, 3 Feb 2005 00:12:50 -0600, Heath Borders <[EMAIL PROTECTED]> wrote : > I think what he's saying is that if you have a request-scoped bean > that needs to reference a session scoped bean. You can have JSF > automatically set the request-scoped bean's property upon creation > with the manag

x:inputFileUpload usage

2005-02-02 Thread mfaine
Could someone explain to me the usage of x:inputFileUpload, providing details of how it works or provide some documentation that would do the same? Thanks, -Mark

request value set in managed bean system is always null

2005-02-02 Thread mfaine
I am trying to pass a request parameter from one request scoped bean to another using a command button and managed bean system. The way it is setup is as follows: Source Managed Bean/JSP: User clicks command button (Edit) after selecting a item from a list box. CommandButton editAction execute

RE: pass bean as parameter to JSP

2005-02-01 Thread mfaine
Matthias, in reply to your post: > >inside of edit.jsf you got a form (backed to a bean) >The Bean (backed to edit,jsp) could have a constructor like this: > BackingBeanForEditing(){ >String param = (String) >FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("u

passing request scoped bean around

2005-01-27 Thread mfaine
What is the best way to pass around request scope managed beans? I have managed beans that needs to populated using values from other (previous) request scope managed beans. The beans have to be request scoped in order for the application to work correctly. Someone from another forum has sugge

meaning of WARN messages in debug logs

2005-01-27 Thread mfaine
I'm getting a lot of messages that look like this: 14:58:56,747 WARN Digester:120 - [ValidatorRule]{faces-config/validator} Merge(org.apache.myfaces.validator.Email) 14:58:56,747 WARN Digester:120 - [ValidatorRule]{faces-config/validator} Merge(org.apache.myfaces.validator.ISBN) 14:58:56,747

RE: messages with embedded html

2005-01-27 Thread mfaine
On Thu, 27 Jan 2005 07:58:04 +0100, "Matthias Wessendorf" <[EMAIL PROTECTED]> wrote : > If you set escape to false > > you will be able to render something like: > > > So it should be posible to place "Hello" > in your bundle, *when* you use the escape attribute. > > HTH, > Matthias That ans

FileInput tag, save file on server

2005-01-26 Thread mfaine
I would like to use the fileinput tag to save a file on the server until such a time it is deposited into another system. The user has the option of depositing the file now, or at a later date. I also need to save the path of the file into a field so that it can be persisted to the database. Thi

required input character

2005-01-26 Thread mfaine
Has anyone ever suggested an attribute to input fields that if required would set which character would indicate the field is required. Something like requiredChar="*" This way I wouldn't have so many  * tags in my code. Just a suggestion, if someone else has suggested it what is the status? Al

inputDate component

2005-01-21 Thread mfaine
I'm trying to use inputDate component with Sun RI and I'm getting this error message: >From the firefox javascript console: Error: jscalendarSetImageDirectory is not defined Source File: http://localhost:8080/es/faces/pages/document.jsp Line: 228 Error: jscalendarPopUpCalendarForInputDate is not

Re: Possible to use myfaces extended components with SUN RI?

2005-01-21 Thread mfaine
On Fri, 21 Jan 2005 09:19:15 -0500, Sean Schofield <[EMAIL PROTECTED]> wrote : > The only problem I have personally run into when using the components > with the RI is with Tiles. The tiles addon for MyFaces claims > (incorrectly) to work with the RI. (We should probably strike that > statement

Re: Don't load the taglibs of MyFaces ...

2005-01-21 Thread mfaine
On Wed, 19 Jan 2005 11:09:50 -0500, Sean Schofield <[EMAIL PROTECTED]> wrote : > Yeah I'm having a problem with JBuilder 2005 also. The editor > complains that it doesn't recognize the "x" tags. I'm using the > correct URI in my taglib statement and the myfaces.jar is in the class > path (of th

Possible to use myfaces extended components with SUN RI?

2005-01-21 Thread mfaine
Is it possible to use the myfaces extended components with Sun's Reference Implementation of JSF? I have tried to include the myfaces-components.jar in my project so that I could use the inputCalendar component but I always get an error about Duplicate component ID. Thanks, -Mark

ActionListener get value of component

2005-01-18 Thread mfaine
I have a commandButton that depends on the value of the selected Item in a list box. I don't want to do a value change listener because then every time someone clicks a different item there will be a post. I want to do an action listener but I don't know how in my action listener code to get the

Explain how to use selectOneMenu with Hibernate

2005-01-12 Thread mfaine
Please forgive my confusion but I have been struggling with implementing a simple database driven dropdown list box for several days now. I use Hibernate and Spring along with JSF in this application. 1st, I do not understand why I must map a Center/Contractor object instead of just the Long valu

Re: instantiating bean within managed bean

2005-01-10 Thread mfaine
On Mon, 10 Jan 2005 16:54:35 +0100 (CET), "Bruno Aranda - Dev" <[EMAIL PROTECTED]> wrote : > Hi Mark, I don't understand very well your problem but I think you have > here a problem with hibernate, when saving the user there is a property of > Center that is null and in your hibernate mapping fil

Why is bean property null?

2005-01-10 Thread mfaine
User: public class User implements Serializable { /** * User * Default Constructor */ public User () { logger.debug("User is created"); } private String username; private Long centerId; private Long userId; private String phone; private String project; private boolean userContractor; private Str

instantiating bean within managed bean

2005-01-10 Thread mfaine
I have a class that looks like this: public class UserBean extends BaseBean { private String username; private Long userId; private Center center; private String phone; private Contractor contractor; private String project; private boolean userContractor; private String contractNu

creation of new beans

2005-01-06 Thread mfaine
When a managed bean is created that has as properties other beans, do these bean properties get instantiated as well? For example, I have a bean UserBean with a property Center that is itself a bean. There are getCenter and setCenter methods. When a new UserBean is instantiated will Center also

valid syntax for value binding expression ?

2005-01-06 Thread mfaine
Is the following allowed: where center is an object (bean) of userBean? I keep getting this error: javax.faces.el.PropertyNotFoundException: Error testing property 'centerId' in bean of type null I also tried but instead I got this error message: javax.faces.el.PropertyNotFoundExcepti

Re: JSF and Hibernate

2004-12-15 Thread mfaine
>>The more interesting question is: do JSF and Spring work well together? I'm glad you brought up this question because from the Spring website and docs one would think that Spring just automatically works with any web framework and there is absolutely no issues of integration that even need to b

JSF and Hibernate

2004-12-14 Thread mfaine
Anyone using JSF with Hibernate? Do they work well together? What has been your experience? -Mark

database code in bean constructor

2004-12-13 Thread mfaine
I'd like to put database code in my bean constructor. The user logs will authenticate against a domain using JCIFS but still has the ability to update user specific fields: phone, project, center, organization, etc. I'd like to do the following: When user visits "user information" I'd like to

RE: practical difference between 'backingbean' and bean

2004-12-10 Thread mfaine
On Fri, 10 Dec 2004 17:31:32 +0100, "Matthias Wessendorf" <[EMAIL PROTECTED]> wrote : > > The authors sugest using backing beans rarely if > > what did they write exactly? I don't know the book > (its content...) > > -Matthias > > > > On page 51 they write: "Backing beans have their uses,

practical difference between 'backingbean' and bean

2004-12-10 Thread mfaine
I'm reading Core JavaServer Faces by David Geary and Cay Horstmann. The authors sugest using backing beans rarely if ever and when I asked Mr. Horstmann about it I was never able to get a clear answer to this question: Isn't the difference academic?. I can't see how you can write a complete JSP

pass bean as parameter to JSP

2004-12-09 Thread mfaine
If I have several beans (in a collection) that are all of the same type and I would like to allow the user to click a button to go to a page that would allow editing the fields of this bean. How do I pass the bean as a parameter. IOW, how do I dynamically wire a bean to a JSP page? Thanks, -Mar

Tomcat 5 EL Expressions not evaluated in jsp:include files

2004-12-06 Thread mfaine
Tomcat 5 I would like to create my JSPs as all XML like so: http://java.sun.com/JSP/Page"; xmlns:f="http://java.sun.com/jsf/core"; xmlns:h="http://java.sun.com/jsf/html";> http://www.w3.org/1999/xhtml";> Unfortunately the EL code in the included JS