Hi Josh,
Indeed t:id does work, but apart from the fact that I'm not entirely
sure what T5 does with that value as opposed to the un-namespaced
version (id), it doesn't fully work. The reason is because the Any
component, like many in the core lib, do not explicitly write a DOM id
in the HTML of t
Great, Thanks!
Robert Zeigler schrieb:
You can put the labels in your application's global properties file.
See:
http://tapestry.apache.org/tapestry5/tapestry-core/guide/localization.html
In particular, note the section on the Application Message Catalog:
"Application Message Catalog
If th
Hi,
If you inject ComponentResources in your page you can use that to
generate an action link that you can send to the client. You can then
use this link to trigger the event.
Something like this in your page class:
@Inject
private ComponentResources componentResources;
public String
I am using typestry5 with extjs..
in extjs I can call tayesry method with a tag in *.tml and a
OnEvent describing the methon in page class..
Now, for some reason ,I must remove the in *.tml,but method
still can be called in extjs.
would some warmheart people can give me a answer..
in my
Or contribute your own DataTypeAnalyzer ahead of the
DefaultDataTypeAnalyzer that specifically recognizes the String type
and provides whatever datatype you want. But I suspect Filip's
approach is what you want.
On Thu, Apr 10, 2008 at 2:43 PM, Filip S. Adamsen <[EMAIL PROTECTED]> wrote:
> Hi Pet
Hi Peter,
If you're doing this to provide another property editor for the "text"
data type for use in BeanEditor/BeanEditForm you should take a look at
the BeanBlockOverrideSource which will let you override the defaults
specified in BeanBlockSource.
http://tapestry.apache.org/tapestry5/apid
This has been fixed in 5.0.12 where you can now add the @Inject
annotation to the constructor that Tapestry should use for
auto-instantiating your object.
-Filip
On 2008-04-07 11:09, Natia Gdzelishvili wrote:
I am using beanedit form, i have a simple code
AddCelebrity.tml
AddCelebrity.jav
Hey,
Chris Lewis replied to a similar question today, you can see his reply
at http://article.gmane.org/gmane.comp.java.tapestry.user/60471.
Hope that helps.
-Filip
On 2008-04-09 15:01, MoritzGilsdorf wrote:
Hi,
is there any way of adding custom parameters to the element of a grid
cell? I
Doh! Naturally :)
Bill
On Thu, Apr 10, 2008 at 3:44 PM, Peter Beshai <[EMAIL PROTECTED]>
wrote:
> The way I do it is something like:
>
>
>
>
>
> Where RangeDateEditor is a component you make to handle editing it :-)
>
> Peter Beshai
>
> On Thu, Apr 10, 2008 at 4:29 PM, Bill Holloway <[E
Rob,
We're making headway.
So, you acknowledge that Tapestry is a good framework. Your major complaint
is the lack of backward compatibility between major releases. I don't think
anyone in the community will disagree that this is an annoyance, so it comes
down to whether or not it is accept
Hi,
We saw the big performance boost we got by using ognl 2.7.1 with tapestry.
In our project we use ognl extensively (directly) and we want to improve the
performance by using ognl compilation to get the bytecode enhancement. But
we don’t understand something.
We have to pass a context and roo
The way I do it is something like:
Where RangeDateEditor is a component you make to handle editing it :-)
Peter Beshai
On Thu, Apr 10, 2008 at 4:29 PM, Bill Holloway <[EMAIL PROTECTED]> wrote:
> I've got a custom type called RangeDate that consists of an enum (should
> be
> a select, clie
I've got a custom type called RangeDate that consists of an enum (should be
a select, client-side) and two java.util.Date fields. I'd like to
contribute a property editor block for RangeDate to the bean block source.
So far, all I've seen are examples involving simple one-field edit blocks.
Is it
Doctype support has been in T5 support for some time now.
The simplest thing to do for for situation seems to be to put the
DOCTYPE and html w/ attributes into a "Layout" component that you then
include on your pages.
Or am I missing something?
Robert
On Apr 10, 2008, at 4/1012:07 PM , Jan
You can put the labels in your application's global properties file.
See: http://tapestry.apache.org/tapestry5/tapestry-core/guide/localization.html
In particular, note the section on the Application Message Catalog:
"Application Message Catalog
If the file WEB-INF/AppName.properties exists in t
TapestryModule contributes to the DefaultDataTypeAnalyzer String.class as
"text". Is it possible to override what String.class is mapped to?
http://tapestry.apache.org/tapestry5/tapestry-ioc/configuration.html states
that: "The keys passed in must be unique. When conflicts occur, Tapestry
will log
> One approach is to store this data transiently in an ASO.
http://tapestry.apache.org/tapestry5/tapestry-core/guide/appstate.html
"With an ASO, the value is automatically stored outside the page; with
the default storage strategy, it is stored in the session. "
Unless you've built a different A
Hi,
Using T5.0.11 and each generated HTML should contain:
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
http://www.w3.org/1999/xhtml";>
How can I achieve this?
Thank you,
-J.
-
To unsubscribe, e-mail: [EMAIL PROTECTED
Hey Chris,
t:id="my_div" seems to do what you want. I haven't looked closely at
un-namespaced id works in Tapestry, I've just always used the t:id
variety...
Josh
On Thu, Apr 10, 2008 at 5:36 AM, Chris Lewis <[EMAIL PROTECTED]> wrote:
> Dear list,
>
> I decided to throw together an app detailing
great thanks
Howard Lewis Ship wrote:
If you override the ExceptionReport page, that that's it; your apps'
ExceptionReport overrrides the core library's ExceptionReport.
You should look into overriding the RequestExceptionHandler service;
its job is to decide how to report an uncaught exception
Hey,
I have a Custom 404 page that uses the hibernate session to render part of the
page. If I visit the page explicitly it works fine, but if I set it as the 404
page in web.xml then it throws an exception that the session is closed:
org.hibernate.LazyInitializationException : failed to lazily
If you override the ExceptionReport page, that that's it; your apps'
ExceptionReport overrrides the core library's ExceptionReport.
You should look into overriding the RequestExceptionHandler service;
its job is to decide how to report an uncaught exception. You could
add a product vs. developmen
Would you give up already,
you are not a tapestry user,
tapestry 5 is very well documented, has a great mailing list,
has exhaustive unit tests...
If I don't like some framework, I don't use it and that's it.
Please have some respect to tapestry users and go away already.
Davor Hrg
On Thu, Apr 1
Well, I'm not disputing the fact that Tapestry is a good framework but all
what I'm saying is the fact that at every major release there must be a
whole rewrite from scratch with little or no regard to backward
compatibility seems to me not a tool for prime time, or serious stuffs
besides a Hello w
Hi
I have recently wondered about the same, and have now built something
that after much trial and error now works.
Basically, I have created a Messages implementation that wraps both a
tapestry Messages object and our own database messages. If a message is
not found in our database, the def
Hi Peter,
having read through your post several times now, I think I misunderstood the
point you were referring to. Just to make sure that I did get it right this
time, please take a look at the following exampe:
@ApplicationState
private ShopOrder _order;
Object onActivate {
if(_order.getC
Summary: How do I include additional localization-key/values-pairs in my
global messages-catalog, originating from some app_.properties or from
a database?
Hi,
I'd like to extend the Hash-Table containing the message-keys and
message-values used in my app. The app_en.properties provides the basic
Hi all
I have implemented an exception page, not unlike:
http://wiki.apache.org/tapestry/Tapestry5ExceptionPage , but I haven't
found a way to revert to Tapestry's default exception page. It seems to
be overridden no matter what I try... does anyone know how can I switch
this on and off?
T
Rob,
You may have a point or two.
That what you describe as one of the best Internet applications has beta
status suggests that some beta code is as good as / better that other
production code. I would have to agree. I've had production apps running
on Tapestry alpha code for some time.
The
Not sure what you are trying to do exactly, but it may help to know you
should use the @ApplicationState annotation for ASO's and not @Inject.
You may only use inject if you have created a service and used the
ApplicationStateManager as a service dependency in the construction of
the service.
Hello Nille
I think you are confused here, the check we are referring to is for a
data object within an ASO and not for the ASO.
nille hammer wrote:
Hello Peter, hello Stephane,
according to Tapestry manual
(http://tapestry.apache.org/tapestry5/tapestry-core/guide/appstate.html) the
pref
Dear list,
I decided to throw together an app detailing how JS works with T5 (how
to connect behavior from a component or mixin, the important inner
workings, etc). I created a mixin that attaches behavior (mouse overs)
to an HTML element (and doing this requires the DOM id of that element).
For a
Please ignore him (I personaly have hard time doing so),
he has not yet had any technical comment or question,
he only comes here from time to time to bash on tapestry (reasons unknown).
Davor Hrg
On Thu, Apr 10, 2008 at 2:22 PM, Joachim Van der Auwera <[EMAIL PROTECTED]>
wrote:
> Well Rob, that
Well Rob, that is your personal opinion.
I personally have no problems building applications which require high
reliability on tapestry. It is a very nice framework to build
applications on.
Whether the "beta" or "release" status are important is mostly a
political discussion (some companies
Hi Andreas,
thanks for the reply.The problem was with updateComponents.
I used to give updateComponents as
updateComponents="ognl:adjustmentDialogContent"
(AdjustmentDialogContent is my floatingPaneId).Now i changed it to
updateComponents="ognl:{'components.AdjustmentDialogContent.clientId'}" .
S
Wow, you are right! I'll consider using gmail as the framework for my
next application...
Rob Smeets wrote:
> Guys, stop the exagerations. Gmail, one of the best Internet application
> ever written still has a beta status. Unlike Tapestry, Gmail has had the
> beta status for years and would there
Guys, stop the exagerations. Gmail, one of the best Internet application
ever written still has a beta status. Unlike Tapestry, Gmail has had the
beta status for years and would therefore trust it more than Tapestry which
I personally won't do anything serious with it beyond a little bit more
adva
Hello Peter, hello Stephane,
according to Tapestry manual
(http://tapestry.apache.org/tapestry5/tapestry-core/guide/appstate.html) the
preferred way to check for ASO existence is to provide a boolean variable with
the name of the ASO field suffixed Exists alongside with your ASO-variable
(e.g
Salut Stephane,
in case it does not matter that a particular instance of a Page is returned
(and thanks to @Persist and @ApplicationState this seldomly is), I use to
return the class Object of the page (e.g. MyPage.class) rather than "this". If
I got the manual right, this leaves the decision,
sure, how could I forget.
Thanks!
nille hammer schrieb:
Hello Michael,
there is an application wide properties file which is accessable by every page and
component within your application. It is located in WEB-INF/.properties.
depends on the filter name you have chosen for the tapestry fil
Hi Stephane
One approach is to store this data transiently in an ASO. (This data
object needs to be serializable though, but using soft references works
great). In your getter method be sure to check if its null and if so
reinitialize it)... Inject the ASO in your pages and never worry about
On Thu, Apr 10, 2008 at 6:10 AM, Michael Gerzabek
<[EMAIL PROTECTED]> wrote:
> Is there a way to customize labels for enums in only one file per locale so
> that those properties get read whenever the enum is used on a Page?
?
In my humble opinion, the best approach is to put all the messages in
Hello Michael,
there is an application wide properties file which is accessable by every page
and component within your application. It is located in
WEB-INF/.properties. depends on the filter name you have
chosen for the tapestry filter. As one usually does not change that, this would
be pe
If you want to handle your links in start.java, you could use eventlink
instead of actionlink and give each link a different event ...
Stephane
dhning a écrit :
Hi,
One case: The page start.tml contains component ParentComponent, and template of ParentComponent
contains two action links Lin
Hi,
One case: The page start.tml contains component ParentComponent, and template
of ParentComponent contains two action links LinkA&LinkB, context of LinkA is
"a" while LinkB is "b".
In start.java, I need to perform some special logic by which link is clicked.
In T4, I knew listener binding
Thanks Armand.
Returning 'this' works great !
Stephane
Francois Armand a écrit :
Stephane Decleire wrote:
correct behavior of event bubbling in T5 (i mean handlers which
returns null values do not catch the event) ?
If yes, what is the solution for an handler to both catch the event
and show
Stephane Decleire wrote:
correct behavior of event bubbling in T5 (i mean handlers which
returns null values do not catch the event) ?
If yes, what is the solution for an handler to both catch the event
and show the same page to the user ?
Returning a non null value is the think to do, see :
Hi,
I have several components encompassed in each other : say A encompasses
B which encompasses C.
When someone trigger an eventlink in C, i try to catch the event in B in
a handler like this one :
@OnEvent (value="action")
Object change() {
// ... management of the action ...
Hi,
I love the new enum support for automagic selects. Thanks for that Howard!
I have shifted many constants to enums. The arising question is how to
prepare Messages to those enums in most convenient way.
At the time I use one property file per Page. When I have an enum
display a select on
The fact that you're using T5 in the real world at this beta stage is very good
news for the upcoming release IMO, even if it delays the RC a bit. (not too
much though I hope ;-)
> -Original Message-
> From: Howard Lewis Ship [mailto:[EMAIL PROTECTED]
> Sent: 09 April 2008 19:32
> To: Ta
That's what I'm talkin' about!
Francois Armand wrote:
> Howard Lewis Ship wrote:
>> Just want to say thanks to everyone whose providing answers and
>> support on the users list. I'm really impressed by how much Tapestry
>> 5 knowledge is out there.
>>
> Not to forget the irc channel on freenod
First of all, if you haven't already, digest the documentation on mixins:
http://tapestry.apache.org/tapestry5/tapestry-core/guide/mixins.html
If you're clear on that, then the only piece you're missing is how to
connect JS to the grid. For that your mixin should instantiate a JS
object and be pas
Howard Lewis Ship wrote:
Just want to say thanks to everyone whose providing answers and
support on the users list. I'm really impressed by how much Tapestry
5 knowledge is out there.
Not to forget the irc channel on freenode: #tapestry ;)
--
Francois Armand
Etudes & Développements J2EE
Gro
53 matches
Mail list logo