My Application use spring2+tapestry5+hibernate3 ,it can work well in me
IE or FF
so,I want to use Unit Test with testNG .I followed
http://tapestry.apache.org/tapestry5/tapestry-core/guide/unit-testing-pages.html
configrate spring with
http://wiki.apache.org/tapestry/Tapestry5SpringIntegration
Marcus 写道:
Hi,
Use WEB-INF/web.xml:
15
This apply to any Servlet Container (not a Tapestry configuration).
Marcus
Thanks a lot
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-ma
Yes I've been looking all over the code. Right now I think that I have
two options. Could I get some more feedback?
1) hack :)
write a mixin that will go through the dom after rendering and
replace element/attribute names with desired versions: "fm_fbml" to
"fb:fbml". This is how I'll sta
Hi All,
I have a question on how to get a dynamic localized key value
Below is a scenario
[
${message:}
I hope similar codes above can get the localized key from properties
file dynamiclly
There may be following data in properties file
// **_zh_CN.properties
california=加利福尼亚
indiana=印第安那
//
An even better solution IMO is to revive the Img component,
but move the domain into another parameter defaulted to "context".
Source here, renamed Image:
http://wiki.apache.org/tapestry/Tapestry5ImageComponent
E.g.
Cheers,
Nick.
Nick Westgate wrote:
Situations like this are exactly where i
Look at the other translators in:
tapestry-core\src\main\java\org\apache\tapestry\translator
Cheers,
Nick.
Marcelo lotif wrote:
Nick, can you tell me what Message class is this? What dependence should i
add?
I search on maven and there are too much dependencies to add and i can't
figure out wh
2007/8/31, Angelo Chen <[EMAIL PROTECTED]>:
>
>
> Hi Nick,
> Thanks, it works!
>
> Nick Westgate wrote:
> >
> > Try
> > View this message in context:
> http://www.nabble.com/T5%3A-Script-rewriting-tf4357979.html#a12420152
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> --
If you get a reference to your page (from within the validator), you could
do page.getMessages().getMessage("NicknameAlreadyExists")
and use that in you exception. And you can do that in the toObject method by
formComponent.getPage() !
On 8/30/07, ipoese <[EMAIL PROTECTED]> wrote:
>
>
>
> ipoese
Or possibly patch TemplateParser to do what you want.
Tapestry uses SAX. See:
org.apache.tapestry.internal.services.TemplateParserImpl
Cheers,
Nick.
Josh Canfield wrote:
This has been mentioned as a bug in this list, search for *T5: XML
declaration is missing from rendered page. Any workrounds
Hi Nick,
Thanks, it works!
Nick Westgate wrote:
>
> Try
>
Try
but T5 already arranged it :
pulling up the line with 'good_ad_cl
Hi,
I have this in the template:
but T5 already arranged it :
That is in fact the only option for now.
Cheers,
Nick.
Josh Canfield wrote:
In situations where I have had optional parameters I've ended up using an
Object[] as the argument and figuring out what the values mean myself.
public Object onActivate(Object[] context) {
}
I haven't looked closely
This has been mentioned as a bug in this list, search for *T5: XML
declaration is missing from rendered page. Any workrounds?*
While I haven't tried this, I imagine that you could create components to
work around this for now using MarkupWriter.writeRaw(). Or possibly use the
OutputRaw component.
In situations where I have had optional parameters I've ended up using an
Object[] as the argument and figuring out what the values mean myself.
public Object onActivate(Object[] context) {
}
I haven't looked closely enough at the code to determine if there is a
better option.
Josh
On 8/30/07,
Hi. We are going to be writing a facebook application, and we want to
use Tapestry 5. To do so, we have to generate FBML:
http://wiki.developers.facebook.com/index.php/FBML
We came hit a pretty big snag, in that it doesn't look like tapestry 5
support namespaces/prefixes. Below you see the tape
Hello all,
I'm wondering if anyone has had any luck making the "activation
contexts" of pages a little more flexible.
For example, let's say I have a "Sum.java" page that wants to take in
between 1 and 4 Integers and add them together:
//is there a way to make number3 and number4 "optional"? Se
You can use the tapestry js api to attach the effects:
dojo.require("tapestry.fx");
dojo.require("dojo.lfx");
tapestry.fx.attachPostEffect("some_client_id_1", function(){return
dojo.lfx.highlight("some_client_id_2", [255, 255, 184]) });
"some_client_id_1" is the id of the u
Hi
I'm upgrading an app from 4.0 to 4.1.2.
In the 4.0 app I have a PropertySelection that has eventListener
pointing to a @tacos:EventSubmit that has a
effects="template:{highlight:{any:'[255,255,184], 500, 500'}}"
How do I get the effect thing to work in 4.1.2? My onchnage
EventListener annotat
>
> Try to jsessionid into your client cookie then access your page like this
> http://host:80/
> /user/list;jessionid=owruoqweruqweruqwer0283434
> You will see the data which you just save in session.
Adding jsessionid to your cookie will only work as long as your session is
active, which doesn'
ipoese wrote:
>
>
> Erik Vullings-2 wrote:
>>
>> Does this link help:
>> http://wiki.apache.org/tapestry/Tapestry5HowToOverrideTheDefaultErrorMessageBanner
>>
>
> in general, yes, that would help to customize the error message quite
> nicely - however, i am using tapestry 4.1 and not 5. Does
Hi,
Use WEB-INF/web.xml:
15
This apply to any Servlet Container (not a Tapestry configuration).
Marcus
I think you have to do that in your container (Tomcat, etc).
On 8/30/07, ailon <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
> How can I change session expired time?
>
>
> Thank you in advanced
>
> Guoguo Long.
>
> -
> To unsubscribe,
in the web.xml there something like
30
change that number.
On 8/30/07, ailon <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
> How can I change session expired time?
>
>
> Thank you in advanced
>
> Guoguo Long.
>
> -
Hi All,
How can I change session expired time?
Thank you in advanced
Guoguo Long.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
you just have to add it to your WEB-INF/lib and also add it to your
classpath
i'm using eclipse and this works for me...
:)
2007/8/30, Juliet B <[EMAIL PROTECTED]>:
>
>
> Hi,
>
> i'm new to Tapestry and I tried to use DatePicker component, but I really
> can't figure out how to load the compon
Hi,
i'm new to Tapestry and I tried to use DatePicker component, but I really
can't figure out how to load the component in my eclipse project. I already
searched the mailing list and find answers but it don't seem to work for me.
Can anyone explain me clearly which steps I have to follow (add t
Angelo Chen 写道:
Hi,
In my program I'd verify the user and create an ASO until he log out or the
ASO expires. Now I'd like to add an option: 'remember me' like the one in
yahoo, if checked, program will automatically login the user next time, how
to achieve this? thanks.
A.C.
Try to jsession
Nick, can you tell me what Message class is this? What dependence should i
add?
I search on maven and there are too much dependencies to add and i can't
figure out which to use.
Thanks!
2007/8/30, Nick Westgate <[EMAIL PROTECTED]>:
>
> Google is your friend. ;-)
>
> http://www.google.com/search?s
Hi,
i tried to configure log4j to give me debug messagess of my application only
The same configuration works fine outside of tapestry: however in t4 i
receive all the debug messages from hibernate, tapestry etc, even if they
are set to error.
If i set the priority to error for the root, i don't s
Hi,
In my program I'd verify the user and create an ASO until he log out or the
ASO expires. Now I'd like to add an option: 'remember me' like the one in
yahoo, if checked, program will automatically login the user next time, how
to achieve this? thanks.
A.C.
--
View this message in context:
h
Google is your friend. ;-)
http://www.google.com/search?source=ig&hl=en&q=DateUtils&btnG=Google+Search
Add this to your pom.xml:
commons-lang
commons-lang
2.3
Hopefully the type coercion systems will simplified to avoid this stuff.
Cheers,
Nick.
Joshua Jackson wrote:
Thanks Nic
Situations like this are exactly where it's needed.
I think it was removed prematurely.
You can just re-add the component and use it:
http://wiki.apache.org/tapestry/Tapestry5AnyComponent
There are another couple of example uses there.
Cheers,
Nick.
Ted Steen wrote:
Actually I dont think the
Thanks Nick,
Can I also get the content of DateUtils.
And which ParseException do I use?
Thanks in advance
On 8/30/07, Nick Westgate <[EMAIL PROTECTED]> wrote:
> Add something like the following (tweak the date formats) to your
> AppModule.java:
--
It's not just about coding, it's a mat
Actually I dont think the Any component exists anymore.. its not
needed because of expansions in attributes.
2007/8/30, Nick Westgate <[EMAIL PROTECTED]>:
> Sorry, that should be (still not ideal) ...
>
>
> Cheers,
> Nick.
>
>
> Nick Westgate wrote:
> > Why don't you read about it here:
> > http:
Sorry, that should be (still not ideal) ...
Cheers,
Nick.
Nick Westgate wrote:
Why don't you read about it here:
http://tapestry.apache.org/tapestry5/tapestry-core/guide/assets.html
For instance, assets can be localized.
Also, the Any component can be used to help previewability, e.g:
Che
Why don't you read about it here:
http://tapestry.apache.org/tapestry5/tapestry-core/guide/assets.html
For instance, assets can be localized.
Also, the Any component can be used to help previewability, e.g:
Cheers,
Nick.
Angelo Chen wrote:
Hi,
Both of your suggestions work, thanks, I was
Hi,
Both of your suggestions work, thanks, I was doing it hard way.
btw, what's the difference: ${asset:context:img/ok0.gif} and img/ok0.gif
A.C.
Filip S. Adamsen-2 wrote:
>
> You can also specify assets inline using the asset prefix, that is:
>
> ${asset:context:img/ok0.gif}
>
> Wor
You can also specify assets inline using the asset prefix, that is:
width="37"/>
Works like a charm.
Robin Helgelin skrev:
On 8/30/07, Erik Vullings <[EMAIL PROTECTED]> wrote:
Hi Angelo,
Can't you just use (in the HTML part of your page):
and put the ok0.gif image in the src/main/webapp
Add something like the following (tweak the date formats) to your
AppModule.java:
public static void contributeTranslatorDefaultSource(
MappedConfiguration, Translator> configuration)
{
configuration.add(Date.class, new Translator()
{
/**
Hi all,
I have a table inside a form with a checkbox as a column.I am listing all
the items in the table using primaryKeyConverter.
When i select the checkbox(item) and submit the page my item(or items which
is a collection) is becomming null.My code in HTML page is
.
Dear all,
Currently I have a field with java.util.Date type in my page, but it
seems that the java.util.Date type is not yet supported in Tapestry5.
This is the exception that I get:
org.apache.tapestry.ioc.internal.util.TapestryException
No adapter from type java.util.Date to type
org.apache.tap
On 8/30/07, Erik Vullings <[EMAIL PROTECTED]> wrote:
> Hi Angelo,
>
> Can't you just use (in the HTML part of your page):
>
>
> and put the ok0.gif image in the src/main/webapp/img folder.
You could, but then you would get a wrong url when you are using an
action or something on your page, such a
Hi Angelo,
Can't you just use (in the HTML part of your page):
and put the ok0.gif image in the src/main/webapp/img folder.
Cheers
Erik
On 8/30/07, Angelo Chen <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> Everytime I need to display an image, I have to do something like this:
>
> @Inject
>
Well, this is the price for having no XML specification ;)
-Original Message-
From: Angelo Chen [mailto:[EMAIL PROTECTED]
Sent: 30 August 2007 10:17
To: users@tapestry.apache.org
Subject: T5: Handling of images
Hi,
Everytime I need to display an image, I have to do something like this
Hi,
Everytime I need to display an image, I have to do something like this:
@Inject
@Path("context:/images/logo3.jpg")
private Asset logo;
public Asset getLogo() {
return logo;
}
then in the template:
${logo}
Is there an easier way? example, I can directl
On 8/30/07, 小司 <[EMAIL PROTECTED]> wrote:
> I user it it works well
>
>
> select component's html source is
> Index
>
> no
>
> how to rectify it??
>
> if i want to get this style ,how to modify the source
>
>IT department
>
> the value and display value is defferent.
>
Search the archives,
Any news from this subject?
Martino Piccinato wrote:
>
> In a month or so I might be able to contribute some code.
> But how to deal with backward compatibility? I mean switching to a
> tapestry version with dojo 0.9 might oblige people to rewrite custom
> widget and, in general, dojo code (un
48 matches
Mail list logo