Re: Where to put my Image files and Video files ?

2012-10-17 Thread dinesh707
Thank you



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Where-to-put-my-Image-files-and-Video-files-tp5716995p5717029.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: New article re: T5-Flash integration

2012-10-17 Thread ael
Any new link for this?

http://knol.google.com/k/toby-hobson/tapestry5-flash-integration/

Dead link...



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/New-article-re-T5-Flash-integration-tp2422860p5717028.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: Redirect to an internal url

2012-10-17 Thread Rural Hunter

Hi Lance,

Thank you very much!

于 2012/10/17 23:48, Lance Java 写道:

Creating a URL is probably the easiest thing to do. Note that you can @Inject
BaseURLSource to get the URL prefix.

Another option is to create a new response type (eg InternalRedirect). You
would then contribute a ComponentEventResultProcessor to handle the new
return type (by doing the actual redirect). Then, you could return instances
of InternalRedirect instead of URL (eg in onActivate).



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Redirect-to-an-internal-url-tp5717009p5717013.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: [t5.3.1 - AjaxFormLoop] How to prevent removing the last row ?

2012-10-17 Thread Taha Siddiqi
Hi

The formLoopRemoveLink does not check the return status but the removal is done 
only on a HTTP OK(200) status. 

You can override this js method with your custom logic.

regards
Taha


On Oct 18, 2012, at 3:28 AM, Muhammad Gelbana wrote:

> Am I lucky enough to get a positive answer now that we now reached v5.3.6 ?
> 
> Thank you all :)
> 
> On Wed, Mar 14, 2012 at 10:28 PM, Muhammad Gelbana wrote:
> 
>> Greetings to this magnificent mailing list and tapestry developers :)
>> 
>> I have a perfectly operating ajax form loop but I'm trying to find a way
>> to prevent the user from removing the last row in the form.
>> In an annotated method to handle the remove row events from the ajax form
>> loop, I've done the proper checks and tried returning false and null but
>> nothing worked. Has anyone done this before ?
>> 
>> My goal is to prevent the removal of the last ajax form loop row and
>> display a java script alert to clarify the error.
>> 
>> Thanks.
>> 
>> --
>> *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: Event parameter on the form or Multiple from handle in one method

2012-10-17 Thread Taha Siddiqi
Hi Bhovat

I am not sure I understood the whole question but from what I understand, you 
can use form context.



public boolean updateComponent(String whatever){
   if(whatever){
  ...
   }
}

regards
Taha

On Oct 18, 2012, at 2:38 AM, bhorvat wrote:

> I am having a bit of a problem that I would like to solve in the most elegant
> way so I am interested if there a better way to handle it.
> 
> I have a one object call it component that has multiple properties, and for
> each 4 properties I have 4 forms that dont have the id so they are handled
> by one method that does not have the id associated with, and for 1 property
> that has id on its form and the special method for it. 
> 
> The reason for that is that the first 4 properties can be handled in the
> same way but the 5th one has to handled in a special way. 
> 
> My problem is that I need to prevent event bubbling for the default method
> which in return stops the the trigger of the special method, also I can not
> group all for properties into one form as they are all over the place in the
> html.
> 
> So my question is can I somehow handle the 4 forms in one method but
> separate it from the 5th one. 
> 
> Below are code samples for the methods 
> 
>@OnEvent(value = EventConstants.SUCCESS)
>public boolean updateComponent() {
>systemManager.updateComponent(component);
>return true;
>}
> 
>@OnEvent(value = EventConstants.SUCCESS, component = "artist")
>public void updateComponentArtist() {
>systemManager.updateComponentArtist(component, artistUsername);
>}
> 
> As you can see the default method returns true so the second method is never
> triggered even when that form is submited. 
> 
> I know that links have the event parameter that I can put on them and in
> that way I can specify that they all will be handled in one way, can I do
> something similar with the form? 
> 
> 
> 
> 
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/Event-parameter-on-the-form-or-Multiple-from-handle-in-one-method-tp5717020.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



How to create custom using t:loop functionality

2012-10-17 Thread dinesh707
Hi, I'm very new to tapestry. I have a video call where it contains "video
name","uploader's name" and URL.  So i need to make a list appear in web
page with video name appearing in 
 and and uploaders name in normal text (one below the other.  And if some
one click the whole container (div container which includes video name and
uploader name) i need to pass that video url to the player. How can i achive
multiple elements appear in same div using single loop and how to make them
clickbale with different parameter throwing.






--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-create-custom-div-using-t-loop-functionality-tp5717002.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



Tapestry 5.3 with Tapestry-swfobject 1.5.0 not working.

2012-10-17 Thread ael
Hi,

Im upgrading my tapestry 5.1.0.5 application to 5.3.6
but tapestry-swfobject cannot locate Tapestry Initializer function.

Any idea on this?

Thank you very much.



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-5-3-with-Tapestry-swfobject-1-5-0-not-working-tp5717023.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.1 - AjaxFormLoop] How to prevent removing the last row ?

2012-10-17 Thread Muhammad Gelbana
Am I lucky enough to get a positive answer now that we now reached v5.3.6 ?

Thank you all :)

On Wed, Mar 14, 2012 at 10:28 PM, Muhammad Gelbana wrote:

> Greetings to this magnificent mailing list and tapestry developers :)
>
> I have a perfectly operating ajax form loop but I'm trying to find a way
> to prevent the user from removing the last row in the form.
> In an annotated method to handle the remove row events from the ajax form
> loop, I've done the proper checks and tried returning false and null but
> nothing worked. Has anyone done this before ?
>
> My goal is to prevent the removal of the last ajax form loop row and
> display a java script alert to clarify the error.
>
> Thanks.
>
> --
> *Regards,*
> *Muhammad Gelbana
> Java Developer*
>
>


Re: How to remove query parmeter from url string

2012-10-17 Thread Alejandro Scandroli
Hi George

I have a similar scenario, but the main difference is that I don't
know before hand the names of the query parameters.
I only have one page with this particular requirement so I do all the
URL query parameters encoding directly in the same page using the
events: DECORATE_PAGE_RENDER_LINK and DECORATE_COMPONENT_EVENT_LINK

Here is how my code looks like:

@OnEvent(EventConstants.ACTIVATE)
void activate(EventContext context)
{
filters = new ArrayList();
decodeFiltersFromRequest(request);
}

@OnEvent(EventConstants.DECORATE_PAGE_RENDER_LINK)
void decoratePageRenderLink(Link link, PageRenderRequestParameters parameters)
{
encodeFiltersIntoLink(link);
}

@OnEvent(EventConstants.DECORATE_COMPONENT_EVENT_LINK)
void decorateComponentEventLink(Link link,
ComponentEventRequestParameters parameters)
{
encodeFiltersIntoLink(link);
}

private void encodeFiltersIntoLink(Link link)
{
if (filters != null) {
for (Filter filter : filters)
{
link.addParameter(filter.getAttribute().getId(),
urlEncoder.encode(filter.getValue()));
}
}
}

private void decodeFiltersFromRequest(Request request)
{
for (String parameter : request.getParameterNames())
{
// do not care about tapestry internal form parameters
// && do not care about page form parameters
// && DO NOT care about chenillekit's AbstractEventMixin 
"value" parameter
if (!parameter.startsWith("t:") && !parameter.startsWith("f_") 
&&
!"value".equals(parameter))
{
FilterAttribute attribute = 
session.get(FilterAttribute.class, parameter);
if (attribute != null)
{
String[] params = 
request.getParameters(parameter);
for (String param : params)
{
filters.add(new Filter(attribute, 
urlEncoder.decode(param)));
}
} else {
// do something else
logger.error("weird request parameters names: " 
+
request.getParameterNames().toString());
}
}
}
}


I hope it helps.

Cheers.
Alejandro.

On Wed, Oct 17, 2012 at 4:11 PM, George Christman
 wrote:
> As always, thanks Lance / Thiago, I think at this point you guys have
> answered all my base questions. As far as my logic question, I think that it
> is probably best suited for stack overflow as it doesn't completely relate
> to tapestry. Hopefully this post will help others in the future who may be
> trying to build some sort of eCommerce site.
>
>
>
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/How-to-remove-query-parmeter-from-url-string-tp5716922p5717007.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



Event parameter on the form or Multiple from handle in one method

2012-10-17 Thread bhorvat
I am having a bit of a problem that I would like to solve in the most elegant
way so I am interested if there a better way to handle it.

I have a one object call it component that has multiple properties, and for
each 4 properties I have 4 forms that dont have the id so they are handled
by one method that does not have the id associated with, and for 1 property
that has id on its form and the special method for it. 

The reason for that is that the first 4 properties can be handled in the
same way but the 5th one has to handled in a special way. 

My problem is that I need to prevent event bubbling for the default method
which in return stops the the trigger of the special method, also I can not
group all for properties into one form as they are all over the place in the
html.

So my question is can I somehow handle the 4 forms in one method but
separate it from the 5th one. 

Below are code samples for the methods 

@OnEvent(value = EventConstants.SUCCESS)
public boolean updateComponent() {
systemManager.updateComponent(component);
return true;
}

@OnEvent(value = EventConstants.SUCCESS, component = "artist")
public void updateComponentArtist() {
systemManager.updateComponentArtist(component, artistUsername);
}

As you can see the default method returns true so the second method is never
triggered even when that form is submited. 

I know that links have the event parameter that I can put on them and in
that way I can specify that they all will be handled in one way, can I do
something similar with the form? 




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Event-parameter-on-the-form-or-Multiple-from-handle-in-one-method-tp5717020.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: Tapestry Problem on Google App Engine in Development

2012-10-17 Thread Dan Cyr
Does this look like the proper way?
>From AppModule,

public void contributeHttpServletRequestHandler(

OrderedConfiguration configuration) {

configuration.add("MyFilter", new MyFilter(), "after:GZIP");

}





On Wed, Oct 17, 2012 at 9:30 AM, Lance Java wrote:

> Hang on a sec... are you saying the containsHeader("Content-Encoding") is
> false even when it works on GAE 1.7.1? I don't think that you've configured
> your filter correctly considering your previous results below:
>
> 1.7.1
> Response Headersview source
> Content-Encodinggzip
> Content-Typetext/html; charset=utf-8
> ServerJetty(6.1.x)
> Transfer-Encodingchunked
>
> Request Headersview source
> Accepttext/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> Accept-Encodinggzip, deflate
> Accept-Languageen-US,en;q=0.5
> Cache-Controlmax-age=0
> Connectionkeep-alive
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Tapestry-Problem-on-Google-App-Engine-in-Development-tp5716763p5717003.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: Tapestry-Portlet status?

2012-10-17 Thread François Facon
You are right bob. Keep It Simple and Smart.


2012/10/17 Bob Harner :
> It seems to be an increasingly common view in the last couple of years
> is that portals/portlets are an outdated view technology, with the
> better, more modern approach being client-side logic with Ajax. I, for
> one, am glad to have left the portal world behind.
>
> On Wed, Oct 17, 2012 at 12:00 PM, Lenny Primak  wrote:
>> Thank you François,  this sums it up really well for me.
>>
>> On Oct 17, 2012, at 5:37 AM, François Facon  wrote:
>>
>>> Lenny,
>>>
>>> Everytime someone from Atos ask me this question,
>>> I answer "yes for liferay".
>>> As we have already numbers of portlet deploy in this portlet
>>> container, we haven't see any limitation from now.
>>>
>>> For other portlet container, I am pretty sure this bridge will work
>>> fine as long as the portlet container implements MARKUP_HEADER. This
>>> will avoid adding any js twice for any portal page that use more than
>>> one portlet instance.
>>>
>>> Regarding your needs.
>>> Portlet Containers have the following avantages:
>>> + content aggregation (you will be able to mix content that come any
>>> web framework )
>>> + use features provided by the container (cms, workflow, user management 
>>> etc..)
>>> + personnalization made easy by drag and drop
>>>
>>> and the following disavantage
>>> - in order to work inside a portlet container you need the bridge have
>>> to generate dirty url. so url rewriting have to be manage by portal.
>>> - cache, user management, has also to be managed by the portal
>>> - portal introduce overhead 20% mem and cpu
>>> - you will need trainning  in order to well manage your portal and you
>>> will have to train your users to avoid disaster.
>>>
>>>
>>> 2012/10/17 Lenny Primak :
 François,
 Do you think that got5-portlet is ready to use in production?
 Thanks.



 On Oct 16, 2012, at 2:12 PM, François Facon  
 wrote:

> Hi Markus,
>
> Your experience in developping portlet with tapestry is very interesting.
>
> Currently, we return  PortletRenderable object and PortalPage object
> to display another tapestry page in the current portlet or to request
> the portlet container to redirect the user to another page of the
> portlet container. did you try to use those object during an
> activation phase whithout success?
>
> About returning stream response during activation,  I can't see the
> related usage.
> could you give more details about that point?
>
> Freundlich grüßt
> François
>
> 2012/10/16 Markus Feindler :
>> Hm, it's hard to say since there are some basic features which don't
>> function in the "bridge" (like returning a page or stream response in
>> onactivate).
>>
>> I wouldn't recommend using it.
>>
>>>
>>>  Original-Nachricht 
>>> Datum: Tue, 16 Oct 2012 11:09:59 -0400
>>> Von: Lenny Primak 
>>> An: "Tapestry users" 
>>> Betreff: Re: Tapestry-Portlet status?
>>>
>>>   Thanks, I know it exists, but not sure it's ready for
>>> production use,
>>> hence the question if T5-portlet is something I should be using in
>>> production
>>>
>>> On Oct 16, 2012, at 10:56 AM, Lenny Primak wrote:
>>>
 I heard something about Tapestry supporting the Portlet spec.
 Is Tapestry going to support it out of the box or is Tapestry-Portlet
>>> ready to use in production?
>>>
>>>
>>> -
>>> 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
>>>
>>
>> -
>> 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...@tape

Re: Fwd: Get label input submit

2012-10-17 Thread William Lopes
Hey guys, after all this discussion, someone have idea of how I can get the
label of the submit button?

2012/10/17 William Lopes 

> Man, I tested this today and not works in the practice.
>
> 2012/10/16 Thiago H de Paula Figueiredo 
>
>> On Tue, 16 Oct 2012 22:25:48 -0300, William Lopes <
>> williamlopes@gmail.com> wrote:
>>
>>  So, we go to say that I have 3 atributes in my form:
>>> title(stringGeneric),
>>> author(modeloDadosGeneric), year(numericGeneric).
>>>
>>> Case I try to click in submit of the author, the context received will be
>>> "year", if I add another field, like description(**stringLargeGeneric),
>>> the
>>> return to click in submit button will be "description".
>>>
>>> This happens because the context is loaded just after click in the
>>> submit.
>>>
>>
>> Nope, this isn't correct. The context for a Submit component is defined
>> (loaded) while it's rendered, not when the submit button/link is clicked.
>>
>>
>> --
>> Thiago H. de Paula Figueiredo
>>
>> --**--**-
>> To unsubscribe, e-mail: 
>> users-unsubscribe@tapestry.**apache.org
>>
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
>


Re: Tapestry-Portlet status?

2012-10-17 Thread Bob Harner
It seems to be an increasingly common view in the last couple of years
is that portals/portlets are an outdated view technology, with the
better, more modern approach being client-side logic with Ajax. I, for
one, am glad to have left the portal world behind.

On Wed, Oct 17, 2012 at 12:00 PM, Lenny Primak  wrote:
> Thank you François,  this sums it up really well for me.
>
> On Oct 17, 2012, at 5:37 AM, François Facon  wrote:
>
>> Lenny,
>>
>> Everytime someone from Atos ask me this question,
>> I answer "yes for liferay".
>> As we have already numbers of portlet deploy in this portlet
>> container, we haven't see any limitation from now.
>>
>> For other portlet container, I am pretty sure this bridge will work
>> fine as long as the portlet container implements MARKUP_HEADER. This
>> will avoid adding any js twice for any portal page that use more than
>> one portlet instance.
>>
>> Regarding your needs.
>> Portlet Containers have the following avantages:
>> + content aggregation (you will be able to mix content that come any
>> web framework )
>> + use features provided by the container (cms, workflow, user management 
>> etc..)
>> + personnalization made easy by drag and drop
>>
>> and the following disavantage
>> - in order to work inside a portlet container you need the bridge have
>> to generate dirty url. so url rewriting have to be manage by portal.
>> - cache, user management, has also to be managed by the portal
>> - portal introduce overhead 20% mem and cpu
>> - you will need trainning  in order to well manage your portal and you
>> will have to train your users to avoid disaster.
>>
>>
>> 2012/10/17 Lenny Primak :
>>> François,
>>> Do you think that got5-portlet is ready to use in production?
>>> Thanks.
>>>
>>>
>>>
>>> On Oct 16, 2012, at 2:12 PM, François Facon  wrote:
>>>
 Hi Markus,

 Your experience in developping portlet with tapestry is very interesting.

 Currently, we return  PortletRenderable object and PortalPage object
 to display another tapestry page in the current portlet or to request
 the portlet container to redirect the user to another page of the
 portlet container. did you try to use those object during an
 activation phase whithout success?

 About returning stream response during activation,  I can't see the
 related usage.
 could you give more details about that point?

 Freundlich grüßt
 François

 2012/10/16 Markus Feindler :
> Hm, it's hard to say since there are some basic features which don't
> function in the "bridge" (like returning a page or stream response in
> onactivate).
>
> I wouldn't recommend using it.
>
>>
>>  Original-Nachricht 
>> Datum: Tue, 16 Oct 2012 11:09:59 -0400
>> Von: Lenny Primak 
>> An: "Tapestry users" 
>> Betreff: Re: Tapestry-Portlet status?
>>
>>   Thanks, I know it exists, but not sure it's ready for
>> production use,
>> hence the question if T5-portlet is something I should be using in
>> production
>>
>> On Oct 16, 2012, at 10:56 AM, Lenny Primak wrote:
>>
>>> I heard something about Tapestry supporting the Portlet spec.
>>> Is Tapestry going to support it out of the box or is Tapestry-Portlet
>> ready to use in production?
>>
>>
>> -
>> 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
>>
>
> -
> 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: hmac sample

2012-10-17 Thread Howard Lewis Ship
On Wed, Oct 17, 2012 at 7:11 AM, Bob Harner  wrote:
> I think Mike is talking more about the session state that comes from
> the apps themselves, not how Tapestry stores its own bookkeeping data.
> My guess is that the vast majority of real-world Tapestry apps have
> considerable session state (mostly from over-use of @Persist,
> @SessionState and @SessionAttribute) and do not use session
> replication. After all, the Tapestry Tutorial itself uses @Persist,
> and that's how most people learn how to use forms with Tapestry.
>
> Also, another HMAC issue just occurred to me: Probably many (most?)
> apps that have been around for a couple years have not yet fully
> converted to the AlertManager way of displaying messages. For those
> apps, the conversion to 5.3.6 means they'll have a hard-to-notice
> error in the logs and nothing else. I'm not sure what can be done
> about that, but I guess a lot of people will be puzzled if they don't
> read the release notes carefully.

This is why I generally do not like warnings .. they just get lost or ignored.

Perhaps we need to create a DeveloperAlert system that can "force"
client-side alerts (possibly some form of pop-up or floating div) that
can't be ignored.

I had a discussion a couple of years back about a development mode
console that could, for example, capture server-side request
processing details (for example, SQL queries and timings, etc.).  I
think that would be neat.

>
> On Mon, Oct 15, 2012 at 12:33 PM, Howard Lewis Ship  wrote:
>> On Mon, Oct 15, 2012 at 8:11 AM, Michael Gentry  
>> wrote:
>>> Hi Howard,
>>>
>>> If your application requires session state to function, it would error
>>> out regardless.  Perhaps the random approach is better for
>>> session-heavy applications and the fixed/stable approach is better for
>>> session-free applications?
>>
>> Especially in 5.4, it will be much more likely that all necessary
>> state will be encoded into the form, as the f:formdata hidden field.
>> A restart of the server (when the passphrase is randomly generated)
>> will invalidate that hidden data, causing an ugly runtime exception,
>> even if it is not dependent on server-side state.
>>
>> As a side note; in 5.4, a validation error on a form causes the page
>> to be re-rendered immediately, as part of the same POST request. In
>> 5.3 and earlier, a validation error on a form would cause a redirect
>> back to the page. Because of this, the ValidationTracker object (which
>> captures field inputs and errors) does not have to be stored in the
>> session (to survive until the redirect), and that's the primary way
>> that a session gets created.
>>
>>>
>>> Thanks,
>>>
>>> mrg
>>>
>>>
>>> On Sun, Oct 14, 2012 at 1:39 PM, Howard Lewis Ship  wrote:
 On Sat, Oct 13, 2012 at 4:22 AM, Bob Harner  wrote:
> Use any long, random, private string of characters, just like you'd
> use for a secure password or pass phrase.
>
> From Wikipedia: "The cryptographic strength of the HMAC depends upon
> the size of the secret key that is used. The most common attack
> against HMACs is brute force to uncover the secret key."
>
> If your app is is not clustered (or is clustered, but uses sticky
> sessions), you can just generate a random string:
>
> // Set a random HMAC key for form signing (not cluster safe)
> configuration.add(SymbolConstants.HMAC_PASSPHRASE,
> new BigInteger(130, new 
> SecureRandom()).toString(32));
>

 I would not advise this approach.

 If a page renders a form, it is using the hmac passphrase.

 If the server restarts before the form is submitted, you will see a
 server-side error about the HMAC being invalid when the form is
 submitted.

 The passphrase should be more stable; I would not change it very
 often, if at all, once created.

> Disclaimer: the assessment of the security implications of this are up
> to you. I claim no particular expertise here.
>
> On Fri, Oct 12, 2012 at 11:15 PM, angelochen  
> wrote:
>> Hi,
>>
>> got this error when upgrading to 5.3.6, any sample to set this?
>>
>> ClientDataEncoder The symbol 'tapestry.hmac-passphrase' has not been
>> configured.
>>
>> Thanks,
>>
>>
>>
>> --
>> View this message in context: 
>> http://tapestry.1045711.n5.nabble.com/hmac-sample-tp5716873.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-Portlet status?

2012-10-17 Thread Lenny Primak
Thank you François,  this sums it up really well for me. 

On Oct 17, 2012, at 5:37 AM, François Facon  wrote:

> Lenny,
> 
> Everytime someone from Atos ask me this question,
> I answer "yes for liferay".
> As we have already numbers of portlet deploy in this portlet
> container, we haven't see any limitation from now.
> 
> For other portlet container, I am pretty sure this bridge will work
> fine as long as the portlet container implements MARKUP_HEADER. This
> will avoid adding any js twice for any portal page that use more than
> one portlet instance.
> 
> Regarding your needs.
> Portlet Containers have the following avantages:
> + content aggregation (you will be able to mix content that come any
> web framework )
> + use features provided by the container (cms, workflow, user management 
> etc..)
> + personnalization made easy by drag and drop
> 
> and the following disavantage
> - in order to work inside a portlet container you need the bridge have
> to generate dirty url. so url rewriting have to be manage by portal.
> - cache, user management, has also to be managed by the portal
> - portal introduce overhead 20% mem and cpu
> - you will need trainning  in order to well manage your portal and you
> will have to train your users to avoid disaster.
> 
> 
> 2012/10/17 Lenny Primak :
>> François,
>> Do you think that got5-portlet is ready to use in production?
>> Thanks.
>> 
>> 
>> 
>> On Oct 16, 2012, at 2:12 PM, François Facon  wrote:
>> 
>>> Hi Markus,
>>> 
>>> Your experience in developping portlet with tapestry is very interesting.
>>> 
>>> Currently, we return  PortletRenderable object and PortalPage object
>>> to display another tapestry page in the current portlet or to request
>>> the portlet container to redirect the user to another page of the
>>> portlet container. did you try to use those object during an
>>> activation phase whithout success?
>>> 
>>> About returning stream response during activation,  I can't see the
>>> related usage.
>>> could you give more details about that point?
>>> 
>>> Freundlich grüßt
>>> François
>>> 
>>> 2012/10/16 Markus Feindler :
 Hm, it's hard to say since there are some basic features which don't
 function in the "bridge" (like returning a page or stream response in
 onactivate).
 
 I wouldn't recommend using it.
 
> 
>  Original-Nachricht 
> Datum: Tue, 16 Oct 2012 11:09:59 -0400
> Von: Lenny Primak 
> An: "Tapestry users" 
> Betreff: Re: Tapestry-Portlet status?
> 
>   Thanks, I know it exists, but not sure it's ready for
> production use,
> hence the question if T5-portlet is something I should be using in
> production
> 
> On Oct 16, 2012, at 10:56 AM, Lenny Primak wrote:
> 
>> I heard something about Tapestry supporting the Portlet spec.
>> Is Tapestry going to support it out of the box or is Tapestry-Portlet
> ready to use in production?
> 
> 
> -
> 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
> 

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



Re: Redirect to an internal url

2012-10-17 Thread Lance Java
Creating a URL is probably the easiest thing to do. Note that you can @Inject
BaseURLSource to get the URL prefix.

Another option is to create a new response type (eg InternalRedirect). You
would then contribute a ComponentEventResultProcessor to handle the new
return type (by doing the actual redirect). Then, you could return instances
of InternalRedirect instead of URL (eg in onActivate).



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Redirect-to-an-internal-url-tp5717009p5717013.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: Redirect to an internal url

2012-10-17 Thread Rural Hunter
Yes, I have already set the ignored paths to ignore all jsps. The 
question is the default page of myapp when accessed only by 
"http://myhost/myapp";. Tapestry will show the Tapestry page Index but I 
want the original page login.jsp being shown.


于 2012/10/17 22:54, Lance Java 写道:

Tapestry by default wants to handle everything. If you want to let the
servlet container handle some url's you will need to contribute to the
IgnoredPathsFilter. It's probably best to put all of these sorts of files in
a virtual folder and ignore the folder rather than individual fiiles.

http://tapestry.apache.org/configuration.html#Configuration-ConfiguringIgnoredPaths



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Redirect-to-an-internal-url-tp5717009p5717010.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: Redirect to an internal url

2012-10-17 Thread Rural Hunter
Yes, I have already set the ignored paths to ignore all jsps. The 
question is the default page of myapp when accessed only by 
"http://myhost/myapp";. Tapestry will show the Tapestry page Index but I 
want the original page login.jsp is shown.


于 2012/10/17 22:54, Lance Java 写道:

Tapestry by default wants to handle everything. If you want to let the
servlet container handle some url's you will need to contribute to the
IgnoredPathsFilter. It's probably best to put all of these sorts of files in
a virtual folder and ignore the folder rather than individual fiiles.

http://tapestry.apache.org/configuration.html#Configuration-ConfiguringIgnoredPaths



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Redirect-to-an-internal-url-tp5717009p5717010.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: Redirect to an internal url

2012-10-17 Thread Lance Java
Tapestry by default wants to handle everything. If you want to let the
servlet container handle some url's you will need to contribute to the
IgnoredPathsFilter. It's probably best to put all of these sorts of files in
a virtual folder and ignore the folder rather than individual fiiles.

http://tapestry.apache.org/configuration.html#Configuration-ConfiguringIgnoredPaths



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Redirect-to-an-internal-url-tp5717009p5717010.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



Redirect to an internal url

2012-10-17 Thread Rural Hunter

Hi,

I'm intergrating tapestry into an existing webapp. The original index 
page of the webapp is login.jsp. After tapestry is introduced, tapestry 
sets the index page to Tapestry page "Index". So I want to redirect to 
"login.jsp" in the onActivate() method of Tapestry page Index. Seems the 
only way I have is to manually construct the full URL of the login.jsp 
and return an URL instance, same as an external link. Is there a better 
way to handle internal link?


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



Re: How to remove query parmeter from url string

2012-10-17 Thread George Christman
As always, thanks Lance / Thiago, I think at this point you guys have
answered all my base questions. As far as my logic question, I think that it
is probably best suited for stack overflow as it doesn't completely relate
to tapestry. Hopefully this post will help others in the future who may be
trying to build some sort of eCommerce site. 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-remove-query-parmeter-from-url-string-tp5716922p5717007.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: hmac sample

2012-10-17 Thread Bob Harner
I think Mike is talking more about the session state that comes from
the apps themselves, not how Tapestry stores its own bookkeeping data.
My guess is that the vast majority of real-world Tapestry apps have
considerable session state (mostly from over-use of @Persist,
@SessionState and @SessionAttribute) and do not use session
replication. After all, the Tapestry Tutorial itself uses @Persist,
and that's how most people learn how to use forms with Tapestry.

Also, another HMAC issue just occurred to me: Probably many (most?)
apps that have been around for a couple years have not yet fully
converted to the AlertManager way of displaying messages. For those
apps, the conversion to 5.3.6 means they'll have a hard-to-notice
error in the logs and nothing else. I'm not sure what can be done
about that, but I guess a lot of people will be puzzled if they don't
read the release notes carefully.

On Mon, Oct 15, 2012 at 12:33 PM, Howard Lewis Ship  wrote:
> On Mon, Oct 15, 2012 at 8:11 AM, Michael Gentry  wrote:
>> Hi Howard,
>>
>> If your application requires session state to function, it would error
>> out regardless.  Perhaps the random approach is better for
>> session-heavy applications and the fixed/stable approach is better for
>> session-free applications?
>
> Especially in 5.4, it will be much more likely that all necessary
> state will be encoded into the form, as the f:formdata hidden field.
> A restart of the server (when the passphrase is randomly generated)
> will invalidate that hidden data, causing an ugly runtime exception,
> even if it is not dependent on server-side state.
>
> As a side note; in 5.4, a validation error on a form causes the page
> to be re-rendered immediately, as part of the same POST request. In
> 5.3 and earlier, a validation error on a form would cause a redirect
> back to the page. Because of this, the ValidationTracker object (which
> captures field inputs and errors) does not have to be stored in the
> session (to survive until the redirect), and that's the primary way
> that a session gets created.
>
>>
>> Thanks,
>>
>> mrg
>>
>>
>> On Sun, Oct 14, 2012 at 1:39 PM, Howard Lewis Ship  wrote:
>>> On Sat, Oct 13, 2012 at 4:22 AM, Bob Harner  wrote:
 Use any long, random, private string of characters, just like you'd
 use for a secure password or pass phrase.

 From Wikipedia: "The cryptographic strength of the HMAC depends upon
 the size of the secret key that is used. The most common attack
 against HMACs is brute force to uncover the secret key."

 If your app is is not clustered (or is clustered, but uses sticky
 sessions), you can just generate a random string:

 // Set a random HMAC key for form signing (not cluster safe)
 configuration.add(SymbolConstants.HMAC_PASSPHRASE,
 new BigInteger(130, new 
 SecureRandom()).toString(32));

>>>
>>> I would not advise this approach.
>>>
>>> If a page renders a form, it is using the hmac passphrase.
>>>
>>> If the server restarts before the form is submitted, you will see a
>>> server-side error about the HMAC being invalid when the form is
>>> submitted.
>>>
>>> The passphrase should be more stable; I would not change it very
>>> often, if at all, once created.
>>>
 Disclaimer: the assessment of the security implications of this are up
 to you. I claim no particular expertise here.

 On Fri, Oct 12, 2012 at 11:15 PM, angelochen  
 wrote:
> Hi,
>
> got this error when upgrading to 5.3.6, any sample to set this?
>
> ClientDataEncoder The symbol 'tapestry.hmac-passphrase' has not been
> configured.
>
> Thanks,
>
>
>
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/hmac-sample-tp5716873.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

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

Re: How to remove query parmeter from url string

2012-10-17 Thread Lance Java
> It would be nice if tapestry offered you the ability to easily change it's
encoder strategy. Example uses dashes instead of the zeros.
Download the tapestry sources and check out URLEncoderImpl. Use this as a
basis to override the default URLEncoder.



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-remove-query-parmeter-from-url-string-tp5716922p5717006.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: How to remove query parmeter from url string

2012-10-17 Thread Thiago H de Paula Figueiredo
On Wed, 17 Oct 2012 10:36:46 -0300, George Christman  
 wrote:


So I think this is my last question in regards to this topic. If your  
doing your calculations on the fly, example converting aston marton to

aston-martin which would mean you would later need to convert it back to
aston marton to do the query, what do you do when the string naturally
contains a dash. Example blue-purple, no spaces, but when decoded it  
would be decoded as blue purple with the assumption we replace dashes  
with space.


This is some logic you need to do yourself.

If I go the encoder route, I'd probably want something that handles all  
my parameter strings. It would be nice if tapestry offered you the  
ability to easily change it's encoder strategy. Example uses dashes  
instead of the

zeros.


There is already: override the URLEncoder service. Or override the default  
ValueEncoder for String, as Lance suggested.


--
Thiago H. de Paula Figueiredo

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



Re: How to remove query parmeter from url string

2012-10-17 Thread George Christman
So I think this is my last question in regards to this topic. If your doing
your calculations on the fly, example converting aston marton to
aston-martin which would mean you would later need to convert it back to
aston marton to do the query, what do you do when the string naturally
contains a dash. Example blue-purple, no spaces, but when decoded it would
be decoded as blue purple with the assumption we replace dashes with space. 

If I go the encoder route, I'd probably want something that handles all my
parameter strings. It would be nice if tapestry offered you the ability to
easily change it's encoder strategy. Example uses dashes instead of the
zeros. 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-remove-query-parmeter-from-url-string-tp5716922p5717004.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: Tapestry Problem on Google App Engine in Development

2012-10-17 Thread Lance Java
Hang on a sec... are you saying the containsHeader("Content-Encoding") is
false even when it works on GAE 1.7.1? I don't think that you've configured
your filter correctly considering your previous results below:

1.7.1 
Response Headersview source 
Content-Encodinggzip 
Content-Typetext/html; charset=utf-8 
ServerJetty(6.1.x) 
Transfer-Encodingchunked 

Request Headersview source 
Accepttext/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 
Accept-Encodinggzip, deflate 
Accept-Languageen-US,en;q=0.5 
Cache-Controlmax-age=0 
Connectionkeep-alive 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-Problem-on-Google-App-Engine-in-Development-tp5716763p5717003.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: How to remove query parmeter from url string

2012-10-17 Thread Lance Java
> is returning a link in onSuccess the right way to build the URL
If you're using @ActivationRequestParam then as Thiago said a void return is
probably best. If you're not using  @ActivationRequestParam you will either
need to build a link or use @Persist (lets not discuss activation context
here).

> you'll notice in onSuccess I'm getting the objects name and then passing
> the string name
Ah yeah... I can see that now. So it's using the String ValueEncoder not the
hibernate ValueEncoder.

> should I create some sort of encoder
That's exactly what i'd do

> should I do the work up front and store a column in the database
I'd never store a value that can be calculated. It's unnecessary
maintenance.

I guess a question you want to ask yourself is should your custom encoder be
global or just for these few selects? If it's global, you might want to
consider overriding the default string ValueEncoder.



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-remove-query-parmeter-from-url-string-tp5716922p5717001.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: Tapestry Problem on Google App Engine in Development

2012-10-17 Thread Lance Java
So, this seems to be an issue in tapestry after all. 

Can any tapestry gurus explain why tapestry would return gzipped content
without setting the Content-Encoding header?



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-Problem-on-Google-App-Engine-in-Development-tp5716763p5717000.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: How to remove query parmeter from url string

2012-10-17 Thread George Christman
Hi Lance, yes using @ActivationRequestParam was deffinately much cleaner
since I didn't need an onActivate nor did I need to return a Link in
onSuccess. BTW, is returning a link in onSuccess the right way to build the
URL?

A problem I found with @ActivationRequestParam is my inability to handle
exceptions properly. If someone puts a bunch of garbage in the URL, it
results in an exception. Perhaps I just don't know how to handle them with
@ActivationRequestParam, but at least I know with onActivate, I can handle
them. 

My pk's are in fact longs, so my table structure is pk type long, name type
string. I'm passing the object into my select menu, then when a user selects
an item from the select menu and submits the results, you'll notice in
onSuccess I'm getting the objects name and then passing the string name into
the URL rather than the pk. I'm doing it this way because I didn't want pk's
in my URLs, I'd prefer readable URLs for SEO. So as you can see, it
unfortunately adds a lot more complexity to the code. So the question is
should I create some sort of encoder that encodes all spaces with either an
underscore or dash then later decodes it back?, or should I do the work up
front and store a column in the database that already has either an
underscore or a dash in place of a space? Option two seems like the better
solution IMHO eliminating the chance of damaging a name that may by default
contain those chars. 

Thanks Lance. 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-remove-query-parmeter-from-url-string-tp5716922p5716998.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: Tapestry Problem on Google App Engine in Development

2012-10-17 Thread Dan Cyr
Oops, pardon me, I see now, can't get the value, only true/false.



AppModule:

@Override
public boolean service(HttpServletRequest request, HttpServletResponse
response,
HttpServletRequestHandler handler) throws IOException {


logger.error("Contains header: " +
response.containsHeader("Content-Encoding"));

return handler.service(request, response);

}


1.7.2.1
configuration.add(SymbolConstants.GZIP_COMPRESSION_ENABLED,
"false");

12:41:53,851 ERROR [com.MyFilter:27] - Contains header: false

Without turning off gzip compression by setting it to false:


12:44:02,940 ERROR [com.MyFilter:27] - Contains header: false


12:45:42,095 ERROR [com.MyFilter:27] - Contains header: false



1.7.1


12:49:04,271 ERROR [com.MyFilter:27] - Contains header: false




False for everything.




On Wed, Oct 17, 2012 at 3:37 AM, Lance Java wrote:

> > .containsHeader(..yes, pre 3.0
> So print the boolean instead of the value. I just wanna see if tapestry has
> populated it.
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Tapestry-Problem-on-Google-App-Engine-in-Development-tp5716763p5716988.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: Where to put my Image files and Video files ?

2012-10-17 Thread Lance Java
The first question you need to ask is are the assets static (ie defined at
build time) or dynamic?

If your assets are static, then you will either store them on the webcontext
or on the classpath
To access static assets in the webapp use "context:path/to/asset.gif"
To access static assets on the classpath use "classpath:path/to/asset.gif"
http://tapestry.apache.org/assets.html

If your assets are dynamic, you will probably want to store them in the
database or some other blobstore and use a StreamResponse to get them.
http://wiki.apache.org/tapestry/Tapestry5HowToStreamAnExistingBinaryFile

If building with maven or gradle, static assets should go in
src/main/resources or src/main/webapp
http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html







--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Where-to-put-my-Image-files-and-Video-files-tp5716995p5716997.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: Tapestry-Portlet status?

2012-10-17 Thread François Facon
Lenny,

Everytime someone from Atos ask me this question,
I answer "yes for liferay".
As we have already numbers of portlet deploy in this portlet
container, we haven't see any limitation from now.

For other portlet container, I am pretty sure this bridge will work
fine as long as the portlet container implements MARKUP_HEADER. This
will avoid adding any js twice for any portal page that use more than
one portlet instance.

Regarding your needs.
Portlet Containers have the following avantages:
+ content aggregation (you will be able to mix content that come any
web framework )
+ use features provided by the container (cms, workflow, user management etc..)
+ personnalization made easy by drag and drop

and the following disavantage
- in order to work inside a portlet container you need the bridge have
to generate dirty url. so url rewriting have to be manage by portal.
- cache, user management, has also to be managed by the portal
- portal introduce overhead 20% mem and cpu
- you will need trainning  in order to well manage your portal and you
will have to train your users to avoid disaster.


2012/10/17 Lenny Primak :
> François,
> Do you think that got5-portlet is ready to use in production?
> Thanks.
>
>
>
> On Oct 16, 2012, at 2:12 PM, François Facon  wrote:
>
>> Hi Markus,
>>
>> Your experience in developping portlet with tapestry is very interesting.
>>
>> Currently, we return  PortletRenderable object and PortalPage object
>> to display another tapestry page in the current portlet or to request
>> the portlet container to redirect the user to another page of the
>> portlet container. did you try to use those object during an
>> activation phase whithout success?
>>
>> About returning stream response during activation,  I can't see the
>> related usage.
>> could you give more details about that point?
>>
>> Freundlich grüßt
>> François
>>
>> 2012/10/16 Markus Feindler :
>>> Hm, it's hard to say since there are some basic features which don't
>>> function in the "bridge" (like returning a page or stream response in
>>> onactivate).
>>>
>>> I wouldn't recommend using it.
>>>

  Original-Nachricht 
 Datum: Tue, 16 Oct 2012 11:09:59 -0400
 Von: Lenny Primak 
 An: "Tapestry users" 
 Betreff: Re: Tapestry-Portlet status?

Thanks, I know it exists, but not sure it's ready for
 production use,
 hence the question if T5-portlet is something I should be using in
 production

 On Oct 16, 2012, at 10:56 AM, Lenny Primak wrote:

> I heard something about Tapestry supporting the Portlet spec.
> Is Tapestry going to support it out of the box or is Tapestry-Portlet
 ready to use in production?


 -
 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



Raty component

2012-10-17 Thread o1550762
I want to implement raty component and bound it to the existing DB. I have
seen raty component of the JQUERY project and seems to be OK, however no
demo is presented anywhere, and I can't figure out how does it correctly
work. 

http://tapestry5-jquery.com/mixins/docsraty
  

Anyone has deal with this before? 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Raty-component-tp5716994.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: Gallery for each article using hibernate

2012-10-17 Thread o1550762
Thanks for the answers. I have chosen to go for LanceJava's solution, but
kcollasi code is very helpful and has contributed me greatly for better
understanding how Tapestry works. :)



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Gallery-for-each-article-using-hibernate-tp5716817p5716993.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: Tapestry-Portlet status?

2012-10-17 Thread Lance Java
Having not developed portlets myself... I'm interested to hear the use-case
that a portlet can solve that an ajax-based component can not?



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-Portlet-status-tp5716944p5716992.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] When can a java.net.URL be returned from an event handler?

2012-10-17 Thread Lance Java
I'm out of suggestions... perhaps a bit of surrounding code *might* help but
I'm not sure it will. AFAIK tapestry will always be able to handle a URL
return value from a non-ajax event.



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-2-6-When-can-a-java-net-URL-be-returned-from-an-event-handler-tp5716618p5716991.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: How to remove query parmeter from url string

2012-10-17 Thread Lance Java
Since you're using tapestry-hibernate, you will be using an auto-generated
ValueEncoder under the hood to convert to/from clientside strings to your
entities. So this seems to lead to the fact that "Aston Martin" is a primary
key in you database. If this is the case it's probably a bad idea to have
spaces in primary keys.




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-remove-query-parmeter-from-url-string-tp5716922p5716990.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: EventLink parameters

2012-10-17 Thread Lance Java
I have to agree with the other guys You were starting to get on my tits a
bit too. 

In fact, if you look at the first response on this thread, I provided a link
to an example [1] containing the solution to your problem. I get the feeling
that you don't take the time to comprehend (or maybe even read?) the answers
you are given.

I have a bit of a philosophy in life:
If one person says you're being an idiot, don't pay much attention. If two
(or more) people say it, you're most likely being an idiot ;)

[1]
http://tapestry.1045711.n5.nabble.com/Gallery-for-each-article-using-hibernate-td5716817.html





--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/EventLink-parameters-tp5716874p5716989.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: Tapestry Problem on Google App Engine in Development

2012-10-17 Thread Lance Java
> .containsHeader(..yes, pre 3.0 
So print the boolean instead of the value. I just wanna see if tapestry has
populated it.



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-Problem-on-Google-App-Engine-in-Development-tp5716763p5716988.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