Hi,
I would like to have a column called index, which shows the number of lines in
the table.
Furthermore the dynamic table seems to work, but only
the last entry is displayed in all lines in the table.
xhtml:
t:dataTable id=results
border=1
Any ideas to this? Pleeease...
Hi NG!
Im using a trinidad tr:table inside my seam-application.
The Problem:
It seams, that the table model is only generated once, at the first
attempt to render the table and doesnt change afterwards. Is this
correct? I suppose it could be desired behavior,
Hi Tobias, I know nothing about Seam, but I had a table refresh problem
in the past, when my user was allowed to change colum layout/composition
on the fly.
In order to refresh the table children, I had to call:
((UIXTable)table).resetStampState();
where - of course - I got the
Hi,
I would like to link directly out of the drop down menu, but I don't get
it running.
Here each entry in the drop down menu has a different link.
My drop down menu will be created in a dynamic way.
Here's my code:
XHTML:
h:selectOneMenu value=#{statistics.choosedValue}
f:selectItems
Hi all,
we having problems with ajax requests when mod_compress is enabeld in
the apache.
Looks like XMLHttpRequest sends Accept-Encoding: gzip,compress but
did not decode
the compressed response.
The problem exists in IE and FF.
Is this a known problem? Maybe we did anything wrong in
Tobias, a row list (or array) is transformed internally to a
SortableModel, but I guess it then keeps your list forever.
As an alternative, you can provide either a DataModel (JSF standard) or
a CollectionModel (Trindad specific) class instance, see related
javadoc. The former handles rows by
Sorry original message was without subject field.
-Original Message-
From: Evgeniy Karimov [EMAIL PROTECTED]
To: users@myfaces.apache.org
Date: Thu, 06 Sep 2007 12:57:07 +0400
Subject:
Hi, I have a small question:
I have a .faces page, that collects some data from user. All state
Hi!
I have troubles setting up a demo application with tomahawk and myfaces.
When I want to show a simple page like this:
?xml version=1.0 encoding=UTF-8?
tr:document
xmlns:ui=http://java.sun.com/jsf/facelets;
xmlns:h=http://java.sun.com/jsf/html;
xmlns:f=http://java.sun.com/jsf/core;
Hi,
you have to understand that when you use the redirect/ rule, the
client browser will issue a request to specified url, without
transmitting anything other than cookies. No request parameter. As such,
only way to keep datas is to store them in session. There is, however, a
usefull tool in
It is not clear, weather you use redirect navigation rule. If you don't use
redirect/ for navigation rule, you can refer bean2 directly from bean1:
FacesContext fctx = FacesContext.getCurrentContext()
Bean2 b2 = fctx.getApplication().getVariableResolver().resolveVariable( fctx,
bean2 );
yesterday, Thomas asked me the same.
I updated my trunk version of Trinidad.
run the build (mvn clean install) and deployed the demo.
Everything is fine.
(it renders 1_0_3 instead of 1_0_2 on trunk, since we updated the
trinidad-version.txt file, once we release the bits of Trinidad 1.0.2)
I need to support IE 5.5 in my web app.
However I've read in Trinidad's release notes that only IE 6.0 is supported.
Is this a hard criteria?
If so I probably won't be able to use Trinidad at all :-(
Can anybody comment?
Hi!
It looks like client-side validation is intentionally skipped if form is
submitted via tr:form defaultCommand. Can anyone explain why such a decision
was taken by devs or just why it's useful for client-side to be skipped in this
case?
Thanks in advance.
P.S. At least tr:form behaves like
Hi,
I'm not sure if I get you right, but it seems to me you would like to
achieve this:
t:dataTable id=results
border=1
value=#{proteins.list}
var=line
rowIndexVar=idx
renderedIfEmpty=false
not really sure on this.
Question: have you tried something in this directions?
What are the errors you are seeing ?
thx,
Matthias
On 9/5/07, Darren McEntee [EMAIL PROTECTED] wrote:
Hi all,
I've a quick question regarding the tr:treeTable component.
What I want too do is have the
It is not clear, weather you use redirect navigation rule.
I'm asking what to use:). And as I got it from your message, I shouldn't. So
could you please provide me with small code sample of programmatic redirection
from page1 to page2 then? Like in actionListener of page1 I want to redirect to
Hi Pawel,
ya you got me right, thx your solution works fine. But I have another
problem:
If I create for example 4 new datasets and add them to the ArrayList, I
get in my result Table 4 lines that's correct,
but only the name of the last added dataset is shown (so 4 times).
Do you know why?
Hi, we're not getting any errors, we would just like to have a treeTable
expanded by default on page load.
Maybe we will have to implement it on a customised treeTable model of
our own?
Thanks,
Darren.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
No, I didn't meant that you should redirect programmatically. In both cases you
use faces-config NavigationRule to handle transition. 'redirect' is merely
parameter on how to handle that transition. If redirect/ is present, then
navigation will be handled traditional way: server asks browser to
Just noticed: if form is initially submitted by 'enter' and then by
commandButton, then most of inline error messages are doubled. First ones are
printed by server-side validation (client-side skipped by defaultCommand),
second - by client-side.
Hi!
It looks like client-side validation is
No, I didn't meant that you should redirect programmatically. In both cases
you use faces-config NavigationRule to handle transition. 'redirect' is
merely parameter on how to handle that transition. If redirect/ is present,
then navigation will be handled traditional way: server asks
Hi,
I tried to upload a File but I always got a NullPointerException,
because the uploadFile.getBytes(), uploadFile.getContentType() and
uploadFile.getName()) are null.
I don't understand why?!
Cheers!
private UploadedFile uploadFile;
public void upload(ActionEvent evt) throws
I get this exception in my tomcat log now and then..:
SEVERE: Servlet.service() for servlet default threw exception
java.lang.IllegalStateException
at
org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:421)
at
Hi Wolfgang,
make sure that the surrounding h:form has enctype=multipart/form-data.
cheers,
christoph
On 9/6/07, Wolfgang [EMAIL PROTECTED] wrote:
Hi,
I tried to upload a File but I always got a NullPointerException,
because the uploadFile.getBytes(), uploadFile.getContentType() and
I'm involved with a legacy web app project using Java 5, Struts 1.x,
JSF 1.1, Hibernate 2, Spring 1.x, some EJB2s and more. Orchestra has
caught our eye as way to do some refactoring to take full advantage
of Hibernate's lazy-loading across a series of requests. (A
conversation, of course.)
The problem is the way you create your list, which is:
public Proteins() {
Dataset set = new Dataset();
set.setName(Dataset 1);
set.setInput(This is Dataset 1);
list.add(set);
set.setName(Dataset 2);
set.setInput(This is
I tried removing the from-action from the navigation-rule but no luck as
yet. It doesnot navigate.
My detailItem doesnot disclose neither does it navigate.
I guess I am going wrong somewhere with the NavigationHandler. after the
handleNavigation call, is there something that I need to trigger
Hi Pawel,
thank's for help!
Now everything is working fine now!
I'm sorry for not having seen this stupid error for myself ;)
Cheers!
The problem is the way you create your list, which is:
public Proteins() {
Dataset set = new Dataset();
set.setName(Dataset
Hi!
The Orchestra installation page has a tantalizing sentence: The
installation guide will show you how to setup a JPA entity manager
..., later a chapter explaining how to access Hibernate directly will
be added.
Yep, we use it here with a completely custom way of how to get in touch
to the
Hi Christoph,
I have embedded my xhtml code with the form tag, but now I got the
following error
which I always get when I use the form tag:
You should never nest HTML-forms. This leads to unpredictable behaviour in all
major browsers. You can use multiple forms on a page, but they may not
Hi sorry forgot to put the new html code inside.
Here it is:
h:form id=upload enctype=multipart/form-data
t:inputFileUpload
id=myUploadedFile
storage=file
Hi!
Problem with the missing javaScript link is solved! - Yeah!
Stupid, but:
In the file trinidad-config.xml
the output-mode was set to:
output-modeprintable/output-mode
And this means no script - tags are rendered in the head of the html!
Therefor no actions are performed...
Thanx for the
Hi again,
I set the param. Validate to false
The form tag works now, but I got nearly the same error message:
javax.faces.el.EvaluationException: /home.xhtml @80,79
actionListener=#{home.upload}: java.lang.NullPointerException
Cheers
Hi Wolfgang,
make sure that the surrounding h:form
Hi Wolfgang,
this means that you already have a h:form-tag in your page, surrounding the
one with id upload.
You can either remove this form and switch the enctype on the outer one.
Or if the form is included in a template, and you don't want to have the
enctype multipart/form-data for all your
Hello everybody,
Does anybody have something like a blank war which uses facelets and
trinidad 1.2.1? If yes, could I have it?
I got the trinidad blank war, added some lines to the web.xml to use
facelets, but there are some errors when the page is accessed. I left
the web.xml at home, so I
Hi Tobago,
I was surprized by the difference there is between the jsp and facelets
approch: even though I use the same tags, the result is sometimes totally
different:
I had a working popup in a jsp with the following code:
tc:box label=#{i18n.adresseListBox}
f:facet
I forgot to say :
The action action=#{personCtrl.newAdressCmd} is not executed on click too.
Regards,
Zied
2007/9/6, Zied Hamdi [EMAIL PROTECTED]:
Hi Tobago,
I was surprized by the difference there is between the jsp and facelets
approch: even though I use the same tags, the result is
Hi Zied,
org.apache.myfaces.custom.ajax.api.AjaxDecodePhaseListener
this class should not involved in tobago requests. Did you mix
tomahawk with tobago?
Is this PhaseListener is registered by the tomahawk.jar or by your
faces-config.xml?
Regards,
Volker
2007/9/6, Zied Hamdi [EMAIL
Hi Volker,
You're right, I have the intention to mix tobago with tomahawk (but I still
don't do it in my pages now).
I didn't register this listener in my faces-config, but I have the jar in my
classpath.
I'm joining my web.xml and faces-config.xml, I think they contain the
minimum required by
We are trying to show a scrollable panel component which works fine on IE7
but fails on Firefox 2.0.x.
tr:panelGroupLayout layout=vertical styleClass=scrollBox
... here are several panelBox components with nested components like
(inputText etc.) ...
/tr:panelGroupLayout
The style definition is
Hi Christoph,
I tried to get the upload running since 2hours...
Now I used this example:
http://www.irian.at/myfaces/fileupload.jsf
I copied it one by one, but I had to remove some stuff, because I got
some errors.
But the stuff I removed was just outputtext...
I got the same nullpointer
Hi,
is it possible to link directly out of the h:SelectOneMenu to for e.g. a
internet site?
Cheers!
Wolfgang
We have just figured out that this behaviour is related to the fact that the
panelGroupLayout is embraced by a panelPage element! It works in Firefox
when removing everything but the panelGroupLayout.
Martin Ahrer wrote:
We are trying to show a scrollable panel component which works fine on
Stephen,
Is there any specific reason you are sticking to IE 5 ? It is fairly ancient
and Microsoft provides IE downloads for free.
I am by no means an expert on this,so please take my comment with a pinch of
salt.I am also assuming you are talking about IE 5 on windows and not IE 5
on the
Hi Wolfgang,
did you add extensionsFilter to your web.xml?(see below)
mfg
christoph
filter configuration:
filter
filter-nameextensionsFilter/filter-name
filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter
/filter-class
init-param
sorry, i forgot,
you have to change the filter-mapping to *.xhtml instead of *.jsf
On 9/6/07, Christoph Ebner [EMAIL PROTECTED] wrote:
Hi Wolfgang,
did you add extensionsFilter to your web.xml?(see below)
mfg
christoph
filter configuration:
filter
Vadim,
This is definately an oversight. We'll need to add some calls to the c/s
validation into this method. Looking at the javascript I don't think this
even happens for the older ALERT based validation, let alone the newer
INLINE version.
Can you raise an JIRA bug and we'll get this fixed
Hi,
the AjaxDecodePhaseListener is registered in the
tomahawk-sandbox-1.1.7-SNAPSHOT.jar.
So tobago is not compatible to this extension.
please remove the tomahawk-sandbox-1.1.7-SNAPSHOT.jar from your project for
now.
I have just created an jira entry:
Hi Simon, I'm an idiot. The problem was in my equals method. I did a
wrong Class cast.
Sorry once more.
Tnx.
Luka
Simon Lessard wrote:
Stripped part the mail because it was getting quite hard to read.
On 9/5/07, *Luka Surija* [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
Yes it
Re,
I had already included the filter-mapping, but with *.jsf.
I changed it to *.xhtml but then I got an error: can't find ... *.xhtml
Cheers
sorry, i forgot,
you have to change the filter-mapping to *.xhtml instead of *.jsf
On 9/6/07, *Christoph Ebner* [EMAIL PROTECTED]
mailto:[EMAIL
IE 5.5 isn't supported by Microsoft, I don't see the need for any
MyFaces projects to support it either. It is a large security risk to
be running anything less than IE 6 (although IMO, running any IE is a
security risk)
On 9/6/07, Stephen Friedrich [EMAIL PROTECTED] wrote:
I need to support IE
More information here:
http://support.microsoft.com/gp/lifean20
On 9/6/07, Andrew Robinson [EMAIL PROTECTED] wrote:
IE 5.5 isn't supported by Microsoft, I don't see the need for any
MyFaces projects to support it either. It is a large security risk to
be running anything less than IE 6
Hi!
Just in case there are already people using MyFaces Orchestra in their
day work (which will grow I hope), your are invited to add your company
to the wiki page [1].
Thanks!
Ciao,
Mario
[1] http://wiki.apache.org/myfaces/Companies_Using_Orchestra
Hi,
is it possible to have a link to new site behind the commandButton?
Cheers Wolfgang
The Apache MyFaces Trinidad team is pleased to announce the release of
Apache MyFaces Trinidad Core 1.2.2.
Apache MyFaces Trinidad 1.2.x is a JavaServer(tm) Faces 1.2 component library.
Trinidad Core 1.2.2 is available in both binary and source distributions:
*
env :
WebLogic 8.1 SP4
myfaces 1.5
tomahawk 1.1.6
Hello,
I am using the tabbedPane component,each pane being a separate JSF page. I
have no forms inside these JSF pages,
just a big form wrapping the tabbedPane( I tried without a form, since
I have been having problems with my components that are inside facets
being re-created on every faces request, despite staying on the same
view root. I just sent an email trying to figure this out last night
wondering if it was a bug with Trinidad + Facelets, but now that I
have look even more
FYI, I started a new thread entitled Major bug in facelets 1.1.11
with mark and sweep code? that is on the facelets user list and CC'd
on this list as a result of my findings from this thread.
-Andrew
On 9/5/07, Adam Winer [EMAIL PROTECTED] wrote:
On 9/5/07, Andrew Robinson [EMAIL PROTECTED]
Sorry, just found that it has been fixed in CVS:
https://facelets.dev.java.net/source/browse/facelets/src/java/com/sun/facelets/tag/jsf/ComponentSupport.java?annotate=1.7
On 9/6/07, Andrew Robinson [EMAIL PROTECTED] wrote:
I have been having problems with my components that are inside facets
ICEfaces can definitely be used with either Seam or Spring.
In both cases, existing Seam and Spring applications using
the standard JSF components can be converted to Ajax applications
simply by adding the ICEfaces libraries.
Mixing ICEfaces with Ajax4JSF components is not yet supported.
In the
You can expand all nodes in the treeTable by specifying the disclosedRowKeys
on the component. If the disclosedRowKeys contains all the nodes in the
treeTable, the entire tree will be displayed as expanded.
Regards,
Venkata
On 9/6/07, Darren McEntee [EMAIL PROTECTED] wrote:
Hi, we're not
One suggestion( a wild guess maybe!) that I can make is that you can put
inlineStyle=position:relative on all the panelBox components inside the
panelGroupLayout.
If you have firebug installed for FF 2.0 you can go to the content and
change the styles on the panelBox and panelGroupLayout dom
Hello Zied,
ok, i will check the sources. but i'm not sure this happend until
tomorrow.
We should go back to the user list :-)
Regards
Bernd
Zied Hamdi wrote:
Hello Bernd,
Yes I did in all implied files. I resent you the modified files so
you can
see the result directly.
Hi,
i have a jsp which uploads a file to a server. I uses t:inputFileUpload to
select a file. Here is the simle code:
%@ taglib uri=http://java.sun.com/jsf/core; prefix=f%
%@ taglib uri=http://java.sun.com/jsf/html; prefix=h%
%@ taglib uri=http://myfaces.apache.org/tomahawk; prefix=t %
Hi all, in all cases where a readonly tr:table is involved - and needed
data are to be loaded from the business layer - then this occurs twice.
Once during restore view (decode) and again during rendering (encode).
The first time is fairly useless for a readonly component, but the
overall
I also had problems integrating ajax4jsf with trinidad in cases where I
was doing a partial update within a form.
Luka Surija [EMAIL PROTECTED] wrote on 08/30/2007 08:06:32 AM:
Last time I've tried to use a4j with trinidad there was problem with
tr:inputText and number validators and
I have read where Ajax4jsf is dedicated to being aligned with the ajax
implementation specified in JSF 2.0. I would assume that Dynafaces from
SUN is similar. What about Trinidad's PPR mechanism? I had also read
that ICEFaces approach was very different which could be problematic.
I am
Trinidad was always following the current JSF specs.
There are two version of Trinidad 1.0.x = for JSF 1.1.x
Trinidad 1.2.x = for JSF 1.2.x
Once there is an alignment on a unique PPR solution, I am pretty sure
Trinidad will follow that.
-Matthias
On 9/6/07, [EMAIL PROTECTED] [EMAIL PROTECTED]
Hello Mike,
JSF 2.0 is in very early stage of development, so it's hard to say. However,
Trinidad was mentioned as a reference for skinning and PPR in the JSR focus
areas, so I think it would look odd if we weren't going to align with it.
However, there's always backward compatibility so there's
Hi, Renzo.
I don't think any component would do such a thing internally. After all,
component just evaluate EL and can't figure out, when it is undesired.
As a solution I can recommend you to use
FacesContext.getCurrentInstance().getRenderResponse() to detect, when
getter is called during
Thanks guys, I could not agree more.
The problem is this:
In the company I just started to work for I need twenty minutes by foot from
the main entrance to my work place (there are several shuttles, but somehow
I hate waiting more than a little walk).
The web application style guide has not
I feel your pain...
On 9/6/07, Stephen Friedrich [EMAIL PROTECTED] wrote:
Thanks guys, I could not agree more.
The problem is this:
In the company I just started to work for I need twenty minutes by foot
from
the main entrance to my work place (there are several shuttles, but
somehow
I
On Thu, 2007-09-06 at 16:19 +0200, Wolfgang wrote:
Hi,
is it possible to have a link to new site behind the commandButton?
Not directly. A commandButton causes a form submit, and that is always
going to go back to the original server.
Why would you want this? Linking to a new site is not
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
Seriously, if the link Andrew
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
Short answer: if you can submit patches that improveIE 5 compatibility
without harming other browsers,
we'd be happy to incorporate them. I doubt you'll
find any committers interested in tackling this problem
on their own, and like the page says, Trinidad has
not been tested against IE 5, so
Hi.
I was making up yet another page when noticed that when i open it in the
browser about 10-15 warning got printed to console:
07.09.2007 0:18:07
org.apache.myfaces.trinidadinternal.io.DebugHtmlResponseWriter
_errorWithComment
WARNING: Illegal HTML: cannot put a tr element in a td element.
I
IE 5.5 is a large security risk though. It isn't a matter of telling
users they have to upgrade because you want them to, but because your
application would not be secure if running on IE 5.5. If you want a
good argument, you could argue that the company is liable for the
information security
Nebinger, David wrote:
I think you folks are being way to hard on this guy.
Thus far 'folks' can only refer to me, since Andrew's comments related
to Trinidad compatibility. I'm fine with your assessment though! :) It's
really just a 'hot button' of mine.
'you need to upgrade', but they
Hi All
I have 2 requests. The first one takes a long time to execute and the
second one is very fast. The response for second request is generated
before the response for first request. I am expecting to see both the
responses one after the other. Response 2 followed by Response 1. But
I can only
Thanks, I filed TRINIDAD-695
http://issues.apache.org/jira/browse/TRINIDAD-695 for that issue.
Strange, though, _submitOnEnter calls submitForm with doValidate set to
0. It looks more like walkaround for some problem rather that oversight.
But I'm not someone to make such a conclusions.
Best
Hi Florian,
Sorry I did not move the ticket to patch available. Now that I have done
this hopefully it will get picked up and committed to the trunk. I also
wanted to let you know that added a new patch with a few more modifications
for supporting Safari browser. Here is the updated JIRA ticket:
Any suggestions on the best way to get the sort icon to dock on the
right with the text left-aligned?
using float:right on the link is hard to get working cross-browser as
floating right tends to mess up line wrapping especially in IE.
I got it somewhat working with putting a span around the
Thanks for all the answers.
The big company is not my employer, but I am working for a quite small
consultant company. We do mostly SAP business with this client, but somehow
managed to win the bid on this java EE project.
It's a fixed price project that was negotiated based on my estimation.
I
If you can supply the source page snippet and the rendered output we should
be able to figure out if there's a problem to report.
Thx,
Danny
On 9/6/07, Vadim Dmitriev [EMAIL PROTECTED] wrote:
Hi.
I was making up yet another page when noticed that when i open it in the
browser about 10-15
Fair enough :)
Seems that each component in tr:subform that is placed into
tr:panelFormLayout produces two html warnings.
Here is jsf page:
f:view
tr:form
tr:panelFormLayout
tr:subform
tr:inputText /
/tr:subform
/tr:panelFormLayout
In theory, the table could detect that it contains no EditableValueHolders,
no ShowDetails, and no ActionSource components, and decline to run decode(),
etc. - but that'd break any third-party components that wanted to go into
the table, had events, and weren't one of these known types.
-- Adam
Indeed - you can't put the subform there. It also seems extremely odd that
you'd want each input component to be in its own subform.
-- Adam
On 9/6/07, Matt Cooper [EMAIL PROTECTED] wrote:
If possible, I would suggest swapping the order of the tr:panelFormLayout
and tr:subform tags. That
It's not each component in every subform. I stripped page code of
unimportant layout for that warning source can be easily pinpointed.
Originally there are 5-10 inputs per subform. It's rather complex form
with about 100 input components. They all must be lined up and some
blocks must have partial
Not sure where you are getting the table in the header from in 1.0.3
trinidad, the table is rendering this output:
th class=af_column_sortable-header-text nowrap=
onclick=return _tableSort('mainForm',1,'_id46','name','ascending');
scope=col
span class=sortHeaderName/span
a onclick=return
Hello Venkata,
thanks for your work.
I will download a snapshot of it shortly to test against and report any issues
to you.
With kind regards
Florian Reiser
Original-Nachricht
Datum: Thu, 6 Sep 2007 15:00:25 -0600
Von: venkata guddanti [EMAIL PROTECTED]
An: MyFaces
The Display:none is not necessary on the table. In our case we were
displaying the sort indicator when the user mouses over the header and
hiding it on mouseout. Also note that it should be float:left in RTL.
Regards,
Venkata
On 9/6/07, venkata guddanti [EMAIL PROTECTED] wrote:
I think you do
I think you do not need a span around the text of the outputText. You can
add a div in the header with float:right that contains the sort image. Here
is dom snapshot of out table header:
.xq6 {DISPLAY: inline-block;BACKGROUND-IMAGE:
url(/faces-trunk/afr/sort_des_n.png);WIDTH: 14px;
If possible, I would suggest swapping the order of the tr:panelFormLayout
and tr:subform tags. That should correct the invalid HTML problems since I
suspect the inputText components are expecting to be direct children of the
panelFormLayout.
Thank you,
Matt
On 9/6/07, Vadim Dmitriev [EMAIL
94 matches
Mail list logo