I got -
Could not convert 'headBlock' into a component parameter binding: Exception
generating conduit for expression 'headBlock': Class
app.components.LayoutWithSegments does not contain a property (or public
field) named 'headBlock'.
There are 4 files involved (2 .tml and 2 java files), which o
Why not use blocks
...
public class Layout {
@Parameter(defaultPrefix = BindingConstants.BLOCK)
@Property
private Block headBlock;
}
regards
Taha
On May 19, 2012, at 7:52 AM, TG wrote:
> I need to do this -
>
>
> xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.x
First time I've stumped you :)
Anyhow, I found a work around. Just had to use single quoates in the
parameter to pass back my string value, then I could handle setting up the
Field on the backend.
t:validator="prop:getAuthorizerValidator('authorizer')"
public FieldValidator getAuthorize
I missed that, sorry, indeed, that's not valid.
Norman Franke
Answering Service for Directors, Inc.
www.myasd.com
On May 18, 2012, at 2:52 PM, Ray Nicholus wrote:
> Having a plus in the domain of your email address is effectively not valid
> as this type of a domain is not allowed by DNS. Cha
On Fri, 18 May 2012 16:40:43 -0300, George Christman
wrote:
Hi Thiago, do you have any suggestions on my previous question?
If I had, I'd have posted it, I guarantee. :)
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instruct
Hi Thiago, do you have any suggestions on my previous question?
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/dynamic-validation-for-required-not-required-tp4422440p5712101.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---
Having a plus in the domain of your email address is effectively not valid
as this type of a domain is not allowed by DNS. Character with an accent
are also not allowed in email addresses. See RFC 5322 section 3.2.3
(mirrored at http://tools.ietf.org/html/rfc5322#section-3.2.3). Quotes are
also
That was all with my problem. Thanks Taha for all the help.
If somebody wants the code:
*Class:*
Object onSuccess(){
...
if (request.isXHR()) {
ajaxResponseRenderer.addCallback(new JavaScriptCallback() {
@Override
public void run(JavaScriptSupport arg0) {
arg0.addScript(String.forma
Hi
I can't see how it is problematic. Can you share the code ?
regards
Taha
On May 18, 2012, at 2:30 PM, Ab wrote:
> Hey Taha,
> I was using the code you posted to allow multiple selects and it worked
> perfectly with ONE t:MultipleSelect component. However, I'm working on a web
> page with two
Since Apache Shiro 1.2.0, there is a plugin that allows Schiro to
communicate directly with CAS SSO server. Has this functionality made it
into tapestry-security yet? It'd be handy to have. :)
Cheers,
Chris
Hi. My problem was solved.The issue was that the third party application was
submitting the data to instead of so no data was actually received.
Should be this considered as an error?
Thanks for the answer.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/getting-the-POST
One of Tapestry's principles is static structure and dynamic behaviour so
components can't be created at runtime. The MarkupWriter is for writing
HTML, not TML.
Can you do what you want in a tml file instead?
If not, you can do it programatically like this:
Component.tml
-
Hey Taha,
I was using the code you posted to allow multiple selects and it worked
perfectly with ONE t:MultipleSelect component. However, I'm working on a web
page with two fields that are MultipleSelect. How do I accomplish that. In
both getRender and getModel you're using myList. In my case I ha
Hi, all
I got the following question,
supose that I want to define an accordion like this...
t:activeElementId="activeElement">
>
>
> Element 1
>
> content from block 1
>
>
>
> Element 2
>
> content from block 2
>
>
>
>
>
but, that I w
Hi.
I've implemented a component in Tapestry 5, and I need my component to use
for some of its rendering, but of course, just using
writer.element("t:actionlink", ...) doesn't work.
What is the preferred approach to render a few components inside another
custom one?
Thanks in advance!
--
View
Having a + is valid. Some email systems allow users to filter based on stuff
after the +, so joe+...@bar.com would still go to j...@bar.com, but he could
then filter it into folders. I used to do this in college.
See: http://en.wikipedia.org/wiki/Email_address
The format of email addresses is l
Very very strange.
I tried to encode Chinese first in javascript then sent to the component
event handler.
Javascript:
new Ajax.Request(spec.url,
{
method: 'post',
parameters: {content: encodeURIComponent('?
Examples of currently allowed (and invalid) addresses:
accent char - ép...@example.com
'+' in domain - test@foo+example.com
'/' in domain - test@example/com
wrapped in single quotes - 'f...@example.com'
wrapped in double quotes - "f...@example.com"
Is there currently a case in JIRA to a
Kalle,
Thanks for the prompt & thorough response! I will dig into the docs &
samples you've pointed me to & return here if I have more questions.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/tapestry-security-with-jdbcrealm-tp5711720p5711875.html
Sent from the Tapestry
Just use int or long. Translators will take care of the leading zero.
On May 18, 2012, at 6:02 PM, Fight Ice wrote:
>
> So I can't use int type for the field which uses the regexp.
> Could anyone give me some advices for this case?
>
---
So I can't use int type for the field which uses the regexp.
Could anyone give me some advices for this case?
Solved!
In my java file:
@Property
private int productAmount;
The "productAmount" is int type. So the regexp validator doesn't works.
Thanks a lot Taha!
This case confused me. Why and how this happened?
I just created a page
Template
Java Page
import org.apache.tapestry5.annotations.Property;
public class TestPage {
@Property
private String email;
}
Properties file
productAmount-regexp=^[1-9][0-9]*
and it works :)
regards
Taha
On Ma
^[1-9][0-9]* or ^[1-9]\\d* still doesn't work.
> Subject: Re: Tapestry Regexp Validator
> From: tawus.tapes...@gmail.com
> Date: Fri, 18 May 2012 14:12:14 +0530
> To: users@tapestry.apache.org
>
> Your regular expression indicates that productionAmount should be 1-9. Is
> that so ?
>
> if it i
Your regular expression indicates that productionAmount should be 1-9. Is that
so ?
if it is a number not starting with zero shouldn't it be ^[1-9][0-9]* or
^[1-9]\\d*
On May 18, 2012, at 1:55 PM, Fight Ice wrote:
>
> in template file:
>
> t:validate="required,regexp,min=1" t:type="t
productAmount-regexp=^[1-9][0-9]*
> Subject: Re: Tapestry Regexp Validator
> From: tawus.tapes...@gmail.com
> Date: Fri, 18 May 2012 13:43:28 +0530
> To: users@tapestry.apache.org
>
>
> Can you share the code ?
>
>
> On May 18, 2012, at 1:28 PM, Fight Ice wrote:
>
> >
> > Tapestry 5.3.2:
>
in template file:
in properties file:
productAmount-regexp=^[1-9]
The product amount can't start with zero.
> From: ricr...@hotmail.com
> To: users@tapestry.apache.org
> Subject: Tapestry Regexp Validator
> Date: Fri, 18 May 2012 15:58:12 +0800
>
>
> Tapestry 5.3.
Can you share the code ?
On May 18, 2012, at 1:28 PM, Fight Ice wrote:
>
> Tapestry 5.3.2:
> I try to use Email validator in my email input field, but it doesn't work.
> Then I use the regexp validator in my properties file like this:
> email-regexp=^[a-zA-Z0-9_\-]+@[a-zA-Z0-9_\-]+(\.[a-zA-Z0
Tapestry 5.3.2:
I try to use Email validator in my email input field, but it doesn't work. Then
I use the regexp validator in my properties file like this:
email-regexp=^[a-zA-Z0-9_\-]+@[a-zA-Z0-9_\-]+(\.[a-zA-Z0-9_\-]+)+$
It still doesn't work.
Finally I found even regexp like this "^[1-9]" does
29 matches
Mail list logo