[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 stuff returned to the client and
less DOM to update - but the business layer is fully involved as for
full-page requests.
For industrial applications this is usually the most significant cost.
Is this behavior a Trinidad-specific one, a side-effect of Ajax-JSF
coupling or anything which could be improved ?
I guess the hard point here is to wire PPR targets to subviews to
restore/render/save, but oops ! AFAIK such a concept doesn't even exist
in JSF.
There are just "views". So we must face full view handling in any case.
I was considering to be lazy in bean rendering for PPR - but it can't
work - what is saved is what we will restore next time - whether PPR or
full. No way.
Any comment is welcome.

-- Renzo




Re: [myfaces 1.2.2] session timeout issue

2008-04-23 Thread Hilbert Schraal, Hippe IT

Hi,

We are getting this error when the application runs behind a proxy. The
error disappears when excluding the server from the proxy (via the setting
in the browser).



Luka Surija wrote:
> 
>  From time to time (random on deployment or app server restart), I have 
> the same problem but I'm using RI jsf 1.2, trinidad 1.0.7 and facelets 
> 1.1.13. So it looks like some kind of problem in facelets?? And yes, the 
> problem appears to be related with params in url. For example: 
> index.xhtml?someparam=somevalue. Displaying index.xhtml without params, 
> works fine, but trinidad also uses params for Dialog framework, so there 
> is often point of breakdown.
> 
> Any clue?
> 
> Luka
> 
> lmk wrote:
>> Hii,
>>
>> I try to add com.sun.faces.enableRestoreView11Compatibility=true, without
>> success, 
>> is this a myfaces bug, a JSF spec problem or faceletes issue...I dont
>> now..
>> I dont want to override the FaceletsViewHandlers..it exist any clean
>> solution ..?
>>
>> thanks..
>>
>>
>>
>> lmk wrote:
>>   
>>> hello,
>>>
>>> I get a strange problem after migration from myfaces 1.1.5 to 1.2.2..
>>> I send an ajaw request after session timeout, 
>>> I get error:
>>>
>>> javax.faces.application.ViewExpiredException: /result.jsfThe expected
>>> view
>>> was not returned for the view identifier: /result.jsf
>>>
>>> thanks for help
>>>
>>>
>>>
>>>
>>>
>>> 
>>
>>   
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-myfaces-1.2.2--session-timeout-issue-tp16627912p16833571.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



FacesContext not found

2008-04-23 Thread Angel Miralles Arevalo
Hi everybody, I'm trying to migrate to jboss 4.2.2. I'm using distributions for 
Faces:

myfaces-api-1.2.2.jar
myfaces-impl-1.2.2.jar
tomahawk-1.1.6.jar
tomahawk-sandbox-1.1.6.jar

I get the fllowing error:

11:14:20,468 ERROR [[jsp]] El Servlet.service() para servlet jsp lanzó una 
excepción
java.lang.RuntimeException: FacesContext not found
at 
javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java:238)
at 
javax.faces.webapp.UIComponentClassicTagBase.getPreviousJspIdsSet(UIComponentClassicTagBase.java:1219)
at 
javax.faces.webapp.UIComponentClassicTagBase.checkIfItIsInAnIterator(UIComponentClassicTagBase.java:1204)
at 
javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:165)
   ...

My web.xml configuration:


  
 javax.faces.CONFIG_FILES
 /WEB-INF/faces-config-beans.xml, 
/WEB-INF/faces-config-navigations.xml
 
  
  
  
Definicion de los Tiles
tiles-definitions
/WEB-INF/tiles-defs.xml
  
  
  
  
 org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL
 true
 
 
  
  

org.springframework.web.context.ContextLoaderListener
  
  
  
  
org.apache.myfaces.webapp.StartupServletContextListener
  
  
  
  
Faces Servlet
javax.faces.webapp.FacesServlet
0
  
  
Faces Servlet
/faces/*
  
  
  
  
index.jsp
  

Notice that I have already disabled the built-in jsf implementation for jboss. 
Any idea why is this happening? Any problem of compatibility? 

Thanks in advanced!!! ;)


  __ 
Yahoo! Solidario. Intercambia los objetos que ya no necesitas y ayuda a 
mantener un entorno más ecológico.

Re: [Trinidad] treeTable: Navigation fails when rootNodeRendered="false"

2008-04-23 Thread Dirk Krummacker
Andrew, thanks for your quick response.

I have opened a JIRA issue for this:
https://issues.apache.org/jira/browse/TRINIDAD-1055

To answer your question: No, the behavior is the same if the action
method is moved from the row object to the bean.

Meanwhile I also found out that specifying 'initiallyExpanded="true"'
in the JSP itself fixes the problem. This workaround unfortunately
doesn't work for me because my tree model must be collapsed initially
since it is quite expensive to retrieve the full tree (in my case).

Thanks again,

Dirk


On Tue, Apr 22, 2008 at 6:23 PM, Andrew Robinson
<[EMAIL PROTECTED]> wrote:
> You can probably file a bug.
>
> Out of curiosity, does it work if your action method is on a bean and not a
> node?
>
> -Andrew
>
>
>
> On Tue, Apr 22, 2008 at 9:58 AM, Dirk Krummacker <[EMAIL PROTECTED]>
> wrote:
>
> > I have a simple JSP page with only a commandButton and a treeTable.
> > The commandButton is wired to an action listener method that populates
> > a list with nodes and places it into page flow scope. This node list
> > serves as the treeTable's model. There is a column in the treeTable
> > displaying a commandLink, clicking on this link causes an action that
> > is navigating to a second page.
> >
> > When I use the default rootNodeRendered="true", this page works as
> > expected: First the treeTable is empty. Clicking the button fills it,
> > and now I can open and close all nodes. If I click on a commandLink in
> > the treeTable, I am taken to the correct page. Everything is fine.
> >
> > However if I now set the treeTable's attribute
> > rootNodeRendered="false" (and change nothing otherwise), the
> > commandLink navigation stops working. I still can open/close nodes,
> > but any click on a commandLink just causes the page to refresh.
> >
> > What is more, if I now click on "Expand all", the commandLinks
> > suddenly start working again, just as if this "Expand All" click
> > "repaired" the treetable.
> >
> > The bean is in request scope. I am using Apache MyFaces Core 1.1.5 and
> > Trinidad 1.0.7.
> >
> > Is there something I have to do to make this test case work even when
> > I want rootNodeRendered="false"? Or is this a bug? Or is there a
> > totally different approach that allows me to hide the root node and
> > have navigation from the columns at the same time?


Add pipes to a datascroller pagination

2008-04-23 Thread tejapraveen

Hi everybody

Iam new to Jsf and Myfaces.Is there possibility to get the Pipe or Divider
in DataScroller?

Iam using datascroller in that scroller i want to use pipe(|)symbol.In jsf
or myfaces how to implement that.If any body know the solution for this
please send reply as soon as possible

example: Like such type of pipe symbol(|) i want to use in between those
number

< 1 | 2 | 3 | 4| 5 | >

So please kindly response my request

Venkat 




-- 
View this message in context: 
http://www.nabble.com/Add-pipes-to-a-datascroller-pagination-tp16833974p16833974.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: FacesContext not found

2008-04-23 Thread Cagatay Civici

How do you access your JSF pages?

/faces/sth.jsp

Angel Miralles Arevalo wrote:
Hi everybody, I'm trying to migrate to jboss 4.2.2. I'm using 
distributions for Faces:


myfaces-api-1.2.2.jar
myfaces-impl-1.2.2.jar
tomahawk-1.1.6.jar
tomahawk-sandbox-1.1.6.jar

I get the fllowing error:

11:14:20,468 ERROR [[jsp]] El Servlet.service() para servlet jsp lanzó 
una excepción

java.lang.RuntimeException: FacesContext not found
at 
javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java:238)
at 
javax.faces.webapp.UIComponentClassicTagBase.getPreviousJspIdsSet(UIComponentClassicTagBase.java:1219)
at 
javax.faces.webapp.UIComponentClassicTagBase.checkIfItIsInAnIterator(UIComponentClassicTagBase.java:1204)
at 
javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:165)

   ...

My web.xml configuration:


  
 javax.faces.CONFIG_FILES
 /WEB-INF/faces-config-beans.xml, 
/WEB-INF/faces-config-navigations.xml

 
 
  

  
Definicion de los Tiles
tiles-definitions
/WEB-INF/tiles-defs.xml
  
 
  

  
 org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL
 true
 
 
  

  

org.springframework.web.context.ContextLoaderListener

  
 
  
  
org.apache.myfaces.webapp.StartupServletContextListener

  
 
  

  
Faces Servlet
javax.faces.webapp.FacesServlet
0
  
  
Faces Servlet
/faces/*
  
 
  

  
index.jsp
  

Notice that I have already disabled the built-in jsf implementation 
for jboss. Any idea why is this happening? Any problem of compatibility?


Thanks in advanced!!! ;)




Enviado desde Correo Yahoo! 


La bandeja de entrada más inteligente.




Re: Add pipes to a datascroller pagination

2008-04-23 Thread [EMAIL PROTECTED]
tejapraveen schrieb:
> Hi everybody
>
> Iam new to Jsf and Myfaces.Is there possibility to get the Pipe or Divider
> in DataScroller?
>
> Iam using datascroller in that scroller i want to use pipe(|)symbol.In jsf
> or myfaces how to implement that.If any body know the solution for this
> please send reply as soon as possible
>
> example: Like such type of pipe symbol(|) i want to use in between those
> number
>
> < 1 | 2 | 3 | 4| 5 | >
>   
Do you mean the Tomahawk t:dataScroller component?

If so, then that does *not* currently support adding chars between the
page numbers. It always just outputs
  12
etc.

It does have the ability to set CSS styles on various bits. So you might
like to try experimenting with the css :before property. Or try using
CSS to set the "border" property on the TD cells that contain the
page-numbers, which would look similar.

Otherwise you would need to customise the HtmlDataScrollerRenderer class
from tomahawk. See methods
  writePaginatorElementStart
  writePaginatorElementEnd

JSF has a reasonably elegant method for installing custom renderer
classes, so you can subclass the tomahawk renderer and just override the
above methods.

Or you could provide a patch to the standard Tomahawk renderer class to
allow a new "paginatorElementBetween" facet to get rendered between each
page number; I think that would have a reasonable chance of being
accepted for the trunk code - although the next tomahawk release is not
going to be for at least a month I think.

Regards,
Simon



[Trinidad 1.0.7] key in a form doesn't activate statusIndicator

2008-04-23 Thread Bertrand, Shawn R
Other than clicking the form's action button or hitting  while
focus is on said button, is there any way to get the status indicator to
activate when the  key is pressed while in the form?  We have the
defaultCommand on the tr:form set appropriately, but the statusIndicator
doesn't move when the form is submitted, and the button's partialSubmit
attribute is true.

 

Thanks in advance,

 

Shawn Bertrand

Tyco Electronics Corporation

 



RE: [Trinidad] Referencing Complex Objects inside a table

2008-04-23 Thread Butash, Bob
Was wondering if anyone else has any additional suggestions.

Thanks,

Bob

-Original Message-
From: Butash, Bob [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 22, 2008 12:28 PM
To: MyFaces Discussion
Subject: RE: Referencing Complex Objects inside a table

Simon,

Thanks for the response...let me address your questions:

varStatus - Table has an attribute that you can set to hold onto the
status of the index processing.  So if on the table you provide a 
to the varStatus you can then use .index to get the current index
of the row you are processing.  I'm not using this right now, since I
thought this could be a potential work around for the issue at hand.

You are correct the name should be bobject, since it is not the list.
But it is a local name that is not used elsewhere, so there should be no
issues there.

AObject's bobjectList is a lazy initialed ArrayList.

In my scenario I am only ever putting one object in the list.  I planned
on adding an add row button to add a row to the list, but have not
gotten that far due to this issue.

I would love to have it be an issue in my code, but I have spent a lot
of time looking into this issue as well as I have had additional
co-workers looking into without being able to uncover anything.  I have
replicated the issue using the Trinidad iterate tag as well.  Once again
it is only an issue with a complex object that is on an object in a
list.

Any additional insight or assistance would be appreciated.

Thanks,

Bob

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 22, 2008 11:50 AM
To: MyFaces Discussion
Subject: Re: Referencing Complex Objects inside a table

I'm not sure what you mean by "the varStatus's index".

You currently use var="bobjectList". This would be better named: 
var="bobject" as the var is set to each element of the table's "value"
list in turn, ie refers to an element from the bobjectList, not the
entire list. However the var does seem to be used ok.

The fact that this is a session-scoped bean does remove a lot of
potential failures here (although session-scoped vars have lots of
problems of their own).

Is the bobjectList a normal ArrayList or LinkedList, or is it something
special?

Are you sure that it is failing on the zeroth element during postback?
Maybe element zero is ok, but some other later element is failing.
Adding some logging statements would again be useful here..

To be honest, if I were a gambler, I would give odds of 20:1 that this
*is* a problem in your code. Though it isn't an obvious one...

Regards,
Simon

Butash, Bob schrieb:
>  
> Simon,
>
> Thanks for the quick response however, the object is a session scoped 
> managed bean.  So it would still be available.
>
> When I changed the code to
> manageAdminAobject.bobjectList[0].eobject.value the code worked, 
> however when I tried to set up the varStatus's index to replace the 
> hard coded 0 it failed.
>
> Thanks,
>
> Bob
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 22, 2008 11:28 AM
> To: MyFaces Discussion
> Subject: Re: Referencing Complex Objects inside a table
>
> My guess would be that you have everything set up correctly for
render.
> But that on postback your bobject list contains uninitialised objects.
> Primitive values on it will be reassigned from the posted data so 
> maybe you didn't notice.
>
> Is your manageAdminAobject in request scope?
>
> I have not heard of any EL bug that correctly resolves expressions 
> during render phase, but fails during postback phase.
>
> Regards,
> Simon
>
> Butash, Bob schrieb:
>   
>> Hello,
>>
>> I'm in need of some assistance.  I have a complex object hierarchy 
>> that I'm trying to create a JSF view for.  I have simplified it to 
>> the
>> 
>
>   
>> point where I still get the error.  Here is the setup:
>>
>> Aobject that contains a list of Bobjects.  Bobject contains an 
>> Eobject
>> 
>
>   
>> and then Eobject has a value attribute.
>>
>> Here is what I was trying to do in the jspx, note I am using Trinidad

>> with facelets:
>>
>> http://java.sun.com/JSP/Page"; version="2.0"
>> xmlns:ui="http://java.sun.com/jsf/facelets";
>> xmlns:h="http://java.sun.com/jsf/html";
>> xmlns:f="http://java.sun.com/jsf/core";
>> xmlns:tr="http://myfaces.apache.org/trinidad";>
>> 
>> 
>> 
>> >
>>
>> 
> text="#{messages['com.eds.employeetracker.entity.admin.Aobject.search.
> he
> ader']}"
>   
>> messageType="none" />
>> > 
> halign="left">
>   
>> 
>> > background="transparent" inlineStyle="width: 100%;">
>> 
>> > 

Re: FacesContext not found

2008-04-23 Thread Angel Miralles Arevalo
You were right, it is a problem accesing, but I get another exception.

I'm accessing through tiles. Well, welcome page is "index.jsp", its content is:

<[EMAIL PROTECTED] uri="http://jakarta.apache.org/struts/tags-tiles"; 
prefix="tiles"%>


The "tiles-defs.xml" have the configuration:

















When I invoke welcome page from web.xml "index.jsp". I get the exception:

   javax.servlet.jsp.JspException: Can't get definitions factory from context.
at 
org.apache.struts.taglib.tiles.InsertTag.processDefinitionName(InsertTag.java:577)
at 
org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTag.java:476)
at org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:438)

Thanks in advanced!!



 

- Mensaje original 
De: Cagatay Civici <[EMAIL PROTECTED]>
Para: MyFaces Discussion 
Enviado: miércoles, 23 de abril, 2008 12:56:24
Asunto: Re: FacesContext not found

 How do you access your JSF pages?

/faces/sth.jsp

Angel Miralles Arevalo wrote: 
Hi
everybody, I'm trying to migrate to jboss 4.2.2. I'm using
distributions for Faces:

myfaces-api-1.2.2.jar
myfaces-impl-1.2.2.jar
tomahawk-1.1.6.jar
tomahawk-sandbox-1.1.6.jar

I get the fllowing error:

11:14:20,468 ERROR [[jsp]] El
Servlet.service() para servlet jsp lanzó una excepción
java.lang.RuntimeException:
FacesContext not found
at
javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java:238)
at
javax.faces.webapp.UIComponentClassicTagBase.getPreviousJspIdsSet(UIComponentClassicTagBase.java:1219)
at
javax.faces.webapp.UIComponentClassicTagBase.checkIfItIsInAnIterator(UIComponentClassicTagBase.java:1204)
at
javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:165)
   ...

My web.xml configuration:


  
 javax.faces.CONFIG_FILES
 /WEB-INF/faces-config-beans.xml,
/WEB-INF/faces-config-navigations.xml
 
  
  
  
Definicion de los Tiles
tiles-definitions
/WEB-INF/tiles-defs.xml
  
  
  
  

org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL
 true
 
 
  
  
   
org.springframework.web.context.ContextLoaderListener
  
  
  
 
org.apache.myfaces.webapp.StartupServletContextListener
  
  
  
  
Faces Servlet
   
javax.faces.webapp.FacesServlet
0
  
  
Faces Servlet
/faces/*
  
  
  
  
index.jsp
  

Notice that I have already disabled the built-in jsf implementation for
jboss. Any idea why is this happening? Any problem of compatibility? 

Thanks in advanced!!! ;)




Enviado desde Correo
Yahoo!
La bandeja de entrada más inteligente.


  __ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.

Re: [Trinidad] Referencing Complex Objects inside a table

2008-04-23 Thread [EMAIL PROTECTED]
Have you tried to duplicate this issue using just the standard
h:dataTable component?

If it does not fail with h:dataTable then the Trinidad people might get
more interested. Alternatively, if it does fail with h:dataTable then
that is also useful to know, and you can repost without trinidad in the
subject line.

Also checking with jsp vs facelets would be useful. If the problem only
happens with Facelets, then that narrows things down.

Regards,
Simon


Regards,
Simon

Butash, Bob schrieb:
> Was wondering if anyone else has any additional suggestions.
>
> Thanks,
>
> Bob
>
> -Original Message-
> From: Butash, Bob [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, April 22, 2008 12:28 PM
> To: MyFaces Discussion
> Subject: RE: Referencing Complex Objects inside a table
>
> Simon,
>
> Thanks for the response...let me address your questions:
>
> varStatus - Table has an attribute that you can set to hold onto the
> status of the index processing.  So if on the table you provide a 
> to the varStatus you can then use .index to get the current index
> of the row you are processing.  I'm not using this right now, since I
> thought this could be a potential work around for the issue at hand.
>
> You are correct the name should be bobject, since it is not the list.
> But it is a local name that is not used elsewhere, so there should be no
> issues there.
>
> AObject's bobjectList is a lazy initialed ArrayList.
>
> In my scenario I am only ever putting one object in the list.  I planned
> on adding an add row button to add a row to the list, but have not
> gotten that far due to this issue.
>
> I would love to have it be an issue in my code, but I have spent a lot
> of time looking into this issue as well as I have had additional
> co-workers looking into without being able to uncover anything.  I have
> replicated the issue using the Trinidad iterate tag as well.  Once again
> it is only an issue with a complex object that is on an object in a
> list.
>
> Any additional insight or assistance would be appreciated.
>
> Thanks,
>
> Bob
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 22, 2008 11:50 AM
> To: MyFaces Discussion
> Subject: Re: Referencing Complex Objects inside a table
>
> I'm not sure what you mean by "the varStatus's index".
>
> You currently use var="bobjectList". This would be better named: 
> var="bobject" as the var is set to each element of the table's "value"
> list in turn, ie refers to an element from the bobjectList, not the
> entire list. However the var does seem to be used ok.
>
> The fact that this is a session-scoped bean does remove a lot of
> potential failures here (although session-scoped vars have lots of
> problems of their own).
>
> Is the bobjectList a normal ArrayList or LinkedList, or is it something
> special?
>
> Are you sure that it is failing on the zeroth element during postback?
> Maybe element zero is ok, but some other later element is failing.
> Adding some logging statements would again be useful here..
>
> To be honest, if I were a gambler, I would give odds of 20:1 that this
> *is* a problem in your code. Though it isn't an obvious one...
>
> Regards,
> Simon
>
> Butash, Bob schrieb:
>   
>>  
>> Simon,
>>
>> Thanks for the quick response however, the object is a session scoped 
>> managed bean.  So it would still be available.
>>
>> When I changed the code to
>> manageAdminAobject.bobjectList[0].eobject.value the code worked, 
>> however when I tried to set up the varStatus's index to replace the 
>> hard coded 0 it failed.
>>
>> Thanks,
>>
>> Bob
>>
>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, April 22, 2008 11:28 AM
>> To: MyFaces Discussion
>> Subject: Re: Referencing Complex Objects inside a table
>>
>> My guess would be that you have everything set up correctly for
>> 
> render.
>   
>> But that on postback your bobject list contains uninitialised objects.
>> Primitive values on it will be reassigned from the posted data so 
>> maybe you didn't notice.
>>
>> Is your manageAdminAobject in request scope?
>>
>> I have not heard of any EL bug that correctly resolves expressions 
>> during render phase, but fails during postback phase.
>>
>> Regards,
>> Simon
>>
>> Butash, Bob schrieb:
>>   
>> 
>>> Hello,
>>>
>>> I'm in need of some assistance.  I have a complex object hierarchy 
>>> that I'm trying to create a JSF view for.  I have simplified it to 
>>> the
>>> 
>>>   
>>   
>> 
>>> point where I still get the error.  Here is the setup:
>>>
>>> Aobject that contains a list of Bobjects.  Bobject contains an 
>>> Eobject
>>> 
>>>   
>>   
>> 
>>> and then Eobject has a value attribute.
>>>
>>> Here is what I was trying to do in the jspx, note I am using Trinidad
>>>   
>
>   
>>> with facelets:
>>>
>>> http://java.sun.com/JSP/Page"; version="2.0"
>>> xmlns:ui="http://java.sun.com/jsf/facelets";
>>> x

facelets: custom component and custom converter

2008-04-23 Thread arne anka

hi,
i got my custom component (faclets based, not tomahawk or trinidad,  
extending UIOutput) working so far -- but my converter is not executed.
if i attribute the converter to, say, h:outputText it works, so it seems  
to be ok.
my idea is, because i use my own rendere (getRendererType() returns null)  
maybe i need to call it myself?

if so, how do i get hold of the converter?

both with



and with





getConverter() always returns null

thanks in advance


Question about orchestra

2008-04-23 Thread mario.buonopane
Hi, in my application I'm using Shale basic dialog manager and I need to
have two or more active dialogs on differents windows at same time. Now,
Shale does not work because it can manage just one dialog at the time.
Do I have any chance to use Orchestra to modify Shale and obtain the
expected result?

 

Thanks in advance

Mario 

 



This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.


[Trinidad] Caret position

2008-04-23 Thread Shane Petroff

Hello,

How can I get the current caret position from a tr:inputText component 
over to some server side code? I have an action which is used to open a 
dialog, and at that point I want to grab the current caret position for 
use in the dialog's return listener. Googling 'java Trinidad "caret 
position"' turns up virtually nothing, and searching for the erroneous 
label 'cursor' naturally turns up boatloads of pages related to the 
proper use of the word.


--
Shane



Re: [Trinidad] about the cost of PPR

2008-04-23 Thread Andrew Robinson
Just a quick reply:

1) yes PPR is a full JSF request
2) Trinidad can cache the UIViewRoot on the server with its "hack" of
forcing client side state to use server side state with a client token
3) JSF 2.0 EG is currently discussing AJAX and state saving problems.
Lets hope they have an epiphany
4) You could attempt to write a custom state manager if you don't want
Trinidad's view caching but want to optimize PPR requests

-Andrew

On Wed, Apr 23, 2008 at 2:34 AM, Renzo Tomaselli
<[EMAIL PROTECTED]> wrote:
> 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 stuff returned to the client and
> less DOM to update - but the business layer is fully involved as for
> full-page requests.
> For industrial applications this is usually the most significant cost.
> Is this behavior a Trinidad-specific one, a side-effect of Ajax-JSF
> coupling or anything which could be improved ?
> I guess the hard point here is to wire PPR targets to subviews to
> restore/render/save, but oops ! AFAIK such a concept doesn't even exist
> in JSF.
> There are just "views". So we must face full view handling in any case.
> I was considering to be lazy in bean rendering for PPR - but it can't
> work - what is saved is what we will restore next time - whether PPR or
> full. No way.
> Any comment is welcome.
>
> -- Renzo
>
>
>


Using a tr:panelPopup with dynamic content

2008-04-23 Thread Pedro Calcao
Greetings,

I have a page with a tr:table, in each row I would like to be able to use a
tr:panelPopup to, on click, query the database and return me some aditional
info on the row I clicked.
So far, I've been unable to figure if there is a way to trigger an event and
execute a bean method before displaying the popup.

Am I missing something, or is this an actual limitation?

I have tried to emulate this behavior using the Dialog framework, which
works as expected, unfortunatly, since the lightweight dialogs are modal and
cannot be moved from the center of the page, this isn't a usable solution to
my needs.

Furthermore, I'm using Trinidad version 1.0.7.


-- 
Best Regards,

Pedro Calção


Re: [Trinidad] about the cost of PPR

2008-04-23 Thread Scott O'Bryan
To comment again, I don't think you'll be able to "optimize" this 
further then Trinidad already has WITHOUT a change to JSF.  The 
lifecycle needs to run each JSF request by spec..  Of course  like 
Andrew said, there are ways to minimize this logic.


Scott

Andrew Robinson wrote:

Just a quick reply:

1) yes PPR is a full JSF request
2) Trinidad can cache the UIViewRoot on the server with its "hack" of
forcing client side state to use server side state with a client token
3) JSF 2.0 EG is currently discussing AJAX and state saving problems.
Lets hope they have an epiphany
4) You could attempt to write a custom state manager if you don't want
Trinidad's view caching but want to optimize PPR requests

-Andrew

On Wed, Apr 23, 2008 at 2:34 AM, Renzo Tomaselli
<[EMAIL PROTECTED]> wrote:
  

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 stuff returned to the client and
less DOM to update - but the business layer is fully involved as for
full-page requests.
For industrial applications this is usually the most significant cost.
Is this behavior a Trinidad-specific one, a side-effect of Ajax-JSF
coupling or anything which could be improved ?
I guess the hard point here is to wire PPR targets to subviews to
restore/render/save, but oops ! AFAIK such a concept doesn't even exist
in JSF.
There are just "views". So we must face full view handling in any case.
I was considering to be lazy in bean rendering for PPR - but it can't
work - what is saved is what we will restore next time - whether PPR or
full. No way.
Any comment is welcome.

-- Renzo








[Trinidad] Scrollable TreeTable

2008-04-23 Thread Shane Petroff

Hello,

It was relatively easy to use a tr:panelBorderLayout 'wrapper' to get a 
scrollable tr:treeTable, but the result is not particularly satisfying. 
This approach allows column headings to scroll out of view, which is 
something I'd rather avoid. Is it possible to have the component itself 
handle scrolling? Alternatively, how can I arrange a layout which can 
keep my own outputText components (and linework ugh...) aligned with the 
treeTable columns (I'm assuming that if I don't define headers  for the 
columns that they will be unadorned). Any possibilities for resizeable 
columns?


--
Shane



Re: [Trinidad] JS-Error dialog-Framework and

2008-04-23 Thread Scott O'Bryan
Yeah, Trinidad 1.2 won't run on Tomcat 5.  It's JSF 1.2 so it requires 
Tomcat 6.


Kuhn, Harald wrote:


Hi to all,

we are using Trinidad-1.2.8-SNAPSHOT while testing our application on 
tomcat 5.5.25 / Linux / Apache2.

Browser is Firefox 2.0.0.14.

There we get an JS-Exception on trying to open a dialog (i.e. calendar 
of ).

The message is:
uncaught exception: Right to read property Window._dependents denied.

From Firebug:
uncaught exception: Die Erlaubnis für das Lesen der Eigenschaft 
Window._dependents wurde verweigert
_getValidators(form#mainForm myReports.xhtml)DebugCommon1_2_8 
(line 8378)
_validateInline(form#mainForm myReports.xhtml, "j_id29", 
undefined)DebugCommon1_2_8 (line 6877)
_mainFormValidator(form#mainForm myReports.xhtml, 
"j_id29")settings.xhtml (line 143)
_validateForm(form#mainForm myReports.xhtml, 
"j_id29")DebugCommon1_2_8 (line 6749)
submitForm(form#mainForm myReports.xhtml, 1, Object source=j_id29, 
undefined)DebugCommon1_2_8 (line 7230)

onclick(click clientX=0, clientY=0)

Are there any know bugs/issues in the current SNAPSHOT-Release?

Even more weird is the fact that on Windows (tomcat 6.0.14) the 
calendar is shown, but if you choose a date the following message is 
shown:


Picture (Device Independent Bitmap)

Thanks for any hints.

  Harald


*/**/*
*/Harald Kuhn/*
*/AirPlus International/*
*/Business Information Services/*
*/Phone:   +49 (0) 61 02 204-821/*
*/Fax: +49 (0) 61 02 204-139/*
*/E-Mail:   [EMAIL PROTECTED]/*
*/Internet:  /**/_www.airplus.com_/* *//*
*/**/*

*AirPlus International - Winner of the Buying Business Travel Diamond 
Award 2008 for Best Corporate Card Provider*


Lufthansa AirPlus Servicekarten GmbH · Hans-Böckler-Straße 7 · 63263 
Neu-Isenburg · Deutschland · Geschäftsführer: Patrick W. Diemer 
(Vorsitz), Klaus Busch · Vorsitzender des Aufsichtsrates: Stephan 
Gemkow · Handelsregister: Amtsgericht Offenbach/Main, HRB 8119 */ /*







Dynamic columnGrouping

2008-04-23 Thread Nuno Sousa
Hi,

It's possible using trinidad or any other myfaces jsf impl to create a
dataTable with dynamic columnGrouping?
I.E. when i click in a column header it expands/collapses,
grouping/disgrouping columns.
Like if i have 3 column header rows, 1st for year and then a 2nd
header row with 12 columns for months and then a 3rd header row for
weeks, when i click in a month column header row it collapses his week
columns and sum the corresponding values in a unique column.

I think what i need is a reRender of the table associated with action
listeners, but for this this column headerrows need to be specified at
java beans.

I know this may be possible with normal columns, without any grouping,
at least in ICEFaces i saw that, but with columnGrouping i have no
idea how to set the header structure throw action listeners.

Any help/ideas are welcome :)


Regards


Nuno
-- 
Ping is just a number timming is everything


New to Trinidad need help with trees.

2008-04-23 Thread Nutulapati, Krishna
Hello all, 
The issues I have are as follows. 
I need to develop 2 screens.
1)ItemHome:-  In this jsf page, I need to have data table with 6
columns. One among these Columns need to have tree structure with check
boxes. The depth of the tree is 2 levels. 
Each node of the tree should contain an item as parent  and 2 sub Items
as children with checkboxes. User will select one among these items
(parent item) and clicks edit Item Tab. 
(Problem I have here is how to provide tree structure in the table with
checkboxes)


2)EditItem:- Here a data table is displayed with a selected master item,
and its subItems(at most   three),with radio buttons. User will select
one among these radiobuttons, and should able see the selected object in
the top panel in editable format. User should able to  edit the item/sub
Item  and save it in the database. 

Here the problem I have is displaying the objects in data table  with
radio buttons, and allow the user to select one among many radio
buttons. How can I capture the event of selected radio button in the
backing bean, and identify the object. (I could not able to find the
solution).

As I'm reaching deadlines, any of your help in these issues is highly
appreciated.
Plese suggest from where I can download the samples, and start working .


Environment  I'm using are as follows:-
jsf,spring,hibernate,facelets,websphere6.0 and db2.

Any of your help is highly apprecited.
Thanks
Krishna. 
 


Thanks
Krishna 


Tomahawk dataScroller Problem

2008-04-23 Thread Stephan Frai
Hello,

I am using the follwoing evironment:
Myfaces 1.2.2, Orchestra 1.1 Tomahawk 1.1.6, Faceletes 1.1.13

For paging our data tables we use the Tomahawk dataScroller.
Whenever we have commandLinks or commandButtons inside these tables strange
things are happening, and the table does not behave deterministic.

* Sometimes everything works fine (most of the times the first pages
works best)
* Sometimes when we click an commandLink or CommandButton the scroller
jumps randomly to the first or last page, and no action is executed.

Does anyone know this behaviour?
It seems like the wrong events are fired by clicking the links or buttons
inside the table. Instead of executing the action, the dataScroller switches
the page (as mentioned before: randomly to first or last page).

Could it be an orchestra issue?
Because before we integrated orchestra all beans were session scoped and it
seemed to work.
But I`m not sure about that.

Any ideas welcome!

Regards,

Stephan Frai





Re: facelets: custom component and custom converter

2008-04-23 Thread Andrew Robinson
Have you registered the converter in faces-config.xml properly? Please
post your configuration for your converter

On Wed, Apr 23, 2008 at 7:20 AM, arne anka <[EMAIL PROTECTED]> wrote:
> hi,
>  i got my custom component (faclets based, not tomahawk or trinidad,
> extending UIOutput) working so far -- but my converter is not executed.
>  if i attribute the converter to, say, h:outputText it works, so it seems to
> be ok.
>  my idea is, because i use my own rendere (getRendererType() returns null)
> maybe i need to call it myself?
>  if so, how do i get hold of the converter?
>
>  both with
>
>  
>
>  and with
>
>  
> 
>  
>
>  getConverter() always returns null
>
>  thanks in advance
>


Re: [Trinidad] Caret position

2008-04-23 Thread Andrew Robinson
One idea:
Look up the input text via document.getElementById(), then use JS to
get the caret position, set the value in an inputHidden and use that
control to decode the location and store it somewhere you have access
to.



On Wed, Apr 23, 2008 at 10:09 AM, Shane Petroff <[EMAIL PROTECTED]> wrote:
> Hello,
>
>  How can I get the current caret position from a tr:inputText component over
> to some server side code? I have an action which is used to open a dialog,
> and at that point I want to grab the current caret position for use in the
> dialog's return listener. Googling 'java Trinidad "caret position"' turns up
> virtually nothing, and searching for the erroneous label 'cursor' naturally
> turns up boatloads of pages related to the proper use of the word.
>
>  --
>  Shane
>
>


Re: facelets: custom component and custom converter

2008-04-23 Thread arne anka

snippet from faces-config.xml:



contentConverter
contentConverter

my.package.FaceletsElements.FedoraObjectContentConverter


as said before -- it works with standard components. so it seems to be  
something trivial i do not see.








On Wed, 23 Apr 2008 19:21:37 +0200, Andrew Robinson  
<[EMAIL PROTECTED]> wrote:



Have you registered the converter in faces-config.xml properly? Please
post your configuration for your converter

On Wed, Apr 23, 2008 at 7:20 AM, arne anka <[EMAIL PROTECTED]> wrote:

hi,
 i got my custom component (faclets based, not tomahawk or trinidad,
extending UIOutput) working so far -- but my converter is not executed.
 if i attribute the converter to, say, h:outputText it works, so it  
seems to

be ok.
 my idea is, because i use my own rendere (getRendererType() returns  
null)

maybe i need to call it myself?
 if so, how do i get hold of the converter?

 both with

 

 and with

 

 

 getConverter() always returns null

 thanks in advance






Re: Using a tr:panelPopup with dynamic content

2008-04-23 Thread Andrew Robinson
There is currently no way to show a dialog during a PPR or generate a
PPR from a popup trigger, so your best bet IMO is to:

1. Hide the panelPopup trigger.
2. Use a command link it your table
3. In the action of the command link:
  a. Add the popup as a partial target
  b. Send down JavaScript to open the popup programmatically.

Since the popup will be replaced via PPR you can use EL to change what
the popup looks like (tr:switcher, use of rendered attribute, etc.)

-Andrew


On Wed, Apr 23, 2008 at 10:30 AM, Pedro Calcao <[EMAIL PROTECTED]> wrote:
> Greetings,
>
> I have a page with a tr:table, in each row I would like to be able to use a
> tr:panelPopup to, on click, query the database and return me some aditional
> info on the row I clicked.
> So far, I've been unable to figure if there is a way to trigger an event and
> execute a bean method before displaying the popup.
>
> Am I missing something, or is this an actual limitation?
>
> I have tried to emulate this behavior using the Dialog framework, which
> works as expected, unfortunatly, since the lightweight dialogs are modal and
> cannot be moved from the center of the page, this isn't a usable solution to
> my needs.
>
> Furthermore, I'm using Trinidad version 1.0.7.
>
>
> --
> Best Regards,
>
> Pedro Calção


Re: facelets: custom component and custom converter

2008-04-23 Thread Andrew Robinson
I should have asked this earlier, what is my:component? Do you use
ui:component in the root of the xhtml file? Is there getConverter /
setConverter methods on the component?

If you could provide a small code snippet from the facelet and the
component that it uses that would help.

-Andrew

On Wed, Apr 23, 2008 at 11:31 AM, arne anka <[EMAIL PROTECTED]> wrote:
> snippet from faces-config.xml:
>  
> 
> 
> contentConverter
> contentConverter
>
> my.package.FaceletsElements.FedoraObjectContentConverter
>  
>
>  as said before -- it works with standard components. so it seems to be
> something trivial i do not see.
>
>
>
>
>
>
>
>
>
>  On Wed, 23 Apr 2008 19:21:37 +0200, Andrew Robinson
> <[EMAIL PROTECTED]> wrote:
>
>
> > Have you registered the converter in faces-config.xml properly? Please
> > post your configuration for your converter
> >
> > On Wed, Apr 23, 2008 at 7:20 AM, arne anka <[EMAIL PROTECTED]> wrote:
> >
> > > hi,
> > >  i got my custom component (faclets based, not tomahawk or trinidad,
> > > extending UIOutput) working so far -- but my converter is not executed.
> > >  if i attribute the converter to, say, h:outputText it works, so it
> seems to
> > > be ok.
> > >  my idea is, because i use my own rendere (getRendererType() returns
> null)
> > > maybe i need to call it myself?
> > >  if so, how do i get hold of the converter?
> > >
> > >  both with
> > >
> > >  
> > >
> > >  and with
> > >
> > >  
> > >
> > >  
> > >
> > >  getConverter() always returns null
> > >
> > >  thanks in advance
> > >
> > >
> >
>
>
>


Re: Using a tr:panelPopup with dynamic content

2008-04-23 Thread Pedro Calcao
Thanks for the answer :)

I understand the strategy you propose, except the part of sending down
Javascript to open the popup.
What exactly do you mean, how can I set this when returning from a PPR
action triggered by the command link?

Thanks again,

Pedro

On Wed, Apr 23, 2008 at 6:29 PM, Andrew Robinson <
[EMAIL PROTECTED]> wrote:

> There is currently no way to show a dialog during a PPR or generate a
> PPR from a popup trigger, so your best bet IMO is to:
>
> 1. Hide the panelPopup trigger.
> 2. Use a command link it your table
> 3. In the action of the command link:
>  a. Add the popup as a partial target
>  b. Send down JavaScript to open the popup programmatically.
>
> Since the popup will be replaced via PPR you can use EL to change what
> the popup looks like (tr:switcher, use of rendered attribute, etc.)
>
> -Andrew
>
>
> On Wed, Apr 23, 2008 at 10:30 AM, Pedro Calcao <[EMAIL PROTECTED]>
> wrote:
> > Greetings,
> >
> > I have a page with a tr:table, in each row I would like to be able to
> use a
> > tr:panelPopup to, on click, query the database and return me some
> aditional
> > info on the row I clicked.
> > So far, I've been unable to figure if there is a way to trigger an event
> and
> > execute a bean method before displaying the popup.
> >
> > Am I missing something, or is this an actual limitation?
> >
> > I have tried to emulate this behavior using the Dialog framework, which
> > works as expected, unfortunatly, since the lightweight dialogs are modal
> and
> > cannot be moved from the center of the page, this isn't a usable
> solution to
> > my needs.
> >
> > Furthermore, I'm using Trinidad version 1.0.7.
> >
> >
> > --
> > Best Regards,
> >
> > Pedro Calção
>



-- 
Os melhores cumprimentos,

Pedro Calção


Re: Using a tr:panelPopup with dynamic content

2008-04-23 Thread Andrew Robinson
Have a look at 
org.apache.myfaces.trinidad.render.ExtendedRenderKitService.addScript(FacesContext,
String). Use this to send a  element down to the client from
an action method (or custom component).

Then look in the popup JS code for the method to open the popup using
a client ID.

On Wed, Apr 23, 2008 at 12:07 PM, Pedro Calcao <[EMAIL PROTECTED]> wrote:
> Thanks for the answer :)
>
> I understand the strategy you propose, except the part of sending down
> Javascript to open the popup.
> What exactly do you mean, how can I set this when returning from a PPR
> action triggered by the command link?
>
> Thanks again,
>
> Pedro
>
>
>
> On Wed, Apr 23, 2008 at 6:29 PM, Andrew Robinson
> <[EMAIL PROTECTED]> wrote:
> > There is currently no way to show a dialog during a PPR or generate a
> > PPR from a popup trigger, so your best bet IMO is to:
> >
> > 1. Hide the panelPopup trigger.
> > 2. Use a command link it your table
> > 3. In the action of the command link:
> >  a. Add the popup as a partial target
> >  b. Send down JavaScript to open the popup programmatically.
> >
> > Since the popup will be replaced via PPR you can use EL to change what
> > the popup looks like (tr:switcher, use of rendered attribute, etc.)
> >
> > -Andrew
> >
> >
> >
> >
> >
> > On Wed, Apr 23, 2008 at 10:30 AM, Pedro Calcao <[EMAIL PROTECTED]>
> wrote:
> > > Greetings,
> > >
> > > I have a page with a tr:table, in each row I would like to be able to
> use a
> > > tr:panelPopup to, on click, query the database and return me some
> aditional
> > > info on the row I clicked.
> > > So far, I've been unable to figure if there is a way to trigger an event
> and
> > > execute a bean method before displaying the popup.
> > >
> > > Am I missing something, or is this an actual limitation?
> > >
> > > I have tried to emulate this behavior using the Dialog framework, which
> > > works as expected, unfortunatly, since the lightweight dialogs are modal
> and
> > > cannot be moved from the center of the page, this isn't a usable
> solution to
> > > my needs.
> > >
> > > Furthermore, I'm using Trinidad version 1.0.7.
> > >
> > >
> > > --
> > > Best Regards,
> > >
> > > Pedro Calção
> >
>
>
>
> --
> Os melhores cumprimentos,
>
> Pedro Calção


[orchestra] Question about orchestra

2008-04-23 Thread mario.buonopane
 

Hi, in my application I'm using Shale basic dialog manager and I need to
have two or more active dialogs on differents windows at same time. Now,
Shale does not work because it can manage just one dialog at the time.
Do I have any chance to use Orchestra to modify Shale and obtain the
expected result?

 

Thanks in advance

Mario 

 



This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.


RE: MyFaces Tree2 Component

2008-04-23 Thread spaduri

Hi Krishna

Have you finished your stuff..?
Let me know... I think we can do this...
If you want pointers let me know 

I can give some suggestions.


Suresh




Nutulapati, Krishna wrote:
> 
>  
> Hi Suresh,
> The issues I have are as follows. 
> I need to develop 2 screens.
> 1)ItemHome:-  In this jsf page, I need to have data table with 6
> columns. One among these 
> Columns need to have tree structure with check boxes. The depth of the
> tree is 2 levels. 
> Each node of the tree should contain an item as parent  and 2 sub Items
> as children with checkboxes. User will select one among these items
> (parent item) and clicks edit Item Tab. 
> (Problem I have here is how to provide tree structure in the table with
> checkboxes)
> 
> 
> 2)EditItem:- Here a data table is displayed with a selected master item,
> and its subItems(at most   three),with radio buttons. User will select
> one among these radiobuttons, and should able see the selected object in
> the top panel in editable format. User should able to  edit the item/sub
> Item  and save it in the database. 
> 
> Here the problem I have is displaying the objects in data table  with
> radio buttons, and allow the user to select one among many radio
> buttons. How can I capture the event of selected radio button in the
> backing bean, and identify the object. (I could not able to find the
> solution).
> 
> As I'm reaching deadlines, any of your help in these issues is highly
> appreciated. 
> I also attached the screens here, though I'm not sure whether you can
> receive them as attachment.  
> 
> Thanks
> Krishna 
> 
> A)From Gui I should 
> -Original Message-
> From: spaduri [mailto:[EMAIL PROTECTED] 
> Sent: Sunday, April 20, 2008 11:07 PM
> To: users@myfaces.apache.org
> Subject: RE: MyFaces Tree2 Component
> 
> 
> Hi Krishna
> Tomahawk, trinidad are alomost similar implementations I guess, just
> wondering what kind of customization you are working on the Tree...
> Can you explain the issue ..?
> 
> thanks
> Suresh
> 
> Thanks
> 
> Nutulapati, Krishna wrote:
>> 
>> Hi Jack,
>> Even I need to develop a tree strtucture with checkboxes to each node.
>> Trinad examples are appearing very gr8 for These features. But I'm 
>> unable to customise these  fetures. Do you have any specific ideas on 
>> Triniad?
>> Thanks
>> Krishna
>> 
>> -Original Message-
>> From: spaduri [mailto:[EMAIL PROTECTED]
>> Sent: Friday, April 18, 2008 3:06 PM
>> To: users@myfaces.apache.org
>> Subject: MyFaces Tree2 Component
>> 
>> 
>> Hi team
>> 
>> I am planning to recommend JSF and MyFaces for the development of the 
>> application.
>> like Navigation Tree on the left side, header, footer and body ..
>>  
>> 1) Can any one share a piece of code to develop Dynamic Navigation 
>> Tree(like ServerSideToggling ..I will get the data from backend based 
>> on the I will build the Tree with leafs, when we click on leafs we 
>> need to call action to redirect to other jsps ) we can achieve this 
>> using MyFaces Tree2 Component,Just wondering if anybody know some 
>> information, any info is appreciated.
>> 
>> thanks
>> Jack
>> --
>> View this message in context:
>> http://www.nabble.com/MyFaces-Tree2-Component-tp16764781p16764781.html
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>> 
>> 
>> 
> 
> --
> View this message in context:
> http://www.nabble.com/MyFaces-Tree2-Component-tp16764781p16802454.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> 
> 
>  
>  
> 

-- 
View this message in context: 
http://www.nabble.com/MyFaces-Tree2-Component-tp16764781p16834855.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: [orchestra] Question about orchestra

2008-04-23 Thread simon

On Wed, 2008-04-23 at 21:50 +0200, [EMAIL PROTECTED] wrote:
>  
> 
> Hi, in my application I’m using Shale basic dialog manager and I need
> to have two or more active dialogs on differents windows at same time.
> Now, Shale does not work because it can manage just one dialog at the
> time. Do I have any chance to use Orchestra to modify Shale and obtain
> the expected result?

I don't know a lot about Shale, so cannot offer any advice there.

Orchestra definitely does support multiple conversations at the same
time.

Regards,
Simon



RE: [orchestra] Question about orchestra

2008-04-23 Thread mario.buonopane
Simon, thank for the response.
I tried to read the documentation but I don't really anderstand what
Orchestra do. I understood that Orchestra give the possibility to define
a Managed Bean with a scope "Conversation". But how can start a
conversation?

Sorry if the answer is in some doc I did not read or understand! 

Thanks in advance
Mario 

-Original Message-
From: simon [mailto:[EMAIL PROTECTED] 
Sent: 24 aprile 2008 08.19
To: MyFaces Discussion
Subject: Re: [orchestra] Question about orchestra


On Wed, 2008-04-23 at 21:50 +0200, [EMAIL PROTECTED] wrote:
>  
> 
> Hi, in my application I'm using Shale basic dialog manager and I need
> to have two or more active dialogs on differents windows at same time.
> Now, Shale does not work because it can manage just one dialog at the
> time. Do I have any chance to use Orchestra to modify Shale and obtain
> the expected result?

I don't know a lot about Shale, so cannot offer any advice there.

Orchestra definitely does support multiple conversations at the same
time.

Regards,
Simon




This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.


RE: [Orchestra] Explicit conversation starting and nested conversations

2008-04-23 Thread mario.buonopane
Hi, I have an application using a Managed Bean with scope HttpSession to
store informations. My customer want use IE Tabs or more browser windows
to use the same function simultaneously. For axample, suppose a Call
Centre to manage Claims. The user is inserting data for a Claim reading
from a paper, receive a call and start to insert a new Claim in a new
browser window (or tab). At the moment I have two browser using the same
HttpSession, the same function and same shared data and my application
does not work!

What I understood is that with Orchestra I can define a Managed Bean
with scope "Conversation" to store data but I need that the two windows
have two differents "Converstion ID" and, obviously, two separate
instande of the same Managed Bean used to store conversation data.

Ciao
Mario

-Original Message-
From: Mario Ivankovits [mailto:[EMAIL PROTECTED] 
Sent: 1 aprile 2008 21.11
To: MyFaces Discussion
Subject: Re: [Orchestra] Explicit conversation starting and nested
conversations

Hi!
> Just to be clear, what you're saying is that you can't use the same
view in
> more than one conversation at a time?
>   
At the moment: yes!
As I wrote, this is something we will allow in the near future, but it
would require to have a page-flow configuration.
Hmmm  probably the new refactored conversationContext will allow it
programmatically too, not sure yet.

Anyway, I wonder why this is such an important feature ... As I wrote, I
think most cases can work with "nested-conversation-emulation" (tm ;-) )
and that will be much better in terms of memory usage - and also lowers
the chance to work with stale objects if these conversations are bound
to a persistence context.

Can you please outline some use-cases so we can put them in
consideration about how to solve that?

Ciao,
Mario




This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.