i can't get my jsf component to work within a facelets
environment. I took the example of Bruno Aranda, a kind of
hello world example
(http://brunoaranda.googlepages.com/jsfcomponentsarchetype2).
This works for me with jsps. When i switch to facelets, i get
the following warnings and
Stephen Friedrich wrote:
Now I have two choices:
I either fulfill this requirement or I try and pick a fight.
devils_advocate
And apparently, since everyone in your organization is
equally lazy, the guidelines will stay fixed forever. :)
/devils_advocate
I think you folks are being
You're trying to use server-side ids which are not the same as client-side ids.
Do a 'view source' on your generated page and you'll probably notice that the
form and input ids are similar but not exactly the same, plus a prefix on the
front for uniqueness
I thought: why not putting this file facelets defn file for
tomahawk
right away in the meta-inf of the Tomahawk jar?
Won't harm nobody but will certainly help a lot of people.
Although I still subscribe to that idea, he had a point also:
MF and facelets are indeed 2 different
Um, if you look at the package naming for the classes themselves you'll
see that the package naming is org.apache.myfaces. They are still
tomahawk components.
From: Vladimir Isakovich [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 26, 2007 11:20
I just opened HtmlDataTable.class from tomahawk.jar in the
decompiler, and this is what I see:
package org.apache.myfaces.component.html.ext;
- not org.apache.myfaces.
Also on the other thought, if two jars (tomahawk and myfaces)
would have the same class (I mean -in the same package) they
Is it possible to find out which component
in the ViewRoot I am currently working with?
What do you mean, which component you're working with?
Perhaps you're really asking a binding question, i.e. what UI component
is my particular backing bean member populated from or somesuch. For
this,
java.lang.IllegalArgumentException: only absolute URLs or
full path URIs are allowed
I usually get this if a partial URI is used, i.e. some sort of img
src=images/filename / kind of thing. Using an absolute URI, i.e.
img src=/images/filename / should resolve it.
The issue is that typically
Okay, so given a tag like h:panelGrid columns=3, what is the
JSF-correct way to implement a row which spans the columns?
I mean, I can see that it gets blown out to become an html table tag
appropriately filled, so I could hard-code something to get in there,
but I know that's got to be the wrong
Besides the spring integration, maybe you should rethink your
design ?
Use somthing like acegi security to perform authentification
and authorization instead of passing Session objects to the
business layer...
At least consider wrapping the info you need (user id and
roles) in an
Thanks Everyone for providing valuable suggestions We
usein-house Security system which gives employee Id and
Roles on successful authentication. We need to store
employee Id Roles into some kind of object maybe session so
that it can be accessible by any Spring bean in the business
After a while of using Ajax4Jsf, I am really liking how they
handle component rendering resources (JavaScript and CSS
files mainly). Their method seems to be cleaner and (I think)
have better performance than Tomahawk.
Both implementations suck when it comes to portlets. Portlets generate
I don't really think this is a faces issue per-se, it is really a
programmatic thing (I would guess that Sun included a workaround in
their portlet to make it work).
Basically a portlet has some do methods (doView(), doEdit(), and
doHelp()) that, by overriding, you can access the various modes
That's great if you don't mind surfing through SVN to find the head for
a specific file. But try finding the version in the list that
represents the file that was released for 1.1.3...
If we can download the jars, why can we not also download a zip of the
source used for the jar? I mean
of myfaces and tomahawa 1.1.3
Why not just check out the version from SVN, and build the src
jars with maven ?
On 5/16/07, Nebinger, David [EMAIL PROTECTED] wrote:
That's great if you don't mind surfing through SVN to
find the head
Okay, so I've got the following tree2 'goal':
t:tree2 id=treeComp value=#{navTree.treeModel}
clientSideToggle=true varNodeToggler=t var=node
imageLocation=/images
f:facet name=item
h:panelGroup
h:commandLink styleClass=#{t.nodeSelected ?
'documentSelected':'document'}
I've got what I think is a pretty simple xhtml page, more or less the
intent is to have an explorer type view with a tree on the left and a
display area on the right (the display area changes depending upon the
item that gets chosen from the tree).
The items in the tree have a simple numeric
Unfortunately I still can't get user information like name or
email address.
(String) userInfo.get(liferay.user.id) and
PortletRequest.getRemoteUser() return a user id (here:
liferay.com.1) but not the actual name of the user.
But if you have the key you can retrieve the information for
I show the messages on the page like this:
h:messages showDetail=true/
showSummary is true by default. Since you used both flags you were
shown both messages. Try setting showSummary to false to only have the
detail shown.
I have a JSF application in a Liferay Portal rendered as
portlet using MyFacesGenericPortlet class. I want to access
user information that is provided by the portal.
I'm not sure what you're going after, but I'm using
request.getRemoteUser(). It returns the liferay user id for the logged
in
First of all, it's easier to get the request map from the
ExternalContext:
Map requestMap = externalContext.getRequestMap();
For the http request parameters, sure you're correct. But he's got a
portlet and he's looking for a portlet request parameter, so he's going
about things the correct
I am getting the following error when I attempt to deploy my
application in tomcat 5.5.15
SEVERE: Exception sending context initialized event to
listener instance of class
org.apache.myfaces.webapp.StartupServletContextListener
I see the above error in /var/log/tomcat5/catalina.out
I'm using t:popup to display some popup help (nothing fancy). In
firefox and opera, the popup appears with all words on a single line
(just as I'd expect).
However, under IE, each word is on it's own line. Generated HTML
(copied below) for each of the browsers are exactly the same, use the
same
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 25, 2007 1:48 PM
David,
I got around the problem you describe by applying a style to
h:outputText/; e.g., h:outputText
styleClass=popupDescription of the security role./h:outputText
.popup {
height: 5em;
You have two options, both specific to the target attribute on the link: Either
_top to get it to replace the portal outline or _blank to get it to a new
browser frame.
-Original Message-
From: Olivier Ziller [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 04, 2007 2:34 AM
To:
is it possible to have both a jsf portlet and a jsf servlet
running in the same time in a web application? and sharing
the same facescontext?
I doubt it. The faces context is based upon the incoming request
information, etc. But the two incoming paths (portlet and servlet) take
different
time?
hello,
Nebinger, David a écrit :
is it possible to have both a jsf portlet and a jsf
servlet
running in the same time in a web application? and
sharing
the same
. But I also tried to add:
commons-logging-adapters-1.1.jar
commons-logging-1.1-ide.zip
commons-logging-api-1.1.jar
commons-logging-1.1.jar
The error is still the same. Do you have any other ideas?
Thanks,
James
On 3/9/07, Nebinger, David [EMAIL PROTECTED] wrote:
Facelets has some external
John, would you mind elaborating on this a little bit? Specifically, what
resources needed to be extracted from the extension filter and served up
manually? We're starting some facelets/jsf development using Liferay, and this
info would be a big help...
-Original Message-
From: Jörn
Facelets has some external jar requirements that you're missing; in this case
it is the apache commons-logging jar. Add this jar to your war file (or
appropriate place in tomcat if sharing) and you'll be off and running, at least
until you hit the next dependency jar that you might have
Sorry, Joern, I must have caught John's name when posting my question rather
than yours. My humblest apologies...
Anyway, yes this does help. I don't know about Websphere portal, but Liferay
has some hooks in place where I can add the necessary css and script references
(although I have to
Hmm, CSS supports cascading styles, so technically if you set up your styles
such that nested TD/TR elements conform to the specific classes, there should
be no conflicts between the calendar tables and the non-calendar ones.
winmail.dat
Instead of returning null, could you return something like nonHighlightRow?
This would probably work for both cases (jsp facelets) with the only overhead
of defining another class...
From: Jeff Bischoff [mailto:[EMAIL PROTECTED]
Sent: Thu 2/22/2007 11:30 AM
There is no standard method for this on the browser or the server, and
generally trying to code for this is bad practice anyways.
Imagine, for a second, that you did some sort of magic to get the dimensions
and depth, which you then pass to the server which returns the page with the
necessary
The liferay wiki/forum (I don't remember which) speaks generically about
extending Liferay components and, in the particulars, spoke of extending the
user object specifically.
However, you won't find a great deal of info explaining how to do this.
Basically (at least for the 4.1 series, I
Initially I read the 'dont use tomahawk' comment and couldn't believe that
someone would ever be so obstinant. Then I saw who the poster was and it all
made sense.
I've met Gavin and I think he is a really brilliant guy; Hibernate, and now
Seam, are some really cool projects/products that are
Wow, Scott, I'm impressed that you could actually infer some kind of meaningful
question and, better yet, some descriptive facts from Eduardo's attempt at
being cute. He must not understand that we, as geeks, can typically understand
sarcasm but have little ability to understand light and
Tobago generates some whitespace characters before the DOCTYPE
defintionen in the HTML output.
Sounds like a perfect place to use a servlet filter...
This problem leads to an other followup problem: The onload script
of the body tag is not executed.
Sounds like a bug for Httpunit, not
How do each of these form fields help JSF do what it does?
MyFaces is a
wonderful tool, but I'd like to understand how it does what
it does (on a
high enough level that it might be explained in a couple of
detailed replies
to this post)...because right now it seems a bit too transparent
Dude, you're getting yourself bogged down on things that you
typically
don't need to understand.
I would disagree. This speaks to what I am trying to
accomplish right now
with my datascroller problem. I didn't understand some of
the details of
datascroller when I implemented it,
Which is a good class to set the first breakpoint in, from
which I could
follow out the rest of the processing? Would it be in the
generated servlet,
in some kind of interceptor class (if using JBoss), the Faces
Servlet, or
where?
I guess if you want to know it all you'd have to start
[ a little re-ordered ]
Can any one please explain me the real advantages of JSF,I
don't Know about
it fully even though I'm using it.
You're using it but don't understand it's advantages?
I feel that the JSF is in
limited Use when COmpared to the other frameworks , the
interest is
Um, you could stuff your params in hidden fields and submit (either using
commandLink or commandButton). Otherwise you'll have to hack some javascript
to append the inputText as a param on the end of the commandLink url via the
onClick() event.
-Original Message-
From: Dave
No, create an index.jsf as an empty file in the root of the war. Then set the
welcome file entry to index.jsf in the web.xml file.
If you're using '.faces' as your standard extension, replace the '.jsf' above
with '.faces'.
Basically the welcome file entry will tell the servlet that if no
Hi David,
(May I refer You like this)
Sure. I've been called worse ;-)
Is it not the case that the JSF coexisting with JSP
pages is a little Comprehensive..
IMHO it is horrid.
Ok,as I don't know fully about JSF, do we have the POssibility to put
Complete end to the Client
Well, since no one jumped in with an opinion, I'll share our methodology...
i am currently programming a jsf application and i found out
that i have
2 different things in every package
.beans (jsf beans)
.action(jsf action)
Now how should i structure my packages.
First, we're not
Putting the actions and data in the same class or not is
really just a
matter of preference.
Ah ok, i also saw designs where a bean had an action method.
I didnt liked this.I think actions should go into an own
class (Action
class)
This is one point i dont want to change.
This goes
We're going along this same route but for different reasons... We don't want
to force the user to follow a specific format; if we can convert it, we'll take
it in any format.
That way our users spend less time learning required formats to use the page
and more time getting things done.
the
problem.
-Sol
On Nov 27, 2006, at 1:38 PM, Nebinger, David wrote:
We started getting a lot more of these after the jdk 1.5.0.09 update, although
I never spent time investigating the update docs to see if there had been any
significant change to GC or other memory handling things.
Anyways
, buf.length) ) != -1 )
{
outStream.write(buf, 0, sizeRead);
}
inStream.close();
outStream.close();
}
catch(IOException ex){ ex.printStackTrace();}
}
}
Best Regards,
Pallavi
_
From: Nebinger
If you're specifying IDs for components directly, you have to remember to
include the portlet namespace in the generated ids.
-Original Message-
From: Pfau, Oliver [mailto:[EMAIL PROTECTED]
Sent: Friday, November 24, 2006 3:38 AM
To: MyFaces Discussion
Subject: Duplicate ids of some
Sure; just override the specific method(s) where you catch for an exception and
implement alternative logic when you catch one.
There's also the handleExceptionFromLifecycle() method which will get called
when an exception is thrown; other than the Throwable that needs intercepting,
though, I
Have you tried using disabled=#{flowScope.delete.booleanValue}?
-Original Message-
From: Toppac [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 28, 2006 4:45 PM
To: users@myfaces.apache.org
Subject: RE: Disabled with value binding expression
I wanted to add onto this to see
binding expression
Doesn't that break the java bean conventions?
Nebinger, David wrote:
Have you tried using disabled=#{flowScope.delete.booleanValue}?
-Original Message-
From: Toppac [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 28, 2006 4:45 PM
To: users
We started getting a lot more of these after the jdk 1.5.0.09 update, although
I never spent time investigating the update docs to see if there had been any
significant change to GC or other memory handling things.
Anyways, the other poster with the recommendation for either jrockit or
To expand on what Stephan provided, in order to share application scope between
your JSF application and a non-JSF servlet, they need to be deployed in the
same war file and entered in the same web.xml.
Combining them in this way will provide the connectivity you'd need based upon
Stephan's
Um, rowClasses works also with the JSF h:dataTable and does not require the
use of t:dataTable...
-Original Message-
From: Sudhakar Mekathotti [mailto:[EMAIL PROTECTED]
Sent: Monday, November 20, 2006 4:27 PM
To: MyFaces Discussion
Subject: Re: t:datatable alternating row colors?
Mick,
: Eric Chentao Hu [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 21, 2006 3:45 PM
To: users@myfaces.apache.org
Subject: Struts-action-mapping-like capability in JSF
I meant url -- beacking bean method mapping. I don't want to go the
result page directly.
On 11/21/06, Nebinger, David [EMAIL
Have you tried using an Integer object in the backing bean rather than an int?
I'd guess that a null Integer would be blank, where an int defaults to 0 upon
creation...
-Original Message-
From: Jon Steelman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 21, 2006 5:19 PM
To:
a Java method. In JSF, can something similar to this be done easily?
Basically if you request a page some-page.jsf, a backing bean method will get
called, and then a particular view will be forwarded to depending on the result
returned from that backing bean method.
Nebinger, David [EMAIL
What would be the best way of doing this in JSF?
Um, have you actually read anything about JSF?
I mean anyone who RTFM would know that the navigation rules provide the
string-result page mapping as struts provides...
Originally it sounded as though the user had been in the app, and after walking
away from their browser the session eventually expired.
Now the user walks back and clicks the button - that's the part that's throwing
them.
The submit on the form expects to go back to a live session, but since
I'd guess that by returning null (assuming this is an action method), faces
will redirect back to the form (although you don't indicate what happens when
you do submit).
Just a guess, but I'd try returning an actual string which, in the nav map will
need to be coded with a redirect / in order
We're using myfaces+facelets+tomahawk on liferay successfully, but haven't had
need of tobago integration yet.
is there any way to run tobago + myfaces + facelets on liferay portal?
Maybe do you have any simple application?
Last time we got this it was suggested to:
* include a subject line
* include a short msg body
* ensure message is plain text, not html or rtf
We used 'subscribe' for both subject and body and the mailer let it through.
-Original Message-
From: Aneesha Govil [mailto:[EMAIL PROTECTED]
I have datatable with rows adding dynamically with
inputText. I cannot get
the value entering into input text field.
What do you mean you cannot get the value? You're trying to access it
directly, or the backing bean is not being updated, or what?
Sorry if I was unclear. Backing bean is not getting updated.
The UIData object that is backing the h:dataTable would be updated upon
submit, therefore the list itself (with each individual wkQtDetail instance)
should also be updated.
Have you checked to see if you're getting any validation
I am not using the UIData object. I
am not whether I have written write code for that.
Here is my backing bean method corrsponding
the above jsp:
Well, first you are using a UIData object (it is inferred via the use of the
h:dataTable tag).
The list that you return (being constructed on
Sure. I will
In the action method I am getting the getWorkQtDetail() list
and when I
iterate it , I can see that the qtOfEffort is not getting the
new value.
public void actionMethod {
for(Iterator itr=getWorkQtDetail() .iterator();itr.hasnext();)
WorkQuoteDetail key =
table border=1
tr
thToday's Date/th
thCurrent Weather/th
/tr
tr
td align=right11/15/2006/td
tdSunny/td
/tr
/table
[snip]
h:panelGrid columns=2
h:panelGrid style=text-align: center columns=2
Your logic is off; you get the parent but aren't testing it's class before
casting. You probably want the code to be:
public void saveStudents(ActionEvent event){
SelectableApplicant selectableApplicant = null;
java.util.ArrayList selectableApplicants=null;
Without info re: falling flat, my guess is you're not accommodating the
real ID of the control on the HTML side. Your _javascript_ will probably
work just fine if you a) pass the real id (effectively the client id on the JSF
side), or b) iterate through the controls looking for a control
Stick
to following the implementation details in the acegi doco, there's really
nothing in there that is JSF related.
The
JSF stuff, especially the stuff mentioned on the link provided below, is stictly
for the embedded tags within your jsp/facelets pages; they have nothing to do
with the
Well, first of all your syntax appears to be JSP-based and not JSF. Second of
all (and someone please correct me if I am wrong), but displaytag is displaytag
supported by jsf?
-Original Message-
From: PSI [mailto:[EMAIL PROTECTED]
Sent: Monday, November 06, 2006 12:39 PM
To:
, and following code works except for
title ?? some
how
it does not bind values to title.
Nebinger, David wrote:
Well, first of all your syntax appears to be JSP-based
and not JSF.
Second of all (and someone please correct me if I am wrong), but
displaytag is displaytag supported
Apart from this, migrating from jsp to facelets isn`t that extensive.
In the simplest way you only have to replace the doc-headers and do
little config work.
I think this is really untrue; facelets only work if you have the appropriate
tag libraries that support facelets.
If you're using
For Spring users, Acegi is the defacto standard. Again in
JSF view, it's
possible to use the acegi-jsf components.
Seems like many of you are using this Acegi. Good to know that Spring
has a nice security framework available for it. Of course, we
can't use
this technology
I am not aware of the Portlet bridge.I am not using any.
Do I have to use some portlet-bridge.jar to make Tomahawk
compatible with Websphere Portlets.
No, portlet bridge is not required. It's a tool that would allow for an
existing JSF app to be integrated into a portal w/o
Hi David,
Thanks I thought I had to import another jar.
It is a problem with Tomahawk1.1.3 being compatible with
Websphere Portal5.1.
Liferay is new for me.
I am using JSR-168 portlets built using WPS5.1 and RAD.
Hav you worked on this?
I
I,
too, am using acegi security, and echo the previous poster's
opinion.
Rather
than using the phase listener approach which seems to be view-based (whether you
can see a view or not), with Acegi I can control which tags are present as part
of a page enabling components for those users
The
easiest method would be simply to expose a getter method on your backing bean
that returns the hibernate pojo.
Through EL, you can then do #{backingbean.pojo.field} w/o having to
replicate your various getters/setters or include the pojo as a direct backing
bean.
-Original
Title: FW: [SPAM (Non-existent user)] - RE: [O/T] JSF Best Practices for Authentication/Authorization - Local recipient does not exist
Am I the only one getting these bounce messages, or what?
-Original Message-
From: System Administrator
Sent: Friday, November 03, 2006 4:17 PM
Nebinger, David wrote:
The easiest method would be simply to expose a getter
method on your backing bean that returns the hibernate pojo.
Through EL, you can then do #{backingbean.pojo.field} w/o
having to replicate your various getters/setters or include
the pojo as a direct
Okay, I'm using rowClasses with two different styles for the rows. However,
I'd like to implement a highlighting scheme based upon onmouseover and
onmouseout.
onmouseover is easy enough, simple javascript to set the class to the class
that handles the highlight.
The onmouseout is the tough
Julian Ray wrote:
Why not simply store the current background color in the
onmouseover event
and replace it in the onmouseout event?
Why not just use the :hover CSS selector? Even IE7 supports it.
I guess I left a couple of details out that may have some effect on the
appropriate
I
don't know (or haven't seen) documentation of this sort, and am doing
jsf/portlet development myself.
Basically, though, I can tell you that it is pretty simple and involves
the following:
1. In
web.xml you'll need to add the servlet and mapping definitions that your portal
provider
I have the same in the JSP-based Trinidad demo. In my applications, I
use facelets :)
Is there a need to say more ? ;)
Ya know, IMHO it is foolish to release any tag library for JSF without
including the appropriate Facelets support, whether the project is a
home-brewed tag library or an
Ya know, IMHO it is foolish to release any tag library for
JSF without including the appropriate Facelets support,
whether the project is a home-brewed tag library or an
official Apache tag library release.
that was a hidden bash, dude :)
we have the tomahawk lib in our wiki...
Okay, here's the thing. I'm using myfaces 1.1.4 within a portlet running under
liferay. And it's actually working. I'm really pleased (kudos the the
developers).
But I want to be able to adjust the portlet window state. This is accomplished
by setting the p_p_state parm to either normal,
89 matches
Mail list logo