Re: [ANN] Jazoon 2010 Talk (JavaServer Faces 2.0 vs. Tapestry 5: A Head-to-Head Comparison)

2010-04-01 Thread Igor Drobiazko
On Wed, Mar 31, 2010 at 9:49 AM, Christian Riedel
cr.ml...@googlemail.comwrote:

 ...do you have some free tickets? :)


Unfortunately not.


 Looking at the other talks it almost seems like a JSF 2.0 convention. Good
 luck for surviving the QA!


There are only 3 JSF-Talks. I would not say this is a JSF convention like
JAX 2010 [1] and [2].

http://it-republik.de/konferenzen/jax2010/session/?tid=1502
http://it-republik.de/konferenzen/jax2010/session/?tid=1503



 Am 31.03.2010 um 02:46 schrieb Howard Lewis Ship:

  Yep, it sounds like fun.  I'm curious to see your findings. I hope
  that the balance is on Tapestry for the stronger architecture and
  (reasonably) JSF for the market acceptance, but I'm sure there's some
  worthwhile ideas somewhere inside JSF waiting to be stolen!
 
 
  On Tue, Mar 30, 2010 at 3:24 PM, Andreas Andreou andy...@di.uoa.gr
 wrote:
  That's some great news for:
  - tapestry
  - the attendants
  - yourself!
 
  Way to go Igor.
 
  On Tue, Mar 30, 2010 at 23:05, Igor Drobiazko igor.drobia...@gmail.com
 wrote:
  Hi folks,
 
  in June I'll be speaking at Jazoon 2010 [1] in Zurich, Switzerland.
 I'll be
  presenting a 50 minutes talk JavaServer Faces 2.0 vs. Tapestry 5: A
  Head-to-Head Comparison. More information about the presentation can
 be
  found at my blog [2]:
 
  [1] http://jazoon.com
  [2]
 
 http://blog.tapestry5.de/index.php/2010/03/30/jazoon-2010-talk-javaserver-faces-2-0-vs-tapestry-5/
 
  I hope to see some Tapestry folks at the conference.
 
  --
  Best regards,
 
  Igor Drobiazko
  http://tapestry5.de/blog
 
 
 
 
  --
  Andreas Andreou - andy...@apache.org - http://blog.andyhot.gr
  Tapestry / Tacos developer
  Open Source / JEE Consulting
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
  For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 
 
 
  --
  Howard M. Lewis Ship
 
  Creator of Apache Tapestry
 
  The source for Tapestry training, mentoring and support. Contact me to
  learn how I can get you up and productive in Tapestry fast!
 
  (971) 678-5210
  http://howardlewisship.com
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
  For additional commands, e-mail: users-h...@tapestry.apache.org
 


 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




-- 
Best regards,

Igor Drobiazko
http://tapestry5.de/blog


Re: Tapestry and SeeSaw talk

2010-04-01 Thread Ben Gidley
Ok - try http://www.vimeo.com/10588204 - this time it is hosted on my vimeo
accout and set to be public.


Ben Gidley

www.gidley.co.uk
b...@gidley.co.uk


On Wed, Mar 31, 2010 at 8:41 PM, Christian Edward Gruber 
christianedwardgru...@gmail.com wrote:

 Likewise.  I'd love to see it.

 Christian.


 On Mar 31, 2010, at 1:34 PM, Ivano Luberti wrote:

  Keep getting a permission denied message

 Il 26/03/2010 17.03, Ben Gidley ha scritto:

 Hi,

 Skillsmatter have changed the permissions - so it may work better now or
 try
 http://vimeo.com/10399058
 Ben Gidley

 www.gidley.co.uk
 b...@gidley.co.uk


 On Thu, Mar 25, 2010 at 9:05 PM, Felix Gonschorek 
 felix.gonscho...@gmail.com wrote:


  hi ben,

 i am very interested in watching your podcast/video, but somehow this is
 not possible. Instead of the video is see a Sorry message from vimeo,
 saying that i am not allowed to watch your file. Do you have any access
 restrictions activated?

 I would really apreciate to watch your talk.

 Thank you!

 Felix

 Am 24.03.2010 18:29, schrieb Ben Gidley:

 Hi,

  I did a talk last night on how we used tapestry for SeeSaw.com and if
 you
 are interested there is a video podcast at

 http://skillsmatter.com/podcast/java-jee/tapestry-5-in-action-for-realand
 the slides are at links.gidley.co.uk/tiafr

 Ben Gidley

 www.gidley.co.uk
 b...@gidley.co.uk



  -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org





 --
 ==
 dott. Ivano Mario Luberti
 Archimede Informatica societa' cooperativa a r. l.
 Sede Operativa
 Via Gereschi 36 - 56126- Pisa
 tel.: +39-050- 580959
 tel/fax: +39-050-9711344
 web: www.archicoop.it
 ==


 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




Re: Grid: Customizing cell CSS based on property value

2010-04-01 Thread Stephan Windmüller

On 31.03.2010 20:31 matias.blasi wrote:


Although Tapestry Grid don't allow you to specify cell CSS style, you can do
something like this:

t:grid t:source=objects t:row=o
 p:somepropertycell
 div class=somepropertystyleclass${o.someproperty}/div
 /p:somepropertycell
/t:grid


Of course, but I want to change the background-color of the whole cell.

- Stephan

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Tapestry and SeeSaw talk

2010-04-01 Thread Robin Komiwes
Private for me :)

On Thu, Apr 1, 2010 at 8:28 AM, Ben Gidley b...@gidley.co.uk wrote:
 Ok - try http://www.vimeo.com/10588204 - this time it is hosted on my vimeo
 accout and set to be public.


 Ben Gidley

 www.gidley.co.uk
 b...@gidley.co.uk


 On Wed, Mar 31, 2010 at 8:41 PM, Christian Edward Gruber 
 christianedwardgru...@gmail.com wrote:

 Likewise.  I'd love to see it.

 Christian.


 On Mar 31, 2010, at 1:34 PM, Ivano Luberti wrote:

  Keep getting a permission denied message

 Il 26/03/2010 17.03, Ben Gidley ha scritto:

 Hi,

 Skillsmatter have changed the permissions - so it may work better now or
 try
 http://vimeo.com/10399058
 Ben Gidley

 www.gidley.co.uk
 b...@gidley.co.uk


 On Thu, Mar 25, 2010 at 9:05 PM, Felix Gonschorek 
 felix.gonscho...@gmail.com wrote:


  hi ben,

 i am very interested in watching your podcast/video, but somehow this is
 not possible. Instead of the video is see a Sorry message from vimeo,
 saying that i am not allowed to watch your file. Do you have any access
 restrictions activated?

 I would really apreciate to watch your talk.

 Thank you!

 Felix

 Am 24.03.2010 18:29, schrieb Ben Gidley:

 Hi,

  I did a talk last night on how we used tapestry for SeeSaw.com and if
 you
 are interested there is a video podcast at

 http://skillsmatter.com/podcast/java-jee/tapestry-5-in-action-for-realand
 the slides are at links.gidley.co.uk/tiafr

 Ben Gidley

 www.gidley.co.uk
 b...@gidley.co.uk



  -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org





 --
 ==
 dott. Ivano Mario Luberti
 Archimede Informatica societa' cooperativa a r. l.
 Sede Operativa
 Via Gereschi 36 - 56126- Pisa
 tel.: +39-050- 580959
 tel/fax: +39-050-9711344
 web: www.archicoop.it
 ==


 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Tapestry and SeeSaw talk

2010-04-01 Thread Mark Allan
Me too.  I even created a Vimeo account as the original error message  
wasn't very helpful, leading me to think that 'private' just meant you  
needed to be a Vimeo user, but I'm still getting:

Sorry, you do not have permission to watch this private video.

Mark

On 1 Apr 2010, at 8:18 am, Robin Komiwes wrote:


Private for me :)

On Thu, Apr 1, 2010 at 8:28 AM, Ben Gidley b...@gidley.co.uk wrote:
Ok - try http://www.vimeo.com/10588204 - this time it is hosted on  
my vimeo

accout and set to be public.


Ben Gidley

www.gidley.co.uk
b...@gidley.co.uk


On Wed, Mar 31, 2010 at 8:41 PM, Christian Edward Gruber 
christianedwardgru...@gmail.com wrote:


Likewise.  I'd love to see it.

Christian.


On Mar 31, 2010, at 1:34 PM, Ivano Luberti wrote:

 Keep getting a permission denied message


Il 26/03/2010 17.03, Ben Gidley ha scritto:


Hi,

Skillsmatter have changed the permissions - so it may work  
better now or

try
http://vimeo.com/10399058
Ben Gidley

www.gidley.co.uk
b...@gidley.co.uk


On Thu, Mar 25, 2010 at 9:05 PM, Felix Gonschorek 
felix.gonscho...@gmail.com wrote:


 hi ben,


i am very interested in watching your podcast/video, but  
somehow this is
not possible. Instead of the video is see a Sorry message  
from vimeo,
saying that i am not allowed to watch your file. Do you have  
any access

restrictions activated?

I would really apreciate to watch your talk.

Thank you!

Felix

Am 24.03.2010 18:29, schrieb Ben Gidley:

Hi,

 I did a talk last night on how we used tapestry for SeeSaw.com  
and if

you
are interested there is a video podcast at

http://skillsmatter.com/podcast/java-jee/tapestry-5-in-action-for-realand
the slides are at links.gidley.co.uk/tiafr

Ben Gidley

www.gidley.co.uk
b...@gidley.co.uk



  
-

To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org







--
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org






-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org





--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Tapestry and SeeSaw talk

2010-04-01 Thread Ben Gidley
Ok mk27 - try now.

I think next time I want to host some video I will DIY it

Ben Gidley

www.gidley.co.uk
b...@gidley.co.uk


On Thu, Apr 1, 2010 at 9:02 AM, Mark Allan mark.al...@ed.ac.uk wrote:

 Me too.  I even created a Vimeo account as the original error message
 wasn't very helpful, leading me to think that 'private' just meant you
 needed to be a Vimeo user, but I'm still getting:
Sorry, you do not have permission to watch this private video.

 Mark


 On 1 Apr 2010, at 8:18 am, Robin Komiwes wrote:

  Private for me :)

 On Thu, Apr 1, 2010 at 8:28 AM, Ben Gidley b...@gidley.co.uk wrote:

 Ok - try http://www.vimeo.com/10588204 - this time it is hosted on my
 vimeo
 accout and set to be public.


 Ben Gidley

 www.gidley.co.uk
 b...@gidley.co.uk


 On Wed, Mar 31, 2010 at 8:41 PM, Christian Edward Gruber 
 christianedwardgru...@gmail.com wrote:

  Likewise.  I'd love to see it.

 Christian.


 On Mar 31, 2010, at 1:34 PM, Ivano Luberti wrote:

  Keep getting a permission denied message


 Il 26/03/2010 17.03, Ben Gidley ha scritto:

  Hi,

 Skillsmatter have changed the permissions - so it may work better now
 or
 try
 http://vimeo.com/10399058
 Ben Gidley

 www.gidley.co.uk
 b...@gidley.co.uk


 On Thu, Mar 25, 2010 at 9:05 PM, Felix Gonschorek 
 felix.gonscho...@gmail.com wrote:


  hi ben,


 i am very interested in watching your podcast/video, but somehow this
 is
 not possible. Instead of the video is see a Sorry message from
 vimeo,
 saying that i am not allowed to watch your file. Do you have any
 access
 restrictions activated?

 I would really apreciate to watch your talk.

 Thank you!

 Felix

 Am 24.03.2010 18:29, schrieb Ben Gidley:

 Hi,

  I did a talk last night on how we used tapestry for SeeSaw.com and
 if

 you
 are interested there is a video podcast at


 http://skillsmatter.com/podcast/java-jee/tapestry-5-in-action-for-realand
 the slides are at links.gidley.co.uk/tiafr

 Ben Gidley

 www.gidley.co.uk
 b...@gidley.co.uk




  -

 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org





  --
 ==
 dott. Ivano Mario Luberti
 Archimede Informatica societa' cooperativa a r. l.
 Sede Operativa
 Via Gereschi 36 - 56126- Pisa
 tel.: +39-050- 580959
 tel/fax: +39-050-9711344
 web: www.archicoop.it
 ==


 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




 --
 The University of Edinburgh is a charitable body, registered in
 Scotland, with registration number SC005336.



 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




Re: Grid: Customizing cell CSS based on property value

2010-04-01 Thread matias.blasi

page.tml:

t:grid t:source=objects t:row=o
 p:somepropertycell
 div class=${somestyleclass}${o.someproperty}/div
 /p:somepropertycell
/t:grid

app.css:

.somestyleclass {
   background-color:red;
   width: 100%;
   height: 100%;
}

doesn't it works?


Stephan Windmüller-8 wrote:
 
 On 31.03.2010 20:31 matias.blasi wrote:
 
 Although Tapestry Grid don't allow you to specify cell CSS style, you can
 do
 something like this:

 t:grid t:source=objects t:row=o
  p:somepropertycell
  div class=somepropertystyleclass${o.someproperty}/div
  /p:somepropertycell
 /t:grid
 
 Of course, but I want to change the background-color of the whole cell.
 
 - Stephan
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/Grid%3A-Customizing-cell-CSS-based-on-property-value-tp28083380p28106874.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Grid: Customizing cell CSS based on property value

2010-04-01 Thread Stephan Windmüller

Am 01.04.2010 12:28, schrieb matias.blasi:


page.tml:

t:grid t:source=objects t:row=o
  p:somepropertycell
  div class=${somestyleclass}${o.someproperty}/div
  /p:somepropertycell
/t:grid

app.css:

.somestyleclass {
background-color:red;
width: 100%;
height: 100%;
}

doesn't it works?


No, this was my first try. ;)

- Stephan

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: submit form on Safari and Opera doesn't work

2010-04-01 Thread Thiago H. de Paula Figueiredo

On Thu, 01 Apr 2010 02:25:48 -0300, LiborGMC l.pre...@gmc.net wrote:


This code works for me on Firefox 3 and IE8. It doesn't work on Safari 4,
Opera 9.64.


Why Opera 9.64? The latest version is 10.52 in Windows, 10.1 in other  
operating systems.


I'm an Opera fan, use it all the time, including e-mail throgh IMAP and I  
always test my applications in it. Never had a problem with it.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, software architect and developer, Ars Machina Tecnologia da  
Informação Ltda.

http://www.arsmachina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Res: Res: Res: [T5.1] Best approach to Nested Combos on Forms

2010-04-01 Thread Everton Agner
I'm not talking only about the Combos itself... Any other field from the form 
loses it's value when the Zone is updated... So, the plan is to send every 
field value?





De: Geoff Callender geoff.callender.jumpst...@gmail.com
Para: Tapestry users users@tapestry.apache.org
Enviadas: Quarta-feira, 31 de Março de 2010 20:30:12
Assunto: Re: Res: Res: [T5.1] Best approach to Nested Combos on Forms

Or carry the 1at and 2nd combo selection info into the 3rd combo values too, 
eg. USA | San Francisco | SomeName. No?

On 01/04/2010, at 3:55 AM, Everton Agner wrote:

 Yes, there is also the problem that, if there is more than two nested combos, 
 the First Combo's selected option is lost when the Second Combo option is 
 selected (and fills/filters the third combo).
 
 So, the easier way out is really updating the properties values (in the Page 
 Class instance) by Ajax in every onBlur() on each field?
 
 
 Corrections:
 
 1 - After the /t:form , there is a /div tag, not a div
 
 
 2 - Its So, since everything is inside the updateZone DIV, every field is 
 refreshed and lost their values.
 
 
 
 
 De: Geoff Callender geoff.callender.jumpst...@gmail.com
 Para: Tapestry users users@tapestry.apache.org
 Enviadas: Terça-feira, 30 de Março de 2010 19:44:29
 Assunto: Re: Res: [T5.1] Best approach to Nested Combos on Forms
 
 The origin of the problem is that the context passed to ZoneUpdater has only 
 one piece of information - the value of the option you selected. No other 
 context is received. So the server-side must get the rest of the context from 
 either (a) the session, eg. by saving country and city in the session on 
 output by using @Persist; or (b) saving them in a conversation persisted in 
 the session or the database, which avoids the side-effects of @Persist; or 
 (c) including the context in the value of the option selected, eg. when city 
 option San Francisco is chosen, the value passed could be USA | San 
 Francisco.
 
 Are there any other alternatives? Well maybe there's a way to use 
 ZoneUpdater's context parameter, but I'm not sure. So (c) is looking pretty 
 good.
 
 HTH,
 
 Geoff
 
 On 31/03/2010, at 6:53 AM, Everton Agner wrote:
 
 Just to show the example cleaner...
 
 
 div t:id=updateZone t:type=zone
 
 t:form ... /
   p:country
   !-- The nested combo that refresh the cities combo by the 
 ZoneUpdater mixin--
   /p:country
   p:city
   !-- The combo which it's content it's updated by the change of the 
 Country combo --
   /p:city
   p:name
   t:label ... /
   t:textfield id=name ... /
   /p:name
   ...
 /t:form
 
 
 div t:id=updateZone t:type=zone
 
 
 So, since everything is inside the updateZone combo, every field is 
 refreshed and lost their values.
 
 
 Thanks!
 
 - Everton
 
 
 
 
 De: Everton Agner everton_ag...@yahoo.com.br
 Para: Tapestry Users users@tapestry.apache.org
 Enviadas: Terça-feira, 30 de Março de 2010 16:39:37
 Assunto: [T5.1] Best approach to Nested Combos on Forms
 
 
 Hi,
 
 I'd like to know which is the cleaner way to work with nesting on Forms on 
 T5.
 
 I saw a project with the ZoneUpdater mixin... But, to preserve the values 
 from the Form - to reload them after the refresh - it needed to @Persist the 
 values and update them everytime the fields lost their focus.
 
 Example:
 
 t:textfield clientEvent=change event=changeName 
 zone=updateZone t:mixins=zoneUpdater 
 t:value=current.name t:id=name 
 t:validate=required size=30/
 
 So, there is a changeName() method in the Page Class to update the name 
 field value - which is @Persist'ed.
 
 I don't like the way it sounds. Is there another way to achieve the nesting 
 and preserve the Form fields values?
 
 Thanks
 
 - Everton
 
 
 Veja quais são os assuntos do momento no Yahoo! + Buscados: Top 10 - 
 Celebridades - Música - Esportes
 
 
 
 
 Veja quais são os assuntos do momento no Yahoo! +Buscados
 http://br.maisbuscados.yahoo.com
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
  
 
 Veja quais são os assuntos do momento no Yahoo! +Buscados
 http://br.maisbuscados.yahoo.com


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org


  

Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com

Re: submit form on Safari and Opera doesn't work

2010-04-01 Thread Thiago H. de Paula Figueiredo

On Thu, 01 Apr 2010 02:25:48 -0300, LiborGMC l.pre...@gmc.net wrote:

I've tried use Opera debugger just make sure that JS code with submit  
form is called. Yes it is.


I've tested your code in Opera 10.10 in Linux and it worked perfectly. I  
just added a link to submit the:


a href=# id=link  
onclick=document.getElementById('paTableForm').submit()Submit/a


I haven't used JavaScript the right (using a listener instead of onclick)  
way because I wanted to do a test in a short time.


By the way, there's a LinkSubmit component in Tapestry.


Java page:
@IncludeJavaScriptLibrary(context:js/index.js)
public class Index {

@Inject
private ComponentResources resources;

@Property
@Persist
private String name;

@Property
@Persist
private String result;

public Object onSubmitFromPaTableForm(){
return getCurrentPageName();
}


If you want this page to be rendered, return void or null. In you above  
method, you're forcing a redirect that is not needed.




 @OnEvent(component=handleAction)
public Object handleAction(){
 System.out.println( name);
 result = name;
 return getCurrentPageName();
 }


This method is never invoked because there isn't a handleAction component.  
Thus, the result field is never updated.



This code works for me on Firefox 3 and IE8. It doesn't work on Safari 4,
Opera 9.64.


What do you mean by this code doesn't work?

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, software architect and developer, Ars Machina Tecnologia da  
Informação Ltda.

http://www.arsmachina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Grid: Customizing cell CSS based on property value

2010-04-01 Thread Dmitry Gusev
Give it another try, like this:

style
   table.t-data-grid tbody tr td.lastPingSummary { /* here may be
selector for your column */
   padding: 0px; /* remove padding from all column cells to avoid
left and right space */
   }
   .red {
   background-color: red;
   line-height: 20px; /* set div's line height to remove top-bottom
space */
   padding-left: 2px; /* add some padding to your div */
   padding-right: 2px;
   }
/style

t:grid empty=No jobs source=jobs row=job ...

t:parameter name=lastPingSummaryCell
div class=${summaryStatusCssClass},
red${lastPingSummary}/div
/t:parameter

I just checked this on my app - its working as expected. But I'm using
different way to highlight cells in my app: I'm changing text color in my
div's, I think this looks prettier :)

HTH

On Thu, Apr 1, 2010 at 15:21, Stephan Windmüller 
stephan.windmuel...@cs.tu-dortmund.de wrote:

 Am 01.04.2010 12:28, schrieb matias.blasi:


  page.tml:

 t:grid t:source=objects t:row=o
  p:somepropertycell
  div class=${somestyleclass}${o.someproperty}/div
  /p:somepropertycell
 /t:grid

 app.css:

 .somestyleclass {
background-color:red;
width: 100%;
height: 100%;
 }

 doesn't it works?


 No, this was my first try. ;)


 - Stephan

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




-- 
Dmitry Gusev

AnjLab Team
http://anjlab.com


Re: Page without markup

2010-04-01 Thread Dmitry Gusev
I don't like Dispatcher approach in one reason: using Dispatchers I will
have to route incoming requests myself and pick (instantiate?) concrete task
handler (and, maybe, manage their state?). In this case using pages is
preferred for me.
However I also refused to return StreamResponse from onActivate, since
keeping onActivate simple is a good approach I think.

For now I ended up with the following:

1. I declared custom metadata symbol (I named it NO_MARKUP) and annotated
all task handler pages with this metadata.
2. I contributed markupRenderer as a first renderer in chain and in there
I'm checking if page class contatins declared annotation. If it presents, I
simply return html/html as a response.

Here's the code in AppModule:

/*
 * Support pages without markup
 */
private static final String NO_MARKUP_SYMBOL = NoMarkup;
public static final String NO_MARKUP = NO_MARKUP_SYMBOL + =true;

public static void contributeFactoryDefaults(MappedConfigurationString,
String configuration)
{
configuration.add(NO_MARKUP_SYMBOL, );
}

public void
contributeMarkupRenderer(OrderedConfigurationMarkupRendererFilter
configuration,
 final MetaDataLocator
metaDataLocator,
 final ComponentEventLinkEncoder
linkEncoder,
 final RequestGlobals globals)
{
configuration.add(NO_MARKUP_SYMBOL,
new MarkupRendererFilter()
{
@Override
public void renderMarkup(MarkupWriter writer, MarkupRenderer
renderer) {
PageRenderRequestParameters parameters =
linkEncoder.decodePageRenderRequest(globals.getRequest());

boolean noMarkup =
metaDataLocator.findMeta(NO_MARKUP_SYMBOL, parameters.getLogicalPageName(),

Boolean.class);

if (noMarkup) {
//  Provide default (empty) markup
writer.element(html);
} else {
renderer.renderMarkup(writer);
}
}
}, before:*);
}

and an example of task class declaration:

@Meta(AppModule.NO_MARKUP)
public abstract class LongRunningQueryTask {


Hope this will help somebody else.

On Wed, Mar 31, 2010 at 15:44, Thiago H. de Paula Figueiredo 
thiag...@gmail.com wrote:

 On Wed, 31 Mar 2010 05:30:49 -0300, Dmitry Gusev dmitry.gu...@gmail.com
 wrote:

  Can't get it working with Dispatcher.


 Take a look at
 http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatcher.


  Where should I plug new dispatcher


 It must be contributed to the MasterDispatcher service.


  and what should a dispatcher do?


 A dispatcher is a class that handles requests and generates a response. In
 Tapestry, it's the concept more similar to a servlet. In your case, as you
 don't need to generate a response, it would be a better fit than a page.


  Do you propose to replaces pages with
 dispatchers?


 No, just to handle URLs that don't generate a response.


  Or just make dispatcher which somehow says to Tapestry that
 specified page doesn't contain any template file?


 No. A dispatcher is completely different from a page.


  I tried to add new dispatcher to both before:PageRender and
 after:PageRender but didn't have any success. The one in
 after:PageRender never ever invoked. And handlign request in
 before:PageRender prevents executing page's onActivate at all.


 In this case, the dispatcher would replace the page that handles the GAE
 callback. Don't forget that the boolean dispatch(Request request, Response
 response) throws IOException method must return false for requests not
 really handled by the dispatcher.


 --
 Thiago H. de Paula Figueiredo
 Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
 and instructor
 Owner, software architect and developer, Ars Machina Tecnologia da
 Informação Ltda.
 http://www.arsmachina.com.br

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




-- 
Dmitry Gusev

AnjLab Team
http://anjlab.com


Re: Page without markup

2010-04-01 Thread Thiago H. de Paula Figueiredo
On Thu, 01 Apr 2010 10:50:44 -0300, Dmitry Gusev dmitry.gu...@gmail.com  
wrote:



I don't like Dispatcher approach in one reason: using Dispatchers I will
have to route incoming requests myself


That's right.

and pick (instantiate?) concrete task handler (and, maybe, manage their  
state?). In this case using pages is

preferred for me.
However I also refused to return StreamResponse from onActivate, since
keeping onActivate simple is a good approach I think.

For now I ended up with the following:

1. I declared custom metadata symbol (I named it NO_MARKUP) and annotated
all task handler pages with this metadata.
2. I contributed markupRenderer as a first renderer in chain and in there
I'm checking if page class contatins declared annotation. If it  
presents, I

simply return html/html as a response.

Here's the code in AppModule:

/*
 * Support pages without markup
 */
private static final String NO_MARKUP_SYMBOL = NoMarkup;
public static final String NO_MARKUP = NO_MARKUP_SYMBOL + =true;

public static void  
contributeFactoryDefaults(MappedConfigurationString,

String configuration)
{
configuration.add(NO_MARKUP_SYMBOL, );
}

public void
contributeMarkupRenderer(OrderedConfigurationMarkupRendererFilter
configuration,
 final MetaDataLocator
metaDataLocator,
 final ComponentEventLinkEncoder
linkEncoder,
 final RequestGlobals globals)
{
configuration.add(NO_MARKUP_SYMBOL,
new MarkupRendererFilter()
{
@Override
public void renderMarkup(MarkupWriter writer,  
MarkupRenderer

renderer) {
PageRenderRequestParameters parameters =
linkEncoder.decodePageRenderRequest(globals.getRequest());

boolean noMarkup =
metaDataLocator.findMeta(NO_MARKUP_SYMBOL,  
parameters.getLogicalPageName(),


Boolean.class);

if (noMarkup) {
//  Provide default (empty) markup
writer.element(html);
} else {
renderer.renderMarkup(writer);
}
}
}, before:*);
}

and an example of task class declaration:

@Meta(AppModule.NO_MARKUP)
public abstract class LongRunningQueryTask {


Hope this will help somebody else.

On Wed, Mar 31, 2010 at 15:44, Thiago H. de Paula Figueiredo 
thiag...@gmail.com wrote:

On Wed, 31 Mar 2010 05:30:49 -0300, Dmitry Gusev  
dmitry.gu...@gmail.com

wrote:

 Can't get it working with Dispatcher.




Take a look at
http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatcher.


 Where should I plug new dispatcher




It must be contributed to the MasterDispatcher service.


 and what should a dispatcher do?




A dispatcher is a class that handles requests and generates a response.  
In
Tapestry, it's the concept more similar to a servlet. In your case, as  
you

don't need to generate a response, it would be a better fit than a page.


 Do you propose to replaces pages with

dispatchers?



No, just to handle URLs that don't generate a response.


 Or just make dispatcher which somehow says to Tapestry that

specified page doesn't contain any template file?



No. A dispatcher is completely different from a page.


 I tried to add new dispatcher to both before:PageRender and

after:PageRender but didn't have any success. The one in
after:PageRender never ever invoked. And handlign request in
before:PageRender prevents executing page's onActivate at all.



In this case, the dispatcher would replace the page that handles the GAE
callback. Don't forget that the boolean dispatch(Request request,  
Response

response) throws IOException method must return false for requests not
really handled by the dispatcher.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, software architect and developer, Ars Machina Tecnologia da
Informação Ltda.
http://www.arsmachina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org








--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, software architect and developer, Ars Machina Tecnologia da  
Informação Ltda.
Coordenador e professor da Especialização em Engenharia de Software com  
Ênfase em Java da Faculdade Pitágoras

Consultor, desenvolvedor e instrutor em Java, Tapestry e Hibernate
Sócio, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: 

Re: Page without markup

2010-04-01 Thread Thiago H. de Paula Figueiredo

(Answering again as I accidently hit the send button)

On Thu, 01 Apr 2010 10:50:44 -0300, Dmitry Gusev dmitry.gu...@gmail.com  
wrote:



I don't like Dispatcher approach in one reason: using Dispatchers I will
have to route incoming requests myself


That's right.


and pick (instantiate?) concrete task handler


If you declare your dispatcher as a Tapestry-IoC service, you can inject  
whatever you want.



(and, maybe, manage their state?).


Task handlers tend to be stateless. If you want to handle @SessionState  
objects, use the ApplicationStateManager service.



In this case using pages is preferred for me.


Point taken. :)


However I also refused to return StreamResponse from onActivate, since
keeping onActivate simple is a good approach I think.


Maybe Tapestry itself could have some return type or value that means that  
the page doesn't generate a response.



For now I ended up with the following:

1. I declared custom metadata symbol (I named it NO_MARKUP) and annotated
all task handler pages with this metadata.
2. I contributed markupRenderer as a first renderer in chain and in there
I'm checking if page class contatins declared annotation. If it  
presents, I simply return html/html as a response.


Nice solution! :)

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, software architect and developer, Ars Machina Tecnologia da  
Informação Ltda.

http://www.arsmachina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: 5.0.1.8 Download?

2010-04-01 Thread xfile80303

Thank you Ulrich.  That's what I was looking for.  :)
-- 
View this message in context: 
http://n2.nabble.com/5-0-1-8-Download-tp4832734p4838183.html
Sent from the Tapestry Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: submit form on Safari and Opera doesn't work

2010-04-01 Thread Howard Lewis Ship
Earlier versions of T5 had a subtle bug.  If you used a t:submit
component without an explicit component id (no t:id attribute), it
would be assigned the default id submit.  On the client side,
form.submit (normally a JavaScript function) would be replaced with a
reference to the submit element.

Solution? Give your t:submit component an explicit id.

On Thu, Apr 1, 2010 at 5:39 AM, Thiago H. de Paula Figueiredo
thiag...@gmail.com wrote:
 On Thu, 01 Apr 2010 02:25:48 -0300, LiborGMC l.pre...@gmc.net wrote:

 I've tried use Opera debugger just make sure that JS code with submit form
 is called. Yes it is.

 I've tested your code in Opera 10.10 in Linux and it worked perfectly. I
 just added a link to submit the:

 a href=# id=link
 onclick=document.getElementById('paTableForm').submit()Submit/a

 I haven't used JavaScript the right (using a listener instead of onclick)
 way because I wanted to do a test in a short time.

 By the way, there's a LinkSubmit component in Tapestry.

 Java page:
 @IncludeJavaScriptLibrary(context:js/index.js)
 public class Index {

       �...@inject
        private ComponentResources resources;

       �...@property
       �...@persist
        private String name;

       �...@property
       �...@persist
        private String result;

        public Object onSubmitFromPaTableForm(){
                return getCurrentPageName();
        }

 If you want this page to be rendered, return void or null. In you above
 method, you're forcing a redirect that is not needed.


         @OnEvent(component=handleAction)
                public Object handleAction(){
                 System.out.println( name);
                 result = name;
                 return getCurrentPageName();
         }

 This method is never invoked because there isn't a handleAction component.
 Thus, the result field is never updated.

 This code works for me on Firefox 3 and IE8. It doesn't work on Safari 4,
 Opera 9.64.

 What do you mean by this code doesn't work?

 --
 Thiago H. de Paula Figueiredo
 Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and
 instructor
 Owner, software architect and developer, Ars Machina Tecnologia da
 Informação Ltda.
 http://www.arsmachina.com.br

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org





-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Tapestry-exceptionpage 0.0.1 released!

2010-04-01 Thread Kalle Korhonen
Another month, another release. This time we bring you a
Tapestry-style replacement for this standard web.xml configuration:
error-page
exception-typejava.lang.Throwable/exception-type
location/generalError.jsp/location
/error-page

Tapestry conveniently wraps up any uncaught exception inside
ComponentEventException and displays a very nice exception page at
development time, but unfortunately that makes it impossible to use
the standard error-page configuration in your web.xml. Not that
configuring all that in verbose xml is that great anyway but it had
its uses. tapestry-exceptionpage module allows you to simply
contribute the exception type/error page mappings in plain Java and
allows specifying context for the error pages to make it quite a bit
more flexible than the standard configuration. Check out the
tapestry-exceptionpage guide
(http://tynamo.org/tapestry-exceptionpage+guide) for more info! 0.0.1
release of tapestry-exceptionpage is immediately available from
Central 
(http://repo1.maven.org/maven2/org/tynamo/tapestry-exceptionpage/0.0.1/).

Enjoy,
Tynamo Team
http://tynamo.org

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: submit form on Safari and Opera doesn't work

2010-04-01 Thread LiborGMC

Hi,
thanks for the reply. I've put code of tml file correctly but it has been
adjusted somehow. Here is the code of link again:
Submit 

What I'm trying to do is create actionLink (which call handleAction in
Java). But before I handle this action I need some data on server. That is
way I call submit form before event is propagated to server.
I've tried listener in JS aswell but in Safari and Opera cases it didn't
helps me. Could you guys try to run my code again please?

Libor
-- 
View this message in context: 
http://old.nabble.com/submit-form-on-Safari-and-Opera-doesn%27t-work-tp28081757p28116016.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: submit form on Safari and Opera doesn't work

2010-04-01 Thread LiborGMC

Link has been removed again. So another attempt:
lt;a t:type=actionLink t:id=handleAction
onclick=submitForm();Submitlt;/a
-- 
View this message in context: 
http://old.nabble.com/submit-form-on-Safari-and-Opera-doesn%27t-work-tp28081757p28116037.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: submit form on Safari and Opera doesn't work

2010-04-01 Thread LiborGMC

Link has been removed again. So another attempt:
lt;a t:type=actionLink t:id=handleAction
onclick=submitForm();Submitlt;/a
-- 
View this message in context: 
http://old.nabble.com/submit-form-on-Safari-and-Opera-doesn%27t-work-tp28081757p28116039.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Parameters in Contained Components

2010-04-01 Thread Brian Heston
This is sort of similar to my previous post asking about customizing components 
beyond what seems to be possible.  This is a simple example involving the Grid 
component again.

I want to set the range parameter of the GridPager, but since that is not 
also exposed by the Grid, I can't see how it could ever be anything other than 
the default of 5.  I tried adding t:range=3 to the Grid but it didn't make 
any difference.  I also tried getting the Pager from the Grid and trying to 
call methods on it using reflection, but I suspect that doesn't work well 
because of the way the bindings work.

I'm hoping this time someone can provide a little clarification about how to go 
about this.

Thanks,
Brian

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org