Re: registry startup issue

2016-01-26 Thread John Coleman
Thanks, Eclispe was set up JDK 8 instead of the required 7.

On Wed, Jan 27, 2016 at 11:54 AM, Kalle Korhonen  wrote:

> You are using a version of plastic that's incompatible with the version of
> tapestry-core and/or JVM you are using. Check your classpath for multiple
> version of these libs. It's always a good idea to state upfront the
> versions you are using to save others from the guesswork.
>
> Kalle
>
> On Tue, Jan 26, 2016 at 7:56 PM, John Coleman 
> wrote:
>
> >  any ideas, some of these services won't construct?
> >
> >
> > public EmailServiceImpl(AssetSource assetSource, Logger logger, Messages
> > messages)
> > throws IOException {
> >
> >
> >
> > [ERROR] ioc.Registry Operations trace:
> > [ERROR] ioc.Registry [ 1] Creating proxy for service RegistryStartup
> > [WARNING] Failed startup of context o.e.j.m.p.JettyWebAppContext@b00ad9
> >
> >
> {/audit,file:/C:/Temp/Audit%20Manager/src/main/webapp/,STARTING}{file:/C:/Temp/Audit%20Manager/src/main/webapp/}
> > org.apache.tapestry5.ioc.internal.OperationException: Error building
> > service proxy for service 'RegistryStartup' (at
> > org.apache.tapestry5.ioc.internal.services.RegistryStartup(Logger, List)
> > (at RegistryStartup.java:36) via
> > org.apache.tapestry5.ioc.services.TapestryIOCModule.bind(ServiceBinder)
> (at
> > TapestryIOCModule.java:49)): java.lang.IllegalArgumentException
> > at
> >
> >
> org.apache.tapestry5.ioc.internal.OperationTrackerImpl.logAndRethrow(OperationTrackerImpl.java:121)
> > at
> >
> >
> org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:88)
> > at
> >
> >
> org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
> > at
> >
> >
> org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1124)
> > at
> org.apache.tapestry5.ioc.internal.ModuleImpl.create(ModuleImpl.java:332)
> > at
> >
> org.apache.tapestry5.ioc.internal.ModuleImpl.access$100(ModuleImpl.java:39)
> > at
> >
> org.apache.tapestry5.ioc.internal.ModuleImpl$1.invoke(ModuleImpl.java:191)
> > at
> >
> >
> org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withWrite(ConcurrentBarrier.java:140)
> > at
> >
> org.apache.tapestry5.ioc.internal.ModuleImpl$2.invoke(ModuleImpl.java:207)
> > at
> >
> >
> org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:85)
> > at
> >
> >
> org.apache.tapestry5.ioc.internal.ModuleImpl.findOrCreate(ModuleImpl.java:213)
> > at
> >
> >
> org.apache.tapestry5.ioc.internal.ModuleImpl.getService(ModuleImpl.java:109)
> > at
> >
> >
> org.apache.tapestry5.ioc.internal.RegistryImpl.getService(RegistryImpl.java:421)
> > at
> >
> >
> org.apache.tapestry5.ioc.internal.RegistryImpl.performRegistryStartup(RegistryImpl.java:325)
> > at
> >
> >
> org.apache.tapestry5.ioc.internal.RegistryWrapper.performRegistryStartup(RegistryWrapper.java:80)
> > at org.apache.tapestry5.TapestryFilter.init(TapestryFilter.java:118)
> > at
> org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:137)
> > at
> >
> >
> org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:817)
> > at
> >
> >
> org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:300)
> > at
> >
> org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1359)
> > at
> >
> >
> org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1352)
> > at
> >
> >
> org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:744)
> > at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:497)
> > at
> >
> >
> org.eclipse.jetty.maven.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:282)
> > at
> >
> >
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
> > at
> >
> >
> org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:125)
> > at
> >
> >
> org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:107)
> > at
> >
> >
> org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:60)
> > at
> >
> >
> org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:154)
> > at
> >
> >
> org

registry startup issue

2016-01-26 Thread John Coleman
 any ideas, some of these services won't construct?


public EmailServiceImpl(AssetSource assetSource, Logger logger, Messages
messages)
throws IOException {



[ERROR] ioc.Registry Operations trace:
[ERROR] ioc.Registry [ 1] Creating proxy for service RegistryStartup
[WARNING] Failed startup of context o.e.j.m.p.JettyWebAppContext@b00ad9
{/audit,file:/C:/Temp/Audit%20Manager/src/main/webapp/,STARTING}{file:/C:/Temp/Audit%20Manager/src/main/webapp/}
org.apache.tapestry5.ioc.internal.OperationException: Error building
service proxy for service 'RegistryStartup' (at
org.apache.tapestry5.ioc.internal.services.RegistryStartup(Logger, List)
(at RegistryStartup.java:36) via
org.apache.tapestry5.ioc.services.TapestryIOCModule.bind(ServiceBinder) (at
TapestryIOCModule.java:49)): java.lang.IllegalArgumentException
at
org.apache.tapestry5.ioc.internal.OperationTrackerImpl.logAndRethrow(OperationTrackerImpl.java:121)
at
org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:88)
at
org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
at
org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1124)
at org.apache.tapestry5.ioc.internal.ModuleImpl.create(ModuleImpl.java:332)
at
org.apache.tapestry5.ioc.internal.ModuleImpl.access$100(ModuleImpl.java:39)
at
org.apache.tapestry5.ioc.internal.ModuleImpl$1.invoke(ModuleImpl.java:191)
at
org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withWrite(ConcurrentBarrier.java:140)
at
org.apache.tapestry5.ioc.internal.ModuleImpl$2.invoke(ModuleImpl.java:207)
at
org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:85)
at
org.apache.tapestry5.ioc.internal.ModuleImpl.findOrCreate(ModuleImpl.java:213)
at
org.apache.tapestry5.ioc.internal.ModuleImpl.getService(ModuleImpl.java:109)
at
org.apache.tapestry5.ioc.internal.RegistryImpl.getService(RegistryImpl.java:421)
at
org.apache.tapestry5.ioc.internal.RegistryImpl.performRegistryStartup(RegistryImpl.java:325)
at
org.apache.tapestry5.ioc.internal.RegistryWrapper.performRegistryStartup(RegistryWrapper.java:80)
at org.apache.tapestry5.TapestryFilter.init(TapestryFilter.java:118)
at org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:137)
at
org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:817)
at
org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:300)
at
org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1359)
at
org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1352)
at
org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:744)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:497)
at
org.eclipse.jetty.maven.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:282)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at
org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:125)
at
org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:107)
at
org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:60)
at
org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:154)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at
org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:125)
at
org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:107)
at
org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:60)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at
org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:125)
at org.eclipse.jetty.server.Server.start(Server.java:358)
at
org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:107)
at
org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:60)
at org.eclipse.jetty.server.Server.doStart(Server.java:325)
at org.eclipse.jetty.maven.plugin.JettyServer.doStart(JettyServer.java:68)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at
org.eclipse.jetty.maven.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:564)
at
org.eclipse.jetty.maven.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:360)
at
org.eclipse.jetty.maven.plugin.JettyRunMojo.execute(JettyRunMojo.java:168)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildPr

Re: maven build dependency problems

2016-01-19 Thread John Coleman
You are right Kalle, I ended up removing a bunch of repos from the build
and it worked. I had to obtain google kaptcha 2.3 from an archive and
install it on the local repository because this also has gone off-line.

John

On Wed, Jan 20, 2016 at 1:40 PM, Kalle Korhonen 
wrote:

> No, I think you should remove extra repository references. Codehaus went
> bust more than 8 months ago. Track down where codehaus repo is being
> referenced and remove it. If you need the org.got5.tapestr5-jquery library,
> use the versions available at Maven central:
> http://repo1.maven.org/maven2/org/got5/tapestry5-jquery/
>
> Kalle
>
> On Tue, Jan 19, 2016 at 9:54 PM, Prakash Manjeshwar <
> pvmanjesh...@gmail.com>
> wrote:
>
> > Looks like repository issue with codehous.
> >
> > Check the section "For Tapestry 5.3 users: " at:
> > https://github.com/got5/tapestry5-jquery
> >
> > You may have to add repositories.
> >
> > ---
> > Regards,
> > Prakash
> >
> >
> > On 20 January 2016 at 10:29, John Coleman 
> > wrote:
> >
> > > Can anyone shed light on this please?
> > >
> > >
> > > [INFO] [ERROR] Failed to execute goal on project AuditManager: Could
> not
> > > resolve
> > >  dependencies for project **.audit:AuditManager:war:3.1.5-SNAPSHOT:
> > > Failed t
> > > o collect dependencies for [org.apache.tapestry:tapestry-core:jar:5.3.6
> > > (compile
> > > ), org.apache.tapestry:tapestry-yuicompressor:jar:5.3.6 (compile),
> > > org.testng:te
> > > stng:jar:5.14.10 (test), org.easymock:easymock:jar:3.0 (test),
> > > org.apache.tapest
> > > ry:tapestry-test:jar:5.3.6 (test), javax.servlet:servlet-api:jar:2.5
> > > (provided),
> > >  org.apache.tapestry:tapestry-javadoc:jar:5.3.6 (provided),
> > > se.unbound:tapestry-
> > > breadcrumbs:jar:1.9 (compile), epulse.tapestry:tapx-datefield:jar:1.2
> > > (compile),
> > >  org.got5:tapestry5-jquery:jar:3.3.7 (compile),
> > > org.apache.tapestry:tapestry-jpa
> > > :jar:5.3.5 (compile), javax.mail:mail:jar:1.4.5 (compile),
> > > org.eclipse.persisten
> > > ce:eclipselink:jar:2.4.1 (compile), net.sourceforge.jtds:jtds:jar:1.2.7
> > > (compile
> > > ), postgresql:postgresql:jar:9.1-901.jdbc4 (compile),
> > > javax.annotation:jsr250-ap
> > > i:jar:1.0 (compile), org.apache.commons:commons-io:jar:1.3.2 (compile),
> > > eu.epuls
> > > e.auditmanager:sentinelplus:jar:1.0.0 (compile),
> > > org.apache.tapestry:tapestry-ka
> > > ptcha:jar:5.3.5 (compile),
> commons-beanutils:commons-beanutils:jar:1.8.3
> > > (compil
> > > e), org.apache.commons:commons-email:jar:1.3.2 (compile)]: Failed to
> read
> > > artifa
> > > ct descriptor for org.got5:tapestry5-jquery:jar:3.3.7: Could not
> transfer
> > > artifa
> > > ct org.got5:tapestry5-jquery:pom:3.3.7 from/to Codehaus repo (
> > > http://nexus.codeh
> > > aus.org/content/repositories/releases/org/codehaus/mojo): Error
> > > transferring fil
> > > e: nexus.codehaus.org: Unknown host nexus.codehaus.org -> [Help 1]
> > >
> >
>


maven build dependency problems

2016-01-19 Thread John Coleman
Can anyone shed light on this please?


[INFO] [ERROR] Failed to execute goal on project AuditManager: Could not
resolve
 dependencies for project **.audit:AuditManager:war:3.1.5-SNAPSHOT:
Failed t
o collect dependencies for [org.apache.tapestry:tapestry-core:jar:5.3.6
(compile
), org.apache.tapestry:tapestry-yuicompressor:jar:5.3.6 (compile),
org.testng:te
stng:jar:5.14.10 (test), org.easymock:easymock:jar:3.0 (test),
org.apache.tapest
ry:tapestry-test:jar:5.3.6 (test), javax.servlet:servlet-api:jar:2.5
(provided),
 org.apache.tapestry:tapestry-javadoc:jar:5.3.6 (provided),
se.unbound:tapestry-
breadcrumbs:jar:1.9 (compile), epulse.tapestry:tapx-datefield:jar:1.2
(compile),
 org.got5:tapestry5-jquery:jar:3.3.7 (compile),
org.apache.tapestry:tapestry-jpa
:jar:5.3.5 (compile), javax.mail:mail:jar:1.4.5 (compile),
org.eclipse.persisten
ce:eclipselink:jar:2.4.1 (compile), net.sourceforge.jtds:jtds:jar:1.2.7
(compile
), postgresql:postgresql:jar:9.1-901.jdbc4 (compile),
javax.annotation:jsr250-ap
i:jar:1.0 (compile), org.apache.commons:commons-io:jar:1.3.2 (compile),
eu.epuls
e.auditmanager:sentinelplus:jar:1.0.0 (compile),
org.apache.tapestry:tapestry-ka
ptcha:jar:5.3.5 (compile), commons-beanutils:commons-beanutils:jar:1.8.3
(compil
e), org.apache.commons:commons-email:jar:1.3.2 (compile)]: Failed to read
artifa
ct descriptor for org.got5:tapestry5-jquery:jar:3.3.7: Could not transfer
artifa
ct org.got5:tapestry5-jquery:pom:3.3.7 from/to Codehaus repo (
http://nexus.codeh
aus.org/content/repositories/releases/org/codehaus/mojo): Error
transferring fil
e: nexus.codehaus.org: Unknown host nexus.codehaus.org -> [Help 1]


Re: Multiple domains, one webapp

2015-08-02 Thread John Coleman
I'm going to agree with Bob here. Reducing complexity is a top level goal
IMO. Using a different app for different URLs seems somewhat familiar to
the MVC anti-pattern.

The domain name used to access a system ought to be considered part of the
presentation layer (like an interface vs an implementation) and therefore
should not inform how an application is assembled.

John


On Sat, Aug 1, 2015 at 11:01 PM, Bob Harner  wrote:

> Stephen,
>
> An contrary viewpoint...
>
> There is really nothing wrong with having two web front ends for a single
> web app if you handle authentication in a clean and reliable way. Sure, the
> conventional wisdom is to split the app into 3 parts (clients, partners,
> and a common JAR containing classes that both share) as Dimitri and Thiago
> recommend. However, doing so does add significant infrastructure
> complexity:
>
> 1) You have to maintain three projects (or a Maven multi-module project if
> you're using Maven) instead of one.
> 2) You'll have two different app servers to configure & maintain.
> 3) You'll probably need to maintain database credentials in two different
> places.
> 4) You can't use Tapestry's Live Class Reloading on any class in the common
> JAR (e.g. Tapestry IOC service implementation classes).
> 5) If you use an automated build server like Jenkins then you'll have to
> set up and maintain triple the number of jobs.
> 6) Your build process will be slower and more error prone because you'll
> often have to build the common JAR before building and deploying you'll
> have different log files.
>
> On Thu, Jul 30, 2015 at 5:05 PM, Stephen Nutbrown 
> wrote:
>
> > Thanks for the advice. I'll go with this. I will look into how to create
> a
> > module which I can use in both webapps, and I will need to find a
> reliable
> > way to connect both of the webapps to the same (amazon RDS) database
> > without running out of connections etc (I believe this will just mean
> > working with the hibernate config).
> >
> > In the long run, I do think this is the best approach, although as we
> > currently have ~70 pages and around 10 services, i'm sure you can imagine
> > why I was a little hesitant to start chopping things out of it, but I
> > suppose this number of pages and services is all the more reason to split
> > it into two webapps.
> >
> > One benefit of having a single webapp is hosting prices, as it's with
> > Amazon on an EC2 instance - it means we will now have two EC2 instances
> > unless I can figure out a way to get them both on one - I am sure this is
> > possible but perhaps not particularly easy.
> >
> > Thanks again for all the help - I know what I have to do, it's just going
> > to be quite an effort (no fault of T5 - it's a huge change to the
> direction
> > of the project).
> >
> >
> >
> > On 30 July 2015 at 21:45, Norman Franke  wrote:
> >
> > > Or have two instances of the same application with some configuration
> > > parameter to tell it which version it should be.
> > >
> > > Norman Franke
> > > Answering Service for Directors, Inc.
> > > www.myasd.com 
> > >
> > >
> > >
> > > > On Jul 30, 2015, at 4:12 PM, Thiago H de Paula Figueiredo <
> > > thiag...@gmail.com> wrote:
> > > >
> > > > On Thu, 30 Jul 2015 16:19:50 -0300, Dimitris Zenios <
> > > dimitris.zen...@gmail.com> wrote:
> > > >
> > > >> I would definitely split it into two web applications with a common
> > > >> tapestry module.Any other way will result to a mess.
> > > >
> > > > Agreed, as that's basically two distinct web applications which just
> > > happen to be in the same server, even if they have shared code.
> > > >
> > > > If it was the same web application but with different domains and
> data,
> > > you can use URL rewriting to make them work out of the same webapp
> > > instance. My (incomplete, but working) Eloquentia blogging engine does
> > > that: https://github.com/thiagohp/eloquentia. It can serve two or more
> > > different blogs, each from its own different domain, in the same webapp
> > > instance. It can also have subdomains for tags (domain.com for general
> > > stuff and tapestry.domain.com for tapestry-specific posts, for
> example).
> > > >
> > > > --
> > > > Thiago H. de Paula Figueiredo
> > > > Tapestry, Java and Hibernate consultant and developer
> > > > http://machina.com.br
> > > >
> > > > -
> > > > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > > > For additional commands, e-mail: users-h...@tapestry.apache.org
> > > >
> > >
> > >
> >
>


form requires dynamic radio button list

2015-02-04 Thread John Coleman
Hi,

The examples of using the tapestry radio button are all static. I need the
radio buttons to build from a dynamic list (in this case of locations)
presumably using a loop, something like this:

 






But this does not work!? Note that I also want to fire an event when the
user selects a radio button to rerender the rest of the form in response to
a change of location.

Any ideas how to solve this please?

John


Re: span key - dynamic component, and may not appear inside an ignored block

2006-11-29 Thread John Coleman
Ron Piterman  gmx.net> writes:

> 
> check if all yaour attributes are closed properly.
> Cheers,
> Ron

Thanks Ron, that's exactly what it was, missing " on a attribute close! Didn't 
spot it when I checked the listing.

John


Ron Piterman  gmx.net> writes:

> 
> check if all yaour attributes are closed properly.
> Cheers,
> Ron



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: span key - dynamic component, and may not appear inside an ignored block

2006-11-29 Thread John Coleman
I can't find a mistake, but I wonder if this @Any code higher up is the real 
issue as it surounds the whole section, but then I used that at top of page and 
no problem?

Is there something I can use in eclipse to help me with the syntax, like 
Spindle?

John


http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>

http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">

 Admin: Product

  
  








Bread crumb









Add Product


Edit Product

Delete 
Product



Are you sure you want to delete product  ?








Product ID:











Product ID:















Name:





  




Description:







Active






  
  


Actions:
   

span key - dynamic component, and may not appear inside an ignored block

2006-11-29 Thread John Coleman
This code:


Save the record 
and return
 on line 125 is a dynamic component, and may not 
appear inside an ignored block. Is there a simple way around this, I would 
rather like to use  wherever I like.

John


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: how to internationalise titles

2006-11-23 Thread John Coleman
Jesse Kuhnert  gmail.com> writes:

> 
> Do you mean something like?:
> 
> 
> 

Thanks. But if I use @Any, then I can't have a static value to represent the 
dynamic value when I view the template in a browser.

Some components (like buttons) support a dynamic label attribute that will 
replace the value at run time. Is there anything like that.

It seems I may need to make my own @Any-ish component to replace the alt and 
title attributes dynamically when I need to.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



how to internationalise titles

2006-11-22 Thread John Coleman
Has anyone found out how to internationalise title attributes?

eg:


how about this:

List of Agencies">

Looks terrible, not valid markup.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: button values

2006-11-22 Thread John Coleman
any ideas why this would not work and I have to use ognl:messages. instead?

TIA
John




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: button values

2006-11-22 Thread John Coleman
D&J Gredler  gmail.com> writes:
I used the label attribute to supply i.e. label="ognl:messages.getMessage...".

Can I use messages: anywhere,and drop ognl, is that better? We use Tapestry 4.0 
I think.

regards,
John


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



button values

2006-11-21 Thread John Coleman
I want to internationalise my button values, I found using ognl works nicely, 
but the static rendering of the template is spoilt. Is there a way to keep 
value static and let Tapetry render the value from the proeprties file 
dynamically?

TIA
John




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



PropertySelection

2006-11-13 Thread John Coleman
Hi,

I've created my own flavour of PropertySelection called 
PropertySelectionWithHint that may display a "choose an option below" in the 
first option of the list.

When there are no elements in the list the components render method just 
returns  . When this happens I'd like the associated TextField label 
component to also not display.

So I added this @If to the template:




Topic Detail





Please wait...



I've added this method to the component:

public Boolean isRenderable()
{
IPropertySelectionModel model = getModel();
if (model == null)
{
throw Tapestry.createRequiredParameterException
(this, "model");
}
int count = model.getOptionCount();
// we only render anything if there are some items to actually 
chose from
return new Boolean(count > 0);
}

How do I access the method or a property so that my @If will work please? I 
tried adding abstract methods but can't see how I invoke them when required.

For example putting the property set in the constructor seems no good:

public PropertySelectionWithHint()
{
setRenderable(isRenderable());
}


TIA
John





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]