Re: Issues / feature requests for tapestry-security?

2011-12-20 Thread Norman Franke

Yes, I'm not sure how I missed that. Thanks.

Norman Franke
Answering Service for Directors, Inc.
www.myasd.com



On Dec 20, 2011, at 2:54 PM, Lenny Primak wrote:


Doesn't this do what you want?
@RequiresRoles(logical = Logical.OR, value = { "RoleA", "RoleB",  
"RoleC" })


On Dec 20, 2011, at 2:44 PM, Norman Franke wrote:

I'd like to see an annotation option that lets you do an or on the  
roles, so I can have a page that requires one of several roles.  
Right now it "ands" them together, which is generally never what I  
want. Maybe if you can insert the @RequiresRoles multiple times and  
if any match, it lets it work? (The annotation is limited to one  
per class at present.)


Norman Franke
Answering Service for Directors, Inc.
www.myasd.com



On Dec 20, 2011, at 12:58 PM, Kalle Korhonen wrote:


After grueling six months of development on Android, I'm back at the
server side. I'll be cutting a new, T5.3 specific version of  
Tynamo's

tapestry-security in the near future, though unfortunately it won't
make it to Santa's sleigh. I'm hoping to also pick up Shiro 1.2 as a
dependency if we get that finalized in time. If there's anything you
really wanted to change or fix in tapestry-security but never got
around reporting it, right about now would be a good time. All the
currently open issues will be resolved as well. Thanks to all, it's
been a great year for Tapestry!

Kalle

-
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: Issues / feature requests for tapestry-security?

2011-12-20 Thread Lenny Primak
Doesn't this do what you want?
@RequiresRoles(logical = Logical.OR, value = { "RoleA", "RoleB", "RoleC" })

On Dec 20, 2011, at 2:44 PM, Norman Franke wrote:

> I'd like to see an annotation option that lets you do an or on the roles, so 
> I can have a page that requires one of several roles. Right now it "ands" 
> them together, which is generally never what I want. Maybe if you can insert 
> the @RequiresRoles multiple times and if any match, it lets it work? (The 
> annotation is limited to one per class at present.)
> 
> Norman Franke
> Answering Service for Directors, Inc.
> www.myasd.com
> 
> 
> 
> On Dec 20, 2011, at 12:58 PM, Kalle Korhonen wrote:
> 
>> After grueling six months of development on Android, I'm back at the
>> server side. I'll be cutting a new, T5.3 specific version of Tynamo's
>> tapestry-security in the near future, though unfortunately it won't
>> make it to Santa's sleigh. I'm hoping to also pick up Shiro 1.2 as a
>> dependency if we get that finalized in time. If there's anything you
>> really wanted to change or fix in tapestry-security but never got
>> around reporting it, right about now would be a good time. All the
>> currently open issues will be resolved as well. Thanks to all, it's
>> been a great year for Tapestry!
>> 
>> Kalle
>> 
>> -
>> 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: Issues / feature requests for tapestry-security?

2011-12-20 Thread Thiago H. de Paula Figueiredo

On Tue, 20 Dec 2011 17:44:50 -0200, Norman Franke  wrote:

I'd like to see an annotation option that lets you do an or on the  
roles, so I can have a page that requires one of several roles. Right  
now it "ands" them together, which is generally never what I want. Maybe  
if you can insert the @RequiresRoles multiple times and if any match, it  
lets it work? (The annotation is limited to one per class at present.)


This is a Java limitation (one instance of a given annotation per class,  
method or field).


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, 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: Issues / feature requests for tapestry-security?

2011-12-20 Thread Norman Franke
I'd like to see an annotation option that lets you do an or on the  
roles, so I can have a page that requires one of several roles. Right  
now it "ands" them together, which is generally never what I want.  
Maybe if you can insert the @RequiresRoles multiple times and if any  
match, it lets it work? (The annotation is limited to one per class at  
present.)


Norman Franke
Answering Service for Directors, Inc.
www.myasd.com



On Dec 20, 2011, at 12:58 PM, Kalle Korhonen wrote:


After grueling six months of development on Android, I'm back at the
server side. I'll be cutting a new, T5.3 specific version of Tynamo's
tapestry-security in the near future, though unfortunately it won't
make it to Santa's sleigh. I'm hoping to also pick up Shiro 1.2 as a
dependency if we get that finalized in time. If there's anything you
really wanted to change or fix in tapestry-security but never got
around reporting it, right about now would be a good time. All the
currently open issues will be resolved as well. Thanks to all, it's
been a great year for Tapestry!

Kalle

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






Re: Tapestry 5 error page inspiring Groovy 2.0

2011-12-20 Thread Dragan Sahpaski
Playframework has a similar exception page also.

http://www.google.com/imgres?um=1&hl=en&authuser=0&biw=1365&bih=603&tbm=isch&tbnid=IIigjHjcUy-q9M:&imgrefurl=http://www.lunatech-research.com/archives/2010/03/15/play-framework-usability&docid=Jnmurti7FEZFKM&imgurl=http://www.lunatech-research.com/sites/default/files/play-exception.png&w=629&h=338&ei=G9nwTvfTFcifOoXO-aoB&zoom=1&iact=hc&vpx=158&vpy=160&dur=1367&hovh=164&hovw=306&tx=156&ty=80&sig=113181604824394322430&page=1&tbnh=97&tbnw=181&start=0&ndsp=18&ved=1t:429,r:0,s:0


Cheers,
Dragan Sahpaski



On Tue, Dec 20, 2011 at 7:48 PM, Howard Lewis Ship  wrote:

> One of my favorite parts of 5.3 is the way Ajax updates (actually,
> Zone Ajax requests) that fail on the server get the full exception
> report as a lightbox-style iframe.
>
> On Tue, Dec 20, 2011 at 6:41 AM, Muhammad Gelbana 
> wrote:
> > It ought to be inspired. Tapestry is simply exceptional.
> >
> > On Thu, Dec 15, 2011 at 11:04 PM, Thiago H. de Paula Figueiredo <
> > thiag...@gmail.com> wrote:
> >
> >> Hi!
> >>
> >> Take a look at http://grails.org/doc/2.0.x/**guide/introduction.html#**
> >> whatsNew and
> scroll down until the "Enhanced Error Reporting and Diagnosis" section.
> >> Doesn't it ring a bell? :D
> >>
> >> By the way, I'd like to congratulate Howard again for writing this
> awesome
> >> error page we have in T5. It's one of the (many) nicest features of the
> >> framework.
> >>
> >> Thanks my friend Pedro for the tip about the Grails documentation. :P
> >>
> >> --
> >> Thiago H. de Paula Figueiredo
> >> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
> >> and instructor
> >> http://www.arsmachina.com.br
> >>
> >>
> --**--**-
> >> To unsubscribe, e-mail: users-unsubscribe@tapestry.**apache.org<
> users-unsubscr...@tapestry.apache.org>
> >> For additional commands, e-mail: users-h...@tapestry.apache.org
> >>
> >>
> >
> >
> > --
> > *Regards,*
> > *Muhammad Gelbana
> > Java Developer*
>
>
>
> --
> 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
>
>


Re: Tapestry 5 error page inspiring Groovy 2.0

2011-12-20 Thread Howard Lewis Ship
One of my favorite parts of 5.3 is the way Ajax updates (actually,
Zone Ajax requests) that fail on the server get the full exception
report as a lightbox-style iframe.

On Tue, Dec 20, 2011 at 6:41 AM, Muhammad Gelbana  wrote:
> It ought to be inspired. Tapestry is simply exceptional.
>
> On Thu, Dec 15, 2011 at 11:04 PM, Thiago H. de Paula Figueiredo <
> thiag...@gmail.com> wrote:
>
>> Hi!
>>
>> Take a look at http://grails.org/doc/2.0.x/**guide/introduction.html#**
>> whatsNew and 
>> scroll down until the "Enhanced Error Reporting and Diagnosis" section.
>> Doesn't it ring a bell? :D
>>
>> By the way, I'd like to congratulate Howard again for writing this awesome
>> error page we have in T5. It's one of the (many) nicest features of the
>> framework.
>>
>> Thanks my friend Pedro for the tip about the Grails documentation. :P
>>
>> --
>> Thiago H. de Paula Figueiredo
>> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
>> and instructor
>> http://www.arsmachina.com.br
>>
>> --**--**-
>> To unsubscribe, e-mail: 
>> users-unsubscribe@tapestry.**apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
>
>
> --
> *Regards,*
> *Muhammad Gelbana
> Java Developer*



-- 
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



Issues / feature requests for tapestry-security?

2011-12-20 Thread Kalle Korhonen
After grueling six months of development on Android, I'm back at the
server side. I'll be cutting a new, T5.3 specific version of Tynamo's
tapestry-security in the near future, though unfortunately it won't
make it to Santa's sleigh. I'm hoping to also pick up Shiro 1.2 as a
dependency if we get that finalized in time. If there's anything you
really wanted to change or fix in tapestry-security but never got
around reporting it, right about now would be a good time. All the
currently open issues will be resolved as well. Thanks to all, it's
been a great year for Tapestry!

Kalle

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



Re: Grid now displays public static fields of object

2011-12-20 Thread Thiago H. de Paula Figueiredo
On Tue, 20 Dec 2011 14:16:43 -0200, Howard Lewis Ship   
wrote:



It is true; perhaps there should be a way for Grid to exclude static
fields; basically, it sees normal properties, public instance fields,
and public static fields as properties.


Shouldn't BeanModelSource ignore static fields and methods automatically?

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, 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: shiro

2011-12-20 Thread Kalle Korhonen
On Tue, Dec 20, 2011 at 3:45 AM, csckid  wrote:
>  public static void
> contributeSecurityConfiguration(Configuration
> configuration,
>                        SecurityFilterChainFactory factory) {
>
> configuration.add(factory.createChain("/medicine/create").add(factory.roles(),"employee,
> doctor").build());
> }
>
> and
> @RequiresRoles(value = {"doctor", "employee"})

As Alejandro says, the default logical operation is AND, meaning you
need both of the roles. You should specify @RequiresRoles(value =
{"doctor", "employee"}, logical=Logical.OR) instead. If that doesn't
work, open an issue.

Kalle

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



Re: Grid now displays public static fields of object

2011-12-20 Thread Howard Lewis Ship
On Tue, Dec 20, 2011 at 7:55 AM, Szemere Szemere
 wrote:
> I recently upgraded from 5.2.5 to 5.3, which I must say was very 
> straightforward. :)
>
> A minor issue we've just noticed is, that Grid now shows as columns any 
> public static fields of the objects listed by the grid. Is this by design (a 
> change in spec) or a bug?

This was intentional, but perhaps needs to be highlighted better in
the release notes.

>
> The workaround is simple, simply use t:exclude, but i don't see the value in 
> automatically including static fields, as they have the same value for each 
> row!

It is true; perhaps there should be a way for Grid to exclude static
fields; basically, it sees normal properties, public instance fields,
and public static fields as properties.

You can add @NonVisual to the static fields to hide them from the Grid as well.

There's a few important use cases where being able to reference a
public static field is very useful in templates; it is unfortunate
that this causes an annoyance with Grid.

https://issues.apache.org/jira/browse/TAP5-1798

>
> Szemere
>
> -
> 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



Grid now displays public static fields of object

2011-12-20 Thread Szemere Szemere
I recently upgraded from 5.2.5 to 5.3, which I must say was very 
straightforward. :)

A minor issue we've just noticed is, that Grid now shows as columns any public 
static fields of the objects listed by the grid. Is this by design (a change in 
spec) or a bug?

The workaround is simple, simply use t:exclude, but i don't see the value in 
automatically including static fields, as they have the same value for each row!

Szemere

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



Re: Tapestry 5 error page inspiring Groovy 2.0

2011-12-20 Thread Muhammad Gelbana
It ought to be inspired. Tapestry is simply exceptional.

On Thu, Dec 15, 2011 at 11:04 PM, Thiago H. de Paula Figueiredo <
thiag...@gmail.com> wrote:

> Hi!
>
> Take a look at http://grails.org/doc/2.0.x/**guide/introduction.html#**
> whatsNew and 
> scroll down until the "Enhanced Error Reporting and Diagnosis" section.
> Doesn't it ring a bell? :D
>
> By the way, I'd like to congratulate Howard again for writing this awesome
> error page we have in T5. It's one of the (many) nicest features of the
> framework.
>
> Thanks my friend Pedro for the tip about the Grails documentation. :P
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
> and instructor
> http://www.arsmachina.com.br
>
> --**--**-
> To unsubscribe, e-mail: 
> users-unsubscribe@tapestry.**apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
*Regards,*
*Muhammad Gelbana
Java Developer*


Re: Using loop inside a form without ValueEncoder

2011-12-20 Thread Thiago H. de Paula Figueiredo
On Mon, 19 Dec 2011 23:57:33 -0200, Nefron   
wrote:



From Tapestry loop documentation:

"With no extra configuration, each value object will be serialized into  
the form (if you view the rendered markup, you'll see a hidden form field

containing serialized data needed by Tapestry to process the form)."


That's the default Tapestry ValueEncoder which is overriden by the  
tapestry-hibernate and tapestry-jpa packages.


I want to force this behavior when there is a provided default  
ValueEncoder.


That's what already happens, but with the default ValueEncoder overriden.

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, 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: shiro

2011-12-20 Thread csckid
I tried this

 public static void
contributeSecurityConfiguration(Configuration
configuration,
SecurityFilterChainFactory factory) {

configuration.add(factory.createChain("/medicine/create").add(factory.roles(),"employee,
doctor").build()); 
}   

and

@RequiresRoles(value = {"doctor", "employee"})

None of them worked. :(
I wanted doctor and employee to access the page. But, with these code none
of them were working. 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/shiro-tp5082018p5088642.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: url rewrite: Adding PageRenderLinkTransformer and ComponentEventLinkTransformer

2011-12-20 Thread Jens Reufsteck
Sorry, got it. I could use contributePageRenderLinkTransformer and
contributeComponentEventLinkTransformer.

 

-- 
Jens Reufsteck



 



Re: Exception assembling embedded component 'exceptiondisplay'

2011-12-20 Thread svc985
I was using tapestry 5.3.0 which is alpha release and as soon as I've figured
that out, I've changed to tapestry 5.3 and it's ok now 

--
View this message in context: 
http://tapestry-users.832.n2.nabble.com/Exception-assembling-embedded-component-exceptiondisplay-tp7094972p7111387.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: For learning Tapestry5

2011-12-20 Thread jeczmien

http://jumpstart.doublenegative.com.au/jumpstart/

and paper book: Tapestry 5 by Igor Drobiazko



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/For-learning-Tapestry5-tp5088111p5088278.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