Re: t5: https and two T5 apps

2011-07-06 Thread 9902468
Use httpd infront of tomcat(s) That way you have to administer the certificate only once + you can proxy_ajp to any number of tomcats and jettys and glassfishes etc. In proxu_ajp.conf you can decide what urls goes to which tomcats or to which tomcat url inside one tomcat. Separate containers

Re: t5: https and two T5 apps

2011-07-06 Thread Angelo C.
i use mod_proxy in front of tomcat, does it have the same benefits of proxy_ajp? -- View this message in context: http://tapestry.1045711.n5.nabble.com/t5-https-and-two-T5-apps-tp4555456p4556392.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: how do you gracefully shutdown run-jetty-run ?

2011-07-06 Thread tony wang
Hi , I am one of the maintainer in Run-Jetty-Run , according to this issue , we will provide some command in next nightly build. If you need more information you could reference to this thread below , thanks. http://code.google.com/p/run-jetty-run/issues/detail?id=64 -- View this message in

a question T5 work with spring

2011-07-06 Thread dick_hu
Anyone can tell me,how can I get the serviceId from spring Integration? I try in my test,I Integrate a bean named TestService in spring xml, but I can't get the service in my Page by @InjectService(TestService). I want to catch the serviceId from spring bean,what can I do? -- View this message in

Re: No context for a t:select?

2011-07-06 Thread George Christman
Worked perfectly. Thanks -- View this message in context: http://tapestry.1045711.n5.nabble.com/No-context-for-a-t-select-tp3398655p4556553.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To

Re: a component problem in work

2011-07-06 Thread Thiago H. de Paula Figueiredo
On Tue, 05 Jul 2011 23:36:39 -0300, Lenny Primak lpri...@hope.nyc.ny.us wrote: I think you need to look at @PageLoaded or @PageAttached annotations / naming conventions to do what you want. onActivate is for page context parameter processing It's also for any page initialization that

Re: T5 Selected Attribute

2011-07-06 Thread George Christman
Is there any chance you guys could help me write out the hashCode equals with the select menu. I'm having a difficult time comprehending this for some reason. I'm hoping after seeing an example, I'll be able to finally bring it all together. To keep things simple, the tml contains a nested loop

Re: a component problem in work

2011-07-06 Thread dick_hu
Thiago H. de Paula Figueiredo wrote: It's also for any page initialization that needs to be done in both render and event requests. You can also use @BeginRender for anything that needs to be run before a page render. It's not triggered in event requests. Thank you very much for

Re: T5 Selected Attribute

2011-07-06 Thread Thiago H. de Paula Figueiredo
On Wed, 06 Jul 2011 11:35:23 -0300, George Christman gchrist...@cardaddy.com wrote: Is there any chance you guys could help me write out the hashCode equals with the select menu. Yes, but you haven't sent us what we need to help you: the Funding class source. -- Thiago H. de Paula

Re: Special Character in attribute.

2011-07-06 Thread Juan Alba
Hi, Thanks for the help Nillehammer, here is the code: /*JAVA*/ public class ModalPage { @Parameter(value=null, defaultPrefix = BindingConstants.LITERAL) private String boxParams; @AfterRenderBody public void afterRenderTemplateLink() { String comando = String.format(new

Re: T5 Selected Attribute

2011-07-06 Thread George Christman
Here's my Funding class @Entity public class Funding extends BaseEntity implements Labeled { //BaseEntity is just the generated ID. private String name; private String label; @OneToMany(mappedBy = funding, cascade=CascadeType.ALL) private ListLineItemFunding lineItemFundings;

Re: a question T5 work with spring

2011-07-06 Thread Tony Nelson
I'm not sure what you mean by the service Id, but I use Spring with Tap5 like this: applicationContext.xml ?xml version=1.0 encoding=UTF-8? beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

Re: Special Character in attribute.

2011-07-06 Thread Juan Alba
sorry guys, de error shown is this one, not the one sent before: org.apache.tapestry5.internal.services.RenderQueueException Render queue error in AfterRenderBody[proxy/menu/EndPoint:showendpointlink]: Conversion = o, Flags = , On Wed, Jul 6, 2011 at 12:17 PM, Juan Alba

Re: T5 Selected Attribute

2011-07-06 Thread Thiago H. de Paula Figueiredo
If you use Eclipse, Source - Generate hashCode() and equals() generates good implementations of these methods. You'll need to choose the fields used: check just the id one. On Wed, 06 Jul 2011 12:23:34 -0300, George Christman gchrist...@cardaddy.com wrote: Here's my Funding class

Component class inheritance and parameter binding in tapestry 5.2.5

2011-07-06 Thread Jabbar
Hello all, I have a base component called Dialog which has a number of parameters. I have created another component DialogRepairBatches which extends Dialog public class Dialog { @Parameter(required=true) @Property private String id; @Parameter(required=true) @Property

Re: T5 Selected Attribute

2011-07-06 Thread George Christman
So would I be generating the hashCode equals within the funding class? Also, that select menu is being used within an AjaxFormLoop with a value encoder which is using the Transient temp id. How would hashCode work when the ID is null? Thanks Thiago -- View this message in context:

Re: T5 Selected Attribute

2011-07-06 Thread Lenny Primak
I suggest you take a look at project Lombok. It has annotation @Data that automatically generates all getters, setters, toStong and hashCode automatically and at runtime for you. Perfect for entity classes and makes code very very small. On Jul 6, 2011, at 10:35 AM, George Christman

Re: T5 Selected Attribute

2011-07-06 Thread Thiago H. de Paula Figueiredo
On Wed, 06 Jul 2011 14:06:26 -0300, George Christman gchrist...@cardaddy.com wrote: So would I be generating the hashCode equals within the funding class? Yes. The class whose instances are used as options in the Select component. Also, that select menu is being used within an AjaxFormLoop

Re: T5 Selected Attribute

2011-07-06 Thread George Christman
Thanks Thiago, I finally have this some what working :) Add some logic so it's not resetting every menu on the page and we should be good to go lol. Any thoughts on using Lombok's annotations for the entity classes? First I've heard of it. -- View this message in context:

Re: T5 Selected Attribute

2011-07-06 Thread Lenny Primak
I don't even use @Property annotation, is's just @Getter / @Setter from Lombok, also SneakyThrows is great. Cuts down on code tremendously. On Jul 6, 2011, at 1:33 PM, George Christman wrote: Thanks Thiago, I finally have this some what working :) Add some logic so it's not resetting every

Re: Component class inheritance and parameter binding in tapestry 5.2.5

2011-07-06 Thread Josh Canfield
You have a typo in the tml. Your parameter is selectedBatchStatus and you are binding selectedBatchedStatus    private RepairListStatus selectedBatchStatus; t:selectedBatchedStatus=selectedBatchStatus/ As I recall t:id is special, if you have a parameter named id then try dropping the t: from

Re: Special Character in attribute.

2011-07-06 Thread Nillehammer
Hello Juan, this was tricky! The String parameter for RenderSupport.addScript(...) somewhere deep in the code is passed to String.format(...). In String.format(...) the percent sign indicates a conversion. %, is no valid conversion, hence the Exception. To get rid of that error you have to

Re: Special Character in attribute.

2011-07-06 Thread Nillehammer
Hi Juan, thanks for providing the code. I have implemented it (with some slight changes to get it to compile) and now I see the same error as you. I haven't found a solution yet. I will come back, when I have found one (hopefully ;-)). Cheers nillehammer Am 06.07.2011 17:34, schrieb Juan

Constructing a block in java

2011-07-06 Thread Mark
Is there a better way to construct a block from a string in Java than this? Block onShowDialogFromMoreInfo(TicketClass ticketClass) { return new RenderableAsBlock(new StringRenderable(person.getInfo())); } Mark