Re: Questions for Tapestry 5

2007-09-28 Thread Erik Vullings
Hi Jacques * Is there a searchable archive of mailing list? > See here: http://wiki.apache.org/tapestry/Tapestry5HowTos (top of the > page) - using Google. Cheers, Erik

Re: creating components with Tapestry 5

2007-09-26 Thread Erik Vullings
Did you already find the Wiki: http://wiki.apache.org/tapestry/Tapestry5HowTos You should also see some information there about Layout (aka Border) components that can be used as a Tiles like generic template. Cheers Erik On 9/24/07, Marc A. Donis <[EMAIL PROTECTED]> wrote: > > I also am using Hi

Re: Page Layout Error

2007-09-23 Thread Erik Vullings
e only problem with Layout. :( > > On 9/23/07, Erik Vullings <[EMAIL PROTECTED]> wrote: > > > > I would REALLY recommend that you first create a maven archetype and > start > > learning from there: you have already asked a lot of questions today, > and &g

Re: Page Layout Error

2007-09-23 Thread Erik Vullings
e as document that available in tapestry > 5 > documents > > On 9/23/07, Erik Vullings <[EMAIL PROTECTED]> wrote: > > > > Hi Mohammad, > > > > It would help if you would show the actual (relevant) content of your > > class > > and html file, si

Re: Page Layout Error

2007-09-23 Thread Erik Vullings
Hi Mohammad, It would help if you would show the actual (relevant) content of your class and html file, since if you would have followed the guide, it should have worked :-) Related to your other question: The xsd template hasn't got a final (full) version yet, AFAIK. Did you also have a look at

Re: [T5] - looking for simple Layout

2007-09-18 Thread Erik Vullings
Besides the home side (http://tapestry.apache.org/tapestry5/), the link to Howard's tutorials (http://tapestry.apache.org/tapestry5/tutorial1/) and screencasts (http://tapestry.apache.org/tapestry5/screencast.html), the maven archetype that creates an example project ( http://tapestry.apache.org/ta

Re: T5: outputRaw

2007-09-16 Thread Erik Vullings
Hi Angelo, And how did you define currentuser? Any annotations? Cheers, Erik On 9/16/07, Angelo Chen <[EMAIL PROTECTED]> wrote: > > > Hi, > I use following code to output a html text, but it works first time, when > I > switch to other users, the page will never be updated, remain the contents >

Re: submitting a wiki?

2007-09-12 Thread Erik Vullings
Hi Angelo, I haven't found a way to upload an article, but if you just mean entering the text, that should be OK since you have an account: login and edit http://wiki.apache.org/tapestry/Tapestry5HowTos (click the 'edit' link, top left). Next, add the article name where it belongs. For example, wh

[T5] How to use Services - an example, please

2007-09-09 Thread Erik Vullings
Hi, I've read the manual about services, but don't get it: It's like seeing the puzzle pieces, but not the whole. Can someone explain it to me please, especially: 1. How can I use a service to connect to my database? Or should I use Hibernate? 2. How can I use a service to access the fil

Re: session variables and links

2007-09-04 Thread Erik Vullings
Hi Michele, 1. Why would you do this? For example, you would normally do something like this in your mypage.html: Link text and something like this in your mypage.java: @Persist String myName; public void onActionFromName(String name) { myName = name; } 2. You can create a page in your java

Re: [T5] BeanEditForm - Edit a bean within a bean?

2007-09-04 Thread Erik Vullings
A quick-and-dirty way is to just replace the two beans with one bean with all required fields, just for editing :-) Erik On 9/4/07, Peter Beshai <[EMAIL PROTECTED]> wrote: > > I have a bean, Course, with a field of type CourseId, which has a > String department abbreviation and an Integer number.

Re: T5: using DOJO?

2007-09-03 Thread Erik Vullings
Hi Angelo, I'm not a T5 expert, but I also have a need for AJAX functionality - however, instead of using my own approach, I prefer to wait a bit longer till Howard Lewis Ship (principal developer) will cook something up. I assume it will be with Dojo (since T4 uses it, and Jess is also part of th

[T5] How to extend the palette with some extra (onSelect) functionality

2007-08-31 Thread Erik Vullings
Hi, I would like to extend the Palette component, such that when a value (either left or right) is selected, it shows some additional information about the selected entity (e.g. I have a list of items, and when I click on an item to select it, I see the details). It's like adding an onSelect event

Re: T5: Handling of images

2007-08-30 Thread Erik Vullings
Hi Angelo, Can't you just use (in the HTML part of your page): and put the ok0.gif image in the src/main/webapp/img folder. Cheers Erik On 8/30/07, Angelo Chen <[EMAIL PROTECTED]> wrote: > > > Hi, > > Everytime I need to display an image, I have to do something like this: > > @Inject >

Re: [T5] Restricting Page Access

2007-08-28 Thread Erik Vullings
tion, but somehow, I can guess it's link. How does the framework protect me from invoking that link anyways? Do you have equivalent functions as ifLoggedIn and ifRole in the java class files? Cheers Erik On 8/27/07, Robin Helgelin <[EMAIL PROTECTED]> wrote: > > On 8/27/07,

Re: [T5] Restricting Page Access

2007-08-27 Thread Erik Vullings
Hi, Just wondering - when dealing with page authorizations, does this model expand to component authorizations, i.e. you may visit the page, but not certain components (redirect to another component), or you can see a component, but with less privileges (e.g. view but not edit). In other words, ho

Re: ValidationDelete Error Message Display and locale (!) translation

2007-08-20 Thread Erik Vullings
Does this link help: http://wiki.apache.org/tapestry/Tapestry5HowToOverrideTheDefaultErrorMessageBanner Cheers Erik On 8/17/07, ipoese <[EMAIL PROTECTED]> wrote: > > > Hi Folks, > > for all those who cannot make much sense of my subject - sorry. I didn't > know any better way of putting it, reall

FYI T5.0.5 Tree Component based on DHTMLgoodies.com drag 'n drop folder tree

2007-08-15 Thread Erik Vullings
I've just created a simple T5 tree component: http://wiki.apache.org/tapestry/Tapestry5TreeComponent based on http://www.dhtmlgoodies.com/index.html?whichScript=drag-drop-folder-tree. Comments are welcome. Cheers Erik

Re: Displaying validation errors in another page

2007-08-11 Thread Erik Vullings
Hi, >From a security point of view, you shouldn't tell the user what was wrong, as this is a security risk (e.g. a potential attacker now knows that a certain username exists, and only needs to discover the password). You could, however, before you redirect him, call a function in the normal login

Re: How to override the default validate message?

2007-07-06 Thread Erik Vullings
Hi Donyee, Please have a look here: http://wiki.apache.org/tapestry/Tapestry5HowToOverrideTheDefaultErrorMessageBanner Cheers Erik On 7/6/07, Malin Ljungh <[EMAIL PROTECTED]> wrote: No, sorry, I use T4. Don't know how it works in T5, unfortunately. Malin On 7/6/07, Donyee <[EMAIL PROTECTE

Re: T5 optional css for component

2007-07-02 Thread Erik Vullings
Hi Janko, In your html template, you could use: Include css file do something else Cheers Erik On 7/2/07, Janko Muzykant <[EMAIL PROTECTED]> wrote: hi all, i would like to have an optional css for each of my components. optional, because depending on component's

Re: Need Quick Help on else statement

2007-07-02 Thread Erik Vullings
Hi Eko, Whatever Please select an object first! Cheers Erik On 7/2/07, Eko S.W. <[EMAIL PROTECTED]> wrote: Dear community, Is there else clause in construct ??? I've try (but maybe not hard), but can not find it. That is, is there an else if you use ??? * I imagine it to

T5.0.5: How to display rows conditionally in the Grid component?

2007-07-02 Thread Erik Vullings
Hi all, I want to use the Grid component to display a list of questions and answers: since there are many questions, I don't want the user to see them all at once, but instead show them conditionally as needed. For example, when clicking yes (answer), it will show some subsequent questions (opens

Re: Is ActionLink deprecated ?

2007-06-16 Thread Erik Vullings
Hi Leo, You may also have a look at the Tapestry5 Wiki, e.g. here: http://wiki.apache.org/tapestry/Tapestry5HowToCreateYourQuickstartWithMaven206 Cheers Erik On 6/16/07, Leo Stefanesco <[EMAIL PROTECTED]> wrote: 2007/6/16, SergeEby <[EMAIL PROTECTED]>: > > > Hi, > > The URL you mentioned is r

Re: T5 How to use with your own list of products, List?

2007-06-15 Thread Erik Vullings
ate some things into my getLabel() method, like concatenating first and last names, etc. i.e. String getLabel(){ return lastname + ", " + firstname; } On 6/15/07, Erik Vullings <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm studying the component, which I want to

T5 How to use with your own list of products, List?

2007-06-15 Thread Erik Vullings
Hi all, I'm studying the component, which I want to use for populating a select list with products, e.g. the HTML should look like Product 1 etc... I've used it succesfully with a string of names (look at the BlockDemo example in the source code), as well as with an ENUM (look at the Palette

Re: T5: Sending parameters with prototype

2007-06-15 Thread Erik Vullings
I'm not sure what you mean with 'sending parameters', but I've used it as follows: In my border/layout class (with a component), I've included prototype.js and my own utils.js. In utils.js, I have declared a function doSomethingUseful(productId), which wraps prototype's Ajax.Updater function.

T5 How to force an (embedded) component refresh

2007-06-14 Thread Erik Vullings
Hi All, I use a layout/border component to define the general look and feel of my page. This layout consists of other embedded components. Depending on certain events in the main body (i.e.the bit), some of the embedded components in the layout component need to be refreshed/rerendered. What wo

Re: T5 Does someone have a Palette example

2007-06-13 Thread Erik Vullings
number and a date that it works for (T5.0.5 SNAPSHOT on 6/5/2007, etc). On 6/12/07, Marcell Manfrin Barbacena <[EMAIL PROTECTED]> wrote: > Nice. However some links looks wrong and there are lots of java class > without htmls. How could we keep this bleeding edge? > > []s >

Re: T5 Does someone have a Palette example

2007-06-12 Thread Erik Vullings
Duh, I feel like an idiot, but this is really a great tip. As promised, I have created a Wiki HowTo page for it, so hopefully, it will prevent some other sod like me to make the same mistake :-) http://wiki.apache.org/tapestry/Tapestry5CheckOutTheSourceCode Thanks Marcus! On 6/12/07, Marcus <[EM

T5 Does someone have a Palette example

2007-06-12 Thread Erik Vullings
Hi all, Does someone have a palette example - it requires some parameters, and it would be nice to see what they look like. I'll promis to add it to the Wiki (and attribute it, of course :-) Thanks Erik

Re: T5: Prototype's AJAX.updater question

2007-06-12 Thread Erik Vullings
tRootElement().getEmbeddedElement("anyelement"); > > RenderQueueImpl queue = > new RenderQueueImpl(page.getLog()); > > element.queueRender(queue); > > queue.run(markupWriter); > markupWriter.end(); > initializer.cleanup(markupWriter); >

T5: Prototype's AJAX.updater question

2007-06-12 Thread Erik Vullings
Hi all, Is it possible to use prototype's AJAX updater function to replace a div with the output of a tapastry page or component? I''ve tried the following: I created a js function which should update the mainContent div *function* showAJAX(index) { *new* Ajax.Updater("mainContent", "GetContent

Re: T5 tab-like component

2007-06-11 Thread Erik Vullings
) return tab2; return tab1; } g, kris "Erik Vullings" <[EMAIL PROTECTED]> 10.06.2007 11:54 Bitte antworten an "Tapestry users" An "Tapestry users" Kopie Thema T5 tab-like component Hi all, Since there does not seem to be a T5 tab compon

Re: how to use Grid component

2007-06-11 Thread Erik Vullings
Hi Thomas, Have a look at Howard's screencasts, esp. #5, for an introduction ( http://tapestry.apache.org/tapestry5/screencast.html) - In case you need to hide properties, the @NonVisual annotation should do the trick (before the property declaration). - Different labels: I haven't tried it with

Re: T5: Dynamic components (Dynamic Tiles)

2007-06-10 Thread Erik Vullings
is is how BeanEditForm and Grid components operate (as of 5.0.5). On 6/10/07, Erik Vullings <[EMAIL PROTECTED]> wrote: > So how would you generate a mashup, consisting of multiple services/pages, > similar to a portal, using T5? > > Cheers > Erik > > > On 6/9/07, Howard L

Re: T5: Dynamic components (Dynamic Tiles)

2007-06-10 Thread Erik Vullings
So how would you generate a mashup, consisting of multiple services/pages, similar to a portal, using T5? Cheers Erik On 6/9/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: Here we go again ... Tapestry pages a very structured, in effect, static. This is core to Tapestry's approach towards

T5 tab-like component

2007-06-10 Thread Erik Vullings
Hi all, Since there does not seem to be a T5 tab component, should I use the Dojo one? Furthermore, what's the best way to use it for offering multiple views on the same object. For example, when choosing a user in a list, I would like to use a tab-like view to show business details, personal det

Re: T5 Where to store CSS/JS files and images

2007-06-09 Thread Erik Vullings
Hi Marcus, It's just a JavaBean, representing a building or room, and some getters and setters. Cheers Erik On 6/9/07, Marcus <[EMAIL PROTECTED]> wrote: Hi Erik, what about (nl.tno.secureit2.data.PhysicalObject)? Thanks Marcus

T5 Is there an AJAX Update DIV functionality?

2007-06-08 Thread Erik Vullings
Hi all, When using AJAX before, I've often used the Ajax.Updater("DIVNAME", "ActionURL", { method : "get", etc. function. In T5, we are using events, which I think is much neater (it also combines well with my C# experience). However, I'm not sure how I can implement this same functionality in T

Re: T5 Where to store CSS/JS files and images

2007-06-08 Thread Erik Vullings
ages BTW- the favicon.ico goes directly in webapp Daniel On 6/7/07, Erik Vullings <[EMAIL PROTECTED]> wrote: > Hi All, > > Could somebody tell me what's the best place in T5.0.5 to store general (i.e., > they are not needed by Tapestry, but only to by the page) css files,

T5 Where to store CSS/JS files and images

2007-06-07 Thread Erik Vullings
Hi All, Could somebody tell me what's the best place in T5.0.5 to store general (i.e., they are not needed by Tapestry, but only to by the page) css files, js files and images, and where to store CSS/JS etc files specifically needed for building components? Thanks Erik

T5 questions: adding my own initializations; outputing pre-formatted HTML; tree component; javadoc

2007-06-05 Thread Erik Vullings
Hi, I've recently started working with T5 because I liked a lot what I've seen! I therefore have some basic questions, and I hope you can help me with them: 1. I've started changing the quickstart project to move a current struts2-spring-jdbc application to T5. Where can I put my dao initializat