Yes - but I'm going to restart the app server because I don't trust it (cache
wise, it's probably still got something in there)
<t:grid source="calledEvents" value="calledEvent"
exclude="_persistence_shouldRefreshFetchGroup" model="MyGridModel" />
Still yields the same errors :(
With this added to the original for providing the model,
@Inject
private BeanModelSource bms;
@Inject
private Messages messages;
public BeanModel getMyGridModel() {
return bms.createDisplayModel(CalledEvent.class, messages);
}
location
classpath:org/opencsta/eventviewer/pages/Index.tml, line 30
org.apache.tapestry5.internal.services.PropertyExpressionException
Exception generating conduit for expression
'_persistence_shouldRefreshFetchGroup': Unable to add method java.lang.Object
get(java.lang.Object) to class $PropertyConduit_1328c9eca52: [source error]
_persistence_shouldRefreshFetchGroup() not found in
org.opencsta.ctiserver.business.callevents.model.CalledEvent
expression
_persistence_shouldRefreshFetchGroup
javassist.CannotCompileException
[source error] _persistence_shouldRefreshFetchGroup() not found in
org.opencsta.ctiserver.business.callevents.model.CalledEvent
reason
[source error] _persistence_shouldRefreshFetchGroup() not found in
org.opencsta.ctiserver.business.callevents.model.CalledEvent
javassist.compiler.CompileError
_persistence_shouldRefreshFetchGroup() not found in
org.opencsta.ctiserver.business.callevents.model.CalledEvent
On 22/09/2011, at 1:24 AM, Lenny Primak wrote:
> Have you tried exclude= in your template? That worked for me and is simple.
>
>
>
> On Sep 21, 2011, at 11:18 AM, Chris Mylonas <[email protected]> wrote:
>
>> Hi!!
>>
>> It is EclipseLink (glassfish 3.1.1), I've just tried the first time now and
>> it failed again (same reason) but I'll try a few other things based on
>> Thiago's response earlier (re: BeanModel).
>>
>> Here is CalledEvent which the error comes from if you can see anything
>> strange, apologies Thiago for sending it to you directly earlier!!
>>
>> package org.opencsta.ctiserver.business.callevents.model;
>>
>> import java.io.Serializable;
>>
>> import javax.persistence.Entity;
>> import javax.persistence.GeneratedValue;
>> import javax.persistence.GenerationType;
>> import javax.persistence.Id;
>> import javax.persistence.NamedQueries;
>> import javax.persistence.NamedQuery;
>> import javax.persistence.Transient;
>>
>> /**
>> * @author chrismylonas
>> *
>> */
>> @Entity
>> @NamedQueries({ @NamedQuery(name
>> =org.opencsta.ctiserver.business.callevents.model.CalledEvent.QUERY_GETALL,
>> query ="select c FROM CalledEvent c") })
>> public class CalledEvent implements Serializable {
>>
>> /**
>> *
>> */
>> private static final long serialVersionUID =-35384297244606697L;
>>
>> /**
>> *
>> */
>> public static final String QUERY_GETALL
>> ="org.opencsta.ctiserver.business.callevents.model.CalledEvent.QUERY_GETALL";
>>
>> /**
>> *
>> */
>> @Id
>> @GeneratedValue(strategy =GenerationType.IDENTITY)
>> private Long id;
>>
>> /**
>> *
>> */
>> private String name;
>>
>> /**
>> *
>> */
>> private String callingParty;
>>
>> /**
>> *
>> */
>> private String calledParty;
>>
>> /**
>> *
>> */
>> private String dialedNumber;
>>
>> /**
>> *
>> */
>> private String trunk;
>>
>> /**
>> *
>> */
>> private String server;
>>
>> /**
>> * @return
>> */
>> public Long getId() {
>> return id;
>> }
>>
>> /**
>> * @param id
>> */
>> public void setId(Long id) {
>> this.id =id;
>> }
>>
>> /**
>> * @return
>> */
>> public String getName() {
>> return name;
>> }
>>
>> /**
>> * @param name
>> */
>> public void setName(String name) {
>> this.name =name;
>> }
>>
>> /**
>> * @return
>> */
>> public String getCallingParty() {
>> return callingParty;
>> }
>>
>> /**
>> * @param callingParty
>> */
>> public void setCallingParty(String callingParty) {
>> this.callingParty ĂŠllingParty;
>> }
>>
>> /**
>> * @return
>> */
>> public String getCalledParty() {
>> return calledParty;
>> }
>>
>> /**
>> * @param calledParty
>> */
>> public void setCalledParty(String calledParty) {
>> this.calledParty ĂŠlledParty;
>> }
>>
>> /**
>> * @return
>> */
>> public String getDialedNumber() {
>> return dialedNumber;
>> }
>>
>> /**
>> * @param dialedNumber
>> */
>> public void setDialedNumber(String dialedNumber) {
>> this.dialedNumber =dialedNumber;
>> }
>>
>> /**
>> * @return
>> */
>> public String getTrunk() {
>> return trunk;
>> }
>>
>> /**
>> * @param trunk
>> */
>> public void setTrunk(String trunk) {
>> this.trunk =trunk;
>> }
>>
>> /**
>> * @return
>> */
>> public String getServer() {
>> return server;
>> }
>>
>> /**
>> * @param server
>> */
>> public void setServer(String server) {
>> this.server =server;
>> }
>> }
>>
>>
>>
>> On 22/09/2011, at 12:53 AM, Lenny Primak wrote:
>>
>>> This is EclipseLink. I use it and ran into the same problem.
>>>
>>> On Sep 21, 2011, at 10:28 AM, Lenny Primak wrote:
>>>
>>>> If you add exclude="_persistence_shouldRefreshFetchGroup"
>>>> to your grid definition, this should resolve the problem.
>>>>
>>>> On Sep 21, 2011, at 3:10 AM, Chris Mylonas wrote:
>>>>
>>>>> Hello Tapestry Users,
>>>>>
>>>>> I've got a problem with the grid element.
>>>>>
>>>>> <t:grid source="calledEvents" value="calledEvent" />
>>>>>
>>>>> It doesn't happen if I put my List<CalledEvent> into a Loop element and
>>>>> build the table.
>>>>>
>>>>> <t:loop source="calledEvents" value="calledEvent">
>>>>> <tr>
>>>>> <td>${calledEvent.id}</td>
>>>>> <td>${calledEvent.calledParty}</td>
>>>>> <td>${calledEvent.callingParty}</td>
>>>>> <td>${calledEvent.dialedNumber}</td>
>>>>> </tr>
>>>>> </t:loop>
>>>>>
>>>>> I'm getting this error when using the grid
>>>>>
>>>>> Render queue error in SetupRender[Index:grid.columns]: Failure reading
>>>>> parameter 'model' of component Index:grid: Exception generating conduit
>>>>> for expression '_persistence_shouldRefreshFetchGroup': Unable to add
>>>>> method java.lang.Object get(java.lang.Object) to class
>>>>> $PropertyConduit_1328ac84ee8: [source error]
>>>>> _persistence_shouldRefreshFetchGroup() not found in
>>>>> org.opencsta.ctiserver.business.callevents.model.CalledEvent
>>>>>
>>>>>
>>>>> What does this mean?
>>>>>
>>>>> I'm using Geoff's @EJB stuff from jumpstart's EJBAnnotationWorker example
>>>>>
>>>>>
>>>>> I'd really like to use the grid because then I can use the rowsPerPage
>>>>> parameter for "developer productivity" :P
>>>>>
>>>>> Thanks for any help,
>>>>> Chris
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [email protected]
>>>> For additional commands, e-mail: [email protected]
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>