On 2/27/06, Ming Hu [EMAIL PROTECTED] wrote:
Redirect works but it's not what I wanted. The functionality I'd like to have is to put security constraints on the action values of JSF/Myfaces command links or buttons.Container managed security is *only* invoked on an initial request, not on a
That's due to the interaction of JSP and JSF.
On the first pass (=first access of a page, on subsequent ones this is
not a problem), the component-tree get's created while going through
the JSP-page. Now if a component doesn't render it's children, the
first children (=your label) doesn't know
On 2/28/06, Martin Marinschek [EMAIL PROTECTED] wrote:
That's due to the interaction of JSP and JSF.On the first pass (=first access of a page, on subsequent ones this isnot a problem), the component-tree get's created while going throughthe JSP-page. Now if a component doesn't render it's
Hi,
You have tried to use redirect inside navigation case like this?
navigation-case
from-outcomenav_page_domain_op_list/from-outcome
to-view-id/page_domain_op_list/to-view-id
redirect/
/navigation-case
in this case you loose validation messages.
other solution is to write your own
Hi,
I'm trying to get the MyFaces dataTable to sort my columns. Getting
to show up my data was no problem so I think I'm on the right way.
I'm not sure what the two attributes sortColumn and sortAscending
mean.
I know that a String and a boolean is expected but that's about it.
Maybe
someone
Hi all,
I got a demand that need to show comlexdata in a datatable like the following table.
Could anyone direct me how to implement it using datatable?
Thanks
Hi Mike,
Whereabouts is the s:subform tag located?
Is it in Sandbox? I can only see s:form
Can u define enctype=multipart/form-data in s:subform ?
Thanks
Jeff
-Original Message-
From: Martin Marinschek [mailto:[EMAIL PROTECTED]
Sent: 27 February 2006 19:05
To: MyFaces Discussion
As far as i know dataTable dont support colspan and
rowspan. If you need such thing, you have to make your own renderer for
dataTable(extend HtmlTableRenderer) to support colspan and rowspan.
- Original Message -
From:
wang
kai
To: users@myfaces.apache.org
Sent:
Thanks for your reply.
2006/2/28, Amit Jain [EMAIL PROTECTED]:
As far as i know dataTable dont support colspan and rowspan. If you need such thing, you have to make your own renderer for dataTable(extend HtmlTableRenderer) to support colspan and rowspan.
- Original Message -
From:
The table component of ADF faces supports column groups (by nesting
af:column), and, maybe you also need the column attribute separateRows
that forces childs to be rendered as separate cells. Have a look at:
http://tinyurl.com/p98e8
HTH
Frank Felix
From: wang
HiI am trying to modify the myfaces collapsiblepanel example such that an actionlistener is fired when the headerLink is created.The code is
h:form id=form
t:dataTable id=test_dt
var=person value=
#{thirdCollapsiblePanelBean.persons} preserveDataModel=
false
h:column
t:collapsiblePanel id=test4
Hi all,
sorry if this question is slightly off-topic ... but maybe
you have a quick answer.
How to concat strings in EL?
My goalis towrite something like
h:outputText value="#{ bundle[prefix+key] }"
/
where prefix and key are string parameters.Neither
plus sign nor spaces work.
TIA
Mike Kienenberger wrote:
On 2/27/06, Elam Daly [EMAIL PROTECTED] wrote:
Oh, and how do I determine if a session has expired? I don't see any
enlightening methods in the HttpSession class.
Your mistake here is thinking that the servlet api was intended to be useful :)
You have to do
I'm
sure it would work like this:
h:outputText value="#{ bundle[prefix] }"
/ h:outputText value="#{ bundle[key] }"
/
But I don't know, if you would like to do it like that
(because it's not a really nice
solution)
Regards,
Andy
-Ursprüngliche Nachricht-Von: Frank Felix Debatin
This would have a different effect. I organized the
ressources with keys such as "myPage.title". So I would like to
have
#{bundle[ page.name + '.title' ] } !-- doesn't work
--
to be resolved to
#{bundle[ 'myPage.title' ] }
Thanks
Frank Felix
From: [EMAIL PROTECTED]
[mailto:[EMAIL
See the tomahawk examples, there's a good example of t:dataTable
sortColumn, and sortAscending should bind to getters/setters for a
String and boolean.
Malone, Daniel wrote:
Hi,
I'm trying to get the MyFaces dataTable to sort my columns. Getting
to show up my data was no problem so I think
Hi,
the lack of this feature is really annoying to me too --
and this issue was discussed here serveral times without real success.
For me the following JSTL-approach works (but also no nice solution) :
c:set var=key value=${page.name}'.title' scope=request/
h:outputText
Oh
sorry, I thought prefix and key are just two entries in your
bundle...
I just
should have read the mail more exactly ;)
Regards,
Andy
-Ursprüngliche Nachricht-Von: Frank Felix Debatin
[mailto:[EMAIL PROTECTED]Gesendet: Dienstag, 28. Februar 2006
14:24An: 'MyFaces
God, is this ugly!!!
However, thanks for the info.
@Andy, thanks no problem
-Original Message-
From: R. Müller [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 28, 2006 2:54 PM
To: MyFaces Discussion
Subject: Re: String concatenation in EL
Hi,
the lack of this feature is really
Hi,
I m not sure this is the right place to post this message but
i try anyway. Iâv got the following problem when mixing a JSF
Web Application based on Myfaces into a pluto container :
java.lang.IllegalArgumentException: only absolute URLs or full
path URIs are
allowed
at
Adam,
Thanks for getting around answering so many of our questions. I gave up
on the use of processScope in the end (and switched back to session
scopes), but I've kept access to all my properties abstracted so I can
easily switch back to processScopes if/when I can get one of the
suggested
I'm trying to get the MyFaces dataTable to sort my columns. Getting
to show up my data was no problem so I think I'm on the right way.
I think you have to provide your own sort method, which sorts the data list
according to the sortAscending and sortColumn attribute values before the
data
Which xml are you referring to?
I should have been more specific.
I was referring to serving xhtml pages.
Hopefully that is what you were referring to as well.
Shawn
-Original Message-
From: Adam Winer [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 28, 2006 12:44 AM
To: MyFaces
1: I've solved the problem by just using one form tag.
2: FacesException: expr was due to a h:outputLabel with no
for='problemCause' section.
3: Thanks for the help Mike.
:-)
-Original Message-
From: Jeffrey Porter [mailto:[EMAIL PROTECTED]
Sent: 28 February 2006 08:44
To:
The simplest possible PhaseListener I can imagine is one
that just does:
processScope.put(a, b);
... that is, chucks some nonsense data on, and makes sure that
the system always generates a new token for every request. That'd
be enough to bypass the issue you're encountering.
-- Adam
On
Try this maybe. Not sure on this one.
c:set var="myPageTitle"
scope="request"
c:out value="${page.name}"/c:out
value=".title"/
/c:set
then later do
h:outputText value="#{bundle[myPageTitle]}"/
Shawn
From: Frank Felix
Debatin
Ok, I'll give that a go, thanks.
Jim
-Original Message-
From: Adam Winer [mailto:[EMAIL PROTECTED]
Sent: 28 February 2006 15:27
To: MyFaces Discussion
Subject: Re: A bunch of belated answers about ADF
The simplest possible PhaseListener I can imagine is one that just does:
It looks like your Pluto configuration is messed up. According to the stack
trace, the request never hits MyFacesGenericPortlet.
Stan Silvert
JBoss, Inc.
[EMAIL PROTECTED]
callto://stansilvert
-Original Message-
From: Alexandre Combe [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February
Yep, the XHTML is what I'm referring to.
What takes so much time in a JSP engine is actually compiling
the generated .java code into a .class file. So the benefit
of pre-compiling is an artifact of the fact that you're bothering
to generate a .java file in the first place. Facelets doesn't
have
Is there any chance that facelets supports JSP Scriptlets?
I know it supports jstl and el but sometimes I still like to
use scriptlets even though I know it should be converted to a tag.
I just don't want to take the time to convert
everything to tag libraries.
Mostly for function
under what conditions might 'getAscending' be called ? From the
definitions of Boolean.valueOf(String) it is only true when the
sortAscending attr value is 'true', yet I cant see in any of the
examples a 'getAscending' method ?
redirect/ inside of a navigation-case works fine. And I like it for the following reasons:1. I can use container managed authentication, hence container managed authorization on the EJB/middle tier.
2. My browser's address bar displays the corresponding link when a command link/button is clicked,
Hi!
I am using Jenia4Faces http://www.jenia.org/jsp/home.jsf;jsessionid=6E9178050A036EC207C849D3EFC905DC
for displaying a popup calendar. However, while having a listbox (selectOneMenu)
the listbox appears on the top of the calendar, how can I choose that the popup
should be rendered
Sophie,
As far as the select/list box is
concerned, unless something has changed recently in browsers, the zOrder by
default is to be on
top of everything else. The last time I
looked, it was impossible to change the z-Order, even with CSS styles or
_javascript_ The only
way we got
Another thing to look at might be to have a managed bean retrieve the value
from the message bundle in its getter. That makes the JSP simpler, at the
expense of writing some extra Java code.
- Brendan
-Original Message-
From: Frank Felix Debatin [mailto:[EMAIL PROTECTED]
Sent:
The other alternative, although not as nice perhaps, is to use
dataTable with one column and then build div tags with your own
width/height settings for each row. The CSS will be more complex, but
you have complete control, and since you are using dataTable, the data
will post back correctly
I've run into issues with Spring and the OpenSessionInViewFilter, or
anything in general that needs to be displayed and is in a request scope.
That is one of the most frustrating things for me coming from a PHP/Perl
programming background.
Ming Hu wrote:
redirect/ inside of a navigation-case
EL functions should work as well. Using facelets you could write a
concat function (if there isn't already one provided by JSTL). I
haven't tried it in a map syntax, but it should theoretically work:
t:outputText value=#{messages[fn:concat(page.name, '.title')]}/
On 2/28/06, CONNER, BRENDAN
I am depading the same issue. Servlet filters allow you to apply them
on REQUEST and FORWARD, but I don't think you can change the settings
for the built-in authentication that I know of (I'm not even sure it
is required by the spec to be a filter for security). You could
therefore write your own
In a previous post Craig stated that the rendering of children, is one of the
many things that
works *much* better in a JSF 1.2 world.
I see on the sun site that the Proposed Final Draft 2 for JSP 2.1 was posted on
17 Feb, 2006, and
the Proposed Final Draft 2 for JSF 2.1 was posted on 15 Feb,
Thanks for answering. So
you mean that it will be not possible without lot of codes
And whats about my
conversion, why the date I obtain is not correct?
Sophie
De: Lewie Gass
[mailto:[EMAIL PROTECTED]
Envoy: mardi 28
fvrier 2006 17:32
: MyFaces
Discussion; [EMAIL
Hi,
finally I managed to migrate our ADF Faces app to use facelets. Ton of work,
but it went smoothly and really pays off, making the page writing much more
clean and powerful.
What a wonderful combination!!!
Here is a small migration guide for those who intend to do the same (note:
I'm a
On 2/27/06, Elam Daly [EMAIL PROTECTED] wrote:
how do I determine if a session has expired?
Mike Kienenberger wrote:
You have to do something like this:
boolean expired = false;
try
{
session.getAttribute(anything):
Sophie,
Yeah, I am not sure why your getting a bad
date, would have to see more of the code and stuff,
but it could also originate with the
Jenia4Faces component, you may try to contact the designer
if you have not already thought of that
Ponder
From:
[EMAIL PROTECTED]
Hi Craig,
It would be such a useful thing if you could
get this into Creator.
What would it take for me to get access to
the nightly builds?
Thanks
rjs
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 28, 2006
2:41 AM
To: MyFaces
Discussion
Sorry I cannot help now, I am relocating to the UK. Sending the mails
to the list directly is more useful :)
Best regards,
Bruno
-- Forwarded message --
From: Bende Bryan [EMAIL PROTECTED]
Date: Feb 28, 2006 6:06 PM
Subject: MYFaces BUG-669
To: [EMAIL PROTECTED]
I've been
Frank Felix Debatin wrote:
Hi,
finally I managed to migrate our ADF Faces app to use facelets. Ton of work,
but it went smoothly and really pays off, making the page writing much more
clean and powerful.
What a wonderful combination!!!
Glad you liked it!
Here is a small migration guide
I actually just finished doing the same thing, so I sympathize w/you,
Frank. :-) Totally worth it, though- the ADF components are
fantastic, and Facelets is great to work with.
Couple other tips I thought I'd chime in with, in the hopes of sparing
others some time/web hunting:
1)
Or you could use t:dataList. You're responsible for generating the
tags, but the component will handle the iteration for you.
On 2/28/06, Andrew Robinson [EMAIL PROTECTED] wrote:
The other alternative, although not as nice perhaps, is to use
dataTable with one column and then build div tags
Hi Andrew,
thanks for the note. I think this is by far the best
solution.
Here is what worked for me (the JSP 2.5 and Facelets docs
are not very good on this). I added
META-INF/bamboo.taglib.xml with the following contents:
?xml version=1.0?
!DOCTYPE facelet-taglib PUBLIC
-//Sun
On 2/28/06, Rogers Reilly [EMAIL PROTECTED] wrote:
3) a tangent, but related- if you find yourself trying to get Tomahawk
ADF components working together, you may find this example helpful. The
Tomahawk EqualsValidator won't work if you're comparing the component to
an ADF component, and
Hi Adam,
Did you mean this the opposite way? My suggestion is to
replace af:outputText escape=false with
af:outputFormatted
where user-supplied markup is present, so it gets filtered
down to a legit set without worrying about cross-site
scripting.
Agreed - depends on what effect you
I've created https://issues.apache.org/jira/browse/TOMAHAWK-164 to
track this issue. I may take a look at EqualsValidator after I'm done
if it isn't too difficult.
On 2/28/06, Mike Kienenberger [EMAIL PROTECTED] wrote:
On 2/28/06, Rogers Reilly [EMAIL PROTECTED] wrote:
3) a tangent, but
Stan
Thanks for the reply. I took that section out, but that wasn't it.
I'm wondering if perhaps I'm missing some jar file(s) and something is
just silently failing in the background. Is there a list of jars I need
to include with my portlet for MyFaces to work correctly?
Thanks
Todd
Stan
On 2/28/06, Mike Duffy [EMAIL PROTECTED] wrote:
In a previous post Craig stated that the rendering of children, is one of the many things thatworks *much* better in a JSF 1.2 world.I see on the sun site that the Proposed Final Draft 2 for JSP 2.1
was posted on 17 Feb, 2006, andthe Proposed Final
On 2/28/06, Santiago, Ray [EMAIL PROTECTED] wrote:
Hi Craig,
It would be such a useful thing if you could
get this into Creator.
What would it take for me to get access to
the nightly builds?I should have reviewed what I was typing more carefully before sending :-). I
You don't need any more than you would for a normal JSF app. The
MyFaces web page says you need portlet.jar, but you should be getting
that from your portal vendor.
Another suggestion: Do a view source on the web page and see if the
form action looks funny.
Stan Silvert
JBoss, Inc.
[EMAIL
Hi
Thank you for reading my post.
I want to know what additional features SEAM from jboss ,Clay , Shale
from Apache and Facelets
bring to jsf.
I will be happy if some one give me a simple answer.
Thank you
SEAM gives you database integration (EJB3?), Shale provides a variety
of things (dialogs, lifecycle hooks, testing framework, commons
validator to name a few), Clay and Facelets provide you with
alternatives to using jsp both as an end-user as well as a component
developer. Facelets also
I'm working on a servlet based on the code in NonFacesRequestServlet.
I read the example in
http://wiki.apache.org/myfaces/InvokingJsfPagesWithStandardUrls. At
the point where it says put your initialization stuff here it shows
using either a VariableResolver (VR) or a ValueBinding (VB) to
On 2/28/06, Rogers Reilly [EMAIL PROTECTED] wrote:
I actually just finished doing the same thing, so I sympathize w/you,
Frank. :-) Totally worth it, though- the ADF components are
fantastic, and Facelets is great to work with.
Couple other tips I thought I'd chime in with, in the
Shawn,
This should be directed to the Facelets list; but I'll answer
it here: no, Facelets doesn't support JSP scriptlets, and
is extremely unlikely to ever do so.
-- Adam
On 2/28/06, Garner, Shawn [EMAIL PROTECTED] wrote:
Is there any chance that facelets supports JSP Scriptlets?
I
But someone did implement bashlets for it.
I don't remember the details, but it was a scripting language for simple tasks.
On 2/28/06, Adam Winer [EMAIL PROTECTED] wrote:
Shawn,
This should be directed to the Facelets list; but I'll answer
it here: no, Facelets doesn't support JSP
What is the best practice if I need a drop down list -
h:selectOneListbox - change
to go to the server, as if there was an immediate=true on a command
button.
Depending on what is selected in the h:selectOneListbox, the page will be
displayed differently.
I was using a kludge with onclick=
Hi - We're using the inputSuggestAjax sandbox control (version 1.1.1), and came across an interesting issue. It works with FireFox (both HTTP and HTTPS), and also works in IE for HTTP (which is what the sandbox example uses). However, our site uses HTTPS and this control is not working properly in
I'm pleased to announce a new article at JSF Central entitled Dynamic JSF
Development by Peter Kasson. Here's an excerpt:
JSF is a very powerful, component-based technology for developing web
applications. Not surprisingly, several software vendors have updated their
toolkits to support JSF,
The kludge you speak of is the most popular way to do this.
One warning. Let's say you have two controls, selectOneMenu and inputText.
Your requirement is that the inputText is to be rendered *only* when a certain
item (let's call it 'ITEM X') in the selectOneMenu is selected. You accomplish
Best way to do this now is with Cherokee (or whatever it's called).
af:selectOneListbox takes an autoSubmit attribute, which does
exactly what you want.
I was thinking you could also set partialSubmit=true and do your
refresh with PPR, which would be slick, but I'm not seeing that
attribute
dataList is deprecated. The Tomahawk developers recommend that you do
not use it. It doesn't not correctly process the update components
phase
On 2/28/06, Mike Kienenberger [EMAIL PROTECTED] wrote:
Or you could use t:dataList. You're responsible for generating the
tags, but the component will
Seam:
Extended entity management persistence (EJB3 or hibernate)
Conversation context (multiple windows supported with server side
state. Basically a long running transaction)
Annotation demarcation of maneged beans
Annotate injection and outjection of context variables
Interception of action
On 2/28/06, Andrew Robinson [EMAIL PROTECTED] wrote:
Seam:Extended entity management persistence (EJB3 or hibernate)Conversation context (multiple windows supported with server sidestate. Basically a long running transaction)Annotation demarcation of maneged beans
Annotate injection and outjection
Hi,
I'm trying to get the sort action to act immediately, while using the
dataScroller and WorkingWithLargeTables
(http://wiki.apache.org/myfaces/WorkingWithLargeTables).
It behaves (immediately) as expected when the bean is in the request
scope and preserveSort = false, but then upon pagination
Lately I've just turned to the client side because of things like this. For
example, to get around the aforementioned warning, one might always keep
@rendered set to true for the inputText element, but set it's style to
display:none . Then, use js to programmitcally change this and avoid the
73 matches
Mail list logo