Re: Choosing between Insert or TextField at runtime?

2006-04-25 Thread Shing Hing Man
In case you did not know, the InsertText component (in T3) has a parameter disabled. On the confirmation page, you could just set the disabled parameter to true. Note that, the value of a disabled InsertText will be ignored when the form is submitted. Please see the document for more details htt

Re: Q: Tapestry 3 to Tapestry 4 upgrade problem.

2006-04-05 Thread Shing Hing Man
I think the Tap4 ListEdit doc at http://jakarta.apache.org/tapestry/tapestry/ComponentReference/ListEdit.html has not being fully updated - the example there still uses expression in : In Tap4, 'expression' is replaced by 'value'. Please check the following for details http://jakarta.apache.

Re: Problem with @InjectAsset:

2006-04-04 Thread Shing Hing Man
If you want to skip defining an asset in the Home.page, you need @Asset instead of @InjectAsset : @Asset("/img/first_2.gif") public abstract IAsset getFirstImage(); @InjectAsset allows you to access an (specified) asset as a read only property. There is some doc at http://jakarta.apache.o

Re: trouble injecting pojo into engine service

2006-02-10 Thread Shing Hing Man
Have you tried specifying an interface in ? In your case, you need to specify an interface for service StitchFolderHolder. When the interface attribute is not given, HiveMind will default the interface attribute to (module's package path) + service id. Please see the

Re: Server-side validation and form listeners

2006-02-08 Thread Shing Hing Man
> Is there a simple way to have the form to be > submitted with a specific > listener on my onChange event of my > @PropertySelection, and also to have > my submit button calling the "regular" listener (the > one specified in > the @Form component? I do not know whether there is a simple way of

Re: How to get service?

2006-02-05 Thread Shing Hing Man
You can inject a service into your page : @InjectObject("engine-service:chart") public abstract IEngineService getChartService(); where chart is a custom service defined in hivemind.xml . Something like : InjectObject i

ANN: FCKeditor TextArea component for Tapestry 4

2006-02-05 Thread Shing Hing Man
Dear all, I have applied the FCKeditor to the Tapestry TextArea component to enable the content of the TextArea editable using FCKeditor. It is not perfect. At the moment, for simplicity sake, all the upload functions in FCKeditor are disabled. Also the spell check is not working. The sou

Re: Konqueror and DatePicker

2006-01-27 Thread Shing Hing Man
DataPicker works fine for me in Konqueror 3.3.0-8. I am using Tap 4. Shing --- Alan Chandler <[EMAIL PROTECTED]> wrote: > Anyone sucessfully using the DataPicker component > with Konqueror? > > I seem to get some days in a month that I can't > click on to set a date. It > might be some sort o

Re: Workbench project upgrading to 4.0 - Abstract object instantiation

2006-01-24 Thread Shing Hing Man
I can think of the ways of doing it. Method 1 : 'this' in ChartAsset(getRequestCycle(), this) is of type IComponent, Put the following annotation in 'this' java file @InjectObject("engine-service:Chart") public abstract IEngineService getChartService(); Then you can pass the chart service to

Re: how to call a service instead of a page

2006-01-23 Thread Shing Hing Man
To call the restart service, say, inject the restart service into your page .java class: @InjectObject("engine-service:restart") public abstract IEngineService getRestartService(); // To call restart service IEngineService restartService = getRestartService();

Re: Maximum file size for Upload component

2006-01-13 Thread Shing Hing Man
Have you checked out the following post from about a month ago? http://article.gmane.org/gmane.comp.java.tapestry.user/29717/match=spencer+crissman Shing --- Jimmi Dyson <[EMAIL PROTECTED]> wrote: > Does anyone know how to change the maximum file size > that can be > uploaded? > > Can't see any

Re: can anyone provide with a sample on use of ListEdit or For

2006-01-12 Thread Shing Hing Man
I have an example using the For component at http://137.132.69.134/tapestry4Demo/app There is also an example on ListEdit (Tapestry 3) at http://137.132.69.134/tapestryDemo/app Check them out if you like. Shing --- pbinu <[EMAIL PROTECTED]> wrote: > Hi, > I was trying to write a code using Li

Re: SubmitOnChange deprecated?

2006-01-09 Thread Shing Hing Man
Instead of using the parameter submitOnChange=true, you put in the piece of javascript manually : 2004/2005 I 2005/2006 I 2005/2006 II I do not know why it has been

Re: Basic @For Question

2006-01-06 Thread Shing Hing Man
When you click on a DirectLink, the specified listener method will be called (and without the page being rewinded.) That is why your getCurrentProject() is returning null. A fix is to pass the currentProject (or its key) to the DirectLink component, so that when a DirectLink is clicked, the co

Re: How to define an integer validator in T4?

2006-01-05 Thread Shing Hing Man
There is a short article in the wiki that shows how to create your own validator. http://wiki.apache.org/jakarta-tapestry/HowTos You need something like the following. public class IntegerValidator extends BaseValidator { public void validate(IFormComponent form,

Re: Pattern validator problem

2005-12-30 Thread Shing Hing Man
I asked the same question a few weeks. Ron Piterman had kindly answered it. You can check out the his answer at http://article.gmane.org/gmane.comp.java.tapestry.user/29260/match=shing Basically, if you want to have ',' in your pattern, you have to define your pattern in a bean. The $ sign no

Re: DatePicker: Translating date

2005-12-29 Thread Shing Hing Man
> > value="ognl:quoteDateValue"/> > value="translator:pattern=-MM-dd"/> > You can use the format parameter of an Insert component to format the output. Details could be found at http://jakarta.apache.org/tapestry/tapestry/ComponentReference/Insert.html In your .pa

Re: Tapestry 4.0 CRUD application

2005-12-28 Thread Shing Hing Man
I have a simple CRUD application written in Tapestry 4 + Hibernate + Hivemind. If you are interested, you can try it out online and download the source via http://137.132.68.134/tapestry4Demo/app Shing --- albartell <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I am new to Tapestry (jumping

Re: issue about display double number on the UI

2005-12-27 Thread Shing Hing Man
Have you tried something like the following ? where the method getMyNumberFormat() is in your page java class and returns a java.text.NumberFormat. Instead of ognl:myNumberFormat, you could also use bean:myNumberFormat, where myNumberFormat is a bean set up in the .page file. More details and

Re: Table Component

2005-12-20 Thread Shing Hing Man
You might like to check out the one in the Workbench example that comes with the Tapestry 4 source code. Shing --- Badri Narayan <[EMAIL PROTECTED]> wrote: > Hi, > I need an example of a Table component in Tapestry > 4.0. Can anyone > provide me the same. > > Thanks, > -Badri > > -- > http

Re: How to replace the "submitOnChange" parameter of PropertySelection ?

2005-12-18 Thread Shing Hing Man
You need to do something like the following. Shing --- Alan Chandler <[EMAIL PROTECTED]> wrote: > The PropertySelection component has a submitOnChange > parameter. But the docs > say it is depreciated. > > I do not understand the comment in the "Description" > section of this table. > Wh

How to escape a comma in pattern

2005-12-07 Thread Shing Hing Man
I am using Tapestry 4.0-rc-1. In a DataPicker component, I have set up my custom format for the date. The date appears as something like 7 December 2005. Now I would like to have a comma between the month and year: d , causes the following error : Clas

Re: Injecting registry services to POJOS

2005-12-04 Thread Shing Hing Man
he following error when using the > > as you suggested: > > Attribute 'object' is required but no value was > provided. > > > Shing Hing Man wrote: > >>> class="com.estudiowebs.CMS.DAO.GlobalMenu"> > >> > >>

Re: Injecting registry services to POJOS

2005-12-04 Thread Shing Hing Man
class="com.estudiowebs.CMS.DAO.GlobalMenu"> > > service-id="EntityService" /> > Instead of create-instance, have you tried invoke-factory ? Shing --- Raul Raja Martinez <[EMAIL PROTECTED]> wrote: > Here is a little bit more code about my problem: > > I'm trying

Re: Howto format date values within contrib:Table?

2005-11-22 Thread Shing Hing Man
Something like this in the html template: In your page specification file : The above is for Tapestry 4. In case you did not know, John Reynolds has an excellent tutorial on the table component. https://tapestrywebcomponentexamples.dev.java.net/ I thi

Re: Injecting ASO in the .page file

2005-11-06 Thread Shing Hing Man
> object="state:blogVisit"/> > Instead of state:blogVisit, have you tried blogVisit ? Have you lookat at http://jakarta.apache.org/tapestry/UsersGuide/state.html#state.aso Shing --- mike jones <[EMAIL PROTECTED]> wrote: > Hi > Quick question I am trying to inject a state object > into my

Re: PopupLink nullpointer exception

2005-10-25 Thread Shing Hing Man
I got round the problem by modifying the org.apache.tapestry.contrib.link.PopupLinkRenderer method constructURL to return null during rewinding. protected String constructURL(ILink link, String anchor, IRequestCycle cycle) { // Add this if (cycle.isRewinding()){

Re: Re[2]: Overriding BaseEngine.cleanupAfterRequest In Tapestry 4 beta 11

2005-10-20 Thread Shing Hing Man
Thanks for your suggestion ! I will try it as well. Shing --- Alexandr Kundirenko <[EMAIL PROTECTED]> wrote: > To control pages lifecycle you also can override > tapestry.monitor.MonitorFactory service point. > > > >> Does anyone know how to 'enable' > cleanupAfterRequest > >> in my custom en

Re: Overriding BaseEngine.cleanupAfterRequest In Tapestry 4 beta 11

2005-10-20 Thread Shing Hing Man
Thanks for the pointer ! I will try to see if I can make sense of HiveMind pipeline. Shing --- Kent Tong <[EMAIL PROTECTED]> wrote: > Shing Hing Man yahoo.com> writes: > > > Does anyone know how to 'enable' > cleanupAfterRequest > > in my custom en

Re: How to invoke method in ServletWebResponse class

2005-10-19 Thread Shing Hing Man
In your page, have you tried the following ? @InjectObject("service:tapestry.globals.WebRequest") public abstract WebResponse getWebResponse(); Shing --- Wayne Wang <[EMAIL PROTECTED]> wrote: > Hi, > In beta-11,I found some new > methods,eg:setHeader,setDateHeader. > My problem is how to invo

Overriding BaseEngine.cleanupAfterRequest In Tapestry 4 beta 11

2005-10-18 Thread Shing Hing Man
I have extended the BaseEngine and overriden the cleanupAfterRequest method. I have checked that my custom engine is picked up by using Eclipse debug mode. However, it seems that the method cleanupAfterRequest method in my custom engine is never entered. I did a grep on cleanupAfterRequest in t

Re: How to make my component client side validate?

2005-10-17 Thread Shing Hing Man
Instead of please try Shing --- lyo <[EMAIL PROTECTED]> wrote: > Hi friends: > > I have a input tapestry4 component, the code > is: > > > > value="translator:number,pattern=#.#"/> > value="validators:required,min=2,max=100.123456234563456734563456356734567456784 > 567

Number Validation in Tap 4

2005-10-15 Thread Shing Hing Man
On a form, when I input "123.fff" in numberTF and then submit the form, I get numberTF=123.0 in my form listerner method and no validation error. I was expecting a validation error. Should 123.fff fail the validation ? Shing

ConcurrentModificationException in For component

2005-10-12 Thread Shing Hing Man
I have a Tapestry 4 page that allows a user to select a number between 1 to 5 from a PropertySelection component. For each new selection, the page is redisplayed with the selected number of TextFields using a For component. Clicking a button would compute the sum of the inputs. This works in tapes

Re: How to override org.apache.tapestry.home-page property?

2005-10-11 Thread Shing Hing Man
Have you tried ? Shing --- "Waluk, Michael" <[EMAIL PROTECTED]> wrote: > The Change Log > (http://jakarta.apache.org/tapestry/changes.html#version_4.0-alpha-2) > indicates: > > "Allow the name of the initial page to be overriden > using the org.apache.tapestry.home-page application > property

Re: How to call a method with parameters from @Script

2005-10-07 Thread Shing Hing Man
Have you tried the following ? var url = ${getCreateLink("PageName")}; I have tried the following (in Tap 4) and it works. Suppose in a component Foo.java file, I have public String getName(String name){ return "Call getName with : " + name; } In the corresponding Foo.script :

ANN: Tooltip component for Tapestry 4

2005-10-03 Thread Shing Hing Man
Dear all, I have converted my tooltip component to Tapestry 4. The binary and source could be downloaded from Tassel http://equalitylearning.org/Tassel/app It has been tested on Tapestry 5beta 8, Mozilla and IE 6. Online demos and documentation are available at http://137.132.69.134/tape

ANN : Color Picker component for Tapestry 4

2005-10-02 Thread Shing Hing Man
Dear all, I have converted my color picker component to Tapestry 4. The binary and source could be downloaded from Tassel http://equalitylearning.org/Tassel/app Online demos and documentation are available at http://137.132.69.134/tapestry4Demo/app Note that the above also has a demo for th

Re: Tapestry 4 page opens in Mozilla, Firefox but not in IE

2005-10-02 Thread Shing Hing Man
The usual work-around appears to be > rearranging the javascript/html > interaction. For example: > > http://www.softcomplex.com/forum/viewthread_2437/page1/#pid7448 > http://channel9.msdn.com/wiki/default.aspx/Channel9.InternetExplorerProgrammingBugs > > > - Origin

Tapestry 4 page opens in Mozilla, Firefox but not in IE

2005-10-02 Thread Shing Hing Man
I have converted my Tooltip component and the online demo to Tapestry 4 (beta 8). Strangely, when I open my tooltip online demo page http://137.132.69.134/tapestry4Demo/app?page=TestTooltip&service=page in IE 6, I get a pop up box with error : Internet Explorer cannot open the Internet site :

RE: Accessing page property from component (Tapestry 4)

2005-09-30 Thread Shing Hing Man
s-Nikai groups, > EmiratesGroup-I.T Division, > Dubai, UAE. > Mobile : 00971-50-2256149. > http://www.adastrumtech.com > http://www.mercator.aero > (Keep Smiling. Be happy All The Time.) > > -Original Message- > From: Shing Hing Man [mailto:[EMAIL PROTECTED] > Sent: 01 Oc

RE: Accessing page property from component (Tapestry 4)

2005-09-30 Thread Shing Hing Man
; http://www.adastrumtech.com > http://www.mercator.aero > (Keep Smiling. Be happy All The Time.) > > -Original Message- > From: Shing Hing Man [mailto:[EMAIL PROTECTED] > Sent: 01 October 2005 06:38 > To: tapestry Tapestry > Subject: Accessing page property from

Accessing page property from component (Tapestry 4)

2005-09-30 Thread Shing Hing Man
I am converting one of my Tapestry 3 application to Tapestry 4 and run into following problem. In all my page specification, I have a property for the page title : In the Java class of my border component, I try to retrieve the pageTitle property in finishLoad method : public void fi

Where is the source code for Tapestry 4 Virtual Library example ?

2005-09-30 Thread Shing Hing Man
At the top of http://jakarta.apache.org/tapestry/examples/index.html it mentioned that the source code of Virtual Library example for Tapestry 4 is in the main distribution. But when I downloaded tapestry-4.0-beta-8.tar.gz, I can only find the Virtual Library example for Tapestry 3. Does anyone

Re: rendering informal parameters via template or spec configuration?

2005-09-18 Thread Shing Hing Man
The following is only a suggestion and I have not tried it out. In the java class of your component, overwite the method renderComponent : protected void renderComponent(IMarkupWriter writer, IRequestCycle cycle) { super.renderComponent(writer,cycle); renderInformalParameters(writer,

Re: JDK 5 conflict with Tapestry Enum

2005-09-15 Thread Shing Hing Man
Oohs ! You are right Markus. It should be "-source 1.4" Shing --- Markus Eberle <[EMAIL PROTECTED]> wrote: > Zitat von Shing Hing Man <[EMAIL PROTECTED]>: > > > You might like to try

Re: need help to start with Tapestry

2005-09-15 Thread Shing Hing Man
Have you tried moving Home.html to webapps\examples ? Shing --- Shalini Goel <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > I have the following files with me - > > web.xml in path E:\Tomcat > 4.1\webapps\examples\WEB-INF > > Home.html in path E:\Tomcat > 4.1\webapps\examples\WEB-INF >

Re: JDK 5 conflict with Tapestry Enum

2005-09-15 Thread Shing Hing Man
You might like to try adding the option "-source 1.5" when you javac your orginal java 1.4 source files. Shing --- Augmentin <[EMAIL PROTECTED]> wrote: > Hi All, > > After I upgraded to JDK 5, my project won't compile > because all references > to org.apache.commons.lang.enum.Enum in my prog

Re: Awkward Component/Parent Communication Problem

2005-09-03 Thread Shing Hing Man
I have encounter a similar problem as yours recently. (I am using Tapestry 3). My solution is to wrap around the orginal address component in an 'outer component'. The java class associated with this outer component extends BaseComponent. In the java class of the outer component, override the r

Re: Implementing Two Drop-Downs where One's Choices Depends on the Other

2005-08-29 Thread Shing Hing Man
I have emailed you one of my examples and a description on the parameters of DynamicSelectionList. Hope that helps. Shing --- Ben Wong <[EMAIL PROTECTED]> wrote: > Hi everyone, > > > > I am sure this question has been asked before, but I > have tried to search > the mailing list without

Re: PropertySelection question

2005-08-08 Thread Shing Hing Man
Have you checked out my component DynamicSelectionList ? It might solve your country-state selection problem. It is available for download at http://equalitylearning.org/Tassel/app There is an online demo at http://gauss.demon.co.uk/tapestryDemo/welcome Note that the above link will cease to ex

Re: IEngine getPropertySource is depreciated - what replaces it?

2005-08-05 Thread Shing Hing Man
According to the Tapestry 4 javadoc, the method IEngine.getPropertySource() has been deprecated. http://jakarta.apache.org/tapestry/tapestry/apidocs/org/apache/tapestry/IEngine.html It is now being injected. Please also see the following doc on how to inject something into a page. http://jaka

Re: requiredValidator & datePicker collectively

2005-08-04 Thread Shing Hing Man
Yes. Someone has already wrapped it up as a component and is made available on http://equalitylearning.org/Tassel/app The component is called ValidDatePicker Shing --- Radim Burget <[EMAIL PROTECTED]> wrote: > Hi, > is it possible to use component with > "requiredValidator" > and use "datePi

Re: Getting properties from Enhanced class

2005-07-02 Thread Shing Hing Man
I could be wrong, but here is my guess. For a component parameter x with direction=in, after the component's renderComponent is exceuted, the parameter x is reset to its default value. Please see p225 to 228 in TIA for more details. The following might be a quick fix. In your component, create an

Re: Combined context-asset tags

2005-06-07 Thread Shing Hing Man
A solution is the archive http://article.gmane.org/gmane.comp.java.tapestry.user/6935/match=global+assets Shing --- Steven Schermerhorn <[EMAIL PROTECTED]> wrote: > Is there a way to put all of the context-assets in > one file, and then be > able to get the assets from anh page or component?

Re: PopupLink in contrib:Table

2005-05-30 Thread Shing Hing Man
> Script components must be contained within a Body > component. > component: > As the error message points out, instead of using the usual html , you must use the tapestry body component. http://jakarta.apache.org/tapestry/doc/ComponentReference/Body.html Shing --- [EMAIL PROTECTED] wrote:

Re: augmenting DirectLink

2005-05-26 Thread Shing Hing Man
Have you checked out the NewWindowLink component from http://equalitylearning.org/Tassel/app ? Shing --- Eric Schneider <[EMAIL PROTECTED]> wrote: > Hi, > > I need the ability to render DirectLinks in an > alternate way. > > Instead of the standard: > > href="/myapp/app?service=direct/1/Home

Re: Best approach with javascript prompt

2005-05-24 Thread Shing Hing Man
In case you have not seem it before, you might find the following in the archive useful. http://article.gmane.org/gmane.comp.java.tapestry.user/19107/match=ekman Shing --- "Scott F. Walter" <[EMAIL PROTECTED]> wrote: > Greetings, > > I want to have a link on a page that uses the > javascript pr

Re: dynamic forms that are stateless

2005-05-18 Thread Shing Hing Man
The following is only a suggestion. It might be useless to you. If your shiping addresses are generated by a Foreach component, you could replace it by a ListEdit component and "collect all the shipping addresses" during rewind in an ArrayList, without knowing how many are there in advance. An e

Re: AW: Foreach FormSubmit Stale Link Error

2005-05-13 Thread Shing Hing Man
> A DirectLink's listener is called before the rewind, Clicking a Directlink component does not cause a rewind. Please see p287 TIA. > value="Save" > > jwcid="SaveButton"/> > > value="Cancel" > > jwcid="CancelButton"/> If the saveButton and cancelButton have an IActionListerner, make sur

Re: How to implement such an "Enhanced" drop down list component ?

2005-05-11 Thread Shing Hing Man
The following does not exactly meet your requirement but you might able to modify it to fit your needs. Shing http://www.mattkruse.com/javascript/autocomplete/ --- Andy Chu <[EMAIL PROTECTED]> wrote: > Dear All, > > Suppose now we have a drop down list displaying > description of each option.

Re: Foreach and dynamic forms

2005-05-11 Thread Shing Hing Man
I have no answer to your problem but you might try the following if have not done so already. > > > postalAddress="ognl:postalAddress[counter]"/> > > Set up the postalAddresses in to be a list of distinct elements. In the above Foreach loop, print out postalAddress This is to make

Re: PageLink example not working

2005-05-07 Thread Shing Hing Man
I do not know whether the following helps. From Tapestry-3.0.3/web/doc/ComponentReference/PageLink.html the engine in [EMAIL PROTECTED] is not the org.apache.tapestry.engine.BaseEngine . The engine meant to be an instance of (from PageLink.html) public class MailEngine extends SimpleEngine imp

Re: Recommendation on how to use Javascript prompt?

2005-05-04 Thread Shing Hing Man
The following from the archive might be of interest to you. http://article.gmane.org/gmane.comp.java.tapestry.user/19107/match=ekman It shows how to set a parameter in a DirectLink from a javascript prompt. Shing --- Patrick Casey <[EMAIL PROTECTED]> wrote: > > I want to use a javascript

RE: Component includes

2005-05-03 Thread Shing Hing Man
> I really feel like there should be an option for > the @Script > component that just says "embed a link to this > script. Don't rewrite it, Have you looked at the element of the Tapestry script specification. It generates : Shing --- Patrick Casey <[EMAIL PROTECTED]> wrote: > >

Re: Listener methods are not getting called

2005-05-03 Thread Shing Hing Man
In your page specification, have you forgotten to set the class attribute ? Shing --- Travis Romney <[EMAIL PROTECTED]> wrote: > You're right. > I just mistyped it in the email > > I do have it this way on my form > > listener="ognl:listeners.formSubmit"> > > > > > Jean C. Favi

Re: how to obtain the rendered content of a block as String?

2005-05-01 Thread Shing Hing Man
The following is only an idea and it might not work. Suppose your Block is called myBlock. Step 1) Modify org.apache.tapestry.AbstractMarkupWriter if necessary (or implement your own IMarkupWriter) so that you can get your hands on the output stream inside it. Step 2) I think myBlock.renderBod

Re: form submit

2005-04-30 Thread Shing Hing Man
You might just need a button like this : http://www.whereever.com'"/> Shing --- "t.n.a." <[EMAIL PROTECTED]> wrote: > Hi everyone, > > the problem is as follows... > At the moment, I have a form component and a > listener to go with it and > everything's fine so far: the listener does what > i

Re: Bread Crumb navigation in Tapestry [ndc] [auf Viren geprueft]

2005-04-29 Thread Shing Hing Man
that I must have these hidden pages > in each form on my > page. I guess I can create my own > FormWithBreadCrumbs component, and use > that everywhere. Actually, that doesn't sound too > bad. > > If I'm successful, I'll package it into a library. > Ciao, >

Re: Bread Crumb navigation in Tapestry [ndc] [auf Viren geprueft]

2005-04-28 Thread Shing Hing Man
The following is only a thought. I might be talking rubbish. Instead of using visit object to store the trail, output the trail info in hidden fields. Also use Directlink for each link in your trail. For each Directlink, store the page names that lead to that link in the Directlink component pa

RE: Problem retrieving object from component on submit - similar to Palette

2005-04-28 Thread Shing Hing Man
In the following, shouldn't you set direction="form" . > required="yes" > direction="in"/> Shing --- David Ethell <[EMAIL PROTECTED]> wrote: > Update on my problems. This is not a valid solution, > but it does allow a > single instance of my control to work on a page. I > just added t

Re: newbie WebappClassLoader problem

2005-04-24 Thread Shing Hing Man
FYI, if the "Pig-Latin" example you referred to is from http://www.ociweb.com/jnb/jnbMay2004.html, I have no problem running it on Tomcat 5.0.27, (Tapestry 3.0.1, Redhat 9). The war files are generated by the ant bulid script that comes with the code. If you have not done so, you might like t

Re: A show error component

2005-04-23 Thread Shing Hing Man
EMAIL PROTECTED]/$ShowError]. > > Thanks. > DvJ > > >From: Shing Hing Man <[EMAIL PROTECTED]> > >Reply-To: "Tapestry users" > > >To: Tapestry users > > >Subject: Re: A show error component > >Date: Sat, 23 Apr 2005 10:56:16 +0

Re: A show error component

2005-04-23 Thread Shing Hing Man
> source="bindings.delegate.object.fieldTrackings" > value="ognl:fieldTracking"> Inside source above, shouldn't it be source="ognl:bindings.delegate.object.fieldTrackings" Shing --- david joffrin <[EMAIL PROTECTED]> wrote: > Hi, > > I am coming with this topic as I left it on the side > whil

Re: page/component design question

2005-04-22 Thread Shing Hing Man
If you do not like using the Conditional component, take a look at the Block component (if you are not awared of it already). Also Mike Henderson's blog on dynamic block might be of interest to you. http://www.behindthesite.com/blog/C1931765677/E1630021481/ Shing --- "Zimmek, Jan" <[EMAIL PROTE

Re: ANN : DynamicSelectionList component

2005-04-17 Thread Shing Hing Man
Oohs ! Put down an incorrect link. It should be http://gauss.demon.co.uk/tapestryDemo/welcome Shing --- Shing Hing Man <[EMAIL PROTECTED]> wrote: > Dear all, > I have written a component for a drop down > selection list whose displayed contents depend on > the > sel

ANN : DynamicSelectionList component

2005-04-17 Thread Shing Hing Man
Dear all, I have written a component for a drop down selection list whose displayed contents depend on the selected item of a given parent list, represented by a PropertySelection component. Only single selection is supported. It is not perfect, but usable in simple situation. The binary and

Re: Help with component expression

2005-04-15 Thread Shing Hing Man
I have just download the source of HibLib.zip and taken a look. hibernate.cfg.xml is setup to run in a Mysql database. Shing --- Frank <[EMAIL PROTECTED]> wrote: > also, do I need to configure the database in tomcat? > > Frank > > -

Re: How to generate unique names of an AbstractComponent within Foreach

2005-04-15 Thread Shing Hing Man
Kent, I have fixed my prolem using an internal counter as you have suggested. Thanks for your suggestion ! Shing --- Kent Tong <[EMAIL PROTECTED]> wrote: > Shing Hing Man yahoo.com> writes: > > > I would like Tapestry to generate a unique (html) > > nam

Re: man:tooltip bug when using in table

2005-04-14 Thread Shing Hing Man
tested with the table components. I would expect it to be ok. Just let me know if there is a problem. regards, Shing --- Shing Hing Man <[EMAIL PROTECTED]> wrote: > I wrote the tooltip component. I will look into the > problem to see if it can be fixed and let you know > the

Re: what does the error mean?

2005-04-14 Thread Shing Hing Man
After googling for a few seconds, I might have found the solution. There is an explaination of the error message at http://mindprod.com/jgloss/compileerrormessages.html#CLASSNOTFOUNDINTYPEDEF Have you imported the page properly ? Shing --- webtekie <[EMAIL PROTECTED]> wrote: > Can someone e

Re: How to generate unique names of an AbstractComponent within Foreach

2005-04-14 Thread Shing Hing Man
com/ > can help. > > It looks like the Alternative base components can > detect if they are in > a form of not. > > Do not know if this will help. > > Nicolaas > > > On Thu, 2005-04-14 at 14:42 +0100, Shing Hing Man > wrote: > > Dear all, > >

Re: question about Tapestry Bucket Brigade pattern

2005-04-14 Thread Shing Hing Man
> Shouldn't the class be cc.ColorsResult ? Shing --- webtekie <[EMAIL PROTECTED]> wrote: > Sorry if these question is very simple, but I am new > to whole Tapestry... > > I asked about this before, but while implementing > have some problems. > This is the method I have in my main class:

How to generate unique names of an AbstractComponent within Foreach

2005-04-14 Thread Shing Hing Man
Dear all, I am trying to make my tooltip component work in a Foreach component. When a tooltip component is inside a Foreach component, I would like Tapestry to generate a unique (html) name for each copy of my tooltip component. (At present, the generated name is the same for each copy.) T

Re: man:tooltip bug when using in table

2005-04-14 Thread Shing Hing Man
ss. Shing --- Shing Hing Man <[EMAIL PROTECTED]> wrote: > I wrote the tooltip component. I will look into the > problem to see if it can be fixed and let you know > the > outcome later. > > Thanks for reporting the bug ! > > Shing > > --- Sebastian Knoerzer <[EM

Re: man:tooltip bug when using in table

2005-04-14 Thread Shing Hing Man
I wrote the tooltip component. I will look into the problem to see if it can be fixed and let you know the outcome later. Thanks for reporting the bug ! Shing --- Sebastian Knoerzer <[EMAIL PROTECTED]> wrote: > hi, > > i think i encountered a bug when i use the > man:tooltip component in a > co

RE: contrib:table Column Click

2005-04-13 Thread Shing Hing Man
Render of my > class. But it does not seem to work. > > > -Original Message----- > From: Shing Hing Man [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 13, 2005 12:33 PM > To: Tapestry users > Subject: Re: contrib:table Column Click > > In case you did not k

Re: contrib:table Column Click

2005-04-13 Thread Shing Hing Man
In case you did not know, (unless you have heavily customised the table component) when you click the column header, it will called the method columnSelected(IRequestCycle objCycle) in the class org.apache.tapestry.contrib.table.components.inserted.SimpleTableColumnComponent The name of the colu

Re: How to pass informal parameters using the MultiplePropertySelection renderer

2005-04-13 Thread Shing Hing Man
The javadoc says that informal parameters are not allowed. So you can't. http://jakarta.apache.org/tapestry/doc/api/org/apache/tapestry/contrib/form/MultiplePropertySelection.html --- Karthik Abram <[EMAIL PROTECTED]> wrote: > > There doesn't seem to be any way for the renderer > for > MultipleP

Re: 'Tapestry in Action' example question

2005-04-13 Thread Shing Hing Man
ToppingsResult.java is the java class that is associated with the tapestry page that displays the selected toppings. If you look at the source code of ToppingsResult.java , it extends BasePage. The idea is that in method selectToppings, you pass the selected toppings to the page ToppingsResult, a

Re: Informal Parameters Excluded

2005-04-13 Thread Shing Hing Man
In the Java class associated with your component, PasswordField.java in this case, it must execute the method renderInformalParameters(writer, cycle); inside the method renderComponent(IMarkupWriter writer, IRequestCycle cycle). You can checkout the source code of a framework component that alll

Re: Page as abstract class or not

2005-04-12 Thread Shing Hing Man
. > > So are you saying that if you implement a > getter/setter yourself, and > you have instance variables, you have to reset/unset > these instance > variables by overriding the initialize() method? I > don't remember seeing > that in Howard's book. > initialize() method is discussed on p305 i

ANN : Revised Tooltip component

2005-04-12 Thread Shing Hing Man
Dear all, The last version of my tooltip component has a bug regarding to the positioning of the tooltip when there is scrolling. This has been fixed. The position of the tooltip is now in sync with the scrollbars. The following features have been added. 1) A staticFlag parameter to indicate w

Re: Clustering mutable objects

2005-04-08 Thread Shing Hing Man
Java.lang.String is immutable - it has no setter method. Shing. --- Sri Sankaran <[EMAIL PROTECTED]> wrote: > I was reading Tapestry In Action and did not > understand the implication of clustering a mutable > object. Hope you can explain. > > To set the stage, the section states that an app >

Re: Keeping the session alive

2005-04-07 Thread Shing Hing Man
Have you looked at the method HttpSession.setMaxInactiveInterval ? If I remember correctly, the method HttpSession.setMaxInactiveInterval(int interval) overrides the session timeout set in web.xml. If you can distinquish whether the request is for a quiz or form, you could set the session tim

Re: Using Hibernate With Visit Object?

2005-04-06 Thread Shing Hing Man
I do not have a soultion to your problem but only a suggestion. To narrow down the problem a bit, you could run your Hibernate related code outside Tapestry (if you have not done so already) and see if the same problem occurs. Shing. --- John Gordon <[EMAIL PROTECTED]> wrote: > Hi Folks, > > I'm

Re: Component name prefixes (was Tapestry Form component name)

2005-04-05 Thread Shing Hing Man
The prefix is the component id specified by the user. Without it, Tapestry will generate one for you. It is explained on p124 in TIA. Shing --- David Leangen <[EMAIL PROTECTED]> wrote: > > This leads me to a question that I've been a bit > curious about... > > Would somebody mind kindly explai

Re: One Time Initialization

2005-04-04 Thread Shing Hing Man
The IEngine has been initialised. But just before the initialize method is called , the page is detached from the engine. (Please see p305 in TIA.) That is why you are getting a null pointer exception. You can do the initialization in Page pageBeginRender method or the AbstractComponent method

Re: html page not changing in Tapestry application

2005-03-31 Thread Shing Hing Man
-Dorg.apache.tapestry.disable-caching=true. > > But how do I do this? > > > > Shing Hing Man wrote: > > >Please check out FAQ 2.13 at > > > >http://jakarta.apache.org/tapestry/faq.html#faq-N10187 > > > >Shing > > > > > &g

Re: html page not changing in Tapestry application

2005-03-31 Thread Shing Hing Man
Please check out FAQ 2.13 at http://jakarta.apache.org/tapestry/faq.html#faq-N10187 Shing --- Alex Kravets <[EMAIL PROTECTED]> wrote: > Hello, > > I just started learning Tapestry, I am running it > under Tomcat. When I > created my html page under my web application > directory I can't seem

  1   2   >