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
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
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
/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
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
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
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
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
, 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
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
; 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
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
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
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
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
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
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
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
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,
...@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
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
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
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
, 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
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
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
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.,
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
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
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
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
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
, 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
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
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
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
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
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
/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
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
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
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
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
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
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
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
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
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,
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
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
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'
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
() {
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
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
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
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
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.
, 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
.
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
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
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
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
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
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
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
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
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
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
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
--
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
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
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
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
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
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
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
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
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=
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.
--
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
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
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
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
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
-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 - 100 of 203 matches
Mail list logo