It would be nice if you found a way to say how you achieved it, so
others can learn from that too...
Mvgr,
Martin
[EMAIL PROTECTED] wrote:
I found a way. If You have an elegant solution You tell it me.
-- Original-Nachricht --
Reply-To: MyFaces Discussion users@myfaces.apache.org
Date:
Hello,
My application has to validate a form where a date
depends on another date (the first one must be the next one), but the JSF
validation is component-oriented. How can I handle that in an elegant way?
A solution is described here but I dont
understand how to achieve it :
Hi!
I'm trying to use my custom output component employee in a standard
h:datatable.
---Snip---
h:dataTable width=100% value=#{facListBean.facList} var=list
h:column
ds:employee partId=#{list.id} partIntern=#{list.isIntern}/
/h:column
/h:dataTable
---Snip---
To get the
2005/10/18, Sean Schofield [EMAIL PROTECTED]:
A few thoughts ...I'm not sure the binding attribute on tree2 works properly although Icould be wrong since I haven't worked closely on it in a few monthsnow.I don't think you need to have refs to the tree data, etc. in your
backing bean.Try using
define a custom validator for the second date field (must be the second).
h:inputDate id=lowerDate value=#{yourBackinBean.lowerDate}/
h:inputDate value=#{yourBackinBean.upperDate}
validator=#{yourBackingBean.validateDates}/
public class YourBackingBean
{
public void validateDates(FacesContext
It seems that the redirect method in org.apache.myfaces.context.servlet.ServletExternalContextImpl
does not call responseComplete() as it should. The official API documentation states:
Redirect a request to the specified URL, and cause the
responseComplete() method to be called on the
IMO there is nothing wrong with the two methods you have posted.
Can you post the getter methods for partId and partIntern?
What happens if you use it in the datatable?
2005/10/19, Stefan Gesigora [EMAIL PROTECTED]:
Hi!
I'm trying to use my custom output component employee in a standard
I have the same problem. Its
a real cumbersome if you want to create a jsf authorization service which,
according to the j2ee specs, has to redirect the response to the original page.
Currently I simply redirect all users to a main page using a navigation rule.
I will vote on this
issue.
Hi!
If I use my custom component in the datatable the expressions #{list.id} and
#{list.isIntern} are resolved as null values.
Here are the snippets of my TagClasses:
---SNIP--
public abstract class BaseTag extends UIComponentTag{
/**
* @param attributeValue String
* @return String
aha the problem is quite simple. Valuebindings resolved in the tag
class can not be used for dynamic beans like the var in UIData
components. Because they are created dynamically in the process
methods of the components and the tag class is just the entry point
for jsf.
Either subclass from
What happens if 2 concurrent requests for the same uiview are received in MyFaces? Are they serialized? Is a second component tree instantiated? Or are there indeed concurrency problems?
x-tad-smallerMet vriendelijke groeten,
Jan Dockx
/x-tad-smallerx-tad-smaller
PeopleWare NV - Head
Javaworld has an article on Java Studio Creator.
http://www.javaworld.com/javaworld/jw-07-2005/jw-0704-jsf.html
I am using myeclipseide. Has some wizards to create jsf elements, but I
rather use a good xml editor. Myeclipse is very slow, maybe somebody has
some tips on how to start/speed up
I'm using Eclipse 3.1 on a Gentoo-Linux-Box with the following plugins: MyEclipse (great product) for the J2EE-stuff, Oxygen-XML-Editor for all XML/XSL/XPath/XLM-Scheme related stuff, Subclipse for the Subversion-Server, Maven-Plugin for maven-build-scripts, JPOX-Plugin for JDO and some others...
Hi Ted,
Does the Web Tool Platform plugin have a JSF GUI tool? If it has I
would be very interested in using it.
Many thanks,
Fintan
-Original Message-
From: Ted Jones [mailto:[EMAIL PROTECTED]
Sent: 18 October 2005 18:02
To: MyFaces Discussion
Subject: RE: survey: what tool are you
They started working on it http://www.eclipse.org/webtools/jsf/.
Though no visual editor is planned yet..
Mvgr,
Martin
Conway. Fintan (IT Solutions) wrote:
Hi Ted,
Does the Web Tool Platform plugin have a JSF GUI tool? If it has I
would be very interested in using it.
Many thanks,
Fintan
Dennie de Lange wrote:
Javaworld has an article on Java Studio Creator.
http://www.javaworld.com/javaworld/jw-07-2005/jw-0704-jsf.html
I am using myeclipseide. Has some wizards to create jsf elements, but I
rather use a good xml editor. Myeclipse is very slow, maybe somebody has
some
Hello everybody.
I'm working on a solution to do a custom authentication. Does anybody
has a proposal for a nice solution differing to the following?
While googling around I found this solution from Aaron Bartell at
http://groups.yahoo.com/group/jsf-developers/message/471
He proposes to use
Conway. Fintan (IT Solutions) wrote:
Hi Ted,
Does the Web Tool Platform plugin have a JSF GUI tool? If it has I
would be very interested in using it.
Many thanks,
Fintan
Not yet, Oracle under the umbrella of Eclipse started an initiative
recently, but currently Nitrox, Exadel and
Each request has its own component tree instantiated. So there should
no problem with concurrency. If you use session or application scoped
beans then you have to care for concurrency of course.
2005/10/19, ir. ing. Jan Dockx [EMAIL PROTECTED]:
What happens if 2 concurrent requests for the same
Hi!
Many thanks!!
It works ;-)
Regards,
Stefan Gesigora
-Ursprüngliche Nachricht-
Von: Mathias Brökelmann [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 19. Oktober 2005 11:51
An: MyFaces Discussion
Betreff: Re: custom output component in datatable
aha the problem is quite simple.
Simon Kitching [EMAIL PROTECTED] wrote
on 10/18/2005 05:25:13 PM:
The sortColumn attribute should point to a backing bean
property that
is of type String. That property gets set (ie its setter gets called)
with the columnName value of whatever column the user chose to sort
on.
The
Dave Brondsema wrote:
Ryan Wynn wrote:
I am trying to get the inputCalendar to work inside a Portlet. It seems
to me that although I have the myfaces ExtensionsFilter mapped in my
web.xml the appropriate javascript is not being included in the response.
I get DateFormatSymbols is
-Original Message-
I only can say if speed is an issue, either move away from WTP based
plugins or wait for better times. To split the project into several
smaller subprojects and have ant doing the merge probably is the way to
go currently.
I cannot say how Nitrox behaves speedwise.
Please try to send your mails to the mailing list
users_at_myfaces.apache.org too. I´m not sure if know the right
answers. So give the other users a chance.
How do you convert the date instance into a string instance to be used
for h:outputText?
It is possible that you have to take care for the
Use the JSF converters/formatters
h:outputLabel value=Date Due for=dueDate /
h:inputText id=dueDate value=#{MBean.dueDate} readonly=true
f:convertDateTime pattern=dd/MM/ /
/h:inputText
Stefan Maric | IT Professional Services | BT Global Services
E: [EMAIL PROTECTED] |
I should be more accurate:
If I use a f:convertDateTime or not, the result is the same.
The libs are from the 18/10/2005 nightly build. With an older build
(20/09/2005) it works. So I think a change happened on the datatable
implementation.
I know, I'm using a nightly build.. but I cannot
Hi,
Does anybody know if there is a way to forward to a
tiles definition directly from the faces-config.xml
file?
__
Yahoo! Music Unlimited
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/
You cannot do that directly, but you can forward to a JSF page that has
a tiles:insert definition=.../ statement in it.
What we did (to avoid having to have a JSF page for each tile
definition) was to define a generic JSP that we defined as a Servlet
mapped to any URI beginning with /tiles/. The
Currently I am adding new components to the tree on an action. These new components have binding attribute set. But when they are rendered first time the backing bean that is associated with these new components does not get intialized with the component references.
For all subsequent requests
The default behavior of the DateTimeConverter is to use GMT if no
Timezone is specified. This is since 22/Sep/05 because of the jsf spec.
Also showing the Date only is default behavior, if you want to show the
time also you need to specify a pattern or a type to the converter.
Maxence Dewil
Yes, it does. I put it on my G4 laptop - 1G RAM,
Tiger. It works. But it's extremely slow for what I
develop. So I switch to a Windows desktop with Intel
3.2GHz and 1G RAM. It's 5 times faster - 10 min vs 2
min to bring up JBoss/Tomcat/Liferay/MyStuff inside
eClipse.
I use eClipse 3.1/WTP on both
Thanks so much for your answer, Brendan!
Your solution works fine when I want to put my
navigation rules only in the faces-config.xml file.
But I have another navigation problem when using TILES
with MyFaces. I've been trying everything but nothing
seems to be the right way.
The problem is the
If you want your action to lead directly to another page, you say
...action=displayMyPage..., where displayMyPage is defined as some
sort of from-outcome in your faces-config.xml file that leads to a
/tiles/myTile to-view-id.
In other words, your action does not specify the page directly; rather,
The links on page myfaces.apache.org are returning the apache "Internal
Server Error" page.
Link LableLink
Binary Distributionshttp://myfaces.apache.org/binary.cgi
Source Distributions http://myfaces.apache.org/source.cgi
Also the email subscribe links on the myFaces mailing
John Fallows wrote:
On 10/19/05, Dave Brondsema [EMAIL PROTECTED] wrote:
Dave Brondsema wrote:
Ryan Wynn wrote:
I am trying to get the inputCalendar to work inside a Portlet. It seems
to me that although I have the myfaces ExtensionsFilter mapped in my
web.xml the appropriate javascript is
FYI, if you are using seam, they have a logged-in injector in their
examples that does this without an include (an auto redirect to the
login page)On 10/19/05, Martin van den Bemt [EMAIL PROTECTED] wrote:
It would be nice if you found a way to say how you achieved it, soothers can learn from that
Given my experiences with Eclipse on a Mac mini I would not
want to develop with Eclipse on a Mac, the SWT is dog slow
Netbeans is almost twice as fast on a Mac.
Probably Linux is the only way to get a decently fast Eclipse
on a Mac :-(
Werner
Kevin Liang wrote:
Yes, it does. I put it on my
Hi friends
Im trying to load myfaces-examples
application under OC4J (Oracle IAS), with MyFaces version 1.0.9.
Do you have any idea of what is
happening???
Thanks!!!
Joao
Just to get experience, what size was it?
The biggest project I have done so far with Exadel,
was a shop backend, which had around 50-100 struts jsps
subpages, integrated tiles, Hibernate with around 30 tables
and the usual thing you can expect (Tomcat etc...)
Exadel 3.0.4 was sometimes flakey
Can someone please share some code for lazy loading?
Thanks a bunch.
- Anu
Unfortunately no. Just code completion, but that has served us well thus
far.
-Original Message-
From: Conway. Fintan (IT Solutions) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 19, 2005 6:50 AM
To: MyFaces Discussion
Subject: RE: survey: what tool are you using for JSF ?
Hi Ted,
Hi, everyone. I'm learning JSF and I'm having some
headaches.
I have a managed bean called LogonBean with two String
attributes, login and password, their getters and
setters and a method called logon(). In the jsp I have
a commandButton that calls the logon method.
When I click the
What does your jsp look like?
What is the method signature for logon()?
It must be public String logon() if you're using
action=#{logon.logon} and it must be public void logon(ActionEvent
event) if you're using actionListener=#{logon.logon}.
On 10/19/05, [EMAIL PROTECTED]
[EMAIL PROTECTED]
Thanks for your answer. Here are my jsp and my managed
bean codes:
Jsp:
--
h:form id=logonForm
h:messages/
[...]
h:commandButton action=#{logon.logon}
immediate=true value=Submit/
/h:form
--
LogonBean:
--
public class LogonBean {
What's probably happening is that you're trying to access your login
and password components from logon. Those values won't contain valid
input if you're skipping the conversion and validation phases.
Remove the immediate=true attribute.
JSF moves data through several stages before it's bound
Hi Anu,
The Wiki has an example of this: http://wiki.apache.org/myfaces/Tree2.
Look at the code for NavigationBacker.java, whose processAction() method
is invoked as an actionListener (specified in navigation.jsp). Thus,
when one of the graphic images inside commandLink is clicked,
When I remove immediate=true I receive a Conversion
Error message. But I'm not using any conversor and my
attributes are both strings...
Thanks,
David.
--- Mike Kienenberger [EMAIL PROTECTED] escreveu:
What's probably happening is that you're trying to
access your login
and password
There's not enough information to speculate why that is happening.
You'll need to post the conversion error stack trace (if there is one).
You should probably also post your full jsp page and full faces-config file.
On 10/19/05, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
When I remove
That wiki page is great and I am getting a good grip on this.
Am pretty confused at a couple lines in jsp
What are these refereneces to projekt-folder facet and projekteTable.jsp?
Do we need to write these and what is their function?
can someone shed some light on this?
- Anu
h:commandLink
Hi
This problem is related to a recent topic in another thread regarding
calendar popup and porlets.
It seems the problem with the popup calendar is the same as I'm having
with the tabbed pane component in a portal(Liferay).
The tabbed pane components wants to add couple of javascript and a
There is no conversion error stack trace.
My jsp:
---
!doctype html public -//w3c//dtd html 4.0
transitional//en
html
head
meta http-equiv=Content-Type content=text/html;
charset=iso-8859-1
titleTeste - Login/title
%@ taglib uri=http://java.sun.com/jsf/html;
prefix=h %
%@ taglib
Is there an easy way outside reloading the context to get the faces-config.xml to reload? I assumed that this was addressed in issue MYFACES-419 but it did not appear to do what I expected when I tried myfaces-1.1.1RC3.
thanks,Andy
52 matches
Mail list logo