Hi Everybody,
I was wondering if ASO and BeanEditor can work with Interfaces ? At the
first sight it seems not possible.
Let's say I have this Interface and Classes :
public interface User {
public int getId();
public void setId(int id);
public String getName();
this should help you
http://wiki.apache.org/tapestry/Tapestry5HowToIocAndHibernate
2008/2/3, Kheldar666 [EMAIL PROTECTED]:
Hi Everybody,
I was wondering if ASO and BeanEditor can work with Interfaces ? At the
first sight it seems not possible.
Let's say I have this Interface and Classes :
wheni try to call dojo.widget.byId('addGroupDialog').show(); directly inside
script, i cannot call the dialog and display it. but the latter, input ...
onclick... has no problem displaying the dialog. may i know what i miss out?
span jwcid=@If condition=ognl:id
script
Well by adding this to my module :
public static void bind(ServiceBinder binder){
binder.bind(User.class, UserImpl.class);
binder.bind(Address.class, AddressImpl.class);
}
I solved the User instanciation problem. But It didn't solve the Address
i think you missunderstood completely the sense of hibernate entities
and IOC serices.
in your case i think it makes more sense to let instantiate the enties
by a factory class
please read http://www.hibernate.org/328.html
2008/2/3, Kheldar666 [EMAIL PROTECTED]:
Well by adding this to my
I have created a DAO service which has
HibernateSessionManager (from the tapestry-hibernate
module) as a property.
In AppModule :
public static MyFolderDAO buildMyFolderDAO(
@InjectService(HibernateSessionManager)
HibernateSessionManager sessionManager)
{
Heu...
I allready have a full Hibernate/Spring instantiation system that works
perfectly well :-) .
I'm not trying to instanciate a Bean via Tapestry. I try to edit one that is
allready loaded.
The problem for me comes from Tapestry beanEditor that tries -I think- to
create an empty bean using
hmmm, i try to understand,
why do you mean, that the beaneditor should create
or instantiate anything for ?
if i not realy going wrong you must take care that any
class, you want to edit, is instantiated before.
and ofcourse you must feed the beaneditor with an instance
not an interface
Thanks for the suggestion!
After reading
http://wiki.apache.org/tapestry/Tapestry5HowToIocAndHibernate
and tried a few combinations. The following works.
1) In AppModule :
define the MyFolderDAO service as before.
2) Create AppModuleTest.java which is only available
in unit test.
I have a component that that is based on the DHTML tree component Erik made
on the wiki. I've had it working for several months, and recently I found I
needed to move this component to it's own project. So now it is used as a
component library instead of being within the application that uses
Yes ! that was it :)
I indeed had an embedded Address with all fields empty ^^. Thank you very
much to both of you :) !
I owe you at least a beer :)
Regards
Martin
Jonathan Barker wrote:
Martin,
I'm a bit confused about what you are trying to accomplish, but maybe I
can
toss out
Martin,
You are very welcome.
Depending on whether there is a difference between an empty embedded object
versus a missing embedded object (is the address missing, or is it blank?),
there is another trick that makes NPE avoidance much easier.
You can add a dummy property (like boolean dummy =
it's because the addGroupDialog widget isn't available (initialized) when you're
calling the first... try
script
dojo.addOnLoad(
function() {
dojo.widget.byId('addGroupDialog').show(); }
);
/script
On Feb 3, 2008 6:14 PM, learner [EMAIL PROTECTED] wrote:
wheni try to call
Should I file a bug? What version and component should I file it under?
Howard Lewis Ship wrote:
That looks like a bug ... as if it were running the partial path
through HttpServletResponse.encodeURL rather than the full path.
On Feb 2, 2008 5:22 PM, Chuck Kring [EMAIL PROTECTED] wrote:
Hi,
A mini ERP project which will contains ar, ap, gl, inventory and some
others, if every module is a single Tapestry 5 application, then we have 4
modules, all modules should share the same persistence store, UI is
independent from each other, however there are some linkage as well,
example, in
Hi,
I have a component which renders html correctly, now I'd like to make
another component but render everything into a image, possible? any idea how
to get started with this? thanks.
Angelo
--
View this message in context:
I found the error. The root of my tree had a blank string for the
identifier, which is used in the context. I guess this had never caused an
error before because there is new error checking going on.
So really I should have had an if/then in the tml that checked whether the
current tree node
In what package are these implementation classes?
On Feb 1, 2008 1:53 AM, Moritz Gmelin [EMAIL PROTECTED] wrote:
P.P.S.
If I just hit reload after the exception has occured, the EditPage
loads as expected.
M.
Am 01.02.2008 um 10:03 schrieb Moritz Gmelin:
P.S. this happens with T 5.0.9
i very frequent get this error after using tomcat for sometime. i know
increasing memory will temporary delay the problem. but is anyone of you
experience this when using tapestry?
coz i get it too frequent and very curious...
That's an ognl issue - see which ognl version is getting included in
your project,
and upgrade to the latest (2.7.2)
See:
http://blog.opencomponentry.com/2008/02/01/ognl-272-released/
On Feb 4, 2008 7:51 AM, Tomic Mirko [EMAIL PROTECTED] wrote:
I tried upgrading my components to tapestry 4.1.3,
Hello Angelo,
Main question is do you want to use EJB in your app or not, because usually
there is no proper way to share state between multiple WAR's deployed inside
the application container.
Renat
On 04/02/2008, Angelo Chen [EMAIL PROTECTED] wrote:
Hi,
A mini ERP project which will
Hello Angelo,
What do you mean everything? Do you want to render an complex HTML table to
image or you want to render a button dynamically?
In T5 it should be quite simple to render image in response because
essentially you just need to send a byte stream back to the client using
StreamResponse
Andreas Andreou andreoua at gmail.com writes:
That's an ognl issue - see which ognl version is getting included in
your project,
and upgrade to the latest (2.7.2)
See:
http://blog.opencomponentry.com/2008/02/01/ognl-272-released/
I have checked, it was 2.7.1. I tried now with 2.7.2,
this is the error that i get for --
span jwcid=@If condition=ognl:id
script
dojo.addOnLoad( function() {
dojo.widget.byId('addGroupDialog').show(); }
);
/script
/span
//error
dojo.widget.byId(addGroupDialog) has no properties
(no name)()app (line 477)
loaded()app (line 236)
i try out code like below and i get undefined
script
dojo.addOnLoad( function() {
alert(dojo.widget.byId('addGroupDialog'));
}
25 matches
Mail list logo