Re: Grids embedded in custom component interfer with each other

2010-08-05 Thread Sven Homburg
c class TestEmbeddedGrid { > >@Property >@Persist >private ArrayList numberGrids; > >@Property >private Integer loopGridMember; > > >@SetupRender >public void onSetupRendering() { > numberGrids=new ArrayList(); >

Re: Grids embedded in custom component interfer with each other

2010-08-05 Thread olip
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

Re: Grids embedded in custom component interfer with each other

2010-08-05 Thread Sven Homburg
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

Grids embedded in custom component interfer with each other

2010-08-05 Thread olip
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

Re: Access validation constraints within custom component

2010-06-22 Thread Christophe Cordenier
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

RE: Access validation constraints within custom component

2010-06-22 Thread Jim O'Callaghan
: 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

Re: Access validation constraints within custom component

2010-06-22 Thread Christophe Cordenier
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

RE: Access validation constraints within custom component

2010-06-22 Thread Jim O'Callaghan
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

Re: Access validation constraints within custom component

2010-06-22 Thread Christophe Cordenier
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

RE: Access validation constraints within custom component

2010-06-22 Thread Jim O'Callaghan
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

Re: Access validation constraints within custom component

2010-06-22 Thread Christophe Cordenier
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

Access validation constraints within custom component

2010-06-21 Thread 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. Regards, Jim.

Re: Class reloading in custom component library

2010-06-04 Thread paha
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. ---

Re: Class reloading in custom component library

2010-06-04 Thread Thiago H. de Paula Figueiredo
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,

Re: Class reloading in custom component library

2010-06-04 Thread Henrik Schlanbusch
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

Re: Class reloading in custom component library

2010-06-04 Thread Inge Solvoll
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

Re: Class reloading in custom component library

2010-06-03 Thread Nicolas Bouillon
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

Class reloading in custom component library

2010-06-03 Thread Henrik Schlanbusch
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

Re: T5: Submit Button in Custom Component, Form in Page

2009-11-26 Thread Ulrich Stärk
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

Re: T5: Submit Button in Custom Component, Form in Page

2009-11-26 Thread Thiago H. de Paula Figueiredo
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

Re: T5: Submit Button in Custom Component, Form in Page

2009-11-26 Thread CarmenG
} 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

Re: T5: Submit Button in Custom Component, Form in Page

2009-11-26 Thread Ulrich Stärk
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

T5: Submit Button in Custom Component, Form in Page

2009-11-26 Thread CarmenG
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

Re: T5:how to do initialization work when custom component was called?

2009-09-26 Thread cleverpig
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: > >>

Re: T5:how to do initialization work when custom component was called?

2009-09-25 Thread Julian Wood
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

Re: T5:how to do initialization work when custom component was called?

2009-09-25 Thread Andreas Andreou
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

Re: T5:how to do initialization work when custom component was called?

2009-09-25 Thread Thiago H. de Paula Figueiredo
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

Re: T5:how to do initialization work when custom component was called?

2009-09-25 Thread cleverpig
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

Re: T5:how to do initialization work when custom component was called?

2009-09-25 Thread Juan E. Maya
(); } 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

T5:how to do initialization work when custom component was called?

2009-09-25 Thread 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 component hold on. such as: the custom component class: public class

Re: [T5.0.18] Bug? : Null property problem with the custom component inside a grid

2009-07-10 Thread Marcus Veloso
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

Re: [T5.1] Custom component now causes NullPointerException

2009-05-08 Thread Thiago H. de Paula Figueiredo
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 --

Re: [T5.1] Custom component now causes NullPointerException

2009-05-08 Thread Eric Ma
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

Re: [T5.1] Custom component now causes NullPointerException

2009-05-08 Thread Thiago H. de Paula Figueiredo
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 -

Re: [T5.1] Custom component now causes NullPointerException

2009-05-08 Thread Eric Ma
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

Re: [T5.1] Custom component now causes NullPointerException

2009-05-08 Thread Thiago H. de Paula Figueiredo
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

Re: [T5.1] Custom component now causes NullPointerException

2009-05-08 Thread Howard Lewis Ship
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

[T5.1] Custom component now causes NullPointerException

2009-05-08 Thread Eric Ma
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

@EventListener inside custom component

2009-04-01 Thread tayjack
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

Re: [T5.0.18] Bug? : Null property problem with the custom component inside a grid

2009-02-19 Thread Howard Lewis Ship
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

Re: [T5.0.18] Bug? : Null property problem with the custom component inside a grid

2009-02-19 Thread Iren Tuna
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

AW: [T5.0.18] Bug? : Null property problem with the custom component inside a grid

2009-02-16 Thread Iren Tuna
- 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

Re: [T5.0.18] Bug? : Null property problem with the custom component inside a grid

2009-02-15 Thread Thiago H. de Paula Figueiredo
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

Re: [T5.0.18] Bug? : Null property problem with the custom component inside a grid

2009-02-15 Thread Otho
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

Re: [T5.0.18] Bug? : Null property problem with the custom component inside a grid

2009-02-14 Thread Iren Tuna
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

Re: [T5.0.18] Bug? : Null property problem with the custom component inside a grid

2009-02-14 Thread Otho
Maybe some problem in the setup of the grid page? Like forgetting the @Persist on the books list? Otho

[T5.0.18] Bug? : Null property problem with the custom component inside a grid

2009-02-13 Thread Iren Tuna
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

Re: Creating inner components on the fly in a form custom component

2008-09-27 Thread Edouard sur edouardmercier.fr
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 /...

Re: Creating inner components on the fly in a form custom component

2008-09-26 Thread Kristian Marinkovic
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

Creating inner components on the fly in a form custom component

2008-09-25 Thread Edouard sur edouardmercier.fr
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

Re: [T5] Custom component parameter value within a loop

2008-08-18 Thread Avi Cherry
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

[T5] Custom component parameter value within a loop

2008-08-09 Thread Brendan McNichols
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

Re: Custom Component Problem

2008-07-01 Thread Sven Homburg
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

Custom Component Problem

2008-07-01 Thread Michał U
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

[T5] custom component like no function.

2008-06-20 Thread Tan [EMAIL PROTECTED]
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

custom component success deployed but no render

2008-06-19 Thread [EMAIL PROTECTED] Min HOnG
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

custom component like no function.

2008-06-19 Thread Tan [EMAIL PROTECTED]
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

Re: Regexp within a custom component

2008-05-13 Thread Toby Hobson
}) @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

Regexp within a custom component

2008-05-13 Thread Toby Hobson
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

Re: T5 custom component params

2008-05-01 Thread Robert Zeigler
"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

Re: T5 custom component params

2008-05-01 Thread Toby Hobson
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

Re: T5 custom component params

2008-05-01 Thread Sven Homburg
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

T5 custom component params

2008-05-01 Thread Toby Hobson
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

Re: Tapestry 5 - Custom Component Validation

2008-02-01 Thread Xinhua
#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

Re: Tapestry 5 - Custom Component Validation

2008-01-31 Thread Michael Courcy
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

Re: Tapestry 5 - Custom Component Validation

2008-01-31 Thread Josh Canfield
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

Re: Tapestry 5 - Custom Component Validation

2008-01-31 Thread Xinhua
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

Re: Tapestry 5 - Custom Component Validation

2008-01-31 Thread Michael Courcy
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

Tapestry 5 - Custom Component Validation

2008-01-30 Thread Xinhua
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

[T4] SpecificationParser (custom component specification elements)

2007-12-19 Thread Martino Piccinato
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

Re: T5 - custom component validation

2007-12-03 Thread Will Norris
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

Re: T5 - custom component validation

2007-12-03 Thread Filip S. Adamsen
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

T5 - custom component validation

2007-12-03 Thread Will Norris
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

Re: T4 Custom Component Questions

2007-10-12 Thread Norman Franke
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.*");

Re: T4 Custom Component Questions

2007-10-09 Thread andyhot
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"

RE: T4 Custom Component Questions

2007-10-09 Thread Ken nashua
} <!-- dojo.require("tapestry.widget.Widget"); dojo.require("dojo.widget.*"); dojo.require("dojo.html"); // --> Best regards Ken in nashua From: [EMAIL PROTECTED] To: user

Re: T4 Custom Component Questions

2007-10-09 Thread Ken nashua
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

T4 Custom Component Questions

2007-10-09 Thread Norman Franke
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

Re: T5: MarkupWriter.element() can not display correctly in my custom component page

2007-09-10 Thread Howard Lewis Ship
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

Re: T5: MarkupWriter.element() can not display correctly in my custom component page

2007-09-10 Thread Davor Hrg
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

Re: T5: MarkupWriter.element() can not display correctly in my custom component page

2007-09-10 Thread Doublel
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]

T5: MarkupWriter.element() can not display correctly in my custom component page

2007-09-10 Thread Doublel
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());

Re: T5: MarkupWriter.element() can not display correctly in my custom component page

2007-09-10 Thread Davor Hrg
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", >

Re: Big problem - Form elements inside custom component

2007-06-19 Thread Tomić Mirko
I'm sorry :( I must say I'm thrilled you answered my question. here is more details about my component: Layout.jwc:

Re: Big problem - Form elements inside custom component

2007-06-19 Thread Howard Lewis Ship
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

Re: Big problem - Form elements inside custom component

2007-06-19 Thread Tomić Mirko
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]

Big problem - Form elements inside custom component

2007-06-19 Thread Tomić Mirko
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

Re: Re: How can I pass a component as a parameter to my custom component

2006-11-04 Thread Roberto Ramírez Vique
ecification: > > > > > > > > > > > > ... > > > > > > > > ... > > > > > > > > > > > > Then in component template can be component referenced e.g.: > > > > > > > > > > > > &

Re: Re: How can I pass a component as a parameter to my custom component

2006-11-03 Thread Karthik N
; > 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 >

Re: Re: How can I pass a component as a parameter to my custom component

2006-11-03 Thread Sam Gendler
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

Re: How can I pass a component as a parameter to my custom component

2006-11-03 Thread Roberto Ramírez Vique
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: > &

Re: How can I pass a component as a parameter to my custom component

2006-10-24 Thread Roberto Ramírez Vique
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

Re: How can I pass a component as a parameter to my custom component

2006-10-24 Thread Jiří Mareš
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

How can I pass a component as a parameter to my custom component

2006-10-24 Thread Roberto Ramírez Vique
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 ...

Re: Custom Component - best solution?

2006-09-05 Thread jake123
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

Re: Custom Component - best solution?

2006-09-05 Thread Ed Ross
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

Custom Component - best solution?

2006-09-05 Thread jake123
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

Re: Problem with parameters of a custom component (Tapestry 4.01)

2006-08-04 Thread Ron Piterman
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

Re: Problem with parameters of a custom component (Tapestry 4.01)

2006-08-04 Thread hv @ Fashion Content
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

Re: Problem with parameters of a custom component (Tapestry 4.01)

2006-08-04 Thread Brian Doherty
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

<    1   2   3   >