RE: [Announce] Release of Apache MyFaces Trinidad 1.0.2

2007-08-15 Thread William Hoover
The download page still refers to version 1.0.1 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Matthias Wessendorf Sent: Wednesday, August 15, 2007 4:31 AM To: [EMAIL PROTECTED]; MyFaces Development; MyFaces Discussion Subject: [Announce] Release of Apache

RE: Instantiate a backing bean from other

2007-07-26 Thread William Hoover
The code below works for accessing bean instances from other beans (as long as they exist)... /** * Gets a managed bean from the current context using the specified bean * class/name. This is useful when attempting to extract a subview bean. * The codebeanName/code represents the name of the

[Trinidad] JS Resources

2007-07-25 Thread William Hoover
Since Trinidad version 1.0.1 I noticed that the js resources append the version 1_0_1 (prior versions append 11-m3) to the end of all of the js resources. I have a Trinidad extension jar that uses a js resource under META-INF/adf/jsLibs/myJsResource.js (I know this will be changing to

RE: [Trinidad] Renderer Listeners

2007-07-19 Thread William Hoover
be a lot easier if the overall UIComponent API were overhauled... -- Adam On 7/17/07, William Hoover wrote: The problem with the tableSelecti on is that I can't ensure that the page will always be using a table component for the list, but I

RE: [Trinidad] Renderer Listeners

2007-07-17 Thread William Hoover
To: MyFaces Discussion Subject: Re: [Trinidad] Renderer Listeners On 7/16/07, William Hoover [EMAIL PROTECTED] wrote: The intent is to track selections. It seems like a lot of extra work to maintain quite a few tr:inputHidden components just to capture selection values. I see what your saying

RE: [Trinidad] Renderer Listeners

2007-07-16 Thread William Hoover
some code before/after any component has been rendered- don't you? -Original Message- From: Adam Winer [mailto:[EMAIL PROTECTED] Sent: Saturday, July 14, 2007 12:30 PM To: MyFaces Discussion Subject: Re: [Trinidad] Renderer Listeners On 7/13/07, William Hoover [EMAIL PROTECTED] wrote

RE: [Trinidad] Renderer Listeners

2007-07-14 Thread William Hoover
components for trivial application specific tweaks. Any thoughts? -Original Message- From: William Hoover [mailto:[EMAIL PROTECTED] Sent: Friday, July 13, 2007 4:08 PM To: MyFaces Discussion Subject: RE: [Trinidad] Renderer Listeners As you guessed it, there are links within each table row

RE: [Trinidad] Renderer Listeners

2007-07-13 Thread William Hoover
Subject: Re: [Trinidad] Renderer Listeners There's no event listener, but there is that ResponseWriter API, which will get passed components on startElement(). 99% works (necessarily, because PPR relies on that!). What functionality are you trying to get here? -- Adam On 7/13/07, William Hoover

RE: [Trinidad] Renderer Listeners

2007-07-13 Thread William Hoover
?) -- Adam On 7/13/07, William Hoover [EMAIL PROTECTED] wrote: I am trying to get a f:param value from a CoreCommandLink, but the value is null until the link has been rendered. The link is inside a tr:column- if that helps. -Original Message- From: Adam Winer [mailto:[EMAIL

[Trinidad] tr:inputText / Submit PPR On Enter

2007-07-12 Thread William Hoover
Is there a way invoke a PPR call for a tr:inputText / when the enter key is pressed? For Example (I know submitOnEnter is not a valid attribute- just illustration): tr:inputText id=submitsOnEnter submitOnEnter=#{myBean.processOnEnterCall} /

RE: [Trinidad] tr:inputText / Submit PPR On Enter

2007-07-12 Thread William Hoover
/trinidad-api/tagdoc/tr_form.html Setz the button/link to be a ppr command. On 7/12/07, William Hoover [EMAIL PROTECTED] wrote: Is there a way invoke a PPR call for a tr:inputText / when the enter key is pressed? For Example (I know submitOnEnter is not a valid attribute- just illustration

RE: change view id before render

2007-07-06 Thread William Hoover
I'm not sure if this will help you or not but it worked for chaining a login for me: http://forum.java.sun.com/thread.jspa?threadID=792896 http://forum.java.sun.com/thread.jspa?threadID=792896messageID=4507691 messageID=4507691 -Original Message- From: Stefano Panero [mailto:[EMAIL

[Trinidad] tr:fileDownloadActionListener error

2007-07-05 Thread William Hoover
Using the tr:fileDownloadActionListener inside a tr:column I get the a javax.servlet.ServletException: Invalid index after the download completes and another link is clicked on the page. Has anyone experienced this? Page: tr:commandLink text=Download file tr:sendFileActionListener

[Trinidnad] View Handler Errors

2007-07-03 Thread William Hoover
Is to possible to define a view handler extension in Trinidad without getting the following warnings? org.apache.myfaces.trinidad.context.RenderingContext attach WARNING: Trying to attach RenderingContext to a thread that already had one.

RE: [Trinidnad] View Handler Errors

2007-07-03 Thread William Hoover
-nameorg.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER/param-name param-valuesome.viewhandler.class.path.TheViewHandler/param-value /context-param this makes the custom one to be used as the *delegated* viewhandler, inside the Trinidad ViewHandlerImpl -M On 7/3/07, William Hoover [EMAIL PROTECTED

RE: [Trinidad] How To Add Custom Component Resources Other Than Script

2007-07-02 Thread William Hoover
/07, William Hoover [EMAIL PROTECTED] wrote: Should we open a Jira issue? -Original Message- From: Adam Winer [mailto:[EMAIL PROTECTED] Sent: Friday, June 29, 2007 12:05 PM To: MyFaces Discussion Subject: Re: [Trinidad] How To Add Custom Component Resources Other Than Script On 6/29

RE: [Trinidad] How To Add Custom Component Resources Other Than Script

2007-06-29 Thread William Hoover
, June 28, 2007 6:37 PM To: MyFaces Discussion Subject: Re: [Trinidad] How To Add Custom Component Resources Other Than Script Check out the InternalView API of Trinidad. -- Adam On 6/28/07, William Hoover mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Is there a way to add resources

RE: [Trinidad] How To Add Custom Component Resources Other Than Script

2007-06-29 Thread William Hoover
Should we open a Jira issue? -Original Message- From: Adam Winer [mailto:[EMAIL PROTECTED] Sent: Friday, June 29, 2007 12:05 PM To: MyFaces Discussion Subject: Re: [Trinidad] How To Add Custom Component Resources Other Than Script On 6/29/07, William Hoover [EMAIL PROTECTED] wrote

[Trinidad] How To Add Custom Component Resources Other Than Script

2007-06-28 Thread William Hoover
Is there a way to add resources other than scripts in custom components? What I would like to be able to do is add a static HTML page bundled with the component that will be available through a resource URL similar to how outputScriptlet works (i.e. http://foo/adf/jsLibs/someScriptResource.js).

RE: Phase Listener execute only once ???

2007-06-27 Thread William Hoover
FYI... Make sure that you are not defining the faces-config.xml deployment descriptor as this will cause the configuration to be loaded 2x http://wiki.apache.org/myfaces/FAQ#Twice -Original Message- From: Francisco Passos [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 27, 2007 5:44

RE: [Trinidad] Page flow scope and Back button

2007-06-18 Thread William Hoover
because no one's brought up the idea before. Why things do or don't happen at Oracle is another question altogether. -- Adam On 6/14/07, William Hoover [EMAIL PROTECTED] wrote: A back button detection/management mechanism similar to GWT HistoryListener. -Original Message- From: Adam Winer

[Trinidad] tr:selectManyListbox inlineStyle=... contentStyle=... /

2007-06-15 Thread William Hoover
Is there a difference between inlineStyle and contentStyle attributes for the select many list box component? While testing I found that inlineStyle=display:none has no affect while contentStyle=display:none does. Am I doing something wrong or is this a bug?

RE: [Trinidad] tr:selectManyListbox inlineStyle=... contentStyle=... /

2007-06-15 Thread William Hoover
=... / inlineStyle is for the root dom element, so you can style the *complete* area of the component. try: inlineStyle=background:red; and contentStyle is for the content of the component, here the rendered select / and its option childs. try contentStyle=background:green; -M On 6/15/07, William Hoover

[Trinidad] Custom Component UINodePropertyKey Missing

2007-06-15 Thread William Hoover
I recently created a custom component that uses extended PropertyKey using the new FacesBean.Type(SOME_EXT_COMPONENT.TYPE) and TYPE.registerKey(...) registering the all the needed type keys. All the properties have accociated getters/setters. Also, all of the extended properties are defined in

RE: [Trinidad] Custom Component UINodePropertyKey Missing

2007-06-15 Thread William Hoover
To: MyFaces Discussion Subject: Re: [Trinidad] Custom Component UINodePropertyKey Missing are you creating the custom component w/ the maven-faces-plugin, like Trinidad does itself ? I think the UINodePropertyKey is deprecated, since it is from pre-jsf-days. -M On 6/15/07, William Hoover

RE: [Trinidad] Custom Component UINodePropertyKey Missing

2007-06-15 Thread William Hoover
Have you overridden: protected FacesBean.Type getBeanType() to return your type? -- Adam On 6/15/07, William Hoover [EMAIL PROTECTED] wrote: Using Trinidad 1.0.0 The non-customized component contains the UINodePropertyKey. When stepping through StateUtils restoreKey(FacesBean.Type type

RE: [Trinidad] Page flow scope and Back button

2007-06-14 Thread William Hoover
I wonder why this was not implemented in trinidad's base classes/interfaces in a generic way? -Original Message- From: Adam Winer [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 13, 2007 9:26 PM To: MyFaces Discussion Subject: Re: [Trinidad] Page flow scope and Back button On 6/13/07,

RE: [Trinidad] Page flow scope and Back button

2007-06-14 Thread William Hoover
/07, William Hoover [EMAIL PROTECTED] wrote: I wonder why this was not implemented in trinidad's base classes/interfaces in a generic way? -Original Message- From: Adam Winer [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 13, 2007 9:26 PM To: MyFaces Discussion Subject: Re

RE: [Trinidad] Page flow scope and Back button

2007-06-14 Thread William Hoover
, OK. Yeah, it'd be a great enhancement. It hasn't happened since we open-sourced because no one's brought up the idea before. Why things do or don't happen at Oracle is another question altogether. -- Adam On 6/14/07, William Hoover [EMAIL PROTECTED] wrote: A back button detection/management

RE: [Trinidad] Input Text Format That Uses A Mask

2007-06-13 Thread William Hoover
/converter and it looks like adding a hook would be better suited to do so. -Original Message- From: Adam Winer [mailto:[EMAIL PROTECTED] Sent: Thursday, June 07, 2007 11:32 AM To: MyFaces Discussion Subject: Re: [Trinidad] Input Text Format That Uses A Mask On 6/7/07, William Hoover

RE: How to email a JSF page?

2007-06-11 Thread William Hoover
Just to expand on Andrew's comment... In your listener add this piece of code: ExtensionsResponseWrapper extRespWrapper = (org.apache.myfaces.webapp.filter.ExtensionsResponseWrapper) FacesContext.getCurrentInstance() .getExternalContext().getResponse(); String

RE: [Trinidad] Input Text Format That Uses A Mask

2007-06-07 Thread William Hoover
? Is there server-side validation to double-check the mask was applied? - If this is a component, I think CoreInputTextMasked might be clearer, if the property is named mask. -- Adam On 6/6/07, William Hoover [EMAIL PROTECTED] wrote: Thanks for the info Adam! The component

RE: [Trinidad] Input Text Format That Uses A Mask

2007-06-06 Thread William Hoover
be important for that. I'd love to see this functionality! -- Adam On 6/5/07, William Hoover [EMAIL PROTECTED] wrote: Hello all, I have created a Trinidad component that allows input text boxes to have a user defined mask for entries on the client (similar to Atlas MaskEdit http://www.fci.com.br

RE: [Trinidad] Input Text Format That Uses A Mask

2007-06-06 Thread William Hoover
, I think CoreInputTextMasked might be clearer, if the property is named mask. -- Adam On 6/6/07, William Hoover [EMAIL PROTECTED] wrote: Thanks for the info Adam! The component (CoreInputTextFormat) logic is fairly simple and could be directly integrated into the CoreInputText, if desired

RE: [Trinidad] Input Text Format That Uses A Mask

2007-06-06 Thread William Hoover
/validateRegExpr.html On 6/6/07, William Hoover [EMAIL PROTECTED] wrote: Point well taken! The component should extend UIXInput instead and renamed CoreInputMask. Are you are proposing to change this into a validator or converter instead of a component extension? If it was to use a converter/validator

[Trinidad] Input Text Format That Uses A Mask

2007-06-05 Thread William Hoover
Hello all, I have created a Trinidad component that allows input text boxes to have a user defined mask for entries on the client (similar to Atlas MaskEdit http://www.fci.com.br/maskedit/MaskEdit/MaskEdit.aspx). I would like to know what the process/procedure is to commit this component to

RE: Submit using the enter key?

2007-05-25 Thread William Hoover
Just an FYI... You may need to add code for browser compatibility (Notice that the click() has been changed to onclick()): if ((event.charCode event.charCode == 13) || (event.keyCode event.keyCode == 13)) document.getElementById('formFindArticle:search').onclick(); -Original Message-

RE: Submit using the enter key?

2007-05-25 Thread William Hoover
result... BTJ On Fri, 25 May 2007 07:10:05 -0400 William Hoover [EMAIL PROTECTED] wrote: Just an FYI... You may need to add code for browser compatibility (Notice that the click() has been changed to onclick()): if ((event.charCode event.charCode == 13) || (event.keyCode event.keyCode == 13

RE: Submit using the enter key?

2007-05-25 Thread William Hoover
On Fri, 25 May 2007 07:21:41 -0400 William Hoover [EMAIL PROTECTED] wrote: Could you show a snippet of the browser output with the input, button and form? -Original Message- From: Bjørn T Johansen [mailto:[EMAIL PROTECTED] Sent: Friday, May 25, 2007 7:19 AM To: users

[Trinidad] How to add a custom JavaScript resource script

2007-05-23 Thread William Hoover
I was wondering if anyone knows how to add a js resource in Trinidad? I have a custom component that needs to render a script. I noticed that there is a org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.XhtmlUtils class that has the writeLibImport(FacesContext context, RenderingContext

RE: [Trinidad] How to add a custom JavaScript resource script

2007-05-23 Thread William Hoover
); Thanks, Danny On 5/23/07, William Hoover [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Danny, Thanks for your help! I noticed that the new LibraryScriptlet(String libraryName, String[] functions) passes the script directly into the libraryName. Would I just replace YourScript

RE: [Trinidad] How to add a custom JavaScript resource script

2007-05-23 Thread William Hoover
are currently in the private, internal package, which means they might get changed/moved/etc. Just so ya know! (For instance, we really should move META-INF/adf to META-INF/trinidad). -- Adam On 5/23/07, William Hoover [EMAIL PROTECTED] wrote: Danny, Thanks for your help! I noticed

RE: [Trinidad] How to add a custom JavaScript resource script

2007-05-23 Thread William Hoover
, internal package, which means they might get changed/moved/etc. Just so ya know! (For instance, we really should move META-INF/adf to META-INF/trinidad). -- Adam On 5/23/07, William Hoover [EMAIL PROTECTED] wrote: Danny, Thanks for your help! I noticed that the new LibraryScriptlet(String

RE: [Trinidad] How to add a custom JavaScript resource script

2007-05-23 Thread William Hoover
I did notice that the LibraryScriplet _getLibraryURL is constructing the url as /myapp/adf/jsLibs/MyJSLib.js. Is this correct? -Original Message- From: William Hoover [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 23, 2007 1:55 PM To: MyFaces Discussion Subject: RE: [Trinidad] How

RE: howto click a t:commandbutton via js

2007-05-22 Thread William Hoover
I think he ment to say: Internet Expolder: myInputObj.click(); Firefox: HTMLElement.prototype.click = function() { var evt = this.ownerDocument.createEvent('MouseEvents'); evt.initMouseEvent('click', true, true, this.ownerDocument.defaultView, 1, 0, 0, 0, 0, false, false, false,

[Trinidad] PPR Using Browser Back/Refresh Buttons

2007-05-15 Thread William Hoover
Are there any documented issues when performing a PPR and the browser back/refresh buttons are used?