Have you looked at the source code of
org.apache.tapestry.contrib.form.MultiplePropertySelection
?
MultiplePropertySelection is an abstract form
component that renders its checkbox ?
Shing
--- jake123 [EMAIL PROTECTED] wrote:
Hi,
I am building a page where I have a abstract
component
:
No, but I am looking at it right now,
Have you worked with this component your self? Do
you have any example on
how to use it?
Thanks,
Jacob
Shing Hing Man wrote:
Have you looked at the source code of
org.apache.tapestry.contrib.form.MultiplePropertySelection
During render, have you considered extract the list
from your DTO object and then pass the list to
MultiplePropertySelection ?
During rewind, do the oppose.
Shing
--- jake123 [EMAIL PROTECTED] wrote:
Hi Shing,
I have looked in to the MultiplePropertySelection
component. They all
http://lombok.demon.co.uk/tapestry4Demo/app
The above link should work now.
Shing
--- jake123 [EMAIL PROTECTED] wrote:
Hi, does anybody know how to use the FCKEditor?
I have downloaded the files and started to follow
the steps described in
Please check out the online examples (source code are
there) and documentation on the parameters from
http://lombok.demon.co.uk/tapestry4Demo/app
Shing
--- jake123 [EMAIL PROTECTED] wrote:
thanks, the link is working now... Can you give me
some pointers on how to
make the component
The method
getCurrentPages in
org.apache.tapestry.contrib.table.components.TablesPages
returns the current page of your table.
The ordinal number of the first row of the current
page should be something like
(tablesPages.getCurrentPage() - 1) * PAGE_SIZE) + 1
Shing
--- [EMAIL PROTECTED]
The Hivemind registry is stored in the servlet
context.
(Please see the source code of init method in
org.apache.tapestry.ApplicationServlet.)
If you need to reference the HiveMind registry outside
a web page, you might need to create your own
'singleton'
of HiveMind registry.
Shing
---
Step C at the following might help.
http://wiki.javascud.org/display/hsa/Acegi+and+Tapestry--A+Step-by-Step+Guide
shing
--- Robin Ericsson [EMAIL PROTECTED] wrote:
On 10/29/06, James Carman
[EMAIL PROTECTED] wrote:
Hi, Robin. I haven't implemented form-based
authentication in
In the component FieldLabel, the parameter field
expects an object of type IFormcomponent.
(Please see
http://tapestry.apache.org/tapestry4/tapestry/ComponentReference/FieldLabel.html)
It looks as though the Java class for the Radio
component is not of type IFormcomponent.
Shing
--- Todd Orr
You might like to check out the following page.
http://lombok.demon.co.uk/tapestry4Demo/Inject.html
Shing
-- Marcus Irven [EMAIL PROTECTED] wrote:
I have created a new engine service, how can I
access a State Object?
Thanks,
Marcus
For components, .jwc should start with (note that
component-specification) :
?xml version=1.0?
!DOCTYPE component-specification PUBLIC
-//Apache Software Foundation//Tapestry
Specification 4.0//EN
http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd;
Shing
--- jake123 [EMAIL PROTECTED]
There is one here :
http://lombok.demon.co.uk/tapestry4Demo/app
Shing
--- Josh Joy [EMAIL PROTECTED] wrote:
Hi All,
Does anyone have an example of how to use
MultiplePropertySelection ?
Thanks in advance.
Thanks,
Josh
The workbench source code is in the
Tapestry source/binary distrbution.
Shing
--- Josh Joy [EMAIL PROTECTED] wrote:
Hi All,
I downloaded the tapestry example jboss bundle which
includes the
workbench example. Unfortunately, I was unable to
locate the source
Java code for these
to retrieve the ASO from outside of the
request/response
cycle.
Any advice is greatly appreciated,
-jason
-Original Message-
From: Shing Hing Man [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 14, 2006 3:12 PM
To: Tapestry users
Subject: Re: Access Session-scoped ASO
I think translator is only applicable to a form
component if it implements the interface
org.apache.tapestry.form.TranslatedField. Please check
out the java doc on TranslatedField.
http://tapestry.apache.org/tapestry4/tapestry/apidocs/index.html
The Java class of the Insert component does not
Chapter 8 of the book
Tapestry in Action discussed (also relevant to Tap4) a
way of submitting an 'external' form to a Tapetsry
page. (I think you can download the example source
code of the book for free from Manning's web site.)
Briefly, you set up a Tapestry page whose java class
extends
I think you need the @Body component in your .html.
Shing
--- Oliver Lietz [EMAIL PROTECTED] wrote:
Hello all,
I've a problem with PopupLinkRenderer and it looks
similar to the one Bastian
Voigt had with Script component [1/2].
Did I made right use of the PopupLinkRenderer? Just
want
Have you looked at the GenericLink or Any component ?
http://tapestry.apache.org/tapestry4/tapestry/ComponentReference/GenericLink.html
http://tapestry.apache.org/tapestry4/tapestry/ComponentReference/Any.html
Shing
--- Josh Joy [EMAIL PROTECTED] wrote:
Hi All,
I have a newbie
-20060819.225847-18.jar
Shing
--- Jesse Kuhnert [EMAIL PROTECTED] wrote:
you shuold be using the latest 4.1.1-SNAPSHOT build
if you are going to
attempt this. (though it might work in the original
4.1, I can't vouch for
it anymore..too many changes since then)
On 8/20/06, Shing Hing Man [EMAIL
UsersByDepartmentSelectionModel.java (and
DepartmentSelectionModel.jav)
looks suspcious.
The UsersByDepartmentSelectionModel.getOption method
returns a value
from userLists, but
UsersByDepartmentSelectionModel.translateValue returns
a value using a dao.
You might like to test
there. By the
way, I am using binding name=submitOnChange
expression=true /
to test the PropertySelection.
-waimun
On 8/18/06, Shing Hing Man wrote:
UsersByDepartmentSelectionModel.java (and
DepartmentSelectionModel.jav)
looks suspcious.
The UsersByDepartmentSelectionModel.getOption
Thanks!
Shing
--- Mark Reynolds [EMAIL PROTECTED] wrote:
http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-examples/TimeTracker/
Shing Hing Man wrote:
Could someone please let me know where I can
download
the source code for Tapestry4.1 TimeTracker demo
?
Shing
Could someone please let me know where I can download
the source code for Tapestry4.1 TimeTracker demo ?
Shing
Home page :
http://uk.geocities.com/matmsh/index.html
___
Copy addresses and emails from any email
Have you looked at the following example ?
http://lombok.demon.co.uk/serviceHowTo/app
Shing
--- Scott Venter [EMAIL PROTECTED] wrote:
Anyone have a link to tutorials/examples on creating
new services in Tapestry 4.0?
This email and any files transmitted with it are
confidential and
Please try :
ognl:!user.active
Shing
--- Rui Pacheco [EMAIL PROTECTED] wrote:
Hi all
I am trying to make my ASO available to an @If
component on my templates,
but I can't get past the following error:
Unable to read OGNL expression 'parsed OGNL
expression' of
[EMAIL PROTECTED]:
I have tried out the suggestion in the post
(*)
http://article.gmane.org/gmane.comp.java.tapestry.user/38761/match=required+validator
to implement client side 'required' validation on a
Checkbox compponent (in Tapestry 4.0.2).
In (*), a validator with a custom javascript to
validate a required
Any chance of doing to Tapestry 4.0.2 as well ?
Shing
--- Jesse Kuhnert [EMAIL PROTECTED] wrote:
Ouch, nice catch! I've applied the changes and will
deploy in next tapestry
4.1 snapshot release later today.
On 7/26/06, Shing Hing Man [EMAIL PROTECTED] wrote:
I have tried out
You can inject javax.servlet.ServletContext into
your serivce (I presume you meant a Tapestry service).
The use
servletContext.getRealPath(/)
to retrieve the context path.
A how-to on injecting javax.servlet.ServletContext
into a tapestry service is at
I have no problem with validators for a TextField
within a custom component.
You might like to post your component's .java, .jwc.
and .html and see if anyone in the list can help.
Shing
--- Rui Pacheco [EMAIL PROTECTED] wrote:
Hi all
I've been knocking my head on the wall trying to
=
[EMAIL PROTECTED]
width=23 height=17
image=asset:submit//td/tr
/table
On 7/24/06, Shing Hing Man [EMAIL PROTECTED] wrote:
I have no problem with validators for a TextField
within a custom component.
You might like to post your component's .java,
.jwc.
and .html and see if anyone
, but I want
to keep all my specifications in the component
specification. Its just the
philosophy we chose for our project.
On 7/24/06, Shing Hing Man [EMAIL PROTECTED] wrote:
I think you have left out the delegate attribute
in
the Form component.
http://tapestry.apache.org
AbstractBaseComponent. Its a
class I created to work as
a parent for all my components. That way I can use
inheritance to customize
my components at will.
AbstractBaseComponent itself extends BaseComponent.
On 7/24/06, Shing Hing Man [EMAIL PROTECTED] wrote:
Oops ! What I said about the missing
[EMAIL PROTECTED] wrote:
I didn't override any methods, although calling
super could be usefull.
On 7/24/06, Shing Hing Man [EMAIL PROTECTED] wrote:
I do not know whether the following helps.
In your custom class AbstractBaseComponent, if
you
have over ridden any methods of its parent
());
}
return rs;
}
protected void print(Object msg){
System.err.print(msg.toString());
}
protected void println(Object msg){
System.err.println(msg.toString());
}
}
On 7/24/06, Shing Hing Man [EMAIL PROTECTED] wrote:
To narrow down your problem
Login.html, I wrap your table by
span jwcid=form
Shing
--- Rui Pacheco [EMAIL PROTECTED] wrote:
So, when you DONT insert a username and password and
press submit, he gives
a warning about the missing values?
On 7/24/06, Shing Hing Man [EMAIL PROTECTED] wrote:
I have tested your Login
You could trying setting the property webRequest in
requestGlobals manually before invoking
externalService.getLink().
// The following few lines of code set up the property
// webRequest and webResponse in requestGlobals.
//
HttpServletRequest req =(HttpServletRequest)request;
You can set your source parameter (in component
contrib:table or contrib:tableview) to an
implmentation of
org.apache.tapestry.contrib.table.model.IBasicTableModel.
In your implementation of IbasicTable, you just
retrieve the rows for the current page.
Shing
--- Chris Chiappone [EMAIL
I do not have an answer to your problem.
But you might like to make sure parameters-schema
works by testing it as a normal configuration.
Shing
--- Ron Piterman [EMAIL PROTECTED] wrote:
hi - I try to pass a parameter to a
serviceIMplementationFactory but get
an exception from hivemind:
() is always null in the service.
I know it must be
simple, but what am I missing?
Thanks,
J
On 18-Jul-06, at 4:54 PM, Shing Hing Man wrote:
A possibility is to store the parameters (that are
needed to construct the data set) in a session
ASO.
You can inject the above session ASO
I think you have to do it indirectly by injecting the
ApplicationManager into your service.
Then in your service, retrieve the desired ASO using
the ApplicationManager.
There is a how-to on this at the following.
http://lombok.demon.co.uk/tapestry4Demo/Inject.html
Shing
--- [EMAIL
A possibility is to store the parameters (that are
needed to construct the data set) in a session ASO.
You can inject the above session ASO into your
service.
So that the data set can be constructed in your
service when the service is called.
Shing
--- Julian Wood [EMAIL PROTECTED] wrote:
You might like to check out the following how-to on
writing a Tapestry service to return a plain text
file.
http://lombok.demon.co.uk/serviceHowTo/app
Shing
--- Julian Wood [EMAIL PROTECTED] wrote:
How do you do it?
I would like to click a link, have a listener
assemble a CSV file,
) {
log.info(doFilter : sexp = + sexp);
}
}
===
I have tested the above and it works.
Shing
--- Shing Hing Man [EMAIL PROTECTED] wrote:
I have run out of idea.
If I come up with something useful, I'll inform you.
Shing
--- Joseph Hannon [EMAIL
When you use a component in a loop, only one instance
of it is used.
The problem is that in the java code of your page, you
can not, as you said,
reference the second,say, 'component' in the loop.
Each 'copy' of the component in the loop can be
uniquely identified by
getClientId().
Example :
();
} else {
super.writeSuffix(writer, cycle, component,
validator);
}
}
}
Shing
--- Shing Hing Man [EMAIL PROTECTED] wrote:
When you use a component in a loop, only one
instance
of it is used.
The problem
I have noticed that in the retrieveVisit method of
InjectStateWorker.java :
visit = (Visit) _applicationStateManager.get(visit)
;
But in the hivemodule.xml, the state object name is
'Visit' with a captial V.
You might like to rename 'visit' to something else.
I do not know whether it would
Sorry ! Here is the correct link.
http://lombok.demon.co.uk/tapestry4Demo/app
Shing
--- Shing Hing Man [EMAIL PROTECTED] wrote:
I have noticed that in the retrieveVisit method of
InjectStateWorker.java :
visit = (Visit)
_applicationStateManager.get(visit
from a pojo? I would like to see how you are
making the call that
gets the service. I suspect getting my registry
from my servlet is not
the way to go.
Thanks,
Joseph
Shing Hing Man wrote:
How are you calling getAppStateManager(), from
what
class? How are you
getting access
from my servlet is not
the way to go.
Thanks,
Joseph
Shing Hing Man wrote:
How are you calling getAppStateManager(), from
what
class? How are you
getting access to the registry from a POJO?
In my how-to, appStateManager is injected to
the tapestry service asoSerivce
It should be possible since Daniel Gredler have
created
a BeanForm component (you supply a pojo, it will
generate all the textFields/date picker for you. Just
like magic). It is available at Tassel
http://equalitylearning.org/Tassel/app
I am surpise no one has mentioned this on the list
yet.
)
$ApplicationStateManager_10c4ab9cbfd.get($ApplicationStateManager_10c4ab9cbfd.java)
foo.apply.utility.Utility.testASOService(Utility.java:61)
foo.apply.application.SampleFilter.doFilter(SampleFilter.java:176)
Shing Hing Man wrote:
The registry is stored in the servlet context
binding name=validators value=validator:int,
required, maximum=5 /
Please try replacing validator by validators.
validator is for ValidField.
Shing
--- Firas A. [EMAIL PROTECTED] wrote:
Hello,
I get ClassCastException
(org.apache.tapestry.valid.IntValidator) when
trying to validate a
Have you tried using the Insert component with
parameter raw set to true ?
http://tapestry.apache.org/tapestry4/tapestry/ComponentReference/Insert.html
Shing
--- Jean-Eric Cuendet [EMAIL PROTECTED] wrote:
Hi,
I would like to put markup in the texts in my
properties files.
I have something
I do not have an easy solution to your problem.
The following is just an idea which I have not tested.
Have you considered 'extending' the component
TextField
to hava an extra boolean parameter 'validation flag'
?
The idea is that validation is skipped according to
the
'validation flag'. In
Have you looked at the source code for the getLink
method in
org.apache.tapestry.link.ExternalLink ?
Copying the code from the method
ExternalLink.getLink, I would have thought
you need something like the following.
// parameters as in the attribute parameters in
ExternalLink component
--- James Carman [EMAIL PROTECTED] wrote:
You can use a value object and bind your form
fields to that. Then, when
you submit your form, you can create your domain
object from your value
object using the constructor.
-Original Message-
From: Lukas Ruetz [mailto:[EMAIL
--- James Carman [EMAIL PROTECTED] wrote:
You can use a value object and bind your form
fields to that. Then, when
you submit your form, you can create your domain
object from your value
object using the constructor.
-Original Message-
From: Lukas Ruetz [mailto:[EMAIL
You can set the pattern in a bean.
bean name=foo
class=org.apache.tapestry.form.translator.NumberTranslator
set name=pattern value=###,###.##/
/bean
binding name=translator value=bean:foo/
Shing
--- John Menke [EMAIL PROTECTED] wrote:
I am trying to do this:
binding name=translator
Have you consider modifying the component TablePages
as described in the following post ?
http://article.gmane.org/gmane.comp.java.tapestry.user/21934/match=tablepages
Shing
--- Peter Dawn [EMAIL PROTECTED] wrote:
guys,
is there a way to change the and in the
navigation bar of a
. From my understanding, The
integration of Dojo into
Tapestry4.1 and Tacos are two different thing ... am
I right ? Or do they
play together somehow ?
~KEGan
On 6/25/06, Shing Hing Man [EMAIL PROTECTED] wrote:
If you have not checked out the helloword
example in tacos wiki
If you have not checked out the helloword
example in tacos wiki,
at
http://tacoscomponents.jot.com/WikiHome
you might like take a look at that.
Shing
--- KE Gan [EMAIL PROTECTED] wrote:
Hi,
I am finishing up (and launching) a project using
Tapestry 4.0.2 soon. I am
planning to
property name=org.apache.tapestry.visit-class
value=org.xxx.MyVisit/
Instead of above, please try :
meta key=org.apache.tapestry.visit-class
value=org.xxx.MyVisit/
Shing
--- Yves Sy [EMAIL PROTECTED] wrote:
Thanks for the reply.
Since I prefer to use non-deprecated methods, I'm
I think this was discussed recently in the mailing
list.
The registry is stored as a context parameter.
You can get it by doing something like :
ServletContext context = session.getServletContext();
Registry registry = (Registry) context
Have you consider wrapping your component
'creationDateFormat' with an If component - so that
the date is only rendered if it is not null ?
There might be a drawback with the above approach. The
default sorting on your date column might not work.
Shing
--- Manuel Thurn [EMAIL PROTECTED]
=components.table.tableRow.creationDate.time/
binding name=format value=dateFormat/
/component
Manuel
-Original Message-
From: Shing Hing Man [mailto:[EMAIL PROTECTED]
Sent: Freitag, 23. Juni 2006 06:53
To: Tapestry users
Subject: Re: Null Date in a Contrib:Table
Have you consider
binding name=success
value=listener:checkToken/
binding name=stateful value=false/
binding name=clientValidationEnabled
value=true/
binding name=cancel
value=listener:logout/
/component
The logout method was never called
Thanks,
Simon
Shing Hing Man
Also, there should be no blank line before
?xml version=1.0 encoding=UTF-8?
Shing
--- Shing Hing Man [EMAIL PROTECTED] wrote:
I have not tried not the example at
http://jakarta.apache.org/tapestry/3.0.4/doc/ComponentReference/Script.html
But I think your error is caused by
hava
object has been stored into the request cycle. This
object is typically provided by a Body component.
You should add a Body component to your template.
location:
The error says you do not have a Body component.
Please try using a Body component and see whether
it works.
Shing
---
Have you looked at the contributed components
MultiplePropertySelection or Palette ?
Shing
--- Rui Pacheco [EMAIL PROTECTED] wrote:
Hi all
I need to implement a select showing multiple
values.
I tried to implement it with PropertySelection, but
it won't allow me to
select more than
An alternative is to wrap your javascript in a Script
component. In .script file, just use the
include-script
element to include your javascript.
Here is a sample.
preview.script :
?xml version=1.0 encoding=UTF-8?
!DOCTYPE script PUBLIC
-//Apache Software Foundation//Tapestry
Script
A Script component must be enclosed by a Body
component. Please see the following details.
http://jakarta.apache.org/tapestry/tapestry/ComponentReference/Script.html
Shing
--- Peter Dawn [EMAIL PROTECTED] wrote:
i am already using the javascript component for
this. but i am unable
to put
Have you tried to inject a HttpServletReponse into a
Tapestry page .java file with the following?
@InjectObject(service:tapestry.globals.HttpServletResponse)
public abstract HttpServletResponse
getServletResponse();
Shing
--- Eddie Fang [EMAIL PROTECTED] wrote:
Hi,
In order to get the
Have you checked out the following?
http://jakarta.apache.org/tapestry/tapestry-annotations/index.html#Persist
Shing
--- Jean-Eric Cuendet [EMAIL PROTECTED] wrote:
Hi,
I'm unable to find @Persist annotation doc...
Could someone point me to some?
Thanks.
-jec
--
Best regards /
I have been trying out the contributed CheckboxGroup,
ControlCheckbox and
ControlledCheckbox.
Everyhing is fine when the ControlCheckbox,
ControlledCheckboxes are enclosed
by a CheckboxGroup.
However, I have problem when my CheckboxGroup does not
enclose the
ControlledCheckbox and
You need to specify the meta-key
org.apache.tapestry.page-class-packages
in .application. Something like :
meta key=org.apache.tapestry.page-class-packages
math.pages,math.pages.exception,math.pages.users,
math.pages.lectureVoting,math.pages.lectureVoting.admin,
In the translator, try addding a pattern :
binding name=translator value=translator:number,
pattern=#.#/
Shing
--- Pedro Garcia [EMAIL PROTECTED] wrote:
hi it's me again.
Thought I had solved the problem with number but now
every float number is
losing the decimal digits that are
201 - 276 of 276 matches
Mail list logo