Re: CSS for all pages

2011-09-28 Thread Olaf Tomczak
The other way to do this is (simpler in my opinion) to implement your own JavaScriptStack (List getStylesheets() method) and make a contribution to JavaScriptStackSource in your module. Cheers, Olaf 2011/9/28 Wechsung, Wulf > Exactly, Steve! > You solution is great! Thanks a lot :) > > > -O

Re: [T5.3] Symbols for Default Component Parameter Values

2011-09-28 Thread Taha Hafeez
A good thing about following Howard is you getter better in both tapestry and english :) On Thu, Sep 29, 2011 at 9:04 AM, Steve Eynon wrote: > I had to look up the meaning of "Staw Man Proposal" (!) but it seems > it's all good! > > JIRA raised: > > https://issues.apache.org/jira/browse/TAP5-1677

Re: Change Name

2011-09-28 Thread Taha Hafeez
Hi Won't it be more useful if you first visit the documentation and then if you don't find it there you ask it in the mailing list. It will save you some time !! http://tapestry.apache.org/beaneditform-guide.html " Default Label Tapestry will attempt to provide a reasonable default label for eac

Re: 5.3 Beta change in behaviour from Alpha with regard to event methods

2011-09-28 Thread Steve Eynon
> if Tapestry did all the checks at startup, before the first > request, you would not have a good place to report the errors ... If you wanted to go down this line you could have a filter in place that redirected you to an error reporting page if any errors were recorded at startup. I do somethi

Re: [T5.3] Symbols for Default Component Parameter Values

2011-09-28 Thread Steve Eynon
I had to look up the meaning of "Staw Man Proposal" (!) but it seems it's all good! JIRA raised: https://issues.apache.org/jira/browse/TAP5-1677 Have fun! Steve. On 28 September 2011 21:57, Massimo Lusetti wrote: > On Wed, Sep 28, 2011 at 12:15 AM, Igor Drobiazko > wrote: > >> Actually this

Change Name

2011-09-28 Thread csckid
If I make a form using beaneditform , how do I change the name of the field of the form. e.g class Truck{ private int id; private int truckNumberVO; //getters and setters } I want the field/label name of truckNumberVO to be shown as "Truck Number" -- View this message in context: ht

Re: 5.3 Beta change in behaviour from Alpha with regard to event methods

2011-09-28 Thread Vangel V. Ajanovski
On 29.09.2011 00:25, Howard Lewis Ship wrote: errors in most pages. So the "PageCatalog" page would either generate a list of all pages, or an exception report for the first error loading a page. Quite doable. That would probably help. Thanks for the idea. smime.p7s Description: S/MIME Cryp

Re: Where to store site settings?

2011-09-28 Thread Bob Harner
I like to have a simple "Settings" or "Config" table in the database, having just VARCHAR "name" and "value" columns, and a simple Tapestry IOC service that looks up and caches the values (either lazily or at startup time). Another option is to have the settings in a property file (outside the war)

Re: Some worries about Tapestry5 after comparing with wicket!!!

2011-09-28 Thread Lenny Primak
Tapestry-security has components that do exactly this. So I Isn't only possible but been done before. On Sep 28, 2011, at 7:22 PM, Kevin Jing wrote: > Thanks for prompt replay and they are very clear so that I can understand > some of them now. But for setting disabled property, I am still c

Re: Some worries about Tapestry5 after comparing with wicket!!!

2011-09-28 Thread Kevin Jing
Thanks for prompt replay and they are very clear so that I can understand some of them now. But for setting disabled property, I am still confuse. I would like to give a scenarios. When a user login the system, we need to check his/her permission, and then we will probably hide or disable the

Re: 5.3 Beta change in behaviour from Alpha with regard to event methods

2011-09-28 Thread Howard Lewis Ship
Part of Tapestry's philosophy is lazy loading of pages and components on an as-needed basis. This has good points and bad points ... good points are very fast startup which I find very important. The bad side is that a lot of checks occur when the page is lazily loaded (when first needed), and som

Re: Textarea with character count?

2011-09-28 Thread Jon Williams
Oh this brings back some bad memories for me. Try doing this with Tapestry 4's Dojo.js Not fun. RANT OFF On Wed, Sep 28, 2011 at 1:58 PM, Bob Harner wrote: > There's some easy-to-modify source code for this at > > http://tinybits.blogspot.com/2009/04/enforce-max-length-on-textareas-and_15.html >

Re: 5.3 Beta change in behaviour from Alpha with regard to event methods

2011-09-28 Thread Vangel V. Ajanovski
On 28.09.2011 10:32, Dragan Sahpaski wrote: The symbol you have to use to turn off this check is SymbolConstants.UNKNOWN_COMPONENT_ID_CHECK_ENABLED. Actually, I like this check, but it would be better if it was possible to happen at application startup, not on first access to the page. smim

Re: Textarea with character count?

2011-09-28 Thread Bob Harner
There's some easy-to-modify source code for this at http://tinybits.blogspot.com/2009/04/enforce-max-length-on-textareas-and_15.html On Tue, Sep 27, 2011 at 2:34 AM, Magnus Kvalheim wrote: > Hi, > >> >>  I wonder in Tapestry world, is there such a component that while user >>> types, it will coun

Re: Who can recommend a hosting plan with jdk1.6, resin, dedicated IP addy, 6 domains, web admin interface & shell access?

2011-09-28 Thread Andreas Fink
Hi Jon. If it really has to be resin, i would as the directly ask the caucho folks. They are quite a friendly bunch. Cheers, Andi. On Sep 28, 2011, at 21:12 , Jon Williams wrote: > Hi y'all, > > Who can recommend a hosting plan with jdk1.6, resin, dedicated IP addy, 6 > domains, web admin int

Who can recommend a hosting plan with jdk1.6, resin, dedicated IP addy, 6 domains, web admin interface & shell access?

2011-09-28 Thread Jon Williams
Hi y'all, Who can recommend a hosting plan with jdk1.6, resin, dedicated IP addy, 6 domains, web admin interface & shell access that isn't in India or Tibuktoo? OFF TOPIC I KNOW. I trust you guys/gals. Opinions?

Re: How to retrieve Field

2011-09-28 Thread Thiago H. de Paula Figueiredo
On Wed, 28 Sep 2011 14:46:00 -0300, Vasyl Shevchuk wrote: Hello, Thiago! Hi! But, could you please explain this part more detailed "Your TextField should be bound to some property. Can't you read this property directly?" TextFields edits properties of type String. In your case, it's bou

Re: Using Request Attributes

2011-09-28 Thread Sigbjørn Tvedt
Hi. You should have a look here. http://jumpstart.doublenegative.com.au/jumpstart/examples/output/output As you see, the value is retrieved from the getMessage method by using ${message} in the tml file. Regards Sigbjørn On Wed, Sep 28, 2011 at 18:30, Lenny Primak wrote: > You don't use set/ge

Re: T5.2 and CXF / SOAP

2011-09-28 Thread Norman Franke
Thanks! That should be very helpful. I may be doing attachments for pictures and integrating with .NET, so the MTOM stuff should come in handy. Norman Franke Answering Service for Directors, Inc. www.myasd.com On Sep 27, 2011, at 8:30 AM, Ulrich Stärk wrote: Sure: First you need a CXF s

RE: CSS for all pages

2011-09-28 Thread Wechsung, Wulf
Exactly, Steve! You solution is great! Thanks a lot :) -Original Message- From: Steve Eynon [mailto:steve.ey...@alienfactory.co.uk] Sent: Mittwoch, 28. September 2011 19:53 To: Tapestry users Subject: Re: CSS for all pages Ah, cheers Thiago! I think Wulf was saying the CSS was part of

Re: CSS for all pages

2011-09-28 Thread Steve Eynon
Ah, cheers Thiago! I think Wulf was saying the CSS was part of a separate module he wouldn't have direct access to the Layout component - in that case he could use the Worker to single out the Layout and just add the Mixin to that. -- Forwarded message -- From: Thiago H. de Paula

How to retrieve Field

2011-09-28 Thread Pups
Hi to all. I use Tapestry 5.1.0.5. I have the following code @Component(id = "applyCouponCode") private TextField applyCouponCode; private void processSubmission() { ... if (applyCouponParameterName != null || parameterNames.contains("proceedWithoutCoupon")) { applyCouponC

Re: Where to store site settings?

2011-09-28 Thread Kalle Korhonen
I typically have a bunch of application specific symbols since they allow so much flexibility. Set the defaults in AppModule, override with jvm system properties, in your setup scripts for production environment etc. Kalle On Wed, Sep 28, 2011 at 9:47 AM, Tim wrote: > Can someone please tell me

Where to store site settings?

2011-09-28 Thread Tim
Can someone please tell me the best way to store site settings in a Tapestry application? I would like to store the location of a certain directory (where Lucene data is to be kept), and it is different in development and in production, so I don't want it hard coded into the code. Where shoul

Re: Meap Tapestry 5 book cancelled?

2011-09-28 Thread bogdan_cm
There are many many users of Tapestry that are very excited about the book but are not actively on the forums expressing it. I believe, like you said, this is the best thing that could have happened. I for one, cannot wait to get my hands on it. Good luck and "steady hand" :). -- View this

Re: CSS for all pages

2011-09-28 Thread Steve Eynon
There may be an easier way, but you could have a worker to add a Mixin / Component to each page which has no markup, but @Import's your CSS. In T5.3 it's : public class EmbedCssMixinInEveryPageWorker implements ComponentClassTransformWorker2 { public void transform(PlasticClass plasticCla

Re: Using Request Attributes

2011-09-28 Thread Lenny Primak
You don't use set/getAttributes in Tapestry, it abstracts that away for you. Use @Property (@Perist) fields and they will work the same way, or you can use @SessionAttrubute as well if you need to integrate with other frameworks On Sep 28, 2011, at 5:50 AM, sireesha wrote: > Hi > > I am n

CSS for all pages

2011-09-28 Thread Wechsung, Wulf
Hello Guys, I was wondering if it is at all possible to add a global (ie included in all pages) CSS from a module. Basically just like the tapestry framework adds the default.css to any page in your tapestry web app I would like to have a webapp that loads a module that includes a CSS in all t

Some worries about Tapestry5 after comparing with wicket!!!

2011-09-28 Thread Kevin Jing
Hi, gus, I am investigating web frameworks for our products, which is a big ERP software. After that, I am interested in Tapestry5 and Wicket, and I think we will determine one of them to use. They are very similar and I prefer to T5, but I still would like to know the best solution to address my

Using Request Attributes

2011-09-28 Thread sireesha
Hi I am new bee in using Tapestry How to use request.setAttribute("XXX","YYY') and request.getAttribute("XXX"). I hv a java component(POJO) class and some tml file I want to set a variable likr "pageId" and want to use that in tml file. Can anyone help me Thanks in advance. -- View t

Re: [t5.2.6] Composing pages through inheritance problem

2011-09-28 Thread Muhammad Gelbana
I hope one day I can as helpful as you are..for no less than helping you back :) On Wed, Sep 28, 2011 at 3:51 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Wed, 28 Sep 2011 10:38:53 -0300, Taha Hafeez > wrote: > > Have you looked at >> http://tawus.wordpress.com/**2011/04/

Re: Some worries about Tapestry5 after comparing with wicket!!!

2011-09-28 Thread Thiago H. de Paula Figueiredo
On Wed, 28 Sep 2011 12:53:52 -0300, Kevin Jing wrote: Hi, gus, Hi! 1. How do we add the components or remove them dynamically by coding? In Tapestry, the component tree is static, but you can have them render very dynamically. Nice example here: http://tawus.wordpress.com/2011/04/20

Re: table

2011-09-28 Thread Thiago H. de Paula Figueiredo
On Wed, 28 Sep 2011 11:41:25 -0300, csckid wrote: The cell I have added using t:add doesn't show the sort button, on the thead. How can I show the sort button? When you use the add parameter, Grid doesn't know what the associated value is for the columns you're adding. One way is providing

Re: Some worries about Tapestry5 after comparing with wicket!!!

2011-09-28 Thread Lenny Primak
1). You can use blocks to dynamically build a page from the 'blocks' or you can use Dynamic component in some of the more esoteric cases. 2). components can have any property you want, and can be set dynamically at runtime, via ajax for example. 3). Any frameworks are easily integrated. Guic

Some worries about Tapestry5 after comparing with wicket!!!

2011-09-28 Thread Kevin Jing
Hi, gus, I am investigating web frameworks for our products, which is a big ERP software. After that, I am interested in Tapestry5 and Wicket, and I think we will determine one of them to use. They are very similar and I prefer to T5, but I still would like to know the best solution to address my s

table

2011-09-28 Thread csckid
The cell I have added using t:add doesn't show the sort button, on the thead. How can I show the sort button? Please also let me know, whether this is the right way to create table in tapestry? There are no records to display; ${truckWoodPr

Re: [T5.3] Symbols for Default Component Parameter Values

2011-09-28 Thread Massimo Lusetti
On Wed, Sep 28, 2011 at 12:15 AM, Igor Drobiazko wrote: > Actually this is supported since 5.2: > https://issues.apache.org/jira/browse/TAP5-1094 I think the proposal here is to have the default value for some parameters (like the grid's rowsPerPage) to bind to a Symbol so the default can be cha

Re: [t5.2.6] Composing pages through inheritance problem

2011-09-28 Thread Thiago H. de Paula Figueiredo
On Wed, 28 Sep 2011 10:38:53 -0300, Taha Hafeez wrote: Have you looked at http://tawus.wordpress.com/2011/04/20/tapestry-magic-3-plugin-blocks/ Which is basically the same approach used by BeanEditor, Grid and other BeanModel-based components. A proven approach. :) -- Thiago H. de Paula

Re: [t5.2.6] Composing pages through inheritance problem

2011-09-28 Thread Taha Hafeez
Have you looked at http://tawus.wordpress.com/2011/04/20/tapestry-magic-3-plugin-blocks/ On Wed, Sep 28, 2011 at 6:13 PM, Muhammad Gelbana wrote: > I know you mean I should use components but in what way ? > I retracted the inheritance approache and replaced it with the > switching

Re: DEAD LOCK in VirtualAssetStreamer

2011-09-28 Thread Cezary Biernacki
Hi, You can replace default VirtualAssetStreamer with your implementation by contributing it to ServiceOverride (contributeServiceOverride). Your version of VirtualAssetStreamer can be based on existing org.apache.tapestry5.internal.services.VirtualAssetStreamerImpl, just replace all references of

Re: Injecting domain object into all pages

2011-09-28 Thread Sonny Gill
Hi Cezary, Thanks a lot for the detailed response. That InjectionProvider example looks like exactly what I am looking for. I will give that a go. Cheers, Sonny On Wed, Sep 28, 2011 at 2:59 PM, Cezary Biernacki wrote: > Hi, > I built a website with similar requirements, and it is not hard to do

Re: Injecting domain object into all pages

2011-09-28 Thread Cezary Biernacki
Hi, I built a website with similar requirements, and it is not hard to do that with Tapestry. A simple approach is to built a service that returns correct 'Site' instance, and use it everywhere where you need to 'site'. So instead having private Site site; you would have, e.g. @Inject pri

Re: [t5.2.6] Composing pages through inheritance problem

2011-09-28 Thread Muhammad Gelbana
I know you mean I should use components but in what way ? I retracted the inheritance approache and replaced it with the switchingidea which is marvelous. This way I won't get into the messy "t:if" tree. I'm trying to figure out *every possible way*

Re: Injecting domain object into all pages

2011-09-28 Thread Sonny Gill
Thanks Barry. Site is a domain layer object and knows nothing about Request/Response etc. There will be a limited number of Site objects, one for each site supported, created and configured at the application start up. I could set it up as a Service for Tapestry application. But can I then provid

Re: [t5.2.6] Composing pages through inheritance problem

2011-09-28 Thread Taha Hafeez
Use components :) On Wed, Sep 28, 2011 at 5:03 PM, Muhammad Gelbana wrote: > Thank you Taha :) > > But what do you mean by "You can always re-factor your code by composition." > > > On Wed, Sep 28, 2011 at 1:11 PM, Taha Hafeez wrote: > >> Hi Muhammad >> >> I don't think inheritance is the best a

Re: [t5.2.6] Composing pages through inheritance problem

2011-09-28 Thread Muhammad Gelbana
Thank you Taha :) But what do you mean by "You can always re-factor your code by composition." On Wed, Sep 28, 2011 at 1:11 PM, Taha Hafeez wrote: > Hi Muhammad > > I don't think inheritance is the best approach with tapestry. You can > always re-factor your code by composition. Using component

Re: Injecting domain object into all pages

2011-09-28 Thread Barry Books
I have a site that works this way also. I'm sure what you are trying to do could be done but I just do this. 1. Make Site a service 2. class MyPage { @Inject private Site site; } I guess it's a bit more typing but it's easy. Since site is a service it has access to the Request and whatever else

Re: [t5.2.6] Composing pages through inheritance problem

2011-09-28 Thread Taha Hafeez
Hi Muhammad I don't think inheritance is the best approach with tapestry. You can always re-factor your code by composition. Using components is always a better approach. If you have a child page trying to access a component in parent page, IMHO, you should reconsider your refactoring. On Wed, S

[t5.2.6] Is it possible to validate a bean-editor's object using properties file only ?

2011-09-28 Thread Muhammad Gelbana
Hi All, The question says it all and here is some explanation. I have a jar file that I don't wanna add tapestry tapestry annotations to, because It won't always run within tapestry environment. So I can't use @Validate for example. Now when I display an object using bean-editor. I can only valid

Re: DEAD LOCK in VirtualAssetStreamer

2011-09-28 Thread Jens Breitenstein
Thanks Howard! Unortunately we need some time to migrate to 5.2.x and we face this issues each day, thus loosing our cluster and shop-customers. Downtimes each day because of this issue is, well, ugly to horrible depending on whom you ask... Unfortunately we depend on "core" library mappings i

[t5.2.6] Composing pages through inheritance problem

2011-09-28 Thread Muhammad Gelbana
This is a new approach I'm taking to compose pages. I'm trying to convert an existing application to tapestry but one page turned out to be really big and hard to maintain. This page has many form fields. Some fields should always exists, and conditionally show other fields depending on a condition

Injecting domain object into all pages

2011-09-28 Thread Sonny Gill
Hi guys, I am new to Tapestry. Over the past couple of weeks, I have migrated a simple Tapestry application we had to T 5.3 and really enjoyed the experience. Now I am evaluating Tapestry for some further development by writing a prototype application. One of the things I want to be able to do is

Re: 5.3 Beta change in behaviour from Alpha with regard to event methods

2011-09-28 Thread Dragan Sahpaski
Hi, I think you are looking for the part "New Component Class Validations" in the release notes . The symbol you have to use to turn off this check is SymbolConstants.UNKNOWN_COMPONENT_ID_CHECK_ENABLE

Re: 5.3 Beta change in behaviour from Alpha with regard to event methods

2011-09-28 Thread Vangel V. Ajanovski
On 28.09.2011 01:56, Howard Lewis Ship wrote: Also, you can turn this check off, at least in 5.3 (in later releases, the option to turn off the check may be removed). See the release notes on the Tapestry home page. Sorry. I have read the release notes 2-3 times since moving from 5.2 to 5.3 a