Or you can use server-side handler of this button to
close your popup, something like this:
JSF page:
!-- js code will be
rendered here --
h:outputText escape=false
value=script type=\text/_javascript_\ language=\_javascript_\#{bean.jsCode}/script
h:commandButton action="">
Java
I would like to know if anyone out there has had success preserving non-value
view state. In plain English, I want to be able to programmtically
change the style class or disabled attribute of a control w/ javascript,
and have these changes preserved on the next post back. Even better would be to
Inside a popup,h:commandButton value="Close" /This will close the parent window, not only the popup. Is there a way to close popup only?Thanks![EMAIL PROTECTED] wrote:Or you can use server-side handler of this button to close your popup, something like this:
Hi!
Yes, this will be fine
Hi,
what about having a meeting next week?
Location: Ma Pitom
Date: 4.4.2006
Time: 18:30
Hasta luego,
Thomas
On 3/27/06, Mario Ivankovits [EMAIL PROTECTED] wrote:
Hi!
Some of the MyFaces guys are ill, on vacation or have a project deadline.
I
good, good.
next week is fine ;)
regards,
Martin
On 3/28/06, Mario Ivankovits [EMAIL PROTECTED] wrote:
Hi!
Yes, this will be fine
Hi,
what about having a meeting next week?
Location: Ma Pitom
Date: 4.4.2006
Time: 18:30
Hasta luego,
Thomas
On 3/27/06, Mario
Duplicate ID?no clue. can you post the stacktrace?regards,MartinOn 3/27/06, Andreas Zeller - zit-systems
[EMAIL PROTECTED] wrote:
Very well then... Running snapshot now... Gives me an exception...
duplicate ID... Doesn't work at all and I don't know why... I think I
gotta implement
Hi, Dave.
Actually parent and child
windows in document object model have different _javascript_ object window. Thats why window.close()
always will close current window. From child to parent window object you always
will be able to access like that:
var parentWindowObject
=
Hi
Thank you for reading my post.
I am looking for a component that can show , string resource of a given Key.
I mean a component that i sets some of its property and then i could set
the string resource key in my backing bean and it shows value for that
key in html page.
Thanks
Ah, super, thanks a lot. This is really helpfull.2006/3/28, Mike Kienenberger [EMAIL PROTECTED]:
Fixed as of March 1st.http://issues.apache.org/jira/browse/TOMAHAWK-104On 3/27/06, Hans Sowa [EMAIL PROTECTED]
wrote: Hi Is there a possibility to enhance the code of this method? My Problem is if
jsf:
h:outputLink value=#
onclick=close();
h:outputText value=close /
/h:outputLink
js:
function close() {
window.close();
}
--
View this message in context:
http://www.nabble.com/How-to-close-popup-using-a-button-t1354074.html#a3627113
Sent from
Hello,Does anybody had a problem using output tag with a Date Converter ?the displayed date has -1 to the DAY.I find on the net someone who has the same problem but no solution were given.here is the code.
t:outputText value=#{parameter.endDate} f:convertDateTime pattern=dd/MM/ HH:mm
Hi All,
I have a little problem and i can't find a way to resolve it.
My first page is a php page which include content from a remote
server which has jsf pages.
So on my php page i do :
?php
include 'http://myserver/mypage.jsf';
?
I try readfile ; but nothing better.
On my tomcat console, i
http://cvs.apache.org/builds/myfaces/nightly/These are the nightly builds of myfaces.I take them yesterday for the same reason :)
2006/3/28, mr_chandru [EMAIL PROTECTED]:
Matthias,Can you pls tell me which jar file ur using for thisserverSideTabSwitch=true .where can i get the jar file from. I am
Solved by : t:outputText value=#{parameter.endDate} f:convertDateTime pattern=dd/MM/ HH:mm timeZone=Europe/Paris//t:outputText
2006/3/28, Cedric Legallo [EMAIL PROTECTED]:
Hello,Does anybody had a problem using output tag with a Date Converter ?the displayed date has -1 to the DAY.I find on
Hello,
could somebody please explain me, how I can accomplish an update of the
values from within a nested DataTable?
The Table is populated with a Collection of ArraysLists containing the
objects to be updatable,
The DataTable should look like as follows:
h:form
h:dataTable
Just a blind shot - have u h:messages/ tag for the page? It is possible
conversion/validation error occurred and u did not see it...
- Original Message -
From: Dirk Hoegemann [EMAIL PROTECTED]
To: users@myfaces.apache.org
Sent: Tuesday, March 28, 2006 3:11 PM
Subject: Update values
Thanks for your reply. I have the messages tag inside...
But it is resolved now (by using the tomahawk component).
- Original Message -
From: Jana Parvanova [EMAIL PROTECTED]
To: MyFaces Discussion users@myfaces.apache.org
Sent: Tuesday, March 28, 2006 12:53 PM
Subject: Re: Update
Is it really a need to use a nested dataTable for this?
Setting preserveDataModel=true (in the outer table) may also help..
Using a component binding in this case should not be really a must,
but i may helps understanding what is going on in the model!
regards,
Gerald
On 3/28/06, Jana
Hi,
Having some issues using the tree2 states, I wonder why the
saveDescendantState/restoreDescendantState methods cannot be bypassed
(declared protected or a boolean to validate them) ?
Regards
--
Guillaume Doumenc
Courriel : [EMAIL PROTECTED]
I'm trying to configure jsf in TomCat 4 but when a put jsp-api.jar in the web-in/lib it stop compiling jsp.I get the following errors:HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that
prevented it from fulfilling this request.
My web.xml has xml code like this.filter-mapping filter-nameFaces Servlet/filter-name
url-pattern*.faces/url-pattern /filter-mapping
How can I know in the java code the url-pattern?I need to set some features on _javascript_s code, but i want to build them with a dynamic way. If I change the
I tried the build from yesterday and still find the bug there - so I am
still stuck with the build from early Feb. Is this bug meant to be fixed?
Regards,
Yee
-Original Message-
From: Martin Marinschek [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 8 March 2006 4:09 PM
To: MyFaces
You can define a log4j.xml in your classpath i definitely suggest you to use commons-logging. Here is an example log4j.xml. You can define multiple loggers with different package names. By this you can discriminate your application (
tr.yourpackagename) log. You can also add other appenders.
Well, we're not supposed to take back the value when readonly=true.
That's as such in the spec.
regards,
Martin
On 3/28/06, Yee CN [EMAIL PROTECTED] wrote:
I tried the build from yesterday and still find the bug there - so I am
still stuck with the build from early Feb. Is this bug meant to
That's makes a lot of sense. But it is ARRAGH nevertheless - as I have quite
a lot of readonly textboxes that are passing back values. t:inputCalender is
one single major offender, there are also some javascirpt calculated values.
Is there an elegant solution for inputCalendar? I really what to
Dear all,
When testing on a local Tomcat my panelTabbedPane works fine. However,
when running it on Tomcat on our Apache2 server only the first tab
change works. Subsequent clicks bring me to the default tab, and no
events arrive at my tabChangeListener anymore.
Does anyone have an idea what
Hello
Whilst developing using Apache MyFaces I have come across a
problem which I am trying to troubleshoot. I have had not had any luck at
resolving this issue. I will attempt to describe this:
I am developing using JSF version 1.1 and the application
server I am using to deploy to
I would certainly update to JSF 1.1.01. There are many bug fixes over
the first release.
From: Rashid Asim [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 28, 2006 8:58 AM
To: 'users@myfaces.apache.org'
Subject: Apache MyFaces JSF error
Hello
Whilst
Hi,
I came across the following exception in my log file:
java.io.NotSerializableException:
javax.faces.component.html.HtmlSelectOneMenu
The HtmlSelectOneMenu is a property in a session
scoped managed bean.
Does this mean that I have to declare it transient in
order to play it
Hi,
Well as JSFs
UIComponent isnt Seriaizable so all others ui components also isnt
serializable. I recommended to use request beans instead of session. If you are
using session beans, for example you can try to add a few mappings to
SelectOneMenu, for example:
Value
selectItems
On 3/27/06, Dennis Byrne [EMAIL PROTECTED] wrote:
You'll want the current dir . This information should be on the wiki but I
am not sure.
http://wiki.apache.org/myfaces/Building_With_Maven
Yura,
Thanks for clarification.
What do you exactly mean
with add a few mappings to SelectOneMenu?
Do you see also any
issues when I mark the field transient and check in the getter whether the
instance is null and reinitialize it if necessary?
I found a hint in the
WIKI
Title: Tobago causes javaScript error
Tobago team,
We are using tobago version dated 03/22/2006 and have lots of _javascript_ errors in _javascript_ Console while working with toolbars.
Under Firefox error looks like the following:
Error: this.images[id] has no properties
Source File:
On 3/27/06, Murray Brandon [EMAIL PROTECTED] wrote:
SelectItem appears to lend itself well to being an interface (could move
the default implementation into a DefaultSelectItem class)?
http://wiki.apache.org/myfaces/FAQ#JSFspec
Finally, i found the error for dynamically include php.
I've updated manually the classes from my faces and i've regenerated a
new myfaces jar.
Thanks David (In fact the bug is corrected in myfaces 1.1.2)
Sébastien Boutté
[
On 3/28/06, Michael Heinen [EMAIL PROTECTED] wrote:
Do you see also any issues when I mark the field transient and check in the
getter whether the instance is null and reinitialize it if necessary?
Michael,
That is probably a better way to handle this situation. You could
also skip the
As for me I prefer to
create such mapping to SelectOneMenu:
h:selectOneMenu id=appCtrlSelect
value=#{dsDescription.componentName}
disabled=#{dsDescription.disAppCtrl}
valueChangeListener=#{dsMap.appControlChange}
style=width:200px;
Yura,
Thanks again for your
sample.
This was also my first
approach but I had to discard it.
My form has to be
submitted when the value changes by using _javascript_.
Moreover there are many
input fields on the corresponding screen and I don't want the page to be
validated when
Hi Iryna,
this was a problem introduced by the javascript reorg last weeks, i
thought i had fixed this last week, but obviously not :-(.
just commited the fix, please update and try again :-)
Regards,
Volker
Iryna Stetska wrote:
Tobago team,
We are using tobago version dated
Mike,
thanks for your answer.
I create the component in my bean manually and populate it with SelectItems.
Do you mean using a managed property and a more complex setter as an
alternative? Is this a better approach than the check in the getter?
Michael
-Original Message-
From: Mike
Hi,
don`t know if this also meets your requirements, but you can set
disabledOnClientSide=true, the field will be disabled and you can be
sure that the values will be posted back to server.
But as far as i know, this attribute exists only on t:inputText.
regards,
Gerald
On 3/7/06, Yee CN
On the other way, you can do a quickfix in case of this inputCalendar use case;
As Yura said, you can take a inputHidden and with some js coding on
every onchange event (to the readonly inputCalendar) push the date
value to the hidden element.
Maybe a hidden inputCalender too, instead of the
On 3/28/06, Michael Heinen [EMAIL PROTECTED] wrote:
I create the component in my bean manually and populate it with SelectItems.
Do you mean using a managed property and a more complex setter as an
alternative? Is this a better approach than the check in the getter?
It's had to say without
Hi!
I got into troubles while using lists in a jsp page.
I have a list of possible pages to load: psLabels groups together all pages
names (page1, page2 etc).
Then I would like to display all this labels and add an action link on them
in order to load the page. Thus I need an action (the link to
It's possible if you were using serverSideTabSwitching=true that this
bug was fixed earlier this week. Try it with a nightly build. The
serverSideTabSwitching state was not being saveState'd.
Another possibility is that you're basing your actions on a
request-scoped bean that no longer exists
I haven't tried this tag recently, but the original version of it
stored the page state in the url. Thus it wouldn't work on large
pages. You might see if there's some error about the URL being
larger than 4096 characters in your logs.
On 3/27/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I'd add a new option to the inputCalendar.
Allow direct entry or so?
If you program that, Yee, I'll commit it. promised.
regards,
Martin
On 3/28/06, Gerald Müllan [EMAIL PROTECTED] wrote:
On the other way, you can do a quickfix in case of this inputCalendar use
case;
As Yura said, you
I'm running into an issue where the t:inputCalendar is working properly,
but the images are not being shown.
The renderPopupButtonAsImage=true doesn't show an image, and the
left/right and dropdown arrows do not appear.
The buttons function properly, as does the rest of the calendar. I
believe
Hello
all:
First, I did STFU
with no luck, sorry if this question has been asked and answered a million times
before. I'm new to JSF and am tasked to evaluate it as a replacement for
Struts. I am attempting to run the blank example application using the
virtual path mapping enabled
Sorry if I post this
twice. I wasn't subscribed the first time, so I don't know if it made it. I
originally was going to send it to the facelets list, but realized this was not
a facelets issue.
Anyway, I've read
that Tomahawk can run with the JSF RI without myfaces, but I'm getting the
good catch,
the clazz org/apache/myfaces/application/ComponentNotFoundException
is currently under impl ([1])
[1] - http://tinyurl.com/etjd9
On 3/28/06, Frank Russo [EMAIL PROTECTED] wrote:
Sorry if I post this twice. I wasn't subscribed the first time, so I don't
know if it made it. I
can you post complete web.xml ?
On 3/28/06, Carl Sziebert [EMAIL PROTECTED] wrote:
Hello all:
First, I did STFU with no luck, sorry if this question has been asked and
answered a million times before. I'm new to JSF and am tasked to evaluate
it as a replacement for Struts. I am
So I assume that means I need to add the myfaces-impl-1.1.3-SNAPSHOT.jar to my
project's WEB-INF/lib as well?
Thanks...
Frank Russo
Senior Developer
FX Alliance, LLC
-Original Message-
From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 28, 2006 3:43 PM
To:
That was it...
Frank Russo
Senior Developer
FX Alliance, LLC
-Original Message-
From: Frank Russo
Sent: Tuesday, March 28, 2006 3:46 PM
To: MyFaces Discussion
Subject: RE: Tomahawk and JSF RI
So I assume that means I need to add the myfaces-impl-1.1.3-SNAPSHOT.jar to my
project's
Using MyFaces as your JSF runtime is always a good decision :-)
If your app depends on the RI, what you can do is putting only
ComponentNotFoundException into your applications classpath. For
instance under WEB-INF/classes/
but creating the folder(s) org/apache/myfaces/application/
(Just a
Here you go:
!DOCTYPE web-app PUBLIC
-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
!-- This web.xml can be used during debugging, when there is no myfaces.jar
library available.
The faces-config.xml file (that is
http://localhost:8080/blank/faces/helloWorld
Aren't you calling http://localhost:8080/blank/faces/helloWorld.jsp; ?
(Note: .jsp, not jsF)
-Matthias
Hi all,
I want to make two custom components communicate through events.
The first component would fire a custom event and a second component would have
a listener (for that same custom event) registered. Can I do that given that
the two components lie in the same level of the component
Tried that already with the same results. That's what strikes me as
odd. Why would the app work with .jsf but not /faces ?
Carl
-Original Message-
From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 28, 2006 1:05 PM
To: MyFaces Discussion
Subject: Re: Noob
On 3/28/06, Frank Russo [EMAIL PROTECTED] wrote:
So I assume that means I need to add the myfaces-impl-1.1.3-SNAPSHOT.jar to
my project's WEB-INF/lib as well?
No, you don't want to do that if you're using the JSF RI.
As Matthias states, you only want to add that missing class to your
What is in
yourlog4j.properties? You have some setting in it to show the myfaces
logs.
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of DuduSent:
Monday, March 27, 2006 10:57 AMTo: MyFaces Official
ListSubject: disabling logs on myfaces
I have a log4j.properties file, but I
http://java.sun.com/javaee/javaserverfaces/1.1_01/docs/tlddocs/index.html
According to the above, and the 1.2 RI:
Space-separated list of CSS style class(es) that will be applied to
any header generated for this table.
However this does not seem to work in myfaces atm, it just inserts the
On 3/27/06, Brandon Goodin [EMAIL PROTECTED] wrote:
What are all the other directories for? The current directory only
contains a pom.xml. I'm curious if someone can explain what all the
other modules represent.
It's Subversion magic. :) The 'current' directory has svn:externals
definitions
Do you get a calendar icon next to the date text field (to click on)?
If not, you need to define the resources servlet for MyFaces:
The following defines how the MyFaces resources (such as .js files and
images) are provided in web.xml
filter
I have a page with one inputText, one commandButton, one dataTable and one dataScroller, when i type the text to be seached in the inputText and click in the commandButton to retrieve a list of matches in dataTable everything works as expected, but when i click in the next page only the column
On 3/28/06, Frank Russo [EMAIL PROTECTED] wrote:
So I assume that means I need to add the myfaces-impl-1.1.3-SNAPSHOT.jar to
my project's WEB-INF/lib as well?
Hey Frank.
It looks like the myfaces-impl dependency is only (incorrectly)
required by the sandbox.jar, but there's a lot of them to
one more info, there's no stacktrace
Speaking of file uploading...
I have a single form around my entire app of 600 pages (only 1 of which
is 'rendered' at any time so this should be fine).
However, to support file uploading I put enctype=multipart/form-data
in the form definition as below.
h:form id=appform prependId=false
I miss read the specs.
The solution I think is to use the t:column tag which you can then specify like:
t:column headerstyleClass=list-header
Has anybody had success using myfaces tamhawk components with Beehive?
Thanks everyone!
This is great! Maven... generate eclipse files... import project and
bam!... in business. To be honest when i first scanned the repo i
thought i was a mess. Glad i was wrong. Thanks a ton for all your
help.
I would recommend putting a link to the multiproject import for
eclipse.
getScrolling() _javascript_ function is not being generated in the portal environment?
Is this function being generated by the extension filter?
The Struts team is pleased to announce the release of Struts Shale 1.0.2 Alpha.
http://struts.apache.org/downloads.html
The Struts Shale Framework is a set of loosely coupled services,
fundamentally based on JavaServer Faces, which may be combined as
needed to meet particular application
Dear all,
Now , I face with the problem is: Browser render the component:
t:commandButton id = test value=submit / and we view source code
(After rendered) We recorgnized that IE also render the t:commandButton
like :t:input type=submit value=submit onclick=clear_form() /.
But We do not see
Hi, Le Van
Actually why are you using clear_form() function? Is it
just training? Actually this function generates by JSF it can include something
like that:
function clear_form() {
var f =
document.forms['form'];
f.elements['prevSort'].value='';
f.elements['prev'].value='';
Thank Yura, but clear_form use for what ?. You think it generates by
JSF, but it just generate when I use t:commandButton instead of using
h:commandButton. And is it important to using it. Could I control it
???. Cause I can't control it now so I create a clear_form() function
that do nothing.
Hi Murray,
in order to add on-demand attributes to the form tag in my template page,
I did the following
(template)
af:form
ui:insert name=formOptions/
...
ui:insert/
/af:form
(template client)
ui:composition template=.. ...
Why this error occurred?
javax.faces.FacesException: javax.servlet.jsp.JspException:
ServletException in '/page/index.jsp': Illegal to flush within a custom
tag
at
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(S
ervletExternalContextImpl.java:422)
at
Congratulations Craig, Wendy and the others...
Wendy Smoak schrieb:
The Struts team is pleased to announce the release of Struts Shale 1.0.2
Alpha.
http://struts.apache.org/downloads.html
The Struts Shale Framework is a set of loosely coupled services,
fundamentally based on
Hi,
I guess this function is used by JSF to clear all form's elements for
submit. I've never used this function before.
Regards.
-Original Message-
From: Le Van [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 29, 2006 8:57 AM
To: MyFaces Discussion
Subject: Re: Java Script error with
80 matches
Mail list logo