I did it before but the problem still occur. So do u think the reason is
JSF or I get wrong somewhere ?. I checked my code. Uhm...I'm not sure all.
Do you have any idea more ??
Murat Hazer wrote:
add this line just before facesContext.responseComplete()
Yes same managed-bean Rogerio.
I supposeyou were adding the results from the bean in popup page to the bean in main page.
Cheers,
Mert
On 5/4/06, Rogerio Pereira [EMAIL PROTECTED] wrote:
Use the same list for the main and popup page. Define it as a managed-bean with session scope.
You
sorry accidently sent the mail...last line should be like this;outputStream.close();outputStream.flush();facesContext.getApplication
().getStateManager().saveSerializedView(facesContext);facesContext.responseComplete();On 5/4/06, Murat Hazer
[EMAIL PROTECTED] wrote:
I had the same issue with
I need to validate two fields on my webpage, two dates, and I need to check if
one date is greater than the
other. Is this possible? Have I access to the other fields from within my
validate method or is there another
way of doing this (or do I have to check this in my save method)?
Regards,
Thanks for your advice. I try your code but I can't solved the problem.
I port that code to other screen, it work fine. So I think the problem
maybe from .jsp. :-) Life goes on.
Murat Hazer wrote:
sorry accidently sent the mail...
last line should be like this;
outputStream.close();
As far as i know validation in the JSF spec is component based, so if you want to validate a form (like you) you should follow a different way, you can add a hidden input after the components you want validate and write your validator method to this hidden component validator. (You can read detail
You could do it using validator. Read *JavaServer Faces of Hans Bergsten.*
Bjørn T Johansen wrote:
I need to validate two fields on my webpage, two dates, and I need to check if
one date is greater than the
other. Is this possible? Have I access to the other fields from within my
validate
Hi,
there is a validateCompareTo tag in sandbox
http://myfaces.apache.org/sandbox/validateCompareTo.html
http://myfaces.apache.org/sandbox/tlddoc/s/validateCompareTo.html
Regards,
Volker
Le Van wrote:
You could do it using validator. Read *JavaServer Faces of Hans
Bergsten.*
Bjørn T
Title: Message
It was
me!
Sorry,
I won't do it again
8^)
* ** *** ** * ** *** ** * ** *** ** *
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed.
Any views or opinions presented are
We actually do this at the moment but the JSPs are getting bloated as this
is the core of our reporting/charting framework and
there are potentially many reports facets that can be shown (20-30+). I was
looking for a more compact solution akin to using
Velocity templates which could be dynamicaly
Thanks Catalin.
subForm sounds promising.
I wait for the next
version of MyFaces/Tomahawk/sandbox until I test it.
How stable is this
sandbox component?
I assume that 1 html form
is generated and not 1 for each subform.
Does subForm work with
both state saving methods?
Hi
I try getted non-escaped HTML out for national chars :
h:outputText escape=false value=nationalChars/
but in HTML Out I view only escaping chars: #1042;#1099;#1095;#1077;
If I use a SUN implementation of Faces - this attribute (escape) - is
excellent work.
How do?
--
Vladimir
Hi,
You can use forceId from MyFaces to force the id in HTML to be the id
that you use.
Regards,
Fintan
-Original Message-
From: fischman_98 [mailto:[EMAIL PROTECTED]
Sent: 04 May 2006 00:35
To: users@myfaces.apache.org
Subject: f:subview id value added to child t:div
Why does the
Use case:
A user fills a
value in an inputText field, checks a radio button that causes the field to
become disabled, and submits the form.
After the user
submits, the value received is null, no matter what the field displays on the
UI
Is there a way
to retrieve that value although
Yes same managed-bean Rogerio.
I supposeyou were adding the results from the bean in popup page to the bean in main page.Yes, you is right, but if i use the same managed-bean the things will be harder to understand later.
-- Yours truly (Atenciosamente),Rogério
I have a dataTable / dataScroller nested in a tabbedPane, which is itself in
a nested Tile jsp.
The dataTable / dataScroller jsp is almost exactly the same as given in the
example.
It displays the table and the scroller as it should. The correct number of
pages according to the number of records,
I solved my own problem, seems like I HAVE to ask for help before I figure
things out!
Anyway, my dataTable / scroller was nested inside a h:form tag, which is
apparently a no no...
--
View this message in context:
Sean Schofield wrote:
Damn sounds like its going to be fun. Too bad I can't make it.
*Definitely* next year. ;-)
Me too. This is the JavaOne I've missed for some years. I'll
miss the excellent beer in Thirsty Bear! Have fun!
Jon.
--
Jonathan Harley wrote:
Sean Schofield wrote:
Damn sounds like its going to be fun. Too bad I can't make it.
*Definitely* next year. ;-)
Me too. This is the JavaOne I've missed for some years. I'll
miss the excellent beer in Thirsty Bear! Have fun!
Uh, the *first* JavaOne that I've
Hi Michael,The component is stable and functional, you can use it with no problem. You are right, only one html form is generated, and the components surrounded by a subForm can update model values and/or be validated separately from other components in the main form.It works with both client side
All,
We have the following scenario :
A form with
t:dataTable...
t:columns...
f:subview...
jsp:include page = someSubForm.jsp
/f:subview
/t:columns
/t:dataTabe
someSubForm.jsp :
html
body
h:panelGrid..
h:panelGroup
h:selectoneMenu
Julian Ray wrote:
I posted this a few days ago but it might have slipped through the cracks...
I am attempting to add resources from a jar of custom components using
the AddResource service in Tomahawk. It works for resources which are
configured within the WEB-INF but I'm struggling to get
Dunstan, Steve wrote:
We have been using the t:dataTable varDetailToggler functionality with
some success in our stand-alone web apps. However, when we started
testing in the context of JBoss Portal it stopped working. Has anyone
had success with this in a portal?
I would guess that it
Hi,Weblets are created for this purpose but seem a little bit complicated to me. Another workaround should be to use a simple phaselistener which I suggest if you are writing a custom component library since it needs no configuration for the end user.
Here is an example of a phaselistener serving
How to make the outputLink be context relative
so that my
h:outputLink value=/hello.jsf
t:outputText value=hello/
/h:outputLink
would point to http://localhost:8080/hello/hello.jsf and not
http://localhost:8080/hello.jsf
--
With best regards,
Alexander Panzhin
smime.p7s
Sorry if this is a bit too general for this list, but as I'm using
myFaces as my JSF implementation I thought it would apply.
I've recently written an e-commerce application using
Facelets/JSF/Spring/Hibernate/Tomcat/MySQL with a shopping cart,
customer sign-in, etc.
As this is my first
Don't specify / before hello.jsf. It'd be context relative with this.
Regards,
Mert
On 5/4/06, Alexander Panzhin [EMAIL PROTECTED] wrote:
How to make the outputLink be context relativeso that myh:outputLink value=/hello.jsf
t:outputText value=hello//h:outputLinkwould point to
Thanks guys. so nice of you.
Hasnain
On 5/3/06, Mert Çalışkan [EMAIL PROTECTED] wrote:
Yes as Volker stated above.and h:datatable can also be nested elements in h:columns like, h:dataTable id=table value=#{bean.list} var=varInnerList
h:column f:facet name=header h:outputText
Yes same managed-bean Rogerio.
I supposeyou were adding the results from the bean in popup page to the bean in main page.My problem is, i have 5 fields and 3 buttons on popup window and put this stuff in the same bean will make the things a little confuse and dificult to understand and manage
Hi
Thank you for reading my post
Does file upload component works inside a portlet ?
thanks
On 5/4/06, joelus [EMAIL PROTECTED] wrote:
I solved my own problem, seems like I HAVE to ask for help before I figure
things out!
Anyway, my dataTable / scroller was nested inside a h:form tag, which is
apparently a no no...
Yes, you want to have tabbedPane inside of an h:form. Otherwise,
validateCompareTo is exactly what you need, and it's stable. I wrote
it to compare date fields, so this is its most-tested configuration :)
I'll probably push to have it promoted from the sandbox to tomahawk pretty soon.
The only issues holding it back (that I know of) are that there are
some
You should specify the list as a managed-bean and use the same managed bean in main and popup page.
Other UIComponents should be specified in two different backing-beans.
Regards,
Mert
On 5/4/06, Rogerio Pereira [EMAIL PROTECTED]
wrote:
Yes same managed-bean Rogerio.
I supposeyou were
On 5/4/06, Legolas Woodland [EMAIL PROTECTED] wrote:
Thank you for reading my post
Does file upload component works inside a portlet ?
I'm pretty sure that file upload requires the extensions filter.
servlet filters don't work with portlets.
On 5/3/06, Yasushi Okubo [EMAIL PROTECTED] wrote:
I would like to add other components like outputtext, panelGrid etc
inside t:selectOneRadio besides f:selectItem, but it seems it does not work.
Is there any way to achieve this ?
There have been a number of people asking how to do various
I am going on a limb to answer this without first checking MyFaces
code and the spec, so feel free to correct any errors I am about to
post.
Calling render response on the faces context will not interrupt the
current phase, but instead just cause rendering to occur. According to
what I remember
Here is one solution:Write a custom renderer. In that renderer, make a parent component with two temporal child components. First child: select one checkbox. Second child: output link. On the rendering of the checkbox, record it's client ID in a variable. On rendering of the output link, add a
Is there any reason that t:datascroller does not
provide an onclick attribute or _javascript_ event handlers?
I have to execute some _javascript_ in order to show a
confirmation dialogue if data has been changed on my form but not saved.
I could add onclick attributes to the facets
On 5/4/06, Andrew Robinson [EMAIL PROTECTED] wrote:
I am going on a limb to answer this without first checking MyFaces
code and the spec, so feel free to correct any errors I am about to
post.
Calling render response on the faces context will not interrupt the
current phase, but instead just
On 5/4/06, Michael Heinen [EMAIL PROTECTED] wrote:
Is there any reason that t:datascroller does not provide an onclick
attribute or javascript event handlers?
I have to execute some javascript in order to show a confirmation dialogue
if data has been changed on my form but not saved.
I could
Maybe you could work with Yasushi on this.-- Forwarded message --From: Mike Kienenberger [EMAIL PROTECTED]Date: May 4, 2006 11:31 AMSubject: Re: question for t:selectOneRadio : how to add other components besides f:selectItem
To: MyFaces Discussion users@myfaces.apache.orgOn
On 5/4/06, Mert Çalışkan [EMAIL PROTECTED] wrote:
You should specify the list as a managed-bean and use the same managed bean in main and popup page.
Other UIComponents should be specified in two different backing-beans.Do you have an example?-- Yours truly (Atenciosamente),Rogério
I'm not sure if this
is the place for suggesting components to add to the sandbox but
anyway
How about adding a
spinner control which can take Integers and/or decimals with configurable step
sizes and which would increment/decrement on either the server or the client. We
currently use
Patches are welcome ;)
Dennis Byrne
-Original Message-
From: Julian Ray [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 4, 2006 12:08 PM
To: ''MyFaces Discussion''
Subject: Sandbox/Tomahawk Component Request
I'm not sure if this is the place for suggesting components to add to the
sandbox
On 5/4/06, Julian Ray [EMAIL PROTECTED] wrote:
I'm not sure if this is the place for suggesting components to add to the
sandbox but anyway
How about adding a spinner control which can take Integers and/or decimals
with configurable step sizes and which would increment/decrement on either
After looking at the subForm, I'd recommend using it over my
suggestion. It will (hopefully) support state saving methods better
than two independant forms. I am using server state as it seems more
friendly although it does have some serious side effects (like
trying to have multiple view active
On 5/4/06, Andrew Robinson [EMAIL PROTECTED] wrote:
Trying to build and update the
sandbox is a pain as there are no nightlies for it (there is an open
JIRA on this).
http://issues.apache.org/jira/browse/TOMAHAWK-209
Good news! If you take a look at the issue, you'll see that sandbox
Thank you for reply ,
but, is there any solution to upload a file inside a jsf based portlet ?
On 5/4/06, Mike Kienenberger [EMAIL PROTECTED] wrote:
On 5/4/06, Legolas Woodland [EMAIL PROTECTED] wrote:
Thank you for reading my post Does file upload component works inside a portlet ?I'm pretty
I'm using a collapsible panel on page and I noticed that if I open and
close it several times, pressing the back button of the browser cycles
through the history of views, opening and closing the panel. This makes
complete sense to me, but I was wondering: Is there a way to knock these
views off
I think adffaces has an upload component.
Your other option is to write a phase listener that performs all of
the same processes that the extension filter does.
On 5/4/06, Legolas Woodland [EMAIL PROTECTED] wrote:
Thank you for reply ,
but, is there any solution to upload a file inside a jsf
thanks for reply.
Can you help me with that phase listener ?
where i can find some resource about this ?
Thanks
On 5/4/06, Mike Kienenberger [EMAIL PROTECTED] wrote:
I think adffaces has an upload component.Your other option is to write a phase listener that performs all of
the same processes that
t:panelTabbedPane: Is the serverSideTabSwitch
attribute depreciated?
If it is, how do I
toggle client-side/server-side tab switches?
Thanks,
--Todd
Nice to have the WIKI on promoting Sandbox to Tomahawk. Is there a
WIKI on how best to create a new sandbox component from scratch and
what steps should be taken? (not just migrating it from jsf-comp for
example). I looked at the Contributing_Patches, and looked at the
focus JIRA issue, but not
On 5/4/06, Andrew Robinson [EMAIL PROTECTED] wrote:
Nice to have the WIKI on promoting Sandbox to Tomahawk. Is there a
WIKI on how best to create a new sandbox component from scratch and
what steps should be taken? (not just migrating it from jsf-comp for
example). I looked at the
On 5/4/06, Todd Patrick [EMAIL PROTECTED] wrote:
t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated?
No, it's not. Do you have reason to believe otherwise?
An interesting blog entry for using PhaseListners instead of Servlets
(or Filters) is [1]
[1]
http://www.jroller.com/page/cagataycivici?entry=phaselistener_renders_an_image_no
On 5/4/06, Legolas Woodland [EMAIL PROTECTED] wrote:
thanks for reply.
Can you help me with that phase listener ?
It's a very good news, thanks a lot for the myfaces team's job
Sean Schofield wrote:
We are targeting next Monday for the official release.
Sean
On 5/3/06, pmuir [EMAIL PROTECTED] wrote:
I don't think 1.1.2 has been released yet. I've used the svn source
to build
a copy or you can
I keep receiving the following error message:
compile-jsps:
org.apache.jasper.JasperException: Attribute serverSideTabSwitch
invalid for tag panelTabbedPane according to TLD
C:/javaworkspace/petroadmin/transactionbrowser/build/web/tbrowser.jsp(87
,16)
There has been a bug inside RI see [1] [2]
[1] http://issues.apache.org/jira/browse/MYFACES-1010
[2] https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=230
On 5/4/06, eroman [EMAIL PROTECTED] wrote:
All,
We have the following scenario :
A form with
t:dataTable...
Myfaces implementationis not compliant with section 12.3.4 of portlet spec.
In the current implementation(s) (1.1.1 1.1.2)
UIViewRoot.createUniqueId() is implemented as follows:
/* Provides a unique id for this component instance. */ public String createUniqueId() { ExternalContext extCtx =
I downloaded 1.1.3
Nightly build and I am trying to configure my web.xml file as
such:
?xml version="1.0" encoding="UTF-8"?web-app
version="2.4" 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
On 5/4/06, Todd Patrick [EMAIL PROTECTED] wrote:
I downloaded 1.1.3 Nightly build and I am trying to configure my web.xml
file as such:
?xml version=1.0 encoding=UTF-8?
web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
I have a popup window that must update the page with some dataTables in the parent window when i click on close button, how can i do it?I tried:window.opener.document.forms[0].submit() and the dataTable isn't updated
window.opener.location.reload() but this method calls shows a message box about
Thank you. We now can display the contents of the first column correctly
(but not the second). When we view the source for the page, the id is
correct for the first and second columns. However, the second column
contents does not reflect what it should - the second column's contents is
the
Thank you for the suggestion!
This didn't work either... The error keeps saying:
java.lang.IllegalStateException: ExtensionsFilter not correctly
configured. JSF mapping missing. JSF pages not covered. Please see:
http://myfaces.apache.org/tomahawk/extensionsFilter.html
I even tried to add:
Todd Patrick schrieb:
url-pattern/transactionbrowser/myFacesExtensionResource/*/url-pattern
No, its
/faces/myFacesExtensionResource/*
as stated in the documentation. The url-pattern will always be relative to the
context.
Ciao,
Mario
Thank you, I tired that as well.
Is there a bug in the 1.1.3 nightly build?
Thanks,
--Todd
-Original Message-
From: Mario Ivankovits [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 04, 2006 3:09 PM
To: MyFaces Discussion
Subject: Re: 1.1.3 returns the error:
You're making it harder than it has to be :)
There are two required mappings.
One has to be absolute and has to look exactly like this. It should
probably be your first filter-mapping for performance reasons. (I
had assumed you'd copied it verbatim, but I see that's now not the
case).
!--
Is it a problem that my Faces servlet mapping is:
servlet
servlet-nameFaces Servlet/servlet-name
servlet-classjavax.faces.webapp.FacesServlet/servlet-class
load-on-startup1/load-on-startup
/servlet
servlet-mapping
servlet-nameFaces Servlet/servlet-name
Title: Javascript not generated on initial JSF pages
Whenever I deploy my web app, the first page I load with JSF components does not generate code for any of the JSF components. In other words, on my initial index page, I have a commandButton and some regular html links (a href="" Only the
On 5/4/06, Todd Patrick [EMAIL PROTECTED] wrote:
Is it a problem that my Faces servlet mapping is:
url-pattern/transactionbrowser/*/url-pattern
[vs]
url-pattern*.jsf/url-pattern
No, the beauty of using a servlet-name filter mapping is that it
doesn't matter how you specify
This is so frustrating... I really appreciate your help.
These changes still are unsuccessful, I've tried each suggestion and
Googled on the topic as well with no success.
My web.xml file is now:
?xml version=1.0 encoding=UTF-8?
web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee;
Hi Todd!
Is it a problem that my Faces servlet mapping is:
Regardless of what your servlet mapping will be, the extensions filter
(and the url-pattern) has to be as stated by the documentation or by
mike. So NOT using your /transactionbrowser/* but /faces/
If this failes, the best will
Hi Todd!
context-param
param-nameorg.apache.myfaces.CHECK_EXTENSIONS_FILTER/param-name
param-valuefalse/param-value
/context-param
Given that you already told the system to disable this filter check I
bet that the web.xml you edit is not the used by tomcat. Just a
Thank you, I looked at that as well...
Would you provide an example of how you set-up your web.xml file?
Thanks,
--Todd
-Original Message-
From: Mario Ivankovits [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 04, 2006 3:47 PM
To: MyFaces Discussion
Subject: Re: 1.1.3 returns the
On 5/4/06, Todd Patrick [EMAIL PROTECTED] wrote:
Would you provide an example of how you set-up your web.xml file?
One other thing you might check is to be sure you've got things in the
correct order in your web.xml file.filters, filter-mappings,
listeners, servlets, servlet-mappings.
I think I had the same problem a while back until I switched to the latest
tomahawk build. This attribute appears to have been added in a later
version. Which version of Tomahawk are you using?
-Original Message-
From: Todd Patrick [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 04, 2006
Ok some I'm deep into the sandbox adding a couple of controls but have
question
One of the tags is based on a simple div but calls out to some external JS.
The tag implementation is based on tomahawk's div tag (HtmlTag) but I get
errors thrown from myfaces stating that it can't find the tag
I am now using 1.1.3 Nightly Build - but now that is causing issues with
defining my filters in my web.xml file.
Thanks,
--Todd
-Original Message-
From: Julian Ray [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 04, 2006 4:18 PM
To: 'MyFaces Discussion'
Subject: RE: t:panelTabbedPane:
On 5/4/06, Todd Patrick [EMAIL PROTECTED] wrote:
I am now using 1.1.3 Nightly Build - but now that is causing issues with
defining my filters in my web.xml file.
Actually, that's an indication that they were never working in the
first place rather than a new problem. I've been using the same
You have probably checked already but I was having filter and load problems
unitl I realized that I had left the old myfacesall.jar in the lib directory
and it was getting picked up instead of the new jars and causing all kinds
of problems.
-Original Message-
From: Todd Patrick
Mike: Would you please provide a copy of your web.xml file?
I've wasted three hours on this... so, any examples are appreciated.
Thanks,
--Todd
-Original Message-
From: Mike Kienenberger [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 04, 2006 4:34 PM
To: MyFaces Discussion
Subject:
This can't be
hard... I've wasted close to *four* hours on this. I've been fortunate that I've
had some really great people help me. However, I still can't get past
the following error:
javax.servlet.ServletException: ExtensionsFilter not correctly
configured. JSF mapping missing. JSF
App Server: Sun Java System Application Server PE 8
Libraries: myfaces-api-1.1.2.jar, myfaces-impl-1.1.2.jar, tomahawk.jar
and tomahawk-1.1.3-SNAPSHOT.jar
Two versions of the same jar ???
Dennis Byrne
On 5/4/06, David G. Friedman [EMAIL PROTECTED] wrote:
servlet
servlet-nameFaces Servlet/servlet-name
servlet-classjavax.faces.webapp.FacesServlet/servlet-class
load-on-startup1/load-on-startup
/servlet
servlet-mapping
servlet-nameFaces
Well, my file extensions are .jsp not
.jsf.
Or have I done something wrong?(Come to think about
it, I really don't stand that just yet, I need to google
this.)
Thanks,
--Todd
From: David G. Friedman
[mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 5:30
PMTo: MyFaces
Uri Kalish wrote:
Use case:
A user fills a value in an inputText field, checks a radio button that
causes the field to become disabled, and submits the form.
After the user submits, the value received is null, no matter what the
field displays on the UI…
Is there a way to retrieve that
Thanks dude. I found the problem. It's an HTML form thing - A form submitting
will not post disabled fields.
Because in the case of error I want to re-display the page exactly as it was
when the user submitted (I don't want fields changed by the user to jump to
default values just because he
I have the following
currentservlet-mapping that works:
filter
filter-nameMyFacesExtensionsFilter/filter-name
filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class
init-param
param-namemaxFileSize/param-name
param-value20m/param-value
Anytime I've tried
to use *jsf in my url-pattern value:
servlet
servlet-nameFaces Servlet/servlet-name
servlet-classjavax.faces.webapp.FacesServlet/servlet-class
load-on-startup1/load-on-startup/servletservlet-mapping
servlet-nameFaces Servlet/servlet-name
I have a project
folder that looks like:
/transactionbrowser/
-
WEB-INF
-
resources
-index.jsp
-tbrowser.jsp
With the
servlet-mapping of:
filter
filter-nameMyFacesExtensionsFilter/filter-name
filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class
init-param
Do this ...
servlet-mapping
servlet-nameFaces Servlet/servlet-name
url-pattern/*/url-pattern
/servlet-mapping
The URL pattern is context relative. If a servlet could be to a specific
context then it could intercept requests sent for a different webapp.
Dennis Byrne
-Original
I've seen this example several places, do I need to name my files with a
*.jsf extension?
No, just name it .jsp and the request will be forwarded to it.
Dennis Byrne
How would using this url-pattern affect the following filter definition,
would I change the url-pattern to *.jsf for
Todd,
From
your various posts tonight, you seem to have a number of JSF concepts
mixed. Is this your first Faces Webapp? (That is not meant to be an insult
but a simple question)
If
your project folder looks like this as you indicated:
/transactionbrowser/
-
WEB-INF
-
resources
94 matches
Mail list logo