Hi,
I created a custom component "Question", and this component simply displays
a question and textfield (or radiobox, depends on the question type) to get
user input. It doesn't have defined inside the component's
template.
And now I need to do something like this (see below) on the page which
oh it seems that the data structure I use for the loop somehow able to store
the user response, after making that list @Persist("flash")... may be that
is good enough for me.
ronaldlee wrote:
>
> Hi,
>
> I created a custom component "Question", and this compon
e has only one
component, and I can use "@Component Question question" to directly access
the values..
ronaldlee wrote:
>
> oh it seems that the data structure I use for the loop somehow able to
> store the user response, after making that list @Persist("flash")... m
Hi,
I am using
"@Validate("required,regexp=^[a-zA-Z0-9_.-]+$,minlength=4,maxlength=20")" to
validate username input, my question is when it fails the regular
expression, the error displayed by "" is not user-friendly, it
reads something like "Username: does not match pattern '^[a-zA-Z0-9_.-]+$",
bers consist of 16 digits
>cardnumber-regexp=\\d{4}(\\-?\\d{4}){3}
>
> http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry/corelib/components/TextField.html
>
> -Filip
>
> ronaldlee skrev:
>> Hi,
>>
>> I am using
>> "@
Hi,
I am trying to use "onValidateFrom{Page Property name}" event handler to do
validation according to the guide:
"http://tapestry.apache.org/tapestry5/tapestry-core/guide/validation.html";
But my function is never called? Is it supported?
thx.
Ronald
--
View this message in context:
http:/
Thx for replying!
I am using 5.0.6 now.. is that feature supported?
Ronald
Ted Steen wrote:
>
> If you are on T5.0.11-SNAPSHOP try, onValidateFormFrom{name}
> I've seen that it has changed
>
> 2008/3/7, ronaldlee <[EMAIL PROTECTED]>:
>>
>>
>>
Hi,
I am able to create a simple layout components. But I want to organize my
components by putting them into a sub-package under the default
"components", but it is not working.
For example, if I put my BasicLayout.java and .html file just under
"components", and my content page reference that
Hi,
I am having problem with @Persist(Flash) and StreamResponse.. I am using the
latest 5.0.6 release.
Here is my setup:
- I have two pages, page A is for uploading an image, and page B is for
previewing an image.
- Page A injects Page B, and Page B has a @Persist("flash") on a
"imageFilename" a
ill get access the persisted field which nulls
> the
> field, and won't trigger the cleanupRender thus allowing the field to stay
> null.
>
> I haven't written the code, but I'm fairly sure that it should work and
> it's
> not much work to test it out.
>
&g
> from your server by tweaking that filename?
>
>
> On 10/26/07, ronaldlee <[EMAIL PROTECTED]> wrote:
>>
>>
>> Thanks for the tip.
>>
>> I find a solution to this problem by simply passing the filename as the
>> link's param, l
Hi,
I am building a page using layout component so that the layout can be shared
among other pages.
The question I have is that I want my layout component (lets say
"/layout/Basic.tml) to have access to page params/variables. A simple
example would be that I have a UserProfile page which uses a
Thx Angelo. This seems to make sense, but I cannot make it to work.. will try
more.
Ronald
Angelo Chen wrote:
>
> hi ronaldlee,
>
> you can pass the user name from the UserProfile page to the layout
> component, something like this:
>
> public class Layout {
>
Oh nevermind, it works now.. stupid browser still caching the old page. thx a
lot!
ronaldlee wrote:
>
> Thx Angelo. This seems to make sense, but I cannot make it to work.. will
> try more.
>
> Ronald
>
>
> Angelo Chen wrote:
>>
>> hi ronaldlee,
>&g
Hi,
I wrote a simple component which contain a check list (using checkboxes). I
put it in a page where it has a function to listen to the submit event.
Inside my onSuccess function, how can I access that component's check list
that user has set?
thx.
Ronald
--
View this message in context:
htt
antsMail' in your
> component/page class, with appropriate getters/setters (getWantsMail,
> setWantsMail).
>
> chris
>
> ronaldlee wrote:
>> Hi,
>>
>> I wrote a simple component which contain a check list (using checkboxes).
>> I
>> put it in
to be simple java-defined ones?
>>
>
> Yes.
>
>
>>
>
> Yes, but you don't need the ${}, the default binding is property
>
>
>
>
> Josh
>
> On Nov 12, 2007 3:01 PM, ronaldlee <[EMAIL PROTECTED]> wrote:
>
>>
>>
>> F
t to get access to your component in your page then define an
> attribute with the right type and use the @Component annotation. Add a
> getter to your component if you want to get something back out of it.
>
> @Component
> private MyComponent _component;
>
> Josh
> On Nov 12, 20
I found out the issue. The getter function has to return "Object" instead of
my custom data type to work, in order words, @Parameter can only handle
"Object", after that I can cast it back to my data type..
Ronald
ronaldlee wrote:
>
> But when I tried to pass my own
is something else going on.
>
> Ronald, can you give us a small code example that shows the problem?
> Josh
> On Nov 13, 2007 11:08 AM, Chris Lewis <[EMAIL PROTECTED]> wrote:
>
>> That doesn't sound right. I haven't done this before, but surely you
>> don&
Hi,
Does anyone know how to implement a Grid data source, or thru other ways,
such that it will only query partial data from the database, depending on
the page link user click on the Grid, and the "rowsPerPage" value set for
the Grid? I just don't want to retrieve the whole list if I only need t
ay have something to do
with the way I persist certain things.. need to investigate more.
Ronald
Sven Homburg wrote:
>
> have a look for a simple hibernated grid datasource
>
> http://wiki.apache.org/tapestry/Tapestry5HibernateGridDatasource
>
> best regards
>
> S.Ho
Hi,
Does anyone know how to set the default sorting order of Grid to be
descending? I don't see there is a property to do that.. I am using
GridDataSource, so I want the first call to "prepare" function, the
"ascending" param passed in to be "false"..
thx!
Ronald
--
View this message in contex
Hi,
I am using 5.0.13. For some reason when my ApplicationState object is being
accessed, it will throw a runtime exception
"No service implements the interface
org.apache.tapestry5.internal.InternalComponentResources."
My applicationstate object is just a simple class contains an integer and a
Turns out I put the application state object under "pages" directory, which
causes the problem..
ronaldlee wrote:
>
> Hi,
>
> I am using 5.0.13. For some reason when my ApplicationState object is
> being accessed, it will throw a runtime exception
> "No
Hi,
In my StreamResponse class I set the header like this:
arg0.setHeader("Cache-Control", "max-age=3600, must-revalidate");
I created a component responsible to render this StreamResponse, and this
component is being used in multiple pages. It appears that even though the
function in my compon
("Expires",
> c.getTimeInMillis());
> }
>
> Josh
> On Fri, Jul 18, 2008 at 1:53 PM, ronaldlee <[EMAIL PROTECTED]> wrote:
>
>>
>> Hi,
>>
>> In my StreamResponse class I set the header like this:
>>
>> arg0.setHea
oh ok, now I get it.
Too bad the "component" approach doesn't work. Creating a component makes
more sense to me, I wonder if it can be fixed by the framework..
thx for clearing this up!
Ronald
Harald Geritzer-2 wrote:
>
>> So what do you mean by letting the page to render the image? Do you
Hi all,
How to inform end users that the session has expired? Can I do it in the
ExceptionReport page?
Currently, when session expired and user try to submit a form or something
(user has logged a while ago, and I use acegi), the server side will just
throw a generic exception which will cause t
29 matches
Mail list logo