Mathias,
I tested successfully the rest of platforms with javax.faces.STATE_SAVING_METHOD=server SERIALIZE_STATE_IN_SESSION=false myfaces-20051030
.
Now I should have time to continue testing your suggestion: STATE_SAVING_METHOD=server SERIALIZE_STATE_IN_SESSION=true myfaces-20051103.
But
Hi, I've gota fewquestions related to
redirection:
-Is there a way to switch on redirection as the
default. As far as I knowit has to be specified for every navigation
case...
-I've noticed that redirection does not happen when
the actionhandler returns null. Is this specified behaviour?
Hi
There is no problem with
your Listener. The problem is that your panelTabbedPane works client side and
the listener doesnt work for client side panelTabbedPane. Change your panelTabbedPane
to server side and your listener will work.
mfg Hans Sowa
PROCON DATA
I solved the doubleclick issues with servlet-filter:
Filter sets the session-wide flag and requested URL at the begin of each request and clears them at the end.
If second request is coming during the previous one is in execution,
the filter is doing redirect with few seconds delay to originally
A second thought:
There migth also be some important issues
with the new sever-side state saving. I'm not sure how it is implemented
in detail. The state consists of the component tree and the state.
Now if concurrent requests are processed
for the same view, every request should get a
Each request has its own component instances if the default state
manager of myfaces is used (client server state are handled equal).
If a user is using a component binding and stores this component in a
session or application scoped bean he definitely will have problems
since this component
Just as an update to this, if you want to register your own
ActionListener then you can do so by adding the following element to
your faces-config.xml file.
application
action-listener
com.example.MyActionListener
/action-listener
/application
I tried it in the
You are right latest commit breaks that. I have committed a fix for
that so it is working now.
2005/11/9, Vesa Lindfors [EMAIL PROTECTED]:
Mathias,
I tested successfully the rest of platforms with
javax.faces.STATE_SAVING_METHOD=server
SERIALIZE_STATE_IN_SESSION=false myfaces-20051030 .
Hi,
I have a page that works find when the backing bean is set
to request scope. However when I set it to session scope I got the following
exception:
javax.faces.el.PropertyNotFoundException: Base is null: role
It happens during the BEFORE UPDATE_MODEL_VALUES phase.
Can
I've noticed that if I click multiple times on a component that does a
submit then quite often I get an exception generated in the server.
What exception do you get? Is it similar to the issue that I mention here:
http://issues.apache.org/jira/browse/MYFACES-612
...where I get an exception
Hi..
I'm a newbie yet in JSF and I was wondering how can
I add an ActionListener to TabbedPane so everytime the user clicks on any tab it
will process my action.
thanks.
On Wed, 9 Nov 2005 [EMAIL PROTECTED] wrote:
Hmm, I think the JSF spec has a flaw concerning this. The problem is not
the component itself, but the way the iteration is done. As e result you
are not allowed to:
1. bind the component to session or application scoped backing bean
2. provide a
I normally deal with that in the client side with a javascript
function that I put on the onclick and only allows to submit the form
once. A server aproach should be better though, or maybe add that
javascript to the extended commandLink/commandButton (through a new
parameter) so that using the
Hi, i would like to develop two components to myfaces:
selectManyShuttle and a toolbar, but i need to know how can i make a
click in a image fire the execution of an method in backing bean like
action attribute does for commandButton and where i can get an simple
example of how build a myfaces
Well, I think that the new selectManyPicklist in the sandbox (I still
have to write the documentation) is the same than the
selectManyShuttle component you are talking about. There is an example
in the sandbox selectManyPicklist.jsf. I have to implement still some
of the attributes as now it only
For add/remove buttons you use javascript code, but how can i make a
click in an image call an method in backing bean? I need this to
create the Toolbar in the future.
--
Yours truly (Atenciosamente),
Rogério
Hello all,
Id like to have a data table that instead of just
showing columns of data, uses row span.
The aim is to create a table like
http://www.porter.eu.com/jeff/table.JPG
Is this possible with h:dataTable ?
Thanks
Jeff
attachment: table.JPG
Ok, you is right, this is the correct way.
2005/11/9, Bruno Aranda [EMAIL PROTECTED]:
Now it works like the other selectMany*, the click is handled by
javascript to move one element from the available items list to the
selected items list. Once the form is submitted you can handle the new
Yeah, i want one image call one method, can i render a commandLink
inside another component code, like my new Toolbar component?
2005/11/9, Jesse Alexander (KBSA 21) [EMAIL PROTECTED]:
Do you want single regions of one image to call different methods
OR
Do yo want to have one image call one
Title: How to get ItemLabel of SelectItemS Tag on next page
Is there a possibility to get the itemLabel of a SelectItems Tag? I don't need the itemValue (because it's an numeric ID in my case) I need the value which is displayed in the selectOneMenu Box, because I want to display this
-Original Message-
Yeah, i want one image call one method, can i render a commandLink
inside another component code, like my new Toolbar component?
-/Original Message-
Sure you can do that.
someComponent.getChildren().add(anotherComponent);
Then you can either render the
Thanks for the reply, Martin.
I'm not really sure if I understand whether or not they are MyFaces
specific or not. Some seem to be standard as they have
javax.faces in their ID's and come from a file called
standard-faces.config.xml.
These are the converter ID's for which FacesConfigurator tries
Hi there,
I just downloaded the latest
simple.war from the examples nighlty build and tried to run calendar.jsp
on the Websphere Application Server in RAD 6.0 environment. I get the following
error
java.io.FileNotFoundException: JSPG0036E:
Failed to find resource /faces/calendar.jsp.
I
I am trying to use the tree2 component that ships with MyFaces Tomahawk but
I keep running into issues. I've been trying to debug this for two days now.
I have gotten the tree2.jsp example up and running but it breaks when i try
to customize it. It keeps giving me the error:
Encountered a
I am
a long time Struts/Tiles user, but I am working on a new application with
MyFaces/Tiles and EJB3.0 on JBoss 4.0.3SP1. I am using all the latest releases.
Everything is working fine except for the FacesContext. I started the
application without Tiles and got the login process working.
Bobby,
I had the error message until I put a
locale-config entry in the application node of the faces-config.xml
file. It really doesnt seem to be a severe error, but it is easy to
eliminate.
Kim
From: Bobby
Rosenberger [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November
Hey Kim,
Thanks for the response. I'm not sure I know what you are referring to.
My current faces-config file (which is largely based on the examples)
only has 'navigation-rule' and 'managed-bean' tags... what is the
'application node' you refer to? Can you paste an example of your
config?
Hello,
We are deploying our app for the first time in a pre-production
environment, one that is protected by a firewall. Here is the bit of code that
is giving us a hard time:
*** snip *
is = this.getClass().getResourceAsStream(/faces-config.xml);
Take a look at
http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/parsers/Docu
mentBuilder.html#setEntityResolver
(org.xml.sax.EntityResolver) .
You can programmatically tell DOM where to get the DTD.
Original message
Date: Wed, 9 Nov 2005 16:31:46 -0500
From: [EMAIL PROTECTED]
Ok, here is a copy with more than you
need, but it should make things clear.
?xml version='1.0' encoding='UTF-8'?
faces-config xmlns=http://java.sun.com/xml/ns/j2ee
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
I recall a similar problem for weblogic (see MYFACES-602 [1]). Just a
wild guess, from the wiki [2]: add jsp-2.0.jar and servlet-api.jar
(can be found in Tomcat 5.5.x share/lib) to the server classpath or
include them in your war WEB-INF/lib
servlet-api.jar is required if your server has no
BTW, don't worry about that message, as far as I remember if the
locale config is missing the application uses the default locale. I
think that this message could be deleted or changed to a lower
level...
Regards,
Bruno
2005/11/9, Bobby Rosenberger [EMAIL PROTECTED]:
Thanks Kim,
That
Hi all,
I have come across a problem with automatically generated ids for
components. I am using MyFaces-current from SVN together with Facelets
1.0d.
What happens is that in HtmlFormRendererBase.encodeBegin(), the last
action is to save the state of the form, which includes the state of
all
I want to create a JavaScript alert window with a message from a resource
bundle when I have a message to display. Getting the message is no problem,
but getting it into the JavaScript is.
script language=JavaScript type=text/JavaScript
function displayMessage()
{
var message = MESSAGE HERE;
Warren Bell wrote:
I want to create a JavaScript alert window with a message from a resource
bundle when I have a message to display. Getting the message is no problem,
but getting it into the JavaScript is.
script language=JavaScript type=text/JavaScript
function displayMessage()
{
var
The included patch file adds short month names to the popup calendar from the
current locale in Java.
Index: tomahawk/src/java/org/apache/myfaces/custom/date/HtmlDateRenderer.java
===
---
Yes Shale dialogs are very nice indeed :-)
On 11/9/05, Craig McClanahan [EMAIL PROTECTED] wrote:
On 11/8/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Are there any chances for the following in the 1.2 spec? I would like to
increase the learning curve w/ declarative action chaining ;-).
Most likely the FacesServlet did not initialize properly. Check your
logs and post back with more details. Its hard to help without more
information. Also, the WAR file works without modification in a
*default* Tomcat 5.0.x install.
sean
On 11/9/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
The following should work:
script language=JavaScript type=text/JavaScript function
displayMessage(message) {
if(message == )
{
}
else
{
alert(message);
}
}
/script
body onload=displayMessage('#{mainMenu.alertMessage}')
--
Or simply
body
something like:
scriptvar message=.../script
There's the t:stylesheet tag which is sort of in this spirit.
Note that writing a custom JSP component is sadly much more complicated
than it should be :-(
Regards,
Simon
__ NOD32 1.1282 (20051109) Information __
This message
be :-(
Regards,
Simon
__ NOD32 1.1282 (20051109) Information __
This message was checked by NOD32 antivirus system.
http://www.eset.com
I fixed a few things (including two dataTable with the same id) and I can't
reproduce the error anymore. So it is most likely a byproduct of it.
Thanks very much for your help.
Regards
Yee
-Original Message-
From: Mike Kienenberger [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 9 November
it should be :-(
Regards,
Simon
__ NOD32 1.1282 (20051109) Information __
This message was checked by NOD32 antivirus system.
http://www.eset.com
__ NOD32 1.1282 (20051109) Information __
This message was checked by NOD32 antivirus system.
http
I have developed an application using my faces version 1.0.9 using
tomcat as my servlet container, i was able to deploy the application on
Oracle Application Server 10.1.3 Developer preview 4, however i am
unable to run the same application on oracle application server
10.1.2.0.2 and encounter the
This is the patch I
use:
protected
void renderScroller(final FacesContext facesContext, final HtmlDataScroller
scroller) throws IOException {
ResponseWriter writer = facesContext.getResponseWriter();
if
(!scroller.isRenderFacetsIfSinglePage() scroller.getPageCount() =
1) {
return; }
=#{...}/
which generates something like:
scriptvar message=.../script
There's the t:stylesheet tag which is sort of in this spirit.
Note that writing a custom JSP component is sadly much more complicated
than it should be :-(
Regards,
Simon
__ NOD32 1.1282 (20051109
46 matches
Mail list logo