c class TestEmbeddedGrid {
>
>@Property
>@Persist
>private ArrayList numberGrids;
>
>@Property
>private Integer loopGridMember;
>
>
>@SetupRender
>public void onSetupRendering() {
> numberGrids=new ArrayList();
>
ach grid
for(int i = 0 ; i < amountRandNum ; i++) {
numberGrids.add(50+new Random().nextInt()%100);
}
}
}
===
--
View this message in context:
http://tapestry-users.832.n2.nabble.com/Grids-embedded-in-custom-component-interfer-with-each-other-tp5376183p53763
let us see you component code/template
with regards
Sven Homburg
Founder of the Chenille Kit Project
http://chenillekit.codehaus.org
2010/8/5 olip
>
> Hi!
>
> I have a problem or suggestion.
>
> I have made a custom component which has a Grid embedded.
>
> Now I
Hi!
I have a problem or suggestion.
I have made a custom component which has a Grid embedded.
Now I render multiple times my cusom components.
The GridPager of those rendered Grids interfer with each other.
If I click on one Grip page the others will be changed too.
If I look into the html
o: Tapestry users
> Subject: Re: Access validation constraints within custom component
>
> Just for information if you are using a custom component then i guess
> parameters, ComponentResources gives also access to parameter definition
> and
> annotations...
>
> 2010/6
: Christophe Cordenier [mailto:christophe.corden...@gmail.com]
Sent: 22 June 2010 09:23
To: Tapestry users
Subject: Re: Access validation constraints within custom component
Just for information if you are using a custom component then i guess
parameters, ComponentResources gives also access to
Just for information if you are using a custom component then i guess
parameters, ComponentResources gives also access to parameter definition and
annotations...
2010/6/22 Jim O'Callaghan
> Thanks Christophe - that should be enough to get me going. I don't think
> @DataTyp
Thanks Christophe - that should be enough to get me going. I don't think
@DataType would cover my scenario - I am using the same custom component to
render a type in multiple classes to allow transparent retrieval from a db
depending on some user setting - the type makes the selection of da
t; To: Tapestry users
> Subject: Re: Access validation constraints within custom component
>
> Hi
>
> 2010/6/21 Jim O'Callaghan
>
> > Is there a way to access validation constraints within custom components?
> > Ex. min length / max length specified using the @Valid
most useful.
-Original Message-
From: Christophe Cordenier [mailto:christophe.corden...@gmail.com]
Sent: 22 June 2010 07:29
To: Tapestry users
Subject: Re: Access validation constraints within custom component
Hi
2010/6/21 Jim O'Callaghan
> Is there a way to access validation const
Hi
2010/6/21 Jim O'Callaghan
> Is there a way to access validation constraints within custom components?
> Ex. min length / max length specified using the @Validate annotation on
> fields? I'm trying to render different output depending on some
> constraints. Thanks.
>
Can you give more detai
Is there a way to access validation constraints within custom components?
Ex. min length / max length specified using the @Validate annotation on
fields? I'm trying to render different output depending on some
constraints. Thanks.
Regards,
Jim.
any
additional work when using embedded jetty
--
View this message in context:
http://old.nabble.com/Class-reloading-in-custom-component-library-tp28766834p28779827.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---
On Fri, 04 Jun 2010 09:28:45 -0300, Henrik Schlanbusch
wrote:
The problem is that the compiled classes are not always picked up
by tapsetry, so I have to look a bit more into this.
As long as the classes are recompiled and the .class files are put in some
folder included in the classpath,
Inge Solvoll gmail.com> writes:
>
> I'm using file synch in eclipse to copy the newly compiled files to
> webapp/WEB-INF/classes. If the class is found there, it
overrides the one in
> the jar.
>
> On Fri, Jun 4, 2010 at 7:56 AM, Nicolas Bouillon bouil.org> wrote:
>
> > I'm very interested t
I'm using file synch in eclipse to copy the newly compiled files to
webapp/WEB-INF/classes. If the class is found there, it overrides the one in
the jar.
On Fri, Jun 4, 2010 at 7:56 AM, Nicolas Bouillon wrote:
> I'm very interested too if there is a solution to this problem.
>
> On Thu, 3 Jun 20
I'm very interested too if there is a solution to this problem.
On Thu, 3 Jun 2010 12:33:50 + (UTC), Henrik Schlanbusch
wrote:
> Hi
>
> I have setup a project in maven 2 where the lowest project
> (parent) has two sub modules, one with the webapp
> (tapestry 5) and one with a separate cust
Hi
I have setup a project in maven 2 where the lowest project
(parent) has two sub modules, one with the webapp
(tapestry 5) and one with a separate custom made
component library. This means that I have three
modules to build (parent, webapp and components).
Webapp has a dependency to compon
return XYZ; // StreamResponse of file for selected
type.
}
}
In my case onSelectedFromDownload and onSuccess are in 2 different classes,
how do I get onSuccess from the page class to notify the custom component to
download the file?
The quick and dirty hack that I used was to add selectedType as a pa
In my case onSelectedFromDownload and onSuccess are in 2 different
classes, how do I get onSuccess from the page class to notify the custom
component to download the file?
They could be in the component class. I can't see why not.
I would have a hidden TextField that would have its va
}
In my case onSelectedFromDownload and onSuccess are in 2 different classes,
how do I get onSuccess from the page class to notify the custom component to
download the file?
The quick and dirty hack that I used was to add selectedType as a parameter
of the custom component so the value was availab
If you use the submit component, it will fire a selected event. By handling that, you can detect
which button was clicked and act accordingly.
HTH,
Uli
Am 26.11.2009 23:12 schrieb CarmenG:
I have a page with a form, nested within the form is a custom component with
a select box and a submit
I have a page with a form, nested within the form is a custom component with
a select box and a submit button. When the submit button is clicked I want
to download either a PDF or Excel file based on the value of the select box.
I know the event for the submit button cannot return a value and I
thanks all of friends! I got!
On Sat, Sep 26, 2009 at 4:29 AM, Julian Wood wrote:
> I also find this JumpStart page invaluable:
> http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/navigation/whatiscalledandwhen
>
> J
>
> On Fri, Sep 25, 2009 at 10:58 AM, Andreas Andreou wrote:
>
>>
I also find this JumpStart page invaluable:
http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/navigation/whatiscalledandwhen
J
On Fri, Sep 25, 2009 at 10:58 AM, Andreas Andreou wrote:
> There's a nice diagram at
> http://tapestry.apache.org/tapestry5/guide/rendering.html
>
> And th
void loadData() {
>> this.data=serv.list();
>> }
>>
>> 2009/9/25 cleverpig :
>>> hi,friends!
>>>
>>> i got a trouble thing:how to do initialization work when custom
>>> component was called?
>>> i mean when i made a
Em Fri, 25 Sep 2009 13:39:42 -0300, cleverpig
escreveu:
ok! thanks! it's working!
by the way:what's the page or component's render order?
@SetupRender/beginRender/endRender/@BeforeRenderTemplate/@AfterRenderTemplate
what's the order?
Please read the documentation:
http://tapestry.apache.o
gt; 2009/9/25 cleverpig :
>> hi,friends!
>>
>> i got a trouble thing:how to do initialization work when custom
>> component was called?
>> i mean when i made a custom component which need some parameters,and
>> these parameters will be inject in the page t
();
}
2009/9/25 cleverpig :
> hi,friends!
>
> i got a trouble thing:how to do initialization work when custom
> component was called?
> i mean when i made a custom component which need some parameters,and
> these parameters will be inject in the page that the custom c
hi,friends!
i got a trouble thing:how to do initialization work when custom
component was called?
i mean when i made a custom component which need some parameters,and
these parameters will be inject in the page that the custom component
hold on.
such as:
the custom component class:
public class
Hi Howard,
> "In fact, if you look at the rendered URL you'll see that every time
> the Image component rendered, it rendered the same URL."
Yes, it's always the same image (the last one) in grid component.
> "The solution is to use event context to identify the book, or in some
> other way, iden
Em Fri, 08 May 2009 13:15:21 -0300, Eric Ma escreveu:
Yes, that did the trick. Thanks for the suggestion. Looks like the
lifecycle of a component has changed between T5.1 and T5.0.
The lifecycle itself hasn't changed, but its internal implementation was
optimized by Howard since 5.1
--
ge) resources.getPage();
> }
> return this.page;
> }
>
> Thiago
>
Yes, that did the trick. Thanks for the suggestion. Looks like the
lifecycle of a component has changed between T5.1 and T5.0.
--
View this message in context:
http://www.nabble.com/-T5.1--Custom-component-now-causes-N
Try using lazy loading on getPage(), avoing calling
resources.getPage() in your field initializer. Something like:
public BasePage getPage() {
if (page == null) {
page = (BasePage) resources.getPage();
}
return this.page;
}
--
Thiago
-
com/file/p23448232/component_code.txt component_code.txt
--
View this message in context:
http://www.nabble.com/-T5.1--Custom-component-now-causes-NullPointerException-tp23447956p23448232.html
Sent from the Tapestry - User mailing list arc
It looks like your base component class invokes Component.getPage()
inside its constructor. Am I right? Could you post its code here?
--
Thiago
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional comma
urcesImpl.getPage(InternalComponentResourcesImpl.java:273)
> at
> com.db.grade.web.tapestry.components.BaseComponent.initializer(BaseComponent.java:22)
> at
> com.db.grade.web.tapestry.components.BaseComponent.(BaseComponent.java)
> at
> com.db.grade.web.tapestry.co
ementImpl.java:627)
at
org.apache.tapestry5.internal.pageload.ComponentAssemblerImpl.assembleEmbeddedComponent(ComponentAssemblerImpl.java:141)
... 117 more
Any clues?
--
View this message in context:
http://www.nabble.com/-T5.1--Custom-component-now-causes-NullPointerException-tp23
ot;)
public void updateDayOptions(IRequestCycle cycle) {
cycle.getResponseBuilder().updateComponent(getComponent("day").getClientId());
}
}
I use this custom component "twice" in one page.
And the first component which id is "month" works fine when the event
t;> context and classpath) and AssetFactory, both pulling the images from
>> the database.
>>
>> --
>> Thiago
>>
>>
>
> --
> View this message in context:
> http://n2.nabble.com/-T5.0.18--Bug--%3A-Null-property-problem-with-the-custom-component-insi
ble with your
>> requirements?
>
> Maybe a better solution would be to provide an Asset binding (like
> context and classpath) and AssetFactory, both pulling the images from
> the database.
>
> --
> Thiago
>
>
--
View this message in context:
http://n2.nabbl
-
Von: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com]
Gesendet: Sonntag, 15. Februar 2009 12:47
An: Tapestry users
Betreff: Re: [T5.0.18] Bug? : Null property problem with the custom component
inside a grid
On Sun, Feb 15, 2009 at 8:21 AM, Otho wrote:
> One possible solution is to st
On Sun, Feb 15, 2009 at 8:21 AM, Otho wrote:
> One possible solution is to store the images in the filesystem instead of
> the database and store only the filename in the db from where you can
> construct a path. But I think that isn't compatible with your requirements?
Maybe a better solution wo
gt; Thanks anyway for the reply.
> iren
>
>
>
>
> Otho wrote:
> >
> > Maybe some problem in the setup of the grid page?
> >
> > Like forgetting the @Persist on the books list?
> >
> > Otho
> >
> >
>
> --
> View this message
t, though :-)).
Thanks anyway for the reply.
iren
Otho wrote:
>
> Maybe some problem in the setup of the grid page?
>
> Like forgetting the @Persist on the books list?
>
> Otho
>
>
--
View this message in context:
http://n2.nabble.com/-T5.0.18--Bug--%3A-Null-pr
Maybe some problem in the setup of the grid page?
Like forgetting the @Persist on the books list?
Otho
Hello,
I have implemented a custom component to display (Blob) images. While it
works without a problem inside BeanEditForm and BeanDisplay, inside a Grid a
NullPointerException occurs while trying to pass a property of the actual
object (row) at the grid as a parameter to the component.
The
Thank you so much Kris for your answer.
The Tapestry 5 BeanEditor source code gives some kind of vertigo, but
I will look at it, in order to better understand what you mean.
In the meantime, I had another idea: using some .tml inside my
component with a and statements inside that nest some
/...
compoinent
...
i hope this helped
g,
kris
"Edouard sur edouardmercier.fr" <[EMAIL PROTECTED]>
Gesendet von: [EMAIL PROTECTED]
25.09.2008 18:50
Bitte antworten an
"Tapestry users"
An
users@tapestry.apache.org
Kopie
Thema
Creating inner components on the fly
Hello.
I've been digging the web with no success, but I'm a Tapestry 5 newbie
(running the v5.0.15), thus maybe I missed something.
I'm currently attempting to develop a custom Tapestry component that
aims at inserting HTML "select/checkbox/textfield" tags into an
existing HTML form. Let's say th
Hi All,
I have been struggling with the following problem for quite a
while. I
have a custom component for which I have defined a parameter with a
binding type of property. I have the component within a form that is
within a loop on my page. The parameter of my component is bound to
the
val
Hi All,
I have been struggling with the following problem for quite a while. I
have a custom component for which I have defined a parameter with a
binding type of property. I have the component within a form that is
within a loop on my page. The parameter of my component is bound to the
mark your parameters with @Persist like this:
@Persist
@Property
private Long myParameter;
@Component(parameters = {"value=myParameter"})
private MyCustomComponent blablub
2008/7/1 Michał U <[EMAIL PROTECTED]>:
>
> Hi,
>
> I am quite new to tapestry and I found a p
Hi,
I am quite new to tapestry and I found a problem with custom component.
How can I make parameters of my component persistent? When I reload the page
I change value of page properties bound to those parameters. In my component
I still habe same value as when the page have been loaded for the
Hi all,
I have a problem on custom component. i think i have left out something or
do something wrong.
my layout.tml header and footer 's wording didn't come out at the start.tml
render.
only show out "Would you like to Log In?'"
can someone help me? :(
Rega
Hi all,
I have a problem on custom component. i think i have left out something or do
something wrong.
my layout.tml header and footer 's wording didn't come out at the start.tml
render.
only show out "Would you like to Log In?'"
can someone help me? :(
Rega
Hi all,
I have a problem on custom component. i think i have left out something or
do something wrong.
my layout.tml header and footer 's wording didn't come out at the start.tml
render.
only show out "Would you like to Log In?'"
can someone help me? :(
Rega
})
@Validate(...)
private TextField emailText;
Toby
- Original Message
From: Toby Hobson <[EMAIL PROTECTED]>
To: users@tapestry.apache.org
Sent: Tuesday, 13 May, 2008 8:37:57 PM
Subject: Regexp within a custom component
Hello again :)
I've just added some validation to my cus
Hello again :)
I've just added some validation to my custom component and I'm having trouble
with the regexp validator. As per the "forms" tutorial on the T5 site I've
placed a @Validate annotation on my getEmail() accessor:
@Validate("required,regex
"But tapestry is complaining because it can't find a property called
home on the ViewPhoto page "
- Original Message
From: Toby Hobson <[EMAIL PROTECTED]>
To: users@tapestry.apache.org
Sent: Thursday, 1 May, 2008 7:07:22 PM
Subject: T5 custom component params
Sorry ... that should read
"But tapestry is complaining because it can't find a property called home on
the ViewPhoto page "
- Original Message
From: Toby Hobson <[EMAIL PROTECTED]>
To: users@tapestry.apache.org
Sent: Thursday, 1 May, 2008 7:07:22 PM
Subject: T5 cu
try
or declare the page paremeter in component as
@Parameter(defaultPrefix = TapestryConstants.LITERAL_BINDING_PREFIX)
private String page;
2008/5/1 Toby Hobson <[EMAIL PROTECTED]>:
> I am trying to create my first tapestry component. Basically I want to
> take a collection of keywords and fo
I am trying to create my first tapestry component. Basically I want to take a
collection of keywords and for each keyword generate a link to a tapestry page.
I'd like to use the component in page templates like
I have written the component class and template:
public class Keywords {
@Param
#x27;m fairly certain it should work.
>
> Good luck,
> Josh
>
> On Jan 30, 2008 9:11 AM, Xinhua <[EMAIL PROTECTED]> wrote:
>
>>
>> I create a custom component (AttrLable) which extends AbstractField. In
>> the
>> BeginRender(MarkupWriter writer), I wil
the job
But I think the answer of Josh Canfield is better
http://www.nabble.com/Tapestry-5---Custom-Component-Validation-tt15186101.html#a15186101
Because you can track the error within the component
Xinhua a écrit :
This is what I am trying to do. But I could not pass the error flag from pa
luck,
Josh
On Jan 30, 2008 9:11 AM, Xinhua <[EMAIL PROTECTED]> wrote:
>
> I create a custom component (AttrLable) which extends AbstractField. In
> the
> BeginRender(MarkupWriter writer), I will need to override the label tag
> based on whether there is an error in the
Courcy wrote:
>
> I you have control on the validation why not putting a flag in your
> component when a validation error happen.
>
> Your render process would depend of this flag.
>
> does it help ?
>
> Xinhua a écrit :
>> I create a custom component (AttrLable
I you have control on the validation why not putting a flag in your
component when a validation error happen.
Your render process would depend of this flag.
does it help ?
Xinhua a écrit :
I create a custom component (AttrLable) which extends AbstractField. In the
BeginRender(MarkupWriter
I create a custom component (AttrLable) which extends AbstractField. In the
BeginRender(MarkupWriter writer), I will need to override the label tag
based on whether there is an error in the input field which is associated to
this label.
On the form submission, I will do the form validation and
Hi,
I was wondering whether it would be possible to add custom
"tags"/"features" to component/pages specification. It seems not to be
possible (or at least "not suggested") as SpecificationParser
id pretty hardcoded.
I guess the only way to have custom enhancements of a Component would
be to wor
with your errors shown in the Errors component.
-Filip
Will Norris skrev:
As usual, I'm sure I'm just missing something here... I can't quite
figure how to do validation of a custom component. I basically
want to do what is described here[0] about using onSuccess(), but
in a c
here... I can't quite
figure how to do validation of a custom component. I basically want to
do what is described here[0] about using onSuccess(), but in a component
rather than a page. I basically have a PasswordForm component which
itself has a form, and that needs to verify that the &quo
As usual, I'm sure I'm just missing something here... I can't quite
figure how to do validation of a custom component. I basically want
to do what is described here[0] about using onSuccess(), but in a
component rather than a page. I basically have a PasswordForm
compone
p;id=1&property=splash ) top left
</tt><tt>no-repeat;
</tt><pre style="margin: 0em;">
}
div#page {
}
<!--
dojo.require("tapestry.widget.Widget");
dojo.require("dojo.widget.*");
eName=bae.parts.splash.jpg&id=1&property=splash
) top left no-repeat;
}
div#page {
}
<!--
dojo.require("tapestry.widget.Widget");
dojo.require("dojo.widget.*");
dojo.require("dojo.html"
}
<!--
dojo.require("tapestry.widget.Widget");
dojo.require("dojo.widget.*");
dojo.require("dojo.html");
// -->
Best regards
Ken in nashua
From: [EMAIL PROTECTED]
To: user
Hi Norm,
Below is text from a CustomHead I wrote. It does header/splash/icon images for
appfuse css-framework. Integrated to trails features I developed of course.
It will give you some insights for the shell derivative.
I am a trails developer. So anything trails you might want to tailor.
Ca
I'm writing a custom component that implements a highly specific
menu / dashboard display for my application. Previously this was done
via JSP files included into each page. To implement this in Tapestry,
I need to generate the HTML for the body of the menu (done via the
component tem
Create a component with it's own template. However, you may find that once
you are creating your own component, it so easy to replicate the things that
ActionLink does, that you'll do it inline.
On 9/10/07, Doublel <[EMAIL PROTECTED]> wrote:
>
> Yes that is true ,I found this point also, If i wan
uh,
I'm not sure, but i belive
you'll need to change your approach to the problem,
what are you trying to acheive ?
Davor Hrg
On 9/10/07, Doublel <[EMAIL PROTECTED]> wrote:
>
> Yes that is true ,I found this point also, If i want to write tapestry
> core
> component,How to do??
>
> use
> @compon
Yes that is true ,I found this point also, If i want to write tapestry core
component,How to do??
use
@component(parameters={"id=literal:splitPage"})
private Actionlink link1;
getter /setter^^
then I didn't know how to use link1?? how to nest into it ?
2007/9/10, Davor Hrg <[EMAIL PROTECTED]
I write a custom componnet page ,in beginRender method I want to get a
image link ,so the code is :
writer.element("a",
"t:type","ActionLink"
,"context",totalPage,"t:id","splitPage");
writer.element("img", "src",this.getLast02());
I belive writer only writes elements
it doesn't handle template syntax
t:id and t:type belong to the template
Davor Hrg
On 9/10/07, Doublel <[EMAIL PROTECTED]> wrote:
>
> I write a custom componnet page ,in beginRender method I want to get a
> image link ,so the code is :
> writer.element("a",
>
I'm sorry :(
I must say I'm thrilled you answered my question.
here is more details about my component:
Layout.jwc:
http://www.catb.org/~esr/faqs/smart-questions.html
I'm also perplexed that people with questions don't take even a moment
to try and see their problem from an outsider's perspective, given
that an outsider is needed to help them. This is a reasonable
description of what they're trying to do, but
I forgot to mention, it is written in Tapestry 4.1.
Mirko
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I made a component which have some logic inside its template. It gets a list of
components inside her and render title, (which it gets from properties file from
a key based on nested component's id) and actual component, inside a table. It
has a number of columns as parameter. I used it till now w
ecification:
> > > >
> > > >
> > > > ...
> > > >
> > > > ...
> > > >
> > > >
> > > > Then in component template can be component referenced e.g.:
> > > >
> > > >
> > > >
&
; > Jirka
> > >
> > > > I am working with tap 4.0, in tomcat 5.5.14 with jdk 1.5.
> > > >
> > > > I would like to create my own component. This component should
receive
>
0, in tomcat 5.5.14 with jdk 1.5.
> > >
> > > I would like to create my own component. This component should receive
> > a
> > > parameter (not required) that specify another component (in this case
> > is a
> > > submit button
component (in this case
> is a
> > submit button component), I would like to use the container defined
> > component in the custom component, but I don't know how to do this.
> I'll
> > try
> > to explain this more carefully with an example:
> &
ter (not required) that specify another component (in this case is
a
> submit button component), I would like to use the container defined
> component in the custom component, but I don't know how to do this. I'll
> try
> to explain this more care
te my own component. This component should receive a
> parameter (not required) that specify another component (in this case is a
> submit button component), I would like to use the container defined
> component in the custom component, but I don't know how to do this. I'll
component in the custom component, but I don't know how to do this. I'll try
to explain this more carefully with an example:
containerPage.page
...
listener:onSubmit
componentPage.jwc (here is my biggest doubt!)
...
...
componentPage.html
...
Thank you Ed for your fast answer. This looks like it solve all my problems
//Jacob
--
View this message in context:
http://www.nabble.com/Custom-Component---best-solution--tf2220888.html#a6156680
Sent from the Tapestry - User forum at Nabble.com
you might want to take a look at
http://www.tapestrycomponents.org/Tassel/app?service=external/ViewComponent&sp=SJSCookMenu
for some existing menus and how this could be accomplished.
On 9/5/06, jake123 <[EMAIL PROTECTED]> wrote:
Hi, I am trying to create a custom component that w
Hi, I am trying to create a custom component that will create a menu and
submenus to that menu on a completly dynamic web page. The entire site are
build up with "components" and I get the entire structure from the database.
In the web layer I have a Object called SiteDTO that looks
Brian Doherty wrote:
Hi,
Yes, I understand what you are saying here. I do not understand the
following. If I use instance variables to pass the storeLocation into my
component it works fine. storeLocation is passed through to the
component and getLocationOfStore() contains the location I passe
Is it an ExternalPage parameter that you are trying to access in
pageValidate()/pageBeginRender() ?
I remember having trouble with the order of callbacks for external pages.
You might find that the you are accessing the parameter before
activateExternalPage() has been called.
> Hi,
> Yes, I und
Hi,
Yes, I understand what you are saying here. I do not understand the
following. If I use instance variables to pass the storeLocation into my
component it works fine. storeLocation is passed through to the
component and getLocationOfStore() contains the location I passed in
from the page. I
101 - 200 of 214 matches
Mail list logo