Re: [TOBAGO] Master-Detail

2010-03-11 Thread Udo Schnurpfeil

Hello Fernando,

here are the allowedValues = {click, dblclick} of event in 
tc:columnEvent (I've added this to the docu, now).


The tc:attribute is the Tobago-version for f:attribute. The allowed (and 
reasonable) values for name and value depends on the parent UIComponent.


Regards,

Udo

Fernando Augusto schrieb:

Thanks for your help, Marcus.

But now comes the doubt... Where can I find which column events can I 
work with? and, already referring to the last msg I sent, which 
attributes does tc:attribute accepts and when?


Regards,

Fernando Augusto

Marcus Kröger escreveu:

Hi Fernando,

pls have a look at the tobago addressbook example. There you can find a
solution how to react on click-events in a tobago sheet. For 
example, by

using

tc:columnEvent event=dblclick
tc:command action=#{controller.editAddress}/
/tc:columnEvent

you would react on a double click on the row. The addressbook example 
can be

found in the current build 1.0.24 below /example/addressbook and can be
started by using mvn jetty:run-expploded in the war directory.

Cheers
Marcus



2010/3/9 Fernando Augusto ferna...@osmanager.com.br

 

Hello,

I am new to Tobago and to JSF, and I got a problem while thinking in 
a way
to implement a master-detail form, or any way to show the details of 
a row
when clicked on somewhere. The problem is: that action needs to be 
performed
by a *single click* action, for usability reasons. I cant make the 
user to

select a row AND click a button.
I was doing it with plain JSF using a commandLink and f:param tag 
passing
the row ID to a method called by the actionListener and then 
redirecting,
using a static action, to another page. But my boss have seen how 
easy is to

make popups and form rendering in Tobago, and asked me to make a Tobago
version of our system. Everything seems to be pretty straightforward in
tobago, RANT except this and those weird and undocumented 
tc:attribute

uses... I still need to find anything about them... /RANT
So, is there a way to implement Master-Detail approach in Tobago???

Best Regards,

Fernando Augusto




  





RE: [Trinidad] NPE if User-Agent header is missing

2010-03-11 Thread Kuhn, Harald
Hi Matthias,

the issue is created:
https://issues.apache.org/jira/browse/TRINIDAD-1751

Regards

  Harald

Harald Kuhn
AirPlus International
Business Information Services
Dornhofstr. 36
63263 Neu-Isenburg
T  +49 (0) 61 02. 2 04 - 8 21
F  +49 (0) 61 02. 2 04 - 77 8 21
hk...@airplus.com
www.airplus.com



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



-Original Message-
From: mwessend...@gmail.com [mailto:mwessend...@gmail.com] On Behalf Of 
Matthias Wessendorf
Sent: Wednesday, March 10, 2010 4:12 PM
To: MyFaces Discussion
Subject: Re: [Trinidad] NPE if User-Agent header is missing

Hello Harald,

looks has been changed/removed in this rev:
http://svn.apache.org/viewvc?view=revisionrevision=820104

can you please file a ticket?

Tjhx,
M

On Wed, Mar 10, 2010 at 12:45 AM, Kuhn, Harald hk...@airplus.com wrote:

  Hi,



 after a upgrade from trinidad 1.2.11 to Trinidad 1.2.13 I get a
 NullPointerException from one of our monitoring scripts.

 Caused by: java.lang.NullPointerException

 at
 org.apache.myfaces.trinidadinternal.agent.AgentFactoryImpl._populateAgentImpl(AgentFactoryImpl.java:115)

 at
 org.apache.myfaces.trinidadinternal.agent.AgentFactoryImpl.createAgent(AgentFactoryImpl.java:65)

 at
 org.apache.myfaces.trinidadinternal.context.RequestContextImpl.getAgent(RequestContextImpl.java:695)

 at
 org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit.chooseRenderKit(CoreRenderKit.java:139)

 at
 org.apache.myfaces.trinidadinternal.renderkit.CoreRenderKitFactory.getRenderKit(CoreRenderKitFactory.java:52)



 While tracking this issue further down it showed that the monitoring script
 doesn’t send a User-Agent header along with the request.

 This case isn’t considered any more in
 AgentFactoryImpl._populateAgentImpl().



 The version from Trinidad 1.2.11 used to have the following code block:

 if (userAgent == null)

 {

   _populateUnknownAgentImpl(null, agent);

   return;

 }



 This block is missing within the sources of Trinidad 1.2.13.



 Is this a bug? Or are there any reasons why this check was dismissed?

 Should I file an issue?



 Regards



   Harald



 Harald Kuhn

 *AirPlus International *

 Business Information Services

 Dornhofstr. 36

 63263 Neu-Isenburg

 T  +49 (0) 61 02. 2 04 - 8 21

 F  +49 (0) 61 02. 2 04 - 77 8 21

 hk...@airplus.com

 www.airplus.com





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








--
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf


Re: [Trinidad] NPE if User-Agent header is missing

2010-03-11 Thread Matthias Wessendorf
hi,

yeah I saw it, thanks.

-Matthias

On Thu, Mar 11, 2010 at 1:02 AM, Kuhn, Harald hk...@airplus.com wrote:
 Hi Matthias,

 the issue is created:
 https://issues.apache.org/jira/browse/TRINIDAD-1751

 Regards

  Harald

 Harald Kuhn
 AirPlus International
 Business Information Services
 Dornhofstr. 36
 63263 Neu-Isenburg
 T  +49 (0) 61 02. 2 04 - 8 21
 F  +49 (0) 61 02. 2 04 - 77 8 21
 hk...@airplus.com
 www.airplus.com



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



 -Original Message-
 From: mwessend...@gmail.com [mailto:mwessend...@gmail.com] On Behalf Of 
 Matthias Wessendorf
 Sent: Wednesday, March 10, 2010 4:12 PM
 To: MyFaces Discussion
 Subject: Re: [Trinidad] NPE if User-Agent header is missing

 Hello Harald,

 looks has been changed/removed in this rev:
 http://svn.apache.org/viewvc?view=revisionrevision=820104

 can you please file a ticket?

 Tjhx,
 M

 On Wed, Mar 10, 2010 at 12:45 AM, Kuhn, Harald hk...@airplus.com wrote:

  Hi,



 after a upgrade from trinidad 1.2.11 to Trinidad 1.2.13 I get a
 NullPointerException from one of our monitoring scripts.

 Caused by: java.lang.NullPointerException

         at
 org.apache.myfaces.trinidadinternal.agent.AgentFactoryImpl._populateAgentImpl(AgentFactoryImpl.java:115)

         at
 org.apache.myfaces.trinidadinternal.agent.AgentFactoryImpl.createAgent(AgentFactoryImpl.java:65)

         at
 org.apache.myfaces.trinidadinternal.context.RequestContextImpl.getAgent(RequestContextImpl.java:695)

         at
 org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit.chooseRenderKit(CoreRenderKit.java:139)

         at
 org.apache.myfaces.trinidadinternal.renderkit.CoreRenderKitFactory.getRenderKit(CoreRenderKitFactory.java:52)



 While tracking this issue further down it showed that the monitoring script
 doesn’t send a User-Agent header along with the request.

 This case isn’t considered any more in
 AgentFactoryImpl._populateAgentImpl().



 The version from Trinidad 1.2.11 used to have the following code block:

 if (userAgent == null)

     {

       _populateUnknownAgentImpl(null, agent);

       return;

     }



 This block is missing within the sources of Trinidad 1.2.13.



 Is this a bug? Or are there any reasons why this check was dismissed?

 Should I file an issue?



 Regards



   Harald



 Harald Kuhn

 *AirPlus International *

 Business Information Services

 Dornhofstr. 36

 63263 Neu-Isenburg

 T  +49 (0) 61 02. 2 04 - 8 21

 F  +49 (0) 61 02. 2 04 - 77 8 21

 hk...@airplus.com

 www.airplus.com





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








 --
 Matthias Wessendorf

 blog: http://matthiaswessendorf.wordpress.com/
 sessions: http://www.slideshare.net/mwessendorf
 twitter: http://twitter.com/mwessendorf




-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf