Re: Form validate on submit event

2011-09-07 Thread Steve Eynon
void onValidateForm()

is deprecated in T5.2 and has been removed in T5.3, best to use

onValidateFromForm()

instead. I mention it 'cos I got bit by it upgrading some apps from
T5.1 to T5.3.

Steve.


On 8 September 2011 10:54, dick_hu  wrote:
>
> Yohan Yudanara-2 wrote:
>>
>> server side or client-side validation?
>>
>> client-side validation,but not in tapestry
>>
>> If client side, then you can create regular > onClick="blablabla()"> on .tml file.
>> On blablabla() method you do the client-side validation and then submit
>> the
>> form.
>>
>> just submit the form in my way,like document.forms[0].submit ?
>> this way can any other validation trigger?
>>
>> Is tapestry has it's own submit way?
>>
>
>
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/Form-validate-on-submit-event-tp4780855p4780950.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
>
>

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



Re: tapestry-security in Servlet 3.0 servlets (was EJB components)

2011-09-07 Thread Lenny Primak
This is really simple to reproduce:
In any tap-security enabled Tapestry application, and any servlet 3.0-compliant 
container,
put this new file, and try to access it,

the console log will show that getSubject() is not working properly,
even though the app is logged in and has a proper session.

Here is a sample code for this problem:

---
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.baw.website.gwt.server;

import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.shiro.SecurityUtils;

/**
 *
 * @author lprimak
 */
@WebServlet(urlPatterns={"/NewServlet"})
public class NewServlet extends HttpServlet
{

/** 
 * Processes requests for both HTTP GET and POST 
methods.
 * @param request servlet request
 * @param response servlet response
 * @throws ServletException if a servlet-specific error occurs
 * @throws IOException if an I/O error occurs
 */
protected void processRequest(HttpServletRequest request, 
HttpServletResponse response)
throws ServletException, IOException
{
response.setContentType("text/html;charset=UTF-8");
PrintWriter out = response.getWriter();
try
{
System.err.println("Principal: " + 
SecurityUtils.getSubject().getPrincipal());
System.err.println("Auth: " + 
SecurityUtils.getSubject().isAuthenticated());
System.err.println("Remembered: " + 
SecurityUtils.getSubject().isRemembered());

out.println("");
out.println("");
out.println("Servlet NewServlet");  
out.println("");
out.println("");
out.println("Servlet NewServlet at " + request.getContextPath 
() + "");
out.println("");
out.println("");
} finally
{
out.close();
}
}

// 
/** 
 * Handles the HTTP GET method.
 * @param request servlet request
 * @param response servlet response
 * @throws ServletException if a servlet-specific error occurs
 * @throws IOException if an I/O error occurs
 */
@Override
protected void doGet(HttpServletRequest request, HttpServletResponse 
response)
throws ServletException, IOException
{
processRequest(request, response);
}

/** 
 * Handles the HTTP POST method.
 * @param request servlet request
 * @param response servlet response
 * @throws ServletException if a servlet-specific error occurs
 * @throws IOException if an I/O error occurs
 */
@Override
protected void doPost(HttpServletRequest request, HttpServletResponse 
response)
throws ServletException, IOException
{
processRequest(request, response);
}

/** 
 * Returns a short description of the servlet.
 * @return a String containing servlet description
 */
@Override
public String getServletInfo()
{
return "Short description";
}// 
}

On Sep 8, 2011, at 1:42 AM, Lenny Primak wrote:

> Ok, I am getting a bit more of a handle on this problem...
> No matter what I do, my servlet is not getting filtered by tapestry filter.
> I tried it all in web.xml, to no avail.  Tapestry & JSP pages do work 
> perfectly.
> 
> On Sep 8, 2011, at 1:15 AM, Kalle Korhonen wrote:
> 
>> On Wed, Sep 7, 2011 at 9:55 PM, Lenny Primak  wrote:
>>> What I found out that Servlet 3.0 objects (annotated with @WebServlet and 
>>> their derivatives)
>>> do not get the Shiro filter that's instantiated via tapestry-security.
>>> SecurityUtils.getSubject() does not work therefore.
>> 
>> Hey Lenny, can you clarify what you mean by servlets "do not get the
>> Shiro filter"? What's the url pattern you are using for your servlet?
>> Are any Tapestry filters handling the request?
>> 
>>> So the question becomes how do I get an instance of whatever's initialized 
>>> by tapestry-security?
>>> If I have a handle on that perhaps I can put it into web.xml to work with 
>>> the servlet 3.0 servlets,
>>> and by extension, Web services, REST objects, etc.
>> 
>> I'm not sure I follow. @WebServlet is an alternative to declaring the
>> same servlet in web.xml, no?
>> 
>> Kalle
>> 
>> 
>>> On Sep 2, 2011, at 12:13 AM, Lenny Primak wrote:
>>> 
 I think I am running into a more general problem with this. Security is 
 just not getting invoked.
 Perhaps I have to declare shiro filter separately in web-inf? Would that 
 interfere with tap security?
 
 
 On Aug 29, 2011, at 12:42 PM, Lenny Primak wrote:
 
> Great!  I'll try 1.2 and will do the shiro mailing list as well.
> I tried the @RequiresRole on a stateless Rest service,

Re: tapestry-security in Servlet 3.0 servlets (was EJB components)

2011-09-07 Thread Lenny Primak
I have now confirmed that the new servlet _is_ handled by the tapestry filter,
but yet SecurityUtil.getSubject() still isn't working properly.
I believe that tapestry and tap-security is completely ignoring my servlet
and thus none of the Shiro's configuration is getting in there.
The question becomes how do I get the security configuration from my servlet...
Still need help with this :)

On Sep 8, 2011, at 1:29 AM, Lenny Primak wrote:

> The servlet is not handled by tapestry filter.  I am not sure why, actually,
> as I am trying to declare it in web.xml as a workaround now.
> tapestry is handling all tap pages and even JSP pages for the old web site,
> including all security paths, but not the servlet.
> 
> Thanks for your help!
> 
> On Sep 8, 2011, at 1:15 AM, Kalle Korhonen wrote:
> 
>> On Wed, Sep 7, 2011 at 9:55 PM, Lenny Primak  wrote:
>>> What I found out that Servlet 3.0 objects (annotated with @WebServlet and 
>>> their derivatives)
>>> do not get the Shiro filter that's instantiated via tapestry-security.
>>> SecurityUtils.getSubject() does not work therefore.
>> 
>> Hey Lenny, can you clarify what you mean by servlets "do not get the
>> Shiro filter"? What's the url pattern you are using for your servlet?
>> Are any Tapestry filters handling the request?
>> 
>>> So the question becomes how do I get an instance of whatever's initialized 
>>> by tapestry-security?
>>> If I have a handle on that perhaps I can put it into web.xml to work with 
>>> the servlet 3.0 servlets,
>>> and by extension, Web services, REST objects, etc.
>> 
>> I'm not sure I follow. @WebServlet is an alternative to declaring the
>> same servlet in web.xml, no?
>> 
>> Kalle
>> 
>> 
>>> On Sep 2, 2011, at 12:13 AM, Lenny Primak wrote:
>>> 
 I think I am running into a more general problem with this. Security is 
 just not getting invoked.
 Perhaps I have to declare shiro filter separately in web-inf? Would that 
 interfere with tap security?
 
 
 On Aug 29, 2011, at 12:42 PM, Lenny Primak wrote:
 
> Great!  I'll try 1.2 and will do the shiro mailing list as well.
> I tried the @RequiresRole on a stateless Rest service,
> and it didn't work, I guess now I know why now :)
> 
> 
> On Aug 29, 2011, at 12:28 PM, Kalle Korhonen wrote:
> 
>> Thanks Lenny. Yes, it's the wrong list but the discussion's likely
>> relevant to a number of other people as well. The most appropriate
>> list is Shiro users and incidentally, there was a discussion on the
>> same topic some time ago
>> (http://shiro-user.582556.n2.nabble.com/Using-Shiro-in-a-Web-EJB-environment-td3773528.html).
>> Your title says EJB container objects but mostly you seem to be
>> looking at securing the front-end servers. I've done stateful
>> (session-based) web services before and that'll work just fine using
>> exactly the same configuration and annotations. Stateless security
>> support was added/enhanced in shiro 1.2 trunk (with the release in
>> sight in the near future) - basically making it easier to configure
>> the framework (or some paths) so that each request is authenticated
>> and authorized separately. If you have a multi-tiered architecture
>> where your EJB container is running in a separate JVM, you'll have do
>> more integration work yourself, to maintain keys or some access tokens
>> to secure user requests / executions between multiple JVMs. There's no
>> standard way worked for it as one size rarely fits all. It's an
>> interesting topic nevertheless, and you should join the discussion on
>> Shiro users list (see http://shiro.apache.org/mailing-lists.html) to
>> keep up-to-date and make your opinions heard.
>> 
>> Kalle
>> 
>> 
>> On Mon, Aug 29, 2011 at 8:51 AM, Lenny Primak  
>> wrote:
>>> Hi guys,
>>> perhaps this is the wrong list to post this to, but
>>> tynamo list still doesn't work for me, and I may post this on the Shiro 
>>> list as well.
>>> 
>>> I just started using tapestry-security, and it works great!
>>> My application is a Tapestry front-end to a bunch of EJBs, Web 
>>> services, and Rest objects.
>>> It runs in Glassfish 3.1, and J2EE 6 compliant.
>>> 
>>> This application is on an intranet, and we need to secure it and put it 
>>> out on the internet.
>>> 
>>> I was wondering if/how we can use the same T-Security/Shiro 
>>> configuration/annotation/etc.
>>> on the Jax-WS Web Services, and Jax-RS REST Web Services, it at all 
>>> possible,
>>> with a minimum of fuss.
>>> 
>>> Thanks a lot.
>>> 
>>> 
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>> 
>>> 
>> 
>> ---

Re: tapestry-security in Servlet 3.0 servlets (was EJB components)

2011-09-07 Thread Lenny Primak
Ok, I am getting a bit more of a handle on this problem...
No matter what I do, my servlet is not getting filtered by tapestry filter.
I tried it all in web.xml, to no avail.  Tapestry & JSP pages do work perfectly.

On Sep 8, 2011, at 1:15 AM, Kalle Korhonen wrote:

> On Wed, Sep 7, 2011 at 9:55 PM, Lenny Primak  wrote:
>> What I found out that Servlet 3.0 objects (annotated with @WebServlet and 
>> their derivatives)
>> do not get the Shiro filter that's instantiated via tapestry-security.
>> SecurityUtils.getSubject() does not work therefore.
> 
> Hey Lenny, can you clarify what you mean by servlets "do not get the
> Shiro filter"? What's the url pattern you are using for your servlet?
> Are any Tapestry filters handling the request?
> 
>> So the question becomes how do I get an instance of whatever's initialized 
>> by tapestry-security?
>> If I have a handle on that perhaps I can put it into web.xml to work with 
>> the servlet 3.0 servlets,
>> and by extension, Web services, REST objects, etc.
> 
> I'm not sure I follow. @WebServlet is an alternative to declaring the
> same servlet in web.xml, no?
> 
> Kalle
> 
> 
>> On Sep 2, 2011, at 12:13 AM, Lenny Primak wrote:
>> 
>>> I think I am running into a more general problem with this. Security is 
>>> just not getting invoked.
>>> Perhaps I have to declare shiro filter separately in web-inf? Would that 
>>> interfere with tap security?
>>> 
>>> 
>>> On Aug 29, 2011, at 12:42 PM, Lenny Primak wrote:
>>> 
 Great!  I'll try 1.2 and will do the shiro mailing list as well.
 I tried the @RequiresRole on a stateless Rest service,
 and it didn't work, I guess now I know why now :)
 
 
 On Aug 29, 2011, at 12:28 PM, Kalle Korhonen wrote:
 
> Thanks Lenny. Yes, it's the wrong list but the discussion's likely
> relevant to a number of other people as well. The most appropriate
> list is Shiro users and incidentally, there was a discussion on the
> same topic some time ago
> (http://shiro-user.582556.n2.nabble.com/Using-Shiro-in-a-Web-EJB-environment-td3773528.html).
> Your title says EJB container objects but mostly you seem to be
> looking at securing the front-end servers. I've done stateful
> (session-based) web services before and that'll work just fine using
> exactly the same configuration and annotations. Stateless security
> support was added/enhanced in shiro 1.2 trunk (with the release in
> sight in the near future) - basically making it easier to configure
> the framework (or some paths) so that each request is authenticated
> and authorized separately. If you have a multi-tiered architecture
> where your EJB container is running in a separate JVM, you'll have do
> more integration work yourself, to maintain keys or some access tokens
> to secure user requests / executions between multiple JVMs. There's no
> standard way worked for it as one size rarely fits all. It's an
> interesting topic nevertheless, and you should join the discussion on
> Shiro users list (see http://shiro.apache.org/mailing-lists.html) to
> keep up-to-date and make your opinions heard.
> 
> Kalle
> 
> 
> On Mon, Aug 29, 2011 at 8:51 AM, Lenny Primak  
> wrote:
>> Hi guys,
>> perhaps this is the wrong list to post this to, but
>> tynamo list still doesn't work for me, and I may post this on the Shiro 
>> list as well.
>> 
>> I just started using tapestry-security, and it works great!
>> My application is a Tapestry front-end to a bunch of EJBs, Web services, 
>> and Rest objects.
>> It runs in Glassfish 3.1, and J2EE 6 compliant.
>> 
>> This application is on an intranet, and we need to secure it and put it 
>> out on the internet.
>> 
>> I was wondering if/how we can use the same T-Security/Shiro 
>> configuration/annotation/etc.
>> on the Jax-WS Web Services, and Jax-RS REST Web Services, it at all 
>> possible,
>> with a minimum of fuss.
>> 
>> Thanks a lot.
>> 
>> 
>> -
>> 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
>> 
>> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 


---

Re: tapestry-security in Servlet 3.0 servlets (was EJB components)

2011-09-07 Thread Lenny Primak
The servlet is not handled by tapestry filter.  I am not sure why, actually,
as I am trying to declare it in web.xml as a workaround now.
tapestry is handling all tap pages and even JSP pages for the old web site,
including all security paths, but not the servlet.

Thanks for your help!

On Sep 8, 2011, at 1:15 AM, Kalle Korhonen wrote:

> On Wed, Sep 7, 2011 at 9:55 PM, Lenny Primak  wrote:
>> What I found out that Servlet 3.0 objects (annotated with @WebServlet and 
>> their derivatives)
>> do not get the Shiro filter that's instantiated via tapestry-security.
>> SecurityUtils.getSubject() does not work therefore.
> 
> Hey Lenny, can you clarify what you mean by servlets "do not get the
> Shiro filter"? What's the url pattern you are using for your servlet?
> Are any Tapestry filters handling the request?
> 
>> So the question becomes how do I get an instance of whatever's initialized 
>> by tapestry-security?
>> If I have a handle on that perhaps I can put it into web.xml to work with 
>> the servlet 3.0 servlets,
>> and by extension, Web services, REST objects, etc.
> 
> I'm not sure I follow. @WebServlet is an alternative to declaring the
> same servlet in web.xml, no?
> 
> Kalle
> 
> 
>> On Sep 2, 2011, at 12:13 AM, Lenny Primak wrote:
>> 
>>> I think I am running into a more general problem with this. Security is 
>>> just not getting invoked.
>>> Perhaps I have to declare shiro filter separately in web-inf? Would that 
>>> interfere with tap security?
>>> 
>>> 
>>> On Aug 29, 2011, at 12:42 PM, Lenny Primak wrote:
>>> 
 Great!  I'll try 1.2 and will do the shiro mailing list as well.
 I tried the @RequiresRole on a stateless Rest service,
 and it didn't work, I guess now I know why now :)
 
 
 On Aug 29, 2011, at 12:28 PM, Kalle Korhonen wrote:
 
> Thanks Lenny. Yes, it's the wrong list but the discussion's likely
> relevant to a number of other people as well. The most appropriate
> list is Shiro users and incidentally, there was a discussion on the
> same topic some time ago
> (http://shiro-user.582556.n2.nabble.com/Using-Shiro-in-a-Web-EJB-environment-td3773528.html).
> Your title says EJB container objects but mostly you seem to be
> looking at securing the front-end servers. I've done stateful
> (session-based) web services before and that'll work just fine using
> exactly the same configuration and annotations. Stateless security
> support was added/enhanced in shiro 1.2 trunk (with the release in
> sight in the near future) - basically making it easier to configure
> the framework (or some paths) so that each request is authenticated
> and authorized separately. If you have a multi-tiered architecture
> where your EJB container is running in a separate JVM, you'll have do
> more integration work yourself, to maintain keys or some access tokens
> to secure user requests / executions between multiple JVMs. There's no
> standard way worked for it as one size rarely fits all. It's an
> interesting topic nevertheless, and you should join the discussion on
> Shiro users list (see http://shiro.apache.org/mailing-lists.html) to
> keep up-to-date and make your opinions heard.
> 
> Kalle
> 
> 
> On Mon, Aug 29, 2011 at 8:51 AM, Lenny Primak  
> wrote:
>> Hi guys,
>> perhaps this is the wrong list to post this to, but
>> tynamo list still doesn't work for me, and I may post this on the Shiro 
>> list as well.
>> 
>> I just started using tapestry-security, and it works great!
>> My application is a Tapestry front-end to a bunch of EJBs, Web services, 
>> and Rest objects.
>> It runs in Glassfish 3.1, and J2EE 6 compliant.
>> 
>> This application is on an intranet, and we need to secure it and put it 
>> out on the internet.
>> 
>> I was wondering if/how we can use the same T-Security/Shiro 
>> configuration/annotation/etc.
>> on the Jax-WS Web Services, and Jax-RS REST Web Services, it at all 
>> possible,
>> with a minimum of fuss.
>> 
>> Thanks a lot.
>> 
>> 
>> -
>> 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
>> 
>> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For addi

Re: tapestry-security in Servlet 3.0 servlets (was EJB components)

2011-09-07 Thread Kalle Korhonen
On Wed, Sep 7, 2011 at 9:55 PM, Lenny Primak  wrote:
> What I found out that Servlet 3.0 objects (annotated with @WebServlet and 
> their derivatives)
> do not get the Shiro filter that's instantiated via tapestry-security.
> SecurityUtils.getSubject() does not work therefore.

Hey Lenny, can you clarify what you mean by servlets "do not get the
Shiro filter"? What's the url pattern you are using for your servlet?
Are any Tapestry filters handling the request?

> So the question becomes how do I get an instance of whatever's initialized by 
> tapestry-security?
> If I have a handle on that perhaps I can put it into web.xml to work with the 
> servlet 3.0 servlets,
> and by extension, Web services, REST objects, etc.

I'm not sure I follow. @WebServlet is an alternative to declaring the
same servlet in web.xml, no?

Kalle


> On Sep 2, 2011, at 12:13 AM, Lenny Primak wrote:
>
>> I think I am running into a more general problem with this. Security is just 
>> not getting invoked.
>> Perhaps I have to declare shiro filter separately in web-inf? Would that 
>> interfere with tap security?
>>
>>
>> On Aug 29, 2011, at 12:42 PM, Lenny Primak wrote:
>>
>>> Great!  I'll try 1.2 and will do the shiro mailing list as well.
>>> I tried the @RequiresRole on a stateless Rest service,
>>> and it didn't work, I guess now I know why now :)
>>>
>>>
>>> On Aug 29, 2011, at 12:28 PM, Kalle Korhonen wrote:
>>>
 Thanks Lenny. Yes, it's the wrong list but the discussion's likely
 relevant to a number of other people as well. The most appropriate
 list is Shiro users and incidentally, there was a discussion on the
 same topic some time ago
 (http://shiro-user.582556.n2.nabble.com/Using-Shiro-in-a-Web-EJB-environment-td3773528.html).
 Your title says EJB container objects but mostly you seem to be
 looking at securing the front-end servers. I've done stateful
 (session-based) web services before and that'll work just fine using
 exactly the same configuration and annotations. Stateless security
 support was added/enhanced in shiro 1.2 trunk (with the release in
 sight in the near future) - basically making it easier to configure
 the framework (or some paths) so that each request is authenticated
 and authorized separately. If you have a multi-tiered architecture
 where your EJB container is running in a separate JVM, you'll have do
 more integration work yourself, to maintain keys or some access tokens
 to secure user requests / executions between multiple JVMs. There's no
 standard way worked for it as one size rarely fits all. It's an
 interesting topic nevertheless, and you should join the discussion on
 Shiro users list (see http://shiro.apache.org/mailing-lists.html) to
 keep up-to-date and make your opinions heard.

 Kalle


 On Mon, Aug 29, 2011 at 8:51 AM, Lenny Primak  
 wrote:
> Hi guys,
> perhaps this is the wrong list to post this to, but
> tynamo list still doesn't work for me, and I may post this on the Shiro 
> list as well.
>
> I just started using tapestry-security, and it works great!
> My application is a Tapestry front-end to a bunch of EJBs, Web services, 
> and Rest objects.
> It runs in Glassfish 3.1, and J2EE 6 compliant.
>
> This application is on an intranet, and we need to secure it and put it 
> out on the internet.
>
> I was wondering if/how we can use the same T-Security/Shiro 
> configuration/annotation/etc.
> on the Jax-WS Web Services, and Jax-RS REST Web Services, it at all 
> possible,
> with a minimum of fuss.
>
> Thanks a lot.
>
>
> -
> 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
>
>

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



tapestry-security in Servlet 3.0 servlets (was EJB components)

2011-09-07 Thread Lenny Primak
What I found out that Servlet 3.0 objects (annotated with @WebServlet and their 
derivatives)
do not get the Shiro filter that's instantiated via tapestry-security.
SecurityUtils.getSubject() does not work therefore.

So the question becomes how do I get an instance of whatever's initialized by 
tapestry-security?
If I have a handle on that perhaps I can put it into web.xml to work with the 
servlet 3.0 servlets,
and by extension, Web services, REST objects, etc.

Kalle?  Anyone?  I've been running into walls tap-security internals walls 
here, please help.

On Sep 2, 2011, at 12:13 AM, Lenny Primak wrote:

> I think I am running into a more general problem with this. Security is just 
> not getting invoked. 
> Perhaps I have to declare shiro filter separately in web-inf? Would that 
> interfere with tap security?
> 
> 
> On Aug 29, 2011, at 12:42 PM, Lenny Primak wrote:
> 
>> Great!  I'll try 1.2 and will do the shiro mailing list as well.
>> I tried the @RequiresRole on a stateless Rest service,
>> and it didn't work, I guess now I know why now :)
>> 
>> 
>> On Aug 29, 2011, at 12:28 PM, Kalle Korhonen wrote:
>> 
>>> Thanks Lenny. Yes, it's the wrong list but the discussion's likely
>>> relevant to a number of other people as well. The most appropriate
>>> list is Shiro users and incidentally, there was a discussion on the
>>> same topic some time ago
>>> (http://shiro-user.582556.n2.nabble.com/Using-Shiro-in-a-Web-EJB-environment-td3773528.html).
>>> Your title says EJB container objects but mostly you seem to be
>>> looking at securing the front-end servers. I've done stateful
>>> (session-based) web services before and that'll work just fine using
>>> exactly the same configuration and annotations. Stateless security
>>> support was added/enhanced in shiro 1.2 trunk (with the release in
>>> sight in the near future) - basically making it easier to configure
>>> the framework (or some paths) so that each request is authenticated
>>> and authorized separately. If you have a multi-tiered architecture
>>> where your EJB container is running in a separate JVM, you'll have do
>>> more integration work yourself, to maintain keys or some access tokens
>>> to secure user requests / executions between multiple JVMs. There's no
>>> standard way worked for it as one size rarely fits all. It's an
>>> interesting topic nevertheless, and you should join the discussion on
>>> Shiro users list (see http://shiro.apache.org/mailing-lists.html) to
>>> keep up-to-date and make your opinions heard.
>>> 
>>> Kalle
>>> 
>>> 
>>> On Mon, Aug 29, 2011 at 8:51 AM, Lenny Primak  
>>> wrote:
 Hi guys,
 perhaps this is the wrong list to post this to, but
 tynamo list still doesn't work for me, and I may post this on the Shiro 
 list as well.
 
 I just started using tapestry-security, and it works great!
 My application is a Tapestry front-end to a bunch of EJBs, Web services, 
 and Rest objects.
 It runs in Glassfish 3.1, and J2EE 6 compliant.
 
 This application is on an intranet, and we need to secure it and put it 
 out on the internet.
 
 I was wondering if/how we can use the same T-Security/Shiro 
 configuration/annotation/etc.
 on the Jax-WS Web Services, and Jax-RS REST Web Services, it at all 
 possible,
 with a minimum of fuss.
 
 Thanks a lot.
 
 
 -
 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: Form validate on submit event

2011-09-07 Thread dick_hu

Yohan Yudanara-2 wrote:
> 
> server side or client-side validation?
> 
> client-side validation,but not in tapestry
> 
> If client side, then you can create regular  onClick="blablabla()"> on .tml file.
> On blablabla() method you do the client-side validation and then submit
> the
> form.
> 
> just submit the form in my way,like document.forms[0].submit ?
> this way can any other validation trigger?
> 
> Is tapestry has it's own submit way?
> 


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Form-validate-on-submit-event-tp4780855p4780950.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: Form validate on submit event

2011-09-07 Thread Yohan Yudanara
server side or client-side validation?

If server side, then you just need to create onValidateForm() method in your
page class.

If client side, then you can create regular  on .tml file.
On blablabla() method you do the client-side validation and then submit the
form.

FYI, Tapestry already has many client-side validation.

On Thu, Sep 8, 2011 at 9:06 AM, dick_hu  wrote:

> tapesty has it's own submit way.
> Now I want do  some validate when I click the submit button
> Is there any easy way to do it.
>
> Can AnyOne help me solve this problem,thanks a lot.
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Form-validate-on-submit-event-tp4780855p4780855.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: Form validate on submit event

2011-09-07 Thread Thiago H. de Paula Figueiredo

On Wed, 07 Sep 2011 23:06:17 -0300, dick_hu  wrote:


tapesty has it's own submit way.


I disagree, as an ordinary HTML submit button  works  
with the Tapestry Form component, even if it has client-side validation or  
even AJAX updates.



Now I want do  some validate when I click the submit button
Is there any easy way to do it.


If you have validation applied to your edited object fields, be it by  
@Validate or Bean Validation annotations or even some other method,  
Tapestry already generates JavaScript code to validate client-side. Server  
side, just add an method annotated with @OnEvent(value = "validate",  
component = "your form or beaneditform t:id")


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



Form validate on submit event

2011-09-07 Thread dick_hu
tapesty has it's own submit way.
Now I want do  some validate when I click the submit button
Is there any easy way to do it.

Can AnyOne help me solve this problem,thanks a lot.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Form-validate-on-submit-event-tp4780855p4780855.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: [t5.2.6]Generating zones within a loop, then updating some of them

2011-09-07 Thread Muhammad Gelbana
I tweaked the zone updater get what I want. Finally it works :)
This particular page is VERY hard to implement. It may look east but
once you put your fingers on your keyboard, you start scratching your
head again :D

Thigo also kindly sent some assisting information regarding that matter:
"Just put zone="someValidZoneId" (so Tapestry sets up the zone update
JavaScript code) and then use the some custom JavaScript to update the
zones. 
http://stackoverflow.com/questions/1026162/refreshing-a-tapestry-zone-on-a-regular-basis
has some example code, just ignore the "periodical" part. Server-side,
return a MultiZoneUpdate (replaced in 5.3 by a service) in the event
handler method. ;) I hope this helps . . ."

But the zone updated suited my situation most.
It probably can use some cleanup but here is how my zone updater looks
like at the moment:
ZoneUpdater = Class.create({

initialize : function(spec) {
this.element = $(spec.elementId);
this.url = spec.url;
this.preUpdate = window[spec.preUpdate];
this.domain = spec.domain;
this.range = spec.range;
this.direction = spec.direction;
$T(this.element).zoneId = spec.zone;
if (spec.event) {
this.event = spec.event;
this.element.observe(this.event, 
this.updateZone.bindAsEventListener(this));
}
},
updateZone : function() {
var p = {
domain : this.domain,
range : this.range,
direction : this.direction,
nodId : this.element.value
};
var td;
if (this.direction == "from") {
for ( var i = 1; i <= this.range; i++) {
td = $$('td[row="' + i + '"][col="' + 
this.domain + '"]')[0];
td.writeAttribute('to', this.element.value);
}
} else if (this.direction == "to") {
for ( var i = 1; i <= this.range; i++) {
td = $$('td[row="' + this.domain + '"][col="' + 
i + '"]')[0];
td.writeAttribute('from', this.element.value);
}
}
this.preUpdate.call(p);
var zoneManager = Tapestry.findZoneManager(this.element);
if (!zoneManager) {
return;
}
var updatedUrl = this.url;
if (this.element.value) {
var param = this.element.value;
if (param) {
updatedUrl = addRequestParameter('param', 
param, updatedUrl);
for ( var i = 1; i <= this.range; i++) {
if (this.direction == "from") {
td = $$('td[row="' + i + 
'"][col="' + this.domain + '"]')[0];
updatedUrl = 
addRequestParameter('row', i, updatedUrl);
updatedUrl = 
addRequestParameter('col', this.domain, updatedUrl);
updatedUrl = 
addRequestParameter('nod',
td.readAttribute('from'), updatedUrl);
} else if (this.direction == "to") {
td = $$('td[row="' + 
this.domain + '"][col="' + i + '"]')[0];
updatedUrl = 
addRequestParameter('row', this.domain, updatedUrl);
updatedUrl = 
addRequestParameter('col', i, updatedUrl);
updatedUrl = 
addRequestParameter('nod', td.readAttribute('to'),
updatedUrl);
}
zoneManager.updateFromURL(updatedUrl);
updatedUrl = 
addRequestParameter('param', param, this.url);
}
}
}
}
})

I had to collect each cell's info to update accordingly..finally it
works now..only the final touches left.

Finally I can move forward with my conversion...seriously guys, is
there a better framework that tapestry :D
Thank you Taha and Thiago for your prompt responses :)

On Tue, Sep 6, 2011 at 1:49 AM, Taha Hafeez  wrote:
> Hi Muhammad
>
> You can use ZoneUpdater for that.
>
> http://tinybits.blogspot.com/2010/03/new-and-better-zoneupdater.html
>
> So in your select you will have
>
>  t:event='updateColumn' t:context='widthIndex'
> t:clientEvent='onchange'/>
>
> and
>
>  t:event='updateRow' t:context='heightIndex' t:clientEvent='onchange'/>
>
>
> Object onC

Re: Page redirection

2011-09-07 Thread Muhammad Gelbana
I haven't tried to solve your situation as I'm not sure I understand
your case but here is my attempt to give back to this list something
in return :)

Q1. onActivate is "eventually" called because the page link directed
to that page, it's not the direct result of clicking that link (event
handling method), it's just the eventual result.

Q2. This page will help you
http://tapestry.apache.org/page-navigation.html. May be you need to
have a "actionlink" instead, and handle it, then return what suits you
most.

Tell me if this helps :)

On Wed, Sep 7, 2011 at 5:25 PM, lifestyles_  wrote:
> Hi, i'm trying to implement a situation where as, i have a PageA, PageB and
> PageC.  When using PageA, depending on different situations, i would want
> the page to render, otherwise, it would want to render PageC.
>
> What happen's in real life is :
> Start of with PageA::onActivate(), the conditions don't apply for a
> redirection to PageC, so PageA is rendered.  On PageA, i've got a PageLink
> that brings me to PageB.  When i click on it, PageA::onActivate() is called,
> and at this point, the conditions apply for a redirection to PageC, so PageB
> is never called (since i clicked on the PageLink, i want to show PageB, but
> the onActivate is called and i don't have a way to determine if it's from
> the PageLink).
>
> Everywhere i read, it's suggested that the onActivate : < "rule of thumb" is to use onActivate(...) and onPassivate() for no
> more than receiving and returning the activation context.
> In this page, for example, onActivate(...) receives a person id and
> onPassivate() returns a person id. It can be tempting to put setup code into
> onActivate(...) but avoid this because onActivate(...) is called very
> often" >>
> http://jumpstart.doublenegative.com.au/jumpstart/examples/navigation/onactivateandonpassivate/3
> Jumpstart - PageNavigation .
>
> Question #1 : Why is the onActivate() called when choosing the PageLink ?
>
> Question #2 : What other way can i redirect a to another page without using
> onActivate ?
>
> Thank you for your time
>
> Rene
>
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/Page-redirection-tp4778938p4778938.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
>
>



-- 
Regards,
Muhammad Gelbana
Java Developer

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



Re: [T5.3 beta 2] Using Tapestry-Spring-Security with 5.3?

2011-09-07 Thread Robert Lentz
Rado,

Just read your posting 
Early this year I contacted Robin about the latest TSS version, as 2.1.0
does not work with T5.2.x.
The trunk version 3.0.0 which uses spring-security-3.0
(http://www.localhost.nu/svn/public/tapestry-spring-security/trunk)
works with T5.2.6 not sure about the changes to T5.3.
So try the trunk version, if you need the sources (in case repo is
offline) I can zip them to you.
Hope this helps
Aloha
 Robert


On 12 jan 2011, at 09.59, Robert Lentz wrote:

> Hi Robin,
>
> I am desperately trying to download the latest TSS trunk from
http://www.localhost.nu/svn/public/tapestry-spring-security/trunk or the
the mvn 3.0.0-SNAPSHOT version.
> But it appears that "your" server is not reachable for days/weeks 
and I can't find them anywhere else.
> Can you provide me with jars? Your assistance would save me a lot of
trouble.

Hi, should be working now.

--
regards,
Robin


Immutability schrieb:
> Thank you guys! I'll be definitely giving Tynamo's security a try.
>
> In the meantime I scanned through the sources of TSS 2.1.0 that I've checked
> out from SVN several months ago, and now I have some basic understanding of
> what the issue with Tapestry 5.3 is - it removed the deprecated Aliases
> service in favor of the ServiceOverrides introduced back in 5.1. I'll just
> need to figure out how to do this properly, since I'll need to do it for our
> existing projects anyway, in order to migrate them to 5.3 at some point. If
> someone can get me started (since this is a bit new to me) here's how the
> original method of the SecurityModule looked like:
>
> public static void contributeAlias(
> @SpringSecurityServices
> SaltSourceService saltSource,
> @SpringSecurityServices
> AuthenticationProcessingFilter authenticationProcessingFilter,
> Configuration> configuration)
> {
> configuration.add(AliasContribution.create(SaltSourceService.class,
> saltSource));
> configuration.add(AliasContribution.create(
> AuthenticationProcessingFilter.class,
> authenticationProcessingFilter));
> }
>
> I also tried to contact Robin Helgelin (who seems to be the original
> maintainer of TSS) about the status of the project and if the latest sources
> are available somewhere but didn't get a response yet.
>
> Thanks,
> Rado
>
>   


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



Re: [T5.3 beta 2] Using Tapestry-Spring-Security with 5.3?

2011-09-07 Thread Jonathan Barker
I was in touch with Robin a couple of months ago - I'm also in the boat of
needing to make a choice very soon.  He was not actively doing development
on it, but open to contributors.

It looks like the ServiceOverrides is almost a drop-in replacement. Just
rename the method, adjust a few types, and... well let me know how it goes
:-)

http://tapestry.apache.org/ioc-cookbook-overriding-ioc-services.html





On Wed, Sep 7, 2011 at 1:01 PM, Immutability  wrote:

> Thank you guys! I'll be definitely giving Tynamo's security a try.
>
> In the meantime I scanned through the sources of TSS 2.1.0 that I've
> checked
> out from SVN several months ago, and now I have some basic understanding of
> what the issue with Tapestry 5.3 is - it removed the deprecated Aliases
> service in favor of the ServiceOverrides introduced back in 5.1. I'll just
> need to figure out how to do this properly, since I'll need to do it for
> our
> existing projects anyway, in order to migrate them to 5.3 at some point. If
> someone can get me started (since this is a bit new to me) here's how the
> original method of the SecurityModule looked like:
>
> public static void contributeAlias(
>@SpringSecurityServices
>SaltSourceService saltSource,
>@SpringSecurityServices
>AuthenticationProcessingFilter authenticationProcessingFilter,
>Configuration> configuration)
> {
>configuration.add(AliasContribution.create(SaltSourceService.class,
>saltSource));
>configuration.add(AliasContribution.create(
>AuthenticationProcessingFilter.class,
>authenticationProcessingFilter));
> }
>
> I also tried to contact Robin Helgelin (who seems to be the original
> maintainer of TSS) about the status of the project and if the latest
> sources
> are available somewhere but didn't get a response yet.
>
> Thanks,
> Rado
>



-- 
Jonathan Barker
ITStrategic


Page redirection

2011-09-07 Thread lifestyles_
Hi, i'm trying to implement a situation where as, i have a PageA, PageB and
PageC.  When using PageA, depending on different situations, i would want
the page to render, otherwise, it would want to render PageC.

What happen's in real life is :
Start of with PageA::onActivate(), the conditions don't apply for a
redirection to PageC, so PageA is rendered.  On PageA, i've got a PageLink
that brings me to PageB.  When i click on it, PageA::onActivate() is called,
and at this point, the conditions apply for a redirection to PageC, so PageB
is never called (since i clicked on the PageLink, i want to show PageB, but
the onActivate is called and i don't have a way to determine if it's from
the PageLink).

Everywhere i read, it's suggested that the onActivate : <> 
http://jumpstart.doublenegative.com.au/jumpstart/examples/navigation/onactivateandonpassivate/3
Jumpstart - PageNavigation .

Question #1 : Why is the onActivate() called when choosing the PageLink ?

Question #2 : What other way can i redirect a to another page without using
onActivate ?

Thank you for your time

Rene

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Page-redirection-tp4778938p4778938.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: [T5.3 beta 2] Using Tapestry-Spring-Security with 5.3?

2011-09-07 Thread Immutability
Thank you guys! I'll be definitely giving Tynamo's security a try.

In the meantime I scanned through the sources of TSS 2.1.0 that I've checked
out from SVN several months ago, and now I have some basic understanding of
what the issue with Tapestry 5.3 is - it removed the deprecated Aliases
service in favor of the ServiceOverrides introduced back in 5.1. I'll just
need to figure out how to do this properly, since I'll need to do it for our
existing projects anyway, in order to migrate them to 5.3 at some point. If
someone can get me started (since this is a bit new to me) here's how the
original method of the SecurityModule looked like:

public static void contributeAlias(
@SpringSecurityServices
SaltSourceService saltSource,
@SpringSecurityServices
AuthenticationProcessingFilter authenticationProcessingFilter,
Configuration> configuration)
{
configuration.add(AliasContribution.create(SaltSourceService.class,
saltSource));
configuration.add(AliasContribution.create(
AuthenticationProcessingFilter.class,
authenticationProcessingFilter));
}

I also tried to contact Robin Helgelin (who seems to be the original
maintainer of TSS) about the status of the project and if the latest sources
are available somewhere but didn't get a response yet.

Thanks,
Rado


Re: javascript

2011-09-07 Thread LLTYK
Use tapestry generated paths, like  ${context:icons/add.png} . That way they
won't come out as relative paths.

--
View this message in context: 
http://tapestry-users.832.n2.nabble.com/javascript-tp6767323p6767533.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: Are all these great tools lately going into the component finder?

2011-09-07 Thread Ulrich Stärk
As for a place to live, that can probably be hosted alongside the demo app at
tapestry.zones.apache.org if you wish.

Uli

On 07.09.2011 12:39, Bob Harner wrote:
> I guess you're asking about the app I'm working on
> (https://github.com/bobharner/Tapestry-finder/wiki). Yes, Exanpe
> components are listed in the database now (but not yet commited). So
> far there are about 240 entries (components, mixins, elements,
> packages & frameworks) in the database. Vacations and other things
> have kept me from completing the app, hopefully I'll be able to get it
> publicly hosted in the next small number of weeks.
>
> On Tue, Sep 6, 2011 at 11:04 PM, Lenny Primak  wrote:
>> Just curious...
>>
>>
>> -
>> 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: javascript

2011-09-07 Thread csckid
Thanks jQuery.noConflict(); worked 

I hope it won't cause any problem in future
Yes, I wasn't using https://github.com/got5/tapestry5-jquery. 

*Next Question*

I have add some images in menubar. The problem is that images are not found
on all the pages.
{code}
*resources>com.myproject.kids>components>Layout.tml*
   
 #  icon/add.png  Add Item 
 #  icon/delete.png  Delete 
 #  icon/edit.png  Edit Item 
 #  icon/view.png  View 

{code}
icon are located inside webapp folder
webapp>icon>add.png

resources>com.myproject.kids>pages>Index.tml
resources>com.myproject.kids>pages>Guess.tml
resources>com.myproject.kids>pages>address>CreateAddress.tml
resources>com.myproject.kids>pages>address>ListAddress.tml
 
Images are found in Index.tml and Guess.tml but not in CreateAddress.tml and
ListAddress.tml.
I did understand why the images are not shown, but couldn't understand how
do I solve it.


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/javascript-tp4778141p4778228.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: javascript

2011-09-07 Thread Taha Hafeez
Hi

I assume you are not using https://github.com/got5/tapestry5-jquery.
jquery and prototype don't work together without some configuration
(noConflict())

http://www.codeboss.in/web-funda/2009/04/02/using-jquery-and-prototype-together/

If you want to use jquery you can use the above mentioned library.


On Wed, Sep 7, 2011 at 4:31 PM, csckid  wrote:
> I have added this line in Layout.java
> @Import(library={"context:js/jquery-1.6.2.min.js",
>                "context:js/hoverIntent.js","context:js/superfish.js"},
>                stylesheet={"context:css/superfish.css"})
>
> Now, the tapestry javascript isn't working. I want tapestry to work too.
>
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/javascript-tp4778141p4778141.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
>
>



-- 
Regards

Taha Hafeez Siddiqi (tawus)
http://tawus.wordpress.com

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



javascript

2011-09-07 Thread csckid
I have added this line in Layout.java
@Import(library={"context:js/jquery-1.6.2.min.js",
"context:js/hoverIntent.js","context:js/superfish.js"},
stylesheet={"context:css/superfish.css"})

Now, the tapestry javascript isn't working. I want tapestry to work too.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/javascript-tp4778141p4778141.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: Are all these great tools lately going into the component finder?

2011-09-07 Thread Taha Hafeez
Great work Bob!

You didn't announce it or did I miss it..

I am myself very busy with some projects. The good part is I am
getting work because of tapestry but the bad part is I am getting less
time to contribute back. Hope that changes in a month or so.


On Wed, Sep 7, 2011 at 4:20 PM, Massimo Lusetti  wrote:
> On Wed, Sep 7, 2011 at 12:39 PM, Bob Harner  wrote:
>
>> I guess you're asking about the app I'm working on
>> (https://github.com/bobharner/Tapestry-finder/wiki). Yes, Exanpe
>> components are listed in the database now (but not yet commited). So
>> far there are about 240 entries (components, mixins, elements,
>> packages & frameworks) in the database. Vacations and other things
>> have kept me from completing the app, hopefully I'll be able to get it
>> publicly hosted in the next small number of weeks.
>
> Forgot about that... Great stuff Bob!
>
> Cheers
> --
> Massimo
> http://meridio.blogspot.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>



-- 
Regards

Taha Hafeez Siddiqi (tawus)
http://tawus.wordpress.com

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



Re: Are all these great tools lately going into the component finder?

2011-09-07 Thread Massimo Lusetti
On Wed, Sep 7, 2011 at 12:39 PM, Bob Harner  wrote:

> I guess you're asking about the app I'm working on
> (https://github.com/bobharner/Tapestry-finder/wiki). Yes, Exanpe
> components are listed in the database now (but not yet commited). So
> far there are about 240 entries (components, mixins, elements,
> packages & frameworks) in the database. Vacations and other things
> have kept me from completing the app, hopefully I'll be able to get it
> publicly hosted in the next small number of weeks.

Forgot about that... Great stuff Bob!

Cheers
-- 
Massimo
http://meridio.blogspot.com

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



Re: Are all these great tools lately going into the component finder?

2011-09-07 Thread Bob Harner
I guess you're asking about the app I'm working on
(https://github.com/bobharner/Tapestry-finder/wiki). Yes, Exanpe
components are listed in the database now (but not yet commited). So
far there are about 240 entries (components, mixins, elements,
packages & frameworks) in the database. Vacations and other things
have kept me from completing the app, hopefully I'll be able to get it
publicly hosted in the next small number of weeks.

On Tue, Sep 6, 2011 at 11:04 PM, Lenny Primak  wrote:
> Just curious...
>
>
> -
> 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: Why IdAllocator is not a service ?

2011-09-07 Thread Amaury Willemant
Thank you Howard, I hope i did not offended you. I was just joking, the
modifications I realized seem to work and I must admit that it is a real
pleasure to understand Tapestry, the more you dig into the code, the more
you love it ;)



2011/9/6 Amaury Willemant 

> Hi everyone,
>
> I am currently working on an implementation of a Liferay portlet using
> Tapesty 5.1.0.5 and I need to add a prefix for all the ids written in the
> generated HTML and the associated javascript. I knew that Tapestry was able
> to add a numeric suffix (xxx_0, xxx_1, etc...) and that is how I discovered
> the IdAllocator class and its differents uses in Tapestry.
>
> I was really surprised because it seems to be only a simple POJO, so ? how
> to override it with Tapestry IOC ?
>
> The prefix I need to add is a piece of information stored in the Request
> service and changes for each request, how to inject it in a clean way ?
>
> I began to write a new service named "IdAllocatorFactory" which provides a
> new IdAllocator (that I rewrote to add a prefix field) then I patched all
> the classes which instantiate an IdAllocator (Form, FormInjector,
> RenderSupport, ...) in order to make them use my brand new factory.
>
> But I feel that it is too much ! Tapestry offers great functionnalities, it
> is very easy to extend or override, did I forgot something ? Is it mandatory
> to replace so many classes ?
>
> Please ! Tell me that there is an easier and cleaner way to add this prefix
> in front of all the HTML Ids ! Please !
>
> Thank you in advance,
>
> Amaury
>


Re: Migration from Tapestry 5.0.18 to Tapestry 5.2.6 on Websphere 6.1

2011-09-07 Thread jkollar
So we have found identified the problem. As I've found in the documentation,
Tapestry from version 5.1 compresses requests/responses and assets using
gzip. obviously our websphere has some problem with this. Our solution is to
disable this feature via configuration property
tapestry.gzip-compression-enabled. This has fixed our problem. But from what
I've quickly googled, it seems that Websphere indeed messes up something
with HTTP headers and compression: 
http://fixunix.com/websphere/526204-websphere-seems-decompress-gzipped-requests-but-let-thecontent-encoding.html
http://fixunix.com/websphere/526204-websphere-seems-decompress-gzipped-requests-but-let-thecontent-encoding.html
 
Thanks for help anyway.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Migration-from-Tapestry-5-0-18-to-Tapestry-5-2-6-on-Websphere-6-1-tp4774495p4777654.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: [ANN] exanpe-t5-lib : new Tapestry 5 library

2011-09-07 Thread Guerin Laurent
Thanks for all your messages. 
This encourages us to keep providing our efforts and provide soon more new 
features and components.

Tapestry rocks!

Exanpe team
http://exanpe.github.com/exanpe-t5-lib/

-Message d'origine-
De : Geoff Callender [mailto:geoff.callender.jumpst...@gmail.com] 
Envoyé : mardi 6 septembre 2011 14:12
À : Tapestry users
Objet : Re: [ANN] exanpe-t5-lib : new Tapestry 5 library

Thumbs up.
Geoff

On 06/09/2011, at 9:35 AM, Taha Hafeez wrote:

> Cool !!
> 
> Thanks for sharing.
> 
> 2011/9/6 François Facon :
>> Very Nice work.
>> Felicitations.
>> François
>> 
>> 2011/9/5 Muhammad Gelbana :
>>> Congrats !!
>>> 
>>> Magnificent components, I love many of them :)
>>> 
>>> On Mon, Sep 5, 2011 at 8:43 PM, Guerin Laurent 
>>> wrote:
>>> 
 Hi everyone!
 
 
 
 We are pleased to announce you the release 1.0.0 of our Tapestry 5 Library:
 exanpe-t5-lib.
 
 
 
 This library aims to provide a full set of components ready for use 
 and easy to integrate in any web application, as well as providing 
 a new skin for some of the most popular Tapestry 5 native 
 components.
 
 
 
 You can have a look to our demo here (GAE hosting, sorry about that):
 http://exanpe-t5-lib.appspot.com/
 
 
 
 A full documentation is available here:
 http://exanpe.github.com/exanpe-t5-lib/
 
 
 
 The lib is available into Maven central repository, you just have 
 to add this dependency in your pom.xml :
 
 
 
 
 
 fr.exanpe
 
 exanpe-t5-lib
 
 1.0.0
 
 
 
 
 
 Feel free to share any comment or suggestion!
 
 
 
 Exanpe Team.
 
 (Julien Maupoux / Laurent Guerin)
 
>>> 
>>> 
>>> 
>>> --
>>> *Regards,*
>>> *Muhammad Gelbana
>>> Java Developer*
>>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>> 
>> 
> 
> 
> 
> --
> Regards
> 
> Taha Hafeez Siddiqi (tawus)
> http://tawus.wordpress.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


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