Re: partially update with another page or component

2012-07-19 Thread mu
:) thanks On Fri, Jul 20, 2012 at 10:20 AM, Thiago H de Paula Figueiredo wrote: > On Thu, 19 Jul 2012 22:00:04 -0300, mu wrote: > >>> You can @Inject ComponentResource, use getPage() to retrive the page >>> instance as a Component and use Component.getBlock(). >> >> >> it works, thanks. Does thi

Re: partially update with another page or component

2012-07-19 Thread Thiago H de Paula Figueiredo
On Thu, 19 Jul 2012 22:00:04 -0300, mu wrote: You can @Inject ComponentResource, use getPage() to retrive the page instance as a Component and use Component.getBlock(). it works, thanks. Does this pattern i used here against Tapestry's philosophy and architecture? Nope. I'd never suggested

Re: Modalbox Integration Example

2012-07-19 Thread Taha Siddiqi
Ah, you want to disable it in javascript. You will have to disable it on page-load and then enable/disable it when user clicks on grids. By enable/disable I mean to enable/disable the link/button displaying the modal box. You can use $$ prototype function to match a complex css selection. regar

Re: Modalbox Integration Example

2012-07-19 Thread Bob.Sky
Yes, use the disabled parameter can make effect when the page first loaded, but when the page has been generated , I can find this code" # " in the source view.I do not know how can I capture the disable event in the current page. Thank you. -- View this message in context: http://tapestry.104571

Re: partially update with another page or component

2012-07-19 Thread mu
> You can @Inject ComponentResource, use getPage() to retrive the page > instance as a Component and use Component.getBlock(). it works, thanks. Does this pattern i used here against Tapestry's philosophy and architecture? - To u

Re: partially update with another page or component

2012-07-19 Thread Thiago H de Paula Figueiredo
On Thu, 19 Jul 2012 20:40:47 -0300, mu wrote: The question is that the quantity of block is so much, about 100. Wow, 100? Can we ask why so many different outputs? so i want to split them into different page, and dynamic load them on runtime. You can @Inject ComponentResource, use getPage

Re: partially update with another page or component

2012-07-19 Thread Thiago H de Paula Figueiredo
On Thu, 19 Jul 2012 20:37:24 -0300, mu wrote: Exactly. Otherwise, you'd need to access part of a page's template in another page, and that's something completely against Tapestry's philosophy and architecture. The content of the zone depends on what the user selected on runtime, what is th

Re: Modalbox Integration Example

2012-07-19 Thread Taha Siddiqi
If disabled parameter is true, the client scripts are not loaded. I think that should disable the modalbox. Doesn't it ? regards Taha On Jul 19, 2012, at 2:39 PM, Bob.Sky wrote: > Hi, taha. > Thank you for your code, I use it in my project, but I meet a problem now. > I use this code to popup t

Re: partially update with another page or component

2012-07-19 Thread mu
The question is that the quantity of block is so much, about 100. so i want to split them into different page, and dynamic load them on runtime. On Thu, Jul 19, 2012 at 9:46 PM, Alex Kotchnev wrote: > You can probably use Blocks to return the partial page updates, e.g. > in your template > > S

Re: partially update with another page or component

2012-07-19 Thread mu
> Exactly. Otherwise, you'd need to access part of a page's template in > another page, and that's something completely against Tapestry's philosophy > and architecture. The content of the zone depends on what the user selected on runtime, what is the best practice to do this? ---

Re: Uploading then displaying Images

2012-07-19 Thread ICE Ernesto Arteaga Zavala
:) Thanks! 2012/7/19 Thiago H de Paula Figueiredo > On Thu, 19 Jul 2012 11:50:57 -0300, arterzatij > wrote: > > Hi Thiago, how do you get the file from db? >> I mean the BLOB type of data base to a Java Type? >> > > Yep, probably to a byte array. > > -- > Thiago H. de Paula Figueiredo > > > --

tapestry-beanvalidation and tapestry-jquery js error

2012-07-19 Thread Alex Kotchnev
I use tapestry-beanvalidation and tapestry-jquery. As a result, when I open up a page, I get a javascript error in tapestry-beanvalidator.js:15: Cannot set property 'notnull' of undefined The offending line is : Tapestry.Validator.notnull = function(field, message, spec) Uncaught TypeError: Can

Re: Tapestry 5.3.4

2012-07-19 Thread Alex Kotchnev
Stephan / George, did you figure out what the issue was with the missing bizarre missing dependency problem ? I switched the version in my POM and I see the same problem. Cheers, Alex K On Wed, Jul 18, 2012 at 6:37 PM, Angelo C. wrote: > congrats! any breaking feature from 5.3.3 to 5.3.4?

Re: Tapestry-Security extend user session time

2012-07-19 Thread Lenny Primak
Not sure. Are you including tapestry security and tapestry exception page modules? That might be the trouble. On Jul 19, 2012, at 2:06 PM, George Christman wrote: > lprimak, I'm getting the following exception, would you happen to know what's > going on here? Thanks > > java.lang.RuntimeEx

FireFox 13 breaks Tapestry Testing

2012-07-19 Thread trsvax
It appears the FireFox 13 upgrade breaks the Selenium test cases with the folllowing: 13:11:15.572 INFO - Preparing Firefox profile... 13:11:37.603 ERROR - Failed to start new browser session, shutdown browser and clear all session data java.lang.RuntimeException: Firefox refused shutdown while pr

Re: Modalbox Integration Example

2012-07-19 Thread Bob.Sky
Hi, taha. Thank you for your code, I use it in my project, but I meet a problem now. I use this code to popup the modal box" " Now I want to add the validation for the button, if I have not select a line of the grid, I hope this button is disabled,that is to say ModalBox can not be poped up. I

Re: Tapestry-Security extend user session time

2012-07-19 Thread George Christman
I believe this js library was written in prototype, is there a jquery version? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-Security-extend-user-session-time-tp5714610p5714617.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: Tapestry-Security extend user session time

2012-07-19 Thread George Christman
lprimak, I'm getting the following exception, would you happen to know what's going on here? Thanks java.lang.RuntimeException: Exception loading module(s) from manifest jar:file:/C:/Users/gmc07/.m2/repository/com/flowlogix/flowlogix-tapestry/0.9.8/flowlogix-tapestry-0.9.8.jar!/META-INF/MANIFEST.M

Re: Tapestry-Security / Javascript auto logout

2012-07-19 Thread George Christman
Good idea, didn't even give that a thought. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-Security-Javascript-auto-logout-tp5714608p5714615.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: Tapestry-Security / Javascript auto logout

2012-07-19 Thread Alex Kotchnev
It doesn't necessarily have to be a completely separate page - you can generate a URL for a "logout" event and give that URL to the jquery plugin. Cheers - Alex K On Thu, Jul 19, 2012 at 12:50 PM, George Christman wrote: > Hello I'm using tapestry security and a jQuery session timeout plugin. Th

Re: Tapestry-Security extend user session time

2012-07-19 Thread Lenny Primak
There is full documentation and examples on the site. You just have to click around. On Jul 19, 2012, at 1:33 PM, George Christman wrote: > Hi lprimak, I can't seem to figure out how to use FlowLogix. Do you know > where I might be able to find examples etc? The website link that is suppose

Re: Tapestry-Security extend user session time

2012-07-19 Thread George Christman
Hi lprimak, I can't seem to figure out how to use FlowLogix. Do you know where I might be able to find examples etc? The website link that is suppose to link to some examples comes up with none. I don't know what it means when it says it houses common components like shiro security etc and how it w

Re: Tapestry-Security extend user session time

2012-07-19 Thread Lenny Primak
Don't know what that has I do with jquery but the FlowLogix library has a session timeout component that takes care of this requirement. On Jul 19, 2012, at 1:19 PM, George Christman wrote: > Hello, I'm using tapestry-security and a jQuery sessionTimeout plugin. One of > the options in the plu

Tapestry-Security extend user session time

2012-07-19 Thread George Christman
Hello, I'm using tapestry-security and a jQuery sessionTimeout plugin. One of the options in the plugin is to stay connected when prompted your session is going to expire. I was wondering if anybody had any ideas on how to extend the user session with an ajax call from the jquery component. -- Vi

Re: T5 APPLICATION_VERSION

2012-07-19 Thread Norman Franke
Thanks, BTW. Not sure how I missed that one. I guess I was looking to inject a service. Norman Franke Answering Service for Directors, Inc. www.myasd.com On Jul 12, 2012, at 3:06 PM, Joost Schouten (mailing lists) wrote: > This should do the trick: > > @Inject > @Symbol(SymbolConstants.APPLI

Tapestry-Security / Javascript auto logout

2012-07-19 Thread George Christman
Hello I'm using tapestry security and a jQuery session timeout plugin. The plugin logs the user out through the URL, should I create a logout page enabling logouts to be handled through the url, or is there a better way to handle this? -- View this message in context: http://tapestry.1045711.n5.n

Re: Uploading then displaying Images

2012-07-19 Thread Thiago H de Paula Figueiredo
On Thu, 19 Jul 2012 11:50:57 -0300, arterzatij wrote: Hi Thiago, how do you get the file from db? I mean the BLOB type of data base to a Java Type? Yep, probably to a byte array. -- Thiago H. de Paula Figueiredo - To unsu

Re: Intercepting exceptions/errors in logic within page objects

2012-07-19 Thread Kalle Korhonen
On Thu, Jul 19, 2012 at 7:49 AM, Lenny Primak wrote: > Tynamo has a wonderful module called tapestry-exception page. > It's created just for this purpose. Tynamo.org. And in Tapestry 5.4, tapestry-exceptionpage is built-in. If the handling is specific to a particular page, I'd use onException. If

Re: beandisplay hide label if value is null?

2012-07-19 Thread briano
That worked. Thank you very much. -- View this message in context: http://tapestry.1045711.n5.nabble.com/beandisplay-hide-label-if-value-is-null-tp5714585p5714605.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: Uploading then displaying Images

2012-07-19 Thread arterzatij
Hi Thiago, how do you get the file from db? I mean the BLOB type of data base to a Java Type? Thanks in advance! -- View this message in context: http://tapestry.1045711.n5.nabble.com/Uploading-then-displaying-Images-tp3423946p5714604.html Sent from the Tapestry - User mailing list archive at

Re: Intercepting exceptions/errors in logic within page objects

2012-07-19 Thread Lenny Primak
Tynamo has a wonderful module called tapestry-exception page. It's created just for this purpose. Tynamo.org. On Jul 19, 2012, at 8:53 AM, captain_rhino wrote: > I have several pages that several methods within them > > public class Page > public void onActivate(EventContext ec){ >//

Re: partially update with another page or component

2012-07-19 Thread Alex Kotchnev
You can probably use Blocks to return the partial page updates, e.g. in your template Some content here In your page class @Inject private Block fooBlock Object onSomeEvent() { return fooBlock } Technically, it's the easiest if your blocks are defined on the same page (as described above).

Re: Intercepting exceptions/errors in logic within page objects

2012-07-19 Thread Thiago H de Paula Figueiredo
On Thu, 19 Jul 2012 09:53:39 -0300, captain_rhino wrote: I have several pages that several methods within them public class Page public void onActivate(EventContext ec){ //Code } public void onSuccess(){ //code } void onSelectedFromAButton(){ //code } In tapestry

Re: partially update with another page or component

2012-07-19 Thread Thiago H de Paula Figueiredo
On Thu, 19 Jul 2012 06:02:34 -0300, Lance Java wrote: Returning a Page class tells tapestry to redirect to that page. I think that you want to extract the page logic / tml into a component and then use the component in two places. Exactly. Otherwise, you'd need to access part of a page's

Re: Adding a dynamic sub directory to URLĀ 

2012-07-19 Thread Thiago H de Paula Figueiredo
On Thu, 19 Jul 2012 05:18:39 -0300, Lance Java wrote: In option 1: - The URL displayed in the user's browser will be different to the @Injected request's getPath() That's exactly the point of URL rewriting! :) - I can only assume that the HTTPServletRequest will not be cloaked so @Injec

Re: Intercepting exceptions/errors in logic within page objects

2012-07-19 Thread Lance Java
Tapestry's default behaviour is to redirect to the ExceptionReport page. If you want to use your own custom page, you can override the SymbolConstants.EXCEPTION_REPORT_PAGE symbol. Make sure that your custom page implements ExceptionReporter. If you'd like to override this behaviour all together,

Intercepting exceptions/errors in logic within page objects

2012-07-19 Thread captain_rhino
I have several pages that several methods within them public class Page public void onActivate(EventContext ec){ //Code } public void onSuccess(){ //code } void onSelectedFromAButton(){ //code } In tapestry if any of the code goes wrong within my methods, in Tapestry wh

Re: partially update with another page or component

2012-07-19 Thread Lance Java
Returning a Page class tells tapestry to redirect to that page. I think that you want to extract the page logic / tml into a component and then use the component in two places. -- View this message in context: http://tapestry.1045711.n5.nabble.com/partially-update-with-another-page-or-component-t

Re: beandisplay hide label if value is null?

2012-07-19 Thread Lance Java
You could use the exclude parameter public String getExcludes() { // return a comma separated list of property names based on some logic or null } -- View this message in context: http://tapestry.1045711.n5.nabble.com/beandisplay-hide-label-if-value-is-null-tp5714585p5714592.html Sent from

Re: Adding a dynamic sub directory to URLĀ 

2012-07-19 Thread Lance Java
Consider a site with the following url rewriting /mysite/cars/view - view all cars /mysite/cars/bmw/view - set the Car environmental as "bmw" then invoke /mysite/cars/view /mysite/cars/porsche/view - set the Car environmental as "porsche" then invoke /mysite/cars/view /mysite/facebook/cars/view -