Hi all,
Is there any way to display the date picker widget always (not only when
clicked on icon).
please help me.
I tried giving "toggle = false". no use.
Thnks in advance,
Sumanth.D
www.indygo.in
Hi josh, Thanks for the help, I will try the zone 2nite.. thanks a lot
:working::working:
joshcanfield wrote:
>
>> Sorry, i forgot to describe the functions of the button.
> No worries, if you want a good answer though, you'll have to ask your
> question with more details.
>
>> The button is fo
> Sorry, i forgot to describe the functions of the button.
No worries, if you want a good answer though, you'll have to ask your
question with more details.
> The button is for doing the ajax, like retrieve the results from a
> arraylist in page class, and display them when i click it. but not for
Hi,
I've noticed some quirks about the html generated by T5, and I was
wondering how I could go about changes these things. I would appreciate it
if someone could point out how to fix these things.
1) When using , an additional attribute xmlns="
http://www.w3.org/1999/xhtml"; is added to the pa
I tried it out and it worked quite easy.
Spring is not a dependency of DWR as far as I know, so... ;)
Leon Derks schrieb:
I don't have that topic.
Is it easy to integrate DWR with tapestry, without Spring?
Leon
Renat Zubairov wrote:
Hi
That's an interesting topic. Actually we had discussed
Sorry, i forgot to describe the functions of the button.
The button is for doing the ajax, like retrieve the results from a
arraylist in page class, and display them when i click it. but not for
submitting the form, they are a normal button and a normal textarea.
joshcanfield wrote:
>
>> I ma
Hey Toby,
> I'm not sure I like the idea of a framework FORCING me to do something
I agree with the sentiment, but in this case isn't it misplaced? I
suppose you are forced to consider which binding implementation to
use, but that feels more like flexibility. Tapestry should make
integrating and
I've just noticed something: If I have two validators and validation fails
twice, I only see one error message. E.g.
@Validator("required, regexp");
public String getEmail() {
return email;
}
message catalogue:
email-required=please enter your email
email-regexp=(\\w+)@(\\w+\\.)(\\w+)(\\.\\w+
Fixed it!
It was because I defined the textfield as emailText, but the property as email.
so my message catalogue now looks like
emailText-regexp=(\\w+)@(\\w+\\.)(\\w+)(\\.\\w+)*
emailText-regexp-message=that appears to be an invalid email format, please
check it
On a minor point I think this
Hello again :)
I've just added some validation to my custom component and I'm having trouble
with the regexp validator. As per the "forms" tutorial on the T5 site I've
placed a @Validate annotation on my getEmail() accessor:
@Validate("required,regexp")
public String getEmail() {
sorry for my less detailed question.
i tested it now with IE6/FF2 too, only the FF3beta5 has this behaivor
2008/5/13 Robert Zeigler <[EMAIL PROTECTED]>:
> I've seen the behavior as well, in FF3 beta 5,
> Not sure if it's a FF3 bug, or a javascript bug, but given that Palette
> works in Safari 2,
I just realized I repeated Rob, so listen to him :-)
Chris Lewis wrote:
> I seems like you'd want to use the 'disabled' parameter as Robert
> mentioned, which many components have. Perhaps your dynamic behavior
> could be solved by storing a flag in a page property and then using
> something like:
Yep, that makes sense - i was thinking that the parameter specified in the
annotation was a literal, but it's a prop so that will work nicely
Thanks guys
- Original Message
From: Robert Zeigler <[EMAIL PROTECTED]>
To: Tapestry users
Sent: Tuesday, 13 May, 2008 7:16:53 PM
Subject: Re: C
Chris correctly pointed out that classes are POJOs, but I'm guessing
he thought you were referring to your own components.
But I think you're thinking about framework-provided components, where
you don't have the easy ability to get/set properties.
First, for many of these properties, there use
I seems like you'd want to use the 'disabled' parameter as Robert
mentioned, which many components have. Perhaps your dynamic behavior
could be solved by storing a flag in a page property and then using
something like:
Where disabled would be a boolean page property.
Toby Hobson wrote:
> Thanks
Thanks Chris,
Does this mean that there is no easy way to disable a textfield at runtime for
instance? Would a mixin work for this?
Toby
- Original Message
From: Chris Lewis <[EMAIL PROTECTED]>
To: Tapestry users
Sent: Tuesday, 13 May, 2008 7:10:16 PM
Subject: Re: Changing a component
Is "disabled" a parameter for the component?
If so, then why not make the dynamic "disabled" a property of the
parent component or page, and bind the component parameter to the
parent property?
For example:
the component:
@Parameter
boolean disabled;
...
The page or component that
Toby,
Components are just POJOs - as far as your application code they have no
common type; no common interface for such actions. There is a common
interface but it is fitted onto component classes at runtime. If you
need to set properties/call methods, you must provide such interfaces.
chris
To
This may sound like a simple question but I can't work out how to change a
property programatically. Basically I'd like to disable a component from an
event handler. I know I can pass params in via TML or using annotations but I
can't find any setX() methods on the components
Thanks
Toby
I've seen the behavior as well, in FF3 beta 5,
Not sure if it's a FF3 bug, or a javascript bug, but given that
Palette works in Safari 2, 3, IE 5.5, 6, 7, FF2 (win and mac), and
opera, my initial reaction when I experienced the bug was to think:
"Well, I /am/ using a beta browser..."
Robe
I'm not sure I like the idea of a framework FORCING me to do something, IMHO
poorly structured code should be prevented by coding standards and peer
reviews, not a rigid framework. Just moving the logic from a JSP/Template to a
Java class doesn't necessarily mean it's cleaner. Sometimes it is ac
No, and that's odd behavior. I've tested Palette on FF Mac and FF Win
and IE Win, so something else is going on. Any chance you have some
client-side script attaching to those buttons?
On Tue, May 13, 2008 at 10:28 AM, Sven Homburg <[EMAIL PROTECTED]> wrote:
> hi there,
>
> if i click on the se
hi there,
if i click on the select/deselect button of the palette component
a page submit is initiated.
is this the wanted behavior ?
--
with regards
Sven Homburg
http://tapestry5-components.googlecode.com
EventLink occured to me later than ActionLink, that's all. Perhaps if
I had thought of EventLink first, there wouldn't be ActionLink.
EventLink URL's need to explicitly identify the event name in the URL,
i.e., "/page:myevent". ActionLink's need to identify the component
instead: "/page.mycompon
OK that makes sense ... I thought that returning true meant "carry on as normal"
Thanks guys
Toby
- Original Message
From: Robert Zeigler <[EMAIL PROTECTED]>
To: Tapestry users
Sent: Tuesday, 13 May, 2008 5:59:51 PM
Subject: Re: Mixin render phases
That appears to be the result of (fr
> I make the component called button which is different compare with submit
> component.
> The questions I have now is. how can I get the value from textarea without a
> submit button.
You haven't shown us what your button does. Are you submitting the
form that the textarea is in?
Josh
On Tue, M
That appears to be the result of (from: http://tapestry.apache.org/tapestry5/tapestry-core/guide/rendering.html)
:
"If a method returns a true or false value, this will short circuit
processing. Other methods within the phase that would ordinarily be
invoked will not be invoked.
Most rende
On Tue, May 13, 2008 at 2:21 AM, Blower, Andy
<[EMAIL PROTECTED]> wrote:
> This should be done with care though IMO. To me, one big advantage of T5 over
> JSP's with
> EL or OGNL is that you are forced to keep the logic out of the templates for
> the most part.
> Simple comparisons and single par
Hi Toby,
Try switching to @SetupRender. For /most/ things, doing:
@SetupRender
public boolean setup() {
return false;
}
Is going to work.
But check out the jira referenced by Kristian.
Robert
On May 13, 2008, at 5/1310:55 AM , Toby Hobson wrote:
Something else i've noticed ... if i modify
sorry, one typo
@OnEvent(component = "*selectField*", value = "change")
public void onChange(String value)
{
System.err.println(value)
}
2008/5/13 Sven Homburg <[EMAIL PROTECTED]>:
> your page class:
>
> @Property
> private ValueEnum _selectedItem;
>
> @Component(parameters = {"mod
Something else i've noticed ... if i modify my mixin to always return true
during the @BeginRender phase I still get the exception!
- Original Message
From: Toby Hobson <[EMAIL PROTECTED]>
To: Tapestry users
Sent: Tuesday, 13 May, 2008 4:52:33 PM
Subject: Re: Mixin render phases
So if
your page class:
@Property
private ValueEnum _selectedItem;
@Component(parameters = {"model=testModel", "value=selectedItem",
"event=change", "onCompleteCallback=onSelectCompleteFunction"})
@Mixins(value = "t5components/OnEvent")
private Select _selectField;
public Select
So if I've read the JIRA correctly does this mean that simply implementing
@BeginRender and @AfterRender in my mixin is not enough - I would actually have
the modify the component (in this case textarea)? to check for short-circuiting?
Toby
- Original Message
From: Kristian Marinkovic
mixins are the best fit for the job, but there are some
pitfalls you have to be aware of when used with certain
components (see https://issues.apache.org/jira/browse/TAPESTRY-1805)
but there are other alternatives:
1) use a delegate and choose which representation of a page fragment
is to be rend
Hi Chris,
Thanks for your answer,
this is the other part:
blankLabel="${message:text-all}" t:mixins="t5components/OnEvent"
event="change" />
The System.out.println("Value: " + value) in my java code always prints
the first selected value. After that always the first value is printed,
no mat
Leon,
I can't tell from that code where/how you've used the OnEvent mixin. I
see the @OnEvent annotation, but that's unrelated (as you probably
realize). This exact use case was discussed recently - see:
http://markmail.org/search/?q=ajax-based+data+retrieval+list%3Aorg.apache.tapestry.users#quer
the RequestGlobals service can return the HttpServletRequest
and HttpServletResponse objects (getters) ... therefore you could
implement RequestFilter as well :)
g,
kris
"kranga" <[EMAIL PROTECTED]>
13.05.2008 16:51
Bitte antworten an
"Tapestry users"
An
"Tapestry users"
Kopie
Thema
R
I don't have that topic.
Is it easy to integrate DWR with tapestry, without Spring?
Leon
Renat Zubairov wrote:
Hi
That's an interesting topic. Actually we had discussed it once with Igor,
and it seems that it shouldn't be too hard.
The question is which objects from the server-side you want t
I want to update a select, based on a value from another select.
I have tried the OnEvent mixin from the t5components, but only the first
selected value is printed to the screen.
When I select another value after that, it always prints the first
selected value.
How can I do this with Tapestry
I'm actually done this (albeit using Spring MVC but similar issues apply). In
general it's pretty easy - the new activation context makes it much easier to
point to tapestry pages from a non-tapestry base (or indeed a bookmark). For
example you can now call http://www.domain.com/app/showProduct/
Obvious: Because you can't access the HttpServletRequest from within the
RequestFilter to access methods such as getRequestUri() (needed by 3rd party
library being called in the filter).
If I didn't have access to the ASO manager, then I could write up the filter
as a traditional Servlet filte
Why not use a RequestFilter, instead?
You can access the ApplicationStateManager from withing a RequestFilter.
Robert
On May 13, 2008, at 5/139:41 AM , kranga wrote:
Version: 5.0.11
It appears that if you inject an application state manager into an
HttpServletRequestFilter and try to access
Version: 5.0.11
It appears that if you inject an application state manager into an
HttpServletRequestFilter and try to access an ASO, you get a null pointer
exception since the Tapestry Request object has still not been set up. This
means that if you do need to access an ASO, you are forced to
hi toby,
i think i had the same issue some time ago
i was also trying to create a mixin for enabled/disabled
handling by short circuiting the render phases. but the
render phases (or at least the short circuiting) do not
work as i was expecting :).
maybe you can take a look at the problem des
Hi guys,
I'm trying to show/hide an html element based on Robert's recent suggestion
(Re: how do we secure our views) but I've hit a minor problem. The mixin's
@BeforeRender method is being called but then tapestry complains that the
component (textArea) is unbalanced. I'm using the component a
Hi,
I have a template wich look like this one :
...
zone="clientZone">${client.name}
zone="mailingZone">${mailing.title}
...
and the associated code :
public class Clients {
@Inject@Service("mailingServices")
priv
We are about to add a new section to an existing struts1 application and I
was hoping that I could implement the new section using tapestry 5 with a
view to migrating some of the existing pages to tapestry 5 in the future.
The existing application has a couple of servlets for generating images
(gra
I make the component called button which is different compare with submit
component.
The questions I have now is. how can I get the value from textarea without a
submit button.
<-- I put the value = "task"
And in the page class, i put
public void setTask(String task)
{
Hi all,
using an ActionLink one has to assign an id. By this id the event hander is
determined. So far so easy. But having assigned an id, a particular ActionLink
can only be used once per template. With EventLink one can assign an event
attribute and can put several links into a template poi
Hi
That's an interesting topic. Actually we had discussed it once with Igor,
and it seems that it shouldn't be too hard.
The question is which objects from the server-side you want to access from
DWR? If you will answer this question
then you can just start a DWR servlet in your web application an
adasal wrote:
Joachim what are your thoughts on OWL export of the object model? Where
would that be used?
The main use for me is for documentation purposes. It is very practical
to take the owl model, import that into protégé and use the Jambalaya
plugin to create a graphical representation
Hi Toby,
the correct attribute is t:blankLabel, not t:blankValue. And I recommend you
use a message from a message catalog, except a literal String.
Regards nillehammer
- original Nachricht
Betreff: T5 Blank option for select component
Gesendet: Mo, 12. Mai 2008
Von: Toby Hobson
Try enabling friendly urls for assets
On Tue, May 13, 2008 at 8:23 AM, abhilash <[EMAIL PROTECTED]> wrote:
>
> Hi all,
> I am using Tapestry4.1.5
> I have a custom widget.When i try to access my custom widget the javascript
> errors i am getting are as follows.
>
> GET
> http://localhost:8080/
Take a look at
http://svn.apache.org/repos/asf/tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry-4.1.5/core.js
tapestry.bind uses dojo.io.queueBind(parms) which should explain what
you're seeing
so, it seems that you just need to replace queueBind with your custom version
On Tue, May 13
This blog seems to have vanished:
http://courcy-en.blogspot.com/2008/01/tapestry-5-create-layout-component.html
As linked to from the wiki. Anyone know what's happened or have an archive of
this? I found it very useful.
-
To un
Thanks Sven !!
- Original Message -
From: "Sven Homburg" <[EMAIL PROTECTED]>
To: "Tapestry users"
Sent: Tuesday, 13 May, 2008 12:43:40 PM GMT +02:00 Athens, Beirut, Bucharest,
Istanbul
Subject: Re: Access to ServletContext
public static void
contributeSchedulerFactory(@InjectService("A
public static void
contributeSchedulerFactory(@InjectService("ApplicationGlobals")ApplicationGlobals
applicationGlobals,
MappedConfiguration configuration)
{
String configPath =
applicationGlobals.getServletContext().getRealPath("/WEB-INF/conf");
configuration.add("quartz.properties", config
How easy is it to integrate T5 with DWR?
Are there examples of how to do this?
How do I need to configure the dwr.xml file?
Leon
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
People thanks a lot :)))
I solved a problem:
dhning-2 wrote:
>
> Hi,
>
> What's your tapestry version?
> If is the latest version, you should not put the start.tml,
> start.properties
> in WEB-INF. They should be in parent level of WEB-INF(src/main/webapp/) or
> in /src/main/resources/com/
This should be done with care though IMO. To me, one big advantage of T5 over
JSP's with EL or OGNL is that you are forced to keep the logic out of the
templates for the most part. Simple comparisons and single parameter accessors
seem okay, but I've always been surprised when seeing people on t
Hi everyone,
How can I get access to the ServletContext, (Not Context), is it possible
through T5 IoC?
Thanks
Peter
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I've noticed from watching client side and server side logs that when
tapestry.form.submitAsync is called, it seems to go into a form of
stack, and is the request is only eventually made once a previous async
submit has responded.
I'm fairly sure of this because I had a js function setting a t
62 matches
Mail list logo