where can I find the source for formLabels and formInputs css files?

2006-09-28 Thread Thomas_Perry
hi, I've seen these used as styleClasses in myfaces examples, but can't find their source. I was just curious about how they influenced a form display. Thanks Tom This message is intended for the recipient only and is not meant to be forwarded or distributed in any other format. This

where can I find the source of these two css files?

2006-09-22 Thread Thomas_Perry
I've seen these used for styleClasses but haven't found their source: formLabels and formInputs Can anyone point me to them (sun? myfaces?) Thanks in advance for your help Tom This message is intended for the recipient only and is not meant to be forwarded or distributed in any

does anyone have sample code for a tooltip-like display?

2006-09-08 Thread Thomas_Perry
I have a list that is populated from a dataTable. data in several columns (outputText) is truncated by the backing bean to help keep the overall list within an area. I'd like to display the full data in a column when the user moves the mouse over a column with truncated data. I've been

Re: does anyone have sample code for a tooltip-like display?

2006-09-08 Thread Thomas_Perry
Mike, thanks for the example. I tried it but I'm seeing these results... When I put the mouse over a column that has a popup tag, a small empty component (with tiny scrollbars) appears next to the mouse, and the text associated with the popup appears separately to the right of the mouse,

have t:dataTable, need to get the rowIndex into a javascript var

2006-08-31 Thread Thomas_Perry
hello, we're running myfaces and tomahawk 1.1.3 I have a dataTable where I need to get the rowIndex of the first row displayed on a page (this table has many rows/pages). I found this example on the web var b = 'h:outputText value=#{myBean.property}/'; I coded this var index =

Re: has anyone used EL with a jsp style tag? - you were right

2006-08-18 Thread Thomas_Perry
Thanks for your support Mike. You were right, the syntax was correct, I just had to put it on the right tag. In the end, this is what I tested and worked... h:outputLabel id=outputLabelForInputText for=inputText value=Input follows styleClass=#{testBean.error ? 'error' :

has anyone used EL with a jsp style tag?

2006-08-16 Thread Thomas_Perry
hello to all, I'm trying to do something like this h:outputLabel for=foo style=#{someBean.boolean ? 'error' : 'body'} The purpose being to make a field label display the error style or a standard style depending on whether the backing bean has detected an error. I've googled around but

Re: has anyone used EL with a jsp style tag?

2006-08-16 Thread Thomas_Perry
hi, yeah I meant styleClass. I've tried a lot of combinations and they all seem to get flagged as an error in EL syntax by MyEclipse, and the page causes an exception when I try to bring it up in tomcat. Maybe there are other ways to do the same thing? I just want to change the styleClass

RE: how deeply into a bean does myfaces update value references?

2006-08-01 Thread Thomas_Perry
Thank you all for responding to my question. I probably should have begun by stating my problem: I want to be able to reset an update form to it's initial state. Sounds simple enough, but... A button of type=reset works fine, but on this jsp, a form submit may have occurred to refresh

how deeply into a bean does myfaces update value references?

2006-07-31 Thread Thomas_Perry
hello everyone, I have a jsp and backing bean. The jsp has a field like h:inputText value=#{myBean.foo} MyBean.java has the foo property, and it also has a property like private MyBean myBean = null; with getters and setters I save a copy of MyBean here before any update so I can

Re: how deeply into a bean does myfaces update value references?

2006-07-31 Thread Thomas_Perry
Andrew, would myfaces also find the property 'MyBean mybean' which is defined in MyBean and call setFoo on that reference? for example, I've got MyBean class private String foo (with getters and setters) private MyBean myBean (with getters and setters before the update page

is there a way to pull a session scope variable directly into a jsf tag?

2006-07-27 Thread Thomas_Perry
let's say I have a session scoped attribute (not a component) named foo, with a value of bar I wanted to create a command button like h: commandButton action= #{session.foo} ... to pass the string value to jsf for navigation. I didn't want to put the value in a managed bean, so used just a

RE: is there a way to pull a session scope variable directly into a jsf tag?

2006-07-27 Thread Thomas_Perry
Thank you James and Julian. Your help is greatly appreciated. Putting all session scoped variables in one place makes sense, but at this time we have a bunch of code that treats this one value as a separate attribute. for the time being I'll use the syntax from James and going forward

different behavior... onchange=submit() and javascript form.submit()?

2006-07-26 Thread Thomas_Perry
hello, We have a tomahawk element t:selectOneMenu id=SelectItems forceId=true onchange=submit() value=#{formMgr.selectedItem} When an item is selected from this list, it causes another select list on the page to be refreshed with items related to the selection. This works fine.

Re: how do you folks handle a Cancel button?

2006-07-25 Thread Thomas_Perry
Thanks to all for your responses. Special thanks to Julian Ray. You've helped me twice now, first on javascript syntax for the select id, now the immediate attribute. Someone mentioned the reset button...I'm using it and it in fact does work. The original state of page properties is

how do you folks handle a Cancel button?

2006-07-24 Thread Thomas_Perry
hello to everyone, I have a form that displays detail data from a backing bean. The same bean supplies properties for an update page. The update page has a Cancel button and when selected should return the user to the detail page with no changes saved. Simple enough use, but when the

need javascript syntax to loop through checkbox list from dataTable

2006-07-18 Thread Thomas_Perry
hello to everyone I'm using a tomahawk dataTable where one of the t:columns contains a t:selectBooleanCheckbox The tag has id and a forceId=true attributes. In the rendered html, the id of the checkbox is foo[0], foo[1] etc I need to be able to loop through this list and look for a