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:
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.
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
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
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
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
.
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
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
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
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
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
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
}
});
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
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
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
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
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
,
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
().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
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:
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
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
.
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.
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.
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
).
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
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
27 matches
Mail list logo