I want to render the paginator only, if the actual datasize is greater
than the actual row size.
Setting
rendered=[EMAIL PROTECTED] gt @managed-bean-name.rows}
does reflect that and works, but if i got a list size of 2 and changing
the rows to 1 - paginator shows 2 pages.
But you can't
+0200 schrieb Torsten Krah:
I want to render the paginator only, if the actual datasize is greater
than the actual row size.
Setting
rendered=[EMAIL PROTECTED] gt @managed-bean-name.rows}
does reflect that and works, but if i got a list size of 2 and changing
the rows to 1 - paginator
? Shale validator doesn't want a
compile
time dependency with tomahawk so we would have to look at using the
reflection API.
What would we report on?
Torsten
Gary
E-Mail-Nachricht-Anlage
Weitergeleitete Nachricht
Von: Torsten Krah [EMAIL PROTECTED
I've taken the sandbox example and use it 1:1 - but with a different
view handler, shouldn't matter in theory.
But i get no suggests, i can click the arrow or enter something, the
method on my bean is never called, nothing happens - although a request
is made (firebug), but is pending forever.
Donnerstag, den 03.05.2007, 17:58 +0200 schrieb Torsten Krah:
I've taken the sandbox example and use it 1:1 - but with a different
view handler, shouldn't matter in theory.
But i get no suggests, i can click the arrow or enter something, the
method on my bean is never called, nothing happens
By default jsf is using a outcome based navigation model.
But consider a content managment system, where the user can model
navigation decisions by drawing connections from one object to another.
Data is modeled in some known way to map them to an url, navigation
between this model can be
http://wiki.apache.org/myfaces/SecurityContext
Reading the above, their should be definitions for
#{securityContext.ifAllGranted['rolename1,rolename2']} : Returns true if
user is in all of the roles given in the roles list, vice versa
* #{securityContext.ifAnyGranted['rolename1,rolename2']}
I am trying to manage a horizontal nested list menu with tomahawks
panelnavigation2 component.
E.g. something like this:
http://css.maxdesign.com.au/listamatic2/horizontal05.htm
Is this possible? The ul tags does not render their id's although
forceId is set ( a bug i guess ) - how to get the
But what about f:selectItems?
Using a SelectOneMenu, the converter changes the option value - but
what i want is to change the value chown to the user, that one between
the begin and end of the option Tag.
t:selectOneMenu forceId=true id=languages
value=[EMAIL PROTECTED]
f:selectItems
you get the item
out of the table and delete it?
cheers,
Gerald
On 11/12/06, Torsten Krah [EMAIL PROTECTED] wrote:
Ok - got the action error.
Cleaned and compiled my ant project dozen times - but it seams the class
does not get recompiled or packaged right at the deployment path
it or go to another
page.
In your case you would work after the following response with old
data, which can cause side effects.
Does it work now?
cheers,
Gerald
On 11/13/06, Torsten Krah [EMAIL PROTECTED] wrote:
I get the bean from the rowData, use its unique id to find
Using a commandLink with an action and an action listener does not
invoke the action, neither the page is redisplayed correct.
h:commandLink action=#{a.fire}
f:actionListener type=my.class
/h:commandLink
My action listener is called and does its job.
But the action from the commandLink
myfaces 1.1.4
E-Mail-Nachricht-Anlage
Weitergeleitete Nachricht
Von: Torsten Krah [EMAIL PROTECTED]
An: MyFaces Discussion' users@myfaces.apache.org
Betreff: commandLink - action not invoked when actionListener is a
child of it, which gets called - however the action
to delete something in the backend,
and redisplaying the page and forcing the view to be refreshed to show
correct results?
Torsten
Am Sonntag, den 12.11.2006, 19:37 +0100 schrieb Torsten Krah:
No a rule is there which should be invoked.
However, in usecases where i want to refresh the page, action
I cannot confirm this, the id output works fine and there no missing nor
an additional row in the output.
I am using myfaces 1.1.4 and tomahawks 1.1.4-snapshot, its working like
expected.
Torsten
Am Dienstag, den 31.10.2006, 21:30 -0800 schrieb John Sherwood:
I'm getting the same problem except
To redirect to the login page and prevent null pointer exception from
the view phase i did a filter to the web.xml like mentioned there:
http://mail-archives.apache.org/mod_mbox/myfaces-users/200507.mbox/raw/%
[EMAIL PROTECTED]
It works fine - but some issue is still there.
If i login and than
Torsten Krah:
To redirect to the login page and prevent null pointer exception from
the view phase i did a filter to the web.xml like mentioned there:
http://mail-archives.apache.org/mod_mbox/myfaces-users/200507.mbox/raw/%
[EMAIL PROTECTED]
It works fine - but some issue is still
Using jsp for the views, i want to prefix some path, for example this:
link rel=stylesheet href=h:outputText
value=#{facesContext.externalContext.requestContextPath}//html/style/mystyle.css
/
The bad about that is, that i have to take a component, where an el
expression should be enough,
http://mail-archives.apache.org/mod_mbox/myfaces-users/200511.mbox/%
[EMAIL PROTECTED]
Maybe a solution - but wrapping a simple thing in a bean - much
overhead :-|
Am Mittwoch, den 11.10.2006, 14:16 +0200 schrieb Torsten Krah:
Using jsp for the views, i want to prefix some path, for example
Is it technically possible to merge an existing application which use
Servlet+JSP and JSF together.
A complete Rework is not possible now, but in steps it would work.
So the question is, can i use JSF and old Servlets+JSP together ( means,
one old workflow will be upgraded to new JSF technology
Have you tried to to it like in the example from t:buffer?
t:buffer into=#{mytable} /
kind regards
Am Donnerstag, den 10.08.2006, 00:10 -0700 schrieb vasiliy.kiryanov:
Good morning.
I have next working code:
t:dataTable
). Actually, this second set of data should
be sufficient to recreate the sorted order of the data.
On 8/7/06, Torsten Krah [EMAIL PROTECTED] wrote:
*light on*
Yeah thats right.
But still it doesnt work like preserveDataModel - the list is still
sorted like initial state if i go
Read your post and tried the component.
It works for me - everytime i click on the radion button a event is
fired - everytime.
I am using complete 1.1.4 snapshot + facelets 1.1.11 and it works - i
can't force the behaviour you described.
kind regards
Am Sonntag, den 06.08.2006, 20:38 +0200
never use preserveDataModel=true. Instead I
perform a t:saveState on my backing list.
On 8/4/06, Torsten Krah [EMAIL PROTECTED] wrote:
Got the same issue.
Using preserveDataModel=false works.
Am Montag, den 10.07.2006, 10:11 -0700 schrieb Catalin Kormos:
You're right, it's
Use the tomahawk one - all tomahawk components can have the attribute
forceId, which does what you want.
http://myfaces.apache.org/tomahawk/forceId.html
kind regards
Am Montag, den 07.08.2006, 15:28 +0300 schrieb Trica Laurentiu:
Hi anyone
I'm a newbie in here.
My problemis that
Kienenberger:
On 8/7/06, Torsten Krah [EMAIL PROTECTED] wrote:
Hm - thats not possible i guess. Using a SortableDataModel ( for
example ) which is not serializable by default, you have to make a
completly custom solution, extending and so on, to make it work.
So this parameter to preserve the model
Montag, den 07.08.2006, 10:56 -0400 schrieb Mike Kienenberger:
On 8/7/06, Torsten Krah [EMAIL PROTECTED] wrote:
Hm ok thats an idea and its working, however you have to be very careful
for chained models.
SortableDataModel - ListDataModel - ListTyp.
Calling wrappedData on the first one
Suffered the same issue - according to the docs, its allowed to have
static values, so its a bug.
thx for your post - i searched for 20 minutes now and thought i am crazy
because i found nothing which is wrong, using dynamic el works.
Searched jira for it and found:
Got the same issue.
Using preserveDataModel=false works.
Am Montag, den 10.07.2006, 10:11 -0700 schrieb Catalin Kormos:
You're right, it's not working, but only if preserveDataModel=true; if
you don't need your model to be preserved between requests, a
temporary workarround, until this is
I got a list of my data and created a SortableDataModel from it.
Is there a way to get the list back from the model - without too much
work?
Tried to cast getWrappedData from the model back to the list but this
does result in an exception.
kind regards
Solved it - have to cast it first to a ListDataModel and than back to
the List ...
Am Freitag, den 04.08.2006, 15:49 +0200 schrieb Torsten Krah:
I got a list of my data and created a SortableDataModel from it.
Is there a way to get the list back from the model - without too much
work
Trying subForm and focus tag i got maybe a bug, maybe its wanted.
Using focus on an element with an id which is in a subForm and the focus
tag is not in the same, an exception is thrown.
On the other side with subForms it is possible to get the same id on
many elements on the page - i thought the
I tried using the example from sandbox, InputAjaxBean + the provided
page with facelets 1.11.1 ( have a look at:
http://www.irian.at/myfaces-sandbox/inputAjax.jsf ).
Their it works - here it wont.
The wheel is spinning and spinning - don't know why, used the examples
from sandbox ( same code, only
Don't bother - server state saving have to be used - hm didn't read that
at the docs for inputAjaxText, maybe it should be mentioned there.
kind regards
Am Donnerstag, den 03.08.2006, 17:07 +0200 schrieb Torsten Krah:
I tried using the example from sandbox, InputAjaxBean + the provided
page
You have to use state saving method server - which is the default, not
client - got the same issue with inputAjaxText.
kind regards
Am Donnerstag, den 03.08.2006, 08:37 -0700 schrieb octoberdan:
Default:
?xml version=1.0 encoding=UTF-8?
web-app version=2.4
Using inputAjaxText and validation the error message is set like that:
context.addMessage(toValidate.getClientId(context),
new FacesMessage(FacesMessage.SEVERITY_ERROR,
error, null));
Now it happens, that i a user submits the page and the
Looking at the examples i tried this:
h:inputText id=text1
t:jsValueChangeListener for=text2 property=value
expressionValue=$srcElem.value.length /
/h:inputText
h:inputText
Question:
If i use forceId on an inputText and on an outputText, i get different
results.
h:form id=form1
t:inputText forceId=true id=input1 value=/
t:outputText forceId=true id=output1 value=output/
/h:form
result is:
id for input gets: form1:input1
id foroutput gets: output1
Should the
be that
difficult to do it by hand. Just enable the onkeypress attribute and
write the length of the value to the destination element by plain js.
Don`t forget to use forceId of the dest element in order to get only
the id without the prefixes.
cheers,
Gerald
On 8/2/06, Torsten Krah
; it works
http://example.irian.at/example-simple-20060802/forceId.jsf
Which version are you using? I can't remember any bugs regarding the forceId.
Another solution would be using Trinidad tr:form/; this isn't a
naming container.
Or JSF 1.2 (prependId)
-Matthias
On 8/2/06, Torsten Krah
though, it should. If
you want the UI data to always use EL, you will have to subclass the
data table and when set first is called, update the value binding
value instead of setting the local integer value.
On 7/25/06, Torsten Krah [EMAIL PROTECTED] wrote:
I want to do some fixes
Question:
In Phase 2 the value is still the old one ( of cause ) - i change the
value in Phase 6 - is that too late?
In which phase i have to set the _first to make sure the dataTable is
using this one?
kind regards
Am Donnerstag, den 27.07.2006, 12:10 +0200 schrieb Torsten Krah:
See
I want to do some fixes on the dataScroller - but i've got a problem.
I am setting the firstRow in getFirstRow - which is the value that
decides which is the first row to be rendered, is it? - to 0 in certain
cases.
According to debug output - getUIData.getFirst() is set to 0 - but the
table
-user list
Well, my guess/speculation is that selectoneMenu must have a valid
selection. Null isn't a valid selection so it's throwing a
validation (or conversion) error.
I don't know why there's no error message being displayed, though.
On 7/21/06, Torsten Krah [EMAIL PROTECTED
caused by your immediate setting.
I'm not really certain how the immediate setting affects
ValueChangeListener (haven't researched it), but I've seen reports by
others that it does.
On 7/13/06, Torsten Krah [EMAIL PROTECTED] wrote:
Its really a mysterium.
Doing some more work on it i get
I am using a dataTable with changable Rows - a selectmenu where you can
choose values.
When the first event gets fired, the phase listener showed:
INFO: BEFORE RESTORE_VIEW(1)
13.07.2006 11:47:58 my.examples.util.PhaseTracker afterPhase
INFO: AFTER RESTORE_VIEW(1)
13.07.2006 11:47:58
%
/body
/html
Add a phase Listener and you will see the mentioned bug which i would
call it for the second example.
Am Donnerstag, den 13.07.2006, 12:08 +0200 schrieb Torsten Krah:
I am using a dataTable with changable Rows - a selectmenu where you can
choose values.
When the first event gets
Hello.
I found some bug and write my own Renderer to fix it:
http://issues.apache.org/jira/browse/TOMAHAWK-538
I solved the problem with the index pages and count variables - they
work fine.
My problem now is - if i switch from 15 - 20, all the variables get
updated right when the page gets
http://www.irian.at/myfaces/masterDetail.jsf
click on a country.
500 error happened istead of the form exspected.
The Country Bean got no id property .
I am wonder, what the workflow there is and where the Id should come
from for the t:updateActionListener to fill the countryForm.id property.
Should be currentCountry instead of country - i figured out few minutes
after writing the mail :)
kind regards
Torsten
PS: Its not fixed in svn - i am using svn examples here and error is
still there, or i've checked out wrong examples ;) - i only used this
link for example purposes.
Am
h:commandButton should do the work.
kind regards
Am Donnerstag, den 06.07.2006, 08:24 -0600 schrieb Michael Heinen:
Hi all,
Is there any component that renders an input of type button?
e.g. input type=button value=hitme onclick=doIt()/
Michael
-- Intel: where Quality
.
html
However, with MyFaces, I set type=button and it worked like a charm, even
though the docs quoted above claim it will not work.
--Rick Hightower
-Original Message-
From: Torsten Krah [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 06, 2006 7:31 AM
To: MyFaces Discussion
http://issues.apache.org/jira/browse/MYFACES-864
This may the same issue or better this maybe a workaround for the issue.
kind regards
Am Mittwoch, den 05.07.2006, 18:20 +0200 schrieb Torsten Krah:
Javascript maybe an option - but i would prefer to find another
solution.
Hidden component
(such as session participation, messages etc.)
which all our managed beans use.
-Original Message-
From: Torsten Krah [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 06, 2006 11:57 AM
To: users@myfaces.apache.org
Subject: AbstractUIBean class - where to find?
Reading:
http
Same here with tomcat 5.5.17.
Looking at the 1.1.5 API, the shared_tomahawk subtree dissapeared, thats
the cause but i have no idea how to solve this.
kind regards
Am Mittwoch, den 05.07.2006, 10:08 +0200 schrieb Axel Karst:
Hi all,
I'm using Myfaces, Tomahawk and Sandbox 1.1.5 Snapshot
Using forceId=true with a extended dataTable still gives me the
generated one - the id is not forced.
t:panelGroup with forceId works.
According to the docs it should work with all t: components, bug or got
anyone forceId working with a t:dataTable?
kind regards
Torsten
-- Press every key to
Hello.
I've got 2 components, watching one backing bean value:
h:selectOneMenu value=#{tableData.country}
onchange=submit()
immediate=true
valueChangeListener=#{tableData.countryChanged}
f:selectItems
Javascript maybe an option - but i would prefer to find another
solution.
Hidden component - i dont get in my mind how to do this - a hidden
component, how should i set the value which comes from the event to it,
problem X is still there - so i dont really know the correct value -
only the event
that?
-Matthias
[1] http://irian.at/myfaces/forceId.jsf
On 7/5/06, Torsten Krah [EMAIL PROTECTED] wrote:
Using forceId=true with a extended dataTable still gives me the
generated one - the id is not forced.
t:panelGroup with forceId works.
According to the docs it should work with all t: components
}
forceId=true forceIdIndex=true/
/h:column
/t:dataTable
Theres no forceId on dataTable - and no id - in that example, but put an
id there and forceId, is what i want and what does not work here - does
it work for you?
kind regards
Torsten Krah schrieb:
Look at the source
Investigated a little bit and tried other models. If i am using a
SortableModel made with an ArrayDataModel with Customers supplied
statically in the Code it works, t:dataTable shows what i want to see.
But if i am going to use a SortableModel from a ResultSetDataModel to
get the Customers from
Is this file in utf-8 format or latin1 - not the filename itself, the
content? Change it to utf-8 and it should be fine.
kind regards
Am Mittwoch, den 28.06.2006, 11:46 +0200 schrieb Chen, Wei:
Hi all,
I have a file which cnotains an html-string which contains German
characters as follow:
http://issues.apache.org/jira/browse/MYFACES-278
Might be the cause - but according to this report, it should have been
fixed in 1.1.3 - i am using latest 1.1.3 snapshot, but it doesnt work,
is it fixed or not in 1.1.3?
kind regards
http://issues.apache.org/jira/browse/TOMAHAWK-89
Thats the bug - so thx for help ;) i found it myself.
kind regards
Torsten
-- 0 and 1. Now what could be so hard about that? --
Using a SortableModel and t:dataTable creates sorting Links by default.
Using Numbers in a column and sort them works, but the used algorithm to
sort is not equal to the natural sorting we use, of cause its a default
implementation it cant work for all, but how to change this for certain
columns.
in a column implement that
interface would allow you to customize the algorithm.
HTH,
Catalin
Torsten Krah [EMAIL PROTECTED] wrote:
Using a SortableModel and t:dataTable creates sorting Links by
default.
Using Numbers in a column and sort them works, but the used
Hello.
I am new to JSF and doing some tutorials, reading docs and so on for
learning.
Reading corejsf Book and doing their examples i want to modifiy it for
learning purposes, so i've taken the chapter 5 tutorial and modified it
to use a resultsetmodel, which worked flawless.
The problem now is,
67 matches
Mail list logo