Re: Dynamic ID with el not working

2008-11-26 Thread Renzo Tomaselli
time the view creation will build the target component again - and Facelets will ask the bean to provide (possibly new) EL parameters. This applies to any case when we deal with so-called "compile-time" parameters (e.i. c:forEach loop is another good example). Hope it helps, -- Renzo To

[Trinidad] cannot use tr:fileDownloadActionListener through PPR

2008-11-18 Thread Renzo Tomaselli
plain html response has been received. Indeed removing "partialSubmit" from the enclosing button/link seems all is needed to get things running fine. Am I right or did I miss anything else ? Is there any workaround to enable PPR downloading ? Thanks, -- Renzo Tomaselli

[Trinidad] about using tr:fileDownloadActionListener from a menu

2008-11-18 Thread Renzo Tomaselli
I can shortcut steps 2-4, avoiding the client roundtrip in step 3 which doesn't provide any UI visible effect. I known I might render an object/iframe - thus doing it manually - but I would like to avoid it if possible. Thanks for any suggestion, -- Renzo Tomaselli

[Trinidad] fetching skin css from jar

2008-09-08 Thread Renzo Tomaselli
Hi, I wonder if that is even possible. I can load almost anything from jars - including url-driven resources as defined in the skin file, by PhaseListener filtering - but I don't know how to deal with the css file itself besides having it in the application web context. Usually the skin file na

[Trinidad] tr:tree issue while forcing a component to be re-created

2008-08-08 Thread Renzo Tomaselli
Hi, while using Trinidad+Facelets I adopted a simple technique to override the limit of any component ID being compile-time bound. At the same time, I overcome similar static behavior in Facelets c:if, c:forEach and alike. The tecnique concerns - for a given component to be refreshed - killing a

[Trinidad] about rendering on Nokia N800 internet tablet

2008-07-31 Thread Renzo Tomaselli
Hi, I'm experimenting Trinidad (and Myfaces) rendering on the Internet tablet Nokia N800 - which is actually equipped with a Gecko-derived browser, hosted by a opensource Linux kernel. Screen resolution is 800x480x16bits - high enough for detailed rendering. Ordinary pages are rendered properly,

Re: [Trinidad] detecting PPR in ActionListener

2008-06-06 Thread Renzo Tomaselli
Hi Marcus, do just this:         RequestContext rc = RequestContext.getCurrentInstance();         if (rc.isPartialRequest(FacesContext.getCurrentInstance())) { ... -- Renzo Döring Markus wrote: Hi list,   anyone know how it’s possible to detect in an ActionListener, if th

Re: [Trinidad] building dropdown menus using popup panels

2008-06-04 Thread Renzo Tomaselli
framework and not the components unfortunately. So you can propose it, but it could be a very long time before anything gets implemented. Heck, look how many UIX style renderers still exist On 6/4/08, Renzo Tomaselli <[EMAIL PROTECTED]> wrote: Hi, till now I used the component t:jscookmen

[Trinidad] building dropdown menus using popup panels

2008-06-04 Thread Renzo Tomaselli
Hi, till now I used the component t:jscookmenu from Tomahawk, since it seems the only drop-down menu available around. However it adds a number of spread files in a page - while not supporting disabled items. In theory Trinidad should have all is needed to build such menus - although a straight

[Trinidad] PPR and t:saveState

2008-05-29 Thread Renzo Tomaselli
Hi, I miss a clear picture about the interaction between t:saveState and Trinidad PPR. Assume I have a Facelets ui:component, containing any ui tag which might be a PPR target. Then there is a t:saveState tag used to save some bean contents across requests. Next sequence works fine, saving selec

[Trinidad] any way to set partialSubmit=true by default

2008-05-29 Thread Renzo Tomaselli
Hi, subject says all. I wonder if there is any trick to have it by default on all buttons/links in case an application does PPR everywhere, by handling what to render on its own through partialTriggers or addPartialTarget().

Re: [Tomahawk][Myfaces] how to prevent scattered js/css file references and loading

2008-05-22 Thread Renzo Tomaselli
Bryan wrote: I don't know about Tomahawk, but you will not be able to wire Trinidad in with jawr. Here is the thread where we discussed this. http://www.mail-archive.com/users@myfaces.apache.org/msg48242.html Renzo Tomaselli wrote: Hi all, I'm trying to concentrate js/css references o

[Tomahawk][Myfaces] how to prevent scattered js/css file references and loading

2008-05-22 Thread Renzo Tomaselli
Hi all, I'm trying to concentrate js/css references on pages through jawr (https://jawr.dev.java.net/), to improve loading performance. I use almost Trinidad components, plus t:inputDate (more appealing than Trinidad) and t:jscookMenu (the only dropdown menu component around) from Tomahawk. Whil

Re: what is SERIALIZE_STATE_IN_SESSION

2008-05-22 Thread Renzo Tomaselli
Hi,     I recently had bad experiences while using t:saveState with client-side state, using Myfaces + Trinidad. In this case Trinidad uses a numeric token in the page, while real state contents are saved on the server without any serialization. Although not explicitely set, I guess that SERIAL

Re: [Facelets][Trinidad] Re: Announcement: Open Source Jawr library available for Facelets users

2008-05-13 Thread Renzo Tomaselli
Scott, I raised this issue first under the assumption that complex applications load Trinidad scripts, Tomahawk scripts, their own scripts, and so on. If every library says "I need my scrips, thus I load them on my own", that application ends up in overall loading scripts multiple times. This af

Re: [Trinidad] about the cost of PPR

2008-04-28 Thread Renzo Tomaselli
usiness layer to get actual contents. Of course we can cache and speculate about the persistent layer not being changed across PPR requersts - but the overall problem remains. -- Renzo Stephen Friedrich wrote: Renzo Tomaselli wrote: less DOM to update - but the business layer is fully invol

[Facelets][Trinidad] Re: Announcement: Open Source Jawr library available for Facelets users

2008-04-24 Thread Renzo Tomaselli
Looks really good. For Trinidad users - a rather obvious question: since Trinidad appears to do more or less the same - is there any chance to wire things so that single files (js and css) are rendered ? I know that Trinidad does merging on the fly - so that we are not allowed to configure Jawr

[Trinidad] about the cost of PPR

2008-04-23 Thread Renzo Tomaselli
Hi, I noticed that a PPR cycle deals with fully-populated JSF phases. In other words - the entire view is restored, rendered and saved - although what is actually sent back to the client depends on current PPR targets, which might be even totally missing. The resource gain of PPR concerns less stu

Re: [Trinidad] how PPR response is applied to DOM

2008-04-11 Thread Renzo Tomaselli
stack has its output included in the response 3) on the client, for every existing element that is found with the same client ID, replace it with the new version and fire the DOM replace notify event. Hope that helps to get you thinking, Andrew On Fri, Apr 11, 2008 at 10:41 AM, Renzo Tomas

Re: [Trinidad] how PPR response is applied to DOM

2008-04-11 Thread Renzo Tomaselli
ow what client IDs to remove and which to add and how to add them (insert before existing, or append to the end). -Andrew On Fri, Apr 11, 2008 at 9:51 AM, Renzo Tomaselli <[EMAIL PROTECTED]> wrote: Andrew, this issue appeared many times on this (and other lists). The only JSTL tag

Re: [Trinidad] how PPR response is applied to DOM

2008-04-11 Thread Renzo Tomaselli
nt side instead of moving things around during the PPR? Are you simply trying to author an add PPR operation instead of a replace one? -Andrew On Fri, Apr 11, 2008 at 9:11 AM, Renzo Tomaselli <[EMAIL PROTECTED]> wrote: Andrew, I agree with the comment that I must move away th

Re: [Trinidad] how PPR response is applied to DOM

2008-04-11 Thread Renzo Tomaselli
er HTML is replaced, so adding attributes is okay too. Say you added a styleClass attribute value on PPR postback, it now renders as: blah 2 The component is always the same on the server, a new one is not created. Did I miss something? -Andrew On Fri, Apr 11, 2008 at 2:58 AM, Renzo Tomasel

Re: [Trinidad] how PPR response is applied to DOM

2008-04-11 Thread Renzo Tomaselli
span with the right id is > enough. PPR need that only to know where to place the refreshed item with > the specified id. > > ~ Simon > > > > On Thu, Apr 10, 2008 at 12:17 PM, Renzo Tomaselli > <[EMAIL PROTECTED]> wrote: > > > Hi, I wonder if any

[Trinidad] how PPR response is applied to DOM

2008-04-10 Thread Renzo Tomaselli
Hi, I wonder if anybody can enlight me about this topic. Assume having to add something new to a page through PPR: this requires updating some enclosing container, since PPR is all about updating (e.g. replacing) DOM parts, not adding new stuff. For example, adding a new panel to a container al

Re: [Trinidad] about using PPR everywhere on a panel-driven page

2008-04-10 Thread Renzo Tomaselli
" if you use it right. There is some ":" mechanism that will even let you traverse naming containers, but Andrew could probably explain that better. :) I'm sure it's documented somewhere. Scott Renzo Tomaselli wrote: Hi all, I'm working on an applicatio

[Trinidad] about using PPR everywhere on a panel-driven page

2008-04-09 Thread Renzo Tomaselli
Hi all, I'm working on an application which mimics the behavior of modern (non-web GUI) wizards. Basically there is a single page containing side-by-side panels (like frames) plus a number of popup panels. Users are allowed to move a panel between those tho sets, as well as to minimize, maximize

Re: [Trinidad] Browser memory consumption

2008-03-27 Thread Renzo Tomaselli
Hi, I wonder about any way to influence browser memory across multiple requests (e.g. no PPR). Till now I was pretty sure that any browser resets *all* at each cycle, thus leaks shouldn't be possible at all without PPR. Or if any appears - that should due to a browser fault - without any chance

Re: [Trinidad] trigger warning while porting from 1.05 to 1.07

2008-03-26 Thread Renzo Tomaselli
Thanks, Andrew. Now it's definitely clear. In short and for practical purposes - the reference naming context shifted by one level ("add props:remove" -> "::add remove"). -- Renzo Andrew Robinson wrote: "props:remove" works because it will match the naming container's ID (

Re: [Trinidad] trigger warning while porting from 1.05 to 1.07

2008-03-26 Thread Renzo Tomaselli
t warnings, after being forced to add double-semicolons. -- Renzo Matthias Wessendorf wrote: Hi Renzo, On Wed, Mar 26, 2008 at 12:09 PM, Renzo Tomaselli <[EMAIL PROTECTED]> wrote: Hi, after this porting I get a warning concerning a missing (or wrong) trigger. This warning d

[Trinidad] trigger warning while porting from 1.05 to 1.07

2008-03-26 Thread Renzo Tomaselli
Hi, after this porting I get a warning concerning a missing (or wrong) trigger. This warning did not appear in 1.05: 26-mar-2008 11.54.07 org.apache.myfaces.trinidadinternal.context.RequestContextImpl addPartialTriggerListeners WARNING: Could not find partial trigger add from CoreTable[UIXFac

Re: [Trinidad] about using Tinymce with Trinidad

2008-03-25 Thread Renzo Tomaselli
surviving areas. I tried to kill lost editors during PPR response processing, but this raises Tinymce exceptions - likely because Dom changed. I will try to post some how-to on the Tinymce list. -- Renzo Renzo Tomaselli wrote: Hi, I wonder if anybody succeeded in doing this. In general, for

[Trinidad] about using Tinymce with Trinidad

2008-03-24 Thread Renzo Tomaselli
Hi, I wonder if anybody succeeded in doing this. In general, for full page refreshing it works fine. But it does not with Trinidad PPR when rendered region contains (or misses) involved Tinymce textareas. There are two main effects: - PPR does not complete (FF appears waiting from something mor

Re: [Trinidad] tr:table varStatus not working for EL passed to included components

2008-03-21 Thread Renzo Tomaselli
whip up a quick and small demo and maybe I can find some time next week to have a look? -Andrew On Fri, Mar 21, 2008 at 3:13 AM, Renzo Tomaselli <[EMAIL PROTECTED]> wrote: No way, using ui:decorate yields pretty much the same results. Conversely - retrieving current row index fr

[Trinidad] about using Tinymce with Trinidad

2008-03-21 Thread Renzo Tomaselli
Hi, I wonder if anybody succeeded in doing this. In general, for full page refreshing it works fine. But it does not with Trinidad PPR when rendered region contains (or misses) involved Tinymce textareas. There are two main effects: - PPR does not complete (FF appears waiting from something mor

Re: [Trinidad] tr:table varStatus not working for EL passed to included components

2008-03-21 Thread Renzo Tomaselli
No way, using ui:decorate yields pretty much the same results. Conversely - retrieving current row index from the bean works fine. I'm afraid this issue is going to be appended to a list of facelets mysteries. -- Renzo Andrew Robinson wrote: On Thu, Mar 20, 2008 at 2:20 PM,

Re: [Trinidad] tr:table varStatus not working for EL passed to included components

2008-03-20 Thread Renzo Tomaselli
Andrew, I don't use any template. Never used one, actually I rely heavily on composition components (many placeholders, one page). Maybe a trivial workaround for this issue is to have a row getter returning the row index, since #{row} is evaluated properly within the inner component. -- Renzo

Re: [Trinidad] tr:table varStatus not working for EL passed to included components

2008-03-20 Thread Renzo Tomaselli
Thanks, Andrew. Your proposal should have been in my msg, according to the real failing case. It was a typing mistake, nevertheless neither solution works. It seems that the deeper EL evaluation occurs out of loop, despite of proper row rendering. My definitive target is to reconstruct row comp

[Trinidad] tr:table varStatus not working for EL passed to included components

2008-03-20 Thread Renzo Tomaselli
Hi, I noticed that when using the varStatus attribute of tr:table, it can be used into any local EL statement only. If I use it inside any expression to be passed on to any included component, then that expression is evaluated to a constant (1). E.g.: where cx:valueHolder

[Trinidad] meaning of selection for tr:tree

2008-03-17 Thread Renzo Tomaselli
Hi, I wonder about the meaning of "selection" in case of tr:tree. Whatever I do on tree nodes - the bound component always reports an empty set through getSelectedRowKeys(), as well as the selectionListener is never called upon a node action. What is selection presumed to do ? Is there any way

[Trinidad] rendering pre-formatted html text

2008-03-07 Thread Renzo Tomaselli
Hi, I wonder if any component in Trinidad is suitable for rendering a pre-formatted chunk of html text. Assume I allow to edit html through TinyMCE or alike, then I save the resulting html text. Whenever I want to render it in readonly mode, I need to include it as it is within the page DOM mode

Re: [Trinidad] js issue while handling PPR inside a tr:panelPopup

2008-02-26 Thread Renzo Tomaselli
setTimeout("document.getElementById('" + win._pprEventElement.id + "').focus()", 500); Jiira updated. -- Renzo Renzo Tomaselli wrote: Done - see https://issues.apache.org/jira/browse/TRINIDAD-967 -- Renzo Andrew Robinson wrote: Good. Do you want to file a bug and

[Trinidad] calendar as a popup instead of a window

2008-02-25 Thread Renzo Tomaselli
Hi, does the calendar appearing along tr:inputDate need to be rendered as a real window or is there any way to have it as a popup - much like the Tomahawk calendar ? Thanks, -- Renzo

[Trinidad] the most suitable component for multiline output text

2008-02-22 Thread Renzo Tomaselli
Hi all, perhaps a trivial question: I need to output a multiline text field so that I have to choose the most suitable component. Now, tr:outputText does not do the job - in spite of feeding newline-separated text. Thus I use tr:table and this works fine of course. But in case of many lines I mu

Re: [Trinidad] js issue while handling PPR inside a tr:panelPopup

2008-02-22 Thread Renzo Tomaselli
Done - see https://issues.apache.org/jira/browse/TRINIDAD-967 -- Renzo Andrew Robinson wrote: Good. Do you want to file a bug and upload a patch? A timeout of 0 or 1 ms should be sufficient. -Andrew On Fri, Feb 22, 2008 at 9:51 AM, Renzo Tomaselli <[EMAIL PROTECTED]>

Re: [Trinidad] js issue while handling PPR inside a tr:panelPopup

2008-02-22 Thread Renzo Tomaselli
ay you can modify the code locally and attempt to see if that helps? On Fri, Feb 22, 2008 at 1:30 AM, Renzo Tomaselli <[EMAIL PROTECTED]> wrote: Yes, I followed the PPR response handling on FF/Firebug - but there all is ok. Then I investigated on IE 6/7 by means of placing alerts

[Trinidad] the most suitable component for multiline output text

2008-02-22 Thread Renzo Tomaselli
Hi all, perhaps a trivial question: I need to output a multiline text field so that I have to choose the most suitable component. Now, tr:outputText does not do the job - in spite of feeding newline-separated text. Thus I use tr:table and this works fine of course. But in case of many lines I mu

Re: [Trinidad] js issue while handling PPR inside a tr:panelPopup

2008-02-22 Thread Renzo Tomaselli
Robinson wrote: Hmmm, you say this is during the PPR application? I think there is a bug in IE that causes exceptions to be thrown if setFocus is called from the PPR "thread" -Andrew On Thu, Feb 21, 2008 at 3:04 AM, Renzo Tomaselli <[EMAIL PROTECTED]> wrote: Hi, I h

[Trinidad] js issue while handling PPR inside a tr:panelPopup

2008-02-21 Thread Renzo Tomaselli
Hi, I have a panelPopup containing a number of links with partialSubmit="true". The panel itself is enclosed into a panelGroupLayout bound to a bean. This binding allows to define the enclosing panel as a PPR target through addPartialTarget(), no matter which links triggers it. So the overall s

[Trinidad] about using disclosedRowKeys in tr:tree

2008-02-18 Thread Renzo Tomaselli
Hi - as a fairly common situation - I need to expand the first level of a tree. I adopted a pattern which works since a long time. However I wonder about any chance to keep it simpler, since I miss some logics in it. The working pattern is: Now I wonder why I have - at the same time - to return

Re: [Trinidad] tr:fileDownloadActionListener non working with t:jscookMenu

2008-02-15 Thread Renzo Tomaselli
d to adapt such hack to Trinidad. Regards, -- Renzo Andrew Robinson wrote: On Fri, Feb 15, 2008 at 1:40 AM, Renzo Tomaselli <[EMAIL PROTECTED]> wrote: Matthias,     AFAIK jsCookMenu is a third party component adapted by Tomahawk to JSF which in turn should be adapted to Trinida

Re: [Trinidad] tr:fileDownloadActionListener non working with t:jscookMenu

2008-02-15 Thread Renzo Tomaselli
ols around should prove that Trinidad is in the game. Wouldn't be just as easy as "if (submitForm) ..." ? -- Renzo Matthias Wessendorf wrote: Hi, On Thu, Feb 14, 2008 at 1:36 PM, Renzo Tomaselli <[EMAIL PROTECTED]> wrote: Ok, here is a solution. Myfaces adds a

[Trinidad] using tr:table showAll attribute

2008-02-14 Thread Renzo Tomaselli
Hi, I wonder about any missing chance to avoid "show all" in table navigator. The renderer SelectRangeChoiceBarRenderer inserts this item when showAll is true OR there are no more than 30 row groups. Assuming a reasonable size of 10 rows per page, this would imply - in the worst case - that this

Re: [Trinidad] tr:fileDownloadActionListener non working with t:jscookMenu

2008-02-14 Thread Renzo Tomaselli
Myfaces+Trinidad+Tomahawk fit this puzzle (who does what). -- Renzo Renzo Tomaselli wrote: Yes I will. I'm debugging the involved js machinery to find the issue, I guess jscookMenu submitting skips Trinidad internals. -- Renzo Matthias Wessendorf wrote: can you create a

Re: [Trinidad] tr:fileDownloadActionListener non working with t:jscookMenu

2008-02-14 Thread Renzo Tomaselli
Yes I will. I'm debugging the involved js machinery to find the issue, I guess jscookMenu submitting skips Trinidad internals. -- Renzo Matthias Wessendorf wrote: can you create an issue + a little simple page snippet ? -M On Thu, Feb 14, 2008 at 12:34 PM, Renzo Tomaselli &l

[Trinidad] tr:fileDownloadActionListener non working with t:jscookMenu

2008-02-14 Thread Renzo Tomaselli
Hi, I have another issue with tr:fileDownloadActionListener. I'm using Tomahawk jscookMenu since Trinidad misses any drop-down menu component. After performing a download action (even canceled), I noticed that any following jscookMenu item action leads to the download action again and again,

Re: [Trinidad] submit blocked on FF after using tr:fileDownloadActionListener

2008-02-14 Thread Renzo Tomaselli
8560 -- Renzo Matthias Wessendorf wrote: Hi, On Thu, Feb 14, 2008 at 10:47 AM, Renzo Tomaselli <[EMAIL PROTECTED]> wrote: Well - according to some net browsing - the responsability for this odd behavior is of the RealPlayer Browser Record plugin. After disabling it - everythings ru

Re: [Trinidad] submit blocked on FF after using tr:fileDownloadActionListener

2008-02-14 Thread Renzo Tomaselli
worked. -- Renzo Renzo Tomaselli wrote: Hi, for the purpose of saving a document on a page, I used tr:fileDownloadActionListener such as in: contentType="application/octet-stream" method="#{prop.blobSave}"/> wher

[Trinidad] submit blocked on FF after using tr:fileDownloadActionListener

2008-02-14 Thread Renzo Tomaselli
Hi, for the purpose of saving a document on a page, I used tr:fileDownloadActionListener such as in: contentType="application/octet-stream" method="#{prop.blobSave}"/> where contents are achieved from the bean: public void blobSa

Re: [Trinidad] using tr:tree as a tr:table detail

2008-02-12 Thread Renzo Tomaselli
s ok. -- Renzo Matthias Wessendorf wrote: is this related to this: https://issues.apache.org/jira/browse/TRINIDAD-935 On Feb 12, 2008 9:33 PM, Renzo Tomaselli <[EMAIL PROTECTED]> wrote: Hi, I tried to use a tr:tree as the detail component of a tr:table - as well as PP

[Trinidad] using tr:tree as a tr:table detail

2008-02-12 Thread Renzo Tomaselli
Hi, I tried to use a tr:tree as the detail component of a tr:table - as well as PPR of the involved row according to tree node selection. It almost works - at least on FF. On IE - upon clicking any node - I get a js error such as: document.forms[...][...] is null or not an object After some in

Re: [Trinidad] how to PPR a table row upon selecting its detail contents

2008-02-12 Thread Renzo Tomaselli
ough - or I might try using addPartialTarget(). In the latter case however I miss the way to identify the row component (or single cell components). -- Renzo Andrew Robinson wrote: You can't PPR a column. On Feb 11, 2008 11:22 AM, Renzo Tomaselli &

Re: AW: [Trinidad] how to PPR a table row upon selecting its detail contents

2008-02-12 Thread Renzo Tomaselli
tialTriggers for all the components in your columns so that they update for the current row. More work, but it should work. On Feb 11, 2008 11:38 AM, Renzo Tomaselli <[EMAIL PROTECTED]> wrote: Oh well, I guess that in such case the tag documentation is

Re: [Trinidad] how to PPR a table row upon selecting its detail contents

2008-02-11 Thread Renzo Tomaselli
(). In the latter case however I miss the way to identify the row component (or single cell components). -- Renzo Andrew Robinson wrote: You can't PPR a column. On Feb 11, 2008 11:22 AM, Renzo Tomaselli <[EMAIL PROTECTED]> wrote: Hi, I have a tr:table where rows can show detail

[Trinidad] how to PPR a table row upon selecting its detail contents

2008-02-11 Thread Renzo Tomaselli
Hi, I have a tr:table where rows can show details through a tr:tree representing several versions of row contents. I would PPR row fields upon selecting detail nodes, hosting tr:commandLinks. Columns are dynamic, such as: varStatus="iteration"> partialTriggers="versionTree:thisv">

Re: [Trinidad] tr:panelPopup and PPR

2008-01-31 Thread Renzo Tomaselli
component was not rendered (or a place holder), then there is nothing to update on a PPR. PPR pretty much never inserts new elements, only replaces. On Jan 30, 2008 11:17 AM, Renzo Tomaselli <[EMAIL PROTECTED]> wrote: Andrew, the popup is not yet on the current page. Then I click on

Re: [Trinidad] tr:panelPopup and PPR

2008-01-30 Thread Renzo Tomaselli
). On Jan 30, 2008 3:52 AM, Renzo Tomaselli <[EMAIL PROTECTED]> wrote: Hi, can anybody suggest a way to PPR a modal tr:panelPopup ? There is no reason to render the entire page, since it's already there and the popup just overwrites it. I tried to catch the popup component through

Re: [Trinidad] tr:panelPopup and PPR

2008-01-30 Thread Renzo Tomaselli
PartialPageContextImpl (_currentTargetStack). No target, no rendering. That's why my XDR response looks nearly empty. I guess I miss something. Any help is appreciated. -- Renzo Renzo Tomaselli wrote: Hi, can anybody suggest a way to PPR a modal tr:panelPopup ? There is no reason to render the entire page,

Re: [Trinidad] using multiple triggers

2008-01-30 Thread Renzo Tomaselli
where the String is: String triggers = "comp1 comp2 comp3"; -M On Jan 30, 2008 12:17 PM, Renzo Tomaselli <[EMAIL PROTECTED]> wrote: Matthias, in this case I had some names forced by outer components - which included the current one - because they needed to know

Re: [Trinidad] how to PPR without trigger/target dependencies

2008-01-30 Thread Renzo Tomaselli
Matthias Wessendorf wrote: - what about the partialSubmit attribute of potential triggers: must it be set on all candidates, in spite of missing any target ? Does it have any side effect if the target is missing ? I think I don't understand. partialSubmit must be true to caus

Re: [Trinidad] using multiple triggers

2008-01-30 Thread Renzo Tomaselli
since the resolved value turns out to be a string, while a string[] is expected. -- Renzo Matthias Wessendorf wrote: Hi On Jan 28, 2008 12:54 PM, Renzo Tomaselli <[EMAIL PROTECTED]> wrote: Hi, while using multiple triggers where a few names are achieved from EL, I get an exc

[Trinidad] tr:panelPopup and PPR

2008-01-30 Thread Renzo Tomaselli
Hi, can anybody suggest a way to PPR a modal tr:panelPopup ? There is no reason to render the entire page, since it's already there and the popup just overwrites it. I tried to catch the popup component through binding, then I used RequestContext.getCurrentInstance().addPartialTarget(component).

[Trinidad] using multiple triggers

2008-01-28 Thread Renzo Tomaselli
Hi, while using multiple triggers where a few names are achieved from EL, I get an exception from ELSupport.coerceToType(obj, type). E.g. while: partialTriggers="multiSelect multiAdd multiRemove multiUpdate" works fine, partialTriggers="multiSelect #{multiAdd} multiRemove #{multiUpdate}"

[Trinidad] how to PPR without trigger/target dependencies

2008-01-24 Thread Renzo Tomaselli
Hi, I'm trying to figure out how to PPR a target which has no static knowledge about its triggers, e.g. no partialTriggers are specified. At the same time triggers (button and links) do not know about the target they will potentially PPR. From the dev-guide, I knew about the addPartialTarget(comp

Re: [Trinidad] how to know that PPR is ongoing

2008-01-23 Thread Renzo Tomaselli
ide. -Matthias On Jan 22, 2008 11:56 PM, Renzo Tomaselli <[EMAIL PROTECTED]> wrote: Hi, assume to have a component which might be rendered either in a full page or in a PPR context. It needs to distinguish these alternatives since it might run some js chunck requiring full DOM com

[Trinidad] how to know that PPR is ongoing

2008-01-22 Thread Renzo Tomaselli
Hi, assume to have a component which might be rendered either in a full page or in a PPR context. It needs to distinguish these alternatives since it might run some js chunck requiring full DOM completion. For example, on IE we are not allowed to modify the DOM before page completion, thus we mu

Re: [Trinidad] problem with tr:panelPopup containing an iframe

2008-01-21 Thread Renzo Tomaselli
any other workaround than cloning my own version of TrPanelPopup. -- Renzo Renzo Tomaselli wrote: Hi, in the context of displaying generic documents (images, pdf, etc.) I wanted to use a modal tr:panelPopup, containing an iframe to host actual document contents. Things such as: h

Re: [Trinidad] js centering bug in tr:panelPopup

2008-01-21 Thread Renzo Tomaselli
Done, created https://issues.apache.org/jira/browse/TRINIDAD-911 -- Renzo Andrew Robinson wrote: Please open an issue with a patch On Jan 19, 2008 11:40 AM, Renzo Tomaselli <[EMAIL PROTECTED]> wrote: Hi, in method TrPanelPopup._centerOnScreen() the window height is computed

[Trinidad] js centering bug in tr:panelPopup

2008-01-19 Thread Renzo Tomaselli
Hi, in method TrPanelPopup._centerOnScreen() the window height is computed for IE through document.body.clientHeight. This provides document height instead of window height, in case of IE 6+ in strict mode. The final result is an up-shifted panel, even beyond the top in case of panels higher tha

[Trinidad] problem with tr:panelPopup containing an iframe

2008-01-18 Thread Renzo Tomaselli
Hi, in the context of displaying generic documents (images, pdf, etc.) I wanted to use a modal tr:panelPopup, containing an iframe to host actual document contents. Things such as: height="400 frameborder="0"/> ... Actual document contents are provided by the common trick of catching

Re: [Myfaces] rendering images

2008-01-18 Thread Renzo Tomaselli
Thanks Simon. Btw, adding: context.getExternalContext().getRequestMap().put("org.apache.myfaces.myFacesJavascript", ""); while feeding the response seems to solve the problenm. No warning anymore for html contents. -- Renzo Simon Kitching wrote: Renzo Tomasel

[Myfaces] rendering images

2008-01-18 Thread Renzo Tomaselli
Hi, in order to render attachments (images, documents, etc.) I use to follow the common pattern of catching the request in a phase listener, then inserting the contents in a response stream. Since I upgraded to Myfaces 1.1.5, I get the warning "MyFaces special javascript could not be retrieved f

[Myfaces] rendering images

2008-01-18 Thread Renzo Tomaselli
Hi, in order to render attachments (images, documents, etc.) I use to follow the common pattern of catching the request in a phase listener, then inserting the contents in a response stream. Since I upgraded to Myfaces 1.1.5, I get the warning "MyFaces special javascript could not be retrieved f

Re: [Trinidad] Pagination in a ?

2008-01-17 Thread Renzo Tomaselli
Bart, I noticed this behavior as well, but I was unable to collect any reply from this list. The basic issue is that the page navigator calls isRowAvailable() in the data model many times just to setup a predefined number of ranges in the widget, where the user can select from. These calls in t

[Trinidad] tr:table rowIndex should be zero-based

2008-01-14 Thread Renzo Tomaselli
Hi, AFAIK rowIndex is always zero-based. But in SelectRangeChoiceBarRenderer .java - near line 374 - we have: hasNextRecords = isRowAvailable(component, (int)nextValue); where nextValue = currentValue + blockSize. In this context, currentValue is one-based, thus there should be a displac

Re: [Trinidad] using EL in tr:document title

2007-12-14 Thread Renzo Tomaselli
of "msg" there. -- Renzo Andrew Robinson wrote: The bundle doesn't render anything, so it doesn't have to be in the document tag. Just put it at the top of your template and it will always be used (I assume your tr:document is in the template). On Dec 14, 2007 11:30 AM, Renzo

Re: [Trinidad] using EL in tr:document title

2007-12-14 Thread Renzo Tomaselli
create yourself something equivalent as a managed bean. f:loadBundle, is far from the best JSF tag in existence, if you can avoid it, do so. Regards, ~ Simon On Dec 14, 2007 1:30 PM, Renzo Tomaselli <[EMAIL PROTECTED]> wrote: Hi, until now I used tr:document with a fixed title.

[Trinidad] using EL in tr:document title

2007-12-14 Thread Renzo Tomaselli
Hi, until now I used tr:document with a fixed title. Now I would pick up a title from bundles, using the title attribute such as in: http://java.sun.com/jsf/facelets"; title="#{msg['login.title']}" ... but I need to declare "msg" in: in case of components, I declare this at the beginni

Re: [Tomahawk] about t:saveState usage on serializable objects

2007-11-30 Thread Renzo Tomaselli
n JSF session topics (state saving, session-scoped beans, etc.) and server clustering. Thanks, -- Renzo Simon Kitching wrote: Renzo Tomaselli <[EMAIL PROTECTED]> schrieb: Hi all, I'm using t:saveState since a couple of years and it'd fine. However I'm a bit c

[Tomahawk] about t:saveState usage on serializable objects

2007-11-30 Thread Renzo Tomaselli
Hi all, I'm using t:saveState since a couple of years and it'd fine. However I'm a bit confused about the point of having saved objects as being serializable or not. Usually I save serializable objects, but from my debugger it seems that they are saved as they are - not serialized. And as such t

Re: [Trinidad] how to detect phases

2007-11-30 Thread Renzo Tomaselli
on): more intelligent caching within the business layer (-> in this case you don't have to adjust the view layer) regards, gerhard 2007/11/30, Renzo Tomaselli <[EMAIL PROTECTED]>: Gerhard,     since I have to account for concurrent changes of the under

Re: [Trinidad] how to detect phases

2007-11-30 Thread Renzo Tomaselli
ds, gerhard 2007/11/30, Renzo Tomaselli < [EMAIL PROTECTED]>: Hi, as many others - I'm trying to optimize loading data from my business layer, avoiding to do it as much as possible while restoring a view. Now I noticed that components needing a complex data model as the

[Trinidad] how to detect phases

2007-11-30 Thread Renzo Tomaselli
Hi, as many others - I'm trying to optimize loading data from my business layer, avoiding to do it as much as possible while restoring a view. Now I noticed that components needing a complex data model as their value (tree, table, etc.) ask the backing bean for this model exactly twice: one whi

Re: [Trinidad] searching for drag&drop component

2007-11-27 Thread Renzo Tomaselli
Just appended. -- Renzo Matthias Wessendorf wrote: question: did you already list your company to the "using Trinidad wiki" ? http://wiki.apache.org/myfaces/Companies_using_Trinidad -Matthias On Nov 27, 2007 6:20 PM, Renzo Tomaselli <[EMAIL PROTECTED]> wrote:

Re: [Trinidad] searching for drag&drop component

2007-11-27 Thread Renzo Tomaselli
PPR, thus one had to leave the game. -- Renzo Matthias Wessendorf wrote: nothing there. perhaps another lib (has ajax4faces something for DnD) can be integrated ? A plain integration of Dojo works, but you have to do the rest on your own. -Matthias On Nov 27, 2007 6:01 PM, Renzo Tomasell

[Trinidad] searching for drag&drop component

2007-11-27 Thread Renzo Tomaselli
Hi, subject says all. I need a drag&drop component, js chunk etc. working in an environment where Trinidad 1.03 is the primary component source. Thanks for any pointer, -- Renzo

Re: [Trinidad] about tr:inputFile misconfiguration

2007-11-23 Thread Renzo Tomaselli
Done, see https://issues.apache.org/jira/browse/TRINIDAD-836 -- Renzo Matthias Wessendorf wrote: can you file a sub-task of the mentioned issue ? -M On Nov 23, 2007 3:32 PM, Renzo Tomaselli <[EMAIL PROTECTED]> wrote: Yup - related but even worse - since I can't

Re: [Trinidad] about tr:inputFile misconfiguration

2007-11-23 Thread Renzo Tomaselli
Wessendorf wrote: Hi, this bug is related: http://issues.apache.org/jira/browse/TRINIDAD-607 -M On Nov 23, 2007 12:59 PM, Renzo Tomaselli <[EMAIL PROTECTED]> wrote: Hi, I noticed that in case the parameter org.apache.myfaces.trinidad.UPLOAD_TEMP_DIR points to an unexisti

[Trinidad] about tr:inputFile misconfiguration

2007-11-23 Thread Renzo Tomaselli
Hi, I noticed that in case the parameter org.apache.myfaces.trinidad.UPLOAD_TEMP_DIR points to an unexisting directory, an exception is thrown by UploadedFileImpl, but it has no chance to be caught by application code, since occurring from withing the TrinidadFilter. The final result is that us

Re: [Trinidad] bad handling of BigDecimals in tr:inputText

2007-11-20 Thread Renzo Tomaselli
out where it comes from. The only thing known for sure is that el-impl comes from Glassfish, while el-api comes from Tomcat 6. -- Renzo Renzo Tomaselli wrote: Hi, while using tr:inputText where the "value" attribute refers to a bean method pair handling get/set of a BigDecimal, I notice

[Trinidad] bad handling of BigDecimals in tr:inputText

2007-11-20 Thread Renzo Tomaselli
Hi, while using tr:inputText where the "value" attribute refers to a bean method pair handling get/set of a BigDecimal, I noticed that the returned number has a large scale and undefined precision, e.g. there is a rounding problem. The number 1.234567 (precision 7, scale 6) is displayed properl

  1   2   3   >