Did you forget to put your h:dataTable inside and f:view and/or h:form tags?
It looks like topic.jsp line 93 is about the start of the problem, at least
if I read the Stacktrace below it is the area to check.
Regards,
David
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECT
Hello
Waht is the meaning of the exception?
23:20:03,937 ERROR [[Faces Servlet]] Servlet.service() for servlet
Faces Servlet threw exception
javax.faces.FacesException: Component _idJsp6:0:_idJsp8 must be
embedded in an form
at org.apache.myfaces.context.servlet.ServletExternalContextI
I finally found some time to take another look at this, and I figured
out the problem in about 30 seconds. :P
Seems the Crystal component needs to be inside both an f:view tag and an
h:form tag. Those had been accidentally omitted because this was a
conversion from the Cyrstal pure-JSP viewer,
I have a 3rd-party JSF component on one of my pages. When the page is
redisplayed, JSF tries to serialze the view. But, it throws an exception
because the component has a class that prevents it from being
serialized. Can I tell JSF not to serialize this component?
I am using server-side state
Kiran,
> Can the viewRoot be forced to be completely re-created
Wiki page [1] covers ways to force updated model values in input
components. The first solution on that page involves forcing a new view
root. It works well for forcing input components to refresh - maybe it
can help with your pr
One last note, I said to custom render the UICommand, but that is not
needed, just set ting the onclick attribute is probably all that is
needed
On 9/22/06, William Huang <[EMAIL PROTECTED]> wrote:
I will give it a try later.
thanks,
Bill
"Andrew Robinson"
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 o
I will give it a try later.
thanks,
Bill
"Andrew Robinson"
To
"MyF
On 9/22/06, JBuilderDoug <[EMAIL PROTECTED]> wrote:
I finally figured this out, so I'm going to put an entire example in this
post.
If you have time, can you put your example on the wiki?
There is a page already (and I added a link to this thread):
http://wiki.apache.org/myfaces/File_Uploa
All,
I have been unable to get sorting to work when using t:saveState
and t:dataTable. I am saving the entire backing bean(which contains the
ListDataModel that I am sorting on) via t:saveState. I have looked
through the wikis and it looks like there is nothing to it. Are there
any trick
Another thought:
I kept looking at the API for A4J, and found a server side API that
will work for including the zones to refresh:
AjaxRendererUtils.addRegionsFromComponent(javax.faces.component.UIComponent
component, javax.faces.context.FacesContext context)
No the only thing you would need to
These are good suggestion/ideas. I've also had put some thoughts about
similar approach before. I've tried extending UITreeData, TreeNodeBase,
etc.. encountered some unexpected behavior. But ultimately, I pullback on
it. Just want something simple and that wont requiring additional code. I
wil
That is actually what I ended up doing (at least to a certain degree...see
below) to produce a working AJAX tree2 implementation. However, I second
(from your next post) that the tree2 UITreeData component should be changed
to return UIComponent instead to allow any expandable component. If the
t
BTW - instead of decorating UICommand, you could request a change of
the API of UITreeData:
Change HtmlTreeRenderer.java (1.1.3) line 577 from:
UICommand expandControl = tree.getExpandControl();
to:
UIComponent expandControl = tree.getExpandControl();
Change line 111 of UITreeData.java (1.1.3) f
That solution may not work. I just downloaded the last A4J release and
UIAjaxCommandLink is not a UICommand:
java.lang.Object
extended by javax.faces.component.UIComponent
extended by javax.faces.component.UIComponentBase
extended by org.ajax4jsf.framework.ajax.AjaxActionComponent
The way that AjaxAnywhere works is that it builds a Set of
"zones" during the processing of a request. JavaScript can start that
Set and then there is an API on the server
(AAUtils.addZonesToRefresh(ServletRequest, String) method) that one
can use.
So in my approach, I let aa.js submit normally (
Did you make sure the command links have unique component ids?
Its hard to help your problem without a code snippet, but We generate
commandLinks in our application that use actionListeners without any problems.
> ---Original Message---
> From: John Holland <[EMAIL PROTECTED]>
> S
My navigation bean is session scoped already?
I'd like to somehow force the page to rebuild when it is refreshed? Can this be
done?
Can the viewRoot be forced to be completely re-created, so that the components
will 'hide' on page refresh, if they have previously been displayed, and
vice-ver
I dont quite understand the first paragraph..
"Andrew Robinson"
To
You can also use:
FacesContext facesContext = FacesContext.getCurrentInstance();
MyBean myBean = (MyBean)
FacesContext.getApplication().createValueBinding("{MyBeanAliasUsedInFacesConfig}");
This accesses the managedBean in context.
> ---Original Message---
> From: Alexandre Jaquet <
Doesn't A4J have a server-side API to tell it to include panels during
the process action phase? That is how I accomplish the AJAX with
AjaxAnywhere, I would be dissappointed with A4J if that server-side
Java API was not available.
I tried to look into it at one time briefly, but the documentatio
That is not true. Lazy loading means that child nodes are created when
the parent is expanded and not until then. If you create the whole
tree model all at once, you are fully loaded, regardless of when the
nodes are rendered. Lazy loading refers to model creating, not
rendering time.
As for AJAX
I finally figured this out, so I'm going to put an entire example in this
post. I'm using Tomahawk 1.1.3 with RI JSF created in Borland's JBuilder.
I've created a .war file from borland and deployed it under Tomcat 5.5 so it
should be Borland independent. The problems I was having previously w
Hi everybody,
I'm stuck. I have found the following URL
http://wiki.apache.org/myfaces/Custom_Navigation_Handler. The last part
(/view.jsp?objectId=#{view.objectId}) would solve my problem, but unfortunately
it doesn't work. MyFaces render this to the URL
http://localhost:8080/productPage.jsf?prod
If the data is never going to change put it in application scope.
If the data is going to change, then you don't want to be doing it this way.
But if you want to be stubborn, write a phase-listener that happens
right before restore_view.
On 9/22/06, Patrick Dreyer <[EMAIL PROTECTED]> wrote:
I
do you mean it works if clientSideToggle="true" and it doesnt work if
clientSideToggle="false"?
"Pfau, Oliver"
<[EMAIL PROTECTED]
I read some more pages, as well the one in the MyFaces
wiki(http://wiki.apache.org/myfaces/FAQ#MissingInAction) and finally understood
why there is no way around t:saveState.
So, stays the problem why dataList doesn't get updated. My action is called fine, which
in turn updates the data to be
PROBLEM PRETTY MUCH SOLVED!!!
The primary thing I was doing wrong was that I was trying to implement
MyFaces and Tomahawk into an older project and it was using the JSP 1.1
specification instead of 2.0.
I created a new project in Borland's JBuilder and specified JSP 2.0. I
initi
Hi
all!
If I go to the tag
reference sheet for Tomahawk and select dataScroller (http://myfaces.apache.org/tomahawk/tagreference.html#dataScroller),
it says that the dataScroller has an onclick and an ondblclick
attribute.
However, from my jsp
I don't get these attributes displayed when
Hi Patrick,
thanks for the hints and the links.
Unless I use redirect in a navigation rule, in a filter I don't get the
destination of the request, but the source.
example: login.jsp => start.jsp
When performing the login, the information I have when filtering the
login-request is the URL of log
I havent look into DynaFaces because is still in its very early stage. If
you found it works, that's good, you should post the solution with
DynaFaces here so other users can use it.. I will definitely look into
DynaFaces once it becomes more mature.
Thanks,
Bill
I'm trying to do something similar using ajax4jsf. The issue I'm having
is that my a4j:commandLinks aren't invoking their actions or
actionListeners when clicked. The components themselves look fine and
render accordingly though. I'm guessing that I'm missing some
initialization that needs to be
I created a PhaseListener for this purpose.2006/9/22, Patrick Dreyer <[EMAIL PROTECTED]>:
Sorry, forgot about the MyFaces wiki...Just found the page about "Access FacesContext from Servlet" http://wiki.apache.org/myfaces/AccessFacesContextFromServlet
Patrick Dreyer schrieb:> Hi Jan>> Don't do authe
Sorry, forgot about the MyFaces wiki...
Just found the page about "Access FacesContext from Servlet"
http://wiki.apache.org/myfaces/AccessFacesContextFromServlet
Patrick Dreyer schrieb:
Hi Jan
Don't do authentication/authorization through a ViewHandler, use a servlet
filter instead.
Citation
Hi,
if you know the id of the element:
FacesContext.getCurrentInstance().getViewRoot().findComponent();
Regards
Volker
2006/9/22, Legolas Woodland <[EMAIL PROTECTED]>:
Hi
Thank you for reading my post
how i can access the web page elements value (for example in login page
to username and pa
Hi Mike,
sorry to inform you, it does not work with the tomahawk 1.1.5 snapshot from
22-Sep-2006 04:50.
:andras
Mike Kienenberger wrote:
>
> There were some changes made with javascript and links on Sat Jul 15
> 09:24:06 2006 to improve compatibility with the JSF RI.
>
> You might try a 1.1.
Hi Jan
Don't do authentication/authorization through a ViewHandler, use a servlet
filter instead.
Citation from JavaWorld
(http://www.javaworld.com/javaworld/jw-07-2004/jw-0719-jsf.html):
* Use a base backing bean: This solution is simple. However, it ties the
backing beans to a specific inh
Hi
Thank you for reading my post
how i can access the web page elements value (for example in login page
to username and password)
from the button action method ?
I do not want to use binding the page elements with the backing bean
that my action method is inside it.
is there any other way ?
th
Hi,
when I set clientSideToggle of tree2 to true, the action of a
commandlink pddata.pdClicked will not executed. With clientSideToggle it
works. What's wrong ? Using myFaces 1.1.4 and Tomahawk 1.1.3.
Thanks,
Oliver
Can anyone help with this please? It would be great is someone can guide me on how to make this work. It ties with the selectOneMenu problem I posted earlier.Thanks,Aneesha-- Forwarded message --
From: Aneesha Govil <[EMAIL PROTECTED]>Date: Sep 22, 2006 2:55 PMSubject: selectOneMenu
Hi,I have some questions about the selectOneMenu. In my work on this so far, if I set the value attribute as:
and if my selectedTable property of the form bean is set to a present value in the tableform class, the change on the UI is not reflected in the class. It always works with the same value.
Thanks a lot...
It works... :-)
Mike Kienenberger schrieb:
On 9/20/06, NABA <[EMAIL PROTECTED]> wrote:
Hi...
My environment:
Eclipse 3.2
Tomcat 5.5.17
jsf-impl-1.2
tomahawk-1.1.3
servlet: 2.4
1. I attached the web.xml to this mail.
I would like use Myfaces-Tomahawk and the Sun RI.
Problem:
There were some changes made with _javascript_ and links on Sat Jul 15 09:24:06 2006 to improve compatibility with the JSF RI.You might try a 1.1.5 snapshot and see if the problem is already fixed.
On 9/22/06, András Piros <[EMAIL PROTECTED]> wrote:
Hi folks,
I'm using MyFaces Tomahawk 1.1.3 and
Hey Bill,
Nice Blog :)
I've got another solution under the belt using DynaFaces which doesn't
require any customization of the navigation components. Unfortunately,
DynaFaces defect #13
(https://jsf-extensions.dev.java.net/issues/show_bug.cgi?id=13) has to
be fixed before it is readily usab
Hi folks,
I'm using MyFaces Tomahawk 1.1.3 and Sun's RI 1.2 together in an enterprise app under Sun's GlassFish appserver.
If I have a t:dataTable, which has a t:dataScroller, my h:commandLinks inside t:dataTable work just fine, on the first page, and on every other page of the dataTable:
So
Hi Peter,
please still comunicate over the list.
You can create the component tree programatically in your java code.
In my example our application should create the UIPanel and content
dynamically in invokeApplicationPhase.
I currently don't know links to examples or howtos, and no time to se
Hi Volker,
I am a little unsure of your answer. The body of the content Panel,
is a method call executed at run-time. The result must be some HTML/JavaScript
code inserted into the page, correct ?
But rather then generate HTML, I'd prefer to generate Tobago components, to be
within the same para
Do me a favour and check if you have forms embedded in a form. That's
disallowed in HTML, and might be the reason for this!
regards,
Martin
On 9/22/06, Martin Marinschek <[EMAIL PROTECTED]> wrote:
The javascript looks good to me. What's your html-header?
regards,
Martin
On 9/22/06, Mike Kie
On 8/23/06, Daniel Kröger <[EMAIL PROTECTED]> wrote:
I'm a bit confused since the description of the var attribute for the
dataTable action says it's the request scope variable that holds the
current row object.
But the following exemplary code doesn't work anyway:
${child.name}
On 9/21/06, Legolas Woodland <[EMAIL PROTECTED]> wrote:
Hithank you for reading my posthow i can access a managed bean from a button action listener ?for example i have a managed bean named session and its scope is session, i used it to store user details until he/she logout
and when he/she pressed
The javascript looks good to me. What's your html-header?
regards,
Martin
On 9/22/06, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
Supposedly Myfaces Core 1.1.4 and Tomahawk 1.1.3 are compatible. But
maybe we missed something.
I'm using Core 1.1.4 and Tomahawk 1.1.5-snapshot (Aug 18th) myse
Supposedly Myfaces Core 1.1.4 and Tomahawk 1.1.3 are compatible. But
maybe we missed something.
I'm using Core 1.1.4 and Tomahawk 1.1.5-snapshot (Aug 18th) myself.
Wait a little bit and see if someone more knowledgeable about
javascript comes online to help you. I'm pretty useless when it
co
I have already removed MyFaces libs coming with JBoss. But it did not solve the issue. In FireFox javascipt console: Error: Error in parsing value for property 'cursor'. Declaration dropped.Source File: http://localhost:8080/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.
On 8/23/06, Rønnevik, Eivind <[EMAIL PROTECTED]> wrote:
I have a dataScroller, and want to specify the for-reference to a dataTable,
only thing is that I see the need of having the two objects (scroller and
table) in two different forms (layout issues).
I've tried something like this, with no su
Carl, I think there's a t:convertDateTime component that provides
extra attributes for dealing with this correctly. Might be
sandbox:convertDateTime
On 8/23/06, CarlHowarth <[EMAIL PROTECTED]> wrote:
Hello all,
Apologies if this has already been covered, I have not been able to find a
suitab
Hello,
I'd like to use a ViewHandler for authorization.
I use tiles, so I have already a Viewhandler defined in my application
(JspTilesViewHandlerImpl).
How can I integrate these two view-handlers? I think I cannot define a
second view-handler.
I know there are frameworks like SecurityFilter, A
Hi Peter,
you don't need to generate a jsp, you just need to create the
component tree and map it
via binding into a skeleton jsp.
e.g.:
<%-- left side navagation --%>
<%-- content filled by application --%>
with this your application has full control over the cont
57 matches
Mail list logo