RE: How to obtain 'URL' for a page being rendered?

2007-06-05 Thread Firas Adiler
I use this method: /** * Call this from pageBeginRender: */ public void savePageLink() { if (getRequestCycle().isRewinding()) return; ILink iLink = null; if (this instanceof IExternalPage) { ExternalServiceParameter esp = new ExternalService

RE: Home page of application

2007-04-17 Thread Firas Adiler
If by 'org.apache.tapestry.home-page' variable you mean the the meta tag declared in your application specification file then here's how you do it: @InjectMeta("org.apache.tapestry.home-page") public abstract String getHomePage(); -Original Message- Hello, Could you

RE: Friendly URL's and service encoders

2007-01-22 Thread Firas Adiler
Peter, I'm not quite sure where the problem is. Obviously you can't use the same extension for different encoders. But you can certainly access the SAME page through a PageLink and an ExternalLink. In your page class, you would need to implement the activateExternalPage method of the IExternalPag

RE: Newbie help with For and TextField components

2007-01-10 Thread Firas Adiler
Jim, I'm a bit puzzled myself, but how did you manage to run the app without providing setters for 'idx' and 'name' fields: public abstract void setIdx(int idx) public abstract void setName(String name)? Regards, -Original Message- From: Jim Downing [mailto:[EMAIL PROTECTED] Sent: Tue

RE: Problems with components IF & For

2007-01-07 Thread Firas Adiler
rmal, but I see that maybe is not that normal. Do you know anyway to solve this problem ? Thanks you, robert On 1/5/07, Firas Adiler < [EMAIL PROTECTED]> wrote: > > Hi Robert, > > The listCustomersFound must be the same on both rewind and submit. > Remember > that

RE: Problems with components IF & For

2007-01-05 Thread Firas Adiler
Hi Robert, The listCustomersFound must be the same on both rewind and submit. Remember that two List objects (java.util.List) are equal if they contain the same elements in the same order. I suggest that you sort the list before returning it to Tapestry. I believe that was the solution to my prob

RE: Tapestry-acegi auth

2007-01-05 Thread Firas Adiler
Hi Kevin, This exception is "thrown if an Authentication object does not hold a required authority". "ROLE_USER" is the authority you used to secure your pages. It seems that your Acegi configuration is not complete. I'm a beginner myself and found this page very helpful: http://www.tfo-eservices

RE: friendly url problem when setting context path to the web root directory

2006-12-30 Thread Firas Adiler
First a reservation: I'm not an expert! But I'm willing to help. Your configurations seem to be incomplete: 1) Did you specify a context for your webapp? Please see http://tomcat.apache.org/tomcat-5.0-doc/config/printer/context.html 2) How does your hivemind configuration for tapestry.url.Serv

RE: hivemind create-instance and additionnal parameters

2006-12-22 Thread Firas Adiler
1) 2) Create a class that implements org.apache.tapestry.engine.state.StateObjectFactory with this signature: publ

RE: T-Acegi: An AuthenticationManager is required

2006-12-18 Thread Firas Adiler
> Are you using tapestry-spring? No, I'm not using tapestry-spring. It turns out that I got it to work correctly using only spring's ContextLoaderListener approach. And as you may have guessed, it doesn't work when dropping tapestry-acegi into the classpath. The exception I get is the same, "An

RE: T-Acegi: An AuthenticationManager is required

2006-12-15 Thread Firas Adiler
id you set up tapestry-acegi exactly as it described on the wiki page? Me, and others reading this archive, will appreciate your help. Thanks, P.S. My platform - Java 6, Tomcat 5.5.17, Tapestry 4.0.2 -Original Message----- On 12/14/06, Firas Adiler <[EMAIL PROTECTED]> wrote: >

T-Acegi: An AuthenticationManager is required

2006-12-14 Thread Firas Adiler
Hello, Following steps in this thread http://forum.springframework.org/showthread.php?t=24013 I managed to get acegi working using JdbcDaoImpl. Now I get an ApplicationRuntimeException as soon as I call the webapp url. Unfortunatly, I can't rollback the changes that affected this misbehavior, sin

RE: need "please wait" notice for slow loading pages

2006-12-06 Thread Firas Adiler
Check the Panel component, from the YUI Library: http://developer.yahoo.com/yui/examples/container/panelwait/2.html Regards, -Original Message- From: Sam Gendler [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 06, 2006 10:07 PM To: Tapestry users Subject: need "please wait" noti

RE: Customized Form.js?

2006-12-04 Thread Firas Adiler
It seems that "classpath hack" is the only way to go, i.e placing a copy of org/apache/tapestry/form/Form.js somewhere in the classpath before Tapestry's original Form.js. Regards, -Original Message----- From: Firas Adiler [mailto:[EMAIL PROTECTED] Sent: Monday, December

Customized Form.js?

2006-12-04 Thread Firas Adiler
Hello, Is it possible to use a customized Form.js (org/apache/tapestry/form/Form.js)? Thanks for your time! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Question regarding Block/RenderBlock

2006-11-09 Thread Firas Adiler
Ohh, I see... If we take Navin's example and assume that your blocks are in MyBlocks page: then the 'testValue' property will be called on MyBlocks, MyBlocks.getTestValue(). The only interaction, that I'm aware of, between MyBlocks and other pages is like this: Note the use of an informal

RE: Question regarding Block/RenderBlock

2006-11-09 Thread Firas Adiler
m now on an entirely different page? 3) What are the best use-cases for such usage? Thanks, Karthik On 11/8/06, Firas Adiler <[EMAIL PROTECTED]> wrote: > > Hi, > > There's IMO an easier way. > > Assume > HtmlBlocks - the page containing the external block(s) &

RE: A hosting for a tapestry based application

2006-11-07 Thread Firas Adiler
And look what you get for (almost) the same price in Switzerland: http://www.prokmu.com/eng/hosting.htm And they speak English too! ;-) Here's another one that I personally use: www.idaq.com -Original Message- From: Malin Ljungh [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 07, 2

RE: Question regarding Block/RenderBlock

2006-11-07 Thread Firas Adiler
Hi, There's IMO an easier way. Assume HtmlBlocks - the page containing the external block(s) ClientPage - the page that uses those external blocks In your ClientPage.page you write: And to access these blocks you write: ognl:exBlocks.components.theNameOfTheBlock Hope this hel

RE: absolute ServiceLink URL in Java

2006-11-07 Thread Firas Adiler
Hi, Sorry for the incomplete post (it's MS Outlook beign to damn helpful). My question is: how do you create an absolute 'restart' link in Java? Thanks for your time! _ From: Firas Adiler [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 07, 2006 1:27 PM To:

absolute ServiceLink URL in Java

2006-11-07 Thread Firas Adiler
Hi everyone, In Java, how would you code do something like:

RE: Encoding of properties files

2006-10-28 Thread Firas Adiler
Malin, It has nothing to do with Tomcat. It's a Java thing, really. Properties files are not unicode, wich means that non-ASCII characters need to be encoded. Usually your IDE should take care of this for you (in Netbeans this support is built-in). In Eclipse I'd recommend Eclipse ResourceBundl

RE: How to pass parameters between Page and component

2006-10-09 Thread Firas Adiler
Hi, It should be more like: In your ArticleComp you access the 'articleId' parameter like this: IBinding iBinding = getBinding("articleId"); String articleId = (String) iBinding.getObject("articleId"); Regards, -Original Message- From: jake123 [m

RE: Dynamic Sections on a Page

2006-09-21 Thread Firas Adiler
Hi, I think these components are well suited for this kind of job: http://tapestry.apache.org/tapestry4/tapestry/ComponentReference/RenderBlock .html http://tapestry.apache.org/tapestry4/tapestry/ComponentReference/Block.html -Original Message- From: Mike Grundvig [mailto:[EMAIL PR

RE: For component and Validation Deligate

2006-08-23 Thread Firas Adiler
Hello Simon, I assume you've subclassed org.apache.tapestry.form.validator.Validator? The "false" field is passed as a parameter to the method: validate(IFormComponent formField, ValidationMessages messages, Object object) But you don't need to worry about passing it to the validation delegate.

RE: @Block, accessing the caller's properties

2006-08-11 Thread Firas Adiler
ponent.getInvoker().getPage().getSomePageProperty() > > Regards, > Norbi > > Firas Adiler wrote: >> Hello, >> >> Can a Block-component access the page/component that's calling >> RenderBlock? >> >> Assume page C contains this ca

RE: @Block, accessing the caller's properties

2006-08-10 Thread Firas Adiler
the caller's properties Check out Block's getInvoker() method. Try blockComponent.getInvoker().getPage().getSomePageProperty() Regards, Norbi Firas Adiler wrote: > Hello, > > Can a Block-component access the page/component that's calling RenderBlock? > > As

@Block, accessing the caller's properties

2006-08-10 Thread Firas Adiler
Hello, Can a Block-component access the page/component that's calling RenderBlock? Assume page C contains this call: jwcid="@RenderBlock" block="ognl:someBlock" Can someBlock access page C's properties? Thanks for your time!

RE: Localized validation messages

2006-08-02 Thread Firas Adiler
Hi Malin, That's because Tapestry looks for "username-not-unique" in the properties file bundeled with Tapestry. To override it, your ValidationStrings.properties should have this path {CLASS_PATH_ROOT}/org/apache/tapestry/valid/ValidationStrings.properties. To do that: create the package /org/ap

RE: problem with page service incoder

2006-07-25 Thread Firas Adiler
Oh, I see... I'm using a border component too. The css files it uses are placed in the "root context folder" (i.e the folder containing 'WEB-INF' folder) like this: rootFolder/ |__ cssfiles/ | |_ style1.css | |__ WEB-INF/