Thanks Kalle, thats the answer I was seeking.
Which persistence Service wold in order to ORM o MySQL ?
Does that JPA construct do it itself somehow like javabeans or can I use the
existing hibernate persistence service that comes with your suite ?
Thanks for the solution, appreciate that.
Ken
Hi Folks,
I want to create a web site data model whereby... whatever a user creates...
they own.
And when they come back to the website to operate again... they will see only
what they own.
Its not as much as page based security as it is object based security... as in
model object.
Are there
Hi Folks,
I have a database.
And I want all users to login...
But I want all my code to cater to each user, regardless of how
many are logged in SAME CODE BASE... UNLIMITED USERS...
CONCURRENCY... CONTENTION...total mayhem
I am worried about database collisions amongst the tables sinc
Hi Folks,
I have a database.
And I want all users to login...
But I want all my code to cater to each user, regardless of how many are logged
in SAME CODE BASE... UNLIMITED USERS... CONCURRENCY... CONTENTION...total
mayhem
I am worried about database collisions amongst the tables since th
Solution...
this was a hibernate initialization issue.
I was seeding an entity
I skipped a few fields thinking it was not a problem.
but hibernate didn't like me operating on the entity while it was in its
initialization phase.
rule of thumb? initialize all your properties before your code deci
I use these types to get padding and comfort. It doesnt make sense to me.
Sorry to keep posting. Just trying to click and go.
What could be causing an NPE?
@Entity
@ClassDescriptor(hasCyclicRelationships = true)
@BeanModels(
{ @BeanModel(pageType = PageType.LIST,
include = "player, gp, g
Caused by:
java.lang.NullPointerException
at org.tynamo.examples.pphl.model.PlayerStats.getPts(PlayerStats.java:137)
at org.tynamo.examples.pphl.model.PlayerStats.getPpa(PlayerStats.java:125)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMetho
Folks,
I keep getting NPE on simple calculations.
Is there something here that tapestry doesnt like ?
public Float getPpa() {
Float result = new Float(getPts() > 0 ? getGp() / getPts() : 0);
return result;
}
@PropertyDescriptor(nonVisual = false)
public Float get
alright... i hate doing null checks...
because if you get into the habit of it...
you never know if your actually writing a legit piece of code
So I did it anyway
public GridDataSource getSource() {
if (collection != null )
return new CollectionGridDataSource(collection
Hi Folks,
I am tearing thru the docs and mail list searching for
"when do properties bind" tapestry
No luck yet.
But I will continue.
I have two scenarios of bindings.
Simple Enum static
Simple Enum dynamic queried out of my database using hibernate
I am setting up a query form/page kinda
oops... I meant to say
year, league, season
are all null at the time of the query in getSource()
Well my code is based on the hope that my properties
year, league, season
will bind in time
in order to perform a successful query.
Am I performing the query in the wrong place?
nice... and thanks...
I will see if I can run with it
Hi Folks,
I have a page that renders a collection in a grid.
A hibernate collection...
@Persist
@Property
private Collection collection;
@SetupRender
public void setupRender() {
beanType = PlayerStats.class;
collection = playerStats = new ArrayList(
Sorry folks...
if I got this
@Entity
@ClassDescriptor(hasCyclicRelationships = true)
@BeanModels(
{ @BeanModel(pageType = PageType.LIST,
include = "player, gp, g, a, pts",
exclude="") })
public class PlayerStats implements Cloneable, Serializable {
private static final Log l
Maybe I should be doing the bean model on PlayerStats
public class PlayerStats implements Cloneable, Serializable {
private static final Log log = LogFactory.getLog(PlayerStats.class);
private Integer id = null;
private Player player = null;
...can I refer to the player from there ?
Players and stats are keyed by Season.class so there could be at any given time
one Player instance and one PlayerStats instance to deal with.
Its not immediately apparent to me how to combine properties from both classes
into the grid bveanmodel
Hi Folks,
I have a Player.class
public class Player extends Person implements Cloneable, Serializable {
private Set playerStats = new HashSet();
He has a collection of stats. goals, assists, points etc...
I am rendering league leaders... so I have a bean model I am working on
myMo
strange... I can run fine on eclipse in a reverted source code branch...
but if I deploy love... it quits with the hibernate session creation failure
Seems I need to wait for the release to deploy live again
ouch
http://powerplayhockey.noip.us:9011/pphl/home
my tapestry app runs fine on my droid III
kinda cramped though
Thanks Dmitry,
I am able to keep developing. I reverted back to hibernate 3. And making more
progress. I stepped too fast into the hibernate revisions and got bit.
Appreciate the help. Its a great forum to share and I hope to give back for
others when I see too.
- cheers
Hi Folks,
Is there a way to inject an environment variable into my page somehow ?
I would like to automate production mode to anchor off of a OS env var.
been searching for this without luck
Thanks for any tips.
Ken
Thank You Boris,
Any time frame ? I am hard for feedback. Already caught. Burned out from trying
to back tread.
Wish I knew of it sooner. But not sure if it would have helped me anyway.
I will be happy when it happens.
Thanks for any info
Here is my dependency tree
tapestry-hibernate I think might be tripping up my whole project by anchoring
to 3.X hibernate as shown here
[INFO] | +- org.apache.tapestry:tapestry-hibernate:jar:5.3.7:compile
[INFO] | | \- org.apache.tapestry:tapestry-hibernate-core:jar:5.3.7:compile
[INFO] | |
well it didnt
does anyone know a way out of this hole ?
2013-05-25 17:29:18.142:WARN:oejw.WebAppContext:Failed startup of context
o.m.j.p.JettyWebAppContext{/,file:/C:/Prototype/Mavenized/Product/kwc/pphl/src/main/webapp/},file:/C:/Prototype/Mavenized/Product/kwc/pphl/src/main/webapp/
java.lang.
Hi Folks,
I determined this guy
org.apache.tapestry
tapestry-hibernate
${tapestry-release-version}
provided
org.hibernate
hibernate-commons-annotations
Well it looks like... if I get to it... I will write a MyShineyNewComponent to
do the job.
right now I have some jar file hidden deep in my build somehow dragging in an
early version of hibernate and taking me out cold.
Sorry folks,
I think its fair that this is the problem.
http://stackoverflow.com/questions/8799121/java-lang-nosuchmethoderror-org-hibernate-sessionfactory-opensessionlorg-hibe
But I still have no solution to the framework am using.
Thanks Thiago...
yes I am rendering Home.tml
But it is rigged up with a two level nesting of tabs housing at least 6+ pages
each.
What do I do ?
When the selectValueEncoder gets called from the tml for my query form... I
actually do my setupRender code there... but it feel kinda crooked doin
setupRender gets invoked (ever since I added public modifier)...
but not until I clock GO for a submit event
and even after that I lose context of the whole JQuery tab... and my page
RosterQuery comes into Home.tml and blows away the whole context of the
JQueryTab only showing the RosterQuery p
I noticed that my setupRender didnt have public
@SetupRender
public void setupRender() {
But after adding public ... it made no difference.
Still cannot get setupRender to invoke.
Thanks for any tips.
Ken
Thanks Dimitri,
Exactly... you hit the nail right on the head.
I dont think i should have to write a component for every tab on a tab control
just to reduce code bloat.
Does anyone disagree with Dimitri ? If so i would like to hear it.
There is no religion here... just common sense.
: )
Thanks Dimitri
: )
I didnt think I physically had to make the match happen in code.
I thought the formal parameter spec was optional.
I will give that a shot.
So it seems signature counts.
Thanks a bunch !!!
cant I use the
?
ok good answers guys... thanks...
I cant say I am happy about it.
I have to write a component just to embed a page ?
Shouldn't there be a generic tapestry component to already do this ?
░▒█▓░
░░░▓██▒░░
░▒
tHANKS gEOFF...
bUT it tell sme I have a serious problem onmy hands
the output is not matching the input
I dont know what to do
I have seen this months ago tryign to create CRUD pages.
Maybe it has to do with the routing features of tynamo? I dont know...
Here is the routing feature
@At("/{2
Thanks Thiago...
The usage of THIS... is because I am operating exclusively out of
RosterQuery.JAVA and RosterQuery.tml
This module renders ...
=
| criteria form GO |
=
| table|
=
I select my criteria and hit GO. The
you might be thinking I am inside my layout.tml... or my home.tml...
almost... the case...
My block is within my home.tml... which is already being laid thru to
layout.tml and is used in layout.tml
my issue is just a surrogate tab block inside my home.tml
all I want to do is embed the renderi
Guys,
I stillk dont get it though...
if I have a block like
How do I get a page rendered inside this block?
I mean I have a page called RosterQuery.tml RosterQuery.java
there is
How do i put this together...
I still dont know how to reference my page into the above block so it will
em
This seems to help me stay on the same page...
/*
@OnEvent(EventConstants.ACTIVATE)
Object onActivate(Class clazz) {
if (clazz == null)
return Utils.new404(messages);
this.beanType = clazz;
return null;
}
*/
@OnEvent(EventConstants.PASSIVATE)
I tried the context specified below but clazz during activation always comes in
as null.
is this a tapestry bug ?
@OnEvent(EventConstants.ACTIVATE)
Object onActivate(Class clazz) {
if (clazz == null)
return Utils.new404(messages);
this.beanType = clazz;
Hi Tapestry Pro's...
Good morning..
I was wondering about my page.
Here is the link to my page... its basically a prototype I will retrofit in
later.
http://localhost:8080/pphl/rosterquery
My page renders and everything is good. I select my criteria and hit GO
(submit).
My tabel list gets p
Thanks Joakim... I noticed that. I didnt believe the error... but its good to
have a confirmation.
I will try it again in that pages dir.
Sorry Angela... for the dyslexic answer.
i meant to say... yes your code should run as platform safe.
Ken
Hi Folks,
Can i construct an abstract page and inject a bunch of services and then have
derived instances extend from that ?
I tried it and seeing some weird class format errors.
I did it with my model entities.
trying to do it with pages and injectables.
public abstract class AbstractPage im
Hi Angela,
Off the top of my head form looking at your specs...
I would guess to say based on my experience with java which dates back to
1998...
no.
64bit should accommodate 32bit apps
forward revs should accommodate previous revs.
byte codes that is
I say go for it
Funny when I think ab
For instance... given this block of code..
add INFORMATION description here
ROSTERS please select a team
Hi Folks,
I have seen some templates grow are large and cluttered.
I am trying to avoid such growth.
Can someone list the components at hand to use to prevent this or to be used to
maintain maximum modularity?
Is there a preferred tapestry component or best practice way to keep tml and
java fi
Hey Joakim...
I tried your suggestion... and it worked.
I actually created an interface with a host of default methods that I am
forcing down the hierarchy... one of which is displayableName.
And I made it past the tapestry code...
final PropertyAdapter propertyAdapter =
classProp
Joakim,
Thank you for the suggestion.
I was hoping for checkins on the framework I use but non yet. I am stuck until
that happens.
But I can unit test while stuck.
I will try your suggestion... making a get/set displayableString() and just put
toString() inside of it.
The tapestry frame
So it sounds like...
I need to implement an auxillary property called
getDisplayableName/setDisplayableName in order for this to make it into the
options construct's.
for EVERY class I intend to populate into any select.
toString is the default displayable for any object
i vote for that to b
Hi Angela,
Looks liek you didnt specify any entities in your hibernate cfg mapping file.
If you model an entity under your model/entity package, yes you need to tell
your AppModule.JAVA about that directory...
But you also need to tell hibernate about those entities.
We do this by specifying t
well its trying to configure from hibernate.cfg.xml
did you spell it out properly in the config file ?
For this stack trace...
it is likely build mania...repo corruption..and unstable source
so I am backing down to try and find something I can work with.
- cheers
Thanks
There is no talking. If I create a jira I am met with contempt. And they got
some dig about me in the past being a committer...hastily checking in code
potentially running away with parts of the effort so they cannibalized me. But
please dont think i am being bitter. I could care less. I am just
Do this look like normal build feedback?
c:\Prototype\Mavenized\Product\tynamo\trunk\codehaus-unity-skin>call mvn clean
install -Dmaven.test.skip=true -DdownloadJavadocs=true -DdownloadSources=true
2>&1 | te
e ..\build-codehaus-unity-skin.log
[INFO] Scanning for projects...
Downloading:
htt
Ok I am going to try and keep the code base and build against rev's that my
framework providers are currently released and buolding against.
thats why I asked this question... because my wife said... 'why dont you fix it
yourself'... and seeing I ate and breathed HibernateDescriptorDecorator.JAV
Its 5.3.7
I am backing down my code base to released versions and see what that buys me.
previous bugs.
Maybe this one will come back when I get new checkins?
right now I am in a holding pattern.
ciao
Thanks Thiago... my head is kinda spinnin...
I been building and running and limping... you have seen some of the bugs I get.
I can't get a position on the code base framework I am building off of. The
head rev is unstable. There are outstanding bugs and issues... internal ones
preventing funda
Thanks Joakim... for trying
I tried to get a clean head rev build off my framework providers but its never
had a clean head rev build ever (months and years) and I have been very quiet
about it limping along waiting for pristine code. They seem to be under the
impression that everything just wo
Folks,
I attempted to upgrade to the framework I been using latest and greatest... to
try and overcome some bugs that I havent resolved. Thinking it is a stale code
drift runtime error...
So I replenished a fresh local repo
upgraded to latest and greatest framework
and when I run my webapp I g
Thanks Thiago... trust me I would send a console trace if I got one. Maybe my
logger isnt tracing those packages in tapestry ?
The NPE occurs inside (well i sent the browser trace)...
org.tynamo.examples.pphl.pages.Query)org.apache.tapestry5.ioc.internal.util.TapestryExceptionjava.lang.NullPoi
Hi Jens,
I posted the pojo bean Year.java
I really rely on the toString() for most of my entities.
I wouldnt think of complicating any of my getters with dashes or underscores
let alone complicate a primary keye method.
This one is fairly obvious.
I know I have some environment concerns and n
This guy is the culprit... tap-5.3.6
I believe it needs to depend on a default toString() is it fails to find a
labelProperty.
I need a workaround folks... so waiting on your best.
thanks
KEN
@SuppressWarnings("unchecked")
public SelectModel create(final List objects, final String lab
Ok I am stepping thru the tapestry code during the create call...
This is interesting...
UnClaimedFieldWorker.JAVA
public Object get(Object instance, InstanceContext context)
{
return fieldValue.get(fieldDefaultValue);
}
fieldDefaultvalue == null
no npe as of
Hi Guys,
really sorry about my lapse here in providing the right info and I kow it must
be frustrating.
I played hockey last night. So i got pre-empted.
Ok I am back on the tarp.
I will try to get the stack trace for you... but none is being produced in the
console... and its an NPE ? I am wo
its obviously happening on the valueencoder
final PropertyAdapter propertyAdapter =
classPropertyAdapter.getPropertyAdapter(labelProperty);5455final
ValueEncoder encoder =
this.valueEncoderSource.getValueEncoder(propertyAdapter.getType());56
I changed the property metho
Thanks Jens...
I believe I posted the Year.class for Thiago
the primary keye is just ID
Is this a bug ?
I would like to get into the create routine for the factory but dont know how
Ooops... this is the code I am exercising...
@Persist
@Property
private EnumValueEncoder yearValueEncoder;
@Inject
@Property
private TypeCoercer typeCoercer;
@Inject
private SelectModelFactory selectModelFactory;
@Property
private SelectModel yearSelectM
Thanks Jens...
I just stepped thru debugger...
@SetupRender
void setupRender() {
grid.reset();
years = new
ArrayList(TynamoUTIL.loadCollection(hibernatePersistenceService, Year.class));
yearValueEncoder = new EnumValueEncoder(typeCoercer, Year.class);
t
Hi Thiago,
Here is the console... after I induce the NPE.
2013-05-13 16:11:14.622:INFO:oejs.Server:jetty-7.6.0.v20120127
2013-05-13 16:11:22.970:INFO:oejpw.PlusConfiguration:No Transaction manager
found - if your webapp requires one, please configure one.
2013-05-13 16:11:23.424:INFO:oejsh.Conte
whats so bad about a year class ?
@Entity
@ClassDescriptor(hasCyclicRelationships = true, nonVisual = false)
public class Year implements Cloneable, Serializable {
private static final Log log = LogFactory.getLog(Year.class);
private Integer id = null;
private Integer yearStart = new
Here is the tml
How do I know which valuencoder its using?
Why the NPE ?
thanks guys... but I keep gettign an NPE
@Persist
@Property
HibernateEntityValueEncoder yearValueEncoder;
@Inject
private ValueEncoderSource valueEncoderSource;
@Inject
private SelectModelFactory selectModelFactory;
private ArrayList years;
@Setu
Hi Folks,
Finding scant docs on this class usage.
And getting pulled down a rabbit hole.
Are there any example usages of this ?
All i want to do is populate my select component with database entities strings.
thanks
Thanks Lance,
These options are all great... helpful. I am interfacing with the author and
trying to communicate what I have identified is a show stopper for the users of
their library.
I think some rules of thumb need to be agreed upon especially with regard to
owness.
So it should really be
Thanks Lance,
Thats helpful information.
I have a case where explicit raw usage of those ID's header, nav, main... are
being used right within a CSS file or even in explicit style .
So my layout is being blown off the map... (oops page).
I still am wondering what solution I should impose.
Tha
Folks,
I am operating a tapestry web app.
I have my own web app specific layout which defines a myriad of DIV blocks that
use ID for "header", "content", "page", "main", etc and I operate these ID
definitions heavily within my own CSS.
But then along comes a third party library that promot
George,
Thanks friend... that worked terrific. I used both annotations
@RequiresAuthentication
@RequiresUser
The logout handlers are virtually identical for HOME and LOGIN pages
Here is the HOME one...
http://localhost:9011/pphl/home.layout.loginlink.tynamologoutlink
Here is the LOGIN one for the URL on my browser bar
http://localhost:9011/pphl/login.tynamologoutlink
Can anyone explain why the HOME l
Hi Folks,
I believe my webapp is wired up properly. But not so when I click logout link.
Here is my logout link handler.
@InjectPage("Login")
private Login loginPage;
Object onActionFromTynamoLogoutLink() {
// Need to call this explicitly to invoke onlogout handlers (for
ooops here is the link.
http://tapestry5-jquery.com/components/docsjquerytabs
I am wondering if there is a similar menubar component. Could this be the
upcoming menubar widget? for this library ?
http://wiki.jqueryui.com/w/page/38666403/Menubar
If so i think I might want to pilot its use.
Folks,
Has anyone used this ? How is it?
Does it retain state across tabs? meaning... if I render tab3 with a list and
hit my HOME link... will this tab retain the tabbed tab state? Instead of
jumping back to tab 0 ?
Thanks
Ken
Thanks Emmanual...
Ok no rush... I dont have a corporate comercial release due like monday or
anything.
I just felt cornered at 4am wrestling with this and blew a gasket.
But I would like to resolve asap.
1. There is legit crash... my first post.
2. And I want to see about what I need to chec
The stack trace I originally posted takes down the tapestry app and breaks it
by refusing to render properly within its service.
Why is KAWWA cluttering up the front page of my web app when I try to use one
simple component ?
Why are you advertising and requested me to use you r tapestry library and
forcing my webapp to display your images all over the front of the page ?
I asked this before and you refuse to respond.
I
Manuelle... will you please email me stable binaries please ?
And a support email address that I can get a response from?
Thank You
kcola...@gmail.com
there isn't even a 2.0.3 release
everything is hardwired to 2.0.4
but its all snapshots
and if I look at their releases repository its empty
???
This download into my repo is whats plaguing the usage of this library.
I have snapshots turned off.
If anyone using this tapestry library can explain I would be greatful
I dont know why this is overriding my build and interfering with development.
its been happening for a month now and I am re
Folks,
I am just plagued with this library. All I am asking for is a simple tab
component and a menu.
But this kawwa keeps jamming the round head image advertisement guy with a neck
tie all over the front of the app. ATOS WORLDWIDE
If they want money I will pay for it.
I just want it to work.
manuel
I reverted to rev 80
and I still receive this build error
[INFO]
[INFO] BUILD FAILURE
[INFO]
[INFO] Total time: 2.777s
[INFO] Finished at: Sun
with the advertuisements to use their libratry
are they aware anyone is even attempting to use it?
I have been frustratingly watchign this library limping along for the past month
they obviously tried to refactor the AppModule and left a train wreck in its
wake
but it hasnt been working proper
If the kawwa folks could work on stabilizing their release and deploy somethign
that can be predictably built that woujld be nice.
it would gain me alot of sleep time
I have reverted to several revisions and cannot get past this build problem.
but the crash remains persistent.
i dont know what
Is it ok to ask for help on this forum for this tapestry library?
I have asked before from the authors without any luck.
I am currently experiencing a ramdom NPE from their component.
An unexpected application exception has
occurred.java.lang.NullPointerExceptionFilter stack frames
Stack trace
Folks,
Is there a doc or tech help on how to integrate BIRT into my tapestry app?
Thanks in advance.
I havent found anything.
- cheers
Ken
Folks,
This is fixed... I was specifying bogus schema on my collection methods in my
person object.
False alarm...
- cheers
Ok the catch block is vestigial since the exception is thrown after the method
is processed... not during...
So back to commenting out the code to seed my database.
Does anyone have any ideas? I cant invoke a hibernate session here due to
separation of concerns.
Thanks
Folks,
I am trying to seed my database with two default standard entities.
is there a reason why tapestry wont allow me to catch this exception ?
Its really annoying. that I have to comment out and uncomment the code just to
get my databse seeded properly.
I thought catchign the exception woul
My prepared list is counting two but returning 1 and the other null when
getInstances is called
So it is looking more like ... well not sure yet
public void prepare(int startIndex, int endIndex, List
sortConstraints)
{
this.startIndex = startIndex;
preparedResults = per
Here is the grid usage...
I have two entities in the database
and its failing on the third row iteration when getting row values
someone is passing in a bad endIndex
kawwa, tapestry or tynamo... not sure
But I will keep looking
package org.tynamo;
import org.apache.tapestry5.grid.GridDataSo
1 - 100 of 362 matches
Mail list logo