RE: Best Practise for Web Application Development

2006-08-07 Thread Kristian Marinkovic
Hi, if you look for some good references for ui in general, web design (html, css), design and best practices (for html) you could take a look at: www.alistapart.com the ui of a web app doesn't have anything to do with tapestry. tapestry allows you to design your templates as you want it. g, kr

Best Practise for Web Application Development

2006-08-07 Thread Peter Dawn
hi guys, i bring you the ultimate question, Whats the best practise for tapestry web development? What I am implying is, how do we convince our boses that web applications are like web sites and follow the same rules as web sites. For example, the best font for a tapestry web app would be in my

Re: Bypassing validation

2006-08-07 Thread Jesse Kuhnert
Validation doesn't really have any direct correlation to methods currently. (I don't think) Your listener method invocations are viewed as side effects of the components that contain them. (Like Submit or Form ) If you really had to do it you might be able to figure something out via a combinatio

Bypassing validation

2006-08-07 Thread Vinicius Carvalho
Hello there! I was wondering if it is possible to bypass validation for some listeners? I have a form with multiple listeners. I'd like to have validation for some of them and others not. Is this possible? Regards - To unsubscri

Retrieve component value from inside page

2006-08-07 Thread Rui Pacheco
Hi all One question: it must be simple, but I can't get there. I have a component with a TextField and a Form. That component is inserted inside many pages. How can I retrieve the value of the textfield on the pages' beans? -- View this message in context: http://www.nabble.com/Retrieve-compo

Re: Multiple themes

2006-08-07 Thread Peter Dawn
thanks for that. can you provide some code example to help me out. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Multiple themes

2006-08-07 Thread Jesse Kuhnert
I think the tap3 Shell component supports the stylesheets parameter as well, so it probably isn't very hard. Ie http://tapestry.apache.org/tapestry3/doc/ComponentReference/Shell.html If you have something that wraps all of your pages (most of us do, the infamous Border component), then you just

Re: Multiple themes

2006-08-07 Thread Peter Dawn
update: there is no source code for tassel available. and i cant see it supporting multiple themes. i am also using T3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Multiple themes

2006-08-07 Thread Peter Dawn
thanks guys. will give these thoughts a try and see if i can get it to work. in the meantime if you have any more ideas do share them. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tapestry 5 Discussions

2006-08-07 Thread Nemanja Kostic
Sorry for adding further flame on this discussun (not my intention) but it's very sad to see all this discussions about Tapestry 5 and I need to say a few words. I was a big fan of Tap and was the only one in my company who stood up for it. We used it for a few big projects for major Swiss ba

RE: Maximize Portlet

2006-08-07 Thread Epstein, Ezra
What's the code for your getActionResponse() method? When you say "DirectLink call" do you mean a Listener method? Page 50 (among others) of the JSR 168 spec lists conditions where one may not call setWindowState() and where an exception should be thrown. Thanks, Ezra Epstein -Original

Maximize Portlet

2006-08-07 Thread Joel Trunick
I'm doing getActionResponse().setWindowState(WindowState.MAXIMIZED) as part of a DirectLink call. This apparently throws an exception in Liferay. How does one maximize the window? Joel -Original Message- From: Michael Becke [mailto:[EMAIL PROTECTED] Sent: Friday, March 31, 2006 7:53 A

Re: Form Component that outputs raw DisplayName

2006-08-07 Thread Jesse Kuhnert
There is a "raw" parameter to the FieldLabel component. http://tapestry.apache.org/tapestry4.1/components/FieldLabel.html On 8/7/06, John Menke <[EMAIL PROTECTED]> wrote: I have a component that implements IFormComponent - and has a getDisplayName() method that returns the name for use in a la

Form Component that outputs raw DisplayName

2006-08-07 Thread John Menke
I have a component that implements IFormComponent - and has a getDisplayName() method that returns the name for use in a label. I need the outputed text in the label to be RAW - is there any simple way of doing this? -jm

RE: Multiple themes

2006-08-07 Thread Kevin Menard
> -Original Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of hv @ Fashion Content > Sent: Monday, August 07, 2006 10:13 AM > To: users@tapestry.apache.org > Subject: Re: Multiple themes > > I't much easier in T4 now. > > Inject the AssetFactory: > value="service:tapestry.ass

Select component

2006-08-07 Thread Rui Pacheco
Hi all I have a normal HTML select component on my page and I would like to make its value appear on my page bean. How can I do that? I know there is PropertySelection and @Select, but PropertySelection is overkill for a component whose values will rarely be edited and @Select forces me to itera

Re: Single HTML, many Pages

2006-08-07 Thread hv @ Fashion Content
It still sounds like you want to use the same html template(I take that is what you mean by view) by multiple pages(which don't need their own distinct classes, but it seems that is what you need). If that is the case you can set the $template asset in the .page definition, as Andrei suggested.

Re: Manipulate components inside a @For with DirectLink.

2006-08-07 Thread Karthik N
The solution looks quite nice. After our experimentations with For, we realized that the state of each minimize of each TabGroup should be a part of a List and not in the component. And that's where the TabGroupView fits in. Quite an eye-opener!! I always had the impression that a For loop wou

Re: Multiple themes

2006-08-07 Thread hv @ Fashion Content
I't much easier in T4 now. Inject the AssetFactory: To return the IAsset: assetFactory.createAbsoluteAsset(cssName.toString(),null,null); "Kevin Menard" <[EMAIL PROTECTED]> skrev i en meddelelse news:[EMAIL PROTECTED] >I haven't actually tried this, but it would seem that if you passed the C

Re: Tapestry 4.1: dojo everywhere?

2006-08-07 Thread Jesse Kuhnert
It's more for "javascript" in general now. As I've stated before though, nothing is set in stone yet wrt how dojo is included. It sounds already like I'll need to investigate a few paths to find the most optimal solution to fit all needs. On 8/7/06, D&J Gredler <[EMAIL PROTECTED]> wrote: I thin

Re: Multiple themes

2006-08-07 Thread hv @ Fashion Content
Make a HiveMind service or ASO that can determine the termine the current theme/skin. Personally I would prefer using a special cookie for the theme, but you can use session scope as well. Use @Shell with a stylesheet parameter that refers to an IAsset property on the ASO. I would suggest imple

Re: Tapestry 4.1: dojo everywhere?

2006-08-07 Thread D&J Gredler
I think the Tap devs decided to stop maintaining custom validation logic and offload that on a 3rd party lib: dojo. I believe that's why you're seeing dojo included when you have forms. It might be possible to tweak Tapestry so that it doesn't include dojo if the form doesn't have any validation d

Re: Multiple themes

2006-08-07 Thread Robert Zeigler
If all you're interested in doing is changing the css file, you can look at the tassel source code (it supports multiple themes). http://sourceforge.net/projects/tapestry-tassel Robert Peter Dawn wrote: > guys, > i am trying to implement multiple themes within my web app. what i > really want to

RE: Multiple themes

2006-08-07 Thread Kevin Menard
I haven't actually tried this, but it would seem that if you passed the CSS context path as the "stylesheet" parameter with OGNL to the Shell component, that you could do this. Otherwise, you could look more at using the Shell's "delegate" parameter if you need finer grain control. The hardest pa

Re: [OT] Source code management

2006-08-07 Thread Robin Ericsson
On 8/5/06, Robin Ericsson <[EMAIL PROTECTED]> wrote: I'm looking for a SCM that has support for approval/rejection of code/patches before it goes into the trunk. To answer my own question I found a tool that does what I'm looking for. It isn't a new SCM but has support for CVS, Subversion, Perf

Re: Manipulate components inside a @For with DirectLink.

2006-08-07 Thread Reto Hotz
Hi, Thanks for your reply. Yes, I found a solution: I created a new "wrapper"-component who does the for-loop stuff. I called it TabGroupView. Within this component I can save the maximize/minimize status of all my TabGroups. This means I moved my @For loop from the Home.html into this component

Re: Manipulate components inside a @For with DirectLink.

2006-08-07 Thread Karthik N
any luck with this issue? After some discussions and experimentation with a colleague of mine, it appears that there is only one component. that's the nature of the For loop. We did this in the listener on the page: Map comps = this.getComponents(); Set keyMap = comps.keySet();

Re: Number translator in 4.1.

2006-08-07 Thread Jun Tsai
I find the expression is [([-+]|)(0|[1-9]\d{0,2}([,]\d{3})*)(\.\d+)?(([eE]([-+]|)(0|[1-9]\d*))|)] Jun Tsai 2006/8/7, Jun Tsai <[EMAIL PROTECTED]>: I find tapestry using dojo to validate number. [[dojo.validate.isRealNumber,{decimal:".",separator:","}] If I want to enter a number 123456,I o

Number translator in 4.1.

2006-08-07 Thread Jun Tsai
I find tapestry using dojo to validate number. [[dojo.validate.isRealNumber,{decimal:".",separator:","}] If I want to enter a number 123456,I only enter 123,456. If I want to enter a 12345.How to define a translator? Thanks. -- Welcome to China Java Users Group(CNJUG). http://cnjug.dev.java.ne

Re: Re: Tapestry 4.1: dojo everywhere?

2006-08-07 Thread Sam Gendler
I haven't invesitgated 4.1, but surely you can always replace the default 170KB dojo.js with a stripped down one, since dojo provides the possibility of custom builds. If you actually use the dojo functionality, of course, your code will be downloaded piecemeal by dojo, but if you avoid the using

RE: [New Service]

2006-08-07 Thread Scott Venter
Shing, this is exactly what I was looking for. Many thanks Scott. -Original Message- From: Shing Hing Man [mailto:[EMAIL PROTECTED] Sent: Sat 8/5/2006 11:09 AM To: Tapestry users Cc: Subject:Re: [New Service] Have you looked at the following example ? http://lombo