Re: third-party grid

2012-03-25 Thread csckid
How do I use it? I am pretty novice

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/third-party-grid-tp5592196p5594350.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: Change default session timeout interval

2012-03-25 Thread harry
Thank you, lprimak and RuralHunter.

I am so dumb.  I was so fixated with setMaxInactiveInterval() that I
completely forgot about web.xml.

Anyhow, I solved the problem by adding


10
 

to web.xml.  Because I am using Jetty, this configuration overwrites the
default of 30 set by webdefault.xml

Thanks again, guys!

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Change-default-session-timeout-interval-tp5594150p5594171.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: Change default session timeout interval

2012-03-25 Thread Rural Hunter
why don't you just set it in web.xml? I don't think tapestry will 
violate it.


于 2012/3/26 9:51, harry 写道:

Dear Tapestry community,

I am wondering what's the best practice to change default session timeout
interval.  Specifically, I'd like to shorten it.  The older discussions in
the mailing list seem to be either out-dated or not on point.

I have been using the ApplicationStateManager (with the default strategy of
session storage) to handle User objects.  The storage time is a lot longer
than I intend it to be.

The setMaxInactiveInterval() method on org.apache.tapestry5.services.Session
looks appealing, but I am not sure about /how/ and /when/ to invoke it, if
it is indeed the right method to use.

Any help will be greatly appreciated.  Thank you.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Change-default-session-timeout-interval-tp5594150p5594150.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: Change default session timeout interval

2012-03-25 Thread Lenny Primak
The session timeout is strictly a function of a servlet container you are 
using. Most of them listen to web.xml session-timeout property in 
session-config section. Look up web.xml syntax on the web. 
This has nothing to do with tapestry.  



On Mar 25, 2012, at 8:51 PM, harry  wrote:

> Dear Tapestry community,
> 
> I am wondering what's the best practice to change default session timeout
> interval.  Specifically, I'd like to shorten it.  The older discussions in
> the mailing list seem to be either out-dated or not on point.
> 
> I have been using the ApplicationStateManager (with the default strategy of
> session storage) to handle User objects.  The storage time is a lot longer
> than I intend it to be.
> 
> The setMaxInactiveInterval() method on org.apache.tapestry5.services.Session
> looks appealing, but I am not sure about /how/ and /when/ to invoke it, if
> it is indeed the right method to use.
> 
> Any help will be greatly appreciated.  Thank you.
> 
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/Change-default-session-timeout-interval-tp5594150p5594150.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



Change default session timeout interval

2012-03-25 Thread harry
Dear Tapestry community,

I am wondering what's the best practice to change default session timeout
interval.  Specifically, I'd like to shorten it.  The older discussions in
the mailing list seem to be either out-dated or not on point.

I have been using the ApplicationStateManager (with the default strategy of
session storage) to handle User objects.  The storage time is a lot longer
than I intend it to be.
 
The setMaxInactiveInterval() method on org.apache.tapestry5.services.Session
looks appealing, but I am not sure about /how/ and /when/ to invoke it, if
it is indeed the right method to use.

Any help will be greatly appreciated.  Thank you.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Change-default-session-timeout-interval-tp5594150p5594150.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: Got5-Jquery compatibility with Grid and BeanEditForm / Tapestry-Bootstrap

2012-03-25 Thread trsvax
I may have been a bit premature with my grim assessment of combining Tapestry
and Bootstrap CSS. i tried grid first and ran into problems so i assumed
there would be problems will everything. After looking into things a bit
more it may be the only thing that does not work is grid and I think I may
be able to fix that by including the Bootstrap CSS before the Tapestry one.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Got5-Jquery-compatibility-with-Grid-and-BeanEditForm-Tapestry-Bootstrap-tp5584806p5593813.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: Got5-Jquery compatibility with Grid and BeanEditForm / Tapestry-Bootstrap

2012-03-25 Thread Lenny Primak
My vote is #2



On Mar 25, 2012, at 6:55 AM, trsvax  wrote:

> I experimented with the Grid component and as I suspected it's a problem if
> you include both the Tapestry and Bootstrap CSS on the same page. While the
> Tapestry side does have t- in the class names the Bootstrap does not. The
> real problem is the Bootstrap CSS works on the table elements not by a class
> so what happens is you get both the Tapestry and Bootstrap formatting on the
> Grid's table. Until CSS regions are supported you can't really have both
> active on the same page. 
> 
> I don't see any reason why you can't do this at the page level if you have a
> Tapestry layout and a Bootstrap layout, but unless you have a very
> customized Bootstrap CSS you will not be able to mix the Tapestry styled
> components with Bootstrap styled components because the Bootstrap CSS will
> style everything.
> 
> So the unfortunate reality is you can't easily mix the two styles.
> 
> Given that what's the conclusion? 
> 
> Here is what I think is possible
> 
> 1. If you load the module it translates everything (the way it works now)
> 
> 2. You can control it by page with different layouts (I think this is pretty
> easy)
> 
> 3. Split the Bootstrap CSS up by function and try and include it when needed
> via the mixin. This would be a lot of work and I'm not sure how useful it
> would be in the end. There would be limitations such as you can't have a
> Bootstrap Grid and a Tapestry Grid on the same page. Plus I think it would
> make things more difficult if you just want a straight up Bootstrap site. 
> 
> 4. You can control it by component and have a customized Bootstrap CSS. For
> example you turn off translating on Grid and have a customized Bootstrap CSS
> that does not include the table CSS.
> 
> 
> My vote would be 1. If there is interest in 2 I'd be willing to implement
> that. I don't see much value in 3 and it would take a compelling argument to
> get me to head down that path. I think 4 is currently possible but you'd
> really have to really know what you were doing.
> 
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/Got5-Jquery-compatibility-with-Grid-and-BeanEditForm-Tapestry-Bootstrap-tp5584806p5593145.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: Tapestry5 services cookies not get writes in samsung galaxy nexus s

2012-03-25 Thread Bob Harner
On Sat, Mar 24, 2012 at 1:32 AM, karthi  wrote:
> Hi,
>
>   I am developing an application using tapestry (my first app), in that am
> using cookies like below
>
> public class Portfolio {
>
>        @org.apache.tapestry5.ioc.annotations.Inject
>        private Cookies cookies;
>
>        cookies.writeCookieValue("isUserLogin", "True", 60*60);
>        cookies.writeCookieValue("userId", userId, 60*60);
>
> and read from cookie value by this method
>
>        cookies.readCookieValue("userIdent");
>
> I have tested this in firefox browser, Iphone OS 4, Android HTC, Android
> Samsung galaxy s2 and in some other phones this cookie is working great in
> all these phones, I can able to see my sysouts logs regarding cookeis etc.,
>
> But in samsung galaxy nexus s (Android OS version 2.3.6) this cookies not
> get write or saved...?
>
> For testing purpose we wrote a single file to save this cookies, in that
> also it dint write, however if I used javax.servlet.http.Cookie; the value
> get writes in the phone!
>
> What should have caused this problem?
> Am I miss anything in code?
> Can anyone help me to find the root cause here?
>
> }
>
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/Tapestry5-services-cookies-not-get-writes-in-samsung-galaxy-nexus-s-tp5591264p5591264.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>

I guess your're really doing:

cookies.readCookieValue("userId");

(You corrected your Nabble post, but mailing list users don't see such updates.)

The Tapestry 5 Cookies API
(http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/services/Cookies.html)
is only a very simple façade in front of javax.servlet.http.Cookie,
and is missing some basic functionality (can't specify the secure flag
per TAP5-47, can't set a cookie having a domain+path+max-age
combination per TAP5-1394/TAP5-1858, no ability to delete a session
cookie having a domain).

Can you provide the exact method in javax.servlet.http.Cookie (and its
parameters) that works for you? I'm guessing it's a variation that
doesn't have an exact match in the Tapestry Cookies API. In that case,
you might have to use the javax.servlet.http.Cookie class directly or
maybe provide a custom implementation of
org.apache.tapestry5.services.Cookies

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



Re: third-party grid

2012-03-25 Thread Emmanuel DEMEY
First, if you want tp use the jqGrid, you should have a look to our
tapestry5-jquery-jqgrid contribution :
https://github.com/got5/tapestry5-jquery-jqgrid

2012/3/24 csckid 

> I liked the grid in http://trirand.com/blog/jqgrid/jqgrid.html
> so to use this grid everywhere on the page, what changes should I make in
> tapestry?
>
> Can my tapestry files be named jsp instead of .tml?
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/third-party-grid-tp5592196p5592196.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
>
>


-- 
Emmanuel DEMEY
Ingénieur Etude et Développement
ATOS Worldline
+33 (0)6 47 47 42 02
demey.emman...@gmail.com
http://emmanueldemey.fr

Twitter : @gillespie59


Re: Got5-Jquery compatibility with Grid and BeanEditForm / Tapestry-Bootstrap

2012-03-25 Thread trsvax
I experimented with the Grid component and as I suspected it's a problem if
you include both the Tapestry and Bootstrap CSS on the same page. While the
Tapestry side does have t- in the class names the Bootstrap does not. The
real problem is the Bootstrap CSS works on the table elements not by a class
so what happens is you get both the Tapestry and Bootstrap formatting on the
Grid's table. Until CSS regions are supported you can't really have both
active on the same page. 

I don't see any reason why you can't do this at the page level if you have a
Tapestry layout and a Bootstrap layout, but unless you have a very
customized Bootstrap CSS you will not be able to mix the Tapestry styled
components with Bootstrap styled components because the Bootstrap CSS will
style everything.

So the unfortunate reality is you can't easily mix the two styles.

Given that what's the conclusion? 

Here is what I think is possible

1. If you load the module it translates everything (the way it works now)

2. You can control it by page with different layouts (I think this is pretty
easy)

3. Split the Bootstrap CSS up by function and try and include it when needed
via the mixin. This would be a lot of work and I'm not sure how useful it
would be in the end. There would be limitations such as you can't have a
Bootstrap Grid and a Tapestry Grid on the same page. Plus I think it would
make things more difficult if you just want a straight up Bootstrap site. 

4. You can control it by component and have a customized Bootstrap CSS. For
example you turn off translating on Grid and have a customized Bootstrap CSS
that does not include the table CSS.


My vote would be 1. If there is interest in 2 I'd be willing to implement
that. I don't see much value in 3 and it would take a compelling argument to
get me to head down that path. I think 4 is currently possible but you'd
really have to really know what you were doing.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Got5-Jquery-compatibility-with-Grid-and-BeanEditForm-Tapestry-Bootstrap-tp5584806p5593145.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