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, Allows any number of letters, number. -- View this message in context: http://www.nabble.com/validateRegExpr-broken--tf3652789.html#a10204206 Sent from the MyFaces - Users mail

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 it

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 se

Re: PhaseListener and saveSerializedView

2007-01-21 Thread Matt Tyson
We are using ADF's token state saving, so I had to add a mechanism to increment the token hidden field on the document during the AJAX request. That resolved this. Matt Matt Tyson wrote: > > I've got a phaseListener that handle my ajax requests. I can successfully > r

PhaseListener and saveSerializedView

2007-01-19 Thread Matt Tyson
I've got a phaseListener that handle my ajax requests. I can successfully recover the view and component by either manually using restoreView or by waiting till the afterPhase() of the restoreView phase. Once I have the component, I manually call its encode methods, followed by the saveSerialize

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 oracle.adfinternal.view.faces.uinode.FacesRenderingContext.setRenderingProperty

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

Re: Saving State

2006-12-18 Thread Matt Tyson
t.jsp. 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,

Re: Saving State

2006-12-15 Thread Matt Tyson
> each frame will have there own component tree (their own viewId) in the > server side.. > > > Matt Tyson >

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 fr

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

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 page,

Re: resotring state

2006-12-13 Thread Matt Tyson
n 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.g

Re: resotring state

2006-12-13 Thread Matt Tyson
"jsf_state_64":clientState, "jsf_viewid":viewId} }); Only took a day. Thanks for pointing me in the right direction Simon. Matt Tyson wrote: > > Simon, > > Here's where the problem arises. Th

Re: resotring state

2006-12-13 Thread Matt Tyson
y 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 = >&

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 s

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 i

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 c

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 I'

Re: PhaseListener as managed bean?

2006-12-07 Thread Matt Tyson
Instance(); >ValueBinding binding = > context.getApplication().createValueBinding("configBean"); >return (ConfigBean)binding.getValue(context); > > > On 12/7/06, Simon Kitching <[EMAIL PROTECTED]> wrote: >> Matt Tyson wrote: >> > Can you ha

Re: PhaseListener as managed bean?

2006-12-07 Thread Matt Tyson
ituation... Regards, 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 a

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: http://www.nabble.com/PhaseListener-

Re: Tree2 with dynamic nodes

2006-11-29 Thread Matt Tyson
other framework should > be relatively easy > > http://sourceforge.net/projects/jsf-comp > http://sourceforge.net/project/showfiles.php?group_id=137466&package_id=197375 > > The code is currently just support for tree2. > > On 11/29/06, Matt Tyson <[EMAIL PROTECT

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

Tomcat and undeploying ADF jar

2006-11-07 Thread Matt Tyson
hanks. 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.

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.

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

2006-11-03 Thread Matt Tyson
and without the render-kit-id. I know the config file is being picked up (if I comment out this renderer, everything loads). 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: &

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

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

2006-11-03 Thread Matt Tyson
But I get: expected a myfaces custom component class in package org.apache.myfaces.custom What am I not doing right? Thanks very much. Matt Tyson -- View this message in context: http://www.nabble.com/Subject%3A-expected-a-myfaces-custom-component-class-in-package