Re: How to ignore @Cache annotation while calling a method?

2011-05-27 Thread Adam Zimowski
Take a look at the watch argument for @Cache annotation. On Thu, May 26, 2011 at 11:29 PM, Ashutosh Dash wrote: > How to ignore @Cache annotation while calling a method? > Actually I have method say "method1()" with @Cache annotated. and this method > is calling from diffrent area from my applic

Re: T5: property expression language intelligence

2011-05-26 Thread Adam Zimowski
No prob. I'll just hire intern monkeys to do all that unnecessary typing for me :-) Just kidding. Thanks for your feedback. On Thu, May 26, 2011 at 9:44 AM, Thiago H. de Paula Figueiredo wrote: > On Thu, 26 May 2011 11:06:44 -0300, Geoff Callender > wrote: > >> -1 for me. I can see it causing i

Re: T5: property expression language intelligence

2011-05-25 Thread Adam Zimowski
String getOrderDescription(); >>>>>>> public String getDescription(); >>>>>>> } >>>>>>> >>>>>>> Tapestry could simply work as it does today and not apply property >>>>>>> prefix strippin

Re: T5: property expression language intelligence

2011-05-25 Thread Adam Zimowski
rty prefix stripping. Adam On Wed, May 25, 2011 at 12:20 PM, Lenny Primak wrote: > At first glance, seems like a fantastic idea! > > On May 25, 2011, at 1:19 PM, Adam Zimowski wrote: > >> Since Tapestry already does tricks to clean up URL naming redundancy, >> it would b

T5: property expression language intelligence

2011-05-25 Thread Adam Zimowski
Since Tapestry already does tricks to clean up URL naming redundancy, it would be nice if it did the same with the expression language. For example: // Bean class Order { public String getOrderDescription() {...} } // Page public Order getOrder() { //... } // TML Instead of having to say this:

Re: t5: T5 friendly e commerce software?

2011-05-12 Thread Adam Zimowski
We also have been discussing open-sourcing our eCommerce platform. Our company is porting current Struts/Spring implementation to Tapestry 5. Our current sites, which are being ported are: www.chdist.com www.avenuesupply.ca www.industrialsupplies.com All three run on the same platform, customized

Re: @Inject vs @InjectComponent on a block component

2011-05-06 Thread Adam Zimowski
Figueiredo wrote: > On Fri, 06 May 2011 09:00:04 -0300, Adam Zimowski > wrote: > >> http://tapestry.apache.org/component-reference.html >> At the bottom, there is a list of base classes which make a component >> class a component. If a class does not derive from one of them,

Re: @Inject vs @InjectComponent on a block component

2011-05-06 Thread Adam Zimowski
It is somewhat confusing. Blocks seem like components because they are defined in the template. But Thiago is right, they're just "Blocks". Here is a good reference you can use as a rule of thumb for what is (and is not) a component: http://tapestry.apache.org/component-reference.html At the bot

Re: Blog Post: Tapestry Magic #1

2011-05-06 Thread Adam Zimowski
Hi Taha - I very much enjoy following your blog. I learn quite a bit from it and our application has been enhanced with some features inspired by you! In this particular one, we use GNU Crypto for encryption, and we have a Cipher and Hash services with few implementations. Specifically our Cipher

Re: Tapestry 5.2.5 and jboss6

2011-05-05 Thread Adam Zimowski
We've had EJB's running on a separate JVM (in fact, separate physcial server) for years, with no performance problems. In fact, scalability wise, it's been to our advantage. With unit tests, EJBs are as testable as anything. In fact, I don't see a point in hosting EJBs locally on the same JVM as th

Re: Tapestry 5.2.5 and jboss6

2011-05-05 Thread Adam Zimowski
I'm not sure if our setup will be of any help but... We use JBoss 6 with Tapestry 5.2.5, but indirectly. What is your purpose for needing JBoss to power Tapestry? If it's for EJBs, we have a separate EJB server running our EJBs, and Jetty running Tapestry. We have an EJB module for Tapestry which

Re: Request getRequestURL method

2011-05-04 Thread Adam Zimowski
Hi Tim - You can @Inject RequestGlobals and then call getHTTPServletRequest() from it. Adam On Wed, May 4, 2011 at 2:06 PM, Tim Koop wrote: > I'm using some third party Java code that wants to call > request.getRequestURL() where request is a > javax.servlet.http.HttpServletRequest instance.  I

T5: this is cool - composition over inheritance

2011-05-04 Thread Adam Zimowski
class OrderHistoryPage extends BasePage Here are the pieces: Custom Annotation /** * Tells Tapestry that a page requires authenticated user. If a page is * annotated with this, and user is not logged in, that page shall redirect * to a login screen instead of rendering itself. * * @author Adam Zim

Re: What would YOU like to see in a four day Tapestry training course?

2011-05-03 Thread Adam Zimowski
When we were looking at your course Howard, seemed perfectly fit, covering all basics of the framework, very well. Therefore, not much to comment on your question IMO since it's hard to improve something already very good. However, I see a lot of value in offering an advanced course, focusing most

T5: @Cached(watch) parameter requires public property

2011-04-28 Thread Adam Zimowski
Hi Again - Is there a specific reason why watch parameter for @Cached annotation requires public property when using default prop binding? This is an inconvenient limitation IMO, as I don't necessarily want to expose my watch property publicly. For example, my watch on getShoppingCart may be somet

Re: Tapestry render plain text as html

2011-04-28 Thread Adam Zimowski
Hi - You probably want to use OutputRaw component like this: Here is documentation link: http://tapestry.apache.org/current/tapestry-core/ref/org/apache/tapestry5/corelib/components/OutputRaw.html Adam On Thu, Apr 28, 2011 at 11:07 AM, Argo Vilberg wrote: > I want write simple content manage

T5: @PageReset called on page refresh

2011-04-27 Thread Adam Zimowski
Hi My understanding is that pageReset lifecycle method introduced in 5.2 should only be called when page is left and returned from another page. Per Howard from http://markmail.org/message/67dbxuwf3rw3naja#query:+page:1+mid:67dbxuwf3rw3naja+state:results "When a page is first accessed (from anoth

Re: T5: @Validate on RadioGroup

2011-04-26 Thread Adam Zimowski
https://issues.apache.org/jira/browse/TAP5-1513 On Wed, Apr 13, 2011 at 9:46 AM, Adam Zimowski wrote: > Taha - > > You are correct, I was wrong. I patched up RadioGroup by adding: > >    Binding defaultValidate() >    { >        return defaultProvider.defaultValidatorBindi

Re: T5: select zone update in a form

2011-04-26 Thread Adam Zimowski
https://issues.apache.org/jira/browse/TAP5-1512 On Mon, Apr 25, 2011 at 12:15 PM, Adam Zimowski wrote: > After more debugging, the problem seems to be with Tapestry's > IdAllocator and how it generates client side id's for select > components, particularly when Zone is update

Re: T5: select zone update in a form

2011-04-25 Thread Adam Zimowski
ame = controlName; } I tried filing this in JIRA but it seems to be down (Bad Gateway). In any case, I do not know enough about framework internals to fix this properly. Additional insight would be highly appreciated. Adam On Thu, Apr 21, 2011 at 11:33 AM, Adam Zimowski wrote: > Okay, no

Re: Blog Post: Tapestry Magic #1

2011-04-23 Thread Adam Zimowski
Make sure to update Tapestry WIKI with these links. Those are precious articles. On Sat, Apr 23, 2011 at 7:59 AM, Taha Hafeez wrote: > Yet another post > > http://tawus.wordpress.com/2011/04/23/tapestry-magic-5-advising-services/ > > regards > Taha > > On Fri, Apr 22, 2011 at 9:46 PM, Lenny Prima

Re: T5: select zone update in a form

2011-04-21 Thread Adam Zimowski
till could appreciate suggestion if anyone knows how to temporarily fix this. Adam On Thu, Apr 21, 2011 at 11:14 AM, Adam Zimowski wrote: > Quick update: > > By debugging Select component I see that validation tracker correctly > records the error when I submit the blank option for state.

Re: T5: select zone update in a form

2011-04-21 Thread Adam Zimowski
On Thu, Apr 21, 2011 at 10:20 AM, Adam Zimowski wrote: > I'm sorry, I am on Tapestry 5.2.5 :-) > > On Thu, Apr 21, 2011 at 10:19 AM, Adam Zimowski wrote: >> @Josh - When I debug Select in 5.2.4 (break on processSubmission(), >> line 166), selectedValue is blank wh

Re: T5: select zone update in a form

2011-04-21 Thread Adam Zimowski
I'm sorry, I am on Tapestry 5.2.5 :-) On Thu, Apr 21, 2011 at 10:19 AM, Adam Zimowski wrote: > @Josh - When I debug Select in 5.2.4 (break on processSubmission(), > line 166), selectedValue is blank which is expected. So select > correctly submits without a value, it's jus

Re: T5: select zone update in a form

2011-04-21 Thread Adam Zimowski
what is the value of > the state field?  That should give you a good clue as to what is happening. > > Mark > > On Tue, Apr 19, 2011 at 5:11 PM, Adam Zimowski wrote: > >> I have a typical address form with street, city zip textfields and two >> dropdowns: countr

Re: T5: select zone update in a form

2011-04-20 Thread Adam Zimowski
I want to update is my little zone which I want to wrap state select in. Adam On Tue, Apr 19, 2011 at 5:11 PM, Adam Zimowski wrote: > I have a typical address form with street, city zip textfields and two > dropdowns: country and state. The state dropdown is wrapped in a zone > so that when

Re: Live reload in production?

2011-04-20 Thread Adam Zimowski
> What I think should be discussed is what's the best default value for it: > enabled or disabled? That, to us makes no difference, as long as the option is there in 5.3 :-) On Wed, Apr 20, 2011 at 12:11 PM, Thiago H. de Paula Figueiredo wrote: > On Wed, 20 Apr 2011 13:32:17 -0300, Mark wrote:

Re: Live reload in production?

2011-04-20 Thread Adam Zimowski
>>probably have to introduce a new symbol to allow this to be enabled in >>production. But I think the vast majority of deployments will not need At the very least, can there be a patch that could be applied to 5.3 source on this ? On Wed, Apr 20, 2011 at 7:56 AM, Thiago H. de Paula Figue

Re: Live reload in production?

2011-04-19 Thread Adam Zimowski
I plead to ask, if possible to enable a switch for template reloading. I may be screwed, literally... Adam On Tue, Apr 19, 2011 at 6:36 PM, Howard Lewis Ship wrote: > On Tue, Apr 19, 2011 at 4:22 PM, Adam Zimowski wrote: >> Excuse me asking, but with class reloading disabled in p

Re: Live reload in production?

2011-04-19 Thread Adam Zimowski
Excuse me asking, but with class reloading disabled in production, template reloading still works, correct? My designer who mostly does TML's expects templates be reloadable in production. Adam PS. On a side note, what about a hybrid switch? Like component class reloading but disable service re

T5: select zone update in a form

2011-04-19 Thread Adam Zimowski
I have a typical address form with street, city zip textfields and two dropdowns: country and state. The state dropdown is wrapped in a zone so that when country is selected, states are populated: All works okay, except for a test case my business analyst found which I can't figure out. You fil

Re: Blog Post: Tapestry Magic #1

2011-04-17 Thread Adam Zimowski
wrote: > done... Added another one > > http://tawus.wordpress.com/2011/04/16/tapestry-magic-2-ajax-with-graceful-degradation/ > > regards > Taha > > > On Sat, Apr 16, 2011 at 8:47 PM, Adam Zimowski wrote: > >> I think for purposes of this being complete ready to

Re: Blog Post: Tapestry Magic #1

2011-04-16 Thread Adam Zimowski
I think for purposes of this being complete ready to use example, you may want to add service contribution to the end of your blog post :-) Adam On Sat, Apr 16, 2011 at 9:56 AM, Taha Hafeez wrote: > Thanks Adam > > regards > Taha > > On Sat, Apr 16, 2011 at 8:16 PM, Ad

Re: Blog Post: Tapestry Magic #1

2011-04-16 Thread Adam Zimowski
Taha - this is very nice ! I think Tapestry needs more advanced concept examples like this. Well explained, backed by a really good use-case. Do more! Adam On Sat, Apr 16, 2011 at 8:06 AM, Taha Hafeez wrote: > Hi > > I have blogged about a simple ComponentClassTransformWorker example. It is a >

Re: T5: @Validate on RadioGroup

2011-04-13 Thread Adam Zimowski
the bug in RadioGroup, which is missing the above as you pointed out. Adam On Wed, Apr 13, 2011 at 7:25 AM, Taha Hafeez wrote: > Hi Adam > > Hi Adam > > On Wed, Apr 13, 2011 at 5:19 PM, Adam Zimowski wrote: > >> Hi Taha, >> >> > You are still not getting t

Re: T5: @Validate on RadioGroup

2011-04-13 Thread Adam Zimowski
the default is chosen > > > Now in a RadioGroup as the code does not use a default in case @Parameter > validate is not provided, the field annotations are not taken into > consideration > > regards > Taha > > On Wed, Apr 13, 2011 at 4:24 PM, Adam Zimowski wrote: > >>

Re: T5: @Validate on RadioGroup

2011-04-13 Thread Adam Zimowski
gt; it is the @Parameter validate in RadioGroup that is required not @Validate > as that is never checked in case @Parameter validate is not given in a > RadioGroup ... Please read my answer again :) > > It seems to be bug!! > > regards > Taha > > On Wed, Apr 13, 2011 at 3:40 PM

Re: T5: @Validate on RadioGroup

2011-04-13 Thread Adam Zimowski
defaultValidate(){} and so validate can > be null. Now the validation here is done by the line > > if (validate != null) >   fieldValidationSupport.validate(rawValue, resources, validate); > > so when the validate parameter is not supplied, validation does not happen. > > regard

T5: @Validate on RadioGroup

2011-04-12 Thread Adam Zimowski
I have a bean where @Validate("required") does not work on a radiogroup, but Registration Information : : : : : Adam --

Re: T5: @Property(create=true) ?

2011-04-12 Thread Adam Zimowski
Paula Figueiredo wrote: > On Tue, 12 Apr 2011 13:34:17 -0300, Adam Zimowski > wrote: > >> Maybe I'm over-thinking here... I find a lot of times I have to do this: >> >> @Property >> private AddressUiBean address; >> >> @SetupRender >> void

T5: @Property(create=true) ?

2011-04-12 Thread Adam Zimowski
Maybe I'm over-thinking here... I find a lot of times I have to do this: @Property private AddressUiBean address; @SetupRender void init() { if(address == null) address = new AddressUiBean(); } What would be super nice, following the spirit of @SessionState, is this: @Property(create=true) pri

Re: accessing fields marked with @Property in Grid component

2011-04-11 Thread Adam Zimowski
@Thiago: Lobmbork is neat ! Thanks for sharing :-) On Mon, Apr 11, 2011 at 9:28 AM, Taha Hafeez wrote: > Hi Joshua > > @Property tag has to be used within components only it cannot be used > outside it as the transformer that does the magic transforms components > only. So you have to write gette

Re: T5: BeanEditForm, BeanEditor and

2011-04-09 Thread Adam Zimowski
y attach to the fields, and will just display > errors not associated with a specific field. > > On Fri, Apr 8, 2011 at 5:01 PM, Adam Zimowski wrote: >> By default BeanEditForm includes . >> >> BeanEditor seems to expect that t:errors is placed outside if >> pro

T5: BeanEditForm, BeanEditor and

2011-04-08 Thread Adam Zimowski
By default BeanEditForm includes . BeanEditor seems to expect that t:errors is placed outside if programmer wants it. Intuitively, I would expect a feature for both to support inline errors: with rendered next to a field and some CSS class to override. That would be nice. -

T5: required built-in validator not invoked

2011-04-08 Thread Adam Zimowski
Hi, I have a form with a required textfield companyName, and a form fragment which is displayed if one of the radio buttons on the form is clicked. When form fragment is hidden, companyName is validated by Tapestry if not provided (required validation), but when form fragment is visible, Tapestry

Re: Page returning pdf

2011-04-06 Thread Adam Zimowski
And of course the PDFStreamResponse can be found on the wiki, along with the entire example: http://wiki.apache.org/tapestry/Tapestry5HowToCreateADynamicPDF Adam On Wed, Apr 6, 2011 at 9:32 AM, Adam Zimowski wrote: > This this instead of @SetupRender: > > @OnEvent(EventConstants

Re: Page returning pdf

2011-04-06 Thread Adam Zimowski
This this instead of @SetupRender: @OnEvent(EventConstants.ACTIVATE) StreamResponse onActivate() { InputStream myPdfStream = // build your pdf return new PDFStreamResponse(myPdfStream,"MyPDF"); } On Wed, Apr 6, 2011 at 9:16 AM, Jens Reufsteck wrote: > I’m trying to call a page, that retu

Re: Loading of Localized bundles, Stylesheets, etc..

2011-04-05 Thread Adam Zimowski
You guys rock. Thanks. On Tue, Apr 5, 2011 at 5:12 PM, Igor Drobiazko wrote: > Hi Adam, > > On Wed, Apr 6, 2011 at 12:00 AM, Adam Zimowski wrote: > >> Is this something you are planning for 5.3? > > > Probably yes. If not in 5.3, then in 5.4. > > >>

Re: Loading of Localized bundles, Stylesheets, etc..

2011-04-05 Thread Adam Zimowski
solving a raw resource to > (what we now call) a localized one, applying rules for how the extra > dimensions are used to locate specific resource files. > > On Tue, Apr 5, 2011 at 11:36 AM, Adam Zimowski wrote: >> Our app is brandable with the codebase being deployed to different

Loading of Localized bundles, Stylesheets, etc..

2011-04-05 Thread Adam Zimowski
Our app is brandable with the codebase being deployed to different environments, per business unit. So our common runtime will be packaged to ecommerce.jar, which will include service configuration (ejb definitions, etc), pages, etc... Then, when we configure website for company X, we will deploy t

Re: New user and IDE issues

2011-04-04 Thread Adam Zimowski
> I just configure Eclipse to edit .tml files as well-formed XML files and I'm > very happy. :) Me too ! :-) On Mon, Apr 4, 2011 at 1:27 PM, Thiago H. de Paula Figueiredo wrote: > On Mon, 04 Apr 2011 14:38:07 -0300, Grioni Stefano > wrote: > >> Hello, > > Hi! > >> I have just started using Tap

Re: Java based spring configuration

2011-04-02 Thread Adam Zimowski
> I need spring [...] for things like jpa support and transactions and other > things ... I guess you're not an EJB fan :-) You don't need spring. In fact, our Ecom app runs on pure Tapestry+TapIOC (plus Apache commons lang) with EJB3 in the middle tier doing all the heavy lifting you're talking

Re: T5: built-in numeric validator

2011-03-31 Thread Adam Zimowski
ly that it should be doing that... > > On Thu, Mar 31, 2011 at 11:04 AM, Adam Zimowski wrote: >> :) I don't think I'm in position to teach Tapestry to others, I'm >> still learning myself But, using Eclipse I looked at class >> hierarchy for: >>

Re: T5: built-in numeric validator

2011-03-31 Thread Adam Zimowski
; Adam >> >> On Thu, Mar 31, 2011 at 10:51 AM, Chris Norris >> wrote: >>> Sorry, I was completely wrong. I was looking at a NumericValidator >>> that we wrote, not a Tapestry one. >>> >>> On Thu, Mar 31, 2011 at 9:43 AM, Adam Zimowski wrote

Re: T5: built-in numeric validator

2011-03-31 Thread Adam Zimowski
ericValidator > that we wrote, not a Tapestry one. > > On Thu, Mar 31, 2011 at 9:43 AM, Adam Zimowski wrote: >> My client side validation is disabled. This happens on my shopping >> cart page where I have multiple forms (inside a loop) with indexed >> trackers ( Ma

Re: T5: built-in numeric validator

2011-03-31 Thread Adam Zimowski
n Thu, Mar 31, 2011 at 9:03 AM, Chris Norris wrote: > The Tapestry NumericValidator seems to rely on whether > Double.valueOf(String) will throw an exception, which it does for > '1k'. > > How are you configuring and using your validator? > > On Tue, Mar 29, 2011 at 5:1

T5 & Tap Ioc (beauty) - kudos!

2011-03-30 Thread Adam Zimowski
Today I'm more in love with Tapestry (5) than ever before. I had a milestone demo at work which went well, and could actually show a good portion of a re-written website running and working! I'm at the heights of my project development. I'm sure there are still few more of dark evenings loaded with

Re: T5: form validation with pre-existing errors

2011-03-30 Thread Adam Zimowski
o the service layer. * * @author Adam Zimowski */ public class ShoppingCart extends BasePage { // component id's used within this class public static final String ID_CART_FORM = "cartForm"; public static final String ID_QUANTITY_FIELD = "quantity"

Re: T5: built-in numeric validator

2011-03-29 Thread Adam Zimowski
It is server side. Looks like if input starts with a digit, Tapestry is happy :) Adam On Tue, Mar 29, 2011 at 5:05 PM, Howard Lewis Ship wrote: > Seems like a bug to me!  Surprising, though. Is this server-side or > client-side validation? > > On Tue, Mar 29, 2011 at 2:49 PM, A

T5: built-in numeric validator

2011-03-29 Thread Adam Zimowski
For numeric fields, Tapestry validates correctly non-numeric input. However, input such as: 1k 1\ etc.. passes the validation. Am I missing something? Adam - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For ad

T5: form validation with pre-existing errors

2011-03-25 Thread Adam Zimowski
I have a shopping cart. The cart is built with a single form, and a loop. The basic validation works, such as testing quantity for numeric input etc. However, I have an additional requirement to display errors on invalid line items which are part of the cart. An example of invalid cart item may be

Re: TAP5-781: single error message for multiple fields

2011-03-17 Thread Adam Zimowski
alue="validate", component="myForm") void onValidate() { // if combination of both fields is an error multiFieldError = true; .recordError(pwd1, error); .recordError(pwd2, error); } Adam On Wed, Mar 16, 2011 at 2:21 PM, Adam Zimowski wrote: > Here is the URL to what Igo

Re: TAP5-781: single error message for multiple fields

2011-03-16 Thread Adam Zimowski
Here is the URL to what Igor opened: https://issues.apache.org/jira/browse/TAP5-781 Adam On Wed, Mar 16, 2011 at 2:19 PM, Adam Zimowski wrote: > Hi - > > I saw Igor filed this already. I kind of need this feature. Is there a > preferred/suggested work-around? Or any idea when and

TAP5-781: single error message for multiple fields

2011-03-16 Thread Adam Zimowski
Hi - I saw Igor filed this already. I kind of need this feature. Is there a preferred/suggested work-around? Or any idea when and if this gets resolved? I really could use what Igor proposes, or even another signature: form.recordError(Field); or, if I could pass null for error message under cu

Re: Grid with multiple forms

2011-02-28 Thread Adam Zimowski
By the way. This happens regardless, if I have t:context on the form or not. Adam On Mon, Feb 28, 2011 at 7:33 AM, Adam Zimowski wrote: > Hi again. I hate to interrupt the mutliple database discussion, but I > would like to ask a question regarding the original topic on this &g

Re: Grid with multiple forms

2011-02-28 Thread Adam Zimowski
Hi again. I hate to interrupt the mutliple database discussion, but I would like to ask a question regarding the original topic on this thread. So, per Thiago's suggestion I tried loop with multiple form components, and I have an issue in that if I submit one row (one form) with invalid input

Re: Rendering a Block

2011-02-26 Thread Adam Zimowski
that also degrades nicely when there's no javascript available, which > is something else to consider. > > Did I miss something? > > Regards, > Jonathan > > On Sat, Feb 26, 2011 at 12:01 PM, Adam Zimowski wrote: > >> Heh.. this is funny, but it sounds like the issue I

Re: Rendering a Block

2011-02-26 Thread Adam Zimowski
Heh.. this is funny, but it sounds like the issue I just described in my "Grid with multiple forms" thread. Anyway, to call a Tapestry event from a JavaScript you probably want this in your javascript: function yourJavaScriptMethod(yourParameterIfYouHaveOne) { var url = '${tapestryEvent}' + '/

Grid with multiple forms

2011-02-26 Thread Adam Zimowski
Is it possible to have a grid with one form for each row? All examples I see everywhere have a single form wrapping grid inside. For my functional spec, which requires Update/Remove buttons on each row, a single form has some unwanted implications such as validating other rows on submission from on

Re: T5: Buttons, JS popup, Ajax/Zone and ActionLink

2011-01-14 Thread Adam Zimowski
ot;display: none". > Then your JavaScript can do something like > > document.location.href = document.getElementById('myActionLink').href; > > In the past I've done something similar to trigger a zone update from inside > a JavaScript function. > > >

T5: Buttons, JS popup, Ajax/Zone and ActionLink

2011-01-14 Thread Adam Zimowski
Hi I have a feeling like this is so simple and I'm missing something really obvious. I have a question on the recommended approach for a specific scenario: An HTML button showing a JS popup rendered via Ajax. Here is specific example: http://www.chdist.com/industrial-safety-supplies/personal-pro

Re: [ANN] Polish blog about Tapestry 5

2010-11-23 Thread Adam Zimowski
Very very nice ! I am also Polish, and reading your blog seems natural and enjoyable. Some stuff obviously covered on the Tapestry site, with Howard's tutorial, etc.. This brings a thought. Possible translations for tapestry.apache.org ? I could help with Polish :) Adam On Tue, Nov 23, 2010 at 3

Re: Extra paramer in Grid Sort

2010-11-23 Thread Adam Zimowski
Recently my developer was looking for answer to this, and was frustrated by seeing this without an answer... @OnEvent(EventConstants.PASSIVATE) Object[] passivate() { return ... ; // your activation context for grid sort link to use... } should do it. On Wed, Aug 6, 2008 at 10:42 PM, tapestry5

Re: T5.2.4 classpath asset issue

2010-11-22 Thread Adam Zimowski
Per your request, issue filed: https://issues.apache.org/jira/browse/TAP5-1353 Adam On Mon, Nov 22, 2010 at 2:29 PM, Adam Zimowski wrote: > Will do and agreed. > > On Mon, Nov 22, 2010 at 2:19 PM, Howard Lewis Ship wrote: >> Please add an issue, but I don't see this as a

Re: T5.2.4 classpath asset issue

2010-11-22 Thread Adam Zimowski
Will do and agreed. On Mon, Nov 22, 2010 at 2:19 PM, Howard Lewis Ship wrote: > Please add an issue, but I don't see this as a blocker for Tapestry 5.2. > > On Mon, Nov 22, 2010 at 11:48 AM, Adam Zimowski wrote: > >> Thank You Howard ! Yes, I moved the file to subfolder

Re: T5.2.4 classpath asset issue

2010-11-22 Thread Adam Zimowski
things deeper, > somewhere inside your library or applications' root package; that was the > intent of how the new aliasing works. > > On Mon, Nov 22, 2010 at 9:15 AM, Adam Zimowski wrote: > >> Minor typo... I also had a stylesheet which is inconsequential to this >&

Re: T5.2.4 classpath asset issue

2010-11-22 Thread Adam Zimowski
Minor typo... I also had a stylesheet which is inconsequential to this and I removed it from the e-mail. The import really is: @Import(library="classpath:util.js") Adam On Mon, Nov 22, 2010 at 11:13 AM, Adam Zimowski wrote: > Hi, > > In my component class I have: >

T5.2.4 classpath asset issue

2010-11-22 Thread Adam Zimowski
Hi, In my component class I have: @Import(stylesheet="library="classpath:util.js") In the module: public static void contributeClasspathAssetAliasManager(MappedConfiguration configuration) { // see http://markmail.org/thread/rq4vp7hi437smsrh configuration.add("js", "/"); } The file util.js l

Re: EJB3 Statefull Session Beans and Tapestry IOC - possible?

2010-11-08 Thread Adam Zimowski
Of course in the 2nd paragraph I meant to say: "I think it's best NOT to open this FOR discussion too deeply" :-) On Mon, Nov 8, 2010 at 2:25 PM, Adam Zimowski wrote: > So I figured out somewhat decent stateful ejb (3) integration into > Tapestry. Here is what we di

Re: EJB3 Statefull Session Beans and Tapestry IOC - possible?

2010-11-08 Thread Adam Zimowski
/tapestry5.1/apidocs/org/apache/tapestry5/services/ApplicationStateManager.html > > If it's an option to have your Tapestry-App and the OpenEJB backend merged > you could try out Tapestry Jumpstart's approach of integrating OpenEJB with > Tapestry: > > http://jumpstart.dou

Re: best stack ...

2010-11-05 Thread Adam Zimowski
en, but it takes a brave soul to manage > 30 to 40 megs of libraries manually :) lol. > > Peter > > - Original Message - > From: "Adam Zimowski" > To: "Tapestry users" > Sent: Friday, 5 November, 2010 04:35:38 GMT +02:00 Athens, Beirut, Buc

Re: EJB3 Statefull Session Beans and Tapestry IOC - possible?

2010-11-05 Thread Adam Zimowski
Hi Christian - I did not know about @Scope annotation and it is nice. To answer your question yes, we need to retain a specific sfsb proxy instance per session, so yes, across multiple requests. Can I annotate service builder method with @Scope to tell Tap IOC to pull a specific instance for a ses

Re: best stack ...

2010-11-04 Thread Adam Zimowski
> Don't really like Maven but have found it's a necessary evil if you want to > develop with Tapestry 5. Well, while Maven is helpfull it's not exactly true :-) We have a large Tapestry app (ported struts 1 gozilla), and zero Maven. Remember, Maven is just a tool to automate things. You can setup

EJB3 Statefull Session Beans and Tapestry IOC - possible?

2010-11-04 Thread Adam Zimowski
statless EJB: /** * Defines all aspect of EJB remoting. Each EJB becomes a singleton * Tapestry IOC service, and can be used from a page or component * via @Inject or @InjectService. * * @author Adam Zimowski */ public class EjbModule { private static final Logger log

Re: SessionState for simple types

2010-09-14 Thread Adam Zimowski
Yes! I forgot about that. Works like a charm :) On Tue, Sep 14, 2010 at 1:46 PM, Guerin Laurent wrote: > Hi, > > From tapestry 5.2 you can use @SessionAttribute. > > Envoyé de mon iPhone > > Le 14 sept. 2010 à 20:34, "Adam Zimowski" a écrit : > >>>

Re: SessionState for simple types

2010-09-14 Thread Adam Zimowski
> I find it both easy and self-descriptive to write wrapper classes for these > java objects. That's exactly what I'm trying to avoid. With a large team of junior programmers this will be a maintenance nightmare. > You could always grab the HttpSession and store them yourself. >From my searchin

SessionState for simple types

2010-09-14 Thread Adam Zimowski
I understand that @SessionState was meant for POJOs. What's the preferred (if any) way in Tapestry to store Strings, Integers and such across multiple pages? Adam - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org Fo

Re: Breakpoints under Tapestry 5.2

2010-09-03 Thread Adam Zimowski
Having same issue. Worked in 5.1, doesn't in 5.2. Anyone? On Tue, May 25, 2010 at 2:10 AM, Greg Pagendam-Turner wrote: > Guys, > > I've got another issue with Tapestry 5.2. Changing the dependency to the > 5.2.0 snapshot I get the following error when triggering a breakpoint in >  Eclipse: > > Un

Re: [T5.1]Locale management

2010-08-03 Thread Adam Zimowski
I have a language dropdown in my layout component which user selects to switch desired locale. Upon switching, locale is changed without affecting the URL and without storing it in the cookie. The locale is stored in the session. I created the following filter which I then contributed: public clas

Re: T5: CMS integration - multiple templates single controller?

2010-07-23 Thread Adam Zimowski
Tapestry never disappoints! Single page loading content from activation context is so simple and easy, it just feels like the right way to go! Here is what I've got which pretty much works. Static publishable content wrapped around a layout. Few questions regarding possible improvements: * Is the

Re: T5: CMS integration - multiple templates single controller?

2010-07-23 Thread Adam Zimowski
I was thinking about that Thiago :) In fact, that's about how we do it currently with Struts. I'm going to give this a try today. Adam On Fri, Jul 23, 2010 at 11:37 AM, Thiago H. de Paula Figueiredo wrote: > On Fri, 23 Jul 2010 13:31:59 -0300, Adam Zimowski > wrote: > &g

Re: T5: CMS integration - multiple templates single controller?

2010-07-23 Thread Adam Zimowski
I guess worst case scenario we can precompile these empty classes during our publishing process. Need to verify if that will work but that would be the work around. On Fri, Jul 23, 2010 at 11:26 AM, Adam Zimowski wrote: > Okay having to try both suggestions I'm finding that requirem

Re: T5: CMS integration - multiple templates single controller?

2010-07-23 Thread Adam Zimowski
? That's really, all I need. Adam On Wed, Jul 21, 2010 at 5:19 PM, Howard Lewis Ship wrote: > I've managed to get more of the docs working, including Javadoc, but > not the component report yet. > > http://tapestry.formos.com/nightly/tapx/ > > > On Wed, Jul 21, 20

Re: T5: CMS integration - multiple templates single controller?

2010-07-21 Thread Adam Zimowski
Thank you much Guys. This is definitely giving me ways to explore. I will share our solution when it's ready, but may post some questions first :) On Wed, Jul 21, 2010 at 11:35 AM, Thiago H. de Paula Figueiredo wrote: > Take a look at these past discussions: > > http://old.nabble.com/Tapestry-Tem

T5: CMS integration - multiple templates single controller?

2010-07-21 Thread Adam Zimowski
One of the big features of our current Struts-based app (we are porting to T5), is the integration with content management system (we use RedDot). What we do currently, is we have a single Struts action, which inspects query parameter for CMS page, and dynamically streams the markup for that page (

T5: 6-8mo Consulting Opportunity

2010-07-15 Thread Adam Zimowski
Hello Tapestry Gurus, I apologize up front if this is taken as spam. Definitely not an intention. I'm returning to Tapestry after few years of inactivity. I'm a lead developer and a Java systems architect with a company in the Milwaukee area. We have been recently approved for a rewrite of our we

Re: Request to a unlocalized URL using the Locale stored on session

2010-07-15 Thread Adam Zimowski
Thiago H. de Paula Figueiredo wrote: > On Wed, 14 Jul 2010 13:36:50 -0300, Adam Zimowski > wrote: > >> @Persist >> private String language; > > You should use @SessionState instead and then use the > ApplicationStateManager to read or set it. > > -- > Thi

Re: Request to a unlocalized URL using the Locale stored on session

2010-07-14 Thread Adam Zimowski
I found this thread as a solution to my problem of switching locale. I can switch locale just fine and setting PersistentLocale works until I strip the URL from language code. Juan's example below is exactly what I need, however, because I'm returning to Tapestry after two years of inactivity, I do

Re: Anyone got Jetty-T5-OpenEJB-Hibernate working?

2009-01-27 Thread Adam Zimowski
"use all of EJB3 annotations within Jetty" - I meant "within Tapestry pages/components in favor of @Inject" Sorry... to much Jetty lately :) -adam On Tue, Jan 27, 2009 at 6:56 AM, Adam Zimowski wrote: > Hi Geoff, > > I didn't have a chance to download jump

Re: Anyone got Jetty-T5-OpenEJB-Hibernate working?

2009-01-27 Thread Adam Zimowski
e that I understand your question, but have you had a play now > and did it answer your question? > > On 25/01/2009, at 1:01 AM, Adam Zimowski wrote: > >> Thanks Geoff!! I'll play with it today then :) Do you have a built-in >> support for running openEJB on a remote ser

  1   2   3   >