omment.user.username to optain username of
>>> user
>>> that posted comment I get this error:
>>>
>>> Render queue error in Expansion[PropBinding[expansion
>>> collaborators/Details:commentsmodule(comment.user.username)]]: Property
>>> 'user
x27; (within property expression 'comment.user.username', of
>> me.xxx.xxx.components.commentsmod...@eaabad) is null.
>>
>> I tried all sorts of thing but I'm not sure what to do next... Is this
>> problem with tapestry and is there some sort of work around?
Hi,
You should check your mapping to be sure the many-to-one relationship
between "comment" and "user" is correct, and verify your database table
"comment" contains an existing foreign key to the user table.
Best thing to do is to run your Criteria in a JUnit test.
Nicolas.
Bojan Cincur a
Hi,
Looks more like an issue with your criteria. Have you tried to use
FetchMode.EAGER instead?
Christian
Bojan Cincur schrieb:
Hi all,
I have a little problem.
I'm using hibernate criteria to fetch list of objects that I want to display
in loop component. (enclosed in my commentModule co
Hi all,
I have a little problem.
I'm using hibernate criteria to fetch list of objects that I want to display
in loop component. (enclosed in my commentModule component)
Criteria criteria = getManager().createCriteria(CommentBean.class);
criteria.setFetchMode("user",FetchMode.JOIN);
this criter
ame) {
this.name = name;
}
}
tml:
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
entity name: ${button.name}
create entity
change the name
set to null
delete
set to transientt:eventlink>
--
View this message in contex
return name;
}
public void setName(String name) {
this.name = name;
}
}
tml:
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
entity name: ${button.name}
create entity
change the name
set to null
thod
org.apache.tapestry5.hibernate.HibernateModule.build(Logger, List,
RegistryShutdownHub) (at HibernateModule.java:117) (for service
'HibernateSessionSource'): tried to access field
org.hibernate.cfg.Configuration.xmlHelper from class
org.hibernate.cfg.AnnotationConfiguration
--
View this message in context:
http:
hi,
the HibernateEntityValueEncoder creates ValueEncoder for every
contributed Entity class that's nice... but if i submit a page with a
select component that used a list of entities to generate the selection
model i will receive an exception if no option was selected! this is
because the Va
Hi Grigoris
I will assume that your form is surrounding the @For component.
Advices:
* remove the updatePassenger it will confuse things.
* persist "passengerList" in the session
* populate "passengerList" on pageBeginRender
* add a "keyExpression" to the For component
* then save all the pas
Hi all,
I have a dynamic form where the user can set a dynamic number of passengers.
The html looks like:
Title
Name
Surname
in my appModule.java, i changed :
public void contributeHibernateSessionSource(
OrderedConfiguration configuration) {
configuration.add("my", "org.ts.domain.bo");
}
2007/10/26, Donyee <[EMAIL PROTECTED]>:
>
>
>
> I got errors when i use T5.06-hibernate, and my app works
I got errors when i use T5.06-hibernate, and my app works fine when i use
T5.05!
Also i changed the html to tml, sl4j...
Error:
No service implements the interface org.apache.tapestry.ioc.Configuration.
Error invoking service builder method
org.apache.tapestry.hibernate.HibernateModule.build(Hibern
you shouldn't persist any object from hibernate
@ApplicationState
private Customer _customer;
same object will be referenced in you second request,
and the second request will have different session,
tapestry-hibernate integration is still basic,
and for now you should just change
Hi,
i have tried the tapestry-hibernate package to handle my hibernate
sessions. I have setup the package in maven and add the hibernate
Session to all constructors of my services.
I started with my CustomerService getting and setting my customerbeans
(each of them having a Set of AddressBea
Hi,
i have tried the tapestry-hibernate package to handle my hibernate
sessions. I have setup the package in maven and add the hibernate
Session to all constructors of my services.
I started with my CustomerService getting and setting my customerbeans
(each of them having a Set of AddressBea
16 matches
Mail list logo