Can not get the Upload's value in ajax submit

2012-06-28 Thread dick_hu
public class UploadPage{ @Property private UploadedFile file; @InjectComponent private Zone zone; Object onSuccess() { System.err.println(file); return zone; } } when I click the submit button,I can't get

Is there any Tapestry5 open source integral the flex

2012-04-10 Thread dick_hu
My T5 project want to integral the flex. Is there any Tapestry5 open source integral the flex? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Is-there-any-Tapestry5-open-source-integral-the-flex-tp5629203p5629203.html Sent from the Tapestry - User mailing list archive at

Set another properties file like App.properties

2012-03-31 Thread dick_hu
There is global properties file "App.properties" in the Tapestry. Now I want to more global properties file like the app.properties. Is there any way to configurate in the AppModule? Can anyone help me? Thank very much. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Set-an

Re: A translator error

2012-03-19 Thread dick_hu
Thank you very much -- View this message in context: http://tapestry.1045711.n5.nabble.com/A-translator-error-tp5576150p5576432.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: use

A translator error

2012-03-18 Thread dick_hu
I write a string translator like this: public class EditorTranslator extends AbstractTranslator { public KindEditorTranslator() { super("editor", String.class, "editor-format-exception"); } public String parseClient(Field field, String clientValue, String m

Re: memory leaks

2012-03-15 Thread dick_hu
How can I use live class reloading,Is there any example to me. I can not understand with you. Thank you -- View this message in context: http://tapestry.1045711.n5.nabble.com/memory-leaks-tp5566822p5567806.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

memory leaks

2012-03-14 Thread dick_hu
Live Class and Template Reloading One of the great features of Tapestry 5 is automatic reloading of changed classes and templates. Page and component classes will automatically reload when changed. Likewise, changes to component templates and other related resources will also be picked up immediate

java.lang.OutOfMemoryError: PermGen space

2012-01-04 Thread dick_hu
When I modify some page and open them in the browser, often there is a error occur. Can anyone tell me how can I avoid this error? Thanks a lot. Caused by: java.lang.OutOfMemoryError: PermGen space at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.define

Re: mixins Confirm is invalid

2012-01-04 Thread dick_hu
Geoff Callender-2 wrote > > Yes, there's a trick to it - search for t:event="delete" > in this example: > > > http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/componentscrud/persons > > There's an explanation below it. > > > Thank you very much , you are right. -- View this

Re: mixins Confirm is invalid

2012-01-03 Thread dick_hu
Taha Hafeez wrote > > Try event.preventDefault() instead of Event.stop(event) > > I think that will do > > > It failed also. thank you. -- View this message in context: http://tapestry.1045711.n5.nabble.com/mixins-Confirm-is-invalid-tp5118652p5118771.html Sent from the Tapestry - User

Re: mixins Confirm is invalid

2012-01-03 Thread dick_hu
No, it means the confirm does not stop the event when I click the cancel button in the dialog. Taha Hafeez wrote > > Hi > > What do you mean when you say it is invalid ? > > Is there any error ? > > > -- View this message in context: http://tapestry.1045711.n5.nabble.com/mixins-Confirm-is-

mixins Confirm is invalid

2012-01-03 Thread dick_hu
I add a mixins "Confirm" to a EventLink,When the eventlink request is xhr will return a zone,the mixins is invalid. the mixins's java is @Import(library = "confirm.js") public class Confirm { @InjectContainer private ClientElement container; @Inject private Java

show a zone with javascript

2011-12-22 Thread dick_hu
Can show a zone in the page with only javascript? -- View this message in context: http://tapestry.1045711.n5.nabble.com/show-a-zone-with-javascript-tp5094924p5094924.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

A problem about tapestry-security

2011-12-22 Thread dick_hu
The tynamo's tapestry-security advise the RequestExceptionHandler, It is useful in the request that not isXHR. But in the XHR request it can'not jump to the login page. How can I do? Can anyone help, Thanks a lot. -- View this message in context: http://tapestry.1045711.n5.nabble.com/A-problem-a

Re: ComponentRequestFilter alert a dialog

2011-12-22 Thread dick_hu
lprimak wrote > > yes. and lots more. > > when I use the Tapestry-security,there is a exception occur Caused by: java.lang.IllegalArgumentException: Realms collection argument cannot be empty. at org.apache.shiro.mgt.RealmSecurityManager.setRealms(RealmSecurityManager.java:78)

Re: ComponentRequestFilter alert a dialog

2011-12-21 Thread dick_hu
It is too hard to learn about the Tynamo's Tapestry-security for me. In fact I just want to know how can I alert a dialog in the currentPage through the ComponentRequestFilter. Is there any way. -- View this message in context: http://tapestry.1045711.n5.nabble.com/ComponentRequestFilter-alert-a

Re: ComponentRequestFilter alert a dialog

2011-12-21 Thread dick_hu
lprimak wrote > > Why don't you use the wonderful Tynamo's Tapestry-security? > > It can alert a dialog when it can't pass the filter? -- View this message in context: http://tapestry.1045711.n5.nabble.com/ComponentRequestFilter-alert-a-dialog-tp5093550p5093561.html Sent from the Tapestry - U

ComponentRequestFilter alert a dialog

2011-12-21 Thread dick_hu
Now I'm is develop a AuthenticationFilter, If user browse the page when he did not login the web,the filter where alert a dialog in the current page,and then user input his username and password in the dialog form then skip to the page (best the page will not refresh). I know how the filter redire

miss key

2011-12-08 Thread dick_hu
When I move the project from windows to linux,there are some strange problem happened. One of them is not find the App.properties's key. If I should do some config when I from windows to linux. -- View this message in context: http://tapestry.1045711.n5.nabble.com/miss-key-tp5060635p5060635.html

a trouble problem

2011-12-04 Thread dick_hu
there is a trouble problem with a long time. when I modfiy some Pages or components and not restart the server, it where spend a long time to show the Page in browser, sometime it will occur a Exception such as Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Unable to create

Re: e.stop() is invalid in the Link

2011-11-08 Thread dick_hu
Can anyone help me? I am very worried. Or can anyone tell me how validate the checkbox with "t:validate", It seems invalid in the checkbox -- View this message in context: http://tapestry.1045711.n5.nabble.com/e-stop-is-invalid-in-the-Link-tp4973053p4974194.html Sent from the Tapestry - User ma

e.stop() is invalid in the Link

2011-11-07 Thread dick_hu
-- View this message in context: http://tapestry.1045711.n5.nabble.com/e-stop-is-invalid-in-the-Link-tp4973053p4973053.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsub

Re: Dynamic pages to static

2011-10-18 Thread dick_hu
For example, this nabble forum's current url is "http://tapestry.1045711.n5.nabble.com/Tapestry-User-f2375125.html";. In fact it is a dynamic page,but it's suffix is .html as a static page. It must a background program generate the html to reduce some db operate. Has any tapestry integration can

Re: Dynamic pages to static

2011-10-18 Thread dick_hu
pieter wrote: > > Just add a static page to your webapp folder should work > > http://tapestry.apache.org/request-processing.html > http://tapestry.apache.org/request-processing.html > > "StaticFiles checks for URLs that are for static files (files that exist > inside the web context) and abo

The difference between "ValueEncoder" and "Translator"

2011-10-16 Thread dick_hu
Now I use the FCKeditor, because of it often has many html tags,so the value's length often over the db's words limit.So I want to transform the html tags to short string. I want to use the "Translator",But I find "ValueEncoder" seems has the same feature. Which one can I choose? Can AnyOne tell me

Is any chart components

2011-10-12 Thread dick_hu
I want to write a comonents about chart,but I have no idea, Has anyone the chart components? Thanks for help -- View this message in context: http://tapestry.1045711.n5.nabble.com/Is-any-chart-components-tp4897742p4897742.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Re: Form validate on submit event

2011-09-07 Thread dick_hu
Yohan Yudanara-2 wrote: > > server side or client-side validation? > > client-side validation,but not in tapestry > > If client side, then you can create regular onClick="blablabla()"> on .tml file. > On blablabla() method you do the client-side validation and then submit > the > form. > > ju

Form validate on submit event

2011-09-07 Thread dick_hu
tapesty has it's own submit way. Now I want do some validate when I click the submit button Is there any easy way to do it. Can AnyOne help me solve this problem,thanks a lot. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Form-validate-on-submit-event-tp4780855p4780855.

has Tapestry integrated the comet?

2011-08-21 Thread dick_hu
I want to use the comet in my app. Has Tapestry integrated any comet frame. such as pushlet -- View this message in context: http://tapestry.1045711.n5.nabble.com/has-Tapestry-integrated-the-comet-tp4722353p4722353.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: @Component inherit

2011-08-18 Thread dick_hu
Oh Thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Component-inherit-tp4712481p4712510.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubsc

@Component inherit

2011-08-18 Thread dick_hu
eg: component A class A{ @Component private Select select; } A.tml Class B extends A{ } B.tml nothing there is no Select component in my B.tml so exceptions occur but I want to inherit the A Component and I want to use the @Component also ,is there any way? AnyOne can help me ,Thanks a l

What place the @Persist will invalid

2011-08-18 Thread dick_hu
first show my code page class @Property @Persist private List files //this event will trigger when all the files uploaded,but I can't get the correct value //I think the Property is invalid void onUploadDone(){ //the unexpected,it's null System.out.println(files) } tml swfupload compon

Re: Mixins can not get the parameter's clientid

2011-08-16 Thread dick_hu
Taha Hafeez wrote: > > Hi > > Have you considered using a Heartbeat. > > BTW what is the scenario ? > I am a new tapestryer, no kidding, I have not fully understand the Heartbeat, Have you any component or mixins use the Heartbeat give my reference,heihei. -- View this message in context: ht

Mixins can not get the parameter's clientid

2011-08-16 Thread dick_hu
My tml is like this: Mixins "A" @Parameter private AbstractField input; void afterRender(){ //print the input is not null System.out.println(input); //print the input.getClient() is null System.out.println(input.getClient()); } Is the TextField is loaded after the mixins so I can no

Re: T5 Tapestry.Initializer's function

2011-08-12 Thread dick_hu
Thanks I know -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-Tapestry-Initializer-s-function-tp4691890p4693526.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e

Re: T5 Tapestry.Initializer's function

2011-08-11 Thread dick_hu
I use the two mixins in a page so the two js are already imported, I try to use one mixins's js funtion in another mixins's js eg: Tapestry.Initializer.Rocker1 = fucntion(){ var f1 = function(){ } } Tapestry.Initializer.Rocker2 = fucntion(){ // I want use the Rocker1's f1 } Howc

T5 Tapestry.Initializer's function

2011-08-11 Thread dick_hu
I create a mixins "A" with the js Tapestry.Initializer.Rocker Now I create another mixins "B",How can I use the Tapestry.Initializer.Rocker in B's js AnyOne can help me Thanks a lot -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-Tapestry-Initializer-s-function-tp46918

Re: ioko-tapestry-commons problem

2011-07-28 Thread dick_hu
I have try it yet,but it also occur this exception, I am sad @Import(stack="Jquery") public class OverlayTest { @Inject private Block showBlock; Object onActionFromTest() { return showBlock; } } -- View this message in context: http://tapestry.1

ioko-tapestry-commons problem

2011-07-28 Thread dick_hu
when I use the ioko-tapestry-commons's mixins Overlay there is exception occur Exception invoking function Tapestry.Initializer.overlayMixinLoad with parameters [{"isForm": "false", "exposeColour": "#33", "overlayId": "overlay", "containerId": "test"}]: ReferenceError: jQuery is not defined M

Re: toolTip mixins

2011-07-28 Thread dick_hu
Ohye I am waiting for you... heihei -- View this message in context: http://tapestry.1045711.n5.nabble.com/toolTip-mixins-tp4641526p4642038.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe,

When Select change value

2011-07-28 Thread dick_hu
I want change select component's value the form submit Is ther any way can do this? Thanks a lot -- View this message in context: http://tapestry.1045711.n5.nabble.com/When-Select-change-value-tp4641947p4641947.html Sent from the Tapestry - User mailing list archive at Nabble.com.

toolTip mixins

2011-07-28 Thread dick_hu
I use the tawus's toolTip mixins , but a problem arround me . How can I pass a parameter to the onToolTip method my code is : Object onToolTip() { // logs = impressService.listFrdPhr(getOwner(), mid); return toolTip; } in my method I want a parameter from the tooltip mixins,can tooptip have a

what is Heartbeat

2011-07-15 Thread dick_hu
A question is always with me , what is the "Hearbeat" in tapestry? What can it do in our code. -- View this message in context: http://tapestry.1045711.n5.nabble.com/what-is-Heartbeat-tp4589766p4589766.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Loop Map

2011-07-15 Thread dick_hu
Thank you,they are helpful to me. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Loop-Map-tp4589569p4589722.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail:

Loop Map

2011-07-14 Thread dick_hu
How can I Loop the Map? in the loop I can get the key and value. Can anyone share a part of code? Thanks a lot. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Loop-Map-tp4589569p4589569.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Re: A problem occur at loop of zone

2011-07-12 Thread dick_hu
when I a create a new project and try it ,it runs right. I explore the problem,It's my mistake,I destroy the tapestry.js. I am sorry to cost everyone a lot of time for the stupid mistake. Thank you ! -- View this message in context: http://tapestry.1045711.n5.nabble.com/A-problem-occur-at-loop-of

Re: A problem occur at loop of zone

2011-07-12 Thread dick_hu
Thiago H. de Paula Figueiredo wrote: > > On Tue, 12 Jul 2011 23:04:55 -0300, dick_hu <dickan...@gmail.com> > wrote: > >> Zone onActionFromDelete() { >> return testZone; >> } > > Return testZone.getBody() instead. > >

Re: A problem occur at loop of zone

2011-07-12 Thread dick_hu
Taha Hafeez wrote: > > Hi > > I just copied your code and tried it, I works on firefox, chrome & opera. > What browser are you using ? > > I works on IE 8, first click is right,but second click the page reflesh,the actionlink is not return a zone. you alway is right? I want to create a new pr

Re: A problem occur at loop of zone

2011-07-12 Thread dick_hu
this problem I still have not sovle. But I use MultiZoneUpdate as return type it runs success. I guess Is the actionlink inside in the zone,when the zone updated cause the actionlink's ajax action invalid. can you help me? I write a easiest test,but failure yet. test.tml

Re: A problem occur at loop of zone

2011-07-11 Thread dick_hu
Taha Hafeez wrote: > > The template is not visible, are you using zone parameter of > actionlink(you > should prefer eventlink over actionlink). Only then will the request be > ajax > based. > > the Test.tml ${str} delete

A problem occur at loop of zone

2011-07-11 Thread dick_hu
First show my test code test.tml ${str} delete test.java public class Test { @Property @Persist(PersistenceConstants.SESSION) private List strs; @Property private String str; @Pr

Re: A rewriting problem

2011-07-09 Thread dick_hu
Taha Hafeez wrote: > > Typically it is HttpServletRequestFilter or ComponentRequestFilter or > ComponentEventRequestFilter. The decision you have to make is how much > information do you need from tapestry to perform filtering. The lesser you > need, the early you can exit from the request proces

A rewriting problem

2011-07-08 Thread dick_hu
I want to rewriting my page,code like this: public class AutoLoginLinkTransformer implements PageRenderLinkTransformer { @Inject private RequestGlobals requestGlobals; @Inject private MainLoginService loginService; @Inject private TypeCoerce

Re: a component problem in work

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

a question T5 work with spring

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

Re: a component problem in work

2011-07-05 Thread dick_hu
Lenny Primak wrote: > > I think you need to look at @PageLoaded or @PageAttached annotations / > naming conventions > to do what you want. onActivate is for page context parameter processing > Thank for your suggestion.I will try it. -- View this message in context: http://tapestry.1045711.n5

Re: a component problem in work

2011-07-05 Thread dick_hu
Thiago H. de Paula Figueiredo wrote: > > This is not unnecessary: it's normal, correct, expected Tapestry behavior. > The activate event is triggered everytime a page is requested, being it a > render or event (action) one. > I see,but my actionlink trigger a ajax action and return a zone, t

a component problem in work

2011-07-05 Thread dick_hu
I write a component in my page,the component contain a actionlink, everytime I click the actionlink the page's onActivate() method will run. It is unnecessary,what can I do? Anyone can help me? -- View this message in context: http://tapestry.1045711.n5.nabble.com/a-component-problem-in-work-tp

Re: T5 With myibatis

2011-07-01 Thread dick_hu
Thiago H. de Paula Figueiredo wrote: > > Tapestry doesn't provide an out-of-the-box integration, but you don't need > that to use it with MyIbatis. > OK,I know. Thanks -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-With-myibatis-tp4541264p4543882.html Sent from the

Re: IOC Classes in a package

2011-07-01 Thread dick_hu
gt; On Jul 1, 2011, at 6:55 PM, "Thiago H. de Paula Figueiredo" > <thiag...@gmail.com> wrote: > >> On Fri, 01 Jul 2011 10:08:06 -0300, dick_hu <dickan...@gmail.com> >> wrote: >> >>> Yeah,you know me. >>> you mean there is no way to add servi

Re: [ANN] Tapestry5 Training materials available

2011-07-01 Thread dick_hu
Great~ thank you -- View this message in context: http://tapestry.1045711.n5.nabble.com/ANN-Tapestry5-Training-materials-available-tp4541557p4542179.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To uns

Re: T5 With myibatis

2011-07-01 Thread dick_hu
may be I have not express clearly, I mean is T5 integrate the myibatis? If yes,that must a sample way to use the myibatis -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-With-myibatis-tp4541264p4542099.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: IOC Classes in a package

2011-07-01 Thread dick_hu
Yeah,you know me. you mean there is no way to add service/beans by a package name? because I have little knowledge about T5 can you give me any example about "ClassNameLocatorImpl" you can send to my email dickan...@gmail.com thank you! -- View this message in context: http://tapestry.1045711.n5.

T5 With myibatis

2011-07-01 Thread dick_hu
Is there any example about T5 with myibatis,I want to try in my new project. -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-With-myibatis-tp4541264p4541264.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

IOC Classes in a package

2011-07-01 Thread dick_hu
Did T5 IOC has the features that can IOC Classes in a package like spring org.mybatis.spring.mapper.MapperScannerConfigurer,it can ioc by the config like this I want to uses these services on T5's advise,but these is IOC by the spring,so advise is no use to them. So I want