RE: Rendering block from other page

2005-12-22 Thread Jimmi Dyson
I didn't get an answer to this so I'll try rewording it and see if that helps! Thanks in advance! The order of Blocks on my pages is to be configurable. So as to have clean HTML mock-ups for clients to see, the Blocks are moved into another page. For ease of maintenance, I would like to create a n

Submit's action and listener

2005-12-22 Thread Reggie Chan
I've just encountered a problem with stale link exception. my form layout with a submit button on the top and a table with some checkbox using contrib:tableView below. - When i use the submit's listener, it gives stale link exception. - When i use the form's listener, it works - When i move

Tapestry 3.0.3 Hidden

2005-12-22 Thread Vincent
Hi all, I found when I am retrieving/storing data from Hidden component the value of it will lose. e.g. if the value is 'Sample' but actually the value that I got from Tapestry is 'ample', I am confused about this , and found if the value is started by 'Kaaa' or 'Laa' , it's Ok. Did anyone met

selection problem

2005-12-22 Thread Ryan Pan
Hi all, I have a issue about using PropertySelection component. So I wanna whether can PropertySelection seperate his list value and list key.Because I may need to display the value,while using the key of the selection. So is there any one who know how to do? Thanks, Ryan.

Re: Testing Tapestry 4 applications

2005-12-22 Thread Ron Piterman
yes, I also bumped into silenium and am seriously considering using it. do you know if it has some kind of ajax testing support? Cheers, Ron Todd O'Bryan wrote: I finally took a look at Selenium. I must say, it's very slick. I was up and running in about 20 minutes and had written my first se

Re: Problem using tapestry for dynamic generation of page.

2005-12-22 Thread Ron Piterman
if you use directLink, you can pass parameters to listener method in the page/component where the link is generated from. in the listener method, you get a page instance of another page by calling requestCycle.getPage(...). you can then cast the IPage you have to the instance of the Page class

Re: Tapestry 3.0.3 Hidden

2005-12-22 Thread Andreas Idl
I had a simmilar problem: If you are setting the value of the hidden field with javascript, tapestry may have problems with the data type. See the component reference of Hidden. It is described there. I've solved it by setting the encoding parameter of the Hidden component to false. (it works i

RE: selection problem

2005-12-22 Thread Martijn Hinten
You will have to create yout own implementation of IPropertySelectionModel, of which several are available via the WIKI. Also see pages 141, 142 of Tapestry in Action. This is what I created myself and is working fine. The only bug/feature is that the value to which the PropertySelection component

Re: Tapestry 3.0.3 Hidden

2005-12-22 Thread Vincent
Hi Andreas, I have set the encoding to false, but still got the problem. regards, Vincent On 12/22/05, Andreas Idl <[EMAIL PROTECTED]> wrote: > I had a simmilar problem: > > If you are setting the value of the hidden field with javascript, tapestry may > have problems with the data type. See the

Re: Testing Tapestry 4 applications

2005-12-22 Thread Todd O'Bryan
I haven't gotten around to using Ajax at all yet, but there's this: http://wiki.openqa.org/display/SEL/waitForCondition Todd On Dec 22, 2005, at 5:56 AM, Ron Piterman wrote: yes, I also bumped into silenium and am seriously considering using it. do you know if it has some kind of ajax testi

RE: Submit's action and listener

2005-12-22 Thread Ben Dotte
Hi Reggie, At least as of rc-1, LinkSubmit does have an "action" parameter that works. This parameter was added to Submit, LinkSubmit, and ImageSubmit on http://issues.apache.org/jira/browse/TAPESTRY-666 but it disappeared from the LinkSubmit docs for some reason. I have just added a JIRA issue re

Attribute "expression" must be declared for element type "binding".

2005-12-22 Thread Gentry, Michael \(Contractor\)
I'm starting to convert something written in T3 to T4 and keep getting these types of error messages: Unable to read context:/WEB-INF/Home.page: Attribute "expression" must be declared for element type "binding". context:/WEB-INF/Home.page, line 23, column 49 21 22 23 24

Re: Attribute "expression" must be declared for element type "binding".

2005-12-22 Thread Ron Piterman
replace "expression" with value. Gentry, Michael (Contractor) wrote: I'm starting to convert something written in T3 to T4 and keep getting these types of error messages: Unable to read context:/WEB-INF/Home.page: Attribute "expression" must be declared for element type "binding". context:/WE

Re: Attribute "expression" must be declared for element type "binding".

2005-12-22 Thread Ron Piterman
try again: its a normal sax parser error message, which means, the attribute "expression" must be declaired in the dtd, and it is not. not a tapestry thing - if you misspell your hibernate or anyother app xml file you get the same error message. Gentry, Michael (Contractor) wrote: I'm startin

RE: Re: Attribute "expression" must be declared for element type "binding".

2005-12-22 Thread Gentry, Michael \(Contractor\)
I was wondering if that might be the case, too. Tapestry is the only thing where I'm typically hand-editing XML, so I normally don't see those types of error messages. I suppose a little blurb in the T3->T4 upgrade page would be helpful, too. Thanks, /dev/mrg (back to figuring out how to replac

RE: How to add Body - Attributes ?

2005-12-22 Thread djtrypt
this does not work. you would need to use a writer function to insert that onload event when the body tag gets rendered. > Otherwise, since Body is already a component there is absolutely no > reason why you couldn't just write the attribute directly on the tag right? > Not sure > what you are

Re: Unique Ids

2005-12-22 Thread Leonardo Quijano Vincenzi
I was checking this issue and it seems that "IComponent.getIdPath()" gives us a truly unique id, as long as all parent components have an assigned ID (not very sure about this last constraint, though). Is "compX.compY.compZ" a valid XML / HTML id ? -- Ing. Leonardo Quijano Vincenzi DTQ Softwar

Re: Attribute "expression" must be declared for element type "binding".

2005-12-22 Thread Ron Piterman
see server state in the users guide. Gentry, Michael (Contractor) wrote: I was wondering if that might be the case, too. Tapestry is the only thing where I'm typically hand-editing XML, so I normally don't see those types of error messages. I suppose a little blurb in the T3->T4 upgrade page

DirectArea in 4.0

2005-12-22 Thread Brian Long
I'm using the custom component DirectArea that HLS described in Tapestry in Action. The problem is that after migrating to 4.0 the renderComponent method is using deprecated/changed methods 3.0 public void renderComponent(IMarkupWriter writer, IRequestCycle cycle) { if (cycle.isRewind

Tapoestry 3 -> Tapestry 4 upgrade question

2005-12-22 Thread Ray O'Meara
Im using a combination of Tapestry,Spring,Acegi and Hibernate in a project and since ive upgraded to Tapestry 4.0 a failure occurs in an external link to a page which allows me to log out of the app and activate the Login page. A call to the RequestContext to get the Session invalidated results i

RE: Tapoestry 3 -> Tapestry 4 upgrade question

2005-12-22 Thread Patrick Casey
I saw that error a lot in my existing 3.0 application. In my case I eventually tracked it down to a low level socket write error (my server was reporting that the browser shut the socket before it finished sending the full stream). I'm sure there's another underlying cause e.g. the browser

RE: DirectArea in 4.0

2005-12-22 Thread Ben Dotte
Hi Brian, I'm not familiar with DirectArea but the changes should be relatively easy: In DirectArea.jwc, inject the direct service (or you could do this with annotations): Add the abstract getter to DirectArea.java: public abstract IEngineService getDirectService(); The parameters need to be

Re: [DISCUSS] Moving beyond the "rewind cycle" in Tapestry 4.1

2005-12-22 Thread Thomas Christensen
I would suggest that the rewind cycle was kept on as optional. It will make it easier to port older applications without changing all forms. Could be made deprecated but should just go away in 4.1. Could the client side state just be primary keys instead of complete serialised objects? A bi

Re: disabling form elements using ognl

2005-12-22 Thread amirsguard-tapestry
Got it to work, thanks! - Original Message From: Gunna Satria <[EMAIL PROTECTED]> To: Tapestry users Sent: Wednesday, December 21, 2005 09:14:45 PM Subject: Re: disabling form elements using ognl Hi Amir, how about doing it like this, regards, Gunna Vincent <[EMAIL PROTECT

RE: WebLogic 8.1: Cannot change charset from 'UTF8' to 'UTF-8

2005-12-22 Thread toehser
I also would like to see Tapestry check if the response is committed and only set the content type if it isn't. Yes, this is a Weblogic bug, and I'm working the issue with Bea, and yes, a wrapper can work around it; however; it also seems to me to be a good idea to just add this check to Tapest

Re: Unique Ids

2005-12-22 Thread Derick Fernando
Leonardo Quijano Vincenzi wrote: I was checking this issue and it seems that "IComponent.getIdPath()" gives us a truly unique id, as long as all parent components have an assigned ID (not very sure about this last constraint, though). Is "compX.compY.compZ" a valid XML / HTML id ? Yes, It i

RE: using SelectedTitleBlock in Palette

2005-12-22 Thread akhaja
I figured it out, for anyboyd who has the same issue. You just need to create the block in your page.html Unenrolled then in your specification file (.page), you do m2f Sent from www.TapestryForums.com Read this topic online here: <> ht

how to using form in popup page in Tapestry

2005-12-22 Thread The MoonGuard
Hi, I wanna try to make submit form in popup using contrib:PopupLink but it failed. The page just process the html code not processing page specification. For simple example, I want to use Insert component in popupLink. But it can't show. ??? Can somebody help out about this problem ?

Abstract superclass for pages with injection in T4?

2005-12-22 Thread Gentry, Michael \(Contractor\)
Since getVisit() and getGlobal() have been deprecated and I need the visit on every page in my application and the global on some of them, I decided to try to roll my own solution. I've searched through the documentation and this list, but still haven't stumbled across the right magic. What I hav

Render cycle and allocated ids

2005-12-22 Thread Scott Russell
I find there is a lot of confusion and functional overlap in how unique ids are allocated to components during the render cycle. Personally I have found it to be a complete pain when designing my own components, especially for components that refer to other components (like FieldLabel). You have

Re: Abstract superclass for pages with injection in T4?

2005-12-22 Thread Ron Piterman
if you are using java 1.5, use annotations (just for that injected property), this will solve your problem. Cheers, Ron Gentry, Michael (Contractor) wrote: Since getVisit() and getGlobal() have been deprecated and I need the visit on every page in my application and the global on some of them,

Re: Abstract superclass for pages with injection in T4?

2005-12-22 Thread Ron Piterman
ok - it seems you don't use jdk1.5. the .page file does not get inherited. The only solution I can see is copy/paste the defs. Gentry, Michael (Contractor) wrote: Since getVisit() and getGlobal() have been deprecated and I need the visit on every page in my application and the global on some of

Tapestry Portlets

2005-12-22 Thread Aj Gregory
Hello, I'm developing portlets using Tapestry 4.0 in Liferay 3.6.1... Liferay lets you have multiple instances of a portlet within a portal. To do this it creates a new instance of the portlet class, which for tapestry is the ApplicationPortlet class. Each time an instance of this class is c

Frame component problem.

2005-12-22 Thread jone
Hi,all, I have one frameset page,when rendered ,only one frame page loaded . The following is template code: When the frameset page rended,only the 'topPage' page loaded,the 'leftPage' and 'mainPage' is

Re: Tapestry 3.0.3 Hidden

2005-12-22 Thread Vincent
Hi Andreas, Sorry for the previous comment , it seems work fine. thanks, Vincent On 12/22/05, Vincent <[EMAIL PROTECTED]> wrote: > Hi Andreas, > > I have set the encoding to false, but still got the problem. > > regards, > Vincent > On 12/22/05, Andreas Idl <[EMAIL PROTECTED]> wrote: > > I had a

Re: Abstract superclass for pages with injection in T4?

2005-12-22 Thread Derick Fernando
Please look at this older post: http://thread.gmane.org/gmane.comp.java.tapestry.user/27105 Hope that helps. Ron Piterman wrote: ok - it seems you don't use jdk1.5. the .page file does not get inherited. The only solution I can see is copy/paste the defs. Gentry, Michael (Contractor) wrote:

Re: Table Component

2005-12-22 Thread Subramanian Thangamuthu
I am also need that example... Can any one provide the same.. Thanx... Subramanian - Original Message From: Badri Narayan <[EMAIL PROTECTED]> To: Tapestry users Sent: Tuesday, December 20, 2005 18:29:58 Subject: Table Component Hi, I need an example of a Table component in Tape

page and component inheritance

2005-12-22 Thread Yunfeng Hou
It always troubled me when I need to extend an existing component, because I have to copy all the spec from the parent component. Not an OO way. And when I need my pages to have some properties or injected services in common, I have to duplicate the page spec again. Not good either. Thanks to hive