validateRegExpr broken?

2007-04-26 Thread Matt Tyson
I've tried various regular expressions in the regex validator and it doesn't appear to do anything. For instance, t:validateRegExpr pattern=^[0-9]{1}$/ Allows any number of letters, number. -- View this message in context:

Setting selected item in SelectMany

2007-03-14 Thread Matt Tyson
How can you set the selected items for a UISelectMany during rendering? -- View this message in context: http://www.nabble.com/Setting-selected-item-in-SelectMany-tf3406117.html#a9487726 Sent from the MyFaces - Users mailing list archive at Nabble.com.

When is the response writer set in the context?

2007-01-31 Thread Matt Tyson
I had thought the response writer was set during the restoreView phase by the viewRoot. I have a phase listener that is invoked after the restore view, then calls a handler on a component. I assumed the context would have the writer set in it, but its null at that point (unless I manually set

Datatable, findComponent and saveState

2007-01-21 Thread Matt Tyson
I've found a few posts in the ballpark of the issue I'm working on right now, but no solutions. I have a custom component inside a t:datatable. I'm actually just using the datatable to manage multiple instances of my custom component. The custom component is a floatingPane (from dojo) that

Re: java.lang.NullPointerException during render phase when using ADF and MyFaces Tomahwak components together

2006-12-24 Thread Matt Tyson
I'm seeing this issue using ADF 10.1.3. I have the default renderer set to adf's renderer, and when I try to render a t:commandlink inside a facet, I see the following trace: java.lang.NullPointerException at

Windows and server-side state

2006-12-23 Thread Matt Tyson
I've seen some discussion of problems with state saving and multiple windows. My situation is I have a custom tree component in a left frame that has nodes which when clicked open a new jsf url in the right frame. After clicking the link, the right frame loads properly, but the state is not

Re: Saving State

2006-12-18 Thread Matt Tyson
. So get around this, you can make frameLeft.jsp itself a frameset that has only one frame inside. Inside that frame, put your actual view, and myfaces will recover the state correctly. Matt Matt Tyson wrote: I've got a component inside a frame. The state is server side, and JSF can't find

Saving State

2006-12-15 Thread Matt Tyson
I've got a component inside a frame. The state is server side, and JSF can't find it. If I hit a command button inside that frame, it can thereafter find the state. Leaving aside the question of why we are using frames, can anyone explain this behavior? During the initial request for the

Re: Saving State

2006-12-15 Thread Matt Tyson
Here is my theory. When the request is submitted for the framed page, its from the framing page, with a different session ID. Matt Tyson wrote: I've got a component inside a frame. The state is server side, and JSF can't find it. If I hit a command button inside that frame, it can

Re: Saving State

2006-12-15 Thread Matt Tyson
storing the view when it has been requested from inside a frame. I don't know why. Any other ideas? Thanks, Matt Matt Tyson wrote: I've got a component inside a frame. The state is server side, and JSF can't find it. If I hit a command button inside that frame, it can thereafter

resotring state

2006-12-13 Thread Matt Tyson
Hello, This works using server-side state saving: UIViewRoot viewRoot = context.getApplication().getViewHandler().restoreView(context, viewId); And then I can get the component I'm interested in. The viewRoot has no children if its client-side state saving. Do I need to manually restore the

Re: resotring state

2006-12-13 Thread Matt Tyson
into the request, but I'm still not getting my state back, perhaps because of 2)? Any suggestions? Thanks. Matt Simon Kitching-3 wrote: Matt Tyson wrote: Hello, This works using server-side state saving: UIViewRoot viewRoot = context.getApplication().getViewHandler().restoreView(context

Re: resotring state

2006-12-13 Thread Matt Tyson
} }); Only took a day. Thanks for pointing me in the right direction Simon. Matt Tyson wrote: Simon, Here's where the problem arises. This is an ajax request being handled in a phase listener. I'm waiting till after the the restoreView phase, but with client-side, the request is 1) missing

Re: resotring state

2006-12-13 Thread Matt Tyson
on the wire. Fortunately, switching back to server-side is trivial -- at least for this particular situation. Matt Simon Kitching-3 wrote: Matt Tyson wrote: Got it. Here's the params I needed to send with the ajax request: var clientTree = document.getElementById(jsf_tree_64).value; var

State saving and custom component

2006-12-12 Thread Matt Tyson
Here's my setup... 1) Request comes in and the component is rendered as normal 2) Next request is a AJAX request. I grab the request in a listener during restoreView, and get the component using its clientId (we're in the afterPhase method). Then I manually call the the encode methods on the

Re: State saving and custom component

2006-12-12 Thread Matt Tyson
I always enjoy answering my own questions moments after posting them. Here's the missing piece I needed for others: context.getApplication().getStateManager().saveSerializedView(context); Regards. Matt Tyson wrote: Here's my setup... 1) Request comes in and the component is rendered

Rendering of children/facets during AJAX response

2006-12-08 Thread Matt Tyson
So I've got my tree rendering nodes based on ajax data. Now I want to be able to control the node rendering via facets (a la the tree2 component). My question, is the way to do this: iterate through the facets and children using _FacetsAndChildrenIterator during my ajax response? Basically

Re: PhaseListener as managed bean?

2006-12-07 Thread Matt Tyson
, Matt Simon Kitching-3 wrote: Matt Tyson wrote: Can you have a phase listener entry in the config.xml be a managed bean reference? I've got a phase listener that needs a reference to another object to get some data and I want to externalize that reference. Not as far as I know. I would

Re: PhaseListener as managed bean?

2006-12-07 Thread Matt Tyson
().createValueBinding(configBean); return (ConfigBean)binding.getValue(context); On 12/7/06, Simon Kitching [EMAIL PROTECTED] wrote: Matt Tyson wrote: Can you have a phase listener entry in the config.xml be a managed bean reference? I've got a phase listener that needs

PhaseListener as managed bean?

2006-12-06 Thread Matt Tyson
Can you have a phase listener entry in the config.xml be a managed bean reference? I've got a phase listener that needs a reference to another object to get some data and I want to externalize that reference. Thanks. Matt -- View this message in context:

Tree2 with dynamic nodes

2006-11-29 Thread Matt Tyson
We are shooting for ajax nodes with lazy loading. I've looked at quite a few ideas, but nothing really addresses what we're imaging. We're looking to actually just append or remove nodes from the tree using JS and the DOM with Ajax. So when a user clicks a node, the ajax request goes and gets

Re: Tree2 with dynamic nodes

2006-11-29 Thread Matt Tyson
be relatively easy http://sourceforge.net/projects/jsf-comp http://sourceforge.net/project/showfiles.php?group_id=137466package_id=197375 The code is currently just support for tree2. On 11/29/06, Matt Tyson [EMAIL PROTECTED] wrote: We are shooting for ajax nodes with lazy loading. I've looked

Tomcat and undeploying ADF jar

2006-11-07 Thread Matt Tyson
. Matt Tyson -- View this message in context: http://www.nabble.com/Tomcat-and-undeploying-ADF-jar-tf2590203.html#a7222857 Sent from the MyFaces - Users mailing list archive at Nabble.com.

Subject: expected a myfaces custom component class in package org.apache.myfaces.custom

2006-11-03 Thread Matt Tyson
very much. Matt Tyson -- View this message in context: http://www.nabble.com/Subject%3A-expected-a-myfaces-custom-component-class-in-package-org.apache.myfaces.custom-tf2568868.html#a7160628 Sent from the MyFaces - Users mailing list archive at Nabble.com.

Re: Subject: expected a myfaces custom component class in package org.apache.myfaces.custom

2006-11-03 Thread Matt Tyson
Dennis, That fixed it. I REALLY appreciate your assistance. I removed the rendit-kit-id from the faces-config entry that registered my subclass of the JSCookMenu converter and it resolved the error in the subject line. Again, thank you very much. Matt Tyson P.S. I removed this topic from

Re: Subject: expected a myfaces custom component class in package org.apache.myfaces.custom

2006-11-03 Thread Matt Tyson
). Can anyone tell me what else I might be doing wrong here? Just trying to replace the renderer with my own subclass. Thanks. Matt Tyson Matt Tyson wrote: Dennis, That fixed it. I REALLY appreciate your assistance. I removed the rendit-kit-id from the faces-config entry

Re: Subject: expected a myfaces custom component class in package org.apache.myfaces.custom

2006-11-03 Thread Matt Tyson
ceHandler.java:75) Which I thought was fixed in the current code base. Unfortunately, since the JsCookMenu renderer uses private methods instead of protected, I'm doing some cut-and-paste that makes the call to MyFacesResourceHandler. Suggestions? Matt Tyson wrote: Dang it. That didn't