Re: Usage of Tapestry Services from outside of Tapestry.

2013-05-05 Thread Lenny Primak
http://code.google.com/p/flowlogix/source/browse/tapestry-services/src/main/java/com/flowlogix/util/ExternalServiceUtil.java

Use this function to locate your service by class ID. It works exactly like 
@Inject. 


On May 5, 2013, at 1:01 PM, Stefan Baur  wrote:

> Hi
> 
> I am runnung a card game application within a Tapestry website. For user
> management, I use tapestry-hibernate and some tapestry pages to
> create/list/etc users.
> 
> Withing the game application, I create my own Hibernate SessionFactory
> handle logins in the game.
> 
> Is it possible to somehow obtain the SessionFactory from Tapestry instead
> of creating a second instance? I am aware that the tapestry context is
> registered as a ServletContext parameter, but I have no idea how to
> "manually" get an object that would be @Inject-ed in Tapestry context.
> 
> Thanks for help.
> Stefan

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: loop pagination - T5 Bootstrap

2013-05-05 Thread Barry Books
If you are using the tapestry-bootstrap module your tml will be something
like this















${work.title}

   

  



 






On Sun, May 5, 2013 at 1:46 PM, Lance Java wrote:

> The only core tapestry component which supports paging is the grid. If
> you're rendering a table, then use a grid
>
> http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/Grid.html
>
> If you'd an example of a custom paging, take a look at my gallery component
> in tapestry-stitch which supports next and previous pages... this could
> easily be tweaked for page 1,2,3 etc.
> http://tapestry-stitch.uklance.cloudbees.net/gallerydemo
>
> Note that my example uses it's own interface for paging (ie
> GalleryDataModel). I'd recommend using tapestry's GridDataModel instead so
> that you can take advantage of the HibernateGridDataModel and also
> tapestry's built in type coercion from Collection/Array to GridDataModel.
>
>
>
> On 5 May 2013 18:19, Jan Fryblik  wrote:
>
> > **
> >
> > Hi guys,
> >
> > I using Tapestry 5 and Tapestry Bootstrap and i tried to apply pagination
> > on loop component. I`m using it like that...
> >
> > 
> > ...
> > 
> >
> >
> > but it doesn't render any pagination, just complete list. Probably i need
> > to connect it with Pagination component, but i don't know how.  Could you
> > please tell me, what i've missed? Best with an example, thanks in
> advance.
> >
> > BR,
> > Jan
> >
> > --
> >
> > *
> > *
> > *Mgr. Jan Fryblík*
> > +420 739 094 784
> > jan.fryb...@ebrothers.cz
> >
> > *eBrothers Software s.r.o. | www.ebrothers.cz*
> >
>


Re: loop pagination - T5 Bootstrap

2013-05-05 Thread Lance Java
The only core tapestry component which supports paging is the grid. If
you're rendering a table, then use a grid
http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/Grid.html

If you'd an example of a custom paging, take a look at my gallery component
in tapestry-stitch which supports next and previous pages... this could
easily be tweaked for page 1,2,3 etc.
http://tapestry-stitch.uklance.cloudbees.net/gallerydemo

Note that my example uses it's own interface for paging (ie
GalleryDataModel). I'd recommend using tapestry's GridDataModel instead so
that you can take advantage of the HibernateGridDataModel and also
tapestry's built in type coercion from Collection/Array to GridDataModel.



On 5 May 2013 18:19, Jan Fryblik  wrote:

> **
>
> Hi guys,
>
> I using Tapestry 5 and Tapestry Bootstrap and i tried to apply pagination
> on loop component. I`m using it like that...
>
> 
> ...
> 
>
>
> but it doesn't render any pagination, just complete list. Probably i need
> to connect it with Pagination component, but i don't know how.  Could you
> please tell me, what i've missed? Best with an example, thanks in advance.
>
> BR,
> Jan
>
> --
>
> *
> *
> *Mgr. Jan Fryblík*
> +420 739 094 784
> jan.fryb...@ebrothers.cz
>
> *eBrothers Software s.r.o. | www.ebrothers.cz*
>


Usage of Tapestry Services from outside of Tapestry.

2013-05-05 Thread Stefan Baur
Hi

I am runnung a card game application within a Tapestry website. For user
management, I use tapestry-hibernate and some tapestry pages to
create/list/etc users.

Withing the game application, I create my own Hibernate SessionFactory
handle logins in the game.

Is it possible to somehow obtain the SessionFactory from Tapestry instead
of creating a second instance? I am aware that the tapestry context is
registered as a ServletContext parameter, but I have no idea how to
"manually" get an object that would be @Inject-ed in Tapestry context.

Thanks for help.
Stefan


loop pagination - T5 Bootstrap

2013-05-05 Thread Jan Fryblik

Hi guys,I using Tapestry 5 and Tapestry Bootstrap and i tried to apply pagination on loop component. I`m using it like that..but it doesn't render any pagination, just complete list. Probably i need to connect it with Pagination component, but i don't know how.  Could you please tell me, what i've missed? Best with an example, thanks in advance.BR,Jan--Mgr. Jan Fryblík+420 739 094 784 jan.fryb...@ebrothers.czeBrothers Software s.r.o. | www.ebrothers.cz

Re: HibernateValueEncoder NPE

2013-05-05 Thread Thiago H de Paula Figueiredo
On Sat, 04 May 2013 17:08:49 -0300, Jens Breitenstein  
 wrote:



Hi All!


Hi!

First of all, why did you post the exact same question five times in the  
mailing list? There's no need for that.


Why do you use leading underscores? Just curious.

I don't think what you're seeing as a bug, as Tapestry just follows the  
Java conventions for getters and setters and you're not following them.  
This could be an enhancement, though.


--
Thiago H. de Paula Figueiredo

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org