DataScroller - Rendering/Pagination problem when rendered attribute is set to a conditional EL expression

2007-05-28 Thread 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 shows 2 pages. But you can't

Re: DataScroller - Rendering/Pagination problem when rendered attribute is set to a conditional EL expression

2007-05-28 Thread Torsten Krah
+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

Re: inputSuggestAjax - no backing-bean method called

2007-05-04 Thread Torsten Krah
? 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

inputSuggestAjax - no backing-bean method called

2007-05-03 Thread 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 - although a request is made (firebug), but is pending forever.

Re: inputSuggestAjax - no backing-bean method called

2007-05-03 Thread Torsten Krah
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

Navigation Rules - Model based (dynamic) navigation support possible?

2007-04-16 Thread Torsten Krah
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

SecurityContext - Interface / Wiki difference

2007-04-12 Thread Torsten Krah
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']}

panelNavigation2 - Horizontal nested lists possible?

2007-04-02 Thread Torsten Krah
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

Re: Best Practice - Converting raw property values of Beans

2006-12-18 Thread Torsten Krah
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

Re: commandLink - action not invoked when actionListener is a child of it, which gets called - however the action is ignored

2006-11-13 Thread Torsten Krah
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

Re: commandLink - action not invoked when actionListener is a child of it, which gets called - however the action is ignored

2006-11-13 Thread Torsten Krah
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

commandLink - action not invoked when actionListener is a child of it, which gets called - however the action is ignored

2006-11-12 Thread Torsten Krah
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

Re: commandLink - action not invoked when actionListener is a child of it, which gets called - however the action is ignored

2006-11-12 Thread Torsten Krah
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

Re: commandLink - action not invoked when actionListener is a child of it, which gets called - however the action is ignored

2006-11-12 Thread Torsten Krah
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

Re: Using rowIndexVar in datatable for setting rowId fails

2006-11-01 Thread Torsten Krah
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

Session Timeout Filter - works partially, but something still goes wrong

2006-10-13 Thread 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 there. If i login and than

Re: Session Timeout Filter - works partially, but something still goes wrong

2006-10-13 Thread Torsten Krah
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

EL expression question - how to get them evaluated?

2006-10-11 Thread Torsten Krah
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,

Re: EL expression question - how to get them evaluated?

2006-10-11 Thread Torsten Krah
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

Technically possible to merge a servlet/jsp environment with JSF

2006-10-09 Thread Torsten Krah
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

Re: t:buffer doesn't work

2006-08-10 Thread Torsten Krah
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

Re: Fwd: Selecting Row on sortable Datatable

2006-08-08 Thread Torsten Krah
). 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

Re: SelectOneRow problem: only called every second time

2006-08-08 Thread Torsten Krah
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

Re: Selecting Row on sortable Datatable

2006-08-07 Thread Torsten Krah
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

Re: h:graphicImage ID problem

2006-08-07 Thread Torsten Krah
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

Re: Selecting Row on sortable Datatable

2006-08-07 Thread Torsten Krah
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

Re: Fwd: Selecting Row on sortable Datatable

2006-08-07 Thread Torsten Krah
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

Re: commandNavigation2 only accepts value bindings in attribute value

2006-08-04 Thread Torsten Krah
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:

Re: Selecting Row on sortable Datatable

2006-08-04 Thread Torsten Krah
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

List - SortableDataModel, how can i retrieve the list back from the model?

2006-08-04 Thread 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? Tried to cast getWrappedData from the model back to the list but this does result in an exception. kind regards

Re: List - SortableDataModel, how can i retrieve the list back from the model?

2006-08-04 Thread Torsten Krah
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

[sandbox] subform + focus and subform breaks unique id's

2006-08-03 Thread Torsten Krah
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

inputAjaxTest - wheel is spinning and spinning

2006-08-03 Thread Torsten Krah
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

Re: inputAjaxTest - wheel is spinning and spinning

2006-08-03 Thread Torsten Krah
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

Re: Getting page's html as AJAX response from inputAjaxText

2006-08-03 Thread Torsten Krah
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

(t|h):message - clear it from java code

2006-08-03 Thread Torsten Krah
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

jsValueChangeListener - field does not get updated in realtime, only after focus

2006-08-02 Thread Torsten Krah
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

forceId - t:inputText, bug or not?

2006-08-02 Thread Torsten Krah
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

Re: jsValueChangeListener - field does not get updated in realtime, only after focus

2006-08-02 Thread Torsten Krah
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

Re: forceId - t:inputText, bug or not?

2006-08-02 Thread 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

Re: tomahawk DataScroller - getUIData.setFirst(0) problem

2006-07-27 Thread 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

Re: tomahawk DataScroller - getUIData.setFirst(0) problem

2006-07-27 Thread Torsten Krah
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

tomahawk DataScroller - getUIData.setFirst(0) problem

2006-07-25 Thread Torsten Krah
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

Re: [jira] Resolved: (MYFACES-1365) h:selectOneMenu - Phase processing broken for the first selectOneMenu when using 2 of them.

2006-07-24 Thread Torsten Krah
-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

Re: dataTable - first value change event doesnt update the model values, should be selectOneMenu

2006-07-14 Thread Torsten Krah
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

dataTable - first value change event doesnt update the model values

2006-07-13 Thread Torsten Krah
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

Re: dataTable - first value change event doesnt update the model values, should be selectOneMenu

2006-07-13 Thread Torsten Krah
% /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

dataScroller Renderer - not all components are redisplayed correct

2006-07-12 Thread Torsten Krah
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

Master Detail example - country.id ?

2006-07-07 Thread Torsten Krah
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.

Re: Master Detail example - country.id ?

2006-07-07 Thread Torsten Krah
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

Re: component for input type=button?

2006-07-06 Thread Torsten Krah
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

Re: Some Specifics RE: component for input type=button?

2006-07-06 Thread Torsten Krah
. 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

RE: components and valuechange events - forgotten update of othercomponents watching the same backing bean attribute - Updates lost onbacking bean when the last rendered component isn't used

2006-07-06 Thread Torsten Krah
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

RE: AbstractUIBean class - where to find?

2006-07-06 Thread Torsten Krah
(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

Re: NoSuchMethodError getBooleanValue() with Tomahawk 1.1.5

2006-07-05 Thread Torsten Krah
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

forceId and t:data_Table

2006-07-05 Thread Torsten Krah
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

components and valuechange events - forgotten update of other components watching the same backing bean attribute - Updates lost on backing bean when the last rendered component isn't used

2006-07-05 Thread Torsten Krah
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

RE: components and valuechange events - forgotten update of othercomponents watching the same backing bean attribute - Updates lost onbacking bean when the last rendered component isn't used

2006-07-05 Thread Torsten Krah
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

Re: forceId and t:data_Table

2006-07-05 Thread Torsten Krah
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

Re: forceId and t:data_Table

2006-07-05 Thread Torsten Krah
} 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

Re: Tomahawk dataTable Problem - replacing standard dataTable with tomahawks one shows nothing

2006-06-28 Thread Torsten Krah
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

Re: java.io.UTFDataFormatException: Invalid byte 2 of 3-byte UTF-8 sequence

2006-06-28 Thread Torsten Krah
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:

Re: Tomahawk dataTable Problem - replacing standard dataTable with tomahawks one shows nothing

2006-06-28 Thread Torsten Krah
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

Re: Tomahawk dataTable Problem - replacing standard dataTable with tomahawks one shows nothing

2006-06-28 Thread Torsten Krah
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? --

SortableModel and t:dataTable - change sorting algorithm for a specified column

2006-06-28 Thread Torsten Krah
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.

Re: SortableModel and t:dataTable - change sorting algorithm for a specified column

2006-06-28 Thread Torsten Krah
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

Tomahawk dataTable Problem - replacing standard dataTable with tomahawks one shows nothing

2006-06-27 Thread Torsten Krah
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,