Re: How to let custom component participate in form submission

2018-11-06 Thread abangkis
Hi chris, thanks for the reply. On Sun, Nov 4, 2018 at 8:19 PM Chris Poulsen wrote: > > With a few exceptions, I would generally say that using @Persist in > components is a smell, instead pass the information as a parameter - Pages > are ultimately the things driving the components, they

Re: How to let custom component participate in form submission

2018-11-04 Thread Chris Poulsen
ities in the page OnPrepare method. > Translating this approach from a page implementation to the custom > component isn't as straight forward as I thought. Since OnPrepare isn't > called in the custom component. (it's part of page life cycle but not part > of component rendering l

Re: How to let custom component participate in form submission

2018-11-01 Thread abangkis
have to. Usually this is handled in the page by populating the tabs Hibernate Entities in the page OnPrepare method. Translating this approach from a page implementation to the custom component isn't as straight forward as I thought. Since OnPrepare isn't called in the custom component. (it's part

Re: How to let custom component participate in form submission

2018-11-01 Thread Thiago H. de Paula Figueiredo
/loan/ApplicationSummary:loanbundleedittabs2.beandisplay_0 is bound On Thu, Nov 1, 2018 at 4:43 AM abangkis wrote: > Hai guys, still working on my custom component. > > How do we let our custom component participate in form submission. > Apparently there is no onPrepare hook for tap

How to let custom component participate in form submission

2018-11-01 Thread abangkis
Hai guys, still working on my custom component. How do we let our custom component participate in form submission. Apparently there is no onPrepare hook for tapestry custom component. http://tapestry.apache.org/component-rendering.html. I'm reading http://jumpstart.doublenegative.com.au

Re: Get link to the page that contains custom component

2018-10-27 Thread abangkis
explanation. > > > -- > -- Mats Andersson | Ronsoft AB | +46(0)73 368 79 82 > > > On 2018-10-27 05:00, abangkis wrote: > > Sorry, still having some problems with custom component. I need to pass a > logged in user object to the component. > > So I push th

Re: Get link to the page that contains custom component

2018-10-27 Thread Mats Andersson
Andersson | Ronsoft AB | +46(0)73 368 79 82 On 2018-10-27 05:00, abangkis wrote: Sorry, still having some problems with custom component. I need to pass a logged in user object to the component. So I push the wrapper class from the page to the environment @BeginRender void beginRender

Re: Get link to the page that contains custom component

2018-10-26 Thread abangkis
Sorry, still having some problems with custom component. I need to pass a logged in user object to the component. So I push the wrapper class from the page to the environment @BeginRender void beginRender() { LoanBundleModel model = new LoanBundleModel(); model.setUserId(getCurrentUser

Re: Get link to the page that contains custom component

2018-10-26 Thread abangkis
, 2018 at 6:45 PM abangkis wrote: > > > Thanks a lot Dmitry. It's working great. > > > > There's another thing. If the custom component inside a form and like to > > set some error message. > > If it's a page we can do something like: > > > > @InjectCompone

Re: Get link to the page that contains custom component

2018-10-26 Thread Dmitry Gusev
For forms you can use: @Environmental private ValidationTracker validationTracker; and then validationTracker.recordError(...) On Fri, Oct 26, 2018 at 6:45 PM abangkis wrote: > Thanks a lot Dmitry. It's working great. > > There's another thing. If the custom compone

Re: Get link to the page that contains custom component

2018-10-26 Thread abangkis
; Another solution is the getPageName method of ComponentResources. > > > -- > -- Mats Andersson | Ronsoft AB | +46(0)73 368 79 82 > > On 2018-10-26 13:07, abangkis wrote: > > Hi guys. I'm moving parts of of my page to a custom component. In the page > there's a me

Re: Get link to the page that contains custom component

2018-10-26 Thread abangkis
Thanks a lot Dmitry. It's working great. There's another thing. If the custom component inside a form and like to set some error message. If it's a page we can do something like: @InjectComponent private Form form; form.recordError(message); How to do something like that in a component

Re: Get link to the page that contains custom component

2018-10-26 Thread Mats Andersson
13:07, abangkis wrote: Hi guys. I'm moving parts of of my page to a custom component. In the page there's a method that will go to another page and go back to the original page when finished. Here's the code: @OnEvent("AddDoc") Object addDoc() { Lin

Re: Get link to the page that contains custom component

2018-10-26 Thread Dmitry Gusev
Hi, I would try something like this: @Inject ComponentResources resources; and then pageRenderLinkSource.createPageRenderLink(resources.getPageName()); On Fri, Oct 26, 2018 at 2:07 PM abangkis wrote: > Hi guys. I'm moving parts of of my page to a custom component. In the page > t

Get link to the page that contains custom component

2018-10-26 Thread abangkis
Hi guys. I'm moving parts of of my page to a custom component. In the page there's a method that will go to another page and go back to the original page when finished. Here's the code: @OnEvent("AddDoc") Object addDoc() { Link thisPage = pageRenderLinkSource.createPageRenderLink(thi

Fwd: Custom component not rendering

2016-08-22 Thread Matthew Bush
I think this my mistake, folder structure issue, please disregard. Thanks, Matthew Bush > Begin forwarded message: > > From: Matthew Bush <matthew.b...@jetinteractive.com.au> > Subject: Custom component not rendering > Date: 23 August 2016 at 10:43:37 AM AEST > To: u

Custom component not rendering

2016-08-22 Thread Matthew Bush
Hello. Problem - Custom component rendering multiple text fields is not rendering and no error produced. I am wishing to create a custom tapestry component which uses a *.tml template. This custom component is to provide data entry for Address entities. So includes normal/typcial address

Re: guidance with integrating yet another js library as custom component

2013-07-09 Thread George Ludwig
You were totally right...my brainfart didn't notice that the data files were in the wrong directory. On Mon, Jul 8, 2013 at 5:09 AM, Thiago H de Paula Figueiredo thiag...@gmail.com wrote: On Sun, 07 Jul 2013 16:59:18 -0300, George Ludwig georgelud...@gmail.com wrote: Here's my final (I

Re: guidance with integrating yet another js library as custom component

2013-07-09 Thread George Ludwig
Lance, I've been using, for example: @Inject @Path(context:/data/filename.gexf) @Property private Asset file; And then I pass this to the JS function: String ret= file.getResource().getPath(); It's working fine...but is toClientURL() the preferred method? On Mon, Jul 8, 2013 at 4:44 AM,

Re: guidance with integrating yet another js library as custom component

2013-07-09 Thread George Ludwig
...@gmail.com wrote: I'm working on a custom component of the SigmaJS visualization library ( http://sigmajs.org). Specifically, this example: http://sigmajs.org/examples/** gexf_example.html http://sigmajs.org/examples/gexf_example.html Interesting! I've been studying

Re: guidance with integrating yet another js library as custom component

2013-07-09 Thread George Ludwig
Figueiredo thiag...@gmail.com wrote: On Tue, 02 Jul 2013 15:35:20 -0300, George Ludwig georgelud...@gmail.com wrote: I'm working on a custom component of the SigmaJS visualization library ( http://sigmajs.org). Specifically, this example: http://sigmajs.org/examples

Re: guidance with integrating yet another js library as custom component

2013-07-09 Thread Thiago H de Paula Figueiredo
On Tue, 09 Jul 2013 14:59:24 -0300, George Ludwig georgelud...@gmail.com wrote: I've got this working pretty well now, but I want to take it to the next level. When the user clicks on a node of the graph, I want to trigger a callback function on the java side. I assume this means attaching a

Re: guidance with integrating yet another js library as custom component

2013-07-09 Thread Lance Java
Paula Figueiredo thiag...@gmail.com wrote: On Tue, 02 Jul 2013 15:35:20 -0300, George Ludwig georgelud...@gmail.com wrote: I'm working on a custom component of the SigmaJS visualization library ( http://sigmajs.org). Specifically, this example: http

Re: guidance with integrating yet another js library as custom component

2013-07-08 Thread Geoff Callender
, 2013 at 12:01 PM, Thiago H de Paula Figueiredo thiag...@gmail.com wrote: On Tue, 02 Jul 2013 15:35:20 -0300, George Ludwig georgelud...@gmail.com wrote: I'm working on a custom component of the SigmaJS visualization library ( http://sigmajs.org). Specifically, this example: http

Re: guidance with integrating yet another js library as custom component

2013-07-08 Thread Lance Java
I think you want to @Inject the AssetSource to lookup the Asset. You can then call Asset.toClientUrl() to get an href for the asset which you can pass to your js library to use. On 4 Jul 2013 23:32, George Ludwig georgelud...@gmail.com wrote: Thiago, You're definitely right, it's now a JS

Re: guidance with integrating yet another js library as custom component

2013-07-08 Thread Thiago H de Paula Figueiredo
On Sun, 07 Jul 2013 16:59:18 -0300, George Ludwig georgelud...@gmail.com wrote: Here's my final (I hope block): What is happening is that when I try to load anyfile.anyextension using javascript, the tapestry app always returns the contents of index page, rather than the contents of the

Re: guidance with integrating yet another js library as custom component

2013-07-07 Thread George Ludwig
Here's my final (I hope block): What is happening is that when I try to load anyfile.anyextension using javascript, the tapestry app always returns the contents of index page, rather than the contents of the requested file. I also tried loading the file straight from the browser (i.e.,

Re: guidance with integrating yet another js library as custom component

2013-07-04 Thread Thiago H de Paula Figueiredo
Uncaught SyntaxError: Unexpected token sigma.parseGexf.js:3 Uncaught TypeError: Object #m has no method 'parseGexf' tap5-sigma.js:24 Are you sure sigma.parseGexf.js is correct? What's in line 24 of tap5-sigma.js? Anyway, it seems that now this error is completely about Sigma and

Re: guidance with integrating yet another js library as custom component

2013-07-04 Thread George Ludwig
Thiago, You're definitely right, it's now a JS issue. I figured out that somehow I had downloaded a garbled sigma.parseGexf.js file, which was part of the problem. Quick javascript question: when I pass the filename for parsing to the gexf parser, I currently pass it with relationship to the

Re: guidance with integrating yet another js library as custom component

2013-07-03 Thread George Ludwig
I'm at a point where it seems to me that it really should be working, yet I get this error in the javascript console: Uncaught SyntaxError: Unexpected token sigma.parseGexf.js:3 Uncaught TypeError: Object #m has no method 'parseGexf' tap5-sigma.js:24 The method it can't find, parseGexf, is in

guidance with integrating yet another js library as custom component

2013-07-02 Thread George Ludwig
I'm working on a custom component of the SigmaJS visualization library ( http://sigmajs.org). Specifically, this example: http://sigmajs.org/examples/gexf_example.html I'm starting with the simplest use case, which is to create a sigma viewer, passing it a single parameter, which is the name

Re: guidance with integrating yet another js library as custom component

2013-07-02 Thread Thiago H de Paula Figueiredo
On Tue, 02 Jul 2013 15:35:20 -0300, George Ludwig georgelud...@gmail.com wrote: I'm working on a custom component of the SigmaJS visualization library ( http://sigmajs.org). Specifically, this example: http://sigmajs.org/examples/gexf_example.html Interesting! I've been studying the got5

Re: guidance with integrating yet another js library as custom component

2013-07-02 Thread George Ludwig
, George Ludwig georgelud...@gmail.com wrote: I'm working on a custom component of the SigmaJS visualization library ( http://sigmajs.org). Specifically, this example: http://sigmajs.org/examples/** gexf_example.html http://sigmajs.org/examples/gexf_example.html Interesting! I've been

Re: guidance with integrating yet another js library as custom component

2013-07-02 Thread Thiago H de Paula Figueiredo
On Tue, 02 Jul 2013 17:25:14 -0300, George Ludwig georgelud...@gmail.com wrote: Thanks for the info Thiago! Couldn't you just @Import to get the JS files included and JavaScriptSupport.addScript() to invoke JS functions? That's the route I ended up taking to import the necessary js

Re: guidance with integrating yet another js library as custom component

2013-07-02 Thread George Ludwig
I think I got it...so to initialize my graph I need to pas it a file name...is it most appropriate to use JavaScriptSupport.addInitializerCall() so that the name of the file can be pulled from the @parameter of the component? On Tue, Jul 2, 2013 at 3:42 PM, Thiago H de Paula Figueiredo

Re: guidance with integrating yet another js library as custom component

2013-07-02 Thread Thiago H de Paula Figueiredo
On Tue, 02 Jul 2013 19:47:14 -0300, George Ludwig georgelud...@gmail.com wrote: I think I got it...so to initialize my graph I need to pas it a file name...is it most appropriate to use JavaScriptSupport.addInitializerCall() so that the name of the file can be pulled from the @parameter of

Re: guidance with integrating yet another js library as custom component

2013-07-02 Thread George Ludwig
Cool, thanks a lot! On Tue, Jul 2, 2013 at 3:50 PM, Thiago H de Paula Figueiredo thiag...@gmail.com wrote: On Tue, 02 Jul 2013 19:47:14 -0300, George Ludwig georgelud...@gmail.com wrote: I think I got it...so to initialize my graph I need to pas it a file name...is it most appropriate to

How to access a component(any text field) from custom component

2012-12-17 Thread SAMPY
the error to the component. -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-access-a-component-any-text-field-from-custom-component-tp5718802.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: Custom Component Id Other than Class Name

2012-10-14 Thread Lance Java
/Custom-Component-Id-Other-than-Class-Name-tp5716882p5716884.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h

Custom Component Id Other than Class Name

2012-10-13 Thread Bob Obringer
I've created a library of custom Tapestry components and have been unable to figure out how to use an ID other than class name to reference those components. The library I'm creating is part of a much larger framework and as such I have requirements for class names. These names are not what

Re: Custom Component Id Other than Class Name

2012-10-13 Thread Dragan Sahpaski
I guess it's possible that you put components into different virtual folders/packages and then make different library mapping names for them. http://tapestry.apache.org/component-libraries.html#ComponentLibraries-Step4%3AConfigurethevirtualfolder Cheers, Dragan Sahpaski On Sun, Oct 14, 2012 at

Use page message catalog in custom component

2012-04-17 Thread Beat Durrer
Hi all I am refactoring some page which have very similar forms. I thought it would be clever to make a custom component, which contains a collection of preconfigured form elements. Some of those fields need page specific field names (the field stay the same). How can I make page specific

Give Custom Component a context that is not Ljava.lang.Object;@828642

2012-04-13 Thread Chris Mylonas
Hi List, I tried giving a custom component a context (just a String) but when I go to use it on an event, I get the output to be [Ljava.lang.Object;@783b110a instead of 1234 which is what is set during rendering. The output html looks a little strange compared to the component's tml - like

Re: Give Custom Component a context that is not Ljava.lang.Object;@828642

2012-04-13 Thread Taha Hafeez Siddiqi
Hi Try t:context='currentExtension.number' instead of t:context='${currentExtension.number}' regards Taha On Apr 13, 2012, at 5:13 PM, Chris Mylonas wrote: Hi List, I tried giving a custom component a context (just a String) but when I go to use it on an event, I get the output

Re: Give Custom Component a context that is not Ljava.lang.Object;@828642

2012-04-13 Thread Chris Mylonas
the weekend - thanks On 13/04/2012, at 9:50 PM, Taha Hafeez Siddiqi wrote: Hi Try t:context='currentExtension.number' instead of t:context='${currentExtension.number}' regards Taha On Apr 13, 2012, at 5:13 PM, Chris Mylonas wrote: Hi List, I tried giving a custom component

Re: Give Custom Component a context that is not Ljava.lang.Object;@828642

2012-04-13 Thread Thiago H. de Paula Figueiredo
On Fri, 13 Apr 2012 08:50:26 -0300, Taha Hafeez Siddiqi tawus.tapes...@gmail.com wrote: Hi Hi! Try t:context='currentExtension.number' instead of t:context='${currentExtension.number}' Never never never ever use expansions when passing parameter values. :) Expansions always coerce

Re: Give Custom Component a context that is not Ljava.lang.Object;@828642

2012-04-13 Thread Chris Mylonas
never never never ... thanks for the tip. String is fine for me - it's not the most efficient way, but I've got a bit of a problem finding out where my dragged (and known) component got dropped. I need to convert from Ljava.lang.Object@234141 to string representation or what value it is

Re: Give Custom Component a context that is not Ljava.lang.Object;@828642

2012-04-13 Thread Chris Mylonas
bugger. i think it's null anyway...which is probably what you were both leading me to. i had another field in the event method named context anywaywhich was the URL of the event in the form of an Object[] i'm still back at square one - will review what i have done. thanks On 13/04/2012,

Re: Give Custom Component a context that is not Ljava.lang.Object;@828642

2012-04-13 Thread Thiago H. de Paula Figueiredo
On Fri, 13 Apr 2012 09:46:04 -0300, Chris Mylonas ch...@opencsta.org wrote: I need to convert from Ljava.lang.Object@234141 to string representation or what value it is (which happens to be a string) I set during render (so the HTML that is output is good enough for me). It seems to me

Re: Give Custom Component a context that is not Ljava.lang.Object;@828642

2012-04-13 Thread Chris Mylonas
On 13/04/2012, at 11:02 PM, Thiago H. de Paula Figueiredo wrote: On Fri, 13 Apr 2012 09:46:04 -0300, Chris Mylonas ch...@opencsta.org wrote: I need to convert from Ljava.lang.Object@234141 to string representation or what value it is (which happens to be a string) I set during render (so

Re: First Custom Component - Confused; source = null, but values populated mysteriously

2012-04-04 Thread Az Madu
Are you sure you're not him? You do have pity on us fools though ;-) Look at all that Tapestry 'bling'. Sorry for off topic, but just to also say Thanks to Mr T for answering everyone's questions and generally being helpful. I'm still learning lots of stuff and more so from other users'

Re: First Custom Component - Confused; source = null, but values populated mysteriously

2012-04-03 Thread Thiago H. de Paula Figueiredo
On Tue, 03 Apr 2012 00:02:36 -0300, Chris Mylonas ch...@opencsta.org wrote: That's awesome!!! Thanks a lot Thiago VM arguments for the unwashed are: -Dtapestry.production-mode=false -Dtapestry.compress-whitespace=false You can use contributeApplicationDefaults() in your AppModule instead

Re: First Custom Component - Confused; source = null, but values populated mysteriously

2012-04-03 Thread Chris Mylonas
thanks again Mr T tapestry could benefit from a rosetta stone of the equivalent methods of doing the same thing. i've spent a few hours today templating my first component with MarkupWriter.element()/end(), writeRaw() and .tml files. Each have their strengths. In this case e.g. VM arguments

Re: First Custom Component - Confused; source = null, but values populated mysteriously

2012-04-03 Thread Thiago H. de Paula Figueiredo
On Tue, 03 Apr 2012 10:06:38 -0300, Chris Mylonas ch...@opencsta.org wrote: thanks again Mr T heheheh I don't look like him much, but I sometimes read some questions in this mailing lists (fortunately, just a few) and think what's this jibber-jabber you're talking?, hehehe tapestry

Re: First Custom Component - Confused; source = null, but values populated mysteriously

2012-04-03 Thread Chris Mylonas
tapestry could benefit from a rosetta stone of the equivalent methods of doing the same thing. That's a good documentation suggestions . . . JIRA please? :) Usually, Tapestry avoids to provide more than one way of doing the same thing. On the other hand, sometimes the Tapestry

Re: Custom Component - @BeforeRenderBody not rendering stuff

2012-04-02 Thread Lance Java
Perhaps this diagram will help to debug http://tapestry.apache.org/component-rendering.html On Monday, 2 April 2012, Chris Mylonas ch...@opencsta.org wrote: Hi Tapestry List, After spending a few hours with render phases and all that comes with it (heartbeat/resources) I'm in a bit of a jam

Re: Custom Component - @BeforeRenderBody not rendering stuff

2012-04-02 Thread Lance Java
Tapestry's own loop component might give you some inspiration too http://tapestry.apache.org/5.3/apidocs/src-html/org/apache/tapestry5/corelib/components/Loop.html On Monday, 2 April 2012, Lance Java lance.j...@googlemail.com wrote: Perhaps this diagram will help to debug

Re: Custom Component - @BeforeRenderBody not rendering stuff

2012-04-02 Thread Chris Mylonas
Thanks My source (and whatever the iterator returns) are always null...so I'll have to find out why that happens. On 02/04/2012, at 10:14 PM, Lance Java wrote: Tapestry's own loop component might give you some inspiration too

First Custom Component - Confused; source = null, but values populated mysteriously

2012-04-02 Thread Chris Mylonas
Hello List, I'm confused. In setting up the debugger and carefully working through my code to watch the source and currentItem fields, I was always watching them set to null. I've followed through Grid Loop to find where the values are fetched (cachingDataSource for Grid) but there's a lot

Re: First Custom Component - Confused; source = null, but values populated mysteriously

2012-04-02 Thread Thiago H. de Paula Figueiredo
On Mon, 02 Apr 2012 23:02:17 -0300, Chris Mylonas ch...@opencsta.org wrote: Hello List, Hi! When I changed my component's beginRender() on a whim to see if I get an exception, I was surprised to see the value that the Grid prints to the screen was available to my component - yet

Re: First Custom Component - Confused; source = null, but values populated mysteriously

2012-04-02 Thread Chris Mylonas
oh! sounds good. I'm using 5.3.2 and my production mode symbol is the default because I've been ignorant to all that sort of stuff in the past, now it's biting me back. On 03/04/2012, at 12:36 PM, Thiago H. de Paula Figueiredo wrote: On Mon, 02 Apr 2012 23:02:17 -0300, Chris Mylonas

Re: First Custom Component - Confused; source = null, but values populated mysteriously

2012-04-02 Thread Chris Mylonas
That's awesome!!! Thanks a lot Thiago VM arguments for the unwashed are: -Dtapestry.production-mode=false -Dtapestry.compress-whitespace=false On 03/04/2012, at 12:36 PM, Thiago H. de Paula Figueiredo wrote: On Mon, 02 Apr 2012 23:02:17 -0300, Chris Mylonas ch...@opencsta.org wrote: Hello

Custom Component - @BeforeRenderBody not rendering stuff

2012-04-01 Thread Chris Mylonas
Hi Tapestry List, After spending a few hours with render phases and all that comes with it (heartbeat/resources) I'm in a bit of a jam that I don't know where to go next. I'm setting up a basic component called PhoneView that receives an ArrayList of Phone objects...similar to the Tree example

Create Custom Component + Tapestry 5 API Docs - best place to view?

2012-03-29 Thread Chris Mylonas
Hi Tapestry List, I've found a couple of days to create a custom component! My references are for the task are: https://code.google.com/p/shams/wiki/Component https://tapestry.apache.org/component-rendering.html https://wiki.apache.org/tapestry/Tapestry5HowToCreateYourOwnComponents Looking

Re: Create Custom Component + Tapestry 5 API Docs - best place to view?

2012-03-29 Thread Chris Mylonas
Hmmm... I changed search engines for a better result :) http://tapestry.apache.org/5.3.2/apidocs/ That should get me looking at more modern api docs.. Thanks On 29/03/2012, at 5:07 PM, Chris Mylonas wrote: Hi Tapestry List, I've found a couple of days to create a custom component! My

Re: Boolean Return Values in Custom Component Events

2012-03-22 Thread Steve Eynon
Food for future thought - the way the event return value is used for multiple purposes and may, or may not be passed to your callback seems a little messy. Currently we have - in ComponentPageElementImpl: ComponentEventCallback wrapped = new ComponentEventCallback() { public boolean

Boolean Return Values in Custom Component Events

2012-03-20 Thread Steve Eynon
Hi, I wish to raise an event from a component and abort further processing if true is returned from any event handlers - only I don't know how! ComponentResources.triggerEvent() returns true if *any* event handler was invoked, regardless of what it returns. Passing a ComponentEventCallback

Re: Rendering Custom Component via Zone

2011-10-21 Thread Times2
() { componentResources.triggerEvent(DesiredMethodName, null, callback); } -- View this message in context: http://tapestry.1045711.n5.nabble.com/Rendering-Custom-Component-via-Zone-tp4918130p4925552.html Sent from the Tapestry - User mailing list archive at Nabble.com

Rendering Custom Component via Zone

2011-10-19 Thread Times2
Hi, I have problem with replacing one custom component with another one via AJAX, using zone component. Replacing first component with second should happen on action inside first component. On parent page i have one block(with second component inside him) , zone component and first component

Re: Rendering Custom Component via Zone

2011-10-19 Thread Thiago H. de Paula Figueiredo
On Wed, 19 Oct 2011 13:03:03 -0200, Times2 sasa.s.trifuno...@gmail.com wrote: Hi, Hi! I have problem with replacing one custom component with another one Remember Tapestry doesn't make any difference between components provided by it and components provided by you. ;) via AJAX

Re: Custom component

2011-10-06 Thread Giulio Micali
component with a method that will getting called when the enclosing form is being submitted ? In that method, I want to change some parameter of that custom component. Thanks, Rendy. - To unsubscribe, e-mail

Custom component

2011-10-02 Thread Rendy Tapestry
Hi All, Is it possible to have a custom component with a method that will getting called when the enclosing form is being submitted ? In that method, I want to change some parameter of that custom component. Thanks, Rendy.

Re: Custom component

2011-10-02 Thread Taha Hafeez Siddiqi
, Rendy Tapestry wrote: Hi All, Is it possible to have a custom component with a method that will getting called when the enclosing form is being submitted ? In that method, I want to change some parameter of that custom component. Thanks, Rendy

Re: Custom component

2011-10-02 Thread Rendy Tapestry
. Otherwise you can @Inject FormSupport and then use FormSupport#storeAndExecute() to execute a ComponentAction regards Taha On Oct 2, 2011, at 9:18 PM, Rendy Tapestry wrote: Hi All, Is it possible to have a custom component with a method that will getting called when the enclosing

Re: ProgressiveDisplay in a custom component?

2011-06-24 Thread Massimo Lusetti
On Thu, Jun 23, 2011 at 2:20 PM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: ProgressiveDisplays should handle the events and trigger them again. I guess you can find some examples in the mailing list or in JumpStart. Nice memory Thiago... ;-) Cheers -- Massimo

ProgressiveDisplay in a custom component?

2011-06-23 Thread antalk
Hi all, I have a component which in itself contains a 'ProgressiveDisplay' component, however it does not catch the 'PROGRESSIVE_DISPLAY' event in there but i want to handle this in the page that contains my custom component. Is this possible ? If so how and what should the annotation @OnEvent

Re: ProgressiveDisplay in a custom component?

2011-06-23 Thread Thiago H. de Paula Figueiredo
On Thu, 23 Jun 2011 08:17:17 -0300, antalk ant...@intercommit.nl wrote: Hi all, Hi! I have a component which in itself contains a 'ProgressiveDisplay' component, however it does not catch the 'PROGRESSIVE_DISPLAY' event in there but i want to handle this in the page that contains my custom

Re: ProgressiveDisplay in a custom component?

2011-06-23 Thread antalk
Thanks ! Hadn't thought of that, works beautiful ! antal -- View this message in context: http://tapestry.1045711.n5.nabble.com/ProgressiveDisplay-in-a-custom-component-tp4517111p4517313.html Sent from the Tapestry - User mailing list archive at Nabble.com

How to create a custom component

2010-12-15 Thread hese
Hi, Can any one tell me where I can find a T5 example of how to build a custom component and what the different files I should create are? My need is - I have a select box that populates from a database (Something like a country list...). And I want to be able to include this select box in any

Re: How to create a custom component

2010-12-15 Thread Robert Zeigler
On Dec 15, 2010, at 12/1511:47 AM , hese wrote: Hi, Can any one tell me where I can find a T5 example of how to build a custom component and what the different files I should create are? My need is - I have a select box that populates from a database (Something like a country list

Re: How to create a custom component

2010-12-15 Thread hese
Thanks for the quick response Robert! Looks pretty simple (probably because you've explained it well). Wil try one of those! -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-create-a-custom-component-tp3306682p3306714.html Sent from the Tapestry - User mailing

Re: How to create a custom component

2010-12-15 Thread hese
I tried creating a custom component as you have mentioned...The problem is the select box is not appearing on the page. Only the label 'Test:' I created for it appears. Where am I going wrong? This my tml t:container xmlns:t=http://tapestry.apache.org/schema/tapestry_5_2_0.xsd

Re: How to create a custom component

2010-12-15 Thread Robert Zeigler
Apologies... that tapestry_5_2_0.xsd should be tapestry_5_1_0.xsd. Robert On Dec 15, 2010, at 12/153:01 PM , hese wrote: I tried creating a custom component as you have mentioned...The problem is the select box is not appearing on the page. Only the label 'Test:' I created for it appears

Re: How to create a custom component

2010-12-15 Thread hese
That one letter made a big difference...it worked! Thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-create-a-custom-component-tp3306682p3307001.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: Grids embedded in custom component interfer with each other

2010-12-15 Thread sprabhu
-- View this message in context: http://tapestry-users.832.n2.nabble.com/Grids-embedded-in-custom-component-interfer-with-each-other-tp5376183p5838045.html Sent from the Tapestry Users mailing list archive at Nabble.com

Re: Creating custom component

2010-11-08 Thread Christophe Cordenier
Hi ! 2010/11/6 Josh Kamau joshnet2...@gmail.com Thanks Sven, This is exactly what i am talking about. How am i supposed to know that something like t:content exists? what what else is out there? and what else am i using the wrong way? you get my point.? I think the Hotel-booking

Tapestry custom component + hibernate

2010-11-08 Thread Elin
Is it possible to create a component that uses some hibernate entities, package it into a separated .jar and then import this component into my main project being able to autocreate this new entities? Something like creating my custom component package following this tutorial http

Re: Tapestry custom component + hibernate

2010-11-08 Thread Thiago H. de Paula Figueiredo
On Mon, 08 Nov 2010 10:06:20 -0200, Elin polit...@gmail.com wrote: Is it possible to create a component that uses some hibernate entities, package it into a separated .jar and then import this component into my main project being able to autocreate this new entities? Yes. -- Thiago H. de

Re: Tapestry custom component + hibernate

2010-11-08 Thread Elin
Thx a lot. I will keep investigating now until it works correctly now that i know its possible. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-custom-component-hibernate-tp3254963p3254992.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: Tapestry custom component + hibernate

2010-11-08 Thread Elin
advice? Thx in advance -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-custom-component-hibernate-tp3254963p3255669.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: Tapestry custom component + hibernate

2010-11-08 Thread Elin
Problem solved. There was some kind of conflict with a previous version of my entity... its working now ;) -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-custom-component-hibernate-tp3254963p3255809.html Sent from the Tapestry - User mailing list archive

Re: Creating custom component

2010-11-07 Thread Guerin Laurent
In addition to the Tapestry documentation and if you use Eclipse, you should have a look at : http://wiki.apache.org/tapestry/Tapestry5JSPEditorEclipse This will provide you code completion on components in your tml files, with documentation on component itself and also on the component

Creating custom component

2010-11-06 Thread Josh Kamau
Hi guys; I am trying to compose a page but assembling various sections e.g the menu bar, the header and the footer as separate components. I have my Index page which inherits from the main layout. Now i have made the menu bar as follows menubar.tml html t:type=menubar xmlns:t=

Re: Creating custom component

2010-11-06 Thread Thiago H. de Paula Figueiredo
On Sat, 06 Nov 2010 08:36:40 -0200, Josh Kamau joshnet2...@gmail.com wrote: Hi guys; Hi! Don't use the html tag in components' templates (unless you're creating a Layout-style one). And don't forget that the name of the template is case-sensitive, so MenuBar.java - MenuBar.tml. --

Re: Creating custom component

2010-11-06 Thread Josh Kamau
thanks Thiago, I have fixed the component as follows : t:menubar xmlns:t=http://tapestry.apache.org/schema/tapestry_5_1_0.xsd; h2I am a menubar/h2 /t:menubar now how do i add it to my page? i have added it by putting t:menubar/ or div t:type=menubar/ and its not appearing. this is my index

Re: Creating custom component

2010-11-06 Thread Thiago H. de Paula Figueiredo
On Sat, 06 Nov 2010 08:47:03 -0200, Josh Kamau joshnet2...@gmail.com wrote: t:menubar xmlns:t=http://tapestry.apache.org/schema/tapestry_5_1_0.xsd; h2I am a menubar/h2 /t:menubar You're trying to use the component in it itself. The root element should be div. now how do i add it

Re: Creating custom component

2010-11-06 Thread Sven Homburg
you can also use this template code: html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_1_0.xsd; body t:content h2I am a menubar/h2 /t:content /body /html the t:content let tapestry know, that all code between t:content and /t:content is relevant for your component and strips all away

Re: Creating custom component

2010-11-06 Thread Josh Kamau
Thanks Sven, This is exactly what i am talking about. How am i supposed to know that something like t:content exists? what what else is out there? and what else am i using the wrong way? you get my point.? I think the Hotel-booking application should be made complicated enough to use as many

Re: Creating custom component

2010-11-06 Thread Thiago H. de Paula Figueiredo
On Sat, 06 Nov 2010 12:48:38 -0200, Josh Kamau joshnet2...@gmail.com wrote: This is exactly what i am talking about. How am i supposed to know that something like t:content exists? The documentation needs improvement, no doubt, but this information is no hard to find: it's under

Re: Grids embedded in custom component interfer with each other

2010-08-06 Thread olip
-users.832.n2.nabble.com/Grids-embedded-in-custom-component-interfer-with-each-other-tp5376183p537.html Sent from the Tapestry Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr

  1   2   3   >