Load ClassPathXMLApplicationContext just one time in the app

2008-10-02 Thread Daniel Alonso Sanchez

Hi everybody. I'm trying to optimize the loading of the cxf XML context of
our application (for web services invocation) and so i have been reading all
the stuff concerning Binding, because i think that, as happens with another
modules like Hibernate, is there a possibility to load the xml context just
one time in the application, but  I am still a newbie in tapestry. 

The thing is that i have created a subclass of
ClassPathXMLApplicationContext, with a default constructor with a super call
with de client-beans.xml path. Besides, i have created an interface with all
the methods of ClassPathXMLApplicationContext.

After all, i have added this line to the bind method in AppModule.java


binder.bind((Class)IClassPathXMLApplicationContext.class,(Class)MyClassPathXmlApplicationContext.class);

I have put the (Class) casting because if not, compiler cries with something
like this:


The method bind(Class, ServiceBuilder) in the type ServiceBinder is
not applicable for the arguments (Class,
Class)

I deploy the app and everthing goes fine, besides the context loads ok, but
when I try to execute this sentence:

DetalleSolicitud sd06 = (DetalleSolicitud)context.getBean("sd06");  

I get a ClassCastException. I have tried with loading the context each time
i need to call a web service, and everthing is ok, so I know the problem is
in my crazy binding.

Am i doing something wrong¿? Is it possible to do what  I  am trying to do?

Thanks in advance for all and sorry for posting through the web but my mail
at work is broken :(
-- 
View this message in context: 
http://www.nabble.com/Load-ClassPathXMLApplicationContext-just-one-time-in-the-app-tp19792978p19792978.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



T5: Function Tapestry.Validator.email() does not exist for field 'email'.

2008-10-02 Thread buckofive

Hi all,

I just updated to the latest snapshot 5.0.16-SNAPSHOT and I'm getting a
client side error during the initial page load:

Function Tapestry.Validator.email() does not exist for field 'email'.

My Entity method is defined as:
@Validate("required,maxlength=70,email")
public String getEmail() {
return this.email;
}


This previously worked in 5.0.15-SNAPSHOT, so I thought I'd ask and see if
anyone else has run into this issue or if maybe the syntax has changed? 
Thanks in advance.

Cheers,
B

-- 
View this message in context: 
http://www.nabble.com/T5%3A-Function-Tapestry.Validator.email%28%29-does-not-exist-for-field-%27email%27.-tp19792973p19792973.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: T5: multi-module, multi-developer project

2008-10-02 Thread Kristian Marinkovic
hi angelo,

we are devloping a quite huge application using t5 by 
splitting it into many T5 IOC modules. Every developer 
is responsible for his module and must ensure that his
modules' UI is testable and can run on it self. so every 
module has also a web.xml in his test/  directory. The 
result is a .jar file with a *Module class and the respective
MANIFEST entries. the final T5 is a war project that just
adds the dependencies it needs. Thanks to IOCs autoconfig
everything works perfectly :)


g,
kris




Angelo Chen <[EMAIL PROTECTED]> 
03.10.2008 02:30
Bitte antworten an
"Tapestry users" 


An
users@tapestry.apache.org
Kopie

Thema
T5: multi-module, multi-developer project








Hi,

I'd like to know how to use T5 in a multi module project, example: 2
developers, each handle one module, A/P and Inventory, should this be two 
T5
app accessing the same database or one T5 app? which is a better approach?
thanks.

Angelo
-- 
View this message in context: 
http://www.nabble.com/T5%3A-multi-module%2C-multi-developer-project-tp19790242p19790242.html

Sent from the Tapestry - User mailing list archive at Nabble.com.


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




Interactive Organisation Chart in T5

2008-10-02 Thread wesley

hi all,

I've been wondering is there a component which can render organisation chart
in T5 pages? which will have a very basic interactive such as click and fire
an event based on the hierarchical boxes? the closest to it was Tree
structure that i found on the wiki tutorial pages, but its best to have an
org chart. any recommendations? please advise, thank you.

regards,
wesley
-- 
View this message in context: 
http://n2.nabble.com/Interactive-Organisation-Chart-in-T5-tp1140737p1140737.html
Sent from the Tapestry Users mailing list archive at Nabble.com.


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



Re: My Tapestry5 suggestion list

2008-10-02 Thread Thiago H. de Paula Figueiredo
Em Thu, 02 Oct 2008 18:04:24 -0300, Alex Kotchnev <[EMAIL PROTECTED]>  
escreveu:



Who would have thought this much discussion would come out of this :-)


Unanimities are boring and we learn next to nothing with them. :)

   I am not advocating the usage of some "other" magical framework to  
manage the layouts.


I think I have not made my point clear: I was not talking about having to  
learn another framework, but learning one more feature from our framework.



My point is this : how many applications do you have that DO
NOT use a common layout ?


Now you raised a good discussion point. :)
But there is a hard question to answer: how can we write a layout  
component that is good enough for most of the situations? What would be  
its template? I don't have the answer. Maybe we could provide some  
ready-to-use layouts, but I don't think this should be an intrinsic part  
of the framework, just an useful add-on.


   I fail to see how having 2 artifacts (an empty class and html) is  
simpler than having just one, especially when the java class is just an  
empty class.


Simple in the sense that you have just one option (1 class - 1 template)  
instead of two (1 class - 1 template, just 1 template). I'm not sure, but  
I vaguely remeber Howard speaking that the obligatory page class  
simplifies and gives a better performance to the inner workings of  
Tapestry.



In the little project that I do, I do have a bunch of pages that are
composed of mostly static text, but for which I like being able to apply  
the same layout as all the other pages.


It's not exactly the same thing, but a feature request I would do is  
Tapestry to pick up new classes (pages, components, mixins) and templates  
after the application was started. It already picks up chages to existing  
things, but not picks up new things. ;)


--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
Consultor, desenvolvedor e instrutor em Java
http://www.arsmachina.com.br/thiago

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



T5: multi-module, multi-developer project

2008-10-02 Thread Angelo Chen

Hi,

I'd like to know how to use T5 in a multi module project, example: 2
developers, each handle one module, A/P and Inventory, should this be two T5
app accessing the same database or one T5 app? which is a better approach?
thanks.

Angelo
-- 
View this message in context: 
http://www.nabble.com/T5%3A-multi-module%2C-multi-developer-project-tp19790242p19790242.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



contributeMetaDataLocator ordering....

2008-10-02 Thread Tom Zurkan
I am including the annotation SubModule In one of the sub modules  I 
call contributeMetaDataLocator and set up default values for my meta 
data.  In my AppModule, I also call contributeMetaDataLocator to 
override the default.  The problem is that my AppModule contribute is 
being called first and then the submodule.  Is there a way around this?  
It worked in Tapestry5.11.


Thanks,

Tom

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



How to force values list to show in AutoCompleter component

2008-10-02 Thread Hugo Palma
I'm using the Autocomplete component with success but i'd like to 
provide a button next to it that would force the values list to show up.
As the component doesn't keep the Ajax.Autocompleter javascript object 
that contains the appropriate methods for this i'm unable to find 
another way.


Any ideas ?

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



Re: My Tapestry5 suggestion list

2008-10-02 Thread Marcelo Lotif
Hi all,I think that Chris' points are the most important ones, together with
the #5 from Tobias (resolving template/component class names, i.e. naming
strategy). Mainly the configurable URL's, the built in feature is REALLY
great, but it's tricky sometimes...

Adding these features to the core will make me feel real happy :)

On Thu, Oct 2, 2008 at 7:29 PM, Chris Lewis <[EMAIL PROTECTED]>wrote:

> Hello,
>
> The only one of these that I'm interested in is the ability to have
> class-less components (just markup, no logic). I filed an issue for this
> many months ago, and am no longer certain where in the mix it is. I'll
> add one:
>
> Configurable URL-mapping service.
>
> I loathe - /loathe/ the fact that I have no control over the URL
> structure, and that it directly reflects the page class structure of the
> applications. There are simply cases where I want to have some kind of
> routing/rewriting feature, not to mention that management will at times
> demand control over such a thing.
>
> Tobias Marx wrote:
> > Hi there!
> >
> > Here is my list of Tapestry5 suggestions:
> >
> >
> > Tapestry5 Suggestions:
> >
> > 1. User .tpl instead of .tml. This way there is also no problem with
> syntax highlighting in most editors.
> >
> >
> > 2.  Make those templates compatible with SSI templates.
> >
> > This is because most HTMLers will slice PSD files to SSI templates.
> > This way, they could directly be used in a Tapestry project
> >
> > 3. Make the Layout component the default component that is always used if
> not otherwise specified.
> > This saves 2 lines of code in all page templates.
> >
> > 4.  Allow the use of templates without having to have a corresponding
> Java class for it.
> >
> >  Otherwise you  to generate tons of "stupid" empty Java classes.
> >
> >
> >
> > What do you think?
> >
> > Thanks!
> >
> > Toby
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> http://thegodcode.net
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Atenciosamente,

Marcelo Lotif
Programador Java e Tapestry
FIEC - Federação das Indústrias do Estado do Ceará
(85) 3477-5910


tapestry5.16-SNAPSHOT error with forms and zones on firefox....

2008-10-02 Thread Tom Zurkan
I am calling form.onsubmit through javascript.  I am having problems 
with forms and zones on firefox 2.  I get "event has no properties" in 
prototype.js(line 3801).  The thing is, it works on IE 7 with no 
javascript errors.  Anyone else aware of this problem?  This also worked 
on tapestry5.11.  When I took the javascript out and use a submit button 
it bypasses Ajax all together.


Thanks,

Tom

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



Re: My Tapestry5 suggestion list

2008-10-02 Thread Alex Kotchnev
A big +1 on URL rewriting that supports i18n. As a matter of fact the teensy 
app that I'm writing in T5 is not primarily for the US market and now my 
choices are not appealing at all: 1. Use english class names for pages and hope 
that non-english speaking customers are OK with that 2. Use the non-english 
page names so that they're OK for the primary market and try to deal w/ english 
speaking customers somehow ( e.g make a different set of pages w/ the same 
functionality but different names, good luck if I have to ask someone else to 
support the app down the line). 3. Do some crazy hacking (e.g some filter or 
something) that will allow mw to mount the pages to meaningful URLs. The fact 
that the page/class names end up being in the URL with no easy way to change is 
where the wonderful T5 i18n support loses MUCH of its appeal.

Alex Kotchnev

- original message -
Subject:Re: My Tapestry5 suggestion list
From:   Chris Lewis <[EMAIL PROTECTED]>
Date:   10/02/2008 21:43

Good point.

Markus Joschko wrote:
> Talking about configurable URLs: Don't forget i18n issues.
> We once had a product where customers wanted to have the URL
> internationalized to be meaningful in different countries.
> This requirement is not uncommon in Europa at least.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>   

-- 
http://thegodcode.net


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



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



Ajax Response in IE with HTML Entities (4.1.6)

2008-10-02 Thread lt

In rendering a response from an async request, my html comes back valid.  All
browsers work but IE.  I have narrowed it down to special characters such as
®.  Without those IE works.  With characters like that, the component
doesn't update.  There has to be a fix for this.  My page has a valid dtd.
(transitional)

Pleas let me know what I can do to fix this.

Thanks.
L


-- 
View this message in context: 
http://www.nabble.com/Ajax-Response-in-IE-with-HTML-Entities-%284.1.6%29-tp19788294p19788294.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: My Tapestry5 suggestion list

2008-10-02 Thread Chris Lewis
Good point.

Markus Joschko wrote:
> Talking about configurable URLs: Don't forget i18n issues.
> We once had a product where customers wanted to have the URL
> internationalized to be meaningful in different countries.
> This requirement is not uncommon in Europa at least.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>   

-- 
http://thegodcode.net


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



Re: My Tapestry5 suggestion list

2008-10-02 Thread Markus Joschko
Talking about configurable URLs: Don't forget i18n issues.
We once had a product where customers wanted to have the URL
internationalized to be meaningful in different countries.
This requirement is not uncommon in Europa at least.

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



T4: Deploy Tapestry in dmServer

2008-10-02 Thread craigham

Hi,

Has anyone successfully deployed a Tapestry application within the Spring
osgi server?

I found a bundle for 4.1.5. that Jesse had provided, however, I cannot seem
to get even a hello world application to work.

Not sure what the web.xml should look like, and I get a strange error with
the hivemodule.xml file being loaded twice.

Any suggestions would be greatly appreciated.

craig


-- 
View this message in context: 
http://www.nabble.com/T4%3A-Deploy-Tapestry-in-dmServer-tp19787958p19787958.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: My Tapestry5 suggestion list

2008-10-02 Thread Chris Lewis
Hello,

The only one of these that I'm interested in is the ability to have
class-less components (just markup, no logic). I filed an issue for this
many months ago, and am no longer certain where in the mix it is. I'll
add one:

Configurable URL-mapping service.

I loathe - /loathe/ the fact that I have no control over the URL
structure, and that it directly reflects the page class structure of the
applications. There are simply cases where I want to have some kind of
routing/rewriting feature, not to mention that management will at times
demand control over such a thing.

Tobias Marx wrote:
> Hi there!
>
> Here is my list of Tapestry5 suggestions:
>
>
> Tapestry5 Suggestions:
>
> 1. User .tpl instead of .tml. This way there is also no problem with syntax 
> highlighting in most editors.
>
>
> 2.  Make those templates compatible with SSI templates. 
>  
> This is because most HTMLers will slice PSD files to SSI templates.
> This way, they could directly be used in a Tapestry project
>
> 3. Make the Layout component the default component that is always used if not 
> otherwise specified.
> This saves 2 lines of code in all page templates.
>
> 4.  Allow the use of templates without having to have a corresponding Java 
> class for it. 
>
>  Otherwise you  to generate tons of "stupid" empty Java classes.
>
>
>
> What do you think?
>
> Thanks!
>
> Toby
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>   

-- 
http://thegodcode.net


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



Re: My Tapestry5 suggestion list

2008-10-02 Thread Alex Kotchnev
Who would have thought this much discussion would come out of this :-)
Anyway, some more comments from me :

On Thu, Oct 2, 2008 at 1:51 PM, Thiago H. de Paula Figueiredo <
[EMAIL PROTECTED]> wrote:

> Em Thu, 02 Oct 2008 13:10:23 -0300, Alex Kotchnev <[EMAIL PROTECTED]>
> escreveu:
>
>  5.  resolving template/component class names:
>>
>> This one seems interesting, certainly some variation in the allowed naming
>> conventions seems nice if it's configurable (e.g. a naming strategy)
>>
>
> I don't know whether I agree, even if that's pluggable (something like an
> alias override). Tapestry 5 has gone in the path of defining some standards
> that must be followed and I think of it as a plus. I really love the 1:1:1
> URL-page-template relationship in Tapestry 5. It makes it very simple and
> straightforward to find anything related to a page.


I would think (having seen the other small interfaces that are in T5)
that there already is a service that performs some of this (e.g. the part
that shortens the URLs) strategy of mapping class names to page names to
URLs. Thus, it might be just an issue of documenting what needs to be
overriden and implemented if I wanted to have the FooBar.class map to
foo-bar.html instead of FooBar.html


>
>  > 3. Make the Layout component the default component that is always used
>>> if
>>> > not otherwise specified.
>>> > This saves 2 lines of code in all page templates.
>>>
>>
>>  A step further : it would be nice if a page could specify either in the
>> template or in the java class which border component to use. Grails for
>> example uses Sitemesh layouts, and each rendered page (gsp) can specify
>> the layout to use .
>>
>
> I disagree.
>
> You can accomplish the same using a Layout component with n t:blocks, one
> for each "theme". This Layout would have a non-required parameter specifying
> what theme to use.
>
> I really like the idea that templating (in the Layout component sense) in
> Tapestry 5 is made through an ordinary component, no through some one more
> special mechanism that must be learned.


   I am not advocating the usage of some "other" magical framework to manage
the layouts. My point is this : how many applications do you have that DO
NOT use a common layout ? To take it even further, how many application did
you create where creating the layout component (even a basic one) was not
one of the first thing you did in the prototype ? I think that the fact that
I often start w/ some kind of layout, and in the end *always* end up using a
layout, makes it very hard to explain why T5 doesn't have a layout component
in the framework core (instead of letting it sit on the wiki).

Daniel Jue mentions that having a default layout would be an extra caveat
for newcomers and  I have to disagree with that very strongly : I think that
not having some kind of layout support is an extra (and unnecessary) hurdle
that a newcomer has to clear, and instead of being an extra caveat providing
a default layout implementation would be a sensible default (yeah, all that,
opinionated software, convention over configuration, etc)

I do agree with the statement that it is nice that the layout in Tapestry is
just another component, and there is no "other" magical framework to learn
(although if there was, considering how much magic already happens in T5,
one more spell wouldn't break the camel's back). It seems like the Layout
component on the wiki that can set the title on the page, a map of key/value
pairs that the client page can set for the usage by the layout, and the
ability contribute some blocks from the page to the outside layout would be
very valuable.

Now, whenever you have to create a complex layout (like the one you
described, with a bunch of themes and such), then you'll definitely have to
create your own, but at least it wouldn't be the first thing you have to do
when you start working w/ T5 . People often talk about the steep learning
curve w/ Tapestry, and I feel that this is one of the things that
contributes to it.



>
>  > 4.  Allow the use of templates without having to have a corresponding
>>> Java
>>> > class for it.
>>>
>>
>>  This would certainly be nice, as on a small project that I do (that for
>> now only has little functionality) I already have a whole bunch of dumb java
>> classes.
>>
>
> Tapestry 4 (and maybe previous versions too, but I haven't used them) were
> exactly like you're asking, but Howard dropped them in Tapestry 5 in order
> to simplify things, not having two different paths to reach the same goal.
> Of course, he can speak way better to me why he had done that. :)


   I fail to see how having 2 artifacts (an empty class and html) is simpler
than having just one, especially when the java class is just an empty class.
In the little project that I do, I do have a bunch of pages that are
composed of mostly static text, but for which I like being able to apply the
same layout as all the other pages.

Cheers,

Alex Kotchnev


T4: Tapestry.onsubmit does not block form submission.

2008-10-02 Thread leonelag

Hi all,

I'm using T4.0.2.

I'm trying to validate a field via Javascript before submitting it. So far,
I've included this snippet of code in my script file, that I'm including
with a @Script component. Code:


 function doSomething() { ... }
 function validateUsername() {
 var field = document.getElementById('username');
 if (field.value == '') {
 alert('Please inform your user name');
 field.focus();
 return false;
 }
 return true;
 }


Tapestry.onsubmit('form1', function() { doSomething(); return
validateUsername(); })


You get the idea: the validate function returns false to stop the form from
begin submitted.
However, I find that it is being submitted anyway, despite the returned
value.

The two functions are invoked correctly, as I can see on screen the effects
of doSomething(), and the alert message pops up correctly.

Any ideas ?

Also, is there any reference describing this Tapestry object, invoked in
Javascript ?

Thanks a lot
Leonel


-- 
View this message in context: 
http://n2.nabble.com/T4%3A-Tapestry.onsubmit-does-not-block-form-submission.-tp1134914p1134914.html
Sent from the Tapestry Users mailing list archive at Nabble.com.


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



Re: My Tapestry5 suggestion list

2008-10-02 Thread Daniel Jue
On Wed, Oct 1, 2008 at 4:38 AM, Tobias Marx <[EMAIL PROTECTED]> wrote:

> Hi there!
>
> Here is my list of Tapestry5 suggestions:
>
>
> Tapestry5 Suggestions:
>
> 1. User .tpl instead of .tml. This way there is also no problem with syntax
> highlighting in most editors.
>

We already voted a while back to change the templates from .html to .tml, so
there would be no conflicts with other file extensions, and you can
associate the editor for Tapestry templates vs static html.  I think there
was another, more professional sounding reason, but that's the one that
mattered to me.  It's up to you to make the file associations work in your
IDE, I see no reason to change it again unless you are Rob Smeets. ;-)

2.  Make those templates compatible with SSI templates.
>
>This is because most HTMLers will slice PSD files to SSI templates.
>This way, they could directly be used in a Tapestry project


If the SSI code that is generated is valid XML, it may make it easy to wrap
with a T5 dtd and call it done.  It seems that T5 goes above and beyond what
SSI can do. You would want to change all absolute or relative links to media
in the SSI code to use a T5 calculated path to the Asset (done by Injecting
the asset in the page/component class).  You could make it work with the
links as is, it will just be fragile like a 1990's web page.  Note that any
repeated use of the SSI (which is it's strength) is handled by making that
collection of items a component, which can then be added to any page.

If enough people use it, it may meet HLS's requirement of "Developers
First".


>
>
> 3. Make the Layout component the default component that is always used if
> not otherwise specified.
>This saves 2 lines of code in all page templates.


IMHO, It doesn't save any lines, and just makes more majic for little
benefit.  The line that lists your DTD can be used to include your layout or
border, and I have multiple border type components for different sets of
pages.  Having one default is just an extra caveat for newcomers.


>
>
> 4.  Allow the use of templates without having to have a corresponding Java
> class for it.
> Otherwise you  to generate tons of "stupid" empty Java classes.


This might be useful, say if you have a bunch of help pages or static text.
The converse is true--Java classes don't need a corresponding tml in order
to be useful.  If the Loom plugin could be modified to auto create the dummy
class for you, then that would help speed things up.  One caveat is that
html files don't have the naming restrictions that Java classes do.  For now
I'm happy having the 1kB .class files.  I usually end up injecting images or
css anyway.


>
>
>
>
> What do you think?
>
> Thanks!
>
> Toby
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: My Tapestry5 suggestion list

2008-10-02 Thread Thiago H. de Paula Figueiredo
Em Thu, 02 Oct 2008 13:10:23 -0300, Alex Kotchnev <[EMAIL PROTECTED]>  
escreveu:



5.  resolving template/component class names:

This one seems interesting, certainly some variation in the allowed  
naming

conventions seems nice if it's configurable (e.g. a naming strategy)


I don't know whether I agree, even if that's pluggable (something like an  
alias override). Tapestry 5 has gone in the path of defining some  
standards that must be followed and I think of it as a plus. I really love  
the 1:1:1 URL-page-template relationship in Tapestry 5. It makes it very  
simple and straightforward to find anything related to a page.



> 1. User .tpl instead of .tml. This way there is also no problem with
> syntax highlighting in most editors.



   This one seems quite arbitrary, .tml seems just as tood as .tpl, which
"most editors" are you talking about ?


I see no reason for changes.

> 3. Make the Layout component the default component that is always  
used if

> not otherwise specified.
> This saves 2 lines of code in all page templates.


  A step further : it would be nice if a page could specify either in the
template or in the java class which border component to use. Grails for
example uses Sitemesh layouts, and each rendered page (gsp) can specify  
the layout to use .


I disagree.

You can accomplish the same using a Layout component with n t:blocks, one  
for each "theme". This Layout would have a non-required parameter  
specifying what theme to use.


I really like the idea that templating (in the Layout component sense) in  
Tapestry 5 is made through an ordinary component, no through some one more  
special mechanism that must be learned.



> 4.  Allow the use of templates without having to have a corresponding
Java
> class for it.


 This would certainly be nice, as on a small project that I do (that for  
now only has little functionality) I already have a whole bunch of dumb  
java

classes.


Tapestry 4 (and maybe previous versions too, but I haven't used them) were  
exactly like you're asking, but Howard dropped them in Tapestry 5 in order  
to simplify things, not having two different paths to reach the same goal.  
Of course, he can speak way better to me why he had done that. :)


--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
Consultor, desenvolvedor e instrutor em Java
http://www.arsmachina.com.br/thiago

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



RE: template dynamics

2008-10-02 Thread Jonathan Barker
Luther,

My practice is a carry-over from T4.  It could use some streamlining.

I have a Menu component class with 

public String getPageName(){
return _resources.getPageName();
}

And then in my Menu.tml, I use the ognl binding available from the
t5components library, and also the ifRole component from the tapestry5-acegi
security library:




Home
Tools

Logout


Password
Change





Administration


ItemListTypeList


ItemListTypeEdit




 

Jonathan

> -Original Message-
> From: Luther Baker [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 02, 2008 12:51
> To: Tapestry users
> Subject: Re: template dynamics
> 
> Sorry.
> 
> My point was to ask for suggestions. My tapestry development is in
> somewhat
> of a Vacuum so looking for some hints for this end goal. This process is a
> bit point blank... maybe there is a better method to use on the java class
> that is a part of the lifecycle of the component. As mentioned earlier,
> I'm
> going to look into  
> One final question: I've got a fairly standard set of top level menu
> links.
> I am dumping the href and label text into the messages file. At the very
> least, I think I need to put the labels there - but it strikes me that
> there
> may be a better way to reference the hrefs a bit more dynamically.
> 
> Anyone have any thoughts on this? So, in my layout or HtmlShell.tml file I
> do this:
> 
>  http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> http://www.w3.org/1999/xhtml"; xmlns:t="
> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
> ...
> 
> 
>  targetAnchorHref="${message:viewNotes-anchorHref}">${message:viewNotes-
> anchorLabel}
>  targetAnchorHref="${message:addNote-anchorHref}">${message:addNote-
> anchorLabel}
>  targetAnchorHref="${message:home-anchorHref}">${message:home-
> anchorLabel}
> 
> ...
> 
> 
> I wonder if there is a better way to find the targetAnchorHref. As noted
> previously, this approach forces my basic pages to tell me who they are
> when
> they include the layout component. Notice the "currentAnchorHref" passed
> in
> here..
> 
>  currentHeadTitle="${message:self-headTitle}"
> currentBodyTitle="${message:self-bodyTitle}" xmlns:t="
> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";
> xml:space="preserve">
> 
> 
> Again, any thoughts or suggestions are much appreciated.
> 
> -Luther
> 
> 
> 
> 
> On Thu, Oct 2, 2008 at 11:35 AM, Luther Baker <[EMAIL PROTECTED]>
> wrote:
> 
> > I wrote a small custom menu component that includes or doesn't include
> an
> > anchor href based on the href of the current page.
> >
> > I wonder if the block approach suggested here would be cleaner? I use
> the
> > following idiom:
> >
> > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
> > 
> > 
> > 
> > 
> > 
> >
> > to render this pseudo-dynamically (notice that 'about' has no anchor
> tag):
> >
> > 
> >   home
> >   contact
> > *  about
> > *
> >
> >
> > The JAVA:
> >
> > public class CondLink
> > {
> > @Property
> > @Parameter(required=true, defaultPrefix="literal")
> > private String currentAnchorHref;
> >
> > @Property
> > @Parameter(required=true, defaultPrefix="literal")
> > private String targetAnchorHref;
> >
> > public boolean isDifferent()
> > {
> > return this.currentAnchorHref.equals(this.targetAnchorHref);
> > }
> > }
> >
> >
> > The ConditionalLink.tml:
> >
> > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
> > 
> > 
> > 
> > 
> > 
> >
> >
> > The LAYOUT - HtmlShell.tml:
> >
> >  > http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> > http://www.w3.org/1999/xhtml"; xmlns:t="
> > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
> > ...
> > 
> > 
> >  > targetAnchorHref="${message:viewNotes-anchorHref}">${message:viewNotes-
> anchorLabel}
> >  > targetAnchorHref="${message:addNote-anchorHref}">${message:addNote-
> anchorLabel}
> >  > targetAnchorHref="${message:home-anchorHref}">${message:home-
> anchorLabel}
> > 
> > ...
> > 
> >
> >
> > The PAGE: index.tml
> >
> >  > currentHeadTitle="${message:self-headTitle}"
> > currentBodyTitle="${message:self

Re: My Tapestry5 suggestion list

2008-10-02 Thread Filip S. Adamsen

Hi,

On 2008-10-02 18:10, Alex Kotchnev wrote:

4.  Allow the use of templates without having to have a corresponding

Java

class for it.


 This would certainly be nice, as on a small project that I do (that for now
only has little functionality) I already have a whole bunch of dumb java
classes.

 I'll file feature requests for these in a couple of days if there are no
objections from the list members.


I believe there's already an issue for this.

-Filip

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



Re: template dynamics

2008-10-02 Thread Luther Baker
Sorry.

My point was to ask for suggestions. My tapestry development is in somewhat
of a Vacuum so looking for some hints for this end goal. This process is a
bit point blank... maybe there is a better method to use on the java class
that is a part of the lifecycle of the component. As mentioned earlier, I'm
going to look into http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
http://www.w3.org/1999/xhtml"; xmlns:t="
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
...


${message:viewNotes-anchorLabel}
${message:addNote-anchorLabel}
${message:home-anchorLabel}

...


I wonder if there is a better way to find the targetAnchorHref. As noted
previously, this approach forces my basic pages to tell me who they are when
they include the layout component. Notice the "currentAnchorHref" passed in
here..

http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"; xml:space="preserve">


Again, any thoughts or suggestions are much appreciated.

-Luther




On Thu, Oct 2, 2008 at 11:35 AM, Luther Baker <[EMAIL PROTECTED]> wrote:

> I wrote a small custom menu component that includes or doesn't include an
> anchor href based on the href of the current page.
>
> I wonder if the block approach suggested here would be cleaner? I use the
> following idiom:
>
> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
> 
> 
> 
> 
> 
>
> to render this pseudo-dynamically (notice that 'about' has no anchor tag):
>
> 
>   home
>   contact
> *  about
> *
>
>
> The JAVA:
>
> public class CondLink
> {
> @Property
> @Parameter(required=true, defaultPrefix="literal")
> private String currentAnchorHref;
>
> @Property
> @Parameter(required=true, defaultPrefix="literal")
> private String targetAnchorHref;
>
> public boolean isDifferent()
> {
> return this.currentAnchorHref.equals(this.targetAnchorHref);
> }
> }
>
>
> The ConditionalLink.tml:
>
> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
> 
> 
> 
> 
> 
>
>
> The LAYOUT - HtmlShell.tml:
>
>  http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> http://www.w3.org/1999/xhtml"; xmlns:t="
> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
> ...
> 
> 
>  targetAnchorHref="${message:viewNotes-anchorHref}">${message:viewNotes-anchorLabel}
>  targetAnchorHref="${message:addNote-anchorHref}">${message:addNote-anchorLabel}
>  targetAnchorHref="${message:home-anchorHref}">${message:home-anchorLabel}
> 
> ...
> 
>
>
> The PAGE: index.tml
>
>  currentHeadTitle="${message:self-headTitle}"
> currentBodyTitle="${message:self-bodyTitle}" xmlns:t="
> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";
> xml:space="preserve">
> 
> page="${message:add-anchorHref}">${message:add-anchorLabel}
>
> page="${message:view-anchorHref}">${message:view-anchorLabel}
> 
> 
>
>
>
> On Thu, Oct 2, 2008 at 9:19 AM, Ulrich Stärk <[EMAIL PROTECTED]> wrote:
>
>> That's a really nice solution. Have to keep that in mind.
>>
>> Uli
>>
>> Am Do, 2.10.2008, 15:49, schrieb Filip S. Adamsen:
>> > Hi,
>> >
>> > Define Blocks containing the different states you need and use a
>> > Delegate to render the block you need based on an expression. This way
>> > you can do the whole if-then-else/switch stuff in your page class.
>> >
>> > Template:
>> >
>> >...
>> >...
>> >
>> >
>> >
>> > Class:
>> >
>> >@Inject
>> >private ComponentResources resources;
>> >
>> >public Block getActiveBlock() {
>> >  String blockId = ...;
>> >  return resources.getBlock(blockId);
>> >}
>> >
>> > It's also possible to have the blocks on another page, in that case you
>> > can get the page through ComponentSource#getPage, get its
>> > ComponentResources, and go from there.
>> >
>> > http://tapestry.apache.org/tapestry5/guide/templates.html (see )
>> >
>> http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/Block.html
>> >
>> http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Delegate.html
>> >
>> http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/ComponentResourcesCommon.html#getBlock(java.lang.String)
>> >
>> http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/services/ComponentSource.html#getPage(java.lang.Class)
>> >
>> > -Filip
>> >
>> > On 2008-10-02 14:39, János Jarecsni wrote:
>> >> Hi Uli,
>> >>
>> >> thanks, I did not know about these. However, what if I have to switch
>> >> between more states? If seems to be awkward in that case (if embedding
>> >> is
>> >> possible at all).
>> >>

Re: template dynamics

2008-10-02 Thread Luther Baker
I wrote a small custom menu component that includes or doesn't include an
anchor href based on the href of the current page.

I wonder if the block approach suggested here would be cleaner? I use the
following idiom:

http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>






to render this pseudo-dynamically (notice that 'about' has no anchor tag):


  home
  contact
*  about
*


The JAVA:

public class CondLink
{
@Property
@Parameter(required=true, defaultPrefix="literal")
private String currentAnchorHref;

@Property
@Parameter(required=true, defaultPrefix="literal")
private String targetAnchorHref;

public boolean isDifferent()
{
return this.currentAnchorHref.equals(this.targetAnchorHref);
}
}


The ConditionalLink.tml:

http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>







The LAYOUT - HtmlShell.tml:

http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
http://www.w3.org/1999/xhtml"; xmlns:t="
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
...


${message:viewNotes-anchorLabel}
${message:addNote-anchorLabel}
${message:home-anchorLabel}

...



The PAGE: index.tml

http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"; xml:space="preserve">

   ${message:add-anchorLabel}

   ${message:view-anchorLabel}




On Thu, Oct 2, 2008 at 9:19 AM, Ulrich Stärk <[EMAIL PROTECTED]> wrote:

> That's a really nice solution. Have to keep that in mind.
>
> Uli
>
> Am Do, 2.10.2008, 15:49, schrieb Filip S. Adamsen:
> > Hi,
> >
> > Define Blocks containing the different states you need and use a
> > Delegate to render the block you need based on an expression. This way
> > you can do the whole if-then-else/switch stuff in your page class.
> >
> > Template:
> >
> >...
> >...
> >
> >
> >
> > Class:
> >
> >@Inject
> >private ComponentResources resources;
> >
> >public Block getActiveBlock() {
> >  String blockId = ...;
> >  return resources.getBlock(blockId);
> >}
> >
> > It's also possible to have the blocks on another page, in that case you
> > can get the page through ComponentSource#getPage, get its
> > ComponentResources, and go from there.
> >
> > http://tapestry.apache.org/tapestry5/guide/templates.html (see )
> >
> http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/Block.html
> >
> http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Delegate.html
> >
> http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/ComponentResourcesCommon.html#getBlock(java.lang.String)
> >
> http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/services/ComponentSource.html#getPage(java.lang.Class)
> >
> > -Filip
> >
> > On 2008-10-02 14:39, János Jarecsni wrote:
> >> Hi Uli,
> >>
> >> thanks, I did not know about these. However, what if I have to switch
> >> between more states? If seems to be awkward in that case (if embedding
> >> is
> >> possible at all).
> >>
> >> Thanks
> >> Janos
> >>
> >> 2008/10/1 Ulrich Stärk <[EMAIL PROTECTED]>
> >>
> >>> Have a look at the If
> >>> (
> >>>
> http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/If.html
> >>> )
> >>> and Zone
> >>> (
> >>>
> http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Zone.html
> >>> )
> >>> components.
> >>>
> >>> Uli
> >>>
> >>> Am Mi, 1.10.2008, 17:06, schrieb János Jarecsni:
>  Hi guys,
> 
>  is there a way to change the template (piece of the template) which
>  gets
>  generated, depending on state? Here is what I mean:
>  Given a component C, its C.tml looks like the following:
> 
>  blabla...
> 
>  //if (loggedIn)
>  Logged in
>  //else
>  Not Logged in
> 
>  
> 
>  Of course I know this concrete problem can be solved using expansion.
>  But
>  I'm now after replacing large chunks of the template depending on
>  state.
>  It
>  is easy to do so in a JSP page for example.
> 
>  Thanks in advance,
>  janos
> 
> >>>
> >>>
> >>> -
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: My Tapestry5 suggestion list

2008-10-02 Thread Alex Kotchnev
5.  resolving template/component class names:


This one seems interesting, certainly some variation in the allowed naming
conventions seems nice if it's configurable (e.g. a naming strategy)


>
> > 1. User .tpl instead of .tml. This way there is also no problem with
> > syntax highlighting in most editors.
>

   This one seems quite arbitrary, .tml seems just as tood as .tpl, which
"most editors" are you talking about ?



> > 2.  Make those templates compatible with SSI templates.
> >
> > This is because most HTMLers will slice PSD files to SSI templates.
> > This way, they could directly be used in a Tapestry project
> >
>

  Can you give an example of how a template might be "compatible" with an
SSI template ?


>
> > 3. Make the Layout component the default component that is always used if
> > not otherwise specified.
> > This saves 2 lines of code in all page templates.
>

  A step further : it would be nice if a page could specify either in the
template or in the java class which border component to use. Grails for
example uses Sitemesh layouts, and each rendered page (gsp) can specify the
layout to use .


>
> >
> > 4.  Allow the use of templates without having to have a corresponding
> Java
> > class for it.
>

 This would certainly be nice, as on a small project that I do (that for now
only has little functionality) I already have a whole bunch of dumb java
classes.

 I'll file feature requests for these in a couple of days if there are no
objections from the list members.

Cheers,

Alex Kotchnev


Re: problem beaneditform and external ejb3

2008-10-02 Thread Thiago H. de Paula Figueiredo
Em Thu, 02 Oct 2008 05:39:12 -0300, mdes <[EMAIL PROTECTED]>  
escreveu:



The problem with the beaneditform is that I want Tapestry to create an
"empty" instance of my entity bean, but at the moment he can't understand
what type he has to use (in this case, Operator).


Maybe the problem is exactly how BeanEditForm instantiates your entity.  
One option is to instatiate it yourself in a method that handles the  
Prepare event. That method would check if your entity is null then  
instatiate your object directly. The other one I'm trying to find in this  
mailing list archives . . .


--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
Consultor, desenvolvedor e instrutor em Java
http://www.arsmachina.com.br/thiago

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



RE: problem beaneditform and external ejb3

2008-10-02 Thread Jonathan Barker

This is one of those cases where the source would help.

Re-reading your error message, it sounds like you are missing
t:type="beaneditform" from your template.  This doesn't have anything to do
with your entity (yet).


> -Original Message-
> From: mdes [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 02, 2008 04:39
> To: users@tapestry.apache.org
> Subject: Re: problem beaneditform and external ejb3
> 
> 
> @Thiango: I use the ejb3 business logic as a stand alone project (I mean,
> another folder in the workspace), separeted by the Tapestry one. I deploy
> it
> indipendently in JBoss and than a war for the Tapestry project.
> 
> @Geoff: thanks for the jumpstart examples, but I already read them, but my
> problem is a bit different.
> 
> Let me explain:
> I can use entity beans without any problem with the grid component and
> other
> components that can obtain a specific instance of the object.
> In particular, I call a page with a PageLink and I do something like
> dao.findOperator(username) in the onActivate() method, and the grid (for
> example) works perfectly.
> 
> The problem with the beaneditform is that I want Tapestry to create an
> "empty" instance of my entity bean, but at the moment he can't understand
> what type he has to use (in this case, Operator).
> 
> 
> Geoff Callender-2 wrote:
> >
> > Does this example help?
> > http://202.177.217.122:8080/jumpstart/examples/input/edit1/1
> >
> > Cheers,
> >
> > Geoff
> >
> > On 02/10/2008, at 8:00 AM, Thiago H. de Paula Figueiredo wrote:
> >
> >> Em Wed, 01 Oct 2008 18:47:37 -0300, mdes <[EMAIL PROTECTED]>
> >> escreveu:
> >>
> >>> Hello everybody,
> >>> I'm new to Tapestry 5 and I need help to solve a problem.
> >>>
> >>> I defined an entity bean "Operator" in my ejb3 project, and I want
> >>> it to be the object of a beaneditform in a Tapestry 5 project.
> >>
> >> One common error for newbies is to put entity beans in packages
> >> controlled by Tapestry: pages, components, mixins, base. Maybe it is
> >> your error. Check this in your project.
> >>
> >> Thiago
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> 
> --
> View this message in context: http://www.nabble.com/problem-beaneditform-
> and-external-ejb3-tp19769807p19775400.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



Re: template dynamics

2008-10-02 Thread Ulrich Stärk
That's a really nice solution. Have to keep that in mind.

Uli

Am Do, 2.10.2008, 15:49, schrieb Filip S. Adamsen:
> Hi,
>
> Define Blocks containing the different states you need and use a
> Delegate to render the block you need based on an expression. This way
> you can do the whole if-then-else/switch stuff in your page class.
>
> Template:
>
>...
>...
>
>
>
> Class:
>
>@Inject
>private ComponentResources resources;
>
>public Block getActiveBlock() {
>  String blockId = ...;
>  return resources.getBlock(blockId);
>}
>
> It's also possible to have the blocks on another page, in that case you
> can get the page through ComponentSource#getPage, get its
> ComponentResources, and go from there.
>
> http://tapestry.apache.org/tapestry5/guide/templates.html (see )
> http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/Block.html
> http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Delegate.html
> http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/ComponentResourcesCommon.html#getBlock(java.lang.String)
> http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/services/ComponentSource.html#getPage(java.lang.Class)
>
> -Filip
>
> On 2008-10-02 14:39, János Jarecsni wrote:
>> Hi Uli,
>>
>> thanks, I did not know about these. However, what if I have to switch
>> between more states? If seems to be awkward in that case (if embedding
>> is
>> possible at all).
>>
>> Thanks
>> Janos
>>
>> 2008/10/1 Ulrich Stärk <[EMAIL PROTECTED]>
>>
>>> Have a look at the If
>>> (
>>> http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/If.html
>>> )
>>> and Zone
>>> (
>>> http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Zone.html
>>> )
>>> components.
>>>
>>> Uli
>>>
>>> Am Mi, 1.10.2008, 17:06, schrieb János Jarecsni:
 Hi guys,

 is there a way to change the template (piece of the template) which
 gets
 generated, depending on state? Here is what I mean:
 Given a component C, its C.tml looks like the following:

 blabla...

 //if (loggedIn)
 Logged in
 //else
 Not Logged in

 

 Of course I know this concrete problem can be solved using expansion.
 But
 I'm now after replacing large chunks of the template depending on
 state.
 It
 is easy to do so in a JSP page for example.

 Thanks in advance,
 janos

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



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



[T5] force a Zone update after page rendering?

2008-10-02 Thread Andy Pahne


I'd like to force a Zone update after page rendering without clicking 
any links or submitting any forms.


I have the Zone ID, but have no idea how to execute the update or how to 
connect the update with a listener (like I would if I used an ActionLink).



Andy










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



Re: Load ClassPathXMLApplicationContext just one time in the app

2008-10-02 Thread Thiago H. de Paula Figueiredo

Take a look at the tapestry-spring project. ;)

Em Thu, 02 Oct 2008 09:08:14 -0300, Daniel_ Alonso Sanchez  
<[EMAIL PROTECTED]> escreveu:


Hi everybody. I'm trying to optimize the loading of the cxf XML context  
of our application (for web services invocation) and so i have been  
reading

all the stuff concerning Binding, because i think that, as happens with
another modules like Hibernate, is there a possibility to load the xml
context just one time in the application, but  I am still a newbie in
tapestry.

The thing is that i have created a subclass of
ClassPathXMLApplicationContext, with a default constructor with a super
call with de client-beans.xml path. Besides, i have created an interface
with all the methods of ClassPathXMLApplicationContext.

After all, i have added this line to the bind method in AppModule.java

binder.bind((Class)IClassPathXMLApplicationContext.class,(Class)MyClassPathXmlApplicationContext.class);

I have put the (Class) casting because if not, compiler cries with
something like this:


The method bind(Class, ServiceBuilder) in the type ServiceBinder is
not applicable for the arguments (Class,
Class)

I deploy the app and everthing goes fine, besides the context loads ok,
but when I try to execute this sentence:

DetalleSolicitud sd06 = (DetalleSolicitud)context.getBean("sd06");

I get a ClassCastException. I have tried with loading the context each
time i need to call a web service, and everthing is ok, so I know the
problem is in my crazy binding.

Am i doing something wrong¿? It's possible to do what I am trying to do?

Thanks in advance for all :D




--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
Consultor, desenvolvedor e instrutor em Java
http://www.arsmachina.com.br/thiago

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



Re: template dynamics

2008-10-02 Thread Filip S. Adamsen

Hi,

Define Blocks containing the different states you need and use a 
Delegate to render the block you need based on an expression. This way 
you can do the whole if-then-else/switch stuff in your page class.


Template:

  ...
  ...

  

Class:

  @Inject
  private ComponentResources resources;

  public Block getActiveBlock() {
String blockId = ...;
return resources.getBlock(blockId);
  }

It's also possible to have the blocks on another page, in that case you 
can get the page through ComponentSource#getPage, get its 
ComponentResources, and go from there.


http://tapestry.apache.org/tapestry5/guide/templates.html (see )
http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/Block.html
http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Delegate.html
http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/ComponentResourcesCommon.html#getBlock(java.lang.String)
http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/services/ComponentSource.html#getPage(java.lang.Class)

-Filip

On 2008-10-02 14:39, János Jarecsni wrote:

Hi Uli,

thanks, I did not know about these. However, what if I have to switch
between more states? If seems to be awkward in that case (if embedding is
possible at all).

Thanks
Janos

2008/10/1 Ulrich Stärk <[EMAIL PROTECTED]>


Have a look at the If
(
http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/If.html
)
and Zone
(
http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Zone.html
)
components.

Uli

Am Mi, 1.10.2008, 17:06, schrieb János Jarecsni:

Hi guys,

is there a way to change the template (piece of the template) which gets
generated, depending on state? Here is what I mean:
Given a component C, its C.tml looks like the following:

blabla...

//if (loggedIn)
Logged in
//else
Not Logged in



Of course I know this concrete problem can be solved using expansion. But
I'm now after replacing large chunks of the template depending on state.
It
is easy to do so in a JSP page for example.

Thanks in advance,
janos




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




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



Re: template dynamics

2008-10-02 Thread Ulrich Stärk
Indeed switching between states is a bit tedious fiddling because Tapestry
won't just let you write something like "foo==bar" in your expressions.
You'll have to do the more complex checks in your page class. Some of the
trivial checks Tapestry can do on its on (see the If component reference
documentation).

Uli

Am Do, 2.10.2008, 14:39, schrieb János Jarecsni:
> Hi Uli,
>
> thanks, I did not know about these. However, what if I have to switch
> between more states? If seems to be awkward in that case (if embedding is
> possible at all).
>
> Thanks
> Janos
>
> 2008/10/1 Ulrich Stärk <[EMAIL PROTECTED]>
>
>> Have a look at the If
>> (
>> http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/If.html
>> )
>> and Zone
>> (
>> http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Zone.html
>> )
>> components.
>>
>> Uli
>>
>> Am Mi, 1.10.2008, 17:06, schrieb János Jarecsni:
>> > Hi guys,
>> >
>> > is there a way to change the template (piece of the template) which
>> gets
>> > generated, depending on state? Here is what I mean:
>> > Given a component C, its C.tml looks like the following:
>> >
>> > blabla...
>> >
>> > //if (loggedIn)
>> > Logged in
>> > //else
>> > Not Logged in
>> >
>> > 
>> >
>> > Of course I know this concrete problem can be solved using expansion.
>> But
>> > I'm now after replacing large chunks of the template depending on
>> state.
>> > It
>> > is easy to do so in a JSP page for example.
>> >
>> > Thanks in advance,
>> > janos
>> >
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>



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



Re: [T5] loading parts of page after initial page load

2008-10-02 Thread Andy Pahne


I tried to implement a solution, inspiured by the source code of the 
Zone component. It works (almost). The problem is that the afterLoad 
block is empty for the dynamic request.


Can anybody see, at a first glance, what I am missing?

Next question would be: how can I force the update after loading? My 
suggestion would be something like

   renderSupport.addInit(" ??? ");


Thanks,
Andy




@SupportsInformalParameters
public class AfterLoadContent {

@Mixin
private DiscardBody discardBody;

@Inject
private Request request;

@Environmental
private RenderSupport renderSupport;

@Environmental
private ClientBehaviorSupport clientBehaviorSupport;

@Inject
private ComponentResources resources;

@Parameter(required=false, allowNull=false, 
defaultPrefix=BindingConstants.LITERAL)

private String id;

@Parameter(required=true, allowNull=false, 
defaultPrefix=BindingConstants.BLOCK)

private Block afterLoad;

@Parameter(required=true, allowNull=false, 
defaultPrefix=BindingConstants.BLOCK)

private Block initial;


public Object beginRender(MarkupWriter writer) {

if(request.isXHR()) {
return afterLoad;
}

if (!resources.isBound("id")) {
id = renderSupport.allocateClientId(resources);
}

Element e = writer.element("div", "id", id);

resources.renderInformalParameters(writer);

e.addClassName("t-zone");


clientBehaviorSupport.addZone(id, "show", "highlight");

return initial;

}



public void afterRender(MarkupWriter writer) {
if(!request.isXHR()) {
writer.end();
}
}




from the template:



   Initial
   AfterLoad



Update Zone










Andy Pahne schrieb:


Hi,

I need to build a page that dynamicly loads parts of itself after the 
initial render in the browser. Those parts are the result of longer 
running computation and can't be included when the page is rendered for 
the first time.



I remember that a third party component that achieves something very 
similar (dynamcly reloading parts, triggered automaticly) already 
exists. But I don't know where I read about it (mailing list, wiki, 
other sources) and cannot find it again.


Does anybody now what component I am talking about or has any pointers 
how I can achieve my goal?


Andy


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



Load ClassPathXMLApplicationContext just one time in the app

2008-10-02 Thread Daniel_ Alonso Sanchez
Hi everybody. I'm trying to optimize the loading of the cxf XML context of 
our application (for web services invocation) and so i have been reading 
all the stuff concerning Binding, because i think that, as happens with 
another modules like Hibernate, is there a possibility to load the xml 
context just one time in the application, but  I am still a newbie in 
tapestry. 

The thing is that i have created a subclass of 
ClassPathXMLApplicationContext, with a default constructor with a super 
call with de client-beans.xml path. Besides, i have created an interface 
with all the methods of ClassPathXMLApplicationContext.

After all, i have added this line to the bind method in AppModule.java

 
binder.bind((Class)IClassPathXMLApplicationContext.class,(Class)MyClassPathXmlApplicationContext.class);

I have put the (Class) casting because if not, compiler cries with 
something like this:


The method bind(Class, ServiceBuilder) in the type ServiceBinder is 
not applicable for the arguments (Class, 
Class) 

I deploy the app and everthing goes fine, besides the context loads ok, 
but when I try to execute this sentence:

DetalleSolicitud sd06 = (DetalleSolicitud)context.getBean("sd06"); 

I get a ClassCastException. I have tried with loading the context each 
time i need to call a web service, and everthing is ok, so I know the 
problem is in my crazy binding.

Am i doing something wrong¿? It's possible to do what I am trying to do?

Thanks in advance for all :D

Re: template dynamics

2008-10-02 Thread János Jarecsni
Hi Uli,

thanks, I did not know about these. However, what if I have to switch
between more states? If seems to be awkward in that case (if embedding is
possible at all).

Thanks
Janos

2008/10/1 Ulrich Stärk <[EMAIL PROTECTED]>

> Have a look at the If
> (
> http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/If.html
> )
> and Zone
> (
> http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Zone.html
> )
> components.
>
> Uli
>
> Am Mi, 1.10.2008, 17:06, schrieb János Jarecsni:
> > Hi guys,
> >
> > is there a way to change the template (piece of the template) which gets
> > generated, depending on state? Here is what I mean:
> > Given a component C, its C.tml looks like the following:
> >
> > blabla...
> >
> > //if (loggedIn)
> > Logged in
> > //else
> > Not Logged in
> >
> > 
> >
> > Of course I know this concrete problem can be solved using expansion. But
> > I'm now after replacing large chunks of the template depending on state.
> > It
> > is easy to do so in a JSP page for example.
> >
> > Thanks in advance,
> > janos
> >
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: problem beaneditform and external ejb3

2008-10-02 Thread Geoff Callender
I was thinking about adding an example of Input (Using BeanEditForm).   
Here's a first cut that I've just tested. It creates a Person.



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


http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>

Input (Using BeanEditForm) (2)

	include="firstName,lastName,startDate" submitLabel="Save"/>


Refresh 
	t:context="person.id" href="#">Return


Home




package jumpstart.web.pages.examples.input;

import jumpstart.business.domain.examples.Person;
import jumpstart.business.domain.examples.iface.IPersonServiceLocal;
import jumpstart.web.commons.ExceptionUtil;
import jumpstart.web.services.IBusinessServicesLocator;

import org.apache.tapestry5.annotations.Component;
import org.apache.tapestry5.annotations.InjectPage;
import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.corelib.components.BeanEditForm;
import org.apache.tapestry5.ioc.annotations.Inject;

public class Input2 {

@Property
private Person _person;

@Inject
private IBusinessServicesLocator _businessServicesLocator;

@Component(id = "person")
private BeanEditForm _form;

@InjectPage
private Input1 _page1;

void setupRender() throws Exception {
_person = new Person();
}

void onValidateForm() {
try {
getPersonService().createPerson(_person);
}
catch (Exception e) {
			// Display the cause. In a real system we would try harder to get a  
user-friendly message.

_form.recordError(ExceptionUtil.getRootCause(e));
}
}

Object onSuccess() {
_page1.set(_person.getId());
return _page1;
}

Object onActionFromRefresh() {
return this;
}

private IPersonServiceLocal getPersonService() {
		// Use our business services locator to get the EJB3 session bean  
called "PersonServiceLocal".

return _businessServicesLocator.getPersonServiceLocal();
}
}



Is that closer to answering your problem?

Cheers,

Geoff


On 02/10/2008, at 6:39 PM, mdes wrote:



@Thiango: I use the ejb3 business logic as a stand alone project (I  
mean,
another folder in the workspace), separeted by the Tapestry one. I  
deploy it

indipendently in JBoss and than a war for the Tapestry project.

@Geoff: thanks for the jumpstart examples, but I already read them,  
but my

problem is a bit different.

Let me explain:
I can use entity beans without any problem with the grid component  
and other

components that can obtain a specific instance of the object.
In particular, I call a page with a PageLink and I do something like
dao.findOperator(username) in the onActivate() method, and the grid  
(for

example) works perfectly.

The problem with the beaneditform is that I want Tapestry to create an
"empty" instance of my entity bean, but at the moment he can't  
understand

what type he has to use (in this case, Operator).


Geoff Callender-2 wrote:


Does this example help?
http://202.177.217.122:8080/jumpstart/examples/input/edit1/1

Cheers,

Geoff

On 02/10/2008, at 8:00 AM, Thiago H. de Paula Figueiredo wrote:


Em Wed, 01 Oct 2008 18:47:37 -0300, mdes <[EMAIL PROTECTED]>
escreveu:


Hello everybody,
I'm new to Tapestry 5 and I need help to solve a problem.

I defined an entity bean "Operator" in my ejb3 project, and I want
it to be the object of a beaneditform in a Tapestry 5 project.


One common error for newbies is to put entity beans in packages
controlled by Tapestry: pages, components, mixins, base. Maybe it is
your error. Check this in your project.

Thiago

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




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





--
View this message in context: 
http://www.nabble.com/problem-beaneditform-and-external-ejb3-tp19769807p19775400.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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





Tap 4.1 How to obtain page contain as string ?

2008-10-02 Thread Andrei Stroescu

Hello,
I need to transform content of a component or page into string. I need 
this to send contain of the page to email.

Thank you !


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



Re: Weird T5 error page versus component templates

2008-10-02 Thread superoverdrive
Sorry, my mistake:

http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>

was missing around the component template ;-)

 Original-Nachricht 
> Datum: Thu, 02 Oct 2008 11:57:39 +0200
> Von: [EMAIL PROTECTED]
> An: "Tapestry users" 
> Betreff: Weird T5 error page versus component templates

> When I put the following code into a page template it works, if I put it
> inside of a component template embedded within a page, it comes up with the
> error:
> 
> "The prefix "t" for attribute "t:type" is not bound."
> 
> The code:
> 
>  subject="literal:panel subject"
> style="width: 350px;" closed="false">
> 
> blablablabla
> 
> 
> 
> Any ideas?
> 
> Thanks!
> 
> Toby
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

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



[T5] loading parts of page after initial page load

2008-10-02 Thread Andy Pahne


Hi,

I need to build a page that dynamicly loads parts of itself after the 
initial render in the browser. Those parts are the result of longer 
running computation and can't be included when the page is rendered for 
the first time.



I remember that a third party component that achieves something very 
similar (dynamcly reloading parts, triggered automaticly) already 
exists. But I don't know where I read about it (mailing list, wiki, 
other sources) and cannot find it again.


Does anybody now what component I am talking about or has any pointers 
how I can achieve my goal?


Andy

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



Weird T5 error page versus component templates

2008-10-02 Thread superoverdrive
When I put the following code into a page template it works, if I put it inside 
of a component template embedded within a page, it comes up with the error:

"The prefix "t" for attribute "t:type" is not bound."

The code:



blablablabla



Any ideas?

Thanks!

Toby

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



Re: problem beaneditform and external ejb3

2008-10-02 Thread mdes

@Thiango: I use the ejb3 business logic as a stand alone project (I mean,
another folder in the workspace), separeted by the Tapestry one. I deploy it
indipendently in JBoss and than a war for the Tapestry project. 

@Geoff: thanks for the jumpstart examples, but I already read them, but my
problem is a bit different. 

Let me explain: 
I can use entity beans without any problem with the grid component and other
components that can obtain a specific instance of the object. 
In particular, I call a page with a PageLink and I do something like
dao.findOperator(username) in the onActivate() method, and the grid (for
example) works perfectly. 

The problem with the beaneditform is that I want Tapestry to create an
"empty" instance of my entity bean, but at the moment he can't understand
what type he has to use (in this case, Operator). 


Geoff Callender-2 wrote:
> 
> Does this example help? 
> http://202.177.217.122:8080/jumpstart/examples/input/edit1/1
> 
> Cheers,
> 
> Geoff
> 
> On 02/10/2008, at 8:00 AM, Thiago H. de Paula Figueiredo wrote:
> 
>> Em Wed, 01 Oct 2008 18:47:37 -0300, mdes <[EMAIL PROTECTED]>  
>> escreveu:
>>
>>> Hello everybody,
>>> I'm new to Tapestry 5 and I need help to solve a problem.
>>>
>>> I defined an entity bean "Operator" in my ejb3 project, and I want  
>>> it to be the object of a beaneditform in a Tapestry 5 project.
>>
>> One common error for newbies is to put entity beans in packages  
>> controlled by Tapestry: pages, components, mixins, base. Maybe it is  
>> your error. Check this in your project.
>>
>> Thiago
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/problem-beaneditform-and-external-ejb3-tp19769807p19775400.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: T5 integration with spring webflow

2008-10-02 Thread Francois Armand

Patrick Munis wrote:

Does anyone know if T5 supports spring webflow? If not, is there a
timeline on when to expect this integration.?
  

I believe that subject was already discussed in the ml.
What is rather sure it that today, T5 has no official integration module 
for Spring web flow. I also know that several T5 user had built there 
own flow/conversation management solution, particularly Geoff Callender 
in Jumpstart - and I believe he is looking for come back for that very 
feature.


So, the link to Jumpstart is : 
http://files.doublenegative.com.au/jumpstart/home.html (look for 
wizards) , and perhaps you will have more information if you search in 
the ml archive.


Hope it will help,

--
Francois Armand
Etudes & Développements J2EE
Groupe Linagora - http://www.linagora.com
Tél.: +33 (0)1 58 18 68 28
---
InterLDAP - http://interldap.org 
FederID - http://www.federid.org/

Open Source identities management and federation


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



Re: [ANN] The Ars Machina Project: open-source packages related to Tapestry 5 (and some which aren't)

2008-10-02 Thread Francois Armand

Thiago H. de Paula Figueiredo wrote:

Hi!
I'm very happy to announce the Ars Machina Project: a collection of 
open-source packages, released under the Apache Public License version 2.

[]
Thank you very much for this project Thiago, As a community member, I'm 
really happy to see more and more projects and high-level components 
around Tapestry 5 :)


I would like to invite everyone to a happy hour next Thursday, October 
9th, 6:30PM (GMT-3), at Dona Margherita (address: Avenida Carandaí, 
840, Belo Horizonte, Minas Gerais, Brazil) to talk about the project, 
about other projects, any other subject, and drink and eat something. :)


PS: I know most people in this list lives very far from here, but why 
wouldn't invite my Tapestry folks? :)
Hum. I think that the travel from Paris would be a little too long, but 
I will drink a beer for you and your work ;)


--
Francois Armand
Etudes & Développements J2EE
Groupe Linagora - http://www.linagora.com
Tél.: +33 (0)1 58 18 68 28
---
InterLDAP - http://interldap.org 
FederID - http://www.federid.org/

Open Source identities management and federation


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



RE: [T4.1] Reading values from the app.properties file from a page class

2008-10-02 Thread Craig Spry
Sorry I RTFM and worked it out for myself.

Thanks,
Craig

-Original Message-
From: Craig Spry [mailto:[EMAIL PROTECTED]
Sent: Thursday, 2 October 2008 4:18 PM
To: Tapestry users
Subject: [T4.1] Reading values from the app.properties file from a page class

Hello List,

I want to be able to get to the localized strings stored in the app.properties 
file from my java page class, I've tried to use:
engine.getInfrastructure().getApplicationPropertySource().getPropertyValue("value")

This didn't seem to work.  Is what I'm trying to do achievable?  If so what do 
I do to get this to work.

Thanks,

Craig Spry

If you are not an authorised recipient of this e-mail, please contact me at 
Redflex immediately by return phone call or by email. In this case, you should 
not read, print, retransmit, store or act in reliance on this e-mail or any 
attachments, and should destroy all copies of them. This e-mail and any 
attachments are confidential and may contain privileged information and/or 
copyright material of Redflex or third parties. You should only retransmit, 
distribute or commercialise the material if you are authorised to do so. This 
notice should not be removed.


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


If you are not an authorised recipient of this e-mail, please contact me at 
Redflex immediately by return phone call or by email. In this case, you should 
not read, print, retransmit, store or act in reliance on this e-mail or any 
attachments, and should destroy all copies of them. This e-mail and any 
attachments are confidential and may contain privileged information and/or 
copyright material of Redflex or third parties. You should only retransmit, 
distribute or commercialise the material if you are authorised to do so. This 
notice should not be removed.


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