StreamingAddResource with JSF 1.2

2007-10-26 Thread CarlHowarth
Hello, Is it still the case in MyFaces 1.2.0 that using this: context-param param-nameorg.apache.myfaces.ADD_RESOURCE_CLASS/param-name param-valueorg.apache.myfaces.component.html.util.StreamingAddResource/param-value /context-param with the Tomahawk

Faces 1.2 Command Button ActionListener Problem

2007-09-07 Thread CarlHowarth
Hello there, I have taken the plunge to start using MyFaces 1.2 (I've experience with 1.1.*). I have run into a strange problem that hopefully somebody will be able to help with. I have a standard h:commandButton with an actionListener, the code for which is in a standrad request-scoped backing

Immediate property on self-submitting drop-down

2007-08-14 Thread CarlHowarth
Hello there, I have a select one menu in a file that is included on all pages of my webapp. This is to change the language of the site based on user's preference. I have included onchange=submit(); and immediate=true however the immediate property appears to be ignored and validation occurs on,

Re: [Solved] ERROR: Value is not a valid option

2007-02-27 Thread CarlHowarth
with any large code base, it'll take a little time to really understand the layout. On 2/26/07, CarlHowarth [EMAIL PROTECTED] wrote: Hi, I am having this problem too. My select one is set up as follows: h:selectOneMenu id

Re: [Solved] ERROR: Value is not a valid option

2007-02-26 Thread CarlHowarth
Hi, I am having this problem too. My select one is set up as follows: h:selectOneMenu id=regionList binding=#{Bean.regionListUI} value=#{Bean.region} f:converter converterId=myapp.Region/ f:selectItem itemValue=0 itemLabel=(all)/ t:selectItems var=r itemLabel=#{r.name}

Re: [Solved] Validation error Value is not a valid option appeared since upgrade to 1.1.5

2007-02-22 Thread CarlHowarth
. Many thanks in advance, Carl CarlHowarth wrote: Hello there, I have just upgraded to MyFaces 1.1.5 from 1.1.4 and have come across a problem with the UISelectOne component, using a custom converter. When my form is submitted I now get a message on screen: Validation Error Region

Validation error Value is not a valid option appeared since upgrade to 1.1.5

2007-02-21 Thread CarlHowarth
Hello there, I have just upgraded to MyFaces 1.1.5 from 1.1.4 and have come across a problem with the UISelectOne component, using a custom converter. When my form is submitted I now get a message on screen: Validation Error Region List: regionList: Value is not a valid option. Where

Dynamic Datatable CommandSortHeader Problem

2007-01-29 Thread CarlHowarth
Hi there, I have a strange problem with a datatable that I am generating on the fly (since the user may choose the columns they wish to appear). It all appears to be working just fine, except for the sortation under certain circumstances. On first load of the page, all sortation works without

Re: download file breaks lifecycle

2007-01-19 Thread CarlHowarth
Hello, I posted a question previously relating to this that unfortunately has not had any replies - I'm hoping to get this resolved I have the same problem whereby the file's downloaded then any subsequent action on the page causes the file to re-download. I have added the saveSerializedView

convertDateTime short year entry

2007-01-15 Thread CarlHowarth
Hello there, I have a JSF app which allows date entry. My default pattern is the UK style (dd/mm/), however I would also like to allow shortened entry (dd/mm/yy). If I try and enter a date in that fashion today's date of 15/01/07 is amended to 15/01/0007. The tags are set up as follows:

Error using inputHidden with resource file

2006-11-29 Thread CarlHowarth
Hi, I'm trying to return javascript alerts for certain error messages in my application, however I want to get the text from a resource file. I have added an inputHidden control and set its value to the text in the resource file. In the javascript I return the text from the inputHidden control's

Re: Error using inputHidden with resource file

2006-11-29 Thread CarlHowarth
outputText element, which will only be read but never posted back. I would suggest to set display:none in the style (or styleClass) and that should do the job. cheers, Gerald On 11/29/06, CarlHowarth [EMAIL PROTECTED] wrote: Hi, I'm trying to return javascript alerts for certain

Re: Error using inputHidden with resource file

2006-11-29 Thread CarlHowarth
. Regards, Volker 2006/11/29, CarlHowarth [EMAIL PROTECTED]: Hi Gerald, Unfortunately style is not a valid attribute of the inputHidden control so this method won't work unfortunately. Thanks, Carl Gerald Müllan wrote: Hi, the problem is that you do a little mixture between

Re: Error using inputHidden with resource file

2006-11-29 Thread CarlHowarth
Sorry, just got the response re output text - this works well with the display:none. Cheers, Carl CarlHowarth wrote: Hi, I'm trying to return javascript alerts for certain error messages in my application, however I want to get the text from a resource file. I have added an inputHidden

Querying data on row creation in a dataTable

2006-11-23 Thread CarlHowarth
Hello there, I have a datatable is populated with a collection of items, and I want to query each item that is returned to determine whether or not the currently user has the rights to view/edit the item, thus returning the relevant icon/link. The Item bean is unaware of which user is logged

DataScroller/DataTable positioning

2006-11-01 Thread CarlHowarth
Hello there, I want to place my datascroller above my datatable - is this possible? I have added a condition to the scroller that makes sure it only gets rendered when there are enough rows: rendered=#{BackingBean.recordCount} 20} When the count does exceed 20 I get the facets appearing but

Re: DataScroller/DataTable positioning

2006-11-01 Thread CarlHowarth
/ /f:facet ... /t:dataScroller /h:panelGrid /h:panelGroup /h:panelGrid Regards, Jeff Bischoff Kenneth L Kurz Associates, Inc. CarlHowarth wrote: Hello there, I want to place my datascroller above my

t:savestate.. component binding serializable problem

2006-10-06 Thread CarlHowarth
Hi, I have an app that uses the tomahawk savestate component to save the state of the backing bean. I have just tried bind a selectonemenu component to the backing bean however as the HtmlSelectOneMenu class is not serializable I get an error as this can not be saved. If I change to session

commandLink commandButton differences in file download behaviour problem

2006-10-03 Thread CarlHowarth
Hello there, Hopefully someone can help - I have looked through the existing queries and can't just find what I'm after. I have a main record with asociated files - the files are uploaded through my web app and are downloaded from the same page that lists the files in a dataTable. I have a

Re: Strange actionListener/component value problem

2006-09-21 Thread CarlHowarth
the BackingBean.object.subObject.id value in Hibernate? Is this really doing what you want it to do? I use Cayenne, so I can't say, but normally I want to set a variable to the data object returned, not set an id on an existing data object. On 9/20/06, CarlHowarth [EMAIL PROTECTED] wrote: Hi Mike, I didn't have

Re: Strange actionListener/component value problem

2006-09-21 Thread CarlHowarth
object returned, not set an id on an existing data object. On 9/20/06, CarlHowarth [EMAIL PROTECTED] wrote: Hi Mike, I didn't have a converter within the selectOneMenu - the ID of the selectItems is simply an integer. I'm a bit new to JSF - I have tried adding a convertnumber within

Re: Strange actionListener/component value problem

2006-09-21 Thread CarlHowarth
wrote: Hi, have you inserted a t:messages tag into the page in order to see if any errors may happen? regards, Gerald On 9/21/06, CarlHowarth [EMAIL PROTECTED] wrote: Hi again, I have been having a look at the custom converters and have written one that should handle any

Re: Strange actionListener/component value problem

2006-09-21 Thread CarlHowarth
, Gerald On 9/21/06, CarlHowarth [EMAIL PROTECTED] wrote: Hi again, I have been having a look at the custom converters and have written one that should handle any potential nulls. I set the value of the selectOneMenu to be #{BackingBean.mainObject} and the custom converter returns the ID

Strange actionListener/component value problem

2006-09-20 Thread CarlHowarth
Hi, I have a strange issue with a JSF page I am working on... When I set the value of a selectOneMenu component to a property of my backing bean, my action listeners stop being fired. If I set the value of my selectOneMenu to a property of an object stored on my backing bean they work again.

Re: Strange actionListener/component value problem

2006-09-20 Thread CarlHowarth
/06, CarlHowarth [EMAIL PROTECTED] wrote: Hi, I have a strange issue with a JSF page I am working on... When I set the value of a selectOneMenu component to a property of my backing bean, my action listeners stop being fired. If I set the value of my selectOneMenu to a property of an object